415dfc13c33b59da5ebfc6ecdcb3ac86039273ad
[gnulib.git] / ChangeLog
1 2011-09-21  Bruno Haible  <bruno@clisp.org>
2
3         select tests: Avoid test failures on OSF/1 5.1 and mingw.
4         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
5         native Windows.
6
7 2011-09-21  Bruno Haible  <bruno@clisp.org>
8
9         New module 'fdopen'.
10         * lib/stdio.in.h (fdopen): New declaration.
11         * lib/fdopen.c: New file.
12         * m4/fdopen.m4: New file.
13         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
14         REPLACE_FDOPEN.
15         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
16         REPLACE_FDOPEN.
17         * modules/fdopen: New file.
18         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
19         * tests/test-stdio-c++.cc: Check signature of fdopen.
20         * doc/posix-functions/fdopen.texi: Mention the new module.
21
22 2011-09-21  Bruno Haible  <bruno@clisp.org>
23
24         unlockpt tests: Avoid test failure on NetBSD 5.1.
25         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
26         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
27
28 2011-09-21  Bruno Haible  <bruno@clisp.org>
29
30         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
31         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
32         * tests/test-getlogin_r.c (main): Likewise.
33
34 2011-09-20  Bruno Haible  <bruno@clisp.org>
35
36         time tests: Don't require pid_t.
37         * doc/posix-headers/time.texi: Revert last change.
38         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
39         * tests/test-time.c: Comment out the check for pid_t.
40
41 2011-09-20  Bruno Haible  <bruno@clisp.org>
42
43         fsync tests: Avoid a test failure on mingw.
44         * tests/test-fsync.c (main): Allow a failure with EIO.
45
46 2011-09-20  Bruno Haible  <bruno@clisp.org>
47
48         euidaccess: Update comments.
49         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
50
51 2011-09-20  Bruno Haible  <bruno@clisp.org>
52
53         Ensure EBADF returns for socket functions on mingw.
54         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
55         descriptor is invalid.
56         * lib/bind.c (rpl_bind): Likewise.
57         * lib/connect.c (rpl_connect): Likewise.
58         * lib/getpeername.c (rpl_getpeername): Likewise.
59         * lib/getsockname.c (rpl_getsockname): Likewise.
60         * lib/getsockopt.c (rpl_getsockopt): Likewise.
61         * lib/listen.c (rpl_listen): Likewise.
62         * lib/recv.c (rpl_recv): Likewise.
63         * lib/recvfrom.c (rpl_recvfrom): Likewise.
64         * lib/send.c (rpl_send): Likewise.
65         * lib/sendto.c (rpl_sendto): Likewise.
66         * lib/setsockopt.c (rpl_setsockopt): Likewise.
67         * lib/shutdown.c (rpl_shutdown): Likewise.
68
69 2011-09-20  Bruno Haible  <bruno@clisp.org>
70
71         select tests: EBADF tests.
72         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
73         test_bad_fd): New functions.
74         (test_function): Invoke also test_bad_fd.
75
76 2011-09-20  Bruno Haible  <bruno@clisp.org>
77
78         Tests for module 'posix_spawn_file_actions_addopen.
79         * modules/posix_spawn_file_actions_addopen-tests: New file.
80         * tests/test-posix_spawn_file_actions_addopen.c: New file.
81
82         Tests for module 'posix_spawn_file_actions_adddup2'.
83         * modules/posix_spawn_file_actions_adddup2-tests: New file.
84         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
85
86         Tests for module 'posix_spawn_file_actions_addclose'.
87         * modules/posix_spawn_file_actions_addclose-tests: New file.
88         * tests/test-posix_spawn_file_actions_addclose.c: New file.
89
90 2011-09-20  Bruno Haible  <bruno@clisp.org>
91
92         Tests for module 'unlockpt'.
93         * modules/unlockpt-tests: New file.
94         * tests/test-unlockpt.c: New file.
95         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
96
97         Tests for module 'grantpt'.
98         * modules/grantpt-tests: New file.
99         * tests/test-grantpt.c: New file.
100         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
101
102 2011-09-20  Bruno Haible  <bruno@clisp.org>
103
104         freopen tests: EBADF tests.
105         * tests/test-freopen.c: Include errno.h, unistd.h.
106         (main): Add tests for EBADF, commented out for the moment.
107
108         fclose tests: EBADF tests.
109         * tests/test-fclose.c (main): Add tests for EBADF.
110
111         fflush tests: EBADF tests.
112         * tests/test-fflush.c: Include errno.h, macros.h.
113         (main): Add tests for EBADF.
114
115         ftello tests: EBADF tests.
116         * tests/test-ftello4.sh: New file.
117         * tests/test-ftello4.c: New file.
118         * modules/ftello-tests (Files): Add them.
119         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
120
121         fseeko tests: EBADF tests.
122         * tests/test-fseeko4.sh: New file.
123         * tests/test-fseeko4.c: New file.
124         * modules/fseeko-tests (Files): Add them.
125         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
126
127         Tests for function fputc().
128         * modules/fputc-tests: New file.
129         * tests/test-fputc.c: New file.
130         * modules/stdio-tests (Depends-on): Add fputc-tests.
131
132         Tests for function fgetc().
133         * modules/fgetc-tests: New file.
134         * tests/test-fgetc.c: New file.
135         * modules/stdio-tests (Depends-on): Add fgetc-tests.
136
137         Tests for function fdopen().
138         * modules/fdopen-tests: New file.
139         * tests/test-fdopen.c: New file.
140         * modules/stdio-tests (Depends-on): Add fdopen-tests.
141
142         Tests for module 'vdprintf'.
143         * modules/vdprintf-tests: New file.
144         * tests/test-vdprintf.c: New file.
145
146         Tests for module 'dprintf'.
147         * modules/dprintf-tests: New file.
148         * tests/test-dprintf.c: New file.
149
150 2011-09-20  Bruno Haible  <bruno@clisp.org>
151
152         Tests for module 'ioctl'.
153         * modules/ioctl-tests: New file.
154         * tests/test-ioctl.c: New file.
155
156 2011-09-20  Bruno Haible  <bruno@clisp.org>
157
158         fcntl tests: EBADF tests.
159         * tests/test-fcntl.c (main): Add more tests for EBADF.
160
161 2011-09-20  Bruno Haible  <bruno@clisp.org>
162
163         utimensat tests: EBADF tests.
164         * tests/test-utimensat.c (main): Add tests for EBADF.
165
166         renameat tests: EBADF tests.
167         * tests/test-renameat.c (main): Add tests for EBADF.
168
169         mkfifoat tests: EBADF tests.
170         * tests/test-mkfifoat.c (main): Add tests for EBADF.
171
172         readlinkat tests: EBADF tests.
173         * tests/test-readlinkat.c (main): Add tests for EBADF.
174
175         symlinkat tests: EBADF tests.
176         * tests/test-symlinkat.c (main): Add tests for EBADF.
177
178         linkat tests: EBADF tests.
179         * tests/test-linkat.c (main): Add tests for EBADF.
180
181         Tests for module 'faccessat'.
182         * modules/faccessat-tests: New file.
183         * tests/test-faccessat.c: New file.
184
185         fdopendir tests: EBADF tests.
186         * tests/test-fdopendir.c (main): Add more tests for EBADF.
187
188         openat tests: EBADF tests.
189         * tests/test-fchownat.c (main): Add tests for EBADF.
190         * tests/test-fstatat.c (main): Likewise.
191         * tests/test-mkdirat.c (main): Likewise.
192         * tests/test-openat.c (main): Likewise.
193         * tests/test-unlinkat.c (main): Likewise.
194         * tests/test-fchmodat.c: New file.
195         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
196         (Makefile.am): Also run 'test-fchmodat'.
197
198 2011-09-20  Bruno Haible  <bruno@clisp.org>
199
200         utimens, futimens, fdutimensat tests: EBADF tests.
201         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
202
203         Tests for function fstat().
204         * modules/fstat-tests: New file.
205         * tests/test-fstat.c: New file.
206         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
207
208 2011-09-20  Bruno Haible  <bruno@clisp.org>
209
210         test-ttyname_r tests: EBADF tests.
211         * tests/test-ttyname_r.c (main): Add tests for EBADF.
212
213         Tests for module 'isatty'.
214         * modules/isatty-tests: New file.
215         * tests/test-isatty.c: New file.
216
217         Tests for module 'write'.
218         * modules/write-tests: New file.
219         * tests/test-write.c: New file.
220
221         Tests for module 'read'.
222         * modules/read-tests: New file.
223         * tests/test-read.c: New file.
224
225         pwrite tests: EBADF tests.
226         * tests/test-pwrite.c (main): Add tests for EBADF.
227
228         pread tests: EBADF tests.
229         * tests/test-pread.c (main): Add tests for EBADF.
230
231         lseek tests: EBADF tests.
232         * tests/test-lseek.c (main): Add more tests for EBADF.
233
234         Tests for module 'ftruncate'.
235         * modules/ftruncate-tests: New file.
236         * tests/test-ftruncate.sh: New file.
237         * tests/test-ftruncate.c: New file.
238
239         fsync tests: EBADF tests.
240         * tests/test-fsync.c (main): Add more tests for EBADF.
241
242         fdatasync tests: EBADF tests.
243         * tests/test-fdatasync.c (main): Add more tests for EBADF.
244
245         Tests for module 'fchown'.
246         * modules/fchown-tests: New file.
247         * tests/test-fchown.c: New file.
248
249         Tests for module 'fchmod'.
250         * modules/fchmod-tests: New file.
251         * tests/test-fchmod.c: New file.
252
253         fchdir tests: EBADF tests.
254         * tests/test-fchdir.c (main): Add more tests for EBADF.
255
256         dup2 tests: EBADF tests.
257         * tests/test-dup2.c (main): Add more tests for EBADF.
258
259         Tests for module 'dup'.
260         * modules/dup-tests: New file.
261         * tests/test-dup.c: New file.
262
263         Tests for module 'close'.
264         * modules/close-tests: New file.
265         * tests/test-close.c: New file.
266
267 2011-09-20  Bruno Haible  <bruno@clisp.org>
268
269         Tests for module 'shutdown'.
270         * modules/shutdown-tests: New file.
271         * tests/test-shutdown.c: New file.
272
273         Tests for module 'setsockopt'.
274         * modules/setsockopt-tests: New file.
275         * tests/test-setsockopt.c: New file.
276
277         Tests for module 'sendto'.
278         * modules/sendto-tests: New file.
279         * tests/test-sendto.c: New file.
280
281         Tests for module 'send'.
282         * modules/send-tests: New file.
283         * tests/test-send.c: New file.
284
285         Tests for module 'recvfrom'.
286         * modules/recvfrom-tests: New file.
287         * tests/test-recvfrom.c: New file.
288
289         Tests for module 'recv'.
290         * modules/recv-tests: New file.
291         * tests/test-recv.c: New file.
292
293         Tests for module 'listen'.
294         * modules/listen-tests: New file.
295         * tests/test-listen.c: New file.
296
297         Tests for module 'getsockopt'.
298         * modules/getsockopt-tests: New file.
299         * tests/test-getsockopt.c: New file.
300
301         Tests for module 'getsockname'.
302         * modules/getsockname-tests: New file.
303         * tests/test-getsockname.c: New file.
304
305         Tests for module 'getpeername'.
306         * modules/getpeername-tests: New file.
307         * tests/test-getpeername.c: New file.
308
309         Tests for module 'connect'.
310         * modules/connect-tests: New file.
311         * tests/test-connect.c: New file.
312
313         Tests for module 'bind'.
314         * modules/bind-tests: New file.
315         * tests/test-bind.c: New file.
316
317         accept4 tests: Fix for native Windows.
318         * tests/test-accept4.c: Include sockets.h.
319         (main): Invoke gl_sockets_startup.
320         * modules/accept4-tests (Depends-on): Add sockets.
321
322         accept tests: Fix for native Windows.
323         * tests/test-accept.c: Include sockets.h.
324         (main): Invoke gl_sockets_startup.
325         * modules/accept-tests (Depends-on): Add sockets.
326
327 2011-09-19  Bruno Haible  <bruno@clisp.org>
328
329         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
330         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
331         do...while(0).
332         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
333         Suggested by Paul Eggert.
334
335 2011-09-19  Bruno Haible  <bruno@clisp.org>
336
337         sched: Ensure pid_t is defined.
338         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
339         not define pid_t.
340         * lib/sched.in.h: Include <sys/types.h>.
341         * doc/posix-headers/sched.texi: Mention the pid_t problem.
342         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
343
344 2011-09-19  Bruno Haible  <bruno@clisp.org>
345
346         msvc-inval: Ensure the entire expansion is a single statement.
347         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
348         of braces.
349
350 2011-09-19  Jim Meyering  <meyering@redhat.com>
351
352         tests: use printf, not echo in init.sh's warn_ function
353         * tests/init.sh (warn_): Use printf, not echo.  The latter would
354         misbehave when given strings containing a backslash or starting
355         with e.g., -n.  James Youngman suggested setting IFS.
356
357 2011-09-19  Eric Blake  <eblake@redhat.com>
358
359         futimens: enhance test
360         * tests/test-futimens.h (test_futimens): Also check for EBADF on
361         closed non-negative fd.
362
363         date: accept 'hence' as opposite of 'ago'
364         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
365         * tests/test-parse-datetime.c (main): Enhance test.
366         Suggested by Jesse Wilson.
367
368 2011-09-19  Jim Meyering  <meyering@redhat.com>
369
370         getcwd: don't fail in a deep directory on a system without openat
371         Before this change, getcwd would fail when called from a directory
372         of depth PATH_MAX / 3 or greater.  That was due to the fact that
373         the non-openat implementation used "..", "../..", "../../..", etc.
374         to access ancestor directories.  With too many, that string would
375         be longer than PATH_MAX.
376         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
377         using gnulib's openat replacement.
378         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
379         we're using the replacement function.
380
381 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
382
383         maint.mk: avoid warnings from perl about missing files
384         * top/maint.mk (def_sym_regex): Ignore files listed in
385         $(gl_other_headers_) that do not exist, say because a project
386         does not use a corresponding module.
387
388 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
389
390         stat: use pathmax.h only if needed
391         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
392         This is better for Emacs, which does not have a mingw port and
393         therefore can avoid the pathmax module.
394
395         utimens: remove dependency on dup2
396         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
397         to work around the Linux kernel bug.
398         * modules/utimens (Depends-on): Remove dup2.
399
400 2011-09-18  Bruno Haible  <bruno@clisp.org>
401
402         inet_ntop, inet_pton: Look for it also in libresolv.
403         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
404         libnsl, search for it in libresolv.
405         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
406         Needed on Solaris 7.
407
408 2011-09-18  Bruno Haible  <bruno@clisp.org>
409
410         accept, accept4 tests: Avoid link error on Solaris.
411         * modules/accept-tests (Makefile.am): Link test-accept against
412         $(LIBSOCKET).
413         * modules/accept4-tests (Makefile.am): Link test-accept4 against
414         $(LIBSOCKET).
415
416         accept4: Avoid link error on Solaris.
417         * modules/accept4 (Link): New section.
418
419         socket functions: Avoid link errors on Solaris.
420         * modules/accept (Depends-on): Add socketlib.
421         (Link): New section.
422         * modules/bind (Depends-on): Add socketlib.
423         (Link): New section.
424         * modules/connect (Depends-on): Add socketlib.
425         (Link): New section.
426         * modules/getpeername (Depends-on): Add socketlib.
427         (Link): New section.
428         * modules/getsockname (Depends-on): Add socketlib.
429         (Link): New section.
430         * modules/getsockopt (Depends-on): Add socketlib.
431         (Link): New section.
432         * modules/listen (Depends-on): Add socketlib.
433         (Link): New section.
434         * modules/recv (Depends-on): Add socketlib.
435         (Link): New section.
436         * modules/recvfrom (Depends-on): Add socketlib.
437         (Link): New section.
438         * modules/send (Depends-on): Add socketlib.
439         (Link): New section.
440         * modules/sendto (Depends-on): Add socketlib.
441         (Link): New section.
442         * modules/setsockopt (Depends-on): Add socketlib.
443         (Link): New section.
444         * modules/shutdown (Depends-on): Add socketlib.
445         (Link): New section.
446         * modules/socket (Depends-on): Add socketlib.
447         (Link): New section.
448
449 2011-09-18  Bruno Haible  <bruno@clisp.org>
450
451         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
452         * tests/test-ptsname.c (main): Terminate the test if it takes longer
453         than 5 seconds.
454         * modules/ptsname-tests (configure.ac): Test for alarm.
455
456 2011-09-18  Bruno Haible  <bruno@clisp.org>
457
458         posix_spawn_file_actions_add*: Fix module dependencies.
459         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
460         posix_spawn_file_actions_init.
461         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
462         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
463
464 2011-09-18  Bruno Haible  <bruno@clisp.org>
465
466         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
467         * tests/test-rename.h (test_rename): Allow error code EEXIST.
468         * tests/test-renameat.c (main): Likewise.
469
470 2011-09-18  Bruno Haible  <bruno@clisp.org>
471
472         Tests for module 'accept4'.
473         * modules/accept4-tests: New file.
474         * tests/test-accept4.c: New file.
475
476 2011-09-18  Bruno Haible  <bruno@clisp.org>
477
478         Tests for module 'accept'.
479         * modules/accept-tests: New file.
480         * tests/test-accept.c: New file.
481
482 2011-09-18  Bruno Haible  <bruno@clisp.org>
483
484         dup2: Support for MSVC.
485         * lib/dup2.c: Include msvc-inval.h.
486         (rpl_dup2): Handle invalid parameter notifications during dup2 and
487         _get_osfhandle calls.
488         * modules/dup2 (Depends-on): Add msvc-inval.
489         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
490
491         New module 'msvc-inval'.
492         * lib/msvc-inval.h: New file.
493         * lib/msvc-inval.c: New file.
494         * m4/msvc-inval.m4: New file.
495         * modules/msvc-inval: New file.
496
497 2011-09-17  Bruno Haible  <bruno@clisp.org>
498
499         Tests for module 'pclose'.
500         * modules/pclose-tests: New file.
501
502         New module 'pclose'.
503         * lib/stdio.in.h (pclose): New declaration.
504         * lib/pclose.c: New file.
505         * m4/pclose.m4: New file.
506         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
507         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
508         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
509         * modules/pclose: New file.
510         * modules/popen-tests (Depends-on): Add pclose.
511         * modules/popen-safer-tests (Depends-on): Likewise.
512         * doc/posix-functions/pclose.texi: Mention the new module.
513
514 2011-09-17  Bruno Haible  <bruno@clisp.org>
515
516         popen: Support for MSVC.
517         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
518         * lib/popen.c (popen): Provide alternate definition for native Windows.
519         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
521         * modules/popen (Depends-on, configure.ac): Update condition.
522         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
523         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
524         fixed.
525
526 2011-09-17  Bruno Haible  <bruno@clisp.org>
527
528         isnanl, isnand, isnanf: Work around MSVC bug.
529         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
530
531 2011-09-17  Bruno Haible  <bruno@clisp.org>
532
533         sys_socket tests: Fix recent mistake.
534         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
535
536 2011-09-17  Bruno Haible  <bruno@clisp.org>
537
538         putenv: Support for MSVC.
539         * modules/putenv (Depends-on): Add environ.
540         * lib/putenv.c (environ): Disable declaration.
541         * lib/unistd.in.h: Update comment.
542
543 2011-09-17  Bruno Haible  <bruno@clisp.org>
544
545         math: Avoid macro redefinition warnings on MSVC.
546         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
547         Undefine before redefining.
548
549 2011-09-17  Bruno Haible  <bruno@clisp.org>
550
551         doc: Mention functions which are declared as macros.
552         * doc/posix-functions/*[fl].texi: Mention that some functions are
553         defined as macros with arguments only.
554
555 2011-09-17  Bruno Haible  <bruno@clisp.org>
556
557         Add dependencies to new dirent related modules.
558         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
559         * modules/fts (Depends-on): Likewise.
560         * modules/glob (Depends-on): Likewise.
561         * modules/savedir (Depends-on): Likewise.
562         * modules/scandir (Depends-on): Likewise.
563         * modules/dirent-safer (Depends-on): Add opendir, closedir.
564         * modules/fdopendir (Depends-on): Add opendir.
565
566 2011-09-17  Bruno Haible  <bruno@clisp.org>
567
568         inet_pton: Support for MSVC on Windows Vista or newer.
569         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
570         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
571         HAVE_DECL_INET_PTON is defined.
572         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
573         On platforms with <winsock2.h>, test whether inet_pton is declared in
574         <ws2tcpip.h>. If so, arrange to replace it.
575         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
576         REPLACE_INET_PTON.
577         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
578         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
579         (Depends-on, configure.ac): Update condition.
580         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
581
582 2011-09-17  Bruno Haible  <bruno@clisp.org>
583
584         inet_ntop: Support for MSVC on Windows Vista or newer.
585         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
586         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
587         HAVE_DECL_INET_NTOP is defined.
588         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
589         On platforms with <winsock2.h>, test whether inet_ntop is declared in
590         <ws2tcpip.h>. If so, arrange to replace it.
591         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
592         REPLACE_INET_NTOP.
593         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
594         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
595         (Depends-on, configure.ac): Update condition.
596         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
597
598 2011-09-16  Eric Blake  <eblake@redhat.com>
599
600         test-fsync: yet another enhancement
601         * tests/test-fsync.c (main): Also test behavior on read-only text
602         file.
603
604 2011-09-16  Bruno Haible  <bruno@clisp.org>
605
606         Enhance fsync, fdatasync tests.
607         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
608         * tests/test-fdatasync.c (main): Likewise.
609
610 2011-09-16  Bruno Haible  <bruno@clisp.org>
611
612         Support for MSVC compiler: Ensure mode_t gets defined.
613         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
614         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
615         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
616         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
617         * tests/test-fcntl-h.c: Check that mode_t is defined.
618         * tests/test-sys_stat.c: Likewise.
619         * tests/test-sys_types.c: Likewise.
620         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
621         * doc/posix-headers/sys_stat.texi: Likewise.
622         * doc/posix-headers/sys_types.texi: Likewise.
623
624 2011-09-16  Bruno Haible  <bruno@clisp.org>
625
626         sys_stat: Support for MSVC.
627         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
628         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
629         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
630         MSVC.
631
632 2011-09-16  Bruno Haible  <bruno@clisp.org>
633
634         Support for MSVC compiler: Ensure off_t gets defined.
635         * lib/unistd.in.h: Include <sys/types.h>.
636         * tests/test-fcntl-h.c: Check that off_t is defined.
637         * tests/test-sys_stat.c: Likewise.
638         * tests/test-sys_types.c: Likewise.
639
640 2011-09-16  Eric Blake  <eblake@redhat.com>
641
642         fdatasync: port to Solaris
643         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
644         * modules/fdatasync (Link): Document it.
645         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
646
647         fdatasync: port to MacOS X 10.7
648         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
649         declared.
650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
651         * modules/unistd (Makefile.am): Substitute it.
652         * lib/unistd.in.h (fdatasync): Declare on MacOS.
653         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
654
655         fdatasync: minor improvements
656         * modules/fdatasync (Depends-on): Add condition for fsync.
657         * lib/fdatasync.c (fdatasync): Add comment.
658         * tests/test-unistd-c++.cc: Test fdatasync.
659
660         unistd: update refs to newer POSIX
661         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
662         Suggested by Bruno Haible.
663
664         fdatasync: new module
665         * modules/fsync (Description): Document difference to fdatasync.
666         * modules/fdatasync: New module.
667         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
668         * lib/fdatasync.c (fdatasync): Likewise.
669         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
670         defaults.
671         * modules/unistd (Makefile.am): Set witnesses.
672         * lib/unistd.in.h (fdatasync): Declare.
673         * MODULES.html.sh: Document it.
674         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
675         * modules/fdatasync-tests: New test.
676         * tests/test-fdatasync.c: Likewise.
677
678 2011-09-16  Eric Blake  <eblake@redhat.com>
679
680         test-fsync: enhance tests
681         * modules/fsync-tests (Depends-on): Add errno, for mingw.
682         * tests/test-fsync.c (main): Enhance test.
683
684 2011-09-15  Bruno Haible  <bruno@clisp.org>
685
686         Support for MSVC compiler: Ensure ssize_t gets defined.
687         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
688         * doc/posix-headers/stdio.texi: Likewise.
689         * modules/stdio (Depends-on): Add ssize_t.
690         * modules/sys_socket (Depends-on): Likewise.
691         * modules/sys_types (Depends-on): Likewise.
692         * modules/sys_uio (Depends-on): Likewise.
693         * modules/unistd (Depends-on): Likewise.
694         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
695         * tests/test-sys_types.c: Check that ssize_t is defined.
696
697 2011-09-14  Bruno Haible  <bruno@clisp.org>
698
699         Avoid using #, the m4 comment starter character, near brackets.
700         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
701         delimiter character in sed expressions.
702         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
703         Suggested by Eric Blake.
704
705         Properly quote AC_CHECK_DECLS' 4th argument.
706         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
707         argument.
708         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
709         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
710         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
711         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
712         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
713         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
714         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
715         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
716         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
717         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
718         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
719         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
720         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
721         * m4/isinf.m4 (gl_ISINF): Likewise.
722         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
723         * m4/readutmp.m4 (gl_READUTMP): Likewise.
724         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
725         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
726         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
727         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
728         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
729         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
730         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
731         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
732         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
733         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
734         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
735         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
737         Reported by Eric Blake.
738
739         Properly quote AC_CHECK_DECL's 4th argument.
740         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
741         argument.
742         * m4/argp.m4 (gl_ARGP): Likewise.
743         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
744         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
745         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
746         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
747         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
748         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
749         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
750         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
751         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
752         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
753         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
754         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
755         Reported by Eric Blake.
756
757 2011-09-14  Eric Blake  <eblake@redhat.com>
758
759         opendir: avoid compile warning
760         * lib/opendir.c (includes): Always include errno.h.
761         Reported by Tatsuro MATSUOKA.
762
763 2011-09-14  Jim Meyering  <meyering@redhat.com>
764
765         maint.mk: sc_tight_scope: propagate failure from sub-make
766         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
767         Reported by Martin von Gagern.
768
769 2011-09-13  Bruno Haible  <bruno@clisp.org>
770
771         tempname: Support for MSVC.
772         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
773         MSVC.
774         * modules/tempname (Depends-on): Add fcntl-h.
775
776 2011-09-13  Bruno Haible  <bruno@clisp.org>
777
778         sys_time: Support for MSVC.
779         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
780         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
781         include <winsock2.h>.
782         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
783         function declarations that collide with POSIX.
784         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
785         (Makefile.am): Substitute HAVE_WINSOCK2_H.
786
787 2011-09-13  Bruno Haible  <bruno@clisp.org>
788
789         stat: Support for MSVC.
790         * lib/stat.c: Include pathmax.h.
791         * modules/stat (Depends-on): Add pathmax.
792
793         pathmax: Support for native Windows.
794         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
795
796 2011-09-12  Bruno Haible  <bruno@clisp.org>
797
798         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
799         * lib/dirent.in.h (struct dirent): New type.
800         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
801         DT_WHT): New macros.
802         (DIR): New type.
803         (opendir, closedir): Declare only if the module 'opendir' is enabled.
804         (readdir, rewinddir): New declarations.
805         * lib/dirent-private.h: New file.
806         * lib/opendir.c: New file.
807         * lib/readdir.c: New file.
808         * lib/rewinddir.c: New file.
809         * lib/closedir.c: New file.
810         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
811         * m4/opendir.m4: New file.
812         * m4/readdir.m4: New file.
813         * m4/rewinddir.m4: New file.
814         * m4/closedir.m4: New file.
815         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
816         REPLACE_CLOSEDIR here.
817         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
818         readdir, rewinddir are declared.
819         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
820         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
821         HAVE_REWINDDIR, HAVE_CLOSEDIR.
822         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
823         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
824         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
825         * modules/opendir: New file.
826         * modules/readdir: New file.
827         * modules/rewinddir: New file.
828         * modules/closedir: New file.
829         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
830         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
831         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
832         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
833         * NEWS: Mention the 'fchdir' change.
834
835 2011-09-11  Bruno Haible  <bruno@clisp.org>
836
837         asm-underscore.m4: Support for MSVC.
838         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
839         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
840
841 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
842
843         Doc about crypt functions.
844         * doc/posix-functions/crypt.texi: Expand range of glibc versions
845         needing for _GNU_SOURCE to get crypt.
846         * doc/posix-functions/encrypt.texi: Likewise.
847         * doc/posix-functions/setkey.texi: Likewise.
848
849 2011-09-11  Bruno Haible  <bruno@clisp.org>
850
851         doc: Update regarding MSVC 9.
852         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
853         tested".
854         * doc/posix-functions/*.texi: Update with info about MSVC 9.
855         * doc/posix-headers/*.texi: Likewise.
856         * doc/pastposix-functions/*.texi: Likewise.
857         * doc/glibc-functions/*.texi: Likewise.
858         * doc/glibc-headers/*.texi: Likewise.
859
860 2011-09-11  Bruno Haible  <bruno@clisp.org>
861
862         unistd et al.: Don't assume <unistd.h> exists.
863         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
864         does not exist.
865         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
866         exist. But include <stdlib.h>.
867         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
868         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
869         symlink() does not exist.
870         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
871         include <io.h> instead.
872         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
873         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
874         include <direct.h> instead.
875         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
876         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
877         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
878         <io.h> instead.
879         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
880         correctly if the system does not have hard links.
881         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
882         <direct.h> instead.
883         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
884         it when looking for function declarations.
885         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
886         <direct.h> and <io.h> instead.
887         * doc/posix-headers/unistd.texi: More details about MSVC problem.
888
889 2011-09-11  Bruno Haible  <bruno@clisp.org>
890
891         strcase: Support for MSVC.
892         * modules/strcase (Status, Notice): Remove obsoletion mark.
893         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
894         * doc/posix-functions/strncasecmp.texi: Likewise.
895
896         strings: Don't assume <strings.h> exists.
897         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
898         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
899         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
900         * doc/posix-headers/strings.texi: Mention the MSVC problem.
901
902 2011-09-11  Bruno Haible  <bruno@clisp.org>
903
904         dirent: Don't assume <dirent.h> exists.
905         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
906         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
907         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
908         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
909
910 2011-09-11  Bruno Haible  <bruno@clisp.org>
911
912         Fix wint_t on MSVC.
913         * lib/wchar.in.h (wint_t): On MSVC, override it.
914         * lib/wctype.in.h (wint_t): Likewise.
915         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
916         MSVC.
917         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
918         * doc/posix-headers/wctype.texi: Likewise.
919
920 2011-09-11  Bruno Haible  <bruno@clisp.org>
921
922         sys_types: Fix typo.
923         * lib/sys_types.in.h: Fix typo in comment.
924         Reported by Paul Eggert.
925
926         Support for MSVC compiler: Ensure size_t gets defined.
927         * modules/strings (Depends-on): Add 'sys_types'.
928         * modules/sys_uio (Depends-on): Likewise.
929         * lib/sys_uio.in.h: Update comment.
930
931         C++ tests for module 'sys_types'.
932         * modules/sys_types-c++-tests: New file.
933         * tests/test-sys_types-c++.cc: New file.
934
935         Tests for module 'sys_types'.
936         * modules/sys_types-tests: New file.
937         * tests/test-sys_types.c: New file.
938
939         New module 'sys_types'.
940         * lib/sys_types.in.h: New file.
941         * m4/sys_types_h.m4: New file.
942         * modules/sys_types: New file.
943         * doc/posix-headers/sys_types.texi: Mention the new module and the
944         size_t problem on MSVC 9.
945
946 2011-09-11  Bruno Haible  <bruno@clisp.org>
947
948         Support for MSVC compiler: Avoid division by a literal 0.
949         * lib/math.in.h (NAN): Define through a function call also on MSVC.
950         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
951         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
952         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
953         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
954         * tests/infinity.h: New file.
955         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
956         on MSVC.
957         * tests/test-ceilf1.c: Include infinity.h.
958         (main): Use Infinityf.
959         * tests/test-ceil1.c: Include infinity.h.
960         (main): Use Infinityd.
961         * tests/test-ceill.c: Include infinity.h.
962         (main): Use Infinityl.
963         * tests/test-dprintf-posix.c: Include infinity.h.
964         (test_function): Use Infinityd.
965         * tests/test-floorf1.c: Include infinity.h.
966         (main): Use Infinityf.
967         * tests/test-floor1.c: Include infinity.h.
968         (main): Use Infinityd.
969         * tests/test-floorl.c: Include infinity.h.
970         (main): Use Infinityl.
971         * tests/test-fprintf-posix.c: Include infinity.h.
972         (test_function): Use Infinityd.
973         * tests/test-frexp.c: Include infinity.h.
974         (main): Use Infinityd.
975         * tests/test-frexpl.c: Include infinity.h.
976         (main): Use Infinityl.
977         * tests/test-isfinite.c: Include infinity.h.
978         (test_isfinitef): Use Infinityf.
979         (test_isfinited): Use Infinityd.
980         (test_isfinitel): Use Infinityl.
981         * tests/test-isinf.c: Include infinity.h.
982         (test_isinff): Use Infinityf.
983         (test_isinfd): Use Infinityd.
984         (test_isinfl): Use Infinityl.
985         * tests/test-isnan.c: Include infinity.h.
986         (test_float): Use Infinityf.
987         (test_double): Use Infinityd.
988         (test_long_double): Use Infinityl.
989         * tests/test-isnanf.h: Include infinity.h.
990         (main): Use Infinityf.
991         * tests/test-isnand.h: Include infinity.h.
992         (main): Use Infinityd.
993         * tests/test-isnanl.h: Include infinity.h.
994         (main): Use Infinityl.
995         * tests/test-ldexpl.c: Include infinity.h.
996         (main): Use Infinityl.
997         * tests/test-printf-posix.h: Include infinity.h.
998         (test_function): Use Infinityd.
999         * tests/test-roundf1.c: Include infinity.h.
1000         (main): Use Infinityf.
1001         * tests/test-round1.c: Include infinity.h.
1002         (main): Use Infinityd.
1003         * tests/test-roundl.c: Include infinity.h.
1004         (main): Use Infinityl.
1005         * tests/test-signbit.c: Include infinity.h.
1006         (test_signbitf): Use Infinityf.
1007         (test_signbitd): Use Infinityd.
1008         (test_signbitl): Use Infinityl.
1009         * tests/test-snprintf-posix.h: Include infinity.h.
1010         (test_function): Use Infinityd, Infinityl.
1011         * tests/test-sprintf-posix.h: Include infinity.h.
1012         (test_function): Use Infinityd, Infinityl.
1013         * tests/test-truncf1.c: Include infinity.h.
1014         (main): Use Infinityf.
1015         * tests/test-trunc1.c: Include infinity.h.
1016         (main): Use Infinityd.
1017         * tests/test-truncl.c: Include infinity.h.
1018         (main): Use Infinityl.
1019         * tests/test-vasnprintf-posix.c: Include infinity.h.
1020         (test_function): Use Infinityd, Infinityl.
1021         * tests/test-vasprintf-posix.c: Include infinity.h.
1022         (test_function): Use Infinityd, Infinityl.
1023         * modules/ceilf-tests (Files): Add tests/infinity.h.
1024         * modules/ceil-tests (Files): Likewise.
1025         * modules/ceill-tests (Files): Likewise.
1026         * modules/dprintf-posix-tests (Files): Likewise.
1027         * modules/floorf-tests (Files): Likewise.
1028         * modules/floor-tests (Files): Likewise.
1029         * modules/floorl-tests (Files): Likewise.
1030         * modules/fprintf-posix-tests (Files): Likewise.
1031         * modules/frexp-tests (Files): Likewise.
1032         * modules/frexp-nolibm-tests (Files): Likewise.
1033         * modules/frexpl-tests (Files): Likewise.
1034         * modules/frexpl-nolibm-tests (Files): Likewise.
1035         * modules/isfinite-tests (Files): Likewise.
1036         * modules/isinf-tests (Files): Likewise.
1037         * modules/isnan-tests (Files): Likewise.
1038         * modules/isnanf-tests (Files): Likewise.
1039         * modules/isnanf-nolibm-tests (Files): Likewise.
1040         * modules/isnand-tests (Files): Likewise.
1041         * modules/isnand-nolibm-tests (Files): Likewise.
1042         * modules/isnanl-tests (Files): Likewise.
1043         * modules/isnanl-nolibm-tests (Files): Likewise.
1044         * modules/ldexpl-tests (Files): Likewise.
1045         * modules/printf-posix-tests (Files): Likewise.
1046         * modules/roundf-tests (Files): Likewise.
1047         * modules/round-tests (Files): Likewise.
1048         * modules/roundl-tests (Files): Likewise.
1049         * modules/signbit-tests (Files): Likewise.
1050         * modules/snprintf-posix-tests (Files): Likewise.
1051         * modules/sprintf-posix-tests (Files): Likewise.
1052         * modules/truncf-tests (Files): Likewise.
1053         * modules/trunc-tests (Files): Likewise.
1054         * modules/truncl-tests (Files): Likewise.
1055         * modules/vasnprintf-posix-tests (Files): Likewise.
1056         * modules/vasprintf-posix-tests (Files): Likewise.
1057         * modules/vdprintf-posix-tests (Files): Likewise.
1058         * modules/vfprintf-posix-tests (Files): Likewise.
1059         * modules/vprintf-posix-tests (Files): Likewise.
1060         * modules/vsnprintf-posix-tests (Files): Likewise.
1061         * modules/vsprintf-posix-tests (Files): Likewise.
1062         * modules/xprintf-posix-tests (Files): Likewise.
1063
1064 2011-09-11  Bruno Haible  <bruno@clisp.org>
1065
1066         Ensure pid_t gets defined.
1067         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
1068         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
1069         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1070         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1071         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1072         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
1073         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
1074         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1075         * tests/test-fcntl-h.c: Check that pid_t is defined.
1076         * tests/test-sched.c: Likewise.
1077         * tests/test-termios.c: Likewise.
1078         * tests/test-time.c: Likewise.
1079         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
1080         * doc/posix-headers/signal.texi: Likewise.
1081         * doc/posix-headers/sys_types.texi: Likewise.
1082         * doc/posix-headers/time.texi: Likewise.
1083
1084 2011-09-11  Bruno Haible  <bruno@clisp.org>
1085
1086         acl: Fix compilation on Solaris 10 (older version).
1087         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
1088         of ACE_EVERYONE.
1089         * lib/set-mode-acl.c (qset_acl): Likewise.
1090         Reported by Christian Jullien <eligis@orange.fr>.
1091
1092 2011-09-10  Bruno Haible  <bruno@clisp.org>
1093
1094         iconv, unsetenv: Add support for MSVC compiler.
1095         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
1096         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
1097
1098 2011-09-10  Bruno Haible  <bruno@clisp.org>
1099
1100         *printf: Add support for MSVC compiler.
1101         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
1102         handles the exception caused by the %n directive. When cross-compiling,
1103         guess no on native Windows.
1104         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
1105         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
1106         emulate it through vsnprintf.
1107         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
1108         * doc/posix-functions/dprintf.texi: Update documentation regarding
1109         MSVC 9.
1110         * doc/posix-functions/fprintf.texi: Likewise.
1111         * doc/posix-functions/printf.texi: Likewise.
1112         * doc/posix-functions/snprintf.texi: Likewise.
1113         * doc/posix-functions/sprintf.texi: Likewise.
1114         * doc/posix-functions/swprintf.texi: Likewise.
1115         * doc/posix-functions/vdprintf.texi: Likewise.
1116         * doc/posix-functions/vfprintf.texi: Likewise.
1117         * doc/posix-functions/vprintf.texi: Likewise.
1118         * doc/posix-functions/vsnprintf.texi: Likewise.
1119         * doc/posix-functions/vsprintf.texi: Likewise.
1120         * doc/glibc-functions/asprintf.texi: Likewise.
1121         * doc/glibc-functions/obstack_printf.texi: Likewise.
1122         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1123         * doc/glibc-functions/vasprintf.texi: Likewise.
1124
1125 2011-09-10  Bruno Haible  <bruno@clisp.org>
1126
1127         nocrash: Add support for native Windows.
1128         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
1129
1130 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
1131             Bruno Haible  <bruno@clisp.org>
1132
1133         absolute-header, include-next: Add support for MSVC compiler.
1134         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
1135         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
1136         directory separator in #line directives.
1137         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
1138         recognize also backslash as directory separator in #line directives.
1139
1140 2011-09-08  Jim Meyering  <meyering@redhat.com>
1141
1142         maint.mk: mark the post-release commit log with "maint: " prefix
1143         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
1144         one-line commit-log summary.
1145
1146 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
1147             Bruno Haible  <bruno@clisp.org>
1148
1149         Doc about crypt functions.
1150         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
1151         systems.
1152         * doc/posix-functions/encrypt.texi: Likewise.
1153         * doc/posix-functions/setkey.texi: Likewise.
1154
1155 2011-09-08  Simon Josefsson  <simon@josefsson.org>
1156
1157         * lib/gc.h: Fix copyright header.
1158
1159 2011-09-07  Bruno Haible  <bruno@clisp.org>
1160
1161         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
1162         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
1163         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
1164
1165 2011-09-07  Bruno Haible  <bruno@clisp.org>
1166
1167         openat: Work around compilation error with OSF/1 5.1 DTK cc.
1168         * lib/fopen.c: Use different syntax for include of <stdio.h>.
1169         * lib/freopen.c: Likewise.
1170         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
1171         * lib/lstat.c: Likewise.
1172         * lib/stat.c: Likewise.
1173         * lib/open.c: Use different syntax for include of <fcntl.h>.
1174         * lib/openat.c: Include fcntl.h again, explicitly.
1175
1176 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
1177
1178         parse-datetime: document the newly accepted format
1179         * doc/parse-datetime.texi (Combined date and time of day items):
1180         New section.
1181
1182 2011-09-06  Bruno Haible  <bruno@clisp.org>
1183
1184         acl: Fix a test failure on newer Solaris 10 with ZFS.
1185         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
1186         ENOSYS as no ACL.
1187         Reported by Jim Meyering.
1188
1189 2011-09-06  Bruno Haible  <bruno@clisp.org>
1190
1191         acl: Update for AIX >= 5.3 with NFS.
1192         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
1193         ENOSYS as no ACL.
1194
1195         acl: Fix a test failure on AIX >= 5.3 with NFS.
1196         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
1197         as no ACL.
1198
1199 2011-09-06  Bruno Haible  <bruno@clisp.org>
1200
1201         acl: Fix a test failure on IRIX 6.5 with NFS.
1202         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
1203         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
1204         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
1205         * lib/copy-acl.c (qcopy_acl): Likewise.
1206
1207 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1208
1209         openat: port to AIX 7.1 with large files
1210         AIX 7.1 does a "#define openat open64at" if large files are in use,
1211         so we can't simply #undef openat.  Use the orig_openat trick (similar
1212         to orig_open in lib/open.c) to work around the problem.  Problem
1213         reported by Kevin Brott for GNU tar, in the thread containing
1214         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
1215         * lib/openat.c (__need_system_fcntl_h): Define first.
1216         Include <fcntl.h> and <sys/types.h> before undefining.
1217         (orig_openat) [HAVE_OPENAT]: New inline function.
1218         (openat) [HAVE_OPENAT]: Do not undef.
1219         (rpl_openat): Use orig_openat, not openat.
1220
1221 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1222             Bruno Haible  <bruno@clisp.org>
1223
1224         acl: Avoid errors on NonStop Kernel.
1225         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
1226         ENOTSUP errors.
1227
1228 2011-09-05  Bruno Haible  <bruno@clisp.org>
1229
1230         acl: Clean up Solaris code.
1231         * lib/acl-internal.h: Remove no-op #if.
1232         * lib/file-has-acl.c: Likewise.
1233         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
1234         * lib/copy-acl.c (qcopy_acl): Likewise.
1235
1236 2011-09-05  Bruno Haible  <bruno@clisp.org>
1237
1238         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
1239         binaries built on the original Solaris 10.
1240         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
1241         trivial.
1242
1243 2011-09-05  Bruno Haible  <bruno@clisp.org>
1244
1245         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1246         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
1247         10.
1248         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
1249         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
1250         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
1251         instead of acl_get, facl_get, acl_set, facl_set.
1252
1253 2011-09-05  Bruno Haible  <bruno@clisp.org>
1254
1255         copy-file: Try unit tests on more file systems.
1256         * tests/test-copy-file-1.sh: New file.
1257         * tests/test-copy-file-2.sh: New file.
1258         * modules/copy-file-tests (Files): Add them.
1259         (Makefile.am): Add them to TESTS.
1260
1261         acl: Try unit tests on more file systems.
1262         * tests/test-file-has-acl-1.sh: New file.
1263         * tests/test-file-has-acl-2.sh: New file.
1264         * tests/test-set-mode-acl-1.sh: New file.
1265         * tests/test-set-mode-acl-2.sh: New file.
1266         * tests/test-copy-acl-1.sh: New file.
1267         * tests/test-copy-acl-2.sh: New file.
1268         * modules/acl-tests (Files): Add them.
1269         (Makefile.am): Add them to TESTS.
1270
1271 2011-09-04  Bruno Haible  <bruno@clisp.org>
1272
1273         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1274         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
1275         10.
1276         (OLD_ALLOW, OLD_DENY): New macros.
1277         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
1278         ACE_ACCESS_ALLOWED_ACE_TYPE.
1279         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
1280         ACE_ACCESS_DENIED_ACE_TYPE.
1281         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
1282         (NEW_ACE_EXECUTE): Fix value.
1283         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
1284         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
1285         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
1286         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
1287         NEW_ACE_SYNCHRONIZE): New macros.
1288         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
1289         instead of acl_fromtext, acl_set, facl_set.
1290         Fixes a coreutils/tests/cp/perm failure.
1291
1292 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
1293
1294         openat: test for fstatat (..., 0) bug
1295         Further testing with tar suggests that fstatat (..., 0)
1296         does not work in general, on AIX 7.1; see
1297         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
1298         So, give up entirely on AIX 7.1's fstatat, and fall back on our
1299         replacement fstatat (which is what older AIX releases were using
1300         anyway).
1301         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
1302         use is now changed to orig_fstatat.  This was probably the right
1303         thing to do anyway.
1304         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
1305         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
1306         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
1307         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
1308         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
1309         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
1310         if the bug is found.
1311
1312         openat: test for fstatat (AT_FDCWD, ..., 0) bug
1313         This tests for another fstatat bug on AIX 7.1:
1314         fstatat (AT_FDCWD, ..., 0) does not work.  See
1315         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
1316         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
1317         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
1318         (rpl_fstatat): Adjust so that it works around either (or both)
1319         bugs if present.
1320         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
1321
1322 2011-09-03  Karl Berry  <karl@gnu.org>
1323
1324         * doc/regex.texi (Character Class Operators): Avoid literal ":"
1325         in index entries.
1326
1327 2011-09-02  Bruno Haible  <bruno@clisp.org>
1328
1329         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
1330         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
1331         values of AR, ARFLAGS, RANLIB.
1332         Reported by John W. Eaton <jwe@gnu.org> for Octave.
1333
1334 2011-09-02  Bruno Haible  <bruno@clisp.org>
1335
1336         Find 'ar' program that fits with --host argument.
1337         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
1338
1339 2011-09-02  Bruno Haible  <bruno@clisp.org>
1340
1341         tests: init.sh: Support any non-GNU diff.
1342         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
1343         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
1344         Solaris 8.
1345
1346 2011-09-02  Bruno Haible  <bruno@clisp.org>
1347
1348         tests: init.sh: work also with any non-GNU diff that supports -u
1349         * tests/init.sh: Relax check for diff -u support.
1350         Rather than checking for GNU diff via --version, simply check
1351         for support for -u itself.  Useful at least on OpenBSD 4.9,
1352         AIX 7.1, IRIX 6.5, and Solaris 10.
1353
1354 2011-09-01  Bruno Haible  <bruno@clisp.org>
1355
1356         strtoimax, strtoumax: Document problem on HP-UX 11.
1357         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
1358         * doc/posix-functions/strtoumax.texi: Likewise.
1359
1360 2011-09-01  Bruno Haible  <bruno@clisp.org>
1361
1362         strtoumax: Avoid link error on OSF/1 with DTK cc.
1363         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
1364         defined as a function.
1365         * modules/strtoumax (Depends-on, configure.ac): Test only whether
1366         strtoumax is defined, not whether it is declared.
1367
1368 2011-09-01  Bruno Haible  <bruno@clisp.org>
1369
1370         strtoimax: Avoid link error on OSF/1 with DTK cc.
1371         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
1372         defined as a function.
1373         * modules/strtoimax (Depends-on, configure.ac): Test only whether
1374         strtoimax is defined, not whether it is declared.
1375
1376 2011-09-01  Bruno Haible  <bruno@clisp.org>
1377
1378         imaxdiv: Avoid link error on OSF/1 with DTK cc.
1379         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
1380         as a function.
1381         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
1382         whether it is declared.
1383
1384 2011-09-01  Bruno Haible  <bruno@clisp.org>
1385
1386         imaxabs: Avoid link error on OSF/1 with DTK cc.
1387         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
1388         as a function.
1389         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
1390         whether it is declared.
1391
1392 2011-09-01  Bruno Haible  <bruno@clisp.org>
1393
1394         Tests for module 'strtoumax'.
1395         * modules/strtoumax-tests: New file.
1396         * tests/test-strtoumax.c: New file.
1397
1398         Tests for module 'strtoimax'.
1399         * modules/strtoimax-tests: New file.
1400         * tests/test-strtoimax.c: New file.
1401
1402         Tests for module 'imaxdiv'.
1403         * modules/imaxdiv-tests: New file.
1404         * tests/test-imaxdiv.c: New file.
1405
1406         Tests for module 'imaxabs'.
1407         * modules/imaxabs-tests: New file.
1408         * tests/test-imaxabs.c: New file.
1409
1410 2011-09-01  Bruno Haible  <bruno@clisp.org>
1411
1412         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
1413         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
1414         pthread_create.
1415
1416 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1417
1418         openat: work around AIX 7.1 fstatat issue
1419         This should fix the problem that was not properly fixed
1420         in the previous change, dated 2011-08-30.
1421         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
1422         __need_system_stat_h defined.
1423         (orig_fstatat) [HAVE_FSTATAT]: New function.
1424         (rpl_fstatat): Go back to the old way of doing things,
1425         except call orig_fstatat instead of fstatat.
1426         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
1427         Remove unnecessary check whether fstatat fills in st_size etc.
1428
1429 2011-09-01  Bruno Haible  <bruno@clisp.org>
1430
1431         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
1432         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
1433         just include the system's header.
1434
1435 2011-08-31  Jim Meyering  <meyering@redhat.com>
1436
1437         tests: avoid spurious assertion failure in test-float.c on ppc64
1438         * tests/test-float.c (test_long_double): Comment out an assertion,
1439         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
1440         with gcc-4.4.4.
1441
1442         maint: indent with spaces, not TABs
1443         I need to get in the habit of running gnulib's "make check".
1444         Both of these would have been caught.
1445         * m4/largefile.m4: Indent with spaces, not TABs.
1446         * lib/parse-datetime.y (iso_8601_time): Likewise.
1447         Spotted by Pádraig Brady.
1448
1449         test-parse-datetime.c: accommodate a relatively strict gcc warning
1450         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
1451         to avoid a warning from gcc's -Werror=missing-declarations.
1452         Insert a few spaces-before-funcall-parenthesis.
1453
1454 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
1455
1456         parse-datetime: accept ISO 8601 date and time rep with "T" separator
1457         The parser now accepts ISO 8601 date-time strings with "T" as the
1458         separator.  It has long parsed dates like "2004-02-29 16:21:42"
1459         with a space between the date and time strings.  Now it also parses
1460         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
1461         variants like "2004-02-29T16:21:42.333-07:00"
1462         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
1463         of day representation using the 'T' separator character.
1464         * doc/parse-datetime.texi (General date syntax): replace use of
1465         deprecated --iso-8601 option with --rfc-3339 in example of date
1466         command output formats that can be parsed.
1467         * tests/test-parse-datetime.c (tm_diff): New function, taken from
1468         lib/parse-datetime.y.
1469         (gmt_offset): New function.
1470         (main): Add additional test cases to validate ISO8601 extended
1471         date and time of day parsing.
1472
1473 2011-08-31  Bruno Haible  <bruno@clisp.org>
1474
1475         freopen: Documentation.
1476         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
1477         name.
1478         Reported by Claudio Bley <claudio.bley@gmail.com>.
1479
1480 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
1481
1482         freopen: Don't crash if the filename argument is NULL.
1483         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
1484         NULL.
1485
1486 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
1487
1488         openat: work around AIX 7.1 fstatat bug
1489         Problem reported by Kevin Brott for GNU tar, in the thread containing
1490         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
1491         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
1492         FSTATAT_ST_SIZE_ETC_BROKEN.
1493         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
1494         rpl_fstatat.
1495         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
1496         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
1497         AC_CHECK_FUNCS_ONCE for fstatat.
1498         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
1499         fchmodat, mkdirat, openat and unlinkat.
1500
1501 2011-08-30  Bruno Haible  <bruno@clisp.org>
1502
1503         Avoid endless recursions if config.h includes some header files.
1504         * lib/fopen.c (__need_FILE): Define already before including config.h.
1505         * lib/freopen.c (__need_FILE): Likewise.
1506         * lib/open.c (__need_system_fcntl_h): Likewise.
1507         * lib/stat.c (__need_system_sys_stat_h): Likewise.
1508         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
1509         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1510
1511 2011-08-25  Karl Berry  <karl@gnu.org>
1512
1513         * config/srclist.txt (ylwrap): new try.
1514         * build-aux/ylwrap: new file.
1515
1516 2011-08-23  Bruno Haible  <bruno@clisp.org>
1517
1518         tmpdir: Use a good default directory on native Windows.
1519         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
1520         (P_tmpdir): Default to _P_tmpdir on native Windows.
1521         (path_search): On native Windows, try the value returned by GetTempPath
1522         before trying P_tmpdir.
1523         * modules/tmpdir (Depends-on): Add pathmax.
1524         Suggested by John Darrington <john@darrington.wattle.id.au>.
1525
1526 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
1527
1528         doc: fix typo in README-release
1529         * top/README-release: Capitalize first word of a sentence.
1530
1531 2011-08-19  Jim Meyering  <meyering@redhat.com>
1532
1533         fts: do not exhaust memory when processing million-entry directories
1534         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
1535         directory would require about 256*N bytes of memory.  Thus, it was
1536         easy to construct a directory too large to be processed by any of
1537         those tools.  With this change, fts' maximum memory utilization is
1538         now limited to around 30MB.
1539         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
1540         (fts_read): When we've processed the final entry (i.e., when
1541         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
1542         using the parent entry to read any remaining entries.  Dispatch
1543         depending on what fts_build returns:
1544         - NULL+stop, aka failure: stop
1545         - NULL otherwise: move up in the dir hierarchy
1546         - non-NULL: handle this new entry
1547         (fts_build): Declare and use new local, continue_readdir.
1548         Prepare to be called from fts_read, when the entries
1549         from a partially-read directory have just been exhausted.
1550         In that case, we'll skip the opendir and instead use the parent's
1551         fts_dirp and derive dir_fd from that.
1552         Finally, in the readdir loop, if we read max_entries entries,
1553         exit the loop ensuring *not* to call closedir.  This is required
1554         so that fts_dirp can be reused on a subsequent call.
1555         Prompted by Ben England's report of memory exhaustion in find
1556         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
1557
1558         maint: fts: move decl of `dp' down into while loop; split a long line
1559         * lib/fts.c (fts_build): No semantic change.
1560
1561         fts: add/use new struct member, fts_dirp
1562         We are about to use this to manage any directory with
1563         too many entries to read all of them into memory at once.
1564         To do that, we'll need to save the DIR* pointer in each
1565         affected FTSENT struct.
1566         * lib/fts_.h: Include <dirent.h>.
1567         (struct FTSENT) [fts_dirp]: New member.
1568         * lib/fts.c (closedir_and_clear): Define.
1569         Use it in place of closedir so that we are sure to
1570         clear the new fts_dirp member when done with it.
1571         (fts_alloc): Initialize the new member.
1572         (fts_lfree): Free, if needed.
1573
1574         maint: fts: give __opendir2 a new parameter and rename
1575         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
1576         than surreptitiously using sole caller's "dir_fd".
1577         (fts_opendir): Rename from __opendir2.
1578
1579         maint: fts.c: remove __opendir2's now-unused parameter, oflag
1580         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
1581
1582         maint: fts.c: correct off-by-one indentation
1583         * lib/fts.c (fts_build): Correct indentation, change style
1584         of a couple of block comments, and bracing style.
1585
1586         maint: fts.c: move __opendir2 #define "up" out of function body
1587         * lib/fts.c (__opendir2): Move "up".  No semantic change.
1588
1589         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
1590         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
1591         out for a long time and besides was useful only on BSD systems.
1592
1593 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
1594
1595         regex: port to Stratus OpenVOS
1596         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
1597         define to empty, rather than attempting nonportable optimizations.
1598         Problem reported by Paul Green in:
1599         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
1600         and fix suggested by Eric Blake in:
1601         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
1602
1603 2011-08-17  Eric Blake  <eblake@redhat.com>
1604
1605         getcwd: fix test failures on mingw
1606         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
1607         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
1608         test if long directory cannot be created, and allow mingw errno.
1609
1610         getcwd-lgpl: fix m4 to match relaxed test for BSD
1611         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
1612         (gl_FUNC_GETCWD_SIGNATURE): New macro.
1613         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
1614         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
1615         signature problem.
1616
1617         getcwd: fix compilation on mingw64
1618         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
1619         getcwd.
1620         Reported by Marc-André Lureau.
1621
1622         pipe2: silence compiler warning
1623         * lib/pipe2.c (pipe2): Hide label if it is not used.
1624
1625 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
1626
1627         relocatable-prog: fix link error
1628         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
1629         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
1630         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
1631         into modules/relocatable-lib without noticing that
1632         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
1633         also needs to build relocatable.c.
1634
1635 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1636
1637         getaddrinfo: fix sh typo in gai_strerrorA decl checking
1638         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
1639         shell code: it contained a 'break' that was not in a loop.
1640         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
1641         via a shell-language loop; this may have been true in old Autoconf
1642         versions, but it's not true in Autoconf 2.68.  I found this bug
1643         when testing coreutils git on Solaris 8, whose shell complains
1644         about the syntax error.
1645
1646 2011-08-12  Simon Josefsson  <simon@josefsson.org>
1647
1648         * lib/base64.c: Fix comment to reference RFC 4648.
1649         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
1650         <gvtulder@gmail.com>.
1651
1652 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1653
1654         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
1655
1656         po/Makefile.in.in: fix make -q problem
1657         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
1658         rule, since there's no file named 'check-macro-version' and its
1659         use as a file breaks make -q.
1660         (all): Don't depend on check-macro-version.
1661         (CHECK_MACRO_VERSION): New macro.
1662         (stamp-po): Use it.
1663
1664         configmake: fix make -q problem
1665         * modules/configmake (configmake.h): Update configmake.h's time stamp
1666         even if the file does not change.  Otherwise, 'make -q' fails.
1667         Problem reported by Simon Josefsson in
1668         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
1669
1670 2011-08-11  Jim Meyering  <meyering@redhat.com>
1671
1672         git-version-gen: correct the advice in a comment
1673         * build-aux/git-version-gen: Correct comment.
1674         Don't recommend to list .tarball-version in .gitignore.
1675
1676 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1677
1678         base64: fix off-by-one buffer size bug
1679         Problem and (trivial) fix reported by Gijs van Tulder in
1680         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
1681         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
1682         * tests/test-base64.c (main): Catch the bug.
1683
1684 2011-08-10  Eric Blake  <eblake@redhat.com>
1685
1686         closein: correct comments
1687         * lib/closein.c (close_stdin): Improve comments.
1688
1689 2011-08-09  Bruno Haible  <bruno@clisp.org>
1690
1691         More tests for 'fseeko'.
1692         * tests/test-fseeko3.c: New file, from Eric Blake.
1693         * tests/test-fseeko3.sh: New file.
1694         * modules/fseeko-tests (Files): Add them.
1695         (TESTS): Add test-fseeko3.sh.
1696         (check_PROGRAMS): Add test-fseeko3.
1697
1698 2011-08-09  Eric Blake  <eblake@redhat.com>
1699
1700         fseeko: remove unneeded hack
1701         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
1702
1703         fseeko: fix bug on glibc
1704         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
1705         Reported by John W. Eaton.
1706
1707 2011-08-08  Bruno Haible  <bruno@clisp.org>
1708
1709         unictype/base: Fix interoperability with preinstalled libunistring.
1710         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
1711         Reported by Simon Josefsson.
1712
1713 2011-08-08  Bruno Haible  <bruno@clisp.org>
1714
1715         iswblank: Detect declaration correctly.
1716         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
1717         AC_CHECK_DECLS invocation.
1718
1719 2011-08-08  Bruno Haible  <bruno@clisp.org>
1720
1721         tcgetsid: Detect declaration correctly.
1722         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
1723         AC_CHECK_DECLS invocation.
1724         Reported by Simon Josefsson.
1725
1726 2011-08-08  Eric Blake  <eblake@redhat.com>
1727
1728         largefile: fix typo that regressed large file support
1729         * modules/largefile (configure.ac-early): Fix section name.
1730
1731 2011-08-06  Karl Berry  <karl@gnu.org>
1732
1733         * MODULES.html.sh (func_all_files): _Noreturn is no longer
1734         a separate module.
1735
1736 2011-08-05  Simon Josefsson  <simon@josefsson.org>
1737
1738         openat: Fix warnings and commens when building unlinkat.c on Hurd.
1739         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
1740         get prototype for free.
1741
1742 2011-08-04  Bruno Haible  <bruno@clisp.org>
1743
1744         Tests for module 'pathmax'.
1745         * modules/pathmax-tests: New file.
1746         * tests/test-pathmax.c: New file.
1747
1748         canonicalize-lgpl: Support larger filenames on the Hurd.
1749         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
1750         Reported by Paul Eggert.
1751
1752         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
1753         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
1754         * lib/chdir-long.h: Include pathmax.h.
1755         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
1756         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
1757         (PATH_MAX): Remove code that is done by pathmax.h.
1758         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
1759         * lib/tmpfile.c: Add a comment.
1760         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
1761         * modules/chdir-long (Depends-on): Add pathmax.
1762         * modules/getcwd (Depends-on): Add pathmax.
1763         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
1764         is not defined.
1765         * doc/posix-headers/limits.texi: Mention the pathmax module.
1766         * NEWS: Mention the change.
1767
1768 2011-08-02  Bruno Haible  <bruno@clisp.org>
1769
1770         pthread_sigmask: Actually use results of gl_THREADLIB.
1771         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
1772         gl_THREADLIB, not gl_[]THREADLIB.
1773         Reported by Eric Blake.
1774
1775 2011-08-02  Jim Meyering  <meyering@redhat.com>
1776
1777         maint.mk: relax the default _gl_TS_function_match regexp
1778         * top/maint.mk (_gl_TS_function_match): Don't require at least one
1779         space between function name and "(" in an "extern" declaration.
1780         That would fail to match a decl with no space there: extern void foo();
1781
1782 2011-07-31  Iain Nicol  <iain@thenicols.net>
1783
1784         git-version-gen: document that EXTRA_DIST must include .version
1785         * build-aux/git-version-gen: In the how-to-use comment, document
1786         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
1787         will fail when run from an unpacked distribution tarball.
1788
1789 2011-08-01  Bruno Haible  <bruno@clisp.org>
1790
1791         wctype-h: Fix last change.
1792         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
1793         REPLACE_TOWLOWER to 0.
1794         Reported by Sam Steingold <sds@gnu.org>.
1795
1796 2011-07-31  Bruno Haible  <bruno@clisp.org>
1797
1798         frexpl: Update autoconf test.
1799         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
1800         according to changes of 2011-06-20.
1801
1802 2011-07-31  Bruno Haible  <bruno@clisp.org>
1803
1804         sys_utsname: Add support for Minix.
1805         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
1806         <sys/utsname.h>.
1807         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1808         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
1809
1810 2011-07-31  Bruno Haible  <bruno@clisp.org>
1811
1812         strings: Add support for Minix.
1813         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
1814         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1815         * doc/posix-headers/strings.texi: Document the Minix problem.
1816
1817 2011-07-31  Bruno Haible  <bruno@clisp.org>
1818
1819         wctype-h: Add support for Minix.
1820         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
1821         REPLACE_TOWLOWER.
1822         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
1823         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
1824         REPLACE_ISWCNTRL.
1825
1826 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
1827
1828         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
1829         This is a performance improvement for 64-bit hosts: it causes the
1830         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
1831
1832 2011-07-31  Bruno Haible  <bruno@clisp.org>
1833
1834         stdioext: Add support for Minix.
1835         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
1836         * lib/fpurge.c (fpurge): Likewise.
1837         * lib/freadahead.c (freadahead): Likewise.
1838         * lib/freadable.c (freadable): Likewise.
1839         * lib/freading.c (freading): Likewise.
1840         * lib/freadptr.c (freadptr): Likewise.
1841         * lib/freadseek.c (freadptrinc): Likewise.
1842         * lib/fseeko.c (rpl_fseeko): Likewise.
1843         * lib/fseterr.c (fseterr): Likewise.
1844         * lib/fwritable.c (fwritable): Likewise.
1845         * lib/fwriting.c (fwriting): Likewise.
1846         * lib/fflush.c (clear_ungetc_buffer): Update comment.
1847         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
1848
1849 2011-07-31  Bruno Haible  <bruno@clisp.org>
1850
1851         errno: Port to Minix.
1852         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
1853         ECONNABORTED are defined.
1854         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
1855         GNULIB_defined_ECONNABORTED): New macros.
1856         * lib/strerror-override.h (strerror_override): Test also
1857         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
1858         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
1859         ECONNABORTED.
1860         * doc/posix-headers/errno.texi: Mention the Minix problem.
1861
1862 2011-07-31  Bruno Haible  <bruno@clisp.org>
1863
1864         Work around declaration collisions on Minix.
1865         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
1866         defined, set REPLACE_MBSINIT.
1867         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
1868         defined, set REPLACE_MBRTOWC.
1869         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
1870         set REPLACE_MBRLEN.
1871         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
1872         defined, set REPLACE_MBSRTOWCS.
1873         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
1874         defined, set REPLACE_WCRTOMB.
1875         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
1876         defined, set REPLACE_WCSRTOMBS.
1877
1878 2011-07-31  Bruno Haible  <bruno@clisp.org>
1879
1880         Add support for Minix with ACK compiler.
1881         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
1882         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
1883         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
1884
1885 2011-07-31  Bruno Haible  <bruno@clisp.org>
1886
1887         Documentation about Minix.
1888         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
1889         * doc/glibc-headers/*.texi: Likewise.
1890         * doc/posix-functions/*.texi: Likewise.
1891         * doc/glibc-functions/*.texi: Likewise.
1892
1893 2011-07-31  Bruno Haible  <bruno@clisp.org>
1894
1895         snippet/warn-on-use: Fix indentation.
1896         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
1897
1898 2011-07-25  Jim Meyering  <meyering@redhat.com>
1899
1900         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1901         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1902         commands.
1903
1904 2011-07-27  Jim Meyering  <meyering@redhat.com>
1905
1906         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1907         * top/maint.mk (gl_extract_significant_defines_): Now that
1908         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1909         gnulib/lib/signal.in.h, and now that we recommend to
1910         define-if-undefined those two symbols in application code,
1911         we must filter them out of the "significant" list.
1912         This avoids a "make syntax-check" failure in coreutils.
1913
1914 2011-07-26  Eric Blake  <eblake@redhat.com>
1915
1916         warnings: add comments about previous patch
1917         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1918         * m4/include_next.m4: Likewise.
1919         * m4/warn-on-use.m4: Likewise.
1920         * m4/warnings.m4: Likewise, and simplify use.
1921         Suggested by Stefano Lattarini.
1922
1923         include-next, warnings: support older autoconf
1924         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1925         AS_VAR_PUSHDEF in a way that works with older autoconf.
1926         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1927         Reported by Daniel P. Berrange.
1928
1929 2011-07-25  Bruno Haible  <bruno@clisp.org>
1930
1931         fseek, ftell: Fix doc.
1932         * doc/posix-functions/fseek.texi: Reword statement about
1933         AC_SYS_LARGEFILE.
1934         * doc/posix-functions/ftell.texi: Likewise.
1935
1936 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1937             Bruno Haible  <bruno@clisp.org>
1938
1939         Add dependencies to the 'largefile' module.
1940         * modules/fopen (Depends-on): Add 'largefile'.
1941         * modules/freopen (Depends-on): Likewise.
1942         * modules/fseeko (Depends-on): Likewise.
1943         * modules/ftello (Depends-on): Likewise.
1944         * modules/glob (Depends-on): Likewise.
1945         * modules/lseek (Depends-on): Likewise.
1946         * modules/lstat (Depends-on): Likewise.
1947         * modules/mkostemp (Depends-on): Likewise.
1948         * modules/mkostemps (Depends-on): Likewise.
1949         * modules/mkstemp (Depends-on): Likewise.
1950         * modules/mkstemps (Depends-on): Likewise.
1951         * modules/open (Depends-on): Likewise.
1952         * modules/openat (Depends-on): Likewise.
1953         * modules/pread (Depends-on): Likewise.
1954         * modules/pwrite (Depends-on): Likewise.
1955         * modules/scandir (Depends-on): Likewise.
1956         * modules/stat (Depends-on): Likewise.
1957         * modules/tmpfile (Depends-on): Likewise.
1958         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1959         since the containing module now depends on the largefile module.
1960         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1961         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1962         off_t is fixed by gnulib.
1963         * doc/posix-functions/freopen.texi: Likewise.
1964         * doc/posix-functions/fseeko.texi: Likewise.
1965         * doc/posix-functions/fstatat.texi: Likewise.
1966         * doc/posix-functions/ftello.texi: Likewise.
1967         * doc/posix-functions/glob.texi: Likewise.
1968         * doc/posix-functions/lseek.texi: Likewise.
1969         * doc/posix-functions/lstat.texi: Likewise.
1970         * doc/posix-functions/mkstemp.texi: Likewise.
1971         * doc/posix-functions/open.texi: Likewise.
1972         * doc/posix-functions/openat.texi: Likewise.
1973         * doc/posix-functions/pread.texi: Likewise.
1974         * doc/posix-functions/pwrite.texi: Likewise.
1975         * doc/posix-functions/scandir.texi: Likewise.
1976         * doc/posix-functions/stat.texi: Likewise.
1977         * doc/posix-functions/tmpfile.texi: Likewise.
1978         * doc/glibc-functions/mkostemp.texi: Likewise.
1979         * doc/glibc-functions/mkostemps.texi: Likewise.
1980         * doc/glibc-functions/mkstemps.texi: Likewise.
1981
1982 2011-07-25  Bruno Haible  <bruno@clisp.org>
1983
1984         fcntl: Move AC_LIBOBJ invocation to module description.
1985         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1986         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1987
1988         fcntl: Remove call-in from fchdir.m4.
1989         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1990         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1991
1992         dup3: Remove potential call-in from fchdir.m4.
1993         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1994         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1995
1996         dup2: Move AC_LIBOBJ invocation to module description.
1997         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1998         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1999         Don't invoke AC_LIBOBJ.
2000         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
2001
2002         dup2: Remove call-in from fchdir.m4.
2003         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
2004         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
2005
2006         fclose: Move AC_LIBOBJ invocation to module description.
2007         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
2008         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
2009         to 1.
2010         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
2011
2012         fclose: Remove call-in from close.m4.
2013         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
2014         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
2015
2016         close: Move AC_LIBOBJ invocation to module description.
2017         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
2018         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
2019         1.
2020         * modules/close (configure.ac): Invoke AC_LIBOBJ.
2021
2022         close: Remove call-in from fchdir.m4.
2023         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
2024         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
2025
2026         open: Move AC_LIBOBJ invocation to module description.
2027         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
2028         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
2029         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
2030
2031         open: Remove call-in from fchdir.m4.
2032         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
2033         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
2034
2035         fchdir: Start to remove gl_REPLACE_* idiom.
2036         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
2037         (gl_FUNC_FCHDIR): Invoke it.
2038
2039 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2040
2041         * lib/ftell.c (ftell): Comment out cast.
2042
2043         close: use gl_REPLACE_FCLOSE only if defined
2044         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
2045         is defined.  The close module doesn't depend on the fclose module
2046         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
2047         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
2048         I reproduced the problem with "./gnulib-tool --test close sys_socket".
2049
2050 2011-07-24  Jim Meyering  <meyering@redhat.com>
2051
2052         test-select.h: avoid warning when using gcc's -Wmissing-declarations
2053         * tests/test-select.h (test_function): Declare as "static".
2054
2055 2011-07-24  Bruno Haible  <bruno@clisp.org>
2056
2057         doc: Mention the effects of AC_SYS_LARGEFILE.
2058         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
2059         on this function.
2060         * doc/posix-functions/aio_error.texi: Likewise.
2061         * doc/posix-functions/aio_fsync.texi: Likewise.
2062         * doc/posix-functions/aio_read.texi: Likewise.
2063         * doc/posix-functions/aio_return.texi: Likewise.
2064         * doc/posix-functions/aio_suspend.texi: Likewise.
2065         * doc/posix-functions/aio_write.texi: Likewise.
2066         * doc/posix-functions/fgetpos.texi: Likewise.
2067         * doc/posix-functions/fopen.texi: Likewise.
2068         * doc/posix-functions/freopen.texi: Likewise.
2069         * doc/posix-functions/fsetpos.texi: Likewise.
2070         * doc/posix-functions/fstatvfs.texi: Likewise.
2071         * doc/posix-functions/ftruncate.texi: Likewise.
2072         * doc/posix-functions/ftw.texi: Likewise.
2073         * doc/posix-functions/getrlimit.texi: Likewise.
2074         * doc/posix-functions/glob.texi: Likewise.
2075         * doc/posix-functions/lio_listio.texi: Likewise.
2076         * doc/posix-functions/lockf.texi: Likewise.
2077         * doc/posix-functions/mkstemp.texi: Likewise.
2078         * doc/posix-functions/mmap.texi: Likewise.
2079         * doc/posix-functions/nftw.texi: Likewise.
2080         * doc/posix-functions/openat.texi: Likewise.
2081         * doc/posix-functions/opendir.texi: Likewise.
2082         * doc/posix-functions/posix_fadvise.texi: Likewise.
2083         * doc/posix-functions/posix_fallocate.texi: Likewise.
2084         * doc/posix-functions/pread.texi: Likewise.
2085         * doc/posix-functions/pwrite.texi: Likewise.
2086         * doc/posix-functions/readdir.texi: Likewise.
2087         * doc/posix-functions/readdir_r.texi: Likewise.
2088         * doc/posix-functions/rewinddir.texi: Likewise.
2089         * doc/posix-functions/scandir.texi: Likewise.
2090         * doc/posix-functions/seekdir.texi: Likewise.
2091         * doc/posix-functions/setrlimit.texi: Likewise.
2092         * doc/posix-functions/statvfs.texi: Likewise.
2093         * doc/posix-functions/telldir.texi: Likewise.
2094         * doc/posix-functions/tmpfile.texi: Likewise.
2095         * doc/posix-functions/truncate.texi: Likewise.
2096         * doc/glibc-functions/fallocate.texi: Likewise.
2097         * doc/glibc-functions/fstatfs.texi: Likewise.
2098         * doc/glibc-functions/fts_children.texi: Likewise.
2099         * doc/glibc-functions/fts_read.texi: Likewise.
2100         * doc/glibc-functions/getdirentries.texi: Likewise.
2101         * doc/glibc-functions/mkostemp.texi: Likewise.
2102         * doc/glibc-functions/mkostemps.texi: Likewise.
2103         * doc/glibc-functions/mkstemps.texi: Likewise.
2104         * doc/glibc-functions/preadv.texi: Likewise.
2105         * doc/glibc-functions/pwritev.texi: Likewise.
2106         * doc/glibc-functions/sendfile.texi: Likewise.
2107         * doc/glibc-functions/statfs.texi: Likewise.
2108
2109 2011-07-24  Bruno Haible  <bruno@clisp.org>
2110
2111         doc: Fix typo.
2112         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
2113
2114 2011-07-24  Bruno Haible  <bruno@clisp.org>
2115
2116         doc: Mention fsusage.
2117         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
2118
2119 2011-07-24  Bruno Haible  <bruno@clisp.org>
2120
2121         doc: Mention new glibc headers and functions.
2122         * doc/glibc-headers/gshadow.texi: New file.
2123         * doc/glibc-functions/endsgent.texi: New file.
2124         * doc/glibc-functions/fgetsgent.texi: New file.
2125         * doc/glibc-functions/fgetsgent_r.texi: New file.
2126         * doc/glibc-functions/getsgent.texi: New file.
2127         * doc/glibc-functions/getsgent_r.texi: New file.
2128         * doc/glibc-functions/getsgnam.texi: New file.
2129         * doc/glibc-functions/getsgnam_r.texi: New file.
2130         * doc/glibc-functions/putsgent.texi: New file.
2131         * doc/glibc-functions/setsgent.texi: New file.
2132         * doc/glibc-functions/sgetsgent.texi: New file.
2133         * doc/glibc-functions/sgetsgent_r.texi: New file.
2134         * doc/glibc-functions/malloc_info.texi: New file.
2135         * doc/glibc-functions/preadv.texi: New file.
2136         * doc/glibc-functions/pwritev.texi: New file.
2137         * doc/glibc-functions/register_printf_modifier.texi: New file.
2138         * doc/glibc-functions/register_printf_specifier.texi: New file.
2139         * doc/glibc-functions/register_printf_type.texi: New file.
2140         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
2141         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
2142         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
2143         * doc/glibc-functions/pthread_getname_np.texi: New file.
2144         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
2145         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
2146         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
2147         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
2148         * doc/glibc-functions/pthread_setname_np.texi: New file.
2149         * doc/glibc-functions/pthread_sigqueue.texi: New file.
2150         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
2151         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
2152         * doc/glibc-functions/qsort_r.texi: New file.
2153         * doc/glibc-functions/quick_exit.texi: New file.
2154         * doc/glibc-functions/syncfs.texi: New file.
2155         * doc/gnulib.texi: Include them.
2156         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
2157         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
2158         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
2159         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
2160         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
2161         * doc/glibc-functions/execvpe.texi: Likewise.
2162
2163 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2164
2165         ftell: don't include <unistd.h>
2166         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
2167         guaranteed to define off_t, and the ftell module depends on the
2168         stdio module.
2169
2170         ftell: do not assume wraparound signed arithmetic
2171         * lib/ftell.c: Include <limits.h>.
2172         (ftell): Don't assume wraparound signed arithmetic.
2173
2174 2011-07-24  Bruno Haible  <bruno@clisp.org>
2175
2176         close: No longer depend on module 'fclose'.
2177         * modules/close (Depends-on): Remove fclose.
2178         * NEWS: Mention the change.
2179         Suggested by Sam Steingold <sds@gnu.org>.
2180
2181 2011-07-24  Bruno Haible  <bruno@clisp.org>
2182
2183         fsusage: Enable large volume support on AIX >= 5.2.
2184         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
2185         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
2186         instead of STAT_STATVFS.
2187         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
2188
2189         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
2190         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
2191         f_blocks field only on MacOS X.
2192
2193         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
2194         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
2195         * modules/fsusage (Depends-on): Add largefile.
2196
2197 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2198
2199         * README: Modernize discussion of signed integers.
2200         Assuming overflow wraparound is no longer safe.
2201         Mention ones' complement and signed magnitude.
2202
2203 2011-07-22  Bruno Haible  <bruno@clisp.org>
2204
2205         select tests, pselect tests: Refactor.
2206         * tests/test-select.h: New file, extracted from tests/test-select.c.
2207         (select_fn): New type.
2208         (test, do_select, do_select_nowait, do_select_wait, test_tty,
2209         test_connect_first, test_accept_first, test_pair, test_socket_pair,
2210         test_pipe): Add my_select argument.
2211         (test_function): Renamed from main. Add my_select argument.
2212         * tests/test-select.c: Move most code to tests/test-select.h. Include
2213         test-select.h.
2214         * modules/select-tests (Files): Add tests/test-select.h.
2215         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
2216         (my_select, main): New functions.
2217         * modules/pselect-tests (Files): Add tests/test-select.h,
2218         tests/macros.h, tests/signature.h.
2219         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
2220         (configure.ac): Check for <sys/wait.h>.
2221
2222 2011-07-22  Bruno Haible  <bruno@clisp.org>
2223
2224         sys_select tests: Check the signature of FD_*.
2225         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
2226         signature tests from here...
2227         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
2228         here.
2229         * modules/sys_select-tests (Files): Add tests/signature.h.
2230
2231 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
2232
2233         largefile: new module, replacing large-inode
2234         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
2235         * MODULES.html.sh: Add largefile, remove large-inode.
2236         * modules/largefile, m4/largefile.m4: New files.
2237         * modules/large-inode, m4/large-inode.m4: Remove.
2238
2239         fsusage: port to MacOS X 10.7 with 4 TiB file systems
2240         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
2241         implementations that use only 32 bits to count blocks.
2242         On typical hosts with 1024-byte blocks, this fails with file
2243         systems as small as 4 TiB.  Problem reported by Herb Wartens
2244         <http://debbugs.gnu.org/9140> and this should also fix a similar
2245         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
2246
2247         large-inode: New module
2248         * MODULES.html.sh: Add it.
2249         * modules/large-inode, m4/large-inode.m4: New files.
2250
2251         extensions: Enable extensions on MacOS X 10.5 and later.
2252         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
2253
2254 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
2255
2256         file-has-acl: use acl_extended_file_nofollow if available
2257         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
2258         (acl_extended_file): New macro.
2259         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
2260         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
2261
2262 2011-07-21  Bruno Haible  <bruno@clisp.org>
2263
2264         Declare system functions in a way that works with C++.
2265         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
2266         declare fdopendir as extern "C".
2267         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
2268         declare frexpl as extern "C".
2269         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
2270         declare gai_strerror as extern "C".
2271         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
2272         programs, declare gai_strerror as extern "C".
2273         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
2274         declare getlogin_r as extern "C".
2275         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
2276         as extern "C".
2277         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
2278         declare ldexpl as extern "C".
2279         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
2280         as extern "C".
2281         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
2282         program, declare getmntinfo as extern "C".
2283         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
2284         stpncpy as extern "C".
2285         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
2286         program, declare __xpg_strerror_r as extern "C".
2287         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
2288         strndup as extern "C".
2289         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
2290         declare memset and bzero as extern "C".
2291         Reported by Sam Steingold <sds@gnu.org>.
2292
2293 2011-07-12  Jim Meyering  <meyering@redhat.com>
2294
2295         maint.mk: prohibit inclusion of "verify.h" without use
2296         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
2297
2298 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2299
2300         timer-time: A new module to check for timer_settime()
2301         * m4/timer_time.m4: Check for the posix function.
2302         * modules/timer-time: Add the new module.
2303         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
2304         Mention it.
2305
2306 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
2307             Bruno Haible  <bruno@clisp.org>
2308
2309         pthread_sigmask: assume POSIX threads if --avoid=threadlib
2310         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
2311         not defined, assume POSIX threads and look for pthread_sigmask in
2312         $LIBS, without changing $CPPFLAGS.
2313
2314 2011-07-19  Bruno Haible  <bruno@clisp.org>
2315
2316         strstr: Update cross-compilation guess.
2317         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
2318         CPUs, guess no, in view of glibc
2319         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
2320         Suggested by Eric Blake. Reported by Reuben Thomas.
2321
2322 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2323
2324         getopt-gnu: suppress core dumps from detection code
2325         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
2326         to suppress core dumps that may well occur on glibc systems.
2327         * modules/getopt-gnu: Depend on nocrash.
2328
2329 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
2330
2331         pthread_sigmask: ensure usleep is declared
2332         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
2333         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
2334
2335 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2336
2337         doc: Document NonStop portability issues.
2338         * doc/posix-functions/sigaction.texi (sigaction):
2339         * doc/posix-headers/signal.texi (signal.h):
2340         Document NonStop.  See Joachim Schmitz in
2341         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
2342
2343 2011-07-15  Bruno Haible  <bruno@clisp.org>
2344
2345         ffsl, ffsll: Avoid unportable behaviour.
2346         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
2347
2348 2011-07-15  Bruno Haible  <bruno@clisp.org>
2349
2350         ffs: More tests.
2351         * tests/test-ffs.c (NBITS): New macro.
2352         (main): Add more tests.
2353         * tests/test-ffsl.c (NBITS): New macro.
2354         (main): Add more tests.
2355         * tests/test-ffsll.c (NBITS): New macro.
2356         (main): Add more tests.
2357
2358 2011-07-15  Eric Blake  <eblake@redhat.com>
2359
2360         ffsl, ffsll: new modules
2361         * modules/ffsl: New file.
2362         * modules/ffsll: Likewise.
2363         * m4/ffsl.m4: Likewise.
2364         * m4/ffsll.m4: Likewise.
2365         * lib/ffsl.c: Likewise.
2366         * lib/ffsl.h: Likewise.
2367         * lib/ffsll.c: Likewise.
2368         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
2369         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
2370         * modules/string (Makefile.am): Substitute witnesses.
2371         * lib/strings.in.h (ffsl, ffsll): Declare.
2372         * modules/ffsl-tests: New test file.
2373         * modules/ffsll-tests: Likewise.
2374         * tests/test-ffsl.c: Likewise.
2375         * tests/test-ffsll.c: Likewise.
2376         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2377         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
2378         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
2379
2380         ffs: fix m4 prerequisite
2381         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
2382
2383         ffs: avoid undefined behavior
2384         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
2385         * tests/test-ffs.c (naive, main): Avoid signed shifts.
2386         Reported by Bruno Haible.
2387
2388 2011-07-12  Bruno Haible  <bruno@clisp.org>
2389
2390         pthread_sigmask: Rely on module 'threadlib'.
2391         * modules/pthread_sigmask (Depends-on): Add threadlib.
2392         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
2393         is defined.
2394
2395 2011-07-12  Bruno Haible  <bruno@clisp.org>
2396
2397         regex: Depend on module 'strcase'.
2398         * modules/regex (Depends-on): Add strcase, for strcasecmp().
2399
2400 2011-07-12  Jim Meyering  <meyering@redhat.com>
2401
2402         warn-on-use: fix typo in file name
2403         * modules/snippet/warn-on-use (Files): Correct file name:
2404         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
2405
2406 2011-07-12  Bruno Haible  <bruno@clisp.org>
2407
2408         strings: Document module.
2409         * doc/posix-headers/strings.texi: Mention module 'strings'.
2410
2411 2011-07-12  Bruno Haible  <bruno@clisp.org>
2412
2413         Rename module '_Noreturn' to 'snippet/_Noreturn'.
2414         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
2415         (Files, Makefile.am): Update.
2416         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
2417         * modules/stdlib (Depends-on): Update.
2418
2419 2011-07-12  Bruno Haible  <bruno@clisp.org>
2420
2421         * NEWS: Mention the changes.
2422
2423         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
2424         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
2425         (Files, Makefile.am): Update.
2426         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
2427         * modules/arpa_inet (Depends-on): Update.
2428         * modules/ctype (Depends-on): Update.
2429         * modules/dirent (Depends-on): Update.
2430         * modules/fcntl-h (Depends-on): Update.
2431         * modules/glob (Depends-on): Update.
2432         * modules/iconv-h (Depends-on): Update.
2433         * modules/inttypes-incomplete (Depends-on): Update.
2434         * modules/langinfo (Depends-on): Update.
2435         * modules/locale (Depends-on): Update.
2436         * modules/math (Depends-on): Update.
2437         * modules/netdb (Depends-on): Update.
2438         * modules/poll-h (Depends-on): Update.
2439         * modules/pty (Depends-on): Update.
2440         * modules/search (Depends-on): Update.
2441         * modules/signal (Depends-on): Update.
2442         * modules/spawn (Depends-on): Update.
2443         * modules/stdio (Depends-on): Update.
2444         * modules/stdlib (Depends-on): Update.
2445         * modules/string (Depends-on): Update.
2446         * modules/strings (Depends-on): Update.
2447         * modules/sys_file (Depends-on): Update.
2448         * modules/sys_ioctl (Depends-on): Update.
2449         * modules/sys_select (Depends-on): Update.
2450         * modules/sys_socket (Depends-on): Update.
2451         * modules/sys_stat (Depends-on): Update.
2452         * modules/sys_time (Depends-on): Update.
2453         * modules/sys_times (Depends-on): Update.
2454         * modules/sys_utsname (Depends-on): Update.
2455         * modules/sys_wait (Depends-on): Update.
2456         * modules/termios (Depends-on): Update.
2457         * modules/time (Depends-on): Update.
2458         * modules/unistd (Depends-on): Update.
2459         * modules/wchar (Depends-on): Update.
2460         * modules/wctype-h (Depends-on): Update.
2461         * MODULES.html.sh (Support for building libraries and executables):
2462         Update.
2463
2464         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
2465         * modules/snippet/unused-parameter: Renamed from
2466         modules/unused-parameter.
2467         (Files, Makefile.am): Update.
2468         * build-aux/snippet/unused-parameter.h: Renamed from
2469         build-aux/unused-parameter.h.
2470         * modules/selinux-h (Depends-on): Update.
2471         * modules/unistr/base (Depends-on): Update.
2472         * MODULES.html.sh (Core language properties): Update.
2473
2474         Rename module 'link-warning' to 'snippet/link-warning'.
2475         * modules/snippet/link-warning: Renamed from modules/link-warning.
2476         (Files, Makefile.am): Update.
2477         * build-aux/snippet/link-warning.h: Renamed from
2478         build-aux/link-warning.h.
2479         * MODULES.html.sh (Support for building libraries and executables):
2480         Update.
2481
2482         Rename module 'c++defs' to 'snippet/c++defs'.
2483         * modules/snippet/c++defs: Renamed from modules/c++defs.
2484         (Files, Makefile.am): Update.
2485         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
2486         * modules/arpa_inet (Depends-on): Update.
2487         * modules/ctype (Depends-on): Update.
2488         * modules/dirent (Depends-on): Update.
2489         * modules/fcntl-h (Depends-on): Update.
2490         * modules/glob (Depends-on): Update.
2491         * modules/iconv-h (Depends-on): Update.
2492         * modules/langinfo (Depends-on): Update.
2493         * modules/locale (Depends-on): Update.
2494         * modules/math (Depends-on): Update.
2495         * modules/netdb (Depends-on): Update.
2496         * modules/poll-h (Depends-on): Update.
2497         * modules/pty (Depends-on): Update.
2498         * modules/search (Depends-on): Update.
2499         * modules/signal (Depends-on): Update.
2500         * modules/spawn (Depends-on): Update.
2501         * modules/stdio (Depends-on): Update.
2502         * modules/stdlib (Depends-on): Update.
2503         * modules/string (Depends-on): Update.
2504         * modules/strings (Depends-on): Update.
2505         * modules/sys_ioctl (Depends-on): Update.
2506         * modules/sys_select (Depends-on): Update.
2507         * modules/sys_socket (Depends-on): Update.
2508         * modules/sys_stat (Depends-on): Update.
2509         * modules/sys_time (Depends-on): Update.
2510         * modules/sys_wait (Depends-on): Update.
2511         * modules/termios (Depends-on): Update.
2512         * modules/time (Depends-on): Update.
2513         * modules/unistd (Depends-on): Update.
2514         * modules/wchar (Depends-on): Update.
2515         * modules/wctype-h (Depends-on): Update.
2516
2517         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
2518         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
2519         (Files, Makefile.am): Update.
2520         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
2521         * modules/argv-iter (Depends-on): Update.
2522         * modules/arpa_inet (Depends-on): Update.
2523         * modules/dirent (Depends-on): Update.
2524         * modules/fcntl-h (Depends-on): Update.
2525         * modules/fnmatch (Depends-on): Update.
2526         * modules/getopt-posix (Depends-on): Update.
2527         * modules/glob (Depends-on): Update.
2528         * modules/iconv-h (Depends-on): Update.
2529         * modules/inttypes-incomplete (Depends-on): Update.
2530         * modules/locale (Depends-on): Update.
2531         * modules/math (Depends-on): Update.
2532         * modules/netdb (Depends-on): Update.
2533         * modules/search (Depends-on): Update.
2534         * modules/signal (Depends-on): Update.
2535         * modules/spawn (Depends-on): Update.
2536         * modules/stdio (Depends-on): Update.
2537         * modules/stdlib (Depends-on): Update.
2538         * modules/string (Depends-on): Update.
2539         * modules/strings (Depends-on): Update.
2540         * modules/sys_socket (Depends-on): Update.
2541         * modules/sys_stat (Depends-on): Update.
2542         * modules/sys_time (Depends-on): Update.
2543         * modules/sys_times (Depends-on): Update.
2544         * modules/sys_utsname (Depends-on): Update.
2545         * modules/time (Depends-on): Update.
2546         * modules/unistd (Depends-on): Update.
2547         * modules/wchar (Depends-on): Update.
2548         * MODULES.html.sh (Support for building libraries and executables):
2549         Update.
2550
2551 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2552
2553         Improvements on _Noreturn and related modules.
2554
2555         modules/_Exit-tests: test _Noreturn too
2556         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
2557         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
2558         (main): Use them.
2559
2560         stdnoreturn, stdnoreturn-tests: remove modules
2561         They're not needed here and a bit premature for use elsewhere.  See
2562         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
2563         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2564         * tests/test-stdnoreturn.c: Remove files.
2565         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
2566         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
2567         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
2568         and using noreturn.
2569         * modules/openat, modules/sigpipe-die, modules/xalloc:
2570         * modules/xmemdup0, modules/xstrtol:
2571         Remove dependency on stdnoreturn.
2572
2573         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
2574         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
2575         Reparenthesize to avoid GCC warning.
2576         Support Microsoft's syntax.
2577         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
2578
2579         _Noreturn-tests: remove module
2580         * modules/_Noreturn-tests: Remove.
2581         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
2582         * tests/test-_Noreturn.c: Remove.
2583         * tests/test-stdnoreturn.c: Merge from the old
2584         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
2585
2586 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2587
2588         _Noreturn, stdnoreturn, and related modules.
2589
2590         * top/maint.mk: Adjust to new noreturn support.
2591         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
2592         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
2593
2594         xalloc: use stdnoreturn.h
2595         * lib/xalloc.h: Include <stdnoreturn.h>.
2596         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2597         * modules/xalloc (Depends-on): Add stdnoreturn.
2598
2599         xstrtol: use stdnoreturn.h
2600         * lib/xstrtol.h: Include <stdnoreturn.h>.
2601         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2602         * modules/xstrtol (Depends-on): Add stdnoreturn.
2603
2604         xmemdup0: use stdnoreturn.h
2605         * lib/xmemdup0.h: Include <stdnoreturn.h>.
2606         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2607         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
2608
2609         sigpipe-die: use stdnoreturn.h
2610         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
2611         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2612         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
2613
2614         openat: use stdnoreturn.h
2615         * lib/openat.h: Include <stdnoreturn.h>.
2616         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2617         * modules/openat (Depends-on): Add stdnoreturn.
2618
2619         * lib/openat-die.c (openat_save_fail): Modernize comment.
2620
2621         * lib/xalloc-die.c (xalloc_die): Modernize comment.
2622
2623         * lib/glthread/thread.h: Modernize comment.
2624
2625         obstack: use _Noreturn
2626         * lib/obstack.c (__attribute__): Remove macro.
2627         (print_and_abort): Use _Noreturn.
2628
2629         c-stack: use _Noreturn
2630         * lib/c-stack.c (die, overflow_handler, segv_handler):
2631         Use _Noreturn rather than __attribute__((noreturn)).
2632
2633         argmatch-tests, exclude_tests: use _Noreturn
2634         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
2635         Remove.
2636         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
2637
2638         stdlib: use _Noreturn
2639         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
2640         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
2641         * modules/stdlib (Depends-on): Add _Noreturn.
2642         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
2643
2644         stdnoreturn-tests: new module
2645         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
2646
2647         stdnoreturn: new module
2648         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
2649         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
2650
2651         _Noreturn-tests: new module
2652         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
2653
2654         _Noreturn: new module
2655         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
2656         New section, mentioning it.
2657         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
2658
2659         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
2660
2661 2011-07-11  Eric Blake  <eblake@redhat.com>
2662
2663         ffs: new module
2664         * modules/ffs: New file.
2665         * m4/ffs.m4: Likewise.
2666         * lib/ffs.c: Likewise.
2667         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
2668         * modules/strings (Makefile.am): Substitute witness.
2669         (Depends-on): Add c++defs.
2670         * lib/strings.in.h (ffs): Declare.
2671         * modules/ffs-tests: New test file.
2672         * tests/test-ffs.c: Test new module.
2673         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2674         * doc/posix-functions/ffs.texi (ffs): Likewise.
2675
2676         regex: avoid compiler warning
2677         * lib/regex.c (includes): Include <strings.h>, for use of
2678         strcasecmp in regcomp.c.
2679         Reported by Joachim Schmitz.
2680
2681 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2682
2683         stdint: respect system's intmax_t if INTMAX_MAX
2684         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
2685         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
2686         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
2687         long but int64_t is long long, and where we will clash with the
2688         system intmax_t if we override it.  See
2689         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
2690         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
2691         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
2692         similarly for UINTMAX_C.
2693
2694 2011-07-08  Bruno Haible  <bruno@clisp.org>
2695
2696         pthread_sigmask tests: Avoid a compiler warning.
2697         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
2698         non-zero.
2699
2700         sigprocmask tests: A better way to avoid a compiler warning.
2701         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
2702         (main): Complain if system() returns non-zero.
2703         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
2704
2705 2011-07-08  Bruno Haible  <bruno@clisp.org>
2706
2707         pthread_sigmask: Work around IRIX bug.
2708         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
2709         bug.
2710         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
2711         there may be unblocked pending signals.
2712         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
2713
2714 2011-07-08  Bruno Haible  <bruno@clisp.org>
2715
2716         pthread_sigmask: Work around Cygwin bug.
2717         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
2718         bug.
2719         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
2720         the system's pthread_sigmask function.
2721         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
2722
2723 2011-07-08  Bruno Haible  <bruno@clisp.org>
2724
2725         pthread_sigmask: Work around bug in single-threaded implementation.
2726         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
2727         FreeBSD, HP-UX, Solaris bug.
2728         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
2729         * lib/pthread_sigmask.c: Include <stddef.h>.
2730         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
2731         the system's pthread_sigmask function.
2732         * modules/pthread_sigmask (configure.ac): Invoke
2733         gl_PREREQ_PTHREAD_SIGMASK.
2734         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
2735         HP-UX, Solaris.
2736
2737 2011-07-08  Eric Blake  <eblake@redhat.com>
2738
2739         test-sigprocmask: avoid compiler warning
2740         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
2741         * tests/test-sigprocmask.c (main): Use it to silence warning.
2742         Reported by Jim Meyering.
2743
2744         test-snprintf: avoid compiler warning
2745         * tests/test-snprintf.c (main): Avoid shadowed declaration.
2746         * tests/test-vsnprintf.c (main): Likewise.
2747         Reported by Jim Meyering.
2748
2749 2011-07-08  Bruno Haible  <bruno@clisp.org>
2750
2751         Tests for module 'pthread_sigmask'.
2752         * modules/pthread_sigmask-tests: New file.
2753         * tests/test-pthread_sigmask1.c: New file, based on
2754         tests/test-sigprocmask.c.
2755         * tests/test-pthread_sigmask2.c: New file.
2756
2757 2011-07-08  Jim Meyering  <meyering@redhat.com>
2758
2759         test-getopt.h: avoid warning about an unused variable
2760         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
2761
2762 2011-07-07  Jim Meyering  <meyering@redhat.com>
2763
2764         maint: reduce list of files exempt from sc_prohibit_leading_TABs
2765         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
2766         now that it no longer contains leading TABs.
2767         Remove unused "url=FIXME" statement.
2768
2769 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2770
2771         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
2772         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2773         When gl_THREADLIB is not in use, assume that the POSIX sematics
2774         are desired.  This is better for Emacs, which uses POSIX semantics
2775         on GNUish and/or POSIXish platforms, and does not use threads at
2776         all otherwise.
2777
2778         pthread_sigmask: fix typo when testing for libraries
2779         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2780         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
2781
2782 2011-07-08  Eric Blake  <eblake@redhat.com>
2783
2784         fts: introduce FTS_NOATIME
2785         * lib/fts_.h (FTS_NOATIME): New bit flag.
2786         (FTS_OPTIONMASK): Adjust.
2787         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
2788         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
2789
2790 2011-07-08  Bruno Haible  <bruno@clisp.org>
2791
2792         Tests for module 'thread'.
2793         * modules/thread-tests: New file.
2794         * tests/test-thread_self.c: New file.
2795         * tests/test-thread_create.cc: New file.
2796
2797 2011-07-08  Bruno Haible  <bruno@clisp.org>
2798
2799         thread: Avoid gcc warnings when using gl_thread_self().
2800         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
2801         'void *'.
2802         (gl_thread_self_pointer): Update.
2803
2804 2011-07-07  Bruno Haible  <bruno@clisp.org>
2805
2806         signal-c++-tests: Check declaration of pthread_sigmask.
2807         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
2808         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
2809         $(LIB_PTHREAD_SIGMASK).
2810
2811 2011-07-07  Bruno Haible  <bruno@clisp.org>
2812
2813         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
2814         * lib/signal.in.h (pthread_sigmask): Override if
2815         REPLACE_PTHREAD_SIGMASK is 1.
2816         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2817         REPLACE_PTHREAD_SIGMASK.
2818         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
2819         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
2820         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
2821         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2822         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
2823
2824 2011-07-07  Bruno Haible  <bruno@clisp.org>
2825
2826         pthread_sigmask: Ensure declaration in <signal.h>.
2827         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
2828         include <pthread.h>.
2829         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
2830         problem.
2831
2832 2011-07-07  Bruno Haible  <bruno@clisp.org>
2833
2834         pthread_sigmask: Document the module.
2835         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
2836
2837 2011-07-07  Bruno Haible  <bruno@clisp.org>
2838
2839         pthread_sigmask: Follow gnulib conventions.
2840         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
2841         gl_PTHREAD_SIGMASK.
2842         * modules/pthread_sigmask (configure.ac): Update.
2843
2844 2011-07-07  Bruno Haible  <bruno@clisp.org>
2845
2846         pthread_sigmask: Make declaration C++ safe.
2847         * lib/signal.in.h: In two special conditions, just do an #include_next.
2848         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2849         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
2850         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2851         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2852         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
2853         not REPLACE_PTHREAD_MASK.
2854         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
2855         not REPLACE_PTHREAD_MASK.
2856         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2857
2858 2011-07-07  Bruno Haible  <bruno@clisp.org>
2859
2860         pthread_sigmask: Fix return value.
2861         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
2862         * lib/pthread_sigmask.c: New file.
2863         * modules/pthread_sigmask (Files): Add it.
2864         (configure.ac): Invoke AC_LIBOBJ.
2865
2866 2011-07-07  Eric Blake  <eblake@redhat.com>
2867
2868         getopt: more portable argv creation
2869         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
2870         const, use char arrays rather than strings.
2871         Suggested by Paul Eggert.
2872
2873 2011-07-07  Bruno Haible  <bruno@clisp.org>
2874
2875         Tests for module 'sigprocmask'.
2876         * modules/sigprocmask-tests: New file.
2877         * tests/test-sigprocmask.c: New file.
2878
2879 2011-07-07  Bruno Haible  <bruno@clisp.org>
2880
2881         float tests: Tweak.
2882         * tests/test-float.c (main): Tweak skip message.
2883
2884 2011-07-07  Eric Blake  <eblake@redhat.com>
2885
2886         getopt: avoid compiler warning during configure
2887         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
2888         assigning string literals to non-const pointer.
2889
2890         getopt-gnu: avoid crash in glibc getopt
2891         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
2892         * tests/test-getopt.h (test_getopt): Enhance test.
2893         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2894         * doc/posix-functions/getopt.texi (getopt): Document it.
2895         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2896         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2897         Likewise.
2898
2899 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2900
2901         getopt: handle W; without long options in getopt [BZ #12922]
2902         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2903         but no long options are defined, just return 'W'.
2904
2905 2011-07-07  Bruno Haible  <bruno@clisp.org>
2906
2907         Avoid literal tabs.
2908         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2909         variable containing a tab instead of a literal tab.
2910         Reported by Jim Meyering.
2911
2912 2011-07-07  Bruno Haible  <bruno@clisp.org>
2913
2914         Comments.
2915         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2916
2917 2011-07-06  Bruno Haible  <bruno@clisp.org>
2918
2919         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2920         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2921         <winsock2.h>.
2922         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2923         lib/sys_socket.in.h.
2924         (close, gethostname): Hide declarations from <winsock2.h>.
2925         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2926         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2927         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2928         (select): Don't override if gnulib's <sys/select.h> was already
2929         included.
2930         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2931         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2932         setsockopt, shutdown, select): Tweak indentation.
2933
2934 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2935
2936         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2937         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2938         in an application that does not use the sys_select module.
2939
2940 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2941
2942         poll: do not return 0 on timeout=-1
2943         * lib/poll.c: Loop with yield if no events occured
2944
2945 2011-07-06  Eric Blake  <eblake@redhat.com>
2946
2947         pthread_sigmask: always replace when not using pthread
2948         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2949         replacement when using some threading other than pthread.  Fix
2950         logic bug.
2951
2952 2011-07-06  Bruno Haible  <bruno@clisp.org>
2953
2954         Comments.
2955         * m4/printf.m4: Update comments about mingw.
2956
2957 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2958
2959         sys_select: define sigset_t more portably
2960         * lib/sys_select.in.h: Always include <sys/types.h>, since
2961         we now need sigset_t and mingw defines it there.
2962         Include <signal.h> before split inclusion guard, to avoid
2963         mishaps on Solaris, whose <signal.h> eventually includes us.
2964         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2965         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2966         which come from ...
2967         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2968         gl_CHECK_TYPE_SIGSET_T.
2969         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2970         does the real work.
2971         * modules/sys_select (Depends-on): Add 'signal'.
2972
2973         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2974         Suggested by Bruno Haible.
2975
2976         pselect: Use pthread_sigmask, not sigprocmask.
2977         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2978         multithreaded apps better than sigprocmask does.
2979         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2980         sigprocmask directly.
2981
2982 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2983
2984         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2985         Don't #undef,  since we don't need any underlying pselect.
2986         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2987         (Depends-on): Add select.
2988         (Link): Add $(LIBSOCKET).
2989         These changes suggested by Bruno Haible.
2990
2991         pselect: document better
2992         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2993         * doc/posix-functions/pselect.texi (pselect): Document new module.
2994
2995         pthread_sigmask: new module
2996         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2997         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2998         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2999         This is done only as a macro; I don't know how well that'll
3000         work for C++.  Move <sys/types.h> include before the include_next,
3001         to avoid mishap on Solaris.
3002         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
3003         * modules/signal (Makefile.am): Substitute the check's results.
3004         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
3005
3006         test-pselect: new module
3007         * modules/pselect-tests, tests/test-pselect.c: New files.
3008         * tests/test-select.c, tests/test-sys_select-c++.cc:
3009         If TEST_PSELECT is defined, test pselect instead of testing select.
3010
3011         * tests/test-sys_select.c (sigset_t): Test for it, too.
3012         Suggested by Bruno Haible.
3013
3014 2011-07-05  Eric Blake  <eblake@redhat.com>
3015
3016         snprintf: guarantee %1$d, for libintl
3017         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
3018         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
3019         * doc/posix-functions/snprintf.texi (snprintf): Update.
3020         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
3021         * tests/test-snprintf.c (main): Enhance test.
3022         * tests/test-vsnprintf.c (main): Likewise.
3023
3024 2011-07-05  Jim Meyering  <meyering@redhat.com>
3025
3026         maint: exempt stdio-read.c and stdio-write.c from the cppi check
3027         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
3028         per Bruno's request, to accommodate this idiom (no space after "#")
3029         even when the function is inside an #if block:
3030         char *
3031         gets (char *s)
3032         #undef gets
3033         {
3034           ...
3035         }
3036
3037 2011-07-04  Jim Meyering  <meyering@redhat.com>
3038
3039         maint: indent with spaces, not TABs, and add a rule to check this
3040         * tests/test-userspec.c: Indent with spaces, not TABs.
3041         * tests/test-argp.c: Likewise.
3042         * tests/test-c-stack2.sh: Likewise.
3043         * tests/test-parse-duration.sh: Likewise
3044         * m4/strtod.m4: Likewise.
3045         * m4/alloca.m4: Likewise.
3046         * m4/pselect.m4: Likewise.
3047         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
3048
3049 2011-07-03  Jim Meyering  <meyering@redhat.com>
3050
3051         maint.mk: correct omissions in prohibit_argmatch_without_use check
3052         This rule would mistakenly report that argmatch.h is included without
3053         use even when both the argmatch and invalid_arg macro were used.
3054         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
3055         of argmatch and invalid_arg.
3056
3057 2011-07-03  Bruno Haible  <bruno@clisp.org>
3058
3059         Comments about EINTR.
3060         * lib/safe-read.h: Explain the purpose of this module.
3061         * lib/safe-write.h: Likewise.
3062         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
3063         module.
3064         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
3065         module.
3066         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3067
3068 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
3069
3070         xnanosleep: Rewrite to use new dtotimespec module.
3071         It has the conversion code that used to be in xnanosleep.
3072         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
3073         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
3074         (TIME_T_MAX): Remove.
3075         (xnanosleep): Rewrite in terms of dtotimespec.
3076         * modules/xnanosleep (Depends-on): Add dtotimespec.
3077         Remove intprops, stdbool.
3078
3079         timespec-add, timespec-sub: new modules
3080         * lib/timespec.h (timespec_add, timespec_sub): New decls.
3081         * lib/timespec-add.c, lib/timespec-sub.c:
3082         * modules/timespec-add, modules/timespec-sub: New files.
3083
3084         dtotimespec: new module
3085         * lib/timespec.h (dtotimespec): New decl.
3086         * lib/dtotimespec.c, modules/dtotimespec: New files.
3087
3088         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
3089
3090         pselect: new module
3091         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
3092         (pselect): New decls.
3093         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
3094         since the standard pselect decl uses 'restrict'.
3095         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
3096         HAVE_PSELECT, REPLACE_PSELECT.
3097         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
3098         HAVE_PSELECT, REPLACE_PSELECT.
3099         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
3100
3101         sys_select: don't depend on sys_socket
3102         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
3103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
3104         This fix works on GNU and GNU-like platforms, but has not been tested
3105         on native Windows.
3106         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
3107         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
3108         gl_HEADER_SYS_SOCKET.
3109         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
3110         gl_PREREQ_SYS_H_WINSOCK2.
3111
3112 2011-06-29  Eric Blake  <eblake@redhat.com>
3113
3114         pipe2: fix C89 compile problem
3115         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
3116         Reported by Bruno Haible.
3117
3118         pipe, pipe2: don't corrupt fd on error
3119         * lib/pipe.c (pipe): Leave fd unchanged on error.
3120         * lib/pipe2.c (pipe2): Likewise.
3121         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
3122         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3123
3124 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
3125
3126         mmap-anon: do not use regular expressions inadvertently
3127         * m4/mmap-anon.m4: Remove trailing period from strings sought
3128         in the output.
3129
3130 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
3131
3132         nanosleep: fix integer overflow problem
3133         * lib/nanosleep.c (my_usleep): Don't assume signed integer
3134         arithmetic wraps around on overflow.
3135
3136         nanosleep: simplify carrying
3137         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
3138         first call to the underyling nanosleep, not for the last one.
3139         This doesn't fix any bugs, but it simplifies the computation of
3140         the remaining delay.  Found while auditing integer overflow issues.
3141
3142         dup2: remove test for existence of fcntl
3143         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
3144         "#if HAVE_FCNTL", in the configure-time test program.
3145         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
3146         and therefore speeds up "configure" a bit.  Found while
3147         adding the dup2 module to Emacs.
3148
3149 2011-06-24  Eric Blake  <eblake@redhat.com>
3150
3151         maint.mk: enhance useless header checks
3152         * top/maint.mk (_sc_header_without_use): Check both include
3153         styles.
3154         (sc_prohibit_assert_without_use)
3155         (sc_prohibit_close_stream_without_use)
3156         (sc_prohibit_getopt_without_use)
3157         (sc_prohibit_quotearg_without_use)
3158         (sc_prohibit_quote_without_use)
3159         (sc_prohibit_long_options_without_use)
3160         (sc_prohibit_inttostr_without_use)
3161         (sc_prohibit_ignore_value_without_use)
3162         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
3163         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
3164         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
3165         (sc_prohibit_hash_pjw_without_use)
3166         (sc_prohibit_safe_read_without_use)
3167         (sc_prohibit_argmatch_without_use)
3168         (sc_prohibit_canonicalize_without_use)
3169         (sc_prohibit_root_dev_ino_without_use)
3170         (sc_prohibit_openat_without_use)
3171         (sc_prohibit_c_ctype_without_use)
3172         (sc_prohibit_signal_without_use)
3173         (sc_prohibit_stdio--_without_use)
3174         (sc_prohibit_stdio-safer_without_use)
3175         (sc_prohibit_strings_without_use)
3176         (sc_prohibit_intprops_without_use)
3177         (sc_prohibit_stddef_without_use)
3178         (sc_prohibit_xfreopen_without_use): Update clients.
3179
3180 2011-06-24  Jim Meyering  <meyering@redhat.com>
3181
3182         syntax-check: keep one maint.mk rule in sync with its header
3183         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
3184         of the bug Eric has just fixed, with today's commit 25e4c2ec.
3185         I prefer to avoid temporary files here, so use <(...), but that
3186         is not supported by /bin/sh, so...
3187         (SHELL): Define to /bin/bash.
3188
3189 2011-06-24  Eric Blake  <eblake@redhat.com>
3190
3191         maint.mk: update sc_prohibit_intprops_without_use
3192         * top/maint.mk (_intprops_names): Match recent changes.
3193
3194 2011-06-24  Bruno Haible  <bruno@clisp.org>
3195
3196         strerror-override: No-op tweak.
3197         * lib/strerror-override.h (strerror_override): Reorder conditions,
3198         for consistency with lib/strerror-override.c.
3199
3200 2011-06-23  Eric Blake  <eblake@redhat.com>
3201
3202         maint.mk: test further PATH_MAX issues
3203         * top/maint.mk (sc_prohibit_path_max_array): Rename...
3204         (sc_prohibit_path_max_allocation): ...and also test alloca.
3205         Suggested by Jim Meyering.
3206
3207 2011-06-22  Eric Blake  <eblake@redhat.com>
3208
3209         maint.mk: add syntax-check to avoid char[PATH_MAX]
3210         * top/maint.mk (sc_prohibit_path_max_array): New rule.
3211
3212         stat: be robust to PATH_MAX definition
3213         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
3214         * modules/stat (Depends-on): Add verify.
3215
3216         link: work around IRIX bug
3217         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
3218         * lib/link.c (rpl_link): Work around it.
3219         * tests/test-link.h (test_link): Enhance test.
3220         * doc/posix-functions/link.texi (link): Document the bug.
3221
3222         getopt: silence clang warning
3223         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
3224         dereference.
3225         Reported by Gustavo Martin Domato.
3226
3227 2011-06-22  Jim Meyering  <meyering@redhat.com>
3228
3229         bootstrap: do not insert a blank line into each .gitignore file
3230         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
3231
3232 2011-06-21  Eric Blake  <eblake@redhat.com>
3233
3234         perror: test for output mismatch
3235         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
3236         perror on IRIX.
3237
3238         strerror_r: fix OpenBSD behavior on out-of-range
3239         * lib/strerror_r.c (strerror_r): Always use maximal string.
3240         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3241
3242         strerror_r: fix OpenBSD behavior on 0
3243         * lib/strerror-override.c (strerror_override): Also override 0
3244         when needed.
3245         * lib/strerror-override.h (strerror_override): Likewise.
3246         * lib/strerror.c (strerror): Simplify, now that 0 override is done
3247         earlier.
3248         * lib/strerror_r.c (strerror_r): Likewise.
3249         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
3250         behavior...
3251         (gl_FUNC_STRERROR_0): ...into new macro.
3252         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
3253         is overridden.
3254         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
3255         * modules/strerror-override (Files): Add strerror.m4.
3256         (configure.ac): Also provide override for 0 when needed.
3257         * doc/posix-functions/strerror.texi (strerror): Document this.
3258         * doc/posix-functions/perror.texi (perror): Likewise.
3259
3260         perror: adjust array size
3261         * modules/perror (Depends-on): Add strerror-override.
3262         * lib/perror.c (perror): Use it to avoid magic number.
3263
3264         strerror-override: reduce size
3265         * lib/strerror-override.c (strerror_override): Use fewer lines.
3266
3267 2011-06-20  Bruno Haible  <bruno@clisp.org>
3268
3269         pathmax: Ensure correct value for PATH_MAX on HP-UX.
3270         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
3271
3272 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3273
3274         alloca: port to compilers that can optimize like GCC 4.6.0
3275         * lib/alloca.c (find_stack_direction): New signature, taken from
3276         Autoconf git.  This works with GCC 4.6.0.  This code should never
3277         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
3278         be used with other compilers that optimize as well as GCC 4.6.0 does.
3279         (alloca): Adjust to new signature.
3280         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
3281         New macro, which patches Autoconf in a similar way.
3282
3283         c-stack: stop worrying about stack direction
3284         * lib/c-stack.c (find_stack_direction): Remove.
3285         (segv_handler): Don't worry about stack direction growth, as it's
3286         too much of a pain to configure this correctly, given how compilers
3287         are optimizing-away our stack-growth detection code.  Instead, assume
3288         that any access to just before or just after the stack is OK.
3289         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3290         Don't require AC_FUNC_ALLOCA; no longer needed.
3291
3292 2011-06-20  Eric Blake  <eblake@redhat.com>
3293
3294         test-stat: don't allocate PATH_MAX bytes
3295         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
3296         PATH_MAX-sized buffer.
3297         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
3298         * modules/stat-tests (Depends-on): Likewise.
3299         * tests/test-fstatat.c (includes): Drop pathmax.h.
3300         * tests/test-stat.c (includes): Likewise.
3301         Reported by Bruno Haible.
3302
3303 2011-06-20  Bruno Haible  <bruno@clisp.org>
3304
3305         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
3306         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
3307         * lib/float.c: New file.
3308         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
3309         REPLACE_FLOAT_LDBL.
3310         * modules/float (Files): Add lib/float.c.
3311         (configure.ac): Invoke AC_LIBOBJ.
3312         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
3313
3314 2011-06-20  Bruno Haible  <bruno@clisp.org>
3315
3316         Tests for module 'float'.
3317         * modules/float-tests: New file.
3318         * tests/test-float.c: New file.
3319
3320 2011-06-19  Bruno Haible  <bruno@clisp.org>
3321
3322         isinf: Coding style.
3323         * lib/isinf.c: Use GNU coding style.
3324
3325 2011-06-19  Bruno Haible  <bruno@clisp.org>
3326
3327         linkat test: Avoid test failure on AIX 7.1.
3328         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
3329         * tests/test-link.h (test_link): Likewise.
3330
3331 2011-06-19  Bruno Haible  <bruno@clisp.org>
3332
3333         pread test: Avoid test failure on OpenBSD 4.9.
3334         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
3335
3336 2011-06-19  Bruno Haible  <bruno@clisp.org>
3337
3338         sprintf-posix: Fix test failure on AIX 7.1.
3339         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
3340         * doc/posix-functions/dprintf.texi: Mention limited precision problem
3341         on AIX.
3342         * doc/posix-functions/fprintf.texi: Likewise.
3343         * doc/posix-functions/printf.texi: Likewise.
3344         * doc/posix-functions/snprintf.texi: Likewise.
3345         * doc/posix-functions/sprintf.texi: Likewise.
3346         * doc/posix-functions/vdprintf.texi: Likewise.
3347         * doc/posix-functions/vfprintf.texi: Likewise.
3348         * doc/posix-functions/vprintf.texi: Likewise.
3349         * doc/posix-functions/vsnprintf.texi: Likewise.
3350         * doc/posix-functions/vsprintf.texi: Likewise.
3351
3352 2011-06-19  Bruno Haible  <bruno@clisp.org>
3353
3354         roundl-ieee: Fix test failure on AIX 7.1.
3355         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
3356         * doc/posix-functions/roundl.texi: Mention problem with negative
3357         arguments.
3358
3359 2011-06-19  Bruno Haible  <bruno@clisp.org>
3360
3361         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3362         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
3363         * doc/posix-functions/round.texi: Mention problem with negative
3364         arguments.
3365         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
3366
3367 2011-06-19  Bruno Haible  <bruno@clisp.org>
3368
3369         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3370         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
3371         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
3372         * doc/posix-functions/roundf.texi: Mention problem with negative
3373         arguments.
3374         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
3375
3376 2011-06-19  Bruno Haible  <bruno@clisp.org>
3377
3378         ceilf-ieee: Work around bug on MacOS X 10.5.
3379         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
3380
3381         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
3382         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
3383         IEEE compliant, avoid compiler optimizations.
3384         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3385         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3386         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3387         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3388         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3389         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3390         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3391         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3392         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3393         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3394
3395 2011-06-19  Bruno Haible  <bruno@clisp.org>
3396
3397         ceilf-ieee: Work around bug on AIX 7.1.
3398         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
3399         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
3400
3401 2011-06-19  Bruno Haible  <bruno@clisp.org>
3402
3403         ceil-ieee: Work around bug on AIX 7.1.
3404         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
3405         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
3406
3407 2011-06-18  Bruno Haible  <bruno@clisp.org>
3408
3409         fsync test: Avoid test failure on MacOS X and AIX.
3410         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
3411         EINVAL.
3412
3413 2011-06-18  Bruno Haible  <bruno@clisp.org>
3414
3415         openat, fdopendir tests: Fix link errors.
3416         * modules/openat-tests (Depends-on): Add progname.
3417         * modules/fdopendir-tests (Depends-on): Likewise.
3418         * tests/test-fchownat.c: Include progname.h.
3419         (main): Call set_program_name.
3420         * tests/test-fstatat.c: Include progname.h.
3421         (main): Call set_program_name.
3422         * tests/test-mkdirat.c: Include progname.h.
3423         (main): Call set_program_name.
3424         * tests/test-openat.c: Include progname.h.
3425         (main): Call set_program_name.
3426         * tests/test-unlinkat.c: Include progname.h.
3427         (main): Call set_program_name.
3428         * tests/test-fdopendir.c: Include progname.h.
3429         (main): Call set_program_name.
3430
3431 2011-06-18  Bruno Haible  <bruno@clisp.org>
3432
3433         Doc update.
3434         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
3435         HP-UX.
3436         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
3437
3438 2011-06-18  Bruno Haible  <bruno@clisp.org>
3439
3440         getcwd tests: Avoid compilation error on HP-UX 11.31.
3441         * modules/getcwd-tests (Depends-on): Add pathmax.
3442         * tests/test-getcwd.c: Include pathmax.h.
3443
3444 2011-06-18  Bruno Haible  <bruno@clisp.org>
3445
3446         isfinite, isinf: Fix link error on AIX 6 and 7.
3447         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
3448         needed, also test the macro with a 'float' argument.
3449         * m4/isinf.m4 (gl_ISINF): Likewise.
3450
3451 2011-06-18  Bruno Haible  <bruno@clisp.org>
3452
3453         getloadavg: Don't clobber LIBS. Regression from previous commit.
3454         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
3455         AC_CHECK_LIB from here...
3456         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
3457         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
3458         gl_func_getloadavg_done.
3459         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3460
3461 2011-06-18  Bruno Haible  <bruno@clisp.org>
3462
3463         clean-temp: Improve documentation.
3464         * lib/clean-temp.h: Explain better how to use this module.
3465         Reported by John Darrington <john@darrington.wattle.id.au>.
3466
3467 2011-06-17  Bruno Haible  <bruno@clisp.org>
3468
3469         pread, pwrite: Avoid cc warning on AIX.
3470         * lib/unistd.in.h (pread): Undefine before defining as a macro.
3471         (pwrite): 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 fprintf.
3477         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3478
3479 2011-06-17  Bruno Haible  <bruno@clisp.org>
3480
3481         Tests: Remove unnecessary dependency.
3482         * modules/canonicalize-tests (Depends-on): Remove progname.
3483         * modules/chown-tests (Depends-on): Likewise.
3484         * modules/dirname-tests (Depends-on): Likewise.
3485         * modules/fdopendir-tests (Depends-on): Likewise.
3486         * modules/fdutimensat-tests (Depends-on): Likewise.
3487         * modules/hash-tests (Depends-on): Likewise.
3488         * modules/lchown-tests (Depends-on): Likewise.
3489         * modules/linkat-tests (Depends-on): Likewise.
3490         * modules/renameat-tests (Depends-on): Likewise.
3491         * modules/spawn-pipe-tests (Depends-on): Likewise.
3492         * modules/utimensat-tests (Depends-on): Likewise.
3493
3494 2011-06-17  Bruno Haible  <bruno@clisp.org>
3495
3496         spawn-pipe tests: Fix link error.
3497         * tests/test-spawn-pipe-child.c: Undefine fflush.
3498
3499 2011-06-17  Bruno Haible  <bruno@clisp.org>
3500
3501         Fix tests link errors.
3502         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
3503         * modules/chown-tests (Makefile.am): Don't link test-chown with
3504         LIBINTL.
3505         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
3506         LIBINTL.
3507         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
3508         LIBINTL.
3509         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
3510         LIBINTL.
3511
3512 2011-06-16  Bruno Haible  <bruno@clisp.org>
3513
3514         crypto/gc-sha1: Fix recent regression.
3515         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
3516         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
3517
3518         crypto/gc-md5: Fix recent regression.
3519         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
3520
3521         crypto/gc-md4: Fix recent regression.
3522         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
3523         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
3524
3525         crypto/gc-arctwo: Fix recent regression.
3526         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
3527         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
3528
3529         crypto/gc-rijndael: Fix recent regression.
3530         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
3531         (configure.ac): Invoke AC_LIBOBJ here.
3532         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
3533         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3534
3535         crypto/gc-hmac-sha1: Fix recent regression.
3536         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
3537         (configure.ac): Invoke AC_LIBOBJ here.
3538         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
3539         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3540
3541         crypto/gc-hmac-md5: Fix recent regression.
3542         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
3543         (configure.ac): Invoke AC_LIBOBJ here.
3544         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
3545         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3546
3547         crypto/gc-des: Fix recent regression.
3548         * modules/crypto/gc-des (Files): Remove m4/des.m4.
3549         (configure.ac): Invoke AC_LIBOBJ here.
3550         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
3551         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3552
3553         crypto/gc-arcfour: Fix recent regression.
3554         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
3555         (configure.ac): Invoke AC_LIBOBJ here.
3556         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
3557         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3558
3559 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3560
3561         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
3562         After the 2011-05-21 change, this macro requires
3563         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
3564         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3565
3566 2011-06-16  Bruno Haible  <bruno@clisp.org>
3567
3568         fprintftime: Move AC_LIBOBJ invocations to module description.
3569         * m4/fprintftime.m4: Remove file.
3570         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
3571         (configure.ac): Remove gl_FPRINTFTIME call.
3572         (Makefile.am): Augment lib_SOURCES.
3573         Reported by Jim Meyering.
3574
3575 2011-06-16  Bruno Haible  <bruno@clisp.org>
3576
3577         tmpfile-safer: Finish 2011-05-23 commit.
3578         * m4/stdio-safer.m4: Really remove file.
3579         Reported by Jim Meyering.
3580
3581 2011-06-16  Bruno Haible  <bruno@clisp.org>
3582
3583         syntax-check: Fix typo.
3584         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
3585         printf-posix.m4.
3586         Reported by Jim Meyering.
3587
3588 2011-06-13  Jim Meyering  <meyering@redhat.com>
3589
3590         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
3591         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
3592
3593 2011-05-23  Bruno Haible  <bruno@clisp.org>
3594
3595         yesno: Move AC_LIBOBJ invocations to module description.
3596         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
3597         * modules/yesno (Makefile.am): Augment lib_SOURCES.
3598
3599 2011-05-23  Bruno Haible  <bruno@clisp.org>
3600
3601         xstrtol: Move AC_LIBOBJ invocations to module description.
3602         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
3603         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
3604
3605 2011-05-23  Bruno Haible  <bruno@clisp.org>
3606
3607         xstrtold: Move AC_LIBOBJ invocations to module description.
3608         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
3609         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
3610
3611 2011-05-23  Bruno Haible  <bruno@clisp.org>
3612
3613         xstrtod: Move AC_LIBOBJ invocations to module description.
3614         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
3615         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
3616
3617 2011-05-23  Bruno Haible  <bruno@clisp.org>
3618
3619         xnanosleep: Move AC_LIBOBJ invocations to module description.
3620         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
3621         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
3622
3623 2011-05-23  Bruno Haible  <bruno@clisp.org>
3624
3625         xgetcwd: Move AC_LIBOBJ invocations to module description.
3626         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
3627         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
3628
3629 2011-05-23  Bruno Haible  <bruno@clisp.org>
3630
3631         xalloc: Move AC_LIBOBJ invocations to module description.
3632         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
3633         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
3634
3635 2011-05-23  Bruno Haible  <bruno@clisp.org>
3636
3637         write-any-file: Move AC_LIBOBJ invocations to module description.
3638         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
3639         invocation.
3640         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
3641
3642 2011-05-23  Bruno Haible  <bruno@clisp.org>
3643
3644         utimens: Move AC_LIBOBJ invocations to module description.
3645         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
3646         * modules/utimens (Makefile.am): Augment lib_SOURCES.
3647
3648 2011-05-23  Bruno Haible  <bruno@clisp.org>
3649
3650         utimecmp: Move AC_LIBOBJ invocations to module description.
3651         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
3652         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
3653
3654 2011-05-23  Bruno Haible  <bruno@clisp.org>
3655
3656         userspec: Move AC_LIBOBJ invocations to module description.
3657         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
3658         * modules/userspec (Makefile.am): Augment lib_SOURCES.
3659
3660 2011-05-23  Bruno Haible  <bruno@clisp.org>
3661
3662         unlinkdir: Move AC_LIBOBJ invocations to module description.
3663         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
3664         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
3665
3666 2011-05-23  Bruno Haible  <bruno@clisp.org>
3667
3668         unistd-safer: Move AC_LIBOBJ invocations to module description.
3669         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
3670         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
3671
3672 2011-05-23  Bruno Haible  <bruno@clisp.org>
3673
3674         tempname: Move AC_LIBOBJ invocations to module description.
3675         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
3676         * modules/tempname (Makefile.am): Augment lib_SOURCES.
3677
3678 2011-05-23  Bruno Haible  <bruno@clisp.org>
3679
3680         strftime: Move AC_LIBOBJ invocations to module description.
3681         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
3682         * modules/strftime (Makefile.am): Augment lib_SOURCES.
3683
3684 2011-05-23  Bruno Haible  <bruno@clisp.org>
3685
3686         stdlib-safer: Move AC_LIBOBJ invocations to module description.
3687         * m4/stdlib-safer.m4: Remove file.
3688         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
3689         (configure.ac): Remove gl_STDLIB_SAFER call.
3690         (Makefile.am): Augment lib_SOURCES.
3691
3692 2011-05-23  Bruno Haible  <bruno@clisp.org>
3693
3694         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
3695         * m4/stdio-safer.m4: Remove file.
3696         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
3697         (configure.ac): Remove gl_TMPFILE_SAFER call.
3698         (Makefile.am): Augment lib_SOURCES.
3699
3700 2011-05-23  Bruno Haible  <bruno@clisp.org>
3701
3702         popen-safer: Move AC_LIBOBJ invocations to module description.
3703         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
3704         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
3705         (configure.ac): Remove gl_POPEN_SAFER call.
3706         (Makefile.am): Augment lib_SOURCES.
3707
3708 2011-05-23  Bruno Haible  <bruno@clisp.org>
3709
3710         freopen-safer: Move AC_LIBOBJ invocations to module description.
3711         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
3712         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
3713         (configure.ac): Remove gl_FREOPEN_SAFER call.
3714         (Makefile.am): Augment lib_SOURCES.
3715
3716 2011-05-23  Bruno Haible  <bruno@clisp.org>
3717
3718         fopen-safer: Move AC_LIBOBJ invocations to module description.
3719         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
3720         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
3721         (configure.ac): Remove gl_FOPEN_SAFER call.
3722         (Makefile.am): Augment lib_SOURCES.
3723
3724 2011-05-23  Bruno Haible  <bruno@clisp.org>
3725
3726         crypto/sha512: Move AC_LIBOBJ invocations to module description.
3727         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
3728         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
3729
3730 2011-05-23  Bruno Haible  <bruno@clisp.org>
3731
3732         crypto/sha256: Move AC_LIBOBJ invocations to module description.
3733         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
3734         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
3735
3736 2011-05-23  Bruno Haible  <bruno@clisp.org>
3737
3738         crypto/sha1: Move AC_LIBOBJ invocations to module description.
3739         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
3740         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
3741
3742 2011-05-23  Bruno Haible  <bruno@clisp.org>
3743
3744         settime: Move AC_LIBOBJ invocations to module description.
3745         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
3746         * modules/settime (Makefile.am): Augment lib_SOURCES.
3747
3748 2011-05-23  Bruno Haible  <bruno@clisp.org>
3749
3750         savedir: Move AC_LIBOBJ invocations to module description.
3751         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
3752         * modules/savedir (Makefile.am): Augment lib_SOURCES.
3753
3754 2011-05-23  Bruno Haible  <bruno@clisp.org>
3755
3756         save-cwd: Move AC_LIBOBJ invocations to module description.
3757         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
3758         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
3759
3760 2011-05-23  Bruno Haible  <bruno@clisp.org>
3761
3762         same: Move AC_LIBOBJ invocations to module description.
3763         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
3764         * modules/same (Makefile.am): Augment lib_SOURCES.
3765
3766 2011-05-23  Bruno Haible  <bruno@clisp.org>
3767
3768         safe-write: Move AC_LIBOBJ invocations to module description.
3769         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
3770         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
3771         instead of gl_SAFE_WRITE.
3772         (Makefile.am): Augment lib_SOURCES.
3773
3774 2011-05-23  Bruno Haible  <bruno@clisp.org>
3775
3776         safe-read: Move AC_LIBOBJ invocations to module description.
3777         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
3778         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
3779         of gl_SAFE_READ.
3780         (Makefile.am): Augment lib_SOURCES.
3781
3782 2011-05-23  Bruno Haible  <bruno@clisp.org>
3783
3784         safe-alloc: Move AC_LIBOBJ invocations to module description.
3785         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
3786         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
3787
3788 2011-05-23  Bruno Haible  <bruno@clisp.org>
3789
3790         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
3791         * m4/rijndael.m4: Remove file.
3792         * modules/crypto/rijndael (Files): Remove it.
3793         (configure.ac): Remove gl_RIJNDAEL call.
3794         (Makefile.am): Augment lib_SOURCES.
3795
3796 2011-05-23  Bruno Haible  <bruno@clisp.org>
3797
3798         readtokens: Move AC_LIBOBJ invocations to module description.
3799         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
3800         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
3801
3802 2011-05-23  Bruno Haible  <bruno@clisp.org>
3803
3804         read-file: Move AC_LIBOBJ invocations to module description.
3805         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
3806         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
3807         of gl_FUNC_READ_FILE.
3808         (Makefile.am): Augment lib_SOURCES.
3809
3810 2011-05-23  Bruno Haible  <bruno@clisp.org>
3811
3812         quotearg: Move AC_LIBOBJ invocations to module description.
3813         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
3814         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
3815
3816 2011-05-23  Bruno Haible  <bruno@clisp.org>
3817
3818         quote: Move AC_LIBOBJ invocations to module description.
3819         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
3820         * modules/quote (Makefile.am): Augment lib_SOURCES.
3821
3822 2011-05-23  Bruno Haible  <bruno@clisp.org>
3823
3824         posixver: Move AC_LIBOBJ invocations to module description.
3825         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
3826         * modules/posixver (Makefile.am): Augment lib_SOURCES.
3827
3828 2011-05-23  Bruno Haible  <bruno@clisp.org>
3829
3830         posixtm: Move AC_LIBOBJ invocations to module description.
3831         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
3832         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
3833
3834 2011-05-23  Bruno Haible  <bruno@clisp.org>
3835
3836         physmem: Move AC_LIBOBJ invocations to module description.
3837         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
3838         * modules/physmem (Makefile.am): Augment lib_SOURCES.
3839
3840 2011-05-23  Bruno Haible  <bruno@clisp.org>
3841
3842         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
3843         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
3844         invocation.
3845         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
3846
3847 2011-05-23  Bruno Haible  <bruno@clisp.org>
3848
3849         mpsort: Move AC_LIBOBJ invocations to module description.
3850         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
3851         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
3852
3853 2011-05-23  Bruno Haible  <bruno@clisp.org>
3854
3855         modechange: Move AC_LIBOBJ invocations to module description.
3856         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
3857         * modules/modechange (Makefile.am): Augment lib_SOURCES.
3858
3859 2011-05-23  Bruno Haible  <bruno@clisp.org>
3860
3861         mkdir-p: Move AC_LIBOBJ invocations to module description.
3862         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
3863         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
3864
3865 2011-05-23  Bruno Haible  <bruno@clisp.org>
3866
3867         mkancesdirs: Move AC_LIBOBJ invocations to module description.
3868         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
3869         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
3870
3871 2011-05-23  Bruno Haible  <bruno@clisp.org>
3872
3873         mgetgroups: Move AC_LIBOBJ invocations to module description.
3874         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
3875         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
3876
3877 2011-05-23  Bruno Haible  <bruno@clisp.org>
3878
3879         memxor: Move AC_LIBOBJ invocations to module description.
3880         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
3881         * modules/memxor (Makefile.am): Augment lib_SOURCES.
3882
3883 2011-05-23  Bruno Haible  <bruno@clisp.org>
3884
3885         memcoll: Move AC_LIBOBJ invocations to module description.
3886         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
3887         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
3888
3889 2011-05-23  Bruno Haible  <bruno@clisp.org>
3890
3891         memcasecmp: Move AC_LIBOBJ invocations to module description.
3892         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
3893         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
3894
3895 2011-05-23  Bruno Haible  <bruno@clisp.org>
3896
3897         crypto/md5: Move AC_LIBOBJ invocations to module description.
3898         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
3899         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
3900
3901 2011-05-23  Bruno Haible  <bruno@clisp.org>
3902
3903         crypto/md4: Move AC_LIBOBJ invocations to module description.
3904         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3905         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3906
3907 2011-05-23  Bruno Haible  <bruno@clisp.org>
3908
3909         crypto/md2: Move AC_LIBOBJ invocations to module description.
3910         * m4/md2.m4: Remove file.
3911         * modules/crypto/md2 (Files): Remove it.
3912         (configure.ac): Remove gl_MD2 call.
3913         (Makefile.am): Augment lib_SOURCES.
3914
3915 2011-05-23  Bruno Haible  <bruno@clisp.org>
3916
3917         long-options: Move AC_LIBOBJ invocations to module description.
3918         * m4/long-options.m4: Remove file.
3919         * modules/long-options (Files): Remove it.
3920         (configure.ac): Remove gl_LONG_OPTIONS call.
3921         (Makefile.am): Augment lib_SOURCES.
3922
3923 2011-05-23  Bruno Haible  <bruno@clisp.org>
3924
3925         i-ring: Move AC_LIBOBJ invocations to module description.
3926         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3927         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3928
3929 2011-05-23  Bruno Haible  <bruno@clisp.org>
3930
3931         idcache: Move AC_LIBOBJ invocations to module description.
3932         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3933         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3934
3935 2011-05-23  Bruno Haible  <bruno@clisp.org>
3936
3937         human: Move AC_LIBOBJ invocations to module description.
3938         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3939         * modules/human (Makefile.am): Augment lib_SOURCES.
3940
3941 2011-05-23  Bruno Haible  <bruno@clisp.org>
3942
3943         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3944         * m4/hmac-sha1.m4: Remove file.
3945         * modules/crypto/hmac-sha1 (Files): Remove it.
3946         (configure.ac): Remove gl_HMAC_SHA1 call.
3947         (Makefile.am): Augment lib_SOURCES.
3948
3949 2011-05-23  Bruno Haible  <bruno@clisp.org>
3950
3951         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3952         * m4/hmac-md5.m4: Remove file.
3953         * modules/crypto/hmac-md5 (Files): Remove it.
3954         (configure.ac): Remove gl_HMAC_MD5 call.
3955         (Makefile.am): Augment lib_SOURCES.
3956
3957 2011-05-23  Bruno Haible  <bruno@clisp.org>
3958
3959         hash: Move AC_LIBOBJ invocations to module description.
3960         * m4/hash.m4: Remove file.
3961         * modules/hash (Files): Remove it.
3962         (configure.ac): Remove gl_HASH call.
3963         (Makefile.am): Augment lib_SOURCES.
3964
3965 2011-05-23  Bruno Haible  <bruno@clisp.org>
3966
3967         hard-locale: Move AC_LIBOBJ invocations to module description.
3968         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3969         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3970
3971 2011-05-23  Bruno Haible  <bruno@clisp.org>
3972
3973         getugroups: Move AC_LIBOBJ invocations to module description.
3974         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3975         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3976
3977 2011-05-23  Bruno Haible  <bruno@clisp.org>
3978
3979         gettime: Move AC_LIBOBJ invocations to module description.
3980         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3981         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3982
3983 2011-05-23  Bruno Haible  <bruno@clisp.org>
3984
3985         getndelim2: Move AC_LIBOBJ invocations to module description.
3986         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3987         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3988
3989 2011-05-23  Bruno Haible  <bruno@clisp.org>
3990
3991         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3992         * m4/gc-pbkdf2-sha1.m4: Remove file.
3993         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3994         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3995         (Makefile.am): Augment lib_SOURCES.
3996
3997 2011-05-23  Bruno Haible  <bruno@clisp.org>
3998
3999         fts: Move AC_LIBOBJ invocations to module description.
4000         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
4001         * modules/fts (configure.ac): ... to here.
4002
4003 2011-05-23  Bruno Haible  <bruno@clisp.org>
4004
4005         file-type: Move AC_LIBOBJ invocations to module description.
4006         * m4/file-type.m4: Remove file.
4007         * modules/file-type (Files): Remove it.
4008         (configure.ac): Remove gl_FILE_TYPE call.
4009         (Makefile.am): Augment lib_SOURCES.
4010
4011 2011-05-23  Bruno Haible  <bruno@clisp.org>
4012
4013         filenamecat*: Respect rules for use of AC_LIBOBJ.
4014         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
4015         Remove AC_LIBOBJ invocation.
4016         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
4017         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
4018
4019 2011-05-23  Bruno Haible  <bruno@clisp.org>
4020
4021         filemode: Move AC_LIBOBJ invocations to module description.
4022         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
4023         * modules/filemode (Makefile.am): Augment lib_SOURCES.
4024
4025 2011-05-23  Bruno Haible  <bruno@clisp.org>
4026
4027         openat-safer: Move AC_LIBOBJ invocations to module description.
4028         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
4029         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
4030
4031 2011-05-23  Bruno Haible  <bruno@clisp.org>
4032
4033         fcntl-safer: Move AC_LIBOBJ invocations to module description.
4034         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
4035         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
4036
4037 2011-05-23  Bruno Haible  <bruno@clisp.org>
4038
4039         exclude: Move AC_LIBOBJ invocations to module description.
4040         * m4/exclude.m4: Remove file.
4041         * modules/exclude (Files): Remove it.
4042         (configure.ac): Remove gl_EXCLUDE call.
4043         (Makefile.am): Augment lib_SOURCES.
4044
4045 2011-05-23  Bruno Haible  <bruno@clisp.org>
4046
4047         dirname*: Respect rules for use of AC_LIBOBJ.
4048         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
4049         invocations.
4050         * modules/dirname (Makefile.am): Augment lib_SOURCES.
4051         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
4052
4053 2011-05-23  Bruno Haible  <bruno@clisp.org>
4054
4055         dirent-safer: Move AC_LIBOBJ invocations to module description.
4056         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
4057         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
4058
4059 2011-05-23  Bruno Haible  <bruno@clisp.org>
4060
4061         crypto/des: Move AC_LIBOBJ invocations to module description.
4062         * m4/des.m4: Remove file.
4063         * modules/crypto/des (Files): Remove it.
4064         (configure.ac): Remove gl_DES call.
4065         (Makefile.am): Augment lib_SOURCES.
4066
4067 2011-05-23  Bruno Haible  <bruno@clisp.org>
4068
4069         cycle-check: Move AC_LIBOBJ invocations to module description.
4070         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
4071         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
4072
4073 2011-05-23  Bruno Haible  <bruno@clisp.org>
4074
4075         c-strtold: Move AC_LIBOBJ invocations to module description.
4076         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
4077         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
4078
4079 2011-05-23  Bruno Haible  <bruno@clisp.org>
4080
4081         c-strtod: Move AC_LIBOBJ invocations to module description.
4082         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
4083         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
4084
4085 2011-05-23  Bruno Haible  <bruno@clisp.org>
4086
4087         crc: Move AC_LIBOBJ invocations to module description.
4088         * m4/crc.m4: Remove file.
4089         * modules/crc (Files): Remove it.
4090         (configure.ac): Remove gl_CRC call.
4091         (Makefile.am): Augment lib_SOURCES.
4092
4093 2011-05-23  Bruno Haible  <bruno@clisp.org>
4094
4095         close-stream: Move AC_LIBOBJ invocations to module description.
4096         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
4097         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
4098
4099 2011-05-23  Bruno Haible  <bruno@clisp.org>
4100
4101         closeout: Move AC_LIBOBJ invocations to module description.
4102         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
4103         * modules/closeout (Makefile.am): Augment lib_SOURCES.
4104
4105 2011-05-23  Bruno Haible  <bruno@clisp.org>
4106
4107         closein: Move AC_LIBOBJ invocations to module description.
4108         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
4109         * modules/closein (Makefile.am): Augment lib_SOURCES.
4110
4111 2011-05-23  Bruno Haible  <bruno@clisp.org>
4112
4113         cloexec: Move AC_LIBOBJ invocations to module description.
4114         * m4/cloexec.m4: Remove file.
4115         * modules/cloexec (Files): Remove it.
4116         (configure.ac): Remove gl_CLOEXEC call.
4117         (Makefile.am): Augment lib_SOURCES.
4118
4119 2011-05-23  Bruno Haible  <bruno@clisp.org>
4120
4121         check-version: Move AC_LIBOBJ invocations to module description.
4122         * m4/check-version.m4: Remove file.
4123         * modules/check-version (Files): Remove it.
4124         (configure.ac): Remove gl_CHECK_VERSION call.
4125         (Makefile.am): Augment lib_SOURCES.
4126
4127 2011-05-23  Bruno Haible  <bruno@clisp.org>
4128
4129         chdir-safer: Move AC_LIBOBJ invocations to module description.
4130         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
4131         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
4132
4133 2011-05-23  Bruno Haible  <bruno@clisp.org>
4134
4135         canonicalize: Move AC_LIBOBJ invocations to module description.
4136         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
4137         AC_LIBOBJ invocation.
4138         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
4139
4140 2011-05-23  Bruno Haible  <bruno@clisp.org>
4141
4142         canon-host: Move AC_LIBOBJ invocations to module description.
4143         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
4144         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
4145         instead of gl_CANON_HOST.
4146         (Makefile.am): Augment lib_SOURCES.
4147
4148 2011-05-23  Bruno Haible  <bruno@clisp.org>
4149
4150         backupfile: Move AC_LIBOBJ invocations to module description.
4151         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
4152         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
4153
4154 2011-05-23  Bruno Haible  <bruno@clisp.org>
4155
4156         argmatch: Move AC_LIBOBJ invocations to module description.
4157         * m4/argmatch.m4: Remove file.
4158         * modules/argmatch (Files): Remove it.
4159         (configure.ac): Remove gl_ARGMATCH call.
4160         (Makefile.am): Augment lib_SOURCES.
4161
4162 2011-05-23  Bruno Haible  <bruno@clisp.org>
4163
4164         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
4165         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
4166         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
4167
4168 2011-05-23  Bruno Haible  <bruno@clisp.org>
4169
4170         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
4171         * m4/arcfour.m4: Remove file.
4172         * modules/crypto/arcfour (Files): Remove it.
4173         (configure.ac): Remove gl_ARCFOUR call.
4174         (Makefile.am): Augment lib_SOURCES.
4175
4176 2011-05-22  Bruno Haible  <bruno@clisp.org>
4177
4178         write: Move AC_LIBOBJ invocations to module description.
4179         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
4180         * modules/write (configure.ac): ... to here.
4181
4182 2011-05-22  Bruno Haible  <bruno@clisp.org>
4183
4184         wmemset: Move AC_LIBOBJ invocations to module description.
4185         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
4186         here...
4187         * modules/wmemset (configure.ac): ... to here.
4188
4189 2011-05-22  Bruno Haible  <bruno@clisp.org>
4190
4191         wmemmove: Move AC_LIBOBJ invocations to module description.
4192         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
4193         here...
4194         * modules/wmemmove (configure.ac): ... to here.
4195
4196 2011-05-22  Bruno Haible  <bruno@clisp.org>
4197
4198         wmemcpy: Move AC_LIBOBJ invocations to module description.
4199         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
4200         here...
4201         * modules/wmemcpy (configure.ac): ... to here.
4202
4203 2011-05-22  Bruno Haible  <bruno@clisp.org>
4204
4205         wmemcmp: Move AC_LIBOBJ invocations to module description.
4206         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
4207         here...
4208         * modules/wmemcmp (configure.ac): ... to here.
4209
4210 2011-05-22  Bruno Haible  <bruno@clisp.org>
4211
4212         wmemchr: Move AC_LIBOBJ invocations to module description.
4213         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
4214         here...
4215         * modules/wmemchr (configure.ac): ... to here.
4216
4217 2011-05-22  Bruno Haible  <bruno@clisp.org>
4218
4219         wcswidth: Move AC_LIBOBJ invocations to module description.
4220         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
4221         here...
4222         * modules/wcswidth (configure.ac): ... to here.
4223
4224 2011-05-22  Bruno Haible  <bruno@clisp.org>
4225
4226         wcwidth: Respect rules for use of AC_LIBOBJ.
4227         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
4228         invocation from here...
4229         * modules/wcwidth (configure.ac): ... to here.
4230         (Depends-on): Update conditions.
4231
4232 2011-05-22  Bruno Haible  <bruno@clisp.org>
4233
4234         wctype: Move AC_LIBOBJ invocations to module description.
4235         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
4236         invocation from here...
4237         * modules/wctype (configure.ac): ... to here.
4238         (Depends-on): Update conditions.
4239
4240 2011-05-22  Bruno Haible  <bruno@clisp.org>
4241
4242         wctrans: Move AC_LIBOBJ invocations to module description.
4243         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
4244         invocation from here...
4245         * modules/wctrans (configure.ac): ... to here.
4246
4247 2011-05-22  Bruno Haible  <bruno@clisp.org>
4248
4249         wctomb: Move AC_LIBOBJ invocations to module description.
4250         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
4251         invocations from here...
4252         * modules/wctomb (configure.ac): ... to here.
4253
4254 2011-05-22  Bruno Haible  <bruno@clisp.org>
4255
4256         wctob: Move AC_LIBOBJ invocations to module description.
4257         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
4258         gl_PREREQ_WCTOB invocations from here...
4259         * modules/wctob (configure.ac): ... to here.
4260         (Depends-on): Update conditions.
4261
4262 2011-05-22  Bruno Haible  <bruno@clisp.org>
4263
4264         wcsxfrm: Move AC_LIBOBJ invocations to module description.
4265         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
4266         here...
4267         * modules/wcsxfrm (configure.ac): ... to here.
4268
4269 2011-05-22  Bruno Haible  <bruno@clisp.org>
4270
4271         wcstok: Move AC_LIBOBJ invocations to module description.
4272         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
4273         * modules/wcstok (configure.ac): ... to here.
4274
4275 2011-05-22  Bruno Haible  <bruno@clisp.org>
4276
4277         wcsstr: Move AC_LIBOBJ invocations to module description.
4278         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
4279         * modules/wcsstr (configure.ac): ... to here.
4280
4281 2011-05-22  Bruno Haible  <bruno@clisp.org>
4282
4283         wcsspn: Move AC_LIBOBJ invocations to module description.
4284         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
4285         * modules/wcsspn (configure.ac): ... to here.
4286
4287 2011-05-22  Bruno Haible  <bruno@clisp.org>
4288
4289         wcsrtombs: Move AC_LIBOBJ invocations to module description.
4290         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
4291         gl_PREREQ_WCSRTOMBS invocations from here...
4292         * modules/wcsrtombs (configure.ac): ... to here.
4293
4294 2011-05-22  Bruno Haible  <bruno@clisp.org>
4295
4296         wcsrchr: Move AC_LIBOBJ invocations to module description.
4297         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
4298         here...
4299         * modules/wcsrchr (configure.ac): ... to here.
4300
4301 2011-05-22  Bruno Haible  <bruno@clisp.org>
4302
4303         wcspbrk: Move AC_LIBOBJ invocations to module description.
4304         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
4305         here...
4306         * modules/wcspbrk (configure.ac): ... to here.
4307
4308 2011-05-22  Bruno Haible  <bruno@clisp.org>
4309
4310         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
4311         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
4312         gl_PREREQ_WCSNRTOMBS invocations from here...
4313         * modules/wcsnrtombs (configure.ac): ... to here.
4314
4315 2011-05-22  Bruno Haible  <bruno@clisp.org>
4316
4317         wcsnlen: Move AC_LIBOBJ invocations to module description.
4318         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
4319         here...
4320         * modules/wcsnlen (configure.ac): ... to here.
4321
4322 2011-05-22  Bruno Haible  <bruno@clisp.org>
4323
4324         wcsncpy: Move AC_LIBOBJ invocations to module description.
4325         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
4326         here...
4327         * modules/wcsncpy (configure.ac): ... to here.
4328
4329 2011-05-22  Bruno Haible  <bruno@clisp.org>
4330
4331         wcsncmp: Move AC_LIBOBJ invocations to module description.
4332         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
4333         here...
4334         * modules/wcsncmp (configure.ac): ... to here.
4335
4336 2011-05-22  Bruno Haible  <bruno@clisp.org>
4337
4338         wcsncat: Move AC_LIBOBJ invocations to module description.
4339         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
4340         here...
4341         * modules/wcsncat (configure.ac): ... to here.
4342
4343 2011-05-22  Bruno Haible  <bruno@clisp.org>
4344
4345         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
4346         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
4347         from here...
4348         * modules/wcsncasecmp (configure.ac): ... to here.
4349
4350 2011-05-22  Bruno Haible  <bruno@clisp.org>
4351
4352         wcslen: Move AC_LIBOBJ invocations to module description.
4353         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
4354         * modules/wcslen (configure.ac): ... to here.
4355
4356 2011-05-22  Bruno Haible  <bruno@clisp.org>
4357
4358         wcsdup: Move AC_LIBOBJ invocations to module description.
4359         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
4360         * modules/wcsdup (configure.ac): ... to here.
4361
4362 2011-05-22  Bruno Haible  <bruno@clisp.org>
4363
4364         wcscspn: Move AC_LIBOBJ invocations to module description.
4365         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
4366         here...
4367         * modules/wcscspn (configure.ac): ... to here.
4368
4369 2011-05-22  Bruno Haible  <bruno@clisp.org>
4370
4371         wcscpy: Move AC_LIBOBJ invocations to module description.
4372         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
4373         * modules/wcscpy (configure.ac): ... to here.
4374
4375 2011-05-22  Bruno Haible  <bruno@clisp.org>
4376
4377         wcscoll: Move AC_LIBOBJ invocations to module description.
4378         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
4379         here...
4380         * modules/wcscoll (configure.ac): ... to here.
4381
4382 2011-05-22  Bruno Haible  <bruno@clisp.org>
4383
4384         wcscmp: Move AC_LIBOBJ invocations to module description.
4385         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
4386         * modules/wcscmp (configure.ac): ... to here.
4387
4388 2011-05-22  Bruno Haible  <bruno@clisp.org>
4389
4390         wcschr: Move AC_LIBOBJ invocations to module description.
4391         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
4392         * modules/wcschr (configure.ac): ... to here.
4393
4394 2011-05-22  Bruno Haible  <bruno@clisp.org>
4395
4396         wcscat: Move AC_LIBOBJ invocations to module description.
4397         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
4398         * modules/wcscat (configure.ac): ... to here.
4399
4400 2011-05-22  Bruno Haible  <bruno@clisp.org>
4401
4402         wcscasecmp: Move AC_LIBOBJ invocations to module description.
4403         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
4404         here...
4405         * modules/wcscasecmp (configure.ac): ... to here.
4406
4407 2011-05-22  Bruno Haible  <bruno@clisp.org>
4408
4409         wcrtomb: Move AC_LIBOBJ invocations to module description.
4410         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
4411         invocations from here...
4412         * modules/wcrtomb (configure.ac): ... to here.
4413
4414 2011-05-22  Bruno Haible  <bruno@clisp.org>
4415
4416         wcpncpy: Move AC_LIBOBJ invocations to module description.
4417         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
4418         here...
4419         * modules/wcpncpy (configure.ac): ... to here.
4420
4421 2011-05-22  Bruno Haible  <bruno@clisp.org>
4422
4423         wcpcpy: Move AC_LIBOBJ invocations to module description.
4424         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
4425         * modules/wcpcpy (configure.ac): ... to here.
4426
4427 2011-05-22  Bruno Haible  <bruno@clisp.org>
4428
4429         waitpid: Move AC_LIBOBJ invocations to module description.
4430         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
4431         invocation from here...
4432         * modules/waitpid (configure.ac): ... to here.
4433
4434 2011-05-22  Bruno Haible  <bruno@clisp.org>
4435
4436         utimensat: Move AC_LIBOBJ invocations to module description.
4437         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
4438         here...
4439         * modules/utimensat (configure.ac): ... to here.
4440
4441 2011-05-22  Bruno Haible  <bruno@clisp.org>
4442
4443         usleep: Move AC_LIBOBJ invocations to module description.
4444         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
4445         here...
4446         * modules/usleep (configure.ac): ... to here.
4447
4448 2011-05-22  Bruno Haible  <bruno@clisp.org>
4449
4450         unlockpt: Move AC_LIBOBJ invocations to module description.
4451         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
4452         gl_PREREQ_UNLOCKPT invocations from here...
4453         * modules/unlockpt (configure.ac): ... to here.
4454
4455 2011-05-22  Bruno Haible  <bruno@clisp.org>
4456
4457         unlink: Respect rules for use of AC_LIBOBJ.
4458         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
4459         * modules/unlink (configure.ac): ... to here.
4460
4461 2011-05-22  Bruno Haible  <bruno@clisp.org>
4462
4463         uname: Move AC_LIBOBJ invocations to module description.
4464         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
4465         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
4466         here...
4467         * modules/uname (configure.ac): ... to here.
4468
4469 2011-05-22  Bruno Haible  <bruno@clisp.org>
4470
4471         ttyname_r: Move AC_LIBOBJ invocations to module description.
4472         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
4473         gl_PREREQ_TTYNAME_R invocations from here...
4474         * modules/ttyname_r (configure.ac): ... to here.
4475
4476 2011-05-22  Bruno Haible  <bruno@clisp.org>
4477
4478         tsearch: Move AC_LIBOBJ invocations to module description.
4479         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
4480         invocations from here...
4481         * modules/tsearch (configure.ac): ... to here.
4482
4483 2011-05-22  Bruno Haible  <bruno@clisp.org>
4484
4485         towctrans: Move AC_LIBOBJ invocations to module description.
4486         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
4487         AC_LIBOBJ invocation from here...
4488         * modules/towctrans (configure.ac): ... to here.
4489
4490 2011-05-22  Bruno Haible  <bruno@clisp.org>
4491
4492         tmpfile: Move AC_LIBOBJ invocations to module description.
4493         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
4494         invocations from here...
4495         * modules/tmpfile (configure.ac): ... to here.
4496
4497 2011-05-22  Bruno Haible  <bruno@clisp.org>
4498
4499         times: Move AC_LIBOBJ invocations to module description.
4500         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
4501         * modules/times (configure.ac): ... to here.
4502
4503 2011-05-22  Bruno Haible  <bruno@clisp.org>
4504
4505         time_r: Move AC_LIBOBJ invocations to module description.
4506         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
4507         invocations from here...
4508         * modules/time_r (configure.ac): ... to here.
4509
4510 2011-05-22  Bruno Haible  <bruno@clisp.org>
4511
4512         timegm: Move AC_LIBOBJ invocations to module description.
4513         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
4514         invocations from here...
4515         * modules/timegm (configure.ac): ... to here.
4516
4517 2011-05-22  Bruno Haible  <bruno@clisp.org>
4518
4519         tcgetsid: Move AC_LIBOBJ invocations to module description.
4520         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
4521         and gl_PREREQ_TCGETSID invocations from here...
4522         * modules/tcgetsid (configure.ac): ... to here.
4523         (Depends-on): Update conditions.
4524
4525 2011-05-22  Bruno Haible  <bruno@clisp.org>
4526
4527         symlinkat: Move AC_LIBOBJ invocations to module description.
4528         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
4529         here...
4530         * modules/symlinkat (configure.ac): ... to here.
4531
4532 2011-05-22  Bruno Haible  <bruno@clisp.org>
4533
4534         symlink: Move AC_LIBOBJ invocations to module description.
4535         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
4536         here...
4537         * modules/symlink (configure.ac): ... to here.
4538
4539 2011-05-22  Bruno Haible  <bruno@clisp.org>
4540
4541         strverscmp: Move AC_LIBOBJ invocations to module description.
4542         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
4543         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
4544         from here...
4545         * modules/strverscmp (configure.ac): ... to here.
4546
4547 2011-05-22  Bruno Haible  <bruno@clisp.org>
4548
4549         strtok_r: Move AC_LIBOBJ invocations to module description.
4550         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
4551         and gl_PREREQ_STRTOK_R invocations from here...
4552         * modules/strtok_r (configure.ac): ... to here.
4553         (Depends-on): Update conditions.
4554
4555 2011-05-22  Bruno Haible  <bruno@clisp.org>
4556
4557         strtoumax: Move AC_LIBOBJ invocations to module description.
4558         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
4559         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
4560         from here...
4561         * modules/strtoumax (configure.ac): ... to here.
4562
4563 2011-05-22  Bruno Haible  <bruno@clisp.org>
4564
4565         strtoimax: Move AC_LIBOBJ invocations to module description.
4566         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
4567         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
4568         from here...
4569         * modules/strtoimax (configure.ac): ... to here.
4570
4571 2011-05-22  Bruno Haible  <bruno@clisp.org>
4572
4573         strtoull: Move AC_LIBOBJ invocations to module description.
4574         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
4575         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
4576         from here...
4577         * modules/strtoull (configure.ac): ... to here.
4578
4579 2011-05-22  Bruno Haible  <bruno@clisp.org>
4580
4581         strtoll: Move AC_LIBOBJ invocations to module description.
4582         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
4583         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
4584         here...
4585         * modules/strtoll (configure.ac): ... to here.
4586
4587 2011-05-22  Bruno Haible  <bruno@clisp.org>
4588
4589         strtoul: Move AC_LIBOBJ invocations to module description.
4590         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
4591         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4592         * modules/strtoul (configure.ac): ... to here.
4593
4594 2011-05-22  Bruno Haible  <bruno@clisp.org>
4595
4596         strtol: Move AC_LIBOBJ invocations to module description.
4597         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
4598         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4599         * modules/strtol (configure.ac): ... to here.
4600
4601 2011-05-22  Bruno Haible  <bruno@clisp.org>
4602
4603         strtod: Move AC_LIBOBJ invocations to module description.
4604         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
4605         invocations from here...
4606         * modules/strtod (configure.ac): ... to here.
4607
4608 2011-05-22  Bruno Haible  <bruno@clisp.org>
4609
4610         strstr*: Move AC_LIBOBJ invocations to module description.
4611         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
4612         invocations from here...
4613         * modules/strstr-simple (configure.ac): ... to here.
4614         * modules/strstr (configure.ac): ... and here.
4615
4616 2011-05-22  Bruno Haible  <bruno@clisp.org>
4617
4618         strsignal: Move AC_LIBOBJ invocations to module description.
4619         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
4620         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
4621         * modules/strsignal (configure.ac): ... to here.
4622         (Depends-on): Update conditions.
4623
4624 2011-05-22  Bruno Haible  <bruno@clisp.org>
4625
4626         strsep: Move AC_LIBOBJ invocations to module description.
4627         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
4628         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
4629         here...
4630         * modules/strsep (configure.ac): ... to here.
4631
4632 2011-05-22  Bruno Haible  <bruno@clisp.org>
4633
4634         strptime: Move AC_LIBOBJ invocations to module description.
4635         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
4636         gl_PREREQ_STRPTIME invocations from here...
4637         * modules/strptime (configure.ac): ... to here.
4638
4639 2011-05-22  Bruno Haible  <bruno@clisp.org>
4640
4641         strpbrk: Move AC_LIBOBJ invocations to module description.
4642         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
4643         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
4644         here...
4645         * modules/strpbrk (configure.ac): ... to here.
4646
4647 2011-05-22  Bruno Haible  <bruno@clisp.org>
4648
4649         strnlen: Move AC_LIBOBJ invocations to module description.
4650         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
4651         invocations from here...
4652         * modules/strnlen (configure.ac): ... to here.
4653
4654 2011-05-22  Bruno Haible  <bruno@clisp.org>
4655
4656         strndup: Move AC_LIBOBJ invocations to module description.
4657         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
4658         invocations from here...
4659         * modules/strndup (configure.ac): ... to here.
4660         (Depends-on): Update conditions.
4661
4662 2011-05-22  Bruno Haible  <bruno@clisp.org>
4663
4664         strncat: Move AC_LIBOBJ invocations to module description.
4665         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
4666         invocations from here...
4667         * modules/strncat (configure.ac): ... to here.
4668
4669 2011-05-22  Bruno Haible  <bruno@clisp.org>
4670
4671         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
4672         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
4673         invocations from here...
4674         * modules/strdup (configure.ac): ... to here.
4675         * modules/strdup-posix (configure.ac): ... and here.
4676
4677 2011-05-22  Bruno Haible  <bruno@clisp.org>
4678
4679         strcspn: Move AC_LIBOBJ invocations to module description.
4680         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
4681         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
4682         here...
4683         * modules/strcspn (configure.ac): ... to here.
4684
4685 2011-05-22  Bruno Haible  <bruno@clisp.org>
4686
4687         strchrnul: Move AC_LIBOBJ invocations to module description.
4688         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
4689         gl_PREREQ_STRCHRNUL invocations from here...
4690         * modules/strchrnul (configure.ac): ... to here.
4691
4692 2011-05-22  Bruno Haible  <bruno@clisp.org>
4693
4694         strcasestr*: Move AC_LIBOBJ invocations to module description.
4695         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4696         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
4697         * modules/strcasestr-simple (configure.ac): ... to here.
4698         * modules/strcasestr (configure.ac): ... and here.
4699
4700 2011-05-22  Bruno Haible  <bruno@clisp.org>
4701
4702         strcase: Move AC_LIBOBJ invocations to module description.
4703         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
4704         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
4705         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
4706         gl_PREREQ_STRNCASECMP invocations from here...
4707         * modules/strcase (configure.ac): ... to here.
4708
4709 2011-05-22  Bruno Haible  <bruno@clisp.org>
4710
4711         stpncpy: Move AC_LIBOBJ invocations to module description.
4712         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
4713         here...
4714         * modules/stpncpy (configure.ac): ... to here.
4715
4716 2011-05-22  Bruno Haible  <bruno@clisp.org>
4717
4718         stpcpy: Move AC_LIBOBJ invocations to module description.
4719         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
4720         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
4721         here...
4722         * modules/stpcpy (configure.ac): ... to here.
4723
4724 2011-05-21  Bruno Haible  <bruno@clisp.org>
4725
4726         stat: Move AC_LIBOBJ invocations to module description.
4727         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
4728         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
4729         here...
4730         * modules/stat (configure.ac): ... to here.
4731
4732 2011-05-21  Bruno Haible  <bruno@clisp.org>
4733
4734         sleep: Move AC_LIBOBJ invocations to module description.
4735         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
4736         * modules/sleep (configure.ac): ... to here.
4737
4738 2011-05-21  Bruno Haible  <bruno@clisp.org>
4739
4740         signbit: Move AC_LIBOBJ invocations to module description.
4741         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
4742         * modules/signbit (configure.ac): ... to here.
4743
4744 2011-05-21  Bruno Haible  <bruno@clisp.org>
4745
4746         sigprocmask: Move AC_LIBOBJ invocations to module description.
4747         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
4748         gl_PREREQ_SIGPROMASK invocations from here...
4749         * modules/sigprocmask (configure.ac): ... to here.
4750
4751 2011-05-21  Bruno Haible  <bruno@clisp.org>
4752
4753         sigaction: Move AC_LIBOBJ invocations to module description.
4754         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
4755         gl_PREREQ_SIGACTION invocations from here...
4756         * modules/sigaction (configure.ac): ... to here.
4757
4758 2011-05-21  Bruno Haible  <bruno@clisp.org>
4759
4760         sig2str: Move AC_LIBOBJ invocations to module description.
4761         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
4762         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
4763         here...
4764         * modules/sig2str (configure.ac): ... to here.
4765
4766 2011-05-21  Bruno Haible  <bruno@clisp.org>
4767
4768         setlocale: Move AC_LIBOBJ invocations to module description.
4769         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
4770         gl_PREREQ_SETLOCALE invocations from here...
4771         * modules/setlocale (configure.ac): ... to here.
4772
4773 2011-05-21  Bruno Haible  <bruno@clisp.org>
4774
4775         unsetenv: Move AC_LIBOBJ invocations to module description.
4776         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
4777         and gl_PREREQ_UNSETENV invocations from here...
4778         * modules/unsetenv (configure.ac): ... to here.
4779         (Depends-on): Update.
4780
4781 2011-05-21  Bruno Haible  <bruno@clisp.org>
4782
4783         setenv: Move AC_LIBOBJ invocations to module description.
4784         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
4785         here...
4786         * modules/setenv (configure.ac): ... to here.
4787
4788 2011-05-21  Bruno Haible  <bruno@clisp.org>
4789
4790         selinux-h: Move AC_LIBOBJ invocations to module description.
4791         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
4792         AC_LIBOBJ invocation from here...
4793         * modules/selinux-h (configure.ac): ... to here.
4794
4795 2011-05-21  Bruno Haible  <bruno@clisp.org>
4796
4797         select: Respect rules for use of AC_LIBOBJ.
4798         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
4799         here...
4800         * modules/select (configure.ac): ... to here.
4801
4802 2011-05-21  Bruno Haible  <bruno@clisp.org>
4803
4804         scandir: Move AC_LIBOBJ invocations to module description.
4805         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
4806         invocations from here...
4807         * modules/scandir (configure.ac): ... to here.
4808
4809 2011-05-21  Bruno Haible  <bruno@clisp.org>
4810
4811         rpmatch: Move AC_LIBOBJ invocations to module description.
4812         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
4813         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
4814         here...
4815         * modules/rpmatch (configure.ac): ... to here.
4816
4817 2011-05-21  Bruno Haible  <bruno@clisp.org>
4818
4819         rmdir: Respect rules for use of AC_LIBOBJ.
4820         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
4821         * modules/rmdir (configure.ac): ... to here.
4822
4823 2011-05-21  Bruno Haible  <bruno@clisp.org>
4824
4825         renameat: Move AC_LIBOBJ invocations to module description.
4826         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
4827         here...
4828         * modules/renameat (configure.ac): ... to here.
4829
4830 2011-05-21  Bruno Haible  <bruno@clisp.org>
4831
4832         rename: Respect rules for use of AC_LIBOBJ.
4833         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
4834         here...
4835         * modules/rename (configure.ac): ... to here.
4836
4837 2011-05-21  Bruno Haible  <bruno@clisp.org>
4838
4839         remove: Move AC_LIBOBJ invocations to module description.
4840         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
4841         here...
4842         * modules/remove (configure.ac): ... to here.
4843
4844 2011-05-21  Bruno Haible  <bruno@clisp.org>
4845
4846         relocatable-lib: Move AC_LIBOBJ invocations to module description.
4847         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
4848         macro.
4849         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
4850         * modules/relocatable-lib (configure.ac): ... to here.
4851         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4852         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
4853
4854 2011-05-21  Bruno Haible  <bruno@clisp.org>
4855
4856         relocatable-prog: Move AC_LIBOBJ invocations to module description.
4857         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
4858         here...
4859         * modules/relocatable-prog (configure.ac): ... to here.
4860
4861 2011-05-21  Bruno Haible  <bruno@clisp.org>
4862
4863         regex: Move AC_LIBOBJ invocations to module description.
4864         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
4865         invocations from here...
4866         * modules/regex (configure.ac): ... to here.
4867
4868 2011-05-21  Bruno Haible  <bruno@clisp.org>
4869
4870         realloc-*: Move AC_LIBOBJ invocations to module description.
4871         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
4872         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
4873         AC_LIBOBJ invocations from here...
4874         * modules/realloc-gnu (configure.ac): ... to here.
4875         * modules/realloc-posix (configure.ac): ... and here.
4876
4877 2011-05-21  Bruno Haible  <bruno@clisp.org>
4878
4879         readutmp: Move AC_LIBOBJ invocations to module description.
4880         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
4881         * modules/readutmp (configure.ac): ... to here.
4882
4883 2011-05-21  Bruno Haible  <bruno@clisp.org>
4884
4885         readlinkat: Move AC_LIBOBJ invocations to module description.
4886         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
4887         here...
4888         * modules/readlinkat (configure.ac): ... to here.
4889
4890 2011-05-21  Bruno Haible  <bruno@clisp.org>
4891
4892         readlink: Move AC_LIBOBJ invocations to module description.
4893         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
4894         gl_PREREQ_READLINK invocations from here...
4895         * modules/readlink (configure.ac): ... to here.
4896
4897 2011-05-21  Bruno Haible  <bruno@clisp.org>
4898
4899         readline: Move AC_LIBOBJ invocations to module description.
4900         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4901         gl_PREREQ_READLINE invocations from here...
4902         * modules/readline (configure.ac): ... to here.
4903
4904 2011-05-21  Bruno Haible  <bruno@clisp.org>
4905
4906         read: Move AC_LIBOBJ invocations to module description.
4907         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4908         * modules/read (configure.ac): ... to here.
4909
4910 2011-05-21  Bruno Haible  <bruno@clisp.org>
4911
4912         rawmemchr: Move AC_LIBOBJ invocations to module description.
4913         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4914         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4915         from here...
4916         * modules/rawmemchr (configure.ac): ... to here.
4917
4918 2011-05-21  Bruno Haible  <bruno@clisp.org>
4919
4920         random_r: Move AC_LIBOBJ invocations to module description.
4921         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4922         gl_PREREQ_RANDOM_R invocations from here...
4923         * modules/random_r (configure.ac): ... to here.
4924
4925 2011-05-21  Bruno Haible  <bruno@clisp.org>
4926
4927         pwrite: Move AC_LIBOBJ invocations to module description.
4928         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4929         * modules/pwrite (configure.ac): ... to here.
4930
4931 2011-05-21  Bruno Haible  <bruno@clisp.org>
4932
4933         putenv: Move AC_LIBOBJ invocations to module description.
4934         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4935         * modules/putenv (configure.ac): ... to here.
4936
4937 2011-05-21  Bruno Haible  <bruno@clisp.org>
4938
4939         login_tty: Move AC_LIBOBJ invocations to module description.
4940         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4941         * modules/login_tty (configure.ac): ... to here.
4942
4943 2011-05-21  Bruno Haible  <bruno@clisp.org>
4944
4945         openpty: Move AC_LIBOBJ invocations to module description.
4946         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4947         * modules/openpty (configure.ac): ... to here.
4948
4949 2011-05-21  Bruno Haible  <bruno@clisp.org>
4950
4951         forkpty: Move AC_LIBOBJ invocations to module description.
4952         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4953         * modules/forkpty (configure.ac): ... to here.
4954
4955 2011-05-21  Bruno Haible  <bruno@clisp.org>
4956
4957         ptsname: Move AC_LIBOBJ invocations to module description.
4958         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4959         invocations from here...
4960         * modules/ptsname (configure.ac): ... to here.
4961
4962 2011-05-21  Bruno Haible  <bruno@clisp.org>
4963
4964         pread: Move AC_LIBOBJ invocations to module description.
4965         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4966         * modules/pread (configure.ac): ... to here.
4967
4968 2011-05-21  Bruno Haible  <bruno@clisp.org>
4969
4970         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4971         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4972         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4973         * modules/posix_spawn (configure.ac): ... to here.
4974         * modules/posix_spawnp (configure.ac): ... and here.
4975
4976 2011-05-21  Bruno Haible  <bruno@clisp.org>
4977
4978         popen: Move AC_LIBOBJ invocations to module description.
4979         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4980         invocations from here...
4981         * modules/popen (configure.ac): ... to here.
4982
4983 2011-05-21  Bruno Haible  <bruno@clisp.org>
4984
4985         poll: Move AC_LIBOBJ invocations to module description.
4986         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4987         invocations from here...
4988         * modules/poll (configure.ac): ... to here.
4989
4990 2011-05-21  Bruno Haible  <bruno@clisp.org>
4991
4992         pipe-posix: Move AC_LIBOBJ invocations to module description.
4993         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4994         * modules/pipe-posix (configure.ac): ... to here.
4995
4996 2011-05-21  Bruno Haible  <bruno@clisp.org>
4997
4998         openat: Respect rules for use of AC_LIBOBJ.
4999         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
5000         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5001         * modules/openat (configure.ac): ... to here.
5002
5003 2011-05-21  Bruno Haible  <bruno@clisp.org>
5004
5005         obstack-printf*: Move AC_LIBOBJ invocations to module description.
5006         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
5007         invocation from here...
5008         * modules/obstack-printf (configure.ac): ... to here.
5009         * modules/obstack-printf-posix (configure.ac): ... and here.
5010
5011 2011-05-21  Bruno Haible  <bruno@clisp.org>
5012
5013         nl_langinfo: Move AC_LIBOBJ invocations to module description.
5014         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
5015         from here...
5016         * modules/nl_langinfo (configure.ac): ... to here.
5017
5018 2011-05-21  Bruno Haible  <bruno@clisp.org>
5019
5020         nanosleep: Move AC_LIBOBJ invocations to module description.
5021         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
5022         gl_PREREQ_NANOSLEEP invocations from here...
5023         * modules/nanosleep (configure.ac): ... to here.
5024
5025 2011-05-21  Bruno Haible  <bruno@clisp.org>
5026
5027         mountlist: Move AC_LIBOBJ invocations to module description.
5028         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
5029         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
5030         * modules/mountlist (configure.ac): ... to here.
5031
5032 2011-05-21  Bruno Haible  <bruno@clisp.org>
5033
5034         mktime: Respect rules for use of AC_LIBOBJ.
5035         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
5036         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
5037         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
5038         (gl_FUNC_MKTIME_INTERNAL): ... and here...
5039         * modules/mktime (configure.ac): ... to here.
5040         * modules/mktime-internal (configure.ac): ... and here.
5041         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
5042
5043 2011-05-21  Bruno Haible  <bruno@clisp.org>
5044
5045         mkstemps: Move AC_LIBOBJ invocations to module description.
5046         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
5047         here...
5048         * modules/mkstemps (configure.ac): ... to here.
5049
5050 2011-05-21  Bruno Haible  <bruno@clisp.org>
5051
5052         mkstemp: Move AC_LIBOBJ invocations to module description.
5053         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
5054         gl_PREREQ_MKSTEMP invocations from here...
5055         * modules/mkstemp (configure.ac): ... to here.
5056
5057 2011-05-21  Bruno Haible  <bruno@clisp.org>
5058
5059         mkostemps: Move AC_LIBOBJ invocations to module description.
5060         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
5061         here...
5062         * modules/mkostemps (configure.ac): ... to here.
5063
5064 2011-05-21  Bruno Haible  <bruno@clisp.org>
5065
5066         mkostemp: Move AC_LIBOBJ invocations to module description.
5067         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
5068         gl_PREREQ_MKOSTEMP invocations from here...
5069         * modules/mkostemp (configure.ac): ... to here.
5070
5071 2011-05-21  Bruno Haible  <bruno@clisp.org>
5072
5073         mknod: Move AC_LIBOBJ invocations to module description.
5074         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
5075         * modules/mknod (configure.ac): ... to here.
5076
5077 2011-05-21  Bruno Haible  <bruno@clisp.org>
5078
5079         mkfifoat: Move AC_LIBOBJ invocations to module description.
5080         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
5081         here...
5082         * modules/mkfifoat (configure.ac): ... to here.
5083
5084 2011-05-21  Bruno Haible  <bruno@clisp.org>
5085
5086         mkfifo: Respect rules for use of AC_LIBOBJ.
5087         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
5088         here...
5089         * modules/mkfifo (configure.ac): ... to here.
5090
5091 2011-05-21  Bruno Haible  <bruno@clisp.org>
5092
5093         mkdtemp: Move AC_LIBOBJ invocations to module description.
5094         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
5095         invocations from here...
5096         * modules/mkdtemp (configure.ac): ... to here.
5097
5098 2011-05-21  Bruno Haible  <bruno@clisp.org>
5099
5100         mkdir: Move AC_LIBOBJ invocations to module description.
5101         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
5102         * modules/mkdir (configure.ac): ... to here.
5103
5104 2011-05-21  Bruno Haible  <bruno@clisp.org>
5105
5106         memset: Move AC_LIBOBJ invocations to module description.
5107         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
5108         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
5109         here...
5110         * modules/memset (configure.ac): ... to here.
5111
5112 2011-05-21  Bruno Haible  <bruno@clisp.org>
5113
5114         memrchr: Move AC_LIBOBJ invocations to module description.
5115         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
5116         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
5117         here...
5118         * modules/memrchr (configure.ac): ... to here.
5119
5120 2011-05-21  Bruno Haible  <bruno@clisp.org>
5121
5122         mempcpy: Move AC_LIBOBJ invocations to module description.
5123         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
5124         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
5125         here...
5126         * modules/mempcpy (configure.ac): ... to here.
5127
5128 2011-05-21  Bruno Haible  <bruno@clisp.org>
5129
5130         memmove: Move AC_LIBOBJ invocations to module description.
5131         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
5132         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
5133         here...
5134         * modules/memmove (configure.ac): ... to here.
5135
5136 2011-05-21  Bruno Haible  <bruno@clisp.org>
5137
5138         memmem*: Move AC_LIBOBJ invocations to module description.
5139         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
5140         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
5141         here...
5142         (gl_FUNC_MEMMEM): ... and here...
5143         * modules/memmem-simple (configure.ac): ... to here.
5144         * modules/memmem (configure.ac): ... and here.
5145
5146 2011-05-21  Bruno Haible  <bruno@clisp.org>
5147
5148         memcpy: Move AC_LIBOBJ invocations to module description.
5149         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
5150         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
5151         here...
5152         * modules/memcpy (configure.ac): ... to here.
5153
5154 2011-05-21  Bruno Haible  <bruno@clisp.org>
5155
5156         memcmp: Simplify autoconf macro.
5157         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
5158         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
5159         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
5160
5161 2011-05-21  Bruno Haible  <bruno@clisp.org>
5162
5163         memcmp: Move AC_LIBOBJ invocations to module description.
5164         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
5165         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
5166         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
5167         * modules/memcmp (configure.ac): ... to here.
5168         (Depends-on): Update conditions.
5169
5170 2011-05-21  Bruno Haible  <bruno@clisp.org>
5171
5172         memchr: Respect rules for use of AC_LIBOBJ.
5173         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
5174         invocations from here...
5175         * modules/memchr (configure.ac): ... to here.
5176
5177 2011-05-21  Bruno Haible  <bruno@clisp.org>
5178
5179         mbtowc: Move AC_LIBOBJ invocations to module description.
5180         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
5181         invocations from here...
5182         * modules/mbtowc (configure.ac): ... to here.
5183
5184 2011-05-21  Bruno Haible  <bruno@clisp.org>
5185
5186         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
5187         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
5188         gl_PREREQ_MBSRTOWCS invocations from here...
5189         * modules/mbsrtowcs (configure.ac): ... to here.
5190
5191 2011-05-21  Bruno Haible  <bruno@clisp.org>
5192
5193         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
5194         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
5195         gl_PREREQ_MBSNRTOWCS invocations from here...
5196         * modules/mbsnrtowcs (configure.ac): ... to here.
5197
5198 2011-05-21  Bruno Haible  <bruno@clisp.org>
5199
5200         mbsinit: Move AC_LIBOBJ invocations to module description.
5201         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
5202         invocations from here...
5203         * modules/mbsinit (configure.ac): ... to here.
5204
5205 2011-05-21  Bruno Haible  <bruno@clisp.org>
5206
5207         mbrlen: Move AC_LIBOBJ invocations to module description.
5208         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
5209         invocations from here...
5210         * modules/mbrlen (configure.ac): ... to here.
5211
5212 2011-05-21  Bruno Haible  <bruno@clisp.org>
5213
5214         mbrtowc: Respect rules for use of AC_LIBOBJ.
5215         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
5216         invocations from here...
5217         * modules/mbrtowc (configure.ac): ... to here.
5218
5219 2011-05-21  Bruno Haible  <bruno@clisp.org>
5220
5221         malloc-*: Move AC_LIBOBJ invocations to module description.
5222         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
5223         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
5224         AC_LIBOBJ invocations from here...
5225         * modules/malloc-gnu (configure.ac): ... to here.
5226         * modules/malloc-posix (configure.ac): ... and here.
5227
5228 2011-05-21  Bruno Haible  <bruno@clisp.org>
5229
5230         lstat, openat: Respect rules for use of AC_LIBOBJ.
5231         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
5232         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
5233         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
5234         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
5235         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
5236         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
5237         here.
5238         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5239
5240 2011-05-21  Bruno Haible  <bruno@clisp.org>
5241
5242         lseek: Move AC_LIBOBJ invocations to module description.
5243         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
5244         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5245         * modules/lseek (configure.ac): ... to here.
5246
5247 2011-05-21  Bruno Haible  <bruno@clisp.org>
5248
5249         linkat: Move AC_LIBOBJ invocations to module description.
5250         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
5251         here...
5252         * modules/linkat (configure.ac): ... to here.
5253
5254 2011-05-21  Bruno Haible  <bruno@clisp.org>
5255
5256         link: Respect rules for use of AC_LIBOBJ.
5257         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
5258         * modules/link (configure.ac): ... to here.
5259
5260 2011-05-21  Bruno Haible  <bruno@clisp.org>
5261
5262         lchown: Move AC_LIBOBJ invocations to module description.
5263         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5264         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5265         * modules/lchown (configure.ac): ... to here.
5266
5267 2011-05-21  Bruno Haible  <bruno@clisp.org>
5268
5269         iswctype: Move AC_LIBOBJ invocations to module description.
5270         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
5271         here...
5272         * modules/iswctype (configure.ac): ... to here.
5273
5274 2011-05-21  Bruno Haible  <bruno@clisp.org>
5275
5276         iswblank: Move AC_LIBOBJ invocations to module description.
5277         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
5278         here...
5279         * modules/iswblank (configure.ac): ... to here.
5280
5281 2011-05-21  Bruno Haible  <bruno@clisp.org>
5282
5283         atanl: Move AC_LIBOBJ invocations to module description.
5284         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
5285         * modules/atanl (configure.ac): ... to here.
5286
5287 2011-05-21  Bruno Haible  <bruno@clisp.org>
5288
5289         acosl: Move AC_LIBOBJ invocations to module description.
5290         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
5291         * modules/acosl (configure.ac): ... to here.
5292
5293 2011-05-21  Bruno Haible  <bruno@clisp.org>
5294
5295         asinl: Respect rules for use of AC_LIBOBJ.
5296         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
5297         * modules/asinl (configure.ac): ... to here.
5298
5299 2011-05-21  Bruno Haible  <bruno@clisp.org>
5300
5301         tanl: Move AC_LIBOBJ invocations to module description.
5302         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
5303         * modules/tanl (configure.ac): ... to here.
5304
5305 2011-05-21  Bruno Haible  <bruno@clisp.org>
5306
5307         cosl: Move AC_LIBOBJ invocations to module description.
5308         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
5309         * modules/cosl (configure.ac): ... to here.
5310
5311 2011-05-21  Bruno Haible  <bruno@clisp.org>
5312
5313         sinl: Move AC_LIBOBJ invocations to module description.
5314         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
5315         * modules/sinl (configure.ac): ... to here.
5316
5317 2011-05-21  Bruno Haible  <bruno@clisp.org>
5318
5319         logl: Move AC_LIBOBJ invocations to module description.
5320         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
5321         * modules/logl (configure.ac): ... to here.
5322
5323 2011-05-21  Bruno Haible  <bruno@clisp.org>
5324
5325         expl: Move AC_LIBOBJ invocations to module description.
5326         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
5327         * modules/expl (configure.ac): ... to here.
5328
5329 2011-05-21  Bruno Haible  <bruno@clisp.org>
5330
5331         roundl: Move AC_LIBOBJ invocations to module description.
5332         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
5333         * modules/roundl (configure.ac): ... to here.
5334
5335 2011-05-21  Bruno Haible  <bruno@clisp.org>
5336
5337         round: Move AC_LIBOBJ invocations to module description.
5338         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
5339         * modules/round (configure.ac): ... to here.
5340
5341 2011-05-21  Bruno Haible  <bruno@clisp.org>
5342
5343         roundf: Move AC_LIBOBJ invocations to module description.
5344         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
5345         * modules/roundf (configure.ac): ... to here.
5346
5347 2011-05-21  Bruno Haible  <bruno@clisp.org>
5348
5349         truncl: Move AC_LIBOBJ invocations to module description.
5350         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
5351         * modules/truncl (configure.ac): ... to here.
5352
5353 2011-05-21  Bruno Haible  <bruno@clisp.org>
5354
5355         trunc: Move AC_LIBOBJ invocations to module description.
5356         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
5357         * modules/trunc (configure.ac): ... to here.
5358
5359 2011-05-21  Bruno Haible  <bruno@clisp.org>
5360
5361         truncf: Move AC_LIBOBJ invocations to module description.
5362         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
5363         * modules/truncf (configure.ac): ... to here.
5364
5365 2011-05-21  Bruno Haible  <bruno@clisp.org>
5366
5367         ceill: Move AC_LIBOBJ invocations to module description.
5368         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
5369         * modules/ceill (configure.ac): ... to here.
5370
5371 2011-05-21  Bruno Haible  <bruno@clisp.org>
5372
5373         ceil: Move AC_LIBOBJ invocations to module description.
5374         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
5375         * modules/ceil (configure.ac): ... to here.
5376
5377 2011-05-21  Bruno Haible  <bruno@clisp.org>
5378
5379         ceilf: Move AC_LIBOBJ invocations to module description.
5380         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
5381         * modules/ceilf (configure.ac): ... to here.
5382
5383 2011-05-21  Bruno Haible  <bruno@clisp.org>
5384
5385         floorl: Respect rules for use of AC_LIBOBJ.
5386         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
5387         * modules/floorl (configure.ac): ... to here.
5388
5389 2011-05-21  Bruno Haible  <bruno@clisp.org>
5390
5391         floor: Respect rules for use of AC_LIBOBJ.
5392         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
5393         * modules/floor (configure.ac): ... to here.
5394
5395 2011-05-21  Bruno Haible  <bruno@clisp.org>
5396
5397         floorf: Move AC_LIBOBJ invocations to module description.
5398         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
5399         * modules/floorf (configure.ac): ... to here.
5400
5401 2011-05-20  Bruno Haible  <bruno@clisp.org>
5402
5403         sqrtl: Respect rules for use of AC_LIBOBJ.
5404         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
5405         * modules/sqrtl (configure.ac): ... to here.
5406
5407 2011-05-20  Bruno Haible  <bruno@clisp.org>
5408
5409         ldexpl: Respect rules for use of AC_LIBOBJ.
5410         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
5411         * modules/ldexpl (configure.ac): ... to here.
5412
5413 2011-05-20  Bruno Haible  <bruno@clisp.org>
5414
5415         frexpl*: Respect rules for use of AC_LIBOBJ.
5416         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
5417         invocation from here...
5418         * modules/frexpl (configure.ac): ... to here.
5419         * modules/frexpl-nolibm (configure.ac): ... and here.
5420
5421 2011-05-20  Bruno Haible  <bruno@clisp.org>
5422
5423         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
5424         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
5425         invocation from here...
5426         * modules/frexp (configure.ac): ... to here.
5427         * modules/frexp-nolibm (configure.ac): ... and here.
5428
5429 2011-05-20  Bruno Haible  <bruno@clisp.org>
5430
5431         isnan: Respect rules for use of AC_LIBOBJ.
5432         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
5433         invocations here.
5434         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
5435         REPLACE_ISNAN.
5436         * modules/isnand (configure.ac): Likewise.
5437         * modules/isnanl (configure.ac): Likewise.
5438
5439 2011-05-20  Bruno Haible  <bruno@clisp.org>
5440
5441         isnanl*: Respect rules for use of AC_LIBOBJ.
5442         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
5443         invocation from here...
5444         * modules/isnanl (configure.ac): ... to here.
5445         * modules/isnanl-nolibm (configure.ac): ... and here.
5446
5447 2011-05-20  Bruno Haible  <bruno@clisp.org>
5448
5449         isnand*: Move AC_LIBOBJ invocations to module description.
5450         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
5451         invocation from here...
5452         * modules/isnand (configure.ac): ... to here.
5453         * modules/isnand-nolibm (configure.ac): ... and here.
5454
5455 2011-05-20  Bruno Haible  <bruno@clisp.org>
5456
5457         isnanf*: Move AC_LIBOBJ invocations to module description.
5458         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
5459         invocation from here...
5460         * modules/isnanf (configure.ac): ... to here.
5461         * modules/isnanf-nolibm (configure.ac): ... and here.
5462
5463 2011-05-20  Bruno Haible  <bruno@clisp.org>
5464
5465         isnan*: Separate the AC_LIBOBJ invocations.
5466         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
5467         AC_LIBOBJ invocation.
5468         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
5469         here.
5470         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
5471         AC_LIBOBJ invocation.
5472         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
5473         here.
5474         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
5475         AC_LIBOBJ invocation.
5476         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
5477         here.
5478         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
5479
5480 2011-05-08  Bruno Haible  <bruno@clisp.org>
5481
5482         isinf: Move AC_LIBOBJ invocations to module description.
5483         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
5484         * modules/isinf (configure.ac): ... to here.
5485
5486 2011-05-08  Bruno Haible  <bruno@clisp.org>
5487
5488         isfinite: Move AC_LIBOBJ invocations to module description.
5489         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
5490         * modules/isfinite (configure.ac): ... to here.
5491
5492 2011-05-08  Bruno Haible  <bruno@clisp.org>
5493
5494         isblank: Move AC_LIBOBJ invocations to module description.
5495         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
5496         here...
5497         * modules/isblank (configure.ac): ... to here.
5498
5499 2011-05-08  Bruno Haible  <bruno@clisp.org>
5500
5501         isapipe: Move AC_LIBOBJ invocations to module description.
5502         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
5503         gl_PREREQ_ISAPIPE invocations from here...
5504         * modules/isapipe (configure.ac): ... to here.
5505         (Depends-on): Update condition.
5506
5507 2011-05-08  Bruno Haible  <bruno@clisp.org>
5508
5509         ioctl: Move AC_LIBOBJ invocations to module description.
5510         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
5511         invocations from here...
5512         * modules/ioctl (configure.ac): ... to here.
5513         (Depends-on): Update condition.
5514
5515 2011-05-08  Bruno Haible  <bruno@clisp.org>
5516
5517         imaxdiv: Move AC_LIBOBJ invocations to module description.
5518         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
5519         invocations from here...
5520         * modules/imaxdiv (configure.ac): ... to here.
5521
5522 2011-05-08  Bruno Haible  <bruno@clisp.org>
5523
5524         imaxabs: Move AC_LIBOBJ invocations to module description.
5525         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
5526         invocations from here...
5527         * modules/imaxabs (configure.ac): ... to here.
5528
5529 2011-05-08  Bruno Haible  <bruno@clisp.org>
5530
5531         getaddrinfo: Move AC_LIBOBJ invocations to module description.
5532         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
5533         AC_LIBOBJ invocations from here...
5534         * modules/getaddrinfo (configure.ac): ... to here.
5535         (Depends-on): Add conditions.
5536
5537 2011-05-08  Bruno Haible  <bruno@clisp.org>
5538
5539         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5540         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
5541         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5542         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
5543         (gl_PREREQ_INET_PTON): ... from here.
5544         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
5545         gl_PREREQ_INET_PTON here.
5546         (Depends-on): Update condition.
5547
5548 2011-05-08  Bruno Haible  <bruno@clisp.org>
5549
5550         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5551         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
5552         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5553         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
5554         (gl_PREREQ_INET_NTOP): ... from here.
5555         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
5556         gl_PREREQ_INET_NTOP here.
5557         (Depends-on): Update condition.
5558
5559 2011-05-08  Bruno Haible  <bruno@clisp.org>
5560
5561         iconv_open: Move AC_LIBOBJ invocations to module description.
5562         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
5563         AC_LIBOBJ invocations from here...
5564         * modules/iconv_open (configure.ac): ... to here.
5565
5566 2011-05-08  Bruno Haible  <bruno@clisp.org>
5567
5568         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
5569         If module 'iconv_open' is among the main modules and module
5570         'iconv_open-utf' is among the tests dependencies, then
5571         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
5572         return the special iconv_t values. Therefore iconv() and iconv_close()
5573         must support these special iconv_t values, already in lib, not only in
5574         tests.
5575         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
5576         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
5577         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
5578         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
5579         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
5580         (Depends-on): Add the dependencies of iconv_open-utf.
5581         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
5582         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
5583         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
5584
5585 2011-05-08  Bruno Haible  <bruno@clisp.org>
5586
5587         group-member: Move AC_LIBOBJ invocations to module description.
5588         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
5589         gl_PREREQ_GROUP_MEMBER invocations from here...
5590         * modules/group-member (configure.ac): ... to here.
5591
5592 2011-05-08  Bruno Haible  <bruno@clisp.org>
5593
5594         grantpt: Move AC_LIBOBJ invocations to module description.
5595         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
5596         invocations from here...
5597         * modules/grantpt (configure.ac): ... to here.
5598
5599 2011-05-08  Bruno Haible  <bruno@clisp.org>
5600
5601         glob: Move AC_LIBOBJ invocations to module description.
5602         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
5603         from here...
5604         * modules/glob (configure.ac): ... to here.
5605
5606 2011-05-08  Bruno Haible  <bruno@clisp.org>
5607
5608         getusershell: Move AC_LIBOBJ invocations to module description.
5609         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
5610         Move AC_LIBOBJ invocation from here...
5611         * modules/getusershell (configure.ac): ... to here.
5612         (Depends-on): Update condition.
5613
5614 2011-05-08  Bruno Haible  <bruno@clisp.org>
5615
5616         gettimeofday: Move AC_LIBOBJ invocations to module description.
5617         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
5618         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
5619         gl_PREREQ_GETTIMEOFDAY invocations from here...
5620         * modules/gettimeofday (configure.ac): ... to here.
5621
5622 2011-05-08  Bruno Haible  <bruno@clisp.org>
5623
5624         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
5625         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
5626         just gl_FUNC_TZSET.
5627         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
5628         (gl_FUNC_TZSET_CLOBBER): Remove actions.
5629         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
5630         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
5631
5632 2011-05-08  Bruno Haible  <bruno@clisp.org>
5633
5634         getsubopt: Move AC_LIBOBJ invocations to module description.
5635         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
5636         gl_PREREQ_GETSUBOPT invocations from here...
5637         * modules/getsubopt (configure.ac): ... to here.
5638
5639 2011-05-08  Bruno Haible  <bruno@clisp.org>
5640
5641         getpass-gnu: Move AC_LIBOBJ invocations to module description.
5642         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
5643         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
5644         * modules/getpass-gnu (configure.ac): ... to here.
5645
5646 2011-05-08  Bruno Haible  <bruno@clisp.org>
5647
5648         getpass: Move AC_LIBOBJ invocations to module description.
5649         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
5650         gl_PREREQ_GETPASS invocations from here...
5651         * modules/getpass (configure.ac): ... to here.
5652
5653 2011-05-08  Bruno Haible  <bruno@clisp.org>
5654
5655         getpagesize: Move AC_LIBOBJ invocations to module description.
5656         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
5657         from here...
5658         * modules/getpagesize (configure.ac): ... to here.
5659
5660 2011-05-08  Bruno Haible  <bruno@clisp.org>
5661
5662         getopt: Move AC_LIBOBJ invocations to module description.
5663         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
5664         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
5665         invocations from here...
5666         * modules/getopt-gnu (configure.ac): ... to here.
5667         * modules/getopt-posix (configure.ac): ... and here.
5668         (Depends-on): Update condition.
5669
5670 2011-05-08  Bruno Haible  <bruno@clisp.org>
5671
5672         getopt, argp: Respect rules for use of AC_LIBOBJ.
5673         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
5674         (gl_REPLACE_GETOPT_ALWAYS): New macro.
5675         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
5676         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
5677
5678 2011-05-08  Bruno Haible  <bruno@clisp.org>
5679
5680         getlogin_r: Move AC_LIBOBJ invocations to module description.
5681         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
5682         gl_PREREQ_GETLOGIN_R invocations from here...
5683         * modules/getlogin_r (configure.ac): ... to here.
5684
5685 2011-05-08  Bruno Haible  <bruno@clisp.org>
5686
5687         getlogin: Move AC_LIBOBJ invocations to module description.
5688         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
5689         here...
5690         * modules/getlogin (configure.ac): ... to here.
5691
5692 2011-05-08  Bruno Haible  <bruno@clisp.org>
5693
5694         getloadavg: Move AC_LIBOBJ invocations to module description.
5695         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
5696         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
5697         * modules/getloadavg (configure.ac): ... to here.
5698
5699 2011-05-08  Bruno Haible  <bruno@clisp.org>
5700
5701         gethrxtime: Move AC_LIBOBJ invocations to module description.
5702         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
5703         LIB_GETHRXTIME from here...
5704         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
5705         invocations from here...
5706         * modules/gethrxtime (configure.ac): ... to here.
5707
5708 2011-05-08  Bruno Haible  <bruno@clisp.org>
5709
5710         gethostname: Move AC_LIBOBJ invocations to module description.
5711         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
5712         gl_PREREQ_GETHOSTNAME invocations from here...
5713         * modules/gethostname (configure.ac): ... to here.
5714
5715 2011-05-08  Bruno Haible  <bruno@clisp.org>
5716
5717         getgroups: Move AC_LIBOBJ invocations to module description.
5718         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
5719         here...
5720         * modules/getgroups (configure.ac): ... to here.
5721
5722 2011-05-08  Bruno Haible  <bruno@clisp.org>
5723
5724         getdtablesize: Move AC_LIBOBJ invocations to module description.
5725         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
5726         invocation from here...
5727         * modules/getdtablesize (configure.ac): ... to here.
5728
5729 2011-05-08  Bruno Haible  <bruno@clisp.org>
5730
5731         getdomainname: Move AC_LIBOBJ invocations to module description.
5732         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
5733         gl_PREREQ_GETDOMAINNAME invocations from here...
5734         * modules/getdomainname (configure.ac): ... to here.
5735
5736 2011-05-08  Bruno Haible  <bruno@clisp.org>
5737
5738         getline: Move AC_LIBOBJ invocations to module description.
5739         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
5740         invocations from here...
5741         * modules/getline (configure.ac): ... to here.
5742
5743 2011-05-08  Bruno Haible  <bruno@clisp.org>
5744
5745         getline: Simplify.
5746         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
5747         It's already handled through the module dependency.
5748
5749 2011-05-08  Bruno Haible  <bruno@clisp.org>
5750
5751         getdelim: Move AC_LIBOBJ invocations to module description.
5752         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
5753         and gl_PREREQ_GETDELIM invocations from here...
5754         * modules/getdelim (configure.ac): ... to here.
5755         (Depends-on): Fix condition.
5756
5757 2011-05-08  Bruno Haible  <bruno@clisp.org>
5758
5759         getcwd: Move AC_LIBOBJ invocations to module description.
5760         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
5761         invocations from here...
5762         * modules/getcwd (configure.ac): ... to here.
5763
5764 2011-05-08  Bruno Haible  <bruno@clisp.org>
5765
5766         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
5767         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
5768         here...
5769         * modules/getcwd-lgpl (configure.ac): ... to here.
5770
5771 2011-05-07  Bruno Haible  <bruno@clisp.org>
5772
5773         crypto/gc: Move AC_LIBOBJ invocations to module description.
5774         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
5775         * modules/crypto/gc (configure.ac): ... to here.
5776
5777 2011-05-07  Bruno Haible  <bruno@clisp.org>
5778
5779         fwriting: Move AC_LIBOBJ invocations to module description.
5780         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
5781         here...
5782         * modules/fwriting (configure.ac): ... to here.
5783
5784 2011-05-07  Bruno Haible  <bruno@clisp.org>
5785
5786         fwritable: Move AC_LIBOBJ invocations to module description.
5787         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
5788         here...
5789         * modules/fwritable (configure.ac): ... to here.
5790
5791 2011-05-07  Bruno Haible  <bruno@clisp.org>
5792
5793         futimens: Move AC_LIBOBJ invocations to module description.
5794         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
5795         here...
5796         * modules/futimens (configure.ac): ... to here.
5797
5798 2011-05-07  Bruno Haible  <bruno@clisp.org>
5799
5800         ftruncate: Move AC_LIBOBJ invocations to module description.
5801         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
5802         gl_PREREQ_FTRUNCATE invocations from here...
5803         * modules/ftruncate (configure.ac): ... to here.
5804
5805 2011-05-07  Bruno Haible  <bruno@clisp.org>
5806
5807         fsync: Move AC_LIBOBJ invocations to module description.
5808         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
5809         invocations from here...
5810         * modules/fsync (configure.ac): ... to here.
5811
5812 2011-05-07  Bruno Haible  <bruno@clisp.org>
5813
5814         fsusage: Move AC_LIBOBJ invocations to module description.
5815         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
5816         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
5817         * modules/fsusage (configure.ac): ... to here.
5818
5819 2011-05-07  Bruno Haible  <bruno@clisp.org>
5820
5821         freopen: Move AC_LIBOBJ invocations to module description.
5822         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
5823         invocations from here...
5824         * modules/freopen (configure.ac): ... to here.
5825
5826 2011-05-07  Bruno Haible  <bruno@clisp.org>
5827
5828         free: Move AC_LIBOBJ invocations to module description.
5829         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
5830         invocations from here...
5831         * modules/free (configure.ac): ... to here.
5832
5833 2011-05-07  Bruno Haible  <bruno@clisp.org>
5834
5835         freadable: Move AC_LIBOBJ invocations to module description.
5836         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
5837         here...
5838         * modules/freadable (configure.ac): ... to here.
5839
5840 2011-05-07  Bruno Haible  <bruno@clisp.org>
5841
5842         fpurge: Move AC_LIBOBJ invocations to module description.
5843         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
5844         invocations from here...
5845         * modules/fpurge (configure.ac): ... to here.
5846
5847 2011-05-07  Bruno Haible  <bruno@clisp.org>
5848
5849         fpending: Move AC_LIBOBJ invocations to module description.
5850         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
5851         gl_FUNC_FPENDING.
5852         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
5853         invocations from here...
5854         * modules/fpending (configure.ac): ... to here.
5855
5856 2011-05-07  Bruno Haible  <bruno@clisp.org>
5857
5858         fopen: Move AC_LIBOBJ invocations to module description.
5859         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
5860         invocations from here...
5861         * modules/fopen (configure.ac): ... to here.
5862
5863 2011-05-07  Bruno Haible  <bruno@clisp.org>
5864
5865         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
5866         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
5867         gl_FUNC_FNMATCH_POSIX.
5868         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
5869         invocations from here...
5870         * modules/fnmatch (configure.ac): ... to here.
5871         * modules/fnmatch-gnu (configure.ac): ... and here.
5872
5873 2011-05-07  Bruno Haible  <bruno@clisp.org>
5874
5875         flock: Move AC_LIBOBJ invocations to module description.
5876         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
5877         invocations from here...
5878         * modules/flock (configure.ac): ... to here.
5879
5880 2011-05-07  Bruno Haible  <bruno@clisp.org>
5881
5882         fileblocks: Move AC_LIBOBJ invocations to module description.
5883         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
5884         gl_PREREQ_FILEBLOCKS invocations from here...
5885         * modules/fileblocks (configure.ac): ... to here.
5886
5887 2011-05-06  Bruno Haible  <bruno@clisp.org>
5888
5889         fflush: Move AC_LIBOBJ invocations to module description.
5890         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
5891         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
5892         invocations from here...
5893         * modules/fflush (configure.ac): ... to here.
5894
5895 2011-05-06  Bruno Haible  <bruno@clisp.org>
5896
5897         fdopendir: Move AC_LIBOBJ invocations to module description.
5898         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
5899         here...
5900         * modules/fdopendir (configure.ac): ... to here.
5901         (Depends-on): Improve conditions.
5902
5903 2011-05-06  Bruno Haible  <bruno@clisp.org>
5904
5905         _Exit: Move AC_LIBOBJ invocations to module description.
5906         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5907         invocations from here...
5908         * modules/_Exit (configure.ac): ... to here.
5909
5910 2011-05-21  Bruno Haible  <bruno@clisp.org>
5911
5912         euidaccess: Respect rules for use of AC_LIBOBJ.
5913         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5914         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5915         from here...
5916         * modules/euidaccess (configure.ac): ... to here.
5917
5918 2011-05-06  Bruno Haible  <bruno@clisp.org>
5919
5920         error: Move AC_LIBOBJ invocations to module description.
5921         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5922         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5923         invocations from here...
5924         * modules/error (configure.ac): ... to here.
5925
5926 2011-05-06  Bruno Haible  <bruno@clisp.org>
5927
5928         duplocale: Move AC_LIBOBJ invocations to module description.
5929         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5930         gl_PREREQ_DUPLOCALE invocations from here...
5931         * modules/duplocale (configure.ac): ... to here.
5932
5933 2011-05-05  Bruno Haible  <bruno@clisp.org>
5934
5935         dirfd: Move AC_LIBOBJ invocations to module description.
5936         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5937         gl_FUNC_DIRFD.
5938         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5939         here...
5940         * modules/dirfd (configure.ac): ... to here.
5941         (Depends-on): Fix condition.
5942
5943 2011-05-05  Bruno Haible  <bruno@clisp.org>
5944
5945         chown: Respect rules for use of AC_LIBOBJ.
5946         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5947         * modules/chown (configure.ac): ... to here.
5948
5949 2011-05-05  Bruno Haible  <bruno@clisp.org>
5950
5951         chdir-long: Move AC_LIBOBJ invocations to module description.
5952         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5953         gl_PREREQ_CHDIR_LONG invocations from here...
5954         * modules/chdir-long (configure.ac): ... to here.
5955
5956 2011-05-05  Bruno Haible  <bruno@clisp.org>
5957
5958         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5959         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5960         from here...
5961         * modules/canonicalize-lgpl (configure.ac): ... to here.
5962
5963 2011-05-05  Bruno Haible  <bruno@clisp.org>
5964
5965         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5966         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5967         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5968         REPLACE_CALLOC.
5969         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5970         * modules/calloc-gnu (configure.ac): Likewise.
5971
5972 2011-05-05  Bruno Haible  <bruno@clisp.org>
5973
5974         btowc: Move AC_LIBOBJ invocations to module description.
5975         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5976         invocations from here...
5977         * modules/btowc (configure.ac): ... to here.
5978
5979 2011-05-21  Bruno Haible  <bruno@clisp.org>
5980
5981         atexit: Move AC_LIBOBJ invocations to module description.
5982         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5983         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5984         here...
5985         * modules/atexit (configure.ac): ... to here.
5986
5987 2011-05-05  Bruno Haible  <bruno@clisp.org>
5988
5989         atoll: Move AC_LIBOBJ invocations to module description.
5990         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5991         invocations from here...
5992         * modules/atoll (configure.ac): ... to here.
5993
5994 2011-05-05  Bruno Haible  <bruno@clisp.org>
5995
5996         argz: Move AC_LIBOBJ invocations to module description.
5997         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5998         * modules/argz (configure.ac): ... to here.
5999
6000 2011-05-05  Bruno Haible  <bruno@clisp.org>
6001
6002         alphasort: Move AC_LIBOBJ invocations to module description.
6003         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
6004         gl_PREREQ_ALPHASORT invocations from here...
6005         * modules/alphasort (configure.ac): ... to here.
6006
6007 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
6008
6009         verify: new macro verify_expr; verify_true deprecated
6010         * NEWS: Mention this.
6011         * doc/verify.texi (Compile-time Assertions): Document this.
6012         * lib/verify.h (verify_true): Deprecate.
6013         (verify_expr): New macro.
6014         * tests/test-verify.c (function): Test verify_expr.
6015
6016 2011-06-14  Jim Meyering  <meyering@redhat.com>
6017
6018         init.sh: give more portable redirection-related advice in a comment
6019         * tests/init.sh (stderr_fileno_): Update the advice in comments.
6020         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
6021         for lots of discussion.  Stefano Lattarini suggested the solution
6022         of putting "9>&2" after the command.  Reported by Bruno Haible.
6023
6024 2011-06-13  Bruno Haible  <bruno@clisp.org>
6025
6026         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
6027         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
6028         'none'.
6029
6030 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
6031
6032         ftoastr: use strtof only if HAVE_STRTOF
6033         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
6034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
6035         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
6036         * modules/ftoastr (configure.ac): Check for strtof.
6037
6038 2011-06-13  Bruno Haible  <bruno@clisp.org>
6039
6040         gnulib-tool: Addendum to 2011-06-08 commit.
6041         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
6042         and --witness-c-macro have been given, augment AM_CPPFLAGS.
6043
6044 2011-06-13  Bruno Haible  <bruno@clisp.org>
6045
6046         fseeko: Provide a non-inline replacement of fseek().
6047         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
6048         * modules/fseeko (Depends-on): Add fseek.
6049         * modules/fseek (License): Change to LGPLv2+.
6050
6051 2011-06-13  Bruno Haible  <bruno@clisp.org>
6052
6053         ftello: Provide a non-inline replacement of ftell().
6054         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
6055         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
6056         not have ftello() (such as on mingw).
6057         * modules/ftello (Depends-on): Add ftell.
6058         * modules/ftell (License): Change to LGPLv2+.
6059
6060 2011-05-07  Bruno Haible  <bruno@clisp.org>
6061
6062         ftell: Move AC_LIBOBJ invocations to module description.
6063         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
6064         * modules/ftell (configure.ac): ... to here.
6065
6066 2011-05-07  Bruno Haible  <bruno@clisp.org>
6067
6068         ftello: Respect rules for use of AC_LIBOBJ.
6069         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
6070         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
6071         here...
6072         * modules/ftello (configure.ac): ... to here.
6073
6074 2011-05-07  Bruno Haible  <bruno@clisp.org>
6075
6076         fseeko: Simplify.
6077         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
6078         (gl_FUNC_FSEEKO): Inline it here.
6079
6080 2011-05-07  Bruno Haible  <bruno@clisp.org>
6081
6082         fseek: Move AC_LIBOBJ invocations to module description.
6083         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
6084         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
6085         * modules/fseek (configure.ac): ... to here.
6086
6087 2011-05-07  Bruno Haible  <bruno@clisp.org>
6088
6089         fseek: Respect rules for use of AC_LIBOBJ.
6090         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
6091         here...
6092         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
6093
6094 2011-05-07  Bruno Haible  <bruno@clisp.org>
6095
6096         fseeko: Respect rules for use of AC_LIBOBJ.
6097         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
6098         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
6099         here...
6100         * modules/fseeko (configure.ac): ... to here.
6101
6102 2011-06-13  Bruno Haible  <bruno@clisp.org>
6103
6104         gnulib-tool: Allow comments in the 'Depends-on' section.
6105         * doc/gnulib.texi (Module description): Mention comment syntax in the
6106         Depends-on section.
6107         * gnulib-tool (func_get_dependencies): Filter out comment lines.
6108
6109 2011-06-13  Bruno Haible  <bruno@clisp.org>
6110
6111         file-set.h: guard __attibute__ use, now that it's not always defined
6112         * lib/file-set.h (record_file): Use __attribute__ only with compiler
6113         versions that support it.  This fixes a coreutils build failure with
6114         the vendor cc on HP-UX 11.31.
6115
6116 2011-06-12  Bruno Haible  <bruno@clisp.org>
6117
6118         acl: Add support for HP-UX >= 11.11 JFS ACLs.
6119         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
6120         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
6121         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
6122         (acl, aclsort): New declarations.
6123         (aclv_nontrivial): New declaration.
6124         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
6125         (file_has_acl): Read also the second kind of HP-UX ACLs.
6126         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
6127         kind of HP-UX ACLs if the first kind fails.
6128         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
6129         second kind of HP-UX ACLs.
6130         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
6131         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
6132         agree.
6133         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6134         hpuxjfs.
6135         Handle hpuxjfs.
6136         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6137         hpuxjfs.
6138         Handle hpuxjfs.
6139         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6140         (func_test_same_acls): Use both lsacl and getacl.
6141         Handle hpuxjfs.
6142         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6143         (func_test_same_acls): Use both lsacl and getacl.
6144         Handle hpuxjfs.
6145
6146 2011-06-12  Bruno Haible  <bruno@clisp.org>
6147
6148         acl: Complete the 2010-08-10 fix.
6149         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
6150         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
6151         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
6152         explicitly.
6153         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
6154         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
6155
6156 2011-06-12  Bruno Haible  <bruno@clisp.org>
6157
6158         spawn-pipe tests: Comments.
6159         * tests/test-spawn-pipe-child.c (main): Update comment.
6160         Reported by James Youngman <jay@gnu.org>.
6161
6162 2011-06-11  James Youngman  <jay@gnu.org>
6163
6164         New module 'stat-size'.
6165         * modules/stat-size: New module.  Provides macros for accessing
6166         file size information in instances of struct stat.  Depends on the
6167         fileblocks module because it calls st_blocks.
6168         * lib/stat-size.h: New file, adapted from coreutils' system.h.
6169         * doc/gnulib.texi: Include stat-size.texi.
6170         * doc/stat-size.texi: Documentation for this module.
6171         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
6172         * m4/fileblocks.m4: Mention that stat-size depends on the call to
6173         AC_STRUCT_ST_BLOCKS.
6174
6175 2011-06-09  Bruno Haible  <bruno@clisp.org>
6176
6177         thread: Support pthreads-win32.
6178         * lib/glthread/thread.h (gl_thread_self): Define differently on
6179         pthreads-win32.
6180         (gl_null_thread): New declaration.
6181         (gl_thread_self_pointer): New macro.
6182         * lib/glthread/thread.c (gl_null_thread): New constant.
6183         * tests/test-lock.c: Use gl_thread_self_pointer instead of
6184         gl_thread_self.
6185         * tests/test-tls.c: Likewise.
6186         Suggested by Paul Eggert. Reported by Eric Blake.
6187
6188 2011-06-09  Bruno Haible  <bruno@clisp.org>
6189
6190         thread: Fix confusion between NULL and 0.
6191         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
6192         Reported by Paul Eggert.
6193
6194 2011-06-09  Bruno Haible  <bruno@clisp.org>
6195
6196         spawn-pipe tests: Avoid test failure on HP-UX 11.
6197         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
6198         is closed.
6199
6200 2011-06-09  Bruno Haible  <bruno@clisp.org>
6201
6202         acl tests: Fix compilation error on HP-UX 11.
6203         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
6204
6205 2011-06-09  Bruno Haible  <bruno@clisp.org>
6206
6207         rmdir: Avoid test failure on HP-UX 10.20.
6208         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
6209         EEXIST.
6210
6211 2011-06-08  Eric Blake  <eblake@redhat.com>
6212
6213         perror: fix test on mingw
6214         * modules/perror-tests (Depends-on): Add dup2.
6215
6216         strerror_r-posix: fix on MacOS
6217         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
6218         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
6219         logic bug.
6220         * lib/strerror_r.c (strerror_r): Fix the bug.
6221         * lib/strerror.c (strerror): Likewise.
6222         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6223         problem.
6224         * doc/posix-functions/strerror.texi (strerror): Likewise.
6225         * doc/posix-functions/perror.texi (perror): Likewise.
6226         * tests/test-strerror.c (main): Enhance test.
6227         * tests/test-strerror_r.c (main): Likewise.
6228
6229 2011-06-08  Bruno Haible  <bruno@clisp.org>
6230
6231         gnulib-tool: Better isolation between different gnulib-tool invocations.
6232         * gnulib-tool: New option --witness-c-macro.
6233         (witness_c_macro): New variable.
6234         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
6235         AM_CPPFLAGS define it as a C macro.
6236         (func_emit_tests_Makefile_am): Likewise.
6237         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
6238         read it from there.
6239         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
6240         m4_define, not AC_DEFUN.
6241         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
6242         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
6243         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
6244         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
6245         s|...|...|, to substitute the values of the GNULIB_* module indicator
6246         variables.
6247         * modules/dirent (Makefile.am): Likewise.
6248         * modules/fcntl-h (Makefile.am): Likewise.
6249         * modules/iconv-h (Makefile.am): Likewise.
6250         * modules/langinfo (Makefile.am): Likewise.
6251         * modules/locale (Makefile.am): Likewise.
6252         * modules/math (Makefile.am): Likewise.
6253         * modules/netdb (Makefile.am): Likewise.
6254         * modules/poll-h (Makefile.am): Likewise.
6255         * modules/pty (Makefile.am): Likewise.
6256         * modules/search (Makefile.am): Likewise.
6257         * modules/signal (Makefile.am): Likewise.
6258         * modules/spawn (Makefile.am): Likewise.
6259         * modules/stdio (Makefile.am): Likewise.
6260         * modules/stdlib (Makefile.am): Likewise.
6261         * modules/string (Makefile.am): Likewise.
6262         * modules/sys_ioctl (Makefile.am): Likewise.
6263         * modules/sys_select (Makefile.am): Likewise.
6264         * modules/sys_socket (Makefile.am): Likewise.
6265         * modules/sys_stat (Makefile.am): Likewise.
6266         * modules/sys_times (Makefile.am): Likewise.
6267         * modules/sys_utsname (Makefile.am): Likewise.
6268         * modules/sys_wait (Makefile.am): Likewise.
6269         * modules/termios (Makefile.am): Likewise.
6270         * modules/time (Makefile.am): Likewise.
6271         * modules/unistd (Makefile.am): Likewise.
6272         * modules/wchar (Makefile.am): Likewise.
6273
6274 2011-06-08  Eric Blake  <eblake@redhat.com>
6275
6276         strerror: simplify replacement
6277         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
6278         * modules/strerror (configure.ac): No prereqs needed here...
6279         * modules/strerror-override (configure.ac): ...but this needs it.
6280         (Files): Add file for needed prereq macro.
6281
6282 2011-06-08  Bruno Haible  <bruno@clisp.org>
6283
6284         strerror_r-posix: Tweaks.
6285         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
6286         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
6287         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
6288         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
6289         (gl_FUNC_STRERROR_R): ... to here.
6290         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
6291
6292 2011-06-07  Eric Blake  <eblake@redhat.com>
6293
6294         perror: document fixed bugs
6295         * doc/posix-functions/perror.texi (perror): Document recent
6296         patches.
6297
6298 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
6299
6300         stat-time: get_stat_birthtime failure is better-defined
6301         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
6302         return a timestamp whose tv_sec and tv_nsec values are both -1.
6303         Previously, the spec said only that the tv_nsec value was negative.
6304         This upward-compatible change simplifies GNU tar a bit.
6305
6306 2011-06-07  Eric Blake  <eblake@redhat.com>
6307
6308         strerror_r-posix: work around cygwin 1.7.9
6309         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
6310         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
6311         bug without replacing strerror_r.
6312         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
6313         strerror_r is buggy, but without requiring strerror_r compilation.
6314         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
6315
6316         test-perror: relax test to ignore cygwin bug
6317         * tests/test-perror2.c (main): Relax test on requiring detection
6318         of stream errors, and use unbuffered stream.
6319         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
6320         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
6321         * doc/posix-functions/fputc.texi (fputc): Likewise.
6322         * doc/posix-functions/fputs.texi (fputs): Likewise.
6323         * doc/posix-functions/fputws.texi (fputws): Likewise.
6324         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
6325         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
6326         * doc/posix-functions/getopt.texi (getopt): Likewise.
6327         * doc/posix-functions/perror.texi (perror): Likewise.
6328         * doc/posix-functions/printf.texi (printf): Likewise.
6329         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
6330         * doc/posix-functions/psignal.texi (psignal): Likewise.
6331         * doc/posix-functions/putc.texi (putc): Likewise.
6332         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
6333         Likewise.
6334         * doc/posix-functions/putchar.texi (putchar): Likewise.
6335         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
6336         Likewise.
6337         * doc/posix-functions/puts.texi (puts): Likewise.
6338         * doc/posix-functions/putwc.texi (putwc): Likewise.
6339         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
6340         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6341         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6342         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
6343         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6344         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6345         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
6346         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
6347
6348 2011-05-22  Bruno Haible  <bruno@clisp.org>
6349
6350         strerror: Move AC_LIBOBJ invocations to module description.
6351         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
6352         gl_PREREQ_STRERROR invocations from here...
6353         * modules/strerror (configure.ac): ... to here.
6354
6355 2011-05-21  Bruno Haible  <bruno@clisp.org>
6356
6357         perror: Use common idiom.
6358         * modules/perror (configure.ac): Reorder statements.
6359
6360 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6361
6362         tests: fix usage message in 'mktempd_'
6363         * tests/init.sh (mktempd_): In the usage message, use literal
6364         'mktempd_', not '$ME' (which is even undefined), as the name of
6365         the subroutine.
6366
6367 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6368
6369         tests init: new function 'fatal_', for hard errors
6370         Before this patch, the only way offered by tests/init.sh to
6371         properly signal a hard error was the `framework_failure_'
6372         function.  But the error message issued by that function,
6373         as its name would suggest, refers to a set-up failure in the
6374         testsuite, while hard errors can obviously also be due to
6375         other reasons.  The best way to fix this inconsistency is to
6376         introduce a new function with a more general error message.
6377         * tests/init.sh (fatal_): New function.
6378
6379 2011-06-06  Eric Blake  <eblake@redhat.com>
6380
6381         canonicalize-lgpl: use common idiom
6382         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
6383         over newer POSIX -Rf.
6384         Reported by Bruno Haible.
6385
6386         canonicalize-lgpl: work around AIX realpath bug
6387         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
6388         * doc/posix-functions/realpath.texi (realpath): Document it.
6389         Reported by Bruno Haible.
6390
6391         strerror: work around FreeBSD bug
6392         * lib/strerror.c (strerror): Special case 0.
6393         Reported by Bruno Haible.
6394
6395         strerror-override: avoid bloating errno module
6396         * modules/errno (Files, configure.ac): Move replacement strings...
6397         * modules/strerror-override: ...to new module.
6398         * modules/strerror (Depends-on): Add strerror-override.
6399         * modules/strerror_r-posix (Depends-on): Likewise.
6400         * MODULES.html.sh: Document new module.
6401         Reported by Bruno Haible.
6402
6403 2011-06-06  Bruno Haible  <bruno@clisp.org>
6404
6405         spawn-pipe tests: Rename program.
6406         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
6407         * tests/test-spawn-pipe-child.c: Update comment.
6408         * tests/test-spawn-pipe.sh: Update.
6409         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
6410
6411         spawn-pipe tests: Link the child program only against libc.
6412         * tests/test-spawn-pipe-child.c: New file, extracted from
6413         tests/test-spawn-pipe.c.
6414         (main): Expect only one argument.
6415         (is_open): New function, copied from tests/test-pipe.c.
6416         * tests/test-spawn-pipe.c: Don't include <errno.h>.
6417         (child_main): Remove function.
6418         (test_pipe): Pass only one argument to the child program.
6419         (main): Remove child process code. Expect the child program's name as
6420         first argument.
6421         * tests/test-spawn-pipe.sh: Pass the child program's name as first
6422         argument.
6423         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
6424         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
6425         test-spawn-pipe-child against no libraries.
6426
6427 2011-06-06  Bruno Haible  <bruno@clisp.org>
6428
6429         careadlinkat: Avoid mismatch between ssize_t and int.
6430         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
6431         * lib/careadlinkat.c (careadlinkatcwd): Define always.
6432
6433 2011-06-06  Jim Meyering  <meyering@redhat.com>
6434
6435         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
6436         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
6437         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
6438
6439 2011-06-05  Bruno Haible  <bruno@clisp.org>
6440
6441         ansi-c++-opt: Interoperability with libtool.
6442         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
6443         set the variable to "no", not to ":".
6444         * NEWS: Mention the change.
6445
6446 2011-06-05  Bruno Haible  <bruno@clisp.org>
6447
6448         acl: Fix test failure on AIX 7.
6449         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
6450         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
6451
6452 2011-06-05  Bruno Haible  <bruno@clisp.org>
6453
6454         pipe-filter-ii: Fix test failure on AIX and IRIX.
6455         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
6456         with EAGAIN, retry with a smaller buffer size.
6457
6458 2011-06-05  Bruno Haible  <bruno@clisp.org>
6459
6460         localename: Fix link dependencies.
6461         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
6462         * modules/localename-tests (Makefile.am): Link test-localename with
6463         $(LIBTHREAD).
6464
6465 2011-06-05  Bruno Haible  <bruno@clisp.org>
6466
6467         error: Avoid gcc warning.
6468         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
6469
6470 2011-06-05  Bruno Haible  <bruno@clisp.org>
6471
6472         unsetenv: Avoid gcc warning.
6473         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
6474
6475 2011-06-05  Bruno Haible  <bruno@clisp.org>
6476
6477         setenv: Avoid gcc warning.
6478         * lib/setenv.c (setenv): Provide declaration if system lacks it.
6479
6480 2011-06-05  Bruno Haible  <bruno@clisp.org>
6481
6482         sys_select: Ensure memset is declared also on AIX 7.
6483         * lib/sys_select.in.h: Include <string.h> also on AIX.
6484         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
6485         self-contained also on AIX 7.1.
6486
6487 2011-06-04  Jim Meyering  <meyering@redhat.com>
6488
6489         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
6490         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
6491         function name, "error".
6492         (_gl_translatable_diag_func_re): New configurable variable.
6493
6494 2011-06-04  Bruno Haible  <bruno@clisp.org>
6495
6496         getopt: Avoid gcc warning.
6497         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
6498
6499 2011-06-04  Bruno Haible  <bruno@clisp.org>
6500
6501         strerror_r: Fix comments.
6502         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
6503         commit.
6504
6505 2011-06-04  Bruno Haible  <bruno@clisp.org>
6506
6507         perror: Fix compilation error.
6508         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
6509         Undefine fprintf, not sprintf.
6510         * modules/perror (Depends-on): Remove intprops, verify.
6511
6512 2011-06-04  Bruno Haible  <bruno@clisp.org>
6513
6514         setlocale: Enable replacement on Cygwin 1.5.
6515         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
6516         Cygwin 1.5.x.
6517         * doc/posix-functions/setlocale.texi: Mention that the problem with the
6518         LC_CTYPE category also exists on Cygwin 1.5.x.
6519
6520 2011-06-04  Bruno Haible  <bruno@clisp.org>
6521
6522         strerror-override: Don't disable symbol renamings.
6523         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
6524         * lib/strerror-override.c: Include config.h.
6525         (strerror_override): Don't undefine.
6526
6527 2011-06-03  Bruno Haible  <bruno@clisp.org>
6528
6529         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
6530         * lib/localename.h: Update copyright header.
6531         * lib/localename.c: Likewise.
6532         * lib/relocatable.h: Likewise.
6533         * lib/relocatable.c: Likewise.
6534
6535 2011-06-02  Bruno Haible  <bruno@clisp.org>
6536
6537         doc: Fix a module name.
6538         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
6539
6540 2011-06-02  Bruno Haible  <bruno@clisp.org>
6541
6542         pipe2: Remove dependency on 'nonblocking' module.
6543         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
6544         O_NONBLOCK is defined by gnulib.
6545         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
6546         is zero.
6547         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
6548         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
6549         defined by gnulib.
6550         (get_nonblocking_flag): New function.
6551         (main): Test O_NONBLOCK flag only if it is nonzero.
6552         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
6553
6554 2011-06-03  Jim Meyering  <meyering@redhat.com>
6555
6556         maint: three new prohibit-header-without-use rules
6557         Prohibit use of cloexec.h, posixver.h, same.h without use.
6558         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
6559         (sc_prohibit_posixver_without_use): Likewise.
6560         (sc_prohibit_same_without_use): Likewise.
6561
6562 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
6563
6564         allocator: 'die' routine is now given requested size
6565         * lib/allocator.h (struct allocator.die): New size arg.
6566         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
6567         If the actual problem is an ssize_t limitation, not a size_t or
6568         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
6569
6570 2011-06-01  Eric Blake  <eblake@redhat.com>
6571
6572         strerror: drop strerror_r dependency
6573         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
6574         * lib/strerror-override.c (strerror_override): ...to new file.
6575         * lib/strerror-override.h: Add prototype.
6576         * lib/strerror-impl.h: Delete.
6577         * lib/strerror.c (strerror): New implementation.
6578         * modules/errno (Files): Add new files.
6579         (configure.ac): Compile new file as appropriate.
6580         * modules/strerror (Files): Drop unused file.
6581         (Depends-on): Drop strerror_r-posix.
6582         * MODULES.html.sh: Document strerror_r-posix.
6583         Requested by Sam Steingold.
6584
6585         perror: call strerror_r directly
6586         * modules/perror (Files): Drop strerror-impl.h.
6587         * lib/perror.c (perror): Use our own stack buffer, rather than
6588         calling a wrapper that uses static storage.
6589         * doc/posix-functions/perror.texi (perror): Document a limitation
6590         of our replacement.
6591
6592         strerror_r: fix includes for FreeBSD
6593         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
6594         since we use abort on some platforms.
6595         Reported by Matthias Bolte.
6596
6597 2011-05-31  Bruno Haible  <bruno@clisp.org>
6598
6599         Fix link errors in tests: openat-die uses gettext-h.
6600         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
6601         against $(LIBINTL).
6602         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
6603         against $(LIBINTL).
6604         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
6605         $(LIBINTL).
6606         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
6607         against $(LIBINTL).
6608         * modules/linkat-tests (Makefile.am): Link test-linkat against
6609         $(LIBINTL).
6610         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
6611         $(LIBINTL).
6612         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
6613         against $(LIBINTL).
6614         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
6615         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
6616         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
6617         $(LIBINTL).
6618         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
6619         $(LIBINTL).
6620         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
6621         $(LIBINTL).
6622         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6623
6624 2011-05-31  Bruno Haible  <bruno@clisp.org>
6625
6626         Fix link errors in tests: wait-process uses gettext-h.
6627         * modules/nonblocking-pipe-tests (Makefile.am): Set
6628         test_nonblocking_pipe_main_LDADD.
6629         * modules/nonblocking-socket-tests (Makefile.am): Link
6630         test-nonblocking-socket-main against $(LIBINTL).
6631         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6632
6633 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
6634
6635         assert-h: work around 'verify' incompatibility
6636         * lib/verify.h: Use @...@ directives, not ifdef.
6637         * modules/assert-h (assert.h): Implement the directives.
6638         (assert.h): Substitute the symbol-prefix more consistently.
6639
6640 2011-05-29  Jim Meyering  <meyering@redhat.com>
6641
6642         trim: remove three superfluous assignments
6643         * lib/trim.c (trim2): Remove three superfluous assignments
6644         and correct brace positioning.
6645
6646 2011-05-29  Bruno Haible  <bruno@clisp.org>
6647
6648         wctype-h: Avoid namespace pollution on Solaris 2.6.
6649         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
6650         identifiers.
6651         * doc/posix-headers/wctype.texi: Mention the problem.
6652         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6653
6654 2011-05-28  Jim Meyering  <meyering@redhat.com>
6655
6656         parse-datetime.y: accommodate -Wstrict-overflow
6657         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
6658         placate -Wstrict-overflow.
6659
6660         trim: avoid a warning from -O2 -Wstrict-overflow
6661         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
6662
6663 2011-05-29  Bruno Haible  <bruno@clisp.org>
6664
6665         gnulib-tool: Fix bug in yesterday's commit.
6666         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
6667         twice.
6668
6669 2011-05-29  Bruno Haible  <bruno@clisp.org>
6670
6671         Allow multiple gnulib generated include files to be combined.
6672         * gnulib-tool (func_compute_include_guard_prefix): New function.
6673         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
6674         ${gl_include_guard_prefix} references.
6675         (func_import, func_create_testdir): Invoke
6676         func_compute_include_guard_prefix.
6677         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
6678         * lib/ctype.in.h: Likewise.
6679         * lib/dirent.in.h: Likewise.
6680         * lib/errno.in.h: Likewise.
6681         * lib/fcntl.in.h: Likewise.
6682         * lib/float.in.h: Likewise.
6683         * lib/getopt.in.h: Likewise.
6684         * lib/iconv.in.h: Likewise.
6685         * lib/langinfo.in.h: Likewise.
6686         * lib/locale.in.h: Likewise.
6687         * lib/math.in.h: Likewise.
6688         * lib/netdb.in.h: Likewise.
6689         * lib/netinet_in.in.h: Likewise.
6690         * lib/poll.in.h: Likewise.
6691         * lib/pthread.in.h: Likewise.
6692         * lib/pty.in.h: Likewise.
6693         * lib/sched.in.h: Likewise.
6694         * lib/se-selinux.in.h: Likewise.
6695         * lib/search.in.h: Likewise.
6696         * lib/signal.in.h: Likewise.
6697         * lib/spawn.in.h: Likewise.
6698         * lib/stdarg.in.h: Likewise.
6699         * lib/stddef.in.h: Likewise.
6700         * lib/stdint.in.h: Likewise.
6701         * lib/stdio.in.h: Likewise.
6702         * lib/stdlib.in.h: Likewise.
6703         * lib/string.in.h: Likewise.
6704         * lib/strings.in.h: Likewise.
6705         * lib/sys_file.in.h: Likewise.
6706         * lib/sys_ioctl.in.h: Likewise.
6707         * lib/sys_select.in.h: Likewise.
6708         * lib/sys_socket.in.h: Likewise.
6709         * lib/sys_stat.in.h: Likewise.
6710         * lib/sys_time.in.h: Likewise.
6711         * lib/sys_times.in.h: Likewise.
6712         * lib/sys_uio.in.h: Likewise.
6713         * lib/sys_utsname.in.h: Likewise.
6714         * lib/sys_wait.in.h: Likewise.
6715         * lib/sysexits.in.h: Likewise.
6716         * lib/termios.in.h: Likewise.
6717         * lib/time.in.h: Likewise.
6718         * lib/unistd.in.h: Likewise.
6719         * lib/wchar.in.h: Likewise.
6720         * lib/wctype.in.h: Likewise.
6721         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
6722         * modules/ctype (Makefile.am): Likewise.
6723         * modules/dirent (Makefile.am): Likewise.
6724         * modules/errno (Makefile.am): Likewise.
6725         * modules/fcntl-h (Makefile.am): Likewise.
6726         * modules/float (Makefile.am): Likewise.
6727         * modules/getopt-posix (Makefile.am): Likewise.
6728         * modules/iconv-h (Makefile.am): Likewise.
6729         * modules/langinfo (Makefile.am): Likewise.
6730         * modules/locale (Makefile.am): Likewise.
6731         * modules/math (Makefile.am): Likewise.
6732         * modules/netdb (Makefile.am): Likewise.
6733         * modules/netinet_in (Makefile.am): Likewise.
6734         * modules/poll-h (Makefile.am): Likewise.
6735         * modules/pthread (Makefile.am): Likewise.
6736         * modules/pty (Makefile.am): Likewise.
6737         * modules/sched (Makefile.am): Likewise.
6738         * modules/search (Makefile.am): Likewise.
6739         * modules/selinux-h (Makefile.am): Likewise.
6740         * modules/signal (Makefile.am): Likewise.
6741         * modules/spawn (Makefile.am): Likewise.
6742         * modules/stdarg (Makefile.am): Likewise.
6743         * modules/stddef (Makefile.am): Likewise.
6744         * modules/stdint (Makefile.am): Likewise.
6745         * modules/stdio (Makefile.am): Likewise.
6746         * modules/stdlib (Makefile.am): Likewise.
6747         * modules/string (Makefile.am): Likewise.
6748         * modules/strings (Makefile.am): Likewise.
6749         * modules/sys_file (Makefile.am): Likewise.
6750         * modules/sys_ioctl (Makefile.am): Likewise.
6751         * modules/sys_select (Makefile.am): Likewise.
6752         * modules/sys_socket (Makefile.am): Likewise.
6753         * modules/sys_stat (Makefile.am): Likewise.
6754         * modules/sys_time (Makefile.am): Likewise.
6755         * modules/sys_times (Makefile.am): Likewise.
6756         * modules/sys_uio (Makefile.am): Likewise.
6757         * modules/sys_utsname (Makefile.am): Likewise.
6758         * modules/sys_wait (Makefile.am): Likewise.
6759         * modules/sysexits (Makefile.am): Likewise.
6760         * modules/termios (Makefile.am): Likewise.
6761         * modules/time (Makefile.am): Likewise.
6762         * modules/unistd (Makefile.am): Likewise.
6763         * modules/wchar (Makefile.am): Likewise.
6764         * modules/wctype-h (Makefile.am): Likewise.
6765         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
6766
6767 2011-05-29  Bruno Haible  <bruno@clisp.org>
6768
6769         assert-h: Allow multiple gnulib generated replacements to coexist.
6770         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
6771
6772 2011-05-29  Bruno Haible  <bruno@clisp.org>
6773
6774         argp: Allow coexistence with strerror_r-posix module.
6775         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
6776         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
6777         by gnulib's <string.h> replacement), assume it has the POSIX signature,
6778         not the glibc signature.
6779
6780 2011-05-28  Bruno Haible  <bruno@clisp.org>
6781
6782         gnulib-tool: Alternative structure of testdirs, similar to --import.
6783         * gnulib-tool: New option --single-configure.
6784         (func_usage): Document it.
6785         (single_configure): New variable.
6786         (func_modules_transitive_closure_separately,
6787         func_modules_transitive_closure_separately,
6788         func_determine_use_libtests, func_modules_add_dummy_separately,
6789         func_modules_to_filelist_separately): New functions, extracted from
6790         func_import.
6791         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
6792         (func_import): Use the new functions.
6793         (func_create_testdir): Set final_modules. Handle $single_configure =
6794         true case.
6795
6796 2011-05-28  Bruno Haible  <bruno@clisp.org>
6797
6798         getloadavg: Remove an unreliable safety check.
6799         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
6800         getloadavg.c is in place.
6801         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
6802         Reported by Sam Steingold <sds@gnu.org>.
6803
6804 2011-05-28  Bruno Haible  <bruno@clisp.org>
6805
6806         doc: Cleanup yet another file produced by texinfo.tex.
6807         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
6808
6809 2011-05-28  Bruno Haible  <bruno@clisp.org>
6810
6811         Finish the conditional dependencies mechanism.
6812         * gnulib-tool: New option --no-conditional-dependencies.
6813         (func_usage): Document it. Don't mark --conditional-dependencies as
6814         experimental.
6815         (cond_dependencies): The possible values can now be true, false, empty.
6816         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
6817         (func_import): Store setting in gnulib-cache.m4 and read it from there.
6818         * doc/gnulib-tool.texi (Conditional dependencies): New section.
6819
6820 2011-05-28  Bruno Haible  <bruno@clisp.org>
6821
6822         doc: Use a recent texinfo.tex.
6823         * doc/Makefile (tex_opts): New variable.
6824         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
6825
6826 2011-05-28  Jim Meyering  <meyering@redhat.com>
6827
6828         intprops.h: adjust comment to match code change
6829         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
6830         only once, it *may* have side effects.  Also fix an unrelated typo.
6831         (_GL_INT_SIGNED): Likewise.
6832
6833 2011-05-26  Simon Josefsson  <simon@josefsson.org>
6834
6835         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
6836
6837 2011-05-26  Bruno Haible  <bruno@clisp.org>
6838
6839         mbsrchr: Avoid collision with system function on Interix.
6840         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
6841         Reported by Markus Duft <mduft@gentoo.org>.
6842
6843 2011-05-15  James Youngman  <jay@gnu.org>
6844
6845         getopt: for ambiguous options, enumerate the possibilities.
6846         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
6847         the ambiguous options when an ambiguous prefix is given. This was
6848         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
6849         glibc change was
6850         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
6851
6852 2011-05-25  Eric Blake  <eblake@redhat.com>
6853
6854         getcwd: work around mingw bug
6855         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
6856         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6857         Reported by Matthias Bolte.
6858
6859 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6860
6861         test-intprops: disable -Wtype-limits diagnostics
6862         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
6863         diagnostics.  Otherwise, the integer overflow macros generate many
6864         diagnostics.  Reported by Jim Meyering in
6865         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6866
6867         intprops: shorten, to pacify gcc -Woverlength-strings
6868         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
6869         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
6870         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
6871         likely to run afoul of C compiler limits for string constant lengths.
6872         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6873
6874 2011-05-24  Eric Blake  <eblake@redhat.com>
6875
6876         docs: document recently fixed glibc printf bug
6877         * doc/posix-functions/fprintf.texi (fprintf): Document it.
6878         * doc/posix-functions/printf.texi (printf): Likewise.
6879         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6880         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6881
6882         closein-tests: convert to init.sh
6883         * modules/closein-tests (Files): Add init.sh
6884         * tests/test-closein.sh Use it.
6885
6886         yesno-tests: convert to init.sh
6887         * modules/yesno-tests (Files): Add init.sh.
6888         * tests/test-yesno.sh: Use it.
6889
6890         atexit-tests: ensure reliable exit status
6891         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
6892         Reported by Bruno Haible.
6893
6894 2011-05-24  Bruno Haible  <bruno@clisp.org>
6895
6896         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
6897         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
6898         gl_PREREQ_STRERROR_R invocations from here...
6899         * modules/strerror_r-posix (configure.ac): ... to here.
6900
6901 2011-05-24  Eric Blake  <eblake@redhat.com>
6902
6903         strerror_r: fix missing header
6904         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6905
6906         strerror_r: fix AIX test failures
6907         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6908         ERANGE failure.
6909
6910         strerror_r: fix Solaris test failures
6911         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6912         failures.
6913         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6914
6915         strerror_r: enforce POSIX recommendations
6916         * lib/strerror_r.c (safe_copy): New helper method.
6917         (strerror_r): Guarantee a non-empty string.
6918         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6919         recent POSIX rulings and to match our strerror guarantees.
6920         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6921
6922 2011-05-24  Jim Meyering  <meyering@redhat.com>
6923
6924         test-perror2.c: avoid warning about unused variable
6925         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6926
6927 2011-05-24  Eric Blake  <eblake@redhat.com>
6928
6929         perror: avoid spurious test failure on HP-UX
6930         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6931
6932         tests: fix logic bug in init.sh
6933         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6934         shell.
6935
6936 2011-05-24  Jim Meyering  <meyering@redhat.com>
6937
6938         utimensat: do not reference an out-of-scope buffer
6939         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6940         declared in an inner scope, yet "times" would be dereferenced outside
6941         the scope in which "ts" was valid.
6942         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6943         of ts[2] "out/up", so that the use of aliased "times" (via
6944         "times = ts;") does not end up referencing an out-of-scope "ts"
6945
6946         opendir-safer.c: don't clobber errno; don't close negative FD
6947         * lib/opendir-safer.c (opendir_safer):
6948         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6949         file descriptor, and more importantly, don't clobber the
6950         offending errno value with EINVAL.  Before, upon failure
6951         of dup_safer, we would pass the negative file descriptor to
6952         fdopendir, which would clobber errno.
6953
6954 2011-05-23  Bruno Haible  <bruno@clisp.org>
6955
6956         idcache: Fix module description.
6957         * modules/idcache (Include): Set to "idcache.h".
6958
6959 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6960
6961         gnulib-tool: fix portability problem with MacOS sed
6962         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6963         before the "}".  Problem reported by Leo in
6964         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6965         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6966         sed_extract_condition1, sed_extract_condition2.
6967
6968 2011-05-23  Bruno Haible  <bruno@clisp.org>
6969
6970         hash: Simplify autoconf macro.
6971         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6972
6973 2011-05-23  Bruno Haible  <bruno@clisp.org>
6974
6975         getugroups: Fix module description.
6976         * modules/getugroups (Include): Set to "getugroups.h".
6977
6978 2011-05-23  Bruno Haible  <bruno@clisp.org>
6979
6980         linkat: Simplify autoconf macro.
6981         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6982
6983 2011-05-23  Bruno Haible  <bruno@clisp.org>
6984             Eric Blake  <eblake@redhat.com>
6985
6986         linkat, renameat: Update dependencies.
6987         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6988         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6989         symlinkat.
6990
6991 2011-05-23  Jim Meyering  <meyering@redhat.com>
6992
6993         maint.mk: more tight_scope improvements
6994         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6995         (_gl_TS_headers): Define only in if-0'd block.
6996         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6997         sometimes we must *not* use it.  Adjust uses accordingly.
6998         (sc_tight_scope): Use much simpler grep-based test to determine
6999         whether we skip this rule.
7000
7001         maint.mk: generalize/improve the tight-scope rule
7002         * top/maint.mk: Emit a warning when the test is skipped.
7003         (_gl_TS_dir): Add $(srcdir)/ prefix.
7004         (_gl_TS_function_match): Simplify, rather than trying
7005         to enumerate common types.  Otherwise, it would fail to match an
7006         "extern unsigned char const *" declaration in idutils.
7007         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
7008         a way to support use of that type of macro.
7009         (_gl_TS_var_match): Simplify regexp.
7010         (_gl_TS_obj_files): New configurable variable.
7011         (_gl_TS_headers): Likewise.
7012
7013 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7014
7015         verify: fix bug when gnulib <assert.h> is also included
7016         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
7017         is defined, not if _GL_STATIC_ASSERT_H is not defined.
7018         Perhaps there's a better way, but this fixes the immediate problem.
7019         Problem reported by Bruno Haible in
7020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
7021
7022 2011-05-22  Bruno Haible  <bruno@clisp.org>
7023
7024         xgetcwd: Simplify autoconf macro.
7025         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
7026
7027 2011-05-22  Bruno Haible  <bruno@clisp.org>
7028
7029         New module 'mktime-internal'.
7030         * modules/mktime-internal: New file.
7031         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
7032         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
7033         mktime_internal as a C macro if libc has __mktime_internal.
7034         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
7035         conditions.
7036         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
7037
7038 2011-05-22  Bruno Haible  <bruno@clisp.org>
7039
7040         timegm: Correct mktime replacement statements.
7041         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
7042         defining mktime as a C macro. This completes a 2009-07-28 commit.
7043
7044 2011-05-22  Bruno Haible  <bruno@clisp.org>
7045
7046         timegm: Simplify autoconf macro.
7047         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
7048
7049 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7050
7051         clock-time: change to LGPLv2+.
7052         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
7053         BSD-like but we have no mark for that; this is good enough for now.
7054
7055 2011-05-21  Bruno Haible  <bruno@clisp.org>
7056
7057         strerror_r: Fix comments.
7058         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
7059
7060 2011-05-21  Bruno Haible  <bruno@clisp.org>
7061
7062         relocatable-prog-wrapper: Fix possible link error.
7063         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
7064         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
7065         (gl_FUNC_SETENV): ... to here.
7066         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
7067         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
7068
7069 2011-05-21  Bruno Haible  <bruno@clisp.org>
7070
7071         relocatable-prog-wrapper: Assume strerror() exists.
7072         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
7073         m4/strerror.m4.
7074         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
7075         * lib/relocwrapper.c: Remove mention of strerror module.
7076         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
7077         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
7078         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
7079         C macro.
7080
7081 2011-05-21  Bruno Haible  <bruno@clisp.org>
7082
7083         select: Simplify replacement idiom.
7084         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
7085         Win32 platforms.
7086         * lib/sys_select.in.h (select): Simplify accordingly.
7087         * modules/select (Depends-on): Likewise.
7088
7089 2011-05-21  Bruno Haible  <bruno@clisp.org>
7090
7091         mkdir-p: Simplify autoconf macro.
7092         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
7093         gl_FUNC_LCHOWN.
7094
7095 2011-05-21  Eric Blake  <eblake@redhat.com>
7096
7097         strerror_r: avoid clobbering strerror on cygwin
7098         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
7099         fall back instead to sys_errlist.
7100         * modules/strerror (configure.ac): Add witness.
7101         * tests/test-strerror_r.c (main): Enhance test.
7102         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7103         * tests/test-perror2.c (main): Free memory before exit.
7104
7105 2011-05-21  Bruno Haible  <bruno@clisp.org>
7106
7107         mkdtemp: Use gnulib naming conventions.
7108         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
7109         * modules/mkdtemp (configure.ac): Update.
7110
7111 2011-05-20  Eric Blake  <eblake@redhat.com>
7112
7113         strerror_r: avoid corrupting errno on Solaris
7114         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
7115         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7116
7117         strerror_r: avoid compiler warning
7118         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
7119
7120         strerror_r: simplify AIX code
7121         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
7122
7123         test-perror: avoid spurious failure on FreeBSD
7124         * modules/perror-tests (Depends-on): Add strerror, now that
7125         strerror_r no longer pulls it in.
7126
7127 2011-05-20  Bruno Haible  <bruno@clisp.org>
7128
7129         strerror_r-posix: Remove unused dependencies.
7130         * modules/strerror_r-posix (Depends-on): Remove strerror.
7131         Reported by Eric Blake.
7132
7133 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
7134
7135         intprops: remove assumption about A|B representation
7136         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
7137         is a valid integer if both A and B are.  Although this is true for
7138         all known practical hosts, the C standard doesn't guarantee it,
7139         and the code need not assume it.  Also, this change may work around
7140         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
7141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
7142
7143 2011-05-20  Eric Blake  <eblake@redhat.com>
7144
7145         perror: work around FreeBSD bug
7146         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
7147         is broken.  Move AC_LIBOBJ...
7148         * modules/perror (configure.ac): Here.
7149         * doc/posix-functions/perror.texi (perror): Document this.
7150         * tests/test-perror2.c (main): Enhance test.
7151
7152         test-perror: check for strerror interactions
7153         * tests/macros.h (STREQ): Add macro.
7154         * modules/perror-tests (Files): Add second test.
7155         * tests/test-perror2.c (main): New file.
7156         * doc/posix-functions/perror.texi (perror): Document glibc bug.
7157
7158         test-perror: rewrite to use init script
7159         * modules/perror-tests (Files): Add init.sh.
7160         * tests/test-perror.sh: Use temporary directory.
7161
7162 2011-05-20  Jim Meyering  <meyering@redhat.com>
7163
7164         maint: replace misused "a" with "an"
7165         * doc/intprops.texi: "a integer"
7166         * doc/regex.texi: "a explanation"
7167         * lib/alignof.h: "a object"
7168         * lib/argmatch.h: "a explanation"
7169         * lib/argp-help.c: "a option" and "a OPTION_DOC"
7170         * lib/stdint.in.h: "a integer"
7171         * lib/userspec.c: "a owner"
7172         * doc/gnulib.texi: Fix "a idea", and reword.
7173
7174 2011-05-19  Jim Meyering  <meyering@redhat.com>
7175
7176         maint: correct misuse of "a" and "an"
7177         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
7178         * lib/argp-help.c: "an docum...": s/an/a/
7179         * lib/argp-parse.c: "An vector": s/An/A/
7180         * lib/execute.c: "an native": s/an/a/
7181         * lib/spawn-pipe.c: Likewise.
7182         * lib/gc.h: "an Gc_rc": s/an/a/
7183         * lib/unigbrk.in.h: "an grapheme": s/an/a/
7184         * lib/fts.c: "an stat.st_dev": s/an/a/
7185
7186 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7187
7188         intprops-tests: work around HP-UX 11.23 cc bug with constants
7189         * tests/test-intprops.c (VERIFY): New macro.
7190         (main): Use it, instead of verify, to work around the compiler bug; see
7191         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7192
7193         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
7194         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
7195         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
7196         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
7197         (_GL_REMAINDER_OVERFLOW): Use it.
7198
7199         intprops-tests: revert unsigned part of previous change
7200         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
7201         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
7202         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
7203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
7204
7205 2011-05-19  Bruno Haible  <bruno@clisp.org>
7206
7207         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
7208         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
7209         strerror_r() returned without filling the buffer.
7210         Reported by Eric Blake.
7211
7212 2011-05-19  Eric Blake  <eblake@redhat.com>
7213
7214         strerror_r: guarantee unchanged errno
7215         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
7216         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
7217         failure.
7218         * tests/test-strerror_r.c (main): Enhance test.
7219
7220 2011-05-19  Bruno Haible  <bruno@clisp.org>
7221
7222         strerror_r: Reorder #if blocks.
7223         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
7224         for consistency with the previous commit.
7225
7226 2011-05-19  Bruno Haible  <bruno@clisp.org>
7227
7228         perror: Avoid clobbering the strerror buffer when possible.
7229         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
7230         * lib/strerror.c: Include it.
7231         * modules/strerror (Files): Add lib/strerror-impl.h.
7232         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
7233         (my_strerror): New function, defined through lib/strerror-impl.h.
7234         (perror): Use it instead of strerror.
7235         * modules/perror (Files): Add lib/strerror-impl.h.
7236         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
7237
7238 2011-05-19  Eric Blake  <eblake@redhat.com>
7239
7240         strerror_r: fix on newer cygwin
7241         * lib/strerror_r.c (strerror_r): Cygwin now has
7242         __xpg_strerror_r, use it.
7243
7244 2011-05-19  Bruno Haible  <bruno@clisp.org>
7245
7246         strerror_r: Avoid clobbering the strerror buffer when possible.
7247         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
7248         (sys_nerr, sys_errlist): New declarations.
7249         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
7250         HP-UX, native Win32, IRIX, and 32-bit Solaris.
7251         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
7252
7253 2011-05-19  Bruno Haible  <bruno@clisp.org>
7254
7255         strerror_r: Fix test failure on mingw.
7256         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
7257         EXTEND_STRERROR_R.
7258         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
7259         macros from errno.in.h instead.
7260
7261 2011-05-19  Eric Blake  <eblake@redhat.com>
7262
7263         strerror: relax test for Solaris
7264         * tests/test-strerror.c (main): Permit Solaris behavior.
7265         * tests/test-strerror_r.c (main): Likewise.
7266
7267         strerror: enforce POSIX ruling on strerror(0)
7268         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
7269         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7270         * lib/strerror_r.c (rpl_strerror_r): Work around it.
7271         * doc/posix-functions/strerror.texi (strerror): Document it.
7272         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
7273         * tests/test-strerror.c (main): Strengthen test.
7274         * tests/test-strerror_r.c (main): Likewise.
7275
7276 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7277
7278         intprop-tests: port to older and more-pedantic compilers
7279         * modules/intprops-tests (Files): Add tests/macros.h.
7280         * tests/test-intprops.c: Include macros.h.
7281         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
7282         it's no longer documented to expand to an integer constant expression.
7283         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
7284         argument is floating point, as it's no longer documented to expand
7285         to an integer constant expression in that case.
7286         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
7287         compiler bugs reported by Bruno Haible.  See
7288         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7289         (U0, U1): New constants, to work around the same bugs.  Also,
7290         in tests, use e.g., "(unsigned int) 39" rather than "39u".
7291
7292         intprops: work around C compiler bugs
7293         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
7294         bug in Sun C 5.11 2010/08/13 and other compilers; see
7295         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7296
7297         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
7298         * doc/intprops.texi (Integer Type Determination): Fix
7299         documentation for TYPE_IS_INTEGER: it returns an constant
7300         expression, not an integer constant expression.  Fix doc for
7301         TYPE_SIGNED: it returns an integer constant expression only if its
7302         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
7303         hardly worth documented that way....)
7304
7305 2011-05-18  Bruno Haible  <bruno@clisp.org>
7306
7307         strerror_r: Avoid clobbering the strerror buffer when possible.
7308         * lib/strerror_r.c (strerror_r): Merge the three implementations.
7309         Handle gnulib defined errno values here. When strerror() returns NULL
7310         or an empty string, return EINVAL.
7311         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
7312         gnulib defined errno values here.
7313         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
7314
7315 2011-05-18  Eric Blake  <eblake@redhat.com>
7316
7317         fnmatch: avoid compiler warning
7318         * lib/fnmatch_loop.c (FCT): Use correct type.
7319         Reported by Matthias Bolte.
7320
7321 2011-05-13  Jim Meyering  <meyering@redhat.com>
7322
7323         maint.mk: three new prohibit_<HDR>_without_use rules
7324         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
7325         (sc_prohibit_stdio-safer_without_use): Likewise.
7326         (sc_prohibit_xfreopen_without_use): Likewise.
7327
7328 2011-05-17  Jim Meyering  <meyering@redhat.com>
7329
7330         announce-gen: fail if the NEWS delta is empty
7331         If there's nothing noteworthy in NEWS, then either you forgot
7332         or you shouldn't be releasing.
7333         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
7334
7335 2011-05-17  Pádraig Brady <P@draigBrady.com>
7336
7337         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
7338         reserved symbols starting with double underscore from the check.
7339
7340 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
7341
7342         intprops: add doc
7343         * doc/intprops.texi: New file, documenting intprops.
7344         * doc/gnulib.texi (Particular Modules): Include it.
7345
7346         verify: add doc to gnulib manual and fix example
7347         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
7348         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
7349         (Compile-time Assertions): Fix example so it can't overflow.
7350
7351 2011-05-17  Jim Meyering  <meyering@redhat.com>
7352
7353         warnings.m4: don't usurp save_CPPFLAGS variable name
7354         * m4/warnings.m4: Prefix local temporary variable name with gl_.
7355
7356         doc: fix typo
7357         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
7358
7359 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7360             Bruno Haible  <bruno@clisp.org>
7361
7362         doc: Tweak recent change.
7363         * README (Portability guidelines): Tweak new text.
7364         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
7365         Interix 6.1.
7366
7367 2011-05-16  Eric Blake  <eblake@redhat.com>
7368
7369         inttypes: avoid autoconf warning
7370         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
7371         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7372
7373 2011-05-16  Sam Steingold <sds@gnu.org>
7374         and Eric Blake  <eblake@redhat.com>
7375
7376         vc-list-files: accept multiple directory operands
7377         * build-aux/vc-list-files: Iterate over all remaining operands.
7378
7379 2011-05-16  Bruno Haible  <bruno@clisp.org>
7380
7381         Fix confusion regarding deprecated modules.
7382         * modules/calloc (Status, Notice): Mark module as deprecated, not
7383         obsolete.
7384         * modules/fnmatch-posix (Status, Notice): Likewise.
7385         * modules/getdate (Status, Notice): Likewise.
7386         * modules/getopt (Status, Notice): Likewise.
7387         * modules/malloc (Status, Notice): Likewise.
7388         * modules/pipe (Status, Notice): Likewise.
7389         * modules/realloc (Status, Notice): Likewise.
7390         * modules/rename-dest-slash (Status, Notice): Likewise.
7391         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
7392         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
7393         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
7394         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
7395         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
7396
7397 2011-05-16  Bruno Haible  <bruno@clisp.org>
7398
7399         doc: List the target platforms.
7400         * doc/gnulib-intro.texi (Target Platforms): New section.
7401         * doc/gnulib.texi (Introduction): Update menu.
7402         * README (Portability guidelines): Refer to the new section. Update
7403         statement about oldest supported environment. Remove rationale why
7404         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
7405         unportable C89 function.
7406         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
7407         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
7408
7409 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7410
7411         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
7412
7413 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
7414
7415         intprops-tests: new module
7416         * modules/intprops-tests, tests/test-intprops.c: New files.
7417
7418         intprops: add safe, portable integer overflow checking
7419         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
7420         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
7421         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
7422         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
7423         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
7424         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
7425         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
7426         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
7427         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
7428         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
7429         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
7430
7431 2011-05-12  James Youngman  <jay@gnu.org>
7432
7433         Add a test for glibc's Bugzilla bug #12378.
7434         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
7435         doesn't allow the literal matching of a lone "[" (which is
7436         required by POSIX).
7437         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
7438
7439 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
7440
7441         Sync glibc change fixing Bugzilla bug #12378.
7442         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
7443         beginning and fall back to matching as normal character if the
7444         string ends before the matching ']' is found.  This is what POSIX
7445         requires.
7446
7447 2011-05-13  Eric Blake  <eblake@redhat.com>
7448
7449         getcwd-lgpl: relax test for FreeBSD
7450         * doc/posix-functions/getcwd.texi (getcwd): Document portability
7451         issue.
7452         * tests/test-getcwd-lgpl.c (main): Relax test.
7453         Reported by Matthias Bolte.
7454
7455 2011-05-11  Eric Blake  <eblake@redhat.com>
7456
7457         test-fflush: silence compiler warning
7458         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
7459
7460 2011-05-11  Bruno Haible  <bruno@clisp.org>
7461
7462         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
7463         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
7464         * modules/canonicalize (Depends-on): Add 'nocrash'.
7465         * modules/canonicalize-lgpl (Depends-on): Likewise.
7466         * doc/posix-functions/realpath.texi: Update platforms list.
7467         Reported by Ryan Schmidt <ryandesign@macports.org>.
7468
7469 2011-05-11  Bruno Haible  <bruno@clisp.org>
7470
7471         group-member: Declare function in <unistd.h>.
7472         * lib/unistd.in.h (group_member): New declaration.
7473         * lib/group-member.h: Remove file.
7474         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
7475         * tests/test-unistd-c++.cc: Check signature of group_member.
7476         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
7477         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
7478         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
7479         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
7480         HAVE_GROUP_MEMBER.
7481         * modules/group-member (Files): Remove lib/group-member.h.
7482         (Depends-on): Add unistd. Specify conditions.
7483         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7484         (Include): Change to <unistd.h>.
7485         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
7486         HAVE_GROUP_MEMBER.
7487         * NEWS: Mention the change.
7488         * lib/euidaccess.c: Don't include group-member.h.
7489
7490 2011-05-11  Bruno Haible  <bruno@clisp.org>
7491
7492         group-member: Document module.
7493         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
7494         module.
7495
7496 2011-05-11  Bruno Haible  <bruno@clisp.org>
7497
7498         fclose: Fix mistake earlier today.
7499         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
7500
7501 2011-05-11  Eric Blake  <eblake@redhat.com>
7502
7503         fclose: preserve fflush errors
7504         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
7505         Reported by Jim Meyering.
7506
7507         bootstrap: support a prereq of 'rpcgen -' on RHEL5
7508         * build-aux/bootstrap (check_versions): When no specific version
7509         is required, merely check that the app produces an exit status
7510         that indicates its existence.
7511
7512         maint.mk: drop redundant check
7513         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
7514         the same but better.
7515
7516 2011-05-11  Bruno Haible  <bruno@clisp.org>
7517
7518         fclose: Fix possible link error.
7519         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
7520         unregister_shadow_fd. Improve comments.
7521         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
7522         Eric Blake.
7523
7524 2011-05-11  Jim Meyering  <meyering@redhat.com>
7525
7526         maint.mk: improve "can not" detection and generalize rule name
7527         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
7528         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
7529         Use the same technique as in sc_prohibit_doubled_word, so that
7530         we recognize "can not" also when the words are separated by a newline.
7531         Suggested by Eric Blake.
7532         (perl_filename_lineno_text_): Define.  Factored out of...
7533         (prohibit_doubled_word_): ...here.  Use the new definition.
7534         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
7535         (prohibit_undesirable_word_seq_RE_): New overridable variable.
7536         (ignore_undesirable_word_sequence_RE_): New overridable variable.
7537
7538 2011-05-10  Eric Blake  <eblake@redhat.com>
7539
7540         fclose: avoid double close race when possible
7541         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
7542         all but WINDOWS_SOCKETS.
7543
7544 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
7545
7546         openat: correct new comment
7547         * lib/openat-proc.c (openat_proc_name): Correct the comment.
7548
7549 2011-05-10  Jim Meyering  <meyering@redhat.com>
7550
7551         openat: add comments
7552         * lib/openat-proc.c (openat_proc_name): Add comments,
7553         mostly from Eric Blake.
7554
7555 2011-05-09  Eric Blake  <eblake@redhat.com>
7556
7557         openat: reduce syscalls in first probe of /proc
7558         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
7559         be a directory.  Simplify the probe for .. bugs.
7560         * modules/openat (Depends-on): Drop same-inode.
7561         Reported by Bastien ROUCARIES.
7562
7563 2011-05-09  Jim Meyering  <meyering@redhat.com>
7564
7565         maint.mk: change semantics/name of tight_scope variables
7566         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
7567         Rename variables to align with semantics that make them more useful.
7568
7569         maint.mk: tweak new rule's name not to impinge
7570         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
7571         (sc_tight_scope): Use new rule name rather than $@-0.
7572
7573         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
7574         * top/maint.mk (sc_tight_scope): New rule.
7575         (sc_tight_scope-0): New rule, ifdef'd out.
7576         (_gl_TS_dir): Default.
7577         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
7578         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
7579
7580 2011-05-09  Simon Josefsson  <simon@josefsson.org>
7581
7582         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
7583         Haible <bruno@clisp.org>.
7584
7585 2011-05-08  Bruno Haible  <bruno@clisp.org>
7586
7587         Comments.
7588         * m4/isnanf.m4: Add comment.
7589         * m4/isnanl.m4: Likewise.
7590
7591 2011-05-08  Bruno Haible  <bruno@clisp.org>
7592
7593         glob: Remove obsolete macro.
7594         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
7595
7596 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7597
7598         intprops: Sun C 5.11 supports __typeof__
7599         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
7600         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
7601         which is new.
7602         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
7603
7604         intprops: switch to usual gnulib indenting and naming
7605         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
7606         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
7607
7608         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
7609
7610 2011-05-08  Jim Meyering  <meyering@redhat.com>
7611
7612         maint.mk: suppress "Entering/Leaving directory" diag in announcement
7613         * top/maint.mk (release-prep): Use make's --no-print-directory
7614         option when generating the announcement.  This eliminates the
7615         pesky "make[2]: Entering/Leaving directory" diagnostics in the
7616         generated announcement template.
7617
7618 2011-05-08  Bruno Haible  <bruno@clisp.org>
7619
7620         tzset: Fix gettimeofday wrapper on Solaris 2.6.
7621         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
7622         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
7623
7624 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
7625
7626         ignore-value, verify: Omit include files from lib_SOURCES.
7627         * modules/ignore-value, modules/verify (Makefile.am):
7628         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
7629         that leads Automake to duplicate use of am__objects_... variables
7630         in Makefile.in.  See
7631         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
7632
7633 2011-05-07  Bruno Haible  <bruno@clisp.org>
7634
7635         fclose: Simplify autoconf macro.
7636         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
7637         defined.
7638
7639 2011-05-07  Bruno Haible  <bruno@clisp.org>
7640
7641         canonicalize-lgpl: Fix autoconf macro ordering bug.
7642         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
7643         gl_STDLIB_H_DEFAULTS.
7644
7645 2011-05-06  Eric Blake  <eblake@redhat.com>
7646
7647         maintainer-makefile: make sc_po_check easier to tune
7648         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
7649         to probe for strings, such as an alternate location for gnulib.
7650
7651         fclose: guarantee behavior on seekable stdin
7652         * modules/fclose (Depends-on): Add fflush.
7653         * doc/posix-functions/fclose.texi (fclose): Document this.
7654         * tests/test-fclose.c (main): Make test for this unconditional.
7655
7656 2011-05-06  Bruno Haible  <bruno@clisp.org>
7657
7658         fflush, fpurge: Relicense under LGPLv2+.
7659         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
7660         * modules/fpurge (License): Likewise.
7661         With permission from Eric Blake and Jim Meyering.
7662         Suggested by Eric Blake.
7663
7664 2011-05-06  Karl Berry  <karl@gnu.org>
7665
7666         * MODULES.html.sh (func_all_modules): remove exit.
7667
7668 2011-05-06  Jim Meyering  <meyering@redhat.com>
7669
7670         maint.mk: use info-gnu@ as the default only for a stable release
7671         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
7672         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
7673         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
7674         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
7675
7676 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7677
7678         assert-h: new module, which supports C1X-style static_assert
7679         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
7680         * lib/verify.h: Revamp so that this can be copied into assert.h,
7681         while retaining the ability to use it standalone as before.
7682         Rename private identifiers so as not to encroach on the
7683         standard C namespace, since this is now used by assert.h.
7684         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
7685         the old verify_true.
7686         (_GL_VERIFY_TRUE): New macro, with much of the contents of
7687         the old verify_true.  Use _GL_VERIFY_TYPE.
7688         (_GL_VERIFY): New macro, with much of the contents of the old verify.
7689         (static_assert): New macro, if _GL_STATIC_ASSERT_H
7690         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
7691         defined when this file is copied into the replacement assert.h.
7692         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
7693         and _Static_assert is not built in.
7694         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
7695         defined, and use the new macros mentioned above.
7696         * doc/posix-headers/assert.texi: Document this.
7697
7698 2011-05-05  Bruno Haible  <bruno@clisp.org>
7699
7700         fclose, fflush: Respect rules for use of AC_LIBOBJ.
7701         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
7702         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
7703         gl_REPLACE_FCLOSE here.
7704         * modules/fflush (Depends-on): Remove fclose.
7705         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
7706         combination with module 'fclose'.
7707
7708 2011-05-05  Bruno Haible  <bruno@clisp.org>
7709
7710         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
7711         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
7712         gl_FUNC_FFLUSH.
7713         (gl_FUNC_FFLUSH): Use it.
7714         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
7715         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
7716         gl_REPLACE_FSEEKO here.
7717
7718 2011-05-05  Bruno Haible  <bruno@clisp.org>
7719
7720         tzset: Relicense under LGPL.
7721         * modules/tzset (License): Change to LGPL.
7722         No agreement needed; it's a no-op.
7723
7724         strtoimax, strtoumax: Relicense under LGPL.
7725         * modules/strtoimax (License): Change to LGPL.
7726         * modules/strtoumax (License): Likewise.
7727         With permission from Jim Meyering, Paul Eggert:
7728         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
7729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
7730
7731         getgroups: Relicense under LGPL.
7732         * modules/getgroups (License): Change to LGPL.
7733         With permission from Jim Meyering, Paul Eggert, Eric Blake:
7734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7735         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7737
7738         nanosleep: Relicense under LGPL.
7739         * modules/nanosleep (License): Change to LGPL.
7740         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
7741         Haible:
7742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7743         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7744         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7745         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7746
7747         futimens: Relicense under LGPL.
7748         * modules/futimens (License): Change to LGPL.
7749         With permission from Eric Blake:
7750         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7751
7752         fflush: Relicense under LGPL.
7753         * modules/fflush (License): Change to LGPL.
7754         With permission from Eric Blake, Bruno Haible, Jim Meyering:
7755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7756         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7757         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
7758
7759         tmpfile: Relicense under LGPL.
7760         * modules/tmpfile (License): Change to LGPL.
7761         With permission from Ben Pfaff:
7762         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7763
7764         isfinite: Relicense under LGPL.
7765         * modules/isfinite (License): Change to LGPL.
7766         With permission from Ben Pfaff, Bruno Haible:
7767         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7768         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
7769
7770         acosl..tanl: Relicense under LGPL.
7771         * modules/acosl (License): Change to LGPL.
7772         * modules/asinl (License): Likewise.
7773         * modules/atanl (License): Likewise.
7774         * modules/cosl (License): Likewise.
7775         * modules/expl (License): Likewise.
7776         * modules/logl (License): Likewise.
7777         * modules/sinl (License): Likewise.
7778         * modules/sqrtl (License): Likewise.
7779         * modules/tanl (License): Likewise.
7780         Source code originally from glibc and Paolo Bonzini. Agreements:
7781         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
7782         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
7783
7784 2011-05-05  Bruno Haible  <bruno@clisp.org>
7785
7786         signal: Define sighandler_t.
7787         * lib/signal.in.h (sighandler_t): New type.
7788         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
7789         whether sighandler_t is defined.
7790         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
7791         * modules/signal (Depends-on): Add extensions.
7792         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
7793         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
7794         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
7795
7796 2011-05-05  Eric Blake  <eblake@redhat.com>
7797
7798         maint: remove useless REPLACE_*_H macros
7799         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
7800         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7801         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7802         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
7803         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7804         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7805         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
7806         * m4/btowc.m4: Update callers.
7807         * m4/dirfd.m4: Likewise.
7808         * m4/duplocale.m4: Likewise.
7809         * m4/fchdir.m4: Likewise.
7810         * m4/fdopendir.m4: Likewise.
7811         * m4/inet_ntop.m4: Likewise.
7812         * m4/inet_pton.m4: Likewise.
7813         * m4/ioctl.m4: Likewise.
7814         * m4/mbrlen.m4: Likewise.
7815         * m4/mbrtowc.m4: Likewise.
7816         * m4/mbsinit.m4: Likewise.
7817         * m4/mbsnrtowcs.m4: Likewise.
7818         * m4/mbsrtowcs.m4: Likewise.
7819         * m4/poll.m4: Likewise.
7820         * m4/setlocale.m4: Likewise.
7821         * m4/wcrtomb.m4: Likewise.
7822         * m4/wcsnrtombs.m4: Likewise.
7823         * m4/wcsrtombs.m4: Likewise.
7824         * m4/wctob.m4: Likewise.
7825         * m4/wcwidth.m4: Likewise.
7826         * modules/posix_spawn: Likewise.
7827         * modules/posix_spawn_file_actions_addclose: Likewise.
7828         * modules/posix_spawn_file_actions_adddup2: Likewise.
7829         * modules/posix_spawn_file_actions_addopen: Likewise.
7830         * modules/posix_spawn_file_actions_destroy: Likewise.
7831         * modules/posix_spawn_file_actions_init: Likewise.
7832         * modules/posix_spawnattr_destroy: Likewise.
7833         * modules/posix_spawnattr_getflags: Likewise.
7834         * modules/posix_spawnattr_getpgroup: Likewise.
7835         * modules/posix_spawnattr_getschedparam: Likewise.
7836         * modules/posix_spawnattr_getschedpolicy: Likewise.
7837         * modules/posix_spawnattr_getsigdefault: Likewise.
7838         * modules/posix_spawnattr_getsigmask: Likewise.
7839         * modules/posix_spawnattr_init: Likewise.
7840         * modules/posix_spawnattr_setflags: Likewise.
7841         * modules/posix_spawnattr_setpgroup: Likewise.
7842         * modules/posix_spawnattr_setschedparam: Likewise.
7843         * modules/posix_spawnattr_setschedpolicy: Likewise.
7844         * modules/posix_spawnattr_setsigdefault: Likewise.
7845         * modules/posix_spawnattr_setsigmask: Likewise.
7846         * modules/posix_spawnp: Likewise.
7847
7848 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
7849
7850         Add option to do-release-commit-and-tag to specify branch.
7851         * build-aux/do-release-commit-and-tag: Add --branch.
7852
7853 2011-05-03  Bruno Haible  <bruno@clisp.org>
7854
7855         Avoid unnecessary compilation units, through conditional dependencies.
7856         * modules/accept (Depends-on): Add conditions to the dependencies.
7857         * modules/acosl (Depends-on): Likewise.
7858         * modules/argz (Depends-on): Likewise.
7859         * modules/asinl (Depends-on): Likewise.
7860         * modules/atanl (Depends-on): Likewise.
7861         * modules/atoll (Depends-on): Likewise.
7862         * modules/bind (Depends-on): Likewise.
7863         * modules/btowc (Depends-on): Likewise.
7864         * modules/canonicalize-lgpl (Depends-on): Likewise.
7865         * modules/ceil (Depends-on): Likewise.
7866         * modules/ceilf (Depends-on): Likewise.
7867         * modules/ceill (Depends-on): Likewise.
7868         * modules/chdir-long (Depends-on): Likewise.
7869         * modules/chown (Depends-on): Likewise.
7870         * modules/close (Depends-on): Likewise.
7871         * modules/connect (Depends-on): Likewise.
7872         * modules/cosl (Depends-on): Likewise.
7873         * modules/dirfd (Depends-on): Likewise.
7874         * modules/dprintf (Depends-on): Likewise.
7875         * modules/dprintf-posix (Depends-on): Likewise.
7876         * modules/error (Depends-on): Likewise.
7877         * modules/euidaccess (Depends-on): Likewise.
7878         * modules/expl (Depends-on): Likewise.
7879         * modules/faccessat (Depends-on): Likewise.
7880         * modules/fchdir (Depends-on): Likewise.
7881         * modules/fclose (Depends-on): Likewise.
7882         * modules/fcntl (Depends-on): Likewise.
7883         * modules/fdopendir (Depends-on): Likewise.
7884         * modules/fflush (Depends-on): Likewise.
7885         * modules/floor (Depends-on): Likewise.
7886         * modules/floorf (Depends-on): Likewise.
7887         * modules/floorl (Depends-on): Likewise.
7888         * modules/fnmatch (Depends-on): Likewise.
7889         * modules/fopen (Depends-on): Likewise.
7890         * modules/fprintf-posix (Depends-on): Likewise.
7891         * modules/frexp (Depends-on): Likewise.
7892         * modules/frexp-nolibm (Depends-on): Likewise.
7893         * modules/frexpl (Depends-on): Likewise.
7894         * modules/frexpl-nolibm (Depends-on): Likewise.
7895         * modules/fseek (Depends-on): Likewise.
7896         * modules/fsusage (Depends-on): Likewise.
7897         * modules/ftell (Depends-on): Likewise.
7898         * modules/ftello (Depends-on): Likewise.
7899         * modules/futimens (Depends-on): Likewise.
7900         * modules/getcwd (Depends-on): Likewise.
7901         * modules/getcwd-lgpl (Depends-on): Likewise.
7902         * modules/getdelim (Depends-on): Likewise.
7903         * modules/getdomainname (Depends-on): Likewise.
7904         * modules/getgroups (Depends-on): Likewise.
7905         * modules/gethostname (Depends-on): Likewise.
7906         * modules/getline (Depends-on): Likewise.
7907         * modules/getlogin_r (Depends-on): Likewise.
7908         * modules/getopt-posix (Depends-on): Likewise.
7909         * modules/getpeername (Depends-on): Likewise.
7910         * modules/getsockname (Depends-on): Likewise.
7911         * modules/getsockopt (Depends-on): Likewise.
7912         * modules/getsubopt (Depends-on): Likewise.
7913         * modules/getusershell (Depends-on): Likewise.
7914         * modules/glob (Depends-on): Likewise.
7915         * modules/grantpt (Depends-on): Likewise.
7916         * modules/iconv_open (Depends-on): Likewise.
7917         * modules/iconv_open-utf (Depends-on): Likewise.
7918         * modules/inet_ntop (Depends-on): Likewise.
7919         * modules/inet_pton (Depends-on): Likewise.
7920         * modules/ioctl (Depends-on): Likewise.
7921         * modules/isapipe (Depends-on): Likewise.
7922         * modules/isfinite (Depends-on): Likewise.
7923         * modules/isinf (Depends-on): Likewise.
7924         * modules/lchown (Depends-on): Likewise.
7925         * modules/ldexpl (Depends-on): Likewise.
7926         * modules/link (Depends-on): Likewise.
7927         * modules/linkat (Depends-on): Likewise.
7928         * modules/listen (Depends-on): Likewise.
7929         * modules/logl (Depends-on): Likewise.
7930         * modules/lstat (Depends-on): Likewise.
7931         * modules/mbrlen (Depends-on): Likewise.
7932         * modules/mbrtowc (Depends-on): Likewise.
7933         * modules/mbsinit (Depends-on): Likewise.
7934         * modules/mbsnrtowcs (Depends-on): Likewise.
7935         * modules/mbsrtowcs (Depends-on): Likewise.
7936         * modules/mbtowc (Depends-on): Likewise.
7937         * modules/memcmp (Depends-on): Likewise.
7938         * modules/mkdir (Depends-on): Likewise.
7939         * modules/mkdtemp (Depends-on): Likewise.
7940         * modules/mkfifo (Depends-on): Likewise.
7941         * modules/mkfifoat (Depends-on): Likewise.
7942         * modules/mknod (Depends-on): Likewise.
7943         * modules/mkostemp (Depends-on): Likewise.
7944         * modules/mkostemps (Depends-on): Likewise.
7945         * modules/mkstemp (Depends-on): Likewise.
7946         * modules/mkstemps (Depends-on): Likewise.
7947         * modules/mktime (Depends-on): Likewise.
7948         * modules/nanosleep (Depends-on): Likewise.
7949         * modules/open (Depends-on): Likewise.
7950         * modules/openat (Depends-on): Likewise.
7951         * modules/perror (Depends-on): Likewise.
7952         * modules/poll (Depends-on): Likewise.
7953         * modules/popen (Depends-on): Likewise.
7954         * modules/posix_spawn (Depends-on): Likewise.
7955         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7956         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7957         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7958         * modules/posix_spawnp (Depends-on): Likewise.
7959         * modules/pread (Depends-on): Likewise.
7960         * modules/printf-posix (Depends-on): Likewise.
7961         * modules/ptsname (Depends-on): Likewise.
7962         * modules/putenv (Depends-on): Likewise.
7963         * modules/pwrite (Depends-on): Likewise.
7964         * modules/readline (Depends-on): Likewise.
7965         * modules/readlink (Depends-on): Likewise.
7966         * modules/readlinkat (Depends-on): Likewise.
7967         * modules/recv (Depends-on): Likewise.
7968         * modules/recvfrom (Depends-on): Likewise.
7969         * modules/regex (Depends-on): Likewise.
7970         * modules/remove (Depends-on): Likewise.
7971         * modules/rename (Depends-on): Likewise.
7972         * modules/renameat (Depends-on): Likewise.
7973         * modules/rmdir (Depends-on): Likewise.
7974         * modules/round (Depends-on): Likewise.
7975         * modules/roundf (Depends-on): Likewise.
7976         * modules/roundl (Depends-on): Likewise.
7977         * modules/rpmatch (Depends-on): Likewise.
7978         * modules/select (Depends-on): Likewise.
7979         * modules/send (Depends-on): Likewise.
7980         * modules/sendto (Depends-on): Likewise.
7981         * modules/setenv (Depends-on): Likewise.
7982         * modules/setlocale (Depends-on): Likewise.
7983         * modules/setsockopt (Depends-on): Likewise.
7984         * modules/shutdown (Depends-on): Likewise.
7985         * modules/sigaction (Depends-on): Likewise.
7986         * modules/signbit (Depends-on): Likewise.
7987         * modules/sigprocmask (Depends-on): Likewise.
7988         * modules/sinl (Depends-on): Likewise.
7989         * modules/sleep (Depends-on): Likewise.
7990         * modules/snprintf (Depends-on): Likewise.
7991         * modules/snprintf-posix (Depends-on): Likewise.
7992         * modules/socket (Depends-on): Likewise.
7993         * modules/sprintf-posix (Depends-on): Likewise.
7994         * modules/sqrtl (Depends-on): Likewise.
7995         * modules/stat (Depends-on): Likewise.
7996         * modules/strchrnul (Depends-on): Likewise.
7997         * modules/strdup-posix (Depends-on): Likewise.
7998         * modules/strerror (Depends-on): Likewise.
7999         * modules/strerror_r-posix (Depends-on): Likewise.
8000         * modules/strndup (Depends-on): Likewise.
8001         * modules/strnlen (Depends-on): Likewise.
8002         * modules/strptime (Depends-on): Likewise.
8003         * modules/strsep (Depends-on): Likewise.
8004         * modules/strsignal (Depends-on): Likewise.
8005         * modules/strstr-simple (Depends-on): Likewise.
8006         * modules/strtod (Depends-on): Likewise.
8007         * modules/strtoimax (Depends-on): Likewise.
8008         * modules/strtok_r (Depends-on): Likewise.
8009         * modules/strtoumax (Depends-on): Likewise.
8010         * modules/symlink (Depends-on): Likewise.
8011         * modules/symlinkat (Depends-on): Likewise.
8012         * modules/tanl (Depends-on): Likewise.
8013         * modules/tcgetsid (Depends-on): Likewise.
8014         * modules/tmpfile (Depends-on): Likewise.
8015         * modules/trunc (Depends-on): Likewise.
8016         * modules/truncf (Depends-on): Likewise.
8017         * modules/truncl (Depends-on): Likewise.
8018         * modules/uname (Depends-on): Likewise.
8019         * modules/unlink (Depends-on): Likewise.
8020         * modules/unlockpt (Depends-on): Likewise.
8021         * modules/unsetenv (Depends-on): Likewise.
8022         * modules/usleep (Depends-on): Likewise.
8023         * modules/utimensat (Depends-on): Likewise.
8024         * modules/vasprintf (Depends-on): Likewise.
8025         * modules/vdprintf (Depends-on): Likewise.
8026         * modules/vdprintf-posix (Depends-on): Likewise.
8027         * modules/vfprintf-posix (Depends-on): Likewise.
8028         * modules/vprintf-posix (Depends-on): Likewise.
8029         * modules/vsnprintf (Depends-on): Likewise.
8030         * modules/vsnprintf-posix (Depends-on): Likewise.
8031         * modules/vsprintf-posix (Depends-on): Likewise.
8032         * modules/wcrtomb (Depends-on): Likewise.
8033         * modules/wcscasecmp (Depends-on): Likewise.
8034         * modules/wcscspn (Depends-on): Likewise.
8035         * modules/wcsdup (Depends-on): Likewise.
8036         * modules/wcsncasecmp (Depends-on): Likewise.
8037         * modules/wcsnrtombs (Depends-on): Likewise.
8038         * modules/wcspbrk (Depends-on): Likewise.
8039         * modules/wcsrtombs (Depends-on): Likewise.
8040         * modules/wcsspn (Depends-on): Likewise.
8041         * modules/wcsstr (Depends-on): Likewise.
8042         * modules/wcstok (Depends-on): Likewise.
8043         * modules/wcswidth (Depends-on): Likewise.
8044         * modules/wctob (Depends-on): Likewise.
8045         * modules/wctomb (Depends-on): Likewise.
8046         * modules/wctype (Depends-on): Likewise.
8047         * modules/wcwidth (Depends-on): Likewise.
8048         * modules/write (Depends-on): Likewise.
8049
8050 2011-05-03  Bruno Haible  <bruno@clisp.org>
8051
8052         Support for conditional dependencies.
8053         * doc/gnulib.texi (Module description): Document the syntax of
8054         conditional dependencies.
8055         * gnulib-tool: New option --conditional-dependencies.
8056         (func_usage): Document it.
8057         (cond_dependencies): New variable.
8058         (func_get_automake_snippet_conditional,
8059         func_get_automake_snippet_unconditional): New functions, extracted from
8060         func_get_automake_snippet.
8061         (func_get_automake_snippet): Use them.
8062         (sed_first_32_chars): New variable.
8063         (func_module_shellfunc_name): New function.
8064         (func_module_shellvar_name): New function.
8065         (func_module_conditional_name): New function.
8066         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
8067         func_cond_module_condition): New functions.
8068         (func_modules_transitive_closure): Add support for conditional
8069         dependencies.
8070         (func_emit_lib_Makefile_am): For a conditional module, enclose the
8071         conditional automake snippet in an automake conditional.
8072         (func_emit_autoconf_snippets): Emit shell functions that contain the
8073         code for conditional modules.
8074         (func_import, func_create_testdir): Update specification.
8075
8076 2011-05-03  Eric Blake  <eblake@redhat.com>
8077
8078         test-getaddrinfo: report error information
8079         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
8080
8081 2011-05-03  Jim Meyering  <meyering@redhat.com>
8082
8083         bootstrap: avoid build failure when $GZIP is set
8084         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
8085         program name.  If defined at all, it is supposed to list gzip options.
8086         Reported by Alan Curry in http://debbugs.gnu.org/8609
8087
8088 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
8089
8090         readme-release: new module with release instructions
8091         * modules/readme-release: New module.
8092         * top/README-release: New file, from coreutils, grep, diffutils.
8093         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8094
8095 2011-05-02  Eric Blake  <eblake@redhat.com>
8096
8097         fflush: also replace fclose when fixing fflush
8098         * modules/fflush (Depends-on): Add fclose.
8099         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
8100         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
8101         memstreams with no backing fd.
8102         * doc/posix-functions/fclose.texi (fclose): Document the use of
8103         fflush module to fix the bug.
8104         * tests/test-fclose.c (main): Relax test when fclose is used in
8105         isolation.
8106
8107         fclose: add some tests
8108         * modules/fclose-tests: New test module.
8109         * tests/test-fclose.c: New file.
8110         * doc/posix-functions/fclose.texi (fclose): Document the bug.
8111
8112         fclose: reduced dependencies
8113         * modules/fclose (Depends-on): Switch from fflush/fseeko to
8114         simpler lseek.
8115         * lib/fclose.c (rpl_fclose): Likewise.
8116         Reported by Simon Josefsson.
8117
8118         exit: drop remaining clients
8119         * modules/argmatch (Depends-on): Replace exit with stdlib.
8120         * modules/copy-file (Depends-on): Likewise.
8121         * modules/execute (Depends-on): Likewise.
8122         * modules/exitfail (Depends-on): Likewise.
8123         * modules/obstack (Depends-on): Likewise.
8124         * modules/pagealign_alloc (Depends-on): Likewise.
8125         * modules/pipe-filter-gi (Depends-on): Likewise.
8126         * modules/pipe-filter-ii (Depends-on): Likewise.
8127         * modules/savewd (Depends-on): Likewise.
8128         * modules/spawn-pipe (Depends-on): Likewise.
8129         * modules/wait-process (Depends-on): Likewise.
8130         * modules/xsetenv (Depends-on): Likewise.
8131         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
8132         * modules/git-merge-changelog (Depends-on): Likewise.
8133         * modules/long-options (Depends-on): Likewise.
8134         * modules/pt_chown (Depends-on): Likewise.
8135         * modules/sysexits (Depends-on): Likewise.
8136
8137         freading: relax license from LGPLv3+ to LGPLv2+
8138         * modules/freading (License): Relax LGPL version.
8139
8140 2011-05-02  Bruno Haible  <bruno@clisp.org>
8141
8142         fchdir: Remove unused dependencies.
8143         * modules/fchdir (Depends-on): Remove include_next.
8144
8145 2011-05-02  Bruno Haible  <bruno@clisp.org>
8146
8147         gnulib-tool: Refactor.
8148         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
8149         from func_emit_autoconf_snippets.
8150         (func_emit_autoconf_snippets): Use it.
8151
8152 2011-05-02  Simon Josefsson  <simon@josefsson.org>
8153
8154         * NEWS: Document removal of 'exit'.
8155         * modules/exit: Remove file.
8156
8157 2011-05-01  Bruno Haible  <bruno@clisp.org>
8158
8159         Update DEPENDENCIES.
8160         * DEPENDENCIES (gettext): Recommend the newest release.
8161         Reported by Simon Josefsson.
8162
8163 2011-05-01  Bruno Haible  <bruno@clisp.org>
8164
8165         gnulib-tool: Reduce code duplication.
8166         * gnulib-tool (func_emit_autoconf_snippets): New function.
8167         (func_import, func_create_testdir): Use it.
8168
8169 2011-04-30  Eric Blake  <eblake@redhat.com>
8170
8171         fclose: don't fail on non-seekable input stream
8172         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
8173         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
8174         since fflush is allowed to fail in that case.
8175
8176 2011-04-30  Bruno Haible  <bruno@clisp.org>
8177
8178         dup3: cleanup
8179         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
8180
8181 2011-04-30  Bruno Haible  <bruno@clisp.org>
8182
8183         netdb: Make it work in C++ mode.
8184         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
8185         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
8186         module.
8187         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
8188         gl_MODULE_INDICATOR_FOR_TESTS.
8189         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
8190         * modules/netdb-c++-tests: New file.
8191         * tests/test-netdb-c++.cc: New file.
8192
8193 2011-04-30  Bruno Haible  <bruno@clisp.org>
8194
8195         New modules 'vfscanf', 'vscanf'.
8196         * modules/vfscanf: New file.
8197         * modules/vscanf: New file.
8198         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
8199         here.
8200         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
8201         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
8202
8203 2011-04-30  Bruno Haible  <bruno@clisp.org>
8204
8205         passfd: Add comments.
8206         * lib/passfd.c: Add comments about platforms.
8207
8208 2011-04-30  Bruno Haible  <bruno@clisp.org>
8209
8210         sys_uio: Make <sys/uio.h> self-contained.
8211         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
8212         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
8213
8214 2011-04-30  Bruno Haible  <bruno@clisp.org>
8215
8216         sys_socket: Ensure 'struct iovec' definition.
8217         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
8218         <sys/socket.h>.
8219         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
8220
8221 2011-04-30  Bruno Haible  <bruno@clisp.org>
8222
8223         sys_uio: Protect definition of 'struct iovec'.
8224         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
8225         it as a C struct.
8226
8227 2011-04-30  Bruno Haible  <bruno@clisp.org>
8228
8229         manywarnings: fix indentation
8230         * m4/manywarnings.m4: Indent by 2 spaces consistently.
8231
8232 2011-04-30  Pádraig Brady <P@draigBrady.com>
8233
8234         manywarnings: add -Wno-missing-field-initializers if needed.
8235         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
8236         option if it's needed to allow initialization with { 0, }
8237
8238 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
8239
8240         announce-gen: cosmetic improvement
8241         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
8242
8243 2011-04-29  Jim Meyering  <meyering@redhat.com>
8244
8245         vc-list-files: indent with spaces, not TABs
8246         * build-aux/vc-list-files: Convert leading TABs to spaces,
8247         to match the style of most other files in gnulib.
8248
8249         announce-gen: indent with spaces, not TABs
8250         * build-aux/announce-gen: Convert all TABs to spaces, to match
8251         the style of most other files in gnulib.
8252
8253 2011-04-29  Eric Blake  <eblake@redhat.com>
8254
8255         quotearg: avoid uninitialized variable use
8256         * lib/quotearg.c (quoting_options_from_style): Initialize
8257         remaining fields, and ensure that custom styles are only used via
8258         quoting_options rather than quoting_style.
8259
8260 2011-04-29  Jim Meyering  <meyering@redhat.com>
8261
8262         maint.mk: remove unused VC-tag variable
8263         * top/maint.mk (VC-tag): Remove unused variable.
8264
8265 2011-04-29  Bruno Haible  <bruno@clisp.org>
8266
8267         netdb: fix gai_strerror replacements
8268         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
8269         * modules/netdb: Substitute it.
8270
8271 2011-04-29  Jim Meyering  <meyering@redhat.com>
8272
8273         test-getcwd.c: avoid new set-but-not-used warning
8274         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
8275         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
8276         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
8277         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
8278
8279         test-hash.c: avoid a new shadowing warning
8280         * tests/test-hash.c (main): Don't shadow "dup".
8281
8282 2011-04-28  Eric Blake  <eblake@redhat.com>
8283
8284         getaddrinfo: fix gai_strerror signature
8285         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
8286         and work around mingw with UNICODE defined.
8287         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
8288         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
8289         * modules/netdb (Makefile.am): Substitute it.
8290         * lib/netdb.in.h (gai_strerror): Declare replacement.
8291         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
8292         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
8293         the fix.
8294
8295         getsockopt: avoid compiler warning
8296         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
8297         Reported by Matthias Bolte.
8298
8299         tests: drop unused link dependency
8300         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
8301         * modules/dirent-safer-tests (Makefile.am): Likewise.
8302         * modules/fdopendir-tests (Makefile.am): Likewise.
8303         * modules/mkfifoat-tests (Makefile.am): Likewise.
8304         * modules/openat-safer-tests (Makefile.am): Likewise.
8305         * modules/openat-tests (Makefile.am): Likewise.
8306         * modules/readlinkat-tests (Makefile.am): Likewise.
8307         * modules/symlinkat-tests (Makefile.am): Likewise.
8308         * modules/linkat-tests (Makefile.am): Likewise.
8309         (Depends-on): Switch to filenamecat-lgpl.
8310         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
8311         LIBINTL.
8312         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
8313         * tests/test-linkat.c (main): Don't require xalloc.
8314
8315         hash, mgetgroups: drop xalloc dependency
8316         * lib/hash.c (includes): Adjust includes.
8317         * lib/mgetgroups.c (includes): Likewise.
8318         (xgetgroups): Move...
8319         * lib/xgetgroups.c: ...to new file.
8320         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
8321         * modules/xgetgroups: New file, split from...
8322         * modules/mgetgroups: ...here.
8323         (Depends-on): Add xalloc-oversized.
8324         * modules/hash (Depends-on): Likewise.
8325         * modules/hash-tests (Depends-on): Drop xalloc.
8326         (test_hash_LDADD): Drop unused library.
8327         * tests/test-hash.c (main): Break xalloc dependency.
8328         (includes): Drop unused include.
8329
8330         xalloc-oversized: new module
8331         * modules/xalloc-oversized: New module.
8332         * modules/xalloc (Depends-on): Add it.
8333         * lib/xalloc.h (xalloc_oversized): Move...
8334         * lib/xalloc-oversized.h: ...into new file.
8335
8336         utimecmp: drop dependency on xmalloc
8337         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
8338         due to memory pressure.
8339         * modules/utimecmp (Depends-on): Drop xalloc.
8340
8341 2011-04-27  Eric Blake  <eblake@redhat.com>
8342
8343         getcwd: fix mingw bugs
8344         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
8345         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
8346         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
8347
8348 2011-04-27  Bruno Haible  <bruno@clisp.org>
8349
8350         mkstemps: Ensure declaration on MacOS X 10.5.
8351         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
8352         * doc/glibc-functions/mkstemps.texi: Document header file problem on
8353         MacOS X.
8354
8355 2011-04-27  Bruno Haible  <bruno@clisp.org>
8356
8357         mkstemp: More documentation.
8358         * doc/posix-functions/mkstemp.texi: Document header file problem on
8359         MacOS X.
8360
8361 2011-04-27  Bruno Haible  <bruno@clisp.org>
8362
8363         mkstemp: Tweak configure message when cross-compiling.
8364         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
8365         result as a guess.
8366
8367 2011-04-27  Bruno Haible  <bruno@clisp.org>
8368
8369         clean-temp: Clarify what it does.
8370         * lib/clean-temp.h: Add more comments.
8371         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
8372         module.
8373         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
8374         * doc/glibc-functions/mkstemps.texi: Likewise.
8375         * doc/glibc-functions/mkostemps.texi: Likewise.
8376
8377 2011-04-27  Eric Blake  <eblake@redhat.com>
8378
8379         fchdir: avoid extra chdir and fix test
8380         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
8381         getcwd-lgpl.
8382         * lib/fchdir.c (get_name): Any absolute name will do; it does not
8383         have to be canonical.
8384         (canonicalize_file_name): Drop unused macro.
8385         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
8386
8387         filenamecat-lgpl: fix licence
8388         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
8389         when it was first created.
8390
8391         linkat, renameat: add missing dependency
8392         * modules/linkat (Depends-on): Require getcwd-lgpl.
8393         * modules/renameat (Depends-on): Likewise.
8394
8395         tests: reduce dependencies
8396         * tests/test-linkat.c (main): Use lighter-weight getcwd.
8397         * tests/test-renameat.c (main): Likewise.
8398         * modules/linkat-tests (Depends-on): Relax dependency.
8399         * modules/renameat-tests (Depends-on): Likewise.
8400         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
8401         dependency explicit.
8402
8403         save-cwd: reduce default dependency
8404         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
8405         * lib/save-cwd.c: Update comments.
8406         * NEWS: Document the semantic change.
8407
8408         getcwd: enhance tests
8409         * tests/test-getcwd-lgpl.c: New file, taken from...
8410         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
8411         repeat long path stress tests from m4 probe.
8412         * modules/getcwd-lgpl-tests: New module.
8413         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
8414         * m4/getcwd-abort-bug.m4: Update comment.
8415         * m4/getcwd-path-max.m4: Likewise.
8416
8417         getcwd-lgpl: new module
8418         * modules/getcwd-lgpl: New module.
8419         * lib/getcwd-lgpl.c: New file.
8420         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8421         * MODULES.html.sh (lacking POSIX:2008): Likewise.
8422         * modules/getcwd (configure.ac): Set C witness.
8423         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
8424
8425         getcwd: tweak comments
8426         * m4/getcwd-abort-bug.m4: Fix comments.
8427         * m4/getcwd-path-max.m4: Likewise.
8428         * m4/getcwd.m4: Likewise.
8429
8430 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8431         and Eric Blake  <eblake@redhat.com>
8432
8433         mkstemp: replace if system version uses wrong permissions
8434         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
8435         read/write mode bits set in file created by mkstemp.
8436         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
8437
8438 2011-04-27  Eric Blake  <eblake@redhat.com>
8439
8440         passfd: avoid compiler warning
8441         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
8442         Reported by Laine Stump.
8443
8444 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
8445
8446         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
8447         required by the NetBSD (and perhaps other 4.4BSD derived) join.
8448
8449 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8450         and Eric Blake  <eblake@redhat.com>
8451
8452         mkstemp: mention clean-temp module
8453         * lib/mkstemp.c: Add comment.
8454         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
8455
8456 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8457
8458         inttypes: also provide default values for 32-bit tests
8459         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
8460         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
8461
8462 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8463
8464         strtoumax: remove dependency on strtoimax
8465         This is like the strtoull change of yesterday.
8466         * modules/strtoumax (Files): Add lib/strtoimax.c.
8467         (Depends-on): Remove strtoimax and add verify.
8468
8469         inttypes-incomplete: new module
8470         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
8471         all but the PRI* and SCN* parts of gl_INTTYPES_H.
8472         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
8473         of gl_INTTYPES_H.
8474         (gl_INTTYPES_H): Rewrite in terms of these new macros.
8475         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
8476         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
8477         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
8478         * modules/strtoumax, modules/xstrtol (Depends-on):
8479         Depend on inttypes-incomplete, not inttypes.
8480         * modules/inttypes-incomplete: New module, containing the contents
8481         of the old modules/inttypes module, except that the Files: section
8482         omits m4/inttypes-pri.m4, and the configure.ac section invokes
8483         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
8484         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
8485         (Depends-on): Depend only on inttypes-incomplete.
8486         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
8487
8488         inttypes: omit now-redundant strtoimax and strtoumax work
8489         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
8490         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
8491
8492         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
8493         This supports apps that need pointers to strtoimax and strtoumax,
8494         and ports to HP-UX 11.00 64.bit, which has macros that expand to
8495         nonexistent functions.  See
8496         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
8497         et seq.
8498         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
8499         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
8500         a macro.
8501         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8502
8503 2011-04-25  Simon Josefsson  <simon@josefsson.org>
8504
8505         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
8506
8507 2011-04-25  Bruno Haible  <bruno@clisp.org>
8508
8509         strtol, strtoul: Mark modules as obsolete.
8510         * modules/strtol (Status, Notice): New sections.
8511         * modules/strtoul (Status, Notice): New sections.
8512
8513 2011-04-25  Bruno Haible  <bruno@clisp.org>
8514
8515         strtod: Remove check for strtod, unless supporting old platforms.
8516         * modules/strtod-obsolete: New file.
8517         * m4/strtod-obsolete.m4: New file.
8518         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
8519         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
8520         * modules/strtod (Depends-on): Add strtod-obsolete.
8521         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
8522
8523 2011-04-25  Bruno Haible  <bruno@clisp.org>
8524
8525         strcase: Make module obsolete.
8526         * modules/strcase (Status, Notice): New sections.
8527
8528 2011-04-25  Bruno Haible  <bruno@clisp.org>
8529
8530         dup2: Remove check for dup2, unless supporting old obsolete platforms.
8531         * modules/dup2-obsolete: New file.
8532         * m4/dup2-obsolete.m4: New file.
8533         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
8534         gl_FUNC_DUP2_OBSOLETE is not also defined.
8535         * modules/dup2 (Depends-on): Add dup2-obsolete.
8536         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
8537
8538 2011-04-25  Bruno Haible  <bruno@clisp.org>
8539
8540         strnlen: Avoid memchr related link error on old obsolete platforms.
8541         * modules/memchr-obsolete: New file.
8542         * m4/memchr-obsolete.m4: New file.
8543         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
8544         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
8545         * modules/memchr (Depends-on): Add memchr-obsolete.
8546         * modules/strnlen (Depends-on): Likewise.
8547         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
8548
8549 2011-04-25  Jim Meyering  <meyering@redhat.com>
8550
8551         maint.mk: makefile_at_at_check extend and clean up
8552         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
8553         in addition to */Makefile.am.
8554         Exempt legitimate uses of @VAR@ notation, e.g.,
8555         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
8556         Remove obsolete coreutils-specific comment.
8557         Prompted by discussion here:
8558         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
8559
8560 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8561
8562         strtoul: remove dependency on strtol
8563         This is so that 'configure' need not check for strtol merely because
8564         the application needs strtoul.
8565         * modules/strtoul (Files): Add lib/strtol.c.
8566         (Depends-on): Remove strtol.
8567
8568         strtoull: remove dependency on strtoul
8569         This is like the strtoll change.
8570         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
8571         (Depends-on): Remove strtoul.
8572
8573         strtoll: remove dependency on strtol
8574         This is so that 'configure' need not check for strtol merely because
8575         the application needs strtoll.
8576         * modules/strtoll (Files): Add lib/strtol.c.
8577         (Depends-on): Remove strtol.
8578
8579 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8580
8581         inttypes: Move some configure check to module 'imaxdiv'.
8582         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
8583         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
8584         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
8585
8586 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8587
8588         inttypes: Move some configure check to module 'imaxabs'.
8589         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
8590         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
8591         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
8592
8593 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8594
8595         inttypes: Remove configure tests that are not needed since 2009-12-31.
8596         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
8597         gl_cv_header_working_inttypes_h.
8598
8599 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8600
8601         * modules/strnlen (Depends-on): Remove memchr.
8602         The strnlen implementation doesn't need the memchr module's fixes; see
8603         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
8604
8605         strtol: remove dependency on wchar
8606         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
8607         * modules/strtol (Depends-on): Remove wchar.
8608
8609 2011-04-21  Eric Blake  <eblake@redhat.com>
8610
8611         passfd: fix test regression on Linux
8612         * modules/passfd-tests (configure.ac): Correct socketpair check.
8613
8614         passfd: speed up configure and drop unused code
8615         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
8616         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
8617         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
8618         Instead of probing at configure for unix_scm_rights_bsd44_way,
8619         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
8620         check to a struct member probe.
8621         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
8622         (sendfd, recvfd): Update preprocessor checks.
8623         * modules/passfd (Files): Reflect rename, and drop unused file.
8624         (Depends-on): Drop unused dependency.
8625
8626         passfd: allow compilation on mingw
8627         * modules/sys_socket (Depends-on): Add sys_uio.
8628         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
8629         iovec and a minimal struct msghdr.
8630         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
8631         * tests/test-sys_socket.c (main): Enhance test.
8632         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
8633         guaranteed to provide what we need.
8634         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
8635         * modules/passfd-tests (Depends-on): Add sys_wait.
8636         * tests/test-passfd.c (main): Skip test on mingw, for now.
8637         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
8638         partial 'struct msghdr' implementation.
8639
8640         sys_uio: new module
8641         * modules/sys_uio: New module.
8642         * modules/sys_uio-tests: Likewise.
8643         * lib/sys_uio.in.h: New file.
8644         * m4/sys_uio_h.m4: Likewise.
8645         * tests/test-sys_uio.c: Likewise.
8646         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
8647         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
8648
8649 2011-04-20  Jim Meyering  <meyering@redhat.com>
8650
8651         useless-if-before-free: avoid false-positive
8652         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
8653         disjunct so that it too requires a terminating ";".  Without that,
8654         this script would identify as useless one statement from gcc that
8655         was not:
8656           if (aligned_ptr)
8657             free (((void **) aligned_ptr) [-1]);
8658
8659 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
8660
8661         doc: update users.txt.
8662         * users.txt: Add barcode.
8663
8664 2011-04-19  Bruno Haible  <bruno@clisp.org>
8665
8666         ioctl: Remove link dependency on native Windows.
8667         * lib/fd-hook.h: Renamed from lib/close-hook.h.
8668         (gl_close_fn, gl_ioctl_fn): New types.
8669         (struct fd_hook): Renamed from struct close_hook. Change type of
8670         private_close_fn field. Add private_ioctl_fn field.
8671         (close_hook_fn): Add parameter for primary close method.
8672         (execute_close_hooks, execute_all_close_hooks): Likewise.
8673         (ioctl_hook_fn): New type.
8674         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
8675         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8676         argument.
8677         (unregister_fd_hook): Renamed from unregister_close_hook.
8678         * lib/fd-hook.c: Renamed from lib/close-hook.c.
8679         Don't include <unistd.h>.
8680         (close): Remove undef.
8681         (anchor): Update.
8682         (execute_close_hooks): Add argument for primary close method.
8683         (execute_all_close_hooks): Likewise.
8684         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
8685         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8686         argument. Allow each argument to be NULL.
8687         (unregister_fd_hook): Renamed from unregister_close_hook.
8688         * lib/close.c (rpl_close): Pass 'close' function pointer to
8689         execute_all_close_hooks.
8690         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
8691         (primary_ioctl): New function.
8692         (ioctl): Don't call ioctlsocket here. Instead, call
8693         execute_all_ioctl_hooks.
8694         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
8695         close method.
8696         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
8697         (fd_sockets_hook): Renamed from close_sockets_hook.
8698         (gl_sockets_startup, gl_sockets_cleanup): Update.
8699         * modules/fd-hook: Renamed from modules/close-hook. Update.
8700         * modules/close (Depends-on): Add fd-hook, remove close-hook.
8701         * modules/sockets (Depends-on): Likewise.
8702         * modules/ioctl (Depends-on): Add fd-hook.
8703         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
8704         GNULIB_SOCKET.
8705
8706 2011-04-19  Bruno Haible  <bruno@clisp.org>
8707
8708         Move the support of O_NONBLOCK in open() to the 'open' module.
8709         * modules/nonblocking (Depends-on): Remove 'open'.
8710         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
8711         gl_cv_have_open_O_NONBLOCK.
8712         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
8713         O_NONBLOCK support.
8714         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
8715
8716 2011-04-17  Bruno Haible  <bruno@clisp.org>
8717
8718         pipe2: Simplify code.
8719         * lib/pipe2.c (pipe2): Reduce code duplication.
8720
8721 2011-04-17  Bruno Haible  <bruno@clisp.org>
8722
8723         nonblocking: Add comment.
8724         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
8725
8726 2011-04-17  Bruno Haible  <bruno@clisp.org>
8727
8728         nonblocking: Add tests for sockets.
8729         * tests/test-nonblocking-socket.sh: New file.
8730         * tests/test-nonblocking-socket-main.c: New file.
8731         * tests/test-nonblocking-socket-child.c: New file.
8732         * tests/test-nonblocking-socket.h: New file.
8733         * tests/socket-server.h: New file.
8734         * tests/socket-client.h: New file.
8735         * modules/nonblocking-socket-tests: New file.
8736         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
8737
8738 2011-04-17  Bruno Haible  <bruno@clisp.org>
8739
8740         nonblocking: Add tests for pipes.
8741         * tests/test-nonblocking-pipe.sh: New file.
8742         * tests/test-nonblocking-pipe-main.c: New file.
8743         * tests/test-nonblocking-pipe-child.c: New file.
8744         * tests/test-nonblocking-pipe.h: New file.
8745         * tests/test-nonblocking-writer.h: New file.
8746         * tests/test-nonblocking-reader.h: New file.
8747         * tests/test-nonblocking-misc.h: New file.
8748         * modules/nonblocking-pipe-tests: New file.
8749         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
8750
8751 2011-04-16  Bruno Haible  <bruno@clisp.org>
8752
8753         gettext: Clarify the needed programmer actions.
8754         * modules/gettext (Notice): New field.
8755         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8756
8757 2011-04-16  Bruno Haible  <bruno@clisp.org>
8758
8759         strchrnul: Tweak last commit.
8760         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
8761         bug.
8762         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
8763         as in _GL_FUNCDECL_SYS.
8764         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
8765         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
8766
8767 2011-04-15  Eric Blake  <eblake@redhat.com>
8768
8769         strchrnul: work around cygwin bug
8770         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
8771         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
8772         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
8773         * modules/string (Makefile.am): Substitute it.
8774         * lib/string.in.h (strchrnul): Use it.
8775
8776 2011-04-15  Bruno Haible  <bruno@clisp.org>
8777
8778         Don't require lib/stdio-write.c when only module 'stdio' is used.
8779         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
8780         invocation.
8781         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
8782
8783 2011-04-14  Bruno Haible  <bruno@clisp.org>
8784
8785         Support non-blocking pipe I/O in read() on native Windows.
8786         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
8787         (read): New declaration.
8788         * lib/read.c: New file.
8789         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
8790         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
8791         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
8792         vscanf): New declarations.
8793         * lib/stdio-read.c: New file.
8794         * m4/read.m4: New file.
8795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
8796         REPLACE_READ.
8797         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
8798         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8799         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
8800         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
8801         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
8802         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8803         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8804         * modules/read: New file.
8805         * modules/nonblocking (Files): Add lib/stdio-read.c.
8806         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
8807         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
8808         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8809         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8810         * modules/pread (Depends-on): Add read.
8811         * modules/safe-read (Depends-on): Likewise.
8812         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
8813         gets, scanf, vfscanf, vscanf): Verify signatures.
8814         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
8815         problem with non-blocking pipes.
8816         * doc/posix-functions/fgetc.texi: Likewise.
8817         * doc/posix-functions/fgets.texi: Likewise.
8818         * doc/posix-functions/fread.texi: Likewise.
8819         * doc/posix-functions/fscanf.texi: Likewise.
8820         * doc/posix-functions/getc.texi: Likewise.
8821         * doc/posix-functions/getchar.texi: Likewise.
8822         * doc/posix-functions/gets.texi: Likewise.
8823         * doc/posix-functions/scanf.texi: Likewise.
8824         * doc/posix-functions/vfscanf.texi: Likewise.
8825         * doc/posix-functions/vscanf.texi: Likewise.
8826
8827 2011-04-14  Bruno Haible  <bruno@clisp.org>
8828
8829         Support non-blocking pipe I/O in write() on native Windows.
8830         * lib/write.c (rpl_write): Split a write request that failed merely
8831         because the byte count was larger than the pipe buffer's size.
8832         * doc/posix-functions/write.texi: Mention the problem with large byte
8833         counts.
8834
8835 2011-04-14  Bruno Haible  <bruno@clisp.org>
8836
8837         wchar: Ensure that wchar_t gets defined on uClibc.
8838         * lib/wchar.in.h: On uClibc, include <stddef.h>.
8839         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
8840
8841 2011-04-13  Bruno Haible  <bruno@clisp.org>
8842
8843         safe-write, full-read: Avoid unnecessary compilation units.
8844         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
8845         (Depends-on): Remove safe-read. Add ssize_t.
8846         * modules/full-read (Files): Add lib/full-write.c.
8847         (Depends-on): Add full-write.
8848
8849 2011-04-13  Bruno Haible  <bruno@clisp.org>
8850
8851         Support non-blocking pipe I/O and SIGPIPE in pwrite().
8852         * modules/pwrite (Depends-on): Add 'write'.
8853
8854 2011-04-13  Bruno Haible  <bruno@clisp.org>
8855
8856         Support non-blocking pipe I/O in write() on native Windows.
8857         * lib/unistd.in.h (write): Enable replacement also if
8858         GNULIB_UNISTD_H_NONBLOCKING is 1.
8859         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
8860         (rpl_write): When failing to write on a non-blocking pipe, change
8861         errno from ENOSPC to EAGAIN.
8862         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
8863         putchar, puts, vfprintf, vprintf): Enable replacement also if
8864         GNULIB_STDIO_H_NONBLOCKING is 1.
8865         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
8866         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
8867         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
8868         CALL_WITH_SIGPIPE_EMULATION.
8869         (CALL_WITH_SIGPIPE_EMULATION): Use them.
8870         * m4/nonblocking.m4: New file.
8871         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
8872         for non-blocking I/O support.
8873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8874         GNULIB_UNISTD_H_NONBLOCKING.
8875         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
8876         required for non-blocking I/O support.
8877         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
8878         * modules/nonblocking (Files): Add m4/nonblocking.m4,
8879         lib/stdio-write.c, m4/asm-underscore.m4.
8880         (Depends-on): Add stdio, unistd.
8881         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
8882         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
8883         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
8884         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
8885         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
8886         problem with non-blocking pipes.
8887         * doc/posix-functions/fputc.texi: Likewise.
8888         * doc/posix-functions/fputs.texi: Likewise.
8889         * doc/posix-functions/fwrite.texi: Likewise.
8890         * doc/posix-functions/printf.texi: Likewise.
8891         * doc/posix-functions/putc.texi: Likewise.
8892         * doc/posix-functions/putchar.texi: Likewise.
8893         * doc/posix-functions/puts.texi: Likewise.
8894         * doc/posix-functions/vfprintf.texi: Likewise.
8895         * doc/posix-functions/vprintf.texi: Likewise.
8896         * doc/posix-functions/write.texi: Likewise.
8897
8898 2011-04-10  Jim Meyering  <meyering@redhat.com>
8899
8900         maint.mk: prohibit doubled words
8901         Detect them also when they're separated by a newline.
8902         There are 3 ways to customize it:
8903           - disable the test on a per file basis, as usual with rules using
8904             $(VC_LIST_EXCEPT)
8905           - replace the default doubled-word-selecting regexp (affects all files)
8906           - ignore a particular file-vs-doubled-word match
8907         I nearly used that last one to ignore the "is is" match in
8908         coreutils' NEWS file, since the text was "ls -is is ..."
8909         To do that, I would have added this line to cfg.mk:
8910           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8911         but it would have ignored any "is is" match in NEWS.
8912         Low probability, but still...
8913         Instead, I changed the text, slightly:
8914           -  ls -is is now consistent with ls -lis in ignoring values returned
8915           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8916         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8917         (prohibit_doubled_word_): Define.
8918         (sc_prohibit_doubled_word): New rule.
8919         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8920
8921 2011-04-10  Jim Meyering  <meyering@redhat.com>
8922
8923         maint: fix doubled-word typo in comment
8924         * m4/gethostname.m4: s/is is/it is/
8925         * m4/getdomainname.m4: Likewise.
8926
8927 2011-04-10  Jim Meyering  <meyering@redhat.com>
8928
8929         maint: remove doubled word: s/it it/it/
8930         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8931
8932 2011-04-10  Jim Meyering  <meyering@redhat.com>
8933
8934         maint.mk: remove useless semicolon and backslash
8935         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8936         semicolon and backslash.
8937
8938 2011-04-10  Bruno Haible  <bruno@clisp.org>
8939
8940         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8941         * modules/stdint-tests (Depends-on): Add wchar.
8942
8943 2011-04-10  Jim Meyering  <meyering@redhat.com>
8944
8945         maint: remove doubled words in comments, e.g., s/a a/a/
8946         * lib/strptime.c (day_of_the_week): s/the the/the/
8947         * tests/test-chown.h (test_chown): s/a a/a/
8948
8949         test-chown.h: correct a cast
8950         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8951         when the destination is a stat.st_gid.
8952
8953 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8954
8955         getaddrinfo: Fix test for sa_len member.
8956         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8957         include <sys/types.h> before <sys/socket.h>.
8958
8959 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8960
8961         maint: change "can not" to "cannot"
8962         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8963         boundaries.
8964
8965 2011-04-09  Jim Meyering  <meyering@redhat.com>
8966
8967         maint: change "a a" to "a"
8968         * tests/test-lchown.h (test_lchown): s/a a/a/
8969
8970         maint.mk: prohibit \<the the\>
8971         * top/maint.mk (sc_prohibit_the_the): New rule.
8972
8973         maint: fix "the the" in comment
8974         * lib/count-one-bits.h: s/the the/the/
8975
8976         maint: change "can not" to "cannot"
8977         But do not change the occurrences in maintain.texi or in
8978         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8979         * doc/gnulib-tool.texi: s/can not/cannot/
8980         * doc/posix-functions/accept.texi (accept): Likewise.
8981         * doc/posix-functions/socket.texi (socket): Likewise.
8982         * lib/mbrtowc.c: Likewise.
8983
8984         maint.mk: prohibit use of "can not"
8985         * top/maint.mk (sc_prohibit_can_not): New rule.
8986         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8987
8988 2011-04-09  Bruno Haible  <bruno@clisp.org>
8989
8990         careadlinkat: Guard against misuse of careadlinkatcwd.
8991         * lib/careadlinkat.c: Include <stdlib.h>.
8992         (careadlinkatcwd): Check that the fd argument is as expected.
8993
8994 2011-04-09  Bruno Haible  <bruno@clisp.org>
8995
8996         careadlinkat: Use common coding style.
8997         * lib/careadlinkat.c: Move gnulib includes after system includes.
8998
8999 2011-04-09  Bruno Haible  <bruno@clisp.org>
9000
9001         careadlinkat: Clarify specification.
9002         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
9003         (careadlinkatcwd): Add comment.
9004         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
9005
9006 2011-04-09  Bruno Haible  <bruno@clisp.org>
9007
9008         areadlinkat: Avoid link error on many platforms.
9009         * modules/areadlinkat (Depends-on): Add areadlink.
9010
9011 2011-04-09  Bruno Haible  <bruno@clisp.org>
9012
9013         allocator, careadlinkat: Fix double-inclusion guard.
9014         * lib/allocator.h: Fix double-inclusion guard.
9015         * lib/careadlinkat.h: Likewise.
9016
9017 2011-04-09  Bruno Haible  <bruno@clisp.org>
9018
9019         relocatable-prog-wrapper: Update after module 'areadlink' changed.
9020         * lib/relocwrapper.c: Update dependencies hierarchy.
9021         * build-aux/install-reloc: Update list of files to be compiled.
9022         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
9023         lib/allocator.[hc].
9024
9025 2011-04-08  Eric Blake  <eblake@redhat.com>
9026
9027         strftime: silence gnulib-tool warning
9028         * modules/strftime-tests (Depends-on): Drop automatic dependency.
9029
9030 2011-04-08  Bruno Haible  <bruno@clisp.org>
9031
9032         verify: Fix syntax error with GCC 4.6 in C++ mode.
9033         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
9034         (HAVE_STATIC_ASSERT): New macro.
9035         (verify_true, verify): Use 'static_assert' if it is supported and
9036         '_Static_assert' is not supported.
9037
9038 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
9039
9040         allocator: New module.
9041         * modules/allocator, lib/allocator.c: New files.
9042         * lib/allocator.h (stdlib_allocator): New decl.
9043         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
9044         Remove.  Do not include <stdlib.h>.
9045         (careadlinkat): Use stdlib_allocator instead of rolling our own.
9046         * modules/careadlinkat (Files): Remove lib/allocator.h.
9047         (Depends-on): Add allocator.
9048
9049         stdlib: let modules use system malloc, realloc
9050         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
9051         if !_GL_USE_STDLIB_ALLOC.
9052         (malloc, realloc): Limit this change to a smaller scope.
9053
9054         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
9055         (malloc, realloc): Don't #undef; no longer needed.
9056         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9057         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9058         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9059         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9060         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9061         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9062         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9063         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9064
9065         careadlinkat: rename members to avoid problem
9066         * lib/allocator.h (struct allocator): Rename members from
9067         malloc/realloc to allocate/reallocate, to avoid problems if malloc
9068         and realloc are #define'd.  Reported by Eric Blake in
9069         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
9070         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
9071
9072 2011-04-08  Eric Blake  <eblake@redhat.com>
9073
9074         nonblocking: reduce dependency
9075         * tests/test-nonblocking.c: Only test sockets when in use.
9076         * modules/nonblocking-tests (Depends-on): Drop socket.
9077         (Makefile.am): Link even if sockets are not present.
9078         * modules/pipe2-tests (Makefile.am): Likewise.
9079         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
9080
9081         pipe2: fix O_NONBLOCK support on mingw
9082         * modules/pipe2 (Depends-on): Add nonblocking.
9083         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
9084         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
9085         * tests/test-nonblocking.c (main): Likewise.
9086         * modules/pipe2-tests (Makefile.am): Avoid link failure.
9087
9088         fcntl-h: fix O_ACCMODE on cygwin
9089         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
9090         * lib/fcntl.in.h (O_ACCMODE): Fix it.
9091
9092         pipe-filter: drop O_NONBLOCK workarounds
9093         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
9094         * modules/pipe-filter-ii (Depends-on): Likewise.
9095         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
9096
9097         nonblocking: provide O_NONBLOCK for mingw
9098         * modules/nonblocking (Depends-on): Add open.
9099         (configure.ac): Set new witness macro.
9100         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
9101         * modules/fcntl-h (Makefile.am): Substitute it.
9102         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
9103         nonblocking module is in use.
9104         * lib/nonblocking.c: Adjust portability test.
9105         * lib/open.c (open): Don't let native open see gnulib flag.
9106         * tests/test-fcntl-h.c (main): Enhance test.
9107         * tests/test-open.h (test_open): Likewise.
9108         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
9109
9110         careadlinkat: fix compilation error on mingw
9111         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
9112         within struct allocator.
9113
9114 2011-04-06  Eric Blake  <eblake@redhat.com>
9115
9116         binary-io: relicense under LGPLv2+
9117         * modules/binary-io (License): Relax to LGPLv2+.
9118         Requested for libvirt, and required by pipe2.
9119
9120 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
9121
9122         verify: use _Static_assert if available
9123         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
9124         (verify_true, verify): Use it if available.  This generates better
9125         diagnostics with GCC 4.6.0 and later.
9126
9127 2011-04-05  Bruno Haible  <bruno@clisp.org>
9128
9129         Remove leftover generated .h files after config.status changed.
9130
9131         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
9132         GL_GENERATE_ALLOCA_H.
9133         * modules/alloca-opt (Makefile.am): Remove alloca.h if
9134         GL_GENERATE_ALLOCA_H evaluates to false.
9135
9136         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
9137         GL_GENERATE_ARGZ_H.
9138         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
9139         evaluates to false.
9140
9141         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
9142         GL_GENERATE_BYTESWAP_H.
9143         * modules/byteswap (Makefile.am): Remove byteswap.h if
9144         GL_GENERATE_BYTESWAP_H evaluates to false.
9145
9146         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
9147         GL_GENERATE_ERRNO_H.
9148         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
9149         evaluates to false.
9150
9151         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
9152         GL_GENERATE_FLOAT_H.
9153         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
9154         evaluates to false.
9155
9156         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
9157         GL_GENERATE_FNMATCH_H.
9158         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
9159         GL_GENERATE_FNMATCH_H evaluates to false.
9160
9161         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
9162         GL_GENERATE_GLOB_H.
9163         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
9164         evaluates to false.
9165
9166         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
9167         automake conditional GL_GENERATE_ICONV_H.
9168         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
9169         evaluates to false.
9170
9171         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
9172         GL_GENERATE_NETINET_IN_H.
9173         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
9174         GL_GENERATE_NETINET_IN_H evaluates to false.
9175
9176         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
9177         conditional GL_GENERATE_PTHREAD_H.
9178         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
9179         * modules/pthread (Makefile.am): Remove pthread.h if
9180         GL_GENERATE_PTHREAD_H evaluates to false.
9181
9182         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
9183         GL_GENERATE_SCHED_H.
9184         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
9185         evaluates to false.
9186
9187         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
9188         conditional GL_GENERATE_SELINUX_CONTEXT_H.
9189         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
9190         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
9191
9192         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
9193         GL_GENERATE_STDARG_H.
9194         * modules/stdarg (Makefile.am): Remove stdarg.h if
9195         GL_GENERATE_STDARG_H evaluates to false.
9196
9197         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
9198         GL_GENERATE_STDBOOL_H.
9199         * modules/stdbool (Makefile.am): Remove stdbool.h if
9200         GL_GENERATE_STDBOOL_H evaluates to false.
9201
9202         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
9203         conditional GL_GENERATE_STDDEF_H.
9204         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
9205         * modules/stddef (Makefile.am): Remove stddef.h if
9206         GL_GENERATE_STDDEF_H evaluates to false.
9207
9208         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
9209         GL_GENERATE_STDINT_H.
9210         * modules/stdint (Makefile.am): Remove stdint.h if
9211         GL_GENERATE_STDINT_H evaluates to false.
9212
9213         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
9214         GL_GENERATE_SYSEXITS_H.
9215         * modules/sysexits (Makefile.am): Remove sysexits.h if
9216         GL_GENERATE_SYSEXITS_H evaluates to false.
9217
9218         Reported by Karl Berry and Ralf Wildenhues.
9219
9220 2011-04-05  Bruno Haible  <bruno@clisp.org>
9221
9222         Ensure to rebuild generated .h files when config.status has changed.
9223         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
9224         config.status.
9225         * modules/ctype (Makefile.am): Likewise.
9226         * modules/dirent (Makefile.am): Likewise.
9227         * modules/errno (Makefile.am): Likewise.
9228         * modules/fcntl-h (Makefile.am): Likewise.
9229         * modules/float (Makefile.am): Likewise.
9230         * modules/getopt-posix (Makefile.am): Likewise.
9231         * modules/glob (Makefile.am): Likewise.
9232         * modules/iconv-h (Makefile.am): Likewise.
9233         * modules/inttypes (Makefile.am): Likewise.
9234         * modules/langinfo (Makefile.am): Likewise.
9235         * modules/locale (Makefile.am): Likewise.
9236         * modules/math (Makefile.am): Likewise.
9237         * modules/netdb (Makefile.am): Likewise.
9238         * modules/netinet_in (Makefile.am): Likewise.
9239         * modules/poll-h (Makefile.am): Likewise.
9240         * modules/pthread (Makefile.am): Likewise.
9241         * modules/pty (Makefile.am): Likewise.
9242         * modules/sched (Makefile.am): Likewise.
9243         * modules/search (Makefile.am): Likewise.
9244         * modules/selinux-h (Makefile.am): Likewise.
9245         * modules/signal (Makefile.am): Likewise.
9246         * modules/spawn (Makefile.am): Likewise.
9247         * modules/stdarg (Makefile.am): Likewise.
9248         * modules/stdbool (Makefile.am): Likewise.
9249         * modules/stddef (Makefile.am): Likewise.
9250         * modules/stdint (Makefile.am): Likewise.
9251         * modules/stdio (Makefile.am): Likewise.
9252         * modules/stdlib (Makefile.am): Likewise.
9253         * modules/string (Makefile.am): Likewise.
9254         * modules/strings (Makefile.am): Likewise.
9255         * modules/sys_file (Makefile.am): Likewise.
9256         * modules/sys_ioctl (Makefile.am): Likewise.
9257         * modules/sys_select (Makefile.am): Likewise.
9258         * modules/sys_socket (Makefile.am): Likewise.
9259         * modules/sys_stat (Makefile.am): Likewise.
9260         * modules/sys_time (Makefile.am): Likewise.
9261         * modules/sys_times (Makefile.am): Likewise.
9262         * modules/sys_utsname (Makefile.am): Likewise.
9263         * modules/sys_wait (Makefile.am): Likewise.
9264         * modules/sysexits (Makefile.am): Likewise.
9265         * modules/termios (Makefile.am): Likewise.
9266         * modules/time (Makefile.am): Likewise.
9267         * modules/unistd (Makefile.am): Likewise.
9268         * modules/wchar (Makefile.am): Likewise.
9269         * modules/wctype-h (Makefile.am): Likewise.
9270         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
9271
9272 2011-04-05  Bruno Haible  <bruno@clisp.org>
9273
9274         pipe2: Relicense under LGPLv2+.
9275         * modules/pipe2 (License): Change to LGPLv2+.
9276         Requested by Eric Blake, for libvirt.
9277
9278 2011-04-05  Bruce Korb  <bkorb@gnu.org>
9279
9280         bootstrap: compute gnulib_extra_files after updating build_aux
9281         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
9282         change build_aux or also supply gnulib_extra_files.  Handle correctly.
9283
9284 2011-04-05  Eric Blake  <eblake@redhat.com>
9285
9286         bootstrap: preserve git whitelist item sorting
9287         * build-aux/bootstrap (sort_patterns): New function.
9288         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
9289
9290 2011-04-05  Simon Josefsson  <simon@josefsson.org>
9291
9292         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
9293         sc_space_tab check.
9294
9295 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
9296
9297         areadlink, areadlinkat: rewrite in terms of careadlinkat
9298         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
9299         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
9300         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
9301         (malloc, realloc): Remove #undefs.
9302         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
9303         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
9304         readlink, ssize_t, stdint, unistd.
9305         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
9306         areadlink, stdint.
9307
9308         careadlinkat: new module
9309         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
9310         * modules/careadlinkat: New files, written by me with
9311         a review and feedback from Ben Pfaff in
9312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
9313
9314 2011-04-01  Bruno Haible  <bruno@clisp.org>
9315
9316         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
9317         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
9318         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
9319         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
9320         Reported by Bruce Korb <bruce.korb@gmail.com>.
9321
9322 2011-04-01  Bruno Haible  <bruno@clisp.org>
9323
9324         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
9325         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
9326         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
9327         * modules/wcpcpy (Depends-on): Add extensions.
9328         * modules/wcpncpy (Depends-on): Likewise.
9329         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
9330         systems.
9331         * doc/posix-functions/wcpncpy.texi: Likewise.
9332         * doc/posix-functions/wcwidth.texi: Likewise.
9333
9334 2011-03-31  Eric Blake  <eblake@redhat.com>
9335
9336         nonblocking: fix mingw test failures
9337         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
9338         non-blocking flag on regular file.
9339         (get_nonblocking_flag): Set errno on invalid fd.
9340         * tests/test-nonblocking.c (main): Avoid test failure on
9341         directories if fchdir is not active.
9342         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
9343
9344 2011-03-31  Bruno Haible  <bruno@clisp.org>
9345
9346         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
9347         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
9348         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
9349         Reported by Simon Josefsson <simon@josefsson.org>.
9350
9351 2011-03-31  Bruno Haible  <bruno@clisp.org>
9352         and Eric Blake  <eblake@redhat.com>
9353
9354         nonblocking: new module
9355         * modules/nonblocking: New module.
9356         * modules/nonblocking-tests: Likewise.
9357         * lib/nonblocking.h: New file.
9358         * lib/nonblocking.c: Likewise.
9359         * tests/test-nonblocking.c: New test.
9360         * lib/ioctl.c (ioctl) [mingw]: Update comment.
9361
9362 2011-03-30  Bruno Haible  <bruno@clisp.org>
9363
9364         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
9365         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
9366         instead of 'printf' format for GCC >= 4.4.
9367         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
9368         (fprintf, printf, vfprintf, vprintf): Declare with
9369         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
9370         the system's vfprintf() function.
9371         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
9372
9373 2011-03-30  Eric Blake  <eblake@redhat.com>
9374
9375         passfd: fix scoping bug
9376         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
9377         before sendmsg/recvmsg.
9378
9379         passfd: standardize coding conventions
9380         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
9381         can be learned at compile time.
9382         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
9383         ifdefs.
9384         (sendfd, recvfd): Follow gnulib code conventions.
9385
9386         passfd: fix incorrect sendmsg arguments
9387         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
9388         incorrect msg_controllen value.
9389         * modules/passfd-tests (Depends-on): Check for alarm.
9390         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
9391         Reported by Bastien ROUCARIES.
9392
9393 2011-03-30  Bruno Haible  <bruno@clisp.org>
9394
9395         c-strcasestr: Relicense under LGPLv2+.
9396         * modules/c-strcasestr (License): Change to LGPLv2+.
9397         Requested by Eric Blake, for libvirt.
9398
9399 2011-03-30  Simon Josefsson  <simon@josefsson.org>
9400
9401         * users.txt: Add libidn2.  Fix libtasn1 link.
9402
9403 2011-03-30  Jim Meyering  <meyering@redhat.com>
9404
9405         tests: readlink* ("",... fails with EINVAL on newer kernels
9406         readlink and readlinkat have typically failed with ENOENT for
9407         the invalid, empty file name,  "".  However, with the advent
9408         of linux-2.6.39, they fail with EINVAL.
9409         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
9410         when operating on the empty file name.
9411         * tests/test-readlink.h (test_readlink): Likewise.
9412
9413 2011-03-29  Bruno Haible  <bruno@clisp.org>
9414
9415         Relicense some modules under LGPLv2+, for libidn2.
9416         * modules/array-mergesort (License): Change to LGPLv2+.
9417         * modules/c-strcaseeq (License): Likewise.
9418         * modules/striconveh (License): Likewise.
9419         * modules/striconveha (License): Likewise.
9420         * modules/uniconv/base (License): Likewise.
9421         * modules/uniconv/u8-conv-from-enc (License): Likewise.
9422         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
9423         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
9424         * modules/unictype/base (License): Likewise.
9425         * modules/unictype/bidiclass-of (License): Likewise.
9426         * modules/unictype/category-M (License): Likewise.
9427         * modules/unictype/category-none (License): Likewise.
9428         * modules/unictype/category-of (License): Likewise.
9429         * modules/unictype/category-test (License): Likewise.
9430         * modules/unictype/category-test-withtable (License): Likewise.
9431         * modules/unictype/combining-class (License): Likewise.
9432         * modules/unictype/joiningtype-of (License): Likewise.
9433         * modules/unictype/scripts (License): Likewise.
9434         * modules/uninorm/base (License): Likewise.
9435         * modules/uninorm/canonical-decomposition (License): Likewise.
9436         * modules/uninorm/composition (License): Likewise.
9437         * modules/uninorm/decompose-internal (License): Likewise.
9438         * modules/uninorm/decomposition-table (License): Likewise.
9439         * modules/uninorm/nfc (License): Likewise.
9440         * modules/uninorm/nfd (License): Likewise.
9441         * modules/uninorm/u32-normalize (License): Likewise.
9442         * modules/unistr/base (License): Likewise.
9443         * modules/unistr/u32-cpy (License): Likewise.
9444         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
9445         * modules/unistr/u32-to-u8 (License): Likewise.
9446         * modules/unistr/u32-uctomb (License): Likewise.
9447         * modules/unistr/u8-check (License): Likewise.
9448         * modules/unistr/u8-mblen (License): Likewise.
9449         * modules/unistr/u8-mbtouc (License): Likewise.
9450         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
9451         * modules/unistr/u8-mbtoucr (License): Likewise.
9452         * modules/unistr/u8-prev (License): Likewise.
9453         * modules/unistr/u8-strlen (License): Likewise.
9454         * modules/unistr/u8-to-u32 (License): Likewise.
9455         * modules/unistr/u8-uctomb (License): Likewise.
9456         * modules/unitypes (License): Likewise.
9457         Requested by Simon Josefsson.
9458
9459 2011-03-29  Simon Josefsson  <simon@josefsson.org>
9460
9461         lib-symbol-visibility: Add a notice.
9462         * modules/lib-symbol-visibility (Notice): New field.
9463
9464 2011-03-29  Bruno Haible  <bruno@clisp.org>
9465
9466         getaddrinfo: Doc fix.
9467         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
9468         section "fixed in Gnulib".
9469
9470 2011-03-28  Simon Josefsson  <simon@josefsson.org>
9471
9472         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
9473         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
9474
9475 2011-03-26  Bruno Haible  <bruno@clisp.org>
9476
9477         unictype/property-byname: Reduce the number of load-time relocations.
9478         * lib/unictype/pr_byname.c: Include <stdlib.h>.
9479         (UC_PROPERTY_INDEX_*): New enumeration values.
9480         (uc_property_byname): Convert an index from the lookup table to an
9481         uc_property_t.
9482         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
9483         values.
9484
9485 2011-03-26  Bruno Haible  <bruno@clisp.org>
9486
9487         unictype/property-byname: Allow omitted word separators and aliases.
9488         * lib/unictype/pr_byname.gperf: Add property names without word
9489         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
9490         for 'space'.
9491
9492 2011-03-26  Bruno Haible  <bruno@clisp.org>
9493
9494         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
9495         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
9496         also hyphens to space.
9497         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
9498         without spaces.
9499         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
9500
9501 2011-03-26  Bruno Haible  <bruno@clisp.org>
9502
9503         unictype/joiningtype-byname: Recognize long names as well.
9504         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
9505         a long name.
9506         * lib/unictype/joiningtype_byname.c: Include <string.h>,
9507         unictype/joiningtype_byname.h.
9508         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
9509         * lib/unictype/joiningtype_byname.gperf: New file.
9510         * modules/unictype/joiningtype-byname (Files): Add
9511         lib/unictype/joiningtype_byname.gperf.
9512         (Depends-on): Add gperf.
9513         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
9514         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
9515         long names.
9516
9517         Tests for module 'unictype/joiningtype-longname'.
9518         * modules/unictype/joiningtype-longname-tests: New file.
9519         * tests/unictype/test-joiningtype_longname.c: New file.
9520
9521         New module 'unictype/joiningtype-longname'.
9522         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
9523         * lib/unictype/joiningtype_longname.c: New file.
9524         * modules/unictype/joiningtype-longname: New file.
9525         * modules/unictype/joiningtype-all (Depends-on): Add
9526         unictype/joiningtype-longname.
9527
9528 2011-03-26  Bruno Haible  <bruno@clisp.org>
9529
9530         unictype/bidiclass-byname: Recognize long names as well.
9531         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
9532         name.
9533         * lib/unictype/bidi_byname.c: Include <string.h>,
9534         unictype/bidi_byname.h.
9535         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
9536         * lib/unictype/bidi_byname.gperf: New file.
9537         * modules/unictype/bidiclass-byname (Files): Add
9538         lib/unictype/bidi_byname.gperf.
9539         (Depends-on): Add gperf.
9540         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
9541         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
9542         long names.
9543
9544         Tests for module 'unictype/bidiclass-longname'.
9545         * modules/unictype/bidiclass-longname-tests: New file.
9546         * tests/unictype/test-bidi_longname.c: New file.
9547
9548         New module 'unictype/bidiclass-longname'.
9549         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
9550         * lib/unictype/bidi_longname.c: New file.
9551         * modules/unictype/bidiclass-longname: New file.
9552         * modules/unictype/bidiclass-all (Depends-on): Add
9553         unictype/bidiclass-longname.
9554
9555 2011-03-26  Bruno Haible  <bruno@clisp.org>
9556
9557         unictype/bidi*: Rename modules.
9558         * modules/unictype/bidiclass-all: Renamed from
9559         modules/unictype/bidicategory-all.
9560         * modules/unictype/bidiclass-name: Renamed from
9561         modules/unictype/bidiclass-name.
9562         (Description): Update.
9563         * modules/unictype/bidiclass-name-tests: Renamed from
9564         modules/unictype/bidicategory-name-tests.
9565         * modules/unictype/bidiclass-byname: Renamed from
9566         modules/unictype/bidicategory-byname.
9567         (Description): Update.
9568         * modules/unictype/bidiclass-byname-tests: Renamed from
9569         modules/unictype/bidicategory-byname-tests.
9570         * modules/unictype/bidiclass-of: Renamed from
9571         modules/unictype/bidicategory-of.
9572         (Description): Update.
9573         * modules/unictype/bidiclass-of-tests: Renamed from
9574         modules/unictype/bidicategory-of-tests.
9575         * modules/unictype/bidiclass-test: Renamed from
9576         modules/unictype/bidicategory-test.
9577         (Description): Update.
9578         * modules/unictype/bidiclass-test-tests: Renamed from
9579         modules/unictype/bidicategory-test-tests.
9580         * modules/unictype/bidicategory-all: New file, a simple redirection.
9581         * modules/unictype/bidicategory-name: Likewise.
9582         * modules/unictype/bidicategory-byname: Likewise.
9583         * modules/unictype/bidicategory-of: Likewise.
9584         * modules/unictype/bidicategory-test: Likewise.
9585         * modules/unictype/property-bidi-* (Dependencies): Update.
9586         * lib/unictype/bidi_*.c: Update comment.
9587
9588 2011-03-26  Bruno Haible  <bruno@clisp.org>
9589
9590         unictype/bidi*: Rename functions, part 2.
9591         * modules/unictype/bidicategory-name (configure.ac): Update required
9592         libunistring version.
9593         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
9594
9595 2011-03-25  Bruno Haible  <bruno@clisp.org>
9596
9597         New module 'unictype/combining-class-all'.
9598         * modules/unictype/combining-class-all: New file.
9599
9600         Tests for module 'unictype/combining-class-byname'.
9601         * modules/unictype/combining-class-byname-tests: New file.
9602         * tests/unictype/test-combiningclass_byname.c: New file.
9603
9604         New module 'unictype/combining-class-byname'.
9605         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
9606         * lib/unictype/combiningclass_byname.c: New file.
9607         * lib/unictype/combiningclass_byname.gperf: New file.
9608         * modules/unictype/combining-class-byname: New file.
9609
9610         Tests for module 'unictype/combining-class-longname'.
9611         * modules/unictype/combining-class-longname-tests: New file.
9612         * tests/unictype/test-combiningclass_longname.c: New file.
9613
9614         New module 'unictype/combining-class-longname'.
9615         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
9616         * lib/unictype/combiningclass_longname.c: New file.
9617         * modules/unictype/combining-class-longname: New file.
9618
9619         Tests for module 'unictype/combining-class-name'.
9620         * modules/unictype/combining-class-name-tests: New file.
9621         * tests/unictype/test-combiningclass_name.c: New file.
9622
9623         New module 'unictype/combining-class-name'.
9624         * lib/unictype.in.h (uc_combining_class_name): New declaration.
9625         * lib/unictype/combiningclass_name.c: New file.
9626         * modules/unictype/combining-class-name: New file.
9627
9628 2011-03-25  Bruno Haible  <bruno@clisp.org>
9629
9630         unictype/combining-class: Rename source files.
9631         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
9632         of unictype/combining.h.
9633         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
9634         Update.
9635         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
9636         * modules/unictype/combining-class (Description): Fix.
9637         (Files, Makefile.am): Update.
9638         * tests/unictype/test-combiningclass.c: Renamed from
9639         tests/unictype/test-combining.c.
9640         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
9641
9642 2011-03-25  Bruno Haible  <bruno@clisp.org>
9643
9644         unictype: Update list of canonical combining classes.
9645         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
9646
9647 2011-03-25  Bruno Haible  <bruno@clisp.org>
9648
9649         unictype/category-byname: Recognize long names as well.
9650         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
9651         a long name.
9652         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
9653         unictype/categ_byname.h.
9654         (UC_CATEGORY_INDEX_*): New enumeration values.
9655         (uc_general_category_byname): Use uc_general_category_lookup and
9656         convert from index to value.
9657         * lib/unictype/categ_byname.gperf: New file.
9658         * modules/unictype/category-byname (Files): Add
9659         lib/unictype/categ_byname.gperf.
9660         (Depends-on): Add gperf.
9661         (Makefile.am): Add rule for generating unictype/categ_byname.h.
9662         * tests/unictype/test-categ_byname.c (main): Test the recognition of
9663         long names.
9664
9665         Tests for module 'unictype/category-longname'.
9666         * modules/unictype/category-longname-tests: New file.
9667         * tests/unictype/test-categ_longname.c: New file.
9668
9669         New module 'unictype/category-longname'.
9670         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
9671         * lib/unictype/categ_longname.c: New file.
9672         * modules/unictype/category-longname: New file.
9673         * modules/unictype/category-all (Depends-on): Add it.
9674
9675 2011-03-25  Bruno Haible  <bruno@clisp.org>
9676
9677         Tests for module 'unictype/category-LC'.
9678         * modules/unictype/category-LC-tests: New file.
9679         * tests/unictype/test-categ_LC.c: New file, automatically generated.
9680
9681         New module 'unictype/category-LC'.
9682         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
9683         (UC_CATEGORY_LC): New declaration.
9684         (UC_CASED_LETTER): New macro.
9685         * lib/gen-uni-tables.c (is_category_LC): New function.
9686         (output_categories): Also handle category LC.
9687         (UC_CATEGORY_MASK_LC): New enumeration value.
9688         (general_category_byname): Also handle category LC.
9689         * lib/unictype/categ_LC.c: New file.
9690         * lib/unictype/categ_LC.h: New file, automatically generated.
9691         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
9692         category LC.
9693         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
9694         * modules/unictype/category-LC: New file.
9695         * modules/unictype/category-byname (Depends-on): Add
9696         unictype/category-LC.
9697         * modules/unictype/category-all (Depends-on): Likewise.
9698
9699 2011-03-25  Eric Blake  <eblake@redhat.com>
9700
9701         xmalloc: revert yesterday's regression
9702         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
9703         realloc's underlying behavior (allowing allocation of zero-size
9704         objects, especially if malloc-gnu is also in use).
9705
9706 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
9707
9708         maint.mk: add missing version to VC-tag
9709         * top/maint.mk: git tag was missing actual tag name; add it.
9710
9711         valgrind: do leak checking, and exit with code 1 on error (not 0)
9712         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
9713         to VALGRIND.
9714
9715 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
9716
9717         posix-modules: say what it does.
9718         * posix-modules: Add a line to the --help output saying what it does.
9719
9720 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9721
9722         xmalloc: Do not leak if underlying realloc is C99 compatible.
9723         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
9724         This avoids a leak on C99-based systems.  See
9725         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
9726
9727 2011-03-24  Eric Blake  <eblake@redhat.com>
9728
9729         realloc: document portability problem
9730         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
9731         passing 0 size to realloc.
9732
9733 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
9734
9735         doc: update users.txt
9736         * users.txt: Add cvsps, tmpwatch
9737
9738 2011-03-23  Matt Rice  <ratmice@gmail.com>
9739
9740         doc: update users.txt
9741         * users.txt: Add gdb.
9742
9743 2011-03-23  Jim Meyering  <meyering@redhat.com>
9744
9745         doc: update users.txt
9746         Looking through matches up to the following URL (there are still
9747         several more pages), I found several projects that use gnulib:
9748         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
9749         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
9750         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
9751
9752 2011-03-22  Bruno Haible  <bruno@clisp.org>
9753
9754         unictype/bidi*: Rename functions.
9755         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
9756         uc_bidi_class, uc_is_bidi_class): New declarations.
9757         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
9758         uc_bidi_category_byname.
9759         (uc_bidi_category_byname): New function.
9760         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
9761         u_bidi_category_name.
9762         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
9763         (uc_bidi_category_name): New function.
9764         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
9765         uc_bidi_category.
9766         (uc_bidi_category): New function.
9767         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
9768         uc_is_bidi_category. Invoke uc_bidi_class.
9769         (uc_is_bidi_category): New function.
9770         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
9771         instead of uc_bidi_category_byname.
9772         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
9773         instead of uc_bidi_category_name.
9774         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
9775         uc_bidi_category.
9776         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
9777         instead of uc_is_bidi_category.
9778
9779 2011-03-21  Bruno Haible  <bruno@clisp.org>
9780
9781         New module 'unictype/joininggroup-all'.
9782         * modules/unictype/joininggroup-all: New file.
9783
9784         Tests for module 'unictype/joininggroup-of'.
9785         * modules/unictype/joininggroup-of-tests: New file.
9786         * tests/unictype/test-joininggroup_of.c: New file.
9787         * tests/unictype/test-joininggroup_of.h: New file, automatically
9788         generated by gen-uni-tables.
9789
9790         New module 'unictype/joininggroup-of'.
9791         * modules/unictype/joininggroup-of: New file.
9792         * lib/unictype/joininggroup_of.c: New file.
9793         * lib/unictype/joininggroup_of.h: New file, automatically generated by
9794         gen-uni-tables.
9795
9796         Tests for module 'unictype/joininggroup-byname'.
9797         * modules/unictype/joininggroup-byname-tests: New file.
9798         * tests/unictype/test-joininggroup_byname.c: New file.
9799
9800         New module 'unictype/joininggroup-byname'.
9801         * modules/unictype/joininggroup-byname: New file.
9802         * lib/unictype/joininggroup_byname.c: New file.
9803         * lib/unictype/joininggroup_byname.gperf: New file.
9804
9805         Tests for module 'unictype/joininggroup-name'.
9806         * modules/unictype/joininggroup-name-tests: New file.
9807         * tests/unictype/test-joininggroup_name.c: New file.
9808
9809         New module 'unictype/joininggroup-name'.
9810         * modules/unictype/joininggroup-name: New file.
9811         * lib/unictype/joininggroup_name.c: New file.
9812         * lib/unictype/joininggroup_name.h: New file.
9813
9814         New module 'unictype/joiningtype-all'.
9815         * modules/unictype/joiningtype-all: New file.
9816
9817         Tests for module 'unictype/joiningtype-of'.
9818         * modules/unictype/joiningtype-of-tests: New file.
9819         * tests/unictype/test-joiningtype_of.c: New file.
9820         * tests/unictype/test-joiningtype_of.h: New file, automatically
9821         generated by gen-uni-tables.
9822
9823         New module 'unictype/joiningtype-of'.
9824         * modules/unictype/joiningtype-of: New file.
9825         * lib/unictype/joiningtype_of.c: New file.
9826         * lib/unictype/joiningtype_of.h: New file, automatically generated by
9827         gen-uni-tables.
9828
9829         Tests for module 'unictype/joiningtype-byname'.
9830         * modules/unictype/joiningtype-byname-tests: New file.
9831         * tests/unictype/test-joiningtype_byname.c: New file.
9832
9833         New module 'unictype/joiningtype-byname'.
9834         * modules/unictype/joiningtype-byname: New file.
9835         * lib/unictype/joiningtype_byname.c: New file.
9836
9837         Tests for module 'unictype/joiningtype-name'.
9838         * modules/unictype/joiningtype-name-tests: New file.
9839         * tests/unictype/test-joiningtype_name.c: New file.
9840
9841         New module 'unictype/joiningtype-name'.
9842         * modules/unictype/joiningtype-name: New file.
9843         * lib/unictype/joiningtype_name.c: New file.
9844
9845         unictype: Add support for Arabic shaping properties.
9846         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
9847         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
9848         declarations.
9849         (UC_JOINING_GROUP_*): New enumeration values.
9850         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
9851         declarations.
9852         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
9853         (unicode_joining_type): New variable.
9854         (UC_JOINING_GROUP_*): New enumeration values.
9855         (unicode_joining_group): New variable.
9856         (fill_arabicshaping, joining_type_as_c_identifier,
9857         output_joining_type_test, output_joining_type,
9858         joining_group_as_c_identifier, output_joining_group_test,
9859         output_joining_group): New functions.
9860         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
9861         fill_arabicshaping and output_joining_type_test, output_joining_type,
9862         output_joining_group_test, output_joining_group.
9863         Reported by Simon Josefsson.
9864
9865 2011-03-21  Jim Meyering  <meyering@redhat.com>
9866
9867         strftime: fix a bug in yesterday's change
9868         * lib/strftime.c (add): Accommodate width's initial value of -1.
9869         Otherwise, nstrftime would copy uninitialized data into
9870         the result buffer.
9871
9872 2011-03-21  Jim Meyering  <meyering@redhat.com>
9873
9874         tests: add strftime-tests module
9875         * tests/test-strftime.c: New file.
9876         * modules/strftime-tests: New module.
9877
9878 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9879
9880         strftime: don't assume a byte count fits in 'int'
9881         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
9882         found this problem by static analysis, using gcc -Wstrict-overflow
9883         (GCC 4.5.2, x86-64).  This reported an optimization that depended
9884         on an integer overflow having undefined behavior, but it turns out
9885         that the argument is a size, which might not fit in 'int' anyway,
9886
9887 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9888
9889         stdio: don't require ignore_value around fwrite
9890
9891         This patch works around libc bug 11959
9892         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
9893         Without this patch, applications must often write
9894         ignore_value (fwrite (...)) even though the ignore_value is
9895         not helpful here.  It's common to write many objects, using
9896         fwrite/printf/etc., and then use ferror to detect output error.
9897
9898         I considered making this patch optional, but decided against it,
9899         because libc is obviously being inconsistent here: there is no
9900         reason libc should insist that user code must inspect fwrite
9901         return's value without also insisting that it inspect printf's,
9902         putchar's, etc.  If user code wants to have a strict style where
9903         all these functions' values are checked (so that ferror need not
9904         be checked), we could add support for that style in a new gnulib
9905         module, but in the meantime it's better to be consistent and to
9906         support common usage.
9907
9908         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9909         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9910         that we are compiling in checking mode, and if not C++, and
9911         if not already wrapping fwrite for some other reason.
9912         (fwrite): #define to rpl_fwrite if the latter is defined.
9913
9914 2011-03-20  Bruno Haible  <bruno@clisp.org>
9915
9916         verror: Fix compilation error introduced on 2011-02-13.
9917         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9918         instead of __attribute__.
9919         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9920
9921 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9922             Bruno Haible  <bruno@clisp.org>
9923
9924         socklen: do not depend on sys_socket
9925         While trying to modify Emacs to use gnulib's socklen module,
9926         I discovered a circular dependency: socklen depends on sys_socket
9927         and vice versa.  Emacs can use socklen, but it does not need
9928         sys_socket because it has its own substitute for sys/socket.h.
9929         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9930         gl_TYPE_SOCKLEN_T.
9931         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9932         gl_PREREQ_SYS_H_SOCKET.
9933         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9934         gl_PREREQ_SYS_H_SOCKET.
9935         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9936         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9937         * modules/socklen (Depends-on): Do not depend on sys_socket.
9938         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9939
9940 2011-03-20  Jim Meyering  <meyering@redhat.com>
9941
9942         maint.mk: sort file names *after* new transformation
9943         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9944         prefix would have led to an unwarranted failure in GNU parted.
9945         Sort after that transformation.
9946
9947 2011-03-19  Jim Meyering  <meyering@redhat.com>
9948
9949         maint.mk: fix po-file syntax-check rule
9950         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9951         Patch by Bruno Haible.
9952
9953 2011-03-19  Bruno Haible  <bruno@clisp.org>
9954
9955         socklen: Update comment.
9956         * m4/socklen.m4: Update comment about platforms.
9957
9958 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9959             Bruno Haible  <bruno@clisp.org>
9960
9961         inet_ntop, inet_pton: Simplify.
9962         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9963         documented to provide socklen_t and we already depend on sys_socket.
9964         * modules/inet_pton (Depends-on): Likewise.
9965         * lib/arpa_inet.in.h: Adjust comment.
9966
9967 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9968             Bruno Haible  <bruno@clisp.org>
9969
9970         netdb: Simplify.
9971         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9972         documented to provide socklen_t and we already depend on sys_socket.
9973         * lib/netdb.in.h: Adjust comment.
9974
9975 2011-03-19  Bruno Haible  <bruno@clisp.org>
9976
9977         sys_socket, netdb: Document problem with socklen_t.
9978         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9979         platforms.
9980         * doc/posix-headers/netdb.texi: Likewise.
9981
9982 2011-03-18  Eric Blake  <eblake@redhat.com>
9983
9984         maint.mk: let po check work in VPATH build
9985         * top/maint.mk (po_file): Allow cfg.mk override.
9986         (sc_po_check): Allow VPATH use.
9987         Reported by Jiri Denemark.
9988
9989 2011-03-16  Jim Meyering  <meyering@redhat.com>
9990
9991         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9992         Before, you would have had to create one .x-sc_ file per rule in order
9993         to exempt offending files.  Now, you may instead use a Make variable --
9994         usually defined in cfg.mk -- whose name identifies the affected rule.
9995         * top/maint.mk (_sc_excl): Define.
9996         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9997         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9998
9999 2011-03-13  Bruno Haible  <bruno@clisp.org>
10000
10001         ignore-value tests: Avoid warnings.
10002         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
10003         empty for gcc < 3.4.
10004
10005 2011-03-13  Bruno Haible  <bruno@clisp.org>
10006
10007         passfd: Fix link error on Solaris.
10008         * modules/passfd (Description): Correct.
10009         (Depends-on): Add socketlib.
10010         (Link): New section.
10011         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
10012
10013 2011-03-13  Bruno Haible  <bruno@clisp.org>
10014
10015         passfd: Fix link error on AIX 5.2.
10016         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
10017
10018 2011-03-13  Bruno Haible  <bruno@clisp.org>
10019
10020         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
10021         * lib/sys_socket.in.h: Include <stddef.h>.
10022         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
10023         CMSG_FIRSTHDR. Remove unused variable.
10024
10025 2011-03-13  Bruno Haible  <bruno@clisp.org>
10026
10027         passfd: Fix compilation error on OpenBSD.
10028         * lib/passfd.c: Include <sys/uio.h>.
10029
10030 2011-03-13  Bruno Haible  <bruno@clisp.org>
10031
10032         passfd test: Fix warnings.
10033         * tests/test-passfd.c: Include <sys/wait.h>.
10034         (main): Fix typo.
10035
10036 2011-03-13  Bruno Haible  <bruno@clisp.org>
10037
10038         passfd module, part 4, tweaks.
10039         * tests/test-passfd.c: Reorder includes.
10040         (main): Fix perror and printf calls.
10041
10042 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10043
10044         passfd module, part 4.
10045         * modules/passfd-tests: New file.
10046         * tests/test-passfd.c: New file.
10047
10048 2011-03-13  Jim Meyering  <meyering@redhat.com>
10049
10050         Makefile: rely on GNU make; derive syntax-check rule names
10051         Rather than requiring that each sc_ rule be listed as a dependent
10052         of "check", use features of GNU make to derive the list.
10053         * Makefile (syntax-check-rules): Define.
10054         (check): Depend on the new variable, not the hard-coded list.
10055
10056 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
10057             Bruno Haible  <bruno@clisp.org>
10058
10059         passfd module, part 3.
10060         * lib/passfd.h (recvfd): Add a flags argument.
10061         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
10062         (recvfd): Add a flags argument.
10063         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
10064         exists.
10065         * modules/passfd (Depends-on): Add cloexec.
10066         Suggested by Eric Blake.
10067
10068 2011-03-13  Bruno Haible  <bruno@clisp.org>
10069
10070         passfd module, part 2, tweaks.
10071         * modules/passfd (Files): Reorder.
10072         (Depends-on): Remove errno.
10073         (Include): Remove <sys/socket.h>, <sys/un.h>.
10074         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
10075         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
10076         specification header. Include <sys/socket.h> always. Don't include
10077         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
10078         (sendfd): Clarify that it sets errno when it fails.
10079         (recvfd): Fix specification.
10080
10081 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10082
10083         passfd module, part 2.
10084         * modules/passfd: New file.
10085         * lib/passfd.h: New file.
10086         * lib/passfd.c: New file.
10087
10088 2011-03-12  Bruno Haible  <bruno@clisp.org>
10089
10090         wcswidth, mbswidth: Avoid integer overflow.
10091         * lib/wcswidth.c: Include <limits.h>.
10092         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
10093         * lib/mbswidth.c: Include <limits.h>.
10094         (mbsnwidth): Avoid 'int' overflow.
10095         Reported by Jim Meyering.
10096
10097 2011-03-12  Bruno Haible  <bruno@clisp.org>
10098
10099         futimens, utimensat: Avoid endless recursion on Solaris 10.
10100         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
10101         Solaris.
10102         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
10103         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
10104
10105 2011-03-11  Jim Meyering  <meyering@redhat.com>
10106
10107         maint.mk: relax a regexp to accommodate other formatting styles
10108         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
10109         between "ngettext" and the following "(".
10110
10111 2011-03-11  Pádraig Brady <P@draigBrady.com>
10112
10113         maint.mk: suppress a false positive warning
10114         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
10115         diagnostics are marked with ngettext.
10116
10117 2011-03-10  Eric Blake  <eblake@redhat.com>
10118
10119         wchar: add explicit dependencies, for Tru64
10120         * modules/mbmemcasecoll (Depends-on): Add wchar.
10121         * modules/mbtowc (Depends-on): Likewise.
10122         * modules/vasnprintf (Depends-on): Likewise.
10123         * modules/unistdio/u-printf-args (Depends-on): Likewise.
10124         * modules/wctomb (Depends-on): Likewise.
10125         Reported by Peter O'Gorman.
10126
10127 2011-03-08  Bruno Haible  <bruno@clisp.org>
10128
10129         passfd module, part 1, tweaks.
10130         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
10131         Improve indentation. Improve AC_MSG_CHECKING messages.
10132         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
10133         gl_SOCKET_FAMILIES.
10134
10135 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10136
10137         passfd module, part 1.
10138         * m4/afunix.m4: New file.
10139         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
10140         sockets.
10141
10142 2011-03-08  Bruno Haible  <bruno@clisp.org>
10143
10144         regex-quote: New API.
10145         * lib/regex-quote.h: Include <stdbool.h>.
10146         (struct regex_quote_spec): New type.
10147         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10148         New declarations.
10149         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10150         'const struct regex_quote_spec *' argument.
10151         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
10152         (pcre_special): New constant.
10153         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10154         New functions.
10155         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10156         'const struct regex_quote_spec *' argument.
10157         * modules/regex-quote (Depends-on): Add stdbool.
10158         * tests/test-regex-quote.c (check): Update for new API. Add test for
10159         anchored results.
10160         * NEWS: Mention the API change.
10161         Reported by Reuben Thomas and Eric Blake.
10162
10163 2011-03-06  Bruno Haible  <bruno@clisp.org>
10164
10165         regex-quote: Fix creation of POSIX extended regular expressions.
10166         * lib/regex-quote.c (ere_special): Add grouping and alternation
10167         operators.
10168
10169 2011-03-05  Bruno Haible  <bruno@clisp.org>
10170
10171         doc: Improve doc regarding autopoint vs. gnulib.
10172         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
10173         disable autopoint while running autoreconf.
10174         Suggested by Ralf Wildenhues.
10175
10176 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10177
10178         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
10179         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
10180
10181 2011-03-03  Bruce Korb  <bkorb@gnu.org>
10182
10183         parse-duration: remove xalloc.h dependency
10184         * lib/parse-duration.c (parse_period): handle NULL return from
10185         strdup instead of calling xstrdup().
10186         * modules/parse-duration: remove "xalloc" dependency
10187
10188 2011-03-03  Matthew Booth  <mbooth@redhat.com>
10189
10190         bootstrap: honor m4_base when running aclocal
10191         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
10192
10193 2011-03-02  Jim Meyering  <meyering@redhat.com>
10194
10195         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
10196         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
10197         on request from Matt Booth.
10198
10199 2011-03-01  Eric Blake  <eblake@redhat.com>
10200
10201         test-link: work on Hurd
10202         * tests/test-link.h (test_link): Hurd rejects linking directories
10203         with EISDIR instead of the POSIX-mandated EPERM.
10204
10205 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
10206
10207         stdio: simplify by moving files to printf-posix, sigpipe
10208         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
10209         since this symbol is needed only if printf is replaced.
10210         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
10211         Require gl_ASM_SYMBOL_PREFIX.
10212         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
10213         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
10214         (Depends-on): Add 'raise'.
10215         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
10216         * modules/stdio (Files): Remove lib/stdio-write.c,
10217         m4/asm-underscore.m4.
10218         (Depends-on): Remove 'raise'.
10219
10220         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
10221         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
10222         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
10223         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
10224
10225 2011-02-28  Bruno Haible  <bruno@clisp.org>
10226
10227         localcharset: Assume ANSI C behaviour of free().
10228         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
10229         calling free().
10230         Suggested by Simon Josefsson <simon@josefsson.org>.
10231
10232 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
10233             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
10234             Bruno Haible  <bruno@clisp.org>  (tiny change)
10235
10236         On Cygwin, use /proc file system instead of win32 API.
10237         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
10238         Win32 file names.
10239         (DllMain): Simplify by removing Cygwin specific code.
10240         (find_shared_library_fullname): Use Linux specific implementation also
10241         for Cygwin.
10242         (get_shared_library_fullname): Update accordingly.
10243         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
10244         Win32 file names.
10245         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
10246         Cygwin specific code.
10247
10248 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
10249             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
10250
10251         Fix OpenMP flag detection for various Fortran compilers.
10252         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
10253         OpenMP-conditional compilation construct, to force compile
10254         failure with missing OpenMP flag.
10255         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
10256
10257 2011-02-25  Eric Blake  <eblake@redhat.com>
10258
10259         strstr: expand test coverage
10260         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
10261         compilation.
10262         * tests/test-memmem.c (main): Duplicate tests.
10263         * tests/test-strcasestr.c (main): Likewise.
10264         * tests/test-c-strcasestr.c (main): Likewise.
10265
10266 2011-02-25  Jim Meyering  <meyering@redhat.com>
10267
10268         maint.mk: detect missing-NL-at-EOF, too
10269         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
10270         it also detects when a file lacks a newline at EOF.
10271         (require_exactly_one_NL_at_EOF_): Renamed from
10272         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
10273         since people may well have .x-sc_... file names tied to the
10274         existing name.  Suggested by Eric Blake.
10275
10276 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
10277
10278         dirname: move m4/dos.m4 functionality into lib/dosname.h
10279
10280         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
10281         extracts symbols from it, puts them into config.h; but it's much
10282         easier to use the symbols directly.  filename.h already does this,
10283         but it disagrees with dos.m4 in some respects.  This patch
10284         introduces a different include file dosname.h that packages up
10285         dos.m4, and then later we can work on merging filename.h and
10286         dosname.h.  Applications that need only the easy-to-configure
10287         symbols should consider including dosname.h rather than dirname.h.
10288         * NEWS: Mention incompatible changes.
10289         * m4/dos.m4: Remove.
10290         * lib/dosname.h, modules/dosname: New files.
10291         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
10292         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
10293         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
10294         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
10295         Include dosname.h, not dirname.h.
10296         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
10297         Include dosname.h, for definitions of symbols like ISSLASH
10298         that used to be in config.h.
10299         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
10300         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10301         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10302         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10303         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
10304         * modules/rmdir (Files): Likewise.
10305         * modules/stat (Files): Likewise.
10306         * modules/unlink (Files): Likewise.
10307         * modules/dirname-lgpl (Depends-on): Add dosname.
10308         * modules/lstat (Depends-on): Likewise.
10309         * modules/openat (Depends-on): Likewise.
10310         * modules/rmdir (Depends-on): Likewise.
10311         * modules/savewd (Depends-on): Likewise.
10312         * modules/stat (Depends-on): Likewise.
10313         * modules/unlink (Depends-on): Likewise.
10314         * modules/openat (Depends-on): Remove dirname-lgpl.
10315         * modules/savewd (Depends-on): Likewise.
10316         * tests/test-dirname.c: Do not use removed symbols like
10317         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
10318         the remaining symbols, e.g., ISSLASH ('\\').
10319
10320 2011-02-25  Eric Blake  <eblake@redhat.com>
10321
10322         strstr: revert patches that introduced bug and pessimization
10323         * lib/str-two-way.h: Add another reference.
10324         (two_way_short_needle, two_way_long_needle): Revert changes from
10325         2011-02-24; they pessimize search speed.
10326         (critical_factorization): Partially revert changes from
10327         2010-06-22; they violate the requirement that the left half of the
10328         needle be smaller than the period of the needle.
10329
10330 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10331
10332         filenamecat: remove unnecessary dependency on dirname-lgpl
10333         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
10334         is no direct dependency, just an indirect one via filenamecat-lgpl.
10335
10336         remove: remove unnecessary use of m4/dos.m4
10337         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
10338         * modules/remove (FILES): Remove m4/dos.m4.
10339
10340         * lib/openat-proc.c: Don't include dirname.h; not needed.
10341
10342         backupfile: remove unnecessary use of m4/dos.m4
10343         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
10344         of its symbols are used by the backupfile code.  backupfile.c does
10345         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
10346         for the rare case of programs that want all their backup file
10347         names to live within 8+3 limits, and dos.m4 doesn't address that.
10348         * modules/backupfile (Files): Remove m4/dos.m4.
10349
10350 2011-02-24  Jim Meyering  <meyering@redhat.com>
10351
10352         strstr: fix a bug whereby strstr would mistakenly return NULL
10353         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
10354         in period calculation.
10355         (two_way_long_needle): Likewise.
10356         The original problem was reported by Mike Stump in
10357         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
10358         Ralf Wildenhues provided the short needle and haystack.
10359         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
10360         Add a more involved test to trigger the bug in two_way_long_needle.
10361
10362 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10363
10364         gnulib-tool: remove use of bold display in help screen
10365         * gnulib-tool (func_usage): Do not use bold display anymore in the
10366         help screen.  That was just meant to be a temporary emphasis for a
10367         backward-incompatible change.
10368
10369 2011-02-23  Bruno Haible  <bruno@clisp.org>
10370
10371         Fix misindentation of preprocessor directives.
10372         * lib/argp-namefrob.h: Reindent preprocessor directives.
10373         * lib/getopt_int.h (struct _getopt_data): Likewise.
10374         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
10375         * lib/vasnprintf.c (decode_long_double): Likewise.
10376         * tests/test-argmatch.c: Insert blank lines, for clarity.
10377         * tests/test-exclude.c: Likewise.
10378
10379 2011-02-22  Bruno Haible  <bruno@clisp.org>
10380
10381         ioctl: Fix for MacOS X in 64-bit mode.
10382         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
10383         value.
10384         Suggested by Eric Blake.
10385         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
10386
10387 2011-02-22  Jim Meyering  <meyering@redhat.com>
10388
10389         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
10390         * Makefile (sc_cpp_indent_check): Don't limit the check to files
10391         in lib/.
10392
10393 2011-02-22  Eric Blake  <eblake@redhat.com>
10394
10395         maint: avoid any CDPATH issue
10396         * Makefile (sc_cpp_indent_check): Anchor cd argument.
10397
10398         maint: adjust cpp indentation for my modules, as well
10399         * Makefile (sc_cpp_indent_check): Add my name.
10400         * lib/fbufmode.c: Filter through cppi.
10401         * lib/fpurge.c: Likewise.
10402         * lib/freadable.c: Likewise.
10403         * lib/freading.c: Likewise.
10404         * lib/fwritable.c: Likewise.
10405         * lib/fwriting.c: Likewise.
10406         * lib/sigaction.c: Likewise.
10407
10408 2011-02-22  Jim Meyering  <meyering@redhat.com>
10409
10410         maint: adjust cpp indentation to reflect nesting depth
10411         I.e., in a block of code that begins with an unnested "#if",
10412         put one space between the "#" in column 1 and following token.
10413         For example,
10414         -#include <sys/vfs.h>
10415         +# include <sys/vfs.h>
10416         Do this only in .c files that are part of a module I maintain.
10417         * lib/linkat.c: Filter through cppi.
10418         * lib/nanosleep.c: Likewise.
10419         * lib/openat.c: Likewise.
10420         * lib/openat-die.c: Likewise.
10421         * lib/dup3.c: Likewise.
10422         * lib/fchownat.c: Likewise.
10423         * lib/flock.c: Likewise.
10424         * lib/fsync.c: Likewise.
10425         * lib/fts.c: Likewise.
10426         * lib/getpass.c: Likewise.
10427         * lib/gettimeofday.c: Likewise.
10428         * lib/userspec.c: Likewise.
10429         * Makefile (sc_cpp_indent_check): New rule, to check this.
10430
10431 2011-02-22  Bruno Haible  <bruno@clisp.org>
10432
10433         New module 'wctomb'.
10434         * lib/stdlib.in.h (wctomb): New declaration.
10435         * lib/wctomb.c: New file.
10436         * lib/wctomb-impl.h: New file.
10437         * m4/wctomb.m4: New file.
10438         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
10439         REPLACE_WCTOMB.
10440         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
10441         REPLACE_WCTOMB.
10442         * modules/wctomb: New file.
10443         * tests/test-stdlib-c++.cc: Test signature of wctomb.
10444         * doc/posix-functions/wctomb.texi: Mention the new module.
10445         * modules/wctob (Depends-on): Add wctomb.
10446
10447 2011-02-22  Bruno Haible  <bruno@clisp.org>
10448
10449         New module 'mbtowc'.
10450         * lib/stdlib.in.h (mbtowc): New declaration.
10451         * lib/mbtowc.c: New file.
10452         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
10453         * m4/mbtowc.m4: New file.
10454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
10455         REPLACE_MBTOWC.
10456         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
10457         REPLACE_MBTOWC.
10458         * modules/mbtowc: New file.
10459         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
10460         * doc/posix-functions/mbtowc.texi: Mention the new module.
10461         * modules/btowc (Depends-on): Add mbtowc.
10462
10463 2011-02-22  Bruno Haible  <bruno@clisp.org>
10464
10465         wcrtomb: Add more tests for native Windows platforms.
10466         * tests/test-wcrtomb-w32-1.sh: New file.
10467         * tests/test-wcrtomb-w32-2.sh: New file.
10468         * tests/test-wcrtomb-w32-3.sh: New file.
10469         * tests/test-wcrtomb-w32-4.sh: New file.
10470         * tests/test-wcrtomb-w32-5.sh: New file.
10471         * tests/test-wcrtomb-w32.c: New file.
10472         * modules/wcrtomb-tests (Files): Add them.
10473         (Makefile.am): Arrange to run these tests.
10474         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
10475         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
10476
10477 2011-02-20  Bruno Haible  <bruno@clisp.org>
10478
10479         wcrtomb: Enhance test.
10480         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
10481
10482 2011-02-20  Bruno Haible  <bruno@clisp.org>
10483
10484         mbrtowc: Tiny optimization.
10485         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
10486
10487 2011-02-20  Jim Meyering  <meyering@redhat.com>
10488
10489         test-exclude.c: remove unmatched #endif
10490         * tests/test-exclude.c: Remove stray #endif, left over from
10491         the change of a week ago.
10492
10493 2011-02-19  Jim Meyering  <meyering@redhat.com>
10494
10495         git-version-gen: skip "-dirty" check when appropriate
10496         * build-aux/git-version-gen: Don't run any git commands when the
10497         version string comes from .tarball-version.  Prior to this, we
10498         would run git update-index --refresh even from a just-unpacked
10499         tarball directory, and that could affect a .git/ directory in a
10500         parent of the build directory.  Reported by Mike Frysinger.
10501
10502 2011-02-19  Bruno Haible  <bruno@clisp.org>
10503
10504         unictype/property-byname: Reduce the size of the 'data' segment.
10505         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
10506
10507 2011-02-19  Bruno Haible  <bruno@clisp.org>
10508
10509         unictype/scripts: Reduce the size of the 'data' segment.
10510         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
10511         '%pic'.
10512         * lib/unictype/scripts_byname.gperf: Regenerated.
10513
10514 2011-02-19  Bruno Haible  <bruno@clisp.org>
10515
10516         stdint: Update documentation.
10517         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
10518
10519 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
10520
10521         stdint: omit redundant check for wchar.h
10522         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
10523         always tests whether wchar.h exists, so remove the now-redundant test.
10524
10525 2011-02-18  Bruno Haible  <bruno@clisp.org>
10526
10527         stdint: Cut dependency to module 'wchar'.
10528         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
10529         include the necessary prerequisites.
10530         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
10531         * modules/stdint (Depends-on): Remove wchar.
10532         (Makefile.am): Substitute HAVE_WCHAR_H.
10533         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
10534
10535 2011-02-18  Eric Blake  <eblake@redhat.com>
10536
10537         longlong: skip, rather than fail, on cross-compilation
10538         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
10539         when cross-compiling; regression from 2011-02-16.
10540
10541 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10542
10543         * NEWS: Mention 2011-02-08 change to stdlib.
10544
10545 2011-02-17  Bruno Haible  <bruno@clisp.org>
10546
10547         getloadavg: Add comments about platforms.
10548         * m4/getloadavg.m4: Add comment.
10549         * lib/getloadavg.c: Likewise.
10550
10551 2011-02-17  Bruno Haible  <bruno@clisp.org>
10552
10553         getloadavg: Fix link error on Solaris 2.6.
10554         * modules/getloadavg (Link): New section.
10555         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
10556         linking test-getloadavg.
10557         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
10558         getloadavg.
10559
10560 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10561
10562         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
10563         It was 'int', but this doesn't match the IRIX 6.5 manual.
10564         Suggested by Bruno Haible in
10565         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
10566
10567 2011-02-17  Bruno Haible  <bruno@clisp.org>
10568
10569         havelib: Fix comments.
10570         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
10571         change.
10572
10573 2011-02-17  Bruno Haible  <bruno@clisp.org>
10574
10575         havelib: Update config.rpath.
10576         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
10577
10578 2011-02-17  Bruno Haible  <bruno@clisp.org>
10579
10580         getloadavg test: Add some plausibility checks.
10581         * tests/test-getloadavg.c (check_avg): Print a warning when the value
10582         is improbable.
10583
10584 2011-02-16  Eric Blake  <eblake@redhat.com>
10585
10586         maintainer-makefile: make syntax-check a no-op from tarballs
10587         * top/maint.mk (no-vc-detected): New rule.
10588         (local-checks-available): Use it to avoid hanging if someone tries
10589         'make syntax-check' from a tarball.  Also append to any non-syntax
10590         checks already defined in cfg.mk.
10591
10592 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
10593
10594         longlong: tune, particularly for common case of c99
10595
10596         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
10597         or running anything if c99, or if unsigned long long int does not
10598         work.  In either case, we know the answer without further tests.
10599         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
10600         it at most once, and use its results for both long long int and
10601         unsigned long long int.  This is more likely to be efficient in
10602         the common case where the program wants to check for both long
10603         long int and unsigned long long int.
10604         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
10605         since the answer is already known.
10606
10607 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
10608
10609         getloadavg: set errno
10610         * lib/getloadavg.c: Set errno when returning -1.  If no other
10611         error number looks appropriate, set it to ENOSYS if the getloadavg
10612         looks like it can't possibly ever work, ENOTSUP otherwise.
10613         Suggested by Bruno Haible in
10614         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
10615
10616         getloadavg: trim unused parts and speed up 'configure'
10617         * NEWS: Document this.
10618         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
10619         always compiled if getloadavg is absent.
10620         Move test code to ...
10621         * tests/test-getloadavg.c: New file, containing previous
10622         contents of test from lib/getloadavg.c.  It also contains
10623         suggestions by Bruno Haible in
10624         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
10625         * modules/getloadavg-tests: New file.
10626         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
10627         Do tests in the same order as they're needed for getloadavg.c.
10628         Omit setgid-related tests that generate symbols KMEM_GROUP,
10629         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
10630         Do only the tests that are needed to see whether the system has
10631         getloadavg, moving the other tests into ...
10632         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
10633         NLIST_NAME_UNION; nobody should be using it.  Do not define
10634         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
10635         relevant, as the user of this module shouldn't care how getloadavg
10636         is implemented.
10637
10638         getloadavg: omit unused var
10639         * lib/getloadavg.c (getloadavg): Omit unused local variable.
10640
10641 2011-02-15  Jim Meyering  <meyering@redhat.com>
10642
10643         doc: update users.txt
10644         * users.txt: Update iwhd's URL.
10645
10646 2011-02-13  Bruno Haible  <bruno@clisp.org>
10647
10648         Consistent macro naming for macros that use GCC __attribute__.
10649         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
10650         _ATTRIBUTE_NONNULL_.
10651         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
10652         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
10653         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
10654         ATTRIBUTE_DEPRECATED.
10655         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
10656         ATTRIBUTE_NORETURN.
10657         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10658         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10659         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10660         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10661         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
10662         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
10663         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
10664         ATTRIBUTE_SENTINEL.
10665         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
10666         ATTRIBUTE_RETURN_CHECK.
10667         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
10668         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
10669         ATTRIBUTE_NORETURN.
10670         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
10671         Reported by Paul Eggert.
10672
10673 2011-02-13  Bruno Haible  <bruno@clisp.org>
10674
10675         Don't interfere with a program's definition of __attribute__.
10676         * lib/argp.h (__attribute__): Remove definition.
10677         (_GL_ATTRIBUTE_FORMAT): New macro.
10678         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
10679         * lib/argp-fmtstream.h (__attribute__): Remove definition.
10680         (_GL_ATTRIBUTE_FORMAT): New macro.
10681         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
10682         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
10683         GCC 3 or newer.
10684         * lib/error.h (__attribute__): Remove definition.
10685         (_GL_ATTRIBUTE_FORMAT): New macro.
10686         (error, error_at_line): Use it.
10687         * lib/hash.h (__attribute__): Remove definition.
10688         (ATTRIBUTE_WUR): Update definition. Define always.
10689         * lib/openat.h (__attribute__): Remove definition.
10690         (ATTRIBUTE_NORETURN): Update definition. Define always.
10691         * lib/sigpipe-die.h (__attribute__): Remove definition.
10692         (ATTRIBUTE_NORETURN): Update definition. Define always.
10693         * lib/vasnprintf.h (__attribute__): Remove definition.
10694         (_GL_ATTRIBUTE_FORMAT): New macro.
10695         (asnprintf, vasnprintf): Use it.
10696         * lib/xalloc.h (__attribute__): Remove definition.
10697         (ATTRIBUTE_NORETURN): Update definition. Define always.
10698         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
10699         * lib/xmemdup0.h (__attribute__): Remove definition.
10700         (ATTRIBUTE_NORETURN): Update definition. Define always.
10701         * lib/xprintf.h (__attribute__): Remove definition.
10702         (_GL_ATTRIBUTE_FORMAT): New macro.
10703         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
10704         * lib/xstrtol.h (__attribute__): Remove definition.
10705         (ATTRIBUTE_NORETURN): Update definition. Define always.
10706         * lib/xvasprintf.h (__attribute__): Remove definition.
10707         (_GL_ATTRIBUTE_FORMAT): New macro.
10708         (xasprintf, xvasprintf): Use it.
10709         * tests/test-argmatch.c (__attribute__): Remove definition.
10710         (ATTRIBUTE_NORETURN): Update definition. Define always.
10711         * tests/test-exclude.c (__attribute__): Remove definition.
10712         (ATTRIBUTE_NORETURN): Update definition. Define always.
10713         Reported by Paul Eggert.
10714
10715 2011-02-13  Bruno Haible  <bruno@clisp.org>
10716
10717         mbrtowc: Add more tests for native Windows platforms.
10718         * tests/test-mbrtowc-w32-1.sh: New file.
10719         * tests/test-mbrtowc-w32-2.sh: New file.
10720         * tests/test-mbrtowc-w32-3.sh: New file.
10721         * tests/test-mbrtowc-w32-4.sh: New file.
10722         * tests/test-mbrtowc-w32-5.sh: New file.
10723         * tests/test-mbrtowc-w32.c: New file.
10724         * modules/mbrtowc-tests (Files): Add them.
10725         (Makefile.am): Arrange to run these tests.
10726         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
10727         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
10728
10729 2011-02-13  Bruno Haible  <bruno@clisp.org>
10730
10731         mbrtowc: Work around native Windows bug.
10732         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
10733         guess when no suitable locale for testing was found.
10734         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
10735
10736 2011-02-13  Bruno Haible  <bruno@clisp.org>
10737
10738         mbsinit: Work around mingw bug.
10739         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
10740         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
10741         Windows.
10742         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
10743
10744 2011-02-13  Bruno Haible  <bruno@clisp.org>
10745
10746         mbsinit: Don't crash for a NULL argument.
10747         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
10748         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
10749
10750 2011-02-13  Bruno Haible  <bruno@clisp.org>
10751
10752         Don't interfere with a program's definition of __attribute__.
10753         * lib/stdio.in.h (__attribute__): Remove definition.
10754         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
10755         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
10756         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
10757         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
10758         * lib/string.in.h (__attribute__): Remove definition.
10759         Reported by Paul Eggert.
10760
10761 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10762
10763         stdlib: don't get in the way of non-GCC __attribute__
10764         See thread starting at
10765         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
10766         Revert previous stdlib change, installing the following instead:
10767         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
10768         to get in the way of a non-GCC compiler that supports __attribute__.
10769         (_GL_ATTRIBUTE_RETURN): New macro.
10770         (_Exit): Use it instead of __attribute__.
10771
10772 2011-02-12  Bruno Haible  <bruno@clisp.org>
10773
10774         quotearg test: Avoid test failure on mingw.
10775         * tests/test-quotearg.sh: Convert the locale identifier from native
10776         Windows syntax to Unix syntax.
10777
10778 2011-02-12  Bruno Haible  <bruno@clisp.org>
10779
10780         setlocale: Prefer gnulib's override over libintl's override.
10781         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
10782         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
10783         GNULIB_defined_setlocale is set.
10784
10785 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10786
10787         stdlib: support non-GCC __attribute__
10788
10789         Fix a serious and tricky problem encountered when attempting to
10790         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
10791         5.5, but it crashed due to memory corruption on Solaris 10 with
10792         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
10793         bits that are otherwise zero.  This tagging is optional inside
10794         Emacs but is preferred and is used when __attribute__ ((__aligned
10795         (8))) works, as it does with both recent-enough GCC and with Sun C
10796         5.11.  However, Sun C 5.11 is not GCC and does not #define
10797         __GNUC__ and __GNUC_MINOR__.
10798
10799         When I added the getloadavg module to Emacs, it brought in
10800         stdlib.in.h, which contained this fragment:
10801
10802            #ifndef __attribute__
10803            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
10804            #  define __attribute__(Spec)   /* empty */
10805            # endif
10806            #endif
10807
10808         When files that include <stdlib.h> were compiled with Sun C 5.11,
10809         the above code disabled __attribute__ ((__aligned (8))), which
10810         caused variables to not be properly aligned, which eventually led
10811         to the pointer corruption mentioned above.  (This was a bit hard
10812         to diagnose, unfortunately.)
10813
10814         Several "#define __attribute__(X) /* empty */" code snippets need
10815         to be eradicated from Gnulib to work with non-GCC compilers that
10816         support __attribute__.  The Autoconf way to do this is to test for
10817         each kind of attribute that we want support for, and selectively
10818         enable that in source code.
10819
10820         Fix this problem just for stdlib.h, by adding a test for the
10821         __noreturn__ attribute, and change stdlib.in.h to use that test
10822         when needed.  This technique can be easily generalized to the
10823         other *.in.h files and attributes, and a similar technique can be
10824         used for *.h and *.c files.  This patch is enough to solve the
10825         problem for Emacs + getloadavg, and I thought I'd publish it for
10826         feedback before undertaking further, similar fixes in other
10827         modules.
10828
10829         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
10830         because it's not needed for stdlib.h.  It merely substitutes the
10831         value directly into stdlib.h.  We may well need to #define it, or
10832         similar symbols, for other modules, but it's nice to also have an
10833         option to not #define it for applications like Emacs that do not
10834         need it.
10835
10836         * lib/stdlib.in.h (__attribute__): Do not #define.
10837         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
10838         be defined only if the _Exit module is also used.
10839         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
10840         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
10841         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
10842         platforms.
10843         * modules/_Exit (Files): Add m4/attribute.m4.
10844         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
10845         * m4/attribute.m4: New file.
10846
10847 2011-02-12  Bruno Haible  <bruno@clisp.org>
10848
10849         wcsrtombs: Work around bug on native Windows.
10850         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
10851         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
10852         instead of len.
10853         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
10854
10855 2011-02-12  Bruno Haible  <bruno@clisp.org>
10856
10857         mbsrtowcs: Work around bug on native Windows.
10858         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
10859         against mingw bug.
10860         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
10861
10862 2011-02-12  Bruno Haible  <bruno@clisp.org>
10863
10864         Avoid setlocale bugs in tests.
10865         * modules/btowc (Dependencies): Add setlocale.
10866         * modules/c-strcase (Dependencies): Likewise.
10867         * modules/mbmemcasecmp (Dependencies): Likewise.
10868         * modules/mbmemcasecoll (Dependencies): Likewise.
10869         * modules/mbrtowc (Dependencies): Likewise.
10870         * modules/mbscasecmp (Dependencies): Likewise.
10871         * modules/mbscasestr (Dependencies): Likewise.
10872         * modules/mbschr (Dependencies): Likewise.
10873         * modules/mbscspn (Dependencies): Likewise.
10874         * modules/mbsinit (Dependencies): Likewise.
10875         * modules/mbsncasecmp (Dependencies): Likewise.
10876         * modules/mbsnrtowcs (Dependencies): Likewise.
10877         * modules/mbspbrk (Dependencies): Likewise.
10878         * modules/mbspcasecmp (Dependencies): Likewise.
10879         * modules/mbsrchr (Dependencies): Likewise.
10880         * modules/mbsrtowcs (Dependencies): Likewise.
10881         * modules/mbsspn (Dependencies): Likewise.
10882         * modules/mbsstr (Dependencies): Likewise.
10883         * modules/nl_langinfo (Dependencies): Likewise.
10884         * modules/quotearg (Dependencies): Likewise.
10885         * modules/unicase/locale-language (Dependencies): Likewise.
10886         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
10887         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
10888         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
10889         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
10890         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
10891         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
10892         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
10893         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
10894         * modules/vasnprintf-posix (Dependencies): Likewise.
10895         * modules/wcrtomb (Dependencies): Likewise.
10896         * modules/wcsnrtombs (Dependencies): Likewise.
10897         * modules/wcsrtombs (Dependencies): Likewise.
10898
10899 2011-02-12  Bruno Haible  <bruno@clisp.org>
10900
10901         setlocale: Workaround native Windows bug.
10902         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10903         succeeds but sets LC_CTYPE to "C", report a failure.
10904         * tests/test-setlocale2.sh: New file.
10905         * tests/test-setlocale2.c: New file.
10906         * modules/setlocale-tests (Files): Add the new files.
10907         (Makefile.am): Enable test-setlocale2.sh test.
10908         * doc/posix-functions/setlocale.texi: Mention workaround.
10909
10910 2011-02-11  Bruno Haible  <bruno@clisp.org>
10911
10912         Tests for module 'setlocale'.
10913         * modules/setlocale-tests: New file.
10914         * tests/test-setlocale1.sh: New file.
10915         * tests/test-setlocale1.c: New file.
10916
10917         New module 'setlocale'.
10918         * lib/locale.in.h (setlocale): New declaration.
10919         * lib/setlocale.c: New file, based on
10920         gettext/gettext-runtime/intl/setlocale.c.
10921         * m4/setlocale.m4: New file.
10922         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10923         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10924         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10925         REPLACE_SETLOCALE.
10926         * modules/setlocale: New file.
10927         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10928         * doc/posix-functions/setlocale.texi: Mention the new module.
10929
10930 2011-02-11  Bruno Haible  <bruno@clisp.org>
10931
10932         Prepare for locale dependent tests on mingw.
10933         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10934         because it has the wrong locale encoding.
10935         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10936         French_France.1252 instead of "fr".
10937         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10938         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10939         because it has the wrong locale encoding.
10940         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10941         native Windows, try Turkish_Turkey.65001.
10942         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10943         Chinese_China.54936.
10944
10945         Prepare for locale dependent tests on mingw.
10946         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10947         differently.
10948         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10949         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10950         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10951         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10952
10953 2011-02-11  Eric Blake  <eblake@redhat.com>
10954
10955         strptime: avoid compiler warnings
10956         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10957         compiler warnings about dead code.
10958         Reported by Daniel P. Berrange.
10959
10960 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10961
10962         doc: update users.txt
10963         * users.txt: Add rcs.
10964
10965 2011-02-10  John W. Eaton  <jwe@gnu.org>
10966
10967         doc: update users.txt
10968         * users.txt: Add octave.
10969
10970 2011-02-10  Jim Meyering  <meyering@redhat.com>
10971
10972         doc: update users.txt
10973         * users.txt: Add iwhd.
10974
10975 2011-02-09  Bruno Haible  <bruno@clisp.org>
10976
10977         gnulib-tool: Make copyright notice adjustment more robust.
10978         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10979         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10980         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10981         License".
10982         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10983
10984 2011-02-06  Bruno Haible  <bruno@clisp.org>
10985
10986         New module 'towctrans'.
10987         * modules/towctrans: New file.
10988         * lib/wctype.in.h (towctrans): New declaration.
10989         * lib/towctrans.c: New file.
10990         * lib/towctrans-impl.h: New file.
10991         * m4/towctrans.m4: New file.
10992         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10993         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10994         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10995         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10996         * doc/posix-functions/towctrans.texi: Mention the new module.
10997
10998 2011-02-06  Bruno Haible  <bruno@clisp.org>
10999
11000         New module 'wctrans'.
11001         * modules/wctrans: New file.
11002         * lib/wctype.in.h (wctrans): New declaration.
11003         * lib/wctrans.c: New file.
11004         * lib/wctrans-impl.h: New file.
11005         * m4/wctrans.m4: New file.
11006         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
11007         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
11008         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
11009         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
11010         * doc/posix-functions/wctrans.texi: Mention the new module.
11011
11012 2011-02-06  Bruno Haible  <bruno@clisp.org>
11013
11014         New module 'iswctype'.
11015         * modules/iswctype: New file.
11016         * lib/wctype.in.h (iswctype): New declaration.
11017         * lib/iswctype.c: New file.
11018         * lib/iswctype-impl.h: New file.
11019         * m4/iswctype.m4: New file.
11020         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
11021         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
11022         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
11023         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
11024         * doc/posix-functions/iswctype.texi: Mention the new module and the
11025         HP-UX 11.00 problem.
11026
11027 2011-02-06  Bruno Haible  <bruno@clisp.org>
11028
11029         New module 'wctype'.
11030         * modules/wctype: Change to represent the wctype() substitute.
11031         * lib/wctype.in.h (wctype): New declaration.
11032         * lib/wctype.c: New file.
11033         * lib/wctype-impl.h: New file.
11034         * m4/wctype.m4: New file.
11035         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
11036         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
11037         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
11038         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
11039         * doc/posix-functions/wctype.texi: Mention the new module and the
11040         HP-UX 11.00 problem.
11041
11042 2011-02-06  Bruno Haible  <bruno@clisp.org>
11043
11044         wctype-h: Ensure wctype_t and wctrans_t are defined.
11045         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
11046         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11047         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11048         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
11049         HAVE_WCTRANS_T.
11050         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
11051
11052 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11053
11054         flock: fix license typo
11055
11056         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
11057         omitted.
11058
11059 2011-02-08  Bruno Haible  <bruno@clisp.org>
11060
11061         Split large sed scripts, for HP-UX sed.
11062         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
11063         to avoid HP-UX limit of 99 commands, in the near future.
11064         * modules/stdlib (Makefile.am): Likewise.
11065         * modules/unistd (Makefile.am): Likewise.
11066         * modules/wchar (Makefile.am): Likewise.
11067         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11068         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
11069         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
11070
11071 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11072             Bruno Haible  <bruno@clisp.org>
11073
11074         stdlib: improve random_r modularization
11075         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
11076         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
11077         you also need the random_r module to get this material right.
11078         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
11079         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
11080         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
11081
11082 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11083
11084         stdlib: don't depend on stdint
11085         * lib/stdlib.in.h: Don't include <stdint.h> merely because
11086         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
11087         be independent of whether stdint.h is needed.
11088         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
11089         here, instead of ...
11090         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
11091         struct random_data should be using the random_r module, not just
11092         the stdlib module (which wouldn't make sense: what package needs
11093         just struct random_data without also needing random_r?).
11094         * modules/stdlib (Depends-on): Remove stdint.
11095
11096         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
11097         See the thread rooted at
11098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
11099         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
11100         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
11101         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
11102         __VMS)); previously it was always included (via fcntl--.h).
11103         (getloadavg): Do not use c_strtod.  Instead, approximate it by
11104         hand; this is good enough for load averages.  Also, do not use
11105         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
11106         flags directly if available and don't bother otherwise.  (Packages
11107         that need the extra reliability should use the modules that define
11108         these flags on older platforms that lack them.)
11109         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
11110         fcntl-safer.
11111
11112 2011-02-08  Jim Meyering  <meyering@redhat.com>
11113
11114         di-set.h, ino-map.h: add multiple-inclusion guard
11115         Technically, the guard is required only for ino-map.h, due to its
11116         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
11117         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
11118         * lib/ino-map.h: Likewise.
11119
11120 2011-02-06  Bruno Haible  <bruno@clisp.org>
11121
11122         iswblank: Ensure declaration on glibc systems.
11123         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
11124         * modules/iswblank (Dependencies): Add 'extensions'.
11125         * doc/posix-functions/iswblank.texi: Document the glibc problem.
11126
11127 2011-02-06  Bruno Haible  <bruno@clisp.org>
11128
11129         New module 'iswblank'.
11130         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
11131         * modules/iswblank: New file.
11132         * modules/wctype-h (Files): Remove lib/iswblank.c.
11133         (Makefile.am): Substitute GNULIB_ISWBLANK.
11134         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
11135         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
11136         (gl_WCTYPE_H_DEFAULTS): New macro.
11137         (gl_WCTYPE_H): Require it. Remove iswblank related code.
11138         * modules/iswblank-tests: New file.
11139         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
11140         * tests/test-wctype-h.c (main): Remove iswblank tests.
11141         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
11142         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
11143         of 'wctype-h'.
11144         * NEWS: Mention the change.
11145         * modules/mbchar (Depends-on): Add iswblank.
11146
11147 2011-02-08  Bruno Haible  <bruno@clisp.org>
11148
11149         di-set tests: Refactor.
11150         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
11151         unnecessary includes.
11152         (ASSERT): Remove macro.
11153         (main): Make C90 compliant by avoiding variable declaration after
11154         statement.
11155         * modules/di-set-tests (Files): Add tests/macros.h.
11156
11157 2011-02-08  Bruno Haible  <bruno@clisp.org>
11158
11159         ino-map tests: Refactor.
11160         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
11161         unnecessary includes.
11162         (ASSERT): Remove macro.
11163         (main): Make C90 compliant by avoiding variable declaration after
11164         statement.
11165         * modules/ino-map-tests (Files): Add tests/macros.h.
11166
11167 2011-02-08  Jim Meyering  <meyering@redhat.com>
11168
11169         di-set: add "const" to a cast
11170         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
11171         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
11172
11173 2011-02-06  Bruno Haible  <bruno@clisp.org>
11174
11175         Rename module 'wctype' to 'wctype-h'.
11176         * modules/wctype-h: Renamed from modules/wctype.
11177         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
11178         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
11179         (Files, Depends-on, Makefile.am): Update.
11180         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
11181         (Files, Makefile.am): Update.
11182         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
11183         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
11184         * doc/posix-headers/wctype.texi: Update.
11185         * doc/posix-functions/iswalnum.texi: Update.
11186         * doc/posix-functions/iswalpha.texi: Update.
11187         * doc/posix-functions/iswblank.texi: Update.
11188         * doc/posix-functions/iswcntrl.texi: Update.
11189         * doc/posix-functions/iswdigit.texi: Update.
11190         * doc/posix-functions/iswgraph.texi: Update.
11191         * doc/posix-functions/iswlower.texi: Update.
11192         * doc/posix-functions/iswprint.texi: Update.
11193         * doc/posix-functions/iswpunct.texi: Update.
11194         * doc/posix-functions/iswspace.texi: Update.
11195         * doc/posix-functions/iswupper.texi: Update.
11196         * doc/posix-functions/iswxdigit.texi: Update.
11197         * doc/posix-functions/towlower.texi: Update.
11198         * doc/posix-functions/towupper.texi: Update.
11199         * NEWS: Mention the change.
11200         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
11201         * modules/mbchar (Dependencies): Likewise.
11202         * modules/mbswidth (Dependencies): Likewise.
11203         * modules/quotearg (Dependencies): Likewise.
11204         * modules/regex (Dependencies): Likewise.
11205         * modules/wcscasecmp (Dependencies): Likewise.
11206         * modules/wcsncasecmp (Dependencies): Likewise.
11207         * modules/wcwidth (Dependencies): Likewise.
11208
11209 2011-02-06  Bruno Haible  <bruno@clisp.org>
11210
11211         New module 'wcswidth'.
11212         * modules/wcswidth: New file.
11213         * lib/wchar.in.h (wcswidth): New declaration.
11214         * lib/wcswidth.c: New file.
11215         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
11216         * m4/wcswidth.m4: New file.
11217         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
11218         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
11219         REPLACE_WCSWIDTH.
11220         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
11221         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
11222         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
11223         * doc/posix-functions/wcswidth.texi: Mention the new module.
11224
11225 2011-02-06  Bruno Haible  <bruno@clisp.org>
11226
11227         New module 'wcstok'.
11228         * modules/wcstok: New file.
11229         * lib/wchar.in.h (wcstok): New declaration.
11230         * lib/wcstok.c: New file.
11231         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
11232         * m4/wcstok.m4: New file.
11233         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
11234         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
11235         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
11236         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
11237         * doc/posix-functions/wcstok.texi: Mention the new module.
11238
11239 2011-02-06  Bruno Haible  <bruno@clisp.org>
11240
11241         New module 'wcsstr'.
11242         * modules/wcsstr: New file.
11243         * lib/wchar.in.h (wcsstr): New declaration.
11244         * lib/wcsstr.c: New file.
11245         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
11246         * m4/wcsstr.m4: New file.
11247         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
11248         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
11249         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
11250         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
11251         * doc/posix-functions/wcsstr.texi: Mention the new module.
11252
11253 2011-02-06  Bruno Haible  <bruno@clisp.org>
11254
11255         New module 'wcspbrk'.
11256         * modules/wcspbrk: New file.
11257         * lib/wchar.in.h (wcspbrk): New declaration.
11258         * lib/wcspbrk.c: New file.
11259         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
11260         * m4/wcspbrk.m4: New file.
11261         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
11262         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
11263         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
11264         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
11265         * doc/posix-functions/wcspbrk.texi: Mention the new module.
11266
11267 2011-02-06  Bruno Haible  <bruno@clisp.org>
11268
11269         New module 'wcsspn'.
11270         * modules/wcsspn: New file.
11271         * lib/wchar.in.h (wcsspn): New declaration.
11272         * lib/wcsspn.c: New file.
11273         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
11274         * m4/wcsspn.m4: New file.
11275         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
11276         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
11277         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
11278         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
11279         * doc/posix-functions/wcsspn.texi: Mention the new module.
11280
11281 2011-02-06  Bruno Haible  <bruno@clisp.org>
11282
11283         New module 'wcscspn'.
11284         * modules/wcscspn: New file.
11285         * lib/wchar.in.h (wcscspn): New declaration.
11286         * lib/wcscspn.c: New file.
11287         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
11288         * m4/wcscspn.m4: New file.
11289         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
11290         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
11291         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
11292         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
11293         * doc/posix-functions/wcscspn.texi: Mention the new module.
11294
11295 2011-02-06  Bruno Haible  <bruno@clisp.org>
11296
11297         New module 'wcsrchr'.
11298         * modules/wcsrchr: New file.
11299         * lib/wchar.in.h (wcsrchr): New declaration.
11300         * lib/wcsrchr.c: New file.
11301         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
11302         * m4/wcsrchr.m4: New file.
11303         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
11304         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
11305         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
11306         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
11307         * doc/posix-functions/wcsrchr.texi: Mention the new module.
11308
11309 2011-02-06  Bruno Haible  <bruno@clisp.org>
11310
11311         New module 'wcschr'.
11312         * modules/wcschr: New file.
11313         * lib/wchar.in.h (wcschr): New declaration.
11314         * lib/wcschr.c: New file.
11315         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
11316         * m4/wcschr.m4: New file.
11317         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
11318         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
11319         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
11320         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
11321         * doc/posix-functions/wcschr.texi: Mention the new module.
11322
11323 2011-02-06  Bruno Haible  <bruno@clisp.org>
11324
11325         New module 'wcsdup'.
11326         * modules/wcsdup: New file.
11327         * lib/wchar.in.h (wcsdup): New declaration.
11328         * lib/wcsdup.c: New file.
11329         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
11330         * m4/wcsdup.m4: New file.
11331         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
11332         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
11333         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
11334         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
11335         * doc/posix-functions/wcsdup.texi: Mention the new module.
11336
11337 2011-02-06  Bruno Haible  <bruno@clisp.org>
11338
11339         New module 'wcsxfrm'.
11340         * modules/wcsxfrm: New file.
11341         * lib/wchar.in.h (wcsxfrm): New declaration.
11342         * lib/wcsxfrm.c: New file.
11343         * lib/wcsxfrm-impl.h: New file.
11344         * m4/wcsxfrm.m4: New file.
11345         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
11346         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
11347         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
11348         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
11349         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
11350
11351 2011-02-06  Bruno Haible  <bruno@clisp.org>
11352
11353         New module 'wcscoll'.
11354         * modules/wcscoll: New file.
11355         * lib/wchar.in.h (wcscoll): New declaration.
11356         * lib/wcscoll.c: New file.
11357         * lib/wcscoll-impl.h: New file.
11358         * m4/wcscoll.m4: New file.
11359         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
11360         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
11361         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
11362         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
11363         * doc/posix-functions/wcscoll.texi: Mention the new module.
11364
11365 2011-02-06  Bruno Haible  <bruno@clisp.org>
11366
11367         New module 'wcsncasecmp'.
11368         * modules/wcsncasecmp: New file.
11369         * lib/wchar.in.h (wcsncasecmp): New declaration.
11370         * lib/wcsncasecmp.c: New file.
11371         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
11372         * m4/wcsncasecmp.m4: New file.
11373         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
11374         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
11375         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
11376         HAVE_WCSNCASECMP.
11377         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
11378         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
11379
11380 2011-02-06  Bruno Haible  <bruno@clisp.org>
11381
11382         New module 'wcscasecmp'.
11383         * modules/wcscasecmp: New file.
11384         * lib/wchar.in.h (wcscasecmp): New declaration.
11385         * lib/wcscasecmp.c: New file.
11386         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
11387         * m4/wcscasecmp.m4: New file.
11388         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
11389         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
11390         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
11391         HAVE_WCSCASECMP.
11392         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
11393         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
11394
11395 2011-02-05  Bruno Haible  <bruno@clisp.org>
11396
11397         New module 'wcsncmp'.
11398         * modules/wcsncmp: New file.
11399         * lib/wchar.in.h (wcsncmp): New declaration.
11400         * lib/wcsncmp.c: New file.
11401         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
11402         * m4/wcsncmp.m4: New file.
11403         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
11404         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
11405         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
11406         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
11407         * doc/posix-functions/wcsncmp.texi: Mention the new module.
11408
11409 2011-02-05  Bruno Haible  <bruno@clisp.org>
11410
11411         New module 'wcscmp'.
11412         * modules/wcscmp: New file.
11413         * lib/wchar.in.h (wcscmp): New declaration.
11414         * lib/wcscmp.c: New file.
11415         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
11416         * m4/wcscmp.m4: New file.
11417         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
11418         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
11419         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
11420         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
11421         * doc/posix-functions/wcscmp.texi: Mention the new module.
11422
11423 2011-02-05  Bruno Haible  <bruno@clisp.org>
11424
11425         New module 'wcsncat'.
11426         * modules/wcsncat: New file.
11427         * lib/wchar.in.h (wcsncat): New declaration.
11428         * lib/wcsncat.c: New file.
11429         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
11430         * m4/wcsncat.m4: New file.
11431         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
11432         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
11433         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
11434         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
11435         * doc/posix-functions/wcsncat.texi: Mention the new module.
11436
11437 2011-02-05  Bruno Haible  <bruno@clisp.org>
11438
11439         New module 'wcscat'.
11440         * modules/wcscat: New file.
11441         * lib/wchar.in.h (wcscat): New declaration.
11442         * lib/wcscat.c: New file.
11443         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
11444         * m4/wcscat.m4: New file.
11445         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
11446         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
11447         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
11448         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
11449         * doc/posix-functions/wcscat.texi: Mention the new module.
11450
11451 2011-02-05  Bruno Haible  <bruno@clisp.org>
11452
11453         New module 'wcpncpy'.
11454         * modules/wcpncpy: New file.
11455         * lib/wchar.in.h (wcpncpy): New declaration.
11456         * lib/wcpncpy.c: New file.
11457         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
11458         * m4/wcpncpy.m4: New file.
11459         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
11460         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
11461         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
11462         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
11463         * doc/posix-functions/wcpncpy.texi: Mention the new module.
11464
11465 2011-02-05  Bruno Haible  <bruno@clisp.org>
11466
11467         New module 'wcsncpy'.
11468         * modules/wcsncpy: New file.
11469         * lib/wchar.in.h (wcsncpy): New declaration.
11470         * lib/wcsncpy.c: New file.
11471         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
11472         * m4/wcsncpy.m4: New file.
11473         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
11474         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
11475         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
11476         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
11477         * doc/posix-functions/wcsncpy.texi: Mention the new module.
11478
11479 2011-02-05  Bruno Haible  <bruno@clisp.org>
11480
11481         New module 'wcpcpy'.
11482         * modules/wcpcpy: New file.
11483         * lib/wchar.in.h (wcpcpy): New declaration.
11484         * lib/wcpcpy.c: New file.
11485         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
11486         * m4/wcpcpy.m4: New file.
11487         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
11488         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
11489         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
11490         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
11491         * doc/posix-functions/wcpcpy.texi: Mention the new module.
11492
11493 2011-02-05  Bruno Haible  <bruno@clisp.org>
11494
11495         New module 'wcscpy'.
11496         * modules/wcscpy: New file.
11497         * lib/wchar.in.h (wcscpy): New declaration.
11498         * lib/wcscpy.c: New file.
11499         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
11500         * m4/wcscpy.m4: New file.
11501         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
11502         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
11503         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
11504         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
11505         * doc/posix-functions/wcscpy.texi: Mention the new module.
11506
11507 2011-02-05  Bruno Haible  <bruno@clisp.org>
11508
11509         New module 'wcsnlen'.
11510         * modules/wcsnlen: New file.
11511         * lib/wchar.in.h (wcsnlen): New declaration.
11512         * lib/wcsnlen.c: New file.
11513         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
11514         * m4/wcsnlen.m4: New file.
11515         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
11516         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
11517         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
11518         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
11519         * doc/posix-functions/wcsnlen.texi: Mention the new module.
11520
11521 2011-02-05  Bruno Haible  <bruno@clisp.org>
11522
11523         New module 'wcslen'.
11524         * modules/wcslen: New file.
11525         * lib/wchar.in.h (wcslen): New declaration.
11526         * lib/wcslen.c: New file.
11527         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
11528         * m4/wcslen.m4: New file.
11529         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
11530         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
11531         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
11532         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
11533         * doc/posix-functions/wcslen.texi: Mention the new module.
11534
11535 2011-02-05  Bruno Haible  <bruno@clisp.org>
11536
11537         New module 'wmemset'.
11538         * modules/wmemset: New file.
11539         * lib/wchar.in.h (wmemset): New declaration.
11540         * lib/wmemset.c: New file.
11541         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
11542         * m4/wmemset.m4: New file.
11543         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
11544         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
11545         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
11546         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
11547         * doc/posix-functions/wmemset.texi: Mention the new module.
11548
11549 2011-02-05  Bruno Haible  <bruno@clisp.org>
11550
11551         New module 'wmemmove'.
11552         * modules/wmemmove: New file.
11553         * lib/wchar.in.h (wmemmove): New declaration.
11554         * lib/wmemmove.c: New file.
11555         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
11556         * m4/wmemmove.m4: New file.
11557         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
11558         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
11559         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
11560         HAVE_WMEMMOVE.
11561         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
11562         * doc/posix-functions/wmemmove.texi: Mention the new module.
11563
11564 2011-02-05  Bruno Haible  <bruno@clisp.org>
11565
11566         New module 'wmemcpy'.
11567         * modules/wmemcpy: New file.
11568         * lib/wchar.in.h (wmemcpy): New declaration.
11569         * lib/wmemcpy.c: New file.
11570         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
11571         * m4/wmemcpy.m4: New file.
11572         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
11573         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
11574         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
11575         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
11576         * doc/posix-functions/wmemcpy.texi: Mention the new module.
11577
11578 2011-02-05  Bruno Haible  <bruno@clisp.org>
11579
11580         New module 'wmemcmp'.
11581         * modules/wmemcmp: New file.
11582         * lib/wchar.in.h (wmemcmp): New declaration.
11583         * lib/wmemcmp.c: New file.
11584         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
11585         * m4/wmemcmp.m4: New file.
11586         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
11587         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
11588         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
11589         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
11590         * doc/posix-functions/wmemcmp.texi: Mention the new module.
11591
11592 2011-02-07  Jim Meyering  <meyering@redhat.com>
11593
11594         di-set, ino-map: new modules, from coreutils
11595         * lib/di-set.c: New file.
11596         * lib/di-set.h: Likewise.
11597         * lib/ino-map.c: Likewise.
11598         * lib/ino-map.h: Likewise.
11599         * modules/di-set: Likewise.
11600         * modules/di-set-tests: Likewise.
11601         * modules/ino-map: Likewise.
11602         * modules/ino-map-tests: Likewise.
11603         * tests/test-di-set.c: Likewise.
11604         * tests/test-ino-map.c: Likewise.
11605
11606 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
11607
11608         getloadavg: merge minor changes from Emacs
11609
11610         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
11611         (getloadavg): Use memset, not bzero.
11612
11613         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
11614         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11615         clash (bug#86).
11616
11617 2010-11-14  Bruno Haible  <bruno@clisp.org>
11618
11619         Allow multiple gnulib generated replacements to coexist.
11620         * lib/getopt.in.h (struct option): Avoid identical redefinition.
11621         * lib/inttypes.in.h (imaxdiv_t): Likewise.
11622         * lib/langinfo.in.h (nl_item): Likewise.
11623         * lib/math.in.h (_NaN, NAN): Likewise.
11624         * lib/netdb.in.h (struct addrinfo): Likewise.
11625         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
11626         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
11627         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
11628         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
11629         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
11630         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
11631         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
11632         pthread_mutexattr_init, pthread_mutexattr_settype,
11633         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
11634         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
11635         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
11636         pthread_spin_trylock, pthread_spin_unlock): Likewise.
11637         * lib/sched.in.h (struct sched_param): Likewise.
11638         * lib/se-selinux.in.h (security_class_t, security_context_t,
11639         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
11640         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
11641         lsetfilecon, fsetfilecon, security_check_context,
11642         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
11643         Likewise.
11644         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
11645         Likewise.
11646         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
11647         _gl_function_taking_int_returning_void_t, union sigval,
11648         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
11649         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
11650         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11651         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
11652         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
11653         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
11654         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
11655         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
11656         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
11657         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
11658         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
11659         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
11660         socklen_t, rpl_fd_isset): Likewise.
11661         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
11662         * lib/sys_time.in.h (struct timeval): Likewise.
11663         * lib/sys_times.in.h (struct tms): Likewise.
11664         * lib/sys_utsname.in.h (struct utsname):
11665         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
11666         * lib/unistd.in.h (getpagesize): Likewise.
11667         * lib/wchar.in.h (mbstate_t): Likewise.
11668         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11669         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
11670         towlower, towupper): Likewise.
11671         Reported by Sam Steingold <sds@gnu.org>.
11672
11673 2011-02-05  Eric Blake  <eblake@redhat.com>
11674
11675         unsetenv: work around Haiku issues
11676         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
11677         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
11678
11679 2010-12-30  Bruce Korb  <bkorb@gnu.org>
11680
11681         libposix: avoid calling error() within libposix
11682         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
11683         is defined.
11684
11685 2011-02-05  Eric Blake  <eblake@redhat.com>
11686
11687         strerror_r-posix: port to cygwin
11688         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
11689         implementation.
11690         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
11691         * tests/test-strerror_r.c (main): Fix test.
11692         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11693         issue.
11694
11695 2011-02-05  Bruno Haible  <bruno@clisp.org>
11696
11697         New module 'wmemchr'.
11698         * modules/wmemchr: New file.
11699         * lib/wchar.in.h (wmemchr): New declaration.
11700         * lib/wmemchr.c: New file.
11701         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
11702         * m4/wmemchr.m4: New file.
11703         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
11704         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
11705         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
11706         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
11707         * doc/posix-functions/wmemchr.texi: Mention the new module.
11708
11709 2011-02-04  Eric Blake  <eblake@redhat.com>
11710
11711         fdopendir: detect FreeBSD bug
11712         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
11713         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
11714
11715 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11716
11717         stdbool: do not define HAVE_STDBOOL_H
11718         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
11719         AC_HEADER_STDBOOL.  All uses changed.  Do not define
11720         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
11721         imported from the latest Autoconf git.  It was motivated by Emacs,
11722         which uses gnulib but does not need HAVE_STDBOOL_H.
11723
11724 2011-02-04  Bruno Haible  <bruno@clisp.org>
11725
11726         wcsnrtombs: Prepare for new module wwcsnrtombs.
11727         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
11728         * lib/wcsnrtombs.c: Include it.
11729         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
11730
11731         wcsrtombs: Prepare for new module wwcsrtombs.
11732         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
11733         * lib/wcsrtombs.c: Include it.
11734         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
11735
11736         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
11737         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
11738         * lib/mbsnrtowcs.c: Include it.
11739         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
11740
11741         mbsrtowcs: Prepare for new module mbsrtowwcs.
11742         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
11743         * lib/mbsrtowcs.c: Include it.
11744         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
11745
11746 2011-02-04  Bruno Haible  <bruno@clisp.org>
11747
11748         vasnprintf: Reduce use of malloc for small format strings.
11749         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
11750         (arguments): Add room for the first 7 arguments.
11751         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
11752         (char_directives, u8_directives, u16_directives, u32_directives): Add
11753         room for the first 7 directives.
11754         * lib/printf-parse.c: Include <string.h>.
11755         (PRINTF_PARSE): Change memory handling code so that it uses the first
11756         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
11757         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
11758         Reported by Pádraig Brady <P@draigbrady.com>.
11759
11760 2011-01-31  Eric Blake  <eblake@redhat.com>
11761
11762         dup2: work around Haiku bug
11763         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
11764         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
11765         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11766         * tests/test-dup2.c (main): Enhance test.
11767
11768 2011-01-31  Simon Josefsson  <simon@josefsson.org>
11769
11770         doc: off_t is not available in eglibc 2.11.2 stdio.h.
11771         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
11772         declared by eglibc 2.11.2.
11773         * lib/stdio.in.h: Likewise.
11774
11775 2011-01-31  Eric Blake  <eblake@redhat.com>
11776
11777         ignore-value: add missing test dependency
11778         * tests/test-ignore-value.c: Revert previous change; stdio.h
11779         provides off_t.
11780         * modules/ignore-value-tests (Depends-on): Add missing dependency.
11781
11782 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
11783
11784         mktime: clarify long_int width checking
11785         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
11786         the top level, to make it clearer that the assumption about
11787         long_int width is being checked.  See
11788         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
11789
11790 2011-01-30  Simon Josefsson  <simon@josefsson.org>
11791
11792         ignore-value: Fix self-test.
11793         * tests/test-ignore-value.c: Include sys/types.h for off_t.
11794
11795 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11796
11797         TYPE_MAXIMUM: avoid theoretically undefined behavior
11798         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
11799         negative number, which the C Standard says has undefined behavior.
11800         In practice this is not a problem, but might as well do it by the book.
11801         Reported by Rich Felker and Eric Blake; see
11802         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
11803         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
11804         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11805         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11806         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
11807         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11808         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
11809
11810         mktime: #undef mktime before #defining it
11811         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
11812
11813         mktime: systematically normalize tm_isdst comparisons
11814         * lib/mktime.c (isdst_differ): New function.
11815         (__mktime_internal): Use it systematically for all isdst comparisons.
11816         This completes the fix for libc BZ #6723, and removes the need for
11817         normalizing tm_isdst.  See
11818         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
11819         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
11820
11821         mktime: fix some integer overflow issues and sidestep the rest
11822
11823         This was prompted by a bug report by Benjamin Lindner for MinGW
11824         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
11825         His bug is due to signed integer overflow (0 - INT_MIN), and I
11826         I scanned through mktime.c looking for other integer overflow
11827         problems, fixing all the bugs I found.
11828
11829         Although the C Standard says the resulting code is still not safe
11830         in the presence of integer overflow, in practice it should be good
11831         enough for all real-world two's-complement implementations, except
11832         for debugging environments that deliberately trap on integer
11833         overflow (e.g., gcc -ftrapv).
11834
11835         * lib/mktime.c (WRAPV): New macro.
11836         (SHR): Also check that long_int and time_t shift right in the
11837         usual way, before using the fast-but-unportable method.
11838         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
11839         used.  The code already assumed two's complement, so there's
11840         no need to test for alternatives.  All uses removed.
11841         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
11842         the C standard.  Problem reported by Rich Felker in
11843         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
11844         (twos_complement_arithmetic): Also check long_int and time_t.
11845         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
11846         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
11847         (__mktime_internal): Avoid integer overflow with unary subtraction
11848         in two instances where -1 - X is an adequate replacement for -X,
11849         since the calculations are approximate.
11850
11851 2011-01-29  Eric Blake  <eblake@redhat.com>
11852
11853         mktime: avoid infinite loop
11854         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
11855         type; behavior is still undefined but portable to all known targets.
11856         Reported by Rich Felker.
11857
11858 2011-01-29  Simon Josefsson  <simon@josefsson.org>
11859
11860         rename, unlink, same-inode: Relicense.
11861         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
11862         * modules/unlink (License): Likewise.
11863         * modules/same-inode (License): Likewise.
11864
11865 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11866
11867         mktime: avoid problems on NetBSD 5 / i386
11868         * lib/mktime.c (long_int): New type.  This works around a problem
11869         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
11870         but time_t is 64 bits, and where I expect the existing code is
11871         wrong in some cases.
11872         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
11873         (ydhms_diff): Bring back the compile-time check for wide-enough
11874         year and yday.
11875
11876         mktime: fix misspelling in comment
11877         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
11878         This merges all recent glibc changes of importance.
11879
11880 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11881
11882         move-if-change: cope with concurrent mv of identical file.
11883         * build-aux/move-if-change (CMPPROG): Accept environment
11884         variable as an override for `cmp'.
11885         (usage): Document CMPPROG.
11886         Adjust comparison to drop stdout.  Cope with failure of mv if
11887         the target file exists and is identical to the source, for
11888         parallel builds.
11889         Report from H.J. Lu against binutils in PR binutils/12283.
11890
11891 2011-01-28  Bruce Korb  <bkorb@gnu.org>
11892
11893         * users.txt: Mention sharutils.
11894
11895 2011-01-28  Simon Josefsson  <simon@josefsson.org>
11896
11897         * users.txt: Mention OATH Toolkit.
11898
11899 2011-01-27  Bruno Haible  <bruno@clisp.org>
11900
11901         Prepare for supporting FreeBSD 10.
11902         * build-aux/config.libpath: Remove handling of freebsd1*.
11903
11904 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11905
11906         Prepare for supporting FreeBSD 10.
11907         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11908         match FreeBSD 10.0.
11909
11910 2011-01-27  Bruno Haible  <bruno@clisp.org>
11911
11912         vma-iter, get-rusage-as: Add OpenBSD support.
11913         * modules/vma-iter (configure.ac): Test for mquery.
11914         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11915         * lib/vma-iter.c: Include <sys/mman.h>.
11916         (vma_iterate): Add an implementation based on mquery().
11917         * lib/resource-ext.h (get_rusage_as): Update comments.
11918         * lib/get-rusage-as.c: Likewise.
11919         * lib/get-rusage-data.c: Likewise.
11920
11921 2011-01-26  Karl Berry  <karl@gnu.org>
11922
11923         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11924         variables to make it easier to override the makeinfo program used.
11925
11926 2011-01-26  Eric Blake  <eblake@redhat.com>
11927
11928         fcntl: work around Haiku F_DUPFD bugs
11929         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11930         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11931         cloexec bit on duplication.
11932         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11933
11934 2011-01-26  Bruno Haible  <bruno@clisp.org>
11935
11936         Enable memory leak tests on AIX.
11937         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11938         * tests/test-fprintf-posix3.c (main): Likewise.
11939
11940 2011-01-26  Bruno Haible  <bruno@clisp.org>
11941
11942         Tests for module 'get-rusage-data'.
11943         * modules/get-rusage-data-tests: New file.
11944         * tests/test-get-rusage-data.c: New file.
11945
11946         New module 'get-rusage-data'.
11947         * lib/resource-ext.h (get_rusage_data): New declaration.
11948         * lib/get-rusage-data.c: New file.
11949         * modules/get-rusage-data: New file.
11950
11951 2011-01-25  Bruno Haible  <bruno@clisp.org>
11952
11953         get-rusage-as: Allow for easier testing.
11954         * lib/resource-ext.h (get_rusage_as): Add comment.
11955         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11956         (main): New function for interactive testing.
11957
11958 2011-01-25  Bruno Haible  <bruno@clisp.org>
11959
11960         vma-iter: Treat Haiku like BeOS.
11961         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11962         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11963
11964 2011-01-25  Eric Blake  <eblake@redhat.com>
11965
11966         c-stack: fix regression on cygwin when libsigsegv is present
11967         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11968
11969 2011-01-24  Bruno Haible  <bruno@clisp.org>
11970
11971         vma-iter: Avoid empty intervals.
11972         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11973         on an empty interval.
11974
11975 2011-01-24  Jim Meyering  <meyering@redhat.com>
11976
11977         u64: remove unnecessary #include
11978         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11979
11980 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11981
11982         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11983         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11984
11985 2011-01-23  Bruno Haible  <bruno@clisp.org>
11986
11987         New module 'vma-iter'.
11988         * lib/vma-iter.h: New file.
11989         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11990         * modules/vma-iter: New file.
11991         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11992         for get_rusage_as_via_iterator.
11993         (vma_iterate_callback): New function.
11994         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11995         * modules/get-rusage-as (Depends-on): Add vma-iter.
11996
11997 2011-01-23  Bruno Haible  <bruno@clisp.org>
11998
11999         uninorm: Tweak includes.
12000         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
12001         Reported by Jim Meyering.
12002
12003 2011-01-23  Bruno Haible  <bruno@clisp.org>
12004
12005         get-rusage-as: Improve on NetBSD.
12006         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
12007         /proc, like on FreeBSD.
12008
12009 2011-01-23  Jim Meyering  <meyering@redhat.com>
12010
12011         xreadlink.h: remove unnecessary #include
12012         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
12013
12014         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
12015         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
12016
12017 2011-01-23  Bruno Haible  <bruno@clisp.org>
12018
12019         get-rusage-as: Fix bug.
12020         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
12021         original limit when aborting the first loop.
12022
12023 2011-01-23  Bruno Haible  <bruno@clisp.org>
12024
12025         wctype: Ensure valid C syntax.
12026         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
12027         unconditionally, instead of gl_NEXT_HEADERS conditionally.
12028
12029 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
12030
12031         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
12032         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
12033         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
12034         as they are needed only for configure's test case.
12035         This removes two unnecessary symbols from config.h.
12036
12037         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
12038         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
12039         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
12040         AC_CHECK_HEADERS_ONCE on a header that we also invoke
12041         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
12042         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
12043         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
12044         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12045         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12046         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12047         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12048         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12049         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12050         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12051         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12052         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12053         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12054         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12055
12056 2011-01-21  Eric Blake  <eblake@redhat.com>
12057
12058         maintainer-makefile: work with older git for submodule check
12059         * top/maint.mk (public-submodule-commit): Rewrite to avoid
12060         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
12061         Reported by Matthias Bolte.
12062
12063         bootstrap: minor portability fixes
12064         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
12065         (usage): Omit leading capital and trailing . on help phrases, per
12066         GNU Coding Standards.
12067         (check_versions, top level): Prefix messages with script name.
12068
12069 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
12070
12071         bootstrap: support --no-git option
12072         * build-aux/bootstrap: Add --no-git option, to be used when
12073         --gnulib-srcdir points to the exact desired checkout.
12074
12075 2011-01-21  Eric Blake  <eblake@redhat.com>
12076
12077         strerror_r-posix: work with glibc 2.13
12078         * lib/strerror_r.c (strerror_r): Fix return type.
12079
12080 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12081             Bruno Haible  <bruno@clisp.org>
12082
12083         uN_strstr: New unit tests.
12084         * modules/unistr/u8-strstr-tests: New file.
12085         * modules/unistr/u16-strstr-tests: New file.
12086         * modules/unistr/u32-strstr-tests: New file.
12087         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
12088         * tests/unistr/test-u8-strstr.c: New file.
12089         * tests/unistr/test-u16-strstr.c: New file.
12090         * tests/unistr/test-u32-strstr.c: New file.
12091
12092 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12093             Bruno Haible  <bruno@clisp.org>
12094
12095         Make uN_strstr functions O(n) worst-case.
12096         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
12097         16-bit and 32-bit unit cases, use the unibyte algorithm from
12098         lib/mbsstr.c.
12099         * lib/unistr/u8-strstr.c: Include <string.h>.
12100         (UNIT_IS_UINT8_T): New macro.
12101         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
12102         (U_STRLEN, U_STRNLEN): New macros.
12103         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
12104         (U_STRLEN, U_STRNLEN): New macros.
12105         * modules/unistr/u8-strstr (Depends-on): Add strstr.
12106         (configure.ac): Update required libunistring version.
12107         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
12108         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
12109         malloca.
12110         (configure.ac): Update required libunistring version.
12111         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
12112         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
12113         malloca.
12114         (configure.ac): Update required libunistring version.
12115
12116 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12117             Bruno Haible  <bruno@clisp.org>
12118
12119         Prepare for faster uN_strstr functions.
12120         * lib/str-kmp.h: Support definable UNITs.
12121         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
12122         needle_len argument.
12123         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
12124         * lib/mbscasestr.c (mbscasestr): Likewise.
12125
12126 2011-01-21  Pádraig Brady <P@draigBrady.com>
12127
12128         malloca-tests: make faster by unsetting MALLOC_PERTURB_
12129         * tests/test-malloca.c (main): Unset the environment variable
12130         to greatly speed up the test.
12131         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
12132         * modules/malloca-tests: Depend on unsetenv.
12133
12134 2011-01-21  Pádraig Brady <P@draigBrady.com>
12135
12136         ignore-value: remove stdint dependency
12137         * lib/ignore-value.h: Remove <stdint.h>
12138         * modules/ignore-value: Remove stdint dependency.
12139
12140 2011-01-21  Jim Meyering  <meyering@redhat.com>
12141
12142         maint.mk: adjust variable name to be consistent with other gl_ vars
12143         * top/maint.mk (gl_public_submodule_commit): Rename the variable
12144         to be lower case.
12145
12146 2011-01-20  Jim Meyering  <meyering@redhat.com>
12147
12148         maint.mk: make "check" depend on public-submodule-commit by default
12149         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
12150
12151 2011-01-20  Bruno Haible  <bruno@clisp.org>
12152
12153         mbfile, mbiter: Complete change from 2008-12-21.
12154         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
12155         * m4/mbiter.m4 (gl_MBITER): Likewise.
12156
12157 2011-01-20  Jim Meyering  <meyering@redhat.com>
12158
12159         init.sh: insert space between each function name and "()"
12160         * tests/init.sh: Make it a little easier to see that a function's
12161         name is "warn_", and not "warn" when looking at the first part of
12162         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
12163
12164 2011-01-20  Jim Meyering  <meyering@redhat.com>
12165
12166         mountlist: clean up code formatting
12167         * lib/mountlist.c (read_file_system_list): Split a long line,
12168         correct bracing style, use NULL in place of "(struct statfs *)0",
12169         don't parenthesize return value, add spaces around "=" and after
12170         ";-in-for-stmt".
12171
12172 2011-01-14  Markus Duft <mduft@gentoo.org>
12173
12174         mountlist: add support for Interix
12175         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
12176         Apply statvfs to all entries of /dev/fs.
12177         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
12178         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
12179
12180 2011-01-20  Jim Meyering  <meyering@redhat.com>
12181
12182         maint.mk: improve the public-submodule-commit rule
12183         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
12184         to suppress printing of its commands... unless V=1.
12185         Add git submodule's --quiet option to suppress printing of e.g.,
12186         "Entering gnulib" output.
12187         "cd" into $(srcdir) before running git submodule.
12188
12189 2011-01-20  Bruno Haible  <bruno@clisp.org>
12190
12191         include_next: Fix bug introduced on 2011-01-18.
12192         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
12193         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
12194         ac_cv_header_... variable if the second argument is not 'check'.
12195         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
12196         gl_NEXT_HEADERS_INTERNAL.
12197
12198 2011-01-20  Bruno Haible  <bruno@clisp.org>
12199
12200         Allow the user to avoid the GNULIB_TEST_* macros.
12201         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
12202         Suggested by Paul Eggert.
12203
12204 2011-01-14  Jim Meyering  <meyering@redhat.com>
12205
12206         bootstrap: avoid failure when there is no .gitmodules file
12207         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
12208         has been assigned to, even when its value is the empty string.
12209         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
12210         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
12211         Reported by John W. Eaton <jwe@gnu.org>.
12212
12213 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
12214
12215         assume <ctype.h>, ..., <time.h> exist
12216         For years gnulib has been assuming the existence of the headers
12217         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
12218         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
12219         them, since they don't appear to be needed.
12220         * README (Portability guidelines): Document this.
12221         * lib/flock.c: Assume <fcntl.h> exists.
12222         * lib/regex_internal.h: Assume <locale.h> exists.
12223         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
12224         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
12225         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
12226         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
12227         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
12228         * m4/regex.m4 (gl_REGEX): Likewise.
12229         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
12230         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
12231         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
12232         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
12233         * tests/test-argp.c: Likewise.
12234         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
12235
12236         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
12237         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
12238         AA_APPLE_UNIVERSAL_BUILD.  See
12239         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
12240         * NEWS: Document this.
12241
12242 2011-01-19  Eric Blake  <eblake@redhat.com>
12243
12244         c-stack: assume stack overflow if SA_SIGINFO unsupported
12245         * lib/c-stack.c (SIGACTION_WORKS): Rename...
12246         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
12247         sigaction will work.
12248         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
12249         behavior match Linux.
12250         * tests/test-c-stack.c (main): Prefer NULL for pointers.
12251
12252         stdbool-tests: accomodate Haiku
12253         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
12254
12255         binary-io: fix O_TEXT on Haiku
12256         * modules/binary-io (Depends-on): Add fcntl-h.
12257         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
12258         than blindly undefining O_TEXT.
12259         Reported by Scott McCreary.
12260
12261 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12262
12263         include_next: do not check for standard headers like stddef.h
12264
12265         I found this problem when modifying Emacs to use gnulib.
12266         I noticed that it added HAVE_STDDEF_H to config.h, even though
12267         gnulib always assumes <stddef.h> exists as per README and this
12268         symbol is unnecessary.
12269         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
12270         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
12271         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
12272         faster for headers like stddef.h that are known to exist.
12273         (gl_CHECK_NEXT_HEADERS): Use it.
12274         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
12275         rather than gl_CHECK_NEXT_HEADERS.
12276         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
12277         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
12278
12279 2011-01-18  Eric Blake  <eblake@redhat.com>
12280
12281         ansi-c++-opt: skip C++ dependency style if C++ is unused
12282         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
12283         tests when we know C++ compilation is not desired.
12284         Reported by Scott McCreary.
12285
12286 2011-01-18  Bruno Haible  <bruno@clisp.org>
12287
12288         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
12289         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
12290         (main): Perform test also when getrlimit and setrlimit don't exist or
12291         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
12292         limiting the address space size using setrlimit, compare the address
12293         space size before and after the the test.
12294         * tests/test-dprintf-posix2.c: Likewise.
12295         * tests/test-fprintf-posix3.sh: Update skip messages.
12296         * tests/test-dprintf-posix2.sh: Likewise.
12297         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
12298         * modules/dprintf-posix-tests (Depends-on): Likewise.
12299         Reported by Bruce Korb <bkorb@gnu.org> and
12300         Gary V. Vaughan <gary@gnu.org>.
12301
12302 2011-01-18  Bruno Haible  <bruno@clisp.org>
12303
12304         get-rusage-as: Improvement for Cygwin.
12305         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
12306         areas that are merely reserved.
12307
12308 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12309
12310         strftime: remove dependencies on multibyte modules
12311
12312         strftime depended on mbrlen, mbsinit, and wchar, but these modules
12313         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
12314         only if __osf__ is defined, and I suspect OSF doesn't need these
12315         other modules.  If my guess is wrong, we'll need to come up with a
12316         variant of strftime that doesn't need the multibyte modules.
12317
12318         I discovered this problem when attempting modify Emacs to use the
12319         strftime module.  With the previous gnulib, this caused Emacs to
12320         need 31 new files, ranging from lib/config.charset to
12321         m4/wint_t.m4.  This was overkill and I expect would be offputting
12322         to the Emacs maintainers.  After this change, only 6 new files are
12323         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
12324         stdbool.m4, and tm_gmtoff.m4.
12325
12326         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
12327         Suggested by Bruno Haible in
12328         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
12329         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
12330         and do not check for wchar.h.
12331         * modules/strftime (Files): Remove m4/mbstate_t.m4.
12332         (Depends-on): Remove mbrlen, mbsinit, wchar.
12333
12334 2011-01-18  Bruno Haible  <bruno@clisp.org>
12335
12336         Tests for module 'get-rusage-as'.
12337         * modules/get-rusage-as-tests: New file.
12338         * tests/test-get-rusage-as.c: New file.
12339
12340         New module 'get-rusage-as'.
12341         * modules/get-rusage-as: New file.
12342         * lib/resource-ext.h: New file.
12343         * lib/get-rusage-as.c: New file.
12344
12345 2011-01-17  Eric Blake  <eblake@redhat.com>
12346
12347         sigaction: relax license from LGPLv3+ to LGPLv2+
12348         * modules/sigaction (License): Relax to LGPLv2+.
12349
12350 2011-01-14  Bruno Haible  <bruno@clisp.org>
12351
12352         filemode: Make function declarations usable in C++ mode.
12353         * lib/filemode.h: Enclose function declarations in extern "C" block.
12354         Reported by John W. Eaton <jwe@gnu.org>.
12355
12356 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
12357
12358         save-cwd: no longer include "xgetcwd.h"
12359         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
12360         This avoids a compilation failure in projects that use save-cwd
12361         without also using the xgetcwd module.
12362
12363 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12364
12365         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
12366         This is so that a program like Emacs, which needs only dtoastr,
12367         does not have to bother with distributing and compiling ftoastr
12368         and ldtoastr.
12369         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
12370         * modules/dtoastr, modules/ldtoastr: New files.
12371         * modules/ftoastr: Now works just for 'float'.
12372         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
12373         (Makefile.am): Remove ftoastr.h (not needed and no effect),
12374         dtoastr.c, ldtoastr.c.
12375
12376 2011-01-11  Jim Meyering  <meyering@redhat.com>
12377
12378         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
12379         There is no need to work around the lack of the fchdir function,
12380         since gnulib can now provide a replacement when required.
12381         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
12382         * modules/save-cwd (Depends-on): Add fchdir.
12383
12384 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12385
12386         openat, save-cwd: avoid xmalloc
12387
12388         This removes a direct (but undocumented) dependency of openat on
12389         xalloc, along with an indirect dependency via save-cwd.  It also
12390         removes a dependency of save-cwd on xgetcwd, and thereby
12391         indirectly on xalloc.  This change causes the openat substitute
12392         to fall back on save_cwd when memory is tight, and for save_cwd to
12393         fail instead of dying when memory is tight, but that's good enough.
12394         Problem and initial idea for fix reported by Bastien Roucaries in
12395         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
12396
12397         * lib/openat-proc.c: Include stdlib.h (for malloc), not
12398         xalloc.h (for xmalloc).
12399         (openat_proc_name): Use malloc, not xmalloc.
12400         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
12401         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
12402
12403         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
12404         This avoids heap allocation for file names whose lengths are in
12405         the range 512..1023, with the upper bound increasing to at most
12406         4031 depending on the platform's PATH_MAX.  (We do not want
12407         pathmax.h here as it might supply a non-constant PATH_MAX.)
12408         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
12409         Perhaps they should be moved to malloca.h?
12410         (OPENAT_BUFFER_SIZE): Use them.
12411
12412 2011-01-10  Bruno Haible  <bruno@clisp.org>
12413
12414         doc: Update users.txt.
12415         * users.txt: Add recutils.
12416
12417 2011-01-09  Karl Berry  <karl@gnu.org>
12418
12419         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
12420
12421         * doc/configmake.texi: New file.
12422         * doc/gnulib.texi: Include it.
12423         * modules/configmake: Move documentation from here.
12424
12425 2011-01-09  Bruno Haible  <bruno@clisp.org>
12426
12427         Update to Unicode 6.0.0.
12428         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
12429         (get_lbp): Update for Unicode 6.0.0.
12430         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
12431         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
12432         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
12433         U+11001, U+11038..U+11046. Remove U+06DE.
12434         (uc_width): Fix bounds of planes.
12435         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12436         lib/uniwidth/width.c.
12437         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
12438         trailing whitespace removed.
12439         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
12440         without comments, but with the original copyright notice.
12441         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
12442         * lib/unicase/ignorable.h: Likewise.
12443         * lib/unicase/tocasefold.h: Likewise.
12444         * lib/unicase/tolower.h: Likewise.
12445         * lib/unicase/totitle.h: Likewise.
12446         * lib/unicase/toupper.h: Likewise.
12447         * lib/unictype/bidi_of.h: Likewise.
12448         * lib/unictype/blocks.h: Likewise.
12449         * lib/unictype/categ_C.h: Likewise.
12450         * lib/unictype/categ_Cn.h: Likewise.
12451         * lib/unictype/categ_L.h: Likewise.
12452         * lib/unictype/categ_Ll.h: Likewise.
12453         * lib/unictype/categ_Lm.h: Likewise.
12454         * lib/unictype/categ_Lo.h: Likewise.
12455         * lib/unictype/categ_Lu.h: Likewise.
12456         * lib/unictype/categ_M.h: Likewise.
12457         * lib/unictype/categ_Mc.h: Likewise.
12458         * lib/unictype/categ_Me.h: Likewise.
12459         * lib/unictype/categ_Mn.h: Likewise.
12460         * lib/unictype/categ_N.h: Likewise.
12461         * lib/unictype/categ_Nd.h: Likewise.
12462         * lib/unictype/categ_No.h: Likewise.
12463         * lib/unictype/categ_P.h: Likewise.
12464         * lib/unictype/categ_Po.h: Likewise.
12465         * lib/unictype/categ_S.h: Likewise.
12466         * lib/unictype/categ_Sc.h: Likewise.
12467         * lib/unictype/categ_Sk.h: Likewise.
12468         * lib/unictype/categ_Sm.h: Likewise.
12469         * lib/unictype/categ_So.h: Likewise.
12470         * lib/unictype/categ_of.h: Likewise.
12471         * lib/unictype/combining.h: Likewise.
12472         * lib/unictype/ctype_alnum.h: Likewise.
12473         * lib/unictype/ctype_alpha.h: Likewise.
12474         * lib/unictype/ctype_graph.h: Likewise.
12475         * lib/unictype/ctype_lower.h: Likewise.
12476         * lib/unictype/ctype_print.h: Likewise.
12477         * lib/unictype/ctype_punct.h: Likewise.
12478         * lib/unictype/ctype_upper.h: Likewise.
12479         * lib/unictype/decdigit.h: Likewise.
12480         * lib/unictype/digit.h: Likewise.
12481         * lib/unictype/numeric.h: Likewise.
12482         * lib/unictype/pr_alphabetic.h: Likewise.
12483         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12484         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12485         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12486         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12487         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12488         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12489         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12490         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12491         * lib/unictype/pr_case_ignorable.h: Likewise.
12492         * lib/unictype/pr_cased.h: Likewise.
12493         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
12494         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
12495         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
12496         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
12497         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
12498         * lib/unictype/pr_combining.h: Likewise.
12499         * lib/unictype/pr_composite.h: Likewise.
12500         * lib/unictype/pr_currency_symbol.h: Likewise.
12501         * lib/unictype/pr_decimal_digit.h: Likewise.
12502         * lib/unictype/pr_deprecated.h: Likewise.
12503         * lib/unictype/pr_format_control.h: Likewise.
12504         * lib/unictype/pr_grapheme_base.h: Likewise.
12505         * lib/unictype/pr_grapheme_extend.h: Likewise.
12506         * lib/unictype/pr_grapheme_link.h: Likewise.
12507         * lib/unictype/pr_id_continue.h: Likewise.
12508         * lib/unictype/pr_id_start.h: Likewise.
12509         * lib/unictype/pr_ideographic.h: Likewise.
12510         * lib/unictype/pr_lowercase.h: Likewise.
12511         * lib/unictype/pr_math.h: Likewise.
12512         * lib/unictype/pr_numeric.h: Likewise.
12513         * lib/unictype/pr_other_alphabetic.h: Likewise.
12514         * lib/unictype/pr_other_id_continue.h: Likewise.
12515         * lib/unictype/pr_other_math.h: Likewise.
12516         * lib/unictype/pr_punctuation.h: Likewise.
12517         * lib/unictype/pr_sentence_terminal.h: Likewise.
12518         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12519         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12520         * lib/unictype/pr_unified_ideograph.h: Likewise.
12521         * lib/unictype/pr_uppercase.h: Likewise.
12522         * lib/unictype/pr_xid_continue.h: Likewise.
12523         * lib/unictype/pr_xid_start.h: Likewise.
12524         * lib/unictype/scripts.h: Likewise.
12525         * lib/unictype/scripts_byname.gperf: Likewise.
12526         * lib/unictype/sy_java_ident.h: Likewise.
12527         * lib/unigbrk/gbrkprop.h: Likewise.
12528         * lib/unilbrk/lbrkprop1.h: Likewise.
12529         * lib/unilbrk/lbrkprop2.h: Likewise.
12530         * lib/uninorm/decomposition-table2.h: Likewise.
12531         * lib/uniwbrk/wbrkprop.h: Likewise.
12532         * tests/unicase/test-cased.c: Likewise.
12533         * tests/unicase/test-ignorable.c: Likewise.
12534         * tests/unicase/test-uc_tolower.c: Likewise.
12535         * tests/unicase/test-uc_totitle.c: Likewise.
12536         * tests/unicase/test-uc_toupper.c: Likewise.
12537         * tests/unictype/test-categ_C.c: Likewise.
12538         * tests/unictype/test-categ_Cn.c: Likewise.
12539         * tests/unictype/test-categ_L.c: Likewise.
12540         * tests/unictype/test-categ_Ll.c: Likewise.
12541         * tests/unictype/test-categ_Lm.c: Likewise.
12542         * tests/unictype/test-categ_Lo.c: Likewise.
12543         * tests/unictype/test-categ_Lu.c: Likewise.
12544         * tests/unictype/test-categ_M.c: Likewise.
12545         * tests/unictype/test-categ_Mc.c: Likewise.
12546         * tests/unictype/test-categ_Me.c: Likewise.
12547         * tests/unictype/test-categ_Mn.c: Likewise.
12548         * tests/unictype/test-categ_N.c: Likewise.
12549         * tests/unictype/test-categ_Nd.c: Likewise.
12550         * tests/unictype/test-categ_No.c: Likewise.
12551         * tests/unictype/test-categ_P.c: Likewise.
12552         * tests/unictype/test-categ_Po.c: Likewise.
12553         * tests/unictype/test-categ_S.c: Likewise.
12554         * tests/unictype/test-categ_Sc.c: Likewise.
12555         * tests/unictype/test-categ_Sk.c: Likewise.
12556         * tests/unictype/test-categ_Sm.c: Likewise.
12557         * tests/unictype/test-categ_So.c: Likewise.
12558         * tests/unictype/test-ctype_alnum.c: Likewise.
12559         * tests/unictype/test-ctype_alpha.c: Likewise.
12560         * tests/unictype/test-ctype_graph.c: Likewise.
12561         * tests/unictype/test-ctype_lower.c: Likewise.
12562         * tests/unictype/test-ctype_print.c: Likewise.
12563         * tests/unictype/test-ctype_punct.c: Likewise.
12564         * tests/unictype/test-ctype_upper.c: Likewise.
12565         * tests/unictype/test-decdigit.h: Likewise.
12566         * tests/unictype/test-digit.h: Likewise.
12567         * tests/unictype/test-numeric.h: Likewise.
12568         * tests/unictype/test-pr_alphabetic.c: Likewise.
12569         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12570         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
12571         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
12572         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12573         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12574         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12575         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12576         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12577         * tests/unictype/test-pr_case_ignorable.c: Likewise.
12578         * tests/unictype/test-pr_cased.c: Likewise.
12579         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
12580         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
12581         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
12582         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
12583         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
12584         * tests/unictype/test-pr_combining.c: Likewise.
12585         * tests/unictype/test-pr_composite.c: Likewise.
12586         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12587         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12588         * tests/unictype/test-pr_deprecated.c: Likewise.
12589         * tests/unictype/test-pr_format_control.c: Likewise.
12590         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12591         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12592         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12593         * tests/unictype/test-pr_id_continue.c: Likewise.
12594         * tests/unictype/test-pr_id_start.c: Likewise.
12595         * tests/unictype/test-pr_ideographic.c: Likewise.
12596         * tests/unictype/test-pr_lowercase.c: Likewise.
12597         * tests/unictype/test-pr_math.c: Likewise.
12598         * tests/unictype/test-pr_numeric.c: Likewise.
12599         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12600         * tests/unictype/test-pr_other_id_continue.c: Likewise.
12601         * tests/unictype/test-pr_other_math.c: Likewise.
12602         * tests/unictype/test-pr_punctuation.c: Likewise.
12603         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12604         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12605         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12606         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12607         * tests/unictype/test-pr_uppercase.c: Likewise.
12608         * tests/unictype/test-pr_xid_continue.c: Likewise.
12609         * tests/unictype/test-pr_xid_start.c: Likewise.
12610         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12611         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12612         changes.
12613         * lib/unictype/categ_Cc.h: Likewise.
12614         * lib/unictype/categ_Cf.h: Likewise.
12615         * lib/unictype/categ_Co.h: Likewise.
12616         * lib/unictype/categ_Cs.h: Likewise.
12617         * lib/unictype/categ_Lt.h: Likewise.
12618         * lib/unictype/categ_Nl.h: Likewise.
12619         * lib/unictype/categ_Pc.h: Likewise.
12620         * lib/unictype/categ_Pd.h: Likewise.
12621         * lib/unictype/categ_Pe.h: Likewise.
12622         * lib/unictype/categ_Pf.h: Likewise.
12623         * lib/unictype/categ_Pi.h: Likewise.
12624         * lib/unictype/categ_Ps.h: Likewise.
12625         * lib/unictype/categ_Z.h: Likewise.
12626         * lib/unictype/categ_Zl.h: Likewise.
12627         * lib/unictype/categ_Zp.h: Likewise.
12628         * lib/unictype/categ_Zs.h: Likewise.
12629         * lib/unictype/ctype_blank.h: Likewise.
12630         * lib/unictype/ctype_cntrl.h: Likewise.
12631         * lib/unictype/ctype_digit.h: Likewise.
12632         * lib/unictype/ctype_space.h: Likewise.
12633         * lib/unictype/ctype_xdigit.h: Likewise.
12634         * lib/unictype/mirror.h: Likewise.
12635         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12636         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12637         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12638         * lib/unictype/pr_bidi_control.h: Likewise.
12639         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12640         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12641         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12642         * lib/unictype/pr_bidi_pdf.h: Likewise.
12643         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12644         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12645         * lib/unictype/pr_dash.h: Likewise.
12646         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12647         * lib/unictype/pr_diacritic.h: Likewise.
12648         * lib/unictype/pr_extender.h: Likewise.
12649         * lib/unictype/pr_hex_digit.h: Likewise.
12650         * lib/unictype/pr_hyphen.h: Likewise.
12651         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12652         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12653         * lib/unictype/pr_ignorable_control.h: Likewise.
12654         * lib/unictype/pr_iso_control.h: Likewise.
12655         * lib/unictype/pr_join_control.h: Likewise.
12656         * lib/unictype/pr_left_of_pair.h: Likewise.
12657         * lib/unictype/pr_line_separator.h: Likewise.
12658         * lib/unictype/pr_logical_order_exception.h: Likewise.
12659         * lib/unictype/pr_non_break.h: Likewise.
12660         * lib/unictype/pr_not_a_character.h: Likewise.
12661         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12662         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12663         * lib/unictype/pr_other_id_start.h: Likewise.
12664         * lib/unictype/pr_other_lowercase.h: Likewise.
12665         * lib/unictype/pr_other_uppercase.h: Likewise.
12666         * lib/unictype/pr_paired_punctuation.h: Likewise.
12667         * lib/unictype/pr_paragraph_separator.h: Likewise.
12668         * lib/unictype/pr_pattern_syntax.h: Likewise.
12669         * lib/unictype/pr_pattern_white_space.h: Likewise.
12670         * lib/unictype/pr_private_use.h: Likewise.
12671         * lib/unictype/pr_quotation_mark.h: Likewise.
12672         * lib/unictype/pr_radical.h: Likewise.
12673         * lib/unictype/pr_soft_dotted.h: Likewise.
12674         * lib/unictype/pr_space.h: Likewise.
12675         * lib/unictype/pr_titlecase.h: Likewise.
12676         * lib/unictype/pr_variation_selector.h: Likewise.
12677         * lib/unictype/pr_white_space.h: Likewise.
12678         * lib/unictype/pr_zero_width.h: Likewise.
12679         * lib/unictype/sy_c_ident.h: Likewise.
12680         * lib/unictype/sy_c_whitespace.h: Likewise.
12681         * lib/unictype/sy_java_whitespace.h: Likewise.
12682         * lib/uninorm/composition-table.gperf: Likewise.
12683         * lib/uninorm/decomposition-table1.h: Likewise.
12684         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
12685         LB8.
12686         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12687         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12688         * modules/unictype/*: Bump version number of expected libunistring
12689         version.
12690
12691 2011-01-09  Bruno Haible  <bruno@clisp.org>
12692
12693         Update to Unicode 5.2.0.
12694         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
12695         trailing whitespace removed.
12696
12697 2011-01-09  Bruno Haible  <bruno@clisp.org>
12698
12699         New Unicode character properties, from Unicode 5.2.0.
12700         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
12701         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
12702         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
12703         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
12704         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
12705         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
12706         uc_is_property_cased, uc_is_property_case_ignorable,
12707         uc_is_property_changes_when_lowercased,
12708         uc_is_property_changes_when_uppercased,
12709         uc_is_property_changes_when_titlecased,
12710         uc_is_property_changes_when_casefolded,
12711         uc_is_property_changes_when_casemapped): New declarations.
12712         * lib/unictype/pr_byname.gperf: Add the new properties.
12713         * modules/unictype/property-byname (Depends-on): Depend on the new
12714         properties modules.
12715         * modules/unictype/property-all (Depends-on): Likewise.
12716         * MODULES.html.sh (Unicode string functions): Add
12717         unictype/property-case-ignorable, unictype/property-cased,
12718         unictype/property-changes-when-casefolded,
12719         unictype/property-changes-when-casemapped,
12720         unictype/property-changes-when-lowercased,
12721         unictype/property-changes-when-titlecased,
12722         unictype/property-changes-when-uppercased.
12723
12724         New module 'unictype/property-changes-when-casemapped'.
12725         * modules/unictype/property-changes-when-casemapped: New file.
12726         * lib/unictype/pr_changes_when_casemapped.c: New file.
12727         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
12728         generated by gen-uni-tables.
12729         * modules/unictype/property-changes-when-casemapped-tests: New file.
12730         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
12731         automatically generated by gen-uni-tables.
12732
12733         New module 'unictype/property-changes-when-casefolded'.
12734         * modules/unictype/property-changes-when-casefolded: New file.
12735         * lib/unictype/pr_changes_when_casefolded.c: New file.
12736         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
12737         generated by gen-uni-tables.
12738         * modules/unictype/property-changes-when-casefolded-tests: New file.
12739         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
12740         automatically generated by gen-uni-tables.
12741
12742         New module 'unictype/property-changes-when-titlecased'.
12743         * modules/unictype/property-changes-when-titlecased: New file.
12744         * lib/unictype/pr_changes_when_titlecased.c: New file.
12745         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
12746         generated by gen-uni-tables.
12747         * modules/unictype/property-changes-when-titlecased-tests: New file.
12748         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
12749         automatically generated by gen-uni-tables.
12750
12751         New module 'unictype/property-changes-when-uppercased'.
12752         * modules/unictype/property-changes-when-uppercased: New file.
12753         * lib/unictype/pr_changes_when_uppercased.c: New file.
12754         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
12755         generated by gen-uni-tables.
12756         * modules/unictype/property-changes-when-uppercased-tests: New file.
12757         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
12758         automatically generated by gen-uni-tables.
12759
12760         New module 'unictype/property-changes-when-lowercased'.
12761         * modules/unictype/property-changes-when-lowercased: New file.
12762         * lib/unictype/pr_changes_when_lowercased.c: New file.
12763         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
12764         generated by gen-uni-tables.
12765         * modules/unictype/property-changes-when-lowercased-tests: New file.
12766         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
12767         automatically generated by gen-uni-tables.
12768
12769         New module 'unictype/property-case-ignorable'.
12770         * modules/unictype/property-case-ignorable: New file.
12771         * lib/unictype/pr_case_ignorable.c: New file.
12772         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
12773         by gen-uni-tables.
12774         * modules/unictype/property-case-ignorable-tests: New file.
12775         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
12776         generated by gen-uni-tables.
12777
12778         New module 'unictype/property-cased'.
12779         * modules/unictype/property-cased: New file.
12780         * lib/unictype/pr_cased.c: New file.
12781         * lib/unictype/pr_cased.h: New file, automatically generated by
12782         gen-uni-tables.
12783         * modules/unictype/property-cased-tests: New file.
12784         * tests/unictype/test-pr_cased.c: New file, automatically generated by
12785         gen-uni-tables.
12786
12787 2011-01-09  Bruno Haible  <bruno@clisp.org>
12788
12789         Update to Unicode 5.2.0.
12790         * lib/gen-uni-tables.c (output_predicate, output_category,
12791         output_combclass, output_bidi_category, output_decimal_digit_test,
12792         output_decimal_digit, output_digit_test, output_digit,
12793         output_numeric_test, output_numeric, output_mirror, output_scripts,
12794         output_scripts_byname, output_blocks, output_ident_category): Fix
12795         comment header.
12796         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
12797         get_wbp.
12798         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
12799         items.
12800         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
12801         Changes_When_Lowercased, Changes_When_Uppercased,
12802         Changes_When_Titlecased, Changes_When_Casefolded,
12803         Changes_When_Casemapped.
12804         (is_property_alphabetic, is_property_default_ignorable_code_point):
12805         Update for Unicode 5.2.0.
12806         (is_property_cased, is_property_case_ignorable,
12807         is_property_changes_when_lowercased,
12808         is_property_changes_when_uppercased,
12809         is_property_changes_when_titlecased,
12810         is_property_changes_when_casefolded,
12811         is_property_changes_when_casemapped): New functions.
12812         (output_properties): Output also the properties cased, case_ignorable,
12813         changes_when_lowercased, changes_when_uppercased,
12814         changes_when_titlecased, changes_when_casefolded,
12815         changes_when_casemapped.
12816         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
12817         Unicode TR#11 revision 17 -> 19.
12818         (LBP_CP): New enumeration value.
12819         (LBP_*): Adjust values accordingly.
12820         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12821         TR#14 revision 22 -> 24.
12822         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
12823         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
12824         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12825         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
12826         is_WBP_MIDLETTER.
12827         (output_composition_tables): Allow for 24 bits instead of 16 bits in
12828         the code1 and code2 of each composition rule.
12829         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
12830         * lib/unicase/ignorable.h: Likewise.
12831         * lib/unicase/tocasefold.h: Likewise.
12832         * lib/unicase/tolower.h: Likewise.
12833         * lib/unicase/totitle.h: Likewise.
12834         * lib/unicase/toupper.h: Likewise.
12835         * lib/unictype/bidi_of.h: Likewise.
12836         * lib/unictype/blocks.h: Likewise.
12837         * lib/unictype/categ_C.h: Likewise.
12838         * lib/unictype/categ_Cf.h: Likewise.
12839         * lib/unictype/categ_Cn.h: Likewise.
12840         * lib/unictype/categ_L.h: Likewise.
12841         * lib/unictype/categ_Ll.h: Likewise.
12842         * lib/unictype/categ_Lm.h: Likewise.
12843         * lib/unictype/categ_Lo.h: Likewise.
12844         * lib/unictype/categ_Lu.h: Likewise.
12845         * lib/unictype/categ_M.h: Likewise.
12846         * lib/unictype/categ_Mc.h: Likewise.
12847         * lib/unictype/categ_Mn.h: Likewise.
12848         * lib/unictype/categ_N.h: Likewise.
12849         * lib/unictype/categ_Nd.h: Likewise.
12850         * lib/unictype/categ_Nl.h: Likewise.
12851         * lib/unictype/categ_No.h: Likewise.
12852         * lib/unictype/categ_P.h: Likewise.
12853         * lib/unictype/categ_Pd.h: Likewise.
12854         * lib/unictype/categ_Po.h: Likewise.
12855         * lib/unictype/categ_S.h: Likewise.
12856         * lib/unictype/categ_Sc.h: Likewise.
12857         * lib/unictype/categ_So.h: Likewise.
12858         * lib/unictype/categ_of.h: Likewise.
12859         * lib/unictype/combining.h: Likewise.
12860         * lib/unictype/ctype_alnum.h: Likewise.
12861         * lib/unictype/ctype_alpha.h: Likewise.
12862         * lib/unictype/ctype_graph.h: Likewise.
12863         * lib/unictype/ctype_lower.h: Likewise.
12864         * lib/unictype/ctype_print.h: Likewise.
12865         * lib/unictype/ctype_punct.h: Likewise.
12866         * lib/unictype/ctype_upper.h: Likewise.
12867         * lib/unictype/decdigit.h: Likewise.
12868         * lib/unictype/digit.h: Likewise.
12869         * lib/unictype/numeric.h: Likewise.
12870         * lib/unictype/pr_alphabetic.h: Likewise.
12871         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12872         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12873         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12874         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12875         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12876         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12877         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12878         * lib/unictype/pr_combining.h: Likewise.
12879         * lib/unictype/pr_composite.h: Likewise.
12880         * lib/unictype/pr_currency_symbol.h: Likewise.
12881         * lib/unictype/pr_dash.h: Likewise.
12882         * lib/unictype/pr_decimal_digit.h: Likewise.
12883         * lib/unictype/pr_deprecated.h: Likewise.
12884         * lib/unictype/pr_diacritic.h: Likewise.
12885         * lib/unictype/pr_extender.h: Likewise.
12886         * lib/unictype/pr_grapheme_base.h: Likewise.
12887         * lib/unictype/pr_grapheme_extend.h: Likewise.
12888         * lib/unictype/pr_grapheme_link.h: Likewise.
12889         * lib/unictype/pr_id_continue.h: Likewise.
12890         * lib/unictype/pr_id_start.h: Likewise.
12891         * lib/unictype/pr_ideographic.h: Likewise.
12892         * lib/unictype/pr_ignorable_control.h: Likewise.
12893         * lib/unictype/pr_logical_order_exception.h: Likewise.
12894         * lib/unictype/pr_lowercase.h: Likewise.
12895         * lib/unictype/pr_numeric.h: Likewise.
12896         * lib/unictype/pr_other_alphabetic.h: Likewise.
12897         * lib/unictype/pr_punctuation.h: Likewise.
12898         * lib/unictype/pr_sentence_terminal.h: Likewise.
12899         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12900         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12901         * lib/unictype/pr_unified_ideograph.h: Likewise.
12902         * lib/unictype/pr_uppercase.h: Likewise.
12903         * lib/unictype/pr_xid_continue.h: Likewise.
12904         * lib/unictype/pr_xid_start.h: Likewise.
12905         * lib/unictype/pr_zero_width.h: Likewise.
12906         * lib/unictype/scripts.h: Likewise.
12907         * lib/unictype/scripts_byname.gperf: Likewise.
12908         * lib/unictype/sy_java_ident.h: Likewise.
12909         * lib/unigbrk/gbrkprop.h: Likewise.
12910         * lib/unilbrk/lbrkprop1.h: Likewise.
12911         * lib/unilbrk/lbrkprop2.h: Likewise.
12912         * lib/unilbrk/lbrktables.h: Likewise.
12913         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12914         LBP_CP. Implement rule LB30.
12915         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12916         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12917         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12918         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12919         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12920         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12921         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12922         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12923         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12924         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12925         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12926         bits instead of 16 bits in the code1 and code2 of each composition
12927         rule.
12928         (uc_composition): Update for Unicode 5.2.0.
12929         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12930         * lib/uninorm/decomposition-table2.h: Likewise.
12931         * lib/uniwbrk/wbrkprop.h: Likewise.
12932         * tests/unicase/test-cased.c: Likewise.
12933         * tests/unicase/test-ignorable.c: Likewise.
12934         * tests/unicase/test-uc_tolower.c: Likewise.
12935         * tests/unicase/test-uc_totitle.c: Likewise.
12936         * tests/unicase/test-uc_toupper.c: Likewise.
12937         * tests/unictype/test-categ_C.c: Likewise.
12938         * tests/unictype/test-categ_Cf.c: Likewise.
12939         * tests/unictype/test-categ_Cn.c: Likewise.
12940         * tests/unictype/test-categ_L.c: Likewise.
12941         * tests/unictype/test-categ_Ll.c: Likewise.
12942         * tests/unictype/test-categ_Lm.c: Likewise.
12943         * tests/unictype/test-categ_Lo.c: Likewise.
12944         * tests/unictype/test-categ_Lu.c: Likewise.
12945         * tests/unictype/test-categ_M.c: Likewise.
12946         * tests/unictype/test-categ_Mc.c: Likewise.
12947         * tests/unictype/test-categ_Mn.c: Likewise.
12948         * tests/unictype/test-categ_N.c: Likewise.
12949         * tests/unictype/test-categ_Nd.c: Likewise.
12950         * tests/unictype/test-categ_Nl.c: Likewise.
12951         * tests/unictype/test-categ_No.c: Likewise.
12952         * tests/unictype/test-categ_P.c: Likewise.
12953         * tests/unictype/test-categ_Pd.c: Likewise.
12954         * tests/unictype/test-categ_Po.c: Likewise.
12955         * tests/unictype/test-categ_S.c: Likewise.
12956         * tests/unictype/test-categ_Sc.c: Likewise.
12957         * tests/unictype/test-categ_So.c: Likewise.
12958         * tests/unictype/test-ctype_alnum.c: Likewise.
12959         * tests/unictype/test-ctype_alpha.c: Likewise.
12960         * tests/unictype/test-ctype_graph.c: Likewise.
12961         * tests/unictype/test-ctype_lower.c: Likewise.
12962         * tests/unictype/test-ctype_print.c: Likewise.
12963         * tests/unictype/test-ctype_punct.c: Likewise.
12964         * tests/unictype/test-ctype_upper.c: Likewise.
12965         * tests/unictype/test-decdigit.h: Likewise.
12966         * tests/unictype/test-digit.h: Likewise.
12967         * tests/unictype/test-numeric.h: Likewise.
12968         * tests/unictype/test-pr_alphabetic.c: Likewise.
12969         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12970         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12971         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12972         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12973         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12974         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12975         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12976         * tests/unictype/test-pr_combining.c: Likewise.
12977         * tests/unictype/test-pr_composite.c: Likewise.
12978         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12979         * tests/unictype/test-pr_dash.c: Likewise.
12980         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12981         * tests/unictype/test-pr_deprecated.c: Likewise.
12982         * tests/unictype/test-pr_diacritic.c: Likewise.
12983         * tests/unictype/test-pr_extender.c: Likewise.
12984         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12985         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12986         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12987         * tests/unictype/test-pr_id_continue.c: Likewise.
12988         * tests/unictype/test-pr_id_start.c: Likewise.
12989         * tests/unictype/test-pr_ideographic.c: Likewise.
12990         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12991         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12992         * tests/unictype/test-pr_lowercase.c: Likewise.
12993         * tests/unictype/test-pr_numeric.c: Likewise.
12994         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12995         * tests/unictype/test-pr_punctuation.c: Likewise.
12996         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12997         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12998         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12999         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
13000         * tests/unictype/test-pr_uppercase.c: Likewise.
13001         * tests/unictype/test-pr_xid_continue.c: Likewise.
13002         * tests/unictype/test-pr_xid_start.c: Likewise.
13003         * tests/unictype/test-pr_zero_width.c: Likewise.
13004         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
13005         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
13006         changed behaviour: line breaking is now disallowed between a letter
13007         or '=' and '('.
13008         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13009         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13010         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
13011         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
13012         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13013         lib/uniwidth/width.c.
13014         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
13015         without comments, but with the original copyright notice.
13016         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
13017         changes.
13018         * lib/unictype/categ_Cc.h: Likewise.
13019         * lib/unictype/categ_Co.h: Likewise.
13020         * lib/unictype/categ_Cs.h: Likewise.
13021         * lib/unictype/categ_Lt.h: Likewise.
13022         * lib/unictype/categ_Me.h: Likewise.
13023         * lib/unictype/categ_Pc.h: Likewise.
13024         * lib/unictype/categ_Pe.h: Likewise.
13025         * lib/unictype/categ_Pf.h: Likewise.
13026         * lib/unictype/categ_Pi.h: Likewise.
13027         * lib/unictype/categ_Ps.h: Likewise.
13028         * lib/unictype/categ_Sk.h: Likewise.
13029         * lib/unictype/categ_Sm.h: Likewise.
13030         * lib/unictype/categ_Z.h: Likewise.
13031         * lib/unictype/categ_Zl.h: Likewise.
13032         * lib/unictype/categ_Zp.h: Likewise.
13033         * lib/unictype/categ_Zs.h: Likewise.
13034         * lib/unictype/ctype_blank.h: Likewise.
13035         * lib/unictype/ctype_cntrl.h: Likewise.
13036         * lib/unictype/ctype_digit.h: Likewise.
13037         * lib/unictype/ctype_space.h: Likewise.
13038         * lib/unictype/ctype_xdigit.h: Likewise.
13039         * lib/unictype/mirror.h: Likewise.
13040         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13041         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13042         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13043         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13044         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13045         * lib/unictype/pr_bidi_control.h: Likewise.
13046         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13047         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13048         * lib/unictype/pr_bidi_pdf.h: Likewise.
13049         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13050         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13051         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13052         * lib/unictype/pr_format_control.h: Likewise.
13053         * lib/unictype/pr_hex_digit.h: Likewise.
13054         * lib/unictype/pr_hyphen.h: Likewise.
13055         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13056         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13057         * lib/unictype/pr_iso_control.h: Likewise.
13058         * lib/unictype/pr_join_control.h: Likewise.
13059         * lib/unictype/pr_left_of_pair.h: Likewise.
13060         * lib/unictype/pr_line_separator.h: Likewise.
13061         * lib/unictype/pr_math.h: Likewise.
13062         * lib/unictype/pr_non_break.h: Likewise.
13063         * lib/unictype/pr_not_a_character.h: Likewise.
13064         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13065         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13066         * lib/unictype/pr_other_id_continue.h: Likewise.
13067         * lib/unictype/pr_other_id_start.h: Likewise.
13068         * lib/unictype/pr_other_lowercase.h: Likewise.
13069         * lib/unictype/pr_other_math.h: Likewise.
13070         * lib/unictype/pr_other_uppercase.h: Likewise.
13071         * lib/unictype/pr_paired_punctuation.h: Likewise.
13072         * lib/unictype/pr_paragraph_separator.h: Likewise.
13073         * lib/unictype/pr_pattern_syntax.h: Likewise.
13074         * lib/unictype/pr_pattern_white_space.h: Likewise.
13075         * lib/unictype/pr_private_use.h: Likewise.
13076         * lib/unictype/pr_quotation_mark.h: Likewise.
13077         * lib/unictype/pr_radical.h: Likewise.
13078         * lib/unictype/pr_soft_dotted.h: Likewise.
13079         * lib/unictype/pr_space.h: Likewise.
13080         * lib/unictype/pr_titlecase.h: Likewise.
13081         * lib/unictype/pr_variation_selector.h: Likewise.
13082         * lib/unictype/pr_white_space.h: Likewise.
13083         * lib/unictype/sy_c_ident.h: Likewise.
13084         * lib/unictype/sy_c_whitespace.h: Likewise.
13085         * lib/unictype/sy_java_whitespace.h: Likewise.
13086         * modules/uni*/*: Bump version number of expected libunistring version.
13087         Reported by Simon Josefsson.
13088
13089 2011-01-09  Karl Heuer  <kwzh@gnu.org>
13090
13091         useless-if-before-free: fix typo in --help and make the internal,
13092         automatic version date update process work once again.
13093         --help output contained a NUL character instead of the
13094         backslash-zero that was intended.  Also, the "must lie within
13095         the first 8 lines" line is on line 9, and hence not getting
13096         automatically updated.
13097         * build-aux/useless-if-before-free: Fix the former by adding a
13098         backslash, and the latter by condensing the three lines of what-it-does
13099         to a single line, leaving one line of slack for the future.
13100
13101 2011-01-09  Bruno Haible  <bruno@clisp.org>
13102
13103         uniwidth/width: Fix width of U+1D173..U+1D17A.
13104         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
13105         symbolic_width, output_width_property_test): New functions.
13106         (main): Invoke output_nonspacing_property, output_width_property_test.
13107         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
13108         U+1D173..U+1D17A.
13109         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
13110         1.
13111         * modules/uniwidth/*: Bump version number of expected libunistring
13112         version.
13113         * modules/unilbrk/*: Likewise.
13114
13115 2011-01-08  Bruno Haible  <bruno@clisp.org>
13116
13117         uninorm tests: Preserve copyright of Unicode data file.
13118         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
13119         Mention modifications.
13120
13121 2011-01-08  Bruno Haible  <bruno@clisp.org>
13122
13123         gen-uni-tables: Prepare for Unicode 5.2.0.
13124         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
13125         (debug_output_lbp, output_lbp): Update.
13126
13127 2011-01-08  Bruno Haible  <bruno@clisp.org>
13128
13129         unilbrk: Clarify gen-uni-tables.c code.
13130         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
13131         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
13132         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
13133
13134 2011-01-07  Bruno Haible  <bruno@clisp.org>
13135
13136         strtod: Restore errno when successfully parsing Infinity or NaN.
13137         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
13138         restore the original errno.
13139
13140 2011-01-07  Bruno Haible  <bruno@clisp.org>
13141
13142         remove test: Avoid failure on HP-UX 11.
13143         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
13144
13145 2011-01-07  Bruno Haible  <bruno@clisp.org>
13146
13147         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
13148         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
13149         error code.
13150
13151 2011-01-07  Pádraig Brady <P@draigBrady.com>
13152
13153         ignore-value: fixup comments, and add Eric Blake
13154         as an author since he rewrote the macros.
13155         * lib/ignore-value.h (ignore_value):  State that
13156         we now support aggregates.  Also specify exactly
13157         when the GCC warn_unused_result feature was added.
13158
13159 2011-01-06  Eric Blake  <eblake@redhat.com>
13160
13161         ignore-value: support aggregate types
13162         * lib/ignore-value.h (ignore_value): Provide separate gcc
13163         definition.
13164         * modules/ignore-value-tests: New test module.
13165         * tests/test-ignore-value.c: New test.
13166
13167         maint.mk: improve sc_prohibit_strcmp regex
13168         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
13169         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
13170         definition of STRNEQ.
13171
13172         signal: work around Haiku issue with SIGBUS
13173         * lib/siglist.h: Add comment.
13174         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
13175         strsignal's favoring of SIGSEGV.
13176         * tests/test-signal.c (main): Avoid test failure.
13177         * doc/posix-headers/signal.texi (signal.h): Document the issue.
13178         Reported by Scott McCreary.
13179
13180         maint.mk: add pre-release check to ensure submodule commits are public
13181         * top/maint.mk (public-submodule-commit): New rule.
13182         (submodule-checks): New variable.
13183         (alpha beta stable): Depend on the variable.
13184
13185 2011-01-05  Pádraig Brady <P@draigBrady.com>
13186         and Jim Meyering  <meyering@redhat.com>
13187
13188         ignore-value: make ignore_value more generic; deprecate ignore_ptr
13189         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
13190         (ATTRIBUTE_DEPRECATED): Define.
13191         (_ignore_case): New function.
13192         (ignore_value): New macro, to replace the old function.
13193         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
13194         * modules/ignore-value (Depends-on): Add stdint.
13195
13196 2011-01-04  Eric Blake  <eblake@redhat.com>
13197
13198         doc: regenerate INSTALL
13199         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
13200         @firstparagraphindent support, now that autoconf dropped it.
13201         (INSTALL_PRELUDE): Reinstate old macro.
13202         * doc/install.texi: Resync from autoconf.
13203         * doc/INSTALL: Reflect recent autoconf update.
13204         * doc/INSTALL.ISO: Likewise.
13205         * doc/INSTALL.UTF-8: Likewise.
13206         Reported by Karl Berry.
13207
13208 2011-01-04  Bruce Korb  <address@hidden>
13209
13210         git-version-gen: avoid a sub-shell
13211         * build-aux/git-version-gen: Redirect stderr in `...` via
13212         "exec 2>...", rather than via an added sub-shell.
13213
13214 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
13215
13216         git-version-gen: use (...) rather than sh -c '...'
13217         * build-aux/git-version-gen: Rather than hard-coding a shell's name
13218         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
13219
13220 2011-01-03  Jim Meyering  <meyering@redhat.com>
13221
13222         git-version-gen: convert leading TABs to spaces
13223         * build-aux/git-version-gen: Expand leading TABs.
13224
13225         git-version-gen: handle failed "git rev-list"
13226         * build-aux/git-version-gen: Rather than leaking a "fatal" error
13227         from git and proceeding as if it had succeeded but printed no SHA1
13228         checksums, suppress the diagnostic and handle the failure.
13229         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
13230
13231         git-version-gen: include command name in one more diagnostic
13232         * build-aux/git-version-gen: When the required .tarball-version file
13233         was missing or unreadable, you might see the diagnostic from "cat",
13234         but no trace of the name of the invoking script.  Now, you still see
13235         the diagnostic from cat, but also get one from "git-version-gen: ".
13236         Inspired by a patch from Bruce Korb.
13237
13238         update-copyright: adjust test to match changed code
13239         * tests/test-update-copyright.sh: Change test's expected output
13240         to match new actual output.
13241
13242 2011-01-02  Bruno Haible  <bruno@clisp.org>
13243
13244         getlogin_r: Avoid test failure on HP-UX 11.
13245         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
13246         ERANGE when the second argument is zero.
13247         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
13248         portability problem.
13249
13250 2011-01-02  Bruce Korb  <bkorb@gnu.org>
13251
13252         * build-aux/update-copyright: doc Simon's changes
13253
13254 2011-01-02  Simon Josefsson  <simon@josefsson.org>
13255
13256         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
13257         environment variable.
13258
13259 2011-01-02  Bruno Haible  <bruno@clisp.org>
13260
13261         unigbrk: Avoid gcc warnings.
13262         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
13263         unused variable.
13264         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
13265         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
13266         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
13267         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
13268         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
13269         Change type of first argument to 'const char *'.
13270         (main): Remove unused variable.
13271         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
13272         type of first argument to 'const char *'.
13273         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
13274         Likewise.
13275         (main): Change type of variable 's'.
13276         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
13277         to 'int'.
13278
13279 2011-01-02  Bruno Haible  <bruno@clisp.org>
13280
13281         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
13282         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
13283         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
13284         bug.
13285         * lib/pwrite.c: Undo 2010-12-31 patch.
13286         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
13287
13288 2011-01-02  Bruno Haible  <bruno@clisp.org>
13289
13290         pread: Fix test whether it works.
13291         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
13292
13293 2011-01-02  Bruno Haible  <bruno@clisp.org>
13294
13295         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
13296         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
13297         ends in "6". Don't require a specific month name. Try also the locale
13298         names found on HP-UX 11 and Solaris 7.
13299
13300 2011-01-02  Bruno Haible  <bruno@clisp.org>
13301
13302         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
13303         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
13304         C linkage.
13305         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
13306
13307 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13308
13309         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
13310         for consistency, since the "cluster" term is not used elsewhere.
13311         * lib/unigbrk.in.h: Update name.
13312         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
13313         * lib/unigbrk/u16-grapheme-next.c: Update name.
13314         * lib/unigbrk/u16-grapheme-prev.c: Update name.
13315         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
13316         * lib/unigbrk/u32-grapheme-next.c: Update name.
13317         * lib/unigbrk/u32-grapheme-prev.c: Update name.
13318         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
13319         * lib/unigbrk/u8-grapheme-next.c: Update name.
13320         * lib/unigbrk/u8-grapheme-prev.c: Update name.
13321         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
13322         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
13323         Suggested by Bruno Haible.
13324
13325 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13326
13327         Remove module 'u8-grapheme-len' as too redundant with
13328         'u8-grapheme-next'.
13329         * modules/unigbrk/u8-grapheme-len: Delete file.
13330         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
13331         * lib/unigbrk.in.h: Remove prototype for deleted function.
13332         * lib/unigbrk/u8-grapheme-len.c: Delete file.
13333         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
13334
13335         Remove module 'u16-grapheme-len' as too redundant with
13336         'u16-grapheme-next'.
13337         * modules/unigbrk/u16-grapheme-len: Delete file.
13338         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
13339         * lib/unigbrk.in.h: Remove prototype for deleted function.
13340         * lib/unigbrk/u16-grapheme-len.c: Delete file.
13341         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
13342
13343         Remove module 'u32-grapheme-len' as too redundant with
13344         'u32-grapheme-next'.
13345         * modules/unigbrk/u32-grapheme-len: Delete file.
13346         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
13347         * lib/unigbrk.in.h: Remove prototype for deleted function.
13348         * lib/unigbrk/u32-grapheme-len.c: Delete file.
13349         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
13350
13351         Suggested by Bruno Haible.
13352
13353 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13354
13355         * unigbrk.in.h: Fix typo: "ben" => "been".
13356         Reported by Bruno Haible.
13357
13358 2011-01-01  Jim Meyering  <meyering@redhat.com>
13359
13360         maint: update almost all copyright ranges to include 2011
13361         Run the new "make update-copyright" rule.
13362
13363 2011-01-01  Jim Meyering  <meyering@redhat.com>
13364
13365         maint: update-copyright: exempt doc/INSTALL*
13366         * Makefile (update-copyright): Also exclude doc/INSTALL*,
13367         since they are generated.  Suggested by Bruno Haible.
13368
13369 2011-01-01  Jim Meyering  <meyering@redhat.com>
13370
13371         maint: refine the update-copyright rule
13372         * Makefile (update-copyright): Also exclude any file that includes
13373         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
13374         code that merely generates the comment.
13375
13376 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13377
13378         New module 'u8-grapheme-len'.
13379         * modules/unigbrk/u8-grapheme-len: New file.
13380         * modules/unigbrk/u8-grapheme-len-tests: New file.
13381         * lib/unigbrk.in.h: Add prototype for new function.
13382         * lib/unigbrk/u8-grapheme-len.c: New file.
13383         * tests/unigbrk/test-u8-grapheme-len.c: New file.
13384
13385         New module 'u16-grapheme-len'.
13386         * modules/unigbrk/u16-grapheme-len: New file.
13387         * modules/unigbrk/u16-grapheme-len-tests: New file.
13388         * lib/unigbrk.in.h: Add prototype for new function.
13389         * lib/unigbrk/u16-grapheme-len.c: New file.
13390         * tests/unigbrk/test-u16-grapheme-len.c: New file.
13391
13392         New module 'u32-grapheme-len'.
13393         * modules/unigbrk/u32-grapheme-len: New file.
13394         * modules/unigbrk/u32-grapheme-len-tests: New file.
13395         * lib/unigbrk.in.h: Add prototype for new function.
13396         * lib/unigbrk/u32-grapheme-len.c: New file.
13397         * tests/unigbrk/test-u32-grapheme-len.c: New file.
13398
13399         New module 'u8-grapheme-next'.
13400         * modules/unigbrk/u8-grapheme-next: New file.
13401         * modules/unigbrk/u8-grapheme-next-tests: New file.
13402         * lib/unigbrk.in.h: Add prototype for new function.
13403         * lib/unigbrk/u8-grapheme-next.c: New file.
13404         * tests/unigbrk/test-u8-grapheme-next.c: New file.
13405
13406         New module 'u16-grapheme-next'.
13407         * modules/unigbrk/u16-grapheme-next: New file.
13408         * modules/unigbrk/u16-grapheme-next-tests: New file.
13409         * lib/unigbrk.in.h: Add prototype for new function.
13410         * lib/unigbrk/u16-grapheme-next.c: New file.
13411         * tests/unigbrk/test-u16-grapheme-next.c: New file.
13412
13413         New module 'u32-grapheme-next'.
13414         * modules/unigbrk/u32-grapheme-next: New file.
13415         * modules/unigbrk/u32-grapheme-next-tests: New file.
13416         * lib/unigbrk.in.h: Add prototype for new function.
13417         * lib/unigbrk/u32-grapheme-next.c: New file.
13418         * tests/unigbrk/test-u32-grapheme-next.c: New file.
13419
13420         New module 'u8-grapheme-prev'.
13421         * modules/unigbrk/u8-grapheme-prev: New file.
13422         * modules/unigbrk/u8-grapheme-prev-tests: New file.
13423         * lib/unigbrk.in.h: Add prototype for new function.
13424         * lib/unigbrk/u8-grapheme-prev.c: New file.
13425         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
13426
13427         New module 'u16-grapheme-prev'.
13428         * modules/unigbrk/u16-grapheme-prev: New file.
13429         * modules/unigbrk/u16-grapheme-prev-tests: New file.
13430         * lib/unigbrk.in.h: Add prototype for new function.
13431         * lib/unigbrk/u16-grapheme-prev.c: New file.
13432         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
13433
13434         New module 'u32-grapheme-prev'.
13435         * modules/unigbrk/u32-grapheme-prev: New file.
13436         * modules/unigbrk/u32-grapheme-prev-tests: New file.
13437         * lib/unigbrk.in.h: Add prototype for new function.
13438         * lib/unigbrk/u32-grapheme-prev.c: New file.
13439         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
13440
13441         New module 'u8-grapheme-breaks'.
13442         * modules/unigbrk/u8-grapheme-breaks: New file.
13443         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
13444         * lib/unigbrk.in.h: Add prototype for new function.
13445         * lib/unigbrk/u8-grapheme-breaks.c: New file.
13446         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
13447
13448         New module 'u16-grapheme-breaks'.
13449         * modules/unigbrk/u16-grapheme-breaks: New file.
13450         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
13451         * lib/unigbrk.in.h: Add prototype for new function.
13452         * lib/unigbrk/u16-grapheme-breaks.c: New file.
13453         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
13454
13455         New module 'u32-grapheme-breaks'.
13456         * modules/unigbrk/u32-grapheme-breaks: New file.
13457         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
13458         * lib/unigbrk.in.h: Add prototype for new function.
13459         * lib/unigbrk/u32-grapheme-breaks.c: New file.
13460         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
13461
13462         New module 'ulc-grapheme-breaks'.
13463         * modules/unigbrk/ulc-grapheme-breaks: New file.
13464         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
13465         * m4/locale-ar.m4: New file.
13466         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
13467         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
13468         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
13469
13470 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13471
13472         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
13473         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
13474         modified how this file was generated before I initially submitted
13475         the module, but failed to regenerate it.  This meant that several
13476         of the level2 entries were wrong.
13477         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
13478         Remove the division-by-2 that is folded into the table now that
13479         gbrkprop.h has been regenerated properly.  Now -1 entries are
13480         handled correctly.
13481
13482         New module 'unigbrk/uc-gbrk-prop-tests'.
13483         * modules/unigbrk/uc-gbrk-prop-tests: New file.
13484         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
13485         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
13486         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
13487
13488 2011-01-01  Bruno Haible  <bruno@clisp.org>
13489
13490         Avoid use of hexadecimal escapes.
13491         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
13492         instead of hexadecimal escapes.
13493
13494 2011-01-01  Jim Meyering  <meyering@redhat.com>
13495
13496         maint: new rule to update copyright year ranges
13497         * Makefile (update-copyright): New rule.
13498
13499         maint: indent with TABs in Makefile
13500         * Makefile: Expand leading sequences of spaces to TABs
13501
13502         version-etc: update the copyright year it reports
13503         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
13504
13505 2010-12-31  Bruno Haible  <bruno@clisp.org>
13506
13507         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
13508         * lib/isfinite.c (zerof, zerod, zerol): New variables.
13509         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
13510         zero.
13511
13512 2010-12-31  Bruno Haible  <bruno@clisp.org>
13513
13514         pwrite: Work around HP-UX 11.11 bug.
13515         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
13516         works and set REPLACE_PWRITE if not.
13517         * lib/pwrite.c (pwrite): Add an implementation that uses the system
13518         function.
13519         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
13520
13521 2010-12-31  Bruno Haible  <bruno@clisp.org>
13522
13523         pread: Work around HP-UX 11 bugs.
13524         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
13525         and set REPLACE_PREAD if not.
13526         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
13527
13528 2010-12-31  Eric Blake  <eblake@redhat.com>
13529
13530         nl_langinfo: fix YESEXPR on Irix 6.5
13531         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
13532         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
13533         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
13534         it.
13535
13536 2010-12-31  Bruno Haible  <bruno@clisp.org>
13537
13538         iconv: Document HP-UX 11 bug.
13539         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
13540
13541 2010-12-31  Bruno Haible  <bruno@clisp.org>
13542
13543         ldexpl: Fix link error on HP-UX 11.
13544         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
13545         LDEXPL_LIBM, using $ISNANL_LIBM.
13546
13547 2010-12-31  Eric Blake  <eblake@redhat.com>
13548
13549         ftello: avoid compilation failure with SunStudio c89
13550         * lib/ftello.c (ftello): Use lseek, not llseek.
13551
13552         tests: avoid failing coreutils tests on cygwin
13553         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
13554         (create_exe_shims_): Return 0 when skipping.
13555
13556 2010-12-31  Bruno Haible  <bruno@clisp.org>
13557
13558         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
13559         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
13560
13561 2010-12-31  Bruno Haible  <bruno@clisp.org>
13562
13563         waitpid: Fix link error in C++ mode.
13564         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
13565
13566 2010-12-31  Bruno Haible  <bruno@clisp.org>
13567
13568         isnan: Use GCC built-ins when possible.
13569         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
13570         __builtin_isnan.
13571         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
13572         (isnan): Define using GCC built-ins for GCC >= 4.0.
13573
13574 2010-12-31  Bruno Haible  <bruno@clisp.org>
13575
13576         isnand: Fix mistake.
13577         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
13578         __builtin_isnand.
13579
13580 2010-12-31  Bruno Haible  <bruno@clisp.org>
13581
13582         open: Avoid C++ error on HP-UX 11.
13583         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
13584
13585 2010-12-31  Bruno Haible  <bruno@clisp.org>
13586
13587         time_r: Add missing declarations on HP-UX 11.
13588         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
13589         instead of HAVE_LOCALTIME_R.
13590         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
13591         HAVE_LOCALTIME_R always.
13592         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
13593         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
13594         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
13595         HAVE_LOCALTIME_R.
13596         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
13597         * doc/posix-functions/localtime_r.texi: Likewise.
13598
13599 2010-12-29  Eric Blake  <eblake@redhat.com>
13600
13601         mountlist: tweak previous commit
13602         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
13603         Reported by Paul Eggert.
13604
13605         mountlist: fix local drive detection on cygwin
13606         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
13607         that works for cygwin.
13608
13609 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13610
13611         ftoastr, snprintf: ftoastr + snprintf module
13612         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
13613         since the snprintf module now should be good enough here.
13614         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
13615         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
13616         and gl_MODULE_INDICATOR([snprintf]), but the former enables
13617         GNULIB_SNPRINTF only for the test directory, and the latter
13618         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
13619         seems to suffice by itself.
13620
13621 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13622
13623         alloca: one step towards thread-safety
13624         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
13625         need for a static variable.  All callers changed.  This does not
13626         make the alloca replacement thread-safe, but it's one step.
13627
13628         tests: minor indenting change
13629         * tests/init.sh: Sync from coreutils housekeeping patch
13630         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
13631         to keep lines within 80 columns.
13632
13633 2010-12-28  Jim Meyering  <meyering@redhat.com>
13634
13635         regex: don't infloop on persistent failing calloc
13636         * lib/regexec.c (build_trtable): Return failure indication upon
13637         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13638         In glibc, this was fixed for version 2.13:
13639         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
13640
13641 2010-12-28  Bruno Haible  <bruno@clisp.org>
13642             Paul Eggert <eggert@cs.ucla.edu>
13643
13644         linkat: Make implementation robust against system behaviour variations.
13645         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
13646         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
13647         way, and to -2 if it needs a generic runtime test.
13648         * lib/linkat.c (solaris_optimized_link_immediate,
13649         solaris_optimized_link_follow): New functions.
13650         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
13651         (check_same_link): Use it.
13652
13653 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
13654
13655         New module 'unigbrk/base'.
13656         * modules/unigbrk/base: New file.
13657         * lib/unigbrk.in.h: New file.
13658
13659         New module 'unigbrk/uc-gbrk-prop'.
13660         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
13661         * modules/unigbrk/uc-gbrk-prop: New file.
13662         * lib/unigbrk/gbrkprop.h: New file.
13663         * lib/unigbrk/uc-gbrk-prop.c: New file.
13664
13665         New module 'unigbrk/uc-is-grapheme-break'.
13666         * modules/unigbrk/uc-is-grapheme-break: New file.
13667         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
13668         * lib/unigbrk/uc-is-grapheme-break.c: New file.
13669         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
13670         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
13671         * tests/unigbrk/GraphemeBreakTest.txt: New file.
13672
13673         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
13674
13675 2010-12-27  Bruno Haible  <bruno@clisp.org>
13676
13677         linkat test: Avoid failure on Solaris 11 2010-11.
13678         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
13679
13680 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13681
13682         utimens: work around glibc rounding bug on more platforms
13683         * lib/utimens.c (fdutimens): Work around rounding bug even if
13684         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
13685         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
13686
13687 2010-12-27  Bruno Haible  <bruno@clisp.org>
13688
13689         select tests: Improve comments.
13690         * tests/test-select.c (do_select): Add comments.
13691
13692 2010-12-27  Bruno Haible  <bruno@clisp.org>
13693
13694         select tests: Safer way of handling timeout.
13695         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
13696         at every invocation.
13697
13698 2010-12-27  Bruno Haible  <bruno@clisp.org>
13699
13700         select tests: Use 'bool' where appropriate.
13701         * tests/test-select.c (connect_to_socket): Change argument type to
13702         'bool'.
13703
13704 2010-12-27  Bruno Haible  <bruno@clisp.org>
13705
13706         select tests: Use existing modules.
13707         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
13708         (configure.ac): Don't test for unistd.h.
13709         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
13710         declared in <unistd.h>.
13711
13712 2010-12-27  Bruno Haible  <bruno@clisp.org>
13713
13714         mbrtowc: Work around a Solaris 7 bug.
13715         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
13716         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
13717         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
13718         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
13719         MBRTOWC_NULL_ARG1_BUG.
13720         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
13721         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
13722         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
13723         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
13724
13725 2010-12-27  Jim Meyering  <meyering@redhat.com>
13726
13727         read-file.c: tweak syntax
13728         * lib/read-file.c (fread_file): Remove space after "*" in function
13729         definitions.
13730
13731 2010-12-27  Bruno Haible  <bruno@clisp.org>
13732
13733         times test: Avoid gcc warnings on OSF/1.
13734         * tests/test-times.c (main): Cast printf arguments from clock_t to
13735         'long int'.
13736
13737 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13738
13739         utimens: work around glibc rounding bug on older Linux kernels
13740         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
13741         on Linux with a glibc whose utimes might not work, then work
13742         around a longstanding glibc bug involving rounding rather than
13743         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
13744         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13745
13746 2010-12-26  Bruno Haible  <bruno@clisp.org>
13747
13748         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
13749         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
13750         _GL_CXXALIAS_SYS.
13751         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13752
13753 2010-12-26  Bruno Haible  <bruno@clisp.org>
13754
13755         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
13756         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
13757         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13758         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
13759         looking for the declaration.
13760         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13761         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
13762         problem.
13763         * doc/posix-functions/inet_pton.texi: Likewise.
13764
13765 2010-12-26  Bruno Haible  <bruno@clisp.org>
13766
13767         arpa_inet: Use the common idioms with C++ support.
13768         * lib/arpa_inet.in.h: Include c++defs.h.
13769         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
13770         support.
13771         * modules/arpa_inet (Depends-on): Add c++defs.
13772         (Makefile.am): Substitute the contents of c++defs.h.
13773         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
13774         * modules/arpa_inet-c++-tests: New file.
13775         * tests/test-arpa_inet-c++.cc: New file.
13776
13777 2010-12-25  Bruno Haible  <bruno@clisp.org>
13778
13779         Fix more C++ link errors on Solaris 8.
13780         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
13781         $(LIB_EACCESS).
13782         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
13783         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
13784         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
13785         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
13786         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
13787
13788 2010-12-25  Bruno Haible  <bruno@clisp.org>
13789
13790         printf-posix: Fix link error when a non-GCC compiler is used.
13791         * lib/stdio.in.h (printf): When not using GCC, override printf
13792         correctly.
13793         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13794
13795 2010-12-25  Bruno Haible  <bruno@clisp.org>
13796
13797         strerror_r-posix: Update doc.
13798         * doc/posix-functions/strerror_r.texi: Update doc about the return
13799         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
13800
13801 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13802
13803         utimens: simplify the logic of the previous change
13804         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
13805         This should not affect whether the test succeeds or fails.
13806
13807         utimens: configure better on hosts with NFS clock skew
13808         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
13809         uses the clock of the local host.  It might use the clock of the
13810         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
13811         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13812
13813 2010-12-25  Bruno Haible  <bruno@clisp.org>
13814
13815         ptsname test: Avoid failure on Solaris.
13816         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
13817         open a pseudo-terminal; don't use BSD-style ptys.
13818         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
13819
13820 2010-12-25  Bruno Haible  <bruno@clisp.org>
13821
13822         ptsname: Avoid ERANGE failure on some systems.
13823         * lib/ptsname.c (buffer): Increase size.
13824
13825 2010-12-25  Bruno Haible  <bruno@clisp.org>
13826
13827         rename, renameat: Avoid test failures at NFS mounted locations.
13828         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
13829         so that subsequent mkdir calls succeed.
13830
13831 2010-12-25  Bruno Haible  <bruno@clisp.org>
13832
13833         iswblank: Fix C++ link error on Solaris 8.
13834         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
13835         _GL_FUNCDECL_SYS.
13836
13837 2010-12-25  Bruno Haible  <bruno@clisp.org>
13838
13839         unistd: Fix C++ link error on Solaris 8.
13840         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
13841
13842 2010-12-25  Bruno Haible  <bruno@clisp.org>
13843
13844         readlink doc: Mention an old glibc bug.
13845         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
13846
13847 2010-12-25  Bruno Haible  <bruno@clisp.org>
13848
13849         fcntl-h: Fix for use of C++ on glibc systems.
13850         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13851         also on glibc systems in C++ mode.
13852         Reported by Gary V. Vaughan <gary@gnu.org>.
13853
13854 2010-12-25  Bruno Haible  <bruno@clisp.org>
13855
13856         roundl-ieee: Make it work on OSF/1 5.1 with cc.
13857         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
13858
13859 2010-12-25  Bruno Haible  <bruno@clisp.org>
13860
13861         truncl-ieee: Make it work on OSF/1 5.1 with cc.
13862         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
13863         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
13864         test whether truncl works according to ISO C 99 with IEC 60559.
13865         * m4/truncl-ieee.m4: New file.
13866         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
13867         m4/signbit.m4.
13868         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
13869
13870 2010-12-25  Bruno Haible  <bruno@clisp.org>
13871
13872         ceill-ieee: Make it work on OSF/1 5.1 with cc.
13873         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
13874         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
13875         test whether ceill works according to ISO C 99 with IEC 60559.
13876         * m4/ceill-ieee.m4: New file.
13877         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
13878         m4/signbit.m4.
13879         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
13880
13881 2010-12-25  Bruno Haible  <bruno@clisp.org>
13882
13883         Ensure all prerequisites of <wchar.h> are included.
13884         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
13885         before <wchar.h>.
13886         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13887         gl_MBRLEN_NUL_RETVAL): Likewise.
13888         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13889         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
13890         AC_FUNC_MBRTOWC): Likewise.
13891         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13892         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13893         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13894         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13895         Likewise.
13896         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13897         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
13898         (gl_WCHAR_H): Improve comments.
13899         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13900
13901 2010-12-25  Bruno Haible  <bruno@clisp.org>
13902
13903         strtok_r: Fix C syntax error in autoconf macro.
13904         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13905         characters in test program.
13906
13907 2010-12-24  Bruno Haible  <bruno@clisp.org>
13908
13909         ceil, trunc, round: Fix gcc warnings.
13910         * lib/ceil.c (MIN): Undefine before redefining.
13911         * lib/trunc.c (MIN): Likewise.
13912         * lib/round.c (MIN): Likewise.
13913         Include <math.h> first.
13914
13915 2010-12-24  Bruno Haible  <bruno@clisp.org>
13916
13917         select tests: Avoid failures on OSF/1 5.1.
13918         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13919         failure of closing the last socket; it may fail with ECONNRESET.
13920
13921 2010-12-24  Eric Blake  <eblake@redhat.com>
13922
13923         stdint: avoid HP-UX 10.20 preprocessor bug
13924         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13925         than #if.
13926         * tests/test-floor2.c (main): Likewise.
13927         Reported by Peter O'Gorman.
13928
13929         pipe: make obsoletion transition easier
13930         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13931         * modules/pipe (Files): Include revived file.
13932         (Include): Drop reference, to mirror getdate's behavior.
13933
13934 2010-12-24  Bruno Haible  <bruno@clisp.org>
13935
13936         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13937         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13938         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13939         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13940
13941 2010-12-24  Bruno Haible  <bruno@clisp.org>
13942
13943         gethostname: Ensure declaration on NonStop Kernel.
13944         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13945         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13946
13947 2010-12-24  Bruno Haible  <bruno@clisp.org>
13948
13949         sys_select: Ensure all necessary types on NonStop Kernel.
13950         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13951         include <sys/time.h>.
13952         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13953         NonStop Kernel.
13954         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13955
13956 2010-12-24  Bruno Haible  <bruno@clisp.org>
13957
13958         sys_select: Remove unneeded include.
13959         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13960         have <sys/select.h>.
13961
13962 2010-12-24  Bruno Haible  <bruno@clisp.org>
13963
13964         gethostname: Provide a fallback for HOST_NAME_MAX.
13965         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13966         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13967         instead.
13968         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13969
13970 2010-12-24  Bruno Haible  <bruno@clisp.org>
13971
13972         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13973         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13974         (SA_RESTART): Likewise.
13975         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13976
13977 2010-12-24  Bruno Haible  <bruno@clisp.org>
13978
13979         signal: Define NSIG.
13980         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13981         * tests/test-signal.c (nsig): New variable.
13982         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13983
13984 2010-12-24  Bruno Haible  <bruno@clisp.org>
13985
13986         rename, renameat: Avoid test failures on OSF/1 5.1.
13987         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13988         alternative error codes.
13989         * tests/test-renameat.c (main): Likewise.
13990
13991 2010-12-24  Bruno Haible  <bruno@clisp.org>
13992
13993         *printf: Detect large precisions bug on Solaris 10/SPARC.
13994         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13995         by Paul Eggert.
13996         * tests/test-snprintf-posix.h (test_function): Add this test code here
13997         too.
13998         * tests/test-sprintf-posix.h (test_function): Likewise.
13999         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14000         * tests/test-vasprintf-posix.c (test_function): Likewise.
14001         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
14002         around by gnulib.
14003         * doc/posix-functions/printf.texi: Likewise.
14004         * doc/posix-functions/snprintf.texi: Likewise.
14005         * doc/posix-functions/sprintf.texi: Likewise.
14006         * doc/posix-functions/vfprintf.texi: Likewise.
14007         * doc/posix-functions/vprintf.texi: Likewise.
14008         * doc/posix-functions/vsnprintf.texi: Likewise.
14009         * doc/posix-functions/vsprintf.texi: Likewise.
14010         * doc/posix-functions/dprintf.texi: Undo last commit.
14011         * doc/posix-functions/vdprintf.texi: Likewise.
14012
14013 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14014
14015         tests: port test-fdutimensat.c to Solaris 8
14016         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
14017         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
14018         On Solaris 8, it fails with errno == ENOSYS, because there is no
14019         futimens (so it can't use the fd), and there is no lutimens (so it
14020         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
14021
14022         vsnprintf: make more consistent with snprintf; doc fixes
14023
14024         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
14025         the byte count return problem was promoted from the snprintf-posix
14026         to the snprintf module.
14027         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14028         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
14029         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
14030         * tests/test-snprintf.c (main): Check the byte count returned.
14031         * tests/test-vsnprintf.c (main): Likewise.
14032
14033 2010-12-23  Eric Blake  <eblake@redhat.com>
14034
14035         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
14036         * modules/sigpipe (License): Relax license.
14037
14038 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14039
14040         doc: document Solaris printf bug with large float precisions
14041         * doc/posix-functions/dprintf.texi (dprintf):
14042         * doc/posix-functions/fprintf.texi (fprintf):
14043         * doc/posix-functions/printf.texi (printf):
14044         * doc/posix-functions/snprintf.texi (snprintf):
14045         * doc/posix-functions/sprintf.texi (sprintf):
14046         * doc/posix-functions/vdprintf.texi (vdprintf):
14047         * doc/posix-functions/vfprintf.texi (vfprintf):
14048         * doc/posix-functions/vprintf.texi (vprintf):
14049         * doc/posix-functions/vsnprintf.texi (vsnprintf):
14050         * doc/posix-functions/vsprintf.texi (vsprintf):
14051         Mention that these functions mishandle large floating point
14052         precisions on Solaris 10.  The same bug is also present in Solaris
14053         8, and I assume earlier.  This causes "cd gnulib-tests; make
14054         check" to fail on Solaris 8 (and I assume, later) when building
14055         the latest coreutils, in test-vasprintf-posix's call to
14056         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
14057         the wide flavors (e.g., wprintf) so this patch just updates the
14058         documentation for the narrow ones.
14059
14060         test-posixtm.c: add two tests
14061         * tests/test-posixtm.c: Add two tests, to highlight the
14062         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
14063         around this bug; this is merely to document it.
14064
14065 2010-12-22  Bruno Haible  <bruno@clisp.org>
14066
14067         getlogin_r: Work around portability problem on OSF/1.
14068         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
14069         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
14070         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
14071         test for a truncated result.
14072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
14073         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
14074         * modules/getlogin_r (Depends-on): Add memchr.
14075         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
14076
14077 2010-12-22  Bruno Haible  <bruno@clisp.org>
14078
14079         ptsname: Avoid test failure on OSF/1 5.1.
14080         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
14081         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
14082         (same_slave): New function.
14083         (main): Use it to compare ptsname's result with the expected file name.
14084
14085 2010-12-22  Bruno Haible  <bruno@clisp.org>
14086
14087         Port extended stdio modules to HP NonStop Kernel.
14088         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
14089         macros.
14090         * lib/fbufmode.c: Update comments.
14091         * lib/fflush.c: Likewise.
14092         * lib/fpurge.c: Likewise.
14093         * lib/freadable.c: Likewise.
14094         * lib/freadahead.c: Likewise.
14095         * lib/freading.c: Likewise.
14096         * lib/freadptr.c: Likewise.
14097         * lib/freadseek.c: Likewise.
14098         * lib/fseeko.c: Likewise.
14099         * lib/fseterr.c: Likewise.
14100         * lib/fwritable.c: Likewise.
14101         * lib/fwriting.c: Likewise.
14102         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14103
14104 2010-12-22  Bruno Haible  <bruno@clisp.org>
14105
14106         ttyname_r: Work around bug on OSF/1 5.1.
14107         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
14108         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
14109         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
14110         present.
14111         * lib/ttyname_r.c (ttyname_r): Update comments.
14112
14113 2010-12-22  Bruno Haible  <bruno@clisp.org>
14114
14115         round: Implement result sign according to IEEE 754.
14116         * lib/round.c (MIN, MINUS_ZERO): New macros.
14117         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
14118         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
14119         * tests/test-round-ieee.c (main): Likewise.
14120         * tests/test-roundl-ieee.c (main): Likewise.
14121
14122         trunc: Implement result sign according to IEEE 754.
14123         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
14124         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
14125         * tests/test-trunc2.c: Include minus-zero.h.
14126         (MINUS_ZERO): New macro.
14127         (trunc_reference): Keep in sync with lib/trunc.c.
14128         * tests/test-truncf2.c: Include minus-zero.h.
14129         (MINUS_ZERO): New macro.
14130         (truncf_reference): Keep in sync with lib/trunc.c.
14131         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
14132         * tests/test-trunc-ieee.c (main): Likewise.
14133         * tests/test-truncl-ieee.c (main): Likewise.
14134
14135         ceil: Implement result sign according to IEEE 754.
14136         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
14137         (FUNC): Return -0.0 for -1 < x < 0.
14138         * tests/test-ceil2.c: Include minus-zero.h.
14139         (MINUS_ZERO): New macro.
14140         (ceil_reference): Keep in sync with lib/ceil.c.
14141         * tests/test-ceilf2.c: Include minus-zero.h.
14142         (MINUS_ZERO): New macro.
14143         (ceilf_reference): Keep in sync with lib/ceil.c.
14144         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
14145         * tests/test-ceil-ieee.c (main): Likewise.
14146         * tests/test-ceill-ieee.c (main): Likewise.
14147
14148         floor: Implement result sign according to IEEE 754.
14149         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
14150         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
14151         * tests/test-floorf2.c (floorf_reference): Likewise.
14152         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
14153         * tests/test-floor-ieee.c (main): Likewise.
14154         * tests/test-floorl-ieee.c (main): Likewise.
14155
14156 2010-12-22  Bruno Haible  <bruno@clisp.org>
14157
14158         getaddrinfo: Update doc.
14159         * doc/posix-functions/gai_strerror.texi: Return type is also different
14160         on AIX and HP-UX.
14161
14162 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14163
14164         getaddrinfo, inet_ntop: Update doc for Solaris.
14165         * doc/posix-functions/gai_strerror.texi: Return type is also an
14166         issue on Solaris 9 and earlier.
14167         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
14168         on Solaris 10 and earlier.
14169
14170 2010-12-21  Bruno Haible  <bruno@clisp.org>
14171
14172         New module 'roundl-ieee'.
14173         * modules/roundl-ieee: New file.
14174         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
14175         test whether roundl works according to ISO C 99 with IEC 60559.
14176         * m4/roundl-ieee.m4: New file.
14177         * modules/roundl-ieee-tests: New file.
14178         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
14179         * tests/test-roundl.c (main): Remove signbit tests.
14180         * modules/roundl-tests (Depends-on): Remove signbit.
14181         * doc/posix-functions/roundl.texi: Mention the new module.
14182
14183 2010-12-21  Bruno Haible  <bruno@clisp.org>
14184
14185         New module 'truncl-ieee'.
14186         * modules/truncl-ieee: New file.
14187         * modules/truncl-ieee-tests: New file.
14188         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
14189         * tests/test-truncl.c (main): Remove signbit tests.
14190         * modules/truncl-tests (Depends-on): Remove signbit.
14191         * doc/posix-functions/truncl.texi: Mention the new module.
14192
14193 2010-12-21  Bruno Haible  <bruno@clisp.org>
14194
14195         New module 'ceill-ieee'.
14196         * modules/ceill-ieee: New file.
14197         * modules/ceill-ieee-tests: New file.
14198         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
14199         * tests/test-ceill.c (main): Remove signbit tests.
14200         * modules/ceill-tests (Depends-on): Remove signbit.
14201         * doc/posix-functions/ceill.texi: Mention the new module.
14202
14203 2010-12-21  Bruno Haible  <bruno@clisp.org>
14204
14205         New module 'floorl-ieee'.
14206         * modules/floorl-ieee: New file.
14207         * modules/floorl-ieee-tests: New file.
14208         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
14209         * tests/test-floorl.c (main): Remove signbit tests.
14210         * modules/floorl-tests (Depends-on): Remove signbit.
14211         * doc/posix-functions/floorl.texi: Mention the new module.
14212
14213 2010-12-21  Bruno Haible  <bruno@clisp.org>
14214
14215         New module 'round-ieee'.
14216         * modules/round-ieee: New file.
14217         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
14218         whether round works according to ISO C 99 with IEC 60559.
14219         * m4/round-ieee.m4: New file.
14220         * modules/round-ieee-tests: New file.
14221         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
14222         * tests/test-round1.c (main): Remove signbit tests.
14223         * modules/round-tests (Depends-on): Remove 'signbit'.
14224         * doc/posix-functions/round.texi: Mention the new module.
14225
14226 2010-12-21  Bruno Haible  <bruno@clisp.org>
14227
14228         New module 'trunc-ieee'.
14229         * modules/trunc-ieee: New file.
14230         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
14231         whether trunc works according to ISO C 99 with IEC 60559.
14232         * m4/trunc-ieee.m4: New file.
14233         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
14234         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
14235         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
14236         * modules/trunc-ieee-tests: New file.
14237         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
14238         * tests/test-trunc1.c (main): Remove signbit tests.
14239         * modules/trunc-tests (Depends-on): Remove 'signbit'.
14240         * doc/posix-functions/trunc.texi: Mention the new module.
14241
14242 2010-12-21  Bruno Haible  <bruno@clisp.org>
14243
14244         New module 'ceil-ieee'.
14245         * modules/ceil-ieee: New file.
14246         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
14247         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
14248         ISO C 99 with IEC 60559.
14249         * m4/ceil-ieee.m4: New file.
14250         * modules/ceil (Files): Add lib/ceil.c.
14251         (Depends-on): Add 'float'.
14252         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14253         * lib/math.in.h (ceil): New declaration.
14254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
14255         REPLACE_CEIL.
14256         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
14257         * modules/ceil-ieee-tests: New file.
14258         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
14259         * tests/test-math-c++.cc: Check the signature of 'ceil'.
14260         * doc/posix-functions/ceil.texi: Mention the new module.
14261
14262 2010-12-21  Bruno Haible  <bruno@clisp.org>
14263
14264         New module 'floor-ieee'.
14265         * modules/floor-ieee: New file.
14266         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
14267         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
14268         ISO C 99 with IEC 60559.
14269         * m4/floor-ieee.m4: New file.
14270         * modules/floor (Files): Add lib/floor.c.
14271         (Depends-on): Add 'float'.
14272         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14273         * lib/math.in.h (floor): New declaration.
14274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
14275         REPLACE_FLOOR.
14276         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
14277         * modules/floor-ieee-tests: New file.
14278         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
14279         * tests/test-math-c++.cc: Check the signature of 'floor'.
14280         * doc/posix-functions/floor.texi: Mention the new module.
14281
14282 2010-12-21  Bruno Haible  <bruno@clisp.org>
14283
14284         New module 'roundf-ieee'.
14285         * modules/roundf-ieee: New file.
14286         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
14287         test whether roundf works according to ISO C 99 with IEC 60559.
14288         * m4/roundf-ieee.m4: New file.
14289         * modules/roundf-ieee-tests: New file.
14290         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
14291         * tests/test-roundf1.c (main): Remove signbit tests.
14292         * modules/roundf-tests (Depends-on): Remove 'signbit'.
14293         * doc/posix-functions/roundf.texi: Mention the new module.
14294
14295 2010-12-21  Bruno Haible  <bruno@clisp.org>
14296
14297         New module 'truncf-ieee'.
14298         * modules/truncf-ieee: New file.
14299         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
14300         test whether truncf works according to ISO C 99 with IEC 60559.
14301         * m4/truncf-ieee.m4: New file.
14302         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
14303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
14304         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
14305         * modules/truncf-ieee-tests: New file.
14306         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
14307         * tests/test-truncf1.c (main): Remove signbit tests.
14308         * modules/truncf-tests (Depends-on): Remove 'signbit'.
14309         * doc/posix-functions/truncf.texi: Mention the new module.
14310
14311 2010-12-21  Bruno Haible  <bruno@clisp.org>
14312
14313         New module 'ceilf-ieee'.
14314         * modules/ceilf-ieee: New file.
14315         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
14316         test whether ceilf works according to ISO C 99 with IEC 60559.
14317         * m4/ceilf-ieee.m4: New file.
14318         * modules/ceilf-ieee-tests: New file.
14319         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
14320         * tests/test-ceilf1.c (main): Remove signbit tests.
14321         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
14322         * doc/posix-functions/ceilf.texi: Mention the new module.
14323
14324 2010-12-21  Bruno Haible  <bruno@clisp.org>
14325
14326         New module 'floorf-ieee'.
14327         * modules/floorf-ieee: New file.
14328         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
14329         test whether floorf works according to ISO C 99 with IEC 60559.
14330         * m4/floorf-ieee.m4: New file.
14331         * modules/floorf-ieee-tests: New file.
14332         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
14333         * tests/test-floorf1.c (main): Remove signbit tests.
14334         * modules/floorf-tests (Depends-on): Remove 'signbit'.
14335         * doc/posix-functions/floorf.texi: Mention the new module.
14336
14337 2010-12-21  Bruno Haible  <bruno@clisp.org>
14338
14339         Support for minus zero in autoconf macros.
14340         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
14341         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
14342         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
14343         * tests/minus-zero.h: Update comments.
14344
14345 2010-12-21  Bruno Haible  <bruno@clisp.org>
14346
14347         Tests for module 'ceil'.
14348         * modules/ceil-tests: New file.
14349         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
14350         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
14351
14352 2010-12-21  Bruno Haible  <bruno@clisp.org>
14353
14354         Tests for module 'floor'.
14355         * modules/floor-tests: New file.
14356         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
14357         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
14358
14359 2010-12-21  Bruno Haible  <bruno@clisp.org>
14360
14361         math: Fix indentation.
14362         * lib/math.in.h (floorf): Fix indentation.
14363
14364 2010-12-21  Bruno Haible  <bruno@clisp.org>
14365
14366         Fix cross-compilation guesses on Solaris.
14367         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
14368         not match "solaris2.10".
14369         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14370         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
14371         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14372
14373 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
14374
14375         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
14376         This fixes a problem observed with the latest coreutils snapshot
14377         that caused a test to fail on Solaris 8.  src/csplit.c's call
14378         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
14379         earlier, instead of returning the number of bytes that would have
14380         been generated; this causes csplit to incorrectly report memory
14381         exhaustion.
14382         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
14383         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
14384         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
14385         comments to match.
14386         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
14387         Fix typo in matching older versions of Solaris: "solaris2.10"
14388         is matched by the shell pattern "solaris2.[0-9]*".  This matters
14389         only for guessing while cross-compiling.
14390         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
14391
14392 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14393
14394         ftoastr: fix comment again
14395         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14396         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
14397         Also, simplify example a bit by using flags = 0.
14398
14399 2010-12-20  Bruno Haible  <bruno@clisp.org>
14400
14401         round*, trunc*: Update documentation regarding glibc.
14402         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
14403         * doc/posix-functions/round.texi: Likewise.
14404         * doc/posix-functions/roundl.texi: Likewise.
14405         * doc/posix-functions/truncf.texi: Likewise.
14406         * doc/posix-functions/trunc.texi: Likewise.
14407         * doc/posix-functions/truncl.texi: Likewise.
14408
14409 2010-12-20  Bruno Haible  <bruno@clisp.org>
14410
14411         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
14412         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
14413         * doc/posix-functions/round.texi: Likewise.
14414         * doc/posix-functions/roundl.texi: Likewise.
14415
14416 2010-12-20  Bruno Haible  <bruno@clisp.org>
14417
14418         ttyname_r: Add missing declaration on HP-UX 11.
14419         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
14420         HAVE_TTYNAME_R.
14421         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
14422         declared. Set HAVE_TTYNAME_R always.
14423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14424         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
14425         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
14426         HAVE_TTYNAME_R.
14427         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
14428
14429 2010-12-20  Bruno Haible  <bruno@clisp.org>
14430
14431         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
14432         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
14433         * doc/posix-functions/getlogin_r.texi: Likewise.
14434         * tests/test-getlogin.c: Include <errno.h>.
14435         (main): Avoid test failure on HP-UX 11.11.
14436         * tests/test-getlogin_r.c (main): Likewise.
14437
14438 2010-12-20  Bruno Haible  <bruno@clisp.org>
14439
14440         getlogin_r: Add missing declaration on HP-UX 11.
14441         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
14442         declared also when it exists as a function.
14443         * doc/posix-functions/getlogin_r.texi: Document this workaround.
14444
14445 2010-12-20  Bruno Haible  <bruno@clisp.org>
14446
14447         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
14448         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
14449         through wcrtomb.
14450
14451 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14452
14453         ftoastr: fix comment
14454         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14455         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
14456
14457 2010-12-19  Bruno Haible  <bruno@clisp.org>
14458
14459         isnan: Ensure it is a macro.
14460         * lib/math.in.h (isnan): Define as a macro if not already a macro.
14461         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
14462         Solaris.
14463
14464 2010-12-19  Bruno Haible  <bruno@clisp.org>
14465
14466         ldexpl test: Fix link error on OSF/1 5.1.
14467         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
14468
14469 2010-12-19  Bruno Haible  <bruno@clisp.org>
14470
14471         wctype: Make it work in C++ mode on OSF/1 5.1.
14472         * lib/wctype.in.h (iswblank): Declare but not define here.
14473         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
14474         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
14475         * modules/wctype (Files): Add lib/iswblank.c.
14476
14477 2010-12-19  Bruno Haible  <bruno@clisp.org>
14478
14479         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
14480         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
14481         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
14482
14483 2010-12-19  Bruno Haible  <bruno@clisp.org>
14484
14485         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
14486         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
14487         _POSIX_PII_SOCKET.
14488         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
14489         * doc/posix-functions/recvfrom.texi: Likewise.
14490         * doc/posix-functions/send.texi: Likewise.
14491         * doc/posix-functions/sendto.texi: Likewise.
14492
14493 2010-12-19  Bruno Haible  <bruno@clisp.org>
14494
14495         tcgetsid: Add missing declaration on OSF/1 5.1.
14496         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
14497         HAVE_TCGETSID.
14498         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
14499         Don't set HAVE_TCGETSID.
14500         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
14501         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
14502         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
14503         HAVE_TCGETSID.
14504         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
14505
14506 2010-12-19  Bruno Haible  <bruno@clisp.org>
14507
14508         stdio: Fix problem with popen() declaration on OSF/1 5.1.
14509         * lib/stdio.in.h: During the include_next statement, let recursive
14510         includes of this file include only the system header file.
14511
14512 2010-12-19  Bruno Haible  <bruno@clisp.org>
14513
14514         iconv_open: Fix regression from 2010-12-04.
14515         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
14516         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
14517
14518 2010-12-19  Bruno Haible  <bruno@clisp.org>
14519
14520         stdbool test: Avoid a gcc warning.
14521         * tests/test-stdbool.c (main): Fail if e1 is false.
14522         Reported by Jim Meyering.
14523
14524 2010-12-19  Jim Meyering  <meyering@redhat.com>
14525
14526         setenv: restore to working order
14527         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
14528         mistakenly removed.
14529         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
14530         HAVE_SETENV.
14531         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
14532         HAVE_SETENV.
14533
14534 2010-12-19  Bruno Haible  <bruno@clisp.org>
14535
14536         Document some different function declarations on OSF/1 5.1.
14537         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
14538         * doc/posix-functions/inet_ntop.texi: Likewise.
14539         * doc/posix-functions/gethostname.texi: Likewise.
14540         * lib/unistd.in.h (gethostname): Update comment.
14541
14542 2010-12-19  Bruno Haible  <bruno@clisp.org>
14543
14544         doc: Mention vasprintf-posix module.
14545         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
14546         the 'vasprintf-posix' module.
14547         * doc/glibc-functions/vasprintf.texi: Likewise.
14548
14549 2010-12-19  Bruno Haible  <bruno@clisp.org>
14550
14551         unsetenv: Add missing declaration on OSF/1 5.1.
14552         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
14553         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
14554         Don't set HAVE_UNSETENV. In the test program, set _BSD.
14555         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
14556         not HAVE_UNSETENV.
14557         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
14558         HAVE_UNSETENV.
14559         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
14560
14561 2010-12-19  Bruno Haible  <bruno@clisp.org>
14562
14563         setenv: Add missing declaration on OSF/1 5.1.
14564         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
14565         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
14566         declared. Don't set HAVE_SETENV.
14567         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
14568         not HAVE_SETENV.
14569         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
14570         HAVE_SETENV.
14571         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
14572
14573 2010-12-19  Bruno Haible  <bruno@clisp.org>
14574
14575         nl_langinfo tests: Avoid gcc warning.
14576         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
14577
14578 2010-12-19  Bruno Haible  <bruno@clisp.org>
14579
14580         mknod: Avoid error in C++ mode on OSF/1 with GCC.
14581         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
14582         _GL_CXXALIAS_SYS.
14583
14584 2010-12-19  Bruno Haible  <bruno@clisp.org>
14585
14586         stdbool: Relax test.
14587         * tests/test-stdbool.c (e): Don't require that casts from a variable's
14588         address to 'bool' work in static initializer, for compilers other than
14589         GCC.
14590
14591 2010-12-19  Bruno Haible  <bruno@clisp.org>
14592
14593         ftello: Add missing declaration on OSF/1 5.1.
14594         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
14595         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
14596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
14597         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
14598         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
14599
14600 2010-12-19  Bruno Haible  <bruno@clisp.org>
14601
14602         fseeko: Add missing declaration on OSF/1 5.1.
14603         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
14604         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
14605         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
14606         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
14607         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
14608
14609 2010-12-19  Bruno Haible  <bruno@clisp.org>
14610
14611         fchdir: Add missing declaration on OSF/1 5.1.
14612         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
14613         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
14614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
14615         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
14616         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
14617
14618 2010-12-19  Bruno Haible  <bruno@clisp.org>
14619
14620         relocatable-prog-wrapper: Separate from relocatable-prog.
14621         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
14622         uninstall-relocwrapper rule here.
14623         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
14624         Reported by Ian Beckwith <ianb@erislabs.net>.
14625
14626 2010-12-19  Bruno Haible  <bruno@clisp.org>
14627
14628         unistr/u8-mbsnlen: Add missing dependency.
14629         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
14630         Reported by Ian Beckwith <ianb@erislabs.net>.
14631
14632 2010-12-19  Bruno Haible  <bruno@clisp.org>
14633
14634         iconv: Make it possible again to use this module without 'iconv-h'.
14635         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
14636         if it is not defined.
14637         Reported by Ian Beckwith <ianb@erislabs.net>.
14638
14639 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14640
14641         acl: port to Solaris 8 when copying from tmpfs to ufs
14642         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
14643         error number.  Problem observed on Solaris 8 with latest
14644         coreutils, with "mv A B", where A is on a tmpfs file system and B
14645         is on a ufs file system.  This caused coreutils' mv/part-symlink
14646         test to fail.
14647
14648         tests: set fail=0 at start
14649         * tests/init.sh (setup_): Move fail=0 initialization here ...
14650         (mktempd_): ... from here, so that tests can rely on fail being
14651         set to 0 initially.  This fixes a problem in coreutils; see:
14652         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
14653
14654 2010-12-18  Bruno Haible  <bruno@clisp.org>
14655
14656         memmem-simple: Stylistic changes.
14657         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
14658         Fix preprocessor directive indentation.
14659
14660 2010-12-15  Pádraig Brady <P@draigBrady.com>
14661
14662         memmem, memmem-simple: reorganize and expand empty needle check
14663         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
14664         functional checks to memmem-simple so that one has a fully functional
14665         memmem by using just this module.
14666         Restrict the performance only check to the memmem module.
14667         Also expand the empty needle check to ensure the correct
14668         pointer is returned, not just a non NULL pointer.
14669         * doc/glibc-functions/memmem.texi: Rearrange the portability
14670         documentation to correlate with the rearranged checks.
14671         Clarify exactly how the memmem and memmem-simple modules
14672         relate to each other.
14673
14674 2010-12-15  Pádraig Brady <P@draigBrady.com>
14675             Bruno Haible  <bruno@clisp.org>
14676
14677         Improve cross-compilation guesses for uClibc.
14678         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
14679         that uClibc does not have the glibc bug.
14680         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14681         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
14682
14683 2010-12-14  Eric Blake  <eblake@redhat.com>
14684
14685         configmake: provide fallbacks for oldest supported autotools
14686         * m4/configmake.m4: New file.
14687         * modules/configmake (Files): Ship it.
14688         (configure.ac): Use it to guarantee fallbacks.
14689
14690 2010-12-13  Pádraig Brady <P@draigBrady.com>
14691
14692         read-file: Improve handling of large files
14693         * lib/read-file.c (fread_file): Minimize realloc()s
14694         for regular files, and better manage sizes around SIZE_MAX.
14695
14696 2010-12-13  Eric Blake  <eblake@redhat.com>
14697
14698         cloexec, fcntl: relax license
14699         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
14700         consent from all contributors.
14701         * modules/fcntl (License): Likewise.
14702
14703 2010-12-10  Bruno Haible  <bruno@clisp.org>
14704
14705         Tests for module 'pipe-posix'.
14706         * modules/pipe-posix-tests: New file.
14707         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
14708
14709 2010-12-10  Bruno Haible  <bruno@clisp.org>
14710
14711         pipe-posix: Make it work in C++ mode.
14712         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
14713         (pipe): Use common idiom, not a macro definition.
14714         * lib/pipe.c: New file.
14715         * m4/pipe.m4: New file.
14716         * modules/pipe-posix (Description): Enhance.
14717         (Files): Add lib/pipe.c, m4/pipe.m4.
14718         (configure.ac): Invoke gl_FUNC_PIPE.
14719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
14720         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
14721         * tests/test-unistd-c++.cc: Check the signature of pipe.
14722
14723 2010-12-10  Bruno Haible  <bruno@clisp.org>
14724
14725         Rename module 'pipe' to 'spawn-pipe'.
14726         * modules/spawn-pipe: New file, renamed from modules/pipe.
14727         (Files, configure.ac, Makefile.am): Update.
14728         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
14729         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
14730         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
14731         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
14732         "spawn-pipe.h" instead of "pipe.h".
14733         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
14734         to gl_SPAWN_PIPE.
14735         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
14736         (Files, Makefile.am): Update.
14737         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
14738         Update.
14739         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
14740         Include "spawn-pipe.h" instead of "pipe.h".
14741         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
14742         * lib/javacomp.c: Likewise.
14743         * lib/javaversion.c: Likewise.
14744         * lib/pipe-filter-gi.c: Likewise.
14745         * lib/pipe-filter-ii.c: Likewise.
14746         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
14747         * modules/javacomp (Depends-on): Likewise.
14748         * modules/javaversion (Depends-on): Likewise.
14749         * modules/pipe-filter-gi (Depends-on): Likewise.
14750         * modules/pipe-filter-ii (Depends-on): Likewise.
14751         * MODULES.html.sh (Executing programs): Update.
14752         * NEWS: Mention the change.
14753
14754 2010-12-10  Eric Blake  <eblake@redhat.com>
14755
14756         pipe-posix: new module
14757         * modules/pipe-posix: New file.
14758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
14759         (gl_UNISTD_H): Check for declaration.
14760         * modules/unistd (Makefile.am): Substitute it.
14761         * lib/unistd.in.h (pipe): Provide it for mingw.
14762         * doc/posix-functions/pipe.texi (pipe): Update documentation.
14763         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
14764
14765 2010-12-07  Bruno Haible  <bruno@clisp.org>
14766
14767         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
14768         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
14769         u8_strcmp_gnu.
14770         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
14771
14772 2010-12-06  Bruno Haible  <bruno@clisp.org>
14773
14774         Update internal documentation.
14775         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
14776
14777 2010-12-04  Bruno Haible  <bruno@clisp.org>
14778
14779         Put more information about failed tests into the test return codes.
14780         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
14781         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
14782         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14783         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14784         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14785         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14786         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14787         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14788         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
14789         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14790         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
14791         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14792         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14793         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14794         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
14795         returns a bit mask.
14796         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14797         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
14798         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
14799         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14800         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14801         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14802         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14803         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14804         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14805         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14806         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14807         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14808         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14809         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14810         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14811         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14812         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
14813         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
14814         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14815         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
14816         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14817         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14818         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14819         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14820         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14821         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14822         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
14823         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14824         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14825         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
14826         gl_PRINTF_PRECISION): Likewise.
14827         * m4/regex.m4 (gl_REGEX): Likewise.
14828         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14829         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14830         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
14831         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14832         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14833         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14834         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14835         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
14836         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14837         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14838         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14839         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14840         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14841         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14842         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14843         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14844         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14845         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14846         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14847         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
14848         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
14849         enumerated value.
14850         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
14851
14852 2010-12-04  Bruno Haible  <bruno@clisp.org>
14853
14854         Update for Solaris 11 2010-11.
14855         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
14856         Express, released in November 2010.
14857
14858 2010-12-04  Bruno Haible  <bruno@clisp.org>
14859
14860         nproc: Relax license.
14861         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
14862         and Paul Eggert.
14863         Requested by Ludovic Courtès <ludo@gnu.org>.
14864
14865 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
14866
14867         utimecmp: fine-grained src to nearby coarse-grained dest
14868
14869         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
14870         and the source is on a file system with higher-resolution time
14871         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
14872         not work, and the time stamps are close together, the algorithm to
14873         determine the exact resolution from the read-back mtime was buggy:
14874         it had a "!=" where it should have had an "==".  This bug has been
14875         in the code ever since it was introduced to gnulib.
14876         Problem reported by Dan Jacobson in
14877         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
14878
14879 2010-11-30  Bruno Haible  <bruno@clisp.org>
14880
14881         strerror_r-posix: Fix autoconf test.
14882         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
14883
14884 2010-11-28  Bruno Haible  <bruno@clisp.org>
14885             Paul Eggert  <eggert@cs.ucla.edu>
14886
14887         Tests for module 'getdomainname'.
14888         * modules/getdomainname-tests: New file.
14889         * tests/test-getdomainname.c: New file, based on
14890         tests/test-gethostname.c.
14891
14892 2010-11-28  Bruno Haible  <bruno@clisp.org>
14893             Paul Eggert  <eggert@cs.ucla.edu>
14894
14895         getdomainname: Use the system function when possible.
14896         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
14897         (getdomainname): Replace if needed. Provide the declaration if it is
14898         missing. Don't use _GL_CXXALIAS_SYS_CAST.
14899         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
14900         (getdomainname): When the system has getdomainname, call the system
14901         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14902         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14903         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14904         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14905         the function if its second argument is of type 'int' or if it is found
14906         in libnsl.
14907         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14908         <sys/systeminfo.h> and sysinfo().
14909         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14911         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14912         HAVE_GETDOMAINNAME.
14913         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14914         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14915         * doc/glibc-functions/getdomainname.texi: Document the problems with
14916         the getdomainname declaration.
14917
14918 2010-11-28  Bruno Haible  <bruno@clisp.org>
14919
14920         sys_socket: Ensure ss_family field on AIX.
14921         * lib/sys_socket.in.h (ss_family): New macro definition.
14922         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14923         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14924         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14925         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14926         * modules/sys_socket (Makefile.am): Substitute
14927         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14928         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14929
14930 2010-11-27  Bruno Haible  <bruno@clisp.org>
14931
14932         readline: Improve configure output.
14933         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14934         "checking for readline..." result understandable.
14935
14936 2010-11-27  Bruno Haible  <bruno@clisp.org>
14937
14938         *printf-posix: Detect a bug on Solaris 10/x86.
14939         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14940         for floating-point output.
14941         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14942         directive.
14943         * tests/test-snprintf-posix.h (test_function): Likewise.
14944         * tests/test-sprintf-posix.h (test_function): Likewise.
14945         * tests/test-vasprintf-posix.c (test_function): Likewise.
14946         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14947         * doc/posix-functions/printf.texi: Likewise.
14948         * doc/posix-functions/snprintf.texi: Likewise.
14949         * doc/posix-functions/sprintf.texi: Likewise.
14950         * doc/posix-functions/vfprintf.texi: Likewise.
14951         * doc/posix-functions/vprintf.texi: Likewise.
14952         * doc/posix-functions/vsnprintf.texi: Likewise.
14953         * doc/posix-functions/vsprintf.texi: Likewise.
14954         * doc/glibc-functions/obstack_printf.texi: Likewise.
14955         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14956
14957 2010-11-27  Bruno Haible  <bruno@clisp.org>
14958
14959         Fix link error when module libunistring-optional is in use.
14960         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14961         * modules/striconveha-tests (Makefile.am): Likewise.
14962
14963 2010-11-27  Bruno Haible  <bruno@clisp.org>
14964
14965         regex: Mention link dependencies.
14966         * modules/regex (Link): New section.
14967         * modules/rpmatch (Link): Likewise.
14968         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14969
14970 2010-11-27  Bruno Haible  <bruno@clisp.org>
14971
14972         ftoastr: Fix compilation error on Solaris.
14973         * lib/ftoastr.c: Include <config.h>.
14974
14975 2010-11-27  Bruno Haible  <bruno@clisp.org>
14976
14977         getloadavg: Update documentation.
14978         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14979
14980 2010-11-27  Bruno Haible  <bruno@clisp.org>
14981
14982         sys_socket: Fix test whether the functions are declared.
14983         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14984         not <sys/select.h>.
14985
14986 2010-11-27  Bruno Haible  <bruno@clisp.org>
14987
14988         getpass: Make sure to get system declaration on some platforms.
14989         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14990         gl_USE_SYSTEM_EXTENSIONS.
14991         * modules/getpass (Depends-on): Add extensions.
14992
14993 2010-11-26  Bruno Haible  <bruno@clisp.org>
14994
14995         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14996         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14997         'iconv' module is present.
14998         (ICONV_CONST): New macro.
14999         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
15000         ICONV_CONST.
15001         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
15002         set ICONV_CONST.
15003         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
15004         here.
15005         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
15006         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
15007         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
15008         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
15009         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
15010         present.
15011
15012 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15013
15014         ftoastr: comment fix
15015         * lib/ftoastr.c: "little" -> "little or no" in comment
15016
15017 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
15018
15019         stdint: port to GCC 4.3 + OSX + Octave
15020         On this platform, stdint.h is buggy and defines int64_t to long
15021         long int.  The replacement defined it to long int, causing
15022         problems with C++ style name mangling.  Instead, trust the system
15023         definition if INT64_MAX is defined, and likewise for the unsigned
15024         variant.   Problem reported by Jarno Rajahalme in
15025         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
15026         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
15027         and don't mess with int64_t and INT64_MAX in this case.
15028         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
15029
15030 2010-11-24  Bruno Haible  <bruno@clisp.org>
15031
15032         doc: Corrections regarding MacOS X 10.4 and 10.5.
15033         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
15034         MacOS X.
15035         Reported by Simon Josefsson.
15036
15037 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
15038
15039         Uninstall ".bin" files installed by relocwrapper.
15040         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
15041         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
15042         unless it is already there.
15043
15044 2010-11-21  Bruno Haible  <bruno@clisp.org>
15045
15046         Update for NetBSD 5.0.
15047         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15048         NetBSD; the test fails on NetBSD 5.0.
15049         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15050         about NetBSD.
15051
15052 2010-11-21  Bruno Haible  <bruno@clisp.org>
15053
15054         Update for HP-UX 11.23 and HP-UX 11.31.
15055         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
15056         HP-UX.
15057
15058 2010-11-21  Bruno Haible  <bruno@clisp.org>
15059
15060         Update for MacOS X 10.5.
15061         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15062         MacOS X; the test fails on MacOS X 10.5.8.
15063         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15064         about MacOS X.
15065
15066 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
15067
15068         bootstrap: add bootstrap_sync option.
15069         See discussion at
15070         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
15071         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
15072         * build-aux/bootstrap: Accept --bootstrap-sync to update
15073         bootstrap if it is not identical to the local gnulib's
15074         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
15075         enable this by default.  Accept --no-bootstrap-sync to disable
15076         it.
15077
15078 2010-11-20  Bruno Haible  <bruno@clisp.org>
15079
15080         Ensure that <features.h> is included before __GLIBC__ is tested.
15081         * lib/printf-parse.h: Include <features.h>.
15082         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
15083         Reported by Mike Frysinger <vapier@gentoo.org>.
15084
15085         Ensure that <features.h> is included before __GLIBC__ is tested.
15086         * lib/wchar.in.h: Include <features.h>.
15087         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
15088         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
15089         Reported by Mike Frysinger <vapier@gentoo.org>.
15090
15091         Ensure that <features.h> is included before __GLIBC__ is tested.
15092         * lib/arpa_inet.in.h: Include <features.h>.
15093         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
15094         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
15095         Reported by Mike Frysinger <vapier@gentoo.org>.
15096
15097         Ensure that <features.h> is included before __GLIBC__ is tested.
15098         * build-aux/link-warning.h: Include <features.h>.
15099         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
15100         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
15101         Reported by Mike Frysinger <vapier@gentoo.org>.
15102
15103         Ensure that <features.h> is included before __GLIBC__ is tested.
15104         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
15105         Reported by Mike Frysinger <vapier@gentoo.org>.
15106
15107 2010-11-20  Bruno Haible  <bruno@clisp.org>
15108
15109         memmem: Fix autoconf test.
15110         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
15111
15112 2010-11-20  Bruno Haible  <bruno@clisp.org>
15113
15114         Port to uClibc.
15115         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
15116         * lib/fcntl.in.h: Likewise.
15117         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
15118         * lib/mbrtowc.c (mbrtowc): Likewise.
15119         * lib/relocatable.c (find_shared_library_fullname): Likewise.
15120         * lib/strerror_r.c: Likewise.
15121         * lib/unistr/u8-strnlen.c: Likewise.
15122         * lib/vasnprintf.c (decimal_point_char): Likewise.
15123         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15124         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15125         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
15126         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
15127         * tests/test-sigaction.c (handler, main): Likewise.
15128         * lib/freading.h: Treat uClibc like a non-glibc platform.
15129         * lib/freading.c: Likewise.
15130         * lib/gettext.h: Likewise.
15131         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
15132         Likewise.
15133         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
15134         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
15135         * lib/propername.c (proper_name_utf8): Likewise.
15136         * lib/spawn.in.h: Likewise.
15137         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
15138         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
15139         mem_cd_iconveh_internal): Likewise.
15140         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
15141         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15142         strstr, strcasestr): Likewise.
15143         * lib/unicodeio.c (unicode_to_mb): Likewise.
15144         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
15145         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
15146         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
15147         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
15148         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
15149         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
15150         * lib/unistr/u8-stpncpy.c: Likewise.
15151         * lib/vasnprintf.c (VASNPRINTF): Likewise.
15152         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
15153         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15154         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15155         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
15156         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
15157         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
15158         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
15159         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15160         Likewise.
15161         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15162         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15163         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
15164         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15165         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15166         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15167         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15168         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15169         * tests/test-getopt.h (OPTIND_MIN): Likewise.
15170         * tests/test-striconveha.c (main): Likewise.
15171         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15172         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
15173         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
15174         * doc/posix-functions/getline.texi: Likewise.
15175         Reported by Mike Frysinger <vapier@gentoo.org>.
15176
15177 2010-11-20  Bruno Haible  <bruno@clisp.org>
15178
15179         nproc: Fix condition.
15180         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
15181         HAVE_PTHREAD_AFFINITY_NP.
15182
15183 2010-11-20  Bruno Haible  <bruno@clisp.org>
15184
15185         Fix a comment.
15186         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
15187
15188 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
15189
15190         ftoastr: don't assume snprintf
15191         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
15192         Implement a subset of snprintf here, by using sprintf safely.
15193         * modules/ftoastr (Depends-on): Remove snprintf.
15194
15195 2010-11-19  Jim Meyering  <meyering@redhat.com>
15196
15197         test-rename.h: fix compilation failure
15198         * tests/test-rename.h (test_rename): Add omitted "}".
15199
15200 2010-11-17  Jim Meyering  <meyering@redhat.com>
15201
15202         maint.mk: add a URL discussing the no-@acronym policy
15203         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
15204
15205 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
15206
15207         ftoastr: depend on snprintf, improve comments
15208         * lib/ftoastr.c: Also mention Loitsch's draft.
15209         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
15210         needed in the current implementation, but it might simplify
15211         speeding up the code later.
15212         * modules/ftoastr: Depend on snprintf; this improves portability.
15213         Suggested by Bruno Haible in the same email.
15214
15215         ftoastr: port to hosts lacking strtof and strtold
15216         Problem reported by Bruno Haible in
15217         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
15218         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
15219         environment and strtold (and presumably strtof) are not available.
15220         * modules/ftoastr (Files): Add m4/c-strtod.m4.
15221         (configure.ac): Require gl_C99_STRTOLD.
15222
15223 2010-11-18  Bruno Haible  <bruno@clisp.org>
15224
15225         c-strtold: Avoid link error on AIX 7.
15226         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
15227         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
15228         (gl_C_STRTOLD): Test whether strtold_l exists.
15229         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15230
15231 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15232
15233         intprops: new macro INT_BITS_STRLEN_BOUND
15234         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
15235         ftoastr.h.  This exposes an internal of intprops.h that was formerly
15236         not exposed.  Also, it uses a slightly tighter bound than before;
15237         though this makes no practical difference, we might as well be as
15238         tight as we easily can.
15239
15240         ftoastr: new module, for lossless conversion of floats to short strings
15241         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
15242         * modules/ftoastr: New files.
15243
15244 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
15245
15246         bootstrap: port to Solaris sed
15247         * build-aux/bootstrap (get_version): Port to Solaris sed.
15248         See Ralf Wildenhues's note in
15249         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
15250
15251 2010-11-14  Jim Meyering  <meyering@redhat.com>
15252
15253         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
15254         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
15255         and move definition closer to sole use.
15256
15257 2010-11-13  Jim Meyering  <meyering@redhat.com>
15258
15259         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
15260         Now we require at least autoconf-2.59, which means the work-around
15261         is no longer needed.
15262         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
15263         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15264         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
15265         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
15266         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
15267
15268 2010-11-13  Bruno Haible  <bruno@clisp.org>
15269
15270         rename, renameat: Avoid test failures at NFS mounted locations.
15271         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
15272         functions.
15273         (test_rename): Use assert_nonexistent.
15274         * tests/test-rename.c: Include <dirent.h>.
15275         * tests/test-renameat.c: Likewise.
15276         Reported by Gary V. Vaughan <gary@gnu.org>.
15277
15278         rename, renameat: Document Linux bug with NFS
15279         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
15280         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
15281         * doc/posix-functions/renameat.texi: Likewise.
15282         Suggested by Eric Blake.
15283
15284 2010-11-13  Bruno Haible  <bruno@clisp.org>
15285
15286         rename test: Add comments.
15287         * tests/test-rename.h (test_rename): Add structure and comments.
15288
15289 2010-11-13  Eric Blake  <eblake@redhat.com>
15290
15291         maintainer-makefile: cover a few more files
15292         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
15293         scripts generated within C files, for libvirt.
15294
15295 2010-11-13  Bruno Haible  <bruno@clisp.org>
15296
15297         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
15298         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
15299         character, return the number of bytes that belong together, not always
15300         1.
15301         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
15302         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
15303         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
15304         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
15305         number of bytes of an invalid character.
15306         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
15307         (main): Invoke it.
15308         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
15309         results.
15310         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
15311         malformed byte sequences.
15312         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
15313         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
15314         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
15315         Reported by Ben Pfaff and Paolo Bonzini.
15316
15317 2010-11-13  Bruno Haible  <bruno@clisp.org>
15318
15319         openat: Work around glibc bug with fchownat() and empty file names.
15320         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
15321         (gl_FUNC_FCHOWNAT): Invoke it.
15322         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
15323         * doc/posix-functions/fchownat.texi: Document the glibc bug.
15324         Reported by Gary V. Vaughan <gary@gnu.org>.
15325
15326 2010-11-13  Bruno Haible  <bruno@clisp.org>
15327
15328         openat: Ensure autoconf macro ordering.
15329         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
15330         gl_USE_SYSTEM_EXTENSIONS.
15331         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
15332
15333 2010-11-13  Bruno Haible  <bruno@clisp.org>
15334
15335         Update comments.
15336         * lib/unistr/u8-check.c: Update file name in comments.
15337         * lib/unistr/u8-mblen.c: Likewise.
15338         * lib/unistr/u8-prev.c: Likewise.
15339         * lib/unistr/u8-strmblen.c: Likewise.
15340         * lib/unistr/u8-strmbtouc.c: Likewise.
15341
15342 2010-11-13  Jim Meyering  <meyering@redhat.com>
15343
15344         tests: avoid test failure on Solaris 10 due to lack of PATH export
15345         * tests/test-update-copyright.sh: Don't forget to export PATH.
15346
15347         init.sh: ensure that IFS is defined, just in case...
15348         * tests/init.sh (setup_): Ensure that IFS is defined,
15349         so that saving and restoring it works as expected.  This
15350         appears to be useful at least for an old version of dash
15351         from a long time ago (RH 6).  See here for details:
15352         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
15353
15354         maint.mk: tighten "test a == b" check
15355         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
15356         test to files that contain something like #!/bin/sh.
15357         Without this, coreutils would get two false positives in
15358         the comments of C source files.
15359
15360 2010-11-12  Eric Blake  <eblake@redhat.com>
15361
15362         bootstrap: fix typo in previous attempt
15363         * build-aux/bootstrap (buildreq): Correct the grouping.
15364         Reported by Paul Eggert.
15365
15366         maintainer-makefile: prohibit test x == x
15367         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
15368         Based on a report by Matthias Bolte.
15369
15370         bootstrap: allow FreeBSD gzip
15371         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
15372         which has no '.' and goes to stderr.
15373         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
15374         Reported by Matthias Bolte.
15375
15376         maintainer-makefile: check for i18n setup
15377         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
15378         will likely work.
15379
15380 2010-11-12  Bruno Haible  <bruno@clisp.org>
15381
15382         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
15383         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
15384         * lib/nanosleep.c (nanosleep): Likewise.
15385
15386 2010-11-11  Bruno Haible  <bruno@clisp.org>
15387
15388         fcntl-h: Fix for use of C++ on glibc systems.
15389         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15390         also on glibc systems in C++ mode.
15391         Reported by Gary V. Vaughan <gary@gnu.org>.
15392
15393 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15394
15395         mknod: avoid false failure with dash
15396         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
15397
15398 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15399
15400         unlink: Fix "is it should" typo in diagnostic.
15401         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
15402         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
15403
15404 2010-11-11  Bruno Haible  <bruno@clisp.org>
15405
15406         Tests for module 'strerror_r-posix'.
15407         * modules/strerror_r-posix-tests: New file.
15408         * tests/test-strerror_r.c: New file.
15409         * tests/test-string-c++.cc: Check the signature of strerror_r.
15410
15411         New module 'strerror_r-posix'.
15412         * lib/string.in.h (strerror_r): New declaration.
15413         * lib/strerror_r.c: New file.
15414         * m4/strerror_r.m4: New file.
15415         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
15416         of strerror_r.
15417         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
15418         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15419         * modules/strerror_r-posix: New file.
15420         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
15421         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15422         * doc/posix-functions/strerror_r.texi: Mention the new module and the
15423         portability problems.
15424
15425 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
15426
15427         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
15428         line is also considered for output. Quoted function name in shell
15429         command, so temporary files for functions like MyClass::operator()
15430         are removed correctly without errors.
15431
15432 2010-11-09  Bruno Haible  <bruno@clisp.org>
15433
15434         * doc/posix-functions/strerror.texi: List more failing platforms.
15435
15436         * doc/posix-functions/strerror.texi: Add a comment.
15437
15438 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15439
15440         fdopendir: fix bug on MacOS X when low on file descriptors
15441
15442         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
15443         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
15444         All callers changed.
15445         (fdopendir): Invoke save_cwd at the top level, not after using
15446         multiple dup() calls to use up file descriptors.  Then retry
15447         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
15448         less than the maximum number of open file descriptors, because
15449         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
15450         on Mac OS X 10.6.4 for tar 1.24
15451         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
15452         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
15453         and for tar 1.25
15454         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
15455
15456 2010-11-07  Bruno Haible  <bruno@clisp.org>
15457
15458         vasnprintf: Support I flag on glibc systems.
15459         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
15460         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
15461         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
15462         snprintf function.
15463         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
15464         glibc systems.
15465         * tests/test-vasnprintf-posix3.c: New file.
15466         * modules/vasnprintf-posix-tests (Files): Add it.
15467         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
15468
15469 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15470
15471         [html] Fix copy/paste bug: Use unique name for compiler warnings.
15472         * MODULES.html.sh: For compiler warnings, use name
15473         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
15474
15475 2010-11-05  Eric Blake  <eblake@redhat.com>
15476
15477         ceil, floor: avoid spurious failure with icc
15478         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
15479         [denormals-as-zero] when optimizing without -mieee-fp option.
15480         * tests/test-floorf2.c (floorf_reference): Likewise.
15481         * tests/test-ceilf1.c (dummy): New function.
15482         (main): Use it to outsmart icc's optimization.
15483         * tests/test-floorf1.c (dummy, main): Likewise.
15484
15485         tests: require working signbit
15486         * modules/ceilf-tests (Depends-on): Add signbit.
15487         * modules/ceill-tests (Depends-on): Likewise.
15488         * modules/floorf-tests (Depends-on): Likewise.
15489         * modules/floorl-tests (Depends-on): Likewise.
15490         * modules/round-tests (Depends-on): Likewise.
15491         * modules/roundf-tests (Depends-on): Likewise.
15492         * modules/roundl-tests (Depends-on): Likewise.
15493         * modules/trunc-tests (Depends-on): Likewise.
15494         * modules/truncf-tests (Depends-on): Likewise.
15495         * modules/truncl-tests (Depends-on): Likewise.
15496
15497         strtod: work around icc bug
15498         * lib/strtod.c (minus_zero): Define to working value.
15499         (strtod): Use it to avoid icc bug.
15500
15501         copysign: enhance tests
15502         * modules/copysign-tests (Files): Add minus-zero.h.
15503         * tests/test-copysign.c (main): Also test zeros.
15504
15505 2010-11-04  Eric Blake  <eblake@redhat.com>
15506
15507         ceil, floor, round, trunc: enhance tests of -0
15508         * tests/test-ceilf1.c (main): Ensure correct sign of result.
15509         * tests/test-ceill.c (main): Likewise.
15510         * tests/test-floorf1.c (main): Likewise.
15511         * tests/test-floorl.c (main): Likewise.
15512         * tests/test-round1.c (main): Likewise.
15513         * tests/test-roundf1.c (main): Likewise.
15514         * tests/test-roundl.c (main): Likewise.
15515         * tests/test-trunc1.c (main): Likewise.
15516         * tests/test-truncf1.c (main): Likewise.
15517         * tests/test-truncl.c (main): Likewise.
15518
15519 2010-11-04  Eric Blake  <eblake@redhat.com>
15520
15521         frexp, tests: work around ICC bug with -zero
15522         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
15523         works with more compilers.
15524         * tests/minus-zero.h: New file.
15525         * modules/ceilf-tests (Files): Include it.
15526         * modules/ceill-tests (Files): Likewise.
15527         * modules/floorf-tests (Files): Likewise.
15528         * modules/floorl-tests (Files): Likewise.
15529         * modules/frexp-nolibm-tests (Files): Likewise.
15530         * modules/frexp-tests (Files): Likewise.
15531         * modules/frexpl-nolibm-tests (Files): Likewise.
15532         * modules/frexpl-tests (Files): Likewise.
15533         * modules/isnan-tests (Files): Likewise.
15534         * modules/isnand-nolibm-tests (Files): Likewise.
15535         * modules/isnand-tests (Files): Likewise.
15536         * modules/isnanf-nolibm-tests (Files): Likewise.
15537         * modules/isnanf-tests (Files): Likewise.
15538         * modules/isnanl-nolibm-tests (Files): Likewise.
15539         * modules/isnanl-tests (Files): Likewise.
15540         * modules/round-tests (Files): Likewise.
15541         * modules/roundf-tests (Files): Likewise.
15542         * modules/roundl-tests (Files): Likewise.
15543         * modules/ldexpl-tests (Files): Likewise.
15544         * modules/signbit-tests (Files): Likewise.
15545         * modules/snprintf-posix-tests (Files): Likewise.
15546         * modules/sprintf-posix-tests (Files): Likewise.
15547         * modules/strtod-tests (Files): Likewise.
15548         * modules/trunc-tests (Files): Likewise.
15549         * modules/truncf-tests (Files): Likewise.
15550         * modules/truncl-tests (Files): Likewise.
15551         * modules/vsnprintf-posix-tests (Files): Likewise.
15552         * modules/vsprintf-posix-tests (Files): Likewise.
15553         * modules/vasnprintf-posix-tests (Files): Likewise.
15554         * modules/vasprintf-posix-tests (Files): Likewise.
15555         * tests/test-ceilf1.c (main): Use it.
15556         * tests/test-ceill.c (main): Likewise.
15557         * tests/test-floorf1.c (main): Likewise.
15558         * tests/test-floorl.c (main): Likewise.
15559         * tests/test-frexp.c (main): Likewise.
15560         * tests/test-frexpl.c (main): Likewise.
15561         * tests/test-isnan.c (main): Likewise.
15562         * tests/test-isnand.h (main): Likewise.
15563         * tests/test-isnanf.h (main): Likewise.
15564         * tests/test-isnanl.h (main): Likewise.
15565         * tests/test-ldexpl.c (main): Likewise.
15566         * tests/test-round.c (main): Likewise.
15567         * tests/test-roundf.c (main): Likewise.
15568         * tests/test-roundl.c (main): Likewise.
15569         * tests/test-signbit.c (test_signbitf, test_signbitd)
15570         (test_signbitl): Likewise.
15571         * tests/test-snprintf-posix.h (test_function): Likewise.
15572         * tests/test-sprintf-posix.h (test_function): Likewise.
15573         * tests/test-strtod.c (main): Likewise.
15574         * tests/test-trunc1.c (main): Likewise.
15575         * tests/test-truncf1.c (main): Likewise.
15576         * tests/test-truncl.c (main): Likewise.
15577
15578         isnanl: work around icc bug
15579         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
15580
15581 2010-11-03  Eric Blake  <eblake@redhat.com>
15582
15583         tests: fix compiler warnings
15584         * tests/test-getopt.h (test_getopt): Fix condition.
15585         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15586         * tests/test-pipe2.c (main): Likewise.
15587         * tests/test-quotearg-simple.c (main): Avoid icc warning.
15588
15589         utimens: fix broken m4 test
15590         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
15591
15592 2010-10-28  Bruno Haible  <bruno@clisp.org>
15593
15594         posix_spawn*, getdtablesize: Relax license.
15595         * modules/posix_spawn (License): Change to LGPLv2+.
15596         * modules/posix_spawnp (License): Likewise.
15597         * modules/posix_spawn-internal (License): Likewise.
15598         * modules/posix_spawnattr_init (License): Likewise.
15599         * modules/posix_spawnattr_getflags (License): Likewise.
15600         * modules/posix_spawnattr_setflags (License): Likewise.
15601         * modules/posix_spawnattr_getpgroup (License): Likewise.
15602         * modules/posix_spawnattr_setpgroup (License): Likewise.
15603         * modules/posix_spawnattr_getschedparam (License): Likewise.
15604         * modules/posix_spawnattr_setschedparam (License): Likewise.
15605         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
15606         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
15607         * modules/posix_spawnattr_getsigdefault (License): Likewise.
15608         * modules/posix_spawnattr_setsigdefault (License): Likewise.
15609         * modules/posix_spawnattr_getsigmask (License): Likewise.
15610         * modules/posix_spawnattr_setsigmask (License): Likewise.
15611         * modules/posix_spawnattr_destroy (License): Likewise.
15612         * modules/posix_spawn_file_actions_init (License): Likewise.
15613         * modules/posix_spawn_file_actions_addclose (License): Likewise.
15614         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
15615         * modules/posix_spawn_file_actions_addopen (License): Likewise.
15616         * modules/posix_spawn_file_actions_destroy (License): Likewise.
15617         * modules/getdtablesize (License): Likewise.
15618         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
15619
15620 2010-10-26  Bruno Haible  <bruno@clisp.org>
15621
15622         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
15623         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
15624         Cygwin and mingw.
15625         Suggested by Eric Blake.
15626
15627 2010-10-26  Bruno Haible  <bruno@clisp.org>
15628
15629         stdio: Work around compilation error due to renameat() on Solaris 10.
15630         * lib/stdio.in.h: Include <unistd.h> on Solaris.
15631         * lib/renameat.c: Don't include <unistd.h> here.
15632         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
15633         Reported by Paul Eggert and Eric Blake.
15634
15635 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15636
15637         renameat: port to Solaris 10, which declares renameat in unistd.h
15638
15639         * lib/renameat.c: Include unistd.h before stdio.h, because
15640         Solaris 10 declares renameat in unistd.h.  Problem encountered
15641         when building GNU tar 1.24 on Solaris 10.
15642
15643 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15644
15645         fdopendir: fix C89 compilation
15646         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
15647         compilers.
15648
15649 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15650
15651         inttostr: simplify by removing unnecessary redundancy
15652         * lib/anytostr.c: Don't include verify.h.
15653         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
15654         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
15655         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
15656         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
15657         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
15658         Likewise.
15659         * modules/inttostr (Depends-on): Remove 'verify'.
15660
15661 2010-10-23  Bruno Haible  <bruno@clisp.org>
15662
15663         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
15664         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
15665         Reported by Eric Blake.
15666
15667 2010-10-23  Bruno Haible  <bruno@clisp.org>
15668
15669         Tests: Fix LOCALE_JA on MirBSD 10.
15670         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
15671         to an UTF-8 locale.
15672         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
15673         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15674         Reported by Eric Blake.
15675
15676 2010-10-21  Bruno Haible  <bruno@clisp.org>
15677
15678         nl_langinfo test: Avoid test failure on NetBSD 5.
15679         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
15680         Reported by Eric Blake.
15681
15682 2010-10-21  Eric Blake  <eblake@redhat.com>
15683
15684         c-stack: work around libsigsegv 2.8 bug
15685         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
15686         overflow on at least PowerPC64.
15687
15688 2010-10-17  Bruno Haible  <bruno@clisp.org>
15689
15690         userspec: Drop redundant file.
15691         * modules/userspec (Files): Remove lib/inttostr.h.
15692
15693 2010-10-17  Bruno Haible  <bruno@clisp.org>
15694
15695         nl_langinfo tests: Silence some warnings.
15696         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
15697         Reported by Jim Meyering.
15698
15699 2010-10-17  Bruno Haible  <bruno@clisp.org>
15700
15701         Make use of GCC's attribute __alloc_size__.
15702         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
15703         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
15704         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
15705         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
15706         __alloc_size__.
15707         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15708         Suggested by Jim Meyering.
15709
15710 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
15711
15712         bootstrap: anchor .gitignore entries.
15713         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
15714         with...
15715         (insert_vc_ignore): ... this new function, which prepends `/' to
15716         all .gitignore entries before passing them to
15717         insert_sorted_if_absent.
15718
15719 2010-10-16  Bruno Haible  <bruno@clisp.org>
15720
15721         nextafter: Fix configure check.
15722         * modules/nextafter (configure.ac): Correct expected prototype.
15723
15724 2010-10-16  Bruno Haible  <bruno@clisp.org>
15725
15726         termios: Update documentation.
15727         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
15728
15729 2010-10-16  Bruno Haible  <bruno@clisp.org>
15730
15731         tests: Make them compile with TinyCC.
15732         * tests/test-strstr.c (main): Remove parentheses around array
15733         initializer.
15734
15735 2010-10-15  Eric Blake  <eblake@redhat.com>
15736
15737         ignore-value: make header idempotent
15738         * lib/ignore-value.h: Add double-inclusion guards.
15739         Reported by Stefan Berger.
15740
15741 2010-10-15  Jim Meyering  <meyering@redhat.com>
15742
15743         GNUmakefile: handle "stable" target, not "major"
15744         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
15745         lists in maint.mk and announce-gen.  Without this, "make stable"
15746         would fail to ensure that $(VERSION) is up to date.
15747
15748 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
15749
15750         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
15751         & co.
15752
15753 2010-10-14  Bruno Haible  <bruno@clisp.org>
15754
15755         vasnprintf: Don't set errno to 0.
15756         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
15757         block that sets it to 0.
15758         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
15759
15760 2010-10-14  Bruno Haible  <bruno@clisp.org>
15761
15762         socketlib: Fix.
15763         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
15764         gl_PREREQ_SYS_H_WINSOCK2.
15765         Reported by Ian Beckwith <ianb@erislabs.net>.
15766
15767 2010-10-13  Jim Meyering  <meyering@redhat.com>
15768
15769         test-select-stdin.c: avoid warn_unused_result warnings
15770         * tests/test-select-stdin.c: Include "macros.h".
15771         ASSERT that read and fflush succeed.
15772
15773 2010-10-13  Jim Meyering  <meyering@redhat.com>
15774
15775         git-version-gen: do require git-VC'd files in cwd
15776         * build-aux/git-version-gen: Reject a git version string
15777         if there are no commits associated with the current directory.
15778         This avoids an unlikely false-positive (unrelated dir whose parent
15779         repository also contains a tag matching v*), as pointed out
15780         by Giuseppe Scrivano in
15781         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
15782
15783 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15784
15785         argv-iter: omit nonconforming declaration
15786         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
15787         enum arg_iter_err declaration, which doesn't conform to C99.
15788         Solaris 10 cc warns about this.
15789
15790 2010-10-13  Eric Blake  <eblake@redhat.com>
15791
15792         termios: fix compilation on mingw
15793         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
15794         (gl_TERMIOS_H): Adjust it on mingw.
15795         * modules/termios (Makefile.am): Substitute new key.
15796         * lib/termios.in.h (includes): Make include_next conditional.
15797         * doc/posix-headers/termios.texi (termios.h): Update
15798         documentation.
15799         Reported by Daniel P. Berrange.
15800
15801 2010-10-13  Jim Meyering  <meyering@redhat.com>
15802
15803         git-version-gen: don't require that .git/ be in the current dir
15804         * build-aux/git-version-gen: Adjust this script so that it works
15805         when run from any working directory beneath the top-level .git/-
15806         containing directory.  Inspired by a patch from Giuseppe Scrivano,
15807         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
15808
15809         test-select: avoid warn_unused_result warnings
15810         * tests/test-select.c: Include "macros.h".
15811         ASSERT that each call to read, write, and pipe succeeds.
15812         While not technically required, also check each "close".
15813         * modules/select-tests (Files): Add tests/macros.h.
15814
15815         test-symlinkat: remove declaration of unused local
15816         * tests/test-symlinkat.c (main): Remove unused local, "buf".
15817
15818         test-inttostr: avoid shadowing warnings
15819         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
15820         and use malloc rather than the stack for the same reason as
15821         mentioned in the comment justifying the other allocation.
15822
15823 2010-10-11  Bruno Haible  <bruno@clisp.org>
15824
15825         stdlib: Allow multiple gnulib generated replacements to coexist.
15826         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
15827         Reported by Sam Steingold <sds@gnu.org>.
15828
15829 2010-10-11  Jim Meyering  <meyering@redhat.com>
15830
15831         fix a documentation typo
15832         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
15833
15834 2010-10-11  Eric Blake  <eblake@redhat.com>
15835
15836         futimens: work around Solaris 11 bug
15837         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
15838         * tests/test-futimens.h (test_futimens): Enhance, rather than
15839         weaken test.
15840         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15841
15842 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15843
15844         Indentation.
15845         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
15846         higher-level operators more to the left.
15847
15848 2010-10-11  Jim Meyering  <meyering@redhat.com>
15849
15850         test-futimens: avoid unwarranted test failure on Solaris 5.11
15851         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
15852         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
15853         because it tries to dereference the NULL name argument.
15854
15855 2010-10-11  Bruno Haible  <bruno@clisp.org>
15856
15857         Indentation.
15858         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
15859         indentation.
15860
15861 2010-10-11  Jim Meyering  <meyering@redhat.com>
15862
15863         spawn.in.h: make indentation consistent with parentheses
15864         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
15865         Make indentation consistent with parentheses.
15866
15867 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
15868
15869         Fix mismatched parens in previous commit
15870         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
15871         parens.
15872
15873 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15874
15875         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
15876
15877         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
15878         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
15879         * lib/malloca.c: Include "verify.h".
15880         (verify1): Remove, replacing with a verify call.
15881         * lib/relocwrapper.c (verify1): Likewise.
15882         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
15883         Likewise.
15884         * modules/malloca (Depends-on): Add 'verify'.
15885         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
15886         * modules/vasnprintf (Depends-on): Add 'verify'.
15887         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15888         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15889         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15890         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15891         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15892         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15893         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15894
15895         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
15896
15897         Formerly the style was sometimes 2*X - 1, because the C standard
15898         was wrongly thought to disallow ?: in integral constant expressions.
15899         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
15900         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15901         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15902         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15903         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15904         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15905         verify that time_t cannot be floating.
15906
15907 2010-10-08  Eric Blake  <eblake@redhat.com>
15908
15909         time: enforce recent POSIX ruling that time_t is integral
15910         * lib/time.in.h (__time_t_must_be_integral): Detect any
15911         problematic systems, allowing the rest of gnulib to assume POSIX.
15912
15913 2010-10-08  Jim Meyering  <meyering@redhat.com>
15914
15915         fdopendir: fix a bug on systems lacking openat and /proc support
15916         OpenBSD 4.7 is one such system.  The most noticeable effect was
15917         failure of any application making nontrivial use of fts: rm, du,
15918         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15919           ./rm: traversal failed: `a': Bad file descriptor
15920         Debugging that, you see that even though FD 6 was closed just
15921         prior to the opendir call in fd_clone_opendir, its resulting
15922         dir->dd_fd was 8, rather than the expected value of 6:
15923
15924         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15925         93                close (fd);
15926         (gdb) n
15927         94                dir = fd_clone_opendir (dupfd);
15928         (gdb) n
15929         95                saved_errno = errno;
15930         (gdb) p dir->dd_fd
15931         $11 = 8
15932
15933         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15934         The problem is that on OpenBSD, fd_clone_opendir has to resort
15935         to using the old-style save/restore CWD mechanism, due to its
15936         lack of openat/proc support, and *that* would steal the FD (6)
15937         that opendir was supposed to use.
15938
15939         The fix is to squirrel away the desired FD so that save_cwd uses a
15940         different one, and then free the dest FD right before calling opendir.
15941         That guarantees opendir will use the required file descriptor.
15942
15943         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15944
15945 2010-10-08  Bruno Haible  <bruno@clisp.org>
15946
15947         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15948         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15949
15950 2010-10-08  Bruno Haible  <bruno@clisp.org>
15951
15952         nanosleep: Make replacement POSIX compliant.
15953         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15954         is out of range.
15955         Reported by Jim Meyering.
15956
15957 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15958
15959         bootstrap: add hook for altering gnulib.mk, for Bison
15960         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15961         the Bison bootstrapping process can rewrite file names and variables
15962         in this file before later parts of 'bootstrap' use the file.
15963         Bison wants to include lib/gnulib.mk from the top-level makefile,
15964         so it needs the file names in this file to be relative to the top
15965         level, not relative to lib; plus it needs variable names to be
15966         rewritten.
15967         (slurp): Use the new function.
15968
15969         bootstrap: reformat for readability
15970         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15971
15972 2010-10-08  Eric Blake  <eblake@redhat.com>
15973
15974         docs: update cygwin progress
15975         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15976         1.7.7.
15977         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15978         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15979         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15980         * doc/posix-functions/carg.texi (carg): Likewise.
15981         * doc/posix-functions/cargf.texi (cargf): Likewise.
15982         * doc/posix-functions/casin.texi (casin): Likewise.
15983         * doc/posix-functions/casinf.texi (casinf): Likewise.
15984         * doc/posix-functions/casinh.texi (casinh): Likewise.
15985         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15986         * doc/posix-functions/catan.texi (catan): Likewise.
15987         * doc/posix-functions/catanf.texi (catanf): Likewise.
15988         * doc/posix-functions/catanh.texi (catanh): Likewise.
15989         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15990         * doc/posix-functions/ccos.texi (ccos): Likewise.
15991         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15992         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15993         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15994         * doc/posix-functions/cexp.texi (cexp): Likewise.
15995         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15996         * doc/posix-functions/cimag.texi (cimag): Likewise.
15997         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15998         * doc/posix-functions/clog.texi (clog): Likewise.
15999         * doc/posix-functions/clogf.texi (clogf): Likewise.
16000         * doc/posix-functions/conj.texi (conj): Likewise.
16001         * doc/posix-functions/conjf.texi (conjf): Likewise.
16002         * doc/posix-functions/cpow.texi (cpow): Likewise.
16003         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
16004         * doc/posix-functions/cproj.texi (cproj): Likewise.
16005         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
16006         * doc/posix-functions/creal.texi (creal): Likewise.
16007         * doc/posix-functions/crealf.texi (crealf): Likewise.
16008         * doc/posix-functions/csin.texi (csin): Likewise.
16009         * doc/posix-functions/csinf.texi (csinf): Likewise.
16010         * doc/posix-functions/csinh.texi (csinh): Likewise.
16011         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
16012         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
16013         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
16014         * doc/posix-functions/ctan.texi (ctan): Likewise.
16015         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
16016         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
16017         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
16018         * doc/posix-headers/complex.texi (complex.h): Likewise.
16019
16020 2010-10-07  Jim Meyering  <meyering@redhat.com>
16021
16022         parse-datetime: avoid compilation failure on OpenBSD 4.7
16023         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
16024         This works around a compilation failure on OpenBSD 4.7:
16025         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
16026
16027 2010-10-07  Eric Blake  <eblake@redhat.com>
16028
16029         docs: update cygwin progress
16030         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
16031         1.7.6.
16032         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
16033         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
16034         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
16035         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
16036         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
16037         Likewise.
16038         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
16039         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
16040         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
16041         Likewise.
16042         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
16043         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
16044         Likewise.
16045         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
16046         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
16047         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
16048         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
16049         Likewise.
16050         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
16051         Likewise.
16052         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
16053
16054         docs: update parse-datetime history
16055         * doc/parse-datetime.texi (Authors of parse_datetime): Better
16056         documentation of this function's history and alternatives.
16057
16058         cygwin: use more robust version check
16059         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
16060         exclude an eventual cygwin 1.9.1.
16061         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16062         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16063         (gl_FUNC_STRCASESTR): Likewise.
16064         Reported by Bruno Haible.
16065
16066 2010-10-06  Bruno Haible  <bruno@clisp.org>
16067
16068         string, sys_select: Avoid #including large headers unless necessary.
16069         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
16070         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
16071         OSF/1, BeOS, Haiku.
16072         Reported by Jim Meyering.
16073
16074 2010-10-05  Eric Blake  <eblake@redhat.com>
16075
16076         memmem, strstr, strcasestr: fix bug with long periodic needle
16077         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
16078         periodic needle having false positive.
16079         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
16080         and cygwin 1.7.7.
16081         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
16082         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16083         (gl_FUNC_STRCASESTR): Likewise.
16084         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16085         * tests/test-memmem.c (main): Expose the bug.
16086         * tests/test-strcasestr.c (main): Likewise.
16087         * tests/test-strstr.c (main): Likewise.
16088         * tests/test-c-strcasestr.c (main): Likewise.
16089         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
16090         * doc/posix-functions/strstr.texi (strstr): Likewise.
16091         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
16092         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
16093
16094 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16095
16096         parse-datetime: do some more renaming
16097         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
16098         parse_datetime, not get_date.  Mention the renaming.
16099         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
16100         in comments.
16101         * m4/bison.m4: Likewise.
16102
16103 2010-10-05  Eric Blake  <eblake@redhat.com>
16104
16105         parse-datetime: better name than get_date
16106         * NEWS: Reword the deprecation notice.
16107         * modules/get_date: Rename to modules/parse-datetime.
16108         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
16109         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
16110         * lib/get_date.y: Rename to lib/parse-datetime.y.
16111         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
16112         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
16113         * doc/getdate.texi: Provide fallback wrapper.
16114         * lib/getdate.h: Move guts, and wrap...
16115         * lib/parse-datetime.h: ...new file.
16116         * lib/parse-datetime.y (get_date): Rename...
16117         (parse_datetime): ...to this.
16118         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
16119         (gl_PARSE_DATETIME): ...to this.
16120         * doc/posix-functions/getdate.texi (get_date): Provide fallback
16121         documentation.
16122         * modules/getdate (Files): Provide fallback docs and header.
16123         (Notice, Depends-on): Update references.
16124         * tests/test-parse-datetime.c: Likewise.
16125         * DEPENDENCIES: Likewise.
16126         * MODULES.html.sh (Date and time <time.h>): Likewise.
16127         * doc/parse-datetime.texi (Date input formats)
16128         (Authors of parse_datetime): Likewise.
16129         * modules/parse-datetime (Files, configure.ac, Makefile.am)
16130         (Include): Likewise.
16131         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
16132         * gnulib-tool: Likewise.
16133         * m4/bison.m4 (gl_BISON): Likewise.
16134         Suggested by Bruno Haible.
16135
16136 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16137
16138         more ports to Solaris tr, which needs [] around ranges
16139         * gnulib-tool: Solaris tr needs [] around ranges.
16140         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16141         * tests/test-pipe-filter-gi1.c (main): Likewise.
16142         * tests/test-pipe-filter-ii1.c (main): Likewise.
16143
16144 2010-10-05  Eric Blake  <eblake@redhat.com>
16145
16146         bootstrap: fix Solaris regression
16147         * build-aux/bootstrap (check_versions): Solaris tr still needs []
16148         around ranges.
16149         Reported by Pádraig Brady.
16150
16151         bootstrap: work with pkg-config
16152         * build-aux/bootstrap (check_versions): Also transliterate - in
16153         prerequisite name.
16154         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
16155         prerequisites that were already found, to avoid confusion.
16156         Reported by Justin Clift.
16157
16158         faccessat: remove unused wrappers
16159         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
16160         presence of these wrappers dragged in -lgen on Solaris.
16161         Reported by Clemens Brogi; fix suggested by Paul Eggert.
16162
16163 2010-10-05  Jim Meyering  <meyering@redhat.com>
16164
16165         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
16166         * Makefile (sc_pragma_columns): New syntax-check rule.
16167
16168 2010-10-04  Bruno Haible  <bruno@clisp.org>
16169
16170         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
16171         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
16172         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
16173         Reported by Bruce Korb and Eric Blake.
16174
16175 2010-10-04  Bruno Haible  <bruno@clisp.org>
16176
16177         threadlib: Make option --with-libpth-prefix work.
16178         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
16179         use $LIBPTH, not just -lpth.
16180
16181 2010-10-04  Bruno Haible  <bruno@clisp.org>
16182
16183         Avoid line length limitation from HP NonStop system header files.
16184         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
16185         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
16186         * lib/ctype.in.h: Likewise.
16187         * lib/dirent.in.h: Likewise.
16188         * lib/errno.in.h: Likewise.
16189         * lib/fcntl.in.h: Likewise.
16190         * lib/float.in.h: Likewise.
16191         * lib/getopt.in.h: Likewise.
16192         * lib/iconv.in.h: Likewise.
16193         * lib/inttypes.in.h: Likewise.
16194         * lib/langinfo.in.h: Likewise.
16195         * lib/locale.in.h: Likewise.
16196         * lib/math.in.h: Likewise.
16197         * lib/netdb.in.h: Likewise.
16198         * lib/netinet_in.in.h: Likewise.
16199         * lib/poll.in.h: Likewise.
16200         * lib/pthread.in.h: Likewise.
16201         * lib/pty.in.h: Likewise.
16202         * lib/sched.in.h: Likewise.
16203         * lib/se-selinux.in.h: Likewise.
16204         * lib/search.in.h: Likewise.
16205         * lib/signal.in.h: Likewise.
16206         * lib/spawn.in.h: Likewise.
16207         * lib/stdarg.in.h: Likewise.
16208         * lib/stddef.in.h: Likewise.
16209         * lib/stdint.in.h: Likewise.
16210         * lib/stdio.in.h: Likewise.
16211         * lib/stdlib.in.h: Likewise.
16212         * lib/string.in.h: Likewise.
16213         * lib/strings.in.h: Likewise.
16214         * lib/sys_file.in.h: Likewise.
16215         * lib/sys_ioctl.in.h: Likewise.
16216         * lib/sys_select.in.h: Likewise.
16217         * lib/sys_socket.in.h: Likewise.
16218         * lib/sys_stat.in.h: Likewise.
16219         * lib/sys_time.in.h: Likewise.
16220         * lib/sys_times.in.h: Likewise.
16221         * lib/sys_utsname.in.h: Likewise.
16222         * lib/sys_wait.in.h: Likewise.
16223         * lib/sysexits.in.h: Likewise.
16224         * lib/termios.in.h: Likewise.
16225         * lib/time.in.h: Likewise.
16226         * lib/unistd.in.h: Likewise.
16227         * lib/wchar.in.h: Likewise.
16228         * lib/wctype.in.h: Likewise.
16229         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
16230         * modules/ctype (Makefile.am): Likewise.
16231         * modules/dirent (Makefile.am): Likewise.
16232         * modules/errno (Makefile.am): Likewise.
16233         * modules/fcntl-h (Makefile.am): Likewise.
16234         * modules/float (Makefile.am): Likewise.
16235         * modules/getopt-posix (Makefile.am): Likewise.
16236         * modules/iconv-h (Makefile.am): Likewise.
16237         * modules/inttypes (Makefile.am): Likewise.
16238         * modules/langinfo (Makefile.am): Likewise.
16239         * modules/locale (Makefile.am): Likewise.
16240         * modules/math (Makefile.am): Likewise.
16241         * modules/netdb (Makefile.am): Likewise.
16242         * modules/netinet_in (Makefile.am): Likewise.
16243         * modules/poll-h (Makefile.am): Likewise.
16244         * modules/pthread (Makefile.am): Likewise.
16245         * modules/pty (Makefile.am): Likewise.
16246         * modules/sched (Makefile.am): Likewise.
16247         * modules/search (Makefile.am): Likewise.
16248         * modules/selinux-h (Makefile.am): Likewise.
16249         * modules/signal (Makefile.am): Likewise.
16250         * modules/spawn (Makefile.am): Likewise.
16251         * modules/stdarg (Makefile.am): Likewise.
16252         * modules/stddef (Makefile.am): Likewise.
16253         * modules/stdint (Makefile.am): Likewise.
16254         * modules/stdio (Makefile.am): Likewise.
16255         * modules/stdlib (Makefile.am): Likewise.
16256         * modules/string (Makefile.am): Likewise.
16257         * modules/strings (Makefile.am): Likewise.
16258         * modules/sys_file (Makefile.am): Likewise.
16259         * modules/sys_ioctl (Makefile.am): Likewise.
16260         * modules/sys_select (Makefile.am): Likewise.
16261         * modules/sys_socket (Makefile.am): Likewise.
16262         * modules/sys_stat (Makefile.am): Likewise.
16263         * modules/sys_time (Makefile.am): Likewise.
16264         * modules/sys_times (Makefile.am): Likewise.
16265         * modules/sys_utsname (Makefile.am): Likewise.
16266         * modules/sys_wait (Makefile.am): Likewise.
16267         * modules/sysexits (Makefile.am): Likewise.
16268         * modules/termios (Makefile.am): Likewise.
16269         * modules/time (Makefile.am): Likewise.
16270         * modules/unistd (Makefile.am): Likewise.
16271         * modules/wchar (Makefile.am): Likewise.
16272         * modules/wctype (Makefile.am): Likewise.
16273
16274 2010-10-04  Bruno Haible  <bruno@clisp.org>
16275
16276         read-file tests: Avoid a test failure on NonStop Kernel.
16277         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
16278         a regular file.
16279         Reported by Joachim Schmitz <schmitz@hp.com>.
16280
16281 2010-10-03  Bruno Haible  <bruno@clisp.org>
16282
16283         gnulib-tool: Fixes for --create-testdir with --libtool.
16284         * gnulib-tool (func_get_automake_snippet): Don't augment
16285         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
16286         an executable.
16287         (func_create_testdir): Handle module 'alloca' like func_import.
16288         Reported by Bruce Korb <bruce.korb@gmail.com>.
16289
16290 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
16291
16292         Avoid some lines longer than 80 characters.
16293         * lib/stdint.in.h: Break long comment lines.
16294         * lib/math.in.h: Likewise.
16295         (_GL_NUM_UINT_WORDS): New macro, for readability.
16296         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
16297         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
16298         * lib/stdlib.in.h: Likewise.
16299         * lib/spawn.in.h: Likewise.
16300         * lib/sys_socket.in.h: Update an URL.
16301         * lib/sys_stat.in.h: Break long line.
16302
16303 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
16304
16305         Improve pmccabe2html.
16306         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
16307         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
16308         when the sources change. Remove the line in the HTML about "Used
16309         ranges" (which implied that there might be other unused ranges),
16310         rename "Resume" to "Summary" (easier to understand for more users).
16311         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
16312         styles, and some unnecessary blank lines.
16313
16314 2010-10-03  Bruno Haible  <bruno@clisp.org>
16315             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
16316
16317         acl: Add support for ACLs on NonStop Kernel.
16318         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
16319         Check whether the function aclsort() exists.
16320         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
16321         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
16322         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16323         (acl_nontrivial [HAVE_ACLSORT]: New function.
16324         (file_has_acl): Implement for NonStop Kernel.
16325         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16326         (qset_acl): Implement for NonStop Kernel.
16327         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
16328         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16329         (main): Implement for NonStop Kernel.
16330         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
16331         Kernel. Handle this flavor.
16332         * tests/test-set-mode-acl.sh: Likewise.
16333         * tests/test-copy-acl.sh: Likewise.
16334         * tests/test-copy-file.sh: Likewise.
16335
16336 2010-10-03  Bruno Haible  <bruno@clisp.org>
16337
16338         Info about ACLs on NonStop Kernel.
16339         * doc/acl-resources.txt: Add info about NonStop Kernel.
16340         References by Joachim Schmitz <schmitz@hp.com>.
16341
16342 2010-10-02  Bruno Haible  <bruno@clisp.org>
16343
16344         Define missing EDQUOT on NonStop Kernel.
16345         * lib/errno.in.h (EDQUOT): Assign a value if missing.
16346         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
16347         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
16348         missing.
16349         * doc/posix-headers/errno.texi: Mention the NSK bug.
16350         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
16351         Reported by Joachim Schmitz <schmitz@hp.com>.
16352
16353 2010-10-02  Bruno Haible  <bruno@clisp.org>
16354
16355         Update doc for POSIX:2008.
16356         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
16357         Update URL of POSIX specification.
16358
16359 2010-10-02  Bruno Haible  <bruno@clisp.org>
16360
16361         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
16362         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
16363         from gnulib, not from Automake.
16364
16365 2010-10-02  Bruno Haible  <bruno@clisp.org>
16366
16367         New module 'system-posix'.
16368         * modules/system-posix: New file.
16369         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
16370         module is present.
16371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
16372         GNULIB_SYSTEM_POSIX.
16373         * modules/stdlib (Depends-on): Remove sys_wait.
16374         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
16375         * doc/posix-functions/system.texi: Mention the new module.
16376         * doc/posix-headers/stdlib.texi: Likewise.
16377         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
16378         define test_sys_wait_macros to a no-op.
16379         Reported by Sam Steingold <sds@gnu.org>.
16380
16381 2010-09-30  Bruno Haible  <bruno@clisp.org>
16382
16383         More renaming from 'getdate' to 'get_date'.
16384         * doc/get_date.texi: Renamed from doc/getdate.texi.
16385         * modules/get_date (Files): Update.
16386         * MODULES.html.sh (Date and time <time.h>): Update.
16387         * DEPENDENCIES: Update.
16388         * gnulib-tool: Update comment.
16389         * m4/bison.m4 (gl_BISON): Likewise.
16390         * m4/get_date.m4 (gl_GET_DATE): Likewise.
16391
16392 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
16393
16394         bootstrap: support ACLOCAL_FLAGS during aclocal
16395         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
16396         can add additional -I dir for third-party .m4 files.
16397
16398 2010-09-30  Eric Blake  <eblake@redhat.com>
16399
16400         bootstrap: use glibtoolize on MacOS
16401         * build-aux/bootstrap (check_versions): Convert libtool into
16402         libtoolize.
16403         (tool search): Move libtool check earlier, and look for
16404         glibtoolize for MacOS.
16405         (gnulib_tool_options): Auto-add --libtool when appropriate.
16406         Reported by Justin Clift.
16407
16408         poll: fix typo that broke test on MacOS
16409         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
16410         Reported by Justin Clift.
16411
16412         getdate: rename to get_date
16413         Note: getdate.h is not renamed, to minimize client impact.
16414         * modules/getdate: Mark obsolete.  Move old contents...
16415         * modules/get_date: ...to new module name.
16416         * modules/getdate-tests: Move...
16417         * modules/get_date-tests: ...here.
16418         * m4/getdate.m4: Move...
16419         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
16420         * lib/getdate.y: Move...
16421         * lib/get_date.y: ...here.
16422         * tests/test-getdate.c: Move...
16423         * tests/test-get_date.c: ...here.
16424         * doc/posix-functions/getdate.texi (getdate): Update name.
16425         * NEWS: Mention the change.
16426
16427 2010-09-29  Bruno Haible  <bruno@clisp.org>
16428
16429         Separate the module 'waitpid' from the module 'sys_wait'.
16430         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
16431         present.
16432         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
16433         gl_MODULE_INDICATOR_FOR_TESTS.
16434         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
16435         * modules/sys_wait (Depends-on): Remove waitpid.
16436         (Makefile.am): Substitute GNULIB_WAITPID.
16437         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
16438         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
16439         signature only if the 'waitpid' module is present.
16440         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
16441         * NEWS: Mention the change.
16442         * modules/grantpt (Depends-on): Add waitpid.
16443         * modules/wait-process (Depends-on): Likewise.
16444
16445 2010-09-29  Bruno Haible  <bruno@clisp.org>
16446
16447         More tests for module 'sys_wait'.
16448         * modules/sys_wait-c++-tests: New file.
16449         * tests/test-sys_wait-c++.cc: New file.
16450         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
16451         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16452
16453 2010-09-29  Bruno Haible  <bruno@clisp.org>
16454
16455         New module 'waitpid'.
16456         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
16457         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
16458         Don't include <process.h>.
16459         (waitpid): Declare only, using modern idiom.
16460         * m4/waitpid.m4: New file.
16461         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
16462         * modules/waitpid: New file.
16463         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
16464         (Makefile.am): Update.
16465         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16466
16467 2010-09-28  Bruno Haible  <bruno@clisp.org>
16468
16469         poll: Assume ANSI C.
16470         * lib/poll.c (poll): Use an ANSI C declaration.
16471
16472 2010-09-28  Bruno Haible  <bruno@clisp.org>
16473
16474         poll-h: Create poll.h on all platforms.
16475         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
16476         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
16477         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
16478         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
16479         (gl_REPLACE_POLL_H): Don't set POLL_H.
16480         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
16481         * modules/poll-h (Depends-on): Add include_next.
16482         (Makefile.am): Create poll.h unconditionally. Substitute also
16483         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
16484
16485 2010-09-28  Bruno Haible  <bruno@clisp.org>
16486
16487         Tests for module 'poll-h'.
16488         * modules/poll-h-c++-tests: New file.
16489         * tests/test-poll-h-c++.cc: New file.
16490
16491         Tests for module 'poll-h'.
16492         * modules/poll-h-tests: New file.
16493         * tests/test-poll-h.c: New file.
16494
16495 2010-09-28  Bruno Haible  <bruno@clisp.org>
16496
16497         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
16498         * modules/poll-h (Depends-on): Add 'extensions'.
16499
16500 2010-09-28  Bruno Haible  <bruno@clisp.org>
16501
16502         New module 'poll-h'.
16503         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
16504         (poll): Use modern idiom.
16505         * modules/poll-h: New file.
16506         * modules/poll (Files): Remove lib/poll.in.h.
16507         (Depends-on): Add poll-h.
16508         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
16509         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
16510         * m4/poll_h.m4: New file.
16511         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
16512         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
16513         and invoke gl_REPLACE_POLL_H.
16514         * lib/poll.c: Use common idiom.
16515         * tests/test-poll.c: Likewise.
16516         * doc/posix-headers/poll.texi: Mention the poll-h module.
16517         Suggested by Eric Blake.
16518
16519 2010-09-26  Bruno Haible  <bruno@clisp.org>
16520
16521         sys_wait: Implement WSTOPSIG.
16522         * lib/sys_wait.in.h (WSTOPSIG): New macro.
16523         Reported by Simon Josefsson.
16524
16525 2010-09-26  Simon Josefsson  <simon@josefsson.org>
16526
16527         stdlib, sys_wait: Avoid compilation error on mingw.
16528         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
16529
16530 2010-09-26  Bruno Haible  <bruno@clisp.org>
16531
16532         stdlib tests: Avoid code duplication.
16533         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
16534         * modules/sys_wait-tests (Files): Likewise.
16535         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
16536         * tests/test-stdlib.c: Include test-sys_wait.h.
16537         (main): Invoke test_sys_wait_macros.
16538         * tests/test-sys_wait.c: Include test-sys_wait.h.
16539         (main): Invoke test_sys_wait_macros.
16540
16541 2010-09-25  Simon Josefsson  <simon@josefsson.org>
16542
16543         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
16544         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
16545         sure Windows sockets are working before calling getaddrinfo.
16546         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
16547         * doc/gnulib.texi (Windows sockets): Fix typo.
16548
16549 2010-09-25  Bruno Haible  <bruno@clisp.org>
16550
16551         Tests for module 'regex-quote'.
16552         * modules/regex-quote-tests: New file.
16553         * tests/test-regex-quote.c: New file.
16554
16555         New module 'regex-quote'.
16556         * lib/regex-quote.h: New file.
16557         * lib/regex-quote.c: New file.
16558         * modules/regex-quote: New file.
16559         Suggested by Reuben Thomas <rrt@sc3d.org>.
16560
16561 2010-09-24  Bruno Haible  <bruno@clisp.org>
16562
16563         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
16564         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
16565
16566 2010-09-23  Bruno Haible  <bruno@clisp.org>
16567
16568         setenv: Relax license.
16569         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
16570         Blake.
16571         Requested by Eric Blake.
16572
16573 2010-09-22  Bruno Haible  <bruno@clisp.org>
16574
16575         termios: Relax license.
16576         * modules/termios (License): Change to LGPLv2+.
16577         Requested by Eric Blake.
16578
16579 2010-09-22  Bruno Haible  <bruno@clisp.org>
16580
16581         threadlib: Allow the package to change the default to 'no'.
16582         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
16583         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
16584         Reported by Paul Eggert.
16585
16586 2010-09-22  Pádraig Brady  <P@draigbrady.com>
16587             Bruno Haible  <bruno@clisp.org>
16588
16589         Fix endless loop in mbmemcasecoll.
16590         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
16591         byte.
16592         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
16593
16594 2010-09-22  Bruno Haible  <bruno@clisp.org>
16595
16596         Tests for module 'memcoll'.
16597         * modules/memcoll-tests: New file.
16598         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
16599
16600         memcoll, xmemcoll: Clarify size vs. length.
16601         * modules/memcoll.c (memcoll0): Clarify specification.
16602         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
16603         passed to collate_error.
16604
16605 2010-09-22  Bruno Haible  <bruno@clisp.org>
16606
16607         Tests for module 'memcasecmp'.
16608         * modules/memcasecmp-tests: New file.
16609         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
16610
16611 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16612
16613         * lib/pthread.in.h: Add split double-inclusion guard, and include
16614         system <pthread.h> if there is one.  Use @@-style as in other
16615         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
16616         pthread.h doesn't.
16617         (pthread_mutexattr_destroy, pthread_mutexattr_init):
16618         (pthread_mutexattr_settype, pthread_mutex_trylock):
16619         New static inline functions, if there's no system <pthread.h>.
16620         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
16621         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
16622         Approximate with mutexes if the system lacks spinlocks, as in
16623         MacOS.
16624         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
16625         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
16626         @@-style.  Check for spinlocks separately.
16627         (gl_PTHREAD_DEFAULTS): New macro.
16628         * modules/pthread: Redo to use a more typical style for in.h files.
16629
16630 2010-09-21  Eric Blake  <eblake@redhat.com>
16631
16632         net_if: enhance tests
16633         * tests/test-net_if.c (main): Move signature checks earlier.
16634         Print failures to stderr.
16635         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
16636         Document the bug that we do not yet fix.
16637
16638 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16639
16640         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
16641         about gnulib, not GSS.
16642
16643 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16644
16645         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
16646         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
16647         for Emacs.
16648         * build-aux/pmccabe2html: Make Makefile.am example code more
16649         cut-and-paste friendly.
16650
16651 2010-09-21  Simon Josefsson  <simon@josefsson.org>
16652
16653         * tests/test-net_if.c: New file.
16654         * modules/net_if-tests: New file.
16655
16656 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16657
16658         pthread: add pthread_spin_destroy
16659         * lib/pthread.in.h (pthread_spin_destroy): New function.
16660
16661 2010-09-19  Bruno Haible  <bruno@clisp.org>
16662
16663         gnulib-tool: Fix --help output.
16664         * gnulib-tool (func_usage): Fix help message.
16665         Reported by Reuben Thomas <rrt@sc3d.org>.
16666
16667 2010-09-18  Jim Meyering  <meyering@redhat.com>
16668
16669         maint.mk: avoid unexpanded \n in two diagnostics
16670         * top/maint.mk (sc_prohibit_always_true_header_tests):
16671         Don't use a literal \n in a halt=... assignment.  It would not be
16672         expanded, and the two \n bytes would appear in the diagnostic output
16673         rather than the desired newline.  Use halt=$$(printf ... instead.
16674         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16675
16676 2010-09-18  Bruno Haible  <bruno@clisp.org>
16677
16678         netinet_in: Doc tweak.
16679         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
16680         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16681
16682 2010-09-18  Jim Meyering  <meyering@redhat.com>
16683
16684         init.sh: correct an outdated comment
16685         * tests/init.sh (create_exe_shims_):  s/function/alias/
16686
16687         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
16688         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
16689         a file named "*.exe" is removed between the glob expansion and the
16690         processing of that oddly named file.
16691
16692 2010-09-17  Eric Blake  <eblake@redhat.com>
16693
16694         mirbsd: add some more support
16695         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
16696         in BSD family.
16697         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
16698         devices as OpenBSD.
16699         * m4/host-os.m4 (mirbsd): Add MirBSD.
16700
16701         tests: fix unportable assumption on sys/wait.h
16702         * tests/test-sys_wait.c (main): Relax test.
16703         * tests/test-stdlib.c (main): Likewise.
16704
16705         init.sh: accomodate directory with no .exes
16706         * tests/init.sh: Accomodate directory containing only scripts.
16707
16708         tests: avoid compiler warning
16709         * tests/test-stdlib.c (main): Use the variable.
16710
16711         fdutimens, fdutimensat: update signature, again
16712         * lib/utimens.h (gl_futimens): Delete, and move signature...
16713         (fdutimens): ...here.
16714         (fdutimensat): Rearrange signature.
16715         (lutimensat): Rename variable for clarity.
16716         * lib/fdutimensat.c (fdutimensat): Update signature.
16717         * lib/utimens.c (fdutimens): Likewise.
16718         (gl_futimens): Delete.
16719         (utimens, lutimens): Update callers.
16720         * lib/futimens.c (futimens): Likewise.
16721         * tests/test-fdutimensat.c: Likewise.
16722         * tests/test-utimens.c: Likewise.
16723         * tests/test-futimens.h: Update comment.
16724         * NEWS: Mention this.
16725         Suggested by Paul Eggert.
16726
16727 2010-09-17  Bruno Haible  <bruno@clisp.org>
16728
16729         Take over the maintenance of some older macros from Autoconf.
16730         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
16731         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
16732         GNU Autoconf.
16733         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
16734         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
16735
16736 2010-09-17  Eric Blake  <eblake@redhat.com>
16737
16738         fdutimensat: drop atflag validation
16739         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
16740         with valid fd, to close a race scenario where futimens is
16741         unsupported and FILE was replaced by a symlink.
16742         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
16743         accordingly.
16744         Suggested by Paul Eggert.
16745
16746 2010-09-16  Bruno Haible  <bruno@clisp.org>
16747
16748         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
16749         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
16750
16751 2010-09-16  Bruno Haible  <bruno@clisp.org>
16752
16753         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
16754         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
16755         login_tty exists.
16756         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16757
16758 2010-09-16  Bruno Haible  <bruno@clisp.org>
16759
16760         login_tty: Make the replacement code work on BSD systems.
16761         * lib/login_tty.c: Include <sys/ioctl.h>.
16762         (login_tty): Use ioctl TIOCSCTTY when available.
16763         * modules/login_tty (Depends-on): Add sys_ioctl.
16764         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16765
16766 2010-09-16  Bruno Haible  <bruno@clisp.org>
16767
16768         login_tty: Stricter unit test.
16769         * modules/login_tty-tests (Depends-on): Add tcgetsid.
16770         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
16771         and tcgetsid() after login_tty.
16772         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16773
16774 2010-09-16  Bruno Haible  <bruno@clisp.org>
16775
16776         New module 'tcgetsid'.
16777         * lib/tcgetsid.c: New file.
16778         * m4/tcgetsid.m4: New file.
16779         * modules/tcgetsid: New file.
16780         * modules/termios (Depends-on): Add c++defs, warn-on-use.
16781         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
16782         GNULIB_TCGETSID, HAVE_TCGETSID.
16783         * lib/termios.in.h: Include <sys/types.h>.
16784         (tcgetsid): New declaration.
16785         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
16786         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
16787         * doc/posix-functions/tcgetsid.texi: Mention the new module.
16788         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
16789
16790 2010-09-16  Bruno Haible  <bruno@clisp.org>
16791
16792         Tests for module 'termios'.
16793         * modules/termios-c++-tests: New file.
16794         * modules/termios-tests: New file.
16795         * tests/test-termios-c++.cc: New file.
16796         * tests/test-termios.c: New file.
16797
16798         New module 'termios'.
16799         * modules/termios: New file.
16800         * lib/termios.in.h: New file.
16801         * m4/termios_h.m4: New file.
16802         * doc/posix-headers/termios.texi: Mention the new module.
16803
16804 2010-09-16  Eric Blake  <eblake@redhat.com>
16805
16806         fdutimensat: add an atflag parameter
16807         * lib/fdutimensat.c (fdutimensat): Add new parameter.
16808         * lib/utimens.h (fdutimensat): Update prototype.
16809         * tests/test-fdutimensat.c: Adjust test to match.
16810         * NEWS: Document the change.
16811         Suggested by Paul Eggert.
16812
16813 2010-09-16  Bruno Haible  <bruno@clisp.org>
16814
16815         Fix typos in comments.
16816         * lib/striconveh.h: Fix typo in comment.
16817         * lib/login_tty.c (login_tty): Likewise.
16818
16819 2010-09-15  Bruno Haible  <bruno@clisp.org>
16820
16821         stdlib: clarify MirBSD WEXITSTATUS bug
16822         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
16823         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16824
16825 2010-09-15  Eric Blake  <eblake@redhat.com>
16826
16827         stdlib: work around MirBSD WEXITSTATUS bug
16828         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
16829         * modules/stdlib (Depends-on): Add sys_wait.
16830         * tests/test-sys_wait.c (main): Enhance test.
16831         * tests/test-stdlib.c (main): Likewise.
16832         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
16833
16834         docs: mention MacOS issue with WEXITSTATUS(constant)
16835         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
16836         issue.
16837         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16838
16839         strnlen: add tests
16840         * modules/strnlen-tests: New file.
16841         * tests/test-strnlen.c: Likewise.
16842
16843 2010-09-14  Bruno Haible  <bruno@clisp.org>
16844
16845         unistr/base: Avoid link errors when module 'libunistring' is also used.
16846         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
16847         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
16848         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
16849         Declare also when HAVE_LIBUNISTRING is set.
16850         Reported by Pádraig Brady <P@draigbrady.com>.
16851
16852 2010-09-14  Eric Blake  <eblake@redhat.com>
16853
16854         test-rawmemchr: make more robust
16855         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
16856         (Depends-on, configure.ac): Add needed prerequisites to use it.
16857         * modules/memchr-tests (Files, Depends-on, configure.ac):
16858         Likewise, to avoid implicit reliance on memchr module prereqs.
16859         * tests/test-memchr.c (main): Ensure proper masking.
16860         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
16861         reads.
16862
16863         memchr: detect glibc Alpha bug
16864         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
16865         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
16866         Alpha.
16867         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
16868         * tests/test-memchr.c (main): Enhance test.
16869         Reported by Nelson H. F. Beebe.
16870
16871 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16872
16873         fts, getcwd, glob: audit for dirfd returning -1
16874         * lib/fts.c (opendir): Remove #define; no longer used.
16875         (opendirat): New arg PDIR_FD.  All callers changed.
16876         (fts_build, _opendir2): Use new opendirat to avoid the need for
16877         dirfd, or for checking whether dirfd returns a negative value.
16878         Don't use opendir; always use openat followed by fdopendir.
16879         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
16880         it.
16881         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
16882         returns -1 here.
16883         * modules/fts (Depends-on): Remove dirfd.
16884         * modules/getcwd (Depends-on): Likewise.
16885
16886 2010-09-13  Eric Blake  <eblake@redhat.com>
16887
16888         float: fix broken MirBSD header
16889         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
16890         * doc/posix-headers/float.texi (float.h): Document it.
16891
16892 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16893
16894         fts: use O_NOFOLLOW to avoid race condition when opening a directory
16895         * lib/fts.c (opendirat): New arg extra_flags.
16896         (__opendir2): Use it to avoid following symlinks when opening
16897         a directory, if symlinks are not supposed to be followed.  See
16898         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
16899
16900         fdopendir: preserve argument fd before returning
16901         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16902         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16903         (fdopendir): Use them, arranging for FD to be open to the same
16904         directory that it was when it started.  (It might be temporarily
16905         closed while fdopendir is running, so this not thread- or
16906         signal-safe.)  Be careful to do the right thing even when file
16907         descriptors are scarce and dup fails with errno == EMFILE.  See
16908         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16909
16910 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16911
16912         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16913         * NEWS: Document change.
16914         * m4/regex.m4: Disable test for regoff_t size.
16915
16916 2010-09-13  Jim Meyering  <meyering@redhat.com>
16917
16918         fts: don't operate on an invalid file descriptor after failed dup
16919         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16920         negative file descriptor.
16921
16922 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16923
16924         savedir: add streamsavedir, deprecate fdsavedir
16925         * NEWS: Mention deprecation of fdsavedir.
16926         * lib/savedir.c (streamsavedir): New extern function, whose name
16927         ends in "savedir" to be consistent with the others.  This differs
16928         from savedirstream in that it doesn't close its argument.  The
16929         next version of GNU tar will use this instead of fdsavedir, to
16930         avoid some race conditions and conserve file descriptors.
16931         (savedirstream): Reimplement as a wrapper around streamsavedir.
16932         (fdsavedir): Add a comment deprecating this function.  As far as
16933         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16934         * lib/savedir.h (streamsavedir): New decl.
16935         (fdsavedir): Add a comment deprecating this.
16936
16937 2010-09-10  Bruno Haible  <bruno@clisp.org>
16938
16939         langinfo: Fix last commit.
16940         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16941         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16942         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16943
16944 2010-09-10  Bruno Haible  <bruno@clisp.org>
16945
16946         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16947         * lib/progreloc.c (O_EXEC): Define fallback.
16948
16949 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16950
16951         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16952         * NEWS: Document recent changes to fcntl-h.
16953         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16954         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16955         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16956         Similarly for O_SEARCH; this last was already true, but not documented.
16957         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16958         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16959         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16960         Likewise.
16961         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16962         is zero, not whether it is defined.
16963         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16964         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16965         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16966
16967 2010-09-10  Bruno Haible  <bruno@clisp.org>
16968
16969         langinfo, nl_langinfo: Fix for IRIX 5.3.
16970         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16971         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16972         HAVE_LANGINFO_YESEXPR.
16973         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16974         HAVE_LANGINFO_YESEXPR.
16975         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16976         HAVE_LANGINFO_T_FMT_AMPM is 0.
16977         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16978         HAVE_LANGINFO_YESEXPR is 0.
16979         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16980         NOEXPR.
16981         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16982         * doc/posix-functions/nl_langinfo.texi: Likewise.
16983         Reported by Eric Blake.
16984
16985 2010-09-10  Bruno Haible  <bruno@clisp.org>
16986
16987         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16988         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16989         on FreeBSD 8.0 and OpenBSD 4.6.
16990         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16991         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16992         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16993         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16994         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16995         ac_includes_default.
16996         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16997
16998 2010-09-09  Eric Blake  <eblake@redhat.com>
16999
17000         strsignal: work around NetBSD bug
17001         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
17002         * lib/string.in.h (includes): Likewise.
17003         * doc/posix-functions/strsignal.texi (strsignal): Document the
17004         bug.
17005         Reported by Nelson H. F. Beebe.
17006
17007         gnulib-tool: work with NetBSD /bin/sh
17008         * gnulib-tool (func_cache_var, func_cache_lookup_module)
17009         (func_get_description, func_get_comment, func_get_status)
17010         (func_get_notice, func_get_applicability, func_get_filelist)
17011         (func_get_dependencies, func_get_autoconf_early_snippet)
17012         (func_get_autoconf_snippet, func_get_automake_snippet)
17013         (func_get_include_directive, func_get_link_directive)
17014         (func_get_license, func_get_maintainer, func_import): Avoid
17015         shell syntax errors from parsing syntax extensions.
17016
17017 2010-09-09  Bruno Haible  <bruno@clisp.org>
17018
17019         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17020         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
17021         a reliable way to determine whether the 'alias' command works.
17022
17023 2010-09-08  Jim Meyering  <meyering@redhat.com>
17024
17025         init.sh: penalize a set-x-impaired shell; don't disqualify it
17026         * tests/init.sh: Too many shells corrupt application stderr when
17027         you set -x, so we can't afford to disqualify them, since at least
17028         on Irix-6.5, that would disqualify all bourne shells.
17029         Instead, use a two-pass approach.
17030         On the first pass, try to find a shell that meets the stricter
17031         condition that set -x does not corrupt stderr.
17032         If no shell meets the stricter condition, retest each candidate
17033         shell, but without that extra condition.  Finally, when
17034         VERBOSE=yes is requested and set -x might cause trouble, simply
17035         issue a warning and refrain from enabling debug output.
17036
17037 2010-09-08  Eric Blake  <eblake@redhat.com>
17038
17039         unsetenv: fix OpenBSD bug
17040         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
17041         * doc/posix-functions/unsetenv.texi (unsetenv): Update
17042         documentation.
17043         Reported by Jim Meyering.
17044
17045         strtod: work around IRIX 6.5 bug
17046         * lib/strtod.c (strtod): Reparse number on shorter string if
17047         exponent parse was invalid.
17048         * tests/test-strtod.c (main): Add check for "0x1p 2".
17049         Reported by Tom G. Christensen.
17050
17051         getopt: optimize previous patch
17052         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
17053         empty variable.  Speed up awk script.
17054         Reported by Paolo Bonzini.
17055
17056 2010-09-08  Jim Meyering  <meyering@redhat.com>
17057
17058         test.sh: disqualify shells for which set -x corrupts stderr
17059         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
17060         and OpenBSD 4.7.  They make it so with "set -x", environment settings
17061         appear in stderr output.  For example, this command:
17062             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
17063         prints "P=1" on those two systems:
17064
17065 2010-09-08  Bruno Haible  <bruno@clisp.org>
17066
17067         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17068         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
17069         commands, because some shells ignore redirections when there is an
17070         error in the command lookup.
17071         Reported by Eric Blake.
17072
17073 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
17074
17075         * lib/regex.h: Fix a mention of `regex_compile' (should be
17076         `re_compile_pattern').
17077         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
17078         (re_set_registers): Correct name of parameter in comment.
17079
17080         * doc/regex.texi: Add documentation for missing syntax flags.
17081         Remove commented-out documentation of defunct syntax option
17082         RE_NO_EMPTY_ALTS.
17083         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
17084         Add documentation of re_set_registers.
17085         Document trick to re-use a pattern buffer by setting fastmap manually.
17086         Update documentation of struct re_pattern_buffer per public members.
17087         Uncomment documentation of equivalence class operators and
17088         collating symbol operators, since they are now implemented,
17089         Explain leftmost-longest matching in relation to alternatives.
17090         Tidy documentation of substring matching.
17091         Remove POSIX documentation, which is done better in
17092         glibc, and refer the reader there. Keep BSD API documentation, as
17093         that is not readily available elsewhere.
17094
17095 2010-09-07  Eric Blake  <eblake@redhat.com>
17096
17097         getopt: handle POSIXLY_CORRECT set but not exported
17098         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
17099         export state of POSIXLY_CORRECT, due to bash set -o posix.
17100         Reported by Dustin J. Mitchell.
17101
17102 2010-09-05  Bruno Haible  <bruno@clisp.org>
17103
17104         gnulib-tool: Highlight the changed options.
17105         * gnulib-tool (func_usage): Display the --import, --add-import,
17106         --remove-import explanations in bold font.
17107
17108 2010-09-06  Karl Berry  <karl@gnu.org>
17109
17110         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
17111
17112 2010-09-05  Bruno Haible  <bruno@clisp.org>
17113
17114         uniwidth/width: Update comment.
17115         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
17116         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
17117
17118 2010-09-05  Bruno Haible  <bruno@clisp.org>
17119
17120         isinf, isnan: Relax license.
17121         * modules/isinf (License): Change from GPL to LGPL, with consent from
17122         Ben Pfaff.
17123         * modules/isnan (License): Likewise.
17124         Requested by Ludovic Courtès.
17125
17126 2010-09-04  Bruno Haible  <bruno@clisp.org>
17127
17128         gnulib-tool: Help migration from --import to --add-import or --update.
17129         * gnulib-tool: Emit a verbose error message when --import is used
17130         without any module name.
17131
17132 2010-09-04  Bruno Haible  <bruno@clisp.org>
17133
17134         Update doc about gnulib-tool.
17135         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
17136         'gnulib-tool --update' in more detail.
17137         Reported by Eric Blake.
17138
17139 2010-09-04  Bruno Haible  <bruno@clisp.org>
17140
17141         gnulib-tool: Change --import. New options --add/remove-import.
17142         * gnulib-tool: New options --add-import, --remove-import.
17143         (func_usage): Document them.
17144         (have_associative): Define always.
17145         (func_import): In import mode, don't merge the specified settings with
17146         the cached settings. Implement remove-import mode.
17147         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
17148         Explain when to use them versus --import.
17149         (Simple update): Use --add-import instead of --import.
17150         * NEWS: Mention the change.
17151
17152 2010-09-04  Bruno Haible  <bruno@clisp.org>
17153
17154         * doc/gnulib-tool.texi (Initial import): Update paragraph about
17155         separate gnulib.mk.
17156
17157 2010-09-04  Bruno Haible  <bruno@clisp.org>
17158
17159         gnulib-tool: Don't talk about CVS any more.
17160         * gnulib-tool (func_usage, func_import): Write "version control"
17161         instead of CVS.
17162
17163 2010-09-04  Jim Meyering  <meyering@redhat.com>
17164
17165         maint.mk: avoid obscure sc_copyright_check failure in coreutils
17166         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
17167         false positives (whose names may be ill-chosen) when searching
17168         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
17169         would cause a false-positive.
17170
17171         avoid coreutils "make distcheck" failure
17172         Coreutils tests with an absolute build directory name that contains
17173         a space.  Not quoting this directory name caused a failure.
17174         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
17175         * tests/test-vc-list-files-cvs.sh: Likewise.
17176
17177 2010-09-04  Bruno Haible  <bruno@clisp.org>
17178
17179         gnulib-tool: Avoid error when run in a package without Makefile.am.
17180         * gnulib-tool: When collecting the m4dirs in a package that does not
17181         have a Makefile.am, eliminate those directories that contain no
17182         gnulib-cache.m4. Fix expression that counts these directories.
17183
17184 2010-09-04  Bruno Haible  <bruno@clisp.org>
17185
17186         update-copyright test: Improve output when perl is missing or too old.
17187         * tests/test-update-copyright.sh: Move test of Perl version down after
17188         the test whether Perl exists. Provide an explanation relating Perl's
17189         error message to Automake's SKIP: message.
17190
17191 2010-09-04  Bruno Haible  <bruno@clisp.org>
17192
17193         Don't augment PATH in TESTS_ENVIRONMENT.
17194         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
17195         set abs_aux_dir instead of augmenting PATH.
17196         * modules/vc-list-files-tests (Makefile.am): Likewise.
17197         * tests/test-update-copyright.sh: Augment PATH here.
17198         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
17199         path_prepend_.
17200         * tests/test-vc-list-files-git.sh: Likewise.
17201
17202 2010-09-04  Jim Meyering  <meyering@redhat.com>
17203
17204         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
17205         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
17206
17207 2010-09-04  Bruno Haible  <bruno@clisp.org>
17208
17209         strdup: Fix compilation error in C++ mode.
17210         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
17211         the macro.
17212
17213 2010-09-04  Bruno Haible  <bruno@clisp.org>
17214
17215         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
17216         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
17217         macro into a function.
17218         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17219
17220 2010-09-04  Bruno Haible  <bruno@clisp.org>
17221
17222         Set PATH_SEPARATOR the same way autoconf does.
17223         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
17224         the value of PATH_SEPARATOR the same way autoconf-generated configure
17225         scripts do.
17226         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
17227         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17228
17229 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17230
17231         Set PATH_SEPARATOR the same way autoconf does.
17232         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
17233         the same way autoconf-generated configure scripts do.
17234         * posix-modules: Likewise.
17235
17236 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17237
17238         hash: fix safe_hasher const typo
17239         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
17240         const; otherwise, there is a type error later.
17241
17242 2010-09-02  Jim Meyering  <meyering@redhat.com>
17243
17244         test-update-copyright.sh: require perl 5.8.0
17245         * tests/test-update-copyright.sh: Require 5.8.0,
17246         which Tom G. Christensen has confirmed is adequate,
17247         while 5.6.1 is not.
17248
17249 2010-09-02  Eric Blake  <eblake@redhat.com>
17250
17251         tests: init.sh improvements for re-exec'ing with zsh
17252         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
17253         -vx through shell re-exec.
17254         Reported by Tom G. Christensen.
17255
17256         wctype: fix typo in previous commit
17257         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
17258         Reported by Ludovic Courtès.
17259
17260 2010-09-02  Jim Meyering  <meyering@redhat.com>
17261
17262         test-update-copyright.sh: skip test if Perl is too old
17263         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
17264         Reported by Tom G. Christensen.
17265
17266 2010-09-02  Bruno Haible  <bruno@clisp.org>
17267
17268         wctype: Avoid compilation error on IRIX 6.5.30.
17269         * lib/wctype.in.h (iswblank): Declare with a replacement if
17270         REPLACE_ISWBLANK is set.
17271         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
17272         declared. Set REPLACE_ISWBLANK.
17273         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
17274         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
17275         * doc/posix-headers/wctype.texi: Likewise.
17276         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17277
17278 2010-09-01  Bruno Haible  <bruno@clisp.org>
17279
17280         New module 'socketlib'.
17281         * modules/socketlib: New file.
17282         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
17283         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
17284         * modules/sockets (Depends-on): Add socketlib.
17285         Suggested by Sam Steingold <sds@gnu.org>.
17286
17287 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17288
17289         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
17290
17291         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
17292         when one needs search access to a directory but not read access.
17293         On systems where it is available, it works in some cases where
17294         O_RDONLY does not, namely on directories that are searchable but
17295         not readable, and which need only to be searchable.  If O_SEARCH
17296         is not available, fall back to the traditional method of using
17297         O_RDONLY.
17298
17299         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
17300         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
17301         when opening a directory that needs only to be searchable.
17302         * lib/chdir-safer.c (chdir_no_follow): Likewise.
17303         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
17304         * lib/openat-proc.c (openat_proc_name): Likewise.
17305         * lib/openat.c (openat_needs_fchdir): Likewise.
17306         * lib/save-cwd.c (save_cwd): Likewise.
17307         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
17308
17309 2010-08-28  Bruno Haible  <bruno@clisp.org>
17310
17311         New module 'host-cpu-c-abi'.
17312         * modules/host-cpu-c-abi: New file.
17313         * m4/host-cpu-c-abi.m4: New file, based on part of
17314         clisp/src/m4/general.m4.
17315         Requested by Sam Steingold <sds@gnu.org>.
17316
17317 2010-08-31  Eric Blake  <eblake@redhat.com>
17318         and Jim Meyering  <meyering@redhat.com>
17319
17320         hash: factor, and guard against misbehaving hasher function
17321         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
17322         of table->hasher's return value.  Also protect against a hash value
17323         so large that adding it to table->bucket results in a NULL pointer.
17324         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
17325         Use it in place of open-coded check-and-abort.
17326
17327 2010-08-30  Bruno Haible  <bruno@clisp.org>
17328
17329         hash: silence spurious clang warning
17330         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
17331         Reported by Eric Blake.
17332
17333 2010-08-30  Eric Blake  <eblake@redhat.com>
17334
17335         strstr, memmem, strcasestr: avoid leaked shell message
17336         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
17337         FreeBSD.
17338         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17339         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17340
17341         tests: silence clang warning
17342         * tests/test-malloca.c (do_allocation): Avoid dead store.
17343
17344 2010-08-29  Bruno Haible  <bruno@clisp.org>
17345
17346         gettext: Fix recent mistake.
17347         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
17348
17349 2010-08-29  Bruno Haible  <bruno@clisp.org>
17350
17351         selinux-h: Offer a --without-selinux option.
17352         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
17353         --without-selinux was specified, skip all tests and define
17354         HAVE_SELINUX_SELINUX_H to 0.
17355         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
17356         set LIB_SELINUX to empty.
17357         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
17358         gl_LIBSELINUX. If --without-selinux was specified, replace
17359         selinux/context.h.
17360         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
17361
17362 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17363             Bruno Haible  <bruno@clisp.org>
17364
17365         Make the module 'realloc-gnu' work again on AIX and OSF/1.
17366         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
17367         of HAVE_REALLOC.
17368         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
17369         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
17370         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
17371         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17372
17373 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17374             Bruno Haible  <bruno@clisp.org>
17375
17376         Make the module 'calloc-gnu' work again on AIX and OSF/1.
17377         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
17378         HAVE_CALLOC.
17379         * lib/xmalloc.c: Update accordingly.
17380         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
17381         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
17382         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17383
17384 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17385             Bruno Haible  <bruno@clisp.org>
17386
17387         Make the module 'malloc-gnu' work again on AIX and OSF/1.
17388         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
17389         HAVE_MALLOC.
17390         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
17391         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
17392         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17393
17394 2010-08-29  Bruno Haible  <bruno@clisp.org>
17395
17396         Update modules list.
17397         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
17398         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
17399         (String handling <string.h>): Add astrxfrm.
17400         (File system functions): Add readlinkat.
17401
17402 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17403
17404         Tests for module 'realloc-gnu'.
17405         * modules/realloc-gnu-tests: New file.
17406         * tests/test-realloc-gnu.c: New file.
17407
17408         Tests for module 'calloc-gnu'.
17409         * modules/calloc-gnu-tests: New file.
17410         * tests/test-calloc-gnu.c: New file.
17411
17412         Tests for module 'malloc-gnu'.
17413         * modules/malloc-gnu-tests: New file.
17414         * tests/test-malloc-gnu.c: New file.
17415
17416 2010-08-28  Bruno Haible  <bruno@clisp.org>
17417
17418         Rename module 'realloc' -> 'realloc-gnu'.
17419         * modules/realloc-gnu: New file, copied from modules/realloc.
17420         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
17421         obsolete.
17422         * modules/mgetgroups (Depends-on): Update.
17423         * doc/posix-functions/realloc.texi: Update.
17424         * NEWS: Mention the change.
17425
17426         Rename module 'calloc' -> 'calloc-gnu'.
17427         * modules/calloc-gnu: New file, copied from modules/calloc.
17428         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
17429         obsolete.
17430         * doc/posix-functions/calloc.texi: Update.
17431         * NEWS: Mention the change.
17432
17433         Rename module 'malloc' -> 'malloc-gnu'.
17434         * modules/malloc-gnu: New file, copied from modules/malloc.
17435         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
17436         obsolete.
17437         * modules/argp (Depends-on): Update.
17438         * modules/regex (Depends-on): Update.
17439         * doc/posix-functions/malloc.texi: Update.
17440         * NEWS: Mention the change.
17441
17442 2010-08-28  Eric Blake  <eblake@redhat.com>
17443
17444         pread, pwrite: add missing dependency
17445         * modules/pread (Depends-on): Add extensions.
17446         * modules/pwrite (Depends-on): Likewise.
17447
17448 2010-08-28  Bruno Haible  <bruno@clisp.org>
17449
17450         unistr/u*-strchr: Fix tests dependencies.
17451         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
17452         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
17453         Reported by Ian Beckwith <ianb@erislabs.net>.
17454
17455 2010-08-28  Bruno Haible  <bruno@clisp.org>
17456
17457         read-file: Don't occupy too much unused memory.
17458         * lib/read-file.c (fread_file): Shrink the buffer at the end.
17459
17460 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
17461             Eric Blake  <eblake@redhat.com>
17462             Bruno Haible  <bruno@clisp.org>
17463
17464         read-file: Avoid memory reallocations with regular files.
17465         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
17466         (fread_file): With regular files, use the remaining length as the
17467         initial buffer size.  Check against overflow.
17468         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
17469         sys_stat.
17470
17471 2010-08-28  Bruno Haible  <bruno@clisp.org>
17472
17473         ftello: Relax license.
17474         * modules/ftello (License): Relax to LGPLv2+.
17475         Reported by Eric Blake.
17476
17477 2010-08-28  Bruno Haible  <bruno@clisp.org>
17478
17479         Avoid relocwrapper link errors due to gnulib replacement functions.
17480         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
17481         function.
17482         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17483
17484 2010-08-28  Bruno Haible  <bruno@clisp.org>
17485
17486         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
17487         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
17488         defined.
17489         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
17490         Suggested by Eric Blake.
17491
17492 2010-08-28  Bruno Haible  <bruno@clisp.org>
17493
17494         sys_socket, netdb: Ensure socklen_t gets defined.
17495         * modules/sys_socket (Depends-on): Add socklen.
17496         * modules/netdb (Depends-on): Likewise.
17497         * modules/getaddrinfo (Depends-on): Remove socklen.
17498         * modules/getsockopt (Depends-on): Likewise.
17499         * modules/setsockopt (Depends-on): Likewise.
17500         * tests/test-sys_socket.c: Check that socklen_t is defined.
17501         * tests/test-netdb.c: Likewise.
17502         * m4/socklen.m4: Update comments.
17503         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17504
17505 2010-08-27  Eric Blake  <eblake@redhat.com>
17506
17507         login_tty: add missing dependency
17508         * modules/login_tty (Depends-on): Add pty.
17509
17510 2010-08-26  Eric Blake  <eblake@redhat.com>
17511
17512         lib-symbol-versions: fix m4 quoting
17513         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
17514         format for AC_LINK_IFELSE.
17515
17516         glob: fix compile test
17517         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
17518
17519         btowc: fix missing file
17520         * modules/btowc (Files): Also ship locale-fr.m4.
17521
17522         lseek: fix link test
17523         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
17524         AC_LINK_IFELSE.
17525
17526         include_next: silence autoconf 2.68 warning
17527         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
17528         AC_COMPILE_IFELSE as special.
17529         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
17530         autoconf < 2.68.
17531
17532         acl: fix compilation test
17533         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
17534         AC_COMPILE_IFELSE.
17535
17536 2010-08-26  Bruno Haible  <bruno@clisp.org>
17537
17538         Modernize AC_TRY_RUN invocations.
17539         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
17540         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17541         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
17542         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
17543         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
17544         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17545         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17546         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17547         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17548         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17549         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17550         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17551         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17552         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17553         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17554         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17555         gl_MBRLEN_NUL_RETVAL): Likewise.
17556         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17557         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17558         Likewise.
17559         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17560         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17561         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17562         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17563         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
17564         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
17565         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
17566         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
17567         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
17568         Likewise.
17569         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17570         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
17571         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17572         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17573         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17574         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17575         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17576         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
17577         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17578         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17579
17580 2010-08-26  Bruno Haible  <bruno@clisp.org>
17581
17582         Modernize AC_TRY_LINK invocations.
17583         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
17584         AC_TRY_LINK.
17585         * m4/argp.m4 (gl_ARGP): Likewise.
17586         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
17587         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17588         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
17589         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17590         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17591         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
17592         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
17593         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
17594         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17595         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
17596         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17597         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
17598         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
17599         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17600         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17601         * m4/hostent.m4 (gl_HOSTENT): Likewise.
17602         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17603         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
17604         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17605         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
17606         Likewise.
17607         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
17608         Likewise.
17609         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
17610         Likewise.
17611         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17612         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
17613         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
17614         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
17615         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
17616         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17617         * m4/servent.m4 (gl_SERVENT): Likewise.
17618         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
17619         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
17620         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
17621         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
17622         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17623         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17624         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17625         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17626         * modules/tsearch-tests (configure.ac): Likewise.
17627
17628 2010-08-26  Bruno Haible  <bruno@clisp.org>
17629
17630         Modernize AC_TRY_COMPILE invocations.
17631         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
17632         AC_TRY_COMPILE.
17633         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
17634         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
17635         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17636         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17637         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17638         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17639         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17640         * m4/lock.m4 (gl_LOCK): Likewise.
17641         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
17642         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17643         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
17644         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17645         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17646         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
17647         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
17648         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
17649         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17650         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17651         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17652         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17653         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
17654         extraneous semicolon.
17655
17656 2010-08-26  Jim Meyering  <meyering@redhat.com>
17657
17658         stat-time: relax license LGPL
17659         * modules/stat-time (License): Change from GPL to LGPL,
17660         with consent from all contributors, for use in libguile.
17661         Requested by Ludovic Courtès.
17662
17663 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
17664
17665         poll: return immediately on POLLHUP.
17666         * lib/poll.c (poll): Always set timeout before wait_timeout is
17667         computed.
17668
17669 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17670
17671         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
17672         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
17673         rmdir ("dir/.//"), unlinkat.
17674
17675 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17676
17677         stdbool: avoid spurious failure with modern xlc
17678         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17679
17680 2010-08-24  Bruno Haible  <bruno@clisp.org>
17681
17682         getloadavg: simplify code
17683         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
17684         gl_have_func. Update comments.
17685
17686 2010-08-24  Eric Blake  <eblake@redhat.com>
17687
17688         getloadavg: don't define SVR4 on cygwin
17689         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
17690         only define SVR4 when -lkvm is required.
17691         Reported by Yaakov Selkowitz.
17692
17693 2010-08-24  Bruno Haible  <bruno@clisp.org>
17694
17695         priv-set: fix comment
17696         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
17697
17698 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17699
17700         priv-set: fix comments
17701         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
17702         to match code, as suggested by David Bartley in:
17703         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
17704
17705 2010-08-23  Eric Blake  <eblake@redhat.com>
17706
17707         stdbool: avoid rejecting clang
17708         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17709         * tests/test-stdbool.c: Enable more tests if using the system
17710         <stdbool.h> instead of the gnulib replacement.
17711         (main): Move xlc bug test to a runtime test for all compilers.
17712         Reported by Anders Kaseorg.
17713
17714         argz: fix shell quoting issue
17715         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
17716         Reported by Charles Wilson.
17717
17718 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
17719             Erik Faye-Lund <kusmabite@gmail.com>
17720
17721         poll, select: handle ERROR_BROKEN_PIPE.
17722         * lib/poll.c (win32_compute_revents): Return POLLHUP when
17723         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17724         * lib/select.c (win32_compute_revents): Do not mark a pipe
17725         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17726
17727 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
17728
17729         fts: allow compilation with C++
17730         * lib/fts_.h: Specify extern "C" linkage with C++.
17731
17732 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17733
17734         Fix gnulib-tool sed script de-commentation for AIX sed.
17735         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
17736         sed.
17737
17738 2010-08-17  Eric Blake  <eblake@redhat.com>
17739
17740         test-stddef: test for (some) offsetof bugs
17741         * tests/test-stddef.c: Enhance test to ensure correct type of
17742         offsetof.
17743         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
17744         that we are not fixing at this time.
17745
17746 2010-08-15  Bruno Haible  <bruno@clisp.org>
17747
17748         stpncpy: Allow stpncpy to be defined as a macro.
17749         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
17750         if it's already correctly declared.
17751         * lib/string.in.h (stpncpy): Undefine before redefining.
17752         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
17753
17754 2010-08-14  Bruno Haible  <bruno@clisp.org>
17755
17756         Rename module 'memxfrm' to 'amemxfrm'.
17757         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
17758         (amemxfrm): Renamed from memxfrm.
17759         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
17760         (amemxfrm): Renamed from memxfrm.
17761         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
17762         * NEWS: Mention the change.
17763         * MODULES.html.sh (String handling <string.h>): Update.
17764         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
17765         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
17766         * lib/unicase/u16-casexfrm.c: Likewise.
17767         * lib/unicase/u32-casexfrm.c: Likewise.
17768         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
17769         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
17770         * lib/uninorm/u16-normxfrm.c: Likewise.
17771         * lib/uninorm/u32-normxfrm.c: Likewise.
17772         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
17773         memxfrm.
17774         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
17775         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
17776         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
17777         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
17778         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
17779         Suggested by Paul Eggert.
17780
17781 2010-08-14  Bruno Haible  <bruno@clisp.org>
17782
17783         Tests for module 'astrxfrm'.
17784         * modules/astrxfrm-tests: New file.
17785         * tests/test-astrxfrm.c: New file.
17786
17787         New module 'astrxfrm'.
17788         * lib/astrxfrm.h: New file.
17789         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
17790         * modules/astrxfrm: New file.
17791
17792 2010-08-14  Reuben Thomas <rrt@sc3d.org>
17793
17794         regex: Tweak doc.
17795         * doc/regex.texi (Overview): Don't mention regex.c.
17796         (GNU Regular Expression Compiling): Likewise.
17797         (Match-end-of-line Operator): Mention 'not_eol'.
17798
17799 2010-08-14  Brian Gough  <bjg@gnu.org>
17800             Bruno Haible  <bruno@clisp.org>
17801
17802         git-merge-changelog: add doc relating to use with bzr and hg.
17803         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
17804
17805 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
17806
17807         pthread: fix pthread.h creation for srcdir != builddir
17808         * modules/pthread (Makefile.am): Fix the rule to work also in a
17809         non-srcdir build.
17810
17811 2010-08-13  Karl Berry  <karl@gnu.org>
17812
17813         * doc/regex.texi (Predefined Syntaxes): @smallexample.
17814         * doc/posix-*/*: force line break before @url of POSIX
17815         specifications.
17816         Suggested by Werner Lemberg.
17817
17818 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17819
17820         strtod: fix const diagnostic
17821         * lib/strtod.c (strtod): Don't assign const char * to char *,
17822         as this elicits a warning from GCC when warnings are enabled.
17823
17824 2010-08-10  Pádraig Brady <P@draigbrady.com>
17825         and Eric Blake  <eblake@redhat.com>
17826
17827         copy-acl: ignore ENOTSUP on HP-UX
17828         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
17829         so that it is available for HP-UX.
17830         * lib/copy-acl.c (qcopy_acl): Use it.
17831         Reported by Patrick M. Callahan.
17832
17833 2010-08-10  Eric Blake  <eblake@redhat.com>
17834
17835         open, chown: relax license
17836         * modules/open (License): Change to LGPLv2+, with consent by all
17837         authors, for use in augeas.
17838         * modules/chown (License): Likewise.
17839         * modules/lchown (Likewise): Likewise.
17840         Requested by Adam Stokes.
17841
17842 2010-08-09  Karl Berry  <karl@gnu.org>
17843
17844         * build-aux/ar-lib: new file, import from Automake.
17845         * config/srclist.txt: autocheck for updates.
17846
17847 2010-08-09  Eric Blake  <eblake@redhat.com>
17848
17849         readlinkat: adjust client modules
17850         * modules/areadlinkat (Depends-on): Use readlinkat, not
17851         symlinkat.
17852         * modules/areadlinkat-with-size (Depends-on): Likewise.
17853
17854         mknod: be more vocal about danger of running tests as root
17855         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
17856         root, since that is just asking for problems.
17857         Suggested by Bruno Haible, based on a report by Rainer Tammer.
17858
17859         readlinkat: split into its own module
17860         * modules/symlinkat: Split readlinkat...
17861         * modules/readlinkat: ...into separate module.
17862         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
17863         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
17864         * lib/symlinkat.c (readlinkat): Move...
17865         * lib/readlinkat.c: ...into new file.
17866         * modules/symlinkat-tests: Split readlinkat test...
17867         * modules/readlinkat-tests: ...into separate module.
17868         * tests/test-symlinkat.c: Split...
17869         * tests/test-readlinkat.c: ...into new file.
17870         * NEWS: Document the split.
17871         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17872         * lib/unistd.in.h (readlinkat): Likewise.
17873         Suggested by Bruno Haible.
17874
17875 2010-08-08  Bruno Haible  <bruno@clisp.org>
17876
17877         memxfrm: Speed up.
17878         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
17879         that usually only one call to strxfrm is necessary for each string
17880         part.
17881         Reported by Paul Eggert <eggert@cs.ucla.edu>.
17882
17883 2010-08-07  Karl Berry  <karl@gnu.org>
17884
17885         * doc/posix-headers/limits.texi,
17886         * doc/posix-functions/malloc.texi,
17887         * doc/posix-functions/strsignal.texi: missing @item.
17888         * doc/ld-version-script.texi: spurious leading i.
17889         * doc/regex.texi (Interval Operators): no commas inside @var.
17890
17891 2010-08-01  Bruno Haible  <bruno@clisp.org>
17892
17893         Integrate the regex documentation.
17894         * doc/gnulib.texi: Define 'cn' index.
17895         (Regular expressions): New a chapter that includes regex.texi and
17896         regexprops-generic.texi.
17897         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
17898         syntax.
17899
17900         Whitespace cleanup.
17901         * doc/regex.texi: Remove trailing spaces.
17902
17903         Add regex documentation.
17904         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17905         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17906         Written by Kathy A. Hargreaves and Karl Berry.
17907
17908 2010-08-01  Bruno Haible  <bruno@clisp.org>
17909
17910         link: Update documentation.
17911         * doc/posix-functions/link.texi: Update regarding Solaris.
17912
17913 2010-07-31  Bruno Haible  <bruno@clisp.org>
17914
17915         Update modules list.
17916         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17917         (String handling <string.h>): Add memcmp2, memxfrm.
17918         (Container data structures): Add xlist, xsublist, xoset.
17919         (Core language properties): Add alignof, unused-parameter.
17920         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17921         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17922         (Unibyte characters <ctype.h>): New section.
17923         (String handling <string.h>): New section.
17924         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17925         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17926         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17927         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17928         tan, tanh, tanl, y0, y1, yn.
17929         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17930         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17931         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17932         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17933         unlockpt, vdprintf, vdprintf-posix.
17934         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17935         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17936         xconcat-filename.
17937         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17938         getdtablesize, pipe2, pipe2-safer.
17939         (Security): New section.
17940         (Networking functions): Add accept4.
17941         (Signal handling): Add sigpipe.
17942         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17943         mbmemcasecoll.
17944         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17945         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17946         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17947         pipe-filter-ii.
17948         (Misc): Add argp-version-etc, login_tty, parse-duration.
17949
17950 2010-07-31  Bruno Haible  <bruno@clisp.org>
17951
17952         Improve doc in MODULES.html.
17953         * modules/linkat (Description): Add the word "function".
17954         * modules/mkfifo (Description): Likewise.
17955         * modules/mknod (Description): Likewise.
17956         * modules/remove (Description): Likewise.
17957         * modules/renameat (Description): Likewise.
17958         * modules/stat (Description): Likewise.
17959         * modules/symlink (Description): Likewise.
17960         * modules/unlink (Description): Likewise.
17961
17962 2010-07-31  Bruno Haible  <bruno@clisp.org>
17963
17964         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17965         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17966         option --enable/disable-c++ instead of --enable/disable-cxx.
17967         * NEWS: Mention the change.
17968
17969 2010-07-31  Bruno Haible  <bruno@clisp.org>
17970
17971         readlink, areadlink: Relax test a bit.
17972         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17973         alternative to ENOTDIR.
17974         * tests/test-areadlink.h (test_areadlink): Likewise.
17975         Reported by Rainer Tammer.
17976
17977 2010-07-31  Bruno Haible  <bruno@clisp.org>
17978
17979         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17980         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17981         character, perform the search using U_STRCHR.
17982         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17983         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17984         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17985         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17986         Suggested by Paolo Bonzini.
17987
17988 2010-07-31  Bruno Haible  <bruno@clisp.org>
17989
17990         unistr/u*-strstr: Fix dependencies.
17991         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17992         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17993         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17994
17995 2010-07-31  Bruno Haible  <bruno@clisp.org>
17996
17997         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17998         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17999         the beginning of the loop.
18000         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
18001         cases in 'switch' statement.
18002
18003         unistr/u8-strchr: Fix several bugs.
18004         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
18005         the string. When not found, return NULL, not a pointer near the end.
18006
18007         More tests for unistr/u8-strchr.
18008         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
18009         that the function does not read past the first occurrence of the byte
18010         being searched.
18011         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
18012         * tests/unistr/test-u16-strchr.c (main): New function.
18013         * tests/unistr/test-u32-strchr.c (main): New function.
18014
18015 2010-07-31  Bruno Haible  <bruno@clisp.org>
18016
18017         posix-modules: Ignore backup files of documentation files.
18018         * posix-modules: grep only through files named *.texi.
18019
18020 2010-07-31  Bruno Haible  <bruno@clisp.org>
18021
18022         symlinkat: Fix documentation.
18023         * doc/posix-functions/readlinkat.texi: Fix module name.
18024
18025 2010-07-31  Bruno Haible  <bruno@clisp.org>
18026
18027         fchownat: Replace also when chown has the trailing slash bug.
18028         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
18029         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
18030         introduced on 2010-04-10.
18031         Reported by Rainer Tammer.
18032
18033 2010-07-31  Bruno Haible  <bruno@clisp.org>
18034
18035         linkat: Work around AIX 7.1 bug.
18036         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
18037         whether linkat handles trailing slash correctly. If not, replace linkat
18038         and define LINKAT_TRAILING_SLASH_BUG.
18039         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
18040         check whether (fd1,file1) points to a directory if file1 or file2 ends
18041         in a slash. Code taken from lib/link.c.
18042         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
18043         Reported by Rainer Tammer.
18044
18045 2010-07-31  Bruno Haible  <bruno@clisp.org>
18046
18047         Correctly determine whether pow is available in libc on AIX 7 with xlc.
18048         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
18049         This disables an xlc optimization that was causing wrong test results.
18050         Reported by Rainer Tammer.
18051
18052 2010-07-31  Bruno Haible  <bruno@clisp.org>
18053
18054         iconv: Work around AIX 6.1..7.1 bug.
18055         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
18056         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
18057         cross-compiling, guess no on all versions of AIX.
18058         Reported by Rainer Tammer.
18059
18060 2010-07-31  Bruno Haible  <bruno@clisp.org>
18061
18062         readlink: Relax test a bit.
18063         * tests/test-readlink.h (test_readlink): Allow different errno value
18064         when readlink is called with a file name that ends in / and refers to
18065         a file.
18066         Suggested by Eric Blake.
18067         Reported by Rainer Tammer.
18068
18069 2010-07-31  Bruno Haible  <bruno@clisp.org>
18070
18071         copysign: Does not require -lm on glibc systems.
18072         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
18073         gl_COMMON_DOUBLE_MATHFUNC.
18074         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
18075
18076 2010-07-31  Bruno Haible  <bruno@clisp.org>
18077
18078         duplocale: Work around AIX 7.1 bug.
18079         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
18080         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
18081         * lib/duplocale.c (rpl_duplocale): Update comment.
18082         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
18083         Reported by Rainer Tammer.
18084
18085 2010-07-30  Bruno Haible  <bruno@clisp.org>
18086
18087         dirfd: Avoid link error on AIX 7.1.
18088         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
18089         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
18090         exist, set REPLACE_DIRFD.
18091         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
18092         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
18093         * doc/posix-functions/dirfd.texi: Update.
18094         Reported by Rainer Tammer.
18095
18096 2010-07-30  Eric Blake  <eblake@redhat.com>
18097
18098         strtod: next round of AIX fixes
18099         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
18100         exponent.
18101         * tests/test-strtod.c (main): Enhance tests.
18102         * doc/posix-functions/strtod.texi (strtod): Document next bug.
18103         Reported by Rainer Tammer.
18104
18105         futimens: fix configure check
18106         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
18107         Reported by Bruno Haible.
18108
18109 2010-07-30  Bruno Haible  <bruno@clisp.org>
18110
18111         getline: Update regarding AIX.
18112         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
18113         Reported by Rainer Tammer.
18114
18115 2010-07-30  Bruno Haible  <bruno@clisp.org>
18116
18117         wcwidth: Drop replacement on AIX 7.
18118         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
18119         AIX 7.
18120         Reported by Rainer Tammer.
18121
18122 2010-07-30  Bruno Haible  <bruno@clisp.org>
18123
18124         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
18125         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
18126         a 'char *'.
18127         Reported by Rainer Tammer.
18128
18129 2010-07-30  Bruno Haible  <bruno@clisp.org>
18130
18131         unlink: Update regarding AIX.
18132         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
18133         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
18134         Reported by Rainer Tammer.
18135
18136 2010-07-30  Bruno Haible  <bruno@clisp.org>
18137
18138         symlink: Update regarding AIX.
18139         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
18140         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
18141         Reported by Rainer Tammer.
18142
18143 2010-07-30  Bruno Haible  <bruno@clisp.org>
18144
18145         strndup: Update regarding AIX.
18146         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
18147         AIX 7.
18148         Reported by Rainer Tammer.
18149
18150 2010-07-30  Bruno Haible  <bruno@clisp.org>
18151
18152         stat: Update regarding AIX.
18153         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
18154         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
18155         Reported by Rainer Tammer.
18156
18157 2010-07-30  Bruno Haible  <bruno@clisp.org>
18158
18159         truncl: Fix autoconf test.
18160         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
18161         whether truncl works.
18162         Reported by Rainer Tammer.
18163
18164 2010-07-30  Bruno Haible  <bruno@clisp.org>
18165
18166         round: Update regarding AIX.
18167         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
18168         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
18169         Reported by Rainer Tammer.
18170
18171 2010-07-30  Bruno Haible  <bruno@clisp.org>
18172
18173         rename: Update regarding AIX.
18174         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
18175         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
18176         Reported by Rainer Tammer.
18177
18178 2010-07-30  Bruno Haible  <bruno@clisp.org>
18179
18180         printf.m4: Update regarding AIX.
18181         * m4/printf.m4: Update comments regarding AIX.
18182         Reported by Rainer Tammer.
18183
18184 2010-07-30  Bruno Haible  <bruno@clisp.org>
18185
18186         iconv: Update regarding AIX.
18187         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
18188         AIX 7.
18189         Reported by Rainer Tammer.
18190
18191 2010-07-30  Bruno Haible  <bruno@clisp.org>
18192
18193         getopt: Update regarding AIX.
18194         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
18195         no on AIX.
18196         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
18197         Reported by Rainer Tammer.
18198
18199 2010-07-30  Bruno Haible  <bruno@clisp.org>
18200
18201         ldexpl; Update regarding AIX.
18202         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
18203         on AIX 7.
18204         Reported by Rainer Tammer.
18205
18206 2010-07-30  Bruno Haible  <bruno@clisp.org>
18207
18208         frexpl: Update regarding AIX.
18209         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
18210         on AIX 7.
18211         Reported by Rainer Tammer.
18212
18213 2010-07-30  Bruno Haible  <bruno@clisp.org>
18214
18215         open, fopen: Update regarding AIX.
18216         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
18217         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18218         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
18219         * doc/posix-functions/fopen.texi: Likewise.
18220         Reported by Rainer Tammer.
18221
18222 2010-07-30  Bruno Haible  <bruno@clisp.org>
18223
18224         chown: Update doc regarding AIX.
18225         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
18226         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
18227         Reported by Rainer Tammer.
18228
18229 2010-07-30  Eric Blake  <eblake@redhat.com>
18230
18231         strtod: fix bug in replacement function on AIX
18232         * lib/strtod.c (strtod): Special case broken "0x" parse in
18233         underlying strtod.
18234         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
18235         * doc/posix-functions/strtod.texi (strtod): Likewise.
18236         Reported by Rainer Tammer.
18237
18238 2010-07-30  Bruno Haible  <bruno@clisp.org>
18239
18240         mbrlen: Fix cross-compilation guess for AIX.
18241         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
18242         guess. Leftover from 2008-12-22.
18243
18244 2010-07-30  Bruno Haible  <bruno@clisp.org>
18245
18246         mbrtowc: Fix cross-compilation guess for AIX.
18247         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
18248         guess. Leftover from 2008-12-21.
18249
18250 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
18251
18252         init.sh: work around trap limitation of some shells
18253         * tests/init.sh (setup_): Move exit trap outside of shell function.
18254
18255 2010-07-29  Eric Blake  <eblake@redhat.com>
18256
18257         strtod: aid debugging
18258         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
18259         understanding why strtod is rejected.
18260
18261 2010-07-28  Bruno Haible  <bruno@clisp.org>
18262
18263         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
18264         * lib/unistr/u8-chr.c: Include <string.h>.
18265         * tests/unistr/test-u8-chr.c: Likewise.
18266         * tests/unistr/test-u16-chr.c: Likewise.
18267         * tests/unistr/test-u32-chr.c: Likewise.
18268         * tests/unistr/test-u8-strchr.c: Likewise.
18269         * tests/unistr/test-u16-strchr.c: Likewise.
18270         * tests/unistr/test-u32-strchr.c: Likewise.
18271         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
18272         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
18273         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
18274         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
18275
18276 2010-07-28  Bruno Haible  <bruno@clisp.org>
18277
18278         Use spaces for indentation, not tabs.
18279         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
18280
18281 2010-07-27  Bruno Haible  <bruno@clisp.org>
18282
18283         mbspcasecmp: Fix function specification.
18284         * lib/string.in.h (mbspcasecmp): Fix specification comment.
18285         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
18286         Reported by Eric Blake <eblake@redhat.com>.
18287
18288 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
18289
18290         timespec: use cast and not conditional, as truncation isn't possible
18291         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
18292         instead of a conditional.  Comment about the situation in more detail.
18293         This undoes most of the 2009-10-29 patch.
18294
18295 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
18296
18297         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
18298         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
18299         * lib/unistr/u8-strchr.c: Likewise.
18300         * modules/unistr/u8-chr: Depend on memchr.
18301
18302         unistr/u*-strchr: add tests
18303         * modules/unistr/u8-strchr-tests: New file.
18304         * modules/unistr/u16-strchr-tests: New file.
18305         * modules/unistr/u32-strchr-tests: New file.
18306         * tests/unistr/test-strchr.h: New file.
18307         * tests/unistr/test-u8-strchr.c: New file.
18308         * tests/unistr/test-u16-strchr.c: New file.
18309         * tests/unistr/test-u32-strchr.c: New file.
18310
18311         unistr/u*-chr: test multibyte sequences more
18312         * tests/unistr/test-chr.h: Do complete testing of the characters in the
18313         test vector.
18314         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
18315         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
18316         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
18317
18318         unistr/u*-chr: test multibyte sequences
18319         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
18320
18321         unistr/u*-chr: prepare for multibyte tests
18322         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
18323         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
18324         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
18325         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
18326         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
18327         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
18328
18329 2010-07-18  Bruno Haible  <bruno@clisp.org>
18330
18331         unistr/u8-strchr: Optimize non-ASCII argument case.
18332         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
18333         because the first byte often matches anyway.
18334         Reported by Pádraig Brady <P@draigbrady.com>.
18335
18336 2010-07-15  Karl Berry  <karl@gnu.org>
18337
18338         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
18339
18340 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
18341
18342         getcwd: on Solaris, work better if ancestors are inaccessible
18343         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
18344         buffer and size, try again with a large buffer.  This works better
18345         on Solaris, since its getcwd succeeds even if the path to the root
18346         is inaccessible, and this is helpful in common cases such as .zfs
18347         hidden directories.  Problem reported by J Chapman Flack in
18348         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
18349         Use system getcwd if it's declared, not merely if it's partly
18350         working; use the partly-working test only to avoid needless effort
18351         if the system getcwd fails.
18352         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
18353         comment that was already obsolete and is now even more obsolete.
18354         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
18355         now might call strdup.
18356
18357 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
18358
18359         pthread: Add enough so that coreutils/src/sort.c compiles.
18360         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
18361         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
18362         gnulib. Include <sched.h> and <time.h>, as per POSIX.
18363         Include <sys/types.h>, in case it defines pthread_t.
18364         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
18365         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
18366         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
18367         (pthread_rwlockattr_t, pthread_spinlock_t):
18368         New typedefs, if HAVE_PTHREAD_T is not defined.
18369         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
18370         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
18371         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
18372         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
18373         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
18374         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
18375         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
18376         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
18377         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
18378         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
18379         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
18380         New macros.
18381         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
18382         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
18383         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
18384         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
18385         (pthread_spin_unlock): New dummy functions.
18386         (pthread_create): Return EAGAIN; don't set errno.
18387         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
18388         require AC_C_INLINE.
18389         * modules/pthread (Depends-on): Add sched, time.
18390         (pthread.h): Use AM_V_GEN.
18391
18392 2010-07-13  Bruno Haible  <bruno@clisp.org>
18393
18394         striconveh: Don't malloc memory if the result buffer is sufficient.
18395         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
18396         buffer if its size is sufficient.
18397         Reported by Ludovic Courtès <ludo@gnu.org>.
18398
18399 2010-07-13  Bruno Haible  <bruno@clisp.org>
18400
18401         strtod: Add safety check.
18402         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
18403
18404 2010-07-12  Bruno Haible  <bruno@clisp.org>
18405
18406         Unify tests that set gl_cv_func_ldexpl_no_libm.
18407         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
18408         gl_FUNC_LDEXPL.
18409         (gl_FUNC_LDEXPL): Invoke it.
18410         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18411
18412 2010-07-12  Bruno Haible  <bruno@clisp.org>
18413
18414         Unify tests that set gl_cv_func_ldexp_no_libm.
18415         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
18416         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
18417         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
18418         (configure.ac): Simply invoke gl_FUNC_LDEXP.
18419         * modules/strtod (Files): Add m4/ldexp.m4.
18420
18421 2010-07-12  Bruno Haible  <bruno@clisp.org>
18422
18423         Unify tests that set gl_cv_func_frexpl_no_libm.
18424         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
18425         gl_FUNC_FREXPL_NO_LIBM.
18426         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
18427         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18428
18429 2010-07-12  Bruno Haible  <bruno@clisp.org>
18430
18431         Unify tests that set gl_cv_func_frexp_no_libm.
18432         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
18433         gl_FUNC_FREXP_NO_LIBM.
18434         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
18435         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18436
18437 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18438
18439         memcoll: clarify sizes versus lengths, document better, and tweak perf
18440         * lib/memcoll.c (strcoll_loop, memcoll0):
18441         Improve quality of descriptive comments.  Name variables
18442         consistently as to whether they are lengths (which do not include
18443         terminating null) versus sizes (which do).
18444         * lib/xmemcoll.c (xmemcoll0): Likewise.
18445         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
18446         returned when s1size == 0; this is easier to compile and saves
18447         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
18448
18449 2010-07-12  Bruno Haible  <bruno@clisp.org>
18450
18451         Tests for module '_Exit'.
18452         * modules/_Exit-tests: New file.
18453         * tests/test-_Exit.sh: New file.
18454         * tests/test-_Exit.c: New file.
18455
18456         New module '_Exit'.
18457         * lib/stdlib.in.h (__attribute__): New macro.
18458         (_Exit): New declaration.
18459         * lib/_Exit.c: New file.
18460         * m4/_Exit.m4: New file.
18461         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
18462         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
18463         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
18464         * modules/_Exit: New file.
18465         * tests/test-stdlib-c++.cc (_Exit): Check signature.
18466         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
18467
18468 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18469
18470         strtod: make it more-accurate typically, and don't require libm
18471         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
18472         Include limits.h.  Don't include string.h.
18473         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
18474         (locale_isspace): New function, so that no casts are needed to
18475         check whether *s is a space.
18476         (ldexp): Provide an unused dummy if not available.
18477         (scale_radix_exp, parse_number, underlying_strtod): New functions.
18478         (strtod): Use them.  This implementation prefers to use the
18479         underlying strtod if available, falling back on our own code
18480         only to fix known bugs.  This is more likely to produce an
18481         accurate result.  Also, it avoids the use of libm functions.
18482         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
18483         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
18484         was absent, but it caused a test failure with coreutils.
18485         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
18486         with libm.
18487         * modules/strtod (Makefile.am, Link): libm is no longer needed.
18488         * modules/strtod-tests (Makefile.am): Likewise.
18489
18490 2010-07-11  Pádraig Brady  <P@draigBrady.com>
18491             Bruno Haible  <bruno@clisp.org>
18492
18493         unistr/u8-strchr: Optimize ASCII argument case.
18494         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
18495
18496 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18497
18498         (x)memcoll: minor tweaks
18499         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
18500         is after the type that it qualifies.
18501         (memcoll0): Likewise.
18502         * lib/memcoll.h (memcoll0): Likewise.
18503         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
18504         * lib/xmemcoll.h (xmemcoll0): Likewise.
18505         * lib/memcoll.c (memcoll0): Correct the comment.  This function
18506         differs from memcoll in that the NUL byte is part of the argument.
18507         Omit the abort-checks, as performance is a real issue here.  Plus,
18508         the checks were wrong anyway (an off-by-one error).  Omit local
18509         variable 'diff', as it's a bit clearer that way.
18510         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
18511         no longer needed.
18512
18513 2010-07-08  Chen Guo <chenguo4@yahoo.com>
18514
18515         (x)memcoll: speedup when input is known to be NUL delimited
18516         * lib/memcoll.c: Include stdlib.
18517         (memcoll0): New function.
18518         (strcoll_loop): New function, refactored for use in both memcoll
18519         and memcoll0.
18520         * lib/memcoll.h (memcoll0): Add prototype.
18521         * lib/xmemcoll.c (xmemcoll0): New function.
18522         (collate_error): New function, refactored for use in both xmemcoll
18523         and xmemcoll0.
18524         * lib/xmemcoll.h (xmemcoll0): Add prototype.
18525         * m4/memcoll.m4: add inline invocation.
18526
18527 2010-07-06  Pádraig Brady  <P@draigBrady.com>
18528
18529         * build-aux/bootstrap: Remove any local translations
18530         from the translation project synchronization directory,
18531         so that local only translations are not distributed.
18532
18533 2010-07-04  Bruno Haible  <bruno@clisp.org>
18534
18535         fsusage: Clarify which code applies to which platforms.
18536         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
18537         platform.
18538         * lib/fsusage.c (get_fs_usage): Likewise.
18539
18540 2010-07-04  Bruno Haible  <bruno@clisp.org>
18541
18542         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
18543         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
18544         Reported by Martin Lambers <marlam@marlam.de>.
18545
18546 2010-07-04  Jim Meyering  <meyering@redhat.com>
18547
18548         hash: once again explicitly disallow insertion of NULL
18549         * lib/hash.c (hash_insert0): Reinstate just-removed test:
18550         inserting a NULL pointer cannot work with these functions.
18551         Add a comment with details.
18552         This reverts part of the 2010-07-01 commit, 5bef1a35
18553         "hash: extend module to deal with non-pointer keys".
18554
18555 2010-07-01  Bruno Haible  <bruno@clisp.org>
18556
18557         stdbool: Update doc.
18558         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
18559         Info from Christian Weisgerber <naddy@mips.inka.de>.
18560
18561 2010-07-01  Jim Meyering  <meyering@redhat.com>
18562
18563         hash: extend module to deal with non-pointer keys
18564         * lib/hash.c (hash_insert0): New interface, much like hash_insert
18565         but that allows insertion of non-pointer entries.
18566         Do not disallow an ENTRY value of NULL.
18567         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
18568         * lib/hash.h (hash_insert0): Declare.
18569
18570 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18571
18572         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
18573         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
18574         not present (i.e. with autoconf 2.59 and when using gettextize, not
18575         gnulib), require AC_GNU_SOURCE instead.
18576
18577 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
18578
18579         idpriv-drop: Fix tests.
18580         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
18581         not to the test-idpriv-droptemp program.
18582
18583 2010-06-29  Bruno Haible  <bruno@clisp.org>
18584
18585         string: Fix syntax error with g++ 2.96.
18586         * lib/string.in.h (__pure__): Remove definition.
18587         (_GL_ATTRIBUTE_PURE): New macro.
18588         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
18589         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
18590         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18591
18592 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
18593
18594         unitypes: Fix bug introduced on 2010-05-18.
18595         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
18596
18597 2010-06-22  Eric Blake  <eblake@redhat.com>
18598
18599         memmem: slight optimization
18600         * lib/str-two-way.h (critical_factorization): Update comments.
18601         Reduce work during factorization phase.
18602         Reported by Carlos Bueno <carlos@bueno.org>.
18603
18604 2010-06-21  Bruno Haible  <bruno@clisp.org>
18605
18606         Fix HAVE_CALLOC_POSIX misnomer.
18607         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
18608         !HAVE_CALLOC_POSIX.
18609         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
18610         HAVE_CALLOC_POSIX.
18611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
18612         instead of HAVE_CALLOC_POSIX.
18613         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
18614         HAVE_CALLOC_POSIX.
18615
18616         Use modern idiom for calloc() replacement.
18617         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
18618         AC_FUNC_CALLOC.
18619         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
18620         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
18621         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18622         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
18623         (gl_REPLACE_CALLOC): New macro.
18624
18625 2010-06-21  Bruno Haible  <bruno@clisp.org>
18626
18627         Fix HAVE_REALLOC_POSIX misnomer.
18628         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
18629         !HAVE_REALLOC_POSIX.
18630         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
18631         HAVE_REALLOC_POSIX.
18632         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
18633         instead of HAVE_REALLOC_POSIX.
18634         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
18635         HAVE_REALLOC_POSIX.
18636
18637         Use modern idiom for realloc() replacement.
18638         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
18639         AC_FUNC_REALLOC.
18640         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
18641         Autoconf's AC_FUNC_REALLOC.
18642         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18643         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
18644         (gl_REPLACE_REALLOC): New macro.
18645         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18646
18647 2010-06-21  Bruno Haible  <bruno@clisp.org>
18648
18649         Fix HAVE_MALLOC_POSIX misnomer.
18650         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
18651         !HAVE_MALLOC_POSIX.
18652         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
18653         HAVE_MALLOC_POSIX.
18654         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
18655         instead of HAVE_MALLOC_POSIX.
18656         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
18657         HAVE_MALLOC_POSIX.
18658
18659         Use modern idiom for malloc() replacement.
18660         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
18661         AC_FUNC_MALLOC.
18662         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
18663         Autoconf's AC_FUNC_MALLOC.
18664         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18665         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
18666         (gl_REPLACE_MALLOC): New macro.
18667         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18668
18669 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
18670
18671         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
18672         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
18673         This macro takes 3 arguments, not 4.
18674
18675 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
18676
18677         ipv6: fix detection under mingw
18678         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
18679         in6_addr.
18680
18681 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
18682
18683         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
18684         that strtod() works when cross-compiling to a glibc version known
18685         to work.
18686
18687 2010-06-15  Bruno Haible  <bruno@clisp.org>
18688
18689         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
18690
18691 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
18692
18693         select: Correct timeout.
18694         * lib/select.c (rpl_select): Compute wait_timeout correctly.
18695
18696 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18697
18698         git-version-gen: init shell var to avoid env var influence
18699         * build-aux/git-version-gen (v): Init shell var to empty.
18700
18701 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
18702
18703         priv-set: Don't assume that priv.h exists merely because getppriv does.
18704         See Jan Andersen's bug report about AIX 5L in
18705         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
18706         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
18707         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
18708         * lib/priv-set.h: Likewise.
18709         * tests/test-priv-set.c: Likewise.
18710
18711 2010-06-13  Bruno Haible  <bruno@clisp.org>
18712
18713         relocatable: Make it easier to test whether to install wrappers.
18714         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
18715         RELOCATABLE_VIA_WRAPPER.
18716
18717 2010-06-13  Bruno Haible  <bruno@clisp.org>
18718
18719         gnulib-tool: Display specified modules and dependencies differently.
18720         * gnulib-tool (func_show_module_list): New function.
18721         (func_import, func_create_testdir): Invoke it.
18722         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
18723
18724 2010-06-13  Bruno Haible  <bruno@clisp.org>
18725
18726         gnulib-tool: Align code of func_import and func_create_testdir.
18727         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
18728         specified_modules.
18729
18730 2010-06-12  Jim Meyering  <meyering@redhat.com>
18731
18732         test-inttostr: avoid spurious failure on Solaris 9
18733         * tests/test-inttostr.c (main): Skip the test when snprintf fails
18734         to accept "%ju".  Reported by Bruno Haible.
18735
18736 2010-06-11  Jim Meyering  <meyering@redhat.com>
18737
18738         test-sys_socket: mark variables as used more readably
18739         * tests/test-sys_socket.c (main): Mark otherwise unused variables
18740         as "used" explicitly via (void) statement casts.  This is more
18741         readable than using them in an artificial return expression.
18742         Suggestion from Bruno Haible.
18743
18744 2010-06-11  Bruno Haible  <bruno@clisp.org>
18745
18746         Avoid some more warnings from "gcc -Wwrite-strings".
18747         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
18748         to 'const char *'.
18749         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
18750         * tests/test-c-strcasestr.c (main): Likewise.
18751         * tests/test-mbscasestr1.c (main): Likewise.
18752         * tests/test-mbscasestr2.c (main): Likewise.
18753         * tests/test-memmem.c (main): Likewise.
18754         * tests/test-strstr.c (main): Likewise.
18755         * tests/test-strcasestr.c (main): Likewise.
18756
18757 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18758
18759         init.sh: change framework_failure_ to fail with status 99, not 1
18760         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
18761         automake's parallel-tests rule that this is an unexpected failure,
18762         even if the test is listed in XFAIL_TESTS.
18763
18764 2010-06-11  Jim Meyering  <meyering@redhat.com>
18765
18766         test-inttostr: avoid warnings about 4-6KB literal strings
18767         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
18768         Include "macros.h", for its definition of ASSERT.
18769         (CK): s/assert/ASSERT/
18770         * modules/inttostr-tests (Files): Add macros.h.
18771
18772         init.sh: don't use $ME_ or skip_ before they are defined
18773         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
18774         their first uses.  Also hoist their companions: warn_, fail_,
18775         framework_failure_, $stderr_fileno.  Prompted by a patch from
18776         Stefano Lattarini.
18777
18778         test-sys_socket: avoid set-but-not-used warnings from gcc
18779         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
18780         avoid warning about set-but-not-used variables.
18781
18782         test-xvasprintf: avoid 'const' discard warnings
18783         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
18784         "const" when assigning from literal strings.
18785         (test_xasprintf): Add "void" in function argument list to placate
18786         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
18787
18788         tests: avoid compilation warnings in argmatch and exclude tests...
18789         in packages that define ARGMATCH_DIE_DECL, like coreutils.
18790         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
18791         Since it always exits, declare with the "noreturn" attribute.
18792         * tests/test-argmatch.c: Likewise.
18793
18794         tests: avoid 'const' discard warnings in mbsstr tests
18795         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
18796         * tests/test-mbsstr2.c (main): Likewise.
18797
18798         test-verify: avoid warning from gcc's -Wmissing-declarations
18799         * tests/test-verify.c (function): Declare to be static.
18800
18801         test-inttostr.c: include <string.h> for use of strcmp
18802         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
18803
18804         test-linkat: avoid failed assertion on "other" architectures
18805         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
18806         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
18807         sparc: https://bugs.launchpad.net/bugs/591968
18808
18809 2010-06-11  Jim Meyering  <meyering@redhat.com>
18810
18811         printf.m4: avoid autoconf's "Expanded Before Required" warning
18812         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
18813         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
18814         autoconf warning.
18815
18816 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
18817
18818         Replacement header templates are now named with ".in", not "_".
18819         * doc/gnulib-intro.texi: Correct.
18820
18821 2010-06-10  Jim Meyering  <meyering@redhat.com>
18822
18823         inttostr-tests: depend on snprintf, not snprintf-posix
18824         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
18825         snprintf-posix, to avoid this aclocal failure:
18826           missing file gnulib-tests/vasnprintf.c
18827           configure.ac:45: error: expected source file, required through \
18828           AC_LIBSOURCES, not found
18829
18830 2010-06-10  Jim Meyering  <meyering@redhat.com>
18831
18832         inttostr: add a new function, inttostr, and tests
18833         The namesake function was not available.  The existence of the
18834         template file, inttostr.c makes its addition nontrivial.
18835         * lib/anytostr.c: Rename from inttostr.c.
18836         (anytostr): Rename from inttostr.
18837         * lib/inttostr.c: New file.
18838         * modules/inttostr (Files): Add anytostr.c.
18839         (Makefile.am): Set lib_SOURCES instead of ...
18840         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
18841         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
18842         * lib/offtostr.c: Likewise.
18843         * lib/uinttostr.c: Likewise.
18844         * lib/umaxtostr.c: Likewise.
18845         * modules/inttostr-tests: New file.
18846         * tests/test-inttostr.c: New file.  Test these functions.
18847
18848 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
18849             Bruno Haible  <bruno@clisp.org>
18850
18851         Add "Extending Gnulib" chapter to manual.
18852         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
18853         chapter.
18854         (Extending Gnulib): New chapter.
18855         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
18856         chapter.
18857
18858 2010-06-09  Bruno Haible  <bruno@clisp.org>
18859
18860         Avoid relocwrapper link errors due to gnulib replacement functions.
18861         * lib/areadlink.c: Use the system's malloc, realloc functions.
18862         (areadlink): Set errno to ENOMEM explicitly.
18863         * modules/areadlink (Depends-on): Remove malloc-posix.
18864         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18865
18866 2010-06-09  Bruno Haible  <bruno@clisp.org>
18867
18868         Avoid relocwrapper link errors due to gnulib replacement functions.
18869         * lib/canonicalize-lgpl.c: Use the system's malloc function.
18870         * lib/malloca.c: Likewise.
18871         * lib/relocatable.c: Likewise.
18872         * lib/progreloc.c: Use the system's malloc, sprintf functions.
18873         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
18874         * lib/setenv.c: Use the system's malloc, realloc functions.
18875         * lib/strerror.c: Use the system's sprintf function.
18876         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18877
18878 2010-06-04  Bruno Haible  <bruno@clisp.org>
18879
18880         Prefer documented low-level autoconf macro names.
18881         * m4/lib-link.m4: Use m4_translit instead of translit.
18882         * m4/environ.m4: Likewise.
18883         * m4/mathfunc.m4: Likewise.
18884         * m4/onceonly.m4: Likewise.
18885         * m4/stdint.m4: Likewise.
18886         Suggested by Eric Blake.
18887
18888 2010-06-04  Martin Lambers  <marlam@marlam.de>
18889             Bruno Haible  <bruno@clisp.org>
18890
18891         havelib: Allow library names with '+' characters.
18892         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18893         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
18894
18895 2010-06-09  Bruno Haible  <bruno@clisp.org>
18896
18897         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
18898         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
18899         realloc failed.
18900
18901 2010-06-08  Peter Simons  <simons@cryp.to>
18902
18903         maint.mk: make the news-check rule more configurable
18904         * top/maint.mk (news-check-lines-spec): New variable.
18905         (news-check): Use "sed -n 1,10p" in place of "head".
18906
18907 2010-06-07  Jim Meyering  <meyering@redhat.com>
18908
18909         do-release-commit-and-tag: fix typo in --help
18910         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18911
18912         regex: avoid new dead-code warning with gcc-4.6.0
18913         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18914         if-block containing a while-loop.  It's been unused for at least
18915         5 years.
18916
18917 2010-06-05  Bruno Haible  <bruno@clisp.org>
18918
18919         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18920         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18921
18922 2010-06-04  Bruno Haible  <bruno@clisp.org>
18923
18924         Update to GNU gettext 0.18.1.
18925         * modules/gettext (configure.ac): Require gettext infrastructure from
18926         version 0.18.1.
18927
18928 2010-06-03  Bruno Haible  <bruno@clisp.org>
18929
18930         Don't use AC_LIBOBJ with file names in subdirectories.
18931         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18932         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18933         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18934         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18935         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18936         gl_LIBUNISTRING_LIBSOURCE.
18937         (Makefile.am): Augment lib_SOURCES here, conditionally.
18938         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18939
18940 2010-06-03  Bruno Haible  <bruno@clisp.org>
18941
18942         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18943         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18944         expansion does not end with a newline.
18945         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18946         unnecessary newline.
18947
18948 2010-06-03  Bruno Haible  <bruno@clisp.org>
18949
18950         Reduce dependencies.
18951         * tests/test-quotearg.h: New file, extracted from
18952         tests/test-quotearg.c.
18953         * tests/test-quotearg-simple.c: New file, extracted from
18954         tests/test-quotearg.c.
18955         * tests/test-quotearg.c: Don't include <ctype.h>.
18956         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18957         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18958         use_quote_double_quotes, use_quotearg_colon): Moved to
18959         tests/test-quotearg.h.
18960         (results_g, flag_results, custom_quotes, custom_results): Moved
18961         to tests/test-quotearg-simple.c.
18962         (main): Moved the part that does not depend on gettext to
18963         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18964         performed.
18965         * modules/quotearg-simple: New file.
18966         * modules/quotearg-simple-tests: New file.
18967         * modules/quotearg (Depends-on): Add quotearg-simple.
18968         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18969         (Files): Add tests/test-quotearg.h.
18970         Reported by Paolo Bonzini.
18971
18972 2010-06-03  Bruno Haible  <bruno@clisp.org>
18973
18974         Reduce dependencies.
18975         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18976
18977 2010-06-03  Bruno Haible  <bruno@clisp.org>
18978
18979         time: Undefine more broken macros.
18980         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18981         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18982         Reported by Eric Blake.
18983
18984 2010-06-03  Bruno Haible  <bruno@clisp.org>
18985
18986         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18987         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18988         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18989         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18990         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18991         Reported by Ludovic Courtès <ludo@gnu.org>.
18992
18993 2010-06-02  Eric Blake  <eblake@redhat.com>
18994
18995         time: work with mingw + pthreads-win32 library
18996         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18997         if timespec is defined only in pthread.h.
18998         * modules/time (Makefile.am): Substitute it.
18999         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
19000         <pthread.h>, when needed.
19001         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
19002         from the library.
19003
19004 2010-05-31  Bruno Haible  <bruno@clisp.org>
19005
19006         Avoid expanding two macros in the wrong order.
19007         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
19008         gl_LIBUNISTRING if it is defined.
19009         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
19010         autoconf >= 2.64.
19011         Reported by Ludovic Courtès <ludo@gnu.org>.
19012
19013 2010-05-27  Jim Meyering  <meyering@redhat.com>
19014
19015         maint.mk: also prohibit "#undef" of always-defined symbols
19016         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
19017         Allow more than one space before the symbol name.
19018         (sc_prohibit_always-defined_macros): Use grep's -E, now that
19019         the regexp uses alternation.
19020
19021 2010-05-26  Eric Blake  <eblake@redhat.com>
19022
19023         maint.mk: avoid echo -e
19024         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
19025         Convert all uses of echo -* to printf.
19026         Reported by Matthias Bolte.
19027
19028 2010-05-25  Bruno Haible  <bruno@clisp.org>
19029
19030         Update to GNU gettext 0.18, part 2.
19031         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
19032         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
19033
19034 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19035
19036         Add missing include in test-pwrite.c.
19037         * tests/test-pwrite.c: Include string.h, for strcmp.
19038
19039 2010-05-24  Bruno Haible  <bruno@clisp.org>
19040
19041         * NEWS: Mention requirement for Automake option 'subdir-objects'.
19042
19043 2010-05-24  Bruno Haible  <bruno@clisp.org>
19044
19045         Don't use conversion with transliteration in u{8,16,32}_strcoll.
19046         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
19047         iconveh_error argument.
19048         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
19049         U_STRCONV_TO_LOCALE.
19050         * lib/unistr/u16-strcoll.c: Likewise.
19051         * lib/unistr/u32-strcoll.c: Likewise.
19052         * modules/unistr/u8-strcoll (Depends-on): Add
19053         uniconv/u8-strconv-to-enc, localcharset. Remove
19054         uniconv/u8-strconv-to-locale.
19055         (configure.ac): Bump version number.
19056         * modules/unistr/u16-strcoll (Depends-on): Add
19057         uniconv/u16-strconv-to-enc, localcharset. Remove
19058         uniconv/u16-strconv-to-locale.
19059         (configure.ac): Bump version number.
19060         * modules/unistr/u32-strcoll (Depends-on): Add
19061         uniconv/u32-strconv-to-enc, localcharset. Remove
19062         uniconv/u32-strconv-to-locale.
19063         (configure.ac): Bump version number.
19064
19065 2010-05-24  Bruno Haible  <bruno@clisp.org>
19066
19067         Avoid a test failure on NetBSD 5.0.
19068         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
19069         an iconv() bug.
19070
19071 2010-05-24  Bruno Haible  <bruno@clisp.org>
19072
19073         Adjust #include directive style.
19074         * modules/regex (Includes): Recommend to write <regex.h>.
19075
19076 2010-05-24  Bruno Haible  <bruno@clisp.org>
19077
19078         regex: Don't require alloca.
19079         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
19080         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
19081         only inside if (0).
19082
19083 2010-05-23  Jim Meyering  <meyering@redhat.com>
19084
19085         test-renameat.c: include <sys/stat.h>
19086         * tests/test-renameat.c: Include <sys/stat.h>; required for
19087         definition of S_IS* macros.
19088
19089 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
19090
19091         Update maintainer documentation for 'relocatable-prog' module.
19092         * doc/relocatable-maint.texi: Update.
19093         Comments by Bruno Haible.
19094
19095 2010-05-23  Bruno Haible  <bruno@clisp.org>
19096
19097         git-merge-changelog: Enable --split-merged-entry by default.
19098         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
19099         (usage): Don't mention this option any more.
19100         Reported by Ralf Wildenhues.
19101
19102 2010-05-23  Jim Meyering  <meyering@redhat.com>
19103
19104         test-pwrite: do not leave behind a test file named "out"
19105         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
19106         The trivial-looking use of init.sh is really necessary.
19107         It ensures that the temporary file, "out", is created in
19108         a temporary directory, and removed upon termination.
19109         * tests/test-pwrite.sh: Re-add file.
19110         * modules/pwrite-tests: Reference it.
19111
19112 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19113
19114         Fix output redirection buglet in init.sh.
19115         * tests/init.sh: Fix redirection of stderr.
19116
19117 2010-05-20  Simon Josefsson  <simon@josefsson.org>
19118
19119         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
19120
19121 2010-05-17  Simon Josefsson  <simon@josefsson.org>
19122
19123         * modules/valgrind-tests: New file.
19124         * m4/valgrind-tests.m4: New file.
19125         * doc/valgrind-tests.texi: New file.
19126         * doc/gnulib.texi (Running self-tests under valgrind): New
19127         section.
19128
19129 2010-05-19  Bruno Haible  <bruno@clisp.org>
19130
19131         Clean up dead code in recent commit.
19132         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
19133         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
19134         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
19135         Suggested by Paolo Bonzini.
19136
19137 2010-05-19  Bruno Haible  <bruno@clisp.org>
19138
19139         Avoid valgrind error reports from libunistring.
19140         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
19141         * modules/libunistring (Files): Add it.
19142         * modules/libunistring-optional (Files): Likewise.
19143
19144 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
19145             Bruno Haible  <bruno@clisp.org>
19146
19147         New module 'libunistring-optional'.
19148         * modules/libunistring-optional: New file.
19149         * m4/libunistring-base.m4: New file.
19150         * m4/libunistring-optional.m4: New file.
19151         * lib/unicase.in.h: Renamed from lib/unicase.h.
19152         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
19153         * lib/unictype.in.h: Renamed from lib/unictype.h.
19154         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
19155         * lib/uniname.in.h: Renamed from lib/uniname.h.
19156         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
19157         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
19158         * lib/unistr.in.h: Renamed from lib/unistr.h.
19159         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
19160         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
19161         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
19162         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
19163         gl_LIBUNISTRING. If the library was found, determine the installed
19164         version and set LIBUNISTRING_VERSION.
19165         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
19166         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
19167         handle a configuration option --with-included-libunistring.
19168         * modules/libunistring (Files): Add m4/absolute-header.m4.
19169         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
19170         Add m4/libunistring-base.m4.
19171         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19172         (Makefile.am): Build unicase.h from unicase.in.h.
19173         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
19174         Add m4/libunistring-base.m4.
19175         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19176         (Makefile.am): Build uniconv.h from uniconv.in.h.
19177         * modules/unictype/base (Files): Use unictype.in.h instead of
19178         unictype.h. Add m4/libunistring-base.m4.
19179         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19180         (Makefile.am): Build unictype.h from unictype.in.h.
19181         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
19182         Add m4/libunistring-base.m4.
19183         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19184         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
19185         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
19186         Add m4/libunistring-base.m4.
19187         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19188         (Makefile.am): Build uniname.h from uniname.in.h.
19189         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
19190         Add m4/libunistring-base.m4.
19191         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19192         (Makefile.am): Build uninorm.h from uninorm.in.h.
19193         * modules/unistdio/base (Files): Use unistdio.in.h instead of
19194         unistdio.h. Add m4/libunistring-base.m4.
19195         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19196         (Makefile.am): Build unistdio.h from unistdio.in.h.
19197         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
19198         Add m4/libunistring-base.m4.
19199         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19200         (Makefile.am): Build unistr.h from unistr.in.h.
19201         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
19202         Add m4/libunistring-base.m4.
19203         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19204         (Makefile.am): Build unitypes.h from unitypes.in.h.
19205         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
19206         Add m4/libunistring-base.m4.
19207         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19208         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
19209         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
19210         uniwidth.h. Add m4/libunistring-base.m4.
19211         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19212         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
19213         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
19214         instead of augmenting lib_SOURCES.
19215         * modules/unicase/empty-suffix-context: Likewise.
19216         * modules/unicase/locale-language: Likewise.
19217         * modules/unicase/tolower: Likewise.
19218         * modules/unicase/totitle: Likewise.
19219         * modules/unicase/toupper: Likewise.
19220         * modules/unicase/u8-casecmp: Likewise.
19221         * modules/unicase/u8-casecoll: Likewise.
19222         * modules/unicase/u8-casefold: Likewise.
19223         * modules/unicase/u8-casexfrm: Likewise.
19224         * modules/unicase/u8-ct-casefold: Likewise.
19225         * modules/unicase/u8-ct-tolower: Likewise.
19226         * modules/unicase/u8-ct-totitle: Likewise.
19227         * modules/unicase/u8-ct-toupper: Likewise.
19228         * modules/unicase/u8-is-cased: Likewise.
19229         * modules/unicase/u8-is-casefolded: Likewise.
19230         * modules/unicase/u8-is-lowercase: Likewise.
19231         * modules/unicase/u8-is-titlecase: Likewise.
19232         * modules/unicase/u8-is-uppercase: Likewise.
19233         * modules/unicase/u8-prefix-context: Likewise.
19234         * modules/unicase/u8-suffix-context: Likewise.
19235         * modules/unicase/u8-tolower: Likewise.
19236         * modules/unicase/u8-totitle: Likewise.
19237         * modules/unicase/u8-toupper: Likewise.
19238         * modules/unicase/u16-casecmp: Likewise.
19239         * modules/unicase/u16-casecoll: Likewise.
19240         * modules/unicase/u16-casefold: Likewise.
19241         * modules/unicase/u16-casexfrm: Likewise.
19242         * modules/unicase/u16-ct-casefold: Likewise.
19243         * modules/unicase/u16-ct-tolower: Likewise.
19244         * modules/unicase/u16-ct-totitle: Likewise.
19245         * modules/unicase/u16-ct-toupper: Likewise.
19246         * modules/unicase/u16-is-cased: Likewise.
19247         * modules/unicase/u16-is-casefolded: Likewise.
19248         * modules/unicase/u16-is-lowercase: Likewise.
19249         * modules/unicase/u16-is-titlecase: Likewise.
19250         * modules/unicase/u16-is-uppercase: Likewise.
19251         * modules/unicase/u16-prefix-context: Likewise.
19252         * modules/unicase/u16-suffix-context: Likewise.
19253         * modules/unicase/u16-tolower: Likewise.
19254         * modules/unicase/u16-totitle: Likewise.
19255         * modules/unicase/u16-toupper: Likewise.
19256         * modules/unicase/u32-casecmp: Likewise.
19257         * modules/unicase/u32-casecoll: Likewise.
19258         * modules/unicase/u32-casefold: Likewise.
19259         * modules/unicase/u32-casexfrm: Likewise.
19260         * modules/unicase/u32-ct-casefold: Likewise.
19261         * modules/unicase/u32-ct-tolower: Likewise.
19262         * modules/unicase/u32-ct-totitle: Likewise.
19263         * modules/unicase/u32-ct-toupper: Likewise.
19264         * modules/unicase/u32-is-cased: Likewise.
19265         * modules/unicase/u32-is-casefolded: Likewise.
19266         * modules/unicase/u32-is-lowercase: Likewise.
19267         * modules/unicase/u32-is-titlecase: Likewise.
19268         * modules/unicase/u32-is-uppercase: Likewise.
19269         * modules/unicase/u32-prefix-context: Likewise.
19270         * modules/unicase/u32-suffix-context: Likewise.
19271         * modules/unicase/u32-tolower: Likewise.
19272         * modules/unicase/u32-totitle: Likewise.
19273         * modules/unicase/u32-toupper: Likewise.
19274         * modules/unicase/ulc-casecmp: Likewise.
19275         * modules/unicase/ulc-casecoll: Likewise.
19276         * modules/unicase/ulc-casexfrm: Likewise.
19277         * modules/uniconv/u8-conv-from-enc: Likewise.
19278         * modules/uniconv/u8-conv-to-enc: Likewise.
19279         * modules/uniconv/u8-strconv-from-enc: Likewise.
19280         * modules/uniconv/u8-strconv-from-locale: Likewise.
19281         * modules/uniconv/u8-strconv-to-enc: Likewise.
19282         * modules/uniconv/u8-strconv-to-locale: Likewise.
19283         * modules/uniconv/u16-conv-from-enc: Likewise.
19284         * modules/uniconv/u16-conv-to-enc: Likewise.
19285         * modules/uniconv/u16-strconv-from-enc: Likewise.
19286         * modules/uniconv/u16-strconv-from-locale: Likewise.
19287         * modules/uniconv/u16-strconv-to-enc: Likewise.
19288         * modules/uniconv/u16-strconv-to-locale: Likewise.
19289         * modules/uniconv/u32-conv-from-enc: Likewise.
19290         * modules/uniconv/u32-conv-to-enc: Likewise.
19291         * modules/uniconv/u32-strconv-from-enc: Likewise.
19292         * modules/uniconv/u32-strconv-from-locale: Likewise.
19293         * modules/uniconv/u32-strconv-to-enc: Likewise.
19294         * modules/uniconv/u32-strconv-to-locale: Likewise.
19295         * modules/unictype/bidicategory-byname: Likewise.
19296         * modules/unictype/bidicategory-name: Likewise.
19297         * modules/unictype/bidicategory-of: Likewise.
19298         * modules/unictype/bidicategory-test: Likewise.
19299         * modules/unictype/block-list: Likewise.
19300         * modules/unictype/block-test: Likewise.
19301         * modules/unictype/category-C: Likewise.
19302         * modules/unictype/category-Cc: Likewise.
19303         * modules/unictype/category-Cf: Likewise.
19304         * modules/unictype/category-Cn: Likewise.
19305         * modules/unictype/category-Co: Likewise.
19306         * modules/unictype/category-Cs: Likewise.
19307         * modules/unictype/category-L: Likewise.
19308         * modules/unictype/category-Ll: Likewise.
19309         * modules/unictype/category-Lm: Likewise.
19310         * modules/unictype/category-Lo: Likewise.
19311         * modules/unictype/category-Lt: Likewise.
19312         * modules/unictype/category-Lu: Likewise.
19313         * modules/unictype/category-M: Likewise.
19314         * modules/unictype/category-Mc: Likewise.
19315         * modules/unictype/category-Me: Likewise.
19316         * modules/unictype/category-Mn: Likewise.
19317         * modules/unictype/category-N: Likewise.
19318         * modules/unictype/category-Nd: Likewise.
19319         * modules/unictype/category-Nl: Likewise.
19320         * modules/unictype/category-No: Likewise.
19321         * modules/unictype/category-P: Likewise.
19322         * modules/unictype/category-Pc: Likewise.
19323         * modules/unictype/category-Pd: Likewise.
19324         * modules/unictype/category-Pe: Likewise.
19325         * modules/unictype/category-Pf: Likewise.
19326         * modules/unictype/category-Pi: Likewise.
19327         * modules/unictype/category-Po: Likewise.
19328         * modules/unictype/category-Ps: Likewise.
19329         * modules/unictype/category-S: Likewise.
19330         * modules/unictype/category-Sc: Likewise.
19331         * modules/unictype/category-Sk: Likewise.
19332         * modules/unictype/category-Sm: Likewise.
19333         * modules/unictype/category-So: Likewise.
19334         * modules/unictype/category-Z: Likewise.
19335         * modules/unictype/category-Zl: Likewise.
19336         * modules/unictype/category-Zp: Likewise.
19337         * modules/unictype/category-Zs: Likewise.
19338         * modules/unictype/category-and: Likewise.
19339         * modules/unictype/category-and-not: Likewise.
19340         * modules/unictype/category-byname: Likewise.
19341         * modules/unictype/category-name: Likewise.
19342         * modules/unictype/category-none: Likewise.
19343         * modules/unictype/category-of: Likewise.
19344         * modules/unictype/category-or: Likewise.
19345         * modules/unictype/category-test: Likewise.
19346         * modules/unictype/combining-class: Likewise.
19347         * modules/unictype/ctype-alnum: Likewise.
19348         * modules/unictype/ctype-alpha: Likewise.
19349         * modules/unictype/ctype-blank: Likewise.
19350         * modules/unictype/ctype-cntrl: Likewise.
19351         * modules/unictype/ctype-digit: Likewise.
19352         * modules/unictype/ctype-graph: Likewise.
19353         * modules/unictype/ctype-lower: Likewise.
19354         * modules/unictype/ctype-print: Likewise.
19355         * modules/unictype/ctype-punct: Likewise.
19356         * modules/unictype/ctype-space: Likewise.
19357         * modules/unictype/ctype-upper: Likewise.
19358         * modules/unictype/ctype-xdigit: Likewise.
19359         * modules/unictype/decimal-digit: Likewise.
19360         * modules/unictype/digit: Likewise.
19361         * modules/unictype/mirror: Likewise.
19362         * modules/unictype/numeric: Likewise.
19363         * modules/unictype/property-alphabetic: Likewise.
19364         * modules/unictype/property-ascii-hex-digit: Likewise.
19365         * modules/unictype/property-bidi-arabic-digit: Likewise.
19366         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
19367         * modules/unictype/property-bidi-block-separator: Likewise.
19368         * modules/unictype/property-bidi-boundary-neutral: Likewise.
19369         * modules/unictype/property-bidi-common-separator: Likewise.
19370         * modules/unictype/property-bidi-control: Likewise.
19371         * modules/unictype/property-bidi-embedding-or-override: Likewise.
19372         * modules/unictype/property-bidi-eur-num-separator: Likewise.
19373         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
19374         * modules/unictype/property-bidi-european-digit: Likewise.
19375         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
19376         * modules/unictype/property-bidi-left-to-right: Likewise.
19377         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
19378         * modules/unictype/property-bidi-other-neutral: Likewise.
19379         * modules/unictype/property-bidi-pdf: Likewise.
19380         * modules/unictype/property-bidi-segment-separator: Likewise.
19381         * modules/unictype/property-bidi-whitespace: Likewise.
19382         * modules/unictype/property-byname: Likewise.
19383         * modules/unictype/property-combining: Likewise.
19384         * modules/unictype/property-composite: Likewise.
19385         * modules/unictype/property-currency-symbol: Likewise.
19386         * modules/unictype/property-dash: Likewise.
19387         * modules/unictype/property-decimal-digit: Likewise.
19388         * modules/unictype/property-default-ignorable-code-point: Likewise.
19389         * modules/unictype/property-deprecated: Likewise.
19390         * modules/unictype/property-diacritic: Likewise.
19391         * modules/unictype/property-extender: Likewise.
19392         * modules/unictype/property-format-control: Likewise.
19393         * modules/unictype/property-grapheme-base: Likewise.
19394         * modules/unictype/property-grapheme-extend: Likewise.
19395         * modules/unictype/property-grapheme-link: Likewise.
19396         * modules/unictype/property-hex-digit: Likewise.
19397         * modules/unictype/property-hyphen: Likewise.
19398         * modules/unictype/property-id-continue: Likewise.
19399         * modules/unictype/property-id-start: Likewise.
19400         * modules/unictype/property-ideographic: Likewise.
19401         * modules/unictype/property-ids-binary-operator: Likewise.
19402         * modules/unictype/property-ids-trinary-operator: Likewise.
19403         * modules/unictype/property-ignorable-control: Likewise.
19404         * modules/unictype/property-iso-control: Likewise.
19405         * modules/unictype/property-join-control: Likewise.
19406         * modules/unictype/property-left-of-pair: Likewise.
19407         * modules/unictype/property-line-separator: Likewise.
19408         * modules/unictype/property-logical-order-exception: Likewise.
19409         * modules/unictype/property-lowercase: Likewise.
19410         * modules/unictype/property-math: Likewise.
19411         * modules/unictype/property-non-break: Likewise.
19412         * modules/unictype/property-not-a-character: Likewise.
19413         * modules/unictype/property-numeric: Likewise.
19414         * modules/unictype/property-other-alphabetic: Likewise.
19415         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
19416         * modules/unictype/property-other-grapheme-extend: Likewise.
19417         * modules/unictype/property-other-id-continue: Likewise.
19418         * modules/unictype/property-other-id-start: Likewise.
19419         * modules/unictype/property-other-lowercase: Likewise.
19420         * modules/unictype/property-other-math: Likewise.
19421         * modules/unictype/property-other-uppercase: Likewise.
19422         * modules/unictype/property-paired-punctuation: Likewise.
19423         * modules/unictype/property-paragraph-separator: Likewise.
19424         * modules/unictype/property-pattern-syntax: Likewise.
19425         * modules/unictype/property-pattern-white-space: Likewise.
19426         * modules/unictype/property-private-use: Likewise.
19427         * modules/unictype/property-punctuation: Likewise.
19428         * modules/unictype/property-quotation-mark: Likewise.
19429         * modules/unictype/property-radical: Likewise.
19430         * modules/unictype/property-sentence-terminal: Likewise.
19431         * modules/unictype/property-soft-dotted: Likewise.
19432         * modules/unictype/property-space: Likewise.
19433         * modules/unictype/property-terminal-punctuation: Likewise.
19434         * modules/unictype/property-test: Likewise.
19435         * modules/unictype/property-titlecase: Likewise.
19436         * modules/unictype/property-unassigned-code-value: Likewise.
19437         * modules/unictype/property-unified-ideograph: Likewise.
19438         * modules/unictype/property-uppercase: Likewise.
19439         * modules/unictype/property-variation-selector: Likewise.
19440         * modules/unictype/property-white-space: Likewise.
19441         * modules/unictype/property-xid-continue: Likewise.
19442         * modules/unictype/property-xid-start: Likewise.
19443         * modules/unictype/property-zero-width: Likewise.
19444         * modules/unictype/scripts: Likewise.
19445         * modules/unictype/syntax-c-ident: Likewise.
19446         * modules/unictype/syntax-c-whitespace: Likewise.
19447         * modules/unictype/syntax-java-ident: Likewise.
19448         * modules/unictype/syntax-java-whitespace: Likewise.
19449         * modules/unilbrk/u8-possible-linebreaks: Likewise.
19450         * modules/unilbrk/u8-width-linebreaks: Likewise.
19451         * modules/unilbrk/u16-possible-linebreaks: Likewise.
19452         * modules/unilbrk/u16-width-linebreaks: Likewise.
19453         * modules/unilbrk/u32-possible-linebreaks: Likewise.
19454         * modules/unilbrk/u32-width-linebreaks: Likewise.
19455         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
19456         * modules/unilbrk/ulc-width-linebreaks: Likewise.
19457         * modules/uniname/uniname: Likewise.
19458         * modules/uninorm/canonical-decomposition: Likewise.
19459         * modules/uninorm/composition: Likewise.
19460         * modules/uninorm/decomposing-form: Likewise.
19461         * modules/uninorm/decomposition: Likewise.
19462         * modules/uninorm/filter: Likewise.
19463         * modules/uninorm/nfc: Likewise.
19464         * modules/uninorm/nfd: Likewise.
19465         * modules/uninorm/nfkc: Likewise.
19466         * modules/uninorm/nfkd: Likewise.
19467         * modules/uninorm/u8-normalize: Likewise.
19468         * modules/uninorm/u8-normcmp: Likewise.
19469         * modules/uninorm/u8-normcoll: Likewise.
19470         * modules/uninorm/u8-normxfrm: Likewise.
19471         * modules/uninorm/u16-normalize: Likewise.
19472         * modules/uninorm/u16-normcmp: Likewise.
19473         * modules/uninorm/u16-normcoll: Likewise.
19474         * modules/uninorm/u16-normxfrm: Likewise.
19475         * modules/uninorm/u32-normalize: Likewise.
19476         * modules/uninorm/u32-normcmp: Likewise.
19477         * modules/uninorm/u32-normcoll: Likewise.
19478         * modules/uninorm/u32-normxfrm: Likewise.
19479         * modules/unistdio/u8-asnprintf: Likewise.
19480         * modules/unistdio/u8-asprintf: Likewise.
19481         * modules/unistdio/u8-snprintf: Likewise.
19482         * modules/unistdio/u8-sprintf: Likewise.
19483         * modules/unistdio/u8-u8-asnprintf: Likewise.
19484         * modules/unistdio/u8-u8-asprintf: Likewise.
19485         * modules/unistdio/u8-u8-snprintf: Likewise.
19486         * modules/unistdio/u8-u8-sprintf: Likewise.
19487         * modules/unistdio/u8-u8-vasnprintf: Likewise.
19488         * modules/unistdio/u8-u8-vasprintf: Likewise.
19489         * modules/unistdio/u8-u8-vsnprintf: Likewise.
19490         * modules/unistdio/u8-u8-vsprintf: Likewise.
19491         * modules/unistdio/u8-vasnprintf: Likewise.
19492         * modules/unistdio/u8-vasprintf: Likewise.
19493         * modules/unistdio/u8-vsnprintf: Likewise.
19494         * modules/unistdio/u8-vsprintf: Likewise.
19495         * modules/unistdio/u16-asnprintf: Likewise.
19496         * modules/unistdio/u16-asprintf: Likewise.
19497         * modules/unistdio/u16-snprintf: Likewise.
19498         * modules/unistdio/u16-sprintf: Likewise.
19499         * modules/unistdio/u16-u16-asnprintf: Likewise.
19500         * modules/unistdio/u16-u16-asprintf: Likewise.
19501         * modules/unistdio/u16-u16-snprintf: Likewise.
19502         * modules/unistdio/u16-u16-sprintf: Likewise.
19503         * modules/unistdio/u16-u16-vasnprintf: Likewise.
19504         * modules/unistdio/u16-u16-vasprintf: Likewise.
19505         * modules/unistdio/u16-u16-vsnprintf: Likewise.
19506         * modules/unistdio/u16-u16-vsprintf: Likewise.
19507         * modules/unistdio/u16-vasnprintf: Likewise.
19508         * modules/unistdio/u16-vasprintf: Likewise.
19509         * modules/unistdio/u16-vsnprintf: Likewise.
19510         * modules/unistdio/u16-vsprintf: Likewise.
19511         * modules/unistdio/u32-asnprintf: Likewise.
19512         * modules/unistdio/u32-asprintf: Likewise.
19513         * modules/unistdio/u32-snprintf: Likewise.
19514         * modules/unistdio/u32-sprintf: Likewise.
19515         * modules/unistdio/u32-u32-asnprintf: Likewise.
19516         * modules/unistdio/u32-u32-asprintf: Likewise.
19517         * modules/unistdio/u32-u32-snprintf: Likewise.
19518         * modules/unistdio/u32-u32-sprintf: Likewise.
19519         * modules/unistdio/u32-u32-vasnprintf: Likewise.
19520         * modules/unistdio/u32-u32-vasprintf: Likewise.
19521         * modules/unistdio/u32-u32-vsnprintf: Likewise.
19522         * modules/unistdio/u32-u32-vsprintf: Likewise.
19523         * modules/unistdio/u32-vasnprintf: Likewise.
19524         * modules/unistdio/u32-vasprintf: Likewise.
19525         * modules/unistdio/u32-vsnprintf: Likewise.
19526         * modules/unistdio/u32-vsprintf: Likewise.
19527         * modules/unistdio/ulc-asnprintf: Likewise.
19528         * modules/unistdio/ulc-asprintf: Likewise.
19529         * modules/unistdio/ulc-fprintf: Likewise.
19530         * modules/unistdio/ulc-snprintf: Likewise.
19531         * modules/unistdio/ulc-sprintf: Likewise.
19532         * modules/unistdio/ulc-vasnprintf: Likewise.
19533         * modules/unistdio/ulc-vasprintf: Likewise.
19534         * modules/unistdio/ulc-vfprintf: Likewise.
19535         * modules/unistdio/ulc-vsnprintf: Likewise.
19536         * modules/unistdio/ulc-vsprintf: Likewise.
19537         * modules/unistr/u8-check: Likewise.
19538         * modules/unistr/u8-chr: Likewise.
19539         * modules/unistr/u8-cmp: Likewise.
19540         * modules/unistr/u8-cmp2: Likewise.
19541         * modules/unistr/u8-cpy: Likewise.
19542         * modules/unistr/u8-cpy-alloc: Likewise.
19543         * modules/unistr/u8-endswith: Likewise.
19544         * modules/unistr/u8-mblen: Likewise.
19545         * modules/unistr/u8-mbsnlen: Likewise.
19546         * modules/unistr/u8-mbtouc: Likewise.
19547         * modules/unistr/u8-mbtouc-unsafe: Likewise.
19548         * modules/unistr/u8-mbtoucr: Likewise.
19549         * modules/unistr/u8-move: Likewise.
19550         * modules/unistr/u8-next: Likewise.
19551         * modules/unistr/u8-prev: Likewise.
19552         * modules/unistr/u8-set: Likewise.
19553         * modules/unistr/u8-startswith: Likewise.
19554         * modules/unistr/u8-stpcpy: Likewise.
19555         * modules/unistr/u8-stpncpy: Likewise.
19556         * modules/unistr/u8-strcat: Likewise.
19557         * modules/unistr/u8-strchr: Likewise.
19558         * modules/unistr/u8-strcmp: Likewise.
19559         * modules/unistr/u8-strcoll: Likewise.
19560         * modules/unistr/u8-strcpy: Likewise.
19561         * modules/unistr/u8-strcspn: Likewise.
19562         * modules/unistr/u8-strdup: Likewise.
19563         * modules/unistr/u8-strlen: Likewise.
19564         * modules/unistr/u8-strmblen: Likewise.
19565         * modules/unistr/u8-strmbtouc: Likewise.
19566         * modules/unistr/u8-strncat: Likewise.
19567         * modules/unistr/u8-strncmp: Likewise.
19568         * modules/unistr/u8-strncpy: Likewise.
19569         * modules/unistr/u8-strnlen: Likewise.
19570         * modules/unistr/u8-strpbrk: Likewise.
19571         * modules/unistr/u8-strrchr: Likewise.
19572         * modules/unistr/u8-strspn: Likewise.
19573         * modules/unistr/u8-strstr: Likewise.
19574         * modules/unistr/u8-strtok: Likewise.
19575         * modules/unistr/u8-to-u16: Likewise.
19576         * modules/unistr/u8-to-u32: Likewise.
19577         * modules/unistr/u8-uctomb: Likewise.
19578         * modules/unistr/u16-check: Likewise.
19579         * modules/unistr/u16-chr: Likewise.
19580         * modules/unistr/u16-cmp: Likewise.
19581         * modules/unistr/u16-cmp2: Likewise.
19582         * modules/unistr/u16-cpy: Likewise.
19583         * modules/unistr/u16-cpy-alloc: Likewise.
19584         * modules/unistr/u16-endswith: Likewise.
19585         * modules/unistr/u16-mblen: Likewise.
19586         * modules/unistr/u16-mbsnlen: Likewise.
19587         * modules/unistr/u16-mbtouc: Likewise.
19588         * modules/unistr/u16-mbtouc-unsafe: Likewise.
19589         * modules/unistr/u16-mbtoucr: Likewise.
19590         * modules/unistr/u16-move: Likewise.
19591         * modules/unistr/u16-next: Likewise.
19592         * modules/unistr/u16-prev: Likewise.
19593         * modules/unistr/u16-set: Likewise.
19594         * modules/unistr/u16-startswith: Likewise.
19595         * modules/unistr/u16-stpcpy: Likewise.
19596         * modules/unistr/u16-stpncpy: Likewise.
19597         * modules/unistr/u16-strcat: Likewise.
19598         * modules/unistr/u16-strchr: Likewise.
19599         * modules/unistr/u16-strcmp: Likewise.
19600         * modules/unistr/u16-strcoll: Likewise.
19601         * modules/unistr/u16-strcpy: Likewise.
19602         * modules/unistr/u16-strcspn: Likewise.
19603         * modules/unistr/u16-strdup: Likewise.
19604         * modules/unistr/u16-strlen: Likewise.
19605         * modules/unistr/u16-strmblen: Likewise.
19606         * modules/unistr/u16-strmbtouc: Likewise.
19607         * modules/unistr/u16-strncat: Likewise.
19608         * modules/unistr/u16-strncmp: Likewise.
19609         * modules/unistr/u16-strncpy: Likewise.
19610         * modules/unistr/u16-strnlen: Likewise.
19611         * modules/unistr/u16-strpbrk: Likewise.
19612         * modules/unistr/u16-strrchr: Likewise.
19613         * modules/unistr/u16-strspn: Likewise.
19614         * modules/unistr/u16-strstr: Likewise.
19615         * modules/unistr/u16-strtok: Likewise.
19616         * modules/unistr/u16-to-u32: Likewise.
19617         * modules/unistr/u16-to-u8: Likewise.
19618         * modules/unistr/u16-uctomb: Likewise.
19619         * modules/unistr/u32-check: Likewise.
19620         * modules/unistr/u32-chr: Likewise.
19621         * modules/unistr/u32-cmp: Likewise.
19622         * modules/unistr/u32-cmp2: Likewise.
19623         * modules/unistr/u32-cpy: Likewise.
19624         * modules/unistr/u32-cpy-alloc: Likewise.
19625         * modules/unistr/u32-endswith: Likewise.
19626         * modules/unistr/u32-mblen: Likewise.
19627         * modules/unistr/u32-mbsnlen: Likewise.
19628         * modules/unistr/u32-mbtouc: Likewise.
19629         * modules/unistr/u32-mbtouc-unsafe: Likewise.
19630         * modules/unistr/u32-mbtoucr: Likewise.
19631         * modules/unistr/u32-move: Likewise.
19632         * modules/unistr/u32-next: Likewise.
19633         * modules/unistr/u32-prev: Likewise.
19634         * modules/unistr/u32-set: Likewise.
19635         * modules/unistr/u32-startswith: Likewise.
19636         * modules/unistr/u32-stpcpy: Likewise.
19637         * modules/unistr/u32-stpncpy: Likewise.
19638         * modules/unistr/u32-strcat: Likewise.
19639         * modules/unistr/u32-strchr: Likewise.
19640         * modules/unistr/u32-strcmp: Likewise.
19641         * modules/unistr/u32-strcoll: Likewise.
19642         * modules/unistr/u32-strcpy: Likewise.
19643         * modules/unistr/u32-strcspn: Likewise.
19644         * modules/unistr/u32-strdup: Likewise.
19645         * modules/unistr/u32-strlen: Likewise.
19646         * modules/unistr/u32-strmblen: Likewise.
19647         * modules/unistr/u32-strmbtouc: Likewise.
19648         * modules/unistr/u32-strncat: Likewise.
19649         * modules/unistr/u32-strncmp: Likewise.
19650         * modules/unistr/u32-strncpy: Likewise.
19651         * modules/unistr/u32-strnlen: Likewise.
19652         * modules/unistr/u32-strpbrk: Likewise.
19653         * modules/unistr/u32-strrchr: Likewise.
19654         * modules/unistr/u32-strspn: Likewise.
19655         * modules/unistr/u32-strstr: Likewise.
19656         * modules/unistr/u32-strtok: Likewise.
19657         * modules/unistr/u32-to-u16: Likewise.
19658         * modules/unistr/u32-to-u8: Likewise.
19659         * modules/unistr/u32-uctomb: Likewise.
19660         * modules/uniwbrk/u8-wordbreaks: Likewise.
19661         * modules/uniwbrk/u16-wordbreaks: Likewise.
19662         * modules/uniwbrk/u32-wordbreaks: Likewise.
19663         * modules/uniwbrk/ulc-wordbreaks: Likewise.
19664         * modules/uniwbrk/wordbreak-property: Likewise.
19665         * modules/uniwidth/u8-strwidth: Likewise.
19666         * modules/uniwidth/u8-width: Likewise.
19667         * modules/uniwidth/u16-strwidth: Likewise.
19668         * modules/uniwidth/u16-width: Likewise.
19669         * modules/uniwidth/u32-strwidth: Likewise.
19670         * modules/uniwidth/u32-width: Likewise.
19671         * modules/uniwidth/width: Likewise.
19672         * modules/unicase/cased-tests (Makefile.am): Link all test programs
19673         with $(LIBUNISTRING).
19674         * modules/unicase/ignorable-tests: Likewise.
19675         * modules/unicase/locale-language-tests: Likewise.
19676         * modules/unicase/tolower-tests: Likewise.
19677         * modules/unicase/totitle-tests: Likewise.
19678         * modules/unicase/toupper-tests: Likewise.
19679         * modules/unicase/u8-casecmp-tests: Likewise.
19680         * modules/unicase/u8-casecoll-tests: Likewise.
19681         * modules/unicase/u8-casefold-tests: Likewise.
19682         * modules/unicase/u8-is-cased-tests: Likewise.
19683         * modules/unicase/u8-is-casefolded-tests: Likewise.
19684         * modules/unicase/u8-is-lowercase-tests: Likewise.
19685         * modules/unicase/u8-is-titlecase-tests: Likewise.
19686         * modules/unicase/u8-is-uppercase-tests: Likewise.
19687         * modules/unicase/u8-tolower-tests: Likewise.
19688         * modules/unicase/u8-totitle-tests: Likewise.
19689         * modules/unicase/u8-toupper-tests: Likewise.
19690         * modules/unicase/u16-casecmp-tests: Likewise.
19691         * modules/unicase/u16-casecoll-tests: Likewise.
19692         * modules/unicase/u16-casefold-tests: Likewise.
19693         * modules/unicase/u16-is-cased-tests: Likewise.
19694         * modules/unicase/u16-is-casefolded-tests: Likewise.
19695         * modules/unicase/u16-is-lowercase-tests: Likewise.
19696         * modules/unicase/u16-is-titlecase-tests: Likewise.
19697         * modules/unicase/u16-is-uppercase-tests: Likewise.
19698         * modules/unicase/u16-tolower-tests: Likewise.
19699         * modules/unicase/u16-totitle-tests: Likewise.
19700         * modules/unicase/u16-toupper-tests: Likewise.
19701         * modules/unicase/u32-casecmp-tests: Likewise.
19702         * modules/unicase/u32-casecoll-tests: Likewise.
19703         * modules/unicase/u32-casefold-tests: Likewise.
19704         * modules/unicase/u32-is-cased-tests: Likewise.
19705         * modules/unicase/u32-is-casefolded-tests: Likewise.
19706         * modules/unicase/u32-is-lowercase-tests: Likewise.
19707         * modules/unicase/u32-is-titlecase-tests: Likewise.
19708         * modules/unicase/u32-is-uppercase-tests: Likewise.
19709         * modules/unicase/u32-tolower-tests: Likewise.
19710         * modules/unicase/u32-totitle-tests: Likewise.
19711         * modules/unicase/u32-toupper-tests: Likewise.
19712         * modules/unicase/ulc-casecmp-tests: Likewise.
19713         * modules/unicase/ulc-casecoll-tests: Likewise.
19714         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
19715         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
19716         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
19717         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
19718         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
19719         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
19720         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
19721         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
19722         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
19723         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
19724         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
19725         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
19726         * modules/unictype/bidicategory-byname-tests: Likewise.
19727         * modules/unictype/bidicategory-name-tests: Likewise.
19728         * modules/unictype/bidicategory-of-tests: Likewise.
19729         * modules/unictype/bidicategory-test-tests: Likewise.
19730         * modules/unictype/block-list-tests: Likewise.
19731         * modules/unictype/block-of-tests: Likewise.
19732         * modules/unictype/block-test-tests: Likewise.
19733         * modules/unictype/category-C-tests: Likewise.
19734         * modules/unictype/category-Cc-tests: Likewise.
19735         * modules/unictype/category-Cf-tests: Likewise.
19736         * modules/unictype/category-Cn-tests: Likewise.
19737         * modules/unictype/category-Co-tests: Likewise.
19738         * modules/unictype/category-Cs-tests: Likewise.
19739         * modules/unictype/category-L-tests: Likewise.
19740         * modules/unictype/category-Ll-tests: Likewise.
19741         * modules/unictype/category-Lm-tests: Likewise.
19742         * modules/unictype/category-Lo-tests: Likewise.
19743         * modules/unictype/category-Lt-tests: Likewise.
19744         * modules/unictype/category-Lu-tests: Likewise.
19745         * modules/unictype/category-M-tests: Likewise.
19746         * modules/unictype/category-Mc-tests: Likewise.
19747         * modules/unictype/category-Me-tests: Likewise.
19748         * modules/unictype/category-Mn-tests: Likewise.
19749         * modules/unictype/category-N-tests: Likewise.
19750         * modules/unictype/category-Nd-tests: Likewise.
19751         * modules/unictype/category-Nl-tests: Likewise.
19752         * modules/unictype/category-No-tests: Likewise.
19753         * modules/unictype/category-P-tests: Likewise.
19754         * modules/unictype/category-Pc-tests: Likewise.
19755         * modules/unictype/category-Pd-tests: Likewise.
19756         * modules/unictype/category-Pe-tests: Likewise.
19757         * modules/unictype/category-Pf-tests: Likewise.
19758         * modules/unictype/category-Pi-tests: Likewise.
19759         * modules/unictype/category-Po-tests: Likewise.
19760         * modules/unictype/category-Ps-tests: Likewise.
19761         * modules/unictype/category-S-tests: Likewise.
19762         * modules/unictype/category-Sc-tests: Likewise.
19763         * modules/unictype/category-Sk-tests: Likewise.
19764         * modules/unictype/category-Sm-tests: Likewise.
19765         * modules/unictype/category-So-tests: Likewise.
19766         * modules/unictype/category-Z-tests: Likewise.
19767         * modules/unictype/category-Zl-tests: Likewise.
19768         * modules/unictype/category-Zp-tests: Likewise.
19769         * modules/unictype/category-Zs-tests: Likewise.
19770         * modules/unictype/category-and-not-tests: Likewise.
19771         * modules/unictype/category-and-tests: Likewise.
19772         * modules/unictype/category-byname-tests: Likewise.
19773         * modules/unictype/category-name-tests: Likewise.
19774         * modules/unictype/category-none-tests: Likewise.
19775         * modules/unictype/category-of-tests: Likewise.
19776         * modules/unictype/category-or-tests: Likewise.
19777         * modules/unictype/category-test-withtable-tests: Likewise.
19778         * modules/unictype/combining-class-tests: Likewise.
19779         * modules/unictype/ctype-alnum-tests: Likewise.
19780         * modules/unictype/ctype-alpha-tests: Likewise.
19781         * modules/unictype/ctype-blank-tests: Likewise.
19782         * modules/unictype/ctype-cntrl-tests: Likewise.
19783         * modules/unictype/ctype-digit-tests: Likewise.
19784         * modules/unictype/ctype-graph-tests: Likewise.
19785         * modules/unictype/ctype-lower-tests: Likewise.
19786         * modules/unictype/ctype-print-tests: Likewise.
19787         * modules/unictype/ctype-punct-tests: Likewise.
19788         * modules/unictype/ctype-space-tests: Likewise.
19789         * modules/unictype/ctype-upper-tests: Likewise.
19790         * modules/unictype/ctype-xdigit-tests: Likewise.
19791         * modules/unictype/decimal-digit-tests: Likewise.
19792         * modules/unictype/digit-tests: Likewise.
19793         * modules/unictype/mirror-tests: Likewise.
19794         * modules/unictype/numeric-tests: Likewise.
19795         * modules/unictype/property-alphabetic-tests: Likewise.
19796         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
19797         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
19798         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
19799         * modules/unictype/property-bidi-block-separator-tests: Likewise.
19800         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
19801         * modules/unictype/property-bidi-common-separator-tests: Likewise.
19802         * modules/unictype/property-bidi-control-tests: Likewise.
19803         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
19804         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
19805         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
19806         * modules/unictype/property-bidi-european-digit-tests: Likewise.
19807         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
19808         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
19809         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
19810         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
19811         * modules/unictype/property-bidi-pdf-tests: Likewise.
19812         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
19813         * modules/unictype/property-bidi-whitespace-tests: Likewise.
19814         * modules/unictype/property-byname-tests: Likewise.
19815         * modules/unictype/property-combining-tests: Likewise.
19816         * modules/unictype/property-composite-tests: Likewise.
19817         * modules/unictype/property-currency-symbol-tests: Likewise.
19818         * modules/unictype/property-dash-tests: Likewise.
19819         * modules/unictype/property-decimal-digit-tests: Likewise.
19820         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
19821         * modules/unictype/property-deprecated-tests: Likewise.
19822         * modules/unictype/property-diacritic-tests: Likewise.
19823         * modules/unictype/property-extender-tests: Likewise.
19824         * modules/unictype/property-format-control-tests: Likewise.
19825         * modules/unictype/property-grapheme-base-tests: Likewise.
19826         * modules/unictype/property-grapheme-extend-tests: Likewise.
19827         * modules/unictype/property-grapheme-link-tests: Likewise.
19828         * modules/unictype/property-hex-digit-tests: Likewise.
19829         * modules/unictype/property-hyphen-tests: Likewise.
19830         * modules/unictype/property-id-continue-tests: Likewise.
19831         * modules/unictype/property-id-start-tests: Likewise.
19832         * modules/unictype/property-ideographic-tests: Likewise.
19833         * modules/unictype/property-ids-binary-operator-tests: Likewise.
19834         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
19835         * modules/unictype/property-ignorable-control-tests: Likewise.
19836         * modules/unictype/property-iso-control-tests: Likewise.
19837         * modules/unictype/property-join-control-tests: Likewise.
19838         * modules/unictype/property-left-of-pair-tests: Likewise.
19839         * modules/unictype/property-line-separator-tests: Likewise.
19840         * modules/unictype/property-logical-order-exception-tests: Likewise.
19841         * modules/unictype/property-lowercase-tests: Likewise.
19842         * modules/unictype/property-math-tests: Likewise.
19843         * modules/unictype/property-non-break-tests: Likewise.
19844         * modules/unictype/property-not-a-character-tests: Likewise.
19845         * modules/unictype/property-numeric-tests: Likewise.
19846         * modules/unictype/property-other-alphabetic-tests: Likewise.
19847         * modules/unictype/property-other-default-ignorable-code-point-tests:
19848         Likewise.
19849         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
19850         * modules/unictype/property-other-id-continue-tests: Likewise.
19851         * modules/unictype/property-other-id-start-tests: Likewise.
19852         * modules/unictype/property-other-lowercase-tests: Likewise.
19853         * modules/unictype/property-other-math-tests: Likewise.
19854         * modules/unictype/property-other-uppercase-tests: Likewise.
19855         * modules/unictype/property-paired-punctuation-tests: Likewise.
19856         * modules/unictype/property-paragraph-separator-tests: Likewise.
19857         * modules/unictype/property-pattern-syntax-tests: Likewise.
19858         * modules/unictype/property-pattern-white-space-tests: Likewise.
19859         * modules/unictype/property-private-use-tests: Likewise.
19860         * modules/unictype/property-punctuation-tests: Likewise.
19861         * modules/unictype/property-quotation-mark-tests: Likewise.
19862         * modules/unictype/property-radical-tests: Likewise.
19863         * modules/unictype/property-sentence-terminal-tests: Likewise.
19864         * modules/unictype/property-soft-dotted-tests: Likewise.
19865         * modules/unictype/property-space-tests: Likewise.
19866         * modules/unictype/property-terminal-punctuation-tests: Likewise.
19867         * modules/unictype/property-test-tests: Likewise.
19868         * modules/unictype/property-titlecase-tests: Likewise.
19869         * modules/unictype/property-unassigned-code-value-tests: Likewise.
19870         * modules/unictype/property-unified-ideograph-tests: Likewise.
19871         * modules/unictype/property-uppercase-tests: Likewise.
19872         * modules/unictype/property-variation-selector-tests: Likewise.
19873         * modules/unictype/property-white-space-tests: Likewise.
19874         * modules/unictype/property-xid-continue-tests: Likewise.
19875         * modules/unictype/property-xid-start-tests: Likewise.
19876         * modules/unictype/property-zero-width-tests: Likewise.
19877         * modules/unictype/scripts-tests: Likewise.
19878         * modules/unictype/syntax-c-ident-tests: Likewise.
19879         * modules/unictype/syntax-c-whitespace-tests: Likewise.
19880         * modules/unictype/syntax-java-ident-tests: Likewise.
19881         * modules/unictype/syntax-java-whitespace-tests: Likewise.
19882         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
19883         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
19884         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
19885         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
19886         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
19887         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
19888         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
19889         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
19890         * modules/uniname/uniname-tests: Likewise.
19891         * modules/uninorm/canonical-decomposition-tests: Likewise.
19892         * modules/uninorm/compat-decomposition-tests: Likewise.
19893         * modules/uninorm/composition-tests: Likewise.
19894         * modules/uninorm/decomposing-form-tests: Likewise.
19895         * modules/uninorm/decomposition-tests: Likewise.
19896         * modules/uninorm/filter-tests: Likewise.
19897         * modules/uninorm/nfc-tests: Likewise.
19898         * modules/uninorm/nfd-tests: Likewise.
19899         * modules/uninorm/nfkc-tests: Likewise.
19900         * modules/uninorm/nfkd-tests: Likewise.
19901         * modules/uninorm/u8-normcmp-tests: Likewise.
19902         * modules/uninorm/u8-normcoll-tests: Likewise.
19903         * modules/uninorm/u16-normcmp-tests: Likewise.
19904         * modules/uninorm/u16-normcoll-tests: Likewise.
19905         * modules/uninorm/u32-normcmp-tests: Likewise.
19906         * modules/uninorm/u32-normcoll-tests: Likewise.
19907         * modules/unistdio/u8-asnprintf-tests: Likewise.
19908         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19909         * modules/unistdio/u8-vasprintf-tests: Likewise.
19910         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19911         * modules/unistdio/u8-vsprintf-tests: Likewise.
19912         * modules/unistdio/u16-asnprintf-tests: Likewise.
19913         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19914         * modules/unistdio/u16-vasprintf-tests: Likewise.
19915         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19916         * modules/unistdio/u16-vsprintf-tests: Likewise.
19917         * modules/unistdio/u32-asnprintf-tests: Likewise.
19918         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19919         * modules/unistdio/u32-vasprintf-tests: Likewise.
19920         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19921         * modules/unistdio/u32-vsprintf-tests: Likewise.
19922         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19923         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19924         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19925         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19926         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19927         * modules/unistr/u8-check-tests: Likewise.
19928         * modules/unistr/u8-chr-tests: Likewise.
19929         * modules/unistr/u8-cmp-tests: Likewise.
19930         * modules/unistr/u8-cmp2-tests: Likewise.
19931         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19932         * modules/unistr/u8-cpy-tests: Likewise.
19933         * modules/unistr/u8-mblen-tests: Likewise.
19934         * modules/unistr/u8-mbsnlen-tests: Likewise.
19935         * modules/unistr/u8-mbtouc-tests: Likewise.
19936         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19937         * modules/unistr/u8-mbtoucr-tests: Likewise.
19938         * modules/unistr/u8-move-tests: Likewise.
19939         * modules/unistr/u8-next-tests: Likewise.
19940         * modules/unistr/u8-prev-tests: Likewise.
19941         * modules/unistr/u8-set-tests: Likewise.
19942         * modules/unistr/u8-stpcpy-tests: Likewise.
19943         * modules/unistr/u8-stpncpy-tests: Likewise.
19944         * modules/unistr/u8-strcat-tests: Likewise.
19945         * modules/unistr/u8-strcmp-tests: Likewise.
19946         * modules/unistr/u8-strcoll-tests: Likewise.
19947         * modules/unistr/u8-strcpy-tests: Likewise.
19948         * modules/unistr/u8-strdup-tests: Likewise.
19949         * modules/unistr/u8-strlen-tests: Likewise.
19950         * modules/unistr/u8-strmblen-tests: Likewise.
19951         * modules/unistr/u8-strmbtouc-tests: Likewise.
19952         * modules/unistr/u8-strncat-tests: Likewise.
19953         * modules/unistr/u8-strncmp-tests: Likewise.
19954         * modules/unistr/u8-strncpy-tests: Likewise.
19955         * modules/unistr/u8-strnlen-tests: Likewise.
19956         * modules/unistr/u8-to-u16-tests: Likewise.
19957         * modules/unistr/u8-to-u32-tests: Likewise.
19958         * modules/unistr/u8-uctomb-tests: Likewise.
19959         * modules/unistr/u16-check-tests: Likewise.
19960         * modules/unistr/u16-chr-tests: Likewise.
19961         * modules/unistr/u16-cmp-tests: Likewise.
19962         * modules/unistr/u16-cmp2-tests: Likewise.
19963         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19964         * modules/unistr/u16-cpy-tests: Likewise.
19965         * modules/unistr/u16-mblen-tests: Likewise.
19966         * modules/unistr/u16-mbsnlen-tests: Likewise.
19967         * modules/unistr/u16-mbtouc-tests: Likewise.
19968         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19969         * modules/unistr/u16-mbtoucr-tests: Likewise.
19970         * modules/unistr/u16-move-tests: Likewise.
19971         * modules/unistr/u16-next-tests: Likewise.
19972         * modules/unistr/u16-prev-tests: Likewise.
19973         * modules/unistr/u16-set-tests: Likewise.
19974         * modules/unistr/u16-stpcpy-tests: Likewise.
19975         * modules/unistr/u16-stpncpy-tests: Likewise.
19976         * modules/unistr/u16-strcat-tests: Likewise.
19977         * modules/unistr/u16-strcmp-tests: Likewise.
19978         * modules/unistr/u16-strcoll-tests: Likewise.
19979         * modules/unistr/u16-strcpy-tests: Likewise.
19980         * modules/unistr/u16-strdup-tests: Likewise.
19981         * modules/unistr/u16-strlen-tests: Likewise.
19982         * modules/unistr/u16-strmblen-tests: Likewise.
19983         * modules/unistr/u16-strmbtouc-tests: Likewise.
19984         * modules/unistr/u16-strncat-tests: Likewise.
19985         * modules/unistr/u16-strncmp-tests: Likewise.
19986         * modules/unistr/u16-strncpy-tests: Likewise.
19987         * modules/unistr/u16-strnlen-tests: Likewise.
19988         * modules/unistr/u16-to-u32-tests: Likewise.
19989         * modules/unistr/u16-to-u8-tests: Likewise.
19990         * modules/unistr/u16-uctomb-tests: Likewise.
19991         * modules/unistr/u32-check-tests: Likewise.
19992         * modules/unistr/u32-chr-tests: Likewise.
19993         * modules/unistr/u32-cmp-tests: Likewise.
19994         * modules/unistr/u32-cmp2-tests: Likewise.
19995         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19996         * modules/unistr/u32-cpy-tests: Likewise.
19997         * modules/unistr/u32-mblen-tests: Likewise.
19998         * modules/unistr/u32-mbsnlen-tests: Likewise.
19999         * modules/unistr/u32-mbtouc-tests: Likewise.
20000         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
20001         * modules/unistr/u32-mbtoucr-tests: Likewise.
20002         * modules/unistr/u32-move-tests: Likewise.
20003         * modules/unistr/u32-next-tests: Likewise.
20004         * modules/unistr/u32-prev-tests: Likewise.
20005         * modules/unistr/u32-set-tests: Likewise.
20006         * modules/unistr/u32-stpcpy-tests: Likewise.
20007         * modules/unistr/u32-stpncpy-tests: Likewise.
20008         * modules/unistr/u32-strcat-tests: Likewise.
20009         * modules/unistr/u32-strcmp-tests: Likewise.
20010         * modules/unistr/u32-strcoll-tests: Likewise.
20011         * modules/unistr/u32-strcpy-tests: Likewise.
20012         * modules/unistr/u32-strdup-tests: Likewise.
20013         * modules/unistr/u32-strlen-tests: Likewise.
20014         * modules/unistr/u32-strmblen-tests: Likewise.
20015         * modules/unistr/u32-strmbtouc-tests: Likewise.
20016         * modules/unistr/u32-strncat-tests: Likewise.
20017         * modules/unistr/u32-strncmp-tests: Likewise.
20018         * modules/unistr/u32-strncpy-tests: Likewise.
20019         * modules/unistr/u32-strnlen-tests: Likewise.
20020         * modules/unistr/u32-to-u16-tests: Likewise.
20021         * modules/unistr/u32-to-u8-tests: Likewise.
20022         * modules/unistr/u32-uctomb-tests: Likewise.
20023         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
20024         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
20025         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
20026         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
20027         * modules/uniwidth/u8-strwidth-tests: Likewise.
20028         * modules/uniwidth/u8-width-tests: Likewise.
20029         * modules/uniwidth/u16-strwidth-tests: Likewise.
20030         * modules/uniwidth/u16-width-tests: Likewise.
20031         * modules/uniwidth/u32-strwidth-tests: Likewise.
20032         * modules/uniwidth/u32-width-tests: Likewise.
20033         * modules/uniwidth/width-tests: Likewise.
20034
20035 2010-05-18  Richard Jones  <rjones@redhat.com>
20036
20037         doc: users.txt: list hivex
20038         * users.txt: Add hivex.
20039
20040 2010-05-18  Richard Jones  <rjones@redhat.com>
20041
20042         doc: users.txt: list febootstrap
20043         * users.txt: Add febootstrap.
20044
20045 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
20046
20047         bootstrap: fix an error when gnulib is not used as a git submodule
20048         * build-aux/bootstrap (gnulib_path): If its length is zero then
20049         assign "gnulib" to it.
20050         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
20051
20052 2010-05-16  Bruno Haible  <bruno@clisp.org>
20053
20054         Avoid autoconf warnings about AM_ICONV.
20055         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
20056         2.64.
20057
20058 2010-05-16  Bruno Haible  <bruno@clisp.org>
20059
20060         absolute-header: Make the macro usable in more situations.
20061         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
20062         from gl_ABSOLUTE_HEADER.
20063         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
20064
20065 2010-05-16  James Youngman  <jay@gnu.org>
20066
20067         doc: update users.txt
20068         * users.txt: Add CSSC.
20069
20070 2010-05-16  Jim Meyering  <meyering@redhat.com>
20071
20072         init.sh: fix an error in the previous change; add more comments
20073         * tests/init.sh: Compare exit code in loop against 9, not 2.
20074         Patch by Bruno Haible.
20075         Make the two tests more similar by adding an empty "then" clause.
20076         Add comments.
20077
20078         init.sh: avoid unnecessary shell re-exec
20079         * tests/init.sh: Improve the re-exec-required check to first test the
20080         current shell.  If it passes the test, do not search for a shell that
20081         does pass, and do not re-exec.  This test is particularly contorted to
20082         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
20083         of $(...) evokes a syntax error and causes immediate shell exit with
20084         status 2.  Bruno Haible reported that the re-exec made it impossible
20085         to single-step through any init.sh-using script.
20086
20087 2010-05-16  Bruno Haible  <bruno@clisp.org>
20088
20089         Fix collision between gnulib's and libintl's printf replacements.
20090         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
20091         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
20092         (printf): When using GNU C, map the __printf__ function to rpl_printf
20093         via __asm__. When not using GNU C, define rpl_printf instead of
20094         __printf__.
20095         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
20096         commit.
20097         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
20098         commit.
20099         * m4/asm-underscore.m4: New file.
20100         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
20101         * modules/stdio (Files): Add m4/asm-underscore.m4.
20102         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
20103         Reported by Ben Pfaff.
20104
20105 2010-05-16  Bruno Haible  <bruno@clisp.org>
20106
20107         verify: Avoid skipping the test on openSUSE 11.0.
20108         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
20109
20110 2010-05-13  Bruno Haible  <bruno@clisp.org>
20111
20112         Avoid useless warnings from G++.
20113         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
20114         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
20115         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20116
20117 2010-05-11  Jim Meyering  <meyering@redhat.com>
20118
20119         maint.mk: tweak preceding change
20120         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
20121         regexps tighter by anchoring at EOL, and make the new group "shy"
20122         for slightly decreased overhead.
20123
20124 2010-05-11  Eric Blake  <eblake@redhat.com>
20125
20126         maint.mk: gnulib doesn't guarantee NSIG
20127         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
20128
20129 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20130
20131         test-pwrite.c: Remove unused variable declaration.
20132         * tests/test-pwrite.c (main): Remove read_buf declaration.
20133
20134         Remove useless test-pwrite.sh file.
20135         * tests/test-pwrite.sh: Delete file.
20136         * modules/pwrite-tests: Remove references.
20137         Reported by Bruno Haible.
20138
20139 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20140
20141         init.sh: fix a typo
20142         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
20143
20144 2010-05-10  Jim Meyering  <meyering@redhat.com>
20145
20146         maint.mk: avoid using a temporary file in the always-defined-macros check
20147         * top/maint.mk (.re-defmac): Remove rule.
20148         (gl_trap_): Remove definition.
20149         (sc_prohibit_always-defined_macros): Rewrite not to create and
20150         depend on a temporary file.  Instead, depend on GNU grep's ability
20151         to read a list of regular expressions from stdin when given "-f -".
20152
20153 2010-05-09  Bruno Haible  <bruno@clisp.org>
20154
20155         Update to GNU gettext 0.18, part 1.
20156         * m4/gettext.m4: Update to GNU gettext 0.18.
20157         * m4/intl.m4: Likewise.
20158         * m4/po.m4: Likewise.
20159         * modules/gettext (Files): Add m4/fcntl-o.m4.
20160         (configure.ac): Require gettext infrastructure from version 0.18.
20161
20162 2010-05-09  Jim Meyering  <meyering@redhat.com>
20163
20164         init.sh: enable MALLOC_PERTURB_
20165         * tests/init.sh: Enable glibc's malloc-perturbing option.
20166
20167         maint.mk: improve sc_cross_check_PATH_usage_in_tests
20168         With my recent change in init.sh from the two-line form:
20169             -#   : ${srcdir=.}
20170             -#   . "$srcdir/init.sh"; path_prepend_ .
20171             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
20172         I noticed that using the one-line form would cause this test
20173         to fail with a false-positive, or to stop working altogether,
20174         depending on whether help-version changed or all the tests did.
20175         * top/maint.mk (_hv_regex): Remove this definition.
20176         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
20177         (_hv_regex_strong): Use a stronger regex to check for conformance.
20178         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
20179         Give a separate diagnostic for lack of conforming use.
20180
20181         maint.mk: prohibit definition of symbols defined by gnulib
20182         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
20183         definition of symbols defined by gnulib.
20184
20185 2010-05-09  Bruno Haible  <bruno@clisp.org>
20186
20187         acl: Avoid test failure on Cygwin-hosted mingw.
20188         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
20189
20190 2010-05-09  Bruno Haible  <bruno@clisp.org>
20191
20192         error: Use system's fcntl function.
20193         * lib/error.c (fcntl): Undefine.
20194
20195 2010-05-09  Jim Meyering  <meyering@redhat.com>
20196
20197         verify: adjust formatting to be more consistent
20198         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
20199         argument-list '('s, and after one comma.
20200
20201 2010-05-09  Bruno Haible  <bruno@clisp.org>
20202
20203         error: More reliable output on mingw.
20204         * lib/error.c: Include <windows.h>.
20205         (is_open): New function.
20206         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
20207         defined.
20208
20209 2010-05-09  Bruno Haible  <bruno@clisp.org>
20210
20211         vasnprintf: Fix syntax errors in libintl build on mingw.
20212         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
20213         pad_ourselves and prec_ourselves after use.
20214
20215 2010-05-08  Bruno Haible  <bruno@clisp.org>
20216
20217         * lib/config.charset: Update comments for Cygwin 1.7.
20218         * lib/localcharset.c: Likewise.
20219
20220 2010-05-07  Jim Meyering  <meyering@redhat.com>
20221
20222         init.sh: improve comments
20223         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
20224         . "${srcdir=.}/init.sh"; path_prepend_ .
20225         Add a note about path_prepend_ and the alternative of using
20226         TESTS_ENVIRONMENT.
20227
20228 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20229
20230         exclude: Unescape hashed patterns in wildcard mode.
20231         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
20232         to the hash list.
20233         * tests/test-exclude8.sh: New test case.
20234         * modules/exclude-tests: Add new test.
20235
20236 2010-05-05  Eric Blake  <eblake@redhat.com>
20237
20238         verify: automate tests
20239         * modules/verify-tests: New module.
20240         * tests/test-verify.sh: New file.
20241         * tests/test-verify.c: Guard each negative test with a unique id.
20242         Also avoid warning about unused left hand of comma expressions.
20243
20244 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20245
20246         Further improvements to verify.h, suggested by Eric Blake.
20247         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
20248         the GL_* versions, to avoid collision with OpenGL.
20249         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
20250         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
20251         than testing merely whether it's defined.
20252
20253         Modify verify.h to pacify gcc -Wredundant_decls.
20254         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
20255         These use the prefix "GL_" since they're likely to be useful elsewhere.
20256         We may need to break them out into a different .h file.
20257         (__COUNTER__): Define to 0 if the compiler doesn't support it.
20258         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
20259         of verify_function__.
20260
20261 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20262
20263         Tests for module pwrite.
20264         * modules/pwrite-tests: New file.
20265         * tests/test-pwrite.sh: New file.
20266         * tests/test-pwrite.c: New file.
20267
20268         New module pwrite.
20269         * lib/unistd.in.h (pwrite): New declaration.
20270         * lib/pwrite.c: New file, from glibc with modifications.
20271         * m4/pwrite.m4: New file.
20272         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
20273         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
20274         REPLACE_PWRITE.
20275         * modules/pwrite: New file.
20276         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
20277         REPLACE_PWRITE.
20278         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
20279         * doc/posix-functions/pwrite.texi: Mention the new module.
20280
20281 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20282
20283         pread: Update documentation.
20284         * doc/posix-functions/pread.texi: Mention the 'pread' module.
20285
20286 2010-05-04  Eric Blake  <eblake@redhat.com>
20287
20288         docs: update cygwin progress
20289         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
20290         this bug.
20291         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
20292         Added in cygwin 1.7.2.
20293         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
20294         Likewise.
20295         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
20296         Likewise.
20297         * doc/glibc-functions/dup3.texi (dup3): Likewise.
20298         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
20299         * doc/glibc-functions/accept4.texi (accept4): Likewise.
20300         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
20301         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
20302         Mention nproc module.
20303         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
20304         bug in cygwin 1.7.5 addition.
20305         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
20306         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
20307         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
20308         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
20309         1.7.5.
20310         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
20311         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
20312         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
20313         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
20314         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
20315         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
20316         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
20317         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
20318         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
20319         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
20320         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
20321         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
20322         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
20323         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
20324         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
20325         Likewise.
20326         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
20327         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
20328         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
20329         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
20330         Likewise.
20331         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
20332         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
20333         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
20334         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
20335         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
20336         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
20337         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
20338         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
20339         Likewise.
20340         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
20341         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
20342         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
20343         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
20344         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
20345         Likewise.
20346         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
20347         Likewise.
20348         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
20349         Likewise.
20350         * doc/glibc-functions/xdrrec_endofrecord.texi
20351         (xdrrec_endofrecord): Likewise.
20352         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
20353         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
20354         Likewise.
20355         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
20356         Likewise.
20357
20358 2010-05-04  Jim Meyering  <meyering@redhat.com>
20359
20360         gendocs.sh: make its "-s FILE" option more useful
20361         * build-aux/gendocs.sh: When honoring the -s FILE option, update
20362         $PACKAGE to reflect the probably-different basename of "FILE".
20363
20364 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20365
20366         bootstrap: don't ignore download_po_files failure
20367         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
20368         failure.
20369
20370 2010-05-03  Jim Meyering  <meyering@redhat.com>
20371
20372         maint.mk: allow to pass options to gendocs.sh
20373         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
20374         (gendocs_options_): New overridable variable.
20375
20376         gnu-web-doc-update: don't ignore configure or build failure
20377         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
20378
20379         announce-gen: backslash-escape '@'s in --help output
20380         * build-aux/announce-gen: Fix syntax errors.
20381
20382         maint.mk, announce-gen: allow project-specific announcement mail headers
20383         * top/maint.mk (translation_project_): Define default.
20384         (announcement_Cc_, announcement_mail_headers_): Likewise.
20385         (announcement): Invoke announce-gen with new --mail-headers option.
20386         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
20387
20388         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
20389         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
20390         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
20391         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
20392         line in the "err2" output file when running "make check" in verbose
20393         mode (i.e., with set -x enabled).
20394
20395 2010-05-03  Bruno Haible  <bruno@clisp.org>
20396
20397         wctob: Fix for weird platforms.
20398         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
20399         argument value.
20400
20401 2010-05-03  Jim Meyering  <meyering@redhat.com>
20402
20403         maint.mk: prohibit unwarranted use of <strings.h>
20404         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
20405         strings.h in a file that does not also use strcasecmp, strncasecmp,
20406         ffs or ffsll.
20407
20408         maint.mk: remove obsolete comments
20409         * top/maint.mk: Remove stale, commented-out rules.
20410
20411 2010-05-02  Bruno Haible  <bruno@clisp.org>
20412
20413         wcwidth: Declare also when it's aliased.
20414         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
20415         macro.
20416
20417 2010-05-02  Bruno Haible  <bruno@clisp.org>
20418
20419         Fix regression from 2010-04-25.
20420         * gnulib-tool (func_modules_transitive_closure): Check the status of
20421         all modules, not only of the tests that are of the form foo-tests where
20422         foo is a module.
20423
20424 2010-05-02  Bruno Haible  <bruno@clisp.org>
20425
20426         wctob: Work around nasty Cygwin 1.7.2 bug.
20427         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
20428         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
20429
20430 2010-05-01  Bruno Haible  <bruno@clisp.org>
20431
20432         fpurge: Sharper test.
20433         * tests/test-fpurge.c (main): Add one more ftell check.
20434         * modules/fpurge-tests (Depends-on): Add ftell.
20435         Suggested by Eric Blake.
20436
20437 2010-05-01  Bruno Haible  <bruno@clisp.org>
20438
20439         ftello: Another test.
20440         * tests/test-ftello3.c: New file.
20441         * modules/ftello-tests (Files): Add it.
20442         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20443         MOSTLYCLEANFILES.
20444
20445         ftell: Another test.
20446         * tests/test-ftell3.c: New file.
20447         * modules/ftell-tests (Files): Add it.
20448         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20449         MOSTLYCLEANFILES.
20450
20451 2010-05-01  Bruno Haible  <bruno@clisp.org>
20452
20453         ftell, ftello: Work around Solaris bug.
20454         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
20455         * lib/ftello.c: Include stdio-impl.h.
20456         (ftello): On Solaris, when _IOWRT is set, compute the result without
20457         looking at _IOREAD.
20458         * modules/ftello (Files): Add lib/stdio-impl.h.
20459         * doc/posix-functions/ftell.texi: Mention Solaris bug.
20460         * doc/posix-functions/ftello.texi: Likewise.
20461         Reported by Eric Blake.
20462
20463 2010-05-01  Bruno Haible  <bruno@clisp.org>
20464
20465         freading: Adapt to special meaning of _IOREAD flag on Solaris.
20466         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
20467         the _IOWRT flag is also set.
20468
20469 2010-05-01  Bruno Haible  <bruno@clisp.org>
20470
20471         Fix doc about a HP-UX stdio bug.
20472         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
20473         * doc/posix-functions/ftello.texi: Likewise.
20474
20475 2010-05-01  Bruno Haible  <bruno@clisp.org>
20476
20477         lseek test: Fix failure on Solaris.
20478         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
20479         output.
20480
20481 2010-04-30  Jim Meyering  <meyering@redhat.com>
20482
20483         bootstrap: don't ignore failure to generate po*/Makevars
20484         * build-aux/bootstrap (with_gettext): Don't ignore failure
20485         to create po/Makevars or runtime-po/Makevars.
20486
20487 2010-04-29  Eric Blake  <eblake@redhat.com>
20488
20489         headers: relax license to LGPLv2+
20490         * modules/fcntl-h (License): Relax license.
20491         * modules/getopt-posix (License): Likewise.
20492         * modules/locale (License): Likewise.
20493         * modules/math (License): Likewise.
20494         * modules/pty (License): Likewise.
20495         * modules/sched (License): Likewise.
20496         * modules/search (License): Likewise.
20497         * modules/spawn (License): Likewise.
20498         * modules/stdarg (License): Likewise.
20499         * modules/sysexits (License): Likewise.
20500
20501 2010-04-29  Jim Meyering  <meyering@redhat.com>
20502
20503         inttypes: relax license to LGPLv2+
20504         * modules/inttypes (License): Relax license.
20505
20506 2010-04-29  Simon Josefsson  <simon@josefsson.org>
20507
20508         * top/maint.mk (indent): Run twice to produce idempotent results.
20509
20510 2010-04-28  Bruno Haible  <bruno@clisp.org>
20511
20512         getdate: Generate getdate.c in the source directory.
20513         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
20514         MOSTLYCLEANFILES.
20515         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
20516
20517 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
20518
20519         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
20520         is not declared as a const *; avoid warnings in that case.
20521
20522 2010-04-28  Eric Blake  <eblake@redhat.com>
20523
20524         canonicalize-lgpl: avoid compiler warning
20525         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
20526         declaration' / 'extraneous semicolon' warning with some compilers.
20527         Reported by Andreas Gruenbacher.
20528
20529 2010-04-28  Jim Meyering  <meyering@redhat.com>
20530
20531         init.sh: ensure a more reliable exit status when exiting via trap
20532         * tests/init.sh (setup_): Don't rely on $? in signal handler.
20533         Inspired by patches from Dmitry V. Levin.
20534         Also trap on signal 3 (SIGQUIT).
20535
20536 2010-04-27  Bruno Haible  <bruno@clisp.org>
20537
20538         Update doc about utimes().
20539         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
20540         'utimens' module.
20541         Reported by Andreas Gruenbacher <agruen@suse.de>.
20542
20543 2010-04-27  Eric Blake  <eblake@redhat.com>
20544
20545         full-read, full-write: relax license
20546         * modules/full-read (License): Drop to LGPLv2+.
20547         * modules/full-write (License): Likewise.
20548         * modules/safe-read (License): Likewise.
20549         * modules/safe-write (License): Likewise.
20550
20551         pthread: mention library for linking
20552         * modules/pthread (Link): Mention $(LIB_PTHREAD).
20553
20554 2010-04-27  Jim Meyering  <meyering@redhat.com>
20555
20556         maint.mk: fix a bug introduced in last change
20557         * top/maint.mk (gl_assured_headers_): Now that all names are on
20558         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
20559         is not anchored to end of word, it should be adequate.
20560
20561         maint.mk: avoid side-effect in latest syntax-check
20562         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
20563         to run commands via $(shell...), and hence to incur cost only when
20564         the new rule is actually run.
20565
20566         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
20567         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
20568         and use that to create a regexp used to detect all #if HAVE_..._H uses.
20569         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
20570         (gl_assured_headers_, az_, AZ_): Define.
20571         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
20572
20573 2010-04-26  Jim Meyering  <jim@meyering.net>
20574             Bruno Haible  <bruno@clisp.org>
20575
20576         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
20577         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
20578         Prompted by an exchange with Gilles Espinasse.
20579
20580 2010-04-26  Jim Meyering  <meyering@redhat.com>
20581
20582         git-version-gen: aesthetic tweak
20583         * build-aux/git-version-gen: Use "$nl" rather than a literal,
20584         so that the command remains on a single line.
20585
20586 2010-04-26  Eric Blake  <eblake@redhat.com>
20587
20588         git-version-gen: allow use on EBCDIC hosts
20589         * build-aux/git-version-gen (dirty): Use literal rather than tying
20590         ourselves to ascii.
20591         Reported by Steve Goetze.
20592
20593 2010-04-25  Bruno Haible  <bruno@clisp.org>
20594
20595         netdb: Add support for GNULIB_POSIXCHECK.
20596         * lib/netdb.in.h: Include warn-on-use.h.
20597         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
20598         functions are used when GNULIB_POSIXCHECK is defined and the
20599         getaddrinfo module is not in use.
20600         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
20601         freeaddrinfo, gai_strerror, getnameinfo are declared.
20602         * modules/netdb (Depends-on): Add warn-on-use.
20603         (Makefile.am): Include warn-on-use.h in netdb.h.
20604
20605 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
20606
20607         build: avoid "make check" failure without .git/ directory
20608         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
20609         there is no .git/ directory.
20610
20611 2010-04-25  Bruno Haible  <bruno@clisp.org>
20612
20613         ptsname: Fix misuse of ttyname_r.
20614         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
20615         of errno.
20616
20617 2010-04-25  Bruno Haible  <bruno@clisp.org>
20618
20619         ttyname_r: Make it work on Solaris 10.
20620         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
20621         if the system function has the POSIX declaration. Test whether the
20622         function fails if the buffer is less than 128 bytes large.
20623         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
20624         system's ttyname_r function. Provide a reasonably large buffer.
20625         * modules/ttyname_r (Depends-on): Add extensions.
20626         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
20627
20628 2010-04-25  Bruno Haible  <bruno@clisp.org>
20629
20630         Use the 'extensions' module for some more functions on Solaris.
20631         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
20632         module.
20633         * doc/posix-functions/ctime_r.texi: Likewise.
20634         * doc/posix-functions/getgrgid_r.texi: Likewise.
20635         * doc/posix-functions/getgrnam_r.texi: Likewise.
20636         * doc/posix-functions/getpwnam_r.texi: Likewise.
20637         * doc/posix-functions/getpwuid_r.texi: Likewise.
20638         * doc/posix-functions/readdir_r.texi: Likewise.
20639         * doc/posix-functions/sigwait.texi: Likewise.
20640         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
20641         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
20642
20643 2010-04-25  Bruno Haible  <bruno@clisp.org>
20644
20645         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
20646         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
20647         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
20648         * lib/ttyname_r.c: Include <limits.h>.
20649         (ttyname_r): Define using the system's ttyname_r function, if it exists
20650         and not on Solaris.
20651         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
20652         set.
20653         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
20654         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
20655         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
20656         Reported by Simon Josefsson.
20657
20658 2010-04-25  Bruno Haible  <bruno@clisp.org>
20659
20660         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
20661         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
20662         * doc/posix-functions/ctime_r.texi: Likewise.
20663         * doc/posix-functions/getgrgid_r.texi: Likewise.
20664         * doc/posix-functions/getgrnam_r.texi: Likewise.
20665         * doc/posix-functions/getlogin_r.texi: Likewise.
20666         * doc/posix-functions/getpwnam_r.texi: Likewise.
20667         * doc/posix-functions/getpwuid_r.texi: Likewise.
20668         * doc/posix-functions/readdir_r.texi: Likewise.
20669         * doc/posix-functions/sigwait.texi: Likewise.
20670         * doc/posix-functions/ttyname_r.texi: Likewise.
20671         Reported by Simon Josefsson.
20672
20673 2010-04-25  Bruno Haible  <bruno@clisp.org>
20674
20675         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
20676         * gnulib-tool (func_usage): Document that --with-*-tests options apply
20677         also to --create-testdir.
20678         (func_acceptable): Don't consider the status of *-tests modules here.
20679         (func_modules_transitive_closure): Consider it here, before including a
20680         test module.
20681         (func_import, func_create_testdir): Set inc_all_direct_tests,
20682         inc_all_indirect_tests.
20683         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
20684         --create-testdir and --create-megatestdir.
20685
20686 2010-04-25  Bruno Haible  <bruno@clisp.org>
20687
20688         gnulib-tool: Add --without-*-tests options.
20689         * gnulib-tool (func_usage): Document the --without-*-tests options.
20690         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
20691         excl_unportable_tests): New variables.
20692         Fail if they are specified with --import or --update.
20693         (func_acceptable): Respect the excl_*_tests variables.
20694         (func_import): Set the excl_*_tests variables to empty.
20695
20696 2010-04-25  Simon Josefsson  <simon@josefsson.org>
20697             Bruno Haible  <bruno@clisp.org>
20698
20699         Work around a MacOS X 10.4 bug with openpty.
20700         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
20701         * tests/test-openpty.c (main): Close the master side explicitly.
20702
20703 2010-04-25  Bruno Haible  <bruno@clisp.org>
20704
20705         strnlen: Fix a C++ test error on MacOS X and Solaris.
20706         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
20707         the function is not declared.
20708         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
20709         Simon Josefsson.
20710
20711 2010-04-24  Bruno Haible  <bruno@clisp.org>
20712
20713         Avoid a gcc warning.
20714         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
20715         of correct type for %08lx directive.
20716         Reported by Eric Blake.
20717
20718 2010-04-24  Bruno Haible  <bruno@clisp.org>
20719
20720         vasnprintf: Correct errno value in case of out-of-memory.
20721         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
20722         or sprintf. Use the errno value from SNPRINTF or sprintf.
20723         Reported by Ian Beckwith <ianb@erislabs.net>.
20724
20725 2010-04-24  Bruno Haible  <bruno@clisp.org>
20726
20727         ansi-c++-opt: Find correct compiler when cross-compiling.
20728         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
20729         AC_CHECK_PROGS.
20730         Reported by Simon Josefsson.
20731
20732 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
20733
20734         vc-list-files: Add support for subversion
20735         * build-aux/vc-list-files: Use "svn list" to generate the list of
20736         files controlled by subversion.
20737
20738 2010-04-23  Jim Meyering  <meyering@redhat.com>
20739
20740         vc-list-files tests: convert to use init.sh
20741         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
20742         path_prepend_.
20743         Use Exit, not exit.
20744         Use skip_ rather than open coding it.
20745         Remove trap set-up and compare definitions.
20746         * tests/test-vc-list-files-git.sh: Likewise.
20747         * modules/vc-list-files-tests (Files): Add tests/init.sh.
20748
20749 2010-04-22  Simon Josefsson  <simon@josefsson.org>
20750
20751         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
20752         backup files.
20753
20754 2010-04-21  Simon Josefsson  <simon@josefsson.org>
20755
20756         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
20757
20758 2010-04-20  Eric Blake  <eblake@redhat.com>
20759
20760         tests: be robust to ignored SIGPIPE
20761         * tests/test-select-in.sh: Consume all output.
20762         * tests/test-lseek.sh: Check correct exit status, while avoiding
20763         EPIPE.
20764
20765 2010-04-20  Simon Josefsson  <simon@josefsson.org>
20766             Bruno Haible  <bruno@clisp.org>
20767
20768         visibility: Don't use -fvisibility if it leads to a warning.
20769         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
20770         yes, don't pretend that visibility works if it leads to a warning.
20771         Reported by Mike Gran <spk121@yahoo.com>.
20772
20773 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
20774
20775         * build-aux/bootstrap: Use "git -h" for testing for supported options
20776         instead of "git --help".  The short-form option only shows a summary,
20777         and doesn't layout the full man page.  Grep for the full option name
20778         in the summary, too.
20779
20780 2010-04-19  Bruno Haible  <bruno@clisp.org>
20781
20782         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
20783         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
20784         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
20785         mention of RELOCATABLE_STRIP.
20786         Reported by Sylvain Beucler <beuc@beuc.net>.
20787
20788 2010-04-19  Bruno Haible  <bruno@clisp.org>
20789
20790         * lib/diffseq.h: Fix typo in comment.
20791         Reported by Eric Blake.
20792
20793 2010-04-19  Bruno Haible  <bruno@clisp.org>
20794
20795         ioctl: Move autoconf macro to a .m4 file.
20796         * m4/ioctl.m4: New file, extracted from modules/ioctl.
20797         * modules/ioctl (Files): Add it.
20798         (configure.ac): Simply invoke gl_FUNC_IOCTL.
20799         Reported by Ian Beckwith <ianb@erislabs.net>.
20800
20801 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
20802             Bruno Haible  <bruno@clisp.org>
20803
20804         diffseq: Accommodate use-case with abstract arrays.
20805         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
20806         is not defined.
20807         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
20808         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
20809
20810 2010-04-18  Bruno Haible  <bruno@clisp.org>
20811
20812         * doc/posix-headers/stdbool.texi: More precise wording.
20813
20814 2010-04-17  Jim Meyering  <meyering@redhat.com>
20815
20816         maint.mk: use gnu-style indentation in an embedded perl script
20817         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
20818         Rename variable: s/two/last_two_bytes/
20819
20820 2010-04-16  Eric Blake  <eblake@redhat.com>
20821
20822         test-stdbool: skip test that fails with Solaris CC
20823         * tests/test-stdbool.c (f): Skip test that causes compilation
20824         error under buggy C++ compiler.
20825         * lib/stdbool.in.h: Document the limitation.
20826         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
20827
20828         setenv: allow compilation with C++
20829         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
20830         register keyword.
20831
20832         stdint: allow test to pass with C++
20833         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
20834
20835         getopt: allow compilation with C++
20836         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
20837         struct.
20838         * lib/getopt.c (_getopt_internal_r): Use correct type.
20839         Reported by Dagobert Michelson, via Joel E. Denny.
20840
20841 2010-04-16  Bruno Haible  <bruno@clisp.org>
20842
20843         Override netdb.h always.
20844         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
20845         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
20846         Reported by Ludovic Courtès <ludo@gnu.org>.
20847
20848 2010-04-15  Bruno Haible  <bruno@clisp.org>
20849
20850         openpty: Fix mistake from 2010-03-21.
20851         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
20852         Reported by Simon Josefsson.
20853
20854 2010-04-15  Eric Blake  <eblake@redhat.com>
20855
20856         test-forkpty: fix expected signature
20857         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
20858         Reported by Simon Josefsson.
20859
20860 2010-04-15  Jim Meyering  <meyering@redhat.com>
20861
20862         maint.mk: texinfo_suffix_re_: correct the default regexp
20863         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
20864
20865         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
20866         make it configurable via texinfo_suffix_re_.
20867
20868 2010-04-14  Eric Blake  <eblake@redhat.com>
20869
20870         strtok_r: relax license to LGPLv2+
20871         * modules/strtok_r (License): Relax license.
20872         Reported by Matthias Bolte.
20873
20874 2010-04-14  Simon Josefsson  <simon@josefsson.org>
20875
20876         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
20877         version 1.4.4 by default instead of requiring the libgcrypt
20878         version used during build.  This makes it possible to use the
20879         application with older but still binary compatible libgcrypt
20880         versions.
20881
20882 2010-04-13  Eric Blake  <eblake@redhat.com>
20883
20884         getopt-gnu: match recent glibc fixes and posix ruling
20885         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
20886         '+' handling, when requesting extensions.
20887         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
20888         'W;' handling.
20889         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
20890         * doc/posix-functions/getopt.texi (getopt): Document this.
20891         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20892         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20893         Likewise.
20894
20895         getopt: merge bug fixes from glibc
20896         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
20897         diagnostics.  Honor '+:' correctly.  Reject ';'.
20898
20899         getopt-posix: detect MacOS bug
20900         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20901         optind when missing a required argument.
20902         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20903         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20904         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20905         Likewise.
20906
20907         getopt-posix: avoid spurious failure on Solaris
20908         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20909         an indicator that setting optind=1 is sufficient for reset.
20910
20911         getopt-posix: avoid spurious failure on FreeBSD
20912         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20913         in POSIX mode, since the m4 test uses it.
20914
20915         gnulib-tool: silence warning on BSD sh
20916         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20917
20918 2010-04-13  Jim Meyering  <meyering@redhat.com>
20919
20920         doc: users.txt: GNU patch now uses gnulib
20921         * users.txt: Add patch.
20922
20923 2010-04-12  Jim Meyering  <meyering@redhat.com>
20924
20925         maint.mk: generate more concise timing data for syntax-check rules
20926         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20927         " done" from each line that reports a syntax-check test duration.
20928
20929 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20930
20931         git-version-gen: use "git update-index..." rather than "git status"
20932         * build-aux/git-version-gen: Use git update-index --refresh, not
20933         "git status".  With some versions of git, "git status" would fail
20934         to update the index and result in an unwarranted "-dirty" suffix.
20935
20936 2010-04-11  Jim Meyering  <meyering@redhat.com>
20937
20938         openat: correct formatting (no semantic change)
20939         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20940         Suggested by Bruno Haible.
20941
20942 2010-04-11  Bruno Haible  <bruno@clisp.org>
20943
20944         Stricter declaration checking in testdirs.
20945         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20946         If for_tests is true, augment AM_CPPFLAGS to define
20947         GNULIB_STRICT_CHECKING.
20948         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20949         GNULIB_STRICT_CHECKING is defined, verify that the function is
20950         declared.
20951
20952 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20953             Bruno Haible  <bruno@clisp.org>
20954
20955         libunistring: Improve configure output.
20956         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20957         Don't say "consider installing GNU libunistring" when checking again
20958         with libiconv.
20959
20960 2010-04-11  Bruno Haible  <bruno@clisp.org>
20961
20962         libunistring: Correct value of $LTLIBUNISTRING.
20963         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20964         correct the value of $LTLIBUNISTRING.
20965
20966 2010-04-11  Bruno Haible  <bruno@clisp.org>
20967
20968         havelib: Add static libraries to LIBS in the right order.
20969         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20970         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20971
20972 2010-04-11  Bruno Haible  <bruno@clisp.org>
20973
20974         libunistring: Detect libunistring also when it depends on libiconv.
20975         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20976         the second AC_LIB_HAVE_LINKFLAGS invocation.
20977
20978 2010-04-11  James Youngman  <jay@gnu.org>
20979
20980         close-stream: declare local scalars to be "const"
20981         * lib/close-stream.c (close_stream): Make boolean variables const
20982         to document the fact that we set but do not change them.
20983
20984 2010-04-11  Bruno Haible  <bruno@clisp.org>
20985
20986         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20987
20988 2010-04-11  Jim Meyering  <meyering@redhat.com>
20989
20990         maint.mk: don't include dist-check.mk
20991         * top/maint.mk: Remove bogus include directive.
20992
20993         maint.mk: improve empty-line-at-EOF check
20994         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20995         solution, rather than tail+Perl-based one.  The latter would read
20996         a few kilobytes from the end of each file, and did not handle empty
20997         files properly.
20998
20999         maint.mk: print the elapsed time for each syntax-check rule
21000         * top/maint.mk (sc_m_rules_): Save start time in a file.
21001         (sc_z_rules_): New rules: remove temp file and print elapsed time.
21002         (local-check): Interpose the .z rules
21003
21004 2010-04-11  Jim Meyering  <meyering@redhat.com>
21005
21006         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
21007         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
21008         empty file with one that ends in an empty line.
21009
21010 2010-04-10  Bruno Haible  <bruno@clisp.org>
21011
21012         mkdir: Make it work on mingw64.
21013         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
21014         * lib/mkdir.c: Update comment.
21015         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
21016
21017 2010-04-10  Bruno Haible  <bruno@clisp.org>
21018
21019         Don't override improved macro from newer autoconf.
21020         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
21021         autoconf >= 2.62.
21022         Reported by Joel E. Denny <jdenny@clemson.edu>.
21023
21024 2010-04-10  Jim Meyering  <meyering@redhat.com>
21025
21026         maint.mk: new syntax-check rule: prohibit empty lines at end of file
21027         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
21028
21029         maint.mk: correct a diagnostic
21030         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
21031         in diagnostic; now use $prohibit.
21032
21033 2010-04-10  Bruno Haible  <address@hidden>
21034
21035         fchownat: Fix a C++ test error on Solaris 8.
21036         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
21037         the function does not exist.
21038
21039 2010-04-10  Bruno Haible  <bruno@clisp.org>
21040
21041         vasnprintf: Add more tests.
21042         * tests/test-vasnprintf-posix.c: Include <errno.h>.
21043         (test_function): Test converting an invalid wide string.
21044
21045         vasnprintf: Correct handling of unconvertible wide string arguments.
21046         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
21047         VASNPRINTF.
21048         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
21049         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
21050         smaller than the expected maximum need for the directive. Set errno to
21051         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
21052         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
21053         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
21054         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
21055         * modules/vasnprintf (Files): Add m4/printf.m4.
21056         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21057
21058 2010-04-10  Bruno Haible  <bruno@clisp.org>
21059
21060         vasnprintf: Fix crash in %ls directive.
21061         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
21062         string is passed as argument to %ls, with no precision and no width.
21063         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21064
21065 2010-04-10  Bruno Haible  <bruno@clisp.org>
21066
21067         vasnprintf: Fix multiple test failures on mingw.
21068         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
21069         _snprintf, or snwprintf, not _snwprintf.
21070
21071 2010-04-10  Bruno Haible  <bruno@clisp.org>
21072
21073         write: Fix a C++ test error on mingw.
21074         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
21075
21076 2010-04-10  Bruno Haible  <bruno@clisp.org>
21077
21078         vasnprintf test: Reduce code duplication.
21079         * tests/test-vasnprintf.c (test_function): New function, extracted from
21080         test_vasnprintf.
21081         (test_vasnprintf, test_asnprintf): Invoke it.
21082
21083 2010-04-10  Bruno Haible  <bruno@clisp.org>
21084
21085         strnlen: Fix warning in C++ mode on MacOS X.
21086         * lib/string.in.h (strnlen): Use the modern idiom.
21087         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
21088         defining strnlen as a macro already in <config.h>.
21089         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21090         REPLACE_STRNLEN.
21091         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
21092         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21093
21094 2010-04-08  James Youngman  <jay@gnu.org>
21095
21096         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
21097         the example.
21098
21099 2010-04-09  Jim Meyering  <meyering@redhat.com>
21100
21101         maint.mk: print better diagnostic when there is no $(_hv_file)
21102         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
21103         announce that when $(_hv_file) (aka help-version) does not exist.
21104
21105         init.sh: run tr in the "C" locale to avoid multibyte interpretation
21106         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
21107         not try to interpret its random input bytes.  Jarno Rajahalme reported
21108         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
21109         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
21110         (mktempd_): Likewise, just in case.
21111
21112         ftruncate: add two years to projected module removal date: 2012
21113         * m4/ftruncate.m4: Adjust comments.
21114
21115         ftruncate: mark module as obsolete; even MinGW provides it, now
21116         * modules/ftruncate (Status): Obsolete.
21117         (Notice): Say that.
21118         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
21119         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
21120
21121 2010-04-08  Bruno Haible  <bruno@clisp.org>
21122
21123         Fix side effects from tests-related modules.
21124         * modules/dprintf-posix (Comment): New section.
21125         * modules/fprintf-posix (Comment): Likewise.
21126         * modules/obstack-printf-posix (Comment): Likewise.
21127         * modules/printf-posix (Comment): Likewise.
21128         * modules/snprintf-posix (Comment): Likewise.
21129         * modules/sprintf-posix (Comment): Likewise.
21130         * modules/vasnprintf-posix (Comment): Likewise.
21131         * modules/vasprintf-posix (Comment): Likewise.
21132         * modules/vdprintf-posix (Comment): Likewise.
21133         * modules/vfprintf-posix (Comment): Likewise.
21134         * modules/vprintf-posix (Comment): Likewise.
21135         * modules/vsnprintf-posix (Comment): Likewise.
21136         * modules/vsprintf-posix (Comment): Likewise.
21137         * modules/xprintf-posix (Comment): Likewise.
21138         * modules/xvasprintf-posix (Comment): Likewise.
21139         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
21140         * modules/floorf-tests (Depends-on): Likewise.
21141         * modules/round-tests (Depends-on): Likewise.
21142         * modules/roundf-tests (Depends-on): Likewise.
21143         * modules/trunc-tests (Depends-on): Likewise.
21144         * modules/truncf-tests (Depends-on): Likewise.
21145         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
21146         'fprintf-posix' module is not present.
21147         * tests/test-floorf2.c (check): Likewise.
21148         * tests/test-trunc2.c (check): Likewise.
21149         * tests/test-truncf2.c (check): Likewise.
21150         * tests/test-round2.c (equal): Likewise.
21151         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21152
21153 2010-04-07  Karl Berry  <karl@gnu.org>
21154
21155         * config/srclist.txt,
21156         * config/srclistvars.sh,
21157         * config/srclist-update: doc fixes.
21158
21159 2010-04-07  Jim Meyering  <meyering@redhat.com>
21160
21161         maint.mk: add a PATH crosschecking syntax-check rule
21162         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
21163         Useful if you use a test like the one in help-version (coreutils,
21164         diffutils, grep, gzip) that ensures $(VERSION) matches what is
21165         printed by prog --version.
21166
21167 2010-04-06  Bruno Haible  <bruno@clisp.org>
21168
21169         Fix link error on mingw.
21170         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
21171         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
21172
21173 2010-04-06  Bruno Haible  <bruno@clisp.org>
21174
21175         Assume rmdir exists.
21176         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
21177
21178 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
21179
21180         doc: update users.txt
21181         * users.txt: Add gcal.
21182
21183 2010-04-06  Jim Meyering  <meyering@redhat.com>
21184
21185         init.sh: simply unset TMPDIR rather than risking env -i
21186         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
21187         although it probably works fine on all Unix-based systems, some
21188         systems (Cygwin?) cannot tolerate a totally cleared environment.
21189         Suggestion from Eric Blake.
21190
21191 2010-04-06  Jim Meyering  <meyering@redhat.com>
21192
21193         init.sh: portability fix: use env's POSIX-specified -i option not -u
21194         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
21195         than unportable env -u.  Solaris 5.11's env lacks support for -u.
21196
21197 2010-04-05  Bruno Haible  <bruno@clisp.org>
21198
21199         btowc: Work around Cygwin 1.7.2 bug.
21200         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
21201         does not map NUL to 0.
21202         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
21203
21204 2010-04-05  Bruno Haible  <bruno@clisp.org>
21205
21206         Make the multithread modules work on Cygwin 1.7.2.
21207         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
21208         imported symbols can be declared weak, so that it returns "no" on
21209         Cygwin 1.7.2.
21210
21211 2010-04-05  Bruno Haible  <bruno@clisp.org>
21212
21213         Use the module 'strncat'.
21214         * modules/unistr/u8-strncat (Depends-on): Add strncat.
21215
21216         Tests for module 'strncat'.
21217         * modules/strncat-tests: New file.
21218         * tests/test-strncat.c: New file.
21219
21220         New module 'strncat'.
21221         * lib/string.in.h (strncat): New declaration.
21222         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
21223         * m4/strncat.m4: New file, based on m4/memchr.m4.
21224         * modules/strncat: New file.
21225         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
21226         is declared.
21227         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
21228         REPLACE_STRNCAT.
21229         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
21230         REPLACE_STRNCAT.
21231         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
21232         module.
21233         * tests/test-string-c++.cc: Check signature of strncat.
21234
21235 2010-04-05  Jim Meyering  <meyering@redhat.com>
21236
21237         xstrtoumax-tests: convert to use init.sh
21238         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
21239         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21240         Use Exit, not exit.
21241         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21242
21243         xstrtoimax-tests: convert to use init.sh
21244         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
21245         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21246         Use Exit, not exit.
21247         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21248
21249 2010-04-05  Bruno Haible  <bruno@clisp.org>
21250
21251         sys_socket: Avoid #define replacements in C++ mode.
21252         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
21253         warning to the function if possible, rather than #defining the symbol
21254         to a dysfunctional alias.
21255
21256 2010-04-05  Bruno Haible  <bruno@clisp.org>
21257
21258         fseeko: Fix C++ test error on mingw.
21259         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
21260         gl_FUNC_FSEEKO.
21261         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
21262         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
21263         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
21264         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
21265
21266 2010-04-05  Bruno Haible  <bruno@clisp.org>
21267
21268         duplocale: Improve test output.
21269         * tests/test-duplocale.c (main): Print reason for skipped test.
21270
21271 2010-04-05  Bruno Haible  <bruno@clisp.org>
21272
21273         Assume rmdir exists.
21274         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
21275         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
21276
21277 2010-04-05  Bruno Haible  <bruno@clisp.org>
21278
21279         Fix link error on Solaris 8 with cc.
21280         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
21281
21282 2010-04-05  Bruno Haible  <bruno@clisp.org>
21283
21284         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21285         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
21286
21287 2010-04-05  Bruno Haible  <bruno@clisp.org>
21288
21289         vasprintf: Update documentation.
21290         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
21291
21292 2010-04-05  Bruno Haible  <bruno@clisp.org>
21293
21294         ptsname: Improve test.
21295         * tests/test-ptsname.c (main): Also try the various master names of BSD
21296         systems.
21297
21298 2010-04-05  Bruno Haible  <bruno@clisp.org>
21299
21300         memchr: Avoid a possible C++ test error.
21301         * lib/string.in.h (memchr): Provide declaration if function is missing.
21302         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
21303         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
21304         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
21305         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
21306
21307 2010-04-05  Bruno Haible  <bruno@clisp.org>
21308
21309         strtok_r: Improve idiom.
21310         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
21311         AC_LIBOBJ is used.
21312
21313 2010-04-05  Bruno Haible  <bruno@clisp.org>
21314
21315         strdup: Improve idiom.
21316         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
21317         AC_LIBOBJ is used.
21318         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
21319         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
21320         when AC_LIBOBJ is used.
21321
21322 2010-04-05  Bruno Haible  <bruno@clisp.org>
21323
21324         mbsinit, mbrtowc, wcrtomb: Improve idioms.
21325         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
21326         don't set REPLACE_MBSINIT to 1.
21327         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
21328         don't set REPLACE_MBRTOWC to 1.
21329         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
21330         exist, don't set REPLACE_MBSRTOWCS to 1.
21331         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
21332         exist, don't set REPLACE_MBSNRTOWCS to 1.
21333         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
21334         don't set REPLACE_WCRTOMB to 1.
21335         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
21336         exist, don't set REPLACE_WCSRTOMBS to 1.
21337         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
21338         exist, don't set REPLACE_WCSNRTOMBS to 1.
21339
21340 2010-04-05  Bruno Haible  <bruno@clisp.org>
21341
21342         ldexpl: Improve idiom.
21343         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
21344         make sure to set HAVE_DECL_LDEXPL to 0.
21345
21346 2010-04-05  Jim Meyering  <meyering@redhat.com>
21347
21348         xstrtol-tests: convert to use init.sh
21349         * modules/xstrtol-tests (Files): Add tests/init.sh.
21350         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21351         Use Exit, not exit.
21352         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21353
21354         atexit-tests: convert to use init.sh
21355         * modules/atexit-tests (Files): Add tests/init.sh.
21356         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21357         Use Exit, not exit.
21358         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21359
21360         init.sh: fix typo
21361         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
21362
21363         init.sh: make it easier for a test script to write to the tty, ...
21364         when using automake's parallel-tests mode.
21365         * tests/init.sh (stderr_fileno_): Define overridable variable.
21366         (warn_): New function, to use it.
21367         (fail_, skip_, framework_failure_): Use warn_.
21368
21369 2010-04-04  Bruno Haible  <bruno@clisp.org>
21370
21371         btowc: Avoid warning.
21372         * lib/btowc.c: Include <stdlib.h>.
21373         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
21374
21375 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21376             Bruno Haible  <bruno@clisp.org>
21377
21378         wchar: Port to NetBSD 1.5.
21379         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
21380         * lib/wctype.in.h (WEOF): Likewise.
21381
21382 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21383             Bruno Haible  <bruno@clisp.org>
21384
21385         Port extended stdio to NetBSD 1.5.
21386         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
21387         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
21388         older.
21389
21390 2010-04-04  Bruno Haible  <bruno@clisp.org>
21391
21392         string: Remove unused substitution.
21393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
21394         HAVE_DECL_STRERROR.
21395         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
21396
21397 2010-04-04  Bruno Haible  <bruno@clisp.org>
21398
21399         strtod: Avoid a possible C++ test error.
21400         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
21401         set REPLACE_STRTOD.
21402
21403 2010-04-04  Bruno Haible  <bruno@clisp.org>
21404
21405         strerror: Update documentation.
21406         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
21407
21408 2010-04-04  Bruno Haible  <bruno@clisp.org>
21409
21410         stdio: Fix some C++ test errors on Solaris 8 with GCC.
21411         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
21412         _GL_CXXALIAS_SYS_CAST.
21413
21414 2010-04-04  Bruno Haible  <bruno@clisp.org>
21415
21416         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21417         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
21418         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
21419         REPLACE_FREXPL to 1.
21420         * doc/posix-functions/frexpl.texi: Update documentation.
21421
21422 2010-04-04  Bruno Haible  <bruno@clisp.org>
21423
21424         math: Fix some C++ test errors on Solaris 8 and Cygwin.
21425         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
21426
21427 2010-04-04  Bruno Haible  <bruno@clisp.org>
21428
21429         Implement nanosleep for native Windows.
21430         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
21431
21432 2010-04-04  Bruno Haible  <bruno@clisp.org>
21433
21434         math: Fix some C++ test errors on Solaris 8.
21435         * lib/math.in.h (truncf, trunc): Use simpler idiom.
21436
21437 2010-04-04  Bruno Haible  <bruno@clisp.org>
21438
21439         math: Fix some C++ test errors on Cygwin.
21440         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
21441         truncl): Provide declaration if the system does not have it.
21442         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
21443         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
21444         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
21445         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
21446         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
21447         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
21448         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
21449         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
21450         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
21451         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
21452         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
21453         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
21454         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
21455         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
21456         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
21457         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
21458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
21459         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21460         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21461         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
21462         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21463         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21464
21465 2010-04-04  Bruno Haible  <bruno@clisp.org>
21466
21467         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
21468         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21469         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21470         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
21471         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
21472         * m4/isinf.m4 (gl_ISINF): Likewise.
21473         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21474
21475 2010-04-04  Bruno Haible  <bruno@clisp.org>
21476
21477         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
21478         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21479
21480 2010-04-04  Bruno Haible  <bruno@clisp.org>
21481
21482         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
21483         * modules/tmpfile (configure.ac): Update.
21484
21485         tmpfile: Fix C++ test error on mingw.
21486         * lib/stdio.in.h (tmpfile): New declaration.
21487         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
21488         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
21489         * modules/tmpfile (Depends-on): Add stdio.
21490         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
21491         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
21492         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
21493         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
21494         REPLACE_TMPFILE.
21495         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
21496
21497 2010-04-04  Bruno Haible  <bruno@clisp.org>
21498
21499         ioctl: Fix C++ test error on mingw.
21500         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
21501         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
21502         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
21503
21504 2010-04-03  Bruno Haible  <bruno@clisp.org>
21505
21506         wcwidth: Fix C++ test error on mingw.
21507         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
21508         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
21509         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
21510
21511 2010-04-03  Bruno Haible  <bruno@clisp.org>
21512
21513         nanosleep: Fix C++ test error on mingw.
21514         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
21515         * lib/time.in.h (nanosleep): Use modern idiom.
21516         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
21517         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
21518         REPLACE_NANOSLEEP to 1.
21519         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
21520         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
21521
21522 2010-04-03  Bruno Haible  <bruno@clisp.org>
21523
21524         strptime: Fix C++ test error on mingw.
21525         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
21526         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
21527         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
21528         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
21529         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
21530         not REPLACE_STRPTIME.
21531         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
21532         REPLACE_STRPTIME.
21533
21534 2010-04-03  Bruno Haible  <bruno@clisp.org>
21535
21536         timegm: Fix C++ test error on mingw.
21537         * lib/time.in.h (timegm): Use modern idiom.
21538         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
21539         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
21540         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
21541         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
21542
21543 2010-04-03  Bruno Haible  <bruno@clisp.org>
21544
21545         timegm: Assume declaration if function exists.
21546         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
21547         if it exists. Don't clobber ac_cv_func_timegm.
21548
21549 2010-04-03  Bruno Haible  <bruno@clisp.org>
21550
21551         time_r: Fix C++ test error on mingw.
21552         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
21553         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
21554         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
21555         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
21556         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
21557
21558 2010-04-03  Bruno Haible  <bruno@clisp.org>
21559
21560         time_r: Minor updates.
21561         * modules/time_r (Description): Mention the provided functions.
21562         * lib/time_r.c: Don't include <string.h>.
21563         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
21564         * doc/posix-functions/localtime_r.texi: Likewise.
21565
21566 2010-04-03  Bruno Haible  <bruno@clisp.org>
21567
21568         time: Fix regression introduced on 2010-03-08.
21569         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
21570         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
21571
21572 2010-04-03  Jim Meyering  <meyering@redhat.com>
21573
21574         maint.mk: don't silently disable project-specific syntax-check rules
21575         * top/maint.mk (_prohibit_regexp): Define, to help people realize
21576         that they need to convert their project-specific syntax-check rules
21577         to use the new _sc_search_regexp.
21578
21579 2010-04-03  Bruno Haible  <bruno@clisp.org>
21580
21581         fchdir: Fix regression introduced on 2010-03-08.
21582         * lib/unistd.in.h (fchdir): Fix declaration.
21583         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
21584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
21585         REPLACE_FCHDIR.
21586         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
21587         REPLACE_FCHDIR.
21588
21589 2010-04-03  Bruno Haible  <bruno@clisp.org>
21590
21591         getpagesize: Fix C++ test error on mingw.
21592         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
21593         system does not declare the function.
21594         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
21595         declared.
21596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21597         HAVE_DECL_GETPAGESIZE.
21598         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
21599
21600 2010-04-03  Bruno Haible  <bruno@clisp.org>
21601
21602         stdio: Make C++ tests work on mingw.
21603         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
21604         does not declare the function.
21605
21606 2010-04-03  Bruno Haible  <bruno@clisp.org>
21607
21608         ftello: Fix C++ test error on mingw.
21609         * lib/stdio.in.h (ftello): Use modern idiom.
21610         * lib/ftello.c (ftello): Renamed from rpl_ftello.
21611         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
21612         is missing and that it needs to be replaced.
21613         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
21614         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
21615         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
21616
21617 2010-04-03  Bruno Haible  <bruno@clisp.org>
21618
21619         fseeko: Fix C++ test error on mingw.
21620         * lib/stdio.in.h (fseeko): Use modern idiom.
21621         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
21622         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
21623         is missing and that it needs to be replaced.
21624         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
21625         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
21626         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
21627
21628 2010-04-03  Bruno Haible  <bruno@clisp.org>
21629
21630         mkstemp: Fix C++ test error on mingw.
21631         * lib/stdlib.in.h (mkstemp): Use modern idiom.
21632         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
21633         function is missing and that it needs to be replaced.
21634         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
21635         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
21636
21637 2010-04-03  Bruno Haible  <bruno@clisp.org>
21638
21639         stpncpy: Fix C++ test error on mingw.
21640         * lib/string.in.h (stpncpy): Use modern idiom.
21641         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
21642         function is missing and that it needs to be replaced.
21643         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21644         REPLACE_STPNCPY.
21645         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
21646
21647 2010-04-03  Bruno Haible  <bruno@clisp.org>
21648
21649         sys_stat: Fix C++ test error on mingw.
21650         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
21651         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
21652
21653 2010-04-03  Bruno Haible  <bruno@clisp.org>
21654
21655         pty: Update doc.
21656         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
21657
21658 2010-04-03  Bruno Haible  <bruno@clisp.org>
21659
21660         unistd: Fix C++ test error on mingw.
21661         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
21662
21663 2010-04-03  Bruno Haible  <bruno@clisp.org>
21664
21665         Update doc regarding mingw.
21666         * doc/glibc-functions/openpty.texi: Update regarding mingw.
21667         * doc/glibc-functions/login_tty.texi: Likewise.
21668         * doc/glibc-functions/forkpty.texi: Likewise.
21669
21670 2010-04-03  Bruno Haible  <bruno@clisp.org>
21671
21672         stdlib: Avoid compilation failure of c-strtold on mingw.
21673         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
21674
21675 2010-04-03  Bruno Haible  <bruno@clisp.org>
21676
21677         locale: Make C++ tests work on Cygwin and mingw.
21678         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
21679         cannot provide the function.
21680         Reported by Simon Josefsson.
21681
21682 2010-04-03  Bruno Haible  <bruno@clisp.org>
21683
21684         localename: Port to MacOS X 10.6.
21685         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
21686         memory layout of the locales in MacOS X 10.6 as well.
21687         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
21688
21689 2010-04-02  Bruno Haible  <bruno@clisp.org>
21690
21691         gnulib-tool: Ensure that long-running tests are executed last.
21692         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
21693         running tests after the one for the other tests.
21694
21695 2010-04-02  Bruno Haible  <bruno@clisp.org>
21696
21697         gnulib-tool: Ensure the tests in the main directory are executed first.
21698         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
21699         start with the current directory.
21700
21701 2010-04-02  Bruno Haible  <bruno@clisp.org>
21702
21703         Tests for module 'havelib', moved here from GNU gettext.
21704         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
21705         modifications.
21706         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
21707         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
21708         with modifications.
21709         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
21710         modifications.
21711         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
21712         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
21713         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
21714         with modifications.
21715         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
21716         with modifications.
21717         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
21718         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
21719         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
21720         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
21721         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
21722         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
21723         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
21724         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
21725         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
21726         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
21727         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
21728         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
21729         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
21730         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
21731         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
21732         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
21733         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
21734         with modifications.
21735         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
21736         with modifications.
21737         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
21738         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
21739         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
21740         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
21741         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
21742         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
21743         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
21744         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
21745         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
21746         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
21747         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
21748         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
21749         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
21750         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
21751         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
21752         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
21753         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
21754         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
21755         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
21756         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
21757         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
21758         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
21759         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
21760         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
21761         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
21762         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
21763         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
21764         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
21765         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
21766         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
21767         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
21768         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
21769         * tests/havelib/rpathx/rpathx.c: New file, from
21770         gettext/autoconf-lib-link.
21771         * tests/havelib/rpathx/Makefile.am: New file, from
21772         gettext/autoconf-lib-link.
21773         * tests/havelib/rpathx/configure.ac: New file, from
21774         gettext/autoconf-lib-link with modifications.
21775         * tests/havelib/rpathy/rpathy.c: New file, from
21776         gettext/autoconf-lib-link.
21777         * tests/havelib/rpathy/Makefile.am: New file, from
21778         gettext/autoconf-lib-link.
21779         * tests/havelib/rpathy/configure.ac: New file, from
21780         gettext/autoconf-lib-link with modifications.
21781         * tests/havelib/rpathz/rpathz.c: New file, from
21782         gettext/autoconf-lib-link.
21783         * tests/havelib/rpathz/Makefile.am: New file, from
21784         gettext/autoconf-lib-link.
21785         * tests/havelib/rpathz/configure.ac: New file, from
21786         gettext/autoconf-lib-link with modifications.
21787         * tests/havelib/rpathlx/usex.c: New file, from
21788         gettext/autoconf-lib-link.
21789         * tests/havelib/rpathlx/Makefile.am: New file, from
21790         gettext/autoconf-lib-link.
21791         * tests/havelib/rpathlx/configure.ac: New file, from
21792         gettext/autoconf-lib-link with modifications.
21793         * tests/havelib/rpathly/usey.c: New file, from
21794         gettext/autoconf-lib-link.
21795         * tests/havelib/rpathly/Makefile.am: New file, from
21796         gettext/autoconf-lib-link.
21797         * tests/havelib/rpathly/configure.ac: New file, from
21798         gettext/autoconf-lib-link with modifications.
21799         * tests/havelib/rpathlz/usez.c: New file, from
21800         gettext/autoconf-lib-link.
21801         * tests/havelib/rpathlz/Makefile.am: New file, from
21802         gettext/autoconf-lib-link.
21803         * tests/havelib/rpathlz/configure.ac: New file, from
21804         gettext/autoconf-lib-link with modifications.
21805         * tests/havelib/rpathlyx/usey.c: New file, from
21806         gettext/autoconf-lib-link.
21807         * tests/havelib/rpathlyx/Makefile.am: New file, from
21808         gettext/autoconf-lib-link.
21809         * tests/havelib/rpathlyx/configure.ac: New file, from
21810         gettext/autoconf-lib-link with modifications.
21811         * tests/havelib/rpathlzyx/usez.c: New file, from
21812         gettext/autoconf-lib-link.
21813         * tests/havelib/rpathlzyx/Makefile.am: New file, from
21814         gettext/autoconf-lib-link.
21815         * tests/havelib/rpathlzyx/configure.ac: New file, from
21816         gettext/autoconf-lib-link with modifications.
21817         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
21818         with modifications.
21819
21820 2010-04-02  Bruno Haible  <bruno@clisp.org>
21821
21822         gnulib-tool: Create distributed built sources also for the tests.
21823         * gnulib-tool (func_create_testdir): Also generate distributed built
21824         sources in the tests directory.
21825
21826 2010-04-02  Bruno Haible  <bruno@clisp.org>
21827
21828         gnulib-tool: Obey user's environment variables.
21829         * gnulib-tool (func_create_testdir): When creating built sources,
21830         respect the environment variables for autoconf, automake, etc. given by
21831         the user.
21832
21833 2010-04-02  Bruno Haible  <bruno@clisp.org>
21834
21835         gnulib-tool: Provide the value of --m4-base to modules.
21836         * gnulib-tool (func_import, func_create_testdir): Emit a definition
21837         of gl_m4_base.
21838
21839 2010-04-02  Eric Blake  <eblake@redhat.com>
21840
21841         maint.mk: fix some fallout
21842         * NEWS: Document the incompatible change, and its effect on cfg.mk.
21843         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
21844
21845 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21846
21847         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
21848         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
21849         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
21850         (sc_cast_of_x_alloc_return_value): Likewise.
21851         (sc_cast_of_alloca_return_value): Likewise.
21852         (sc_space_tab): Likewise.
21853         (sc_prohibit_atoi_atof): Likewise.
21854         (sc_prohibit_magic_number_exit): Likewise.
21855         (sc_error_exit_success): Likewise.
21856         (sc_file_system): Likewise.
21857         (sc_prohibit_have_config_h): Likewise.
21858         (sc_require_config_h): Likewise.
21859         (sc_prohibit_HAVE_MBRTOWC): Likewise.
21860         (sc_obsolete_symbols): Likewise.
21861         (sc_changelog): Likewise.
21862         (sc_program_name): Likewise.
21863         (sc_the_the): Likewise.
21864         (sc_trailing_blank): Likewise.
21865         (sc_two_space_separator_in_usage): Likewise.
21866         (sc_useless_cpp_parens): Likewise.
21867         (sc_GPL_version): Likewise.
21868         (sc_GFDL_version): Likewise.
21869         (sc_texinfo_acronym): Likewise.
21870         (sc_prohibit_cvs_keyword): Likewise.
21871         (sc_prohibit_stat_st_blocks): Likewise.
21872         (sc_prohibit_S_IS_definition): Likewise.
21873         (sc_redundant_const): Likewise.
21874         (sc_makefile_TAB_only_indentation): Likewise.
21875         (sc_m4_quote_check): Likewise.
21876         (sc_makefile_path_separator_check): Likewise.
21877         (sc_copyright_check): Likewise.
21878         (sc_Wundef_boolean): Likewise.
21879         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21880
21881         maint.mk: match 0 or more whitespace-before-function-call '('
21882         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
21883         that have zero or two-and-more spaces between the function name
21884         and the open parenthesis.
21885         (sc_error_message_warn_fatal): Likewise.
21886         (sc_error_message_uppercase): Likewise.
21887         (sc_error_message_period): Likewise.
21888
21889 2010-03-31  Eric Blake  <eblake@redhat.com>
21890
21891         maint.mk: check for [ as well as test
21892         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
21893         Based on a libvirt report by Matthias Bolte.
21894
21895         gnumakefile: don't squelch _version output
21896         * top/GNUmakefile (_version): Create one-shot dependency rather
21897         than using $(shell) when version must be regenerated.
21898         (_autoreconf): Run verbosely, by default.
21899
21900         sys_time: avoid compiler warnings
21901         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21902         unconditional, fixing regression from 2010-03-29.
21903         Reported by Simon Josefsson.
21904
21905 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21906
21907         maint.mk: s/_header_without_use/_sc_header_without_use/
21908         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21909         (sc_prohibit_assert_without_use): Use the new name.
21910         (sc_prohibit_close_stream_without_use): Likewise.
21911         (sc_prohibit_getopt_without_use): Likewise.
21912         (sc_prohibit_quotearg_without_use): Likewise.
21913         (sc_prohibit_quote_without_use): Likewise.
21914         (sc_prohibit_long_options_without_use): Likewise.
21915         (sc_prohibit_inttostr_without_use): Likewise.
21916         (sc_prohibit_ignore_value_without_use): Likewise.
21917         (sc_prohibit_error_without_use): Likewise.
21918         (sc_prohibit_xalloc_without_use): Likewise.
21919         (sc_prohibit_hash_without_use): Likewise.
21920         (sc_prohibit_hash_pjw_without_use): Likewise.
21921         (sc_prohibit_safe_read_without_use): Likewise.
21922         (sc_prohibit_argmatch_without_use): Likewise.
21923         (sc_prohibit_canonicalize_without_use): Likewise.
21924         (sc_prohibit_root_dev_ino_without_use): Likewise.
21925         (sc_prohibit_openat_without_use): Likewise.
21926         (sc_prohibit_c_ctype_without_use): Likewise.
21927         (sc_prohibit_signal_without_use): Likewise.
21928         (sc_prohibit_intprops_without_use): Likewise.
21929
21930 2010-03-30  Eric Blake  <eblake@redhat.com>
21931
21932         maint: improve module indicators
21933         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21934         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21935         columns, and avoid extra macro expansion.
21936
21937         fdopendir: work around FreeBSD bug
21938         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21939         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21940         * modules/dirent (Makefile.am): Substitute it.
21941         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21942         declaration.
21943         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21944         fix.
21945         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21946
21947 2010-03-29  Bruno Haible  <bruno@clisp.org>
21948
21949         Emit #pragma system_header after the inclusion guard, not before.
21950         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21951         guard that spans the entire file, not before. This enables an
21952         optimization in GCC's preprocessor.
21953         * lib/ctype.in.h: Likewise.
21954         * lib/dirent.in.h: Likewise.
21955         * lib/errno.in.h: Likewise.
21956         * lib/float.in.h: Likewise.
21957         * lib/getopt.in.h: Likewise.
21958         * lib/iconv.in.h: Likewise.
21959         * lib/langinfo.in.h: Likewise.
21960         * lib/locale.in.h: Likewise.
21961         * lib/math.in.h: Likewise.
21962         * lib/netdb.in.h: Likewise.
21963         * lib/netinet_in.in.h: Likewise.
21964         * lib/pty.in.h: Likewise.
21965         * lib/sched.in.h: Likewise.
21966         * lib/se-selinux.in.h: Likewise.
21967         * lib/search.in.h: Likewise.
21968         * lib/spawn.in.h: Likewise.
21969         * lib/stdarg.in.h: Likewise.
21970         * lib/stdint.in.h: Likewise.
21971         * lib/string.in.h: Likewise.
21972         * lib/strings.in.h: Likewise.
21973         * lib/sys_file.in.h: Likewise.
21974         * lib/sys_ioctl.in.h: Likewise.
21975         * lib/sys_time.in.h: Likewise.
21976         * lib/sys_times.in.h: Likewise.
21977         * lib/sys_utsname.in.h: Likewise.
21978         * lib/sys_wait.in.h: Likewise.
21979         * lib/sysexits.in.h: Likewise.
21980         * lib/wctype.in.h: Likewise.
21981
21982 2010-03-28  James Youngman  <jay@gnu.org>
21983
21984         save-cwd: don't leak a file descriptor when the caller execs.
21985         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21986         saved file descriptor.
21987         * modules/save-cwd (Depends-on): Depend on cloexec.
21988
21989 2010-03-29  Bruno Haible  <bruno@clisp.org>
21990
21991         Remove vestiges of fts-lgpl module.
21992         * lib/fts_.h: Assume GNULIB_FTS is 1.
21993         * lib/fts.c: Likewise.
21994         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21995
21996 2010-03-28  Bruno Haible  <bruno@clisp.org>
21997
21998         Fix definition of tests witness macro.
21999         * gnulib-tool (func_import): Fix definition of witness macro.
22000
22001 2010-03-28  Bruno Haible  <bruno@clisp.org>
22002
22003         Fix ioctl's protoype on glibc systems.
22004         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
22005         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
22006         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
22007         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
22008         signature. If not, arrange to replace the ioctl function.
22009         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
22010         REPLACE_IOCTL.
22011         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
22012         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
22013         Reported by Ludovic Courtès <ludo@gnu.org>.
22014
22015 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
22016
22017         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
22018         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
22019         made it so grep -r --include=GLOB* ... did not work.
22020
22021 2010-03-26  Jim Meyering  <meyering@redhat.com>
22022             Eric Blake  <eblake@redhat.com>
22023
22024         maint.mk: prohibit use of test's -o and -a operators
22025         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
22026
22027 2010-03-28  Bruno Haible  <bruno@clisp.org>
22028
22029         Remove unused GNULIB_XYZ macro definitions.
22030         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
22031         invocation.
22032
22033 2010-03-28  Bruno Haible  <bruno@clisp.org>
22034
22035         Mark privileged tests modules.
22036         * modules/idpriv-drop-tests (Status): New section.
22037         * modules/idpriv-droptemp-tests (Status): New section.
22038
22039 2010-03-28  Bruno Haible  <bruno@clisp.org>
22040
22041         Split C++ tests into separate tests modules.
22042         * modules/dirent-c++-tests: New file, extracted from
22043         modules/dirent-tests.
22044         * modules/dirent-tests: Depend on it.
22045         * modules/fcntl-h-c++-tests: New file, extracted from
22046         modules/fcntl-h-tests.
22047         * modules/fcntl-h-tests: Depend on it.
22048         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
22049         * modules/glob-tests: Depend on it.
22050         * modules/iconv-h-c++-tests: New file, extracted from
22051         modules/iconv-h-tests.
22052         * modules/iconv-h-tests: Depend on it.
22053         * modules/langinfo-c++-tests: New file, extracted from
22054         modules/langinfo-tests.
22055         * modules/langinfo-tests: Depend on it.
22056         * modules/locale-c++-tests: New file, extracted from
22057         modules/locale-tests.
22058         * modules/locale-tests: Depend on it.
22059         * modules/math-c++-tests: New file, extracted from modules/math-tests.
22060         * modules/math-tests: Depend on it.
22061         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
22062         * modules/pty-tests: Depend on it.
22063         * modules/search-c++-tests: New file, extracted from
22064         modules/search-tests.
22065         * modules/search-tests: Depend on it.
22066         * modules/signal-c++-tests: New file, extracted from
22067         modules/signal-tests.
22068         * modules/signal-tests: Depend on it.
22069         * modules/spawn-c++-tests: New file, extracted from
22070         modules/spawn-tests.
22071         * modules/spawn-tests: Depend on it.
22072         * modules/stdio-c++-tests: New file, extracted from
22073         modules/stdio-tests.
22074         * modules/stdio-tests: Depend on it.
22075         * modules/stdlib-c++-tests: New file, extracted from
22076         modules/stdlib-tests.
22077         * modules/stdlib-tests: Depend on it.
22078         * modules/string-c++-tests: New file, extracted from
22079         modules/string-tests.
22080         * modules/string-tests: Depend on it.
22081         * modules/sys_ioctl-c++-tests: New file, extracted from
22082         modules/sys_ioctl-tests.
22083         * modules/sys_ioctl-tests: Depend on it.
22084         * modules/sys_select-c++-tests: New file, extracted from
22085         modules/sys_select-tests.
22086         * modules/sys_select-tests: Depend on it.
22087         * modules/sys_socket-c++-tests: New file, extracted from
22088         modules/sys_socket-tests.
22089         * modules/sys_socket-tests: Depend on it.
22090         * modules/sys_stat-c++-tests: New file, extracted from
22091         modules/sys_stat-tests.
22092         * modules/sys_stat-tests: Depend on it.
22093         * modules/sys_time-c++-tests: New file, extracted from
22094         modules/sys_time-tests.
22095         * modules/sys_time-tests: Depend on it.
22096         * modules/time-c++-tests: New file, extracted from modules/time-tests.
22097         * modules/time-tests: Depend on it.
22098         * modules/unistd-c++-tests: New file, extracted from
22099         modules/unistd-tests.
22100         * modules/unistd-tests: Depend on it.
22101         * modules/wchar-c++-tests: New file, extracted from
22102         modules/wchar-tests.
22103         * modules/wchar-tests: Depend on it.
22104         * modules/wctype-c++-tests: New file, extracted from
22105         modules/wctype-tests.
22106         * modules/wctype-tests: Depend on it.
22107         Reported by Simon Josefsson.
22108
22109 2010-03-28  Bruno Haible  <bruno@clisp.org>
22110
22111         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
22112         * gnulib-tool (func_exists_module): New function, extracted from
22113         func_verify_module.
22114         (func_verify_module): Use it.
22115         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
22116         'foo' only if 'foo' exists.
22117         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
22118         module.
22119
22120 2010-03-28  Bruno Haible  <bruno@clisp.org>
22121
22122         gnulib-tool: Add support for special categories of tests.
22123         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
22124         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
22125         (func_usage): Document them.
22126         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
22127         inc_unportable_tests, inc_all_tests): New variables.
22128         (func_acceptable): Consider these variables.
22129         (func_modules_transitive_closure): Make it work when the 'Status' field
22130         consists of multiple words.
22131         (func_import): Store and restore the values of inc_cxx_tests,
22132         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
22133         inc_all_tests in gnulib-comp.m4.
22134         (func_create_testdir): Set inc_all_tests to true.
22135         * doc/gnulib.texi (Extra tests modules): New section.
22136         Suggested by Jim Meyering.
22137
22138 2010-03-28  Bruno Haible  <bruno@clisp.org>
22139
22140         ansi-c++-opt: Allow turning off the C++ build by default.
22141         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
22142         gl_CXX_CHOICE_DEFAULT_NO is defined.
22143         Requested by Eric Blake.
22144
22145 2010-03-28  Bruno Haible  <bruno@clisp.org>
22146
22147         unistd: Avoid #define replacements in C++ mode.
22148         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
22149         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
22150         setsockopt, shutdown, select): In C++, attach a warning to the function
22151         if possible, rather than #defining the symbol to a dysfunctional alias.
22152         Reported by John W. Eaton <jwe@gnu.org>.
22153
22154 2010-03-28  Bruno Haible  <bruno@clisp.org>
22155
22156         Fix link errors on mingw.
22157         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
22158         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
22159         $(LIBSOCKET).
22160         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
22161         $(LIBSOCKET).
22162
22163 2010-03-28  Bruno Haible  <bruno@clisp.org>
22164             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22165
22166         lib-ignore: Determine different options for different compilers.
22167         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
22168         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
22169         Add comments.
22170         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
22171         * NEWS: Mention the change.
22172
22173 2010-03-27  Bruno Haible  <bruno@clisp.org>
22174
22175         Remove unused GNULIB_XYZ macro definitions.
22176         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22177         * modules/fseek (configure.ac): Likewise.
22178         * modules/ioctl (configure.ac): Likewise.
22179         * modules/open (configure.ac): Likewise.
22180         * modules/stdlib-safer (configure.ac): Likewise.
22181
22182 2010-03-27  Bruno Haible  <bruno@clisp.org>
22183
22184         Add a remark about certain modules.
22185         * modules/malloc (Comment): New section.
22186         * modules/realloc (Comment): Likewise.
22187         * modules/sigpipe (Comment): Likewise.
22188
22189 2010-03-27  Bruno Haible  <bruno@clisp.org>
22190
22191         Resolve conflict between the two kinds of module indicators.
22192         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
22193         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
22194         * modules/canonicalize (configure.ac): Invoke
22195         gl_MODULE_INDICATOR_FOR_TESTS.
22196         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
22197         GNULIB_XYZ.
22198         * tests/test-dirent-c++.cc: Likewise.
22199         * tests/test-dirent-safer.c: Likewise.
22200         * tests/test-dup2.c: Likewise.
22201         * tests/test-fchdir.c: Likewise.
22202         * tests/test-fcntl-h-c++.cc: Likewise.
22203         * tests/test-getopt.c: Likewise.
22204         * tests/test-getopt.h: Likewise.
22205         * tests/test-langinfo-c++.cc: Likewise.
22206         * tests/test-locale-c++.cc: Likewise.
22207         * tests/test-math-c++.cc: Likewise.
22208         * tests/test-pty-c++.cc: Likewise.
22209         * tests/test-search-c++.cc: Likewise.
22210         * tests/test-signal-c++.cc: Likewise.
22211         * tests/test-spawn-c++.cc: Likewise.
22212         * tests/test-stdio-c++.cc: Likewise.
22213         * tests/test-stdlib-c++.cc: Likewise.
22214         * tests/test-string-c++.cc: Likewise.
22215         * tests/test-sys_ioctl-c++.cc: Likewise.
22216         * tests/test-sys_select-c++.cc: Likewise.
22217         * tests/test-sys_socket-c++.cc: Likewise.
22218         * tests/test-sys_stat-c++.cc: Likewise.
22219         * tests/test-sys_time-c++.cc: Likewise.
22220         * tests/test-time-c++.cc: Likewise.
22221         * tests/test-unistd-c++.cc: Likewise.
22222         * tests/test-wchar-c++.cc: Likewise.
22223         * tests/uninorm/test-u8-nfc.c: Likewise.
22224         * tests/uninorm/test-u8-nfd.c: Likewise.
22225         * tests/uninorm/test-u8-nfkc.c: Likewise.
22226         * tests/uninorm/test-u8-nfkd.c: Likewise.
22227         * tests/uninorm/test-u16-nfc.c: Likewise.
22228         * tests/uninorm/test-u16-nfd.c: Likewise.
22229         * tests/uninorm/test-u16-nfkc.c: Likewise.
22230         * tests/uninorm/test-u16-nfkd.c: Likewise.
22231         * tests/uninorm/test-u32-nfc.c: Likewise.
22232         * tests/uninorm/test-u32-nfc-big.c: Likewise.
22233         * tests/uninorm/test-u32-nfd.c: Likewise.
22234         * tests/uninorm/test-u32-nfd-big.c: Likewise.
22235         * tests/uninorm/test-u32-nfkc.c: Likewise.
22236         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
22237         * tests/uninorm/test-u32-nfkd.c: Likewise.
22238         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
22239         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22240
22241 2010-03-27  Bruno Haible  <bruno@clisp.org>
22242
22243         Distinguish two kinds of module indicators.
22244         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
22245         gl_MODULE_INDICATOR.
22246         (gl_MODULE_INDICATOR): New macro.
22247         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22248         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
22249         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22250         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22251         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22252         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22253         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22254         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22255         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22256         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22257         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22258         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22259         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22260         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22261         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22262         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22263         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22264         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22265         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22266         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22267         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22268         * modules/cloexec (configure.ac): Likewise.
22269         * modules/getopt-gnu (configure.ac): Likewise.
22270         * modules/uninorm/u8-normalize (configure.ac): Likewise.
22271         * modules/uninorm/u16-normalize (configure.ac): Likewise.
22272         * modules/uninorm/u32-normalize (configure.ac): Likewise.
22273         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
22274
22275 2010-03-27  Bruno Haible  <bruno@clisp.org>
22276
22277         New module description field 'Comment'.
22278         * gnulib-tool: New option --extract-comment.
22279         (func_usage): Document it.
22280         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
22281         (func_get_comment): New function.
22282         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
22283
22284 2010-03-27  Bruno Haible  <bruno@clisp.org>
22285
22286         Addendum to 2010-02-07 commit.
22287         * gnulib-tool (func_usage): Document --extract-applicability option.
22288
22289 2010-03-27  Bruno Haible  <bruno@clisp.org>
22290
22291         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
22292         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
22293         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
22294         rather than link errors.
22295
22296 2010-03-27  Bruno Haible  <bruno@clisp.org>
22297
22298         Avoid side effects from tests-related modules on the compilation of lib.
22299         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
22300         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
22301         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
22302         parameter. Emit into AM_CPPFLAGS a definition of the designated C
22303         macro.
22304         (func_import): Define a witness macro. Assign it a value that depends
22305         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
22306         tests-related modules.
22307         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
22308         Reported by Jim Meyering.
22309
22310 2010-03-27  Bruno Haible  <bruno@clisp.org>
22311
22312         Factorize common .m4 code.
22313         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
22314         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
22315         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
22316         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
22317         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22318         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
22319         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
22320         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22321         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22322         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22323         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
22324         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22325         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22326         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22327         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22328         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
22329         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22330         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22331         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22332         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
22333         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
22334         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22335         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22336         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22337         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22338         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22339         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
22340         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
22341         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
22342         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22343         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22344         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22345
22346 2010-03-27  Bruno Haible  <bruno@clisp.org>
22347
22348         Fix a compilation error on Cygwin with g++ >= 4.3.
22349         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
22350         if it is undefined or if we alias it to chmod.
22351         (lstat): Don't warn about the use of this function if it is undefined
22352         or if we alias it to stat.
22353         Reported by Simon Josefsson.
22354
22355 2010-03-27  Bruno Haible  <bruno@clisp.org>
22356
22357         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
22358         * modules/getlogin (configure.ac): Update.
22359
22360         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
22361         * modules/getlogin_r (configure.ac): Update.
22362
22363         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
22364         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
22365         * modules/inet_ntop (configure.ac): Update.
22366
22367         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
22368         * modules/inet_pton (configure.ac): Update.
22369
22370         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
22371         * modules/mbslen (configure.ac): Update.
22372
22373         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
22374         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
22375         * modules/forkpty (configure.ac): Update.
22376         * modules/openpty (configure.ac): Update.
22377
22378 2010-03-26  Simon Josefsson  <simon@josefsson.org>
22379
22380         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
22381         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
22382
22383 2010-03-25  Eric Blake  <eblake@redhat.com>
22384
22385         maint: use pragma consistently across replacement headers
22386         * lib/ctype.in.h (system_header): Hoist for consistent placement.
22387         * lib/dirent.in.h (system_header): Likewise.
22388         * lib/errno.in.h (system_header): Likewise.
22389         * lib/float.in.h (system_header): Likewise.
22390         * lib/getopt.in.h (system_header): Likewise.
22391         * lib/iconv.in.h (system_header): Likewise.
22392         * lib/inttypes.in.h (system_header): Likewise.
22393         * lib/langinfo.in.h (system_header): Likewise.
22394         * lib/locale.in.h (system_header): Likewise.
22395         * lib/math.in.h (system_header): Likewise.
22396         * lib/netdb.in.h (system_header): Likewise.
22397         * lib/netinet_in.in.h (system_header): Likewise.
22398         * lib/pty.in.h (system_header): Likewise.
22399         * lib/sched.in.h (system_header): Likewise.
22400         * lib/se-selinux.in.h (system_header): Likewise.
22401         * lib/search.in.h (system_header): Likewise.
22402         * lib/spawn.in.h (system_header): Likewise.
22403         * lib/stdarg.in.h (system_header): Likewise.
22404         * lib/stdint.in.h (system_header): Likewise.
22405         * lib/string.in.h (system_header): Likewise.
22406         * lib/strings.in.h (system_header): Likewise.
22407         * lib/sys_file.in.h (system_header): Likewise.
22408         * lib/sys_ioctl.in.h (system_header): Likewise.
22409         * lib/sys_socket.in.h (system_header): Likewise.
22410         * lib/sys_times.in.h (system_header): Likewise.
22411         * lib/sys_utsname.in.h (system_header): Likewise.
22412         * lib/sys_wait.in.h (system_header): Likewise.
22413         * lib/sysexits.in.h (system_header): Likewise.
22414         * lib/unistd.in.h (system_header): Likewise.
22415         * lib/wctype.in.h (system_header): Likewise.
22416
22417         arpa/inet: fix mingw compilation warning
22418         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
22419         Reported by Matthew Bolte.
22420
22421 2010-03-25  Bruno Haible  <bruno@clisp.org>
22422
22423         Avoid collision between gnulib wrapper and libintl wrapper.
22424         * lib/printf.c (printf): Don't define if a printf wrapper is already
22425         defined in intl/printf.c.
22426         Reported by Michel Boaventura <michel@michelboaventura.com>.
22427
22428 2010-03-25  Bruno Haible  <bruno@clisp.org>
22429
22430         Use ANSI C.
22431         * lib/readutmp.h (getutent): Provide ANSI C prototype.
22432
22433 2010-03-25  Bruno Haible  <bruno@clisp.org>
22434
22435         Minor formatting changes.
22436         * lib/acosl.c: Insert space before function argument list.
22437         * lib/argz.c: Likewise.
22438         * lib/asinl.c: Likewise.
22439         * lib/expl.c: Likewise.
22440         * lib/gen-uni-tables.c: Likewise.
22441         * lib/gettext.h: Likewise.
22442         * lib/glthread/lock.h: Likewise.
22443         * lib/tanl.c: Likewise.
22444         * lib/uniname/uniname.c: Likewise.
22445         * tests/test-idpriv-drop.c: Likewise.
22446         * tests/test-idpriv-droptemp.c: Likewise.
22447         * tests/test-lock.c: Likewise.
22448         * tests/test-tls.c: Likewise.
22449         * lib/argp-help.c: Insert space before function-like macro argument
22450         list.
22451         * lib/memcmp.c: Likewise.
22452         * tests/test-base64.c: Likewise.
22453         * lib/localename.c: Insert space before sizeof's argument list.
22454         * lib/safe-alloc.h: Likewise.
22455         * lib/file-set.h: Insert space before macro argument list.
22456         * tests/test-argp.c: Likewise.
22457         * lib/argp-namefrob.h: Insert space before function parameter list.
22458         * lib/getaddrinfo.c: Likewise.
22459         * lib/netdb.in.h: Likewise.
22460         * lib/parse-duration.h: Likewise.
22461         * lib/parse-duration.c: Likewise.
22462         * lib/poll.c: Likewise.
22463         * lib/select.c: Likewise.
22464         * lib/trim.h: Likewise.
22465         * tests/test-usleep.c: Likewise.
22466         * lib/ldexpl.c: Insert space before function parameter list and before
22467         function argument list.
22468         * lib/logl.c: Likewise.
22469         * lib/sqrtl.c: Likewise.
22470         * lib/trim.c: Likewise.
22471         * lib/cosl.c: Use GNU style indentation. Insert space before function
22472         argument list.
22473         * lib/sinl.c: Likewise.
22474         * lib/tsearch.c: Insert space after 'for'.
22475         Reported by Jim Meyering.
22476
22477 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
22478
22479         * maint.mk (sc_Wundef_boolean): Check for the presence of the
22480         config header before grepping, as it's not present before
22481         autoreconf/configure are run.  Reported by Simon Josefsson.
22482
22483 2010-03-23  Bruno Haible  <bruno@clisp.org>
22484
22485         pt_chown: Make it work with automake < 1.11.
22486         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
22487         Reported by Simon Josefsson.
22488
22489 2010-03-23  Bruno Haible  <bruno@clisp.org>
22490
22491         pt_chown: Don't depend on GPLed modules.
22492         * lib/pt_chown.c: Don't include idpriv.h.
22493         (main): Don't drop privileges.
22494         * modules/pt_chown (Depends-on): Remove idpriv-drop.
22495         Reported by Simon Josefsson.
22496
22497 2010-03-24  Simon Josefsson  <simon@josefsson.org>
22498
22499         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
22500         suggestions from karl@freefriends.org (Karl Berry).
22501
22502 2010-03-22  Eric Blake  <eblake@redhat.com>
22503
22504         gethostname: further tweaks
22505         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
22506         are overriding gethostname.
22507         Suggested by Bruno Haible.
22508
22509 2010-03-21  Bruno Haible  <bruno@clisp.org>
22510
22511         Fix comments.
22512         * lib/forkpty.c (rpl_forkpty): Fix comment.
22513         * lib/openpty.c (rpl_openpty): Likewise.
22514         Reported by Eric Blake.
22515
22516 2010-03-22  Eric Blake  <eblake@redhat.com>
22517
22518         gethostname: fix build on mingw
22519         * lib/unistd.in.h (includes): Work around fact that mingw
22520         <winsock2.h> re-includes <unistd.h>, by avoiding any
22521         redeclarations if we are being included by <winsock2.h>.
22522         Reported by Matthias Bolte.
22523
22524 2010-03-21  Bruno Haible  <bruno@clisp.org>
22525
22526         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22527         * lib/forkpty.c (forkpty): New replacement function, from glibc with
22528         modifications.
22529         * lib/pty.in.h (forkpty): Update declaration. Add comments.
22530         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
22531         provide the replacement.
22532         * modules/forkpty (Depends-on): Add openpty, login_tty.
22533         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
22534         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
22535         * doc/glibc-functions/forkpty.texi: More supported platforms.
22536         * config/srclist.txt: Add forkpty.c (commented).
22537
22538 2010-03-21  Bruno Haible  <bruno@clisp.org>
22539
22540         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
22541         (Makefile.am): Verify that PTY_LIB is defined.
22542
22543         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
22544
22545 2010-03-21  Bruno Haible  <bruno@clisp.org>
22546
22547         Tests for module 'login_tty'.
22548         * modules/login_tty-tests: New file.
22549         * tests/test-login_tty.c: New file.
22550
22551         New module 'login_tty'.
22552         * lib/login_tty.c: New file.
22553         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
22554         * modules/login_tty: New file.
22555         * doc/glibc-functions/login_tty.texi: Mention the new module.
22556
22557 2010-03-21  Bruno Haible  <bruno@clisp.org>
22558
22559         login_tty: Documentation.
22560         * doc/glibc-functions/login_tty.texi: New file.
22561         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
22562
22563 2010-03-21  Bruno Haible  <bruno@clisp.org>
22564
22565         pty: Consistent macro naming.
22566         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
22567         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
22568         * modules/pty (configure.ac): Update.
22569
22570 2010-03-21  Bruno Haible  <bruno@clisp.org>
22571
22572         Tests for openpty: Make stricter.
22573         * tests/test-openpty.c (main): Add test of canonical processing and
22574         erase.
22575         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
22576
22577         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22578         * lib/openpty.c (openpty): New replacement function.
22579         * lib/pty.in.h: Include <termios.h>.
22580         (openpty): Update declaration. Add comments.
22581         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
22582         is not declared, arrange to provide the replacement. Check for _getpty
22583         and posix_openpt.
22584         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
22585         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
22586         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
22587         * modules/pty-tests (test_pty_c___LDADD): New variable.
22588         * doc/glibc-functions/openpty.texi: More supported platforms.
22589
22590 2010-03-21  Bruno Haible  <bruno@clisp.org>
22591
22592         setenv: Tweaks.
22593         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
22594         the test program.
22595         * doc/posix-functions/setenv.texi: Update platforms list.
22596
22597 2010-03-21  Bruno Haible  <bruno@clisp.org>
22598
22599         New module 'unlockpt'.
22600         * lib/unlockpt.c: New file, from glibc with modifications.
22601         * m4/unlockpt.m4: New file.
22602         * modules/unlockpt: New file.
22603         * lib/stdlib.in.h (unlockpt): New declaration.
22604         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
22605         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
22606         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
22607         HAVE_UNLOCKPT.
22608         * doc/posix-functions/unlockpt.texi: Mention the new module.
22609         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
22610         * config/srclist.txt: Add unlockpt.c (commented).
22611
22612 2010-03-21  Jim Meyering  <meyering@redhat.com>
22613
22614         maint.mk: prohibit inclusion of "intprops.h" without use
22615         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
22616
22617 2010-03-21  Bruno Haible  <bruno@clisp.org>
22618
22619         New module 'grantpt'.
22620         * lib/grantpt.c: New file, from glibc with modifications.
22621         * m4/grantpt.m4: New file.
22622         * modules/grantpt: New file.
22623         * lib/stdlib.in.h (grantpt): New declaration.
22624         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
22625         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
22626         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
22627         HAVE_GRANTPT.
22628         * doc/posix-functions/grantpt.texi: Mention the new module.
22629         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
22630         * config/srclist.txt: Add grantpt.c (commented).
22631
22632 2010-03-21  Bruno Haible  <bruno@clisp.org>
22633
22634         New module 'pt_chown'.
22635         * lib/pt_chown.c: New file, from glibc with modifications.
22636         * lib/pty-private.h: New file, from glibc with modifications.
22637         * modules/pt_chown: New file.
22638         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
22639
22640 2010-03-21  Bruno Haible  <bruno@clisp.org>
22641
22642         Tests for module 'ptsname'.
22643         * modules/ptsname-tests: New file.
22644         * tests/test-ptsname.c: New file.
22645
22646         New module 'ptsname'.
22647         * lib/ptsname.c: New file, from glibc with modifications.
22648         * m4/ptsname.m4: New file.
22649         * modules/ptsname: New file.
22650         * lib/stdlib.in.h (ptsname): New declaration.
22651         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
22652         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
22653         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
22654         HAVE_PTSNAME.
22655         * doc/posix-functions/ptsname.texi: Mention the new module.
22656         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
22657         * config/srclist.txt: Add ptsname.c (commented).
22658
22659 2010-03-21  Bruno Haible  <bruno@clisp.org>
22660
22661         Tests for module 'ttyname_r'.
22662         * modules/ttyname_r-tests: New file.
22663         * tests/test-ttyname_r.c: New file.
22664
22665         New module 'ttyname_r'.
22666         * lib/ttyname_r.c: New file.
22667         * m4/ttyname_r.m4: New file.
22668         * modules/ttyname_r: New file.
22669         * lib/unistd.in.h (ttyname_r): New declaration.
22670         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
22671         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
22672         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
22673         HAVE_TTYNAME_R.
22674         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
22675         * doc/posix-functions/ttyname_r.texi: Mention the new module.
22676
22677 2010-03-20  Bruno Haible  <bruno@clisp.org>
22678
22679         signal: Undefine macro definitions in C++ mode.
22680         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
22681         sigfillset): Undefine macro definitions from the system header in C++
22682         mode.
22683         Reported by John W. Eaton <jwe@gnu.org>.
22684
22685 2010-03-20  Bruno Haible  <bruno@clisp.org>
22686
22687         Ensure no #include statements inside extern "C" { ... }.
22688         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
22689         contain #include statements.
22690         * lib/time.in.h: Likewise.
22691
22692 2010-03-20  Bruno Haible  <bruno@clisp.org>
22693
22694         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
22695         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
22696         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
22697         Reported by John W. Eaton <jwe@gnu.org>.
22698
22699 2010-03-20  Bruno Haible  <bruno@clisp.org>
22700
22701         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
22702         Reported by Jim Meyering.
22703
22704 2010-03-20  Bruno Haible  <bruno@clisp.org>
22705
22706         pipe: Set errno upon failure.
22707         * lib/pipe.h: Specify that when -1 is returned, errno is set.
22708         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
22709         errno value in error message.
22710
22711 2010-03-20  Bruno Haible  <bruno@clisp.org>
22712             Jim Meyering  <meyering@redhat.com>
22713
22714         lchown: Avoid "unused variable" warning.
22715         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
22716
22717 2010-03-20  Bruno Haible  <bruno@clisp.org>
22718
22719         Work around unlink() bug on MacOS X 10.5.6.
22720         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
22721         attempting to unlink a parent directory.
22722         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
22723         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
22724         activate for the replacement function.
22725         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
22726
22727 2010-03-20  Bruno Haible  <bruno@clisp.org>
22728
22729         Fix link errors on Solaris 8.
22730         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
22731         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
22732
22733 2010-03-19  Jim Meyering  <meyering@redhat.com>
22734
22735         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
22736         The _LIBC implementation of build_range_exp correctly honors the
22737         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
22738         However, the non-_LIBC implementation would ignore that syntax-bit
22739         flag and return REG_ERANGE unconditionally.
22740         This change makes it honor that flag.
22741         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
22742         Make two pointer parameters "const".
22743         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
22744         (parse_bracket_exp): Update caller.
22745
22746         regex.m4: correct the reversed range endpoint ([b-a]) test
22747         * m4/regex.m4: When requiring that [b-a] evoke failure,
22748         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
22749         test pass once again for x86-based systems.
22750
22751 2010-03-19  Bruno Haible  <bruno@clisp.org>
22752
22753         scandir: Fix link error on Solaris 8.
22754         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
22755         macros.
22756
22757 2010-03-19  Bruno Haible  <bruno@clisp.org>
22758
22759         getusershell: Fix documentation.
22760         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
22761         module.
22762         * doc/glibc-functions/setusershell.texi: Likewise.
22763
22764         getusershell: Provide declaration, missing on Solaris 9.
22765         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
22766         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
22767         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
22768         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
22769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22770         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
22771         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
22772         HAVE_GETUSERSHELL.
22773         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
22774
22775 2010-03-19  Bruno Haible  <bruno@clisp.org>
22776
22777         wctype: Provide iswblank function.
22778         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
22779         exists and is fine.
22780         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
22781         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
22782         * tests/test-wctype.c (main): Re-enable the iswblank tests.
22783         * doc/posix-functions/iswblank.texi: Update.
22784
22785 2010-03-19  Bruno Haible  <bruno@clisp.org>
22786
22787         Tests of module 'pty' in C++ mode.
22788         * modules/pty-tests: New file.
22789         * tests/test-pty-c++.cc: New file.
22790         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22791
22792 2010-03-19  Eric Blake  <eblake@redhat.com>
22793
22794         logb: fix documentation
22795         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
22796         1.5 declaration bug.
22797
22798         forkpty, openpty: prefer glibc's const-safe prototype
22799         * lib/forkpty.c (rpl_forkpty): New file.
22800         * lib/openpty.c (rpl_openpty): Likewise.
22801         * modules/forkpty (Files): Distribute it.
22802         * modules/openpty (Files): Likewise.
22803         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
22804         check...
22805         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
22806         replacement for for non-const BSD signature.
22807         * modules/pty (Makefile.am): Substitute witnesses.
22808         * lib/pty.in.h (forkpty, openpty): Declare replacements.
22809         * tests/test-forkpty.c: Update signature check.
22810         * tests/test-openpty.c: Likewise.
22811         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
22812         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22813
22814         forkpty, openpty: split functions into new modules
22815         * modules/pty (Makefile.am): Substitute new witnesses.
22816         (Libraries): Move library detection...
22817         * modules/forkpty: ...into new module.
22818         * modules/openpty: Another new module.
22819         * modules/pty-tests: Rename and split...
22820         * modules/forkpty-tests: ...to this...
22821         * modules/openpty-tests: ...and this.
22822         * tests/test-pty.c: Rename and split...
22823         * tests/test-forkpty.c: ...to this...
22824         * tests/test-openpty.c: ...and this.
22825         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
22826         (gl_PTY): Split library searching...
22827         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
22828         (gl_FORKPTY, gl_OPENPTY): New macros.
22829         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
22830         * NEWS: Mention the split.
22831         * MODULES.html.sh (Misc): Document the modules.
22832         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
22833         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22834
22835         pty: improve replacement header
22836         * lib/pty.in.h: New file.
22837         * modules/pty (Files): Ship it.
22838         (Makefile.am): Always build replacement.
22839         * m4/pty.m4: Rename...
22840         * m4/pty_h.m4: ...to this.
22841         (gl_PTY): Modernize setting of witness macros; update check of
22842         forkpty to take proper advantage of cache.
22843         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
22844
22845         getopt: avoid compiler warning
22846         * lib/getopt.c (attribute_hidden): Remove unused macro.
22847
22848 2010-03-18  Bruno Haible  <bruno@clisp.org>
22849
22850         Fix link errors on Solaris 8.
22851         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
22852         * modules/search-tests (test_search_c___LDADD): Likewise.
22853         * modules/signal-tests (test_signal_c___LDADD): Likewise.
22854         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
22855         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
22856         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
22857         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
22858         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
22859         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
22860
22861 2010-03-18  Bruno Haible  <bruno@clisp.org>
22862
22863         Fix bug introduced on 2010-03-14.
22864         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
22865         (gl_SPAWN_H): Require it.
22866         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
22867         Reported by Simon Josefsson.
22868
22869 2010-03-18  Bruno Haible  <bruno@clisp.org>
22870
22871         Fix typo introduced on 2009-12-31.
22872         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
22873         posix_spawn_file_actions_adddup2.
22874
22875 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
22876         and Eric Blake  <eblake@redhat.com>
22877
22878         test-vc-list-files-git: make more robust
22879         * tests/test-vc-list-files-git.sh: Unset problematic environment
22880         variables.  Chain commands together.
22881
22882 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
22883
22884         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
22885         `AC_CHECK_DECL' invocation.
22886
22887 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
22888
22889         * lib/inttostr.c (inttostr): Make sure the invocation of verify
22890         appears before executable statements. Suggested by Petr Sumbera
22891         <Petr.Sumbera@Sun.COM>.
22892
22893 2010-03-14  Bruno Haible  <bruno@clisp.org>
22894
22895         * tests/test-flock.c (test_exclusive): Comment out a test that causes
22896         portability problems. Instead use a simpler test.
22897         (main): Check that invalid arguments are rejected only on Linux.
22898
22899 2010-03-14  Bruno Haible  <bruno@clisp.org>
22900
22901         Fix bug introduced on 2009-12-31.
22902         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22903         gl_PREREQ_SYS_H_WINSOCK2 always.
22904         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22905         SYS_SOCKET_H variable.
22906         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22907         Update comments.
22908         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22909         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22910         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22911         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22912         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22913
22914 2010-03-14  Bruno Haible  <bruno@clisp.org>
22915
22916         Fix values returned by sinl, cosl.
22917         * lib/trigl.h: Add specification comments.
22918         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22919         that combines the values from the precomputed table with the values of
22920         the Chebyshev polynomials.
22921
22922 2010-03-14  Bruno Haible  <bruno@clisp.org>
22923
22924         Fix compilation error when modules 'posix_spawn[p]' are not used.
22925         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22926         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22927
22928 2010-03-14  Bruno Haible  <bruno@clisp.org>
22929
22930         Fix compilation error on mingw when module 'time_r' is not used.
22931         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22932         is 1.
22933         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22934         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22935         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22936         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22937
22938 2010-03-14  Bruno Haible  <bruno@clisp.org>
22939
22940         Fix compilation error with Sun C.
22941         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22942         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22943         instead of GCC specific ULONG_LONG_MAX.
22944         * lib/xstrtoll.c: Likewise.
22945         * lib/xstrtoull.c: Likewise.
22946
22947 2010-03-13  Bruno Haible  <bruno@clisp.org>
22948
22949         Allow the user to disable C++ code and tests.
22950         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22951         (gl_PROG_ANSI_CXX): Require it.
22952
22953 2010-03-13  Bruno Haible  <bruno@clisp.org>
22954
22955         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22956         cases.
22957
22958 2010-03-13  Bruno Haible  <bruno@clisp.org>
22959
22960         Test that gnulib does not break the standard C++ headers.
22961         * tests/test-locale-c++2.cc: New file.
22962         * modules/locale-tests (Files): Add it.
22963         (Makefile.am): Compile it for test-locale-c++.
22964         * tests/test-math-c++2.cc: New file.
22965         * modules/math-tests (Files): Add it.
22966         (Makefile.am): Compile it for test-math-c++.
22967         * tests/test-signal-c++2.cc: New file.
22968         * modules/signal-tests (Files): Add it.
22969         (Makefile.am): Compile it for test-signal-c++.
22970         * tests/test-stdio-c++2.cc: New file.
22971         * modules/stdio-tests (Files): Add it.
22972         (Makefile.am): Compile it for test-stdio-c++.
22973         * tests/test-stdlib-c++2.cc: New file.
22974         * modules/stdlib-tests (Files): Add it.
22975         (Makefile.am): Compile it for test-stdlib-c++.
22976         * tests/test-string-c++2.cc: New file.
22977         * modules/string-tests (Files): Add it.
22978         (Makefile.am): Compile it for test-string-c++.
22979         * tests/test-time-c++2.cc: New file.
22980         * modules/time-tests (Files): Add it.
22981         (Makefile.am): Compile it for test-time-c++.
22982         Reported by John W. Eaton <jwe@gnu.org>.
22983
22984 2010-03-13  Bruno Haible  <bruno@clisp.org>
22985
22986         * gnulib-tool (func_usage): Clarify which options are available for
22987         --create-testdir and --create-megatestdir.
22988
22989 2010-03-13  Bruno Haible  <bruno@clisp.org>
22990
22991         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22992         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22993         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22994         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22995         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22996         when appropriate.
22997         Reported by Jim Meyering.
22998
22999 2010-03-12  Simon Josefsson  <simon@josefsson.org>
23000
23001         * gnulib-tool (func_import): Explain origin of code.
23002
23003 2010-03-12  Bruno Haible  <bruno@clisp.org>
23004
23005         Fix problem with automake's definition of CXXLINK.
23006         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
23007         Reported by Simon Josefsson and Ludovic Courtès.
23008
23009 2010-03-12  Bruno Haible  <bruno@clisp.org>
23010
23011         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
23012         stable releases.
23013
23014 2010-03-11  Bruno Haible  <bruno@clisp.org>
23015
23016         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
23017         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
23018         whether the system provides one variant or multiple variants of the
23019         function.
23020         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
23021         C++ compilers.
23022         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
23023         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
23024         Reported by Jim Meyering.
23025
23026 2010-03-09  Simon Josefsson  <simon@josefsson.org>
23027
23028         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
23029
23030 2010-03-08  Bruno Haible  <bruno@clisp.org>
23031
23032         gnulib-tool: Add support for --libtool in --create-testdir.
23033         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
23034         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
23035
23036 2010-03-08  Eric Blake  <eblake@redhat.com>
23037
23038         gnulib-tool.texi: mention possibility of git submodule
23039         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
23040         submodules.
23041         * doc/.gitignore: Ignore another generated file.
23042
23043 2010-03-08  Karl Berry  <karl@gnu.org>
23044
23045         * doc/gnulib-tool.texi (VCS Issues): Mention third option
23046         of committing gnulib files while skipping others.
23047
23048 2010-03-07  Bruno Haible  <bruno@clisp.org>
23049
23050         Tests of module 'wctype' in C++ mode.
23051         * tests/test-wctype-c++.cc: New file.
23052         * modules/wctype-tests (Files): Add it and tests/signature.h.
23053         (Depends-on): Add ansi-c++-opt.
23054         (Makefile.am): Arrange to compile and run test-wctype-c++.
23055
23056         Tests of module 'wchar' in C++ mode.
23057         * tests/test-wchar-c++.cc: New file.
23058         * modules/wchar-tests (Files): Add it and tests/signature.h.
23059         (Depends-on): Add ansi-c++-opt.
23060         (Makefile.am): Arrange to compile and run test-wchar-c++.
23061         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
23062         gl_MODULE_INDICATOR.
23063
23064         Tests of module 'unistd' in C++ mode.
23065         * tests/test-unistd-c++.cc: New file.
23066         * modules/unistd-tests (Files): Add it and tests/signature.h.
23067         (Depends-on): Add ansi-c++-opt.
23068         (Makefile.am): Arrange to compile and run test-unistd-c++.
23069         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
23070         gl_MODULE_INDICATOR.
23071
23072         Tests of module 'time' in C++ mode.
23073         * tests/test-time-c++.cc: New file.
23074         * modules/time-tests (Files): Add it and tests/signature.h.
23075         (Depends-on): Add ansi-c++-opt.
23076         (Makefile.am): Arrange to compile and run test-time-c++.
23077         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23078
23079         Tests of module 'sys_time' in C++ mode.
23080         * tests/test-sys_time-c++.cc: New file.
23081         * modules/sys_time-tests (Files): Add it and tests/signature.h.
23082         (Depends-on): Add ansi-c++-opt.
23083         (Makefile.am): Arrange to compile and run test-sys_time-c++.
23084         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
23085         gl_MODULE_INDICATOR.
23086
23087         Tests of module 'sys_stat' in C++ mode.
23088         * tests/test-sys_stat-c++.cc: New file.
23089         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
23090         (Depends-on): Add ansi-c++-opt.
23091         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
23092         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
23093         gl_MODULE_INDICATOR.
23094
23095         Tests of module 'sys_socket' in C++ mode.
23096         * tests/test-sys_socket-c++.cc: New file.
23097         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
23098         (Depends-on): Add ansi-c++-opt.
23099         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
23100         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
23101         gl_MODULE_INDICATOR.
23102
23103         Tests of module 'sys_select' in C++ mode.
23104         * tests/test-sys_select-c++.cc: New file.
23105         * modules/sys_select-tests (Files): Add it and tests/signature.h.
23106         (Depends-on): Add ansi-c++-opt.
23107         (Makefile.am): Arrange to compile and run test-sys_select-c++.
23108         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
23109         gl_MODULE_INDICATOR.
23110
23111         Tests of module 'sys_ioctl' in C++ mode.
23112         * tests/test-sys_ioctl-c++.cc: New file.
23113         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
23114         (Depends-on): Add ansi-c++-opt.
23115         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
23116         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
23117         gl_MODULE_INDICATOR.
23118
23119         Tests of module 'string' in C++ mode.
23120         * tests/test-string-c++.cc: New file.
23121         * modules/string-tests (Files): Add it and tests/signature.h.
23122         (Depends-on): Add ansi-c++-opt.
23123         (Makefile.am): Arrange to compile and run test-string-c++.
23124         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
23125         gl_MODULE_INDICATOR.
23126
23127         Tests of module 'stdlib' in C++ mode.
23128         * tests/test-stdlib-c++.cc: New file.
23129         * modules/stdlib-tests (Files): Add it and tests/signature.h.
23130         (Depends-on): Add ansi-c++-opt.
23131         (Makefile.am): Arrange to compile and run test-stdlib-c++.
23132         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
23133         gl_MODULE_INDICATOR.
23134
23135         Tests of module 'stdio' in C++ mode.
23136         * tests/test-stdio-c++.cc: New file.
23137         * modules/stdio-tests (Files): Add it and tests/signature.h.
23138         (Depends-on): Add ansi-c++-opt.
23139         (Makefile.am): Arrange to compile and run test-stdio-c++.
23140         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
23141         gl_MODULE_INDICATOR.
23142
23143         Tests of module 'spawn' in C++ mode.
23144         * tests/test-spawn-c++.cc: New file.
23145         * modules/spawn-tests (Files): Add it and tests/signature.h.
23146         (Depends-on): Add ansi-c++-opt.
23147         (Makefile.am): Arrange to compile and run test-spawn-c++.
23148         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
23149         gl_MODULE_INDICATOR.
23150
23151         Tests of module 'signal' in C++ mode.
23152         * tests/test-signal-c++.cc: New file.
23153         * modules/signal-tests (Files): Add it and tests/signature.h.
23154         (Depends-on): Add ansi-c++-opt.
23155         (Makefile.am): Arrange to compile and run test-signal-c++.
23156         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
23157         gl_MODULE_INDICATOR.
23158
23159         Tests of module 'search' in C++ mode.
23160         * tests/test-search-c++.cc: New file.
23161         * modules/search-tests (Files): Add it and tests/signature.h.
23162         (Depends-on): Add ansi-c++-opt.
23163         (Makefile.am): Arrange to compile and run test-search-c++.
23164         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
23165         gl_MODULE_INDICATOR.
23166
23167         Tests of module 'math' in C++ mode.
23168         * tests/test-math-c++.cc: New file.
23169         * modules/math-tests (Files): Add it and tests/signature.h.
23170         (Depends-on): Add ansi-c++-opt.
23171         (Makefile.am): Arrange to compile and run test-math-c++.
23172         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23173
23174         Tests of module 'locale' in C++ mode.
23175         * tests/test-locale-c++.cc: New file.
23176         * modules/locale-tests (Files): Add it and tests/signature.h.
23177         (Depends-on): Add ansi-c++-opt.
23178         (Makefile.am): Arrange to compile and run test-locale-c++.
23179         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
23180         gl_MODULE_INDICATOR.
23181
23182         Tests of module 'langinfo' in C++ mode.
23183         * tests/test-langinfo-c++.cc: New file.
23184         * modules/langinfo-tests (Files): Add it and tests/signature.h.
23185         (Depends-on): Add ansi-c++-opt.
23186         (Makefile.am): Arrange to compile and run test-langinfo-c++.
23187         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
23188         gl_MODULE_INDICATOR.
23189
23190         Tests of module 'iconv-h' in C++ mode.
23191         * tests/test-iconv-h-c++.cc: New file.
23192         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
23193         (Depends-on): Add ansi-c++-opt.
23194         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
23195
23196         Tests of module 'glob' in C++ mode.
23197         * tests/test-glob-c++.cc: New file.
23198         * modules/glob-tests (Files): Add it.
23199         (Depends-on): Add ansi-c++-opt.
23200         (Makefile.am): Arrange to compile and run test-glob-c++.
23201
23202         Tests of module 'fcntl-h' in C++ mode.
23203         * tests/test-fcntl-h-c++.cc: New file.
23204         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
23205         (Depends-on): Add ansi-c++-opt.
23206         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
23207         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
23208         gl_MODULE_INDICATOR.
23209
23210         Tests of module 'dirent' in C++ mode.
23211         * tests/test-dirent-c++.cc: New file.
23212         * modules/dirent-tests (Files): Add it and tests/signature.h.
23213         (Depends-on): Add ansi-c++-opt.
23214         (Makefile.am): Arrange to compile and run test-dirent-c++.
23215         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
23216         gl_MODULE_INDICATOR.
23217
23218         New module 'ansi-c++-opt'.
23219         * modules/ansi-c++-opt: New file.
23220         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
23221
23222         Document C++ namespace mode.
23223         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
23224
23225         wctype: Avoid #define replacements in C++ mode.
23226         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
23227         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
23228         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
23229         In C++, define a namespaced alias symbol.
23230         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
23231         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
23232         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
23233         rule.
23234
23235         wchar: Avoid #define replacements in C++ mode.
23236         * lib/wchar.in.h: Include c++defs.h.
23237         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
23238         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
23239         symbol.
23240         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
23241         * modules/wchar (Depends-on): Add c++defs.
23242         (Makefile.am): Update wchar.h rule.
23243
23244         unistd: Avoid #define replacements in C++ mode.
23245         * lib/unistd.in.h: Include c++defs.h.
23246         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
23247         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
23248         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
23249         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
23250         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
23251         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
23252         symbol.
23253         (environ): Update.
23254         * modules/unistd (Depends-on): Add c++defs.
23255         (Makefile.am): Update unistd.h rule.
23256
23257         time: Avoid #define replacements in C++ mode.
23258         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
23259         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
23260         define a namespaced alias symbol.
23261         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
23262         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
23263         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
23264         * modules/time (Depends-on): Add c++defs, warn-on-use.
23265         (Makefile.am): Update time.h rule.
23266         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23267         * modules/nanosleep (configure.ac): Likewise.
23268         * modules/strptime (configure.ac): Likewise.
23269         * modules/timegm (configure.ac): Likewise.
23270
23271         sys_time: Avoid #define replacements in C++ mode.
23272         * lib/sys_time.in.h: Include c++defs.h.
23273         (gettimeofday): In C++, define a namespaced alias symbol.
23274         * modules/sys_time (Depends-on): Add c++defs.
23275         (Makefile.am): Update sys/time.h rule.
23276
23277         sys_stat: Avoid #define replacements in C++ mode.
23278         * lib/sys_stat.in.h: Include c++defs.h.
23279         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
23280         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
23281         namespaced alias symbol.
23282         In C++, define a namespaced alias symbol.
23283         * modules/sys_stat (Depends-on): Add c++defs.
23284         (Makefile.am): Update sys/stat.h rule.
23285
23286         sys_socket: Avoid #define replacements in C++ mode.
23287         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
23288         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
23289         definitions also when the system has a <sys/socket.h>.
23290         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
23291         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
23292         In C++, define a namespaced alias symbol.
23293         * modules/sys_socket (Depends-on): Add c++defs.
23294         (Makefile.am): Update sys/socket.h rule.
23295
23296         sys_select: Avoid #define replacements in C++ mode.
23297         * lib/sys_select.in.h: Include c++defs.h. Enable the function
23298         definitions also when the system has a <sys/select.h>.
23299         (select): In C++, define a namespaced alias symbol.
23300         * modules/sys_select (Depends-on): Add c++defs.
23301         (Makefile.am): Update sys/select.h rule.
23302
23303         sys_ioctl: Avoid #define replacements in C++ mode.
23304         * lib/sys_ioctl.in.h: Include c++defs.h.
23305         (ioctl): In C++, define a namespaced alias symbol.
23306         * modules/sys_ioctl (Depends-on): Add c++defs.
23307         (Makefile.am): Update sys/ioctl.h rule.
23308
23309         string: Avoid #define replacements in C++ mode.
23310         * lib/string.in.h: Include c++defs.h.
23311         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
23312         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23313         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23314         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
23315         strsignal, strverscmp): In C++, define a namespaced alias symbol.
23316         * modules/string (Depends-on): Add c++defs.
23317         (Makefile.am): Update string.h rule.
23318
23319         stdlib: Avoid #define replacements in C++ mode.
23320         * lib/stdlib.in.h: Include c++defs.h.
23321         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
23322         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
23323         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
23324         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
23325         symbol.
23326         * modules/stdlib (Depends-on): Add c++defs.
23327         (Makefile.am): Update stdlib.h rule.
23328
23329         stdio: Avoid #define replacements in C++ mode.
23330         * lib/stdio.in.h: Include c++defs.h.
23331         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
23332         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
23333         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
23334         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
23335         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
23336         namespaced alias symbol.
23337         * modules/stdio (Depends-on): Add c++defs.
23338         (Makefile.am): Update stdio.h rule.
23339
23340         spawn: Avoid #define replacements in C++ mode.
23341         * lib/spawn.in.h: Include c++defs.h.
23342         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23343         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23344         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23345         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23346         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23347         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23348         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23349         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23350         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23351         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23352         In C++, define a namespaced alias symbol.
23353         * modules/spawn (Depends-on): Add c++defs.
23354         (Makefile.am): Update spawn.h rule.
23355
23356         signal: Avoid #define replacements in C++ mode.
23357         * lib/signal.in.h: Include c++defs.h.
23358         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23359         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
23360         namespaced alias symbol.
23361         * modules/signal (Depends-on): Add c++defs.
23362         (Makefile.am): Update signal.h rule.
23363
23364         search: Avoid #define replacements in C++ mode.
23365         * lib/search.in.h: Include c++defs.h.
23366         (_gl_search_compar_fn, _gl_search_action_fn): New types.
23367         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
23368         symbol.
23369         * modules/search (Depends-on): Add c++defs.
23370         (Makefile.am): Update search.h rule.
23371
23372         math: Avoid #define replacements in C++ mode.
23373         * lib/math.in.h: Include c++defs.h.
23374         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
23375         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
23376         trunc, truncl): In C++, define a namespaced alias symbol.
23377         * modules/math (Depends-on): Add c++defs.
23378         (Makefile.am): Update math.h rule.
23379
23380         locale: Avoid #define replacements in C++ mode.
23381         * lib/locale.in.h: Include c++defs.h.
23382         (duplocale): In C++, define a namespaced alias symbol.
23383         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
23384         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
23385         * modules/locale (Depends-on): Add c++defs.
23386         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
23387
23388         langinfo: Avoid #define replacements in C++ mode.
23389         * lib/langinfo.in.h: Include c++defs.h.
23390         (nl_langinfo): In C++, define a namespaced alias symbol.
23391         * modules/langinfo (Depends-on): Add c++defs.
23392         (Makefile.am): Update langinfo.h rule.
23393
23394         iconv-h: Avoid #define replacements in C++ mode.
23395         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
23396         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
23397         symbol.
23398         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
23399         whenever iconv is present.
23400         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
23401         (Makefile.am): Update iconv.h rule.
23402
23403         glob: Avoid #define replacements in C++ mode.
23404         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
23405         (_gl_glob_errfunc_fn): New type.
23406         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
23407         symbol.
23408         * modules/glob (Depends-on): Add c++defs, warn-on-use.
23409         (Makefile.am): Update glob.h rule.
23410
23411         fcntl-h: Avoid #define replacements in C++ mode.
23412         * lib/fcntl.in.h: Include c++defs.h.
23413         (fcntl, open, openat): In C++, define a namespaced alias symbol.
23414         * modules/fcntl-h (Depends-on): Add c++defs.
23415         (Makefile.am): Update fcntl.h rule.
23416
23417         dirent: Avoid #define replacements in C++ mode.
23418         * lib/dirent.in.h: Include c++defs.h.
23419         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
23420         namespaced alias symbol.
23421         (dirfd): Update declaration.
23422         * modules/dirent (Depends-on): Add c++defs.
23423         (Makefile.am): Update dirent.h rule.
23424
23425         ctype: Make it usable in C++ code.
23426         * lib/ctype.in.h: Include c++defs.h.
23427         (isblank): Declare as extern "C".
23428         * modules/ctype (Depends-on): Add c++defs.
23429         (Makefile.am): Update ctype.h rule.
23430
23431         New module 'c++defs'.
23432         * modules/c++defs: New file.
23433         * build-aux/c++defs.h: New file.
23434         Reported by John W. Eaton <jwe@gnu.org>.
23435
23436 2010-03-07  Bruno Haible  <bruno@clisp.org>
23437
23438         logb: Provide missing declaration for Cygwin.
23439         * lib/math.in.h (logb): New declaration.
23440         * m4/logb.m4: New file.
23441         * modules/logb (Files): Add m4/logb.m4.
23442         (Depends-on): Add math.
23443         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
23444         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
23445         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
23446         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
23447         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
23448
23449 2010-03-07  Bruno Haible  <bruno@clisp.org>
23450
23451         Fix test-cond link error.
23452         * tests/test-cond.c: Include <stdio.h>.
23453
23454 2010-03-07  Bruno Haible  <bruno@clisp.org>
23455
23456         Fix test-dirent-safer link error.
23457         * modules/dirent-safer-tests (Makefile.am): Define
23458         test_dirent_safer_LDADD.
23459
23460 2010-03-07  Bruno Haible  <bruno@clisp.org>
23461
23462         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
23463         among default module list.
23464
23465 2010-03-07  Bruno Haible  <bruno@clisp.org>
23466
23467         Fix link error on platforms with GNU libiconv.
23468         * modules/unistr/u8-strcoll-tests (Makefile): Define
23469         test_u8_strcoll_LDADD.
23470         * modules/unistr/u16-strcoll-tests (Makefile): Define
23471         test_u16_strcoll_LDADD.
23472         * modules/unistr/u32-strcoll-tests (Makefile): Define
23473         test_u32_strcoll_LDADD.
23474
23475 2010-03-07  Bruno Haible  <bruno@clisp.org>
23476
23477         Use POSIX declarations for socket functions.
23478         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
23479         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
23480         rpl_sendto): Change declaration to match POSIX.
23481         * lib/connect.c (rpl_connect): Likewise.
23482         * lib/accept.c (rpl_accept): Likewise.
23483         * lib/bind.c (rpl_bind): Likewise.
23484         * lib/getpeername.c (rpl_getpeername): Likewise.
23485         * lib/getsockname.c (rpl_getsockname): Likewise.
23486         * lib/recv.c (rpl_recv): Likewise.
23487         * lib/send.c (rpl_send): Likewise.
23488         * lib/recvfrom.c (rpl_recvfrom): Likewise.
23489         * lib/sendto.c (rpl_sendto): Likewise.
23490
23491 2010-03-06  Bruno Haible  <bruno@clisp.org>
23492
23493         Clarify access, euidaccess, faccessat.
23494         * doc/posix-functions/faccessat.texi: Mention security problem under
23495         "Other problems", not "Portability problems".
23496         * doc/posix-functions/access.texi: Likewise. Mention a related security
23497         problem.
23498         * doc/glibc-functions/euidaccess.texi: Mention security problems.
23499         * lib/euidaccess.c: Add comments about platforms.
23500         * lib/unistd.in.h (access, euidaccess): Add warnings.
23501
23502 2010-03-07  Bruno Haible  <bruno@clisp.org>
23503
23504         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
23505         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
23506         (POSIX_SPAWN_SETSCHEDULER): Likewise.
23507         (POSIX_SPAWN_USEVFORK): Define in a way that works when
23508         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23509         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
23510         declare when POSIX_SPAWN_SETSCHEDULER is zero.
23511         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
23512         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
23513         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
23514         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
23515         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
23516         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
23517         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
23518         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
23519         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
23520         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
23521         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
23522         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
23523         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
23524         Likewise.
23525         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
23526         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
23527         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
23528         Likewise.
23529         * tests/test-spawn.c (main): Make it work when
23530         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23531
23532 2010-03-07  Bruno Haible  <bruno@clisp.org>
23533
23534         Fix incorrect Makefile.am generation in German locale.
23535         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23536         Execute sed command with character range in C locale.
23537
23538 2010-03-06  Bruno Haible  <bruno@clisp.org>
23539
23540         Tests for module 'iconv-h'.
23541         * modules/iconv-h-tests: New file.
23542         * tests/test-iconv-h.c: New file.
23543
23544         New module 'iconv-h'.
23545         * modules/iconv-h: New file.
23546         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
23547         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
23548         (configure.ac): Remove gl_ICONV_H.
23549         (Makefile.am): Remove rule for iconv.h.
23550
23551 2010-03-06  Bruno Haible  <bruno@clisp.org>
23552
23553         More consistent naming of *.m4 files.
23554         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
23555         * modules/wctype (Files): Update.
23556
23557         More consistent naming of *.m4 files.
23558         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
23559         * modules/wchar (Files): Update.
23560
23561 2010-03-06  Jim Meyering  <meyering@redhat.com>
23562
23563         euidaccess: relax license to LGPLv2+
23564         * modules/euidaccess (License): Relax to LGPLv2+.
23565
23566 2010-03-06  Bruno Haible  <bruno@clisp.org>
23567
23568         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
23569         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
23570         (Makefile.am): Augment lib_SOURCES instead.
23571
23572 2010-03-04  Jim Meyering  <meyering@redhat.com>
23573
23574         utime: remove obsolete module
23575         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
23576         unnecessary for years, and has been marked as obsolete for 10 months.
23577         * modules/utime: Remove file.
23578         * lib/utime.c: Remove file.
23579         * m4/utime.m4: Remove file.
23580         * m4/utimes-null.m4: Remove file.
23581         * doc/posix-functions/utime.texi (utime): Remove reference to
23582         the module.  Move the sole "fixed by gnulib" item into the
23583         "problems not fixed by Gnulib" list.
23584         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
23585
23586 2010-03-05  Simon Josefsson  <simon@josefsson.org>
23587
23588         * modules/exit (License): Relax license to LGPLv2+.
23589         (Status): Mark as obsolete.
23590         * NEWS: Mention deprecated 'exit' module.
23591         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
23592         of now obsolete 'exit'.
23593
23594 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23595
23596         fts-lgpl: remove unused module
23597         * modules/fts-lgpl: Remove.
23598         * MODULES.html.sh (func_all_modules): Adjust.
23599         * check-module (find_included_lib_files): Adjust.
23600         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
23601
23602 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
23603
23604         copy-acl: enhance Solaris ACL error handling
23605         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
23606         * lib/set-mode-acl.c (qset_acl): Likewise.
23607
23608 2010-03-02  Bruno Haible  <bruno@clisp.org>
23609
23610         spawn: Don't override the system defined values on FreeBSD 8.
23611         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
23612         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
23613         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
23614         if HAVE_POSIX_SPAWN is 1.
23615         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
23616
23617 2010-03-01  Bruno Haible  <bruno@clisp.org>
23618
23619         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
23620         regarding Automake.
23621
23622 2010-02-25  Bruno Haible  <bruno@clisp.org>
23623
23624         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
23625         * gnulib-tool: Define 'echo' as a function only before the ksh alias
23626         setting, not afterwards.
23627         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
23628
23629 2010-02-24  Eric Blake  <eblake@redhat.com>
23630
23631         bootstrap, git-version-gen: use timestamp
23632         * build-aux/git-version-gen (scriptversion): Force UTC.
23633         * build-aux/bootstrap (scriptversion): New variable.
23634
23635         bootstrap: allow older git
23636         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
23637         older than 1.6.4.  Requested by the libvirt project.
23638
23639 2010-02-23  Eric Blake  <eblake@redhat.com>
23640
23641         warn-on-use: work with old autoconf
23642         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
23643         AS_VAR semantics of autoconf 2.60.
23644         Reported by Bruno Haible.
23645
23646         bootstrap: improve some comments
23647         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
23648         clarification comments.
23649
23650         gettimeofday: provide correct function
23651         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
23652         when replacement is declared, otherwise provide gettimeofday.
23653         Reported by Michael Goffioul.
23654
23655 2010-02-23  Jim Meyering  <meyering@redhat.com>
23656
23657         lib-ignore: relax license to "unlimited", not LGPLv2+
23658         * modules/lib-ignore (License): Relax to "unlimited".
23659
23660 2010-02-23  Jim Meyering  <meyering@redhat.com>
23661
23662         lib-ignore: relax license to LGPLv2+
23663         * modules/lib-ignore (License): Relax to LGPLv2+.
23664
23665 2010-02-22  Eric Blake  <eblake@redhat.com>
23666
23667         lseek: avoid bash 3.2 broken pipe bug
23668         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
23669         warning from bash 3.2.
23670         Reported by Ben Pfaff, with analysis from Bruno Haible.
23671
23672         bootstrap: support non-FSF copyright holder
23673         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
23674         bootstrap.conf override of COPYRIGHT_HOLDER.
23675         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
23676
23677         bootstrap: interoperate with gettext 0.14.1
23678         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
23679
23680         bootstrap: allow for alternate submodule location
23681         * build-aux/bootstrap (gnulib_path): New variable; use instead of
23682         hardcoding submodule location.
23683         (gnulib_mk): Allow direct use of Makefile.am.
23684
23685         bootstrap: use GNULIB_SRCDIR to reduce disk usage
23686         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
23687         rather than reconfiguring where the submodule points.
23688
23689         gettimeofday: restore support for platforms that lack function
23690         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
23691         replacement if function is missing.
23692         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
23693         * modules/sys_time (Makefile.am): Substitute it.
23694         * lib/sys_time.in.h (gettimeofday): Check it.
23695         Reported by Michael Goffioul.
23696
23697 2010-02-21  Bruno Haible  <bruno@clisp.org>
23698
23699         * lib/stdio.in.h (obstack_printf): Fix typo.
23700
23701 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
23702
23703         vc-list-files: use bzr ls's -R option
23704         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
23705         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
23706
23707 2010-02-21  Jim Meyering  <meyering@redhat.com>
23708
23709         init.sh: fix EXEEXT shims to work also for names like test-prog
23710         * tests/init.sh: Re-exec a better shell, when needed.
23711         If the current shell lacks support for posix $(...), an init.sh-using
23712         test will now try to find a shell that supports that.  If EXEEXT is
23713         nonempty, we also require support for hyphen-in-alias-name and shell
23714         substitutions like ${var#glob}.  Failure to find such a shell results
23715         in a skipped test.
23716
23717 2010-02-21  Bruno Haible  <bruno@clisp.org>
23718
23719         Really work around around "broken pipe" error message from bash 3.2.
23720         * gnulib-tool (func_reset_sigpipe): Remove function.
23721         (echo): In bash 3.2, define to a function that uses printf.
23722         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
23723
23724 2010-02-20  Bruno Haible  <bruno@clisp.org>
23725
23726         Restore support for automake 1.9.6 with autoconf 2.61.
23727         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
23728         Reported by James Youngman <jay@gnu.org>.
23729
23730 2010-02-20  Bruno Haible  <bruno@clisp.org>
23731
23732         Improve *printf warning condition.
23733         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
23734         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
23735         and the function is overridden due to SIGPIPE emulation.
23736
23737 2010-02-20  Bruno Haible  <bruno@clisp.org>
23738
23739         * lib/stdio.in.h: Tweak comments.
23740
23741 2010-02-19  Bruno Haible  <bruno@clisp.org>
23742
23743         Make it easier to find modules. New gnulib-tool option '--find'.
23744         * gnulib-tool: New option --find.
23745         (func_usage): Document it.
23746         (func_sanitize_modulelist): New function, extracted from
23747         func_all_modules.
23748         (func_all_modules): Invoke it.
23749         * doc/gnulib-tool.texi (Which modules?): New node.
23750
23751 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
23752
23753         * lib/sys_select.in.h: Provide select replacement even if
23754         sys/select.h exists on a system, for Interix.
23755
23756 2010-02-18  Jim Meyering  <meyering@redhat.com>
23757
23758         init.sh: don't use $(...) just yet
23759         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
23760         to accommodate e.g., Solaris' /bin/sh.
23761
23762 2010-02-17  Bruno Haible  <bruno@clisp.org>
23763
23764         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
23765         Reported by Ludovic Courtès <ludo@gnu.org>.
23766
23767 2010-02-16  Simon Josefsson  <simon@josefsson.org>
23768
23769         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
23770         linking with -lintl.
23771
23772 2010-02-17  Simon Josefsson  <simon@josefsson.org>
23773
23774         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
23775         if not provided by the system's netdb.h.  Reported by
23776         ludo@gnu.org (Ludovic Courtès).
23777
23778 2010-02-15  Jim Meyering  <meyering@redhat.com>
23779
23780         init.sh: improve portability and efficiency
23781         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
23782         "dummy" in a for loop.
23783         Use '!', not '^' to select the complement of a character set used
23784         in a "case" statement.
23785         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
23786         Suggestions from Eric Blake.
23787
23788         init.sh: automatically accommodate programs with the .exe suffix
23789         Automatically arrange for an invocation of "prog" to execute the
23790         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
23791         may use the simpler "prog", yet still work when built on a system
23792         that requires specifying the added suffix.
23793         Do this by constructing a function named "prog" that invokes
23794         "prog.exe" for each .exe file in selected directories.
23795         * tests/init.sh (find_exe_basenames_): New function.
23796         (create_exe_shim_functions_): New function.
23797         (path_prepend_): Use it.
23798
23799         maint.mk: mark syntax-check sc_*.m rules as .PHONY
23800         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
23801         "make -t syntax-check" doesn't create a ton of sc_*.m files.
23802
23803 2010-02-14  Jim Meyering  <meyering@redhat.com>
23804
23805         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
23806         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
23807         (sc_prohibit_hash_pjw_without_use): New rule.
23808
23809         maint.mk: allow the default upload destination dir to be overridden
23810         * top/maint.mk (upload_dest_dir_): Define with a default that
23811         preserves the status quo.
23812         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
23813         Reported by Peter Simons.
23814
23815         maint.mk: prohibit inclusion of "hash.h" without_use
23816         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
23817
23818 2010-02-10  Jim Meyering  <meyering@redhat.com>
23819
23820         maint.mk: prohibit inclusion of "ignore-value.h" without_use
23821         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
23822
23823 2010-02-09  Eric Blake  <ebb9@byu.net>
23824         and Bruno Haible  <bruno@clisp.org>
23825
23826         obstack-printf-posix: ensure declaration
23827         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
23828         extracted from gl_FUNC_OBSTACK_PRINTF.
23829         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
23830         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23831         Likewise.
23832         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
23833         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
23834         0.
23835
23836 2010-02-08  Bruno Haible  <bruno@clisp.org>
23837
23838         gnulib-tool: Fix typo in 2010-02-07 commit.
23839         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
23840         Reported by Eric Blake.
23841
23842 2010-02-07  Bruno Haible  <bruno@clisp.org>
23843
23844         gnulib-tool: Fix up caching patches.
23845         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
23846         option --no-cache. Use associative arrays when supported by the shell.
23847         (sed_comments): New variable.
23848         (modcache): Renamed from do_cache.
23849         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
23850         abbreviate unnecessarily.
23851         (have_associative): New variable.
23852         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
23853         way also for ksh and zsh.
23854         (func_init_sed_convert_to_cache_statements): New function, extracted
23855         from func_cache_lookup_module. Add support for associative arrays.
23856         Don't set the c_MODULE_cached variable here. Ignore all lines before
23857         the first field header. Remove only the final newline, not all trailing
23858         newlines. Support empty fields correctly. Limit the use of 'eval' to
23859         assignments.
23860         (func_get_description, func_get_status, func_get_notice,
23861         func_get_applicability, func_get_filelist, func_get_dependencies,
23862         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
23863         func_get_automake_snippet, func_get_include_directive,
23864         func_get_link_directive, func_get_license, func_get_maintainer):
23865         Update documentation. List the unoptimized code first. Add support for
23866         associative arrays. Limit the use of 'eval' to assignments.
23867         (func_get_applicability): Undo stylistic pessimisations.
23868         (func_get_automake_snippet, func_get_include_directive): Reduce code
23869         duplication.
23870         (func_modules_transitive_closure, func_modules_add_dummy,
23871         func_modules_notice, func_modules_to_filelist, func_add_file,
23872         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
23873         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
23874         func_create_testdir, func_create_megatestdir): Update documentation.
23875
23876 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23877
23878         * gnulib-tool (func_cache_lookup_module): Store the module name
23879         belonging to the cache variable; error out if two different
23880         module names map to the same cache variable name.
23881
23882 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23883
23884         gnulib-tool: Make caching optional.
23885         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
23886         Update matching short versions of --no-changelog.
23887         (func_usage): Update.
23888         (sed_extract_cache_prog): Renamed from ...
23889         (sed_extract_prog): ... this; revert to old extraction script.
23890         (func_get_description, func_get_status)
23891         (func_get_notice, func_get_applicability, func_get_filelist)
23892         (func_get_dependencies, func_get_autoconf_early_snippet)
23893         (func_get_autoconf_snippet, func_get_automake_snippet)
23894         (func_get_include_directive, func_get_link_directive)
23895         (func_get_license, func_get_maintainer): If $do_cache is false,
23896         use old, non-caching extraction scripts.
23897         Suggestion by Bruno Haible.
23898
23899 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23900
23901         gnulib-tool: cache module metainformation.
23902         * gnulib-tool (sed_extract_prog): Match newline before each
23903         header, and rewrite header to a shell variable suffix.
23904         (func_cache_var, func_cache_lookup_module): New functions,
23905         to turn a module name into a cache variable prefix, and to
23906         look up and cache module metainformation.
23907         (func_get_description, func_get_status)
23908         (func_get_notice, func_get_applicability, func_get_filelist)
23909         (func_get_dependencies, func_get_autoconf_early_snippet)
23910         (func_get_autoconf_snippet, func_get_automake_snippet)
23911         (func_get_include_directive, func_get_link_directive)
23912         (func_get_license, func_get_maintainer): Use
23913         func_cache_lookup_module.
23914
23915 2010-02-07  Bruno Haible  <bruno@clisp.org>
23916
23917         fnctl: Fix missing dependency.
23918         * modules/fcntl (Depends-on): Add getdtablesize.
23919         Reported by John W. Eaton <jwe@gnu.org>.
23920
23921 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23922
23923         Argp: fix recognition of short alias options.
23924
23925         * lib/argp-parse.c (convert_options): Fix improper use of
23926         `|' between character values.
23927         * tests/test-argp.c (group1_option): New alias option
23928         --read (-r).
23929         (group1_parser): Special handling for 'r'.
23930         (test15): New test case.
23931         (test_fun): Add test15.
23932         * tests/test-argp-2.sh: Update expected --help and --usage
23933         outputs.
23934
23935 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23936
23937         * tests/test-argp.c: Fix indentation.
23938
23939 2010-02-04  Eric Blake  <ebb9@byu.net>
23940
23941         gettimeofday: expose type of second argument
23942         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23943         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23944         * tests/test-gettimeofday.c: Use it to silence warning.
23945         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23946         the issue.
23947
23948 2010-02-03  Jim Meyering  <meyering@redhat.com>
23949
23950         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23951         * lib/regcomp.c (TYPE_SIGNED): Define.
23952         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23953
23954         regcomp.c: avoid a new -Wshadow warning
23955         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23956
23957 2010-02-01  Jim Meyering  <meyering@redhat.com>
23958
23959         removing useless parentheses in cpp #define directives
23960         For motivation, see commit c0221df4, "define STREQ(a,b)
23961         consistently, removing useless parentheses"
23962         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23963         * lib/mountlist.c (MNT_IGNORE): Likewise.
23964         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23965
23966 2010-02-01  Eric Blake  <ebb9@byu.net>
23967
23968         sys_time: use link-warning
23969         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23970         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23971         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23972         * modules/sys_time (Depends-on): Add warn-on-use.
23973         (Makefile.am): Always build replacement.
23974         (configure.ac): Update substitutions.
23975         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23976         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23977         bother with SYS_TIME_H.
23978         * modules/gettimeofday (configure.ac): Declare indicator.
23979         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23980         in use.
23981
23982         closein-tests: silence compiler warning
23983         * tests/test-closein.c (main): Ignore fread result.
23984         * modules/closein-tests (Depends-on): Add ignore-value.
23985
23986         tests: silence warning about system return
23987         * tests/test-areadlink-with-size.c (main): Ignore system result.
23988         * tests/test-areadlink.c (main): Likewise.
23989         * tests/test-areadlinkat-with-size.c (main): Likewise.
23990         * tests/test-areadlinkat.c (main): Likewise.
23991         * tests/test-canonicalize-lgpl.c (main): Likewise.
23992         * tests/test-canonicalize.c (main): Likewise.
23993         * tests/test-chown.c (main): Likewise.
23994         * tests/test-fchownat.c (main): Likewise.
23995         * tests/test-fdutimensat.c (main): Likewise.
23996         * tests/test-fstatat.c (main): Likewise.
23997         * tests/test-futimens.c (main): Likewise.
23998         * tests/test-lchown.c (main): Likewise.
23999         * tests/test-link.c (main): Likewise.
24000         * tests/test-linkat.c (main): Likewise.
24001         * tests/test-lstat.c (main): Likewise.
24002         * tests/test-mkdir.c (main): Likewise.
24003         * tests/test-mkdirat.c (main): Likewise.
24004         * tests/test-mkfifo.c (main): Likewise.
24005         * tests/test-mkfifoat.c (main): Likewise.
24006         * tests/test-mknod.c (main): Likewise.
24007         * tests/test-readlink.c (main): Likewise.
24008         * tests/test-remove.c (main): Likewise.
24009         * tests/test-rename.c (main): Likewise.
24010         * tests/test-renameat.c (main): Likewise.
24011         * tests/test-rmdir.c (main): Likewise.
24012         * tests/test-symlink.c (main): Likewise.
24013         * tests/test-symlinkat.c (main): Likewise.
24014         * tests/test-unlink.c (main): Likewise.
24015         * tests/test-unlinkat.c (main): Likewise.
24016         * tests/test-utimens.c (main): Likewise.
24017         * tests/test-utimensat.c (main): Likewise.
24018         * modules/areadlink-tests (Depends-on): Add ignore-value.
24019         * modules/areadlink-with-size-tests (Depends-on): Likewise.
24020         * modules/areadlinkat-tests (Depends-on): Likewise.
24021         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
24022         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24023         * modules/canonicalize-tests (Depends-on): Likewise.
24024         * modules/chown-tests (Depends-on): Likewise.
24025         * modules/fdutimensat-tests (Depends-on): Likewise.
24026         * modules/futimens-tests (Depends-on): Likewise.
24027         * modules/lchown-tests (Depends-on): Likewise.
24028         * modules/link-tests (Depends-on): Likewise.
24029         * modules/linkat-tests (Depends-on): Likewise.
24030         * modules/lstat-tests (Depends-on): Likewise.
24031         * modules/mkdir-tests (Depends-on): Likewise.
24032         * modules/mkfifo-tests (Depends-on): Likewise.
24033         * modules/mkfifoat-tests (Depends-on): Likewise.
24034         * modules/mknod-tests (Depends-on): Likewise.
24035         * modules/openat-tests (Depends-on): Likewise.
24036         * modules/readlink-tests (Depends-on): Likewise.
24037         * modules/remove-tests (Depends-on): Likewise.
24038         * modules/rename-tests (Depends-on): Likewise.
24039         * modules/renameat-tests (Depends-on): Likewise.
24040         * modules/rmdir-tests (Depends-on): Likewise.
24041         * modules/symlink-tests (Depends-on): Likewise.
24042         * modules/symlinkat-tests (Depends-on): Likewise.
24043         * modules/unlink-tests (Depends-on): Likewise.
24044         * modules/utimens-tests (Depends-on): Likewise.
24045         * modules/utimensat-tests (Depends-on): Likewise.
24046
24047 2010-01-31  Bruno Haible  <bruno@clisp.org>
24048
24049         Perform the same test for many <math.h> functions.
24050         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
24051         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
24052         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
24053         of gl_MATHFUNC.
24054         * modules/acos (configure.ac): Likewise.
24055         * modules/asin (configure.ac): Likewise.
24056         * modules/atan (configure.ac): Likewise.
24057         * modules/atan2 (configure.ac): Likewise.
24058         * modules/cbrt (configure.ac): Likewise.
24059         * modules/copysign (configure.ac): Likewise.
24060         * modules/cos (configure.ac): Likewise.
24061         * modules/cosh (configure.ac): Likewise.
24062         * modules/erf (configure.ac): Likewise.
24063         * modules/erfc (configure.ac): Likewise.
24064         * modules/exp (configure.ac): Likewise.
24065         * modules/fmod (configure.ac): Likewise.
24066         * modules/hypot (configure.ac): Likewise.
24067         * modules/j0 (configure.ac): Likewise.
24068         * modules/j1 (configure.ac): Likewise.
24069         * modules/jn (configure.ac): Likewise.
24070         * modules/lgamma (configure.ac): Likewise.
24071         * modules/log (configure.ac): Likewise.
24072         * modules/log10 (configure.ac): Likewise.
24073         * modules/log1p (configure.ac): Likewise.
24074         * modules/pow (configure.ac): Likewise.
24075         * modules/remainder (configure.ac): Likewise.
24076         * modules/sin (configure.ac): Likewise.
24077         * modules/sinh (configure.ac): Likewise.
24078         * modules/tan (configure.ac): Likewise.
24079         * modules/tanh (configure.ac): Likewise.
24080         * modules/y0 (configure.ac): Likewise.
24081         * modules/y1 (configure.ac): Likewise.
24082         * modules/yn (configure.ac): Likewise.
24083         Suggested by Paolo Bonzini.
24084
24085 2010-01-31  Bruno Haible  <bruno@clisp.org>
24086
24087         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
24088
24089 2010-01-31  Bruno Haible  <bruno@clisp.org>
24090
24091         Work around getdelim() bug on FreeBSD 8.0.
24092         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
24093         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
24094         not work.
24095         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
24096         is 1.
24097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
24098         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
24099         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
24100         a non-zero size.
24101         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
24102
24103 2010-01-31  Bruno Haible  <bruno@clisp.org>
24104
24105         Work around getline() bug on FreeBSD 8.0.
24106         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
24107         and a non-zero size.
24108         * tests/test-getline.c (main): Likewise.
24109         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
24110         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
24111
24112 2010-01-28  Eric Blake  <ebb9@byu.net>
24113
24114         regex: fix build failure
24115         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
24116         platforms.
24117
24118 2010-01-28  Jim Meyering  <meyering@redhat.com>
24119
24120         regex: do not ignore memory allocation failure
24121         * lib/regex_internal.c (create_cd_newstate): Detect
24122         re_node_set_init_copy failure.   Extracted from glibc commit
24123         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24124
24125         regex: sync more white-space changes from libc
24126         * lib/regex_internal.c: White-space only changes.
24127         * lib/regexec.c: Likewise.
24128
24129         regex: add many uses of __attribute_warn_unused_result__
24130         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
24131         * lib/regexec.c: Likewise.
24132         Extracted from a messy glibc commit.
24133
24134         regcomp.c: spelling and merge-artifact from glibc
24135         * lib/regcomp.c: Merge remainder of glibc's
24136         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24137
24138         regcomp.c: sync white-space changes from glibc
24139         * lib/regcomp.c: Merge to accommodate white space
24140         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24141
24142         regcomp.c: do not ignore internal return values
24143         * lib/regcomp.c: Do not ignore internal return values.
24144         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
24145         but without its white-space changes and spelling fixes.
24146
24147         regex_internal.h: define __attribute_warn_unused_result__
24148         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
24149
24150         maint: add a syntax-check rule to check for vulnerable Makefile.in
24151         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
24152
24153 2010-01-27  Jim Meyering  <meyering@redhat.com>
24154
24155         ncftpput-ftp: clean up spaces
24156         * build-aux/ncftpput-ftp: Make Copyright line consistent.
24157         Remove trailing blanks.
24158
24159 2010-01-27  Simon Josefsson  <simon@josefsson.org>
24160
24161         * build-aux/git-version-gen: Fix copyright statement.
24162         * build-aux/gnupload: Likewise.
24163         * tests/test-arcfour.c: Likewise.
24164         * tests/test-arctwo.c: Likewise.
24165         * tests/test-count-one-bits.c: Likewise.
24166         * tests/test-crc.c: Likewise.
24167         * tests/test-des.c: Likewise.
24168         * tests/test-gc-arcfour.c: Likewise.
24169         * tests/test-gc-arctwo.c: Likewise.
24170         * tests/test-gc-des.c: Likewise.
24171         * tests/test-gc-hmac-md5.c: Likewise.
24172         * tests/test-gc-hmac-sha1.c: Likewise.
24173         * tests/test-gc-md2.c: Likewise.
24174         * tests/test-gc-md4.c: Likewise.
24175         * tests/test-gc-md5.c: Likewise.
24176         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24177         * tests/test-gc-rijndael.c: Likewise.
24178         * tests/test-gc-sha1.c: Likewise.
24179         * tests/test-gc.c: Likewise.
24180         * tests/test-gethostname.c: Likewise.
24181         * tests/test-gettimeofday.c: Likewise.
24182         * tests/test-hash.c: Likewise.
24183         * tests/test-hmac-md5.c: Likewise.
24184         * tests/test-hmac-sha1.c: Likewise.
24185         * tests/test-md2.c: Likewise.
24186         * tests/test-md4.c: Likewise.
24187         * tests/test-md5.c: Likewise.
24188         * tests/test-memchr.c: Likewise.
24189         * tests/test-memchr2.c: Likewise.
24190         * tests/test-memcmp.c: Likewise.
24191         * tests/test-memmem.c: Likewise.
24192         * tests/test-memrchr.c: Likewise.
24193         * tests/test-rawmemchr.c: Likewise.
24194         * tests/test-read-file.c: Likewise.
24195         * tests/test-rijndael.c: Likewise.
24196         * tests/test-sockets.c: Likewise.
24197         * tests/test-strchrnul.c: Likewise.
24198         * tests/test-strstr.c: Likewise.
24199         * tests/test-strtod.c: Likewise.
24200         * build-aux/ncftpput-ftp: Likewise.
24201
24202 2010-01-26  Eric Blake  <ebb9@byu.net>
24203
24204         ignore-value: update recommended header name
24205         * modules/ignore-value (Include): Only use <> for headers that
24206         exist in glibc.
24207
24208 2010-01-26  Jim Meyering  <meyering@redhat.com>
24209
24210         test-userspec.c: avoid compiler warnings
24211         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
24212         and "initialization discards qualifiers..." warnings.
24213         Put the first "uid" in its own scope, and make char* members "const".
24214
24215 2010-01-25  Bruno Haible  <bruno@clisp.org>
24216
24217         gnulib-tool: Make warning diagnostics consistent.
24218         * gnulib-tool (func_warning): New function.
24219         Use it everywhere where gnulib-tool produces output to stderr and it is
24220         not a fatal error.
24221
24222 2010-01-25  Bruno Haible  <bruno@clisp.org>
24223
24224         Fix test dependencies.
24225         * modules/xstrtol-tests (Depends-on): Add inttypes.
24226         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
24227
24228 2010-01-25 Pádraig Brady <P@draigBrady.com>
24229
24230         syntax-check: detect incorrect boolean macro values in config.h
24231         * modules/maintainer-makefile (configure.ac): Parameterize the location
24232         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
24233         The logic is from Eric Blake and the location indicated by Jim Meyering.
24234         Note the more natural CONFIG_HEADER name is prohibited by automake
24235         for backwards compatibility reasons.
24236         * top/maint.mk (sc_Wundef_boolean): New rule.
24237
24238 2010-01-25  Jim Meyering  <meyering@redhat.com>
24239
24240         bootstrap: detect MacOS 10.6's shasum, too
24241         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
24242         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
24243
24244 2010-01-23  Jim Meyering  <meyering@redhat.com>
24245
24246         xstrtoll: new module
24247         * modules/xstrtoll: New file.
24248         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
24249         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
24250         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
24251         ./configure fails if you use this module and lack "long long".
24252         * modules/xstrtoll-tests: New module.
24253         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
24254         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
24255         new init.sh-based test framework.
24256
24257 2010-01-24  Bruno Haible  <bruno@clisp.org>
24258
24259         Tests for module 'yn'.
24260         * modules/yn-tests: New file.
24261         * tests/test-yn.c: New file.
24262
24263         Tests for module 'y1'.
24264         * modules/y1-tests: New file.
24265         * tests/test-y1.c: New file.
24266
24267         Tests for module 'y0'.
24268         * modules/y0-tests: New file.
24269         * tests/test-y0.c: New file.
24270
24271         Tests for module 'tanh'.
24272         * modules/tanh-tests: New file.
24273         * tests/test-tanh.c: New file.
24274
24275         Tests for module 'tan'.
24276         * modules/tan-tests: New file.
24277         * tests/test-tan.c: New file.
24278
24279         Tests for module 'sqrt'.
24280         * modules/sqrt-tests: New file.
24281         * tests/test-sqrt.c: New file.
24282
24283         Tests for module 'sinh'.
24284         * modules/sinh-tests: New file.
24285         * tests/test-sinh.c: New file.
24286
24287         Tests for module 'sin'.
24288         * modules/sin-tests: New file.
24289         * tests/test-sin.c: New file.
24290
24291         Tests for module 'rint'.
24292         * modules/rint-tests: New file.
24293         * tests/test-rint.c: New file.
24294
24295         Tests for module 'remainder'.
24296         * modules/remainder-tests: New file.
24297         * tests/test-remainder.c: New file.
24298
24299         Tests for module 'pow'.
24300         * modules/pow-tests: New file.
24301         * tests/test-pow.c: New file.
24302
24303         Tests for module 'nextafter'.
24304         * modules/nextafter-tests: New file.
24305         * tests/test-nextafter.c: New file.
24306
24307         Tests for module 'modf'.
24308         * modules/modf-tests: New file.
24309         * tests/test-modf.c: New file.
24310
24311         Tests for module 'logb'.
24312         * modules/logb-tests: New file.
24313         * tests/test-logb.c: New file.
24314
24315         Tests for module 'log1p'.
24316         * modules/log1p-tests: New file.
24317         * tests/test-log1p.c: New file.
24318
24319         Tests for module 'log10'.
24320         * modules/log10-tests: New file.
24321         * tests/test-log10.c: New file.
24322
24323         Tests for module 'log'.
24324         * modules/log-tests: New file.
24325         * tests/test-log.c: New file.
24326
24327         Tests for module 'lgamma'.
24328         * modules/lgamma-tests: New file.
24329         * tests/test-lgamma.c: New file.
24330
24331         Tests for module 'ldexp'.
24332         * modules/ldexp-tests: New file.
24333         * tests/test-ldexp.c: New file.
24334
24335         Tests for module 'jn'.
24336         * modules/jn-tests: New file.
24337         * tests/test-jn.c: New file.
24338
24339         Tests for module 'j1'.
24340         * modules/j1-tests: New file.
24341         * tests/test-j1.c: New file.
24342
24343         Tests for module 'j0'.
24344         * modules/j0-tests: New file.
24345         * tests/test-j0.c: New file.
24346
24347         Tests for module 'hypot'.
24348         * modules/hypot-tests: New file.
24349         * tests/test-hypot.c: New file.
24350
24351         Tests for module 'fmod'.
24352         * modules/fmod-tests: New file.
24353         * tests/test-fmod.c: New file.
24354
24355         Tests for module 'fabs'.
24356         * modules/fabs-tests: New file.
24357         * tests/test-fabs.c: New file.
24358
24359         Tests for module 'exp'.
24360         * modules/exp-tests: New file.
24361         * tests/test-exp.c: New file.
24362
24363         Tests for module 'erfc'.
24364         * modules/erfc-tests: New file.
24365         * tests/test-erfc.c: New file.
24366
24367         Tests for module 'erf'.
24368         * modules/erf-tests: New file.
24369         * tests/test-erf.c: New file.
24370
24371         Tests for module 'cosh'.
24372         * modules/cosh-tests: New file.
24373         * tests/test-cosh.c: New file.
24374
24375         Tests for module 'cos'.
24376         * modules/cos-tests: New file.
24377         * tests/test-cos.c: New file.
24378
24379         Tests for module 'copysign'.
24380         * modules/copysign-tests: New file.
24381         * tests/test-copysign.c: New file.
24382
24383         Tests for module 'cbrt'.
24384         * modules/cbrt-tests: New file.
24385         * tests/test-cbrt.c: New file.
24386
24387         Tests for module 'atan2'.
24388         * modules/atan2-tests: New file.
24389         * tests/test-atan2.c: New file.
24390
24391         Tests for module 'atan'.
24392         * modules/atan-tests: New file.
24393         * tests/test-atan.c: New file.
24394
24395         Tests for module 'asin'.
24396         * modules/asin-tests: New file.
24397         * tests/test-asin.c: New file.
24398
24399         Tests for module 'acos'.
24400         * modules/acos-tests: New file.
24401         * tests/test-acos.c: New file.
24402
24403 2010-01-24  Bruno Haible  <bruno@clisp.org>
24404
24405         Fix tests for common <math.h> functions.
24406         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
24407         code snippet that references the function pointer, rather than merely
24408         calling the function. Substitute the FUNC_LIBM variable.
24409         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
24410         * modules/acos (configure.ac): Likewise.
24411         * modules/asin (configure.ac): Likewise.
24412         * modules/atan (configure.ac): Likewise.
24413         * modules/atan2 (configure.ac): Likewise.
24414         * modules/cbrt (configure.ac): Likewise.
24415         * modules/copysign (configure.ac): Likewise.
24416         * modules/cos (configure.ac): Likewise.
24417         * modules/cosh (configure.ac): Likewise.
24418         * modules/erf (configure.ac): Likewise.
24419         * modules/erfc (configure.ac): Likewise.
24420         * modules/exp (configure.ac): Likewise.
24421         * modules/fabs (configure.ac): Likewise.
24422         * modules/fmod (configure.ac): Likewise.
24423         * modules/hypot (configure.ac): Likewise.
24424         * modules/j0 (configure.ac): Likewise.
24425         * modules/j1 (configure.ac): Likewise.
24426         * modules/jn (configure.ac): Likewise.
24427         * modules/ldexp (configure.ac): Likewise.
24428         * modules/lgamma (configure.ac): Likewise.
24429         * modules/log (configure.ac): Likewise.
24430         * modules/log10 (configure.ac): Likewise.
24431         * modules/log1p (configure.ac): Likewise.
24432         * modules/logb (configure.ac): Likewise.
24433         * modules/modf (configure.ac): Likewise.
24434         * modules/nextafter (configure.ac): Likewise.
24435         * modules/pow (configure.ac): Likewise.
24436         * modules/remainder (configure.ac): Likewise.
24437         * modules/rint (configure.ac): Likewise.
24438         * modules/sin (configure.ac): Likewise.
24439         * modules/sinh (configure.ac): Likewise.
24440         * modules/tan (configure.ac): Likewise.
24441         * modules/tanh (configure.ac): Likewise.
24442         * modules/y0 (configure.ac): Likewise.
24443         * modules/y1 (configure.ac): Likewise.
24444         * modules/yn (configure.ac): Likewise.
24445
24446 2010-01-24  Bruno Haible  <bruno@clisp.org>
24447
24448         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
24449         * tests/test-acosl.c (x): New variable.
24450         (main): Store argument in x and fetch it from x.
24451         * tests/test-asinl.c (x): New variable.
24452         (main): Store argument in x and fetch it from x.
24453         * tests/test-atanl.c (x): New variable.
24454         (main): Store argument in x and fetch it from x.
24455         * tests/test-cosl.c (x): New variable.
24456         (main): Store argument in x and fetch it from x.
24457         * tests/test-expl.c (x): New variable.
24458         (main): Store argument in x and fetch it from x.
24459         * tests/test-logl.c (x): New variable.
24460         (main): Store argument in x and fetch it from x.
24461         * tests/test-sinl.c (x): New variable.
24462         (main): Store argument in x and fetch it from x.
24463         * tests/test-sqrtl.c (x): New variable.
24464         (main): Store argument in x and fetch it from x.
24465         * tests/test-tanl.c (x): New variable.
24466         (main): Store argument in x and fetch it from x.
24467
24468 2010-01-24  Bruno Haible  <bruno@clisp.org>
24469
24470         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
24471         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
24472         assignments to the initial TESTS_ENVIRONMENT.
24473         * doc/gnulib.texi (Unit test modules): Document it.
24474         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
24475         TESTS_ENVIRONMENT.
24476         * modules/btowc-tests (Makefile.am): Likewise.
24477         * modules/c-stack-tests (Makefile.am): Likewise.
24478         * modules/c-strcase-tests (Makefile.am): Likewise.
24479         * modules/copy-file-tests (Makefile.am): Likewise.
24480         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
24481         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
24482         * modules/mbrtowc-tests (Makefile.am): Likewise.
24483         * modules/mbscasecmp-tests (Makefile.am): Likewise.
24484         * modules/mbscasestr-tests (Makefile.am): Likewise.
24485         * modules/mbschr-tests (Makefile.am): Likewise.
24486         * modules/mbscspn-tests (Makefile.am): Likewise.
24487         * modules/mbsinit-tests (Makefile.am): Likewise.
24488         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
24489         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
24490         * modules/mbspbrk-tests (Makefile.am): Likewise.
24491         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
24492         * modules/mbsrchr-tests (Makefile.am): Likewise.
24493         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
24494         * modules/mbsspn-tests (Makefile.am): Likewise.
24495         * modules/mbsstr-tests (Makefile.am): Likewise.
24496         * modules/nl_langinfo-tests (Makefile.am): Likewise.
24497         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
24498         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
24499         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
24500         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
24501         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
24502         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
24503         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
24504         * modules/wcrtomb-tests (Makefile.am): Likewise.
24505         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
24506         * modules/wcsrtombs-tests (Makefile.am): Likewise.
24507         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
24508         assignments from TESTS_ENVIRONMENT.
24509         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
24510         augmentation.
24511         * modules/argp-version-etc-tests (Makefile.am): Likewise.
24512         * modules/atexit-tests (Makefile.am): Likewise.
24513         * modules/binary-io-tests (Makefile.am): Likewise.
24514         * modules/closein-tests (Makefile.am): Likewise.
24515         * modules/dprintf-posix-tests (Makefile.am): Likewise.
24516         * modules/exclude-tests (Makefile.am): Likewise.
24517         * modules/fflush-tests (Makefile.am): Likewise.
24518         * modules/fpending-tests (Makefile.am): Likewise.
24519         * modules/fprintf-posix-tests (Makefile.am): Likewise.
24520         * modules/freadahead-tests (Makefile.am): Likewise.
24521         * modules/freadptr-tests (Makefile.am): Likewise.
24522         * modules/freadseek-tests (Makefile.am): Likewise.
24523         * modules/fseek-tests (Makefile.am): Likewise.
24524         * modules/fseeko-tests (Makefile.am): Likewise.
24525         * modules/ftell-tests (Makefile.am): Likewise.
24526         * modules/ftello-tests (Makefile.am): Likewise.
24527         * modules/idpriv-drop-tests (Makefile.am): Likewise.
24528         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
24529         * modules/lseek-tests (Makefile.am): Likewise.
24530         * modules/parse-duration-tests (Makefile.am): Likewise.
24531         * modules/perror-tests (Makefile.am): Likewise.
24532         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
24533         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
24534         * modules/pipe-tests (Makefile.am): Likewise.
24535         * modules/pread-tests (Makefile.am): Likewise.
24536         * modules/printf-posix-tests (Makefile.am): Likewise.
24537         * modules/select-tests (Makefile.am): Likewise.
24538         * modules/sigpipe-tests (Makefile.am): Likewise.
24539         * modules/tsearch-tests (Makefile.am): Likewise.
24540         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
24541         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
24542         * modules/uniname/uniname-tests (Makefile.am): Likewise.
24543         * modules/uniwidth/width-tests (Makefile.am): Likewise.
24544         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
24545         * modules/version-etc-tests (Makefile.am): Likewise.
24546         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
24547         * modules/vprintf-posix-tests (Makefile.am): Likewise.
24548         * modules/xalloc-die-tests (Makefile.am): Likewise.
24549         * modules/xprintf-posix-tests (Makefile.am): Likewise.
24550         * modules/xstrtoimax-tests (Makefile.am): Likewise.
24551         * modules/xstrtol-tests (Makefile.am): Likewise.
24552         * modules/xstrtoumax-tests (Makefile.am): Likewise.
24553         * modules/yesno-tests (Makefile.am): Likewise.
24554         Suggested by Jim Meyering.
24555
24556 2010-01-24  Bruno Haible  <bruno@clisp.org>
24557
24558         More documentation.
24559         * doc/gnulib.texi (Writing modules): New chapter.
24560         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
24561         the new chapter.
24562
24563 2010-01-24  Jim Meyering  <meyering@redhat.com>
24564
24565         maint.mk: do not prepend "./" after filtering
24566         * top/maint.mk (_prepend_srcdir_prefix): New variable
24567         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
24568         "./" when $(srcdir) is ".".
24569
24570         define STREQ(a,b) consistently, removing useless parentheses
24571         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
24572         since the only risk is that "a" or "b" contains an unparenthesized
24573         comma, but if either did that, STREQ would have 3 or more arguments.
24574         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
24575         * lib/fts.c (STREQ): Remove unnecessary parentheses.
24576         * lib/hash-triple.c (STREQ): Likewise.
24577         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
24578         * lib/getugroups.c (STREQ): Likewise.
24579
24580 2010-01-23  Jim Meyering  <meyering@redhat.com>
24581
24582         maint.mk: fix syntax-check in a non-srcdir build directory
24583         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
24584         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
24585
24586 2010-01-22  Jim Meyering  <meyering@redhat.com>
24587
24588         userspec: add unit tests
24589         * tests/test-userspec.c: New file.
24590         * modules/userspec-tests: Likewise.
24591
24592 2010-01-21  Jim Meyering  <meyering@redhat.com>
24593
24594         maint.mk: handle source file names containing "." robustly
24595         * top/maint.mk (_dot_escaped_srcdir): Define.
24596         (VC_LIST): Use it in LHS of sed substitution.
24597
24598 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
24599
24600         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
24601         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
24602         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
24603         from a non-srcdir build.
24604
24605 2010-01-20  Eric Blake  <ebb9@byu.net>
24606
24607         warn-on-use: use instead of link-warning
24608         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
24609         * modules/unistd (Depends-on, Makefile.am): Likewise.
24610         * modules/arpa_inet (Depends-on): Replace link-warning with
24611         warn-on-use.
24612         (Makefile.am): Update rules accordingly.
24613         * modules/ctype (Depends-on, Makefile.am): Likewise.
24614         * modules/dirent (Depends-on, Makefile.am): Likewise.
24615         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
24616         * modules/inttypes (Depends-on, Makefile.am): Likewise.
24617         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24618         * modules/locale (Depends-on, Makefile.am): Likewise.
24619         * modules/math (Depends-on, Makefile.am): Likewise.
24620         * modules/search (Depends-on, Makefile.am): Likewise.
24621         * modules/signal (Depends-on, Makefile.am): Likewise.
24622         * modules/spawn (Depends-on, Makefile.am): Likewise.
24623         * modules/stdlib (Depends-on, Makefile.am): Likewise.
24624         * modules/string (Depends-on, Makefile.am): Likewise.
24625         * modules/strings (Depends-on, Makefile.am): Likewise.
24626         * modules/sys_file (Depends-on, Makefile.am): Likewise.
24627         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
24628         * modules/sys_select (Depends-on, Makefile.am): Likewise.
24629         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
24630         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
24631         * modules/sys_times (Depends-on, Makefile.am): Likewise.
24632         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24633         * modules/wchar (Depends-on, Makefile.am): Likewise.
24634         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
24635         should be poisoned.
24636         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
24637         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
24638         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
24639         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24640         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24641         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24642         * m4/math_h.m4 (gl_MATH_H): Likewise.
24643         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24644         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24645         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24646         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24647         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24648         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24649         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
24650         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
24651         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24652         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24653         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24654         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24655         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24656         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24657         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24658         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24659         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
24660         GL_LINK_WARNING.
24661         * lib/ctype.in.h: Likewise.
24662         * lib/dirent.in.h: Likewise.
24663         * lib/fcntl.in.h: Likewise.
24664         * lib/inttypes.in.h: Likewise.
24665         * lib/langinfo.in.h: Likewise.
24666         * lib/locale.in.h: Likewise.
24667         * lib/math.in.h: Likewise.
24668         * lib/search.in.h: Likewise.
24669         * lib/signal.in.h: Likewise.
24670         * lib/spawn.in.h: Likewise.
24671         * lib/stdio.in.h: Likewise.
24672         * lib/stdlib.in.h: Likewise.
24673         * lib/string.in.h: Likewise.
24674         * lib/strings.in.h: Likewise.
24675         * lib/sys_file.in.h: Likewise.
24676         * lib/sys_ioctl.in.h: Likewise.
24677         * lib/sys_select.in.h: Likewise.
24678         * lib/sys_socket.in.h: Likewise.
24679         * lib/sys_stat.in.h: Likewise.
24680         * lib/sys_times.in.h: Likewise.
24681         * lib/sys_utsname.in.h: Likewise.
24682         * lib/unistd.in.h: Likewise.
24683         * lib/wchar.in.h: Likewise.
24684
24685 2010-01-20  Bruno Haible  <bruno@clisp.org>
24686
24687         Avoid duplicate -lm.
24688         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
24689         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
24690         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
24691         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
24692         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
24693         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
24694         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
24695         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
24696         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
24697         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
24698         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
24699         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24700         Reported by Paolo Bonzini.
24701
24702 2010-01-19  Bruno Haible  <bruno@clisp.org>
24703
24704         langinfo, nl_langinfo: Relicense under LGPLv2+.
24705         * modules/langinfo (License): Change to LGPLv2+.
24706         * modules/nl_langinfo (License): Likewise.
24707         Patch by David Lutterkort <lutter@redhat.com>.
24708
24709 2010-01-19  Bruno Haible  <bruno@clisp.org>
24710
24711         Avoid compilation error with cc on OSF/1 5.1.
24712         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
24713         statement, not before.
24714         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24715
24716 2010-01-18  Bruno Haible  <bruno@clisp.org>
24717
24718         Avoid a link error due to the __printf__ symbol.
24719         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
24720         and 2.6.x.
24721         (__format__, __printf__): Remove definitions.
24722         * lib/argp-fmtstream.h: Likewise.
24723         * lib/argp.h: Likewise.
24724         * lib/error.h: Likewise.
24725         * lib/vasnprintf.h: Likewise.
24726         * lib/xprintf.h: Likewise.
24727         * lib/xvasprintf.h: Likewise.
24728         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24729
24730 2010-01-18  Bruno Haible  <bruno@clisp.org>
24731
24732         Tests for module 'tanl'.
24733         * modules/tanl-tests: New file.
24734         * tests/test-tanl.c: New file.
24735
24736         Tests for module 'sqrtl'.
24737         * modules/sqrtl-tests: New file.
24738         * tests/test-sqrtl.c: New file.
24739
24740         Tests for module 'sinl'.
24741         * modules/sinl-tests: New file.
24742         * tests/test-sinl.c: New file.
24743
24744         Tests for module 'logl'.
24745         * modules/logl-tests: New file.
24746         * tests/test-logl.c: New file.
24747
24748         Tests for module 'expl'.
24749         * modules/expl-tests: New file.
24750         * tests/test-expl.c: New file.
24751
24752         Tests for module 'cosl'.
24753         * modules/cosl-tests: New file.
24754         * tests/test-cosl.c: New file.
24755
24756         Tests for module 'atanl'.
24757         * modules/atanl-tests: New file.
24758         * tests/test-atanl.c: New file.
24759
24760         Tests for module 'asinl'.
24761         * modules/asinl-tests: New file.
24762         * tests/test-asinl.c: New file.
24763
24764         Tests for module 'acosl'.
24765         * modules/acosl-tests: New file.
24766         * tests/test-acosl.c: New file.
24767
24768         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24769         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
24770         tanl): Use the standard gnulib idiom.
24771         * lib/cosl.c: Don't include trigl.c and sincosl.c.
24772         * lib/sinl.c: Likewise.
24773         * lib/tanl.c: Don't include trigl.c.
24774         (kernel_tanl): Make static.
24775         * lib/sincosl.c: Include trigl.h first.
24776         * lib/trigl.c: Likewise.
24777         * m4/acosl.m4: New file.
24778         * m4/asinl.m4: New file.
24779         * m4/atanl.m4: New file.
24780         * m4/cosl.m4: New file.
24781         * m4/expl.m4: New file.
24782         * m4/logl.m4: New file.
24783         * m4/sinl.m4: New file.
24784         * m4/sqrtl.m4: New file.
24785         * m4/tanl.m4: New file.
24786         * m4/mathl.m4: Remove file.
24787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
24788         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24789         Don't initialize GNULIB_MATHL.
24790         * modules/acosl: New file.
24791         * modules/asinl: New file.
24792         * modules/atanl: New file.
24793         * modules/cosl: New file.
24794         * modules/expl: New file.
24795         * modules/logl: New file.
24796         * modules/sinl: New file.
24797         * modules/sqrtl: New file.
24798         * modules/tanl: New file.
24799         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
24800         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
24801         substitute GNULIB_MATHL.
24802         * modules/mathl: Rewritten.
24803         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
24804         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
24805         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
24806         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
24807         * doc/posix-functions/expl.texi: Mention the 'expl' module.
24808         * doc/posix-functions/logl.texi: Mention the 'logl' module.
24809         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
24810         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
24811         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
24812
24813 2010-01-18  Bruno Haible  <bruno@clisp.org>
24814
24815         sqrt: Make gl_FUNC_SQRT requirable.
24816         * m4/sqrt.m4: New file.
24817         * modules/sqrt (Files): Add it.
24818         (configure.ac): Invoke gl_FUNC_SQRT.
24819
24820 2010-01-18  Bruno Haible  <bruno@clisp.org>
24821
24822         New modules for common <math.h> functions.
24823         * m4/mathfunc.m4: New file.
24824         * modules/acos: New file.
24825         * modules/asin: New file.
24826         * modules/atan: New file.
24827         * modules/atan2: New file.
24828         * modules/cbrt: New file.
24829         * modules/copysign: New file.
24830         * modules/cos: New file.
24831         * modules/cosh: New file.
24832         * modules/erf: New file.
24833         * modules/erfc: New file.
24834         * modules/exp: New file.
24835         * modules/fabs: New file.
24836         * modules/fmod: New file.
24837         * modules/hypot: New file.
24838         * modules/j0: New file.
24839         * modules/j1: New file.
24840         * modules/jn: New file.
24841         * modules/ldexp: New file.
24842         * modules/lgamma: New file.
24843         * modules/log: New file.
24844         * modules/log10: New file.
24845         * modules/log1p: New file.
24846         * modules/logb: New file.
24847         * modules/modf: New file.
24848         * modules/nextafter: New file.
24849         * modules/pow: New file.
24850         * modules/remainder: New file.
24851         * modules/rint: New file.
24852         * modules/sin: New file.
24853         * modules/sinh: New file.
24854         * modules/sqrt: New file.
24855         * modules/tan: New file.
24856         * modules/tanh: New file.
24857         * modules/y0: New file.
24858         * modules/y1: New file.
24859         * modules/yn: New file.
24860         * doc/posix-functions/acos.texi: Mention the 'acos' module.
24861         * doc/posix-functions/asin.texi: Mention the 'asin' module.
24862         * doc/posix-functions/atan.texi: Mention the 'atan' module.
24863         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
24864         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
24865         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
24866         * doc/posix-functions/cos.texi: Mention the 'cos' module.
24867         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
24868         * doc/posix-functions/erf.texi: Mention the 'erf' module.
24869         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
24870         * doc/posix-functions/exp.texi: Mention the 'exp' module.
24871         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
24872         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
24873         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
24874         * doc/posix-functions/j0.texi: Mention the 'j0' module.
24875         * doc/posix-functions/j1.texi: Mention the 'j1' module.
24876         * doc/posix-functions/jn.texi: Mention the 'jn' module.
24877         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
24878         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
24879         * doc/posix-functions/log.texi: Mention the 'log' module.
24880         * doc/posix-functions/log10.texi: Mention the 'log10' module.
24881         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
24882         * doc/posix-functions/logb.texi: Mention the 'logb' module.
24883         * doc/posix-functions/modf.texi: Mention the 'modf' module.
24884         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
24885         * doc/posix-functions/pow.texi: Mention the 'pow' module.
24886         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
24887         * doc/posix-functions/rint.texi: Mention the 'rint' module.
24888         * doc/posix-functions/sin.texi: Mention the 'sin' module.
24889         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
24890         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
24891         * doc/posix-functions/tan.texi: Mention the 'tan' module.
24892         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
24893         * doc/posix-functions/y0.texi: Mention the 'y0' module.
24894         * doc/posix-functions/y1.texi: Mention the 'y1' module.
24895         * doc/posix-functions/yn.texi: Mention the 'yn' module.
24896
24897 2010-01-18  Jim Meyering  <meyering@redhat.com>
24898
24899         ignore-value: relax license to LGPLv2+
24900         * modules/ignore-value (License): Relax to LGPLv2+.
24901
24902         getdate: don't leak when TZ contains two or more '"'s
24903         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24904         double quote in TZ after the first one.
24905
24906         readtokens: do not leak internal token_lengths buffer
24907         * lib/readtokens.c (readtokens): Free the local, lengths,
24908         when the supplied "token_lengths" parameter is NULL.
24909
24910 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24911
24912         Fix a couple of missing LIBTHREAD link failures on AIX.
24913         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24914         $(LIBTHREAD).
24915         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24916
24917         Link test-poll against INET_PTON_LIB.
24918         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24919         for inet_pton on Solaris 10.
24920
24921 2010-01-17  Bruno Haible  <bruno@clisp.org>
24922
24923         unistdio/*-sprintf: Fix typo in module description.
24924         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24925         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24926         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24927         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24928         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24929         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24930         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24931         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24932
24933 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24934
24935         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24936         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24937         variables in shell case patterns, for AIX and HP-UX ksh.
24938
24939         Split large sed scripts, for HP-UX sed.
24940         * modules/stdio: Split sed scripts around 50 sed commands,
24941         to avoid HP-UX limit of 99 commands, in the near future.
24942         * modules/string: Likewise.
24943         * modules/unistd: Likewise.
24944
24945         gnulib-tool: avoid writing in the current directory.
24946         * gnulib-tool (func_emit_lib_Makefile_am)
24947         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24948         not in the current directory, so concurrent gnulib-tool
24949         instances do not interfere.
24950
24951 2010-01-16  Jim Meyering  <meyering@redhat.com>
24952
24953         doc: update users.txt
24954         * users.txt: Add grep.
24955         (diffutils, gzip): Update URLs.
24956
24957 2010-01-12  Bruno Haible  <bruno@clisp.org>
24958
24959         posix_spawn: Avoid test failure on Cygwin.
24960         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24961         characters.
24962         Reported by Simon Josefsson.
24963
24964 2010-01-12  Bruno Haible  <bruno@clisp.org>
24965
24966         * tests/test-cond.c (main): When skipping the test, show the reason.
24967
24968 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24969
24970         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24971
24972 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24973
24974         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24975         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24976
24977 2010-01-12  Eric Blake  <ebb9@byu.net>
24978
24979         build: guarantee AS_VAR_IF
24980         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24981         (gl_AS_VAR_IF): Move...
24982         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24983         Reported by Simon Josefsson.
24984
24985 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24986
24987         * lib/stdio.in.h: Fix typo.
24988
24989 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24990
24991         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24992         libgpg-error.
24993
24994 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24995
24996         * tests/test-xalloc-die.sh: Use $EXEEXT.
24997
24998 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24999             Bruno Haible  <bruno@clisp.org>
25000
25001         getlogin, getlogin_r: Avoid test failure.
25002         * tests/test-getlogin.c: Include <stdio.h>.
25003         (main): Skip the test when the function fails because stdin is not a
25004         tty.
25005         * tests/test-getlogin_r.c: Include <stdio.h>.
25006         (main): Skip the test when the function fails because stdin is not a
25007         tty.
25008
25009 2010-01-11  Eric Blake  <ebb9@byu.net>
25010
25011         tests: avoid more large file warnings
25012         * tests/test-fflush.c: Avoid warning about ftell use.
25013         * tests/test-fseek.c: Avoid warning about fseek use.
25014
25015 2010-01-10  Bruno Haible  <bruno@clisp.org>
25016
25017         nproc: Work better on Linux when /proc and /sys are not mounted.
25018         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
25019         as lower bound when, on glibc/Linux systems,
25020         sysconf (_SC_NPROCESSORS_CONF) returns 1.
25021         Suggested by Pádraig Brady <P@draigbrady.com>.
25022         Reported by Dmitry V. Levin <ldv@altlinux.org>.
25023
25024         nproc: Refactor.
25025         * lib/nproc.c (num_processors_via_affinity_mask): New function,
25026         extracted from num_processors.
25027         (num_processors): Call it.
25028
25029 2010-01-11  Jim Meyering  <meyering@redhat.com>
25030
25031         utimecmp: avoid new warning from upcoming gcc-4.5.0
25032         * lib/utimecmp.c (BILLION): Define using #define rather than an
25033         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
25034
25035 2010-01-11  Eric Blake  <ebb9@byu.net>
25036
25037         math: add portability warnings for classification macros
25038         * modules/math (Depends-on): Add warn-on-use.
25039         (Makefile.am): Provide new substitutions.
25040         * m4/math_h.m4 (gl_MATH_H): Require inline.
25041         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
25042         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
25043         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
25044         implement warnings.
25045
25046         unistd: warn on use of environ without module
25047         * modules/unistd (Depends-on): Add warn-on-use.
25048         (Makefile.am): Provide new substitutions.
25049         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
25050         * lib/unistd.in.h (environ): Wrap with a warning helper function.
25051
25052         stdio: warn on suspicious uses
25053         * modules/stdio (Depends-on): Add warn-on-use.
25054         (Makefile.am): Provide new substitutions.
25055         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
25056         fseeko.
25057         * lib/stdio.in.h (gets): Always warn on use.
25058         (fseek, ftell): Adjust when warnings are issued, and honor
25059         _GL_NO_LARGE_FILES as a way to silence the warning.
25060         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
25061         any warning about large file offsets.
25062         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
25063         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
25064         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
25065         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
25066         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
25067         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
25068         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
25069         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
25070
25071         warn-on-use: new module
25072         * modules/warn-on-use: New file.
25073         * build-aux/warn-on-use.h: Likewise.
25074         * m4/warn-on-use.m4: Likewise.
25075         * MODULES.html.sh (Support for building): Mention it.
25076
25077 2010-01-10  Bruno Haible  <bruno@clisp.org>
25078
25079         Tests for module 'unistr/u32-strdup'.
25080         * modules/unistr/u32-strdup-tests: New file.
25081         * tests/unistr/test-u32-strdup.c: New file.
25082
25083         Tests for module 'unistr/u16-strdup'.
25084         * modules/unistr/u16-strdup-tests: New file.
25085         * tests/unistr/test-u16-strdup.c: New file.
25086
25087         Tests for module 'unistr/u8-strdup'.
25088         * modules/unistr/u8-strdup-tests: New file.
25089         * tests/unistr/test-u8-strdup.c: New file.
25090         * tests/unistr/test-strdup.h: New file.
25091
25092         Tests for module 'unistr/u32-strncmp'.
25093         * modules/unistr/u32-strncmp-tests: New file.
25094         * tests/unistr/test-u32-strncmp.c: New file.
25095
25096         Tests for module 'unistr/u16-strncmp'.
25097         * modules/unistr/u16-strncmp-tests: New file.
25098         * tests/unistr/test-u16-strncmp.c: New file.
25099
25100         Tests for module 'unistr/u8-strncmp'.
25101         * modules/unistr/u8-strncmp-tests: New file.
25102         * tests/unistr/test-u8-strncmp.c: New file.
25103         * tests/unistr/test-strncmp.h: New file.
25104
25105         Tests for module 'unistr/u32-strcoll'.
25106         * modules/unistr/u32-strcoll-tests: New file.
25107         * tests/unistr/test-u32-strcoll.c: New file.
25108
25109         Tests for module 'unistr/u16-strcoll'.
25110         * modules/unistr/u16-strcoll-tests: New file.
25111         * tests/unistr/test-u16-strcoll.c: New file.
25112
25113         Tests for module 'unistr/u8-strcoll'.
25114         * modules/unistr/u8-strcoll-tests: New file.
25115         * tests/unistr/test-u8-strcoll.c: New file.
25116
25117         Tests for module 'unistr/u32-strcmp'.
25118         * modules/unistr/u32-strcmp-tests: New file.
25119         * tests/unistr/test-u32-strcmp.c: New file.
25120         * tests/unistr/test-u32-strcmp.h: New file.
25121
25122         Tests for module 'unistr/u16-strcmp'.
25123         * modules/unistr/u16-strcmp-tests: New file.
25124         * tests/unistr/test-u16-strcmp.c: New file.
25125         * tests/unistr/test-u16-strcmp.h: New file.
25126
25127         Tests for module 'unistr/u8-strcmp'.
25128         * modules/unistr/u8-strcmp-tests: New file.
25129         * tests/unistr/test-u8-strcmp.c: New file.
25130         * tests/unistr/test-u8-strcmp.h: New file.
25131         * tests/unistr/test-strcmp.h: New file.
25132
25133         Tests for module 'unistr/u32-strncat'.
25134         * modules/unistr/u32-strncat-tests: New file.
25135         * tests/unistr/test-u32-strncat.c: New file.
25136
25137         Tests for module 'unistr/u16-strncat'.
25138         * modules/unistr/u16-strncat-tests: New file.
25139         * tests/unistr/test-u16-strncat.c: New file.
25140
25141         Tests for module 'unistr/u8-strncat'.
25142         * modules/unistr/u8-strncat-tests: New file.
25143         * tests/unistr/test-u8-strncat.c: New file.
25144         * tests/unistr/test-strncat.h: New file.
25145
25146         Tests for module 'unistr/u32-strcat'.
25147         * modules/unistr/u32-strcat-tests: New file.
25148         * tests/unistr/test-u32-strcat.c: New file.
25149
25150         Tests for module 'unistr/u16-strcat'.
25151         * modules/unistr/u16-strcat-tests: New file.
25152         * tests/unistr/test-u16-strcat.c: New file.
25153
25154         Tests for module 'unistr/u8-strcat'.
25155         * modules/unistr/u8-strcat-tests: New file.
25156         * tests/unistr/test-u8-strcat.c: New file.
25157         * tests/unistr/test-strcat.h: New file.
25158
25159         Tests for module 'unistr/u32-stpncpy'.
25160         * modules/unistr/u32-stpncpy-tests: New file.
25161         * tests/unistr/test-u32-stpncpy.c: New file.
25162
25163         Tests for module 'unistr/u16-stpncpy'.
25164         * modules/unistr/u16-stpncpy-tests: New file.
25165         * tests/unistr/test-u16-stpncpy.c: New file.
25166
25167         Tests for module 'unistr/u8-stpncpy'.
25168         * modules/unistr/u8-stpncpy-tests: New file.
25169         * tests/unistr/test-u8-stpncpy.c: New file.
25170         * tests/unistr/test-stpncpy.h: New file.
25171
25172         Tests for module 'unistr/u32-strncpy'.
25173         * modules/unistr/u32-strncpy-tests: New file.
25174         * tests/unistr/test-u32-strncpy.c: New file.
25175
25176         Tests for module 'unistr/u16-strncpy'.
25177         * modules/unistr/u16-strncpy-tests: New file.
25178         * tests/unistr/test-u16-strncpy.c: New file.
25179
25180         Tests for module 'unistr/u8-strncpy'.
25181         * modules/unistr/u8-strncpy-tests: New file.
25182         * tests/unistr/test-u8-strncpy.c: New file.
25183         * tests/unistr/test-strncpy.h: New file.
25184
25185         Tests for module 'unistr/u32-stpcpy'.
25186         * modules/unistr/u32-stpcpy-tests: New file.
25187         * tests/unistr/test-u32-stpcpy.c: New file.
25188
25189         Tests for module 'unistr/u16-stpcpy'.
25190         * modules/unistr/u16-stpcpy-tests: New file.
25191         * tests/unistr/test-u16-stpcpy.c: New file.
25192
25193         Tests for module 'unistr/u8-stpcpy'.
25194         * modules/unistr/u8-stpcpy-tests: New file.
25195         * tests/unistr/test-u8-stpcpy.c: New file.
25196         * tests/unistr/test-stpcpy.h: New file.
25197
25198         Tests for module 'unistr/u32-strcpy'.
25199         * modules/unistr/u32-strcpy-tests: New file.
25200         * tests/unistr/test-u32-strcpy.c: New file.
25201
25202         Tests for module 'unistr/u16-strcpy'.
25203         * modules/unistr/u16-strcpy-tests: New file.
25204         * tests/unistr/test-u16-strcpy.c: New file.
25205
25206         Tests for module 'unistr/u8-strcpy'.
25207         * modules/unistr/u8-strcpy-tests: New file.
25208         * tests/unistr/test-u8-strcpy.c: New file.
25209         * tests/unistr/test-strcpy.h: New file.
25210
25211         Tests for module 'unistr/u32-strnlen'.
25212         * modules/unistr/u32-strnlen-tests: New file.
25213         * tests/unistr/test-u32-strnlen.c: New file.
25214
25215         Tests for module 'unistr/u16-strnlen'.
25216         * modules/unistr/u16-strnlen-tests: New file.
25217         * tests/unistr/test-u16-strnlen.c: New file.
25218
25219         Tests for module 'unistr/u8-strnlen'.
25220         * modules/unistr/u8-strnlen-tests: New file.
25221         * tests/unistr/test-u8-strnlen.c: New file.
25222         * tests/unistr/test-strnlen.h: New file.
25223
25224         Tests for module 'unistr/u32-strlen'.
25225         * modules/unistr/u32-strlen-tests: New file.
25226         * tests/unistr/test-u32-strlen.c: New file.
25227
25228         Tests for module 'unistr/u16-strlen'.
25229         * modules/unistr/u16-strlen-tests: New file.
25230         * tests/unistr/test-u16-strlen.c: New file.
25231
25232         Tests for module 'unistr/u8-strlen'.
25233         * modules/unistr/u8-strlen-tests: New file.
25234         * tests/unistr/test-u8-strlen.c: New file.
25235
25236         Tests for module 'unistr/u32-prev'.
25237         * modules/unistr/u32-prev-tests: New file.
25238         * tests/unistr/test-u32-prev.c: New file.
25239
25240         Tests for module 'unistr/u16-prev'.
25241         * modules/unistr/u16-prev-tests: New file.
25242         * tests/unistr/test-u16-prev.c: New file.
25243
25244         Tests for module 'unistr/u8-prev'.
25245         * modules/unistr/u8-prev-tests: New file.
25246         * tests/unistr/test-u8-prev.c: New file.
25247
25248         Tests for module 'unistr/u32-next'.
25249         * modules/unistr/u32-next-tests: New file.
25250         * tests/unistr/test-u32-next.c: New file.
25251
25252         Tests for module 'unistr/u16-next'.
25253         * modules/unistr/u16-next-tests: New file.
25254         * tests/unistr/test-u16-next.c: New file.
25255
25256         Tests for module 'unistr/u8-next'.
25257         * modules/unistr/u8-next-tests: New file.
25258         * tests/unistr/test-u8-next.c: New file.
25259
25260         Tests for module 'unistr/u32-strmbtouc'.
25261         * modules/unistr/u32-strmbtouc-tests: New file.
25262         * tests/unistr/test-u32-strmbtouc.c: New file.
25263
25264         Tests for module 'unistr/u16-strmbtouc'.
25265         * modules/unistr/u16-strmbtouc-tests: New file.
25266         * tests/unistr/test-u16-strmbtouc.c: New file.
25267
25268         Tests for module 'unistr/u8-strmbtouc'.
25269         * modules/unistr/u8-strmbtouc-tests: New file.
25270         * tests/unistr/test-u8-strmbtouc.c: New file.
25271
25272         Tests for module 'unistr/u32-strmblen'.
25273         * modules/unistr/u32-strmblen-tests: New file.
25274         * tests/unistr/test-u32-strmblen.c: New file.
25275
25276         Tests for module 'unistr/u16-strmblen'.
25277         * modules/unistr/u16-strmblen-tests: New file.
25278         * tests/unistr/test-u16-strmblen.c: New file.
25279
25280         Tests for module 'unistr/u8-strmblen'.
25281         * modules/unistr/u8-strmblen-tests: New file.
25282         * tests/unistr/test-u8-strmblen.c: New file.
25283
25284         Tests for module 'unistr/u32-cpy-alloc'.
25285         * modules/unistr/u32-cpy-alloc-tests: New file.
25286         * tests/unistr/test-u32-cpy-alloc.c: New file.
25287
25288         Tests for module 'unistr/u16-cpy-alloc'.
25289         * modules/unistr/u16-cpy-alloc-tests: New file.
25290         * tests/unistr/test-u16-cpy-alloc.c: New file.
25291
25292         Tests for module 'unistr/u8-cpy-alloc'.
25293         * modules/unistr/u8-cpy-alloc-tests: New file.
25294         * tests/unistr/test-u8-cpy-alloc.c: New file.
25295         * tests/unistr/test-cpy-alloc.h: New file.
25296
25297         Tests for module 'unistr/u32-mbsnlen'.
25298         * modules/unistr/u32-mbsnlen-tests: New file.
25299         * tests/unistr/test-u32-mbsnlen.c: New file.
25300
25301         Tests for module 'unistr/u16-mbsnlen'.
25302         * modules/unistr/u16-mbsnlen-tests: New file.
25303         * tests/unistr/test-u16-mbsnlen.c: New file.
25304
25305         Tests for module 'unistr/u8-mbsnlen'.
25306         * modules/unistr/u8-mbsnlen-tests: New file.
25307         * tests/unistr/test-u8-mbsnlen.c: New file.
25308
25309         Tests for module 'unistr/u32-chr'.
25310         * modules/unistr/u32-chr-tests: New file.
25311         * tests/unistr/test-u32-chr.c: New file.
25312
25313         Tests for module 'unistr/u16-chr'.
25314         * modules/unistr/u16-chr-tests: New file.
25315         * tests/unistr/test-u16-chr.c: New file.
25316
25317         Tests for module 'unistr/u8-chr'.
25318         * modules/unistr/u8-chr-tests: New file.
25319         * tests/unistr/test-u8-chr.c: New file.
25320         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
25321
25322         Tests for module 'unistr/u32-cmp2'.
25323         * modules/unistr/u32-cmp2-tests: New file.
25324         * tests/unistr/test-u32-cmp2.c: New file.
25325
25326         Tests for module 'unistr/u16-cmp2'.
25327         * modules/unistr/u16-cmp2-tests: New file.
25328         * tests/unistr/test-u16-cmp2.c: New file.
25329
25330         Tests for module 'unistr/u8-cmp2'.
25331         * modules/unistr/u8-cmp2-tests: New file.
25332         * tests/unistr/test-u8-cmp2.c: New file.
25333         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
25334
25335         Tests for module 'unistr/u32-cmp'.
25336         * modules/unistr/u32-cmp-tests: New file.
25337         * tests/unistr/test-u32-cmp.c: New file.
25338
25339         Tests for module 'unistr/u16-cmp'.
25340         * modules/unistr/u16-cmp-tests: New file.
25341         * tests/unistr/test-u16-cmp.c: New file.
25342
25343         Tests for module 'unistr/u8-cmp'.
25344         * modules/unistr/u8-cmp-tests: New file.
25345         * tests/unistr/test-u8-cmp.c: New file.
25346         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
25347
25348         Tests for module 'unistr/u32-set'.
25349         * modules/unistr/u32-set-tests: New file.
25350         * tests/unistr/test-u32-set.c: New file.
25351
25352         Tests for module 'unistr/u16-set'.
25353         * modules/unistr/u16-set-tests: New file.
25354         * tests/unistr/test-u16-set.c: New file.
25355
25356         Tests for module 'unistr/u8-set'.
25357         * modules/unistr/u8-set-tests: New file.
25358         * tests/unistr/test-u8-set.c: New file.
25359         * tests/unistr/test-set.h: New file.
25360
25361         Tests for module 'unistr/u32-move'.
25362         * modules/unistr/u32-move-tests: New file.
25363         * tests/unistr/test-u32-move.c: New file.
25364
25365         Tests for module 'unistr/u16-move'.
25366         * modules/unistr/u16-move-tests: New file.
25367         * tests/unistr/test-u16-move.c: New file.
25368
25369         Tests for module 'unistr/u8-move'.
25370         * modules/unistr/u8-move-tests: New file.
25371         * tests/unistr/test-u8-move.c: New file.
25372         * tests/unistr/test-move.h: New file.
25373
25374         Tests for module 'unistr/u32-cpy'.
25375         * modules/unistr/u32-cpy-tests: New file.
25376         * tests/unistr/test-u32-cpy.c: New file.
25377
25378         Tests for module 'unistr/u16-cpy'.
25379         * modules/unistr/u16-cpy-tests: New file.
25380         * tests/unistr/test-u16-cpy.c: New file.
25381
25382         Tests for module 'unistr/u8-cpy'.
25383         * modules/unistr/u8-cpy-tests: New file.
25384         * tests/unistr/test-u8-cpy.c: New file.
25385         * tests/unistr/test-cpy.h: New file.
25386
25387 2010-01-09  Bruno Haible  <bruno@clisp.org>
25388
25389         Tests for module 'unistr/u32-uctomb'.
25390         * modules/unistr/u32-uctomb-tests: New file.
25391         * tests/unistr/test-u32-uctomb.c: New file.
25392
25393         Tests for module 'unistr/u16-uctomb'.
25394         * modules/unistr/u16-uctomb-tests: New file.
25395         * tests/unistr/test-u16-uctomb.c: New file.
25396
25397         Tests for module 'unistr/u8-uctomb'.
25398         * modules/unistr/u8-uctomb-tests: New file.
25399         * tests/unistr/test-u8-uctomb.c: New file.
25400
25401         Tests for module 'unistr/u32-mbtoucr'.
25402         * modules/unistr/u32-mbtoucr-tests: New file.
25403         * tests/unistr/test-u32-mbtoucr.c: New file.
25404
25405         Tests for module 'unistr/u16-mbtoucr'.
25406         * modules/unistr/u16-mbtoucr-tests: New file.
25407         * tests/unistr/test-u16-mbtoucr.c: New file.
25408
25409         Tests for module 'unistr/u8-mbtoucr'.
25410         * modules/unistr/u8-mbtoucr-tests: New file.
25411         * tests/unistr/test-u8-mbtoucr.c: New file.
25412
25413         Tests for module 'unistr/u32-mbtouc'.
25414         * modules/unistr/u32-mbtouc-tests: New file.
25415         * tests/unistr/test-u32-mbtouc.c: New file.
25416
25417         Tests for module 'unistr/u16-mbtouc'.
25418         * modules/unistr/u16-mbtouc-tests: New file.
25419         * tests/unistr/test-u16-mbtouc.c: New file.
25420
25421         Tests for module 'unistr/u8-mbtouc'.
25422         * modules/unistr/u8-mbtouc-tests: New file.
25423         * tests/unistr/test-u8-mbtouc.c: New file.
25424
25425         Tests for module 'unistr/u32-mbtouc-unsafe'.
25426         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
25427         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
25428         * tests/unistr/test-u32-mbtouc.h: New file.
25429
25430         Tests for module 'unistr/u16-mbtouc-unsafe'.
25431         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
25432         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
25433         * tests/unistr/test-u16-mbtouc.h: New file.
25434
25435         Tests for module 'unistr/u8-mbtouc-unsafe'.
25436         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
25437         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
25438         * tests/unistr/test-u8-mbtouc.h: New file.
25439
25440         Tests for module 'unistr/u32-mblen'.
25441         * modules/unistr/u32-mblen-tests: New file.
25442         * tests/unistr/test-u32-mblen.c: New file.
25443
25444         Tests for module 'unistr/u16-mblen'.
25445         * modules/unistr/u16-mblen-tests: New file.
25446         * tests/unistr/test-u16-mblen.c: New file.
25447
25448         Tests for module 'unistr/u8-mblen'.
25449         * modules/unistr/u8-mblen-tests: New file.
25450         * tests/unistr/test-u8-mblen.c: New file.
25451
25452         Tests for module 'unistr/u32-to-u16'.
25453         * modules/unistr/u32-to-u16-tests: New file.
25454         * tests/unistr/test-u32-to-u16.c: New file.
25455
25456         Tests for module 'unistr/u32-to-u8'.
25457         * modules/unistr/u32-to-u8-tests: New file.
25458         * tests/unistr/test-u32-to-u8.c: New file.
25459
25460         Tests for module 'unistr/u16-to-u32'.
25461         * modules/unistr/u16-to-u32-tests: New file.
25462         * tests/unistr/test-u16-to-u32.c: New file.
25463
25464         Tests for module 'unistr/u16-to-u8'.
25465         * modules/unistr/u16-to-u8-tests: New file.
25466         * tests/unistr/test-u16-to-u8.c: New file.
25467
25468         Tests for module 'unistr/u8-to-u32'.
25469         * modules/unistr/u8-to-u32-tests: New file.
25470         * tests/unistr/test-u8-to-u32.c: New file.
25471
25472         Tests for module 'unistr/u8-to-u16'.
25473         * modules/unistr/u8-to-u16-tests: New file.
25474         * tests/unistr/test-u8-to-u16.c: New file.
25475
25476         Tests for module 'unistr/u32-check'.
25477         * modules/unistr/u32-check-tests: New file.
25478         * tests/unistr/test-u32-check.c: New file.
25479
25480         Tests for module 'unistr/u16-check'.
25481         * modules/unistr/u16-check-tests: New file.
25482         * tests/unistr/test-u16-check.c: New file.
25483
25484         Tests for module 'unistr/u8-check'.
25485         * modules/unistr/u8-check-tests: New file.
25486         * tests/unistr/test-u8-check.c: New file.
25487
25488         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
25489         (category_equals): New function.
25490         (main): Add more tests.
25491         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
25492
25493         * tests/unictype/test-bidi_byname.c (main): Add more tests.
25494
25495 2010-01-10  Bruno Haible  <bruno@clisp.org>
25496
25497         unistr/u*-strcoll: Try harder to distinguish different strings.
25498         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
25499         compare s1 and s2 to see if they are different.
25500
25501 2010-01-10  Bruno Haible  <bruno@clisp.org>
25502
25503         unistr/u*-stpncpy: Fix the return value.
25504         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
25505         description of the return value consistent with stpncpy in glibc.
25506         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
25507         written non-NUL unit.
25508
25509 2010-01-10  Bruno Haible  <bruno@clisp.org>
25510
25511         unistr/u*-next: Add missing dependencies.
25512         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
25513         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
25514         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
25515
25516 2010-01-10  Bruno Haible  <bruno@clisp.org>
25517
25518         unistr/u8-mbsnlen: Fix return value for incomplete character.
25519         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
25520         u8_mblen.
25521         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
25522         Remove unistr/u8-mblen.
25523         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
25524         u16_mblen.
25525         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
25526         Remove unistr/u16-mblen.
25527
25528 2010-01-10  Bruno Haible  <bruno@clisp.org>
25529
25530         wchar: Fix compilation error when <wchar.h> is used from coreutils.
25531         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
25532         Reported by Brian Gough <bjg@gnu.org> and
25533         Chris Clayton <chris2553@googlemail.com> via
25534         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
25535
25536 2010-01-09  Bruno Haible  <bruno@clisp.org>
25537
25538         unistr/u16-to-u32: Reject invalid input.
25539         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
25540         u16_mbtouc.
25541         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
25542         Remove unistr/u16-mbtouc.
25543
25544         unistr/u16-to-u8: Reject invalid input.
25545         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
25546         u16_mbtouc.
25547         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
25548         Remove unistr/u16-mbtouc.
25549
25550         unistr/u8-to-u32: Reject invalid input.
25551         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
25552         u8_mbtouc.
25553         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
25554         Remove unistr/u8-mbtouc.
25555
25556         unistr/u8-to-u16: Reject invalid input.
25557         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
25558         u8_mbtouc.
25559         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
25560         Remove unistr/u8-mbtouc.
25561
25562 2010-01-09  Bruno Haible  <bruno@clisp.org>
25563
25564         Tests for module 'getlogin'.
25565         * modules/getlogin-tests: New file.
25566         * tests/test-getlogin.c: New file.
25567
25568         New module 'getlogin'.
25569         * lib/unistd.in.h (getlogin): New declaration.
25570         * lib/getlogin.c: New file.
25571         * m4/getlogin.m4: New file.
25572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
25573         HAVE_GETLOGIN.
25574         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
25575         HAVE_GETLOGIN.
25576         * modules/getlogin: New file.
25577         * doc/posix-functions/getlogin.texi: Mention the new module.
25578         Reported by John W. Eaton <jwe@gnu.org>.
25579
25580 2010-01-09  Bruno Haible  <bruno@clisp.org>
25581
25582         getlogin_r: Support for native Windows.
25583         * lib/getlogin_r.c: Include <windows.h>
25584         (getlogin_r): Implement for native Windows.
25585         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
25586         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
25587         via John W. Eaton <jwe@gnu.org>.
25588
25589 2010-01-09  Bruno Haible  <bruno@clisp.org>
25590
25591         getlogin_r: Small fixes.
25592         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
25593         succeeds.
25594         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
25595         before testing whether getlogin_r is declared. No need to set
25596         HAVE_DECL_GETLOGIN_R to 1.
25597         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
25598
25599 2010-01-09  Bruno Haible  <bruno@clisp.org>
25600
25601         * lib/unistd.in.h (getlogin_r): Add comment.
25602
25603 2010-01-09  Bruno Haible  <bruno@clisp.org>
25604
25605         Tests for module 'getlogin_r'.
25606         * modules/getlogin_r-tests: New file.
25607         * tests/test-getlogin_r.c: New file.
25608
25609 2010-01-09  Jim Meyering  <meyering@redhat.com>
25610
25611         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
25612         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
25613         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
25614
25615 2010-01-08  Simon Josefsson  <simon@josefsson.org>
25616
25617         * lib/dup2.c (rpl_dup2): Improve comment.
25618
25619 2010-01-08  Eric Blake  <ebb9@byu.net>
25620
25621         maint.mk: allow packages to add makefile @@ exceptions
25622         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
25623         (sc_makefile_check): Rename...
25624         (sc_makefile_at_at_check): ...to this, and use hook.
25625
25626         dup2: work around mingw bug
25627         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
25628         Reported by Simon Josefsson.
25629
25630 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
25631
25632         glob: Fix C++ compilation.
25633         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
25634         C++.
25635
25636 2010-01-07  Bruno Haible  <bruno@clisp.org>
25637
25638         Fix indentation of wctype.in.h, broken since 2007-01-06.
25639         * lib/wctype.in.h: Fix indentation of preprocessor directives.
25640
25641 2010-01-07  Bruno Haible  <bruno@clisp.org>
25642
25643         mbslen: Avoid collision with system function.
25644         * lib/string.in.h [MirBSD]: Include <wchar.h>.
25645         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
25646         * m4/mbslen.m4: New file.
25647         * modules/mbslen (Files): Add it.
25648         (configure.ac): Invoke gl_MBSLEN.
25649         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
25650         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
25651         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
25652         via Ian Beckwith <ianb@erislabs.net>.
25653
25654 2010-01-07  Bruno Haible  <bruno@clisp.org>
25655
25656         dirent: Document the last fix.
25657         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
25658
25659 2010-01-07  Bruno Haible  <bruno@clisp.org>
25660
25661         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
25662         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
25663         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
25664         va_list are defined.
25665         * doc/posix-headers/stdio.texi: Document the bug of missing types.
25666         Reported by Eric Blake.
25667
25668 2010-01-07  Bruno Haible  <bruno@clisp.org>
25669
25670         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
25671         * modules/xlist (Depends-on): Add 'list',
25672         * modules/xoset (Depends-on): Add 'oset'.
25673         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25674
25675 2010-01-07  Bruno Haible  <bruno@clisp.org>
25676
25677         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
25678         * doc/posix-functions/strncasecmp.texi: Likewise.
25679
25680 2010-01-07  Bruno Haible  <bruno@clisp.org>
25681
25682         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
25683
25684 2010-01-07  John W. Eaton  <jwe@octave.org>
25685
25686         wctype: allow C++ use
25687         * lib/wctype.in.h: Add extern "C" block for C++.
25688
25689 2010-01-06  Eric Blake  <ebb9@byu.net>
25690
25691         maint.mk: detect incorrect GFDL usage
25692         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
25693
25694 2010-01-06  Jim Meyering  <meyering@redhat.com>
25695         and Eric Blake  <ebb9@byu.net>
25696
25697         maint.mk: ignore multi-line copyright in NEWS
25698         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
25699
25700 2010-01-06  Eric Blake  <ebb9@byu.net>
25701
25702         select: add missing dependency
25703         * modules/select-tests (Depends-on): Move sockets dependency...
25704         * modules/select (Depends-on): ...here.
25705         Reported by Ian Beckwith.
25706
25707         doc: regenerate INSTALL
25708         * doc/INSTALL: Reflect recent autoconf update.
25709         * doc/INSTALL.ISO: Likewise.
25710         * doc/INSTALL.UTF-8: Likewise.
25711
25712         pread: fix compilation on glibc
25713         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
25714         Reported by Ralf Wildenhues.
25715
25716         dirent: fix test failure
25717         * lib/dirent.in.h (includes): Guarantee ino_t.
25718         Reported by Ralf Wildenhues.
25719
25720 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
25721
25722         linkat, renameat: avoid bad free
25723         * lib/at-func2.c (at_func2): Fix typo.
25724         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
25725
25726 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25727
25728         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
25729         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
25730         to avoid failure of symlink test later.
25731
25732 2010-01-06  Eric Blake  <ebb9@byu.net>
25733
25734         stdio, unistd: guarantee ssize_t
25735         * lib/unistd.in.h (includes): Ensure that types required by POSIX
25736         2008 are exposed when needed.
25737         * lib/stdio.in.h (includes): Likewise.
25738         Reported by Ralf Wildenhues.
25739
25740 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
25741
25742         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
25743         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
25744         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
25745
25746 2010-01-06  Jim Meyering  <meyering@redhat.com>
25747
25748         readtokens: this module *does* require xalloc.h
25749         It uses only functions that were omitted by the old syntax-check rule.
25750         * lib/readtokens.c: Include "xalloc.h" once again.
25751         * modules/readtokens (Depends-on): Add xalloc.
25752         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
25753
25754 2010-01-05  Eric Blake  <ebb9@byu.net>
25755
25756         maint: support 'make announcement' from a VPATH build
25757         * top/maint.mk (announcement): Look for correct NEWS file.
25758
25759 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
25760
25761         utimens (fdutimens): ignore a negative FD, per contract
25762         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
25763         when we have a valid file descriptor.  Otherwise, using a brand
25764         new glibc (with just-patched futimens that now fails with EBADF)
25765         would cause this function to fail with ENOSYS.
25766         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
25767         See also http://bugzilla.redhat.com/552320.
25768
25769 2010-01-05  Eric Blake  <ebb9@byu.net>
25770
25771         strcase: document what it provides
25772         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
25773         gnulib module.
25774         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
25775         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
25776
25777 2010-01-05  Jim Meyering  <meyering@redhat.com>
25778
25779         maint: remove useless inclusions of "xalloc.h"
25780         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
25781         * lib/readtokens.c: Likewise.
25782         * lib/same.c: Likewise.
25783         * modules/getloadavg (Depends-on): Remove xalloc.
25784         * modules/readtokens: Likewise.
25785         * modules/same: Likewise.
25786
25787         maint.mk: include 4 more function names in alloca.h-checking regexp
25788         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
25789         regexp.  Before, we would give a false-positive (saying alloca.h
25790         is included unnecessarily) when the only uses involved omitted symbols.
25791
25792         xalloc.h: use consistent formatting
25793         * lib/xalloc.h: Move declarations to start in the first column.
25794
25795 2010-01-05  Eric Blake  <ebb9@byu.net>
25796
25797         mkdir: avoid xalloc
25798         * lib/mkdir.c (includes): Drop unused header.
25799         Reported by John W. Eaton.
25800
25801 2010-01-04  Jim Meyering  <meyering@redhat.com>
25802
25803         nl_langinfo: avoid configure-time syntax error
25804         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
25805         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
25806         the empty string.  Don't let that provoke a shell syntax error.
25807
25808         regcomp, regexec, fnmatch: avoid array bounds read error
25809         * lib/regcomp.c (build_equiv_class): From glibc:
25810         Use only the low 24 bits of a findidx return value as an index
25811         into the weights array.  Patch by Ulrich Drepper:
25812         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
25813         * lib/regexec.c (check_node_accept_bytes): Likewise.
25814         * lib/fnmatch_loop.c (FCT): Likewise.
25815
25816         regcomp: skip collseq lookup when there are no rules
25817         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
25818         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
25819
25820         regcomp: recognize ill-formed { } expressions
25821         * lib/regcomp.c (parse_dup_op): From glibc:
25822         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
25823
25824         regcomp: fix typo in comment
25825         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
25826         s/satisfy/satisfies/.
25827
25828         regcomp: sync from glibc: remove dead store
25829         * lib/regcomp.c (duplicate_node_closure): Remove useless
25830         search_duplicated_node call and dead store.
25831
25832         regcomp: sync from glibc; always use nl_langinfo
25833         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
25834         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
25835         * modules/regex (Depends-on): Add nl_langinfo.
25836
25837 2010-01-04  Eric Blake  <ebb9@byu.net>
25838
25839         fdopendir: fix configure test
25840         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
25841
25842 2010-01-01  Bruno Haible  <bruno@clisp.org>
25843
25844         wchar: Remove unused configure check.
25845         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
25846
25847 2010-01-01  Eric Blake  <ebb9@byu.net>
25848
25849         headers: make check of system header explicit
25850         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
25851         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
25852         ourselves.
25853         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25854         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25855         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
25856         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
25857         internals.
25858         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
25859         missing.
25860         Suggested by Bruno Haible.
25861
25862 2010-01-01  Jim Meyering  <meyering@redhat.com>
25863
25864         ChangeLog: tweak to eliminate unnecessary copyright line
25865         * ChangeLog: Remove a copyright line that was mistakenly updated
25866         by today's update-copyright run.  Reported by Eric Blake.
25867
25868         test-update-copyright: don't let envvar setting cause test failure
25869         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25870
25871 2010-01-01  Bruno Haible  <bruno@clisp.org>
25872
25873         localename: Avoid gcc warning.
25874         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
25875         function if it is not used.
25876
25877 2010-01-01  Jim Meyering  <meyering@redhat.com>
25878
25879         update nearly all FSF copyright year lists to include 2010
25880         Use the same procedure as for 2009, outlined in
25881         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
25882
25883         version-etc: set COPYRIGHT_YEAR to 2010
25884         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
25885
25886 2009-12-31  Eric Blake  <ebb9@byu.net>
25887
25888         doc: correct availability of cygwin 1.5.x getopt
25889         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
25890         variables.
25891         * doc/posix-functions/opterr.texi (opterr): Likewise.
25892         * doc/posix-functions/optind.texi (optind): Likewise.
25893         * doc/posix-functions/optopt.texi (optopt): Likewise.
25894         * doc/posix-functions/tzname.texi (tzname): Likewise.
25895
25896         openat: update maintainer
25897         * modules/openat (Maintainer): Add myself.
25898
25899         utimens: avoid shadowing warning
25900         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25901         buffers into one, to avoid shadowing, as well as avoiding a
25902         redundant stat.
25903         Reported by Jim Meyering.
25904
25905         test-dup2: avoid compiler warning
25906         * tests/test-dup2.c (is_inheritable): Only define if used.
25907
25908 2010-01-01  Bruno Haible  <bruno@clisp.org>
25909
25910         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25911         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25912         defined, use wctomb instead of wcrtomb.
25913
25914 2010-01-01  Bruno Haible  <bruno@clisp.org>
25915
25916         iconv: Reject native Solaris iconv.
25917         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25918         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25919
25920 2009-12-31  Bruno Haible  <bruno@clisp.org>
25921
25922         * tests/test-signal.c (main): Remove test of 'SIG'.
25923
25924 2009-12-31  Bruno Haible  <bruno@clisp.org>
25925
25926         spawn: Fix incomplete fix.
25927         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25928         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25929         warnings for GNULIB_POSIXCHECK again.
25930         Reported by Eric Blake.
25931
25932 2009-12-31  Bruno Haible  <bruno@clisp.org>
25933
25934         Avoid namespace pollution on glibc systems.
25935         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25936         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25937         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25938         glibc systems.
25939
25940 2009-12-31  Bruno Haible  <bruno@clisp.org>
25941
25942         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25943         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25944         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25945         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25946         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25947         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25948         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25949
25950 2009-12-31  Bruno Haible  <bruno@clisp.org>
25951
25952         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25953         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25954         afterwards.
25955
25956 2009-12-31  Bruno Haible  <bruno@clisp.org>
25957
25958         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25959         SYS_UTSNAME_H.
25960
25961 2009-12-31  Bruno Haible  <bruno@clisp.org>
25962
25963         spawn: Fix misapplied patch.
25964         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25965         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25966         warnings for GNULIB_POSIXCHECK.
25967
25968 2009-12-31  Bruno Haible  <bruno@clisp.org>
25969
25970         times: Update after sys_times changed.
25971         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25972         * modules/times (Files): Add it.
25973         (configure.ac): Invoke gl_FUNC_TIMES.
25974
25975 2009-12-31  Bruno Haible  <bruno@clisp.org>
25976
25977         Use AC_C_INLINE where necessary.
25978         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25979         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25980         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25981         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25982         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25983         * m4/mbiter.m4 (gl_MBITER): Likewise.
25984         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25985         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25986         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25987         * modules/u64 (configure.ac): Likewise.
25988
25989 2009-12-31  Bruno Haible  <bruno@clisp.org>
25990
25991         Use AC_C_INLINE instead of module 'inline' where possible.
25992         * modules/inline (Description): Clarify purpose.
25993         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25994         * modules/count-one-bits (Depends-on): Remove inline.
25995         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25996         * modules/openat (Depends-on): Remove inline.
25997         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25998         instead of depending on module 'inline'.
25999         * modules/filevercmp (Depends-on, configure.ac): Likewise.
26000         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
26001         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
26002         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
26003         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
26004         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
26005         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
26006         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
26007         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
26008         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
26009         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
26010         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
26011         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
26012         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
26013         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
26014         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
26015         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
26016         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
26017         Likewise.
26018         * modules/unictype/property-ascii-hex-digit (Depends-on,
26019         configure.ac): Likewise.
26020         * modules/unictype/property-bidi-arabic-digit (Depends-on,
26021         configure.ac): Likewise.
26022         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
26023         configure.ac): Likewise.
26024         * modules/unictype/property-bidi-block-separator (Depends-on,
26025         configure.ac): Likewise.
26026         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
26027         configure.ac): Likewise.
26028         * modules/unictype/property-bidi-common-separator (Depends-on,
26029         configure.ac): Likewise.
26030         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
26031         Likewise.
26032         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
26033         configure.ac): Likewise.
26034         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
26035         configure.ac): Likewise.
26036         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
26037         configure.ac): Likewise.
26038         * modules/unictype/property-bidi-european-digit (Depends-on,
26039         configure.ac): Likewise.
26040         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
26041         configure.ac): Likewise.
26042         * modules/unictype/property-bidi-left-to-right (Depends-on,
26043         configure.ac): Likewise.
26044         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
26045         configure.ac): Likewise.
26046         * modules/unictype/property-bidi-other-neutral (Depends-on,
26047         configure.ac): Likewise.
26048         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
26049         Likewise.
26050         * modules/unictype/property-bidi-segment-separator (Depends-on,
26051         configure.ac): Likewise.
26052         * modules/unictype/property-bidi-whitespace (Depends-on,
26053         configure.ac): Likewise.
26054         * modules/unictype/property-combining (Depends-on, configure.ac):
26055         Likewise.
26056         * modules/unictype/property-composite (Depends-on, configure.ac):
26057         Likewise.
26058         * modules/unictype/property-currency-symbol (Depends-on,
26059         configure.ac): Likewise.
26060         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
26061         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
26062         Likewise.
26063         * modules/unictype/property-default-ignorable-code-point (Depends-on,
26064         configure.ac): Likewise.
26065         * modules/unictype/property-deprecated (Depends-on, configure.ac):
26066         Likewise.
26067         * modules/unictype/property-diacritic (Depends-on, configure.ac):
26068         Likewise.
26069         * modules/unictype/property-extender (Depends-on, configure.ac):
26070         Likewise.
26071         * modules/unictype/property-format-control (Depends-on, configure.ac):
26072         Likewise.
26073         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
26074         Likewise.
26075         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
26076         Likewise.
26077         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
26078         Likewise.
26079         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
26080         Likewise.
26081         * modules/unictype/property-hyphen (Depends-on, configure.ac):
26082         Likewise.
26083         * modules/unictype/property-id-continue (Depends-on, configure.ac):
26084         Likewise.
26085         * modules/unictype/property-id-start (Depends-on, configure.ac):
26086         Likewise.
26087         * modules/unictype/property-ideographic (Depends-on, configure.ac):
26088         Likewise.
26089         * modules/unictype/property-ids-binary-operator (Depends-on,
26090         configure.ac): Likewise.
26091         * modules/unictype/property-ids-trinary-operator (Depends-on,
26092         configure.ac): Likewise.
26093         * modules/unictype/property-ignorable-control (Depends-on,
26094         configure.ac): Likewise.
26095         * modules/unictype/property-iso-control (Depends-on, configure.ac):
26096         Likewise.
26097         * modules/unictype/property-join-control (Depends-on, configure.ac):
26098         Likewise.
26099         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
26100         Likewise.
26101         * modules/unictype/property-line-separator (Depends-on, configure.ac):
26102         Likewise.
26103         * modules/unictype/property-logical-order-exception (Depends-on,
26104         configure.ac): Likewise.
26105         * modules/unictype/property-lowercase (Depends-on, configure.ac):
26106         Likewise.
26107         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
26108         * modules/unictype/property-non-break (Depends-on, configure.ac):
26109         Likewise.
26110         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
26111         Likewise.
26112         * modules/unictype/property-numeric (Depends-on, configure.ac):
26113         Likewise.
26114         * modules/unictype/property-other-alphabetic (Depends-on,
26115         configure.ac): Likewise.
26116         * modules/unictype/property-other-default-ignorable-code-point
26117         (Depends-on, configure.ac): Likewise.
26118         * modules/unictype/property-other-grapheme-extend (Depends-on,
26119         configure.ac): Likewise.
26120         * modules/unictype/property-other-id-continue (Depends-on,
26121         configure.ac): Likewise.
26122         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
26123         Likewise.
26124         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
26125         Likewise.
26126         * modules/unictype/property-other-math (Depends-on, configure.ac):
26127         Likewise.
26128         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
26129         Likewise.
26130         * modules/unictype/property-paired-punctuation (Depends-on,
26131         configure.ac): Likewise.
26132         * modules/unictype/property-paragraph-separator (Depends-on,
26133         configure.ac): Likewise.
26134         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
26135         Likewise.
26136         * modules/unictype/property-pattern-white-space (Depends-on,
26137         configure.ac): Likewise.
26138         * modules/unictype/property-private-use (Depends-on, configure.ac):
26139         Likewise.
26140         * modules/unictype/property-punctuation (Depends-on, configure.ac):
26141         Likewise.
26142         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
26143         Likewise.
26144         * modules/unictype/property-radical (Depends-on, configure.ac):
26145         Likewise.
26146         * modules/unictype/property-sentence-terminal (Depends-on,
26147         configure.ac): Likewise.
26148         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
26149         Likewise.
26150         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
26151         * modules/unictype/property-terminal-punctuation (Depends-on,
26152         configure.ac): Likewise.
26153         * modules/unictype/property-titlecase (Depends-on, configure.ac):
26154         Likewise.
26155         * modules/unictype/property-unassigned-code-value (Depends-on,
26156         configure.ac): Likewise.
26157         * modules/unictype/property-unified-ideograph (Depends-on,
26158         configure.ac): Likewise.
26159         * modules/unictype/property-uppercase (Depends-on, configure.ac):
26160         Likewise.
26161         * modules/unictype/property-variation-selector (Depends-on,
26162         configure.ac): Likewise.
26163         * modules/unictype/property-white-space (Depends-on, configure.ac):
26164         Likewise.
26165         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
26166         Likewise.
26167         * modules/unictype/property-xid-start (Depends-on, configure.ac):
26168         Likewise.
26169         * modules/unictype/property-zero-width (Depends-on, configure.ac):
26170         Likewise.
26171         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
26172         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
26173         Likewise.
26174
26175 2009-12-31  Bruno Haible  <bruno@clisp.org>
26176
26177         Remove unnecessary AC_C_INLINE invocation.
26178         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
26179         since 2009-08-21.
26180
26181 2009-12-31  Jim Meyering  <meyering@redhat.com>
26182
26183         maint.mk: don't require explicit gpg_key_ID in cfg.mk
26184         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
26185         With this change, we can all remove the gpg_key_ID = ... definition
26186         from our respective cfg.mk files.
26187
26188         maint.mk: create announcement template in ~/, not in /tmp
26189         * top/maint.mk (emit_upload_commands): Adjust.
26190         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
26191         Remove temporary file, .ci-msg.
26192
26193 2009-12-31  Eric Blake  <ebb9@byu.net>
26194
26195         link-warning: always build headers with link warnings
26196         * modules/arpa_inet (Makefile.am): Always build replacement
26197         header.
26198         * modules/ctype (Makefile.am): Likewise.
26199         * modules/dirent (Makefile.am): Likewise.
26200         * modules/inttypes (Makefile.am): Likewise.
26201         * modules/langinfo (Makefile.am): Likewise.
26202         * modules/locale (Makefile.am): Likewise.
26203         * modules/spawn (Makefile.am): Likewise.
26204         * modules/sys_file (Makefile.am): Likewise.
26205         * modules/sys_ioctl (Makefile.am): Likewise.
26206         * modules/sys_select (Makefile.am): Likewise.
26207         * modules/sys_socket (Makefile.am): Likewise.
26208         * modules/sys_times (Makefile.am): Likewise.
26209         * modules/sys_utsname (Makefile.am): Likewise.
26210         * modules/sys_wait (Makefile.am): Likewise.
26211         * modules/wchar (Makefile.am): Likewise.
26212         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
26213         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
26214         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
26215         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
26216         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
26217         Likewise.
26218         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26219         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26220         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
26221         Likewise.
26222         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
26223         Likewise.
26224         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26225         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
26226         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
26227         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26228         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26229         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26230         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26231         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
26232         (gl_WCHAR_H_DEFAULTS): Likewise.
26233
26234 2009-12-31  Eric Blake  <ebb9@byu.net>
26235
26236         signal, spawn: use link warnings
26237         * lib/signal.in.h (sigset_t): Make unconditional.
26238         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
26239         (sigpending, sigprocmask, sigaction): Add link warnings.
26240         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
26241         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
26242         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
26243         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
26244         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
26245         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
26246         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
26247         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
26248         (posix_spawn_file_actions_destroy)
26249         (posix_spawn_file_actions_addopen)
26250         (posix_spawn_file_actions_addclose)
26251         (posix_spawn_file_actions_adddup2): Likewise.
26252         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
26253         * tests/test-signal.c (main): Enhance test.
26254
26255         spawn: improve wrapper support
26256         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
26257         (gl_SPAWN_H_DEFAULTS): New defaults.
26258         * modules/spawn (Makefile.am): Substitute them.
26259         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
26260         Only declare if missing or broken.
26261
26262         sys_times, sys_utsname: use include_next
26263         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
26264         header.
26265         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
26266         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26267         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26268         * modules/sys_times (Depends-on): Add include_next.
26269         (Makefile.am): Substitute additional values.
26270         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26271         * lib/sys_times.in.h (includes): Include native header, if
26272         available.
26273         * lib/sys_utsname.in.h (includes): Likewise.
26274         * tests/test-sys_times.c (main): Enhance test.
26275
26276         fdutimensat: revert prior patch
26277         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
26278         utimens.h.
26279         Reported by Bruno Haible.
26280
26281 2009-12-30  Eric Blake  <ebb9@byu.net>
26282
26283         sys_wait: drop link-warning dependency
26284         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
26285         link-warning efforts.
26286         * lib/sys_wait.in.h: Likewise.
26287
26288         fdutimensat: remove bogus dependency
26289         * modules/fdutimensat (Depends-on): Drop inline.
26290
26291         unistd: fix typo
26292         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
26293
26294 2009-12-30  Bruno Haible  <bruno@clisp.org>
26295
26296         Fix compilation error with Solaris cc.
26297         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
26298         * lib/unicase/u16-is-invariant.c: Likewise.
26299         * lib/unicase/u32-is-invariant.c: Likewise.
26300         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26301
26302 2009-12-30  Bruno Haible  <bruno@clisp.org>
26303
26304         Fix test crash.
26305         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
26306         locales.
26307         Reported by Simon Josefsson <simon@josefsson.org>.
26308
26309 2009-12-30  Bruno Haible  <bruno@clisp.org>
26310
26311         Fix compilation error on most platforms.
26312         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
26313         Reported by Simon Josefsson <simon@josefsson.org>
26314         and Nelson H. F. Beebe <beebe@math.utah.edu>.
26315
26316 2009-12-30  Eric Blake  <ebb9@byu.net>
26317
26318         futimens, utimensat: work around ntfs-3g bug
26319         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
26320         a ctime bug is present, and expand workaround to cover ntfs-3g.
26321         * lib/utimens.c (fdutimens, lutimens): Likewise.
26322         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
26323         (validate_timespec): Adjust return value.
26324         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
26325         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26326         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
26327
26328 2009-12-29  Eric Blake  <ebb9@byu.net>
26329
26330         link-warning: make usage consistent
26331         * modules/ctype (Depends-on): Add link-warning.
26332         (Makefile.am): Update rules accordingly.
26333         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26334         * modules/locale (Depends-on, Makefile.am): Likewise.
26335         * modules/sys_file (Makefile.am): Likewise.
26336         * modules/getopt-posix (Makefile.am): Delete unused link warning
26337         efforts.
26338         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
26339         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
26340         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
26341         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
26342
26343         stdio: remove unused variables
26344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
26345         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
26346         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26347
26348         tests: test more substitute headers
26349         * modules/ctype-tests: New file.
26350         * modules/dirent-tests: Likewise.
26351         * modules/spawn-tests: Likewise.
26352         * modules/sys_file-tests: Likewise.
26353         * modules/sys_ioctl-tests: Likewise.
26354         * modules/sys_wait-tests: Likewise.
26355         * tests/test-ctype.c: Likewise.
26356         * tests/test-dirent.c: Likewise.
26357         * tests/test-spawn.c: Likewise.
26358         * tests/test-sys_file.c: Likewise.
26359         * tests/test-sys_ioctl.c: Likewise.
26360         * tests/test-sys_wait.c: Likewise.
26361         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
26362         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
26363         whether or not flock is in use.
26364
26365         tests: remove License section from module
26366         * modules/arpa_inet-tests: Remove unneeded section.
26367         * modules/byteswap-tests: Likewise.
26368         * modules/ceilf-tests: Likewise.
26369         * modules/ceill-tests: Likewise.
26370         * modules/crypto/des-tests: Likewise.
26371         * modules/crypto/gc-arcfour-tests: Likewise.
26372         * modules/crypto/gc-arctwo-tests: Likewise.
26373         * modules/crypto/gc-des-tests: Likewise.
26374         * modules/crypto/gc-hmac-md5-tests: Likewise.
26375         * modules/crypto/gc-hmac-sha1-tests: Likewise.
26376         * modules/crypto/gc-md2-tests: Likewise.
26377         * modules/crypto/gc-md4-tests: Likewise.
26378         * modules/crypto/gc-md5-tests: Likewise.
26379         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
26380         * modules/crypto/gc-rijndael-tests: Likewise.
26381         * modules/crypto/gc-sha1-tests: Likewise.
26382         * modules/crypto/gc-tests: Likewise.
26383         * modules/crypto/md2-tests: Likewise.
26384         * modules/crypto/md4-tests: Likewise.
26385         * modules/fcntl-h-tests: Likewise.
26386         * modules/floorf-tests: Likewise.
26387         * modules/floorl-tests: Likewise.
26388         * modules/frexp-nolibm-tests: Likewise.
26389         * modules/frexp-tests: Likewise.
26390         * modules/frexpl-nolibm-tests: Likewise.
26391         * modules/frexpl-tests: Likewise.
26392         * modules/getaddrinfo-tests: Likewise.
26393         * modules/inttypes-tests: Likewise.
26394         * modules/isfinite-tests: Likewise.
26395         * modules/isinf-tests: Likewise.
26396         * modules/ldexpl-tests: Likewise.
26397         * modules/locale-tests: Likewise.
26398         * modules/math-tests: Likewise.
26399         * modules/netdb-tests: Likewise.
26400         * modules/netinet_in-tests: Likewise.
26401         * modules/printf-frexp-tests: Likewise.
26402         * modules/printf-frexpl-tests: Likewise.
26403         * modules/priv-set-tests: Likewise.
26404         * modules/random_r-tests: Likewise.
26405         * modules/round-tests: Likewise.
26406         * modules/roundf-tests: Likewise.
26407         * modules/roundl-tests: Likewise.
26408         * modules/search-tests: Likewise.
26409         * modules/select-tests: Likewise.
26410         * modules/signal-tests: Likewise.
26411         * modules/stdbool-tests: Likewise.
26412         * modules/stddef-tests: Likewise.
26413         * modules/stdint-tests: Likewise.
26414         * modules/stdio-tests: Likewise.
26415         * modules/stdlib-tests: Likewise.
26416         * modules/string-tests: Likewise.
26417         * modules/strings-tests: Likewise.
26418         * modules/sys_select-tests: Likewise.
26419         * modules/sys_socket-tests: Likewise.
26420         * modules/sys_stat-tests: Likewise.
26421         * modules/sys_time-tests: Likewise.
26422         * modules/sys_utsname-tests: Likewise.
26423         * modules/sysexits-tests: Likewise.
26424         * modules/time-tests: Likewise.
26425         * modules/trunc-tests: Likewise.
26426         * modules/truncf-tests: Likewise.
26427         * modules/truncl-tests: Likewise.
26428         * modules/tsearch-tests: Likewise.
26429         * modules/unistd-tests: Likewise.
26430         * modules/wchar-tests: Likewise.
26431         * modules/wctype-tests: Likewise.
26432
26433         tests: fix license on several tests
26434         * tests/test-des.c: Update to GPLv3+.
26435         * tests/test-flock.c: Likewise.
26436         * tests/test-fsync.c: Likewise.
26437         * tests/test-futimens.h: Likewise.
26438         * tests/test-gc-arcfour.c: Likewise.
26439         * tests/test-gc-arctwo.c: Likewise.
26440         * tests/test-gc-des.c: Likewise.
26441         * tests/test-gc-hmac-md5.c: Likewise.
26442         * tests/test-gc-hmac-sha1.c: Likewise.
26443         * tests/test-gc-md2.c: Likewise.
26444         * tests/test-gc-md4.c: Likewise.
26445         * tests/test-gc-md5.c: Likewise.
26446         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26447         * tests/test-gc-rijndael.c: Likewise.
26448         * tests/test-gc-sha1.c: Likewise.
26449         * tests/test-gc.c: Likewise.
26450         * tests/test-getcwd.c: Likewise.
26451         * tests/test-link.c: Likewise.
26452         * tests/test-link.h: Likewise.
26453         * tests/test-lutimens.h: Likewise.
26454         * tests/test-md2.c: Likewise.
26455         * tests/test-md4.c: Likewise.
26456         * tests/test-mkdir.h: Likewise.
26457         * tests/test-rename.c: Likewise.
26458         * tests/test-rename.h: Likewise.
26459         * tests/test-safe-alloc.c: Likewise.
26460         * tests/test-utimens-common.h: Likewise.
26461         * tests/test-utimens.h: Likewise.
26462
26463         maint: sync license texts
26464         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
26465         * doc/gpl-3.0.texi: Revert copyright year update.
26466         * doc/lgpl-3.0.texi: Likewise.
26467
26468 2009-12-29  Jim Meyering  <meyering@redhat.com>
26469
26470         update nearly all FSF copyright year lists to include 2009
26471         The files named by the following are exempted:
26472             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
26473               test -f "$dst" && { echo "$dst"; continue; }
26474               test -d "$dst" || continue
26475               echo "$dst"/$(basename "$src")
26476             done > exempt
26477             git ls-files tests/unictype >> exempt
26478         In the remaining files, convert to all-interval notation if
26479         - there is already at least one year interval like 2000-2003
26480         - the file is maintained by me
26481         - the file is in lib/uni*/, where that style already prevails
26482         Otherwise, use update-copyright's default.
26483
26484 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26485         and Eric Blake  <ebb9@byu.net>
26486
26487         tests: don't require debug system() to pass
26488         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
26489         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26490         * tests/test-unlink.h (test_unlink_func): Likewise.
26491         * tests/test-fstatat.c (main): ...into callers.
26492         * tests/test-lstat.c (main): Likewise.
26493         * tests/test-rmdir.c (main): Likewise.
26494         * tests/test-unlink.c (main): Likewise.
26495         * tests/test-unlinkat.c (main): Likewise.
26496         * tests/test-areadlink-with-size.c (main): Don't require a
26497         debug-only system call to pass, aiding cross-testing to mingw.
26498         * tests/test-areadlink.c (main): Likewise.
26499         * tests/test-areadlinkat-with-size.c (main): Likewise.
26500         * tests/test-areadlinkat.c (main): Likewise.
26501         * tests/test-canonicalize-lgpl.c (main): Likewise.
26502         * tests/test-canonicalize.c (main): Likewise.
26503         * tests/test-chown.c (main): Likewise.
26504         * tests/test-fchownat.c (main): Likewise.
26505         * tests/test-lchown.c (main): Likewise.
26506         * tests/test-fdutimensat.c (main): Likewise.
26507         * tests/test-futimens.c (main): Likewise.
26508         * tests/test-link.c (main): Likewise.
26509         * tests/test-linkat.c (main): Likewise.
26510         * tests/test-mkdir.c (main): Likewise.
26511         * tests/test-mkdirat.c (main): Likewise.
26512         * tests/test-mkfifo.c (main): Likewise.
26513         * tests/test-mkfifoat.c (main): Likewise.
26514         * tests/test-mknod.c (main): Likewise.
26515         * tests/test-readlink.c (main): Likewise.
26516         * tests/test-remove.c (main): Likewise.
26517         * tests/test-rename.c (main): Likewise.
26518         * tests/test-renameat.c (main): Likewise.
26519         * tests/test-symlink.c (main): Likewise.
26520         * tests/test-symlinkat.c (main): Likewise.
26521         * tests/test-utimens.c (main): Likewise.
26522         * tests/test-utimensat.c (main): Likewise.
26523
26524 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26525
26526         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
26527         on $(UNUSED_PARAMETER_H) to avoid build failure.
26528
26529 2009-12-28  Jim Meyering  <meyering@redhat.com>
26530
26531         update-copyright: you may specify a max. line length other than 72
26532         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26533
26534         maint: use consistent FSF copyright line syntax
26535         * lib/posixtm.c: Add missing comma in FSF copyright line.
26536         * lib/posixtm.h: Likewise.
26537         * lib/getugroups.c: Add missing ", Inc.".
26538
26539         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
26540         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
26541         FSF copyright line.  Remove trailing blanks.
26542
26543 2009-12-28  Eric Blake  <ebb9@byu.net>
26544
26545         test-dup2: reduce dependencies
26546         * modules/cloexec (Configure.ac): Set witness.
26547         * modules/dup2-tests (Depends-on): Drop cloexec.
26548         * tests/test-dup2.c (main): Skip portion of test if cloexec module
26549         not present.
26550         Suggested by Bruno Haible.
26551
26552 2009-12-26  Bruno Haible  <bruno@clisp.org>
26553
26554         Remove an unneeded dependency.
26555         * modules/fseterr (Depends-on): Remove dup2.
26556
26557 2009-12-26  Eric Blake  <ebb9@byu.net>
26558
26559         tests: use macros.h in more places
26560         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
26561         (ASSERT_STREAM): Provide default of stderr.
26562         * tests/test-dirent-safer.c: Include macros.h, using alternate
26563         stream for assertions.
26564         * tests/test-dup-safer.c: Likewise.
26565         * tests/test-freopen-safer.c: Likewise.
26566         * tests/test-getopt.c: Likewise.
26567         * tests/test-openat-safer.c: Likewise.
26568         * tests/test-pipe.c: Likewise.
26569         * tests/test-popen-safer.c: Likewise.
26570         * modules/dirent-safer-tests (Files): Include macros.h.
26571         * modules/unistd-safer-tests (Files): Likewise.
26572         * modules/freopen-safer-tests (Files): Likewise.
26573         * modules/getopt-posix-tests (Files): Likewise.
26574         * modules/openat-safer-tests (Files): Likewise.
26575         * modules/pipe-tests (Files): Likewise.
26576
26577 2009-12-26  Bruno Haible  <bruno@clisp.org>
26578
26579         javacomp: Portability fix.
26580         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
26581         that it also works on Solaris.
26582
26583 2009-12-26  Bruno Haible  <bruno@clisp.org>
26584
26585         localename: Fix storage allocation of gl_locale_name_thread's result.
26586         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
26587         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
26588         all platforms that have 'uselocale'.
26589         (gl_locale_name_thread_unsafe): New function, extracted from
26590         gl_locale_name_thread.
26591         (gl_locale_name_thread): Call struniq on all platforms that have
26592         'uselocale'.
26593         * tests/test-localename.c (test_locale_name_thread): Check that the
26594         resulting strings are permanently allocated.
26595         * modules/localename-tests (Depends-on): Add strdup.
26596
26597 2009-12-26  Bruno Haible  <bruno@clisp.org>
26598
26599         * tests/test-localename.c (categories): Fill in the strings.
26600
26601 2009-12-26  Jim Meyering  <meyering@redhat.com>
26602
26603         isdir: complete the removal of m4/isdir.m4
26604         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
26605
26606         isdir: clean up, since at least grep still uses it
26607         * lib/isdir.c: Include "isdir.h".
26608         (S_ISDIR): Remove now-unneeded definition.
26609         * modules/isdir (Files): Add lib/isdir.h.
26610         * lib/isdir.h: New file, with declaration.
26611         * m4/isdir.m4: Remove file -- unneeded.
26612
26613 2009-12-25  Bruno Haible  <bruno@clisp.org>
26614
26615         selinux-h: Make generated .h files standalone.
26616         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
26617         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
26618         * lib/se-selinux.in.h: Likewise.
26619         * modules/selinux-h (Depends-on): Add unused-parameter.
26620         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
26621         selinux/selinux.h and selinux/context.h.
26622         Suggested by Eric Blake.
26623
26624 2009-12-25  Bruno Haible  <bruno@clisp.org>
26625
26626         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
26627         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
26628         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
26629         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
26630         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
26631
26632 2009-12-24  Bruno Haible  <bruno@clisp.org>
26633
26634         openat: Fix warning.
26635         * lib/openat-proc.c: Include <unistd.h>.
26636
26637 2009-12-24  Bruno Haible  <bruno@clisp.org>
26638
26639         New module 'unused-parameter'.
26640         * build-aux/unused-parameter.h: New file, extracted from earlier
26641         gnulib-common.m4.
26642         * modules/unused-parameter: New file.
26643         * lib/unistr.h: Include unused-parameter.h.
26644         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
26645         _GL_UNUSED.
26646         * modules/unistr/base (Depends-on): Add unused-parameter.
26647
26648 2009-12-24  Bruno Haible  <bruno@clisp.org>
26649
26650         Add missing dependencies to 'extensions' module.
26651         * m4/extensions.m4: Add comment.
26652         * modules/accept4 (Depends-on): Add extensions.
26653         * modules/dup3 (Depends-on): Likewise.
26654         * modules/fcntl (Depends-on): Likewise.
26655         * modules/futimens (Depends-on): Likewise.
26656         * modules/mknod (Depends-on): Likewise.
26657         * modules/pipe2 (Depends-on): Likewise.
26658         * modules/stat-time (Depends-on): Likewise.
26659         * modules/strcasestr-simple (Depends-on): Likewise.
26660         * modules/strsignal (Depends-on): Likewise.
26661         * modules/utimensat (Depends-on): Likewise.
26662         * modules/localcharset (Depends-on): Likewise. Needed because of
26663         gl_FCNTL_O_FLAGS.
26664         * modules/wcrtomb (Depends-on): Likewise. Needed because of
26665         AC_TYPE_MBSTATE_T.
26666         * modules/wcsnrtombs (Depends-on): Likewise.
26667         * modules/wcsrtombs (Depends-on): Likewise.
26668
26669 2009-12-24  Bruno Haible  <bruno@clisp.org>
26670
26671         binary-io: Avoid gcc warning due to SET_BINARY.
26672         * lib/binary-io.h (SET_BINARY): Cast the result to void.
26673         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
26674
26675 2009-12-24  Bruno Haible  <bruno@clisp.org>
26676
26677         Avoid future namespace pollution on glibc systems.
26678         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
26679         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
26680         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
26681         glibc systems.
26682
26683 2009-12-24  Bruno Haible  <bruno@clisp.org>
26684
26685         Refactor common macros used in tests.
26686         * tests/macros.h: New file.
26687         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
26688         and/or <stdlib.h>, if appropriate.
26689         (ASSERT, SIZEOF): Remove macros.
26690         * tests/test-areadlink-with-size.c: Likewise.
26691         * tests/test-areadlinkat.c: Likewise.
26692         * tests/test-areadlinkat-with-size.c: Likewise.
26693         * tests/test-argmatch.c: Likewise.
26694         * tests/test-argv-iter.c: Likewise.
26695         * tests/test-array-mergesort.c: Likewise.
26696         * tests/test-array_list.c: Likewise.
26697         * tests/test-array_oset.c: Likewise.
26698         * tests/test-avltree_list.c: Likewise.
26699         * tests/test-avltree_oset.c: Likewise.
26700         * tests/test-avltreehash_list.c: Likewise.
26701         * tests/test-base64.c: Likewise.
26702         * tests/test-binary-io.c: Likewise.
26703         * tests/test-bitrotate.c: Likewise.
26704         * tests/test-btowc.c: Likewise.
26705         * tests/test-byteswap.c: Likewise.
26706         * tests/test-c-ctype.c: Likewise.
26707         * tests/test-c-stack.c: Likewise.
26708         * tests/test-c-strcasecmp.c: Likewise.
26709         * tests/test-c-strcasestr.c: Likewise.
26710         * tests/test-c-strncasecmp.c: Likewise.
26711         * tests/test-c-strstr.c: Likewise.
26712         * tests/test-canonicalize-lgpl.c: Likewise.
26713         * tests/test-canonicalize.c: Likewise.
26714         * tests/test-carray_list.c: Likewise.
26715         * tests/test-ceilf1.c: Likewise.
26716         * tests/test-ceilf2.c: Likewise.
26717         * tests/test-ceill.c: Likewise.
26718         * tests/test-chown.c: Likewise.
26719         * tests/test-cloexec.c: Likewise.
26720         * tests/test-copy-acl.c: Likewise.
26721         * tests/test-copy-file.c: Likewise.
26722         * tests/test-count-one-bits.c: Likewise.
26723         * tests/test-dprintf-posix.c: Likewise.
26724         * tests/test-dup2.c: Likewise.
26725         * tests/test-dup3.c: Likewise.
26726         * tests/test-duplocale.c: Likewise.
26727         * tests/test-fbufmode.c: Likewise.
26728         * tests/test-fchdir.c: Likewise.
26729         * tests/test-fchownat.c: Likewise.
26730         * tests/test-fcntl-safer.c: Likewise.
26731         * tests/test-fcntl.c: Likewise.
26732         * tests/test-fdopendir.c: Likewise.
26733         * tests/test-fdutimensat.c: Likewise.
26734         * tests/test-fflush2.c: Likewise.
26735         * tests/test-file-has-acl.c: Likewise.
26736         * tests/test-filevercmp.c: Likewise.
26737         * tests/test-flock.c: Likewise.
26738         * tests/test-floorf1.c: Likewise.
26739         * tests/test-floorf2.c: Likewise.
26740         * tests/test-floorl.c: Likewise.
26741         * tests/test-fnmatch.c: Likewise.
26742         * tests/test-fopen.h: Likewise.
26743         * tests/test-fpending.c: Likewise.
26744         * tests/test-fprintf-posix.c: Likewise.
26745         * tests/test-fpurge.c: Likewise.
26746         * tests/test-freadable.c: Likewise.
26747         * tests/test-freadahead.c: Likewise.
26748         * tests/test-freading.c: Likewise.
26749         * tests/test-freadptr.c: Likewise.
26750         * tests/test-freadptr2.c: Likewise.
26751         * tests/test-freadseek.c: Likewise.
26752         * tests/test-freopen.c: Likewise.
26753         * tests/test-frexp.c: Likewise.
26754         * tests/test-frexpl.c: Likewise.
26755         * tests/test-fseek.c: Likewise.
26756         * tests/test-fseeko.c: Likewise.
26757         * tests/test-fstatat.c: Likewise.
26758         * tests/test-fstrcmp.c: Likewise.
26759         * tests/test-fsync.c: Likewise.
26760         * tests/test-ftell.c: Likewise.
26761         * tests/test-ftello.c: Likewise.
26762         * tests/test-func.c: Likewise.
26763         * tests/test-futimens.c: Likewise.
26764         * tests/test-fwritable.c: Likewise.
26765         * tests/test-fwriting.c: Likewise.
26766         * tests/test-getcwd.c: Likewise.
26767         * tests/test-getdate.c: Likewise.
26768         * tests/test-getdelim.c: Likewise.
26769         * tests/test-getdtablesize.c: Likewise.
26770         * tests/test-getgroups.c: Likewise.
26771         * tests/test-getline.c: Likewise.
26772         * tests/test-getndelim2.c: Likewise.
26773         * tests/test-glob.c: Likewise.
26774         * tests/test-hash.c: Likewise.
26775         * tests/test-i-ring.c: Likewise.
26776         * tests/test-iconv-utf.c: Likewise.
26777         * tests/test-iconv.c: Likewise.
26778         * tests/test-idpriv-drop.c: Likewise.
26779         * tests/test-idpriv-droptemp.c: Likewise.
26780         * tests/test-inet_ntop.c: Likewise.
26781         * tests/test-inet_pton.c: Likewise.
26782         * tests/test-isblank.c: Likewise.
26783         * tests/test-isfinite.c: Likewise.
26784         * tests/test-isinf.c: Likewise.
26785         * tests/test-isnan.c: Likewise.
26786         * tests/test-isnand.h: Likewise.
26787         * tests/test-isnanf.h: Likewise.
26788         * tests/test-isnanl.h: Likewise.
26789         * tests/test-lchown.c: Likewise.
26790         * tests/test-ldexpl.c: Likewise.
26791         * tests/test-link.c: Likewise.
26792         * tests/test-linkat.c: Likewise.
26793         * tests/test-linked_list.c: Likewise.
26794         * tests/test-linkedhash_list.c: Likewise.
26795         * tests/test-localename.c: Likewise.
26796         * tests/test-lseek.c: Likewise.
26797         * tests/test-lstat.c: Likewise.
26798         * tests/test-mbmemcasecmp.c: Likewise.
26799         * tests/test-mbmemcasecoll.c: Likewise.
26800         * tests/test-mbrtowc.c: Likewise.
26801         * tests/test-mbscasecmp.c: Likewise.
26802         * tests/test-mbscasestr1.c: Likewise.
26803         * tests/test-mbscasestr2.c: Likewise.
26804         * tests/test-mbscasestr3.c: Likewise.
26805         * tests/test-mbscasestr4.c: Likewise.
26806         * tests/test-mbschr.c: Likewise.
26807         * tests/test-mbscspn.c: Likewise.
26808         * tests/test-mbsinit.c: Likewise.
26809         * tests/test-mbsncasecmp.c: Likewise.
26810         * tests/test-mbsnrtowcs.c: Likewise.
26811         * tests/test-mbspbrk.c: Likewise.
26812         * tests/test-mbspcasecmp.c: Likewise.
26813         * tests/test-mbsrchr.c: Likewise.
26814         * tests/test-mbsrtowcs.c: Likewise.
26815         * tests/test-mbsspn.c: Likewise.
26816         * tests/test-mbsstr1.c: Likewise.
26817         * tests/test-mbsstr2.c: Likewise.
26818         * tests/test-mbsstr3.c: Likewise.
26819         * tests/test-memchr.c: Likewise.
26820         * tests/test-memchr2.c: Likewise.
26821         * tests/test-memcmp.c: Likewise.
26822         * tests/test-memmem.c: Likewise.
26823         * tests/test-memrchr.c: Likewise.
26824         * tests/test-mkdir.c: Likewise.
26825         * tests/test-mkdirat.c: Likewise.
26826         * tests/test-mkfifo.c: Likewise.
26827         * tests/test-mkfifoat.c: Likewise.
26828         * tests/test-mknod.c: Likewise.
26829         * tests/test-nanosleep.c: Likewise.
26830         * tests/test-nl_langinfo.c: Likewise.
26831         * tests/test-obstack-printf.c: Likewise.
26832         * tests/test-open.c: Likewise.
26833         * tests/test-openat.c: Likewise.
26834         * tests/test-pipe-filter-gi1.c: Likewise.
26835         * tests/test-pipe-filter-gi2-main.c: Likewise.
26836         * tests/test-pipe-filter-ii1.c: Likewise.
26837         * tests/test-pipe-filter-ii2-main.c: Likewise.
26838         * tests/test-pipe2.c: Likewise.
26839         * tests/test-popen.h: Likewise.
26840         * tests/test-posixtm.c: Likewise.
26841         * tests/test-pread.c: Likewise.
26842         * tests/test-printf-frexp.c: Likewise.
26843         * tests/test-printf-frexpl.c: Likewise.
26844         * tests/test-printf-posix.c: Likewise.
26845         * tests/test-priv-set.c: Likewise.
26846         * tests/test-quotearg.c: Likewise.
26847         * tests/test-random_r.c: Likewise.
26848         * tests/test-rawmemchr.c: Likewise.
26849         * tests/test-rbtree_list.c: Likewise.
26850         * tests/test-rbtree_oset.c: Likewise.
26851         * tests/test-rbtreehash_list.c: Likewise.
26852         * tests/test-readlink.c: Likewise.
26853         * tests/test-remove.c: Likewise.
26854         * tests/test-rename.c: Likewise.
26855         * tests/test-renameat.c: Likewise.
26856         * tests/test-rmdir.c: Likewise.
26857         * tests/test-round1.c: Likewise.
26858         * tests/test-roundf1.c: Likewise.
26859         * tests/test-roundl.c: Likewise.
26860         * tests/test-safe-alloc.c: Likewise.
26861         * tests/test-sameacls.c: Likewise.
26862         * tests/test-set-mode-acl.c: Likewise.
26863         * tests/test-setenv.c: Likewise.
26864         * tests/test-sigaction.c: Likewise.
26865         * tests/test-signbit.c: Likewise.
26866         * tests/test-sleep.c: Likewise.
26867         * tests/test-snprintf-posix.c: Likewise.
26868         * tests/test-snprintf.c: Likewise.
26869         * tests/test-sprintf-posix.c: Likewise.
26870         * tests/test-stat-time.c: Likewise.
26871         * tests/test-stat.c: Likewise.
26872         * tests/test-strcasestr.c: Likewise.
26873         * tests/test-strchrnul.c: Likewise.
26874         * tests/test-strerror.c: Likewise.
26875         * tests/test-striconv.c: Likewise.
26876         * tests/test-striconveh.c: Likewise.
26877         * tests/test-striconveha.c: Likewise.
26878         * tests/test-strsignal.c: Likewise.
26879         * tests/test-strstr.c: Likewise.
26880         * tests/test-strtod.c: Likewise.
26881         * tests/test-strverscmp.c: Likewise.
26882         * tests/test-symlink.c: Likewise.
26883         * tests/test-symlinkat.c: Likewise.
26884         * tests/test-trunc1.c: Likewise.
26885         * tests/test-trunc2.c: Likewise.
26886         * tests/test-truncf1.c: Likewise.
26887         * tests/test-truncf2.c: Likewise.
26888         * tests/test-truncl.c: Likewise.
26889         * tests/test-uname.c: Likewise.
26890         * tests/test-unlink.c: Likewise.
26891         * tests/test-unlinkat.c: Likewise.
26892         * tests/test-unsetenv.c: Likewise.
26893         * tests/test-usleep.c: Likewise.
26894         * tests/test-utimens.c: Likewise.
26895         * tests/test-utimensat.c: Likewise.
26896         * tests/test-vasnprintf-posix.c: Likewise.
26897         * tests/test-vasnprintf-posix2.c: Likewise.
26898         * tests/test-vasnprintf.c: Likewise.
26899         * tests/test-vasprintf-posix.c: Likewise.
26900         * tests/test-vasprintf.c: Likewise.
26901         * tests/test-vdprintf-posix.c: Likewise.
26902         * tests/test-vfprintf-posix.c: Likewise.
26903         * tests/test-vprintf-posix.c: Likewise.
26904         * tests/test-vsnprintf-posix.c: Likewise.
26905         * tests/test-vsnprintf.c: Likewise.
26906         * tests/test-vsprintf-posix.c: Likewise.
26907         * tests/test-wcrtomb.c: Likewise.
26908         * tests/test-wcsnrtombs.c: Likewise.
26909         * tests/test-wcsrtombs.c: Likewise.
26910         * tests/test-wctype.c: Likewise.
26911         * tests/test-wcwidth.c: Likewise.
26912         * tests/test-xfprintf-posix.c: Likewise.
26913         * tests/test-xmemdup0.c: Likewise.
26914         * tests/test-xprintf-posix.c: Likewise.
26915         * tests/test-xvasprintf.c: Likewise.
26916         * tests/unicase/test-locale-language.c: Likewise.
26917         * tests/unicase/test-mapping-part1.h: Likewise.
26918         * tests/unicase/test-predicate-part1.h: Likewise.
26919         * tests/unicase/test-u8-casecmp.c: Likewise.
26920         * tests/unicase/test-u8-casecoll.c: Likewise.
26921         * tests/unicase/test-u8-casefold.c: Likewise.
26922         * tests/unicase/test-u8-is-cased.c: Likewise.
26923         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26924         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26925         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26926         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26927         * tests/unicase/test-u8-tolower.c: Likewise.
26928         * tests/unicase/test-u8-totitle.c: Likewise.
26929         * tests/unicase/test-u8-toupper.c: Likewise.
26930         * tests/unicase/test-u16-casecmp.c: Likewise.
26931         * tests/unicase/test-u16-casecoll.c: Likewise.
26932         * tests/unicase/test-u16-casefold.c: Likewise.
26933         * tests/unicase/test-u16-is-cased.c: Likewise.
26934         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26935         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26936         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26937         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26938         * tests/unicase/test-u16-tolower.c: Likewise.
26939         * tests/unicase/test-u16-totitle.c: Likewise.
26940         * tests/unicase/test-u16-toupper.c: Likewise.
26941         * tests/unicase/test-u32-casecmp.c: Likewise.
26942         * tests/unicase/test-u32-casecoll.c: Likewise.
26943         * tests/unicase/test-u32-casefold.c: Likewise.
26944         * tests/unicase/test-u32-is-cased.c: Likewise.
26945         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26946         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26947         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26948         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26949         * tests/unicase/test-u32-tolower.c: Likewise.
26950         * tests/unicase/test-u32-totitle.c: Likewise.
26951         * tests/unicase/test-u32-toupper.c: Likewise.
26952         * tests/unicase/test-ulc-casecmp.c: Likewise.
26953         * tests/unicase/test-ulc-casecoll.c: Likewise.
26954         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26955         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26956         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26957         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26958         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26959         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26960         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26961         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26962         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26963         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26964         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26965         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26966         * tests/unictype/test-bidi_byname.c: Likewise.
26967         * tests/unictype/test-bidi_name.c: Likewise.
26968         * tests/unictype/test-bidi_of.c: Likewise.
26969         * tests/unictype/test-bidi_test.c: Likewise.
26970         * tests/unictype/test-block_list.c: Likewise.
26971         * tests/unictype/test-block_of.c: Likewise.
26972         * tests/unictype/test-block_test.c: Likewise.
26973         * tests/unictype/test-categ_and.c: Likewise.
26974         * tests/unictype/test-categ_and_not.c: Likewise.
26975         * tests/unictype/test-categ_byname.c: Likewise.
26976         * tests/unictype/test-categ_name.c: Likewise.
26977         * tests/unictype/test-categ_none.c: Likewise.
26978         * tests/unictype/test-categ_of.c: Likewise.
26979         * tests/unictype/test-categ_or.c: Likewise.
26980         * tests/unictype/test-categ_test_withtable.c: Likewise.
26981         * tests/unictype/test-combining.c: Likewise.
26982         * tests/unictype/test-decdigit.c: Likewise.
26983         * tests/unictype/test-digit.c: Likewise.
26984         * tests/unictype/test-mirror.c: Likewise.
26985         * tests/unictype/test-numeric.c: Likewise.
26986         * tests/unictype/test-pr_byname.c: Likewise.
26987         * tests/unictype/test-pr_test.c: Likewise.
26988         * tests/unictype/test-predicate-part1.h: Likewise.
26989         * tests/unictype/test-scripts.c: Likewise.
26990         * tests/unictype/test-sy_c_ident.c: Likewise.
26991         * tests/unictype/test-sy_java_ident.c: Likewise.
26992         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26993         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26994         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26995         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26996         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26997         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26998         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26999         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
27000         * tests/uninorm/test-canonical-decomposition.c: Likewise.
27001         * tests/uninorm/test-compat-decomposition.c: Likewise.
27002         * tests/uninorm/test-composition.c: Likewise.
27003         * tests/uninorm/test-decomposing-form.c: Likewise.
27004         * tests/uninorm/test-decomposition.c: Likewise.
27005         * tests/uninorm/test-u8-nfc.c: Likewise.
27006         * tests/uninorm/test-u8-nfd.c: Likewise.
27007         * tests/uninorm/test-u8-nfkc.c: Likewise.
27008         * tests/uninorm/test-u8-nfkd.c: Likewise.
27009         * tests/uninorm/test-u8-normcmp.c: Likewise.
27010         * tests/uninorm/test-u8-normcoll.c: Likewise.
27011         * tests/uninorm/test-u16-nfc.c: Likewise.
27012         * tests/uninorm/test-u16-nfd.c: Likewise.
27013         * tests/uninorm/test-u16-nfkc.c: Likewise.
27014         * tests/uninorm/test-u16-nfkd.c: Likewise.
27015         * tests/uninorm/test-u16-normcmp.c: Likewise.
27016         * tests/uninorm/test-u16-normcoll.c: Likewise.
27017         * tests/uninorm/test-u32-nfc.c: Likewise.
27018         * tests/uninorm/test-u32-nfd.c: Likewise.
27019         * tests/uninorm/test-u32-nfkc.c: Likewise.
27020         * tests/uninorm/test-u32-nfkd.c: Likewise.
27021         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27022         * tests/uninorm/test-u32-normcmp.c: Likewise.
27023         * tests/uninorm/test-u32-normcoll.c: Likewise.
27024         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
27025         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
27026         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
27027         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
27028         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
27029         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
27030         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27031         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27032         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
27033         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
27034         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
27035         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
27036         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
27037         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27038         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27039         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
27040         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
27041         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
27042         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
27043         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
27044         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27045         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27046         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27047         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27048         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27049         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27050         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27051         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27052         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27053         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
27054         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
27055         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
27056         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
27057         * tests/uniwidth/test-u8-strwidth.c: Likewise.
27058         * tests/uniwidth/test-u8-width.c: Likewise.
27059         * tests/uniwidth/test-u16-strwidth.c: Likewise.
27060         * tests/uniwidth/test-u16-width.c: Likewise.
27061         * tests/uniwidth/test-u32-strwidth.c: Likewise.
27062         * tests/uniwidth/test-u32-width.c: Likewise.
27063         * tests/uniwidth/test-uc_width.c: Likewise.
27064         * tests/uniwidth/test-uc_width2.c: Likewise.
27065         * modules/acl-tests (Files): Add tests/macros.h.
27066         * modules/areadlink-tests (Files): Likewise.
27067         * modules/areadlink-with-size-tests (Files): Likewise.
27068         * modules/areadlinkat-tests (Files): Likewise.
27069         * modules/areadlinkat-with-size-tests (Files): Likewise.
27070         * modules/argmatch-tests (Files): Likewise.
27071         * modules/argv-iter-tests (Files): Likewise.
27072         * modules/array-list-tests (Files): Likewise.
27073         * modules/array-mergesort-tests (Files): Likewise.
27074         * modules/array-oset-tests (Files): Likewise.
27075         * modules/avltree-list-tests (Files): Likewise.
27076         * modules/avltree-oset-tests (Files): Likewise.
27077         * modules/avltreehash-list-tests (Files): Likewise.
27078         * modules/base64-tests (Files): Likewise.
27079         * modules/binary-io-tests (Files): Likewise.
27080         * modules/bitrotate-tests (Files): Likewise.
27081         * modules/btowc-tests (Files): Likewise.
27082         * modules/byteswap-tests (Files): Likewise.
27083         * modules/c-ctype-tests (Files): Likewise.
27084         * modules/c-stack-tests (Files): Likewise.
27085         * modules/c-strcase-tests (Files): Likewise.
27086         * modules/c-strcasestr-tests (Files): Likewise.
27087         * modules/c-strstr-tests (Files): Likewise.
27088         * modules/canonicalize-lgpl-tests (Files): Likewise.
27089         * modules/canonicalize-tests (Files): Likewise.
27090         * modules/carray-list-tests (Files): Likewise.
27091         * modules/ceilf-tests (Files): Likewise.
27092         * modules/ceill-tests (Files): Likewise.
27093         * modules/chown-tests (Files): Likewise.
27094         * modules/cloexec-tests (Files): Likewise.
27095         * modules/copy-file-tests (Files): Likewise.
27096         * modules/count-one-bits-tests (Files): Likewise.
27097         * modules/dprintf-posix-tests (Files): Likewise.
27098         * modules/dup2-tests (Files): Likewise.
27099         * modules/dup3-tests (Files): Likewise.
27100         * modules/duplocale-tests (Files): Likewise.
27101         * modules/fbufmode-tests (Files): Likewise.
27102         * modules/fchdir-tests (Files): Likewise.
27103         * modules/fcntl-safer-tests (Files): Likewise.
27104         * modules/fcntl-tests (Files): Likewise.
27105         * modules/fdopendir-tests (Files): Likewise.
27106         * modules/fdutimensat-tests (Files): Likewise.
27107         * modules/fflush-tests (Files): Likewise.
27108         * modules/filevercmp-tests (Files): Likewise.
27109         * modules/flock-tests (Files): Likewise.
27110         * modules/floorf-tests (Files): Likewise.
27111         * modules/floorl-tests (Files): Likewise.
27112         * modules/fnmatch-tests (Files): Likewise.
27113         * modules/fopen-safer-tests (Files): Likewise.
27114         * modules/fopen-tests (Files): Likewise.
27115         * modules/fpending-tests (Files): Likewise.
27116         * modules/fprintf-posix-tests (Files): Likewise.
27117         * modules/fpurge-tests (Files): Likewise.
27118         * modules/freadable-tests (Files): Likewise.
27119         * modules/freadahead-tests (Files): Likewise.
27120         * modules/freading-tests (Files): Likewise.
27121         * modules/freadptr-tests (Files): Likewise.
27122         * modules/freadseek-tests (Files): Likewise.
27123         * modules/freopen-tests (Files): Likewise.
27124         * modules/frexp-nolibm-tests (Files): Likewise.
27125         * modules/frexp-tests (Files): Likewise.
27126         * modules/frexpl-nolibm-tests (Files): Likewise.
27127         * modules/frexpl-tests (Files): Likewise.
27128         * modules/fseek-tests (Files): Likewise.
27129         * modules/fseeko-tests (Files): Likewise.
27130         * modules/fstrcmp-tests (Files): Likewise.
27131         * modules/fsync-tests (Files): Likewise.
27132         * modules/ftell-tests (Files): Likewise.
27133         * modules/ftello-tests (Files): Likewise.
27134         * modules/func-tests (Files): Likewise.
27135         * modules/futimens-tests (Files): Likewise.
27136         * modules/fwritable-tests (Files): Likewise.
27137         * modules/fwriting-tests (Files): Likewise.
27138         * modules/getcwd-tests (Files): Likewise.
27139         * modules/getdate-tests (Files): Likewise.
27140         * modules/getdelim-tests (Files): Likewise.
27141         * modules/getdtablesize-tests (Files): Likewise.
27142         * modules/getgroups-tests (Files): Likewise.
27143         * modules/getline-tests (Files): Likewise.
27144         * modules/getndelim2-tests (Files): Likewise.
27145         * modules/glob-tests (Files): Likewise.
27146         * modules/hash-tests (Files): Likewise.
27147         * modules/i-ring-tests (Files): Likewise.
27148         * modules/iconv-tests (Files): Likewise.
27149         * modules/iconv_open-utf-tests (Files): Likewise.
27150         * modules/idpriv-drop-tests (Files): Likewise.
27151         * modules/idpriv-droptemp-tests (Files): Likewise.
27152         * modules/inet_ntop-tests (Files): Likewise.
27153         * modules/inet_pton-tests (Files): Likewise.
27154         * modules/isblank-tests (Files): Likewise.
27155         * modules/isfinite-tests (Files): Likewise.
27156         * modules/isinf-tests (Files): Likewise.
27157         * modules/isnan-tests (Files): Likewise.
27158         * modules/isnand-nolibm-tests (Files): Likewise.
27159         * modules/isnand-tests (Files): Likewise.
27160         * modules/isnanf-nolibm-tests (Files): Likewise.
27161         * modules/isnanf-tests (Files): Likewise.
27162         * modules/isnanl-nolibm-tests (Files): Likewise.
27163         * modules/isnanl-tests (Files): Likewise.
27164         * modules/lchown-tests (Files): Likewise.
27165         * modules/ldexpl-tests (Files): Likewise.
27166         * modules/link-tests (Files): Likewise.
27167         * modules/linkat-tests (Files): Likewise.
27168         * modules/linked-list-tests (Files): Likewise.
27169         * modules/linkedhash-list-tests (Files): Likewise.
27170         * modules/localename-tests (Files): Likewise.
27171         * modules/lseek-tests (Files): Likewise.
27172         * modules/lstat-tests (Files): Likewise.
27173         * modules/mbmemcasecmp-tests (Files): Likewise.
27174         * modules/mbmemcasecoll-tests (Files): Likewise.
27175         * modules/mbrtowc-tests (Files): Likewise.
27176         * modules/mbscasecmp-tests (Files): Likewise.
27177         * modules/mbscasestr-tests (Files): Likewise.
27178         * modules/mbschr-tests (Files): Likewise.
27179         * modules/mbscspn-tests (Files): Likewise.
27180         * modules/mbsinit-tests (Files): Likewise.
27181         * modules/mbsncasecmp-tests (Files): Likewise.
27182         * modules/mbsnrtowcs-tests (Files): Likewise.
27183         * modules/mbspbrk-tests (Files): Likewise.
27184         * modules/mbspcasecmp-tests (Files): Likewise.
27185         * modules/mbsrchr-tests (Files): Likewise.
27186         * modules/mbsrtowcs-tests (Files): Likewise.
27187         * modules/mbsspn-tests (Files): Likewise.
27188         * modules/mbsstr-tests (Files): Likewise.
27189         * modules/memchr-tests (Files): Likewise.
27190         * modules/memchr2-tests (Files): Likewise.
27191         * modules/memcmp-tests (Files): Likewise.
27192         * modules/memmem-tests (Files): Likewise.
27193         * modules/memrchr-tests (Files): Likewise.
27194         * modules/mkdir-tests (Files): Likewise.
27195         * modules/mkfifo-tests (Files): Likewise.
27196         * modules/mkfifoat-tests (Files): Likewise.
27197         * modules/mknod-tests (Files): Likewise.
27198         * modules/nanosleep-tests (Files): Likewise.
27199         * modules/nl_langinfo-tests (Files): Likewise.
27200         * modules/obstack-printf-tests (Files): Likewise.
27201         * modules/open-tests (Files): Likewise.
27202         * modules/openat-tests (Files): Likewise.
27203         * modules/pipe-filter-gi-tests (Files): Likewise.
27204         * modules/pipe-filter-ii-tests (Files): Likewise.
27205         * modules/pipe2-tests (Files): Likewise.
27206         * modules/popen-safer-tests (Files): Likewise.
27207         * modules/popen-tests (Files): Likewise.
27208         * modules/posixtm-tests (Files): Likewise.
27209         * modules/pread-tests (Files): Likewise.
27210         * modules/printf-frexp-tests (Files): Likewise.
27211         * modules/printf-frexpl-tests (Files): Likewise.
27212         * modules/printf-posix-tests (Files): Likewise.
27213         * modules/priv-set-tests (Files): Likewise.
27214         * modules/quotearg-tests (Files): Likewise.
27215         * modules/random_r-tests (Files): Likewise.
27216         * modules/rawmemchr-tests (Files): Likewise.
27217         * modules/rbtree-list-tests (Files): Likewise.
27218         * modules/rbtree-oset-tests (Files): Likewise.
27219         * modules/rbtreehash-list-tests (Files): Likewise.
27220         * modules/readlink-tests (Files): Likewise.
27221         * modules/remove-tests (Files): Likewise.
27222         * modules/rename-tests (Files): Likewise.
27223         * modules/renameat-tests (Files): Likewise.
27224         * modules/rmdir-tests (Files): Likewise.
27225         * modules/round-tests (Files): Likewise.
27226         * modules/roundf-tests (Files): Likewise.
27227         * modules/roundl-tests (Files): Likewise.
27228         * modules/safe-alloc-tests (Files): Likewise.
27229         * modules/setenv-tests (Files): Likewise.
27230         * modules/sigaction-tests (Files): Likewise.
27231         * modules/signbit-tests (Files): Likewise.
27232         * modules/sleep-tests (Files): Likewise.
27233         * modules/snprintf-posix-tests (Files): Likewise.
27234         * modules/snprintf-tests (Files): Likewise.
27235         * modules/sprintf-posix-tests (Files): Likewise.
27236         * modules/stat-tests (Files): Likewise.
27237         * modules/stat-time-tests (Files): Likewise.
27238         * modules/strcasestr-tests (Files): Likewise.
27239         * modules/strchrnul-tests (Files): Likewise.
27240         * modules/strerror-tests (Files): Likewise.
27241         * modules/striconv-tests (Files): Likewise.
27242         * modules/striconveh-tests (Files): Likewise.
27243         * modules/striconveha-tests (Files): Likewise.
27244         * modules/strsignal-tests (Files): Likewise.
27245         * modules/strstr-tests (Files): Likewise.
27246         * modules/strtod-tests (Files): Likewise.
27247         * modules/strverscmp-tests (Files): Likewise.
27248         * modules/symlink-tests (Files): Likewise.
27249         * modules/symlinkat-tests (Files): Likewise.
27250         * modules/trunc-tests (Files): Likewise.
27251         * modules/truncf-tests (Files): Likewise.
27252         * modules/truncl-tests (Files): Likewise.
27253         * modules/uname-tests (Files): Likewise.
27254         * modules/unicase/cased-tests (Files): Likewise.
27255         * modules/unicase/ignorable-tests (Files): Likewise.
27256         * modules/unicase/locale-language-tests (Files): Likewise.
27257         * modules/unicase/tolower-tests (Files): Likewise.
27258         * modules/unicase/totitle-tests (Files): Likewise.
27259         * modules/unicase/toupper-tests (Files): Likewise.
27260         * modules/unicase/u8-casecmp-tests (Files): Likewise.
27261         * modules/unicase/u8-casecoll-tests (Files): Likewise.
27262         * modules/unicase/u8-casefold-tests (Files): Likewise.
27263         * modules/unicase/u8-is-cased-tests (Files): Likewise.
27264         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
27265         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
27266         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
27267         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
27268         * modules/unicase/u8-tolower-tests (Files): Likewise.
27269         * modules/unicase/u8-totitle-tests (Files): Likewise.
27270         * modules/unicase/u8-toupper-tests (Files): Likewise.
27271         * modules/unicase/u16-casecmp-tests (Files): Likewise.
27272         * modules/unicase/u16-casecoll-tests (Files): Likewise.
27273         * modules/unicase/u16-casefold-tests (Files): Likewise.
27274         * modules/unicase/u16-is-cased-tests (Files): Likewise.
27275         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
27276         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
27277         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
27278         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
27279         * modules/unicase/u16-tolower-tests (Files): Likewise.
27280         * modules/unicase/u16-totitle-tests (Files): Likewise.
27281         * modules/unicase/u16-toupper-tests (Files): Likewise.
27282         * modules/unicase/u32-casecmp-tests (Files): Likewise.
27283         * modules/unicase/u32-casecoll-tests (Files): Likewise.
27284         * modules/unicase/u32-casefold-tests (Files): Likewise.
27285         * modules/unicase/u32-is-cased-tests (Files): Likewise.
27286         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
27287         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
27288         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
27289         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
27290         * modules/unicase/u32-tolower-tests (Files): Likewise.
27291         * modules/unicase/u32-totitle-tests (Files): Likewise.
27292         * modules/unicase/u32-toupper-tests (Files): Likewise.
27293         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
27294         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
27295         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
27296         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
27297         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
27298         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
27299         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
27300         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
27301         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
27302         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
27303         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
27304         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
27305         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
27306         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
27307         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
27308         * modules/unictype/bidicategory-name-tests (Files): Likewise.
27309         * modules/unictype/bidicategory-of-tests (Files): Likewise.
27310         * modules/unictype/bidicategory-test-tests (Files): Likewise.
27311         * modules/unictype/block-list-tests (Files): Likewise.
27312         * modules/unictype/block-of-tests (Files): Likewise.
27313         * modules/unictype/block-test-tests (Files): Likewise.
27314         * modules/unictype/category-C-tests (Files): Likewise.
27315         * modules/unictype/category-Cc-tests (Files): Likewise.
27316         * modules/unictype/category-Cf-tests (Files): Likewise.
27317         * modules/unictype/category-Cn-tests (Files): Likewise.
27318         * modules/unictype/category-Co-tests (Files): Likewise.
27319         * modules/unictype/category-Cs-tests (Files): Likewise.
27320         * modules/unictype/category-L-tests (Files): Likewise.
27321         * modules/unictype/category-Ll-tests (Files): Likewise.
27322         * modules/unictype/category-Lm-tests (Files): Likewise.
27323         * modules/unictype/category-Lo-tests (Files): Likewise.
27324         * modules/unictype/category-Lt-tests (Files): Likewise.
27325         * modules/unictype/category-Lu-tests (Files): Likewise.
27326         * modules/unictype/category-M-tests (Files): Likewise.
27327         * modules/unictype/category-Mc-tests (Files): Likewise.
27328         * modules/unictype/category-Me-tests (Files): Likewise.
27329         * modules/unictype/category-Mn-tests (Files): Likewise.
27330         * modules/unictype/category-N-tests (Files): Likewise.
27331         * modules/unictype/category-Nd-tests (Files): Likewise.
27332         * modules/unictype/category-Nl-tests (Files): Likewise.
27333         * modules/unictype/category-No-tests (Files): Likewise.
27334         * modules/unictype/category-P-tests (Files): Likewise.
27335         * modules/unictype/category-Pc-tests (Files): Likewise.
27336         * modules/unictype/category-Pd-tests (Files): Likewise.
27337         * modules/unictype/category-Pe-tests (Files): Likewise.
27338         * modules/unictype/category-Pf-tests (Files): Likewise.
27339         * modules/unictype/category-Pi-tests (Files): Likewise.
27340         * modules/unictype/category-Po-tests (Files): Likewise.
27341         * modules/unictype/category-Ps-tests (Files): Likewise.
27342         * modules/unictype/category-S-tests (Files): Likewise.
27343         * modules/unictype/category-Sc-tests (Files): Likewise.
27344         * modules/unictype/category-Sk-tests (Files): Likewise.
27345         * modules/unictype/category-Sm-tests (Files): Likewise.
27346         * modules/unictype/category-So-tests (Files): Likewise.
27347         * modules/unictype/category-Z-tests (Files): Likewise.
27348         * modules/unictype/category-Zl-tests (Files): Likewise.
27349         * modules/unictype/category-Zp-tests (Files): Likewise.
27350         * modules/unictype/category-Zs-tests (Files): Likewise.
27351         * modules/unictype/category-and-not-tests (Files): Likewise.
27352         * modules/unictype/category-and-tests (Files): Likewise.
27353         * modules/unictype/category-byname-tests (Files): Likewise.
27354         * modules/unictype/category-name-tests (Files): Likewise.
27355         * modules/unictype/category-none-tests (Files): Likewise.
27356         * modules/unictype/category-of-tests (Files): Likewise.
27357         * modules/unictype/category-or-tests (Files): Likewise.
27358         * modules/unictype/category-test-withtable-tests (Files): Likewise.
27359         * modules/unictype/combining-class-tests (Files): Likewise.
27360         * modules/unictype/ctype-alnum-tests (Files): Likewise.
27361         * modules/unictype/ctype-alpha-tests (Files): Likewise.
27362         * modules/unictype/ctype-blank-tests (Files): Likewise.
27363         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
27364         * modules/unictype/ctype-digit-tests (Files): Likewise.
27365         * modules/unictype/ctype-graph-tests (Files): Likewise.
27366         * modules/unictype/ctype-lower-tests (Files): Likewise.
27367         * modules/unictype/ctype-print-tests (Files): Likewise.
27368         * modules/unictype/ctype-punct-tests (Files): Likewise.
27369         * modules/unictype/ctype-space-tests (Files): Likewise.
27370         * modules/unictype/ctype-upper-tests (Files): Likewise.
27371         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
27372         * modules/unictype/decimal-digit-tests (Files): Likewise.
27373         * modules/unictype/digit-tests (Files): Likewise.
27374         * modules/unictype/mirror-tests (Files): Likewise.
27375         * modules/unictype/numeric-tests (Files): Likewise.
27376         * modules/unictype/property-alphabetic-tests (Files): Likewise.
27377         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
27378         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
27379         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
27380         Likewise.
27381         * modules/unictype/property-bidi-block-separator-tests (Files):
27382         Likewise.
27383         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
27384         Likewise.
27385         * modules/unictype/property-bidi-common-separator-tests (Files):
27386         Likewise.
27387         * modules/unictype/property-bidi-control-tests (Files): Likewise.
27388         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
27389         Likewise.
27390         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
27391         Likewise.
27392         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
27393         Likewise.
27394         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
27395         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
27396         Likewise.
27397         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
27398         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
27399         Likewise.
27400         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
27401         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
27402         * modules/unictype/property-bidi-segment-separator-tests (Files):
27403         Likewise.
27404         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
27405         * modules/unictype/property-byname-tests (Files): Likewise.
27406         * modules/unictype/property-combining-tests (Files): Likewise.
27407         * modules/unictype/property-composite-tests (Files): Likewise.
27408         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
27409         * modules/unictype/property-dash-tests (Files): Likewise.
27410         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
27411         * modules/unictype/property-default-ignorable-code-point-tests (Files):
27412         Likewise.
27413         * modules/unictype/property-deprecated-tests (Files): Likewise.
27414         * modules/unictype/property-diacritic-tests (Files): Likewise.
27415         * modules/unictype/property-extender-tests (Files): Likewise.
27416         * modules/unictype/property-format-control-tests (Files): Likewise.
27417         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
27418         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
27419         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
27420         * modules/unictype/property-hex-digit-tests (Files): Likewise.
27421         * modules/unictype/property-hyphen-tests (Files): Likewise.
27422         * modules/unictype/property-id-continue-tests (Files): Likewise.
27423         * modules/unictype/property-id-start-tests (Files): Likewise.
27424         * modules/unictype/property-ideographic-tests (Files): Likewise.
27425         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
27426         * modules/unictype/property-ids-trinary-operator-tests (Files):
27427         Likewise.
27428         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
27429         * modules/unictype/property-iso-control-tests (Files): Likewise.
27430         * modules/unictype/property-join-control-tests (Files): Likewise.
27431         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
27432         * modules/unictype/property-line-separator-tests (Files): Likewise.
27433         * modules/unictype/property-logical-order-exception-tests (Files):
27434         Likewise.
27435         * modules/unictype/property-lowercase-tests (Files): Likewise.
27436         * modules/unictype/property-math-tests (Files): Likewise.
27437         * modules/unictype/property-non-break-tests (Files): Likewise.
27438         * modules/unictype/property-not-a-character-tests (Files): Likewise.
27439         * modules/unictype/property-numeric-tests (Files): Likewise.
27440         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
27441         * modules/unictype/property-other-default-ignorable-code-point-tests
27442         (Files): Likewise.
27443         * modules/unictype/property-other-grapheme-extend-tests (Files):
27444         Likewise.
27445         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
27446         * modules/unictype/property-other-id-start-tests (Files): Likewise.
27447         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
27448         * modules/unictype/property-other-math-tests (Files): Likewise.
27449         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
27450         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
27451         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
27452         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
27453         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
27454         * modules/unictype/property-private-use-tests (Files): Likewise.
27455         * modules/unictype/property-punctuation-tests (Files): Likewise.
27456         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
27457         * modules/unictype/property-radical-tests (Files): Likewise.
27458         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
27459         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
27460         * modules/unictype/property-space-tests (Files): Likewise.
27461         * modules/unictype/property-terminal-punctuation-tests (Files):
27462         Likewise.
27463         * modules/unictype/property-test-tests (Files): Likewise.
27464         * modules/unictype/property-titlecase-tests (Files): Likewise.
27465         * modules/unictype/property-unassigned-code-value-tests (Files):
27466         Likewise.
27467         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
27468         * modules/unictype/property-uppercase-tests (Files): Likewise.
27469         * modules/unictype/property-variation-selector-tests (Files): Likewise.
27470         * modules/unictype/property-white-space-tests (Files): Likewise.
27471         * modules/unictype/property-xid-continue-tests (Files): Likewise.
27472         * modules/unictype/property-xid-start-tests (Files): Likewise.
27473         * modules/unictype/property-zero-width-tests (Files): Likewise.
27474         * modules/unictype/scripts-tests (Files): Likewise.
27475         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
27476         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
27477         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
27478         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
27479         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
27480         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
27481         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
27482         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
27483         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
27484         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
27485         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
27486         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
27487         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
27488         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
27489         * modules/uninorm/composition-tests (Files): Likewise.
27490         * modules/uninorm/decomposing-form-tests (Files): Likewise.
27491         * modules/uninorm/decomposition-tests (Files): Likewise.
27492         * modules/uninorm/filter-tests (Files): Likewise.
27493         * modules/uninorm/nfc-tests (Files): Likewise.
27494         * modules/uninorm/nfd-tests (Files): Likewise.
27495         * modules/uninorm/nfkc-tests (Files): Likewise.
27496         * modules/uninorm/nfkd-tests (Files): Likewise.
27497         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
27498         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
27499         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
27500         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
27501         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
27502         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
27503         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
27504         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27505         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
27506         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
27507         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
27508         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
27509         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27510         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
27511         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
27512         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
27513         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
27514         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27515         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
27516         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
27517         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
27518         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
27519         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27520         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
27521         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
27522         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
27523         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
27524         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
27525         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
27526         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
27527         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
27528         * modules/uniwidth/u8-width-tests (Files): Likewise.
27529         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
27530         * modules/uniwidth/u16-width-tests (Files): Likewise.
27531         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
27532         * modules/uniwidth/u32-width-tests (Files): Likewise.
27533         * modules/uniwidth/width-tests (Files): Likewise.
27534         * modules/unlink-tests (Files): Likewise.
27535         * modules/unsetenv-tests (Files): Likewise.
27536         * modules/usleep-tests (Files): Likewise.
27537         * modules/utimens-tests (Files): Likewise.
27538         * modules/utimensat-tests (Files): Likewise.
27539         * modules/vasnprintf-posix-tests (Files): Likewise.
27540         * modules/vasnprintf-tests (Files): Likewise.
27541         * modules/vasprintf-posix-tests (Files): Likewise.
27542         * modules/vasprintf-tests (Files): Likewise.
27543         * modules/vdprintf-posix-tests (Files): Likewise.
27544         * modules/vfprintf-posix-tests (Files): Likewise.
27545         * modules/vprintf-posix-tests (Files): Likewise.
27546         * modules/vsnprintf-posix-tests (Files): Likewise.
27547         * modules/vsnprintf-tests (Files): Likewise.
27548         * modules/vsprintf-posix-tests (Files): Likewise.
27549         * modules/wcrtomb-tests (Files): Likewise.
27550         * modules/wcsnrtombs-tests (Files): Likewise.
27551         * modules/wcsrtombs-tests (Files): Likewise.
27552         * modules/wctype-tests (Files): Likewise.
27553         * modules/wcwidth-tests (Files): Likewise.
27554         * modules/xmemdup0-tests (Files): Likewise.
27555         * modules/xprintf-posix-tests (Files): Likewise.
27556         * modules/xvasprintf-tests (Files): Likewise.
27557
27558 2009-12-24  Eric Blake  <ebb9@byu.net>
27559
27560         test-nanosleep: fix typo
27561         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
27562         patch.
27563         Reported by Bruno Haible.
27564
27565 2009-12-24  Bruno Haible  <bruno@clisp.org>
27566
27567         Reduce namespace pollution on glibc systems.
27568         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
27569         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
27570         systems.
27571         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
27572         <getopt.h> on glibc systems.
27573         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
27574         systems.
27575         * lib/fcntl.c: Include <unistd.h> here instead.
27576
27577 2009-12-24  Bruno Haible  <bruno@clisp.org>
27578
27579         * lib/stdlib.in.h (includes): Fix typo in today's commit.
27580
27581 2009-12-24  Eric Blake  <ebb9@byu.net>
27582
27583         tests: add signature checks
27584         * tests/signature.h (SIGNATURE_CHECK): New file.
27585         * modules/atexit-tests (Files): Use it.
27586         * modules/btowc-tests (Files): Likewise.
27587         * modules/canonicalize-lgpl-tests (Files): Likewise.
27588         * modules/ceilf-tests (Files): Likewise.
27589         * modules/ceill-tests (Files): Likewise.
27590         * modules/chown-tests (Files): Likewise.
27591         * modules/dprintf-posix-tests (Files): Likewise.
27592         * modules/dup2-tests (Files): Likewise.
27593         * modules/dup3-tests (Files): Likewise.
27594         * modules/duplocale-tests (Files): Likewise.
27595         * modules/fchdir-tests (Files): Likewise.
27596         * modules/fcntl-tests (Files): Likewise.
27597         * modules/fdopendir-tests (Files): Likewise.
27598         * modules/fflush-tests (Files): Likewise.
27599         * modules/flock-tests (Files): Likewise.
27600         * modules/floorf-tests (Files): Likewise.
27601         * modules/floorl-tests (Files): Likewise.
27602         * modules/fnmatch-tests (Files): Likewise.
27603         * modules/fopen-tests (Files): Likewise.
27604         * modules/fprintf-posix-tests (Files): Likewise.
27605         * modules/freopen-tests (Files): Likewise.
27606         * modules/frexp-nolibm-tests (Files): Likewise.
27607         * modules/frexp-tests (Files): Likewise.
27608         * modules/frexpl-nolibm-tests (Files): Likewise.
27609         * modules/frexpl-tests (Files): Likewise.
27610         * modules/fseek-tests (Files): Likewise.
27611         * modules/fseeko-tests (Files): Likewise.
27612         * modules/fsync-tests (Files): Likewise.
27613         * modules/ftell-tests (Files): Likewise.
27614         * modules/ftello-tests (Files): Likewise.
27615         * modules/futimens-tests (Files): Likewise.
27616         * modules/getaddrinfo-tests (Files): Likewise.
27617         * modules/getcwd-tests (Files): Likewise.
27618         * modules/getdelim-tests (Files): Likewise.
27619         * modules/getdtablesize-tests (Files): Likewise.
27620         * modules/getgroups-tests (Files): Likewise.
27621         * modules/gethostname-tests (Files): Likewise.
27622         * modules/getline-tests (Files): Likewise.
27623         * modules/getopt-posix-tests (Files): Likewise.
27624         * modules/gettimeofday-tests (Files): Likewise.
27625         * modules/glob-tests (Files): Likewise.
27626         * modules/iconv-tests (Files): Likewise.
27627         * modules/inet_ntop-tests (Files): Likewise.
27628         * modules/inet_pton-tests (Files): Likewise.
27629         * modules/isblank-tests (Files): Likewise.
27630         * modules/lchown-tests (Files): Likewise.
27631         * modules/ldexpl-tests (Files): Likewise.
27632         * modules/link-tests (Files): Likewise.
27633         * modules/linkat-tests (Files): Likewise.
27634         * modules/lseek-tests (Files): Likewise.
27635         * modules/lstat-tests (Files): Likewise.
27636         * modules/mbrtowc-tests (Files): Likewise.
27637         * modules/mbsinit-tests (Files): Likewise.
27638         * modules/mbsnrtowcs-tests (Files): Likewise.
27639         * modules/mbsrtowcs-tests (Files): Likewise.
27640         * modules/memchr-tests (Files): Likewise.
27641         * modules/memcmp-tests (Files): Likewise.
27642         * modules/memmem-tests (Files): Likewise.
27643         * modules/memrchr-tests (Files): Likewise.
27644         * modules/mkdir-tests (Files): Likewise.
27645         * modules/mkfifo-tests (Files): Likewise.
27646         * modules/mkfifoat-tests (Files): Likewise.
27647         * modules/mknod-tests (Files): Likewise.
27648         * modules/nanosleep-tests (Files): Likewise.
27649         * modules/nl_langinfo-tests (Files): Likewise.
27650         * modules/obstack-printf-tests (Files): Likewise.
27651         * modules/open-tests (Files): Likewise.
27652         * modules/openat-tests (Files): Likewise.
27653         * modules/perror-tests (Files): Likewise.
27654         * modules/pipe2-tests (Files): Likewise.
27655         * modules/poll-tests (Files): Likewise.
27656         * modules/popen-tests (Files): Likewise.
27657         * modules/posix_spawn-tests (Files): Likewise.
27658         * modules/posix_spawnp-tests (Files): Likewise.
27659         * modules/pread-tests (Files): Likewise.
27660         * modules/printf-posix-tests (Files): Likewise.
27661         * modules/pty-tests (Files): Likewise.
27662         * modules/random_r-tests (Files): Likewise.
27663         * modules/rawmemchr-tests (Files): Likewise.
27664         * modules/readlink-tests (Files): Likewise.
27665         * modules/remove-tests (Files): Likewise.
27666         * modules/rename-tests (Files): Likewise.
27667         * modules/renameat-tests (Files): Likewise.
27668         * modules/rmdir-tests (Files): Likewise.
27669         * modules/round-tests (Files): Likewise.
27670         * modules/roundf-tests (Files): Likewise.
27671         * modules/roundl-tests (Files): Likewise.
27672         * modules/select-tests (Files): Likewise.
27673         * modules/setenv-tests (Files): Likewise.
27674         * modules/sigaction-tests (Files): Likewise.
27675         * modules/sleep-tests (Files): Likewise.
27676         * modules/snprintf-posix-tests (Files): Likewise.
27677         * modules/snprintf-tests (Files): Likewise.
27678         * modules/sprintf-posix-tests (Files): Likewise.
27679         * modules/stat-tests (Files): Likewise.
27680         * modules/strcasestr-tests (Files): Likewise.
27681         * modules/strchrnul-tests (Files): Likewise.
27682         * modules/strerror-tests (Files): Likewise.
27683         * modules/strsignal-tests (Files): Likewise.
27684         * modules/strstr-tests (Files): Likewise.
27685         * modules/strtod-tests (Files): Likewise.
27686         * modules/strverscmp-tests (Files): Likewise.
27687         * modules/symlink-tests (Files): Likewise.
27688         * modules/symlinkat-tests (Files): Likewise.
27689         * modules/times-tests (Files): Likewise.
27690         * modules/trunc-tests (Files): Likewise.
27691         * modules/truncf-tests (Files): Likewise.
27692         * modules/truncl-tests (Files): Likewise.
27693         * modules/tsearch-tests (Files): Likewise.
27694         * modules/uname-tests (Files): Likewise.
27695         * modules/unlink-tests (Files): Likewise.
27696         * modules/unsetenv-tests (Files): Likewise.
27697         * modules/usleep-tests (Files): Likewise.
27698         * modules/utimensat-tests (Files): Likewise.
27699         * modules/vasprintf-tests (Files): Likewise.
27700         * modules/vdprintf-posix-tests (Files): Likewise.
27701         * modules/vfprintf-posix-tests (Files): Likewise.
27702         * modules/vprintf-posix-tests (Files): Likewise.
27703         * modules/vsnprintf-posix-tests (Files): Likewise.
27704         * modules/vsnprintf-tests (Files): Likewise.
27705         * modules/vsprintf-posix-tests (Files): Likewise.
27706         * modules/wcrtomb-tests (Files): Likewise.
27707         * modules/wcsnrtombs-tests (Files): Likewise.
27708         * modules/wcsrtombs-tests (Files): Likewise.
27709         * modules/wcwidth-tests (Files): Likewise.
27710         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
27711         * tests/test-isinf.c (isinf): Likewise.
27712         * tests/test-isnan.c (isnan): Likewise.
27713         * tests/test-signbit.c (signbit): Likewise.
27714         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
27715         declaration, either as macro or with correct signature.
27716         (select): Ensure function under test is declared with correct
27717         signature in correct header.
27718         * tests/test-atexit.c (atexit): Likewise.
27719         * tests/test-btowc.c (btowc): Likewise.
27720         * tests/test-canonicalize-lgpl.c (realpath)
27721         (canonicalize_file_name): Likewise.
27722         * tests/test-ceilf1.c (ceilf): Likewise.
27723         * tests/test-ceill.c (ceill): Likewise.
27724         * tests/test-chown.c (chown): Likewise.
27725         * tests/test-dprintf-posix.c (dprintf): Likewise.
27726         * tests/test-dup2.c (dup2): Likewise.
27727         * tests/test-dup3.c (dup3): Likewise.
27728         * tests/test-duplocale.c (duplocale): Likewise.
27729         * tests/test-fchdir.c (fchdir): Likewise.
27730         * tests/test-fchownat.c (fchownat): Likewise.
27731         * tests/test-fcntl.c (fcntl): Likewise.
27732         * tests/test-fdopendir.c (fdopendir): Likewise.
27733         * tests/test-fflush.c (fflush): Likewise.
27734         * tests/test-flock.c (flock): Likewise.
27735         * tests/test-floorf1.c (floorf): Likewise.
27736         * tests/test-floorl.c (floorl): Likewise.
27737         * tests/test-fnmatch.c (fnmatch): Likewise.
27738         * tests/test-fopen.c (fopen): Likewise.
27739         * tests/test-fprintf-posix.c (fprintf): Likewise.
27740         * tests/test-freopen.c (freopen): Likewise.
27741         * tests/test-frexp.c (frexp): Likewise.
27742         * tests/test-frexpl.c (frexpl): Likewise.
27743         * tests/test-fseek.c (fseek): Likewise.
27744         * tests/test-fseeko.c (fseeko): Likewise.
27745         * tests/test-fstatat.c (fstatat): Likewise.
27746         * tests/test-fsync.c (fsync): Likewise.
27747         * tests/test-ftell.c (ftell): Likewise.
27748         * tests/test-ftello.c (ftello): Likewise.
27749         * tests/test-futimens.c (futimens): Likewise.
27750         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
27751         (gai_strerror): Likewise.
27752         * tests/test-getcwd.c (getcwd): Likewise.
27753         * tests/test-getdelim.c (getdelim): Likewise.
27754         * tests/test-getdtablesize.c (getdtablesize): Likewise.
27755         * tests/test-getgroups.c (getgroups): Likewise.
27756         * tests/test-gethostname.c (gethostname): Likewise.
27757         * tests/test-getline.c (getline): Likewise.
27758         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
27759         Likewise.
27760         * tests/test-gettimeofday.c (gettimeofday): Likewise.
27761         * tests/test-glob.c (glob, globfree): Likewise.
27762         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
27763         * tests/test-inet_ntop.c (inet_ntop): Likewise.
27764         * tests/test-inet_pton.c (inet_pton): Likewise.
27765         * tests/test-isblank.c (isblank): Likewise.
27766         * tests/test-lchown.c (lchown): Likewise.
27767         * tests/test-ldexpl.c (ldexpl): Likewise.
27768         * tests/test-link.c (link): Likewise.
27769         * tests/test-linkat.c (linkat): Likewise.
27770         * tests/test-lseek.c (lseek): Likewise.
27771         * tests/test-lstat.c (lstat): Likewise.
27772         * tests/test-mbrtowc.c (mbrtowc): Likewise.
27773         * tests/test-mbsinit.c (mbsinit): Likewise.
27774         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
27775         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
27776         * tests/test-memchr.c (memchr): Likewise.
27777         * tests/test-memcmp.c (memcmp): Likewise.
27778         * tests/test-memmem.c (memmem): Likewise.
27779         * tests/test-memrchr.c (memrchr): Likewise.
27780         * tests/test-mkdir.c (mkdir): Likewise.
27781         * tests/test-mkdirat.c (mkdirat): Likewise.
27782         * tests/test-mkfifo.c (mkfifo): Likewise.
27783         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
27784         * tests/test-mknod.c (mknod): Likewise.
27785         * tests/test-nanosleep.c (nanosleep): Likewise.
27786         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
27787         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
27788         Likewise.
27789         * tests/test-open.c (open): Likewise.
27790         * tests/test-openat.c (openat): Likewise.
27791         * tests/test-perror.c (perror): Likewise.
27792         * tests/test-pipe2.c (pipe2): Likewise.
27793         * tests/test-poll.c (poll): Likewise.
27794         * tests/test-popen.c (popen, pclose): Likewise.
27795         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
27796         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
27797         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
27798         (posix_spawn_file_actions_destroy)
27799         (posix_spawn_file_actions_addclose)
27800         (posix_spawn_file_actions_addopen)
27801         (posix_spawn_file_actions_adddup2): Likewise.
27802         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
27803         * tests/test-pread.c (pread): Likewise.
27804         * tests/test-printf-posix.c (printf): Likewise.
27805         * tests/test-pty.c (openpty, forkpty): Likewise.
27806         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
27807         (random_r): Likewise.
27808         * tests/test-rawmemchr.c (rawmemchr): Likewise.
27809         * tests/test-readlink.c (readlink): Likewise.
27810         * tests/test-remove.c (remove): Likewise.
27811         * tests/test-rename.c (rename): Likewise.
27812         * tests/test-renameat.c (renameat): Likewise.
27813         * tests/test-rmdir.c (rmdir): Likewise.
27814         * tests/test-round1.c (round): Likewise.
27815         * tests/test-roundf1.c (roundf): Likewise.
27816         * tests/test-roundl.c (roundl): Likewise.
27817         * tests/test-setenv.c (setenv): Likewise.
27818         * tests/test-sigaction.c (sigaction): Likewise.
27819         * tests/test-sleep.c (sleep): Likewise.
27820         * tests/test-snprintf.c (snprintf): Likewise.
27821         * tests/test-sprintf-posix.c (sprintf): Likewise.
27822         * tests/test-stat.c (stat): Likewise.
27823         * tests/test-stpncpy.c (stpncpy): Likewise.
27824         * tests/test-strcasestr.c (strcasestr): Likewise.
27825         * tests/test-strchrnul.c (strchrnul): Likewise.
27826         * tests/test-strerror.c (strerror): Likewise.
27827         * tests/test-strsignal.c (strsignal): Likewise.
27828         * tests/test-strstr.c (strstr): Likewise.
27829         * tests/test-strtod.c (strtod): Likewise.
27830         * tests/test-strverscmp.c (strverscmp): Likewise.
27831         * tests/test-symlink.c (symlink): Likewise.
27832         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
27833         * tests/test-times.c (times): Likewise.
27834         * tests/test-trunc1.c (trunc): Likewise.
27835         * tests/test-truncf1.c (truncf): Likewise.
27836         * tests/test-truncl.c (truncl): Likewise.
27837         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
27838         Likewise.
27839         * tests/test-uname.c (uname): Likewise.
27840         * tests/test-unlink.c (unlink): Likewise.
27841         * tests/test-unlinkat.c (unlinkat): Likewise.
27842         * tests/test-unsetenv.c (unsetenv): Likewise.
27843         * tests/test-usleep.c (usleep): Likewise.
27844         * tests/test-utimensat.c (utimensat): Likewise.
27845         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
27846         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
27847         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
27848         * tests/test-vprintf-posix.c (vprintf): Likewise.
27849         * tests/test-vsnprintf.c (vsnprintf): Likewise.
27850         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
27851         * tests/test-wcrtomb.c (wcrtomb): Likewise.
27852         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
27853         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
27854         * tests/test-wcwidth.c (wcwidth): Likewise.
27855
27856         build: pull in conditional headers during GNULIB_POSIXCHECK
27857         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
27858         definitions from any conditionally-included headers.
27859         * lib/stdlib.in.h (includes): Likewise.
27860         * lib/unistd.in.h (includes): Likewise.
27861
27862 2009-12-24  Bruno Haible  <bruno@clisp.org>
27863
27864         * tests/test-argv-iter.c: Include header file being tested immediately
27865         after config.h.
27866         * tests/test-base64.c: Likewise.
27867         * tests/test-flock.c: Likewise.
27868         * tests/test-fsync.c: Likewise.
27869         * tests/test-getdate.c: Likewise.
27870         * tests/test-getndelim2.c: Likewise.
27871         * tests/test-isfinite.c: Likewise.
27872         * tests/test-isinf.c: Likewise.
27873         * tests/test-strerror.c: Likewise.
27874         * tests/test-strsignal.c: Likewise.
27875
27876 2009-12-23  Eric Blake  <ebb9@byu.net>
27877
27878         unistd: work around cygwin bug
27879         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
27880         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
27881         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27882
27883 2009-12-23  Bruno Haible  <bruno@clisp.org>
27884
27885         localename: More tests.
27886         * tests/test-localename.c (SIZEOF): New macro.
27887         (categories): New variable.
27888         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
27889         test_locale_name_default): Add test w.r.t. thread locale.
27890         (test_locale_name_thread): New function.
27891         (main): Invoke it.
27892
27893         localename: Make aware of thread locale.
27894         * lib/localename.h (gl_locale_name_thread): New declaration.
27895         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
27896         behaviour with respect to thread locale.
27897         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
27898         <langinfo.h>, glthread/lock.h.
27899         (SIZE_BITS): New macro.
27900         (string_hash): New function.
27901         (struct hash_node): New type.
27902         (HASH_TABLE_SIZE): New macro.
27903         (struniq_hash_table, struniq_lock): New variables.
27904         (struniq): New function.
27905         (gl_locale_name_thread): New function.
27906         (gl_locale_name): Invoke it.
27907         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27908         * modules/localename (Depends-on): Add lock.
27909         Reported by Mike Gran <spk121@yahoo.com>.
27910
27911 2009-12-23  Eric Blake  <ebb9@byu.net>
27912
27913         va-args: new module
27914         * modules/va-args: New file.
27915         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27916         * MODULES.html.sh (Core language properties): Mention it.
27917
27918         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27919         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27920         named alias for __attribute__((__unused__)).
27921         * lib/chown.c: Update client.
27922         * lib/fchmodat.c: Likewise.
27923         * lib/fts.c: Likewise.
27924         * lib/getdate.y: Likewise.
27925         * lib/getgroups.c: Likewise.
27926         * lib/getopt.c: Likewise.
27927         * lib/getugroups.c: Likewise.
27928         * lib/mkdir.c: Likewise.
27929         * lib/mkfifo.c: Likewise.
27930         * lib/mkfifoat.c: Likewise.
27931         * lib/mknod.c: Likewise.
27932         * lib/mknodat.c: Likewise.
27933         * lib/readlink.c: Likewise.
27934         * lib/se-context.in.h: Likewise.
27935         * lib/se-selinux.in.h: Likewise.
27936         * lib/sockets.c: Likewise.
27937         * lib/symlink.c: Likewise.
27938         * lib/symlinkat.c: Likewise.
27939         * lib/unicodeio.c: Likewise.
27940         * lib/unistr.h: Likewise.
27941         * tests/test-areadlink.c: Likewise.
27942         * tests/test-areadlinkat.c: Likewise.
27943         * tests/test-filenamecat.c: Likewise.
27944         * tests/test-fseeko.c: Likewise.
27945         * tests/test-ftello.c: Likewise.
27946         * tests/test-getdate.c: Likewise.
27947         * tests/test-getgroups.c: Likewise.
27948         * tests/test-gethostname.c: Likewise.
27949         * tests/test-quotearg.c: Likewise.
27950         * tests/test-version-etc.c: Likewise.
27951         * tests/test-xalloc-die.c: Likewise.
27952         * tests/test-xfprintf-posix.c: Likewise.
27953         * tests/test-xprintf-posix.c: Likewise.
27954         * tests/test-xvasprintf.c: Likewise.
27955
27956         tests: avoid compiler warnings
27957         * tests/test-fcntl.c (main): Delete unused parameters.
27958         * tests/test-freopen-safer.c (main): Likewise.
27959         * tests/test-xalloc-die.c (main): Mark unused parameters.
27960         * tests/test-fseeko.c (main): Likewise.
27961         * tests/test-ftello.c (main): Likewise.
27962         * tests/test-nanosleep.c (main): Avoid declaration warning.
27963         * tests/test-sleep.c (main): Likewise.
27964         * tests/test-unsetenv.c (main): Silence warning about string
27965         literal.
27966         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27967
27968 2009-12-23  Bruno Haible  <bruno@clisp.org>
27969
27970         * tests/test-localename.c (test_locale_name): New function, extracted
27971         from main. Also test mixed situations.
27972         (test_locale_name_posix, test_locale_name_environ,
27973         test_locale_name_default): New functions.
27974         (main): Invoke them all.
27975         * modules/localename-tests (configure.ac): Test for newlocale.
27976
27977 2009-12-23  Bruno Haible  <bruno@clisp.org>
27978
27979         unistd: Ensure getcwd gets declared before being overridden.
27980         * lib/unistd.in.h: Conditionally include <io.h>.
27981
27982 2009-12-22  Bruno Haible  <bruno@clisp.org>
27983
27984         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27985         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27986         (gl_WCHAR_H): Invoke it.
27987         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27988         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27989         Reported by Karl Berry <karl@freefriends.org>.
27990
27991 2009-12-22  Eric Blake  <ebb9@byu.net>
27992
27993         math, unistd: avoid redundant includes
27994         * lib/math.in.h (isnan): No need to re-include <math.h>.
27995         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27996
27997         getsubopt: work around cygwin bug
27998         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27999         avoid conflicting with system getsubopt.
28000         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
28001         bug.
28002
28003         getopt: synchronize from glibc
28004         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
28005         parameter order.  Adjust all callers.
28006         (_getopt_internal_r, main): Adjust quoting in error messages.
28007         Drop considerations for outdated POSIX 1003.2 error message.
28008         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
28009         callers.
28010         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
28011
28012         test-getopt: test stderr behavior
28013         * modules/getopt-posix-tests (Depends-on): Add dup2.
28014         * tests/test-getopt.c (ASSERT): Avoid stderr.
28015         (main): Move stderr to a temporary file.
28016         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
28017         Instead, add parameter to inform caller if output occurred.
28018         (test_getopt): Adjust all existing tests to expect silence, and
28019         add new tests of leading ":".
28020         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28021         glibc shortcomings with leading "-:" or "+:" in optstring.
28022         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28023         Likewise.
28024         * doc/posix-functions/getopt.texi (getopt): Likewise.
28025
28026         test-getopt: enhance test
28027         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
28028         supports optind=0.
28029         * tests/test-getopt.c (OPTIND_MIN): Move...
28030         * tests/test-getopt.h (OPTIND_MIN): ...here.
28031         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
28032         Require that optind=0 works, since modern BSD supports it in
28033         addition to optreset, and since coreutils expects it.
28034         (test_getopt_long_only): New test.
28035         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28036         glibc shortcomings with 'W;', and enforcement of optind=0.
28037         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28038         Likewise.
28039
28040 2009-12-21  Bruno Haible  <bruno@clisp.org>
28041
28042         localename: Improvements for MacOS X and Cygwin.
28043         * lib/localename.h (gl_locale_name_environ): New declaration.
28044         * lib/localename.c (gl_locale_name_environ): New function, extracted from
28045         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
28046         (gl_locale_name_posix): Invoke it.
28047         (gl_locale_name_default): Add comments. Use Windows native API also on
28048         Cygwin.
28049
28050 2009-12-21  Bruno Haible  <bruno@clisp.org>
28051
28052         Update list of Win32 locale ids.
28053         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
28054         (LANG_SAMI): Renamed from LANG_SAAMI.
28055         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
28056         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
28057         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
28058         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
28059         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
28060         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
28061         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
28062         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
28063         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
28064         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
28065         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
28066         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
28067         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
28068         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
28069         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
28070         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
28071         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
28072         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
28073         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
28074         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
28075         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
28076         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
28077         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
28078         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
28079         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
28080         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
28081         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
28082         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
28083         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
28084         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
28085         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
28086         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
28087         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
28088         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
28089         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
28090         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
28091         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
28092         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
28093         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
28094         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
28095         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
28096         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
28097         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
28098         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
28099         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
28100         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
28101         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
28102         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
28103         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
28104         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
28105         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
28106         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
28107         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
28108         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
28109         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
28110         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
28111         Add more languages and countries for Sami, Sorbian. Add more countries
28112         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
28113         for Pashto. Change country for Syriac, Tswana.
28114
28115 2009-12-21  Eric Blake  <ebb9@byu.net>
28116
28117         test-utimens: avoid spurious failure
28118         * tests/test-chown.h (nap): Factor...
28119         * tests/nap.h: ...into new file.
28120         * tests/test-lchown.h (nap): Avoid duplication.
28121         * tests/test-utimens-common.h (nap): Use shared implementation,
28122         necessary on file systems with 1-second resolution.
28123         * modules/chown-tests (Files): Include new file.
28124         * modules/fdutimensat-tests (Files): Likewise.
28125         * modules/futimens-tests (Files): Likewise.
28126         * modules/lchown-tests (Files): Likewise.
28127         * modules/openat-tests (Files): Likewise.
28128         * modules/utimens-tests (Files): Likewise.
28129         * modules/utimensat-tests (Files): Likewise.
28130
28131 2009-12-19  Eric Blake  <ebb9@byu.net>
28132
28133         futimens, utimensat: work around Linux bug
28134         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
28135         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28136         * lib/utimensat.c (rpl_utimensat): Work around it.
28137         * lib/futimens.c (rpl_futimens): Adjust comment.
28138
28139         utimens: work around Linux ctime bug
28140         * lib/utimens.c (detect_ctime_bug): New helper function.
28141         (update_timespec): Differentiate between workaround needed for
28142         this bug vs. what is needed for systems that lack utimensat.
28143         (fdutimens, lutimens): Work around bug.
28144
28145         utimens: check for ctime update
28146         * tests/test-utimens-common.h (check_ctime): Define.
28147         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
28148         * tests/test-futimens.h (test_futimens): Likewise.
28149         * tests/test-lutimens.h (test_lutimens): Likewise.
28150         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28151         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28152
28153 2009-12-19  Bruno Haible  <bruno@clisp.org>
28154
28155         dprintf-posix: Check against memory leak fixed on 2009-12-15.
28156         * tests/test-dprintf-posix2.sh: New file.
28157         * tests/test-dprintf-posix2.c: New file.
28158         * modules/dprintf-posix-tests (Files): Add them.
28159         (configure.ac): Check for getrlimit and setrlimit.
28160         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28161
28162 2009-12-19  Bruno Haible  <bruno@clisp.org>
28163
28164         fprintf-posix: Check against memory leak fixed on 2009-12-15.
28165         * tests/test-fprintf-posix3.sh: New file.
28166         * tests/test-fprintf-posix3.c: New file.
28167         * modules/fprintf-posix-tests (Files): Add them.
28168         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28169
28170 2009-12-19  Eric Blake  <ebb9@byu.net>
28171
28172         dirfd: fix prototype
28173         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
28174         * lib/dirfd.c (dirfd): Likewise.
28175
28176         canonicalize: reduce memory usage
28177         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
28178         allocation to size.
28179         Reported by Solar Designer <solar@openwall.com>.
28180
28181 2009-12-19  Bruno Haible  <bruno@clisp.org>
28182
28183         New module attribute 'Applicability'.
28184         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
28185         * gnulib-tool: New option --extract-applicability.
28186         (func_usage): Document it.
28187         (sed_extract_prog): Recognize it.
28188         (func_get_applicability): New function.
28189         (func_import): Generalize handling of 'link-warning' module.
28190         * modules/link-warning (Applicability): New section.
28191         * modules/arg-nonnull (Applicability): New section.
28192         Repoted by Simon Josefsson <simon@josefsson.org>.
28193
28194 2009-12-19  Bruno Haible  <bruno@clisp.org>
28195
28196         fflush: tweak
28197         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
28198         * lib/fseeko.c (rpl_fseeko): Likewise.
28199
28200 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
28201
28202         * lib/gl_list.h: Fix typo in comment.
28203
28204 2009-12-16  Eric Blake  <ebb9@byu.net>
28205
28206         fcntl: use to simplify other modules
28207         * modules/cloexec (Depends-on): Add fcntl.
28208         * modules/fchdir (Depends-on): Likewise.
28209         * modules/fd-safer-flag (Depends-on): Likewise.
28210         * modules/unistd-safer (Depends-on): Likewise.
28211         * modules/dup3 (configure.ac): Set module indicator.
28212         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
28213         missing.
28214         * lib/fchdir.c (_gl_register_dup): Fix comment.
28215         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
28216         * lib/dup-safer.c (dup_safer): Likewise.
28217         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
28218         * lib/dup3.c (dup3): Likewise.
28219         * tests/test-fchdir.c (main): Enhance test.
28220         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
28221
28222         fcntl: port portions of fcntl to mingw
28223         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
28224         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
28225         replacement for mingw.
28226         * modules/fcntl (Description): Update.
28227         (Depends-on): Add dup2.
28228         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
28229         * modules/fcntl-h (Makefile.am): Substitute it.
28230         * lib/fcntl.in.h (fcntl): Update declaration.
28231         (F_DUPFD, F_GETFD): New macros, when needed.
28232         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28233         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
28234         * tests/test-fcntl.c (check_flags, main): Enhance test for items
28235         we now guarantee.
28236
28237         fcntl: work around cygwin bug in F_DUPFD
28238         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
28239         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
28240         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
28241         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
28242         * doc/posix-functions/fcntl.texi (fcntl): Document it.
28243
28244         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
28245         * modules/fcntl (Files): List new files.
28246         (configure.ac): Run a test.
28247         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
28248         * lib/fcntl.c (rpl_fcntl): Likewise.
28249         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
28250         (gl_FCNTL_H): Always replace fcntl.h.
28251         * modules/fcntl-h (Makefile.am): Substitute witnesses.
28252         * lib/fcntl.in.h (fcntl): Declare replacement.
28253         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
28254         needed, plus a witness.
28255         * doc/posix-functions/fcntl.texi (fcntl): Document this.
28256         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28257         * tests/test-fcntl.c: New file.
28258         * modules/fcntl-tests: Likewise.
28259
28260         binary-io: avoid potential compilation warning
28261         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
28262         directives.
28263
28264         fflush: avoid compilation error on NetBSD
28265         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
28266         between off_t and fpos_t, since the latter is sometimes a struct.
28267         * lib/fseeko.c (rpl_fseeko): Likewise.
28268         Reported by Alexander Nasonov <alnsn@yandex.ru>.
28269
28270 2009-12-15  Eric Blake  <ebb9@byu.net>
28271
28272         fcntl-h, stdio, sys_ioctl: fix declarations
28273         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
28274         function must not take arguments.
28275         * lib/sys_ioctl.in.h (ioctl): Likewise.
28276         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
28277         (open): Add a link warning.
28278
28279 2009-12-15  Jim Meyering  <meyering@redhat.com>
28280
28281         areadlink, areadlink-with-size: relax license to LGPLv2+
28282         * modules/areadlink (License): Relax to LGPLv2+.
28283         * modules/areadlink-with-size (License): Likewise.
28284
28285 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
28286             Bruno Haible  <bruno@clisp.org>
28287
28288         *printf: Fix memory leak.
28289         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
28290         * lib/vfprintf.c (vfprintf): Likewise.
28291         * lib/dprintf.c (dprintf): Likewise.
28292         * lib/vdprintf.c (vdprintf): Likewise.
28293
28294 2009-12-14  Eric Blake  <ebb9@byu.net>
28295
28296         accept4: adjust module dependencies
28297         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
28298
28299         utimens: one more try at avoiding compiler warning
28300         * lib/utimens.c (lutimens): Lower scope of result.
28301
28302 2009-12-13  Bruno Haible  <bruno@clisp.org>
28303
28304         Move the malloc checking from module 'list' to new module 'xlist'.
28305         * modules/xlist: New file.
28306         * lib/gl_xlist.h: New file.
28307         * lib/gl_xlist.c: New file.
28308         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
28309         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
28310         gl_list_add_last, gl_list_add_before, gl_list_add_after,
28311         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
28312         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
28313         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
28314         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
28315         gl_sortedlist_nx_add): New declarations.
28316         (struct gl_list_implementation): Rename and change methods accordingly.
28317         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
28318         (gl_list_nx_create): Renamed from gl_list_create.
28319         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28320         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28321         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28322         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28323         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28324         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28325         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28326         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28327         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
28328         gl_list_create_empty.
28329         (gl_list_nx_create): Renamed from gl_list_create.
28330         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28331         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28332         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28333         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28334         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28335         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28336         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28337         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28338         * lib/gl_array_list.c: Don't include xalloc.h.
28339         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
28340         NULL upon out-of-memory.
28341         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
28342         out-of-memory.
28343         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
28344         Change return type to 'int'.
28345         (gl_array_nx_set_at): Renamed from gl_array_set_at.
28346         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28347         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
28348         upon out-of-memory.
28349         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
28350         upon out-of-memory.
28351         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
28352         upon out-of-memory.
28353         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
28354         upon out-of-memory.
28355         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
28356         out-of-memory.
28357         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
28358         Update.
28359         (gl_array_list_implementation): Update.
28360         * lib/gl_carray_list.c: Don't include xalloc.h.
28361         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
28362         Return NULL upon out-of-memory.
28363         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
28364         out-of-memory.
28365         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
28366         Change return type to 'int'.
28367         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
28368         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28369         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
28370         upon out-of-memory.
28371         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
28372         upon out-of-memory.
28373         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
28374         out-of-memory.
28375         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
28376         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
28377         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
28378         Update.
28379         (gl_carray_list_implementation): Update.
28380         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
28381         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
28382         gl_linked_create_empty. Return NULL upon out-of-memory.
28383         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
28384         out-of-memory.
28385         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
28386         Change return type to 'int'. Return -1 upon out-of-memory.
28387         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
28388         out-of-memory.
28389         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
28390         upon out-of-memory.
28391         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
28392         upon out-of-memory.
28393         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
28394         NULL upon out-of-memory.
28395         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
28396         upon out-of-memory.
28397         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
28398         out-of-memory.
28399         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
28400         Update.
28401         * lib/gl_linked_list.c: Don't include xalloc.h.
28402         (gl_linked_list_implementation): Update.
28403         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
28404         (add_to_bucket): Change return type to 'int'.
28405         (gl_linkedhash_list_implementation): Update.
28406         * lib/gl_anytree_list1.h (free_subtree): New function.
28407         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
28408         gl_tree_create_empty. Return NULL upon out-of-memory.
28409         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
28410         Change return type to 'int'. Return -1 upon out-of-memory.
28411         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
28412         out-of-memory.
28413         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
28414         (gl_tree_remove_node): New function, moved here from
28415         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
28416         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
28417         Update.
28418         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
28419         malloc, not xmalloc. Return NULL upon out-of-memory.
28420         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28421         out-of-memory.
28422         (gl_tree_remove_node_from_tree): New function, extracted from
28423         gl_tree_remove_node.
28424         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28425         upon out-of-memory.
28426         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28427         out-of-memory.
28428         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28429         upon out-of-memory.
28430         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28431         upon out-of-memory.
28432         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28433         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
28434         not xmalloc. Return NULL upon out-of-memory.
28435         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28436         out-of-memory.
28437         (gl_tree_remove_node_from_tree): New function, extracted from
28438         gl_tree_remove_node.
28439         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28440         upon out-of-memory.
28441         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28442         out-of-memory.
28443         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28444         upon out-of-memory.
28445         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28446         upon out-of-memory.
28447         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28448         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
28449         gl_anytree_list1.h before gl_anyavltree_list2.h.
28450         (gl_avltree_list_implementation): Update.
28451         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
28452         gl_anytree_list1.h before gl_anyavltree_list2.h.
28453         (gl_rbtree_list_implementation): Update.
28454         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
28455         Change return type to 'int'. Return -1 upon out-of-memory. Use
28456         __builtin_expect.
28457         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
28458         (gl_avltreehash_list_implementation): Update.
28459         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
28460         (gl_rbtreehash_list_implementation): Update.
28461         * modules/array-list (Depends-on): Remove xalloc.
28462         * modules/carray-list (Depends-on): Likewise.
28463         * modules/linked-list (Depends-on): Likewise.
28464         * modules/linkedhash-list (Depends-on): Likewise.
28465         * modules/avltree-list (Depends-on): Likewise.
28466         * modules/rbtree-list (Depends-on): Likewise.
28467         * modules/avltreehash-list (Depends-on): Likewise.
28468         * modules/rbtreehash-list (Depends-on): Likewise.
28469
28470         * modules/xsublist: New file.
28471         * lib/gl_xsublist.h: New file.
28472         * lib/gl_xsublist.c: New file.
28473         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
28474         (gl_sublist_nx_create): New declaration.
28475         * lib/gl_sublist.c: Don't include xalloc.h.
28476         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
28477         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
28478         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
28479         Change return type to 'int'. Return -1 upon out-of-memory.
28480         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
28481         upon out-of-memory.
28482         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
28483         NULL upon out-of-memory.
28484         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
28485         upon out-of-memory.
28486         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
28487         NULL upon out-of-memory.
28488         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
28489         NULL upon out-of-memory.
28490         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
28491         upon out-of-memory.
28492         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
28493         (gl_sublist_list_implementation): Update.
28494         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
28495         upon out-of-memory.
28496         * modules/sublist (Depends-on): Remove xalloc.
28497
28498         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
28499         * tests/test-carray_list.c: Likewise.
28500         * tests/test-linked_list.c: Likewise.
28501         * tests/test-linkedhash_list.c: Likewise.
28502         * tests/test-avltree_list.c: Likewise.
28503         * tests/test-rbtree_list.c: Likewise.
28504         * tests/test-avltreehash_list.c: Likewise.
28505         * tests/test-rbtreehash_list.c: Likewise.
28506         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
28507         * modules/carray-list-tests (Makefile.am): Likewise.
28508         * modules/linked-list-tests (Makefile.am): Likewise.
28509         * modules/linkedhash-list-tests (Makefile.am): Likewise.
28510         * modules/avltree-list-tests (Makefile.am): Likewise.
28511         * modules/rbtree-list-tests (Makefile.am): Likewise.
28512         * modules/avltreehash-list-tests (Makefile.am): Likewise.
28513         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
28514
28515         * NEWS: Mention the changes.
28516
28517         * lib/clean-temp.c: Include gl_xlist.h.
28518         * modules/clean-temp (Depends-on): Add xlist.
28519
28520         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
28521         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
28522
28523         * tests/test-array_oset.c: Include gl_xlist.h.
28524         * modules/array-oset-tests (Depends-on): Add xlist.
28525
28526         Reported by José E. Marchesi <jemarch@gnu.org>.
28527
28528 2009-12-13  Bruno Haible  <bruno@clisp.org>
28529
28530         Move the malloc checking from module 'oset' to new module 'xoset'.
28531         * modules/xoset: New file.
28532         * lib/gl_xoset.h: New file.
28533         * lib/gl_xoset.c: New file.
28534         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
28535         declarations.
28536         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
28537         (struct gl_oset_implementation): Rename and change methods accordingly.
28538         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
28539         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28540         'int'. Mark as __warn_unused_result__.
28541         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
28542         gl_oset_create_empty.
28543         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28544         'int'.
28545         * lib/gl_array_oset.c: Don't include xalloc.h.
28546         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
28547         malloc, not xmalloc.
28548         (grow): Change return type to 'int'. Don't call xalloc_die.
28549         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
28550         to 'int'.
28551         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
28552         'int'.
28553         (gl_array_oset_implementation): Update.
28554         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
28555         gl_tree_create_empty.
28556         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
28557         'int'.
28558         * lib/gl_avltree_oset.c: Don't include xalloc.h.
28559         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28560         xmalloc.
28561         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28562         not xmalloc.
28563         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28564         xmalloc.
28565         (gl_avltree_oset_implementation): Update.
28566         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
28567         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28568         xmalloc.
28569         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28570         not xmalloc.
28571         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28572         xmalloc.
28573         (gl_rbtree_oset_implementation): Update.
28574         * modules/array-oset (Depends-on): Remove xalloc.
28575         * modules/avltree-oset (Depends-on): Likewise.
28576         * modules/rbtree-oset (Depends-on): Likewise.
28577         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
28578         * tests/test-avltree_oset.c: Likewise.
28579         * tests/test-rbtree_oset.c: Likewise.
28580         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
28581         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
28582         * modules/rbtree-oset-tests (Makefile.am): Likewise.
28583         * NEWS: Mention the change.
28584
28585 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
28586
28587         maint.mk: allow a project to override release-prep commands
28588         * top/maint.mk (alpha, beta, stable): Move release-preparatory
28589         commands into a new rule.
28590         (release-prep): New rule.
28591         (release-prep-hook): New overridable variable.
28592
28593 2009-12-13  Bruno Haible  <bruno@clisp.org>
28594
28595         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
28596
28597 2009-12-13  Jim Meyering  <meyering@redhat.com>
28598
28599         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
28600         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
28601
28602 2009-12-12  Bruno Haible  <bruno@clisp.org>
28603
28604         duplocale: Tweak.
28605         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
28606
28607 2009-12-12  Karl Berry  <karl@gnu.org>
28608
28609         * config/srclist.txt (strtoll.c): tab changes, no more sync.
28610
28611 2009-12-12  Bruno Haible  <bruno@clisp.org>
28612
28613         * m4/po.m4: Undo incorrect untabification.
28614
28615 2009-12-12  Bruno Haible  <bruno@clisp.org>
28616
28617         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
28618         * modules/c-strtod (Depends-on): Add locale.
28619         * modules/c-strtold (Depends-on): Likewise.
28620
28621 2009-12-12  Bruno Haible  <bruno@clisp.org>
28622
28623         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
28624
28625 2009-12-11  Eric Blake  <ebb9@byu.net>
28626
28627         setenv: relax requirement in light of POSIX ruling
28628         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
28629         not NULL.
28630         * tests/test-setenv.c (main): Relax test.
28631         * tests/test-unsetenv.c (main): Likewise.
28632         * doc/posix-functions/setenv.texi (setenv): Document this.
28633         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28634
28635 2009-12-11  Bruno Haible  <bruno@clisp.org>
28636
28637         New module 'fd-safer-flag'.
28638         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
28639         * lib/dup-safer.c (dup_safer_flag): Remove function.
28640         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
28641         * lib/fd-safer.c (fd_safer_flag): Remove function.
28642         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
28643         * modules/cloexec (configure.ac): Drop indicator macro.
28644         * modules/fd-safer-flag: New file.
28645         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
28646         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
28647         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
28648
28649 2009-12-11  Bruno Haible  <bruno@clisp.org>
28650
28651         Tests for module 'nl_langinfo'.
28652         * modules/nl_langinfo-tests: New file.
28653         * tests/test-nl_langinfo.sh: New file.
28654         * tests/test-nl_langinfo.c: New file.
28655
28656         New module 'nl_langinfo'.
28657         * lib/nl_langinfo.c: New file.
28658         * m4/nl_langinfo.m4: New file.
28659         * modules/nl_langinfo: New file.
28660         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
28661
28662 2009-12-11  Bruno Haible  <bruno@clisp.org>
28663
28664         Tests for module 'langinfo'.
28665         * modules/langinfo-tests: New file.
28666         * tests/test-langinfo.c: New file.
28667
28668         New module 'langinfo'.
28669         * lib/langinfo.in.h: New file.
28670         * m4/langinfo_h.m4: New file.
28671         * modules/langinfo: New file.
28672         * doc/posix-headers/langinfo.texi: Mention the new module.
28673
28674 2009-12-11  Bruno Haible  <bruno@clisp.org>
28675
28676         * lib/config.charset: Untabify.
28677
28678 2009-12-11  Bruno Haible  <bruno@clisp.org>
28679
28680         * modules/unistd-safer (configure.ac): Drop indicator macro.
28681
28682 2009-12-11  Bruno Haible  <bruno@clisp.org>
28683
28684         Move pipe2-safer code to its own file.
28685         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
28686         * lib/pipe-safer.c (pipe2_safer): Remove function.
28687         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
28688         (Makefile.am): Add it to lib_SOURCES.
28689
28690 2009-12-10  Bruno Haible  <bruno@clisp.org>
28691
28692         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
28693
28694 2009-12-10  Bruno Haible  <bruno@clisp.org>
28695
28696         Declare which arguments expect non-NULL values, for GCC and clang.
28697         * build-aux/arg-nonnull.h: New file.
28698         * modules/arg-nonnull: New file.
28699         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
28700         (inet_ntop, inet_pton): Use it.
28701         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
28702         (closedir, dirfd, opendir, scandir, alphasort): Use it.
28703         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
28704         (open, openat): Use it.
28705         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
28706         (fnmatch): Use it.
28707         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
28708         (getopt, getopt_long, getopt_long_only): Use it.
28709         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
28710         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
28711         Use it.
28712         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
28713         (iconv_open): Use it.
28714         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
28715         (strtoimax, strtoumax): Use it.
28716         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
28717         (duplocale): Use it.
28718         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
28719         (frexp, frexpl): Use it.
28720         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
28721         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
28722         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
28723         (tsearch, tfind, tdelete, twalk): Use it.
28724         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
28725         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28726         sigpending): Use it.
28727         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
28728         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28729         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28730         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28731         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28732         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28733         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28734         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28735         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28736         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28737         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28738         Use it.
28739         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
28740         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
28741         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
28742         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
28743         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
28744         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
28745         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
28746         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
28747         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
28748         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
28749         strtoull, unsetenv): Use it.
28750         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
28751         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28752         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28753         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
28754         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
28755         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
28756         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
28757         (strcasecmp, strncasecmp): Use it.
28758         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
28759         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
28760         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
28761         rpl_setsockopt): Use it.
28762         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
28763         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
28764         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
28765         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
28766         (gettimeofday): Use it.
28767         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
28768         (times): Use it.
28769         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
28770         (uname): Use it.
28771         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
28772         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
28773         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
28774         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
28775         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
28776         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
28777         unlinkat, write): Use it.
28778         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
28779         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
28780         * lib/argv-iter.h: Include arg-nonnull.h.
28781         (_ATTRIBUTE_NONNULL_): Remove macro.
28782         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
28783         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
28784         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
28785         optimization.
28786         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
28787         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
28788         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
28789         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
28790         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
28791         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
28792         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
28793         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
28794         * modules/arpa_inet (Depends-on): Add arg-nonnull.
28795         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
28796         * modules/dirent (Depends-on): Add arg-nonnull.
28797         (Makefile.am): Insert arg-nonnull.h into dirent.h.
28798         * modules/fcntl-h (Depends-on): Add arg-nonnull.
28799         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
28800         * modules/fnmatch (Depends-on): Add arg-nonnull.
28801         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
28802         * modules/getopt-posix (Depends-on): Add arg-nonnull.
28803         (Makefile.am): Insert arg-nonnull.h into getopt.h.
28804         * modules/glob (Depends-on): Add arg-nonnull.
28805         (Makefile.am): Insert arg-nonnull.h into glob.h.
28806         * modules/iconv_open (Depends-on): Add arg-nonnull.
28807         (Makefile.am): Insert arg-nonnull.h into iconv.h.
28808         * modules/inttypes (Depends-on): Add arg-nonnull.
28809         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
28810         * modules/locale (Depends-on): Add arg-nonnull.
28811         (Makefile.am): Insert arg-nonnull.h into locale.h.
28812         * modules/math (Depends-on): Add arg-nonnull.
28813         (Makefile.am): Insert arg-nonnull.h into math.h.
28814         * modules/netdb (Depends-on): Add arg-nonnull.
28815         (Makefile.am): Insert arg-nonnull.h into netdb.h.
28816         * modules/search (Depends-on): Add arg-nonnull.
28817         (Makefile.am): Insert arg-nonnull.h into search.h.
28818         * modules/signal (Depends-on): Add arg-nonnull.
28819         (Makefile.am): Insert arg-nonnull.h into signal.h.
28820         * modules/spawn (Depends-on): Add arg-nonnull.
28821         (Makefile.am): Insert arg-nonnull.h into spawn.h.
28822         * modules/stdio (Depends-on): Add arg-nonnull.
28823         (Makefile.am): Insert arg-nonnull.h into stdio.h.
28824         * modules/stdlib (Depends-on): Add arg-nonnull.
28825         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
28826         * modules/string (Depends-on): Add arg-nonnull.
28827         (Makefile.am): Insert arg-nonnull.h into string.h.
28828         * modules/strings (Depends-on): Add arg-nonnull.
28829         (Makefile.am): Insert arg-nonnull.h into strings.h.
28830         * modules/sys_socket (Depends-on): Add arg-nonnull.
28831         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
28832         * modules/sys_stat (Depends-on): Add arg-nonnull.
28833         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
28834         * modules/sys_time (Depends-on): Add arg-nonnull.
28835         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
28836         * modules/sys_times (Depends-on): Add arg-nonnull.
28837         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
28838         * modules/sys_utsname (Depends-on): Add arg-nonnull.
28839         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
28840         * modules/time (Depends-on): Add arg-nonnull.
28841         (Makefile.am): Insert arg-nonnull.h into time.h.
28842         * modules/unistd (Depends-on): Add arg-nonnull.
28843         (Makefile.am): Insert arg-nonnull.h into unistd.h.
28844         * modules/wchar (Depends-on): Add arg-nonnull.
28845         (Makefile.am): Insert arg-nonnull.h into wchar.h.
28846         * modules/argv-iter (Depends-on): Add arg-nonnull.
28847         * tests/test-canonicalize.c (null_ptr): New function.
28848         (main): Use it.
28849         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
28850         (main): Use it.
28851         * tests/test-memmem.c (null_ptr): New function.
28852         (main): Use it.
28853         Reported by Jim Meyering.
28854
28855 2009-12-10  Bruno Haible  <bruno@clisp.org>
28856
28857         Use spaces for indentation, not tabs.
28858         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28859         * m4/*.m4: Untabify.
28860         * build-aux/*.h: Untabify.
28861         * tests/**/*.[hc]: Untabify.
28862         * README: New section "Indent with spaces, not TABs", based on
28863         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
28864         * NEWS: Mention the change.
28865
28866 2009-12-10  Bruno Haible  <bruno@clisp.org>
28867
28868         pty test: Fix link error.
28869         * modules/pty-tests (Makefile.am): Add the default LDADD value to
28870         test_pty_LDADD.
28871
28872 2009-12-07  Simon Josefsson  <simon@josefsson.org>
28873
28874         * modules/pty: New file.
28875         * modules/pty-tests: New file.
28876         * m4/pty.m4: New file.
28877         * tests/test-pty.c: New file.
28878         * doc/glibc-headers/pty.texi: Modified.
28879         * doc/glibc-functions/forkpty.texi: Modified.
28880         * doc/glibc-functions/openpty.texi: Modified.
28881
28882 2009-12-10  Bruno Haible  <bruno@clisp.org>
28883
28884         Avoid syntax error in C++ mode.
28885         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
28886
28887 2009-12-10  Bruno Haible  <bruno@clisp.org>
28888
28889         Use sed with option -e.
28890         * gnulib-tool (func_version, func_emit_copyright_notice,
28891         func_emit_initmacro_end, func_import, func_create_testdir): Pass
28892         option -e to sed.
28893         * modules/link-warning (Makefile.am): Likewise.
28894
28895 2009-12-10  Jim Meyering  <meyering@redhat.com>
28896
28897         mgetgroups: do not write bytes beyond end of malloc'd buffer
28898         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
28899         username, we call getgroups with a one-element-shorter buffer,
28900         but still told it the length was original, max_n_groups.
28901
28902 2009-12-09  Eric Blake  <ebb9@byu.net>
28903
28904         cloexec: relax license
28905         * modules/cloexec (Maintainer): Add myself.
28906         (License): Use LGPL, not GPL.
28907
28908         link-warning: optimize generation
28909         * modules/link-warning (Makefile.am): Reduce process usage.
28910
28911 2009-12-09  Bruno Haible  <bruno@clisp.org>
28912
28913         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28914         workaround was added on 2009-11-17.
28915
28916 2009-12-09  Jim Meyering  <meyering@redhat.com>
28917             Bruno Haible  <bruno@clisp.org>
28918
28919         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28920         * modules/link-warning (Makefile.am): Make the comment-removing sed
28921         command more robust in the face of bootstrap-prepended comment lines.
28922
28923 2009-12-09  Bruno Haible  <bruno@clisp.org>
28924
28925         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28926         most one group.
28927
28928 2009-12-09  Simon Josefsson <simon@josefsson.org>
28929             Bruno Haible  <bruno@clisp.org>
28930
28931         * build-aux/link-warning.h: Add copyright notice.
28932         * modules/link-warning (Makefile.am): Generate link-warning.h from
28933         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28934         * NEWS: Mention change in link-warning module.
28935         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28936         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28937         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28938         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28939         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28940         * modules/math (Makefile.am): Add dependency to math.h.
28941         * modules/search (Makefile.am): Add dependency to search.h.
28942         * modules/signal (Makefile.am): Add dependency to signal.h.
28943         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28944         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28945         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28946         * modules/string (Makefile.am): Add dependency to string.h.
28947         * modules/strings (Makefile.am): Add dependency to strings.h.
28948         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28949         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28950         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28951         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28952         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28953         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28954         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28955         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28956         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28957
28958 2009-12-09  Bruno Haible  <bruno@clisp.org>
28959
28960         fchdir: Optimize away rpl_fstat when possible.
28961         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28962         REPLACE_OPEN_DIRECTORY.
28963         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28964
28965 2009-12-09  Bruno Haible  <bruno@clisp.org>
28966
28967         * lib/fchdir.c: Update comment.
28968
28969 2009-12-09  Bruno Haible  <bruno@clisp.org>
28970
28971         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28972
28973 2009-12-08  Eric Blake  <ebb9@byu.net>
28974
28975         fchdir: avoid memory leak on re-registration.
28976         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28977
28978 2009-12-08  Jim Meyering  <meyering@redhat.com>
28979
28980         init.sh: avoid Solaris 10 /bin/sh portability problem
28981         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28982         sourced script:
28983           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28984           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28985           bar
28986         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28987         and two tests used that idiom.
28988         * tests/init.sh: Update suggested usage comments.
28989         (path_prepend_): New function, to be used in place
28990         of the --src-path=DIR option.
28991         (setup_): Move PATH-prepending code into path_prepend_.
28992         * tests/test-pread.sh: Adapt to new usage.
28993         * tests/test-xalloc-die.sh: Likewise.
28994
28995 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28996
28997         * doc/gnulib.texi (Glibc pty.h): Add.
28998         * doc/glibc-functions/forkpty.texi: Add.
28999         * doc/glibc-functions/openpty.texi: Add.
29000         Suggested by Bruno Haible.
29001
29002 2009-12-08  Eric Blake  <ebb9@byu.net>
29003
29004         fchdir: fix logic bugs
29005         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
29006         * tests/test-fchdir.c (main): Enhance test.
29007         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
29008         is in use.
29009
29010         dup2: fix logic bugs
29011         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
29012         REPLACE_DUP2 to decide when rpl_dup2 is needed.
29013         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
29014         exists.
29015         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
29016
29017 2009-12-07  Eric Blake  <ebb9@byu.net>
29018
29019         unlink: fix m4 detection
29020         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
29021
29022         unistd-safer: add unit test
29023         * modules/unistd-safer-tests: New file.
29024         * tests/test-dup-safer.c: Likewise.
29025         * tests/test-cloexec.c (setmode): Avoid compiler warning.
29026         * tests/test-dup2.c (setmode): Likewise.
29027         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
29028
29029         cloexec: preserve text vs. binary across dup_cloexec
29030         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
29031         mode.
29032         * modules/dup2-tests (Depends-on): Add binary-io.
29033         * modules/cloexec-tests (Depends-on): Likewise.
29034         * tests/test-dup2.c (setmode, is_mode): New helpers.
29035         (main): Add tests that translation mode is preserved.
29036         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
29037         Reported by Bruno Haible.
29038
29039         mgetgroups: reduce duplicate listings
29040         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
29041         resulting array.
29042         * tests/test-chown.h (test_chown): Simplify client.
29043         * tests/test-lchown.h (test_lchown): Likewise.
29044
29045 2009-12-06  Bruno Haible  <bruno@clisp.org>
29046
29047         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
29048         value.
29049
29050 2009-12-06  Bruno Haible  <bruno@clisp.org>
29051
29052         * lib/progname.c: Include stdio.h, stdlib.h.
29053         (set_program_name): Reject a NULL argument.
29054
29055 2009-12-05  Eric Blake  <ebb9@byu.net>
29056
29057         pipe2-safer: new module
29058         * modules/pipe2-safer: New file.
29059         * lib/unistd-safer.h (pipe2_safer): New prototype.
29060         * lib/unistd--.h (pipe2): New wrapper.
29061         * lib/pipe-safer.c (pipe2_safer): New function.
29062         * modules/pipe (Depends-on): Add pipe2-safer.
29063         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
29064
29065         stdlib-safer: preserve cloexec flag for mkostemp[s]
29066         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
29067         fd_safer_flag.
29068
29069         unistd-safer: allow preservation of cloexec status via flag
29070         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
29071         prototypes.
29072         * lib/dup-safer.c (dup_safer_flag): New function.
29073         * lib/fd-safer.c (fd_safer_flag): Likewise.
29074         * modules/cloexec (configure.ac): Set witness.
29075
29076         test-dup2: enhance test
29077         * modules/dup2-tests (Depends-on): Add cloexec.
29078         * tests/test-dup2.c (main): Enhance test.
29079
29080         cloexec: add dup_cloexec
29081         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
29082         header and comments.
29083         * lib/cloexec.c (set_cloexec_flag): Add comments.
29084         (dup_cloexec): New function, with mingw implementation borrowed
29085         from...
29086         * lib/w32spawn.h (dup_noinherit): ...here.
29087         * modules/execute (Depends-on): Add cloexec.
29088         * modules/pipe (Depends-on): Likewise.
29089         * modules/cloexec (Depends-on): Add dup2.
29090         * modules/cloexec-tests (Files): New file.
29091         * tests/test-cloexec.c: Likewise.
29092
29093         test-xalloc-die: fix test for mingw
29094         * modules/xalloc-die-tests (Files): Add tests/init.sh.
29095         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
29096         directory and .exe suffix off argv[0] output.
29097
29098         test-fseeko: fix test for mingw
29099         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
29100         than undefining fseek, so test will pass on mingw.
29101
29102 2009-12-05  Bruno Haible  <bruno@clisp.org>
29103
29104         * lib/progname.h (set_program_name): Clarify specification.
29105         * lib/progname.c (set_program_name): Likewise.
29106         Reported by Jim Meyering.
29107
29108 2009-12-05  Jim Meyering  <meyering@redhat.com>
29109
29110         maint.mk: backslash-escape parens in default regexp
29111         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
29112         backslash-escape the literal parentheses.
29113
29114         maint.mk: news-date-check: use grep -E
29115         * top/maint.mk (today): Define a Make variable, not a...
29116         (news-date-check): ...shell variable.
29117         (news-date-regexp): Use the Make variable.
29118         Use grep's -E option.  Change the failing diagnostic to mention
29119         the variable, $(news-date-regexp).
29120
29121 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
29122
29123         maintainer-makefile: allow customization of NEWS entry format
29124         * top/maint.mk (news-date-regexp): New overridable variable.
29125         (news-date-check): Use it.
29126
29127 2009-12-04  Eric Blake  <ebb9@byu.net>
29128
29129         mgetgroups: add xgetgroups, and avoid ENOSYS failures
29130         * lib/mgetgroups.h (xgetgroups): New prototype.
29131         * lib/mgetgroups.c (xgetgroups): New wrapper.
29132         (mgetgroups): Handle ENOSYS.
29133         * modules/mgetgroups (Depends-on): Add realloc.
29134         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
29135
29136         mgetgroups: avoid argument promotion issues with -1
29137         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
29138         for invalid gid_t.
29139         * tests/test-chown.h (getegid, test_chown): Likewise.
29140         * tests/test-lchown.h (getegid, test_lchown): Likewise.
29141
29142 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
29143
29144         exclude: Fix header file problems.
29145         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
29146
29147 2009-12-01  Jim Meyering  <meyering@redhat.com>
29148
29149         fts: fts_open: do not let an empty string cause immediate failure
29150         This is required in support of GNU rm, for which the command
29151         "rm A '' B" must process and remove both A and B, in spite of
29152         the empty string argument.
29153         * lib/fts.c (fts_open): Do not let the presence of an empty string
29154         cause fts_open to fail immediately.  Most fts-using tools must be
29155         able to process all arguments, in order, and can be expected to
29156         diagnose such arguments themselves.
29157
29158 2009-11-30  Eric Blake  <ebb9@byu.net>
29159
29160         utimens: fix compilation error
29161         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
29162         Declare variable at right scope.
29163
29164 2009-11-29  Jim Meyering  <meyering@redhat.com>
29165
29166         bootstrap: handle perl-5.11's changed --version output
29167         * build-aux/bootstrap (get_version): Handle perl separately,
29168         since perl-5.11's --version output is different.
29169
29170 2009-11-28  Jim Meyering  <meyering@redhat.com>
29171
29172         userspec: depend on the inttostr module, too
29173         * modules/userspec (Depends-on): Add inttostr.
29174
29175         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
29176         * lib/userspec.c (parse_with_separator): Do not accept a user ID
29177         number of MAXUID when it evaluates to (uid_t) -1.
29178         Likewise for group ID.  Reported by Matt McCutchen in
29179         <http://savannah.gnu.org/bugs/?28113>
29180
29181         userspec: reformat to use spaces, not TABs
29182         * lib/userspec.c: Expand TABs to spaces.
29183         Add Emacs' "indent-tabs-mode: nil" hint.
29184
29185 2009-11-27  Eric Blake  <ebb9@byu.net>
29186
29187         getopt-gnu: flush out another BSD bug
29188         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
29189         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
29190         flush out BSD bug.
29191         * tests/test-getopt.h (test_getopt): End lists with NULL.
29192         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29193         (test_getopt_long_posix): Enhance test.
29194         * modules/getopt-posix-tests (Depends-on): Add stdbool.
29195         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
29196         getopt-gnu.
29197         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29198         Likewise.
29199
29200 2009-11-27  Simon Josefsson  <simon@josefsson.org>
29201
29202         * modules/idpriv-droptemp-tests (Notice): Fix text.
29203
29204 2009-11-27  Jim Meyering  <meyering@redhat.com>
29205
29206         test-xalloc-die: avoid spurious failure due to libtool argv difference
29207         In a libtool-enabled project, this test would fail due to a difference
29208         in the emitted program name, e.g.,
29209         -test-xalloc-die: memory exhausted
29210         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
29211         Use program to avoid that.
29212         * modules/xalloc-die-tests (Depends-on): Add progname.
29213         * tests/test-xalloc-die.c: Include progname.h".
29214         (program_name): Remove decl.
29215         (main): Call set_program_name.
29216         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
29217
29218 2009-11-26  Richard Jones  <rjones@redhat.com>
29219
29220         w32sock: leave win32 error in place.
29221         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
29222
29223 2009-11-26  Eric Blake  <ebb9@byu.net>
29224
29225         init.sh: suggest to use skip_ and fail_ functions in comments
29226         * tests/init.sh: Add a sentence.
29227
29228 2009-11-25  Bruno Haible  <bruno@clisp.org>
29229
29230         init.sh: add documentation in comments
29231         * tests/init.sh: Add some developer and user documentation.
29232
29233 2009-11-26  Jim Meyering  <meyering@redhat.com>
29234
29235         init.sh: accommodate even those who specify bogus srcdir manually
29236         * tests/init.sh: Normally, srcdir is guaranteed by automake and
29237         configure-time tests to be sanitized, so that there is no need to
29238         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
29239         (with no double quotes) suffices.  However, since tests may be
29240         invoked manually, and since you may explicitly set srcdir to the
29241         name of a directory containing spaces, do quote its uses here.
29242         * tests/test-pread.sh: Likewise.
29243         Suggested by Bruno Haible.
29244
29245         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
29246         * tests/test-pread.sh: Write no data into the pipe, because
29247         test-pread actually reads none.  This avoids a diagnostic,
29248         "bash: echo: write error: Broken pipe", that arises in the unusual
29249         event something is ignoring SIGPIPE, and might be interpreted
29250         as some sort of failure.  Reported by Bruno Haible.
29251
29252 2009-11-25  Jim Meyering  <meyering@redhat.com>
29253
29254         test-pread: cover failure with ESPIPE and EINVAL
29255         * tests/test-pread.c (main): Test for failure, too.
29256         * tests/test-pread.sh: Invoke with stdin on a pipe.
29257         Suggested by Eric Blake.
29258
29259         pread: improvement and fix
29260         * modules/pread (Depends-on): Depend on lseek, for portability to
29261         e.g., mingw.  Suggested by Eric Blake.
29262         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
29263
29264         unistd.in.h: correct declaration of pread
29265         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
29266         Reported by Richard W.M. Jones.
29267
29268         test-pread.sh: distribute the test script
29269         * modules/pread-tests (Files): Include test-pread.sh.
29270
29271         test-pread.sh: clean up
29272         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
29273         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
29274         That is unnecessary, since it's always ".".
29275         Suggestion from Eric Blake.
29276
29277         test-pread.sh: make executable
29278         * tests/test-pread.sh: Set executable bit.
29279         Reported by Eric Blake.
29280
29281         correct typo in test-pread.sh
29282         * tests/test-pread.sh: Add #! line.
29283
29284         test pread
29285         * tests/test-pread.c: New file.
29286         * tests/test-pread.sh: Likewise.
29287         * modules/pread-tests: Likewise.
29288
29289         pread: new module
29290         * modules/pread: New file.
29291         * lib/unistd.in.h (pread): Define/declare.
29292         * lib/pread.c (pread): New file.
29293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
29294         * modules/unistd (Makefile.am): Substitute witnesses.
29295         * doc/posix-functions/pread.texi (pread): Update.
29296         * MODULES.html.sh: Add pread.
29297
29298 2009-11-25  Jim Meyering  <meyering@redhat.com>
29299
29300         tests/init.sh: new file to be used via most *.sh tests
29301         * tests/init.sh: New file.
29302
29303 2009-11-25  Eric Blake  <ebb9@byu.net>
29304
29305         utimens: work around older Linux failure with symlinks
29306         * lib/utimens.c (lutimensat_works_really): New variable.
29307         (fdutimens, lutimens): Use it to manage kernels that support
29308         nanosecond times on files, but not on symlinks.
29309         Reported by OndÅ™ej Vašík.
29310
29311         utimes: fix configure grammar
29312         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
29313
29314 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
29315
29316         regex: Fix fastmap for multibyte character ranges.
29317         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
29318         characters when a multibyte character range is included.
29319
29320 2009-11-22  Andy Wingo  <wingo@pobox.com>
29321
29322         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
29323         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
29324
29325 2009-11-24  Bruno Haible  <bruno@clisp.org>
29326
29327         doc: Most *_l functions exist in MacOS X 10.5.
29328         * doc/posix-functions/duplocale.texi: Update platforms list.
29329         * doc/posix-functions/freelocale.texi: Likewise.
29330         * doc/posix-functions/newlocale.texi: Likewise.
29331         * doc/posix-functions/uselocale.texi: Likewise.
29332         * doc/posix-functions/isalnum_l.texi: Likewise.
29333         * doc/posix-functions/isalpha_l.texi: Likewise.
29334         * doc/posix-functions/isblank_l.texi: Likewise.
29335         * doc/posix-functions/iscntrl_l.texi: Likewise.
29336         * doc/posix-functions/isdigit_l.texi: Likewise.
29337         * doc/posix-functions/isgraph_l.texi: Likewise.
29338         * doc/posix-functions/islower_l.texi: Likewise.
29339         * doc/posix-functions/isprint_l.texi: Likewise.
29340         * doc/posix-functions/ispunct_l.texi: Likewise.
29341         * doc/posix-functions/isspace_l.texi: Likewise.
29342         * doc/posix-functions/isupper_l.texi: Likewise.
29343         * doc/posix-functions/iswalnum_l.texi: Likewise.
29344         * doc/posix-functions/iswalpha_l.texi: Likewise.
29345         * doc/posix-functions/iswblank_l.texi: Likewise.
29346         * doc/posix-functions/iswcntrl_l.texi: Likewise.
29347         * doc/posix-functions/iswctype_l.texi: Likewise.
29348         * doc/posix-functions/iswdigit_l.texi: Likewise.
29349         * doc/posix-functions/iswgraph_l.texi: Likewise.
29350         * doc/posix-functions/iswlower_l.texi: Likewise.
29351         * doc/posix-functions/iswprint_l.texi: Likewise.
29352         * doc/posix-functions/iswpunct_l.texi: Likewise.
29353         * doc/posix-functions/iswspace_l.texi: Likewise.
29354         * doc/posix-functions/iswupper_l.texi: Likewise.
29355         * doc/posix-functions/iswxdigit_l.texi: Likewise.
29356         * doc/posix-functions/isxdigit_l.texi: Likewise.
29357         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
29358         * doc/posix-functions/strcasecmp_l.texi: Likewise.
29359         * doc/posix-functions/strcoll_l.texi: Likewise.
29360         * doc/posix-functions/strfmon_l.texi: Likewise.
29361         * doc/posix-functions/strftime_l.texi: Likewise.
29362         * doc/posix-functions/strncasecmp_l.texi: Likewise.
29363         * doc/posix-functions/strxfrm_l.texi: Likewise.
29364         * doc/posix-functions/tolower_l.texi: Likewise.
29365         * doc/posix-functions/toupper_l.texi: Likewise.
29366         * doc/posix-functions/towctrans_l.texi: Likewise.
29367         * doc/posix-functions/towlower_l.texi: Likewise.
29368         * doc/posix-functions/towupper_l.texi: Likewise.
29369         * doc/posix-functions/wcscoll_l.texi: Likewise.
29370         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
29371         * doc/posix-functions/wctrans_l.texi: Likewise.
29372         * doc/posix-functions/wctype_l.texi: Likewise.
29373         * doc/glibc-functions/strptime_l.texi: Likewise.
29374         * doc/glibc-functions/strtod_l.texi: Likewise.
29375         * doc/glibc-functions/strtof_l.texi: Likewise.
29376         * doc/glibc-functions/strtol_l.texi: Likewise.
29377         * doc/glibc-functions/strtold_l.texi: Likewise.
29378         * doc/glibc-functions/strtoll_l.texi: Likewise.
29379         * doc/glibc-functions/strtoul_l.texi: Likewise.
29380         * doc/glibc-functions/strtoull_l.texi: Likewise.
29381         * doc/glibc-functions/wcsftime_l.texi: Likewise.
29382         * doc/glibc-functions/wcstod_l.texi: Likewise.
29383         * doc/glibc-functions/wcstof_l.texi: Likewise.
29384         * doc/glibc-functions/wcstol_l.texi: Likewise.
29385         * doc/glibc-functions/wcstold_l.texi: Likewise.
29386         * doc/glibc-functions/wcstoll_l.texi: Likewise.
29387         * doc/glibc-functions/wcstoul_l.texi: Likewise.
29388         * doc/glibc-functions/wcstoull_l.texi: Likewise.
29389
29390 2009-11-24  Bruno Haible  <bruno@clisp.org>
29391
29392         duplocale: Fix logic bug.
29393         * lib/duplocale.c: Don't include <langinfo.h>.
29394         (_NL_LOCALE_NAME): Remove macro.
29395         (rpl_duplocale): Use setlocale instead of nl_langinfo.
29396         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
29397
29398 2009-11-23  Jim Meyering  <meyering@redhat.com>
29399
29400         test-update-copyright: don't hard-code /usr/bin/perl
29401         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
29402         perl to print the current year.  Gilles Espinasse reported that
29403         the replaced use of perl was hard-coded as /usr/bin/perl.
29404
29405 2009-11-23  Bruno Haible  <bruno@clisp.org>
29406
29407         duplocale: Add support for glibc 2.3.x.
29408         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
29409
29410 2009-11-22  Bruno Haible  <bruno@clisp.org>
29411
29412         vasnprintf: Tiny optimization.
29413         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
29414         MacOS X.
29415
29416 2009-11-22  Bruno Haible  <bruno@clisp.org>
29417
29418         Tests for module 'duplocale'.
29419         * modules/duplocale-tests: New file.
29420         * tests/test-duplocale.c: New file.
29421
29422         New module 'duplocale'.
29423         * m4/duplocale.m4: New file.
29424         * lib/locale.in.h (duplocale): New declaration.
29425         * lib/duplocale.c: New file.
29426         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
29427         gl_LOCALE_H_DEFAULTS): New macros.
29428         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
29429         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
29430         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
29431         REPLACE_DUPLOCALE.
29432         * modules/duplocale: New file.
29433         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
29434
29435 2009-11-22  Bruno Haible  <bruno@clisp.org>
29436
29437         * modules/locale-tests (configure.ac): Test for newlocale function.
29438         * tests/test-locale.c: When the system has extended locale functions,
29439         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
29440
29441         locale: Make locale_t available when possible.
29442         * lib/locale.in.h: Include <xlocale.h> when it exists.
29443         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
29444         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
29445         * modules/locale (Depends-on): Add extensions.
29446         (Makefile.am): Also substitute HAVE_XLOCALE_H.
29447         * doc/posix-headers/locale.texi: Document the problem with locale_t.
29448
29449 2009-11-22  Bruno Haible  <bruno@clisp.org>
29450
29451         Add comments.
29452         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
29453         invocation.
29454         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
29455         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29456         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29457
29458 2009-11-22  Bruno Haible  <bruno@clisp.org>
29459
29460         error: account for the possibility of freopen (stdout).
29461         * lib/error.c: Include <unistd.h>.
29462         (flush_stdout): New function, extracted from error and error_at_line.
29463         Determine stdout's fd dynamically.
29464         (error, error_at_line): Invoke flush_stdout.
29465         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
29466         * modules/error (Depends-on): Add unistd.
29467
29468 2009-11-22  Bruno Haible  <bruno@clisp.org>
29469
29470         diffseq: Add comment.
29471         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
29472
29473 2009-11-22  Jim Meyering  <meyering@redhat.com>
29474
29475         c-stack: avoid defining an unused static function
29476         * lib/c-stack.c (find_stack_direction): Do not define this function
29477         when it will not be used.
29478
29479         diffseq: avoid spurious gcc warnings
29480         * lib/diffseq.h (IF_LINT2): Define.
29481         (compareseq): Use it to initialize two members of "part".
29482         This avoids two used-uninitialized warnings.
29483
29484 2009-11-21  Jim Meyering  <meyering@redhat.com>
29485
29486         c-stack: avoid "ignoring return value of `write'" warning
29487         * lib/c-stack.c: Include "ignore-value.h".
29488         (die): Explicitly ignore each write return value.
29489         * modules/c-stack (Depends-on): Add ignore-value.
29490
29491 2009-11-21  Bruno Haible  <bruno@clisp.org>
29492
29493         diffseq: reduce scope of variable 'best'.
29494         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
29495         variable, earlier used for two different purposes.
29496
29497 2009-11-21  Jim Meyering  <meyering@redhat.com>
29498
29499         diffseq: remove useless assignment to "best"
29500         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
29501         assignment.  At that point "best" is already guaranteed to be zero.
29502
29503 2009-11-20  Eric Blake  <ebb9@byu.net>
29504
29505         build: mention ftp redirector in release announcements
29506         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
29507         values that used to come from cfg.mk; mention FTP redirect URL.
29508         * build-aux/announce-gen: Mention the mirror list.
29509         Suggested by Karl Berry.
29510
29511         nanosleep: improve port to mingw
29512         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
29513         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
29514         LIB_NANOSLEEP, but only when needed.
29515         * modules/select (Link): Document LIBSOCKET.
29516         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
29517         enough.
29518
29519         nanosleep: work around cygwin bug
29520         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
29521         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
29522         bug.
29523         (getnow): Delete, not needed.
29524         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
29525         LIB_CLOCK_GETTIME.
29526         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
29527         clock-time, gettime.
29528         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
29529         bug.
29530         * modules/nanosleep-tests: New test.
29531         * tests/test-nanosleep.c: New file.
29532
29533         sleep: work around cygwin bug
29534         * lib/sleep.c (rpl_sleep): Work around the bug.
29535         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
29536         (gl_PREREQ_SLEEP): Delete unused macro.
29537         * modules/sleep (Depends-on): Add verify.
29538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29539         * modules/unistd (Makefile.am): Substitute witness.
29540         * lib/unistd.in.h (sleep): Update prototype.
29541         * doc/posix-functions/sleep.texi (sleep): Document the bug.
29542         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
29543         * modules/sleep-tests (Depends-on): Check for alarm.
29544
29545 2009-11-20  Jim Meyering  <meyering@redhat.com>
29546
29547         maint.mk: improve sc_prohibit_magic_number_exit
29548         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
29549         so it does not match uses like System.exit(1).
29550         Add comments showing how to correct all offenders.
29551
29552 2009-11-19  Eric Blake  <ebb9@byu.net>
29553
29554         xalloc-die-tests: add missing library
29555         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
29556
29557         test-xvasprintf: silence compiler warnings
29558         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
29559         empty string from gcc.
29560
29561 2009-11-19  Jim Meyering  <meyering@redhat.com>
29562
29563         xfreopen: new module, from coreutils
29564         * modules/xfreopen: New module.
29565         * lib/xfreopen.c: New file.
29566         * lib/xfreopen.h: New file.
29567         * MODULES.html.sh (File stream based Input/Output"): Add it.
29568
29569 2009-11-19  Eric Blake  <ebb9@byu.net>
29570
29571         manywarnings: depend on warnings
29572         * modules/manywarnings (Depends-on): Add warnings.
29573
29574         build: avoid compiler warnings
29575         * lib/select.c (rpl_select): Delete unused variable.
29576         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
29577
29578 2009-11-18  Eric Blake  <ebb9@byu.net>
29579
29580         tests: avoid false negative with --with-packager
29581         * tests/test-version-etc.sh: Discard packager information.
29582         * tests/test-argp-version-etc-1.sh: Likewise.
29583         Reported by Mike Frysinger.
29584
29585         utimens: fix regression on Solaris
29586         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
29587         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
29588         can only change fd timestamps via futimesat.  Instead, use an
29589         additional witness macro to avoid BSD bug.
29590         Reported by Jim Meyering.
29591
29592 2009-11-17  Eric Blake  <ebb9@byu.net>
29593
29594         usleep: use it to simplify tests
29595         * modules/stat-time-tests (Depends-on): Add usleep.
29596         (configure.ac): Drop usleep check.
29597         * modules/chown-tests (Depends-on, configure.ac): Likewise.
29598         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
29599         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
29600         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
29601         * modules/openat-tests (Depends-on, configure.ac): Likewise.
29602         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
29603         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
29604         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
29605         Likewise.
29606         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
29607         * tests/test-lchown.h (nap): Likewise.
29608         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
29609         * tests/test-stat-time.c (nap): Likewise.
29610         * tests/test-utimens-common.h (nap): Update comments.
29611
29612         usleep: new module
29613         * modules/usleep: New file.
29614         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
29615         * lib/usleep.c (usleep): Likewise.
29616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29617         * modules/unistd (Makefile.am): Substitute witnesses.
29618         * lib/unistd.in.h (usleep): Add declaration.
29619         * doc/pastposix-functions/usleep.texi (usleep): Document this.
29620         * MODULES.html.sh (Date and time): Likewise.
29621         * modules/usleep-tests (Depends-on): New test.
29622         * tests/test-usleep.c: New file.
29623
29624         chown: work around OpenBSD bug
29625         * lib/chown.c (rpl_chown): Work around the bug.
29626         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
29627         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
29628         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
29629         * modules/chown (Depends-on): Add stdbool.
29630         * modules/lchown (Depends-on): Likewise.
29631         * doc/posix-functions/chown.texi (chown): Document the bug.
29632         * doc/posix-functions/lchown.texi (lchown): Likewise.
29633         * tests/test-lchown.h (test_chown): Relax test.
29634
29635         mkstemp: avoid conflict with C++ keyword template
29636         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
29637         * lib/mkostemp.c (mkostemp): Likewise.
29638         * lib/mkostemps.c (mkostemps): Likewise.
29639         * lib/mkstemp.c (mkstemp): Likewise.
29640         * lib/mkstemps.c (mkstemps): Likewise.
29641
29642         xalloc-die-tests: optimize
29643         * tests/test-xalloc-die.sh: Reduce number of processes.
29644
29645 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29646
29647         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
29648         patch from ludo@gnu.org (Ludovic Courtès).
29649
29650 2009-11-17  Jim Meyering  <meyering@redhat.com>
29651
29652         version-etc: use proper license string
29653         * modules/version-etc (License): Use LGPL, not LGPLv3+.
29654         * modules/version-etc-fsf: Likewise.
29655
29656 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29657
29658         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
29659         printed to stdout.  Deal with EOL differences.
29660
29661 2009-11-17  Eric Blake  <ebb9@byu.net>
29662
29663         unsetenv: work around Solaris bug
29664         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
29665         * lib/unsetenv.c (rpl_unsetenv): Work around it.
29666         Reported by Jim Meyering.
29667
29668         vasnprintf: avoid compiler warnings
29669         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
29670         variables.
29671         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
29672
29673 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29674
29675         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
29676         settings since xalloc-die is no longer the self test,
29677         xalloc-die.sh is.
29678
29679 2009-11-17  Jim Meyering  <meyering@redhat.com>
29680
29681         test-xalloc-die.sh: make the code agree with the commit log
29682         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
29683         at the end, just in case you happen to have a test-xalloc-die
29684         program in some other PATH directory.
29685
29686         test-xalloc-die.sh: fix a portability bug
29687         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
29688         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
29689         Otherwise, argv[0] (as often seen in diagnostics) would be too
29690         system-dependent, sometimes with, and sometimes without the leading "./".
29691
29692         version-etc-fsf: relax license to LGPLv3+
29693         * modules/version-etc-fsf (License): Relax license.
29694
29695 2009-11-16  Eric Blake  <ebb9@byu.net>
29696
29697         xalloc-die-tests: avoid printing null pointer
29698         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
29699         shell script.
29700         * tests/test-xalloc-die.c (program_name): Declare.
29701         * tests/test-xalloc-die.sh (tmpfiles): New file.
29702
29703         setenv, unsetenv: work around various bugs
29704         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
29705         (setenv) [HAVE_SETENV]: Work around bugs.
29706         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
29707         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
29708         for bugs.
29709         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
29710         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
29711         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
29712         * modules/stdlib (Makefile.am): Update substitutions.
29713         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
29714         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
29715         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29716         * modules/setenv-tests: New test.
29717         * modules/unsetenv-tests: Likewise.
29718         * tests/test-setenv.c: New file.
29719         * tests/test-unsetenv.c: Likewise.
29720
29721 2009-11-16  Jim Meyering  <meyering@redhat.com>
29722
29723         version-etc: relax license to LGPLv3+
29724         * modules/version-etc (License): Relax license.
29725
29726         better AC_REQUIRE expanded-before-required-warning avoidance
29727         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
29728         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
29729         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
29730         which is no longer needed.
29731
29732 2009-11-16  Eric Blake  <ebb9@byu.net>
29733
29734         test-freading: clean up temporary file
29735         * tests/test-freading.c (main): Remove file on success, and use
29736         ASSERT more liberally.
29737         Reported by Jim Meyering.
29738
29739 2009-11-16  Jim Meyering  <meyering@redhat.com>
29740
29741         avoid new AC_REQUIRE expanded-before-required warnings
29742         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
29743         merely using it.
29744         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
29745         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
29746
29747 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29748
29749         * tests/test-xalloc-die.c: New file.
29750         * modules/xalloc-die-tests: New file.
29751         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
29752         XFAIL_TESTS so it can be appended by modules.
29753
29754 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29755
29756         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
29757         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
29758
29759 2009-11-14  Eric Blake  <ebb9@byu.net>
29760
29761         fnmatch: avoid compiler warning
29762         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
29763         to silence compiler warning about mismatch signedness in ?:.
29764         Reported by Robert Millan.
29765
29766         intprops: add double-inclusion guard
29767         * lib/intprops.h: Allow idempotent includes.
29768         Suggested by Bruce Korb.
29769
29770         openat: detect Solaris fchownat bug
29771         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
29772         penalizing glibc chownat when only lchownat is broken.
29773         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
29774         trailing slash bugs.
29775         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
29776         * modules/openat-tests (Files): Include more files.
29777         (Depends-on): Add mgetgroups, sleep, stat-time.
29778         (configure.ac): Add additional checks.
29779         (Makefile.am): Build new test.
29780         * tests/test-fchownat.c: New file.
29781
29782         lchown: detect Solaris and FreeBSD bug
29783         * lib/lchown.c (rpl_lchown): Work around bug.
29784         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
29785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29786         * modules/unistd (Makefile.am): Populate it.
29787         * lib/unistd.in.h (lchown): Update declaration.
29788         * doc/posix-functions/lchown.texi (lchown): Document the bug.
29789         * modules/lchown-tests: New file.
29790         * tests/test-lchown.h (test_lchown): Likewise.
29791         * tests/test-lchown.c (main): Likewise.
29792
29793         chown: detect Solaris and FreeBSD bug
29794         * lib/chown.c (rpl_chown): Work around bug.
29795         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
29796         (gl_PREREQ_CHOWN): Delete.
29797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29798         * modules/unistd (Makefile.am): Populate it.
29799         * lib/unistd.in.h (chown): Update declaration.
29800         * lib/lchown.c (chown): Update client.
29801         * modules/lchown (Depends-on): Add lstat.
29802         * doc/posix-functions/chown.texi (chown): Document the bug.
29803         * doc/posix-functions/getgroups.texi (getgroups): Document
29804         getgroups pitfall.
29805         * modules/chown-tests: New file.
29806         * tests/test-chown.h (test_chown): Likewise.
29807         * tests/test-chown.c (main): Likewise.
29808
29809 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
29810
29811         gnulib-tool: correctly detect absence of m4 directories
29812         * gnulib-tool: Avoid extra newline on data passed to wc -l.
29813
29814 2009-11-14  Jim Meyering  <meyering@redhat.com>
29815
29816         maint.mk: Prohibit inclusion of "xalloc.h" without use.
29817         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29818
29819 2009-11-14  John W. Eaton  <jwe@gnu.org>
29820
29821         strftime.h: wrap funtion declaration in extern "C" block
29822         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
29823
29824 2009-11-13  Eric Blake  <ebb9@byu.net>
29825
29826         getgroups: avoid compiler warning
29827         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
29828
29829         getgroups: work around FreeBSD bug
29830         * lib/getgroups.c (rpl_getgroups): Work around the bug.
29831         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
29832         * doc/posix-functions/getgroups.texi (getgroups): Document it.
29833         * tests/test-getgroups.c (main): Fix buffer overrun.
29834
29835         getgroups: avoid compilation failure
29836         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
29837         * modules/getgroups (Depends-on): Add stdint.
29838
29839 2009-11-13  Jim Meyering  <meyering@redhat.com>
29840
29841         test-getgroups: avoid compilation failure
29842         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
29843
29844 2009-11-13  Eric Blake  <ebb9@byu.net>
29845
29846         mgetgroups: new module, taken from coreutils
29847         * modules/mgetgroups: New file.
29848         * lib/mgetgroups.h: Likewise.
29849         * lib/mgetgroups.c (mgetgroups): Likewise.
29850         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
29851         * MODULES.html.sh (Users and groups): Mention it.
29852
29853         getgroups: don't expose GETGROUPS_T to user
29854         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
29855         an element at a time if GETGROUPS_T is wrong size.
29856         * lib/getugroups.h (getugroups): Change signature.
29857         * lib/unistd.in.h (getgroups): Likewise.
29858         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
29859         signature needs fixing.
29860         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
29861         AC_TYPE_GETGROUPS.
29862         * modules/group-member (Depends-on): Add getgroups.
29863         * lib/group-member.c (group_info, get_group_info): Use gid_t.
29864         (group_member): Rely on getgroups replacement.
29865         * lib/getugroups.c (getugroups): Use gid_t.
29866         * tests/test-getgroups.c (main): Likewise.
29867         * NEWS: Mention the signature change.
29868         * doc/posix-functions/getgroups.texi (getgroups): Mention the
29869         problem with signature.
29870         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
29871         GETGROUPS_T is still useful for setgroups.
29872
29873         getgroups, getugroups: provide stubs for mingw
29874         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
29875         * lib/getugroups.c (getugroups): Likewise.
29876         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
29877         function.  Modernize replacement scheme.
29878         (gl_PREREQ_GETGROUPS): Delete.
29879         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
29880         * modules/getgroups (configure.ac): Declare witness.
29881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29882         * modules/unistd (Depends-on): Substitute witness.
29883         * lib/unistd.in.h (getgroups): Declare replacement.
29884
29885         getgroups: avoid calling exit
29886         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
29887         drop xalloc.
29888         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
29889         dependencies.
29890         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
29891         exiting, in the rare case of malloc failure.
29892
29893         getgroups: fix logic error
29894         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
29895         has more than 20 groups.
29896         * modules/getgroups-tests: New test.
29897         * tests/test-getgroups.c: New file.
29898
29899 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29900
29901         * tests/test-base64.c: Improve.
29902
29903 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29904
29905         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29906         Blake <ebb9@byu.net>.
29907
29908 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29909
29910         * tests/test-xvasprintf.c: Add %s%s related checks.
29911
29912 2009-11-12  Eric Blake  <ebb9@byu.net>
29913
29914         version-etc: match standards.texi style
29915         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29916         and use <> only for URLs.
29917
29918 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29919
29920         fts: do not fail on a submount during traversal
29921         * lib/fts.c (fts_build): Read the stat info again after opening
29922         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29923         Original report at http://bugzilla.redhat.com/501848.
29924
29925 2009-11-12  Jim Meyering  <meyering@redhat.com>
29926
29927         bootstrap: sync from coreutils
29928         * build-aux/bootstrap (bootstrap_epilogue): New function.
29929         Use git_modules_config in one more place.  This make bootstrap's
29930         --gnulib-srcdir option more useful for testing.
29931
29932         bootstrap: generalize autoheader check
29933         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29934         AC_CONFIG_HEADERS.
29935
29936 2009-11-11  Eric Blake  <ebb9@byu.net>
29937
29938         mkfifoat: use new modules for Solaris and BSD bugs
29939         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29940         * lib/mkfifoat.c (mknodat): Split...
29941         * lib/mknodat.c (mknodat): ...into new file.
29942         * modules/mkfifoat (Files): Ship new file.
29943         (Depends-on): Add mkfifo, mknod.
29944         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29945         (Depends-on): Add symlink.
29946         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29947         redundant with test_mkfifo.h.
29948         (do_mkfifoat, do_mknodat): New helpers.
29949
29950         mknod: new module
29951         * modules/mknod: New file.
29952         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29953         * lib/mknod.c (mknod): Likewise.
29954         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29955         defaults.
29956         * modules/sys_stat (Makefile.am): Substitute them.
29957         * lib/sys_stat.in.h (mknod): Declare replacement.
29958         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29959         Document it.
29960         * doc/posix-functions/mknod.texi (mknod): Likewise.
29961         * modules/mknod-tests: New test.
29962         * tests/test-mknod.c: Likewise.
29963
29964         mkfifo: new module
29965         * modules/mkfifo: New file.
29966         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29967         * lib/mkfifo.c (mkfifo): Likewise.
29968         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29969         defaults.
29970         * modules/sys_stat (Makefile.am): Substitute them.
29971         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29972         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29973         Document it.
29974         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29975         * modules/mkfifo-tests: New test.
29976         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29977         from test-mkfifoat.c.
29978         * tests/test-mkfifo.c: New file.
29979
29980         readlink: detect FreeBSD bug
29981         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29982         slash on symlink.
29983         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29984         * tests/test-readlink.h (test_readlink): Enhance test.
29985
29986         symlink: detect FreeBSD bug
29987         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29988         slash on symlink.
29989         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29990         * tests/test-symlink.h (test_symlink): Enhance test.
29991
29992 2009-11-10  Eric Blake  <ebb9@byu.net>
29993
29994         link: detect FreeBSD bug
29995         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29996         symlink.
29997         * doc/posix-functions/link.texi (link): Document the bug.
29998         * tests/test-link.h (test_link): Enhance test.
29999         * tests/test-linkat.c (main): Update caller.
30000
30001         unlink, remove: detect FreeBSD bug
30002         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
30003         slash on symlink.
30004         * doc/posix-functions/unlink.texi (unlink): Document the bug.
30005         * doc/posix-functions/remove.texi (remove): Likewise.
30006         * tests/test-unlink.h (test_unlink): Enhance test.
30007         * tests/test-remove.c (main): Likewise.
30008
30009 2009-11-09  Eric Blake  <ebb9@byu.net>
30010
30011         rename: detect FreeBSD bug
30012         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
30013         slash on symlink.
30014         * modules/renameat-tests (Depends-on): Add filenamecat.
30015         * tests/test-rename.h (test_rename): Allow one more errno.
30016         * tests/test-renameat.c (main): Likewise.
30017         * doc/posix-functions/rename.texi (rename): Document the bug.
30018
30019         open: detect FreeBSD bug
30020         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
30021         symlink.
30022         * doc/posix-functions/open.texi (open): Document the bug.
30023         * doc/posix-functions/utimes.texi (utimes): Likewise.
30024         * tests/test-open.h (test_open): Add parameters, and test symlink
30025         handling.
30026         * tests/test-open.c (main): Adjust caller.
30027         * tests/test-fcntl-safer.c (main): Likewise.
30028         * modules/open-tests (Depends-on): Add stdbool, symlink.
30029         * modules/fcntl-safer-tests (Depends-on): Likewise.
30030         * tests/test-openat.c (main): Add test-open tests.
30031
30032         stat: detect FreeBSD bug
30033         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
30034         symlink.
30035         * doc/posix-functions/stat.texi (stat): Document the bug.
30036         * tests/test-stat.h (test_stat_func): Add argument.
30037         * tests/test-stat.c (main): Adjust caller.
30038         * tests/test-fstatat.c (main): Likewise.
30039         * modules/stat-tests (Depends-on): Add stdbool, symlink.
30040         Reported by Jim Meyering.
30041
30042 2009-11-09  James Youngman  <jay@gnu.org>
30043
30044         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
30045         * lib/strftime.c: Correct placement of #include "ignore-value.h".
30046
30047 2009-11-08  Jim Meyering  <meyering@redhat.com>
30048
30049         utimens: remove invalid futimesat call
30050         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
30051         It used the file descriptor of the target file as the DIR_FD
30052         parameter and NULL as the file name.  That caused failure with
30053         errno == EFAULT on FreeBSD-8.0-rc2
30054
30055 2009-11-07  Eric Blake  <ebb9@byu.net>
30056
30057         fflush, freadseek: use fseeko, not fseek
30058         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
30059         (clear_ungetc_buffer): Avoid potential problems on large files.
30060         * lib/freadseek.c (freadseek): Likewise.
30061         * modules/freadseek (Depends-on): Add fseeko.
30062         * modules/fseek (configure.ac): Set a witness.
30063         * tests/test-fflush.c (main): Use fseeko.
30064         * tests/test-fpurge.c (fseek): Disable link warning.
30065         * tests/test-freadable.c (fseek): Likewise.
30066         * tests/test-freading.c (fseek): Likewise.
30067         * tests/test-fseeko.c (fseek): Likewise.
30068         * tests/test-ftell.c (fseek): Likewise.
30069         * tests/test-ftello.c (fseek): Likewise.
30070         * tests/test-fwritable.c (fseek): Likewise.
30071         * tests/test-fwriting.c (fseek): Likewise.
30072
30073 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30074
30075         * modules/memchr (Depends-on): Drop getpagesize dependency.
30076
30077 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30078
30079         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
30080         Reported by Ludovic Courtès.
30081         * build-aux/pmccabe2html: Improve example usage.
30082         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
30083
30084 2009-11-06  Jim Meyering  <meyering@redhat.com>
30085
30086         do-release-commit-and-tag: New module.
30087         Automate the release-commit and tag process.
30088         * build-aux/do-release-commit-and-tag: New script, from coreutils.
30089         * modules/do-release-commit-and-tag: New file.
30090         * MODULES.html.sh (Support for maintaining and releasing): Add it.
30091
30092 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30093
30094         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
30095         because test-select.c uses inet_pton.
30096
30097 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30098
30099         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
30100         GETADDRINFO_LIB.  Bump serial number.
30101         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
30102         Suggested by Eric Blake <ebb9@byu.net>.
30103
30104 2009-11-05  Eric Blake  <ebb9@byu.net>
30105
30106         strtod: detect darwin bug
30107         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
30108         Reported by Leo Davis.
30109
30110         freopen-safer: new module
30111         * modules/freopen-safer: New module.
30112         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
30113         * lib/freopen-safer.c (freopen_safer): New file.
30114         * lib/stdio-safer.h (freopen_safer): New declaration.
30115         * lib/stdio--.h (freopen): New override.
30116         * MODULES.html.sh (File stream based Input/Output): Mention it.
30117         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
30118         freopen-safer module.
30119         * doc/posix-functions/stderr.texi (stderr): Likewise.
30120         * doc/posix-functions/stdin.texi (stdin): Likewise.
30121         * doc/posix-functions/stdout.texi (stdout): Likewise.
30122         * modules/freopen-safer-tests: New test.
30123         * tests/test-reopen-safer.c: New file.
30124
30125 2009-11-05  Jim Meyering  <meyering@redhat.com>
30126
30127         maint.mk: Prohibit inclusion of "close-stream.h" without use.
30128         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30129
30130 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30131
30132         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
30133
30134 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30135
30136         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
30137
30138 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30139
30140         Fix link error.
30141         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30142         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30143
30144 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30145
30146         * tests/test-func.c: Also test value of __func__.
30147
30148 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30149
30150         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
30151         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
30152
30153 2009-11-05  Bruno Haible  <bruno@clisp.org>
30154
30155         Fix link error.
30156         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30157         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30158         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
30159
30160 2009-11-05  Bruno Haible  <bruno@clisp.org>
30161
30162         Tests for module 'inet_pton'.
30163         * modules/inet_pton-tests: New file.
30164         * tests/test-inet_pton.c: New file.
30165
30166 2009-11-05  Bruno Haible  <bruno@clisp.org>
30167
30168         Tests for module 'inet_ntop'.
30169         * modules/inet_ntop-tests: New file.
30170         * tests/test-inet_ntop.c: New file.
30171
30172 2009-11-04  Eric Blake  <ebb9@byu.net>
30173
30174         stdlib-safer: wrap all mkstemp variants
30175         * modules/mkostemp (configure.ac): Set witness.
30176         * modules/mkostemps (configure.ac): Likewise.
30177         * modules/mkstemps (configure.ac): Likewise.
30178         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
30179         (mkstemps_safer): Wrap more functions.
30180         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
30181         wrapping.
30182         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
30183         (mkstemps_safer): Implement the wrappers.
30184
30185         mkstemps, mkostemps: new modules
30186         * modules/mkostemps: New module.
30187         * modules/mkstemps: Likewise.
30188         * lib/mkostemps.c (mkostemps): New file.
30189         * lib/mkstemps.c (mkstemps): Likewise.
30190         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
30191         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
30192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
30193         * modules/stdlib (Makefile.am): Substitute them.
30194         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
30195         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
30196         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30197         * doc/gnulib.texi (Glibc stdlib.h): Include them.
30198         * MODULES.html.sh (File system functions): Mention them.
30199
30200         tempname: resync from glibc
30201         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
30202         same values for __GT_FILE as glibc.  Abort even when assertions
30203         are disabled.
30204         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
30205         match its value otherwise.  Allow idempotent inclusion.
30206         * lib/mkdtemp.c (mkdtemp): Adjust caller.
30207         * lib/mkostemp.c (mkostemp): Likewise.
30208         * lib/mkstemp.c (mkstemp): Likewise.
30209         * lib/tmpfile.c (tmpfile): Likewise.
30210         * NEWS: Document this.
30211
30212         utimens: fix use of futimens on older Linux
30213         * lib/utimens.c (fdutimens): Use updated, rather than original,
30214         timespec to avoid bug in older Linux kernel.
30215         Reported by Simon Josefsson.
30216
30217 2009-11-04  Bruno Haible  <bruno@clisp.org>
30218
30219         Make num_processors more flexible and consistent.
30220         * lib/nproc.h (enum nproc_query): New type.
30221         (num_processors): Add a 'query' argument.
30222         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
30223         (num_processors): Add a 'query' argument. Test the value of the
30224         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
30225         mingw, count the number of CPUs available for the current process.
30226         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
30227         Check for sched_getaffinity and sched_getaffinity_np.
30228         * modules/nproc (Depends-on): Add c-ctype, extensions.
30229         * NEWS: Mention the change.
30230
30231 2009-11-03  Bruno Haible  <bruno@clisp.org>
30232
30233         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
30234
30235 2009-11-03  Jim Meyering  <meyering@redhat.com>
30236
30237         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
30238         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
30239         if it is defined.
30240
30241 2009-11-02  Eric Blake  <ebb9@byu.net>
30242
30243         mktime, timegm: share common declaration
30244         * lib/mktime-internal.h: New file.
30245         * lib/mktime.c: Use it rather than open-coding a declaration.
30246         * lib/timegm.c: Likewise.
30247         * modules/mktime (Files): Ship it.
30248         * modules/timegm (Files): Likewise.
30249         Suggested by Bruno Haible.
30250
30251         test-update-copyright: update test to match script changes
30252         * tests/test-update-copyright.sh: Avoid hard-coding perl
30253         location.  Don't update *.bak created by earlier runs.
30254
30255 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30256             Simon Josefsson  <simon@josefsson.org>
30257             Bruno Haible  <bruno@clisp.org>
30258
30259         Fix link error on Solaris 8.
30260         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
30261         also in libnsl. Define also INET_PTON_LIB.
30262         * modules/inet_pton (Link): New section.
30263
30264 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30265             Bruno Haible  <bruno@clisp.org>
30266
30267         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
30268         * modules/inet_ntop (Link): New section.
30269         Reported by Boyan Kasarov <bkasarov@gmail.com>.
30270
30271 2009-11-02  Eric Blake  <ebb9@byu.net>
30272
30273         maint: avoid compiler warnings in m4 macros
30274         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
30275         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
30276
30277 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30278
30279         * m4/pmccabe2html.m4: Remove file.
30280         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
30281         function.  Change maintainer.
30282         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
30283         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
30284         Courtès).
30285
30286 2009-10-31  Eric Blake  <ebb9@byu.net>
30287
30288         fseeko: fix m4 regression
30289         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
30290         regression from 2009-10-27.
30291         Reported by Ralf Wildenhues.
30292
30293 2009-10-31  Jim Meyering  <meyering@redhat.com>
30294
30295         inttostr: aesthetics and improved (compile-time) safety
30296         Define inttype_is_signed rather than inttype_is_unsigned,
30297         since the sole use is via "#if inttype_is_signed".
30298         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
30299         inttype_is_unsigned.
30300         * lib/offtostr.c (inttype_is_signed): Likewise.
30301         * lib/uinttostr.c (inttype_is_signed): Likewise.
30302         * lib/umaxtostr.c (inttype_is_signed): Likewise.
30303         * lib/inttostr.c (inttostr): Use verify to cross-check the
30304         inttype_is_signed value and the signedness of the actual type.
30305         * modules/inttostr (Depends-on): Add verify.
30306
30307 2009-10-30  Eric Blake  <ebb9@byu.net>
30308
30309         build: avoid compiler warnings
30310         * lib/fchmodat.c (lchmod): Mark unused variables.
30311         * lib/getopt.c (_getopt_initialize): Likewise.
30312         * lib/mktime.c (__mktime_internal): Provide prototype.
30313         * lib/inttostr.c (inttostr): Avoid compiler warning even with
30314         older gcc that do not understand #pragma GCC diagnostic.
30315         * lib/uinttostr.c (inttype_is_unsigned): Define.
30316         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
30317
30318 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30319
30320         stat: fix compilation on AIX
30321         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
30322         only see struct stat64.
30323
30324 2009-10-30  Eric Blake  <ebb9@byu.net>
30325
30326         exclude: make more robust
30327         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
30328         rather than masking a coding bug.
30329         Suggested by Bruno Haible.
30330
30331 2009-10-30  Jim Meyering  <meyering@redhat.com>
30332
30333         perl scripts: remove #!/usr/bin/perl in favor of more portable...
30334         Rather than putting #!/usr/bin/perl on the first line,
30335         start with a variant of what's recommended by "man perlrun" that
30336         invokes the first "perl" program from your shell's search path.
30337         * build-aux/gitlog-to-changelog: Replace #!... as above.
30338         Add a "Local Variables" perl mode setting.
30339         Prompted by a patch from Ludovic Courtès.
30340         Improved by Eric Blake.
30341         * build-aux/useless-if-before-free: Likewise.
30342         * build-aux/announce-gen: Likewise.
30343         * build-aux/update-copyright: Likewise.
30344
30345 2009-10-29  Eric Blake  <ebb9@byu.net>
30346
30347         filenamecat-lgpl: adjust clients
30348         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
30349         filenamecat.
30350         * modules/renameat (Depends-on): Likewise.
30351
30352         filenamecat: split into filenamecat-lgpl
30353         * modules/filenamecat-lgpl: New module.
30354         * modules/filenamecat (Files): Move library-safe files into
30355         filenamecat-lgpl.
30356         (Depends-on): Add filenamecat-lgpl.
30357         (configure.ac): Declare witness.
30358         * lib/filenamecat.h (file_name_concat): Only declare when using
30359         GPL module.
30360         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
30361         Move...
30362         * lib/filenamecat-lgpl.c: ...into new file.
30363         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
30364         (gl_FILE_NAME_CONCAT): Use it.
30365         * MODULES.html.sh (File system functions): Mention new module.
30366
30367         argp: avoid memory leak
30368         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
30369         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
30370         base_name, since the latter malloc()s and can call exit().
30371         Leak introduced 2006-07-03.
30372
30373         dirname-lgpl: adjust clients that don't need full dirname
30374         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
30375         * modules/filenamecat (Depends-on): Likewise.
30376         * modules/linkat (Depends-on): Likewise.
30377         * modules/mkancesdirs (Depends-on): Likewise.
30378         * modules/mkdir (Depends-on): Likewise.
30379         * modules/openat (Depends-on): Likewise.
30380         * modules/savewd (Depends-on): Likewise.
30381         * modules/rename (Depends-on): Likewise.
30382         (License): Relax license.
30383         * modules/mkdir-tests (Depends-on): Drop progname.
30384         (Makefile.am): Delete unneeded LDADD.
30385         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
30386
30387         dirname: split into dirname-lgpl
30388         * modules/dirname-lgpl: New module.
30389         * modules/dirname (Files): Move library-safe files into
30390         dirname-lgpl.
30391         (Depends-on): Add dirname-lgpl.
30392         (configure.ac): Declare witness.
30393         * modules/double-slash-root (License): Relax license.
30394         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
30395         module.
30396         * lib/dirname.c (dir_len, mdir_name): Move...
30397         * lib/dirname-lgpl.c: ...into new file.
30398         * lib/basename.c (last_component, base_len): Move...
30399         * lib/basename-lgpl.c: ...into new file.
30400         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
30401         (gl_DIRNAME): Use it.
30402         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
30403         Mention new module.
30404         * modules/dirname-tests (Depends-on): Add progname.
30405         * tests/test-dirname.c (program_name): Delete.
30406
30407         mkdir: make safe for libraries
30408         * modules/mkdir (Depends-on): Drop xalloc.
30409         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
30410         exit.
30411
30412         tests: avoid some compiler warnings
30413         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
30414         literals.
30415         * tests/test-memchr.c (main): Avoid type mismatch.
30416         * tests/test-arpa_inet.c (main): Avoid unused parameters.
30417         * tests/test-base64.c (main): Likewise.
30418         * tests/test-getdelim.c (main): Likewise.
30419         * tests/test-gethostname.c (main): Likewise.
30420         * tests/test-getline.c (main): Likewise.
30421         * tests/test-netinet_in.c (main): Likewise.
30422         * tests/test-select.c (open_server_socket, main): Likewise.
30423         * tests/test-select-stdin.c (main): Likewise.
30424         * tests/test-sockets.c (main): Likewise.
30425         * tests/test-strsignal.c (main): Likewise.
30426         * tests/test-sys_select.c (main): Likewise.
30427         * tests/test-sys_socket.c (main): Likewise.
30428         * tests/test-u64.c (main): Likewise.
30429         * tests/test-xfprintf-posix.c (main): Likewise.
30430         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
30431
30432         sockets: avoid compiler warning
30433         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
30434
30435         maint: detect usage(1) and other suspicious exits
30436         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
30437
30438 2009-10-29  Jim Meyering  <meyering@redhat.com>
30439
30440         timespec: long-to-int truncation could make timespec_cmp malfunction
30441         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
30442         a multiple of 2^32 nanoseconds as no difference.
30443
30444 2009-10-28  Jim Meyering  <meyering@redhat.com>
30445
30446         fprintftime: wrap macro code argument in "do {...} while(0)"
30447         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
30448         cpy macro must be a statement that can be followed by a semicolon.
30449         Now that the else clause contains a comment and is hence longer
30450         than one line, I require curly braces.  That in turn requires
30451         that we wrap this code block in the standard do...while(0).
30452
30453         fprintftime: remove stray semicolon from previous change
30454         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
30455
30456         fprintftime: avoid a warning about ignored fwrite return value
30457         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
30458         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
30459         that is unsafe.
30460         * modules/fprintftime (Depends-on): Add ignore-value.
30461
30462         exclude: avoid an unwarranted warning
30463         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
30464
30465 2009-10-27  Eric Blake  <ebb9@byu.net>
30466
30467         fseek: avoid compilation failure when fflush is replaced
30468         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
30469         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
30470         module is in use.
30471         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
30472         module is not in use; since REPLACE_FSEEK worked otherwise.
30473         (GNULIB_FTELLO): Likewise for ftell.
30474         Reported by Ian Beckwith and others.
30475
30476 2009-10-27  Bruno Haible  <bruno@clisp.org>
30477
30478         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
30479         Reported by Jim Meyering.
30480
30481 2009-10-27  Jim Meyering  <jim@meyering.net>
30482             Bruno Haible  <bruno@clisp.org>
30483
30484         Avoid warning despite dropping the return value of fwrite.
30485         * lib/unicodeio.c: Include ignore-value.h.
30486         (fwrite_success_callback): Explicitly ignore fwrite's return value.
30487         * modules/unicodeio (Depends-on): Add ignore-value.
30488
30489 2009-10-26  Eric Blake  <ebb9@byu.net>
30490
30491         areadlinkat: fix fallback path
30492         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
30493         pointer and zero.
30494
30495 2009-10-22  Pádraig Brady  <P@draigBrady.com>
30496
30497         Use a better IO block size for modern systems
30498         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
30499         * lib/md2.c: Likewise.
30500         * lib/md4.c: Likewise.
30501         * lib/md5.c: Likewise.
30502         * lib/sha1.c: Likewise.
30503         * lib/sha256.c: Likewise.
30504         * lib/sha512.c: Likewise.
30505
30506 2009-10-22  Eric Blake  <ebb9@byu.net>
30507
30508         tests: avoid several compiler warnings
30509         * tests/test-getcwd.c (main): Avoid buffer underflow.
30510         * tests/test-getdate.c (main): String literals are not safe with
30511         putenv, so use setenv.  Declare unused argument.
30512         * modules/getdate-tests (Depends-on): Add setenv.
30513         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
30514         problems with string literals in char *.
30515         * tests/test-hash.c (main): Avoid shadowing declaration.
30516         (insert_new): Treat string literals as char const *.
30517         * tests/test-getopt.h (test_getopt): Likewise.
30518         (getopt_loop): Alter types to minimize casting elsewhere.
30519         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
30520         (test_getopt_long_posix): Likewise.
30521         (do_getopt_long): Add wrapper to minimize casting.
30522         * tests/test-atexit.c (clear_temp_file): Use void.
30523         * tests/test-areadlink-with-size.c (main): Declare unused
30524         arguments.
30525         * tests/test-areadlink.c (main): Likewise.
30526         * tests/test-areadlinkat-with-size.c (main): Likewise.
30527         * tests/test-areadlinkat.c (main): Likewise.
30528         * tests/test-canonicalize-lgpl.c (main): Likewise.
30529         * tests/test-canonicalize.c (main): Likewise.
30530         * tests/test-dirent-safer.c (main): Likewise.
30531         * tests/test-dirname.c (main): Likewise.
30532         * tests/test-dup2.c (main): Likewise.
30533         * tests/test-fchdir.c (main): Likewise.
30534         * tests/test-fcntl-h.c (main): Likewise.
30535         * tests/test-fcntl-safer.c (main): Likewise.
30536         * tests/test-fdopendir.c (main): Likewise.
30537         * tests/test-fdutimensat.c (main): Likewise.
30538         * tests/test-fflush.c (main): Likewise.
30539         * tests/test-filenamecat.c (main): Likewise.
30540         * tests/test-filevercmp.c (main): Likewise.
30541         * tests/test-fopen-safer.c (main): Likewise.
30542         * tests/test-fopen.c (main): Likewise.
30543         * tests/test-fpending.c (main): Likewise.
30544         * tests/test-fpurge.c (main): Likewise.
30545         * tests/test-freading.c (main): Likewise.
30546         * tests/test-fstatat.c (main): Likewise.
30547         * tests/test-fsync.c (main): Likewise.
30548         * tests/test-futimens.c (main): Likewise.
30549         * tests/test-getndelim2.c (main): Likewise.
30550         * tests/test-gettimeofday.c (main): Likewise.
30551         * tests/test-getopt.c (main): Likewise.
30552         * tests/test-i-ring.c (main): Likewise.
30553         * tests/test-inttypes.c (main): Likewise.
30554         * tests/test-link.c (main): Likewise.
30555         * tests/test-lstat.c (main): Likewise.
30556         * tests/test-math.c (main): Likewise.
30557         * tests/test-md5.c (main): Likewise.
30558         * tests/test-memchr2.c (main): Likewise.
30559         * tests/test-memrchr.c (main): Likewise.
30560         * tests/test-mkdir.c (main): Likewise.
30561         * tests/test-mkdirat.c (main): Likewise.
30562         * tests/test-mkfifoat.c (main): Likewise.
30563         * tests/test-open.c (main): Likewise.
30564         * tests/test-openat-safer.c (main): Likewise.
30565         * tests/test-openat.c (main): Likewise.
30566         * tests/test-quotearg.c (main): Likewise.
30567         * tests/test-rawmemchr.c (main): Likewise.
30568         * tests/test-readlink.c (main): Likewise.
30569         * tests/test-remove.c (main): Likewise.
30570         * tests/test-rename.c (main): Likewise.
30571         * tests/test-renameat.c (main): Likewise.
30572         * tests/test-rmdir.c (main): Likewise.
30573         * tests/test-sha1.c (main): Likewise.
30574         * tests/test-signal.c (main): Likewise.
30575         * tests/test-sigaction.c (main): Likewise.
30576         * tests/test-stat.c (main): Likewise.
30577         * tests/test-stat-time.c (main): Likewise.
30578         * tests/test-stddef.c (main): Likewise.
30579         * tests/test-stdint.c (main): Likewise.
30580         * tests/test-stdio.c (main): Likewise.
30581         * tests/test-stdlib.c (main): Likewise.
30582         * tests/test-strchrnul.c (main): Likewise.
30583         * tests/test-strerror.c (main): Likewise.
30584         * tests/test-string.c (main): Likewise.
30585         * tests/test-strtod.c (main): Likewise.
30586         * tests/test-strverscmp.c (main): Likewise.
30587         * tests/test-symlink.c (main): Likewise.
30588         * tests/test-symlinkat.c (main): Likewise.
30589         * tests/test-sys_stat.c (main): Likewise.
30590         * tests/test-sys_time.c (main): Likewise.
30591         * tests/test-time.c (main): Likewise.
30592         * tests/test-unistd.c (main): Likewise.
30593         * tests/test-unlink.c (main): Likewise.
30594         * tests/test-unlinkat.c (main): Likewise.
30595         * tests/test-utimens.c (main): Likewise.
30596         * tests/test-utimensat.c (main): Likewise.
30597         * tests/test-version-etc.c (main): Likewise.
30598         * tests/test-wchar.c (main): Likewise.
30599         * tests/test-wctype.c (main): Likewise.
30600         * tests/test-xprintf-posix.c (main): Likewise.
30601         * tests/test-posixtm.c (main): Likewise.
30602         (STREQ): Delete unused macro.
30603         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
30604         shadowed variables.
30605         * tests/test-memchr.c (main): Likewise.
30606
30607 2009-10-21  Eric Blake  <ebb9@byu.net>
30608
30609         areadlinkat: avoid failure on older glibc
30610         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
30611         rather than mis-comparing 0 against FUNC_RESULT of char*.
30612
30613 2009-10-21  Bruno Haible  <bruno@clisp.org>
30614
30615         * modules/stpncpy (License): Relicense under LGPLv2+.
30616         Reported by David Lutterkort <lutter@redhat.com>.
30617
30618 2009-10-20  Eric Blake  <ebb9@byu.net>
30619
30620         utimensat: work around Solaris 9 bug
30621         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
30622         has trailing slash bugs.
30623         * tests/test-lutimens.h (test_lutimens): Enhance test.
30624         * tests/test-utimens.h (test_utimens): Likewise.
30625         * doc/posix-functions/utime.texi (utime): Enhance documentation.
30626         * doc/posix-functions/utimes.texi (utimes): Likewise.
30627         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30628         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
30629         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
30630         * doc/posix-functions/futimens.texi (futimens): Likewise.
30631
30632         fdutimensat: new module
30633         * modules/fdutimensat: New file.
30634         * lib/fdutimensat.c (fdutimensat): Likewise.
30635         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
30636         * MODULES.html.sh (File system functions): Mention module.
30637         * modules/fdutimensat-tests: New test.
30638         * tests/test-fdutimensat.c: Likewise.
30639
30640         doc: regenerate INSTALL
30641         * doc/INSTALL: Reflect recent autoconf update.
30642         * doc/INSTALL.ISO: Likewise.
30643         * doc/INSTALL.UTF-8: Likewise.
30644
30645 2009-10-20  Pádraig Brady  <P@draigBrady.com>
30646
30647         acl: warn if ACL support is not detected
30648         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
30649
30650 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
30651
30652         * lib/nproc.h: Add extern "C" block for C++.
30653
30654 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
30655             Bruno Haible  <bruno@clisp.org>
30656
30657         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
30658         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
30659         * doc/posix-functions/isalpha.texi: Likewise.
30660         * doc/posix-functions/isblank.texi: Likewise.
30661         * doc/posix-functions/iscntrl.texi: Likewise.
30662         * doc/posix-functions/isdigit.texi: Likewise.
30663         * doc/posix-functions/isgraph.texi: Likewise.
30664         * doc/posix-functions/islower.texi: Likewise.
30665         * doc/posix-functions/isprint.texi: Likewise.
30666         * doc/posix-functions/ispunct.texi: Likewise.
30667         * doc/posix-functions/isspace.texi: Likewise.
30668         * doc/posix-functions/isupper.texi: Likewise.
30669         * doc/posix-functions/isxdigit.texi: Likewise.
30670
30671 2009-10-18  Bruno Haible  <bruno@clisp.org>
30672
30673         Tests for module 'isblank'.
30674         * modules/isblank-tests: New file.
30675         * tests/test-isblank.c: New file.
30676
30677         New module 'isblank'.
30678         * lib/isblank.c: New file.
30679         * m4/isblank.m4: New file.
30680         * modules/isblank: New file.
30681         * doc/posix-functions/isblank.texi: Mention the new module.
30682
30683 2009-10-18  Bruno Haible  <bruno@clisp.org>
30684
30685         New module 'ctype'.
30686         * lib/ctype.in.h: New file.
30687         * m4/ctype.m4: New file.
30688         * modules/ctype: New file.
30689         * doc/posix-headers/ctype.texi: Mention the new module.
30690
30691 2009-10-18  Jim Meyering  <meyering@redhat.com>
30692
30693         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
30694         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
30695         right after its initialization, rather than farther down.
30696         Keeping these in close proximity makes it easier to ensure
30697         that each such variable is initialized.  E.g.,
30698
30699             LIB_CLOCK_GETTIME=
30700             AC_SUBST([LIB_CLOCK_GETTIME])
30701
30702         This change also increments these serial numbers.
30703         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
30704         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30705         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30706
30707 2009-10-18  Bruno Haible  <bruno@clisp.org>
30708
30709         Don't let environment variables perturb build.
30710         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
30711         (gl_PREREQ_GETHRXTIME): ... not here.
30712
30713 2009-10-18  Bruno Haible  <bruno@clisp.org>
30714
30715         Avoid symlink attack in localcharset module.
30716         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
30717         (O_NOFOLLOW): Define fallback.
30718         (get_charset_aliases): Don't open the file if it is a symbolic link.
30719         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
30720         gl_FCNTL_H.
30721         (gl_FCNTL_H): Require it.
30722         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
30723         * modules/localcharset (Files): Add m4/fcntl_h.m4.
30724         Reported by Fergal Glynn <fglynn@veracode.com>.
30725
30726 2009-10-18  Bruno Haible  <bruno@clisp.org>
30727
30728         Implement nproc for mingw.
30729         * lib/nproc.c: Include <windows.h>
30730         (num_processors): On native Windows platforms, try GetSystemInfo.
30731
30732 2009-10-18  Bruno Haible  <bruno@clisp.org>
30733
30734         Implement nproc for IRIX.
30735         * lib/nproc.c: Include <sys/sysmp.h>.
30736         (num_processors): On IRIX systems, try sysmp.
30737         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
30738
30739 2009-10-18  Bruno Haible  <bruno@clisp.org>
30740
30741         Implement nproc for HP-UX.
30742         * lib/nproc.c: Include <sys/pstat.h>
30743         (num_processors): On HP-UX systems, try pstat_getdynamic.
30744         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
30745         pstat_getdynamic.
30746
30747 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
30748             Bruno Haible  <bruno@clisp.org>
30749
30750         Implement nproc for NetBSD, OpenBSD.
30751         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
30752         (ARRAY_SIZE): New macro.
30753         (num_processors): On BSD systems, try sysctl of HW_NCPU.
30754         * m4/nproc.m4: New file.
30755         * modules/nproc (Files): Add m4/nproc.m4.
30756         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
30757         (Makefile.am): Instead, augment lib_SOURCES.
30758
30759 2009-10-18  Bruno Haible  <bruno@clisp.org>
30760
30761         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
30762         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
30763         sys/param.h.
30764
30765 2009-10-16  Eric Blake  <ebb9@byu.net>
30766
30767         utimensat: new module
30768         * modules/utimensat: New file.
30769         * lib/utimensat.c (utimensat): Likewise.
30770         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30771         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
30772         so we can work around Linux bugs.
30773         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30774         * modules/sys_stat (Makefile.am): Substitute them.
30775         * lib/sys_stat.in.h (utimensat): Declare it.
30776         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30777         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30778         * modules/utimensat-tests: New test.
30779         * tests/test-utimensat.c: Likewise.
30780
30781         utimens: let lutimens work on non-symlinks
30782         * lib/utimens.c (lutimens): Fall back to utimens rather than
30783         failing with ENOSYS, when file is not a symlink.
30784         (utimens): Reduce redirection.
30785         * tests/test-lutimens.h (test_lutimens): Update test to cover
30786         non-symlinks.
30787         * tests/test-utimens.h (test_utimens): Update test to cover
30788         symlinks.
30789         * tests/test-utimens.c (main): Update caller.
30790
30791         utimens: cache whether utimensat syscall works
30792         * lib/utimens.c (utimensat_works_really): New cache variable.
30793         (fdutimens, lutimens): Use it to avoid failing syscall.
30794
30795         test-stat-time, test-utimens: improve portability
30796         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
30797         ext4 on alpha, and for cygwin.
30798         * tests/test-utimens-common.h: New file.
30799         (nap): Factor delays into single function.
30800         * tests/test-lutimens.h (test_lutimens): Use new header.
30801         * tests/test-futimens.h (test_futimens): Likewise.
30802         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
30803         timestamps to occur from same machine, as was done previously for
30804         test_utimens.
30805         * modules/utimens-tests (Files): Ship new file.
30806         * modules/futimens-tests (Files): Likewise.
30807         Reported in part by Jim Meyering.
30808
30809         sys_stat: sort replacement declarations
30810         * lib/sys_stat.in.h: Sort declarations.
30811         * lib/futimens.c (futimens): Fix typo.
30812
30813 2009-10-15  Jim Meyering  <meyering@redhat.com>
30814
30815         don't let environment settings perturb build
30816         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
30817         could cause a configure-time and/or build-time malfunction.
30818         Typically, a configure-time function-in-library test is performed
30819         via code like this:
30820
30821           LIB_VAR=
30822           AC_SUBST([LIB_VAR])
30823           prefix_saved_LIBS=$LIBS
30824             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
30825                        [test "$ac_cv_search_FUNC" = "none required" ||
30826                         LIB_VAR=$ac_cv_search_FUNC])
30827           LIBS=$prefix_saved_LIBS
30828
30829         However, in each of the files affected by this change, the LIB_VAR=
30830         initialization was omitted.  Thus, when set in the environment, its
30831         value would propagate into generated Makefiles when FUNC is not found
30832         in LIB_NAME.
30833         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
30834         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30835         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30836
30837 2009-10-14  Eric Blake  <ebb9@byu.net>
30838
30839         fchdir: avoid infinite recursion in mingw
30840         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
30841         recursing.
30842
30843         test-stat-time: port to mingw
30844         * tests/test-stat-time.c (force_unlink): Return a value.
30845         (test_ctime) [W32]: Fix compilation error.
30846         (nap): Don't call usleep with too large an argument.  Use
30847         force_unlink.
30848         * doc/pastposix-functions/usleep.texi (usleep): Document the
30849         portability issue.
30850
30851 2009-10-13  Jim Meyering  <meyering@redhat.com>
30852
30853         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
30854         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
30855         * modules/pipe-filter-ii: Likewise.
30856         * modules/sys_socket-tests: Likewise.
30857         * modules/tsearch-tests: Likewise.
30858         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
30859         (check): Depend on it.
30860
30861 2009-10-12  Eric Blake  <ebb9@byu.net>
30862
30863         utimens-tests: port to NFS file systems
30864         * tests/test-utimens.h (test_utimens): Refactor utimecmp
30865         comparisons to avoid spurious failures from timestamp drift
30866         between NFS machines.
30867
30868 2009-10-12  Eric Blake  <ebb9@byu.net>
30869
30870         stat-time-tests: minor cleanups
30871         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
30872         * tests/test-stat-time.c (nap): Separate assignment from call.
30873         Suggested by Paolo Bonzini and Bruno Haible.
30874
30875         sys_stat: guarantee struct timespec
30876         * lib/sys_stat.in.h (includes): Always include <time.h>
30877         * modules/sys_stat (Depends-on): Add time.
30878         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
30879         mode_t permission values.
30880         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
30881         get at subsecond timestamps.
30882
30883 2009-10-10  Eric Blake  <ebb9@byu.net>
30884
30885         futimens: new module
30886         * modules/futimens: New file.
30887         * lib/futimens.c (futimens): Likewise.
30888         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
30889         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
30890         we can work around Linux bugs.
30891         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30892         * modules/sys_stat (Makefile.am): Substitute them.
30893         * lib/sys_stat.in.h (futimens): Declare it.
30894         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30895         * doc/posix-functions/futimens.texi (futimens): Likewise.
30896         * modules/futimens-tests: New test.
30897         * tests/test-futimens.c: Likewise.
30898
30899         utimens: introduce fdutimens
30900         * lib/utimens.h (fdutimens): New prototype.
30901         * lib/utimens.c (gl_futimens): Move guts...
30902         (fdutimens): ...to new interface.
30903         * tests/test-utimens.c (do_fdutimens): Use it.
30904
30905         utimens: add UTIME_NOW and UTIME_OMIT support
30906         * lib/utimens.c (validate_timespec, update_timespec): New helper
30907         functions.
30908         (gl_futimens, lutimens): Use them.
30909         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30910         stdbool, sys_stat.
30911         (Link): Mention resulting library dependency.
30912         * modules/utimecmp (Link): Likewise.
30913         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30914         (Makefile.am): Pick up library dependency.
30915         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30916         definition.
30917         * tests/test-sys_stat.c: Test the definitions.
30918         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30919         * NEWS: Document library dependency.
30920
30921         utimecmp: support symlink timestamps
30922         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30923         hashing when possible.  Use pathconf when available.
30924         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30925         * modules/utimecmp (Depends-on): Add lstat.
30926
30927         utimens: add lutimens interface
30928         * lib/utimens.c (lutimens): New function.
30929         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30930         * lib/utimens.h (lutimens): Declare new interface.
30931         * tests/test-utimens.c (main): Enhance test.
30932         * tests/test-lutimens.h (test_lutimens): New file.
30933         * modules/utimens-tests (Files): Distribute it.
30934         (Depends-on): Add symlink.
30935         (configure.ac): Check for usleep.
30936
30937         utimens: validate futimens usage
30938         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30939         fewer syscalls on failure later on.  Avoid compiler warning on
30940         mingw.
30941         * modules/utimens (Depends-on): Add dup2.
30942
30943         utimens: add test
30944         * modules/utimens-tests: New test.
30945         * tests/test-utimens.h: New file.
30946         * tests/test-futimens.h: Likewise.
30947         * tests/test-utimens.c: Likewise.
30948
30949         doc: mention timestamp portability issues
30950         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30951         instead.
30952         * doc/posix-functions/utime.texi (utime): Likewise.
30953         * doc/posix-functions/utimes.texi (utimes): Likewise.
30954         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30955         instead.
30956         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30957         module.
30958         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30959         Mention weakness with symlink timestamps.
30960         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30961         to utimensat/futimens instead.
30962         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30963
30964         test-dup2: enhance test
30965         * tests/test-dup2.c (main): Also check AT_FDCWD.
30966
30967         test-stat-time: avoid more spurious failures
30968         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30969         xfs; and avoid race if the two timestamps cross quantization edge.
30970
30971         relocatable: prefer 'file system' over 'filesystem'
30972         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30973         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30974         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30975         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30976         * lib/relocatable.c (compute_curr_prefix): Likewise.
30977
30978 2009-10-10  Jim Meyering  <meyering@redhat.com>
30979
30980         stat-time-tests: check for the usleep function
30981         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30982
30983 2009-10-10  Bruno Haible  <bruno@clisp.org>
30984
30985         * modules/xnanosleep: Put the Link section after the Include section.
30986
30987 2009-10-09  Eric Blake  <ebb9@byu.net>
30988
30989         dup2: work around FreeBSD 6.1 bug
30990         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30991         * doc/posix-functions/dup2.texi (dup2): Document it.
30992         Reported by Nelson H. F. Beebe and Jim Meyering.
30993
30994         test-stat-time: port to buggy NFS clients
30995         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30996         (test_ctime): Also skip test if mtime and ctime are skewed.
30997
30998         maint: prefer 'file system' over 'filesystem'
30999         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31000         * doc/posix-functions/lstat.texi (lstat): Likewise.
31001         * lib/file-has-acl.c (file_has_acl): Likewise.
31002         * lib/fwriteerror.c [TEST]: Likewise.
31003         * tests/test-areadlink.h (test_areadlink): Likewise.
31004         * tests/test-areadlinkat-with-size.c (main): Likewise.
31005         * tests/test-areadlinkat.c (main): Likewise.
31006         * tests/test-canonicalize-lgpl.c (main): Likewise.
31007         * tests/test-canonicalize.c (main): Likewise.
31008         * tests/test-fstatat.c (main): Likewise.
31009         * tests/test-linkat.c (main): Likewise.
31010         * tests/test-lstat.h (test_lstat_func): Likewise.
31011         * tests/test-mkdir.h (test_mkdir): Likewise.
31012         * tests/test-readlink.h (test_readlink): Likewise.
31013         * tests/test-remove.c (main): Likewise.
31014         * tests/test-rename.h (test_rename): Likewise.
31015         * tests/test-renameat.c (main): Likewise.
31016         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31017         * tests/test-symlink.h (test_symlink): Likewise.
31018         * tests/test-symlinkat.c (main): Likewise.
31019         * tests/test-unlink.h (test_unlink_func): Likewise.
31020         * tests/test-unlinkat.c (main): Likewise.
31021
31022         maint: make realtime library usage explicit
31023         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
31024         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
31025         * modules/settime (Link): Likewise.
31026         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
31027
31028         test-stat-time: speed up execution
31029         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
31030         warning on mingw.
31031         (nap): New helper function.
31032         (prepare_test): Use it to reduce sleep time.
31033         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
31034         execution.
31035         * modules/stat-time-tests (configure.ac): Check for usleep.
31036
31037 2009-10-09  Jim Meyering  <meyering@redhat.com>
31038
31039         selinux-h: always use getfilecon wrappers
31040         * lib/getfilecon.c: New file.
31041         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
31042         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
31043         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
31044         (fgetfilecon): Provide a stub.
31045         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
31046         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
31047         file unconditionally.
31048         When <selinux/selinux.h> is found, arrange to use wrappers.
31049         * modules/selinux-h (Files): Add getfilecon.c.
31050         (Makefile.am): Substitute include-next-related bits
31051         into the now-always-generated selinux/selinux.h file.
31052         * doc/glibc-functions/lgetfilecon.texi: New file.
31053         * doc/glibc-functions/fgetfilecon.texi: New file.
31054         * doc/glibc-functions/getfilecon.texi: New file.
31055         * doc/glibc-functions/getfilecon-desc.texi: New file.
31056         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
31057         which to pull in the new files.
31058         * MODULES.html.sh (Misc): Add selinux-h.
31059
31060 2009-10-08  Jim Meyering  <meyering@redhat.com>
31061
31062         unistd: fix comment typo
31063         * lib/unistd.in.h (euidaccess): Fix a comment typo.
31064
31065 2009-10-08  Eric Blake  <ebb9@byu.net>
31066
31067         areadlink: use SIZE_MAX consistently
31068         * modules/areadlink (Depends-on): Add stdint.
31069         * modules/areadlink-with-size (Depends-on): Likewise.
31070         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
31071         gives NULL; drop sys/types, since unistd gives size_t; and add
31072         stdint for SIZE_MAX.
31073         (SIZE_MAX): Rely on headers.
31074         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
31075         and add stdint.
31076         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
31077         (SIZE_MAX): Likewise.
31078         (INITIAL_BUF_SIZE): Turn into enum.
31079         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
31080
31081 2009-10-08  Jim Meyering  <meyering@redhat.com>
31082
31083         areadlinkat: avoid compilation failure
31084         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
31085         Fix typo in comment.
31086
31087 2009-10-07  Eric Blake  <ebb9@byu.net>
31088
31089         areadlinkat-with-size: new module
31090         * modules/areadlinkat-with-size: New module.
31091         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
31092         * lib/areadlink.h (areadlinkat): Declare it.
31093         * MODULES.html.sh (File system functions): Mention it.
31094         * modules/areadlinkat-with-size-tests: New test.
31095         * tests/test-areadlinkat-with-size.c: New file.
31096
31097         xreadlinkat: new module
31098         * modules/xreadlinkat: New module.
31099         * lib/xreadlinkat.c (xreadlinkat): New file.
31100         * lib/xreadlink.h (xreadlinkat): Declare it.
31101         * MODULES.html.sh (File system functions): Mention it.
31102
31103         areadlinkat: new module
31104         * lib/at-func.c (FUNC_FAIL): New define.
31105         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
31106         * modules/areadlinkat: New module.
31107         * lib/linkat.c (areadlinkat): Move...
31108         * lib/areadlinkat.c (areadlinkat): ...to new file.
31109         * lib/areadlink.h (areadlinkat): Declare it.
31110         * modules/linkat (Depends-on): Add areadlinkat.
31111         * MODULES.html.sh (File system functions): Mention it.
31112         * modules/areadlinkat-tests: New test.
31113         * tests/test-areadlinkat.c: New file.
31114
31115         areadlink, areadlink-with-size: add tests
31116         * modules/areadlink-tests: New test.
31117         * modules/areadlink-with-size-tests: Likewise.
31118         * tests/test-areadlink.h: New file.
31119         * tests/test-areadlink.c: Likewise.
31120         * tests/test-areadlink-with-size.c: Likewise.
31121
31122         maint: minor cleanups
31123         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
31124         _UNUSED_PARAMETER_ instead.
31125         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
31126         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
31127         * modules/linkat-tests (Files): Distribute test-link.h.
31128
31129         openat, utimens: whitespace cleanup
31130         * lib/openat.c: Prefer space throughout, rather than mix of 8
31131         spaces vs. tabs.
31132         * lib/at-func.c: Likewise.
31133         * lib/utimens.c: Likewise.
31134
31135         openat: avoid using wrong fd
31136         * lib/openat.c (openat_permissive): Reject user's fd if saving the
31137         working directory chooses same fd.
31138         * lib/at-func.c (AT_FUNC_NAME): Likewise.
31139
31140         mkdir, mkdirat: fix cygwin 1.5.x bug
31141         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
31142         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
31143         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
31144         bug.
31145         (gl_PREREQ_MKDIR): Delete unused macro.
31146         * modules/mkdir (Files): Track file rename.
31147         (configure.ac): Update macro name.
31148         * modules/openat (Depends-on): Add mkdir.
31149         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
31150
31151         mkdir, mkdirat: add tests
31152         * modules/mkdir-tests: New test.
31153         * tests/test-mkdir.h: New file.
31154         * tests/test-mkdir.c: Likewise.
31155         * tests/test-mkdirat.c: Likewise.
31156         * modules/openat-tests (Files): Add new files.
31157         (Makefile.am): Run new test.
31158
31159 2009-10-06  Eric Blake  <ebb9@byu.net>
31160
31161         doc: tweak *at function documentation
31162         * doc/posix-functions/faccessat.texi (faccessat): Mention
31163         known issue with replacement.
31164         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
31165         * doc/posix-functions/linkat.texi (linkat): Likewise.
31166         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31167         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31168         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31169         * doc/posix-functions/renameat.texi (renameat): Likewise.
31170         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31171
31172         openat: fix GNU/Hurd bug in unlinkat
31173         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
31174         broken.
31175         * doc/posix-functions/unlink.texi (unlink): Document this.
31176         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
31177
31178         fdopendir: fix GNU/Hurd bug
31179         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
31180         allowing non-directory fds.
31181         * lib/fdopendir.c (rpl_fdopendir): Work around it.
31182         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31183         * modules/dirent (Makefile.am): Substitute it.
31184         * lib/dirent.in.h (fdopendir): Declare replacement.
31185         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
31186         * tests/test-fdopendir.c (main): Test something other than
31187         /dev/null, since on Hurd that behaves like a directory.
31188
31189         test-symlink: port to GNU/Hurd
31190         * tests/test-symlink.h (test_symlink): Relax expected errno.
31191
31192         doc: tweak more cygwin information
31193         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
31194         now compatible with glibc.
31195         * doc/posix-functions/getopt.texi (getopt): Likewise.
31196
31197         getopt-gnu: add another test
31198         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
31199         guarantee behavior relied on by m4.
31200         * tests/test-getopt.c (main): Use it.
31201         * modules/getopt-posix-tests (Depends-on): Add setenv.
31202         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
31203
31204         getopt: fix compilation on darwin
31205         * lib/getopt.in.h (includes): Leave breadcrumbs during system
31206         include.
31207         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
31208         Reported by Ludovic Courtès.
31209
31210 2009-10-06  Bruno Haible  <bruno@clisp.org>
31211
31212         * modules/size_max (Description): Discourage its use.
31213         Reported by Simon Josefsson.
31214
31215 2009-10-06  Jim Meyering  <meyering@redhat.com>
31216
31217         linkat: avoid compilation failure
31218         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
31219
31220 2009-10-05  Eric Blake  <ebb9@byu.net>
31221
31222         linkat: support Linux 2.6.17
31223         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
31224         linkat on Linux, but allow cache variable override.
31225         * lib/linkat.c (rpl_linkat): Define override.
31226         * modules/linkat (Depends-on): Add symlinkat.
31227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
31228         * modules/unistd (Makefile.am): Substitute it.
31229         * lib/unistd.in.h (linkat): Declare replacement.
31230         Reported by Pádraig Brady.
31231
31232         quotearg: port test to systems with C.UTF-8 locale
31233         * tests/test-quotearg.c (struct result_strings): Add another
31234         member, differentiating between C.ASCII and C.UTF-8 handling.
31235         (compare_strings): Add parameter.
31236         (main): Adjust all callers.
31237
31238         getopt: avoid clash with FreeBSD _getopt_internal
31239         * lib/getopt.in.h (_getopt_internal): Override the name.
31240         * lib/getopt_int.h (includes): Pick up any overrides.
31241         Reported by Reuben Thomas.
31242
31243         hash: allow C89 compilation
31244         * lib/hash.c (check_tuning): Move declaration before statement.
31245         Reported by Reuben Thomas.
31246
31247 2009-10-05  Karl Berry  <karl@gnu.org>
31248
31249         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
31250
31251 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
31252             Bruno Haible  <bruno@clisp.org>
31253
31254         * lib/uname.c (uname): Use a table-driven algorithm to compute
31255         Windows NT versions.
31256
31257 2009-10-04  Bruno Haible  <bruno@clisp.org>
31258
31259         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
31260         program_invocation_short_name.
31261         * modules/progname (configure.ac): Test for presence of
31262         program_invocation_short_name.
31263         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31264
31265 2009-10-04  Bruno Haible  <bruno@clisp.org>
31266
31267         * lib/progname.c (set_program_name): Fix comment.
31268         Reported by Jim Meyering.
31269
31270 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31271             Bruno Haible  <bruno@clisp.org>
31272
31273         * lib/uname.c: Include <string.h>.
31274         (uname): Do only one call to GetVersionEx in the common case.
31275
31276 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31277             Bruno Haible  <bruno@clisp.org>
31278
31279         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
31280         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
31281         (uname): Add support for Windows CE and various non-x86 CPU types.
31282
31283 2009-10-03  Bruno Haible  <bruno@clisp.org>
31284
31285         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
31286         invocation to tests/configure.ac.
31287         Reported by Ian Beckwith <ianb@erislabs.net>.
31288
31289 2009-10-02  Eric Blake  <ebb9@byu.net>
31290
31291         fchdir: avoid compiler warning
31292         * lib/fchdir.c (canonicalize_file_name)
31293         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
31294
31295         test-open: support mingw errno values
31296         * tests/test-open.h (test_open): Relax test.
31297         * tests/test-fopen.h (test_fopen): Likewise.
31298         * tests/test-openat-safer.c (main): Likewise.
31299
31300         open: fix opening directory on mingw
31301         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
31302
31303         test-open: on GNU/Hurd, /dev/null is a directory
31304         * tests/test-fopen.h (main): Rename...
31305         (test_fopen): ...to this.  Use a guaranteed non-directory when
31306         confirming open behavior on trailing slash.
31307         * tests/test-openat-safer.c (main): Likewise.
31308         * tests/test-open.h (main): Likewise....
31309         (test_open): ...to this.
31310         * tests/test-fopen.c (main): Adjust caller.
31311         * tests/test-fopen-safer.c (main): Likewise.
31312         * tests/test-open.c (main): Likewise.
31313         * tests/test-fcntl-safer.c (main): Likewise.
31314         Reported by Samuel Thibault.
31315
31316         rename, fchdir: don't ignore chdir failure
31317         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
31318         * lib/rename.c (rpl_rename) [W32]: Likewise.
31319         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
31320         an empty destination directory if source cannot be renamed,
31321         although there is still possibility for failure.
31322         * doc/posix-functions/rename.texi (rename): Document the race.
31323         Reported by Jim Meyering.
31324
31325         maint: cleanup whitespace in recent commits
31326         * lib/rename.c (rpl_rename): Remove tabs.
31327         * tests/test-link.h (test_link): Likewise.
31328         * lib/fchdir.c (get_name): Likewise.
31329         Reported by Jim Meyering.
31330
31331 2009-10-02  Ben Pfaff  <blp@gnu.org>
31332
31333         relocatable-prog-wrapper: Add missing dependency on
31334         double-slash-root.
31335         * modules/relocatable-prog-wrapper: Add dependency.
31336         Reported by Ian Beckwith <ianb@erislabs.net>.
31337
31338 2009-10-02  Eric Blake  <ebb9@byu.net>
31339
31340         renameat: fix Solaris bugs
31341         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
31342         needed fixing.
31343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
31344         * modules/stdio (Makefile.am): Substitute it.
31345         * lib/stdio.in.h (renameat): Declare replacement.
31346         * lib/renameat.c (rpl_renameat): Implement fix.
31347
31348         renameat: new module
31349         * modules/renameat: New file.
31350         * lib/renameat.c (renameat): Likewise.
31351         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
31352         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31353         * modules/stdio (Makefile.am): Substitute them.
31354         * lib/stdio.in.h (renameat): Declare it.
31355         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31356         * doc/posix-functions/renameat.texi (renameat): Likewise.
31357         * modules/renameat-tests: New test.
31358         * tests/test-renameat.c: Likewise.
31359
31360         rename: fix mingw bugs
31361         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
31362         directory overwrite bugs.
31363
31364         rename: fix another cygwin 1.5 bug
31365         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
31366         checks.
31367         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
31368         unnecessary cygwin workarounds.  Also work around bug with moving
31369         full directory onto an empty one.
31370         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
31371
31372         rename-dest-slash: merge into rename module
31373         * modules/rename-dest-slash (Status): Mark obsolete.
31374         (Depends-on): Add rename.
31375         (Files): Let rename do it all.
31376         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
31377         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
31378         * m4/rename-dest-slash.m4: ...so this file can be deleted.
31379         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
31380         * lib/rename.c (rpl_rename): Update comments.
31381
31382         rename: fix cygwin 1.5.x bugs
31383         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
31384         * lib/rename.c (rpl_rename): Work around them.
31385         * modules/rename (Depends-on): Add same-inode.
31386
31387         rename: fix Solaris 10 bug
31388         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31389         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
31390         was the only bug.
31391
31392         rename: fix Solaris 9 bug
31393         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
31394         on non-directory.  Avoid calling exit.
31395         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
31396         strdup.
31397         * modules/rename-tests (Depends-on): Drop lstat.
31398         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31399         (gl_PREREQ_RENAME): Delete unused macro.
31400
31401         rename-dest-slash: fix NetBSD bug
31402         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
31403         links.
31404         * modules/rename-dest-slash (Depends-on): Add same-inode.
31405
31406         rename-tests: new test, exposes several platform bugs
31407         * modules/rename-tests: New file.
31408         * tests/test-rename.h: Likewise.
31409         * tests/test-rename.c: Likewise.
31410         * doc/posix-functions/rename.texi (rename): Improve documentation,
31411         including bugs that will eventually be fixed in gnulib.
31412
31413 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
31414
31415         * lib/uname.c: Include <stdlib.h>
31416         (uname): Assume version info is available.
31417
31418 2009-10-02  Jim Meyering  <meyering@redhat.com>
31419
31420         gnu-web-doc-update: correct --help output
31421         * build-aux/gnu-web-doc-update: Make --help output relevant.
31422
31423         gnu-web-doc-update: add standard options
31424         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
31425
31426         gnu-web-doc-update: New module.
31427         Use this script to automatically update the on-line web documentation
31428         for your GNU project at http://www.gnu.org/software/$pkg/manual/
31429         * modules/gnu-web-doc-update: New file, from coreutils.
31430         * build-aux/gnu-web-doc-update: New script.
31431
31432 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
31433
31434         link: LoadLibrary is not needed.
31435         * lib/link.c: Use GetModuleHandle.
31436
31437 2009-10-01  Eric Blake  <ebb9@byu.net>
31438
31439         getopt: bump serial number
31440         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
31441         change.
31442
31443         tests: tighten link, rmdir, and remove tests
31444         * tests/test-link.h (includes): No need to use <config.h> here.
31445         Clean up if directory hard link was created, otherwise test for
31446         trailing '.'.
31447         * tests/test-linkat.c (main): Simplify.
31448         * tests/test-remove.c (main): Enhance test for trailing '.'.
31449         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31450
31451 2009-10-01  Jim Meyering  <meyering@redhat.com>
31452
31453         maint.mk: requiring "make major" was annoying, for a "minor" release.
31454         What is intended is "stable", to contrast with alpha and beta,
31455         so require "make stable", not "make major".
31456         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
31457         (get_tool_versions): Likewise.
31458         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
31459
31460 2009-09-30  Ben Pfaff  <blp@gnu.org>
31461
31462         Fix broken build of replacement for Windows tmpfile().
31463         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
31464         flags argument added along with the 'mkostemp' module.
31465
31466 2009-09-28  Bruno Haible  <bruno@clisp.org>
31467
31468         Avoid identifier clash with POSIX function 'remove' defined as a macro.
31469         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
31470         to 'remove_elt'.
31471         (gl_list_remove): Update.
31472         * lib/gl_list.c (gl_list_remove): Update.
31473         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
31474         to 'remove_elt'.
31475         (gl_oset_remove): Update.
31476         * lib/gl_list.c (gl_oset_remove): Update.
31477         Reported by Eric Blake.
31478
31479 2009-09-28  Eric Blake  <ebb9@byu.net>
31480
31481         doc: mention yet more cygwin 1.7 status
31482         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
31483         cygwin.
31484         * doc/glibc-functions/execvpe.texi (execvpe): New file.
31485         * doc/gnulib.texi (Glibc unistd.h): Mention it.
31486
31487         argp: fix test failure
31488         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
31489         that are not upper-case.  Pass correct range to tolower.
31490
31491 2009-09-27  Jim Meyering  <meyering@redhat.com>
31492
31493         test-yesno: work around sparc-dash here-document infelicity
31494         Without this change, the literal \177 byte in a here document
31495         would make dash 0.5.5.1-3 access uninitialized memory.
31496         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
31497         Instead, use a marker, "@", and filter through tr to create the desired
31498         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
31499
31500 2009-09-27  Bruno Haible  <bruno@clisp.org>
31501
31502         Disable untested support for new flavours of ACLs on AIX.
31503         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
31504         progress.
31505         * lib/set-mode-acl.c (qset_acl): Likewise.
31506
31507 2008-12-07  Bruno Haible  <bruno@clisp.org>
31508
31509         Add support for new flavours of ACLs on AIX. (Untested.)
31510         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
31511         (file_has_acl): Add support for newer AIX.
31512         * lib/set-mode-acl.c (qset_acl): Likewise.
31513         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
31514         Rainer Tammer <tammer@tammer.net>.
31515
31516 2009-09-26  Eric Blake  <ebb9@byu.net>
31517
31518         argp: fix compilation of getopt
31519         * lib/getopt.in.h (includes): Use different guard than glibc.
31520         Reported by Sergey Poznyakoff.
31521
31522         doc: mention more cygwin 1.7 status
31523         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
31524         bug.
31525         * doc/posix-functions/execl.texi (execl): Likewise.
31526         * doc/posix-functions/execle.texi (execle): Likewise.
31527         * doc/posix-functions/execlp.texi (execlp): Likewise.
31528         * doc/posix-functions/execv.texi (execv): Likewise.
31529         * doc/posix-functions/execve.texi (execve): Likewise.
31530         * doc/posix-functions/execvp.texi (execvp): Likewise.
31531         * doc/glibc-functions/canonicalize_file_name.texi
31532         (canonicalize_file_name): Cygwin 1.7 now provides this.
31533         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
31534         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
31535         on AT_SYMLINK_NOFOLLOW.
31536
31537 2009-09-24  Eric Blake  <ebb9@byu.net>
31538
31539         test-linkat: make test more robust
31540         * tests/test-linkat.c (main): Avoid collision with EEXIST.
31541
31542         getopt: fix inclusion guards for cygwin
31543         * modules/getopt-posix (Depends-on): Add include-next.
31544         (Makefile.am): Substitute more items in replacement header.
31545         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
31546         <getopt.h>.
31547         * lib/getopt.in.h (includes): Use split inclusion guard, and
31548         prefer <getopt.h> over include <unistd.h> when one is present.
31549         (option): Also override name of 'struct option'.
31550
31551         same-inode: revert prior change; it is not yet ready
31552         * NEWS: Undo mention of this change.
31553         * lib/same-inode.h (same-inode.h): Undo tri-state change.
31554         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31555         * lib/cycle-check.c (cycle_check): Likewise.
31556         * lib/same.c (same_name): Likewise.
31557         * lib/at-func2.c (at_func2): Likewise.
31558
31559 2009-09-23  Eric Blake  <ebb9@byu.net>
31560
31561         linkat: new module
31562         * modules/linkat: New file.
31563         * lib/at-func2.c (at_func2): Likewise.
31564         * lib/linkat.c (linkat): Likewise.
31565         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
31566         * lib/openat-priv.h (at_func2): Add declaration.
31567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31568         * modules/unistd (Makefile.am): Substitute them.
31569         * lib/unistd.in.h (linkat): Declare it.
31570         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31571         * doc/posix-functions/linkat.texi (linkat): Likewise.
31572         * doc/posix-functions/link.texi (link): Tweak wording.
31573         * tests/test-link.c (main): Move guts...
31574         * tests/test-link.h (test_link): ...into new file.
31575         * modules/linkat-tests: New test.
31576         * tests/test-linkat.c: Likewise.
31577         * modules/link-tests (Files): Ship new file.
31578         (Depends-on): Add stdbool.
31579
31580         dirname: add library-safe mdir_name
31581         * lib/dirname.h (mdir_name): New prototype.
31582         * lib/dirname.c (dir_name): Move guts...
31583         (mdir_name): ...to new function that avoids xalloc_die.
31584
31585         fchdir: another mingw fix
31586         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
31587         * lib/fchdir.c (get_name): New helper method; skips canonicalize
31588         on mingw (where it has not yet been ported), and make it optional
31589         elsewhere.
31590         (_gl_register_fd): Use it.
31591
31592         same-inode: make SAME_INODE tri-state, to port to mingw
31593         * NEWS: Mention this change.
31594         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
31595         st_ino always being 0.
31596         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31597         * lib/cycle-check.c (cycle_check): Likewise.
31598         * lib/same.c (same_name): Likewise.
31599
31600         lstat: avoid mingw compilation error
31601         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
31602         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
31603         lstat ourselves.
31604         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
31605         was adequate.
31606         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
31607         the checks for lstat.
31608         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
31609
31610         link: fix test failure on Solaris 9
31611         * lib/link.c (rpl_link): Don't assume link will catch bogus
31612         trailing slash on source.
31613
31614         test-symlinkat: enhance test
31615         * tests/test-readlink.c (main): Move guts...
31616         * tests/test-readlink.h (test_readlink): ...into new file.
31617         * tests/test-symlink.c (main): Move guts...
31618         * tests/test-symlink.h (test_symlink): ...into new file.
31619         * tests/test-symlinkat.c (main): Use new files for further
31620         coverage.
31621         (do_symlink, do_readlink): New helper functions.
31622         * modules/symlink-tests (Files): Ship new file.
31623         (Depends-on): Add stdbool.
31624         * modules/readlink-tests (Files): Ship new file.
31625         (Depends-on): Add stdbool.
31626         * modules/symlinkat-tests (Files): Use new files.
31627
31628 2009-09-23  Eric Blake  <ebb9@byu.net>
31629
31630         readlink: document portability issue with symlink length
31631         * doc/posix-functions/lstat.texi (lstat): Mention that some file
31632         systems have bogus st_size on symlinks, and mention the
31633         areadlink-with-size module.
31634         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31635         * doc/posix-functions/readlink.texi (readlink): Mention the
31636         areadlink module, and ERANGE failure.
31637         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31638         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
31639
31640         readlink: fix Solaris 9 bug with trailing slash
31641         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
31642         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
31643         * doc/posix-functions/readlink.texi (readlink): Document this.
31644         * modules/readlink-tests: New test.
31645         * tests/test-readlink.c: Likewise.
31646
31647         readlink: fix cygwin 1.5.x bug with return type
31648         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
31649         * lib/unistd.in.h (readlink): Use ssize_t.
31650         * lib/readlink.c (readlink): Likewise.
31651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31652         * modules/unistd (Makefile.am): Substitute it.
31653         * lib/unistd.in.h (readlink): Declare replacement.
31654         * doc/posix-functions/readlink.texi (readlink): Document this.
31655
31656         symlink: use throughout gnulib
31657         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
31658         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
31659         symlink is not used.
31660         * modules/symlinkat (Depends-on): Add symlink.
31661         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31662         * modules/canonicalize-tests (Depends-on): Likewise.
31663         * modules/lstat-tests (Depends-on): Likewise.
31664         * modules/openat-tests (Depends-on): Likewise.
31665         * modules/remove-tests (Depends-on): Likewise.
31666         * modules/rmdir-tests (Depends-on): Likewise.
31667         * modules/unlink-tests (Depends-on): Likewise.
31668         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
31669         * tests/test-canonicalize.c (symlink): Likewise.
31670         * tests/test-fstatat.c (symlink): Likewise.
31671         * tests/test-lstat.c (symlink): Likewise.
31672         * tests/test-remove.c (symlink): Likewise.
31673         * tests/test-rmdir.c (symlink): Likewise.
31674         * tests/test-unlink.c (symlink): Likewise.
31675         * tests/test-unlinkat.c (symlink): Likewise.
31676
31677         symlink: new module, for Solaris 9 bug
31678         * modules/symlink: New file.
31679         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
31680         * lib/symlink.c: Likewise.
31681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31682         * modules/unistd (Makefile.am): Substitute them.
31683         * lib/unistd.in.h (symlink): Declare replacement.
31684         * MODULES.html.sh (File system functions): Mention it.
31685         * doc/posix-functions/symlink.texi (symlink): Likewise.
31686         * modules/symlink-tests: New test.
31687         * tests/test-symlink.c: Likewise.
31688
31689 2009-09-23  Bruno Haible  <bruno@clisp.org>
31690
31691         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
31692         when needed.
31693         Test case: gnulib-tool --import --with-tests atexit inttypes.
31694         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
31695
31696 2009-09-23  Bruno Haible  <bruno@clisp.org>
31697
31698         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
31699         subcommand, not in a subshell.
31700
31701 2009-09-22  Eric Blake  <ebb9@byu.net>
31702
31703         unistd: sort replacement declarations
31704         * lib/unistd.in.h: Sort declarations.
31705
31706         open, openat: minor optimization
31707         * lib/open.c (open): If open succeeded, len is non-zero.
31708         * lib/openat.c (rpl_openat): Likewise.
31709
31710         link-follow: ensure correct result
31711         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
31712         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
31713         distinguish between possible failures.
31714
31715 2009-09-21  Eric Blake  <ebb9@byu.net>
31716
31717         fts: avoid compiler warning
31718         * lib/fts.c (dirent_inode_sort_may_be_useful)
31719         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
31720
31721 2009-09-19  Bruno Haible  <bruno@clisp.org>
31722
31723         * lib/progreloc.c (canonicalize_file_name): New declaration.
31724
31725 2009-09-19  Eric Blake  <ebb9@byu.net>
31726
31727         link: fix quoting
31728         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
31729
31730         openat: fix openat bugs on Solaris 9
31731         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
31732         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
31733         * modules/openat (Depends-on): Add open.
31734         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
31735         * modules/fcntl-h (Makefile.am): Substitute it.
31736         * lib/fcntl.in.h (openat): Declare replacement.
31737         * doc/posix-functions/openat.texi (openat): Document this.
31738
31739         openat: move fstatat and unlinkat into correct files
31740         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
31741         compiled.
31742         * lib/openat.c (fstatat, unlinkat): Move...
31743         * lib/fstatat.c (fstatat): ...into correct files.
31744         * lib/unlinkat.c (unlinkat): Likewise.
31745
31746         openat: fix unlinkat bugs on Solaris 9
31747         * lib/unlinkat.c (unlinkat): New file.
31748         * modules/openat (Depends-on): Add unlink.
31749         (Files): Distribute it.
31750         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
31751         trailing slash behavior is broken.
31752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31753         * modules/unistd (Makefile.am): Substitute it.
31754         * lib/unistd.in.h (unlinkat): Declare replacement.
31755         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
31756
31757         openat: fix fstatat bugs on Solaris 9
31758         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
31759         stat.
31760         * doc/posix-functions/fstatat.texi (fstatat): Document this.
31761
31762         test-unlinkat: enhance test, to expose Solaris 9 bug
31763         * tests/test-unlink.c (main): Factor guts...
31764         * tests/test-unlink.h (test_rmdir_func): ...into new file.
31765         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
31766         * tests/test-rmdir.c (main): Adjust caller.
31767         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
31768         (unlinker): New helper function.
31769         (rmdirat): Enhance check.
31770         * modules/rmdir-tests (Depends-on): Add stdbool.
31771         * modules/unlink-tests (Depends-on): Likewise.
31772         (Files): Add test-unlink.h.
31773         * modules/openat-tests (Files): Likewise.
31774         (Depends-on): Add unlinkdir.
31775
31776         test-fstatat: new test, to expose Solaris 9 bugs
31777         * tests/test-stat.c (main): Factor guts...
31778         * tests/test-stat.h (test_stat_func): ...into new file.
31779         * tests/test-lstat.c (main): Factor guts...
31780         * tests/test-lstat.h (test_lstat_func): ...into new file.
31781         * tests/test-fstatat.c: New file.
31782         * modules/stat-tests (Files): Add test-stat.h.
31783         * modules/lstat-tests (Files): Add test-lstat.h.
31784         (Depends-on): Add stdbool.
31785         * modules/openat-tests (Depends-on): Add pathmax.
31786         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
31787         (Makefile.am): Run new test.
31788
31789         remove: new module, for mingw and Solaris 9 bugs
31790         * modules/remove: New file.
31791         * lib/remove.c: Likewise.
31792         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
31793         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31794         * modules/stdio (Makefile.am): Use them.
31795         * lib/stdio.in.h (remove): Declare replacement.
31796         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31797         * doc/posix-functions/remove.texi (remove): Likewise.
31798         * modules/remove-tests: New test.
31799         * tests/test-remove.c: Likewise.
31800
31801         unlink: new module, for Solaris 9 bug
31802         * modules/unlink: New file.
31803         * lib/unlink.c: Likewise.
31804         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
31805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31806         * modules/unistd (Makefile.am): Use them.
31807         * lib/unistd.in.h (stat): Declare replacement.
31808         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31809         * doc/posix-functions/unlink.texi (unlink): Likewise.
31810         * modules/unlink-tests: New test.
31811         * tests/test-unlink.c: Likewise.
31812
31813         lstat: fix Solaris 9 bug
31814         * lib/lstat.c (lstat): Also check for trailing slash on
31815         non-symlink, non-directories.  Use stat module to simplify logic.
31816         * doc/posix-functions/lstat.texi (lstat): Document it.
31817         * modules/lstat-tests (Depends-on): Add errno, same-inode.
31818         (configure.ac): Check for symlink.
31819         * tests/test-lstat.c (main): Add more tests.
31820
31821         stat: add as dependency to other modules
31822         * modules/chown (Depends-on): Add stat.
31823         * modules/euidaccess (Depends-on): Likewise.
31824         * modules/fchdir (Depends-on): Likewise.
31825         * modules/isdir (Depends-on): Likewise.
31826         * modules/link (Depends-on): Likewise.
31827         * modules/lstat (Depends-on): Likewise.
31828         * modules/mkdir-p (Depends-on): Likewise.
31829         * modules/modechange (Depends-on): Likewise.
31830         * modules/open (Depends-on): Likewise.
31831         * modules/readlink (Depends-on): Likewise.
31832         * modules/same (Depends-on): Likewise.
31833
31834         stat: fix Solaris 9 bug
31835         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
31836         slash.
31837         * lib/stat.c (rpl_stat): Work around it.
31838         * doc/posix-functions/stat.texi (stat): Update documentation.
31839
31840         stat: new module, for mingw bug
31841         * modules/stat: New file.
31842         * lib/stat.c: Likewise.
31843         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31844         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31845         * modules/sys_stat (Makefile.am): Use them.
31846         * lib/sys_stat.in.h (stat): Declare replacement.
31847         * lib/openat.c (fstatat): Deal with lstat and stat being function
31848         macros.
31849         * modules/openat (Depends-on): Add inline.
31850         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31851         * doc/posix-functions/stat.texi (stat): Likewise.
31852         * modules/stat-tests: New test.
31853         * tests/test-stat.c: Likewise.
31854
31855 2009-09-19  Jim Meyering  <meyering@redhat.com>
31856
31857         syntax-check: detect unnecessary inclusion of canonicalize.h
31858         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
31859
31860 2009-09-19  Eric Blake  <ebb9@byu.net>
31861
31862         canonicalize-lgpl: adjust clients to use correct header
31863         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31864         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
31865         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
31866         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
31867         * lib/progreloc.c (includes): Likewise.
31868
31869 2009-09-19  Jim Meyering  <meyering@redhat.com>
31870
31871         test-posixtm.c: correct a comment
31872         * tests/test-posixtm.c: Correct first-line comment.
31873         Spotted by Eric Blake.
31874
31875 2009-09-16  Jim Meyering  <meyering@redhat.com>
31876
31877         posixtm-tests: make T const-correct; add a test case
31878         * tests/test-posixtm.c (T): Declare const.
31879         Add a test for -(2^31+1).
31880         Remove useless can-succeed-only-in-2002 test.
31881
31882         posixtm-tests: adjust the sole failing test
31883         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
31884         expected output matches what mktime now produces.  Cross-checked via
31885         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
31886
31887         posixtm: move #ifdef'd tests into a new module
31888         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
31889         * tests/test-posixtm.c: ... this new file.
31890         * modules/posixtm-tests: New module.
31891
31892 2009-09-19  Eric Blake  <ebb9@byu.net>
31893
31894         openat: simplify use of at-func.c
31895         * lib/at-func.c (includes): Include prerequisites here, to
31896         simplify requirements on client files.
31897         * lib/openat-priv.h: Add double-inclusion guard.
31898         * lib/faccessat.c (includes): Simplify.
31899         * lib/fchmodat.c (includes): Likewise.
31900         * lib/fchownat.c (includes): Likewise.
31901         * lib/mkdirat.c (includes): Likewise.
31902         * lib/mkfifoat.c (includes): Likewise.
31903         * lib/symlinkat.c (includes): Likewise.
31904
31905         openat: allow return of fd 0
31906         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31907         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31908         unistd-safer.
31909         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31910         <fcntl.h>; this module does not leak fds.
31911         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31912         must be allowed to return 0, leaving openat_safer to add the
31913         safety.
31914         (openat_permissive): Avoid writing to just-opened fd 2 if
31915         restoring the current directory fails.
31916         * lib/openat-die.c (openat_restore_fail): Add comment.
31917         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31918         (save_cwd): Guarantee safe fd, but without use of open_safer.
31919         * tests/test-openat.c: New test.
31920         * modules/openat-tests (Files, Makefile.am): Distribute and build
31921         new file.
31922
31923         relocatable-prog-wrapper: fix build
31924         * modules/relocatable-prog-wrapper (Files): Update name of
31925         canonicalize m4 file, broken on 2009-09-17.
31926         Reported by emad hajjar <aleppos@hotmail.com>.
31927
31928 2009-09-19  Bruno Haible  <bruno@clisp.org>
31929
31930         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31931         * lib/safe-alloc.c: Likewise.
31932         Reported by Ian Beckwith <ianb@erislabs.net>.
31933
31934 2009-09-18  Bruno Haible  <bruno@clisp.org>
31935
31936         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31937         Reported by <erobles@sensacd.com.mx>.
31938
31939 2009-09-17  Eric Blake  <ebb9@byu.net>
31940
31941         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31942         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31943         slashes when checking if last component is missing.
31944         * tests/test-canonicalize.c (main): Test this.
31945
31946         canonicalize, canonicalize-lgpl: honor // if distinct from /
31947         * modules/canonicalize (Files): Add double-slash-root.m4.
31948         * modules/canonicalize-lgpl (Files): Likewise.
31949         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31950         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31951         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31952         fallback definition.
31953         (canonicalize_filename_mode): Use it to protect //.
31954         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31955         (__realpath): Likewise.
31956         * tests/test-canonicalize.c (main): Test this.
31957         * tests/test-canonicalize-lgpl.c (main): Likewise.
31958         * modules/canonicalize-tests (Depends-on): Add same-inode.
31959         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31960
31961         canonicalize-lgpl: fix glibc bug with trailing slash
31962         * m4/canonicalize-lgpl.m4: Move contents...
31963         * m4/canonicalize.m4: ...here.
31964         (gl_CANONICALIZE_LGPL): Factor realpath check...
31965         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31966         glibc 2.3.5 bug, fixed 2005-04-27.
31967         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31968         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31969         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31970         * modules/canonicalize-lgpl (Files): Manage file rename.
31971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31972         * modules/stdlib (Makefile.am): Substitute witness.
31973         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31974         is needed.
31975         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31976         replacement is required.
31977         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31978         * doc/glibc-functions/canonicalize_file_name.texi
31979         (canonicalize_file_name): Document this.
31980         * doc/posix-functions/realpath.texi (realpath): Likewise.
31981
31982         canonicalize-lgpl: reject non-directory with trailing slash
31983         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31984         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31985         catches failures in glibc 2.3.5.
31986         * tests/test-canonicalize.c (main): Likewise.
31987
31988         canonicalize-lgpl: use native realpath if it works
31989         * lib/canonicalize-lgpl.c (realpath): Guard with
31990         FUNC_REALPATH_WORKS.
31991         * lib/stdlib.in.h (realpath): Make declaration optional based on
31992         HAVE_REALPATH.
31993         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31994         native realpath works.
31995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31996         * modules/stdlib (Makefile.am): Substitute witness.
31997
31998         canonicalize, canonicalize-lgpl: use <stdlib.h>
31999         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
32000         (Include): Mention <stdlib.h>.
32001         (configure.ac): Mention functions we provide.
32002         * modules/canonicalize (configure.ac): Likewise.
32003         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
32004         realpath if canonicalize_file_name is missing.
32005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
32006         * modules/stdlib (Makefile.am): Substitute witnesses.
32007         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
32008         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
32009         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
32010         * NEWS: Document this.
32011         * doc/glibc-functions/canonicalize_file_name.texi
32012         (canonicalize_file_name): Likewise.
32013         * doc/posix-functions/realpath.texi (realpath): Likewise.
32014         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
32015
32016         test-canonicalize: consolidate into single C program
32017         * tests/test-canonicalize.sh: Delete; move setup into...
32018         * tests/test-canonicalize.c (main): ...the program, making it
32019         easier to run in debugger.  Add some tests.
32020         * modules/canonicalize-tests (Files): Remove unused file.
32021         (Depends-on): Add progname.
32022         (configure.ac, Makefile.am): Simplify.
32023
32024         test-canonicalize-lgpl: consolidate into single C program
32025         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
32026         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
32027         easier to run in debugger.  Add some tests.
32028         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
32029         (configure.ac, Makefile.am): Simplify.
32030
32031         canonicalize: avoid resolvepath
32032         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
32033         unnecessary checks.
32034         * lib/canonicalize.c (includes): Simplify.
32035         (canonicalize_file_name): Drop resolvepath implementation.
32036         * modules/canonicalize (Depends-on): Drop filenamecat.
32037
32038         canonicalize: don't lose errno
32039         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
32040         over calls to free.
32041
32042         canonicalize: simplify errno handling
32043         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
32044         assignment.
32045
32046         canonicalize, canonicalize-lgpl: update module dependencies
32047         * modules/canonicalize (Depends-on): Add extensions, lstat,
32048         pathmax, stdlib.
32049         (Files): Drop pathmax.h.
32050         (configure.ac): Adjust macro name.
32051         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
32052         lstat, stdlib, sys_stat.
32053         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
32054         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
32055         extensions.
32056         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
32057         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
32058         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
32059         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
32060         declaration, if available.
32061         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
32062         we can rely on the readlink module.
32063         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
32064         (includes): Use <unistd.h> unconditionally.
32065
32066 2009-09-17  Eric Blake  <ebb9@byu.net>
32067
32068         maint: make Include sections of modules consistent
32069         * modules/alloca: Use only header name; no need to list #include.
32070         * modules/alloca-opt: Likewise.
32071         * modules/arpa_inet: Likewise.
32072         * modules/canon-host: Likewise.
32073         * modules/configmake: Likewise.
32074         * modules/dirent: Likewise.
32075         * modules/eealloc: Likewise.
32076         * modules/environ: Likewise.
32077         * modules/fchdir: Likewise.
32078         * modules/fcntl: Likewise.
32079         * modules/fcntl-h: Likewise.
32080         * modules/gethrxtime: Likewise.
32081         * modules/gettime: Likewise.
32082         * modules/ignore-value: Likewise.
32083         * modules/inet_ntop: Likewise.
32084         * modules/inet_pton: Likewise.
32085         * modules/inttypes: Likewise.
32086         * modules/isnand-nolibm: Likewise.
32087         * modules/isnanf-nolibm: Likewise.
32088         * modules/mbchar: Likewise.
32089         * modules/mbfile: Likewise.
32090         * modules/mbiter: Likewise.
32091         * modules/mbuiter: Likewise.
32092         * modules/netdb: Likewise.
32093         * modules/netinet_in: Likewise.
32094         * modules/nproc: Likewise.
32095         * modules/pagealign_alloc: Likewise.
32096         * modules/poll: Likewise.
32097         * modules/printf-frexp: Likewise.
32098         * modules/pthread: Likewise.
32099         * modules/putenv: Likewise.
32100         * modules/random_r: Likewise.
32101         * modules/relocatable-prog: Likewise.
32102         * modules/search: Likewise.
32103         * modules/select: Likewise.
32104         * modules/selinux-h: Likewise.
32105         * modules/settime: Likewise.
32106         * modules/signal: Likewise.
32107         * modules/size_max: Likewise.
32108         * modules/socklen: Likewise.
32109         * modules/ssize_t: Likewise.
32110         * modules/stdarg: Likewise.
32111         * modules/stdbool: Likewise.
32112         * modules/stddef: Likewise.
32113         * modules/stdint: Likewise.
32114         * modules/stdio: Likewise.
32115         * modules/stdlib: Likewise.
32116         * modules/string: Likewise.
32117         * modules/strings: Likewise.
32118         * modules/sys_file: Likewise.
32119         * modules/sys_ioctl: Likewise.
32120         * modules/sys_select: Likewise.
32121         * modules/sys_socket: Likewise.
32122         * modules/sys_stat: Likewise.
32123         * modules/sys_time: Likewise.
32124         * modules/sys_times: Likewise.
32125         * modules/sys_utsname: Likewise.
32126         * modules/sys_wait: Likewise.
32127         * modules/sysexits: Likewise.
32128         * modules/time: Likewise.
32129         * modules/times: Likewise.
32130         * modules/tmpfile: Likewise.
32131         * modules/trim: Likewise.
32132         * modules/unistd: Likewise.
32133         * modules/wchar: Likewise.
32134         * modules/wctype: Likewise.
32135
32136 2009-09-17  Bruno Haible  <bruno@clisp.org>
32137
32138         Make getdate.y compile on QNX and NetBSD 5 / i386.
32139         * m4/getdate.m4 (gl_GETDATE): Conditionally define
32140         TIME_T_FITS_IN_LONG_INT.
32141         * lib/getdate.y (long_time_t): New type.
32142         (relative_time): Change type of 'seconds' field to long_time_t.
32143         (get_date): Update types of local variables. Check against overflow
32144         during conversion from long_time_t to time_t.
32145         Reported by Matt Kraai <kraai@ftbfs.org>
32146         and Hasso Tepper <hasso@netbsd.org>.
32147
32148 2009-09-17  Bruno Haible  <bruno@clisp.org>
32149
32150         * modules/COPYING: Update copyright years.
32151         * modules/README: Likeiwse.
32152         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
32153         Reported by Ian Beckwith <ianb@erislabs.net>.
32154
32155 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32156
32157         * users.txt: Update references for gnuit package.
32158
32159 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32160
32161         * m4/getdelim.m4: Fix typo in copyright line.
32162
32163 2009-09-17  Bruno Haible  <bruno@clisp.org>
32164
32165         * lib/atoll.c: Use the standard header with GPL copyright.
32166         * lib/argz.in.h: Likewise.
32167         * lib/glob.c: Likewise.
32168         * lib/glob-libc.h: Likewise.
32169         * lib/random_r.c: Likewise.
32170         * lib/siglist.h: Likewise.
32171         * lib/strsignal.c: Likewise.
32172         Reported by Ian Beckwith <ianb@erislabs.net>.
32173
32174 2009-09-17  Eric Blake  <ebb9@byu.net>
32175
32176         rmdir: ensure correct dependency order
32177         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
32178
32179 2009-09-17  Bruno Haible  <bruno@clisp.org>
32180
32181         Disable assertion that fails on NetBSD 5 / i386.
32182         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
32183         Reported by Sam Steingold <sds@gnu.org>
32184         and Hasso Tepper <hasso@netbsd.org>.
32185
32186 2009-09-16  Eric Blake  <ebb9@byu.net>
32187
32188         unlinkdir: port to mingw
32189         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
32190         on which no one can unlink a directory.
32191
32192         stdlib: sort witness names
32193         * modules/stdlib (Makefile.am): Sort replacements.
32194         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32195         * lib/stdlib.in.h: Likewise.
32196
32197         parse-duration-tests: avoid link failure
32198         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
32199         LIBINTL.
32200         Reported by Tom G. Christensen.
32201
32202         openat-tests: ensure unlinkat behaves like rmdir
32203         * tests/test-rmdir.c (main): Factor guts...
32204         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
32205         * modules/rmdir-tests (Files): Ship new file.
32206         * modules/openat-tests: New test.
32207         * tests/test-unlinkat.c: Likewise.
32208
32209         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
32210         * modules/rmdir-errno (Status, Notice): Now obsolete.
32211
32212         rmdir: work around cygwin 1.5.x and mingw bugs
32213         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
32214         * lib/rmdir.c (rmdir): Work around it.
32215         * modules/rmdir (Status, Notice): No longer obsolete.
32216         (Files): Add dos.m4.
32217         (Depends-on): Add unistd.
32218         (configure.ac): Set witnesses.
32219         (License): Relax to LGPLv2+.
32220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
32221         * modules/unistd (Makefile.am): Substitute witnesses.
32222         * lib/unistd.in.h (rmdir): Declare replacement.
32223         * doc/posix-functions/rmdir.texi (rmdir): Document this.
32224         * modules/rmdir-tests: New tests.
32225         * tests/test-rmdir.c: Likewise.
32226
32227 2009-09-15  Eric Blake  <ebb9@byu.net>
32228
32229         fchdir: improve use of replacement functions
32230         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
32231         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
32232         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
32233         REPLACE_CLOSEDIR.
32234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
32235         * modules/sys_stat (Makefile.am): Substitute correct witness.
32236         * modules/dirent (Makefile.am): Likewise.
32237         * modules/unistd (Makefile.am): Likewise.
32238         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
32239         * lib/unistd.in.h (dup): Likewise.
32240         * lib/sys_stat.in.h (fstat): Likewise.
32241
32242         maint: ignore gnulib-tool temp files
32243         * .gitignore: Ignore files created during gnulib-tool --test.
32244
32245 2009-09-13  Jim Meyering  <meyering@redhat.com>
32246
32247         posixtm: don't reject a time that specify "60" as the number of seconds
32248         * lib/posixtm.c (posixtime): The code to reject invalid dates
32249         would also reject a time specified with the .60 suffix.
32250         But POSIX allows that, in order to accommodate leap seconds.
32251         So don't reject it.
32252         (main): Adjust tests accordingly.
32253         * modules/posixtm (Depends-on): Add stpcpy.
32254
32255 2009-09-11  Jim Meyering  <meyering@redhat.com>
32256
32257         announce-gen: include [$release_type] in emitted Subject:
32258         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
32259         e.g., [stable] in the emitted Subject: line.
32260
32261 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32262
32263         Remove obsolete macros from several modules.
32264         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
32265         obsolete Autoconf macros with their modern counterparts.
32266         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
32267         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
32268         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
32269         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
32270         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
32271         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32272         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32273         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32274         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
32275         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
32276         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32277         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32278         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
32279         * m4/sockets.m4 (gl_SOCKETS): Likewise.
32280         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
32281         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
32282         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32283         * m4/time_r.m4 (gl_TIME_R): Likewise.
32284         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
32285         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
32286         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32287
32288         Fix copyright header in build-aux scripts.
32289         * build-aux/git-version-gen: Fix copyright header to match GPLv3
32290         recommendation.
32291         * build-aux/ncftpput-ftp: Likewise.
32292         * build-aux/update-copyright: Likewise.
32293
32294 2009-09-09  Eric Blake  <ebb9@byu.net>
32295
32296         test-link: allow Linux choice of errno
32297         * tests/test-link.c (main): Relax test for alternate error.
32298
32299         strndup: fix improper m4 caching
32300         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
32301         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
32302         (gl_PREREQ_STRNDUP): Delete.
32303         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
32304         * modules/string (Makefile.am): Substitute it.
32305         * lib/string.in.h (strndup): Modernize prototype.
32306
32307         getcwd: port to mingw
32308         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
32309         different from the POSIX assumptions made throughout the getcwd
32310         module; fortunately, the mingw getcwd does not need replacement.
32311         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
32312         * modules/getcwd-tests: New test.
32313         * tests/test-getcwd.c: Likewise.
32314
32315         link: fix platform bugs
32316         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
32317         * lib/link.c (link): Work around them.  Fix related mingw bug.
32318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
32319         * modules/unistd (Makefile.am): Substitute it.
32320         * lib/unistd.in.h (link): Declare replacement.
32321         * doc/posix-functions/link.texi (link): Document this.
32322         * modules/link (Depends-on): Add strdup-posix, sys_stat.
32323
32324         test-link: consolidate into single C program, test more cases
32325         * tests/test-link.sh: Delete.
32326         * tests/test-link.c: Test more error conditions.  Exposes bugs on
32327         at least Cygwin and Solaris.
32328         * modules/link-tests (Files): Remove unused file.
32329         (Depends-on): Add errno, sys_stat.
32330         (Makefile.am): Simplify.
32331
32332 2009-09-08  Bruno Haible  <bruno@clisp.org>
32333
32334         Work around towlower, towupper bug on mingw.
32335         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
32336         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
32337         * doc/posix-functions/towlower.texi: Mention the mingw bug.
32338         * doc/posix-functions/towupper.texi: Likewise.
32339         Reported by Eric Blake.
32340
32341 2009-09-08  Jim Meyering  <meyering@redhat.com>
32342
32343         build: don't try to run autoheader if we don't use it
32344         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
32345         is not used in configure.ac.
32346
32347 2009-09-08  Eric Blake  <ebb9@byu.net>
32348
32349         euidaccess: fix compilation error
32350         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
32351
32352         rawmemchr: relax license
32353         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
32354         okay.
32355         Reported by Jim Meyering.
32356
32357         mkfifoat: new module
32358         * modules/mkfifoat: New file.
32359         * lib/mkfifoat.c: Likewise.
32360         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
32361         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32362         * modules/sys_stat (Makefile.am): Use them.
32363         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
32364         * MODULES.html.sh (File system functions): Mention module.
32365         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32366         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32367         * modules/mkfifoat-tests: New test.
32368         * tests/test-mkfifoat.c: Likewise.
32369
32370         strchrnul: relax license
32371         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
32372         okay.
32373         Reported by Jim Meyering.
32374
32375 2009-09-08  Eric Blake  <ebb9@byu.net>
32376
32377         fstatat: fix compilation on Solaris
32378         * lib/fstatat.c (includes): Add fcntl.h.
32379         Reported by Pádraig Brady.
32380
32381 2009-09-07  Eric Blake  <ebb9@byu.net>
32382
32383         rename: modernize replacement
32384         * modules/rename (Depends-on): Add stdio.
32385         (configure.ac): Declare witness.
32386         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
32387         stdio take care of replacement.
32388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32389         * modules/stdio (Makefile.am): Substitute them.
32390         * lib/stdio.in.h (rename): Declare replacement.
32391         * lib/rename.c (includes): Allow cross-compilation to non-windows
32392         machines.
32393         * doc/posix-functions/rename.texi (rename): Improve
32394         documentation.
32395
32396         stdio: sort witness names
32397         * modules/stdio (Makefile.am): Sort replacements.
32398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32399         * lib/stdio.in.h: Likewise.
32400
32401         getcwd: minor cleanups
32402         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
32403         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
32404
32405         openat: provide more convenience names
32406         * modules/faccessat (configure.ac): Add C witness.
32407         * lib/unistd.in.h (readlinkat): Fix typo.
32408         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
32409         convenience wrappers.
32410         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
32411         wrappers in syntax checks.
32412
32413 2009-09-06  Eric Blake  <ebb9@byu.net>
32414
32415         doc: fix comments in recent patches
32416         * lib/faccessat.c: Mention correct function.
32417         * lib/fchmodat.c: Likewise.
32418         * lib/fchownat.c: Likewise.
32419         * lib/symlinkat.c: Likewise.
32420         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
32421         constants.
32422
32423         faccessat, symlinkat: continue cleanup of previous patch
32424         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
32425         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32426         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
32427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
32428         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
32429         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
32430         set.
32431
32432 2009-09-06  Bruno Haible  <bruno@clisp.org>
32433
32434         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
32435         (fstatat): Declare if GNULIB_FSTATAT is set.
32436         (mkdirat): Declare if GNULIB_MKDIRAT is set.
32437         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
32438         (unlinkat): Declare if GNULIB_UNLINKAT is set.
32439         * modules/fcntl-h (Files): Remove m4/openat.m4.
32440         * modules/sys_stat (Files): Remove m4/openat.m4.
32441         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
32442         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
32443         * modules/unistd (Files): Remove m4/openat.m4.
32444         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
32445         GNULIB_OPENAT.
32446         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
32447         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
32448         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
32449         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
32450         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
32451         gl_OPENAT_DEFAULTS.
32452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
32453         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
32454         Don't require gl_OPENAT_DEFAULTS.
32455         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
32456         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
32457         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
32458         (gl_OPENAT_DEFAULTS): Remove macro.
32459
32460 2009-09-06  Bruno Haible  <bruno@clisp.org>
32461
32462         * modules/openat (configure.ac): Remove unneeded witness.
32463
32464 2009-09-06  Bruno Haible  <bruno@clisp.org>
32465
32466         Set errno to ENOSYS when a function is entirely unsupported.
32467         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
32468         EOPNOTSUPP.
32469         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32470         * modules/chown (Depends-on): Remove errno.
32471
32472 2009-09-06  Bruno Haible  <bruno@clisp.org>
32473
32474         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
32475
32476 2009-09-06  Bruno Haible  <bruno@clisp.org>
32477
32478         * lib/sys_stat.in.h: Fix preprocessor command indentation.
32479
32480 2009-09-06  Ben Pfaff  <blp@gnu.org>
32481             Bruno Haible  <bruno@clisp.org>
32482
32483         Work around a glibc bug in strtok_r.
32484         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
32485         Undefine if UNDEFINE_STRTOK_R is set.
32486         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
32487         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32488         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
32489         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
32490         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
32491         UNDEFINE_STRTOK_R.
32492         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
32493
32494 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32495
32496         exclude: minor fix
32497         * lib/exclude.c: Include wctype.h
32498
32499 2009-09-06  Akim Demaille  <demaille@gostai.com>
32500
32501         bootstrap: improve error message
32502         * build-aux/bootstrap (find_tool): Upon failure, report the list
32503         of candidates.
32504         Honor the initial value of the envvar.
32505
32506 2009-09-05  Eric Blake  <ebb9@byu.net>
32507
32508         symlinkat: new module
32509         * modules/symlinkat: New file.
32510         * lib/symlinkat.c: Likewise.
32511         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
32512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32513         * modules/unistd (Makefile.am): Use them.
32514         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
32515         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
32516         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
32517         * MODULES.html.sh (File system functions): Mention module.
32518         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32519         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32520         * modules/symlinkat-tests: New test.
32521         * tests/test-symlinkat.c: Likewise.
32522
32523         test-openat-safer: add more checks
32524         * tests/test-openat-safer.c (main): Check more code paths.
32525
32526 2009-09-05  Jim Meyering  <meyering@redhat.com>
32527
32528         syntax-check: detect unnecessary inclusion of openat.h
32529         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
32530
32531 2009-09-05  Bruno Haible  <bruno@clisp.org>
32532
32533         Support towlower, towupper.
32534         * doc/posix-functions/towlower.texi: Mention module wctype.
32535         * doc/posix-functions/towupper.texi: Likewise.
32536         * lib/wctype.in.h (towlower, towupper): New functions.
32537         * tests/test-wctype.c: Include stdio.h, stdlib.h.
32538         (ASSERT): New macro.
32539         (e): New variable.
32540         (main): Test also towlower, towupper. Test WEOF argument.
32541         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32542
32543 2009-09-05  Bruno Haible  <bruno@clisp.org>
32544
32545         Fix conversion behaviour when the input is invalid.
32546         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
32547         mark occurring in first pass of indirect conversion.
32548         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
32549         input.
32550         Found by clang's static analyzer.
32551
32552 2009-09-05  Bruno Haible  <bruno@clisp.org>
32553
32554         * tests/test-striconveh.c (main): Test indirect conversion on platforms
32555         where direct conversion is possible.
32556
32557 2009-09-04  Eric Blake  <ebb9@byu.net>
32558
32559         openat: fail with ENOENT on empty name
32560         * lib/openat-proc.c (openat_proc_name): Special-case the empty
32561         buffer.
32562
32563         link-follow: fix logic bug in prior patch
32564         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
32565         reversed sense of yes and no in prior patch.  Avoid confusing
32566         compilation failure with desired semantics.
32567
32568         link-follow: accomodate mingw and cross-compilation
32569         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
32570         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
32571         cross-compilation results to -1, to make linkat easier to
32572         implement when cross-compiling.  Trivially support mingw.
32573         * modules/link-follow (configure.ac): Call new name.
32574         * NEWS: Mention this.
32575
32576 2009-09-03  Eric Blake  <ebb9@byu.net>
32577
32578         faccessat: compile replacement
32579         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
32580         needed.
32581
32582         fts: fix compilation error
32583         * lib/fts.c (includes): Re-add "openat.h", for
32584         openat_needs_fchdir.
32585
32586         faccessat: new module
32587         * modules/faccessat: New file.
32588         * lib/faccessat.c: Likewise.
32589         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32591         * modules/unistd (Makefile.am): Use it.
32592         * lib/unistd.in.h (faccessat): Declare it.
32593         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
32594         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
32595         * MODULES.html.sh (File system functions): Mention it.
32596         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
32597         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32598
32599         euidaccess: prefer POSIX over non-standard implementation
32600         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
32601         * lib/euidaccess.c (euidaccess): Use it if available.
32602
32603         openat: make template easier to use
32604         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
32605         AT_FUNC_F2 to be undefined.
32606         (VALIDATE_FLAG): New macro; use it to reject bad flags.
32607         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
32608         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
32609         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
32610         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
32611         Likewise.
32612         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
32613         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
32614         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
32615         Likewise.
32616
32617         openat: declare in POSIX headers
32618         * NEWS: Mention this.
32619         * modules/openat (configure.ac): Declare witnesses.
32620         (Depends-on): Add fcntl-h, sys_stat, unistd.
32621         (Include): Mention correct headers.
32622         * modules/fcntl-h (Depends-on): Add link-warning.
32623         (Files): Add openat.m4.
32624         (Makefile.am): Substitute witnesses.
32625         * modules/sys_stat (Files, Makefile.am): Likewise.
32626         * modules/unistd (Files, Makefile.am): Likewise.
32627         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
32628         (gl_OPENAT_DEFAULTS): New macro.
32629         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
32630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
32631         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
32632         (SYS_STAT_H): Remove unused variable.
32633         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
32634         * lib/fcntl--.h (includes): Remove unneeded header.
32635         * lib/openat-safer.c (includes): Likewise.
32636         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
32637         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
32638         appropriate headers.
32639         (__OPENAT_PREFIX): Delete.
32640         * lib/fcntl.in.h (openat): Provide declaration.
32641         (AT_FDCWD): Fix Solaris bug.
32642         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
32643         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
32644         * lib/fchmodat.c (includes):  Adjust to find declaration.
32645         * lib/fchownat.c (includes): Likewise.
32646         * lib/mkdirat.c (includes): Likewise.
32647         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
32648         still visible.
32649
32650 2009-09-02  Eric Blake  <ebb9@byu.net>
32651
32652         errno: use consistently
32653         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
32654         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
32655         * lib/canonicalize.c (ELOOP): Likewise.
32656         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
32657         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
32658         * lib/lchown.c (EOPNOTSUPP): Likewise.
32659         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
32660         * lib/savewd.c (ESTALE): Likewise.
32661         * lib/settime.c (ENOSYS): Likewise.
32662         * lib/utimens.c (ENOSYS): Likewise.
32663         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
32664         * lib/chdir-safer.c (ELOOP): Likewise.
32665         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
32666         * modules/c-stack (Depends-on): Add errno.
32667         * modules/canonicalize (Depends-on): Likewise.
32668         * modules/chdir-safer (Depends-on): Likewise.
32669         * modules/fdopendir (Depends-on): Likewise.
32670         * modules/inet_ntop (Depends-on): Likewise.
32671         * modules/inet_pton (Depends-on): Likewise.
32672         * modules/lchown (Depends-on): Likewise.
32673         * modules/openat (Depends-on): Likewise.
32674         * modules/savewd (Depends-on): Likewise.
32675         * modules/settime (Depends-on): Likewise.
32676         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
32677
32678         fts: avoid leaking fds
32679         * modules/fts (Depends-on): Add cloexec.
32680         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
32681         flag.
32682
32683         fts: make directory fds more robust
32684         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
32685         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
32686
32687         backupfile, chdir-long, fts, savedir: make safer
32688         * lib/backupfile.c (includes): Use "dirent--.h", since
32689         numbered_backup can write to stderr during readdir.
32690         * lib/savedir.c (includes): Likewise.
32691         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
32692         emulation can write to stderr on failure.
32693         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
32694         * lib/getcwd.c: Document why opendir_safer is unused.
32695         * lib/glob.c: Likewise.
32696         * lib/scandir.c: Likewise.
32697         * lib/openat-proc.c: Likewise, for open_safer.
32698         * modules/backupfile (Depends-on): Add dirent-safer.
32699         * modules/savedir (Depends-on): Likewise.
32700         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
32701         * modules/chdir-long (Depends-on): Add openat-safer.
32702
32703         openat-safer: new module
32704         * modules/openat-safer: New file.
32705         * lib/openat-safer.c: Likewise.
32706         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
32707         * lib/fcntl-safer.h (openat_safer): Declare.
32708         * lib/fcntl--.h (openat): Override.
32709         * MODULES.html.sh (File descriptor based I/O): Mention it.
32710         * lib/openat.h: Add double-inclusion guards.
32711         * lib/openat.c (includes): Only include "fcntl-safer.h", not
32712         "fcntl--.h", so we can implement openat.
32713         * modules/openat-safer-tests: New test.
32714         * tests/test-openat-safer.c: New file.
32715
32716         dirent-safer: new module
32717         * modules/dirent-safer: New file.
32718         * lib/dirent--.h: Likewise.
32719         * lib/dirent-safer.h: Likewise.
32720         * lib/opendir-safer.c: Likewise.
32721         * m4/dirent-safer.m4: Likewise.
32722         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
32723         * modules/dirent-safer-tests: New test.
32724         * tests/test-dirent-safer.c: New file.
32725         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
32726
32727         fdopendir: optimize on mingw
32728         * lib/unistd.in.h (_gl_directory_name): New prototype.
32729         * lib/fchdir.c (_gl_directory_name): Implement it.
32730         (fchdir): Use it to simplify implementation.
32731         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
32732         fchdir, when available, to avoid calling [f]chdir().
32733
32734         fdopendir: split into its own module
32735         * lib/openat.c (fdopendir): Move...
32736         * lib/fdopendir.c: ...into new file.
32737         * modules/fdopendir: New module.
32738         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
32739         * modules/openat (Depends-on): Add fdopendir.
32740         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
32741         fdopendir here.
32742         * modules/savedir (Depends-on): Only need fdopendir, not full
32743         openat.
32744         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
32745         * lib/openat.h (fdopendir): Drop prototype.
32746         * lib/dirent.in.h (fdopendir): Provide prototype.
32747         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
32748         * modules/dirent (Makefile.am): Substitute them.
32749         * MODULES.html.sh (File system functions): Mention it.
32750         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
32751         * modules/fdopendir-tests: New file.
32752         * tests/test-fdopendir.c: Likewise.
32753
32754         fchdir: use more consistent macro convention
32755         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
32756         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
32757         REPLACE_FCHDIR, rather than relying on config.h macros.
32758         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
32759         inside a single make-time REPLACE_FCHDIR block, rather than using
32760         the config.h FCHDIR_REPLACEMENT.
32761         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
32762         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
32763         Manage fstat replacement.
32764         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
32765         REPLACE_FCHDIR.
32766         * modules/sys_stat (Files): Add m4/unistd_h.m4.
32767         (Makefile.am): Substitute REPLACE_FCHDIR.
32768         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
32769         FCHDIR_REPLACEMENT.
32770         * lib/dup-safer.c (dup_safer): Likewise.
32771         * lib/dup2.c (rpl_dup2): Likewise.
32772         * lib/dup3.c (rpl_dup3): Likewise.
32773         * lib/open.c (rpl_open): Likewise.
32774
32775         fchdir: simplify error handling, and support dup3
32776         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
32777         stdbool, malloc-posix, realloc-posix.
32778         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
32779         (ensure_dirs_slot): Return false on allocation failure.
32780         (rpl_dup2): Delete.
32781         (_gl_register_dup): New function.
32782         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
32783         (_gl_register_fd): Close fd on allocation failure.
32784         * lib/fcntl.in.h (_gl_register_fd): Update signature.
32785         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
32786         prototype.
32787         (rpl_dup2_fchdir): Delete prototype.
32788         * lib/open.c (open): Update caller.
32789         * lib/dup2.c (dup2): Track fchdir metadata.
32790         * lib/dup3.c (dup3): Likewise.
32791         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
32792         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
32793
32794 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32795
32796         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
32797         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
32798         don't pass arguments to AC_OUTPUT.
32799
32800 2009-09-02  Bruno Haible  <bruno@clisp.org>
32801
32802         * modules/mkdtemp (License): Relicense under LGPLv2+.
32803         Reported by Paolo Bonzini.
32804
32805 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32806
32807         Replace uses of obsolete autoconf macros in Jim's modules.
32808         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
32809         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
32810         can evoke a warning from autoconf when run with -Wobsolete
32811         enabled.  They were declared obsolete for good reasons (see
32812         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
32813         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
32814         should not continue using the deprecated macros.
32815         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
32816         obsolete Autoconf macros with modern counterparts.
32817         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32818         * m4/dos.m4 (gl_AC_DOS): Likewise.
32819         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
32820         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
32821         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
32822         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
32823         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
32824         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
32825         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
32826         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
32827         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32828         Likewise.
32829         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
32830         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32831         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
32832         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
32833         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
32834         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32835
32836 2009-09-01  Eric Blake  <ebb9@byu.net>
32837
32838         fchdir: fix off-by-one bug in previous patch
32839         * lib/fchdir.c (rpl_fstat): Use correct bounds.
32840         (_gl_unregister_fd): Delete useless if.
32841
32842 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
32843
32844         maint.mk: sort the list of syntax-check rules
32845         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
32846         easier to get a sense of progress when the rules are run sequentially
32847         and take a long time.
32848
32849 2009-09-01  Simon Josefsson  <simon@josefsson.org>
32850
32851         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
32852         * modules/netinet_in: Likewise.
32853         * modules/sys_file: Likewise.
32854         * modules/sys_ioctl: Likewise.
32855         * modules/sys_select: Likewise.
32856         * modules/sys_socket: Likewise.
32857         * modules/sys_stat: Likewise.
32858         * modules/sys_time: Likewise.
32859         * modules/sys_times: Likewise.
32860         * modules/sys_utsname: Likewise.
32861         * modules/sys_wait: Likewise.
32862
32863 2009-09-01  Jim Meyering  <meyering@redhat.com>
32864
32865         fts: help ensure that return values are not ignored
32866         * lib/fts_.h (__GNUC_PREREQ): Define.
32867         (__attribute_warn_unused_result__): Define.
32868         (fts_children, fts_close, fts_open, fts_read): Declare with
32869         __attribute_warn_unused_result__.
32870
32871         fts: fts_close now fails also when closing a dir file descriptor fails
32872         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
32873         and propagate to caller, along with errno.
32874
32875         announce-gen: correct formatting in --help output
32876         * build-aux/announce-gen (usage): Move the one-line description in
32877         --help output "up", to where it belongs, just after Usage:.
32878
32879 2009-08-31  Eric Blake  <ebb9@byu.net>
32880
32881         fchdir: port to mingw
32882         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
32883         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
32884         opened, then use a substitute.
32885         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
32886         replacement.
32887         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
32888         (_gl_register_fd): No need to check stat if open already filters
32889         all directories.
32890         (fchdir): Fix error condition to match POSIX.
32891         * modules/fchdir (Depends-on): Add sys_stat.
32892         * doc/posix-functions/open.texi (open): Document the limitation.
32893         * modules/fchdir-tests: New file.
32894         * tests/test-fchdir.c: Likewise.
32895
32896         canonicalize: allow cross-testing from cygwin to mingw
32897         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
32898         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
32899         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
32900         Likewise.
32901         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32902         target does not support symlinks.
32903         * tests/test-canonicalize-lgpl.sh: Likewise.
32904
32905         chown: avoid compilation warning on mingw
32906         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32907         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32908         mingw.
32909         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32910         * modules/chown (Depends-on): Add errno.
32911
32912 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32913
32914         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32915         command.
32916
32917 2009-08-31  Jim Meyering  <meyering@redhat.com>
32918
32919         canonicalize: remove useless initialization
32920         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32921         initialization of local, "end".
32922
32923 2009-08-30  Bruno Haible  <bruno@clisp.org>
32924
32925         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32926         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32927         ENOSYS.
32928
32929 2009-08-30  Bruno Haible  <bruno@clisp.org>
32930
32931         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32932         /usr/xpg4/bin/tr when it exists.
32933         * tests/test-pipe-filter-gi1.sh: Likewise.
32934
32935 2009-08-30  Bruno Haible  <bruno@clisp.org>
32936
32937         Work around deficient /usr/bin/id program on Solaris.
32938         * tests/test-file-has-acl.sh (ID): New variable.
32939         * tests/test-set-mode-acl.sh (ID): Likewise.
32940         * tests/test-copy-acl.sh (ID): Likewise.
32941         * tests/test-copy-file.sh (ID): Likewise.
32942
32943 2009-08-30  Bruno Haible  <bruno@clisp.org>
32944
32945         New module 'xstriconveh'.
32946         * lib/xstriconveh.h: New file.
32947         * lib/xstriconveh.c: New file.
32948         * modules/xstriconveh: New file.
32949
32950 2009-08-30  Bruno Haible  <bruno@clisp.org>
32951
32952         Make it easier to use mem_cd_iconveh.
32953         * lib/striconveh.h (iconveh_t): New type.
32954         (iconveh_open, iconveh_close): New declarations.
32955         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32956         with a single 'const iconveh_t *' argument.
32957         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32958         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32959         with a single 'const iconveh_t *' argument.
32960         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32961         * tests/test-striconveh.c (main): Update.
32962         * NEWS: Mention the change.
32963
32964 2009-08-30  Bruno Haible  <bruno@clisp.org>
32965
32966         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32967         problem.
32968
32969 2009-08-30  Bruno Haible  <bruno@clisp.org>
32970
32971         Work around iconv_open problem on Solaris.
32972         * lib/iconv_open-solaris.gperf: New file.
32973         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32974         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32975         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32976         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32977         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32978         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32979
32980 2009-08-29  Jim Meyering  <meyering@redhat.com>
32981
32982         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32983         * top/maint.mk (cvs-check): Remove target; it was just an alias
32984         to the better-named vc-diff-check.
32985         (maintainer-distcheck): Remove rule.  It was used only from
32986         the (alpha/beta/major) target, and all of its commands but one
32987         were coreutils-specific.
32988         (vc-dist): Remove rule.
32989         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32990         Run vc-diff-check, not vc-dist.
32991         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32992
32993 2009-08-27  Bruno Haible  <bruno@clisp.org>
32994
32995         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32996         of 0.
32997
32998 2009-08-27  Bruno Haible  <bruno@clisp.org>
32999
33000         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
33001         compilers.
33002         * doc/func.texi: Document the SunPRO C bug.
33003
33004 2009-08-27  Bruno Haible  <bruno@clisp.org>
33005
33006         Fix link error on Solaris.
33007         * tests/test-parse-duration.c (xstrdup): Remove function.
33008
33009 2009-08-26  Pádraig Brady  <P@draigbrady.com>
33010
33011         ignore-value: handle pointer types, too
33012         * lib/ignore-value.h (__attribute__): Remove definition.
33013         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
33014         of a more concise and more-often effective "(void) i" statement.
33015         (ignore_ptr): New function to suppress warnings from functions that
33016         return pointers, and to make it explicit that one function doesn't
33017         handle all cases.
33018
33019 2009-08-25  Bruno Haible  <bruno@clisp.org>
33020
33021         dup2: work around a Linux bug.
33022         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
33023         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
33024         * doc/posix-functions/dup2.texi: Mention the Linux bug.
33025         Reported by Simon Josefsson.
33026
33027 2009-08-25  Jim Meyering  <meyering@redhat.com>
33028
33029         libguestfs uses gnulib
33030         * users.txt: Add libguestfs.
33031
33032 2009-08-24  Eric Blake  <ebb9@byu.net>
33033
33034         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
33035         * lib/pipe2.c (includes): Add binary-io.h.
33036         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
33037
33038 2009-08-24  Bruno Haible  <bruno@clisp.org>
33039
33040         Tolerate declared but missing accept4 syscall.
33041         * lib/accept4.c (accept4): Invoke original accept4 function first, if
33042         available.
33043         * lib/sys_socket.in.h (accept4): If the function is already present,
33044         override it.
33045         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
33046         * modules/accept4 (Makefile.am): Compile accept4.c always.
33047         Reported by Paolo Bonzini and Eric Blake.
33048
33049 2009-08-23  Bruno Haible  <bruno@clisp.org>
33050
33051         New module 'accept4'.
33052         * lib/sys_socket.in.h (accept4): New declaration.
33053         * lib/accept4.c: New file.
33054         * m4/accept4.m4: New file.
33055         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33056         GNULIB_ACCEPT4, HAVE_ACCEPT4.
33057         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
33058         HAVE_ACCEPT4.
33059         * modules/accept4: New file.
33060         * doc/glibc-functions/accept4.texi: Mention the new module.
33061
33062 2009-08-24  Jim Meyering  <meyering@redhat.com>
33063
33064         progname: also set global program_invocation_name, when possible
33065         Before this change, a libtool-enabled program that calls glibc's
33066         error function would report the program name as
33067         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
33068         * modules/progname (configure.ac): Check for a declaration of
33069         program_invocation_name.
33070         * lib/progname.c:  Include <errno.h>.
33071         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
33072         Set program_invocation_name.
33073
33074 2009-08-23  Bruno Haible  <bruno@clisp.org>
33075
33076         * lib/dup3.c: Include <string.h>.
33077
33078 2009-08-23  Bruno Haible  <bruno@clisp.org>
33079
33080         * lib/dup3.c (dup3): Test only once whether the system actually exists.
33081         * lib/pipe2.c (pipe2): Likewise.
33082         Suggested by Eric Blake.
33083
33084 2009-08-23  Bruno Haible  <bruno@clisp.org>
33085
33086         Tolerate declared but missing dup3 syscall.
33087         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
33088         * lib/unistd.in.h (dup3): If the function is already present,
33089         override it.
33090         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
33091         * modules/dup3 (Makefile.am): Compile dup3.c always.
33092         Reported by Paolo Bonzini.
33093
33094 2009-08-23  Bruno Haible  <bruno@clisp.org>
33095
33096         Tolerate declared but missing pipe2 syscall.
33097         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
33098         available.
33099         * lib/unistd.in.h (pipe2): If the function is already present,
33100         override it.
33101         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
33102         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
33103         Reported by Paolo Bonzini.
33104
33105 2009-08-23  Bruno Haible  <bruno@clisp.org>
33106
33107         * lib/pipe2.c (pipe2): Move #ifs inside function.
33108
33109 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33110
33111         quotearg: document limitations of quote_these_too
33112         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
33113         those limitations are created.
33114         * lib/quotearg.h (set_char_quoting): Document that digits and
33115         letters that are special after backslash are not permitted.
33116         (quotearg_char): Cross-reference set_char_quoting documentation.
33117
33118 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
33119
33120         quotearg: implement custom_quoting_style
33121         * lib/quotearg.c: (struct quoting_options): Add left_quote and
33122         right_quote fields.
33123         (set_custom_quoting): New public function.
33124         (quotearg_buffer_restyled): Add left_quote and right_quote
33125         arguments, handle them very much like locale quoting, and update
33126         all uses.
33127         (quotearg_n_custom): New public function.
33128         (quotearg_n_custom_mem): New public function.
33129         (quotearg_custom): New public function.
33130         (quotearg_custom_mem): New public function.
33131         * lib/quotearg.h: Prototype and document new public functions.
33132         (enum quoting_style): For escape_quoting_style and
33133         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
33134         ignored even though they're otherwise like c_quoting_style.
33135         Add custom_quoting_style member and document with comparison to
33136         clocale_quoting_style.
33137         * tests/test-quotearg.c (custom_quotes): New array.
33138         (custom_results): New array.
33139         (main): Extend to test custom quoting.
33140
33141 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33142
33143         quotearg: fix right quote escaping when it's in quote_these_too
33144         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
33145         quote, be sure to prepend only one backslash.
33146         * tests/test-quotearg.c (use_quote_double_quotes): New function.
33147         (main): Test it.
33148
33149 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33150
33151         quotearg-tests: test escaping of embedded locale quotes
33152         * tests/test-quotearg.c (struct result_strings): Add member for
33153         new input.
33154         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
33155         (inputs): Add new input.
33156         (results_g): Add expected results.
33157         (flag_results): Likewise.
33158         (locale_results): Likewise.
33159         (compare_strings): Check those.
33160
33161 2009-08-23  Bruno Haible  <bruno@clisp.org>
33162
33163         Tests for module 'dup3'.
33164         * modules/dup3-tests: New file.
33165         * tests/test-dup3.c: New file.
33166
33167         New module 'dup3'.
33168         * lib/unistd.in.h (dup3): New declaration.
33169         * lib/dup3.c: New file.
33170         * m4/dup3.m4: New file.
33171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
33172         HAVE_DUP3.
33173         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
33174         * modules/dup3: New file.
33175         * doc/glibc-functions/dup3.texi: Mention the new module.
33176
33177 2009-08-23  Bruno Haible  <bruno@clisp.org>
33178
33179         Tweak the dup2 test.
33180         * tests/test-dup2.c (main): Create the test file empty. Verify that an
33181         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
33182         the test file is still empty. Fix argument order of lseek.
33183
33184 2009-08-23  Bruno Haible  <bruno@clisp.org>
33185
33186         Avoid test link errors when the modules getopt-gnu, gettext are used.
33187         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
33188         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33189
33190 2009-08-23  Bruno Haible  <bruno@clisp.org>
33191
33192         Fix getdtablesize() on mingw.
33193         * lib/getdtablesize.c (getdtablesize): Implement differently.
33194         * lib/unistd.in.h (getdtablesize): Improve comment.
33195
33196 2009-08-23  Bruno Haible  <bruno@clisp.org>
33197
33198         New module 'mkostemp'.
33199         Based on Ulrich Drepper's 2007-08-10 change in glibc.
33200         * lib/stdlib.in.h (mksotemp): New declaration.
33201         * lib/mkostemp.c: New file, from glibc with modifications.
33202         * lib/tempname.h (GT_FILE): Remove outdated comment.
33203         (gen_tempname): Add flags argument.
33204         * lib/tempname.c (__GT_BIGFILE): Remove macro.
33205         (__GT_FILE): Map to 1.
33206         (small_open, large_open): Remove macros.
33207         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
33208         * lib/mkstemp.c (mkstemp): Update.
33209         * lib/mkdtemp.c (mkdtemp): Likewise.
33210         * m4/mkostemp.m4: New file.
33211         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
33212         HAVE_MKOSTEMP.
33213         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
33214         HAVE_MKOSTEMP.
33215         * modules/mkostemp: New file, based on modules/mkstemp.
33216         * doc/glibc-functions/mkostemp.texi: Mention the new module.
33217         * NEWS: Mention the change.
33218
33219 2009-08-23  Bruno Haible  <bruno@clisp.org>
33220
33221         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
33222         Reported by Eric Blake.
33223
33224 2009-08-23  Bruno Haible  <bruno@clisp.org>
33225
33226         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
33227         Reported by Eric Blake.
33228
33229 2009-08-23  Bruno Haible  <bruno@clisp.org>
33230
33231         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
33232         * modules/pipe2 (Depends-on): Likewise.
33233
33234 2009-08-23  Eric Blake  <ebb9@byu.net>
33235
33236         fcntl-h: add O_TTY_INIT support
33237         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
33238         * tests/test-fcntl-h.c (o): Test it.
33239         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33240
33241         fcntl-h: rename from fcntl, in preparation for fcntl(2)
33242         * modules/fcntl: Move <fcntl.h> header replacement...
33243         * modules/fcntl-h: ...to new name, so as not to collide with
33244         like-named function.
33245         * tests/test-fcntl.c: Rename...
33246         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
33247         * modules/fcntl-tests: Rename...
33248         * modules/fcntl-h-tests: ...to this.  Update test file name.
33249         * modules/chdir-long (Depends-on): Update clients.
33250         * modules/chdir-safer (Depends-on): Likewise.
33251         * modules/fcntl-safer (Depends-on): Likewise.
33252         * modules/fts (Depends-on): Likewise.
33253         * modules/mkancesdirs (Depends-on): Likewise.
33254         * modules/mkdir-p (Depends-on): Likewise.
33255         * modules/open (Depends-on): Likewise.
33256         * modules/savewd (Depends-on): Likewise.
33257         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
33258         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33259
33260 2009-08-22  Bruno Haible  <bruno@clisp.org>
33261
33262         * modules/binary-io (License): Relicense under LGPL.
33263         * modules/pipe2 (License): Likewise.
33264
33265 2009-08-22  Bruno Haible  <bruno@clisp.org>
33266
33267         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
33268         return value.
33269         * lib/pipe-filter-gi.c (filter_init): Likewise.
33270         Reported by Eric Blake.
33271
33272 2009-08-22  Bruno Haible  <bruno@clisp.org>
33273
33274         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
33275         * modules/pipe (Depends-on): Add pipe2.
33276
33277 2009-08-22  Bruno Haible  <bruno@clisp.org>
33278
33279         Tests for module 'pipe2'.
33280         * modules/pipe2-tests: New file.
33281         * tests/test-pipe2.c: New file.
33282
33283         New module 'pipe2'.
33284         * lib/unistd.in.h (pipe2): New declaration.
33285         * lib/pipe2.c: New file.
33286         * m4/pipe2.m4: New file.
33287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
33288         HAVE_PIPE2.
33289         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
33290         * modules/pipe2: New file.
33291         * doc/glibc-functions/pipe2.texi: Mention the new module.
33292
33293 2009-08-22  Bruno Haible  <bruno@clisp.org>
33294
33295         Reference some new glibc functions.
33296         * doc/glibc-functions/accept4.texi: New file.
33297         * doc/glibc-functions/dup3.texi: New file.
33298         * doc/glibc-functions/mkostemp.texi: New file.
33299         * doc/glibc-functions/pipe2.texi: New file.
33300         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
33301         (Glibc sys/socket.h): Refer to accept4.
33302         (Glibc unistd.h): Refer to dup3, pipe2.
33303         Reported by Eric Blake.
33304
33305 2009-08-22  Jim Meyering  <meyering@redhat.com>
33306             Bruno Haible  <bruno@clisp.org>
33307
33308         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
33309         This makes it so packages using automake-1.11's silent-rules option
33310         can print e.g., a single "GEN    configmake.h" line, rather than
33311         the 30+ statements that perform the job.  If you want to see the
33312         actual commands, you can still run "make V=1".
33313         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
33314         so that make output is abbreviated when those variables are defined
33315         appropriately.
33316         * modules/argz: Likewise.
33317         * modules/arpa_inet: Likewise.
33318         * modules/byteswap: Likewise.
33319         * modules/configmake: Likewise.
33320         * modules/dirent: Likewise.
33321         * modules/errno: Likewise.
33322         * modules/fcntl: Likewise.
33323         * modules/float: Likewise.
33324         * modules/fnmatch: Likewise.
33325         * modules/getopt-posix: Likewise.
33326         * modules/glob: Likewise.
33327         * modules/iconv_open: Likewise.
33328         * modules/inttypes: Likewise.
33329         * modules/localcharset: Likewise.
33330         * modules/locale: Likewise.
33331         * modules/math: Likewise.
33332         * modules/netdb: Likewise.
33333         * modules/netinet_in: Likewise.
33334         * modules/poll: Likewise.
33335         * modules/posix_spawnp-tests: Likewise.
33336         * modules/sched: Likewise.
33337         * modules/search: Likewise.
33338         * modules/selinux-h: Likewise.
33339         * modules/signal: Likewise.
33340         * modules/spawn: Likewise.
33341         * modules/stdarg: Likewise.
33342         * modules/stdbool: Likewise.
33343         * modules/stddef: Likewise.
33344         * modules/stdint: Likewise.
33345         * modules/stdio: Likewise.
33346         * modules/stdlib: Likewise.
33347         * modules/string: Likewise.
33348         * modules/strings: Likewise.
33349         * modules/sys_file: Likewise.
33350         * modules/sys_ioctl: Likewise.
33351         * modules/sys_select: Likewise.
33352         * modules/sys_socket: Likewise.
33353         * modules/sys_stat: Likewise.
33354         * modules/sys_time: Likewise.
33355         * modules/sys_times: Likewise.
33356         * modules/sys_utsname: Likewise.
33357         * modules/sys_wait: Likewise.
33358         * modules/sysexits: Likewise.
33359         * modules/time: Likewise.
33360         * modules/unistd: Likewise.
33361         * modules/wchar: Likewise.
33362         * modules/wctype: Likewise.
33363
33364 2009-08-22  Jim Meyering  <meyering@redhat.com>
33365
33366         announce-gen: detect write failure
33367         * build-aux/announce-gen: Add Coda at end.
33368         Remove equivalent-but-more-verbose block at top.
33369
33370 2009-08-19  Akim Demaille  <demaille@gostai.com>
33371
33372         bootstrap: --help to stdout.
33373         * bootstrap (usage): Don't send --help to stderr.
33374         Use a here doc instead of a long string.
33375
33376 2009-08-21  Eric Blake  <ebb9@byu.net>
33377
33378         test-popen-safer: split from test-popen
33379         * tests/test-popen.c (main): Move...
33380         * tests/test-popen.h: ...into new file.
33381         * tests/test-popen-safer2.c: New file.
33382         * modules/popen-tests (Files): Add test-popen.h.
33383         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
33384         Suggested by Bruno Haible.
33385
33386         test-fcntl-safer: split from test-open
33387         * tests/test-open.c (main): Move...
33388         * tests/test-open.h: ...into new file.
33389         * tests/test-fcntl-safer.c: New file.
33390         * modules/open-tests (Files): Add test-open.h.
33391         * modules/fcntl-safer-tests: New file.
33392         Suggested by Bruno Haible.
33393
33394         test-fopen-safer: split from test-fopen
33395         * tests/test-fopen.c (main): Move...
33396         * tests/test-fopen.h: ...into new file.
33397         * tests/test-fopen-safer.c: New file.
33398         * modules/fopen-tests (Files): Add test-fopen.h.
33399         * modules/fopen-safer-tests: New file.
33400         Suggested by Bruno Haible.
33401
33402 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33403
33404         popen-safer: test O_CLOEXEC at run-time.
33405         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
33406
33407 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33408
33409         fcntl: move more flags to the header
33410         * lib/cloexec.c: Do not define FD_CLOEXEC here.
33411         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
33412         * lib/fcntl.in.h: Do both things here.
33413
33414 2009-08-21  Jim Meyering  <meyering@redhat.com>
33415
33416         consistently remove $@-t before redirecting to it
33417         * modules/argz: Remove $@-t and $@ before redirecting to the former.
33418         * modules/alloca-opt: Likewise.
33419         * modules/byteswap: Likewise.
33420         * modules/fnmatch: Likewise.
33421         * modules/getopt-posix: Likewise.
33422         * modules/glob: Likewise.
33423         * modules/poll: Likewise.
33424         * modules/posix_spawnp-tests: Likewise.
33425         * modules/sys_socket: Likewise.
33426         * modules/sysexits: Likewise.
33427
33428 2009-08-21  Eric Blake  <ebb9@byu.net>
33429
33430         popen: simplify access to original popen
33431         * lib/popen.c (rpl_popen): No need to worry about popen being a
33432         macro.
33433         Reported by Bruno Haible.
33434
33435 2009-08-20  Eric Blake  <ebb9@byu.net>
33436
33437         build: avoid some compiler warnings
33438         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
33439         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
33440         type.
33441         (new_exclude_segment, excluded_file_pattern_p)
33442         (excluded_file_name_p): Reduce scope.
33443         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
33444         old-style declaration.
33445
33446 2009-08-20  Simon Josefsson  <simon@josefsson.org>
33447
33448         * tests/test-exclude1.sh: Handle Windows EOL.
33449         * tests/test-exclude2.sh: Likewise.
33450         * tests/test-exclude3.sh: Likewise.
33451         * tests/test-exclude4.sh: Likewise.
33452         * tests/test-exclude5.sh: Likewise.
33453         * tests/test-exclude6.sh: Likewise.
33454         * tests/test-exclude7.sh: Likewise.
33455
33456 2009-08-19  Akim Demaille  <demaille@gostai.com>
33457
33458         bootstrap: find sha1sum when named gsha1sum.
33459         * bootstrap (find_tool): New.
33460         ($SHA1SUM): New.
33461         Use it.
33462
33463 2009-08-20  Jim Meyering  <meyering@redhat.com>
33464
33465         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
33466         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
33467         expression that converts "." in a file name to "\." in the resulting
33468         regexp.  Start with a dummy statement, so that prior shell variable
33469         definitions are expanded portably.  Reported by Simon Josefsson.
33470
33471 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
33472
33473         Fix polling for writeability of a screen buffer.
33474         * lib/poll.c: Distinguish input and screen buffers for the
33475         Win32 implementation.
33476         * lib/select.c: Likewise.
33477
33478 2009-08-19  Eric Blake  <ebb9@byu.net>
33479
33480         popen-safer: prevent popen from clobbering std descriptors
33481         * modules/popen-safer: New file.
33482         * lib/popen-safer.c: Likewise.
33483         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
33484         * lib/stdio--.h (popen): Provide override.
33485         * lib/stdio-safer.h (popen_safer): Provide declaration.
33486         * tests/test-popen.c (includes): Partially test this.
33487         * modules/popen-safer-tests: New file, for more tests.
33488         * tests/test-popen-safer.c: Likewise.
33489         * MODULES.html.sh (file stream based Input/Output): Mention it.
33490
33491         tests: test some of the *-safer modules
33492         * modules/fopen-safer (Depends-on): Add fopen.
33493         * modules/fcntl-safer (Depends-on): Add fcntl.
33494         * modules/stdlib-safer (Depends-on): Add stdlib.
33495         (configure.ac): Set indicator.
33496         * modules/unistd-safer (configure.ac): Likewise.
33497         * modules/tmpfile-safer (configure.ac): Likewise.
33498         (Depends-on): Add tmpfile.
33499         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
33500         active.
33501         * tests/test-fopen.c (includes): Test safer versions when they are
33502         in use.
33503         * tests/test-open.c (includes): Likewise.
33504
33505         popen: fix cygwin 1.5 bug when stdin closed
33506         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
33507         * modules/popen: New file.
33508         * modules/popen-tests: Likewise.
33509         * tests/test-popen.c: Likewise.
33510         * m4/popen.m4: Likewise.
33511         * lib/popen.c: Likewise.
33512         * lib/stdio.in.h (popen): New declaration.
33513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
33514         * modules/stdio (Makefile.am): Likewise.
33515         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
33516
33517 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
33518
33519         maint.mk: give full control over update-copyright exclusions
33520         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
33521         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
33522         (update-copyright): Don't force inclusion of top-level
33523         ChangeLog.  Don't force exclusion of all COPYING files, but make
33524         them the default exclusion instead.
33525
33526 2009-08-16  Bruno Haible  <bruno@clisp.org>
33527
33528         Fix test failures on Solaris 10.
33529         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
33530         tests when Solaris iconv() is used.
33531         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33532         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33533         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
33534         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33535         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33536
33537 2009-08-16  Bruno Haible  <bruno@clisp.org>
33538
33539         Fix test failures on Solaris 10.
33540         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
33541         'tr' program and pass it as first argument.
33542         * tests/test-pipe-filter-gi1.sh: Likewise.
33543         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
33544         program as first argument.
33545         * tests/test-pipe-filter-gi1.c (main): Likewise.
33546
33547 2009-08-16  Eric Blake  <ebb9@byu.net>
33548
33549         fpurge: fix previous commits
33550         * modules/fpurge (Makefile.am): Make replacement conditional,
33551         partially reverting 2007-04-29 change; missed in previous
33552         attempt.
33553         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
33554         is missing.
33555
33556 2009-08-16  Bruno Haible  <bruno@clisp.org>
33557
33558         Clarify fpurge's effect on the file position.
33559         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
33560         * tests/test-fpurge.c (main): Make a second pass for checking the file
33561         position.
33562
33563 2009-08-16  Bruno Haible  <bruno@clisp.org>
33564
33565         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
33566         declaration of fpurge is missing.
33567         * tests/test-fpurge.c (main): Check that the file has not more contents
33568         than expected. Close the file before removing it.
33569
33570 2009-08-15  Eric Blake  <ebb9@byu.net>
33571
33572         fpurge: don't wrap working cygwin implementation
33573         * lib/fpurge.c (fpurge): Fix comment typo.
33574         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
33575         1.7 to avoid replacement.
33576         * tests/test-fpurge.c (main): Enhance test.
33577
33578 2009-08-15  Eric Blake  <ebb9@byu.net>
33579         and Jim Meyering  <meyering@redhat.com>
33580
33581         test-update-copyright: skip if perl is insufficient
33582         * tests/test-update-copyright.sh: Failure to run maintainer tool
33583         should not cause testsuite failure on cygwin 1.5.
33584
33585 2009-08-14  Eric Blake  <ebb9@byu.net>
33586
33587         doc: mention more functions added in cygwin 1.7.0
33588         * doc/posix-headers/limits.texi (limits.h): Update for recent
33589         cygwin additions.
33590         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
33591         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
33592         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
33593         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
33594         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
33595
33596 2009-08-14  Eric Blake  <ebb9@byu.net>
33597
33598         maint.mk: simplify update-copyright rule
33599         * top/maint.mk (update-copyright-local): Delete, and document how
33600         to do it in cfg.mk instead.
33601         (update-copyright-exclude-regexp): Delete, and document how to do
33602         it in .x-update-copyright instead.
33603         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
33604         exclude ChangeLog.
33605
33606 2009-08-14  Bruno Haible  <bruno@clisp.org>
33607
33608         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
33609
33610 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33611
33612         maint.mk: support update-copyright-env
33613         * top/maint.mk (update-copyright-env): Define place-holder.
33614         (update-copyright): Expand $(update-copyright-env) before
33615         invoking update-copyright.
33616
33617 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33618
33619         update-copyright: implement forced reformatting
33620         * build-aux/update-copyright: Implement and document
33621         UPDATE_COPYRIGHT_FORCE.
33622         * tests/test-update-copyright.sh: Test it.
33623
33624 2009-08-14  Eric Blake  <ebb9@byu.net>
33625         and Bruno Haible  <bruno@clisp.org>
33626
33627         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
33628         * tests/test-locale.c: Revert previous patch related to NULL.
33629         * tests/test-stdio.c: Likewise.
33630         * tests/test-stdlib.c: Likewise.
33631         * tests/test-string.c: Likewise.
33632         * tests/test-unistd.c: Likewise.
33633         * modules/time-tests (Depends-on): Add verify.
33634         * modules/wchar-tests (Depends-on): Likewise.
33635         * tests/test-time.c: Test for NULL compliance.
33636         * tests/test-wchar.c: Likewise.
33637         * modules/locale (Depends-on): Add stddef.
33638         * modules/stdio (Depends-on): Likewise.
33639         * modules/stdlib (Depends-on): Likewise.
33640         * modules/string (Depends-on): Likewise.
33641         * modules/time (Depends-on): Likewise.
33642         * modules/unistd (Depends-on): Likewise.
33643         * modules/wchar (Depends-on): Likewise.
33644         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
33645         * lib/stdlib.in.h (includes): Likewise.
33646         * lib/string.in.h (includes): Likewise.
33647         * lib/time.in.h (includes): Likewise.
33648         * lib/unistd.in.h (includes): Likewise.
33649         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
33650         replaced.
33651         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33652         * m4/stddef_h.m4: New file.
33653         * modules/stddef: Likewise.
33654         * lib/stddef.in.h: Likewise.
33655         * modules/stddef-tests: Likewise.
33656         * tests/test-stddef.c: Likewise.
33657         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
33658         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
33659         * doc/posix-headers/locale.texi (locale.h): Likewise.
33660         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
33661         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
33662         * doc/posix-headers/string.texi (string.h): Likewise.
33663         * doc/posix-headers/time.texi (time.h): Likewise.
33664         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
33665         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
33666
33667 2009-08-14  Eric Blake  <ebb9@byu.net>
33668
33669         doc: improve git diff of texinfo files
33670         * .gitattributes: Add rule for *.texi files, with hint on how to
33671         use it.
33672         Copied from m4, and based on a report by Bruno Haible.
33673
33674 2009-08-14  Bruno Haible  <bruno@clisp.org>
33675
33676         Disable multithread support by default on Cygwin 1.5.x for real.
33677         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
33678
33679 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33680
33681         update-copyright: much ado about intervals
33682         * build-aux/update-copyright: Implement and document
33683         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
33684         of copyright year intervals.
33685         Also, document UPDATE_COPYRIGHT_YEAR.
33686         * tests/test-update-copyright.sh: Test it.
33687
33688         update-copyright: convert 2-digit to 4-digit years
33689         * build-aux/update-copyright: Implement and document.
33690         * tests/test-update-copyright.sh: Update.
33691
33692 2009-08-14  Jim Meyering  <meyering@redhat.com>
33693
33694         test-exclude: avoid coreutils "make check" failure
33695         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
33696         just as in test-argmatch.c.
33697
33698 2009-08-13  Eric Blake  <ebb9@byu.net>
33699
33700         test-dup2: fix bad assumption
33701         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
33702         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
33703
33704         test-version-etc: fix CRLF portability issue
33705         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
33706         recognize \r.
33707         * tests/test-argp-version-etc-1.sh: Likewise.
33708
33709         getopt: update client modules
33710         * modules/argp (Depends-on): Use getopt-gnu.
33711         * modules/git-merge-changelog (Depends-on): Likewise.
33712         * modules/long-options (Depends-on): Likewise.
33713         * modules/xstrtol (Depends-on): Likewise.
33714
33715 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33716
33717         * tests/test-version-etc.sh: Don't fail on different
33718         project/version.  Don't fail on CRLF differences.  Rewrite to use
33719         multiple -e instead of multiple sed forks, suggested by Eric Blake
33720         <ebb9@byu.net>.
33721         * tests/test-argp-version-etc-1.sh: Likewise.
33722
33723 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33724
33725         * tests/test-version-etc.sh: Don't fail on different
33726         project/version.
33727
33728 2009-08-12  Bruno Haible  <bruno@clisp.org>
33729
33730         Tests for modules 'getopt-posix', 'getopt-gnu'.
33731         * modules/getopt-posix-tests: New file.
33732         * tests/test-getopt.c: New file.
33733         * tests/test-getopt.h: New file.
33734         * tests/test-getopt_long.h: New file.
33735
33736         New modules 'getopt-posix', 'getopt-gnu'.
33737         * modules/getopt-gnu: New file, renamed from modules/getopt.
33738         * modules/getopt-posix: New file.
33739         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
33740         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
33741         (gl_GETOPT): Remove macro.
33742         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
33743         Disable the test against BSD systems that declare optreset. Test
33744         against mingw bug. Test against lack of support of optional arguments
33745         on many platforms.
33746         * doc/glibc-headers/getopt.texi: Update module name and list of
33747         relevant platforms.
33748         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
33749         'getopt-gnu' and more portability problems.
33750         * NEWS: Mention the changes.
33751
33752 2009-08-12  Bruno Haible  <bruno@clisp.org>
33753
33754         Ensure that optarg etc. get declared by <unistd.h>.
33755         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
33756         AC_USE_SYSTEM_EXTENSIONS.
33757         * modules/getopt (Depends-on): Add 'extensions'.
33758
33759 2009-08-12  Bruno Haible  <bruno@clisp.org>
33760
33761         Avoid test link errors.
33762         * modules/pipe-filter-ii-tests (Makefile.am): Define
33763         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
33764         * modules/pipe-filter-gi-tests (Makefile.am): Define
33765         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
33766         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33767
33768 2009-08-12  Bruno Haible  <bruno@clisp.org>
33769
33770         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
33771         gl_GETOPT_SUBSTITUTE before.
33772         (gl_GETOPT): Use it.
33773         * m4/argp.m4 (gl_ARGP): Update.
33774         Reported by Sergey Poznyakoff.
33775
33776         * m4/getopt.m4: Reorder macros.
33777         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
33778         (gl_GETOPT_SUBSTITUTE): Remove macro.
33779
33780 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33781
33782         Minor improvement in gitlog-to-changelog
33783
33784         * build-aux/gitlog-to-changelog: New option `--format' makes
33785         output format string configurable.
33786
33787 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33788
33789         Optimize exclude: use hash tables for non-wildcard patterns.
33790
33791         * lib/exclude.c: Include hash.h and mbuiter.h
33792         (struct exclude_pattern, exclude_segment): New data types.
33793         (struct exclude): Rewrite.
33794         (fnmatch_pattern_has_wildcards): New function.
33795         (new_exclude_segment, free_exclude_segment): New functions.
33796         (excluded_file_pattern_p, excluded_file_name_p): New functions.
33797         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
33798         * lib/exclude.h (is_fnmatch_pattern): New prototype.
33799         * modules/exclude: Depend on hash and mbuiter.
33800
33801         * modules/exclude-tests: New file.
33802         * tests/test-exclude.c: New file.
33803         * tests/test-exclude1.sh: New file.
33804         * tests/test-exclude2.sh: New file.
33805         * tests/test-exclude3.sh: New file.
33806         * tests/test-exclude4.sh: New file.
33807         * tests/test-exclude5.sh: New file.
33808         * tests/test-exclude6.sh: New file.
33809         * tests/test-exclude7.sh: New file.
33810
33811 2009-08-12  Bruno Haible  <bruno@clisp.org>
33812
33813         Ensure that getopt() gets declared by <unistd.h>.
33814         * lib/unistd.in.h: Conditionally include getopt.h.
33815         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
33816         Set GNULIB_UNISTD_H_GETOPT.
33817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33818         GNULIB_UNISTD_H_GETOPT.
33819         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
33820
33821 2009-08-12  Bruno Haible  <bruno@clisp.org>
33822
33823         Clarify logic.
33824         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
33825         gl_replace_getopt instead of GETOPT_H.
33826
33827 2009-08-12  Bruno Haible  <bruno@clisp.org>
33828
33829         * m4/getopt.m4: Add comments.
33830
33831 2009-08-12  Bruno Haible  <bruno@clisp.org>
33832
33833         Disable multithread support by default on Cygwin 1.5.x.
33834         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
33835         set gl_use_threads=no if not specified otherwise.
33836
33837 2009-08-11  Bruno Haible  <bruno@clisp.org>
33838
33839         Avoid compilation error on NetBSD 5.0.
33840         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
33841         * tests/test-stdio.c: Likewise.
33842         * tests/test-stdlib.c: Likewise.
33843         * tests/test-string.c: Likewise.
33844         * tests/test-unistd.c: Likewise.
33845         Reported by Greg Troxel <gdt@ir.bbn.com>
33846         at <https://savannah.gnu.org/support/?106973>.
33847
33848 2009-08-11  Bruno Haible  <bruno@clisp.org>
33849
33850         * modules/dup2-tests (Depends-on): Remove close.
33851
33852         Undo 2009-07-19 commit.
33853         * modules/acl-tests (Depends-on): Remove close.
33854         * modules/binary-io-tests (Depends-on): Likewise.
33855         * modules/closein-tests (Depends-on): Likewise.
33856         * modules/flock-tests (Depends-on): Likewise.
33857         * modules/fsync-tests (Depends-on): Likewise.
33858         * modules/lseek-tests (Depends-on): Likewise.
33859         * modules/pipe-tests (Depends-on): Likewise.
33860         * modules/posix_spawn-tests (Depends-on): Likewise.
33861         * modules/posix_spawnp-tests (Depends-on): Likewise.
33862         * modules/stat-time-tests (Depends-on): Likewise.
33863         * modules/yesno-tests (Depends-on): Likewise.
33864
33865 2009-08-10  Bruno Haible  <bruno@clisp.org>
33866
33867         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
33868
33869 2009-08-10  Bruno Haible  <bruno@clisp.org>
33870
33871         Fix a gcc warning.
33872         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
33873
33874 2009-08-10  Bruno Haible  <bruno@clisp.org>
33875
33876         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
33877         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
33878         not only the first time.
33879         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
33880         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
33881         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
33882         is 1, not only the the first time.
33883
33884 2009-08-10  Bruno Haible  <bruno@clisp.org>
33885
33886         Make it possible to use module 'gethostname' without module 'close'.
33887         * lib/unistd.in.h (close): Evoke a link error only if
33888         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33890         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33891         * modules/unistd (Makefile.am): Substitute
33892         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33893         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
33894         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33895         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33896         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33897         * modules/sys_ioctl (Makefile.am): Substitute
33898         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33899         * modules/socket (configure.ac): On native Windows, set
33900         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33901         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33902         Reported by Sam Steingold <sds@gnu.org>.
33903
33904 2009-08-10  Bruno Haible  <bruno@clisp.org>
33905
33906         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33907         * modules/ioctl (configure.ac): Likewise.
33908
33909 2009-08-10  Bruno Haible  <bruno@clisp.org>
33910
33911         Avoid collision between gnulib wrapper and libintl wrapper.
33912         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33913         already defined in intl/printf.c.
33914         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33915         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33916
33917 2009-08-09  Bruno Haible  <bruno@clisp.org>
33918
33919         Make <sys/select.h> really self-contained, also on Solaris 10.
33920         * lib/sys_select.in.h: Include <string.h>.
33921         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33922         Solaris 10 problem.
33923         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33924         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33925         Reported by Jim Meyering.
33926
33927 2009-08-09  Bruno Haible  <bruno@clisp.org>
33928
33929         Avoid warnings from 'aclocal' that are due to a use of macro name
33930         AM_XGETTEXT_OPTION that is not defined in automake.
33931         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33932         automake.
33933         * modules/error (configure.ac): Likewise.
33934         * modules/propername (configure.ac): Likewise.
33935         * modules/vasprintf (configure.ac): Likewise.
33936         * modules/verror (configure.ac): Likewise.
33937         * modules/xprintf (configure.ac): Likewise.
33938         * modules/xvasprintf (configure.ac): Likewise.
33939
33940 2009-08-08  Bruno Haible  <bruno@clisp.org>
33941
33942         Avoid compilation error in C++ mode.
33943         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33944         Reported by Sam Steingold <sds@gnu.org>.
33945
33946 2009-08-08  Bruno Haible  <bruno@clisp.org>
33947
33948         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33949         for the various Unix platforms.
33950         * doc/posix-headers/limits.texi: Update platforms list regarding
33951         HOST_NAME_MAX.
33952         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33953
33954 2009-08-07  Jim Meyering  <meyering@redhat.com>
33955
33956         selinux-at: fix typo in a comment
33957         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33958         Spotted by Paolo Bonzini.
33959
33960         selinux-at: remove redundant m4 code, add documentation
33961         * modules/selinux-at (configure.ac): Remove redundant code.
33962         LIB_SELINUX is already set via the dependent module, selinux-h.
33963         (Include): Add quotes around selinux-at.h.
33964         * lib/selinux-at.h: Add documentation.
33965         Reported by Bruno Haible in
33966         http://marc.info/?l=gnulib-bug&m=124958988300749
33967
33968 2009-08-07  Bruno Haible  <bruno@clisp.org>
33969
33970         Avoid link error on MacOS X 10.3 and 10.4.
33971         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33972         on non-ELF systems.
33973         * lib/argp-pv.c (argp_program_version): Likewise.
33974         Reported by Simon Josefsson.
33975
33976 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33977
33978         * tests/test-version-etc.sh: Use $EXEEXT.
33979
33980 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33981
33982         update-copyright: update documentation to point to maint.mk
33983         * build-aux/update-copyright: Here.
33984
33985 2009-08-06  Jim Meyering  <meyering@redhat.com>
33986
33987         maint.mk: support update-copyright-local
33988         * top/maint.mk (update-copyright-local): Define place-holder.
33989         (update-copyright): Depend on $(update-copyright-local).
33990
33991 2009-08-06  Jim Meyering  <meyering@redhat.com>
33992
33993         selinux-at: new module
33994         Initially written for coreutils, this module will soon be
33995         used by findutils, too.
33996         * MODULES.html.sh [Misc]: Add selinux-at.
33997         * lib/selinux-at.h: New file, from coreutils.
33998         * lib/selinux-at.c: Likewise.
33999         * modules/selinux-at: Likewise.
34000         (License): Change from LGPL to GPL, since it depends
34001         on the GPL'd openat module.
34002
34003         doc: update README
34004         * README: Remove references to cogito.
34005         Remove cvs-repo-updating instructions from 2007.
34006         Don't imply that CVS is better if you have limited disk space.
34007
34008 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34009
34010         update-copyright: support C-style comments
34011         * build-aux/update-copyright: Implement and document.
34012         * tests/test-update-copyright.sh: Test.
34013
34014 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34015
34016         update-copyright: support omitted "(C)"
34017         * build-aux/update-copyright: Implement and document.  Also,
34018         allow variable whitespace before "(C)".
34019         * tests/test-update-copyright.sh: Test.
34020
34021 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34022
34023         update-copyright: don't trip on non-FSF copyright statements
34024         * build-aux/update-copyright: Fix so that the first correctly
34025         formatted FSF copyright statement is recognized no matter what
34026         appears before it.  Update documentation.
34027         * tests/test-update-copyright.sh: Test that.
34028
34029 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34030
34031         update-copyright: clean up code a little
34032         * build-aux/update-copyright: Append "_re" to the name of any
34033         variable holding a regular expression.
34034         Replace "old" and "new" with "stmt" in variable names.
34035         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
34036         handled correctly.
34037         Format code more consistently.
34038
34039 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34040
34041         update-copyright-tests: improve portability
34042         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
34043         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
34044
34045 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34046
34047         update-copyright: support @copyright{} and &copy;
34048         * build-aux/update-copyright: Implement and document.
34049         * tests/test-update-copyright.sh: Test.
34050
34051 2009-08-04  Jim Meyering  <meyering@redhat.com>
34052
34053         update-copyright-tests: correctly test EOL=\r\n handling
34054         * tests/test-update-copyright.sh: Put \r at the end of some lines
34055         for the dos-eol tests.  Based on a patch by Joel E. Denny.
34056
34057         maint.mk: make update-copyright exclusion list more configurable
34058         * top/maint.mk (update-copyright): Default to excluding COPYING,
34059         but allow an override, in case someone does want to update that file.
34060
34061         maint.mk: don't update copyright date in COPYING
34062         * top/maint.mk (update-copyright): Exclude COPYING.
34063
34064         maint.mk: add a copyright-updating rule
34065         * top/maint.mk (update-copyright): New rule.
34066         Derived from coreutils/Makefile.am.
34067
34068         update-copyright: rename some variables
34069         * build-aux/update-copyright: Rename a few variables for clarity.
34070         Tweak syntax.  List Joel E. Denny as coauthor.
34071
34072 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34073
34074         update-copyright: fix bug for 2-digit last year and add tests
34075         * build-aux/update-copyright: Fix bug.
34076         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
34077         specified.
34078         * modules/update-copyright-tests: New
34079         * tests/test-update-copyright.sh: New.
34080
34081 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34082
34083         update-copyright: handle leading tabs in line prefix
34084         * build-aux/update-copyright: Count leading tabs as 8 spaces
34085         when computing margin.  This helps with the formatting of
34086         ChangeLogs, for example.
34087         Fix documentation a little.
34088
34089 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34090
34091         update-copyright: support EOL=\r\n
34092         * build-aux/update-copyright: Implement that.
34093
34094 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34095
34096         update-copyright: automatically format copyright statements
34097         * build-aux/update-copyright: Implement that.
34098         Also, be a little more predictable and safer by always failing
34099         when the full copyright format is not perfectly recognized as an
34100         unbroken whole.  Discussed at
34101         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
34102         Rewrite documentation.
34103
34104 2009-08-03  Bruno Haible  <bruno@clisp.org>
34105
34106         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
34107
34108 2009-08-02  Bruno Haible  <bruno@clisp.org>
34109
34110         Tests for module 'uname'.
34111         * modules/uname-tests: New file.
34112         * tests/test-uname.c: New file.
34113
34114         New module 'uname'.
34115         * lib/uname.c: New file.
34116         * m4/uname.m4: New file.
34117         * modules/uname: New file.
34118         * doc/posix-functions/uname.texi: Mention the new module.
34119
34120 2009-08-02  Bruno Haible  <bruno@clisp.org>
34121
34122         Tests for module 'sys_utsname'.
34123         * modules/sys_utsname-tests: New file.
34124         * tests/test-sys_utsname.c: New file.
34125
34126         New module 'sys_utsname'.
34127         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
34128         * m4/sys_utsname_h.m4: New file.
34129         * modules/sys_utsname: New file.
34130         * doc/posix-headers/sys_utsname.texi: Mention the new module.
34131
34132 2009-08-02  Bruno Haible  <bruno@clisp.org>
34133
34134         Implicitly initialize the sockets library.
34135         * lib/gethostname.c: Include sockets.h.
34136         (rpl_gethostname): Invoke gl_sockets_startup.
34137         * lib/socket.c: Include sockets.h.
34138         (rpl_socket): Invoke gl_sockets_startup.
34139         * modules/gethostname (Depends-on): Add sockets.
34140         * modules/socket (Depends-on): Likewise.
34141         * tests/test-poll.c: Don't include sockets.h.
34142         (main): Don't invoke gl_sockets_startup.
34143         * tests/test-select.c: Don't include sockets.h.
34144         (main): Don't invoke gl_sockets_startup.
34145
34146 2009-08-02  Bruno Haible  <bruno@clisp.org>
34147
34148         Allow multiple calls to gl_sockets_startup.
34149         * lib/sockets.c (initialized_sockets_version): New variable.
34150         (gl_sockets_startup): Do nothing if already called for this or a higher
34151         version.
34152         (gl_sockets_cleanup): Reset initialized_sockets_version.
34153
34154 2009-08-03  Simon Josefsson  <simon@josefsson.org>
34155
34156         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
34157         different project/version.
34158
34159 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
34160             Bruno Haible  <bruno@clisp.org>
34161
34162         Tests for module 'pipe-filter-gi'.
34163         * modules/pipe-filter-gi-tests: New file.
34164         * tests/test-pipe-filter-gi1.sh: New file.
34165         * tests/test-pipe-filter-gi1.c: New file.
34166         * tests/test-pipe-filter-gi2.sh: New file.
34167         * tests/test-pipe-filter-gi2-main.c: New file.
34168         * tests/test-pipe-filter-gi2-child.c: New file.
34169
34170         New module 'pipe-filter-gi'.
34171         * lib/pipe-filter-gi.c: New file.
34172         * modules/pipe-filter-gi: New file.
34173
34174 2009-08-02  Bruno Haible  <bruno@clisp.org>
34175             Paolo Bonzini  <bonzini@gnu.org>
34176
34177         Tests for module 'pipe-filter-ii'.
34178         * modules/pipe-filter-ii-tests: New file.
34179         * tests/test-pipe-filter-ii1.sh: New file.
34180         * tests/test-pipe-filter-ii1.c: New file.
34181         * tests/test-pipe-filter-ii2.sh: New file.
34182         * tests/test-pipe-filter-ii2-main.c: New file.
34183         * tests/test-pipe-filter-ii2-child.c: New file.
34184
34185         New module 'pipe-filter-ii'.
34186         * lib/pipe-filter.h: New file.
34187         * lib/pipe-filter-ii.c: New file.
34188         * lib/pipe-filter-aux.h: New file.
34189         * modules/pipe-filter-ii: New file.
34190
34191 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34192
34193         * lib/gc-libgcrypt.c: Change copyright to FSF.
34194         * lib/gc-gnulib.c: Likewise.
34195
34196 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
34197
34198         * lib/gethostname.c: Include limits.h.
34199
34200 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34201             Bruno Haible  <bruno@clisp.org>
34202
34203         Ensure HOST_NAME_MAX as part of the gethostname module.
34204         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
34205         define also HOST_NAME_MAX.
34206         * tests/test-gethostname.c: Include <limits.h>.
34207         (main): Check also HOST_NAME_MAX.
34208         * doc/posix-headers/limits.texi: Document the mingw problem.
34209
34210 2009-08-02  Bruno Haible  <bruno@clisp.org>
34211
34212         * lib/gethostname.c (gethostname): Fix handling of large len argument.
34213         Add comments.
34214
34215 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34216
34217         * lib/gethostname.c: Add Windows wrapper.
34218         * m4/gethostname.m4: Look for gethostname in -lws2_32.
34219         * modules/gethostname: Depend on sys_socket & errno, for also
34220         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
34221         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
34222
34223 2009-07-31  Jim Meyering  <meyering@redhat.com>
34224
34225         getloadavg: fix symbol name in comment
34226         * lib/getloadavg.c: Correct a typo I introduced when adding
34227         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
34228         Matt Kraai spotted the problem.
34229
34230 2009-07-29  Matt Kraai  <mkraai@beckman.com>
34231
34232         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
34233         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
34234         code also if ! defined N_NAME_POINTER.
34235         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
34236         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
34237         but the n_name member is a 12-byte array.
34238
34239 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
34240
34241         update-copyright: generalize comment handling
34242         * build-aux/update-copyright: Handle copyright statements
34243         within more comment styles.
34244         Document usage.
34245         Report any file with an external copyright holder or parse failure.
34246
34247 2009-07-29  Jim Meyering  <meyering@redhat.com>
34248
34249         mktime: correct setting of REPLACE_MKTIME
34250         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
34251
34252         update-copyright: new module
34253         * modules/update-copyright: New file.
34254         * build-aux/update-copyright: New file.
34255         * MODULES.html.sh (maint+release support): Add update-copyright.
34256
34257 2009-07-27  Bruno Haible  <bruno@clisp.org>
34258
34259         Fix compilation error when <ctime> is used and mktime is replaced.
34260         * lib/time.in.h (mktime): New declaration.
34261         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
34262         REPLACE_MKTIME instead of defining mktime in config.h.
34263         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
34264         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
34265         Reported by Ross McFarland <rwmcfa1@neces.com>.
34266
34267 2009-07-27  Bruno Haible  <bruno@clisp.org>
34268
34269         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
34270         Reported by Matt Kraai <mkraai@beckman.com>.
34271
34272 2009-07-25  Jim Meyering  <meyering@redhat.com>
34273
34274         maint.mk: avoid warnings about missing files
34275         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
34276         diagnostic when .prev-version does not exist.
34277         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
34278         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
34279         nonexistent cfg.mk.
34280         Suggestions from Simon Josefsson.
34281
34282 2009-07-25  Bruno Haible  <bruno@clisp.org>
34283
34284         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
34285         defined as macros. Needed on QNX 6.4.1.
34286         Reported by Matt Kraai <mkraai@beckman.com>.
34287
34288 2009-07-23  Jim Meyering  <meyering@redhat.com>
34289
34290         maint.mk: invoke "make dist" with a working value of XZ_OPT
34291         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
34292
34293 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
34294
34295         Make fseeko.c compile on QNX.
34296         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
34297
34298 2009-07-22  Peter Simons  <simons@cryp.to>
34299
34300         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
34301         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
34302         * lib/md4.h: Likewise.
34303         * lib/md5.h: Likewise.
34304         * lib/sha1.h: Likewise.
34305         * lib/sha256.h: Likewise.
34306         * lib/sha512.h: Likewise.
34307
34308         tests-sha1: don't assign literal string to 'char *' variable
34309         * tests/test-sha1.c (main): Declare locals with "const" to match
34310         attributes of the right hand side.
34311
34312 2009-07-21  Eric Blake  <ebb9@byu.net>
34313
34314         dup2: fix more mingw problems
34315         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
34316         fd to itself.
34317         * doc/posix-functions/dup2.texi (dup2): Document the bug.
34318         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
34319         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
34320         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
34321         care of mingw bugs.
34322
34323 2009-07-21  Jim Meyering  <meyering@redhat.com>
34324
34325         vc-list-files: avoid failure when /bin/sh is dash
34326         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
34327         On some Debian based systems, /bin/sh is a symlink to dash, and running
34328         this command would omit the "/" following each 'tests' prefix:
34329           dash -x build-aux/vc-list-files -C . tests
34330         That is because bash and dash work differently:
34331           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
34332           bash ok
34333           dash odd
34334
34335 2009-07-21  Eric Blake  <ebb9@byu.net>
34336
34337         dup2-tests: test previous patch
34338         * modules/dup2-tests: New file.
34339         * tests/test-dup2.c: Likewise.
34340         * tests/test-open.c (main): Avoid unspecified behavior.
34341         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
34342         test.
34343
34344         dup2: work around mingw and cygwin 1.5 bug
34345         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
34346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34347         * modules/unistd (Makefile.am): Substitute it.
34348         * lib/unistd.in.h (dup2): Declare the replacement.
34349         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
34350         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
34351         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
34352         * modules/execute (Depends-on): Add dup2.
34353         * modules/fseterr (Depends-on): Likewise.
34354         * modules/pipe (Depends-on): Likewise.
34355         * modules/posix_spawn-internal (Depends-on): Likewise.
34356
34357 2009-07-21  Bruno Haible  <bruno@clisp.org>
34358
34359         * modules/.gitattributes: New file.
34360
34361 2009-07-20  Bruno Haible  <bruno@clisp.org>
34362
34363         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
34364         (main): Use it.
34365
34366 2009-07-20  Eric Blake  <ebb9@byu.net>
34367
34368         test-pipe: make a bit more robust.
34369         * tests/test-pipe.c (myerr): Allow error messages regardless of
34370         what we do to stderr.
34371         (test_pipe): Rearrange to avoid deadlock.
34372         (child_main): Try a larger read, to ensure we avoided deadlock.
34373         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
34374         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
34375         if misused.
34376
34377 2009-07-19  Jim Meyering  <meyering@redhat.com>
34378
34379         fts: avoid false-positive cycle-detection
34380         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
34381         for each new command line argument.
34382
34383 2009-07-19  Bruno Haible  <bruno@clisp.org>
34384
34385         Fix build error on mingw with the modules sys_select and unistd.
34386         * modules/acl-tests (Depends-on): Add close.
34387         * modules/binary-io-tests (Depends-on): Likewise.
34388         * modules/closein-tests (Depends-on): Likewise.
34389         * modules/flock-tests (Depends-on): Likewise.
34390         * modules/fsync-tests (Depends-on): Likewise.
34391         * modules/lseek-tests (Depends-on): Likewise.
34392         * modules/pipe-tests (Depends-on): Likewise.
34393         * modules/posix_spawn-tests (Depends-on): Likewise.
34394         * modules/posix_spawnp-tests (Depends-on): Likewise.
34395         * modules/stat-time-tests (Depends-on): Likewise.
34396         * modules/yesno-tests (Depends-on): Likewise.
34397
34398 2009-07-19  Bruno Haible  <bruno@clisp.org>
34399
34400         Unify conditionals.
34401         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
34402         macros, not at the compiler macros.
34403         * lib/pipe.c: Likewise.
34404         * lib/execute.c: Likewise.
34405         * lib/spawni.c: Likewise.
34406
34407 2009-07-19  Bruno Haible  <bruno@clisp.org>
34408
34409         Fix handling of closed stdin/stdout/stderr on mingw.
34410         * lib/w32spawn.h: Include unistd.h.
34411         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
34412         file descriptor with O_NOINHERIT flag.
34413         (fd_safer_noinherit): New function, based on fd-safer.c.
34414         (dup_safer_noinherit): New function, based on dup-safer.c.
34415         (undup_safer_noinherit): New function.
34416         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
34417         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
34418         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
34419         instead of fd_safer.
34420         * tests/test-pipe.c: Include <windows.h>.
34421         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
34422         result.
34423
34424         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
34425         from main.
34426         (test_pipe): Pass an extra argument for disambiguation.
34427         (main): Invoke parent_main or child_main.
34428
34429         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
34430         consistently.
34431
34432 2009-07-18  Eric Blake  <ebb9@byu.net>
34433
34434         test-pipe: fix mingw build
34435         * tests/test-pipe.c (main): Avoid fcntl on mingw.
34436
34437 2009-07-18  Bruno Haible  <bruno@clisp.org>
34438
34439         * modules/pipe-tests (Makefile.am): Fix typo.
34440
34441 2009-07-18  Eric Blake  <ebb9@byu.net>
34442
34443         error: fix mingw build
34444         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
34445         Reported by Bruno Haible.
34446
34447         error: avoid undefined use of stdout
34448         * lib/error.c (error, error_at_line): Check that fd 1 is open
34449         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
34450         is handling faults and the close_stdout module wants to report the
34451         detection of closed stdout as an error.
34452
34453 2009-07-17  Eric Blake  <ebb9@byu.net>
34454
34455         pipe: be robust in face of closed fds
34456         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
34457         should cause child to misbehave.
34458         * modules/pipe-tests: New module.
34459         * tests/test-pipe.c: New file.
34460         * tests/test-pipe.sh: New file.
34461         Reported by Akim Demaille.
34462
34463 2009-07-14  Bruno Haible  <bruno@clisp.org>
34464
34465         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
34466         Reported by anonymous kc.
34467
34468 2009-07-07  Jim Meyering  <meyering@redhat.com>
34469
34470         maint.mk: don't look for translatable strings in *.m4 or *.mk
34471         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
34472         when searching for translatable strings.
34473
34474 2009-07-05  Jim Meyering  <meyering@redhat.com>
34475
34476         remove superfluous parentheses in STREQ definition
34477         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
34478         * lib/getugroups.c (STREQ): Likewise.
34479         * lib/fnmatch.c (STREQ): Likewise.
34480         Spotted by Bruno Haible.
34481
34482 2009-07-04  Jim Meyering  <meyering@redhat.com>
34483
34484         argv-iter: new module
34485         * MODULES.html.sh: Add argv-iter.
34486         * lib/argv-iter.c, lib/argv-iter.h: New files.
34487         * modules/argv-iter: New file.
34488         * modules/argv-iter-tests: New file.
34489         * tests/test-argv-iter.c: Test it.
34490
34491 2009-07-04  Bruno Haible  <bruno@clisp.org>
34492
34493         Fix assertion.
34494         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
34495         contains more exact copies of a given entry than file2, leave the extra
34496         copies unpaired rather than aborting.
34497         Reported by Eric Blake.
34498
34499 2009-07-02  Bruno Haible  <bruno@clisp.org>
34500
34501         Speedup git-merge-changelog for git cherry-pick.
34502         * lib/git-merge-changelog.c (struct entries_mapping): New type.
34503         (entries_mapping_get): New function, extracted from compute_mapping.
34504         (entries_mapping_reverse_get): New function.
34505         (compute_mapping): Add a 'full' argument. Return the result in a
34506         'struct entries_mapping'.
34507         (main): Update. Access the mappings through entries_mapping_get.
34508         Reported by Eric Blake.
34509
34510 2009-07-02  Bruno Haible  <bruno@clisp.org>
34511
34512         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
34513         best_i.
34514
34515 2009-07-02  Bruno Haible  <bruno@clisp.org>
34516
34517         Speed up approximate search for matching ChangeLog entries.
34518         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
34519         argument. Call fstrcmp_bounded instead of fstrcmp.
34520         (compute_mapping, try_split_merged_entry, main): Update callers.
34521
34522 2009-07-02  Bruno Haible  <bruno@clisp.org>
34523
34524         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
34525
34526 2009-06-30  Bruno Haible  <bruno@clisp.org>
34527
34528         Reduce the number of uc_is_cased calls.
34529         * lib/unicase.h (casing_suffix_context_t): Add
34530         'first_char_except_ignorable' field.
34531         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
34532         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
34533         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
34534         Update initializer.
34535         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
34536         case-ignorable characters.
34537         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
34538         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
34539         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
34540         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
34541         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
34542
34543 2009-06-30  Bruno Haible  <bruno@clisp.org>
34544
34545         Tests for module 'unicase/ignorable'.
34546         * modules/unicase/ignorable-tests: New file.
34547         * tests/unicase/test-ignorable.c: New file, generated by
34548         gen-uni-tables.
34549
34550         Tests for module 'unicase/cased'.
34551         * modules/unicase/cased-tests: New file.
34552         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
34553         * tests/unicase/test-predicate-part1.h: New file, derived from
34554         tests/unictype/test-predicate-part1.h.
34555         * tests/unicase/test-predicate-part2.h: New file, same as
34556         tests/unictype/test-predicate-part2.h.
34557
34558         Fix evaluation of "Before C" condition of FINAL_SIGMA.
34559         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
34560         (output_casing_properties): New function.
34561         (main): Call it.
34562         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
34563         * lib/unicase/cased.c: Include unictype/bitmap.h.
34564         (uc_is_cased): Define through a bitmap lookup.
34565         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
34566         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
34567         (uc_is_case_ignorable): Define through a bitmap lookup.
34568         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
34569         lib/unictype/bitmap.h.
34570         (Depends-on): Add inline. Clean up.
34571         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
34572         lib/unictype/bitmap.h.
34573         (Depends-on): Add inline. Clean up.
34574         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
34575         recognition.
34576         * tests/unicase/test-u16-tolower.c (main): Likewise.
34577         * tests/unicase/test-u32-tolower.c (main): Likewise.
34578
34579 2009-06-30  Bruno Haible  <bruno@clisp.org>
34580
34581         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
34582         * lib/unicase/u16-casemap.c: Likewise.
34583         * lib/unicase/u32-casemap.c: Likewise.
34584
34585 2009-06-29  Bruno Haible  <bruno@clisp.org>
34586
34587         Define u32_casefold as a wrapper around u32_ct_casefold.
34588         * lib/unicase/u32-casefold.c: Update.
34589         * modules/unicase/u32-casefold (Depends-on): Add
34590         unicase/u32-ct-casefold, unicase/empty-prefix-context,
34591         unicase/empty-suffix-context. Clean up.
34592
34593         Define u16_casefold as a wrapper around u16_ct_casefold.
34594         * lib/unicase/u16-casefold.c: Update.
34595         * modules/unicase/u16-casefold (Depends-on): Add
34596         unicase/u16-ct-casefold, unicase/empty-prefix-context,
34597         unicase/empty-suffix-context. Clean up.
34598
34599         Define u8_casefold as a wrapper around u8_ct_casefold.
34600         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
34601         * lib/unicase/u8-casefold.c: Update.
34602         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
34603         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34604
34605         Define u32_totitle as a wrapper around u32_ct_totitle.
34606         * lib/unicase/u32-totitle.c: Update.
34607         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
34608         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34609
34610         Define u16_totitle as a wrapper around u16_ct_totitle.
34611         * lib/unicase/u16-totitle.c: Update.
34612         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
34613         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34614
34615         Define u8_totitle as a wrapper around u8_ct_totitle.
34616         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
34617         functions.
34618         (FUNC): Delegate to U_CT_TOTITLE.
34619         * lib/unicase/u8-totitle.c: Update.
34620         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
34621         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34622
34623         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
34624         invocation.
34625         * modules/unicase/u32-tolower (Depends-on): Add
34626         unicase/empty-prefix-context, unicase/empty-suffix-context.
34627
34628         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
34629         invocation.
34630         * modules/unicase/u16-tolower (Depends-on): Add
34631         unicase/empty-prefix-context, unicase/empty-suffix-context.
34632
34633         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
34634         * modules/unicase/u8-tolower (Depends-on): Add
34635         unicase/empty-prefix-context, unicase/empty-suffix-context.
34636
34637         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
34638         invocation.
34639         * modules/unicase/u32-toupper (Depends-on): Add
34640         unicase/empty-prefix-context, unicase/empty-suffix-context.
34641
34642         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
34643         invocation.
34644         * modules/unicase/u16-toupper (Depends-on): Add
34645         unicase/empty-prefix-context, unicase/empty-suffix-context.
34646
34647         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
34648         * modules/unicase/u8-toupper (Depends-on): Add
34649         unicase/empty-prefix-context, unicase/empty-suffix-context.
34650
34651         New module 'unicase/u32-ct-casefold'.
34652         * lib/unicase/u32-ct-casefold.c: New file.
34653         * modules/unicase/u32-ct-casefold: New file.
34654
34655         New module 'unicase/u16-ct-casefold'.
34656         * lib/unicase/u16-ct-casefold.c: New file.
34657         * modules/unicase/u16-ct-casefold: New file.
34658
34659         New module 'unicase/u8-ct-casefold'.
34660         * lib/unicase/u8-ct-casefold.c: New file.
34661         * lib/unicase/u-ct-casefold.h: New file, derived from
34662         lib/unicase/u-casefold.h.
34663         * modules/unicase/u8-ct-casefold: New file.
34664
34665         New module 'unicase/u32-ct-totitle'.
34666         * lib/unicase/u32-ct-totitle.c: New file.
34667         * modules/unicase/u32-ct-totitle: New file.
34668
34669         New module 'unicase/u16-ct-totitle'.
34670         * lib/unicase/u16-ct-totitle.c: New file.
34671         * modules/unicase/u16-ct-totitle: New file.
34672
34673         New module 'unicase/u8-ct-totitle'.
34674         * lib/unicase/u8-ct-totitle.c: New file.
34675         * lib/unicase/u-ct-totitle.h: New file, derived from
34676         lib/unicase/u-totitle.h.
34677         * modules/unicase/u8-ct-totitle: New file.
34678
34679         New module 'unicase/u32-ct-tolower'.
34680         * lib/unicase/u32-ct-tolower.c: New file.
34681         * modules/unicase/u32-ct-tolower: New file.
34682
34683         New module 'unicase/u16-ct-tolower'.
34684         * lib/unicase/u16-ct-tolower.c: New file.
34685         * modules/unicase/u16-ct-tolower: New file.
34686
34687         New module 'unicase/u8-ct-tolower'.
34688         * lib/unicase/u8-ct-tolower.c: New file.
34689         * modules/unicase/u8-ct-tolower: New file.
34690
34691         New module 'unicase/u32-ct-toupper'.
34692         * lib/unicase/u32-ct-toupper.c: New file.
34693         * modules/unicase/u32-ct-toupper: New file.
34694
34695         New module 'unicase/u16-ct-toupper'.
34696         * lib/unicase/u16-ct-toupper.c: New file.
34697         * modules/unicase/u16-ct-toupper: New file.
34698
34699         New module 'unicase/u8-ct-toupper'.
34700         * lib/unicase/u8-ct-toupper.c: New file.
34701         * modules/unicase/u8-ct-toupper: New file.
34702
34703         Add context arguments to u*_casemap functions.
34704         * lib/unicase/unicasemap.h: Include unicase.h.
34705         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
34706         suffix_context arguments.
34707         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
34708         functions.
34709         (FUNC): Add prefix_context and suffix_context arguments. Use
34710         uc_is_cased and uc_is_case_ignorable.
34711         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
34712         * lib/unicase/u16-casemap.c: Likewise.
34713         * lib/unicase/u32-casemap.c: Likewise.
34714         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
34715         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34716         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
34717         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34718         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
34719         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34720
34721         New module 'unicase/u32-suffix-context'.
34722         * lib/unicase/u32-suffix-context.c: New file.
34723         * modules/unicase/u32-suffix-context: New file.
34724
34725         New module 'unicase/u16-suffix-context'.
34726         * lib/unicase/u16-suffix-context.c: New file.
34727         * modules/unicase/u16-suffix-context: New file.
34728
34729         New module 'unicase/u8-suffix-context'.
34730         * lib/unicase/u8-suffix-context.c: New file.
34731         * lib/unicase/u-suffix-context.h: New file.
34732         * modules/unicase/u8-suffix-context: New file.
34733
34734         New module 'unicase/empty-suffix-context'.
34735         * lib/unicase/empty-suffix-context.c: New file.
34736         * modules/unicase/empty-suffix-context: New file.
34737
34738         New module 'unicase/u32-prefix-context'.
34739         * lib/unicase/u32-prefix-context.c: New file.
34740         * modules/unicase/u32-prefix-context: New file.
34741
34742         New module 'unicase/u16-prefix-context'.
34743         * lib/unicase/u16-prefix-context.c: New file.
34744         * modules/unicase/u16-prefix-context: New file.
34745
34746         New module 'unicase/u8-prefix-context'.
34747         * lib/unicase/u8-prefix-context.c: New file.
34748         * lib/unicase/u-prefix-context.h: New file.
34749         * lib/unicase/context.h: New file.
34750         * modules/unicase/u8-prefix-context: New file.
34751
34752         New module 'unicase/empty-prefix-context'.
34753         * lib/unicase/empty-prefix-context.c: New file.
34754         * modules/unicase/empty-prefix-context: New file.
34755
34756         New module 'unicase/ignorable'.
34757         * lib/unicase/ignorable.c: New file.
34758         * modules/unicase/ignorable: New file.
34759
34760         New module 'unicase/cased'.
34761         * lib/unicase/caseprop.h: New file.
34762         * lib/unicase/cased.c: New file.
34763         * modules/unicase/cased: New file.
34764
34765         New functions for case mapping of substrings.
34766         * lib/unicase.h (casing_prefix_context_t): New type.
34767         (unicase_empty_prefix_context): New variable.
34768         (u8_casing_prefix_context, u16_casing_prefix_context,
34769         u32_casing_prefix_context, u8_casing_prefixes_context,
34770         u16_casing_prefixes_context, u32_casing_prefixes_context): New
34771         declarations.
34772         (casing_suffix_context_t): New type.
34773         (unicase_empty_suffix_context): New variable.
34774         (u8_casing_suffix_context, u16_casing_suffix_context,
34775         u32_casing_suffix_context, u8_casing_suffixes_context,
34776         u16_casing_suffixes_context, u32_casing_suffixes_context,
34777         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
34778         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
34779         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
34780         declarations.
34781
34782 2009-06-28  Jim Meyering  <meyering@redhat.com>
34783
34784         boostrap: indent only with spaces
34785         * build-aux/bootstrap: Indent only with spaces, never TABs.
34786
34787         bootstrap: split long lines
34788         * build-aux/bootstrap: Keep line length < 80.
34789
34790         bootstrap: sync from coreutils
34791         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
34792         just as autoreconf does.  Verify a list of prerequisite
34793         package-name,version-number pairs if defined in bootstrap.conf.
34794         Refer to README-prereq, if prerequisites are not satisfied.
34795
34796 2009-06-27  Eric Blake  <ebb9@byu.net>
34797
34798         tests: add test for bogus NULL definition
34799         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
34800         * tests/test-stdlib.c: Likewise.
34801         * tests/test-string.c: Likewise.
34802         * tests/test-locale.c: Likewise.
34803         * tests/test-unistd.c: Likewise.
34804         * modules/stdio-tests (Depends-on): Add verify.
34805         * modules/stdlib-tests (Depends-on): Likewise.
34806         * modules/string-tests (Depends-on): Likewise.
34807         * modules/locale-tests (Depends-on): Likewise.
34808         * modules/unistd-tests (Depends-on): Likewise.
34809
34810 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
34811
34812         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
34813         self-explaining comment.
34814         * m4/selinux-selinux-h: Update serial.
34815         (gl_LIBSELINUX): New macro, adding a warning for missing development
34816         packages to code extracted from...
34817         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
34818         Add warning for missing development packages here, too.
34819
34820 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
34821
34822         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
34823
34824 2009-06-25  Eric Blake  <ebb9@byu.net>
34825
34826         version-etc: fix regression
34827         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
34828         gcc.
34829         (version_etc): Use it, to catch bugs with trailing NULL.
34830         * lib/version-etc.c (version_etc_arn): Delete unused argument.
34831         (version_etc_va): Fix logic bug.
34832         * modules/version-etc-tests: Add test.
34833         * tests/test-version-etc.c: New file.
34834         * tests/test-version-etc.sh: Likewise.
34835
34836 2009-06-25  Sam Steingold  <sds@gnu.org>
34837
34838         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
34839         mbtowc declaration.
34840
34841 2009-06-25  Eric Blake  <ebb9@byu.net>
34842
34843         fpurge: migrate into <stdio.h>
34844         * lib/fpurge.h: Delete...
34845         * lib/stdio.in.h (fpurge): ...and declare here, instead.
34846         * lib/fpurge.c (fpurge): Change declaring header.
34847         * modules/fpurge (Files): Drop deleted file.
34848         (Depends-on): Add stdio.
34849         (configure.ac): Set witness.
34850         * modules/stdio (Makefile.am): Support fpurge macros.
34851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34852         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
34853         * lib/fflush.c: Update client.
34854         * tests/test-fpurge.c: Likewise.
34855         * NEWS: Mention the change.
34856
34857 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34858
34859         * lib/argp-version-etc.c (program_authors): Add const
34860         qualifier.
34861         * lib/version-etc.c: Fix typos in the comments.
34862         * modules/argp-version-etc: Depends on version-etc.
34863
34864 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34865
34866         argp-version-etc: new module.
34867
34868         * lib/argp-version-etc.c: New file.
34869         * lib/argp-version-etc.h: New file.
34870         * modules/argp-version-etc: New file.
34871         * modules/argp-version-etc-tests: New file.
34872         * tests/test-argp-version-etc.c: New test.
34873         * tests/test-argp-version-etc-1.sh: New test.
34874
34875 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34876
34877         Provide additional interfaces and documentation for version-etc
34878         module.
34879
34880         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
34881         interfaces.
34882         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
34883         prototypes.
34884
34885 2009-06-24  Bruno Haible  <bruno@clisp.org>
34886
34887         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
34888         HAVE_LIB${NAME} macro.
34889         Reported by Sam Steingold <sds@gnu.org>.
34890
34891 2009-06-23  Simon Josefsson  <simon@josefsson.org>
34892
34893         * modules/hash-tests (test_hash_LDADD): Link to libintl when
34894         needed.
34895
34896 2009-06-21  Bruno Haible  <bruno@clisp.org>
34897
34898         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
34899         work.
34900         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34901         together with LIB${NAME}, LTLIB${NAME}.
34902         Reported by Sam Steingold <sds@gnu.org>.
34903
34904 2009-06-20  Jim Meyering  <meyering@redhat.com>
34905
34906         tests: make sc_require_test_exit_idiom more generic
34907         * top/maint.mk (Exit_witness_file): New overridable variable.
34908         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34909         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34910
34911 2009-06-19  Jim Meyering  <meyering@redhat.com>
34912
34913         hash: reverse order of src/dst parameters in an internal interface
34914         * lib/hash.c (transfer_entries): Reverse order of parameters to
34915         put DST before SRC.  Adjust callers.
34916
34917         tests: test-hash: avoid wholesale duplication
34918         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34919         Instead, use a loop and add a single conditional.
34920
34921         tests: test-hash: allow seed selection via a command line argument
34922         * tests/test-hash.c (get_seed): New function.
34923         (main): Use it.
34924
34925 2009-06-19  Eric Blake  <ebb9@byu.net>
34926
34927         hash: avoid memory leak on allocation failure
34928         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34929         failure.  Factor repeated algorithm...
34930         (transfer_entries): ...into new helper routine.
34931         (hash_delete): React to hash_rehash return value.
34932
34933         hash: reduce memory pressure in hash_rehash no-op case
34934         * lib/hash.c (next_prime): Avoid overflow.
34935         (hash_initialize): Factor bucket size computation...
34936         (compute_bucket_size): ...into new helper function.
34937         (hash_rehash): Use new function and open coding to reduce memory
34938         pressure, and avoid a memory leak in USE_OBSTACK code.
34939         Reported by Jim Meyering.
34940
34941 2009-06-18  Eric Blake  <ebb9@byu.net>
34942
34943         hash: make rotation more obvious
34944         * modules/hash (Depends-on): Add bitrotate and stdint.
34945         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34946         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34947         (SIZE_MAX): Rely on headers for definition.
34948         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34949         (raw_hasher): Use rotr_sz.
34950         Suggested by Jim Meyering.
34951
34952         hash: fix memory leak in last patch
34953         * lib/hash.c (hash_rehash): Avoid memory leak.
34954
34955         hash: avoid no-op rehashing
34956         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34957
34958         hash: provide default callback functions
34959         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34960         (hash_initialize): Use them as defaults.
34961         * tests/test-hash.c (main): Test this.
34962
34963         hash: minor optimization
34964         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34965         when possible.
34966         (hash_initialize): Document this promise.
34967         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34968         * tests/test-hash.c (hash_compare_strings): Test this.
34969
34970 2009-06-18  Bruno Haible  <bruno@clisp.org>
34971
34972         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34973         going to be replaced anyway.
34974
34975 2009-06-18  Bruno Haible  <bruno@clisp.org>
34976
34977         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34978         in one place.
34979         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34980         be replaced anyway.
34981
34982 2009-06-18  Eric Blake  <ebb9@byu.net>
34983
34984         hash: check for resize before insertion
34985         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34986         threshold before insertion, so that a pathological hash_rehash
34987         that fills every bucket can still trigger another rehash.
34988
34989 2009-06-18  Jim Meyering  <meyering@redhat.com>
34990
34991         hash-tests: add a loop around the small tests
34992         * tests/test-hash.c (main): Repeat small tests with selected
34993         small initial table sizes.
34994
34995 2009-06-17  Eric Blake  <ebb9@byu.net>
34996
34997         hash: minor cleanups
34998         * lib/hash.h (hash_entry): Make opaque, by moving...
34999         * lib/hash.c (hash_entry): ...here.
35000         (hash_insert): Clarify restrictions on what can be inserted.
35001         (hash_get_next): Clarify when it is safe to remove an element
35002         during traversal.
35003         (check_tuning): Skip verification when tuning is known safe.
35004         (hash_initialize): Clarify restrictions on tuning.
35005
35006 2009-06-17  Jim Meyering  <jim@meyering.net>
35007         and Eric Blake  <ebb9@byu.net>
35008
35009         hash-tests: new module
35010         * modules/hash-tests: New file.
35011         * tests/test-hash.c: New file.
35012
35013 2009-06-17  Eric Blake  <ebb9@byu.net>
35014
35015         strstr-simple: document new module
35016         * MODULES.html.sh: Document new module.
35017
35018         strstr, strcasestr: replace on platforms with broken memchr
35019         * modules/strstr: Split into...
35020         * modules/strstr-simple: ...new module that does not care about
35021         performance, but does care about glibc bug.
35022         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
35023         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
35024         if platform memchr is broken, per Debian bug 521737.
35025         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
35026         memchr.
35027         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
35028         * doc/posix-functions/strstr.texi (strstr): Document the fix.
35029         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
35030         * modules/mountlist (Depends-on): Add strstr-simple.
35031         * modules/gen-uni-tables (Depends-on): Likewise.
35032         * modules/argz (Depends-on): Add strstr.
35033
35034 2009-06-17  Bruno Haible  <bruno@clisp.org>
35035
35036         * modules/posix_spawn-internal (Depends-on): Add errno.
35037
35038 2009-06-17  Bruno Haible  <bruno@clisp.org>
35039
35040         Define missing ESTALE on Interix 3.5.
35041         * lib/errno.in.h (ESTALE): Assign a value if missing.
35042         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
35043         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
35044         missing.
35045         * doc/posix-headers/errno.texi: Mention the Interix bug.
35046         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
35047
35048 2009-06-15  Eric Blake  <ebb9@byu.net>
35049
35050         memchr, memchr2: add valgrind exception
35051         * lib/memchr.valgrind: New file.
35052         * lib/memchr2.valgrind: New file.
35053         * modules/memchr (Files): Distribute valgrind file.
35054         * modules/memchr2 (Files): Likewise.
35055
35056         docs: memchr is no longer obsolete
35057         * MODULES.html.sh: Move memchr from obsolete to string.h section.
35058         * lib/string.in.h (memchr): Simplify logic.
35059
35060 2009-06-14  Jim Meyering  <meyering@redhat.com>
35061
35062         link-follow: fix the "checking..." message to not mention trailing slash
35063         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
35064         never considered trailing slashes.
35065
35066 2009-06-14  Bruno Haible  <bruno@clisp.org>
35067
35068         * m4/memchr.m4: Mention also the bug on IA-64.
35069         * doc/posix-functions/memchr.texi: Likewise.
35070
35071 2009-06-12  Eric Blake  <ebb9@byu.net>
35072
35073         memchr: detect broken x86_64 and alpha implementations
35074         * modules/memchr-tests (Depends-on): Move mmap detection...
35075         * modules/memchr (Depends-on): ...here.
35076         (configure.ac): Set indicator.
35077         * lib/string.in.h (memchr): Declare replacement.
35078         * modules/string (Makefile.am): Trigger replacement.
35079         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35080         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
35081         bugs.
35082         * doc/posix-functions/memchr.texi (memchr): Document the bug.
35083         * modules/getpagesize (License): Relax license.
35084
35085 2009-06-11  Bruno Haible  <bruno@clisp.org>
35086
35087         * lib/idpriv.h: Add more references.
35088
35089 2009-06-08  Bruno Haible  <bruno@clisp.org>
35090
35091         Tests for module 'idpriv-droptemp'.
35092         * modules/idpriv-droptemp-tests: New file.
35093         * tests/test-idpriv-droptemp.sh: New file.
35094         * tests/test-idpriv-droptemp.su.sh: New file.
35095         * tests/test-idpriv-droptemp.c: New file.
35096
35097         New module 'idpriv-droptemp'.
35098         * lib/idpriv-droptemp.c: New file.
35099         * modules/idpriv-droptemp: New file.
35100
35101 2009-06-08  Bruno Haible  <bruno@clisp.org>
35102
35103         Tests for module 'idpriv-drop'.
35104         * modules/idpriv-drop-tests: New file.
35105         * tests/test-idpriv-drop.sh: New file.
35106         * tests/test-idpriv-drop.su.sh: New file.
35107         * tests/test-idpriv-drop.c: New file.
35108
35109         New module 'idpriv-drop'.
35110         * lib/idpriv.h: New file.
35111         * lib-idpriv-drop.c: New file.
35112         * m4/idpriv.m4: New file.
35113         * modules/idpriv-drop: New file.
35114
35115 2009-06-08  Bruno Haible  <bruno@clisp.org>
35116
35117         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
35118         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35119         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35120         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35121         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35122         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35123         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35124
35125 2009-06-08  Eric Blake  <ebb9@byu.net>
35126
35127         test-strstr: use memory fence, when possible
35128         * tests/test-strstr.c (main): Use memory fence, in order to be
35129         more likely to trigger Debian bug 521737.
35130         * modules/strstr-tests (Files): Pull in additional files.
35131
35132         memchr: no longer obsolete, for wider field testing
35133         * modules/memchr (Status, Notice): Delete, this module is no
35134         longer obsolete.
35135         * modules/vasnprintf (Depends-on): Add memchr.
35136
35137 2009-06-07  Jim Meyering  <meyering@redhat.com>
35138
35139         hash: declare some functions with the warn_unused_result attribute
35140         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
35141
35142 2009-06-07  Bruno Haible  <bruno@clisp.org>
35143
35144         * tests/test-alignof.c: Don't test int64_t if it does not exist.
35145         Reported by Eric Blake.
35146
35147 2009-06-06  Eric Blake  <ebb9@byu.net>
35148
35149         test-alignof: fix typo with long double
35150         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
35151         compiler error.
35152
35153 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
35154
35155         Escape non-texinfo { and }s.
35156         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
35157         markup error.
35158
35159 2009-06-04  Jim Meyering  <meyering@redhat.com>
35160
35161         gitlog-to-changelog: don't infloop on an empty commit log
35162         * build-aux/gitlog-to-changelog: Warn about an empty log message.
35163         Reported by Boris Petersen <transacid@centerim.org>.
35164
35165 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
35166
35167         version-etc: extend for packagers
35168         Add three new configure options, intended for packagers:
35169           --with-packager="packager name"
35170           --with-packager-version="packager-specific version"
35171           --with-packager-bug-reports="packager bug reporting"
35172         An example with coreutils:
35173           $ ./configure \
35174             --with-packager=Gentoo \
35175             --with-packager-bug-report=http://bugs.gentoo.org/ \
35176             --with-packager-version="patchset 1.6"
35177           $ ./src/ls --version | head -n2
35178           ls (GNU coreutils) 7.1-dirty
35179           Packaged by Gentoo (patchset 1.6)
35180         Note that the bug reporting info via --help doesn't show up because
35181         coreutils uses its own custom emit_bug_reporting_address() implementation
35182         in src/system.h.  If it didn't, it'd look like:
35183           $ ./src/ls --help | tail -n4
35184           Report bugs to <bug-coreutils@gnu.org>.
35185           Report Gentoo bugs to <http://bugs.gentoo.org/>.
35186           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
35187           General help using GNU software: <http://www.gnu.org/gethelp/>.
35188         * lib/version-etc.c: Print new information, if provided.
35189         * m4/version-etc.m4: New file.
35190         * modules/version-etc (Files): Add m4/version-etc.m4.
35191         (configure.ac): Add gl_VERSION_ETC.
35192
35193 2009-05-31  Bruno Haible  <bruno@clisp.org>
35194
35195         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
35196         and 'int64_t'.
35197         * modules/alignof-tests (Dependencies): Add stdint.
35198         Reported by Eric Blake.
35199
35200 2009-05-31  Bruno Haible  <bruno@clisp.org>
35201
35202         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
35203         restriction due to compiler bugs.
35204         Reported by Eric Blake.
35205
35206 2009-05-31  Simon Josefsson  <simon@josefsson.org>
35207             Bruno Haible  <bruno@clisp.org>
35208
35209         Fix test-alignof failure.
35210         * lib/alignof.h (alignof_slot): New macro.
35211         (alignof_type): New macro, with the same semantics as the previous
35212         'alignof'.
35213         (alignof): Alias to alignof_slot.
35214         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
35215         check that the results are usable as constant expressions.
35216
35217 2009-05-31  Bruno Haible  <bruno@clisp.org>
35218
35219         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
35220         * tests/test-memchr.c (main): Check that memchr does not read past the
35221         first occurrence of the byte.
35222         * tests/test-strstr.c (main): Update comment.
35223         Suggested by Eric Blake.
35224
35225 2009-05-30  Bruno Haible  <bruno@clisp.org>
35226
35227         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
35228         detail how to use dumpbin.
35229         Reported by David Byron <dbyron@dbyron.com>.
35230
35231 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35232
35233         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
35234
35235 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35236
35237         * m4/manywarnings.m4: Add GCC 4.4 warnings.
35238
35239 2009-05-28  Bruno Haible  <bruno@clisp.org>
35240
35241         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
35242         build-aux/ files.
35243
35244 2009-05-28  Simon Josefsson  <simon@josefsson.org>
35245
35246         * gnulib-tool (func_import): Transform license on build-aux/ files too.
35247
35248 2009-05-27  Simon Josefsson  <simon@josefsson.org>
35249
35250         * gnulib-tool (sed_transform_main_lib_file)
35251         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
35252         regexps.
35253
35254 2009-05-26  Simon Josefsson  <simon@josefsson.org>
35255
35256         * tests/test-strstr.c: Add another self-test.
35257         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
35258         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
35259
35260 2009-05-23  Bruno Haible  <bruno@clisp.org>
35261
35262         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
35263         change.
35264
35265 2009-05-21  Bruno Haible  <bruno@clisp.org>
35266
35267         Simplify use of mode_t varargs.
35268         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
35269         uses 'mode_t' or 'int'.
35270         * lib/openat.c (openat): Likewise.
35271         * lib/open-safer.c (open_safer): Likewise.
35272         * m4/mode_t.m4: New file.
35273         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
35274         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
35275         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
35276         * modules/open (Files): Add m4/mode_t.m4.
35277         * modules/openat (Files): Likewise.
35278         * modules/fcntl-safer (Files): Likewise.
35279         Suggested by Eric Blake.
35280
35281 2009-05-21  Pádraig Brady  <P@draigbrady.com>
35282
35283         * doc/glibc-functions/fallocate.texi: New file.
35284         * doc/gnulib.texi: Include it.
35285
35286 2009-05-21  Eric Blake  <ebb9@byu.net>
35287             Bruno Haible  <bruno@clisp.org>
35288
35289         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
35290         invocations.
35291         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35292
35293 2009-05-21  Eric Blake  <ebb9@byu.net>
35294             Bruno Haible  <bruno@clisp.org>
35295
35296         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
35297         include_next. Fix of 2008-11-20 commit.
35298         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
35299         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
35300         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
35301         NEXT_MATH_H.
35302         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
35303         instead of NEXT_MATH_H.
35304
35305 2009-05-21  Bruno Haible  <bruno@clisp.org>
35306
35307         Avoid redefinition warnings for SIZE_MAX.
35308         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
35309         Reported by Simon Josefsson.
35310
35311 2009-05-21  Bruno Haible  <bruno@clisp.org>
35312
35313         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
35314         AC_CACHE_VAL.
35315
35316 2009-05-20  Bruno Haible  <bruno@clisp.org>
35317
35318         Make zeroptr.h work on mingw.
35319         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
35320         mprotect.
35321         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
35322         * modules/memchr2-tests (configure.ac): Likewise.
35323         * modules/memcmp-tests (configure.ac): Likewise.
35324         * modules/memmem-tests (configure.ac): Likewise.
35325         * modules/memrchr-tests (configure.ac): Likewise.
35326         Reported by Simon Josefsson.
35327
35328 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35329
35330         * tests/test-glob.c: Include string.h for strcmp prototype.
35331
35332 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35333
35334         * modules/getdelim (Depends-on): Add explicit stdint, although it
35335         was implicitly already pulled in via realloc-posix.
35336         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
35337
35338 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35339
35340         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
35341         G. Christensen" <tgc@jupiterrise.com>.
35342         * m4/sys_socket_h.m4: Check for sa_family_t.
35343         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
35344         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
35345         * tests/test-sys_socket.c: Check that sa_family_t works.
35346
35347 2009-05-18  Eric Blake  <ebb9@byu.net>
35348
35349         maint.mk: allow gnulib_dir in VPATH build
35350         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
35351
35352 2009-05-15  Jim Meyering  <meyering@redhat.com>
35353
35354         maint.mk: Give gnulib_dir a default definition.
35355         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
35356         Thus, most packages no longer need to specify this variable in cfg.mk
35357
35358 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
35359
35360         rename.m4: fix typos that would make non-mingw cross-configure fail
35361         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
35362
35363 2009-05-13  Eric Blake  <ebb9@byu.net>
35364
35365         mmap-anon: avoid out-of-order autoconf expansion
35366         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
35367         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
35368         * modules/memchr-tests (Depends-on): Add extensions.
35369         * modules/memchr2-tests (Depends-on): Add extensions.
35370         * modules/memcmp-tests (Depends-on): Add extensions.
35371         * modules/memmem-tests (Depends-on): Add extensions.
35372         * modules/memrchr-tests (Depends-on): Add extensions.
35373
35374 2009-05-13  Bruno Haible  <bruno@clisp.org>
35375
35376         Make some tests ISO C 99 compliant.
35377         * tests/zerosize-ptr.h: New file.
35378         * tests/test-memchr.c: Include zerosize-ptr.h.
35379         (main): Use a zero-size object pointer instead of NULL.
35380         * tests/test-memchr2.c: Include zerosize-ptr.h.
35381         (main): Use a zero-size object pointer instead of NULL.
35382         * tests/test-memcmp.c: Include zerosize-ptr.h.
35383         (main): Use a zero-size object pointer instead of NULL.
35384         * tests/test-memmem.c: Include zerosize-ptr.h.
35385         (main): Use a zero-size object pointer instead of NULL.
35386         * tests/test-memrchr.c: Include zerosize-ptr.h.
35387         (main): Use a zero-size object pointer instead of NULL.
35388         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
35389         m4/mmap-anon.m4.
35390         (Depends-on): Add getpagesize.
35391         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35392         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
35393         m4/mmap-anon.m4.
35394         (Depends-on): Add getpagesize.
35395         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35396         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
35397         m4/mmap-anon.m4.
35398         (Depends-on): Add getpagesize.
35399         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35400         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
35401         m4/mmap-anon.m4.
35402         (Depends-on): Add getpagesize.
35403         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35404         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
35405         m4/mmap-anon.m4.
35406         (Depends-on): Add getpagesize.
35407         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35408
35409 2009-05-12  Bruno Haible  <bruno@clisp.org>
35410
35411         Tests for module 'alignof'.
35412         * modules/alignof-tests: New file.
35413         * tests/test-alignof.c: New file.
35414
35415 2009-05-12  Bruno Haible  <bruno@clisp.org>
35416
35417         Fix alignof macro.
35418         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
35419         vendor compilers that are always correct.
35420
35421 2009-05-12  Bruno Haible  <bruno@clisp.org>
35422
35423         Make the MAP_ANONYMOUS detection work on HP-UX 11.
35424         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
35425         not whether its fully works.
35426
35427 2009-05-12  Bruno Haible  <bruno@clisp.org>
35428
35429         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
35430
35431 2009-05-12  Jim Meyering  <meyering@redhat.com>
35432
35433         * top/maint.mk: Adjust backslash alignment.
35434
35435 2009-05-11  Simon Josefsson  <simon@josefsson.org>
35436
35437         * top/maint.mk: Make $(srcdir)/build-aux configurable.
35438
35439 2009-05-11  Eric Blake  <ebb9@byu.net>
35440
35441         argp: avoid undefined behavior
35442         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
35443         macros.
35444
35445 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35446
35447         * tests/test-vc-list-files-git.sh: Do git config of user.email and
35448         user.name to prevent git commit from complaining.
35449
35450 2009-05-10  Bruno Haible  <bruno@clisp.org>
35451
35452         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
35453         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
35454         it rewrites every file name only once.
35455         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
35456
35457 2009-05-08  Bruno Haible  <bruno@clisp.org>
35458
35459         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
35460         instead of 'max'.
35461
35462 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35463
35464         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
35465         sockaddr_storage test.
35466
35467 2009-05-07  Simon Josefsson  <simon@josefsson.org>
35468
35469         * modules/sys_socket (Makefile.am): Substitute
35470         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
35471         * m4/sys_socket_h.m4: Check for sockaddr_storage.
35472         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
35473         * tests/test-sys_socket.c: Check sockaddr_storage.
35474
35475 2009-05-08  Bruno Haible  <bruno@clisp.org>
35476
35477         New module 'alignof'.
35478         * lib/alignof.h: New file.
35479         * modules/alignof: New file.
35480
35481 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35482             Bruno Haible  <bruno@clisp.org>
35483
35484         Fix test-file-has-acl on FreeBSD.
35485         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
35486         mask is implicitly added.
35487         * tests/test-file-has-acl.c: Include <signal.h>.
35488         (main): Terminate the test after 5 seconds.
35489         * modules/acl-tests (configure.ac): Check for alarm function.
35490
35491 2009-05-04  Bruno Haible  <bruno@clisp.org>
35492
35493         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
35494         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
35495         * modules/errno (configure.ac): Drop AC_REQUIRE.
35496         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
35497         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
35498
35499 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35500
35501         * modules/glob-tests: New module.
35502         * tests/test-glob.c: Add.
35503
35504 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35505
35506         * modules/fnmatch-tests: New module.
35507         * tests/test-fnmatch.c: Add.
35508
35509 2009-05-04  Eric Blake  <ebb9@byu.net>
35510
35511         maint: make the new no-submodule-changes rule VPATH-safe
35512         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
35513
35514 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35515             Bruno Haible  <bruno@clisp.org>
35516
35517         acl: Fix infinite loop on FreeBSD.
35518         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
35519         of return value from acl_get_entry.
35520         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
35521         Likewise.
35522
35523 2009-05-03  Bruno Haible  <bruno@clisp.org>
35524
35525         * lib/acl-internal.h (acl_entries): Clarify return value.
35526         * lib/acl_entries.c (acl_entries): Likewise.
35527
35528 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35529
35530         Bug fix in acl module.
35531         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
35532
35533 2009-05-03  Bruno Haible  <bruno@clisp.org>
35534
35535         Create gperf-generated file in the source dir, not in the build dir.
35536         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
35537         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
35538         * modules/unicase/locale-language (unicase/locale-languages.h):
35539         Likewise.
35540         * modules/unicase/special-casing (unicase/special-casing-table.h):
35541         Likewise.
35542         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
35543         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
35544         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
35545         Reported by Ralf Wildenhues.
35546
35547 2009-05-03  Bruno Haible  <bruno@clisp.org>
35548
35549         * modules/fnmatch (Description, configure.ac): Taken from
35550         fnmatch-posix.
35551         * modules/fnmatch-posix: Turn into a symbolic reference to the
35552         'fnmatch' module, and deprecate.
35553         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
35554
35555 2009-05-03  Bruno Haible  <bruno@clisp.org>
35556
35557         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
35558         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
35559         Reported by Ralf Wildenhues.
35560
35561 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35562
35563         * m4/fnmatch.m4: Fix fnmatch re-define.
35564
35565 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35566
35567         priv-set: new module and tests; adapt write-any-file
35568         * lib/priv-set.c: New file.
35569         * lib/priv-set.h: New file.
35570         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
35571         * lib/write-any-file.c: Simplify by using priv-set module.
35572         * m4/priv-set.m4: New file.
35573         * modules/priv-set: New file.
35574         * modules/unlinkdir: Add dependency on priv-set module.
35575         * modules/write-any-file: Likewise.
35576
35577         Tests for module 'priv-set'.
35578         * modules/priv-set-tests: New file.
35579         * tests/test-priv-set.c: New file.
35580
35581 2009-05-03  Jim Meyering  <meyering@redhat.com>
35582             Bruno Haible  <bruno@clisp.org>
35583
35584         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
35585         use the converted UTF-8 variant of the name instead.
35586
35587 2009-05-03  Jim Meyering  <meyering@redhat.com>
35588
35589         tests: tighten some getdate tests
35590         * tests/test-getdate.c (main): Tighten tests: require equality,
35591         not just greater than.  Set TZ envvar to UTC0.
35592
35593 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
35594
35595         getdate: correctly interpret "next monday" when run on a Monday
35596         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
35597         that e.g., "next tues" (when run on a tuesday) results in a date
35598         that is one week in the future, and not today's date.
35599         I.e., add a week when the wday is the same as the current one.
35600         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
35601         and earlier by Martin Bernreuther and Jan Minář.
35602         * tests/test-getdate.c (main): Check that "next DAY" is always in
35603         the future and that "last DAY" is always in the past.
35604
35605 2009-05-02  Jim Meyering  <meyering@redhat.com>
35606
35607         build: ensure that a release build fails when a submodule is unclean
35608         * top/maint.mk (no-submodule-changes): New rule.
35609         (alpha beta major): Depend on it.
35610
35611 2009-05-02  Bruno Haible  <bruno@clisp.org>
35612
35613         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
35614         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
35615         shell variable gl_fnmatch_required to detect which variant is
35616         requested.
35617         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
35618         gl_FUNC_FNMATCH_POSIX.
35619         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
35620         exclude fnmatch-posix.
35621
35622 2009-05-02  Bruno Haible  <bruno@clisp.org>
35623
35624         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
35625         * modules/mbsrtowcs (License): Change to LGPLv2+.
35626         * modules/strnlen1 (License): Likewise.
35627         Reported by Simon Josefsson.
35628
35629 2009-05-02  Bruno Haible  <bruno@clisp.org>
35630
35631         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
35632         "cross".
35633         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
35634         gnulib-tool was called with option --source-base=lib.
35635
35636 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35637
35638         Use automake *-local hooks without commands, for extensibility.
35639         * modules/localcharset (Makefile.am): Rename install-exec-local
35640         rule to install-exec-localcharset, and make it a prerequisite of
35641         install-exec-local.  Likewise, rename the uninstall-local rule to
35642         uninstall-localcharset, and make it a prerequisite of the former.
35643
35644 2009-05-01  Bruno Haible  <bruno@clisp.org>
35645
35646         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
35647         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35648         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
35649         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
35650         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
35651         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35652         m4/locale-zh.m4, m4/codeset.m4.
35653
35654         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35655         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
35656         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35657         m4/locale-zh.m4.
35658
35659         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
35660         REPLACE_WCRTOMB if mbstate_t must be replaced.
35661         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
35662         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
35663
35664 2009-05-01  Bruno Haible  <bruno@clisp.org>
35665
35666         Avoid compiler warnings when redefining macros defined by <libintl.h>.
35667         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
35668         dngettext, dcngettext, textdomain, bindtextdomain,
35669         bind_textdomain_codeset): Undefine before redefining.
35670
35671 2009-04-30  Bruno Haible  <bruno@clisp.org>
35672
35673         Fix bug introduced on 2009-04-25.
35674         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
35675         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
35676         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
35677         is defined.
35678         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
35679         is defined.
35680         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
35681         is defined.
35682         Reported by Elbert_Pol <elbert.pol@gmail.com>.
35683
35684 2009-04-28  Bruno Haible  <bruno@clisp.org>
35685
35686         Comment tweaks.
35687         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
35688         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
35689         * lib/unicase.h (u*_casexfrm): Likewise.
35690         Reported by Paolo Bonzini.
35691
35692 2009-04-28  Bruno Haible  <bruno@clisp.org>
35693
35694         Fix a compilation error.
35695         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
35696         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35697         Reported by Jim Meyering.
35698
35699 2009-04-27  Bruno Haible  <bruno@clisp.org>
35700
35701         New module 'libunistring'.
35702         * modules/libunistring: New file.
35703         * m4/libunistring.m4: New file.
35704         * MODULES.html.sh (Unicode string functions): Add it.
35705
35706 2009-04-27  Eric Blake  <ebb9@byu.net>
35707
35708         maint.mk: allow package-specific header to provide <config.h>
35709         * top/maint.mk (sc_require_config_h): New variable.
35710         (sc_require_config_h, sc_require_config_h_first): Use it.
35711
35712 2009-04-27  Simon Josefsson  <simon@josefsson.org>
35713
35714         * top/maint.mk (sc_avoid_if_before_free): Except
35715         useless-if-before-free script.
35716
35717 2009-04-27  Eric Blake  <ebb9@byu.net>
35718
35719         maintainer-makefile: depend on all required helper scripts
35720         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
35721         useless-if-before-free.
35722         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
35723         version, rather than assuming gnulib checkout is available.
35724         Reported by Simen Josefsson.
35725
35726 2009-04-26  Bruno Haible  <bruno@clisp.org>
35727
35728         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
35729         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
35730         "../" or "..".
35731
35732 2009-04-26  Bruno Haible  <bruno@clisp.org>
35733
35734         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
35735         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
35736         AC_LIB_HAVE_LINKFLAGS.
35737
35738 2009-04-26  Bruno Haible  <bruno@clisp.org>
35739
35740         Simplify calling convention of u*_conv_from_encoding.
35741         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
35742         u32_conv_from_encoding): Expect a resultbuf argument and return the
35743         result directly as a pointer.
35744         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
35745         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
35746         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
35747         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
35748         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
35749         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35750         Update.
35751         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
35752         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
35753         * lib/vasnprintf.c (VASNPRINTF): Update.
35754         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
35755         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
35756         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
35757         * NEWS: Mention the change.
35758
35759 2009-04-26  Bruno Haible  <bruno@clisp.org>
35760
35761         Simplify calling convention of u*_conv_to_encoding.
35762         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
35763         u32_conv_to_encoding): Expect a resultbuf argument and return the
35764         result directly as a pointer.
35765         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35766         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
35767         freeing scaled_offsets if mem_iconveha failed.
35768         * lib/unicase/u-casexfrm.h (FUNC): Update.
35769         * lib/uninorm/u-normxfrm.h (FUNC): Update.
35770         * lib/vasnprintf.c (VASNPRINTF): Update.
35771         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
35772         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
35773         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
35774         * NEWS: Mention the change.
35775
35776 2009-04-26  Bruno Haible  <bruno@clisp.org>
35777
35778         Avoid test failures on AIX and OSF/1.
35779         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
35780         malloc(0).
35781         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35782         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35783         Likewise.
35784         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
35785         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
35786         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
35787         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
35788         * doc/posix-functions/malloc.texi: Document the portability problem
35789         related to malloc(0).
35790
35791 2009-04-26  Bruno Haible  <bruno@clisp.org>
35792
35793         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
35794         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
35795         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
35796
35797 2009-04-25  Bruno Haible  <bruno@clisp.org>
35798
35799         Avoid link error when creating a namespace clean library.
35800         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
35801         as macro with arguments if already defined as an alias.
35802         * lib/signbitf.c (gl_signbitf): Don't undefine.
35803         * lib/signbitd.c (gl_signbitd): Don't undefine.
35804         * lib/signbitl.c (gl_signbitl): Don't undefine.
35805
35806 2009-04-25  Jim Meyering  <meyering@redhat.com>
35807
35808         vc-list-files: fix another quoting bug
35809         * build-aux/vc-list-files: Avoid sed backslash expansion
35810         of pathological directory names.
35811
35812 2009-04-25  Eric Blake  <ebb9@byu.net>
35813
35814         vc-list-files: fix shell quoting error
35815         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
35816         timestamp.
35817
35818 2009-04-25  Jim Meyering  <meyering@redhat.com>
35819
35820         vc-list-files: restore lost functionality with subdir argument
35821         * build-aux/vc-list-files: When given a non-"." sub-directory
35822         argument, substitute the $dir/ prefix back onto each resulting name.
35823         Otherwise, coreutils' root_tests check would fail.
35824
35825 2009-04-24  Eric Blake  <ebb9@byu.net>
35826
35827         vc-list-files: ignore git symlinks
35828         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
35829         than ls-files, to ignore git symlinks.
35830
35831         maint.mk: import improvements from m4
35832         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
35833         (move_if_change): Delete unused macro.
35834         (news-date-check, vc-diff-check): Support VPATH builds.
35835         (announcement): Likewise.  Split --bootstrap-tools list...
35836         (boostrap-tools): ...into separate list, which can be overridden
35837         in cfg.mk.
35838         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
35839         requiring dependency on useless-if-before-free module.
35840         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
35841         Support VPATH builds.
35842
35843 2009-04-24  Jim Meyering  <meyering@redhat.com>
35844
35845         maint.mk: remove coreutils-specific rules and variables
35846         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
35847         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
35848         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
35849
35850         maint.mk: remove obsolete rule
35851         * top/maint.mk (rel-check): Remove rule.
35852         (WGET, WGETFLAGS): Remove now-unused variables.
35853
35854 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35855
35856         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
35857         consistency.
35858
35859         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
35860         '$(PATH_SEPARATOR)' instead of ':'.
35861
35862 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35863
35864         * lib/getopt1.c (main): Use 'const' for static array.
35865
35866 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35867
35868         * top/maint.mk: Sync with coreutils.
35869         * NEWS: Explain incompatibilities.
35870
35871 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35872             Bruno Haible  <bruno@clisp.org>
35873
35874         Fix cross-compilation results.
35875         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
35876         statement, as third argument of AC_TRY_RUN.
35877         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
35878         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
35879         Likewise.
35880         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
35881         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
35882         Likewise.
35883         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
35884         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
35885         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
35886
35887 2009-04-20  Bruno Haible  <bruno@clisp.org>
35888
35889         Avoid test failure on mingw.
35890         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
35891
35892 2009-04-20  Bruno Haible  <bruno@clisp.org>
35893
35894         Avoid compilation error on mingw.
35895         * modules/localename-tests (Depends-on): Add locale.
35896
35897 2009-04-19  Bruno Haible  <bruno@clisp.org>
35898
35899         Support for building a shared library on Windows platforms.
35900         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35901         (main): Test the presence of UNINORM_NFC here.
35902         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35903         (main): Test the presence of UNINORM_NFD here.
35904         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35905         (main): Test the presence of UNINORM_NFKC here.
35906         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35907         (main): Test the presence of UNINORM_NFKD here.
35908
35909 2009-04-19  Bruno Haible  <bruno@clisp.org>
35910
35911         Avoid a compiler warning.
35912         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35913         Change type of variable 'sequence'.
35914
35915 2009-04-19  Bruno Haible  <bruno@clisp.org>
35916
35917         * modules/configmake (Makefile.am): When the contents of configmake.h
35918         does not change, arrange to preserve its modification time.
35919
35920 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35921
35922         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35923         gettext domain.
35924
35925 2009-04-16  Jim Meyering  <meyering@redhat.com>
35926
35927         useless-if-before-free: improve conversion code
35928         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35929         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35930
35931 2009-04-14  Bruno Haible  <bruno@clisp.org>
35932
35933         * modules/fcntl (Depends-on): Add extensions.
35934         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35935
35936 2009-04-12  Ben Pfaff  <blp@gnu.org>
35937
35938         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35939         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35940
35941 2009-03-20  Ben Pfaff  <blp@gnu.org>
35942
35943         Make rename replace existing destinations on Windows.
35944         * m4/rename.m4: Add test for Mingw.
35945         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35946         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35947         * doc/posix-functions/rename.texi: Document.
35948
35949 2009-04-10  Bruno Haible  <bruno@clisp.org>
35950
35951         New include file "iconveh.h".
35952         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35953         * lib/striconveh.h: Include it.
35954         (enum iconv_ilseq_handler): Remove definition.
35955         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35956         striconveh.h.
35957         * lib/striconveha.c: Include striconveh.h.
35958         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35959         * modules/striconveh (Files): Add lib/iconveh.h.
35960         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35961         lib/striconveh.h.
35962
35963 2009-04-10  Bruno Haible  <bruno@clisp.org>
35964
35965         * lib/uniconv.h: Update comment.
35966
35967 2009-04-10  Bruno Haible  <bruno@clisp.org>
35968
35969         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35970         always.
35971         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35972         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35973         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35974         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35975         "unistring-notinline.h", so that the function gets defined always.
35976         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35977         * lib/unistr/u8-uctomb.c: Likewise.
35978         * lib/unistr/u16-mbtouc.c: Likewise.
35979         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35980         * lib/unistr/u16-uctomb.c: Likewise.
35981         * lib/unistr/u32-mbtouc.c: Likewise.
35982         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35983         * lib/unistr/u32-uctomb.c: Likewise.
35984
35985 2009-04-10  Bruno Haible  <bruno@clisp.org>
35986
35987         Mark 'utime' obsolete.
35988         * modules/utime (Status, Notice): New sections.
35989         Suggested by Jim Meyering.
35990
35991         Fix cross-compile guess for utime test.
35992         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35993         autoconf.
35994         * doc/posix-functions/utime.texi: Give more precisions.
35995         Reported by Jan <ipif@ymail.com>.
35996
35997 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35998
35999         filevercmp: correct today's change
36000         * lib/filevercmp.c: Also handle coreutils' test inputs.
36001         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
36002
36003         Fix regression in 'filevercmp' module. Thanks Sven Joachim
36004         for reporting it.
36005         * lib/filevercmp.c: Special handle for "", "." and "..".
36006         * tests/test-filevercmp.c: Enlarge the set suite.
36007
36008 2009-04-07  Jim Meyering  <meyering@redhat.com>
36009
36010         useless-if-before-free: show how to remove braced useless free, too
36011         * build-aux/useless-if-before-free: still only in a comment, though.
36012
36013 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
36014
36015         maint.mk: import changes to syntax-check macros from coreutils
36016         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
36017         Use them in the relevant macros.
36018
36019 2009-04-06  Bruno Haible  <bruno@clisp.org>
36020
36021         Fix unportable use of bit-fields.
36022         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
36023         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
36024         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
36025
36026 2009-04-06  Bruno Haible  <bruno@clisp.org>
36027
36028         Avoid test failures on AIX and OSF/1.
36029         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
36030         that malloc(0) = NULL.
36031         * tests/unicase/test-u8-tolower.c (check): Likewise.
36032         * tests/unicase/test-u8-totitle.c (check): Likewise.
36033         * tests/unicase/test-u8-toupper.c (check): Likewise.
36034         * tests/unicase/test-u16-casefold.c (check): Likewise.
36035         * tests/unicase/test-u16-tolower.c (check): Likewise.
36036         * tests/unicase/test-u16-totitle.c (check): Likewise.
36037         * tests/unicase/test-u16-toupper.c (check): Likewise.
36038         * tests/unicase/test-u32-casefold.c (check): Likewise.
36039         * tests/unicase/test-u32-tolower.c (check): Likewise.
36040         * tests/unicase/test-u32-totitle.c (check): Likewise.
36041         * tests/unicase/test-u32-toupper.c (check): Likewise.
36042         * tests/uninorm/test-u8-nfc.c (check): Likewise.
36043         * tests/uninorm/test-u8-nfd.c (check): Likewise.
36044         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
36045         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
36046         * tests/uninorm/test-u16-nfc.c (check): Likewise.
36047         * tests/uninorm/test-u16-nfd.c (check): Likewise.
36048         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
36049         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
36050         * tests/uninorm/test-u32-nfc.c (check): Likewise.
36051         * tests/uninorm/test-u32-nfd.c (check): Likewise.
36052         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
36053         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
36054
36055 2009-04-05  Bruno Haible  <bruno@clisp.org>
36056
36057         Work around an autoconf limitation.
36058         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
36059         comment line if it would be longer than 3 KB.
36060
36061 2009-04-05  Bruno Haible  <bruno@clisp.org>
36062
36063         Avoid test failure with libiconv-1.13.
36064         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
36065         of the expected test results.
36066
36067 2009-04-05  Bruno Haible  <bruno@clisp.org>
36068
36069         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
36070         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
36071         that it should be installed.
36072
36073 2009-04-05  Bruno Haible  <bruno@clisp.org>
36074
36075         * gnulib-tool: New option --copy-file.
36076         (func_usage): Document it.
36077         (func_dest_tmpfilename): Moved out of func_import.
36078         (func_add_file, func_update_file): New functions, extracted from
36079         func_import.
36080         (func_import): Update.
36081
36082 2009-04-05  Karl Berry  <karl@gnu.org>
36083
36084         * README: prominently mention gnulib-tool.
36085         Rearrange sections so getting the code is near the top.
36086
36087 2009-04-05  Bruno Haible  <bruno@clisp.org>
36088
36089         * lib/unicase.h: Mention u*_cmp2.
36090         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36091         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
36092         * lib/unicase/ulc-casecmp.c: Likewise.
36093         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
36094         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
36095         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
36096         unistr/u8-cmp.
36097         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
36098         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
36099         unistr/u16-cmp.
36100         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
36101         unistr/u32-cmp.
36102
36103         * lib/uninorm.h: Mention u*_cmp2.
36104         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36105         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
36106         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
36107         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
36108         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
36109         unistr/u8-cmp.
36110         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
36111         unistr/u16-cmp.
36112         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
36113         unistr/u32-cmp.
36114
36115         New module 'unistr/u32-cmp2'.
36116         * lib/unistr/u32-cmp2.c: New file.
36117         * modules/unistr/u32-cmp2: New file.
36118
36119         New module 'unistr/u16-cmp2'.
36120         * lib/unistr/u16-cmp2.c: New file.
36121         * modules/unistr/u16-cmp2: New file.
36122
36123         New module 'unistr/u8-cmp2'.
36124         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
36125         * lib/unistr/u8-cmp2.c: New file.
36126         * lib/unistr/u-cmp2.h: New file.
36127         * modules/unistr/u8-cmp2: New file.
36128
36129 2009-04-05  Bruno Haible  <bruno@clisp.org>
36130
36131         * lib/unictype.h (uc_property_is_valid): New macro.
36132         * tests/unictype/test-pr_byname.c (main): Use it.
36133
36134         * lib/unistr.h: Doc fixes.
36135         * lib/uniconv.h: Doc fixes.
36136         * lib/unictype.h: Doc fixes.
36137
36138 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
36139
36140         Port coreutils 7.2 to Solaris 8.
36141
36142         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
36143         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
36144         for Solaris 8.  This is a bit of a hack, as it means it's the
36145         caller's responsibility to add -lnsl if needed, but most likely it
36146         won't be needed since only getaddrinfo uses this and getaddrinfo
36147         isn't needed on Solaris 8.
36148
36149         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
36150         problem to Solaris 8 encountered with coreutils 7.2, which
36151         resulted in a message "fnmatch.c:292: warning: passing argument 4
36152         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
36153         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
36154
36155 2009-04-03  Simon Josefsson  <simon@josefsson.org>
36156
36157         * m4/ld-version-script.m4: Add FIXME comment.
36158
36159 2009-04-02  Simon Josefsson  <simon@josefsson.org>
36160
36161         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
36162         SOVERSION variable.
36163
36164 2009-04-02  Bruno Haible  <bruno@clisp.org>
36165
36166         * Makefile (info, html, dvi, pdf): Combine the rules.
36167         Suggested by Jim Meyering.
36168
36169 2009-04-01  Bruno Haible  <bruno@clisp.org>
36170
36171         * Makefile (info, html, dvi, pdf): New targets.
36172         Reported by Reuben Thomas <rrt@sc3d.org>.
36173
36174 2009-04-01  Bruno Haible  <bruno@clisp.org>
36175
36176         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
36177         can be put into PATH.
36178         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
36179
36180 2009-04-01  Bruno Haible  <bruno@clisp.org>
36181
36182         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
36183
36184 2009-04-01  Bruno Haible  <bruno@clisp.org>
36185
36186         Rename module 'visibility'.
36187         * modules/lib-symbol-visibility: Renamed from modules/visibility.
36188         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
36189         * doc/gnulib.texi: Update.
36190         * MODULES.html.sh (Misc): Update.
36191         * NEWS: Mention the change.
36192
36193 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36194
36195         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
36196         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
36197         Eric Blake <ebb9@byu.net> for review.
36198         * MODULES.html.sh: Add lib-msvc-compat.
36199         * doc/gnulib.texi: Link to new section.
36200         * m4/ld-output-def.m4: New file.
36201         * doc/ld-output-def.texi: New file.
36202
36203 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36204
36205         Rename ld-version-script to lib-symbol-versions.  Suggested by
36206         Bruno Haible <bruno@clisp.org>.
36207         * modules/ld-version-script: Renamed to lib-symbol-versions.
36208         * doc/ld-version-script.texi: Fix module name.
36209         * MODULES.html.sh: Add lib-symbol-versions.
36210
36211 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36212
36213         * modules/u64-tests: New file.
36214         * tests/test-u64.c: New file.
36215
36216 2009-03-04  Simon Josefsson  <simon@josefsson.org>
36217
36218         * MODULES.html.sh: Mention u64.
36219         * modules/u64: New module.
36220         * modules/crypto/sha512: Depend on u64 module instead of providing
36221         u64.h.
36222
36223 2009-03-27  Eric Blake  <ebb9@byu.net>
36224
36225         test-strerror: make debugging EAI_SYSTEM easier
36226         * modules/getaddrinfo-tests (Depends-on): Add strerror.
36227         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
36228         failure was EAI_SYSTEM.
36229
36230 2009-03-25  Bruno Haible  <bruno@clisp.org>
36231
36232         Fix a problem with --enable-relocatable on Solaris 7.
36233         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
36234         since 2008-02-24.
36235
36236 2009-03-25  Eric Blake  <ebb9@byu.net>
36237
36238         test-sockets: avoid gcc warning
36239         * tests/test-sockets.c (main): Silence compiler warning.
36240
36241 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
36242
36243         New modules nproc, pthread, contributed by Glen Lenker.
36244
36245         * MODULES.html.sh: Add pthread, nproc.
36246         * lib/nproc.c: New file.
36247         * lib/nproc.h: New file.
36248         * lib/pthread.in.h: New file.
36249         * m4/pthread.m4: New file.
36250         * modules/nproc: New file.
36251         * modules/pthread: New file.
36252
36253 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36254
36255         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
36256         New variable.
36257
36258 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
36259
36260         filevercmp: handle simple~ and numbered.~3~ backup suffixes
36261         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
36262         * tests/test-filevercmp.c: Add tests for backup suffixes.
36263
36264 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36265
36266         * modules/stdlib (Depends-on): Add stdint, needed when defining
36267         struct random_data on, for example, HP-UX 10.20.  Reported by
36268         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36269
36270 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36271
36272         * lib/readline.c (readline): Call fflush on stdout after printing
36273         prompt.
36274
36275 2009-03-20  Bruno Haible  <bruno@clisp.org>
36276
36277         Remove dependency from 'close' module to -lws2_32 on native Windows.
36278         * lib/close-hook.h: New file.
36279         * lib/close-hook.c: New file.
36280         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
36281         w32sock.h.
36282         (_gl_close_fd_maybe_socket): Remove function.
36283         (rpl_close): Invoke execute_all_close_hooks instead of
36284         _gl_close_fd_maybe_socket.
36285         * lib/sockets.c: Include close-hook.h, w32sock.h.
36286         (close_fd_maybe_socket): New function, essentially from lib/close.c.
36287         (close_sockets_hook): New variable.
36288         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
36289         (gl_sockets_cleanup): Unregister it.
36290         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
36291         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
36292         * modules/close-hook: New file.
36293         * modules/close (Files): Remove lib/w32sock.h.
36294         (Depends-on): Add close-hook.
36295         (Link): Remove section.
36296         * modules/sockets (Files): Add lib/w32sock.h.
36297         (Depends-on): Add close-hook.
36298         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
36299         invocation.
36300         * NEWS: Mention that LIB_CLOSE is gone.
36301
36302 2009-03-23  Eric Blake  <ebb9@byu.net>
36303
36304         signal-tests: test previous patch
36305         * tests/test-signal.c: New file.
36306         * modules/signal-tests: Likewise.
36307
36308         signal.h: always support 'volatile sig_atomic_t'
36309         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
36310         (gl_SIGNAL_H_DEFAULTS): Add a default.
36311         * modules/signal (Makefile.am): Substitute if needed.
36312         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
36313         users can blindly add volatile.
36314         * doc/posix-headers/signal.texi (signal.h): Document it.
36315         Reported by Matthew Woehlke.
36316
36317 2009-03-23  Jim Meyering  <meyering@redhat.com>
36318
36319         pathmax: PATH_MAX: use pathconf only when available
36320         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
36321         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
36322         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
36323         This avoids a link failure in a PSP cross-compilation environment
36324         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
36325
36326         * lib/vasnprintf.c (divide): Fix typo in comment.
36327
36328 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36329
36330         * gnulib-tool (func_filter_filelist): Fix comment.
36331
36332 2009-03-20  Bruno Haible  <bruno@clisp.org>
36333
36334         Make sockets.h self-contained.
36335         * lib/sockets.c: Include sockets.h first.
36336         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
36337
36338 2009-03-19  Eric Blake  <ebb9@byu.net>
36339
36340         doc: mention more functions added in cygwin 1.7.0
36341         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
36342         addition.
36343         * doc/posix-functions/log2f.texi: Likewise.
36344
36345 2009-03-19  Jim Meyering  <meyering@redhat.com>
36346
36347         fsusage: avoid syntax error due to statement-before-declaration
36348         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
36349         after all declarations.  Reported by Matthew Woehlke in
36350         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
36351
36352 2009-03-18  Eric Blake  <ebb9@byu.net>
36353
36354         build-aux/compile: sync from automake
36355         * build-aux/compile: New file, from automake.
36356         * config/srclist.txt: Mention build-aux/compile.
36357
36358 2009-03-17  Bruno Haible  <bruno@clisp.org>
36359
36360         * lib/git-merge-changelog.c: Fix typo in comment.
36361         Reported by Reuben Thomas <rrt@sc3d.org>.
36362
36363 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
36364
36365         * m4/regex.m4: update and improve help for
36366         --without-included-regex.
36367
36368 2009-03-17  Simon Josefsson  <simon@josefsson.org>
36369
36370         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
36371         failure on missing include files.
36372
36373 2009-03-17  Eric Blake  <ebb9@byu.net>
36374
36375         doc: mention more functions added in cygwin 1.7.0
36376         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
36377         addition.
36378         * doc/posix-functions/fwscanf.texi: Likewise.
36379         * doc/posix-functions/swprintf.texi: Likewise.
36380         * doc/posix-functions/swscanf.texi: Likewise.
36381         * doc/posix-functions/vfwprintf.texi: Likewise.
36382         * doc/posix-functions/vfwscanf.texi: Likewise.
36383         * doc/posix-functions/vswprintf.texi: Likewise.
36384         * doc/posix-functions/vswscanf.texi: Likewise.
36385         * doc/posix-functions/vwprintf.texi: Likewise.
36386         * doc/posix-functions/vwscanf.texi: Likewise.
36387         * doc/posix-functions/wcscasecmp.texi: Likewise.
36388         * doc/posix-functions/wcsdup.texi: Likewise.
36389         * doc/posix-functions/wcsftime.texi: Likewise.
36390         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36391         * doc/posix-functions/wprintf.texi: Likewise.
36392         * doc/posix-functions/wscanf.texi: Likewise.
36393         * doc/glibc-functions/gethostbyname2.texi: Likewise.
36394
36395 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36396
36397         maint.mk: really add $(AM_MAKEFLAGS)
36398         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
36399         was inadvertently omitted in the last commit.
36400         Spotted by Bruno Haible.
36401
36402         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
36403         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
36404         $(AM_MAKEFLAGS)' rather than plain `make'.
36405
36406         gnulib-tool: execute $MAKE not make
36407         * gnulib-tool: Default $MAKE to 'make'.
36408         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
36409         than make.  Initialize $MAKE in the do-autobuild script.
36410
36411         gnulib-tool: use $MAKE not make in generated files
36412         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
36413         make, in generated files.  Initialize $MAKE in the do-autobuild
36414         script.
36415
36416         * top/GNUmakefile (_have-git-version-gen): Fix typo.
36417
36418         GNUmakefile: disable parallelism only for multiple, recursive targets
36419         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
36420         additions in the Makefile.
36421         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
36422         by Automake.
36423         (.NOTPARALLEL): Only disable parallel builds if multiple targets
36424         are listed on the command line and at least one of them is
36425         listed in $(ALL_RECURSIVE_TARGETS).
36426
36427 2009-03-14  Bruno Haible  <bruno@clisp.org>
36428
36429         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
36430         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
36431         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
36432         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
36433         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
36434         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
36435         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
36436         unistr/u8-uctomb.
36437         * modules/unistr/u8-strchr (Depends-on): Likewise.
36438         * modules/unistr/u8-strrchr (Depends-on): Likewise.
36439         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
36440         unistr/u16-uctomb.
36441         * modules/unistr/u16-strchr (Depends-on): Likewise.
36442         * modules/unistr/u16-strrchr (Depends-on): Likewise.
36443
36444 2009-03-12  Bruno Haible  <bruno@clisp.org>
36445
36446         Work around select() bug on Interix 3.5.
36447         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
36448         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
36449         * m4/select.m4: New file.
36450         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
36451         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
36452         * modules/select (Files): Add m4/select.m4.
36453         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
36454         * modules/nanosleep (Depends-on): Add select.
36455         * modules/poll (Depends-on): Likewise.
36456         * doc/posix-functions/select.texi: Mention the Interix bug.
36457         Reported by Markus Duft <mduft@gentoo.org>.
36458
36459         * lib/select.c: Renamed from lib/winsock-select.c.
36460         * modules/select (Files): Add lib/select.c, remove
36461         lib/winsock-select.c.
36462         (configure.ac): Update.
36463
36464 2009-03-12  Jim Meyering  <meyering@redhat.com>
36465
36466         avoid gcc warnings about unused macro definitions
36467         * lib/readtokens.c (STREQ): Remove unused definition.
36468         * lib/xmalloc.c (SIZE_MAX): Likewise.
36469         * lib/openat-die.c (N_): Likewise.
36470         * lib/mountlist.c (SIZE_MAX): Remove definition.
36471         Instead, include <stdint.h>.
36472         * lib/readutmp.c: Likewise.
36473         * modules/readutmp (Depends-on): Add stdint.
36474         * modules/mountlist (Depends-on): Add stdint.
36475         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
36476
36477 2009-03-10  Bruno Haible  <bruno@clisp.org>
36478
36479         Tests for module 'mbmemcasecoll'.
36480         * modules/mbmemcasecoll-tests: New file.
36481         * tests/test-mbmemcasecoll1.sh: New file.
36482         * tests/test-mbmemcasecoll2.sh: New file.
36483         * tests/test-mbmemcasecoll3.sh: New file.
36484         * tests/test-mbmemcasecoll.c: New file.
36485
36486         New module 'mbmemcasecoll'.
36487         * lib/mbmemcasecoll.h: New file.
36488         * lib/mbmemcasecoll.c: New file.
36489         * modules/mbmemcasecoll: New file.
36490
36491         * tests/test-mbmemcasecmp.h: New file, extracted from
36492         tests/test-mbmemcasecmp.c.
36493         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
36494         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
36495         (main): Update.
36496         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
36497
36498 2009-03-09  Bruno Haible  <bruno@clisp.org>
36499
36500         Tests for module 'mbmemcasecmp'.
36501         * modules/mbmemcasecmp-tests: New file.
36502         * tests/test-mbmemcasecmp1.sh: New file.
36503         * tests/test-mbmemcasecmp2.sh: New file.
36504         * tests/test-mbmemcasecmp3.sh: New file.
36505         * tests/test-mbmemcasecmp.c: New file.
36506
36507         New module 'mbmemcasecmp'.
36508         * lib/mbmemcasecmp.h: New file.
36509         * lib/mbmemcasecmp.c: New file.
36510         * modules/mbmemcasecmp: New file.
36511
36512 2009-03-09  Bruno Haible  <bruno@clisp.org>
36513
36514         Tests for module 'unicase/ulc-casecoll'.
36515         * modules/unicase/ulc-casecoll-tests: New file.
36516         * tests/unicase/test-ulc-casecoll1.sh: New file.
36517         * tests/unicase/test-ulc-casecoll2.sh: New file.
36518         * tests/unicase/test-ulc-casecoll.c: New file.
36519
36520         New module 'unicase/ulc-casecoll'.
36521         * lib/unicase.h (ulc_casecoll): New declaration.
36522         * lib/unicase/ulc-casecoll.c: New file.
36523         * modules/unicase/ulc-casecoll: New file.
36524
36525         New module 'unicase/ulc-casexfrm'.
36526         * lib/unicase.h (ulc_casexfrm): New declaration.
36527         * lib/unicase/ulc-casexfrm.c: New file.
36528         * modules/unicase/ulc-casexfrm: New file.
36529
36530 2009-03-09  Bruno Haible  <bruno@clisp.org>
36531
36532         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
36533         invocations.
36534
36535         * m4/mbscasecmp.m4: Remove file.
36536         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
36537         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
36538
36539         * m4/mbscasestr.m4: Remove file.
36540         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
36541         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
36542
36543         * m4/mbschr.m4: Remove file.
36544         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
36545         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
36546
36547         * m4/mbscspn.m4: Remove file.
36548         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
36549         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
36550
36551         * m4/mbslen.m4: Remove file.
36552         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
36553         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
36554
36555         * m4/mbsncasecmp.m4: Remove file.
36556         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
36557         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
36558
36559         * m4/mbsnlen.m4: Remove file.
36560         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
36561         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
36562
36563         * m4/mbspbrk.m4: Remove file.
36564         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
36565         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
36566
36567         * m4/mbspcasecmp.m4: Remove file.
36568         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
36569         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
36570
36571         * m4/mbsrchr.m4: Remove file.
36572         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
36573         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
36574
36575         * m4/mbssep.m4: Remove file.
36576         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
36577         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
36578
36579         * m4/mbsspn.m4: Remove file.
36580         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
36581         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
36582
36583         * m4/mbsstr.m4: Remove file.
36584         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
36585         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
36586
36587         * m4/mbstok_r.m4: Remove file.
36588         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
36589         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
36590
36591         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
36592
36593         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
36594         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
36595
36596         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
36597
36598 2009-03-08  Bruno Haible  <bruno@clisp.org>
36599
36600         Tests for module 'unicase/ulc-casecmp'.
36601         * modules/unicase/ulc-casecmp-tests: New file.
36602         * tests/unicase/test-ulc-casecmp1.sh: New file.
36603         * tests/unicase/test-ulc-casecmp2.sh: New file.
36604         * tests/unicase/test-ulc-casecmp.c: New file.
36605
36606         New module 'unicase/ulc-casecmp'.
36607         * lib/unicase.h (ulc_casecmp): New declaration.
36608         * lib/unicase/ulc-casecmp.c: New file.
36609         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
36610         'const SRC_UNIT *'.
36611         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
36612         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
36613         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
36614         * modules/unicase/ulc-casecmp: New file.
36615
36616         Tests for module 'unicase/u32-is-cased'.
36617         * modules/unicase/u32-is-cased-tests: New file.
36618         * tests/unicase/test-u32-is-cased.c: New file.
36619
36620         Tests for module 'unicase/u16-is-cased'.
36621         * modules/unicase/u16-is-cased-tests: New file.
36622         * tests/unicase/test-u16-is-cased.c: New file.
36623
36624         Tests for module 'unicase/u8-is-cased'.
36625         * modules/unicase/u8-is-cased-tests: New file.
36626         * tests/unicase/test-u8-is-cased.c: New file.
36627         * tests/unicase/test-is-cased.h: New file.
36628
36629         New module 'unicase/u32-is-cased'.
36630         * lib/unicase/u32-is-cased.c: New file.
36631         * modules/unicase/u32-is-cased: New file.
36632
36633         New module 'unicase/u16-is-cased'.
36634         * lib/unicase/u16-is-cased.c: New file.
36635         * modules/unicase/u16-is-cased: New file.
36636
36637         New module 'unicase/u8-is-cased'.
36638         * lib/unicase/u8-is-cased.c: New file.
36639         * lib/unicase/u-is-cased.h: New file.
36640         * modules/unicase/u8-is-cased: New file.
36641
36642         Tests for module 'unicase/u32-is-casefolded'.
36643         * modules/unicase/u32-is-casefolded-tests: New file.
36644         * tests/unicase/test-u32-is-casefolded.c: New file.
36645
36646         Tests for module 'unicase/u16-is-casefolded'.
36647         * modules/unicase/u16-is-casefolded-tests: New file.
36648         * tests/unicase/test-u16-is-casefolded.c: New file.
36649
36650         Tests for module 'unicase/u8-is-casefolded'.
36651         * modules/unicase/u8-is-casefolded-tests: New file.
36652         * tests/unicase/test-u8-is-casefolded.c: New file.
36653         * tests/unicase/test-is-casefolded.h: New file.
36654
36655         New module 'unicase/u32-is-casefolded'.
36656         * lib/unicase/u32-is-casefolded.c: New file.
36657         * modules/unicase/u32-is-casefolded: New file.
36658
36659         New module 'unicase/u16-is-casefolded'.
36660         * lib/unicase/u16-is-casefolded.c: New file.
36661         * modules/unicase/u16-is-casefolded: New file.
36662
36663         New module 'unicase/u8-is-casefolded'.
36664         * lib/unicase/u8-is-casefolded.c: New file.
36665         * modules/unicase/u8-is-casefolded: New file.
36666
36667         Tests for module 'unicase/u32-is-titlecase'.
36668         * modules/unicase/u32-is-titlecase-tests: New file.
36669         * tests/unicase/test-u32-is-titlecase.c: New file.
36670
36671         Tests for module 'unicase/u16-is-titlecase'.
36672         * modules/unicase/u16-is-titlecase-tests: New file.
36673         * tests/unicase/test-u16-is-titlecase.c: New file.
36674
36675         Tests for module 'unicase/u8-is-titlecase'.
36676         * modules/unicase/u8-is-titlecase-tests: New file.
36677         * tests/unicase/test-u8-is-titlecase.c: New file.
36678         * tests/unicase/test-is-titlecase.h: New file.
36679
36680         New module 'unicase/u32-is-titlecase'.
36681         * lib/unicase/u32-is-titlecase.c: New file.
36682         * modules/unicase/u32-is-titlecase: New file.
36683
36684         New module 'unicase/u16-is-titlecase'.
36685         * lib/unicase/u16-is-titlecase.c: New file.
36686         * modules/unicase/u16-is-titlecase: New file.
36687
36688         New module 'unicase/u8-is-titlecase'.
36689         * lib/unicase/u8-is-titlecase.c: New file.
36690         * modules/unicase/u8-is-titlecase: New file.
36691
36692         Tests for module 'unicase/u32-is-lowercase'.
36693         * modules/unicase/u32-is-lowercase-tests: New file.
36694         * tests/unicase/test-u32-is-lowercase.c: New file.
36695
36696         Tests for module 'unicase/u16-is-lowercase'.
36697         * modules/unicase/u16-is-lowercase-tests: New file.
36698         * tests/unicase/test-u16-is-lowercase.c: New file.
36699
36700         Tests for module 'unicase/u8-is-lowercase'.
36701         * modules/unicase/u8-is-lowercase-tests: New file.
36702         * tests/unicase/test-u8-is-lowercase.c: New file.
36703         * tests/unicase/test-is-lowercase.h: New file.
36704
36705         New module 'unicase/u32-is-lowercase'.
36706         * lib/unicase/u32-is-lowercase.c: New file.
36707         * modules/unicase/u32-is-lowercase: New file.
36708
36709         New module 'unicase/u16-is-lowercase'.
36710         * lib/unicase/u16-is-lowercase.c: New file.
36711         * modules/unicase/u16-is-lowercase: New file.
36712
36713         New module 'unicase/u8-is-lowercase'.
36714         * lib/unicase/u8-is-lowercase.c: New file.
36715         * modules/unicase/u8-is-lowercase: New file.
36716
36717         Tests for module 'unicase/u32-is-uppercase'.
36718         * modules/unicase/u32-is-uppercase-tests: New file.
36719         * tests/unicase/test-u32-is-uppercase.c: New file.
36720
36721         Tests for module 'unicase/u16-is-uppercase'.
36722         * modules/unicase/u16-is-uppercase-tests: New file.
36723         * tests/unicase/test-u16-is-uppercase.c: New file.
36724
36725         Tests for module 'unicase/u8-is-uppercase'.
36726         * modules/unicase/u8-is-uppercase-tests: New file.
36727         * tests/unicase/test-u8-is-uppercase.c: New file.
36728         * tests/unicase/test-is-uppercase.h: New file.
36729
36730         New module 'unicase/u32-is-uppercase'.
36731         * lib/unicase/u32-is-uppercase.c: New file.
36732         * modules/unicase/u32-is-uppercase: New file.
36733
36734         New module 'unicase/u16-is-uppercase'.
36735         * lib/unicase/u16-is-uppercase.c: New file.
36736         * modules/unicase/u16-is-uppercase: New file.
36737
36738         New module 'unicase/u8-is-uppercase'.
36739         * lib/unicase/u8-is-uppercase.c: New file.
36740         * modules/unicase/u8-is-uppercase: New file.
36741
36742         New module 'unicase/u32-is-invariant'.
36743         * lib/unicase/u32-is-invariant.c: New file.
36744         * modules/unicase/u32-is-invariant: New file.
36745
36746         New module 'unicase/u16-is-invariant'.
36747         * lib/unicase/u16-is-invariant.c: New file.
36748         * modules/unicase/u16-is-invariant: New file.
36749
36750         New module 'unicase/u8-is-invariant'.
36751         * lib/unicase/u8-is-invariant.c: New file.
36752         * lib/unicase/invariant.h: New file.
36753         * lib/unicase/u-is-invariant.h: New file.
36754         * modules/unicase/u8-is-invariant: New file.
36755
36756         Tests for module 'unicase/u32-casecoll'.
36757         * modules/unicase/u32-casecoll-tests: New file.
36758         * tests/unicase/test-u32-casecoll.c: New file.
36759
36760         Tests for module 'unicase/u16-casecoll'.
36761         * modules/unicase/u16-casecoll-tests: New file.
36762         * tests/unicase/test-u16-casecoll.c: New file.
36763
36764         Tests for module 'unicase/u8-casecoll'.
36765         * modules/unicase/u8-casecoll-tests: New file.
36766         * tests/unicase/test-u8-casecoll.c: New file.
36767
36768         New module 'unicase/u32-casecoll'.
36769         * lib/unicase/u32-casecoll.c: New file.
36770         * modules/unicase/u32-casecoll: New file.
36771
36772         New module 'unicase/u16-casecoll'.
36773         * lib/unicase/u16-casecoll.c: New file.
36774         * modules/unicase/u16-casecoll: New file.
36775
36776         New module 'unicase/u8-casecoll'.
36777         * lib/unicase/u8-casecoll.c: New file.
36778         * lib/unicase/u-casecoll.h: New file.
36779         * modules/unicase/u8-casecoll: New file.
36780
36781         New module 'unicase/u32-casexfrm'.
36782         * lib/unicase/u32-casexfrm.c: New file.
36783         * modules/unicase/u32-casexfrm: New file.
36784
36785         New module 'unicase/u16-casexfrm'.
36786         * lib/unicase/u16-casexfrm.c: New file.
36787         * modules/unicase/u16-casexfrm: New file.
36788
36789         New module 'unicase/u8-casexfrm'.
36790         * lib/unicase/u8-casexfrm.c: New file.
36791         * lib/unicase/u-casexfrm.h: New file.
36792         * modules/unicase/u8-casexfrm: New file.
36793
36794         Tests for module 'unicase/u32-casecmp'.
36795         * modules/unicase/u32-casecmp-tests: New file.
36796         * tests/unicase/test-u32-casecmp.c: New file.
36797
36798         Tests for module 'unicase/u16-casecmp'.
36799         * modules/unicase/u16-casecmp-tests: New file.
36800         * tests/unicase/test-u16-casecmp.c: New file.
36801
36802         Tests for module 'unicase/u8-casecmp'.
36803         * modules/unicase/u8-casecmp-tests: New file.
36804         * tests/unicase/test-u8-casecmp.c: New file.
36805         * tests/unicase/test-casecmp.h: New file.
36806
36807         New module 'unicase/u32-casecmp'.
36808         * lib/unicase/u32-casecmp.c: New file.
36809         * modules/unicase/u32-casecmp: New file.
36810
36811         New module 'unicase/u16-casecmp'.
36812         * lib/unicase/u16-casecmp.c: New file.
36813         * modules/unicase/u16-casecmp: New file.
36814
36815         New module 'unicase/u8-casecmp'.
36816         * lib/unicase/u8-casecmp.c: New file.
36817         * lib/unicase/u-casecmp.h: New file.
36818         * modules/unicase/u8-casecmp: New file.
36819
36820         Tests for module 'unicase/u32-casefold'.
36821         * modules/unicase/u32-casefold-tests: New file.
36822         * tests/unicase/test-u32-casefold.c: New file.
36823
36824         Tests for module 'unicase/u16-casefold'.
36825         * modules/unicase/u16-casefold-tests: New file.
36826         * tests/unicase/test-u16-casefold.c: New file.
36827
36828         Tests for module 'unicase/u8-casefold'.
36829         * modules/unicase/u8-casefold-tests: New file.
36830         * tests/unicase/test-u8-casefold.c: New file.
36831
36832         New module 'unicase/u32-casefold'.
36833         * lib/unicase/u32-casefold.c: New file.
36834         * modules/unicase/u32-casefold: New file.
36835
36836         New module 'unicase/u16-casefold'.
36837         * lib/unicase/u16-casefold.c: New file.
36838         * modules/unicase/u16-casefold: New file.
36839
36840         New module 'unicase/u8-casefold'.
36841         * lib/unicase/u8-casefold.c: New file.
36842         * lib/unicase/u-casefold.h: New file.
36843         * modules/unicase/u8-casefold: New file.
36844
36845         New module 'unicase/tocasefold'.
36846         * lib/unicase/casefold.h: New file.
36847         * lib/unicase/tocasefold.c: New file.
36848         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
36849         * modules/unicase/tocasefold: New file.
36850
36851         Tests for module 'unicase/u32-totitle'.
36852         * modules/unicase/u32-totitle-tests: New file.
36853         * tests/unicase/test-u32-totitle.c: New file.
36854
36855         Tests for module 'unicase/u16-totitle'.
36856         * modules/unicase/u16-totitle-tests: New file.
36857         * tests/unicase/test-u16-totitle.c: New file.
36858
36859         Tests for module 'unicase/u8-totitle'.
36860         * modules/unicase/u8-totitle-tests: New file.
36861         * tests/unicase/test-u8-totitle.c: New file.
36862
36863         New module 'unicase/u32-totitle'.
36864         * lib/unicase/u32-totitle.c: New file.
36865         * modules/unicase/u32-totitle: New file.
36866
36867         New module 'unicase/u16-totitle'.
36868         * lib/unicase/u16-totitle.c: New file.
36869         * modules/unicase/u16-totitle: New file.
36870
36871         New module 'unicase/u8-totitle'.
36872         * lib/unicase/u8-totitle.c: New file.
36873         * lib/unicase/u-totitle.h: New file.
36874         * modules/unicase/u8-totitle: New file.
36875
36876         Tests for module 'unicase/u32-tolower'.
36877         * modules/unicase/u32-tolower-tests: New file.
36878         * tests/unicase/test-u32-tolower.c: New file.
36879
36880         Tests for module 'unicase/u16-tolower'.
36881         * modules/unicase/u16-tolower-tests: New file.
36882         * tests/unicase/test-u16-tolower.c: New file.
36883
36884         Tests for module 'unicase/u8-tolower'.
36885         * modules/unicase/u8-tolower-tests: New file.
36886         * tests/unicase/test-u8-tolower.c: New file.
36887
36888         New module 'unicase/u32-tolower'.
36889         * lib/unicase/u32-tolower.c: New file.
36890         * modules/unicase/u32-tolower: New file.
36891
36892         New module 'unicase/u16-tolower'.
36893         * lib/unicase/u16-tolower.c: New file.
36894         * modules/unicase/u16-tolower: New file.
36895
36896         New module 'unicase/u8-tolower'.
36897         * lib/unicase/u8-tolower.c: New file.
36898         * modules/unicase/u8-tolower: New file.
36899
36900         Tests for module 'unicase/u32-toupper'.
36901         * modules/unicase/u32-toupper-tests: New file.
36902         * tests/unicase/test-u32-toupper.c: New file.
36903
36904         Tests for module 'unicase/u16-toupper'.
36905         * modules/unicase/u16-toupper-tests: New file.
36906         * tests/unicase/test-u16-toupper.c: New file.
36907
36908         Tests for module 'unicase/u8-toupper'.
36909         * modules/unicase/u8-toupper-tests: New file.
36910         * tests/unicase/test-u8-toupper.c: New file.
36911
36912         New module 'unicase/u32-toupper'.
36913         * lib/unicase/u32-toupper.c: New file.
36914         * modules/unicase/u32-toupper: New file.
36915
36916         New module 'unicase/u16-toupper'.
36917         * lib/unicase/u16-toupper.c: New file.
36918         * modules/unicase/u16-toupper: New file.
36919
36920         New module 'unicase/u8-toupper'.
36921         * lib/unicase/u8-toupper.c: New file.
36922         * modules/unicase/u8-toupper: New file.
36923
36924         New module 'unicase/u32-casemap'.
36925         * lib/unicase/u32-casemap.c: New file.
36926         * modules/unicase/u32-casemap: New file.
36927
36928         New module 'unicase/u16-casemap'.
36929         * lib/unicase/u16-casemap.c: New file.
36930         * modules/unicase/u16-casemap: New file.
36931
36932         New module 'unicase/u8-casemap'.
36933         * lib/unicase/unicasemap.h: New file.
36934         * lib/unicase/u8-casemap.c: New file.
36935         * lib/unicase/u-casemap.h: New file.
36936         * modules/unicase/u8-casemap: New file.
36937
36938         New module 'unicase/special-casing'.
36939         * lib/unicase/special-casing.h: New file.
36940         * lib/unicase/special-casing.c: New file.
36941         * lib/unicase/special-casing-table.gperf: New file, generated by
36942         gen-uni-tables.c.
36943         * modules/unicase/special-casing: New file.
36944
36945         Tests for module 'unicase/locale-language'.
36946         * modules/unicase/locale-language-tests: New file.
36947         * tests/unicase/test-locale-language.sh: New file.
36948         * tests/unicase/test-locale-language.c: New file.
36949
36950         New module 'unicase/locale-language'.
36951         * lib/unicase/locale-language.c: New file.
36952         * lib/unicase/locale-languages.gperf: New file.
36953         * modules/unicase/locale-language: New file.
36954
36955         Generate more tables for case conversion and case folding.
36956         * lib/gen-uni-tables.c (SCC_*): New enum items.
36957         (struct special_casing_rule): New type.
36958         (casing_rules, num_casing_rules, allocated_casing_rules): New
36959         variables.
36960         (add_casing_rule, fill_casing_rules): New functions.
36961         (struct casefold_rule): New type.
36962         (casefolding_rules, num_casefolding_rules,
36963         allocated_casefolding_rules): New variables.
36964         (fill_casefolding_rules): New function.
36965         (unicode_casefold): New variable.
36966         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36967         sort_casing_rules, output_casing_rules): New functions.
36968         (main): Accept to more arguments: SpecialCasing.txt and
36969         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36970         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36971         Output mapping for casefolding.
36972
36973         * lib/unicase.h: Include stdbool.h, uninorm.h.
36974         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36975         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36976         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36977         arguments.
36978         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36979         resultp arguments.
36980         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36981         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36982         resultp arguments.
36983         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36984         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36985         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36986         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36987         declarations.
36988         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36989
36990 2009-03-08  Bruno Haible  <bruno@clisp.org>
36991
36992         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36993         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36994         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36995         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36996
36997 2009-03-07  Bruno Haible  <bruno@clisp.org>
36998
36999         Adjust u*_normcmp, u*_normcoll API.
37000         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
37001         u16_normcoll, u32_normcoll): Change failure conventions.
37002         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
37003         errno and return -1.
37004         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
37005
37006 2009-03-07  Bruno Haible  <bruno@clisp.org>
37007
37008         Tests for module 'uninorm/u32-normcoll'.
37009         * modules/uninorm/u32-normcoll-tests: New file.
37010         * tests/uninorm/test-u32-normcoll.c: New file.
37011
37012         Tests for module 'uninorm/u16-normcoll'.
37013         * modules/uninorm/u16-normcoll-tests: New file.
37014         * tests/uninorm/test-u16-normcoll.c: New file.
37015
37016         Tests for module 'uninorm/u8-normcoll'.
37017         * modules/uninorm/u8-normcoll-tests: New file.
37018         * tests/uninorm/test-u8-normcoll.c: New file.
37019
37020 2009-03-07  Bruno Haible  <bruno@clisp.org>
37021
37022         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
37023         tests/uninorm/test-u32-normcmp.c.
37024         * tests/uninorm/test-u32-normcmp.c: Include it.
37025         (test_nonascii): New function, extracted from main. Add some more
37026         tests.
37027         (main): Invoke test_ascii and test_nonascii.
37028         * modules/uninorm/u32-normcmp-tests (Files): Add
37029         tests/uninorm/test-u32-normcmp.h.
37030         (Depends-on): Remove uninorm/u32-normcmp.
37031
37032         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
37033         tests/uninorm/test-u16-normcmp.c.
37034         * tests/uninorm/test-u16-normcmp.c: Include it.
37035         (test_nonascii): New function, extracted from main. Add some more
37036         tests.
37037         (main): Invoke test_ascii and test_nonascii.
37038         * modules/uninorm/u16-normcmp-tests (Files): Add
37039         tests/uninorm/test-u16-normcmp.h.
37040         (Depends-on): Remove uninorm/u16-normcmp.
37041
37042         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
37043         tests/uninorm/test-u8-normcmp.c.
37044         * tests/uninorm/test-u8-normcmp.c: Include it.
37045         (test_nonascii): New function, extracted from main. Add some more
37046         tests.
37047         (main): Invoke test_ascii and test_nonascii.
37048         * modules/uninorm/u8-normcmp-tests (Files): Add
37049         tests/uninorm/test-u8-normcmp.h.
37050         (Depends-on): Remove uninorm/u8-normcmp.
37051
37052 2009-03-07  Bruno Haible  <bruno@clisp.org>
37053
37054         New module 'uninorm/u32-normcoll'.
37055         * lib/uninorm/u32-normcoll.c: New file.
37056         * modules/uninorm/u32-normcoll: New file.
37057
37058         New module 'uninorm/u16-normcoll'.
37059         * lib/uninorm/u16-normcoll.c: New file.
37060         * modules/uninorm/u16-normcoll: New file.
37061
37062         New module 'uninorm/u8-normcoll'.
37063         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
37064         declarations.
37065         * lib/uninorm/u8-normcoll.c: New file.
37066         * lib/uninorm/u-normcoll.h: New file.
37067         * modules/uninorm/u8-normcoll: New file.
37068
37069         New module 'uninorm/u32-normxfrm'.
37070         * lib/uninorm/u32-normxfrm.c: New file.
37071         * modules/uninorm/u32-normxfrm: New file.
37072
37073         New module 'uninorm/u16-normxfrm'.
37074         * lib/uninorm/u16-normxfrm.c: New file.
37075         * modules/uninorm/u16-normxfrm: New file.
37076
37077         New module 'uninorm/u8-normxfrm'.
37078         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
37079         declarations.
37080         * lib/uninorm/u8-normxfrm.c: New file.
37081         * lib/uninorm/u-normxfrm.h: New file.
37082         * modules/uninorm/u8-normxfrm: New file.
37083
37084 2009-03-07  Bruno Haible  <bruno@clisp.org>
37085
37086         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
37087         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
37088         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
37089
37090 2009-03-07  Bruno Haible  <bruno@clisp.org>
37091
37092         New module 'memxfrm'.
37093         * lib/memxfrm.h: New file.
37094         * lib/memxfrm.c: New file.
37095         * modules/memxfrm: New file.
37096
37097 2009-03-07  Bruno Haible  <bruno@clisp.org>
37098
37099         New module 'memcmp2'.
37100         * lib/memcmp2.h: New file.
37101         * lib/memcmp2.c: New file.
37102         * modules/memcmp2: New file.
37103
37104 2009-03-07  Bruno Haible  <bruno@clisp.org>
37105
37106         Tests for module 'uninorm/decomposing-form'.
37107         * modules/uninorm/decomposing-form-tests: New file.
37108         * tests/uninorm/test-decomposing-form.c: New file.
37109
37110         New module 'uninorm/decomposing-form'.
37111         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
37112         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
37113         Add 'decomposing_variant' field.
37114         * lib/uninorm/decomposing-form.c: New file.
37115         * lib/uninorm/nfc.c (uninorm_nfc): Update.
37116         * lib/uninorm/nfd.c (uninorm_nfd): Update.
37117         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
37118         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
37119         * modules/uninorm/decomposing-form: New file.
37120         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
37121         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
37122
37123 2009-03-07  Bruno Haible  <bruno@clisp.org>
37124
37125         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
37126         strings.
37127
37128 2009-03-06  Bruno Haible  <bruno@clisp.org>
37129
37130         Tests for module 'uninorm/u32-normcmp'.
37131         * tests/uninorm/test-u32-normcmp.c: New file.
37132         * modules/uninorm/u32-normcmp-tests: New file.
37133
37134         Tests for module 'uninorm/u16-normcmp'.
37135         * tests/uninorm/test-u16-normcmp.c: New file.
37136         * modules/uninorm/u16-normcmp-tests: New file.
37137
37138         Tests for module 'uninorm/u8-normcmp'.
37139         * tests/uninorm/test-u8-normcmp.c: New file.
37140         * modules/uninorm/u8-normcmp-tests: New file.
37141
37142         New module 'uninorm/u32-normcmp'.
37143         * lib/uninorm/u32-normcmp.c: New file.
37144         * modules/uninorm/u32-normcmp: New file.
37145
37146         New module 'uninorm/u16-normcmp'.
37147         * lib/uninorm/u16-normcmp.c: New file.
37148         * modules/uninorm/u16-normcmp: New file.
37149
37150         New module 'uninorm/u8-normcmp'.
37151         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
37152         declarations.
37153         * lib/uninorm/u8-normcmp.c: New file.
37154         * lib/uninorm/u-normcmp.h: New file.
37155         * modules/uninorm/u8-normcmp: New file.
37156
37157 2009-03-06  Bruno Haible  <bruno@clisp.org>
37158
37159         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
37160         Reported by Eric Blake.
37161
37162 2009-03-06  Eric Blake  <ebb9@byu.net>
37163             Bruno Haible  <bruno@clisp.org>
37164
37165         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
37166         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
37167         condition.
37168         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37169         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
37170         condition.
37171         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37172
37173 2009-03-06  Eric Blake  <ebb9@byu.net>
37174
37175         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
37176         to avoid compiler warnings.
37177         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
37178
37179 2009-03-05  Bruno Haible  <bruno@clisp.org>
37180
37181         * tests/test-ftell.c (main): Disable test beyond end of file on
37182         FreeMiNT.
37183         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37184
37185 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
37186
37187         * lib/filevercmp.c: Move hidden files up in ordering.
37188         * tests/test-filevercmp.c: Add tests for hidden files.
37189
37190 2009-03-04  Bruno Haible  <bruno@clisp.org>
37191
37192         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
37193         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
37194         AM_CFLAGS.
37195         Reported by Simon Josefsson.
37196
37197 2009-03-03  Bruno Haible  <bruno@clisp.org>
37198
37199         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
37200         Reported by Simon Josefsson.
37201
37202         * doc/ld-version-script.texi: Update node reference.
37203
37204 2009-03-03  Bruno Haible  <bruno@clisp.org>
37205
37206         * modules/visibility (License): Change to 'unlimited'.
37207         Suggested by Simon Josefsson.
37208
37209 2009-03-03  Jim Meyering  <meyering@redhat.com>
37210
37211         unlinkdir: cannot_unlink_dir may modify process state
37212         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
37213         it's neither thread-safe nor appropriate for use in a library.
37214
37215 2009-03-03  Eric Blake  <ebb9@byu.net>
37216
37217         test-closein: silence test under Darwin
37218         * tests/test-closein.sh: Ignore stderr from cat, since we don't
37219         care if it dies from EPIPE or EBADF.
37220
37221 2009-03-03  Bruno Haible  <bruno@clisp.org>
37222
37223         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
37224         earlier.
37225         * doc/visibility.texi: Fix @node and @section.
37226
37227 2009-03-03  Simon Josefsson  <simon@josefsson.org>
37228
37229         * doc/gnulib.texi: Link to sections for ld version script and
37230         visibility.
37231         * doc/visibility.texi: Add @node and @section.
37232         * modules/ld-version-script: New module.
37233         * m4/ld-version-script.m4: New file.
37234         * doc/ld-version-script.texi: New file.
37235
37236 2009-03-02  David Lutterkort  <lutter@redhat.com>
37237
37238         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
37239         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37240
37241 2009-03-02  Bruno Haible  <bruno@clisp.org>
37242
37243         * doc/visibility.texi: Mention libtool's -export-symbols option.
37244
37245 2009-03-02  Jim Meyering  <meyering@redhat.com>
37246
37247         announce-gen: new option: --no-print-checksums
37248         * build-aux/announce-gen (usage): Describe it.
37249         (print_checksums): Print a newline here, not in the [*] footnote.
37250         (main): Honor it.
37251
37252 2009-03-01  Bruno Haible  <bruno@clisp.org>
37253
37254         Use socklen_t in the native Windows replacements prototypes.
37255         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
37256         instead of 'int'.
37257         * lib/getsockopt.c (rpl_getsockopt): Likewise.
37258         * lib/setsockopt.c (rpl_setsockopt): Likewise.
37259         * modules/getsockopt (Depends-on): Add socklen.
37260         * modules/setsockopt (Depends-on): Add socklen.
37261
37262 2009-03-01  Bruno Haible  <bruno@clisp.org>
37263
37264         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
37265         least 4.2.
37266
37267 2009-03-01  Eric Blake  <ebb9@byu.net>
37268             Bruno Haible  <bruno@clisp.org>
37269
37270         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
37271         error messages.
37272         * lib/wait-process.c (wait_subprocess): Omit error message about
37273         deadly signal sent to the child of termsigp != NULL.
37274
37275 2009-03-01  Eric Blake  <ebb9@byu.net>
37276
37277         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
37278
37279 2009-03-01  Bruno Haible  <bruno@clisp.org>
37280
37281         Avoid a gcc warning.
37282         * tests/test-sched.c (b): Make global.
37283         Reported by Eric Blake.
37284
37285 2009-01-19  Martin Lambers  <marlam@marlam.de>
37286
37287         Provide POSIX semantics for socket timeout options on W32.
37288         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
37289         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
37290         * modules/setsockopt: Depend on sys_time module for struct timeval.
37291         * modules/getsockopt: Depend on sys_time module for struct timeval.
37292
37293 2009-03-01  Simon Josefsson  <simon@josefsson.org>
37294
37295         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
37296         __USE_GNU, for consistency with netdb.in.h.
37297         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37298
37299 2009-03-01  Bruno Haible  <bruno@clisp.org>
37300
37301         More support for FreeMiNT.
37302         * lib/fseeko.c (rpl_fseeko): Complete last commit.
37303         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37304
37305 2009-03-01  Bruno Haible  <bruno@clisp.org>
37306
37307         More support for FreeMiNT.
37308         * lib/fpurge.c (fpurge): Correct last commit.
37309         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37310
37311 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37312
37313         Fix unportable awk script in vc-list-files.
37314         * build-aux/vc-list-files: In the replacement awk script, use
37315         substr with a second argument of 1, not zero.
37316         Report by Simon Josefsson.
37317
37318 2009-02-28  Bruno Haible  <bruno@clisp.org>
37319
37320         More support for FreeMiNT.
37321         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
37322         to FreeMiNT today.
37323         * lib/fwriting.c (fwriting): Likewise.
37324         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
37325
37326 2009-02-28  Bruno Haible  <bruno@clisp.org>
37327
37328         * tests/test-freadseek.c (main): Disable test beyond end of file on
37329         FreeMiNT.
37330         * tests/test-ftello.c (main): Likewise.
37331         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37332
37333 2009-02-28  Bruno Haible  <bruno@clisp.org>
37334
37335         Add tentative support for FreeMiNT.
37336         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
37337         * lib/fpurge.c (fpurge): Likewise.
37338         * lib/freadable.c (freadable): Likewise.
37339         * lib/freading.c (freading): Likewise.
37340         * lib/freadptr.c (freadptr): Likewise.
37341         * lib/freadseek.c (freadptrinc): Likewise.
37342         * lib/fseeko.c (rpl_fseeko): Likewise.
37343         * lib/fseterr.c (fseterr): Likewise.
37344         * lib/fwritable.c (fwritable): Likewise.
37345         * lib/fwriting.c (fwriting): Likewise.
37346         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
37347         Hourihane.
37348         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37349
37350 2009-02-28  Bruno Haible  <bruno@clisp.org>
37351
37352         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
37353         SIGCHLD.
37354         Reported by Jim Meyering.
37355
37356 2009-02-28  Bruno Haible  <bruno@clisp.org>
37357
37358         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
37359         Mention the results of these tests on various platforms.
37360         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
37361         order.
37362         * doc/posix-functions/printf.texi: Likewise.
37363         * doc/posix-functions/snprintf.texi: Likewise.
37364         * doc/posix-functions/sprintf.texi: Likewise.
37365         * doc/posix-functions/vfprintf.texi: Likewise.
37366         * doc/posix-functions/vprintf.texi: Likewise.
37367         * doc/posix-functions/vsnprintf.texi: Likewise.
37368         * doc/posix-functions/vsprintf.texi: Likewise.
37369         * doc/glibc-functions/obstack_printf.texi: Likewise.
37370         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
37371
37372 2009-02-28  Bruno Haible  <bruno@clisp.org>
37373
37374         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
37375         Reported by Loïc Minier <lool@dooz.org>.
37376
37377 2009-02-27  Bruno Haible  <bruno@clisp.org>
37378
37379         * gnulib-tool (func_import): Make the sed expression used to create the
37380         sed script for updating the .gitignore file POSIX compliant.
37381         Reported by Eric Blake.
37382
37383 2009-02-27  Bruno Haible  <bruno@clisp.org>
37384
37385         * gnulib-tool (sed): Don't alias as "sed --posix".
37386         Reported by Eric Blake.
37387
37388 2009-02-27  Bruno Haible  <bruno@clisp.org>
37389
37390         Avoid test link errors.
37391         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
37392         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
37393         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
37394         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
37395         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37396
37397 2009-02-27  Bruno Haible  <bruno@clisp.org>
37398
37399         Avoid spurious "(cached)" in configure output.
37400         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
37401         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
37402         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37403         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37404         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37405         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
37406         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37407         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
37408         Reported by Eric Blake.
37409
37410 2009-02-27  Eric Blake  <ebb9@byu.net>
37411
37412         printf: fix regression in previous patch
37413         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
37414
37415 2009-02-27  Bruno Haible  <bruno@clisp.org>
37416
37417         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
37418         value.
37419         * lib/stdint.in.h: Likewise.
37420         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
37421
37422 2009-02-27  Eric Blake  <ebb9@byu.net>
37423
37424         doc: mention more functions added in cygwin 1.7.0
37425         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
37426         addition.
37427         * doc/posix-functions/open_wmemstream.texi: Likewise.
37428         * doc/posix-functions/wcsnlen.texi: Likewise.
37429         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37430         * doc/posix-functions/wcstod.texi: Likewise.
37431         * doc/posix-functions/wcstof.texi: Likewise.
37432         * doc/posix-functions/wcstoimax.texi: Likewise.
37433         * doc/posix-functions/wcstok.texi: Likewise.
37434         * doc/posix-functions/wcstoumax.texi: Likewise.
37435
37436         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
37437         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
37438         * doc/posix-functions/fprintf.texi: Update.
37439         * doc/posix-functions/printf.texi: Update.
37440         * doc/posix-functions/snprintf.texi: Update.
37441         * doc/posix-functions/sprintf.texi: Update.
37442         * doc/posix-functions/vfprintf.texi: Update.
37443         * doc/posix-functions/vprintf.texi: Update.
37444         * doc/posix-functions/vsnprintf.texi: Update.
37445         * doc/posix-functions/vsprintf.texi: Update.
37446         * doc/glibc-functions/obstack_printf.texi: Update.
37447         * doc/glibc-functions/obstack_vprintf.texi: Update.
37448
37449 2009-02-26  Eric Blake  <ebb9@byu.net>
37450
37451         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
37452         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
37453         compilation bug by using runtime conversion.
37454         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
37455         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
37456         * modules/ceill-tests (Files): Use nan.h.
37457         * modules/floorl-tests (Files): Likewise.
37458         * modules/frexpl-tests (Files): Likewise.
37459         * modules/isnanl-tests (Files): Likewise.
37460         * modules/ldexpl-tests (Files): Likewise.
37461         * modules/roundl-tests (Files): Likewise.
37462         * modules/truncl-tests (Files): Likewise.
37463         * tests/test-ceill.c (main): Use a working NaN.
37464         * tests/test-floorl.c (main): Likewise.
37465         * tests/test-frexpl.c (main): Likewise.
37466         * tests/test-isnan.c (test_long_double): Likewise.
37467         * tests/test-isnanl.h (main): Likewise.
37468         * tests/test-ldexpl.h (main): Likewise.
37469         * tests/test-roundl.h (main): Likewise.
37470         * tests/test-truncl.h (main): Likewise.
37471         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
37472
37473 2009-02-26  Eric Blake  <ebb9@byu.net>
37474             Bruno Haible  <bruno@clisp.org>
37475
37476         Work around a *printf bug with %ls on Solaris.
37477         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
37478         precision is specified, sprintf stops converting the wide string
37479         argument when the number of bytes that have been produced by this
37480         conversion equals or exceeds the precision.
37481         * doc/posix-functions/fprintf.texi: Update.
37482         * doc/posix-functions/printf.texi: Update.
37483         * doc/posix-functions/snprintf.texi: Update.
37484         * doc/posix-functions/sprintf.texi: Update.
37485         * doc/posix-functions/vfprintf.texi: Update.
37486         * doc/posix-functions/vprintf.texi: Update.
37487         * doc/posix-functions/vsnprintf.texi: Update.
37488         * doc/posix-functions/vsprintf.texi: Update.
37489         * doc/glibc-functions/obstack_printf.texi: Update.
37490         * doc/glibc-functions/obstack_vprintf.texi: Update.
37491
37492 2009-02-26  Eric Blake  <ebb9@byu.net>
37493
37494         stdlib: favor compiler check of random.h
37495         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
37496         to avoid an ObjC random.h installed by Swarm.
37497
37498 2009-02-26  Bruno Haible  <bruno@clisp.org>
37499
37500         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
37501         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
37502         Reported by Gary V. Vaughan <gary@gnu.org>.
37503
37504 2009-02-26  Bruno Haible  <bruno@clisp.org>
37505
37506         Fix *printf behaviour regarding the %ls directive.
37507         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
37508         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
37509         NEED_PRINTF_DIRECTIVE_LS.
37510         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
37511         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37512         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37513         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
37514         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
37515         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
37516         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37517         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37518         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37519         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37520         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37521         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
37522         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37523         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37524         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37525         * doc/posix-functions/fprintf.texi: Update.
37526         * doc/posix-functions/printf.texi: Update.
37527         * doc/posix-functions/snprintf.texi: Update.
37528         * doc/posix-functions/sprintf.texi: Update.
37529         * doc/posix-functions/vfprintf.texi: Update.
37530         * doc/posix-functions/vprintf.texi: Update.
37531         * doc/posix-functions/vsnprintf.texi: Update.
37532         * doc/posix-functions/vsprintf.texi: Update.
37533         * doc/glibc-functions/obstack_printf.texi: Update.
37534         * doc/glibc-functions/obstack_vprintf.texi: Update.
37535         Reported by Eric Blake.
37536
37537 2009-02-25  Bruno Haible  <bruno@clisp.org>
37538
37539         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
37540         with known value.
37541         Reported by Gary V. Vaughan <gary@gnu.org>.
37542
37543 2009-02-25  Bruno Haible  <bruno@clisp.org>
37544
37545         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
37546         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
37547         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
37548         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
37549         Reported by Gary V. Vaughan <gary@gnu.org>.
37550
37551 2009-02-25  Bruno Haible  <bruno@clisp.org>
37552
37553         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
37554         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
37555         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
37556         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
37557         Reported by Gary V. Vaughan <gary@gnu.org>.
37558
37559 2009-02-25  Eric Blake  <ebb9@byu.net>
37560
37561         tests: skip fseek/ftell tests if ungetc is broken
37562         * m4/ungetc.m4: New file.
37563         * modules/fseek-tests: Split test, so ungetc dependency is
37564         separate from rest of test.
37565         * modules/fseeko-tests: Likewise.
37566         * modules/ftell-tests: Likewise.
37567         * modules/ftello-tests: Likewise.
37568         * tests/test-fseek.c (main): Isolate ungetc dependency.
37569         * tests/test-fseeko.c (main): Likewise.
37570         * tests/test-ftell.c (main): Likewise.
37571         * tests/test-ftello.c (main): Likewise.
37572         * tests/test-fseek2.sh: New file.
37573         * tests/test-fseeko2.sh: Likewise.
37574         * tests/test-ftell2.sh: Likewise.
37575         * tests/test-ftello2.sh: Likewise.
37576
37577 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
37578
37579         test-getaddrinfo: fix usage of skip return code 77
37580         * tests/test-gettaddrinfo.c: Return skip code 77 only
37581         for first occurance of skip (4x77 is not 77)
37582
37583 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
37584
37585         strtod: avoid C99 decl-after-statement
37586         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
37587
37588 2009-02-24  Eric Blake  <ebb9@byu.net>
37589
37590         strtod: detect HP-UX 11.31 bug
37591         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
37592         Reported by Gary V. Vaughan.
37593
37594 2009-02-23  Bruno Haible  <bruno@clisp.org>
37595
37596         Fix invalid read past end of memory block.
37597         * lib/vasnprintf.c (DCHAR_SET): Define.
37598         (local_wcslen): Define only when needed.
37599         (local_strnlen, local_wcsnlen): New functions.
37600         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
37601         directives that involve a conversion ourselves.
37602         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
37603         wcsnlen, mbrtowc, wcrtomb.
37604         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
37605         * tests/test-vasprintf-posix.c (test_function): Likewise.
37606         * tests/test-snprintf-posix.h (test_function): Likewise.
37607         * tests/test-sprintf-posix.h (test_function): Likewise.
37608         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37609
37610 2009-02-22  Bruno Haible  <bruno@clisp.org>
37611
37612         Implement new clarified decomposition of Hangul syllables.
37613         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
37614         of type LTV, return only a pairwise decomposition.
37615         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
37616         Likewise.
37617         * tests/uninorm/test-decomposition.c (main): Updated expected result.
37618         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
37619         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
37620
37621 2009-02-22  Bruno Haible  <bruno@clisp.org>
37622
37623         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
37624         zero-length results and shrink excess allocated memory.
37625         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
37626         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
37627         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
37628         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
37629         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
37630         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
37631         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
37632         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
37633         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
37634         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
37635         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
37636         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
37637
37638 2009-02-21  Bruno Haible  <bruno@clisp.org>
37639
37640         * doc/gnulib.texi: Include safe-alloc.texi earlier.
37641         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
37642         spaces after a period. Put a space between a macro name and its
37643         argument list. Trivial rewordings.
37644         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
37645         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
37646         (main): Return 0 explicitly.
37647
37648 2009-02-21  Bruno Haible  <bruno@clisp.org>
37649
37650         Tests for module 'uninorm/filter'.
37651         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
37652         * modules/uninorm/filter-tests: New file.
37653
37654         New module 'uninorm/filter'.
37655         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
37656         uninorm_filter_flush, uninorm_filter_free): New declarations.
37657         * lib/uninorm/uninorm-filter.c: New file.
37658         * modules/uninorm/filter: New file.
37659
37660 2009-02-21  Bruno Haible  <bruno@clisp.org>
37661
37662         Tests for module 'uninorm/nfkc'.
37663         * tests/uninorm/test-nfkc.c: New file.
37664         * tests/uninorm/test-u8-nfkc.c: New file.
37665         * tests/uninorm/test-u16-nfkc.c: New file.
37666         * tests/uninorm/test-u32-nfkc.c: New file.
37667         * tests/uninorm/test-u32-nfkc-big.sh: New file.
37668         * tests/uninorm/test-u32-nfkc-big.c: New file.
37669         * modules/uninorm/nfkc-tests: New file.
37670
37671         New module 'uninorm/nfkc'.
37672         * lib/uninorm/nfkc.c: New file.
37673         * modules/uninorm/nfkc: New file.
37674
37675         Tests for module 'uninorm/nfkd'.
37676         * tests/uninorm/test-nfkd.c: New file.
37677         * tests/uninorm/test-u8-nfkd.c: New file.
37678         * tests/uninorm/test-u16-nfkd.c: New file.
37679         * tests/uninorm/test-u32-nfkd.c: New file.
37680         * tests/uninorm/test-u32-nfkd-big.sh: New file.
37681         * tests/uninorm/test-u32-nfkd-big.c: New file.
37682         * modules/uninorm/nfkd-tests: New file.
37683
37684         New module 'uninorm/nfkd'.
37685         * lib/uninorm/nfkd.c: New file.
37686         * modules/uninorm/nfkd: New file.
37687
37688         Tests for module 'uninorm/nfc'.
37689         * tests/uninorm/test-nfc.c: New file.
37690         * tests/uninorm/test-u8-nfc.c: New file.
37691         * tests/uninorm/test-u16-nfc.c: New file.
37692         * tests/uninorm/test-u32-nfc.c: New file.
37693         * tests/uninorm/test-u32-nfc-big.sh: New file.
37694         * tests/uninorm/test-u32-nfc-big.c: New file.
37695         * modules/uninorm/nfc-tests: New file.
37696
37697         New module 'uninorm/nfc'.
37698         * lib/uninorm/nfc.c: New file.
37699         * modules/uninorm/nfc: New file.
37700
37701         Tests for module 'uninorm/nfd'.
37702         * tests/uninorm/test-nfd.c: New file.
37703         * tests/uninorm/test-u8-nfd.c: New file.
37704         * tests/uninorm/test-u16-nfd.c: New file.
37705         * tests/uninorm/test-u32-nfd.c: New file.
37706         * tests/uninorm/test-u32-nfd-big.sh: New file.
37707         * tests/uninorm/test-u32-nfd-big.c: New file.
37708         * tests/uninorm/test-u32-normalize-big.h: New file.
37709         * tests/uninorm/test-u32-normalize-big.c: New file.
37710         * tests/uninorm/NormalizationTest.txt: New file, created from
37711         Unicode 5.1.0 NormalizationTest.txt.
37712         * modules/uninorm/nfd-tests: New file.
37713
37714         New module 'uninorm/nfd'.
37715         * lib/uninorm/nfd.c: New file.
37716         * modules/uninorm/nfd: New file.
37717
37718         New module 'uninorm/u32-normalize'.
37719         * lib/uninorm/u32-normalize.c: New file.
37720         * modules/uninorm/u32-normalize: New file.
37721
37722         New module 'uninorm/u16-normalize'.
37723         * lib/uninorm/u16-normalize.c: New file.
37724         * modules/uninorm/u16-normalize: New file.
37725
37726         New module 'uninorm/u8-normalize'.
37727         * lib/uninorm/u8-normalize.c: New file.
37728         * lib/uninorm/normalize-internal.h: New file.
37729         * lib/uninorm/u-normalize-internal.h: New file.
37730         * modules/uninorm/u8-normalize: New file.
37731
37732         New module 'uninorm/decompose-internal'.
37733         * lib/uninorm/decompose-internal.c: New file.
37734         * modules/uninorm/decompose-internal: New file.
37735
37736         Tests for module 'uninorm/composition'.
37737         * tests/uninorm/test-composition.c: New file.
37738         * modules/uninorm/composition-tests: New file.
37739
37740         New module 'uninorm/composition'.
37741         * lib/uninorm/composition.c: New file.
37742         * lib/uninorm/composition-table.gperf: New file, generated by
37743         gen-uni-tables.
37744         * modules/uninorm/composition: New file.
37745
37746         Tests for module 'uninorm/compat-decomposition'.
37747         * tests/uninorm/test-compat-decomposition.c: New file.
37748         * modules/uninorm/compat-decomposition-tests: New file.
37749
37750         New module 'uninorm/compat-decomposition'.
37751         * lib/uninorm/decompose-internal.h: New file.
37752         * lib/uninorm/compat-decomposition.c: New file.
37753         * modules/uninorm/compat-decomposition: New file.
37754
37755         Tests for module 'uninorm/canonical-decomposition'.
37756         * tests/uninorm/test-canonical-decomposition.c: New file.
37757         * modules/uninorm/canonical-decomposition-tests: New file.
37758
37759         New module 'uninorm/canonical-decomposition'.
37760         * lib/uninorm/canonical-decomposition.c: New file.
37761         * modules/uninorm/canonical-decomposition: New file.
37762
37763         Tests for module 'uninorm/decomposition'.
37764         * tests/uninorm/test-decomposition.c: New file.
37765         * modules/uninorm/decomposition-tests: New file.
37766
37767         New module 'uninorm/decomposition'.
37768         * lib/uninorm/decomposition.c: New file.
37769         * modules/uninorm/decomposition: New file.
37770
37771         New module 'uninorm/decomposition-table'.
37772         * lib/uninorm/decomposition-table.h: New file.
37773         * lib/uninorm/decomposition-table.c: New file.
37774         * lib/uninorm/decomposition-table1.h: New file, generated by
37775         gen-uni-tables.
37776         * lib/uninorm/decomposition-table2.h: New file, generated by
37777         gen-uni-tables.
37778         * modules/uninorm/decomposition-table: New file.
37779
37780         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
37781         (UC_DECOMP_*): New enumeration items.
37782         (get_decomposition): New function.
37783         (struct decomp_table): New type.
37784         (output_decomposition, output_decomposition_tables): New functions.
37785         (unicode_composition_exclusions): New variable.
37786         (fill_composition_exclusions, debug_output_composition_tables): New
37787         functions.
37788         (main): Accept one more argument. Invoke fill_composition_exclusions.
37789         Output decomposition and composition tables.
37790
37791         New module 'uninorm/base'.
37792         * lib/uninorm.h: New file.
37793         * lib/unictype.h: Update comment.
37794         * modules/uninorm/base: New file.
37795
37796 2009-02-21  David Lutterkort  <lutter@redhat.com>
37797
37798         Tests for module 'safe-alloc'.
37799         * tests/test-safe-alloc.c: New file.
37800         * modules/safe-alloc-tests: New file.
37801
37802         New module 'safe-alloc'.
37803         * lib/safe-alloc.h: New file.
37804         * lib/safe-alloc.c: New file.
37805         * m4/safe-alloc.m4: New file.
37806         * modules/safe-alloc: New file.
37807         * doc/safe-alloc.texi: New file.
37808         * doc/gnulib.texi: Include it.
37809         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
37810         safe-alloc.
37811
37812 2009-02-18  Bruno Haible  <bruno@clisp.org>
37813
37814         Fix link error on non-glibc systems.
37815         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
37816         variable.
37817         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37818
37819 2009-02-18  Jim Meyering  <meyering@redhat.com>
37820
37821         fts: avoid used-uninitialized error due to recent change
37822         * lib/fts.c (fts_read): Guard uses of the new member,
37823         parent->fts_n_dirs_remaining, since it's not relevant for
37824         the parent of a directory specified on the command-line.
37825
37826 2009-02-17  James Youngman  <jay@gnu.org>
37827             Bruno Haible  <bruno@clisp.org>
37828
37829         * m4/include_next.m4: Reformulate comment.
37830
37831 2009-02-16  Jim Meyering  <meyering@redhat.com>
37832
37833         fts: add #if guards so that the fts_lgpl module still builds
37834         * lib/fts.c: Guard just-added hash-table-using parts with
37835         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
37836         Reported by Simon Josefsson.
37837
37838 2009-02-15  Bruno Haible  <bruno@clisp.org>
37839
37840         * modules/array-mergesort-tests: New file.
37841         * tests/test-array-mergesort.c: New file.
37842
37843         New module 'array-mergesort'.
37844         * modules/array-mergesort: New file.
37845         * lib/array-mergesort.h: New file.
37846
37847 2009-02-15  Bruno Haible  <bruno@clisp.org>
37848
37849         Fix 2009-02-07 commit.
37850         * lib/gen-uni-tables.c (output_predicate, output_category,
37851         output_combclass, output_bidi_category, output_decimal_digit,
37852         output_digit, output_numeric, output_mirror, output_scripts,
37853         output_ident_category, output_simple_mapping): Fix format directives.
37854         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
37855
37856 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
37857
37858         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
37859         fixes are available from IBM.
37860
37861 2009-02-13  Jim Meyering  <meyering@redhat.com>
37862
37863         fts: arrange not to stat non-directories in more cases
37864         This makes GNU find (when it doesn't need to stat each file)
37865         *much* more efficient at traversing reiserfs file systems.
37866         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
37867         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
37868         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
37869         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
37870         (leaf_optimization_applies): New function.
37871         (LCO_hash, LCO_compare): New helper functions.
37872         (link_count_optimize_ok): New function.
37873         (fts_stat): Initialize new member (if dir).
37874         (fts_read): Decrement parent's fts_n_dirs_remaining count if
37875         we've just stat'ed a directory.  Skip the stat call when possible.
37876         ---
37877         Note this AFS-related exchange:
37878         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
37879         and note find's pioctl call in find/fstype.c.
37880         But that is necessary only if you want to enable the
37881         optimization for AFS, and for now, I don't.
37882
37883         fts: move a function definition "up" (no semantic change)
37884         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
37885         "up" to precede upcoming use of a related function.
37886
37887 2009-02-11  Jim Meyering  <meyering@redhat.com>
37888
37889         fts: correct internal computation of nlinks (optimization-related)
37890         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
37891         whether the current entry is a directory, so don't test it.
37892
37893 2009-02-10  Bruno Haible  <bruno@clisp.org>
37894
37895         Tests for module 'uniwbrk/ulc-wordbreaks'.
37896         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
37897         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
37898         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
37899
37900         Tests for module 'uniwbrk/u32-wordbreaks'.
37901         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37902         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37903
37904         Tests for module 'uniwbrk/u16-wordbreaks'.
37905         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37906         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37907
37908         Tests for module 'uniwbrk/u8-wordbreaks'.
37909         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37910         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37911
37912 2009-02-10  Bruno Haible  <bruno@clisp.org>
37913
37914         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37915         property.
37916         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37917         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37918         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37919
37920 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37921
37922         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37923         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37924
37925 2009-02-10  Bruno Haible  <bruno@clisp.org>
37926
37927         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37928         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37929         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37930         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37931         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37932         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37933
37934 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37935
37936         * lib/sockets.h (gl_fd_to_handle): New function.
37937
37938         * tests/test-sockets.c: Call gl_fd_to_handle.
37939
37940 2009-02-09  Bruno Haible  <bruno@clisp.org>
37941
37942         * doc/havelib.texi: Document the conventions on bi-arch systems.
37943
37944 2009-02-08  Bruno Haible  <bruno@clisp.org>
37945
37946         Document the AC_LIB_LINKFLAGS macro.
37947         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37948         * doc/gnulib.texi: Include it.
37949
37950 2009-02-08  Bruno Haible  <bruno@clisp.org>
37951
37952         Fix wrong order of sections, compared to TOC.
37953         * doc/gnulib.texi: Include relocatable-maint.texi after the
37954         "Regular expressions" node, not before.
37955
37956 2009-02-08  Bruno Haible  <bruno@clisp.org>
37957
37958         Tests for module 'unicase/totitle'.
37959         * modules/unicase/totitle-tests: New file.
37960
37961         Tests for module 'unicase/tolower'.
37962         * modules/unicase/tolower-tests: New file.
37963
37964         Tests for module 'unicase/toupper'.
37965         * modules/unicase/toupper-tests: New file.
37966         * tests/unicase/test-mapping-part1.h: New file.
37967         * tests/unicase/test-mapping-part2.h: New file.
37968
37969         New module 'unicase/totitle'.
37970         * modules/unicase/totitle: New file.
37971         * lib/unicase/totitle.c: New file.
37972
37973         New module 'unicase/tolower'.
37974         * modules/unicase/tolower: New file.
37975         * lib/unicase/tolower.c: New file.
37976
37977         New module 'unicase/toupper'.
37978         * modules/unicase/toupper: New file.
37979         * lib/unicase/toupper.c: New file.
37980         * lib/unicase/simple-mapping.h: New file.
37981
37982         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37983         (mapping_table): New structure.
37984         (output_simple_mapping): New function.
37985         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37986         * modules/gen-uni-tables (Description): Update.
37987         * lib/unicase/toupper.h: New file, automatically generated by
37988         gen-uni-tables.
37989         * lib/unicase/tolower.h: New file, automatically generated by
37990         gen-uni-tables.
37991         * lib/unicase/totitle.h: New file, automatically generated by
37992         gen-uni-tables.
37993         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37994         gen-uni-tables.
37995         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37996         gen-uni-tables.
37997         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37998         gen-uni-tables.
37999
38000         New module 'unicase/base'.
38001         * modules/unicase/base: New file.
38002         * lib/unicase.h: New file.
38003
38004 2009-02-08  Bruno Haible  <bruno@clisp.org>
38005
38006         New module 'uniwbrk/ulc-wordbreaks'.
38007         * modules/uniwbrk/ulc-wordbreaks: New file.
38008         * lib/uniwbrk/ulc-wordbreaks.c: New file.
38009
38010         New module 'uniwbrk/u32-wordbreaks'.
38011         * modules/uniwbrk/u32-wordbreaks: New file.
38012         * lib/uniwbrk/u32-wordbreaks.c: New file.
38013
38014         New module 'uniwbrk/u16-wordbreaks'.
38015         * modules/uniwbrk/u16-wordbreaks: New file.
38016         * lib/uniwbrk/u16-wordbreaks.c: New file.
38017
38018         New module 'uniwbrk/u8-wordbreaks'.
38019         * modules/uniwbrk/u8-wordbreaks: New file.
38020         * lib/uniwbrk/u8-wordbreaks.c: New file.
38021         * lib/uniwbrk/u-wordbreaks.h: New file.
38022
38023         New module 'uniwbrk/table'.
38024         * modules/uniwbrk/table: New file.
38025         * lib/uniwbrk/wbrktable.h: New file.
38026         * lib/uniwbrk/wbrktable.c: New file.
38027
38028         New module 'uniwbrk/wordbreak-property'.
38029         * modules/uniwbrk/wordbreak-property: New file.
38030         * lib/uniwbrk/wordbreak-property.c: New file.
38031
38032         * lib/gen-uni-tables.c (WBP_*): New enum items.
38033         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
38034         (unicode_org_wbp): New variable.
38035         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
38036         New functions.
38037         (wbp_table): New structure.
38038         (output_wbp, output_wbrk_tables): New functions.
38039         (main): Accept additional argument. Invoke fill_org_wbp,
38040         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
38041         output_wbrk_tables.
38042         * modules/gen-uni-tables (Description): Update.
38043         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
38044         gen-uni-tables.
38045
38046         New module 'uniwbrk/base'.
38047         * modules/uniwbrk/base: New file.
38048         * lib/uniwbrk.h: New file.
38049
38050 2009-02-08  Bruno Haible  <bruno@clisp.org>
38051
38052         Update to Unicode 5.1.0.
38053         * lib/gen-uni-tables.c (is_property_alphabetic): Include
38054         U+2185..U+2188.
38055         (is_property_default_ignorable_code_point): Don't include characters
38056         of category Cc or Cs and not-a-characters.
38057         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
38058         U+0D79, U+109E, U+109F, U+A60C.
38059         * lib/unictype/bidi_of.h: Regenerated.
38060         * lib/unictype/blocks.h: Regenerated.
38061         * lib/unictype/categ_C.h: Regenerated.
38062         * lib/unictype/categ_Cf.h: Regenerated.
38063         * lib/unictype/categ_Cn.h: Regenerated.
38064         * lib/unictype/categ_L.h: Regenerated.
38065         * lib/unictype/categ_Ll.h: Regenerated.
38066         * lib/unictype/categ_Lm.h: Regenerated.
38067         * lib/unictype/categ_Lo.h: Regenerated.
38068         * lib/unictype/categ_Lu.h: Regenerated.
38069         * lib/unictype/categ_M.h: Regenerated.
38070         * lib/unictype/categ_Mc.h: Regenerated.
38071         * lib/unictype/categ_Me.h: Regenerated.
38072         * lib/unictype/categ_Mn.h: Regenerated.
38073         * lib/unictype/categ_N.h: Regenerated.
38074         * lib/unictype/categ_Nd.h: Regenerated.
38075         * lib/unictype/categ_Nl.h: Regenerated.
38076         * lib/unictype/categ_No.h: Regenerated.
38077         * lib/unictype/categ_P.h: Regenerated.
38078         * lib/unictype/categ_Pd.h: Regenerated.
38079         * lib/unictype/categ_Pe.h: Regenerated.
38080         * lib/unictype/categ_Pf.h: Regenerated.
38081         * lib/unictype/categ_Pi.h: Regenerated.
38082         * lib/unictype/categ_Po.h: Regenerated.
38083         * lib/unictype/categ_Ps.h: Regenerated.
38084         * lib/unictype/categ_S.h: Regenerated.
38085         * lib/unictype/categ_Sk.h: Regenerated.
38086         * lib/unictype/categ_Sm.h: Regenerated.
38087         * lib/unictype/categ_So.h: Regenerated.
38088         * lib/unictype/categ_of.h: Regenerated.
38089         * lib/unictype/combining.h: Regenerated.
38090         * lib/unictype/ctype_alnum.h: Regenerated.
38091         * lib/unictype/ctype_alpha.h: Regenerated.
38092         * lib/unictype/ctype_graph.h: Regenerated.
38093         * lib/unictype/ctype_lower.h: Regenerated.
38094         * lib/unictype/ctype_print.h: Regenerated.
38095         * lib/unictype/ctype_punct.h: Regenerated.
38096         * lib/unictype/ctype_upper.h: Regenerated.
38097         * lib/unictype/decdigit.h: Regenerated.
38098         * lib/unictype/digit.h: Regenerated.
38099         * lib/unictype/mirror.h: Regenerated.
38100         * lib/unictype/numeric.h: Regenerated.
38101         * lib/unictype/pr_alphabetic.h: Regenerated.
38102         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
38103         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
38104         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
38105         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
38106         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
38107         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
38108         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
38109         * lib/unictype/pr_combining.h: Regenerated.
38110         * lib/unictype/pr_dash.h: Regenerated.
38111         * lib/unictype/pr_decimal_digit.h: Regenerated.
38112         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
38113         * lib/unictype/pr_deprecated.h: Regenerated.
38114         * lib/unictype/pr_diacritic.h: Regenerated.
38115         * lib/unictype/pr_extender.h: Regenerated.
38116         * lib/unictype/pr_format_control.h: Regenerated.
38117         * lib/unictype/pr_grapheme_base.h: Regenerated.
38118         * lib/unictype/pr_grapheme_extend.h: Regenerated.
38119         * lib/unictype/pr_grapheme_link.h: Regenerated.
38120         * lib/unictype/pr_id_continue.h: Regenerated.
38121         * lib/unictype/pr_id_start.h: Regenerated.
38122         * lib/unictype/pr_ideographic.h: Regenerated.
38123         * lib/unictype/pr_ignorable_control.h: Regenerated.
38124         * lib/unictype/pr_lowercase.h: Regenerated.
38125         * lib/unictype/pr_math.h: Regenerated.
38126         * lib/unictype/pr_numeric.h: Regenerated.
38127         * lib/unictype/pr_other_alphabetic.h: Regenerated.
38128         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
38129         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
38130         * lib/unictype/pr_other_id_continue.h: Regenerated.
38131         * lib/unictype/pr_other_lowercase.h: Regenerated.
38132         * lib/unictype/pr_other_math.h: Regenerated.
38133         * lib/unictype/pr_punctuation.h: Regenerated.
38134         * lib/unictype/pr_sentence_terminal.h: Regenerated.
38135         * lib/unictype/pr_soft_dotted.h: Regenerated.
38136         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
38137         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
38138         * lib/unictype/pr_unified_ideograph.h: Regenerated.
38139         * lib/unictype/pr_uppercase.h: Regenerated.
38140         * lib/unictype/pr_xid_continue.h: Regenerated.
38141         * lib/unictype/pr_xid_start.h: Regenerated.
38142         * lib/unictype/pr_zero_width.h: Regenerated.
38143         * lib/unictype/scripts.h: Regenerated.
38144         * lib/unictype/scripts_byname.gperf: Regenerated.
38145         * lib/unictype/sy_java_ident.h: Regenerated.
38146         * lib/unilbrk/lbrkprop1.h: Regenerated.
38147         * lib/unilbrk/lbrkprop2.h: Regenerated.
38148         * tests/unictype/test-categ_C.c: Regenerated.
38149         * tests/unictype/test-categ_Cf.c: Regenerated.
38150         * tests/unictype/test-categ_Cn.c: Regenerated.
38151         * tests/unictype/test-categ_L.c: Regenerated.
38152         * tests/unictype/test-categ_Ll.c: Regenerated.
38153         * tests/unictype/test-categ_Lm.c: Regenerated.
38154         * tests/unictype/test-categ_Lo.c: Regenerated.
38155         * tests/unictype/test-categ_Lu.c: Regenerated.
38156         * tests/unictype/test-categ_M.c: Regenerated.
38157         * tests/unictype/test-categ_Mc.c: Regenerated.
38158         * tests/unictype/test-categ_Me.c: Regenerated.
38159         * tests/unictype/test-categ_Mn.c: Regenerated.
38160         * tests/unictype/test-categ_N.c: Regenerated.
38161         * tests/unictype/test-categ_Nd.c: Regenerated.
38162         * tests/unictype/test-categ_Nl.c: Regenerated.
38163         * tests/unictype/test-categ_No.c: Regenerated.
38164         * tests/unictype/test-categ_P.c: Regenerated.
38165         * tests/unictype/test-categ_Pd.c: Regenerated.
38166         * tests/unictype/test-categ_Pe.c: Regenerated.
38167         * tests/unictype/test-categ_Pf.c: Regenerated.
38168         * tests/unictype/test-categ_Pi.c: Regenerated.
38169         * tests/unictype/test-categ_Po.c: Regenerated.
38170         * tests/unictype/test-categ_Ps.c: Regenerated.
38171         * tests/unictype/test-categ_S.c: Regenerated.
38172         * tests/unictype/test-categ_Sk.c: Regenerated.
38173         * tests/unictype/test-categ_Sm.c: Regenerated.
38174         * tests/unictype/test-categ_So.c: Regenerated.
38175         * tests/unictype/test-ctype_alnum.c: Regenerated.
38176         * tests/unictype/test-ctype_alpha.c: Regenerated.
38177         * tests/unictype/test-ctype_graph.c: Regenerated.
38178         * tests/unictype/test-ctype_lower.c: Regenerated.
38179         * tests/unictype/test-ctype_print.c: Regenerated.
38180         * tests/unictype/test-ctype_punct.c: Regenerated.
38181         * tests/unictype/test-ctype_upper.c: Regenerated.
38182         * tests/unictype/test-decdigit.h: Regenerated.
38183         * tests/unictype/test-digit.h: Regenerated.
38184         * tests/unictype/test-numeric.h: Regenerated.
38185         * tests/unictype/test-pr_alphabetic.c: Regenerated.
38186         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
38187         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
38188         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
38189         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
38190         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
38191         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
38192         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
38193         * tests/unictype/test-pr_combining.c: Regenerated.
38194         * tests/unictype/test-pr_dash.c: Regenerated.
38195         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
38196         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
38197         * tests/unictype/test-pr_deprecated.c: Regenerated.
38198         * tests/unictype/test-pr_diacritic.c: Regenerated.
38199         * tests/unictype/test-pr_extender.c: Regenerated.
38200         * tests/unictype/test-pr_format_control.c: Regenerated.
38201         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
38202         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
38203         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
38204         * tests/unictype/test-pr_id_continue.c: Regenerated.
38205         * tests/unictype/test-pr_id_start.c: Regenerated.
38206         * tests/unictype/test-pr_ideographic.c: Regenerated.
38207         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
38208         * tests/unictype/test-pr_lowercase.c: Regenerated.
38209         * tests/unictype/test-pr_math.c: Regenerated.
38210         * tests/unictype/test-pr_numeric.c: Regenerated.
38211         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
38212         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
38213         Regenerated.
38214         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
38215         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
38216         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
38217         * tests/unictype/test-pr_other_math.c: Regenerated.
38218         * tests/unictype/test-pr_punctuation.c: Regenerated.
38219         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
38220         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
38221         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
38222         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
38223         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
38224         * tests/unictype/test-pr_uppercase.c: Regenerated.
38225         * tests/unictype/test-pr_xid_continue.c: Regenerated.
38226         * tests/unictype/test-pr_xid_start.c: Regenerated.
38227         * tests/unictype/test-pr_zero_width.c: Regenerated.
38228
38229         Update to Unicode 5.1.0.
38230         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
38231         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
38232         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
38233         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
38234         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
38235         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
38236         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
38237         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
38238         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
38239         (nonspacing_table_ind): Update.
38240         * tests/uniwidth/test-uc_width2.sh: Update expected result.
38241
38242         Update to Unicode 5.1.0.
38243         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
38244         code transform.
38245         * lib/uniname/uniname.c (unicode_character_name,
38246         unicode_name_character): Add the range 0x1Fxxx to the code transform.
38247         * lib/uniname/uninames.h: Regenerated.
38248         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
38249
38250 2009-02-07  Bruno Haible  <bruno@clisp.org>
38251
38252         Merge gen-ctype and gen-lbrk into a single program.
38253         * lib/gen-uni-tables.c: New file, incorporating
38254         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
38255         Add directory prefixes to the names of the generated files.
38256         * lib/unictype/gen-ctype.c: Remove file.
38257         * lib/unilbrk/gen-lbrk.c: Remove file.
38258         * modules/gen-uni-tables: New file.
38259         * modules/unictype/gen-ctype: Remove file.
38260         * modules/unilbrk/gen-lbrk: Remove file.
38261
38262 2009-02-07  Bruno Haible  <bruno@clisp.org>
38263
38264         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
38265
38266         New module 'unistr/u32-strcoll'.
38267         * modules/unistr/u32-strcoll: New file.
38268         * lib/unistr/u32-strcoll.c: New file.
38269
38270         New module 'unistr/u16-strcoll'.
38271         * modules/unistr/u16-strcoll: New file.
38272         * lib/unistr/u16-strcoll.c: New file.
38273
38274         New module 'unistr/u8-strcoll'.
38275         * modules/unistr/u8-strcoll: New file.
38276         * lib/unistr/u8-strcoll.c: New file.
38277         * lib/unistr/u-strcoll.h: New file.
38278
38279 2009-02-07  Bruno Haible  <bruno@clisp.org>
38280
38281         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
38282         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38283         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38284         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
38285         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
38286         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
38287
38288 2009-02-07  Bruno Haible  <bruno@clisp.org>
38289
38290         Make 64-bit clean.
38291         * lib/unictype/gen-ctype.c (output_predicate, output_category,
38292         output_combclass, output_bidi_category, output_decimal_digit,
38293         output_digit, output_numeric, output_mirror, output_scripts,
38294         output_ident_category): Use proper width specifier in format strings.
38295
38296 2009-02-07  Bruno Haible  <bruno@clisp.org>
38297
38298         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
38299         failure behaviour.
38300
38301 2009-02-07  Jim Meyering  <meyering@redhat.com>
38302
38303         regex: avoid compilation failure with upcoming gcc-4.4
38304         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
38305         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
38306         "... error: integer overflow in preprocessor expression".
38307
38308 2009-02-05  Ben Pfaff  <blp@gnu.org>
38309
38310         Fix link errors on Windows when close module is used.
38311         * modules/close: Add $(LIB_CLOSE) to Link section.
38312         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
38313         $(LIB_CLOSE) on Windows.
38314
38315 2009-02-05  Jim Meyering  <meyering@redhat.com>
38316
38317         still avoid unused-parameter warnings, but do it cleanly
38318         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
38319         (get_fs_usage): Cast to void instead.
38320         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
38321         (dev_from_mount_options, read_file_system_list): Cast to void.
38322         Prompted by Bruno Haible.
38323
38324 2009-02-04  Jim Meyering  <meyering@redhat.com>
38325
38326         fsusage.c: correct copyright year
38327         * lib/fsusage.c: Reflect year in which the change is pushed into
38328
38329         avoid misc. warnings
38330         * lib/fsusage.c (UNUSED_PARAM): Define.
38331         (get_fs_usage): Mark parameter "disk" as unused.
38332         * lib/getugroups.c (getgrent): Use "void" in prototype.
38333         * lib/mountlist.c: Mark unused parameters.
38334         (read_file_system_list): Declare a local with "const".
38335         * lib/nanosleep.c (getnow): Declare static.
38336         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
38337
38338         dirfd: set errno upon failure
38339         * lib/dirfd.c: Include <errno.h>.
38340         Set errno to ENOTSUP when returning -1.
38341         * modules/dirfd (Depends-on): Add errno.
38342         Suggested by John Kodis <kodis@comcast.net>.
38343
38344 2009-02-01  Bruno Haible  <bruno@clisp.org>
38345
38346         Don't assume sizeof (long) >= sizeof (void *).
38347         * lib/memcmp.c: Include stdint.h.
38348         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
38349         srcp2 to 'const byte *'.
38350         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
38351         types to uintptr_t.
38352         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
38353         * modules/memcmp (Depends-on): Add stdint.
38354         Reported by Ozkan Sezer <sezeroz@gmail.com>.
38355
38356 2009-01-30  Eric Blake  <ebb9@byu.net>
38357
38358         fix more require-before-expand issues
38359         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
38360         expand, AC_PROG_AWK.
38361         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
38362
38363 2009-01-28  Eric Blake  <ebb9@byu.net>
38364
38365         version-etc: use consistent URL formatting
38366         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
38367         Improve formatting.  Use fputs for string without %.
38368
38369 2009-01-28  Jim Meyering  <meyering@redhat.com>
38370
38371         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
38372         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
38373         "underquoted definition of NAME" from autoconf-2.59.
38374
38375 2009-01-28  Bruno Haible  <bruno@clisp.org>
38376
38377         * doc/gnulib.texi: Add "Obsolete modules" to index.
38378
38379 2009-01-28  Jim Meyering  <meyering@redhat.com>
38380
38381         useless-if-before-free: recognize more variants
38382         * build-aux/useless-if-before-free: Also recognize e.g.,
38383         if (NULL != p) free (p);
38384
38385 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
38386
38387         test-getaddrinfo: skip (don't fail) this test when there's no network
38388         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
38389         on the presumption that it means you lack network access.
38390
38391 2009-01-26  Jim Meyering  <meyering@redhat.com>
38392
38393         fflush: avoid warnings on modern systems
38394         * lib/fflush.c (rpl_fflush): Move declarations of locals,
38395         pos and result, into scopes where they're used.
38396
38397 2009-01-26  Eric Blake  <ebb9@byu.net>
38398
38399         Silence warning reintroduced by recent extensions patch.
38400         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
38401         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
38402         autoconf.
38403
38404         Backport improved autoconf semantics of AC_DEFUN_ONCE.
38405         * m4/00gnulib.m4: New file.
38406         * gnulib-tool (func_get_filelist): Always use it.
38407         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
38408         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
38409
38410 2009-01-25  Bruno Haible  <bruno@clisp.org>
38411
38412         Make test-quotearg work on MacOS X and AIX.
38413         * tests/test-quotearg.sh: New file.
38414         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
38415         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
38416         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
38417         include <libintl.h>.
38418         (fake_locale): Remove variable.
38419         (gettext, dgettext, dcgettext): Remove functions.
38420         (main): Instead of setting a fake locale, set a real locale. Call
38421         textdomain and bindtextdomain.
38422         * modules/quotearg-tests (Files): Add the new files.
38423         (Depends-on): Add gettext, setenv, unsetenv.
38424         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
38425         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
38426         Augment TESTS_ENVIRONMENT.
38427
38428 2009-01-25  Bruno Haible  <bruno@clisp.org>
38429
38430         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
38431         fr_FR.ISO8859-1 locale on MacOS X.
38432         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
38433         ja_JP.eucJP locale on MacOS X.
38434         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
38435         zh_CN.GB18030 locale on MacOS X.
38436
38437 2009-01-25  Bruno Haible  <bruno@clisp.org>
38438
38439         Avoid link errors on MacOS X 10.3.
38440         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
38441         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38442
38443 2009-01-25  Bruno Haible  <bruno@clisp.org>
38444
38445         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38446         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
38447         * modules/pipe (Files): Remove m4/posix_spawn.m4.
38448         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38449         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
38450         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38451         posix_spawnattr_init, posix_spawnattr_setsigmask,
38452         posix_spawnattr_setflags, posix_spawnattr_destroy.
38453
38454         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38455         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
38456         * modules/execute (Files): Remove m4/posix_spawn.m4.
38457         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38458         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38459         posix_spawnattr_init, posix_spawnattr_setsigmask,
38460         posix_spawnattr_setflags, posix_spawnattr_destroy.
38461
38462 2009-01-25  Bruno Haible  <bruno@clisp.org>
38463
38464         * lib/glthread/threadlib.c: Include <stdlib.h>.
38465
38466 2009-01-25  Bruno Haible  <bruno@clisp.org>
38467
38468         * lib/glthread/threadlib.c (dummy): New declaration.
38469
38470 2009-01-25  Bruno Haible  <bruno@clisp.org>
38471
38472         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
38473         multibyte characters also for the GB18030 encoding. Don't crash when
38474         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
38475
38476 2009-01-25  Bruno Haible  <bruno@clisp.org>
38477
38478         Avoid redefining 'struct random_data' on OSF/1 5.1.
38479         * lib/stdlib.in.h: Include <random.h> if it exists.
38480         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
38481         HAVE_RANDOM_H. Include <random.h> when testing whether
38482         'struct random_data' exists.
38483         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
38484
38485 2009-01-25  Bruno Haible  <bruno@clisp.org>
38486
38487         Don't install charset.alias on MacOS X >= 10.3.
38488         * lib/localcharset.c (DARWIN7): New macro.
38489         (get_charset_aliases): Hardcode the result for Darwin7.
38490         * modules/localcharset (install-exec-local): Don't install
38491         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
38492
38493 2009-01-25  Bruno Haible  <bruno@clisp.org>
38494
38495         Don't install charset.alias on mingw and Cygwin.
38496         * modules/localcharset (install-exec-local): Don't install
38497         charset.alias on mingw and Cygwin, if the file does not yet exist.
38498         The result for these platforms is hardcoded in localcharset.c.
38499
38500 2009-01-25  Bruno Haible  <bruno@clisp.org>
38501
38502         Make it possible again to use AC_GNU_SOURCE together with gnulib.
38503         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
38504         before requiring AC_USE_SYSTEM_EXTENSIONS.
38505
38506 2009-01-25  Jim Meyering  <meyering@redhat.com>
38507
38508         c-strtod: avoid warnings
38509         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
38510         "assignment discards qualifiers from pointer target type" warnings.
38511
38512 2009-01-24  Bruno Haible  <bruno@clisp.org>
38513
38514         Add support for non-UTF-8 locales on MacOS X.
38515         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
38516         canonical encodings. For Darwin 7 and newer, don't map traditional
38517         encodings to UTF-8.
38518         Reported by Vincent Lefevre <vincent@vinc17.org>
38519         at <http://savannah.gnu.org/bugs/?25235>.
38520
38521 2009-01-24  Bruno Haible  <bruno@clisp.org>
38522
38523         * doc/gnulib.texi (Obsolete modules): New section.
38524         Reported by Mike Frysinger <vapier@gentoo.org>.
38525
38526 2009-01-24  Bruno Haible  <bruno@clisp.org>
38527
38528         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
38529         (%.dvi): New rule.
38530
38531 2009-01-24  Bruno Haible  <bruno@clisp.org>
38532
38533         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
38534         Reported by Eric Blake.
38535
38536 2009-01-24  Bruno Haible  <bruno@clisp.org>
38537
38538         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
38539         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
38540         Reported by Gary V. Vaughan <gary@gnu.org>.
38541
38542 2009-01-24  Bruno Haible  <bruno@clisp.org>
38543
38544         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
38545
38546 2009-01-23  Bruno Haible  <bruno@clisp.org>
38547
38548         Make c-strtod, c-strtold usable in libraries.
38549         * lib/c-strtod.c: Include string.h instead of xalloc.h.
38550         (C_STRTOD): Call strdup instead of xstrdup.
38551         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
38552         * modules/c-strtold (Depends-on): Likewise.
38553         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
38554         * NEWS: Mention the change.
38555         Reported by Michael Gold <mgold@ncf.ca>.
38556
38557 2009-01-23  Jim Meyering  <meyering@redhat.com>
38558
38559         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
38560         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
38561         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
38562
38563 2009-01-23  Simon Josefsson  <simon@josefsson.org>
38564
38565         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
38566         GNU CoreUtils.
38567         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
38568         * modules/version-etc (Description): Update.
38569
38570 2009-01-22  Bruno Haible  <bruno@clisp.org>
38571
38572         Cache the C locale object.
38573         * lib/c-strtod.c (c_locale_cache): New variable.
38574         (c_locale): New function.
38575         (C_STRTOD): Use it, and don't call freelocale.
38576         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
38577         Suggested by Paolo Bonzini.
38578
38579 2009-01-21  Bruno Haible  <bruno@clisp.org>
38580
38581         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
38582         conditions other than overflow.
38583
38584 2009-01-21  Bruno Haible  <bruno@clisp.org>
38585
38586         * lib/c-strtod.c: Include errno.h.
38587         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
38588         value from STRTOD_L and STRTOD.
38589
38590 2009-01-21  Bruno Haible  <bruno@clisp.org>
38591         and Jim Meyering  <meyering@redhat.com>
38592
38593         nanosleep: skip configure test (fail it) for apple universal builds
38594         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
38595         universal builds, assume that nanosleep does not work.
38596         * modules/nanosleep (Depends-on): Add multiarch.
38597
38598         mktime: skip configure test (fail it) for apple universal builds
38599         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
38600         universal builds, assume that mktime does not work.
38601         * modules/mktime (Depends-on): Add multiarch.
38602
38603 2009-01-21  Eric Blake  <ebb9@byu.net>
38604
38605         multiarch: avoid expand-before-require warning
38606         * modules/multiarch (configure.ac): Require, rather than expand,
38607         gl_MULTIARCH.
38608         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
38609         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
38610         enforce that all clients require it.  Partial reversion of
38611         2008-12-29 patch.
38612
38613         error: avoid expand-before-require warning
38614         * modules/errno (configure.ac): Require, rather than expand,
38615         gl_HEADER_ERRNO_H.
38616         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
38617         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
38618         enforce that all clients require it.
38619
38620         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
38621         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
38622         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
38623         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
38624
38625 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
38626
38627         Revert:
38628         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38629
38630         regex: do not depend on obsolete modules.
38631         * modules/regex: Remove memcmp and memmove.
38632
38633 2009-01-20  Bruno Haible  <bruno@clisp.org>
38634
38635         Make the 'link' module link on Windows NT 4.
38636         * lib/link.c (_WIN32_WINNT): Don't define.
38637         (CreateHardLinkFuncType): New type.
38638         (CreateHardLinkFunc, initialized): New variables.
38639         (initialize): New function.
38640         (link): Invoke CreateHardLink indirectly through the function pointer.
38641
38642 2009-01-20  Bruno Haible  <bruno@clisp.org>
38643
38644         Fix compilation failure on mingw.
38645         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
38646
38647 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
38648
38649         * doc/c-strtod.texi: Mention a couple of restrictions.
38650
38651 2009-01-20  Jim Meyering  <meyering@redhat.com>
38652
38653         gettimeofday: move more declarations out of functions
38654         * lib/gettimeofday.c: Move extern declarations of tzset and
38655         gmtime out of containing functions.  Prompted by Bruno Haible.
38656
38657 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38658
38659         regex: do not depend on obsolete modules.
38660         * modules/regex: Remove memcmp and memmove.
38661
38662 2009-01-19  Bruno Haible  <bruno@clisp.org>
38663
38664         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38665         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
38666         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38667         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
38668         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
38669
38670 2009-01-19  Bruno Haible  <bruno@clisp.org>
38671
38672         * tests/test-link.c: Include <errno.h>.
38673         (main): Exit with code 77 when a hard link cannot be created due to
38674         the file system.
38675         * tests/test-link.sh: Skip test when a hard link cannot be created due
38676         to the file system.
38677         Suggested by Eric Blake.
38678
38679 2009-01-19  Martin Lambers  <marlam@marlam.de>
38680
38681         * modules/link-tests: New file.
38682         * tests/test-link.sh: New file.
38683         * tests/test-link.c: New file.
38684
38685 2009-01-19  Eric Blake  <ebb9@byu.net>
38686
38687         doc: mention another function added in cygwin 1.7.0
38688         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
38689         Another new function in cygwin 1.7.
38690
38691 2009-01-19  Bruno Haible  <bruno@clisp.org>
38692
38693         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38694         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
38695         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
38696         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38697         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38698         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
38699         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
38700         * m4/md4.m4 (gl_MD4): Likewise.
38701         * m4/md5.m4 (gl_MD5): Likewise.
38702         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
38703         * m4/sha1.m4 (gl_SHA1): Likewise.
38704         * m4/sha256.m4 (gl_SHA256): Likewise.
38705         * m4/sha512.m4 (gl_SHA512): Likewise.
38706
38707 2009-01-19  Bruno Haible  <bruno@clisp.org>
38708
38709         * modules/uniname/uniname-tests (Depends-on): Add progname.
38710         * tests/uniname/test-uninames.c: Include progname.h.
38711         (main): Call set_program_name.
38712
38713         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
38714         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
38715         (main): Call set_program_name.
38716
38717         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
38718         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
38719         (main): Call set_program_name.
38720
38721         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
38722         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
38723         (main): Call set_program_name.
38724
38725         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
38726         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
38727         (main): Call set_program_name.
38728
38729         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
38730         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
38731         (main): Call set_program_name.
38732
38733         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
38734         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
38735         (main): Call set_program_name.
38736
38737         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
38738         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
38739         (main): Call set_program_name.
38740
38741         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
38742         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
38743         (main): Call set_program_name.
38744
38745 2009-01-19  Eric Blake  <ebb9@byu.net>
38746
38747         test-unistd: test previous patch
38748         * tests/test-unistd.c: Test *_FILENO macros.
38749
38750         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
38751         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38752         Guarantee a definition.
38753         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
38754         * modules/unistd-safer (Depends-on): Add dependency on unistd.
38755         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
38756         * lib/dup-safer.c (STDERR_FILENO): Likewise.
38757         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38758         Likewise.
38759         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
38760         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
38761         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38762         Likewise.
38763         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
38764         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
38765         (STDERR_FILENO): Likewise.
38766         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
38767         (STDERR_FILENO): Likewise.
38768         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
38769         (STDERR_FILENO): Likewise.
38770         Reported by Elbert Pol.
38771
38772 2009-01-19  Eric Blake  <ebb9@byu.net>
38773
38774         doc: mention more functions added in cygwin 1.7.0
38775         * doc/posix-functions/abort.texi (abort): Update wording related
38776         to cygwin.
38777         * doc/posix-functions/daylight.texi (daylight): Likewise.
38778         * doc/posix-functions/optarg.texi (optarg): Likewise.
38779         * doc/posix-functions/optarg.texi (opterr): Likewise.
38780         * doc/posix-functions/optarg.texi (optind): Likewise.
38781         * doc/posix-functions/optarg.texi (optopt): Likewise.
38782         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
38783         worked in 1.5.x, and was withdrawn in 1.7.
38784         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38785         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
38786         cygwin versions.
38787         * doc/posix-functions/perror.texi (perror): Likewise.
38788         * doc/posix-functions/printf.texi (printf): Likewise.
38789         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
38790         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
38791         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38792         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38793         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38794         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
38795         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38796         Likewise.
38797         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38798         Likewise.
38799         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
38800         this function.
38801         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
38802         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
38803         Likewise.
38804         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
38805         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
38806         * doc/posix-functions/confstr.texi (confstr): Likewise.
38807         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
38808         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
38809         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
38810         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
38811         * doc/posix-functions/fputws.texi (fputws): Likewise.
38812         * doc/posix-functions/fwide.texi (fwide): Likewise.
38813         * doc/posix-functions/getwc.texi (getwc): Likewise.
38814         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
38815         * doc/posix-functions/putwc.texi (putwc): Likewise.
38816         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38817         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
38818         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
38819         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38820         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
38821         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
38822         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
38823         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
38824         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
38825         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
38826         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
38827
38828 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38829
38830         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
38831         * lib/ioctl.c: Include <sys/ioctl.h>.
38832
38833 2009-01-19  Simon Josefsson  <simon@josefsson.org>
38834
38835         * modules/getdate-tests (Depends-on): Add progname.
38836         * tests/test-getdate.c: Use progname module, to avoid link errors
38837         on non-glibc systems.
38838
38839 2009-01-18  Simon Josefsson  <simon@josefsson.org>
38840
38841         * modules/filenamecat-tests (Depends-on): Add progname.
38842         * modules/fstrcmp-tests (Depends-on): Likewise.
38843
38844         * tests/test-filenamecat.c: Use progname module, to avoid link
38845         errors on non-glibc systems.
38846         * tests/test-fstrcmp.c: Likewise.
38847
38848 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38849
38850         gettimeofday: avoid warning: nested extern declaration of 'localtime'
38851         * lib/gettimeofday.c: Move extern declaration out of function.
38852
38853 2009-01-18  Bruno Haible  <bruno@clisp.org>
38854
38855         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
38856         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
38857         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
38858
38859 2009-01-18  Bruno Haible  <bruno@clisp.org>
38860
38861         * lib/strftime.c (MEMPCPY): Remove unused macro.
38862         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
38863
38864 2009-01-18  Martin Lambers  <marlam@marlam.de>
38865
38866         New module 'link'.
38867         * lib/unistd.in.h (link): New declaration.
38868         * lib/link.c: New file.
38869         * m4/link.m4: New file.
38870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
38871         HAVE_LINK.
38872         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
38873         * modules/link: New file.
38874         * doc/posix-functions/link.texi: Mention the new module.
38875
38876 2009-01-18  Bruno Haible  <bruno@clisp.org>
38877
38878         * tests/test-avltree_list.c (main): Call set_program_name.
38879         * tests/test-avltree_oset.c (main): Likewise.
38880         * tests/test-obstack-printf.c: Include progname.h.
38881         (main): Call set_program_name.
38882         * tests/test-quotearg.c: Include progname.h.
38883         (main): Call set_program_name.
38884         * tests/test-xmemdup0.c: Include progname.h.
38885         (main): Call set_program_name.
38886
38887 2009-01-18  Bruno Haible  <bruno@clisp.org>
38888
38889         New module 'alphasort'.
38890         * lib/dirent.in.h (alphasort): New declaration.
38891         * lib/alphasort.c: New file, from glibc with modifications.
38892         * m4/alphasort.m4: New file.
38893         * modules/alphasort: New file.
38894         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
38895         HAVE_ALPHASORT.
38896         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
38897         HAVE_ALPHASORT.
38898         * doc/posix-functions/alphasort.texi: Mention the new module and the
38899         portability problems.
38900
38901 2009-01-18  Bruno Haible  <bruno@clisp.org>
38902
38903         New module 'scandir'.
38904         * lib/dirent.in.h (scandir): New declaration.
38905         * lib/scandir.c: New file, from glibc with modifications.
38906         * m4/scandir.m4: New file.
38907         * modules/scandir: New file.
38908         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38909         HAVE_SCANDIR.
38910         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38911         HAVE_SCANDIR.
38912         * doc/posix-functions/scandir.texi: Mention the new module and the
38913         portability problems.
38914
38915 2009-01-17  Bruno Haible  <bruno@clisp.org>
38916
38917         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38918         Update documentation.
38919         (func_remove_suffix): Escape all dots in the suffix. Update
38920         documentation.
38921         (func_filter_filelist): Update documentation.
38922         Reported by Ralf Wildenhues.
38923
38924 2009-01-17  Bruno Haible  <bruno@clisp.org>
38925
38926         * modules/dprintf-posix-tests: New file.
38927         * tests/test-dprintf-posix.sh: New file.
38928         * tests/test-dprintf-posix.c: New file.
38929
38930         New modules 'dprintf', 'dprintf-posix'.
38931         * lib/stdio.in.h (dprintf): New declaration.
38932         * lib/dprintf.c: New file.
38933         * m4/dprintf.m4: New file.
38934         * m4/dprintf-posix.m4: New file.
38935         * modules/dprintf: New file.
38936         * modules/dprintf-posix: New file.
38937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38938         HAVE_DPRINTF, REPLACE_DPRINTF.
38939         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38940         HAVE_DPRINTF, REPLACE_DPRINTF.
38941         * doc/posix-functions/dprintf.texi: Mention the new modules.
38942
38943 2009-01-17  Bruno Haible  <bruno@clisp.org>
38944
38945         * modules/vdprintf-posix-tests: New file.
38946         * tests/test-vdprintf-posix.sh: New file.
38947         * tests/test-vdprintf-posix.c: New file.
38948
38949         New modules 'vdprintf', 'vdprintf-posix'.
38950         * lib/stdio.in.h (vdprintf): New declaration.
38951         * lib/vdprintf.c: New file.
38952         * m4/vdprintf.m4: New file.
38953         * m4/vdprintf-posix.m4: New file.
38954         * modules/vdprintf: New file.
38955         * modules/vdprintf-posix: New file.
38956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38957         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38958         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38959         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38960         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38961
38962 2009-01-17  Bruno Haible  <bruno@clisp.org>
38963
38964         Fix replacement of fopen on mingw.
38965         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38966         mingw.
38967
38968 2009-01-17  Bruno Haible  <bruno@clisp.org>
38969
38970         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38971         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38972
38973 2009-01-17  Bruno Haible  <bruno@clisp.org>
38974
38975         Avoid test-fflush2.sh failure on mingw.
38976         * tests/test-fflush2.c: Include binary-io.h.
38977         (main): Put standard input into binary mode.
38978         * modules/fflush-tests (Depends-on): Add binary-io.
38979
38980 2009-01-17  Bruno Haible  <bruno@clisp.org>
38981
38982         * lib/wchar.in.h: In another particular situation, include only the
38983         system's <wchar.h> file.
38984         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38985         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38986         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38987
38988 2009-01-17  Bruno Haible  <bruno@clisp.org>
38989
38990         Support for stripping executables in --enable-relocatable.
38991         * build-aux/install-reloc: Expect one more argument, or an environment
38992         variable RELOC_STRIP_PROG. If set, strip the destination program and
38993         its wrapper.
38994         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38995         RELOC_STRIP_PROG.
38996         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38997         to set RELOCATABLE_STRIP.
38998         * NEWS: Mention the new Makefile requirement.
38999
39000 2009-01-17  Bruno Haible  <bruno@clisp.org>
39001
39002         * build-aux/install-reloc: Remove debugging information left over by
39003         C compiler on MacOS X.
39004
39005 2009-01-17  Bruno Haible  <bruno@clisp.org>
39006
39007         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
39008         * lib/progreloc.c (find_executable): Fix type of pointer passed to
39009         _NSGetExecutablePath.
39010
39011 2009-01-16  Jim Meyering  <meyering@redhat.com>
39012
39013         strerror: avoid warnings about discarding "const"
39014         * lib/strerror.c (rpl_strerror): Instead of returning a const
39015         string from each and every "case", use a variable, and add a single
39016         cast after the switch.
39017
39018 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
39019
39020         * lib/arpa_inet.in.h: Add extern "C" block for C++.
39021
39022 2009-01-16  Bruno Haible  <bruno@clisp.org>
39023
39024         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
39025         array initializer syntax that also works in C++ mode.
39026         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39027
39028 2009-01-16  Jim Meyering  <meyering@redhat.com>
39029
39030         poll: suppress a warning
39031         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
39032         to ignore "...unsigned expression < 0 is always false" warnings.
39033
39034 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
39035
39036         poll: remove declarations of unused variables
39037         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
39038         sockbuf and optlen.
39039
39040 2009-01-15  Bruno Haible  <bruno@clisp.org>
39041
39042         Make fflush-after-ungetc POSIX compliant on BSD systems.
39043         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
39044         (clear_ungetc_buffer): Implement also for other systems.
39045         (rpl_fflush): On glibc systems, invoke
39046         clear_ungetc_buffer_preserving_position. Otherwise, invoke
39047         clear_ungetc_buffer after fetching the stream's position, not before.
39048
39049 2009-01-15  Bruno Haible  <bruno@clisp.org>
39050
39051         Make fflush-after-ungetc POSIX compliant on glibc systems.
39052         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
39053         after ungetc.
39054         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
39055         (rpl_fflush): On glibc systems, simply call the system's fflush
39056         function after clearing the ungetc buffer.
39057         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
39058         Instead, lseek only to the end of file, then use the system's fseeko
39059         for the rest. On glibc systems, reset the EOF indicator bit.
39060
39061 2009-01-15  Jim Meyering  <meyering@redhat.com>
39062
39063         openmp.m4: revert quote-adding change, for portability to older autoconf
39064         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
39065         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
39066         Simon Josefsson noticed the problem when using autoconf-2.61.
39067
39068 2009-01-15  Bruno Haible  <bruno@clisp.org>
39069
39070         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
39071         * tests/test-fflush2.c (ASSERT): Always fail.
39072         (main): Add two tests for fflush() after ungetc(), taking into account
39073         the Austin Group's clarification.
39074         Suggested by Eric Blake.
39075
39076 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
39077
39078         mktime.m4: remove K&R-style function prototypes
39079         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
39080         for the Sun C++ compiler.
39081
39082 2009-01-14  Bruno Haible  <bruno@clisp.org>
39083
39084         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
39085         while including <wchar.h>.
39086         * lib/wchar.in.h: In two particular situations on HP-UX, include only
39087         the system's <wchar.h> file.
39088         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39089
39090 2009-01-14  Bruno Haible  <bruno@clisp.org>
39091
39092         * m4/csharp.m4: Don't mention gettext on the serial number line.
39093         * m4/csharpexec.m4: Likewise.
39094         * m4/eaccess.m4: Likewise.
39095         * m4/javaexec.m4: Likewise.
39096         * m4/sig_atomic_t.m4: Likewise.
39097         * m4/tmpdir.m4: Likewise.
39098         * m4/intldir.m4: Bump gettext version.
39099         * m4/lib-ld.m4: Likewise.
39100
39101 2009-01-14  Bruno Haible  <bruno@clisp.org>
39102
39103         * lib/progname.c (set_program_name): Add more comments.
39104         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39105
39106 2009-01-14  Simon Josefsson  <simon@josefsson.org>
39107
39108         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
39109         were sys/stat.h does not define it.
39110
39111 2009-01-14  Jim Meyering  <meyering@redhat.com>
39112
39113         many *.m4 files: improve m4 quoting
39114         99% of this change was performed by running the following commands:
39115         git ls-files | grep '\.m4$' | xargs perl -pi \
39116           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
39117           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39118           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39119           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
39120         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
39121         The remainder were to add Copyright dates, increment serial numbers,
39122         undo some changes in comments, exclude m4/intl.m4, and add quotes
39123         around the "1" in ",1" where the unusual spacing prohibited the
39124         above regexps from doing the job.  For more details, see
39125         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
39126         * m4/acl.m4: Modified.
39127         * m4/afs.m4: Likewise.
39128         * m4/alloca.m4: Likewise.
39129         * m4/argp.m4: Likewise.
39130         * m4/argz.m4: Likewise.
39131         * m4/atexit.m4: Likewise.
39132         * m4/bison-i18n.m4: Likewise.
39133         * m4/bison.m4: Likewise.
39134         * m4/byteswap.m4: Likewise.
39135         * m4/c-stack.m4: Likewise.
39136         * m4/c-strtod.m4: Likewise.
39137         * m4/calloc.m4: Likewise.
39138         * m4/canonicalize-lgpl.m4: Likewise.
39139         * m4/chown.m4: Likewise.
39140         * m4/clock_time.m4: Likewise.
39141         * m4/codeset.m4: Likewise.
39142         * m4/copy-file.m4: Likewise.
39143         * m4/csharp.m4: Likewise.
39144         * m4/csharpcomp.m4: Likewise.
39145         * m4/csharpexec.m4: Likewise.
39146         * m4/d-ino.m4: Likewise.
39147         * m4/d-type.m4: Likewise.
39148         * m4/dirfd.m4: Likewise.
39149         * m4/double-slash-root.m4: Likewise.
39150         * m4/eaccess.m4: Likewise.
39151         * m4/eealloc.m4: Likewise.
39152         * m4/environ.m4: Likewise.
39153         * m4/errno_h.m4: Likewise.
39154         * m4/euidaccess.m4: Likewise.
39155         * m4/execute.m4: Likewise.
39156         * m4/fatal-signal.m4: Likewise.
39157         * m4/fchdir.m4: Likewise.
39158         * m4/fcntl_h.m4: Likewise.
39159         * m4/fileblocks.m4: Likewise.
39160         * m4/filenamecat.m4: Likewise.
39161         * m4/findprog.m4: Likewise.
39162         * m4/flexmember.m4: Likewise.
39163         * m4/fnmatch.m4: Likewise.
39164         * m4/fopen.m4: Likewise.
39165         * m4/fpending.m4: Likewise.
39166         * m4/fprintf-posix.m4: Likewise.
39167         * m4/free.m4: Likewise.
39168         * m4/frexp.m4: Likewise.
39169         * m4/frexpl.m4: Likewise.
39170         * m4/fsusage.m4: Likewise.
39171         * m4/ftruncate.m4: Likewise.
39172         * m4/gc-camellia.m4: Likewise.
39173         * m4/gc-random.m4: Likewise.
39174         * m4/gc.m4: Likewise.
39175         * m4/getaddrinfo.m4: Likewise.
39176         * m4/getcwd-abort-bug.m4: Likewise.
39177         * m4/getcwd-path-max.m4: Likewise.
39178         * m4/getdate.m4: Likewise.
39179         * m4/getdomainname.m4: Likewise.
39180         * m4/getgroups.m4: Likewise.
39181         * m4/gethostname.m4: Likewise.
39182         * m4/gethrxtime.m4: Likewise.
39183         * m4/getline.m4: Likewise.
39184         * m4/getloadavg.m4: Likewise.
39185         * m4/getndelim2.m4: Likewise.
39186         * m4/getpass.m4: Likewise.
39187         * m4/gettext.m4: Likewise.
39188         * m4/gettime.m4: Likewise.
39189         * m4/gettimeofday.m4: Likewise.
39190         * m4/gnulib-common.m4: Likewise.
39191         * m4/group-member.m4: Likewise.
39192         * m4/host-os.m4: Likewise.
39193         * m4/iconv.m4: Likewise.
39194         * m4/iconv_open.m4: Likewise.
39195         * m4/inet_ntop.m4: Likewise.
39196         * m4/inet_pton.m4: Likewise.
39197         * m4/inline.m4: Likewise.
39198         * m4/intldir.m4: Likewise.
39199         * m4/intlmacosx.m4: Likewise.
39200         * m4/intmax.m4: Likewise.
39201         * m4/intmax_t.m4: Likewise.
39202         * m4/inttypes.m4: Likewise.
39203         * m4/inttypes_h.m4: Likewise.
39204         * m4/inttypes-pri.m4: Likewise.
39205         * m4/isapipe.m4: Likewise.
39206         * m4/isnand.m4: Likewise.
39207         * m4/isnanf.m4: Likewise.
39208         * m4/isnanl.m4: Likewise.
39209         * m4/javacomp.m4: Likewise.
39210         * m4/javaexec.m4: Likewise.
39211         * m4/jm-winsz1.m4: Likewise.
39212         * m4/jm-winsz2.m4: Likewise.
39213         * m4/lchown.m4: Likewise.
39214         * m4/lcmessage.m4: Likewise.
39215         * m4/ldexpl.m4: Likewise.
39216         * m4/lib-ld.m4: Likewise.
39217         * m4/lib-link.m4: Likewise.
39218         * m4/libsigsegv.m4: Likewise.
39219         * m4/link-follow.m4: Likewise.
39220         * m4/localcharset.m4: Likewise.
39221         * m4/locale-fr.m4: Likewise.
39222         * m4/locale-ja.m4: Likewise.
39223         * m4/locale-tr.m4: Likewise.
39224         * m4/locale-zh.m4: Likewise.
39225         * m4/lock.m4: Likewise.
39226         * m4/longlong.m4: Likewise.
39227         * m4/ls-mntd-fs.m4: Likewise.
39228         * m4/lstat.m4: Likewise.
39229         * m4/malloc.m4: Likewise.
39230         * m4/mathl.m4: Likewise.
39231         * m4/mbrtowc.m4: Likewise.
39232         * m4/mbstate_t.m4: Likewise.
39233         * m4/mbswidth.m4: Likewise.
39234         * m4/memchr.m4: Likewise.
39235         * m4/memcmp.m4: Likewise.
39236         * m4/memcpy.m4: Likewise.
39237         * m4/memmem.m4: Likewise.
39238         * m4/memmove.m4: Likewise.
39239         * m4/mempcpy.m4: Likewise.
39240         * m4/memrchr.m4: Likewise.
39241         * m4/memset.m4: Likewise.
39242         * m4/minmax.m4: Likewise.
39243         * m4/mkdir-slash.m4: Likewise.
39244         * m4/mkdtemp.m4: Likewise.
39245         * m4/mktime.m4: Likewise.
39246         * m4/mmap-anon.m4: Likewise.
39247         * m4/mountlist.m4: Likewise.
39248         * m4/nanosleep.m4: Likewise.
39249         * m4/nls.m4: Likewise.
39250         * m4/nocrash.m4: Likewise.
39251         * m4/open.m4: Likewise.
39252         * m4/openat.m4: Likewise.
39253         * m4/openmp.m4: Likewise.
39254         * m4/pathmax.m4: Likewise.
39255         * m4/perl.m4: Likewise.
39256         * m4/physmem.m4: Likewise.
39257         * m4/pipe.m4: Likewise.
39258         * m4/po.m4: Likewise.
39259         * m4/poll.m4: Likewise.
39260         * m4/posixtm.m4: Likewise.
39261         * m4/posixver.m4: Likewise.
39262         * m4/printf-frexp.m4: Likewise.
39263         * m4/printf-frexpl.m4: Likewise.
39264         * m4/printf-posix.m4: Likewise.
39265         * m4/printf-posix-rpl.m4: Likewise.
39266         * m4/printf.m4: Likewise.
39267         * m4/progtest.m4: Likewise.
39268         * m4/putenv.m4: Likewise.
39269         * m4/readline.m4: Likewise.
39270         * m4/readlink.m4: Likewise.
39271         * m4/readutmp.m4: Likewise.
39272         * m4/realloc.m4: Likewise.
39273         * m4/regex.m4: Likewise.
39274         * m4/relocatable.m4: Likewise.
39275         * m4/relocatable-lib.m4: Likewise.
39276         * m4/rename-dest-slash.m4: Likewise.
39277         * m4/rename.m4: Likewise.
39278         * m4/rmdir-errno.m4: Likewise.
39279         * m4/rmdir.m4: Likewise.
39280         * m4/roundf.m4: Likewise.
39281         * m4/roundl.m4: Likewise.
39282         * m4/rpmatch.m4: Likewise.
39283         * m4/save-cwd.m4: Likewise.
39284         * m4/selinux-selinux-h.m4: Likewise.
39285         * m4/setenv.m4: Likewise.
39286         * m4/settime.m4: Likewise.
39287         * m4/sig2str.m4: Likewise.
39288         * m4/sig_atomic_t.m4: Likewise.
39289         * m4/signalblocking.m4: Likewise.
39290         * m4/signbit.m4: Likewise.
39291         * m4/sigpipe.m4: Likewise.
39292         * m4/sockets.m4: Likewise.
39293         * m4/sockpfaf.m4: Likewise.
39294         * m4/st_dm_mode.m4: Likewise.
39295         * m4/stat-time.m4: Likewise.
39296         * m4/stdbool.m4: Likewise.
39297         * m4/stdint.m4: Likewise.
39298         * m4/stdint_h.m4: Likewise.
39299         * m4/stpcpy.m4: Likewise.
39300         * m4/stpncpy.m4: Likewise.
39301         * m4/strcase.m4: Likewise.
39302         * m4/strchrnul.m4: Likewise.
39303         * m4/strcspn.m4: Likewise.
39304         * m4/strdup.m4: Likewise.
39305         * m4/strftime.m4: Likewise.
39306         * m4/strndup.m4: Likewise.
39307         * m4/strnlen.m4: Likewise.
39308         * m4/strpbrk.m4: Likewise.
39309         * m4/strptime.m4: Likewise.
39310         * m4/strsep.m4: Likewise.
39311         * m4/strtod.m4: Likewise.
39312         * m4/strtoimax.m4: Likewise.
39313         * m4/strtok_r.m4: Likewise.
39314         * m4/strtol.m4: Likewise.
39315         * m4/strtoll.m4: Likewise.
39316         * m4/strtoul.m4: Likewise.
39317         * m4/strtoull.m4: Likewise.
39318         * m4/strtoumax.m4: Likewise.
39319         * m4/strverscmp.m4: Likewise.
39320         * m4/threadlib.m4: Likewise.
39321         * m4/timegm.m4: Likewise.
39322         * m4/tm_gmtoff.m4: Likewise.
39323         * m4/tmpdir.m4: Likewise.
39324         * m4/tmpfile.m4: Likewise.
39325         * m4/tzset.m4: Likewise.
39326         * m4/uintmax_t.m4: Likewise.
39327         * m4/unlinkdir.m4: Likewise.
39328         * m4/unlocked-io.m4: Likewise.
39329         * m4/uptime.m4: Likewise.
39330         * m4/userspec.m4: Likewise.
39331         * m4/utimbuf.m4: Likewise.
39332         * m4/utime.m4: Likewise.
39333         * m4/utimes-null.m4: Likewise.
39334         * m4/utimes.m4: Likewise.
39335         * m4/vararrays.m4: Likewise.
39336         * m4/vasnprintf.m4: Likewise.
39337         * m4/vfprintf-posix.m4: Likewise.
39338         * m4/vprintf-posix.m4: Likewise.
39339         * m4/wait-process.m4: Likewise.
39340         * m4/wchar_t.m4: Likewise.
39341         * m4/wint_t.m4: Likewise.
39342         * m4/write-any-file.m4: Likewise.
39343         * m4/yield.m4: Likewise.
39344
39345 2009-01-13  Bruno Haible  <bruno@clisp.org>
39346
39347         Avoid test-copy-file.sh failures when ACL support insufficient.
39348         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
39349         TESTS_ENVIRONMENT.
39350         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
39351         Reported by Jim Meyering.
39352
39353 2009-01-13  Bruno Haible  <bruno@clisp.org>
39354
39355         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
39356         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
39357         * modules/unistdio/u8-printf-parse (Files): Likewise.
39358         * modules/unistdio/u32-printf-parse (Files): Likewise.
39359         * modules/unistdio/ulc-printf-parse (Files): Likewise.
39360
39361 2009-01-13  Simon Josefsson  <simon@josefsson.org>
39362
39363         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
39364         and m4/inttypes_h.m4 too.
39365
39366 2009-01-12  Eric Blake  <ebb9@byu.net>
39367
39368         tests: IRIX 6.2 cc can't compile -0.0 into .data
39369         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
39370         rather than at compile-time.
39371         * tests/test-floorl.c (minus_zero): Likewise.
39372         * tests/test-frexpl.c (minus_zero): Likewise.
39373         * tests/test-isnan.c (minus_zerol): Likewise.
39374         * tests/test-isnanl.h (minus_zero): Likewise.
39375         * tests/test-ldexpl.c (minus_zero): Likewise.
39376         * tests/test-roundl.c (minus_zero): Likewise.
39377         * tests/test-signbit.c (minus_zerol): Likewise.
39378         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39379         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39380         * tests/test-truncl.c (minus_zero): Likewise.
39381         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39382         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39383         Reported by Tom G. Christensen and Nelson H. F. Beebe.
39384
39385 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39386
39387         regex: fix glibc bug 9697
39388         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
39389         handling.
39390
39391 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39392
39393         regex: fix glibc bug 697
39394         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
39395         being NULL also if there are no backreferences.
39396
39397 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39398
39399         regex: merge glibc changes
39400         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
39401         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
39402         re_string_skip_chars, re_string_reconstruct): Likewise.
39403         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
39404
39405 2009-01-07  Jim Meyering  <meyering@redhat.com>
39406
39407         poll: filter through cppi
39408         * lib/poll.c: Indent cpp directives to reflect nesting.
39409
39410 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
39411
39412         poll: don't return uninitialized
39413         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
39414
39415 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
39416
39417         avoid compile failure on AIX 6.1
39418         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
39419         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
39420
39421 2009-01-04  Jim Meyering  <meyering@redhat.com>
39422
39423         remove duplicate inclusion of <stdio.h>
39424         * tests/test-fprintf-posix.c: Likewise.
39425         * tests/test-printf-posix.c: Likewise.
39426         * tests/test-snprintf-posix.c: Likewise.
39427         * tests/test-sprintf-posix.c: Likewise.
39428         * tests/test-vasprintf-posix.c: Likewise.
39429         * tests/test-vfprintf-posix.c: Likewise.
39430         * tests/test-vprintf-posix.c: Likewise.
39431         * tests/test-vsnprintf-posix.c: Likewise.
39432         * tests/test-vsprintf-posix.c: Likewise.
39433
39434 2009-01-03  Jim Meyering  <meyering@redhat.com>
39435
39436         gnulib-tool: fix sed-based filtering
39437         * gnulib-tool (func_filter_filelist): Remove extra backslash
39438         in sed_fff_filter definition.
39439
39440 2009-01-02  Jim Meyering  <meyering@redhat.com>
39441
39442         strftime: avoid compilation failure on Solaris 2.6
39443         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
39444         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
39445         Don't #define mbrlen or mbsinit, since now they're guaranteed to
39446         be available.  Reported by Tom G. Christensen.  Details in
39447         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
39448
39449 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39450             Bruno Haible  <bruno@clisp.org>
39451
39452         Speed up gnulib-tool by doing more string processing through shell
39453         built-ins.
39454         * gnulib-tool (fast_func_append): New variable.
39455         (func_remove_prefix, func_remove_suffix): New functions.
39456         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
39457         (func_filter_filelist): New function.
39458         (func_get_dependencies): Use func_remove_suffix instead of sed.
39459         (func_get_automake_snippet): Use func_filter_filelist instead of a
39460         subshell and sed invocation.
39461
39462 2009-01-01  Bruno Haible  <bruno@clisp.org>
39463
39464         Fix a security bug.
39465         * gnulib-tool (func_import, import, update): Don't allow the characters
39466         '"', '$', '`', '\' in macro arguments that become part of commands that
39467         are evaluated.
39468
39469 2009-01-01  Bruno Haible  <bruno@clisp.org>
39470
39471         * gnulib-tool (func_reset_sigpipe): Add more comments.
39472
39473 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39474
39475         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
39476         func_emit_tests_Makefile_am, func_import): Abort loops early if we
39477         already know the answer.
39478
39479 2009-01-01  Jim Meyering  <meyering@redhat.com>
39480
39481         * lib/version-etc.c (version_etc_va): Update copyright year.
39482
39483 2008-12-30  Bruno Haible  <bruno@clisp.org>
39484
39485         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
39486         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
39487         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
39488
39489 2008-12-29  Eric Blake  <ebb9@byu.net>
39490
39491         multiarch: avoid autoconf AC_REQUIRE bug
39492         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
39493         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
39494         2.63 and older.
39495         Reported by Bruno Haible, and analyzed in
39496         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
39497
39498 2008-12-29  Bruno Haible  <bruno@clisp.org>
39499
39500         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
39501         files in subdirectories correctly.
39502         Reported by Ralf Wildenhues.
39503
39504 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39505
39506         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
39507         rather than 'join FILE -', for Solaris join.
39508
39509 2008-12-29  Bruno Haible  <bruno@clisp.org>
39510
39511         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
39512         quoting.
39513         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
39514         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
39515         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
39516         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
39517         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
39518         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
39519         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
39520         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
39521         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
39522         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
39523         * m4/nls.m4 (AM_NLS): Likewise.
39524         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
39525         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
39526         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39527         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
39528         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
39529         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
39530         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
39531         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
39532         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
39533         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39534         * m4/xsize.m4 (gl_XSIZE): Likewise.
39535         Suggested by Jim Meyering.
39536
39537 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39538
39539         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
39540         * lib/parse-duration.c: use a switch instead of cascading if's.
39541
39542 2008-12-29  Eric Blake  <ebb9@byu.net>
39543
39544         wchar.h: supply WEOF on Irix 5.3
39545         * lib/wchar.in.h (wint_t): Also supply WEOF.
39546         * lib/wctype.in.h (wint_t): Likewise.
39547         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
39548         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
39549         Reported by Tom G. Christensen.
39550
39551 2008-12-26  Bruno Haible  <bruno@clisp.org>
39552
39553         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
39554         i486, i586, i686.
39555
39556 2008-12-26  Bruno Haible  <bruno@clisp.org>
39557
39558         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
39559
39560 2008-12-26  Bruno Haible  <bruno@clisp.org>
39561
39562         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
39563         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
39564         not __STDC_CONSTANT_MACROS.
39565         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39566
39567 2008-12-25  Bruno Haible  <bruno@clisp.org>
39568
39569         Add support for universal builds to vasnprintf.
39570         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
39571         universal builds, guess no.
39572         * modules/vasnprintf-posix (Depends-on): Add multiarch.
39573         * modules/vasprintf-posix (Depends-on): Likewise.
39574         * modules/fprintf-posix (Depends-on): Likewise.
39575         * modules/vfprintf-posix (Depends-on): Likewise.
39576         * modules/snprintf-posix (Depends-on): Likewise.
39577         * modules/vsnprintf-posix (Depends-on): Likewise.
39578         * modules/sprintf-posix (Depends-on): Likewise.
39579         * modules/vsprintf-posix (Depends-on): Likewise.
39580         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39581         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39582         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39583         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39584         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39585         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39586         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39587
39588         Add support for universal builds to <inttypes.h>.
39589         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
39590         _SCNu64_PREFIX): In Apple
39591         universal builds, define directly, using _LP64.
39592         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
39593         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
39594         * modules/inttypes (Depends-on): Add multiarch.
39595         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39596
39597         Add support for universal builds to <stdint.h>.
39598         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
39599         universal builds, define directly, using _LP64.
39600         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
39601         Apple universal builds, don't test for the size and suffix of ptrdiff_t
39602         and size_t.
39603         * modules/stdint (Depends-on): Add multiarch.
39604         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39605
39606         New module 'multiarch'.
39607         * modules/multiarch: New file.
39608         * m4/multiarch.m4: New file.
39609
39610 2008-12-25  Bruno Haible  <bruno@clisp.org>
39611
39612         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
39613
39614 2008-12-25  Bruno Haible  <bruno@clisp.org>
39615
39616         * modules/btowc (License): Relicense under LGPLv2+.
39617         * modules/mbsinit (License): Likewise.
39618         * modules/mbrtowc (License): Likewise.
39619         * modules/wcrtomb (License): Likewise.
39620         * modules/streq (License): Likewise.
39621         Reported by David Lutterkort <lutter@redhat.com>.
39622
39623 2008-12-23  Bruno Haible  <bruno@clisp.org>
39624
39625         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
39626
39627 2008-12-23  Bruno Haible  <bruno@clisp.org>
39628
39629         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
39630         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
39631         GETADDRINFO_LIB, not in LIBS.
39632         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
39633         * modules/canon-host (Link): Likewise.
39634         * NEWS: Mention the change.
39635         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
39636         GETADDRINFO_LIB.
39637
39638 2008-12-22  Bruno Haible  <bruno@clisp.org>
39639
39640         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
39641         * doc/posix-functions/iswalpha_l.texi: Likewise.
39642         * doc/posix-functions/iswblank_l.texi: Likewise.
39643         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39644         * doc/posix-functions/iswctype_l.texi: Likewise.
39645         * doc/posix-functions/iswdigit_l.texi: Likewise.
39646         * doc/posix-functions/iswgraph_l.texi: Likewise.
39647         * doc/posix-functions/iswlower_l.texi: Likewise.
39648         * doc/posix-functions/iswprint_l.texi: Likewise.
39649         * doc/posix-functions/iswpunct_l.texi: Likewise.
39650         * doc/posix-functions/iswspace_l.texi: Likewise.
39651         * doc/posix-functions/iswupper_l.texi: Likewise.
39652         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39653         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
39654         * doc/posix-functions/open_wmemstream.texi: Likewise.
39655         * doc/posix-functions/swscanf.texi: Likewise.
39656         * doc/posix-functions/towctrans_l.texi: Likewise.
39657         * doc/posix-functions/towlower.texi: Likewise.
39658         * doc/posix-functions/towlower_l.texi: Likewise.
39659         * doc/posix-functions/towupper.texi: Likewise.
39660         * doc/posix-functions/towupper_l.texi: Likewise.
39661         * doc/posix-functions/vfwprintf.texi: Likewise.
39662         * doc/posix-functions/vfwscanf.texi: Likewise.
39663         * doc/posix-functions/vswscanf.texi: Likewise.
39664         * doc/posix-functions/vwprintf.texi: Likewise.
39665         * doc/posix-functions/vwscanf.texi: Likewise.
39666         * doc/posix-functions/wcpcpy.texi: Likewise.
39667         * doc/posix-functions/wcpncpy.texi: Likewise.
39668         * doc/posix-functions/wcscasecmp.texi: Likewise.
39669         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
39670         * doc/posix-functions/wcscoll_l.texi: Likewise.
39671         * doc/posix-functions/wcsdup.texi: Likewise.
39672         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39673         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
39674         * doc/posix-functions/wcsnlen.texi: Likewise.
39675         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39676         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39677         * doc/posix-functions/wctrans_l.texi: Likewise.
39678         * doc/posix-functions/wctype_l.texi: Likewise.
39679         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
39680         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
39681         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
39682         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
39683         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
39684         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
39685         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
39686         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
39687         * doc/glibc-functions/wcschrnul.texi: Likewise.
39688         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39689         * doc/glibc-functions/wcstod_l.texi: Likewise.
39690         * doc/glibc-functions/wcstof_l.texi: Likewise.
39691         * doc/glibc-functions/wcstol_l.texi: Likewise.
39692         * doc/glibc-functions/wcstold_l.texi: Likewise.
39693         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39694         * doc/glibc-functions/wcstoq.texi: Likewise.
39695         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39696         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39697         * doc/glibc-functions/wcstouq.texi: Likewise.
39698         * doc/glibc-functions/wmempcpy.texi: Likewise.
39699
39700 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
39701             Eric Blake  <ebb9@byu.net>
39702             Paolo Bonzini  <bonzini@gnu.org>
39703             Bruno Haible  <bruno@clisp.org>
39704
39705         Make c-stack work on Haiku.
39706         * lib/c-stack.c (SA_ONSTACK): Define fallback.
39707         (c_stack_action): Use SA_ONSTACK flag.
39708
39709 2008-12-22  Bruno Haible  <bruno@clisp.org>
39710
39711         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
39712
39713 2008-12-22  Bruno Haible  <bruno@clisp.org>
39714
39715         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
39716         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
39717         being overridden.
39718         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
39719         New macros.
39720         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
39721         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
39722         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
39723         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
39724
39725 2008-12-22  Bruno Haible  <bruno@clisp.org>
39726
39727         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
39728         from test code.
39729
39730 2008-12-22  Eric Blake  <ebb9@byu.net>
39731
39732         Avoid gcc warnings on cygwin.
39733         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
39734         Avoid unused variable.
39735         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
39736         Likewise.
39737
39738 2008-12-22  Bruno Haible  <bruno@clisp.org>
39739
39740         Remove HAVE_MBRTOWC conditionals.
39741         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
39742         (mbscasecmp): Assume mbrtowc function.
39743         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
39744         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
39745         * lib/mbschr.c: Include mbuiter.h unconditionally.
39746         (mbschr): Assume mbrtowc function.
39747         * lib/mbscspn.c: Include mbuiter.h unconditionally.
39748         (mbscspn): Assume mbrtowc function.
39749         * lib/mbslen.c: Include mbuiter.h unconditionally.
39750         (mbslen): Assume mbrtowc function.
39751         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
39752         (mbsncasecmp): Assume mbrtowc function.
39753         * lib/mbsnlen.c: Include mbiter.h unconditionally.
39754         (mbsnlen): Assume mbrtowc function.
39755         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
39756         (mbspbrk): Assume mbrtowc function.
39757         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
39758         (mbspcasecmp): Assume mbrtowc function.
39759         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
39760         (mbsrchr): Assume mbrtowc function.
39761         * lib/mbssep.c: Include mbuiter.h unconditionally.
39762         (mbssep): Assume mbrtowc function.
39763         * lib/mbsspn.c: Include mbuiter.h unconditionally.
39764         (mbsspn): Assume mbrtowc function.
39765         * lib/mbsstr.c: Include mbuiter.h unconditionally.
39766         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
39767         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
39768         (mbstok_r): Assume mbrtowc function.
39769         * lib/propername.c: Include mbuiter.h unconditionally.
39770         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
39771         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
39772         (trim2): Assume mbrtowc function.
39773         * lib/mbswidth.c (mbsinit): Remove fallback definition.
39774         (mbsnwidth): Assume mbrtowc function.
39775         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
39776         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
39777         fallback definitions.
39778         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
39779
39780 2008-12-22  Bruno Haible  <bruno@clisp.org>
39781
39782         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
39783
39784 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
39785
39786         * modules/regex: Request emulations for the mb*/wc* functions we need.
39787         * m4/regex.m4: Don't look for those functions here.
39788         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
39789
39790 2008-12-22  Bruno Haible  <bruno@clisp.org>
39791
39792         * modules/fnmatch (Depends-on): Remove duplicated dependency.
39793
39794 2008-12-21  Bruno Haible  <bruno@clisp.org>
39795
39796         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
39797         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
39798         (Include): Remove conditionalization.
39799         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
39800         (Include): Remove conditionalization.
39801         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
39802         (Include): Remove conditionalization.
39803         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
39804         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39805         * NEWS: Mention the change.
39806         Reported by Alan Hourihane <alanh@fairlite.co.uk>
39807         via Sergey Poznyakoff <gray@gnu.org.ua>.
39808
39809 2008-12-21  Bruno Haible  <bruno@clisp.org>
39810
39811         * MODULES.html.sh (Extended multibyte and wide character utilities
39812         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
39813         wcrtomb, wcsrtombs.
39814         (Support for systems lacking POSIX:2008): Add accept, bind, close,
39815         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
39816         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
39817         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
39818
39819 2008-12-21  Bruno Haible  <bruno@clisp.org>
39820
39821         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
39822
39823 2008-12-21  Bruno Haible  <bruno@clisp.org>
39824
39825         * modules/wcsnrtombs-tests: New file.
39826         * tests/test-wcsnrtombs1.sh: New file.
39827         * tests/test-wcsnrtombs2.sh: New file.
39828         * tests/test-wcsnrtombs3.sh: New file.
39829         * tests/test-wcsnrtombs4.sh: New file.
39830         * tests/test-wcsnrtombs.c: New file.
39831
39832         New module 'wcsnrtombs'.
39833         * lib/wchar.in.h (wcsnrtombs): New declaration.
39834         * lib/wcsnrtombs.c: New file.
39835         * lib/wcsrtombs-state.c: New file.
39836         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
39837         (internal_state): Remove variable.
39838         * m4/wcsnrtombs.m4: New file.
39839         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
39840         compilation units.
39841         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
39842         HAVE_WCSNRTOMBS.
39843         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
39844         HAVE_WCSNRTOMBS.
39845         * modules/wcsnrtombs: New file.
39846         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
39847         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
39848
39849 2008-12-21  Bruno Haible  <bruno@clisp.org>
39850
39851         * modules/wcsrtombs-tests: New file.
39852         * tests/test-wcsrtombs1.sh: New file.
39853         * tests/test-wcsrtombs2.sh: New file.
39854         * tests/test-wcsrtombs3.sh: New file.
39855         * tests/test-wcsrtombs4.sh: New file.
39856         * tests/test-wcsrtombs.c: New file.
39857
39858         New module 'wcsrtombs'.
39859         * lib/wchar.in.h (wcsrtombs): New declaration.
39860         * lib/wcsrtombs.c: New file.
39861         * m4/wcsrtombs.m4: New file.
39862         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
39863         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39864         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
39865         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39866         * modules/wcsrtombs: New file.
39867         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
39868         bugs.
39869
39870 2008-12-21  Bruno Haible  <bruno@clisp.org>
39871
39872         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
39873         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
39874         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
39875         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
39876         if not correct.
39877         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
39878         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
39879         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39880         m4/locale-zh.m4, m4/codeset.m4.
39881         * doc/posix-functions/wcrtomb.texi: Document the bug.
39882
39883 2008-12-21  Bruno Haible  <bruno@clisp.org>
39884
39885         Work around a btowc() bug on IRIX 6.5.
39886         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
39887         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
39888         REPLACE_WTOBC if not.
39889         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
39890         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
39891         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
39892
39893 2008-12-21  Bruno Haible  <bruno@clisp.org>
39894
39895         * modules/wcrtomb-tests: New file.
39896         * tests/test-wcrtomb.sh: New file.
39897         * tests/test-wcrtomb.c: New file.
39898
39899         New module 'wcrtomb'.
39900         * lib/wchar.in.h (wcrtomb): New declaration.
39901         * lib/wcrtomb.c: New file.
39902         * m4/wcrtomb.m4: New file.
39903         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39904         HAVE_WCRTOMB.
39905         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39906         HAVE_WCRTOMB.
39907         * modules/wcrtomb: New file.
39908         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39909
39910 2008-12-21  Bruno Haible  <bruno@clisp.org>
39911
39912         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39913         * modules/mbsrtowcs (Files): Likewise.
39914         * modules/wctob (Files): Likewise.
39915         * modules/c-strcase-tests (Files): Likewise.
39916         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39917         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39918         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39919         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39920         * modules/vasnprintf-posix-tests (Files): Likewise.
39921
39922 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39923
39924         gitlog-to-changelog: pass all command-line arguments to git-log
39925         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39926         it is sometimes convenient to filter the commits in various ways.
39927         gitlog-to-changelog only allows --since to specify a start date,
39928         but git-log itself supports many other filtering mechanisms.
39929         At the moment, I want to filter by branch name.  Rather than
39930         adding a --branch option to gitlog-to-changelog, it seems more
39931         flexible to simply pass all options directly to git-log and let
39932         git do the work.  Notice that this effectively makes --since a
39933         redundant option for gitlog-to-changelog, but removing it would
39934         require current usage to change since calls would then require
39935         an additional '--'.
39936
39937 2008-12-21  Bruno Haible  <bruno@clisp.org>
39938
39939         * modules/mbsnrtowcs-tests: New file.
39940         * tests/test-mbsnrtowcs1.sh: New file.
39941         * tests/test-mbsnrtowcs2.sh: New file.
39942         * tests/test-mbsnrtowcs3.sh: New file.
39943         * tests/test-mbsnrtowcs4.sh: New file.
39944         * tests/test-mbsnrtowcs.c: New file.
39945
39946         New module 'mbsnrtowcs'.
39947         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39948         * lib/mbsnrtowcs.c: New file.
39949         * lib/mbsrtowcs-state.c: New file.
39950         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39951         (internal_state): Remove variable.
39952         * m4/mbsnrtowcs.m4: New file.
39953         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39954         compilation units.
39955         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39956         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39957         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39958         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39959         * modules/mbsnrtowcs: New file.
39960         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39961         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39962         portability problem.
39963
39964 2008-12-21  Bruno Haible  <bruno@clisp.org>
39965
39966         Work around mbsrtowcs bug.
39967         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39968         (gl_FUNC_MBSRTOWCS): Invoke it.
39969         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39970         m4/locale-zh.m4.
39971         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39972
39973 2008-12-21  Bruno Haible  <bruno@clisp.org>
39974
39975         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39976
39977 2008-12-21  Bruno Haible  <bruno@clisp.org>
39978
39979         Update doc for AIX.
39980         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39981         16-bit wchar_t type.
39982         * doc/posix-functions/btowc.texi: Likewise.
39983         * doc/posix-functions/fgetwc.texi: Likewise.
39984         * doc/posix-functions/fgetws.texi: Likewise.
39985         * doc/posix-functions/fputwc.texi: Likewise.
39986         * doc/posix-functions/fputws.texi: Likewise.
39987         * doc/posix-functions/fwide.texi: Likewise.
39988         * doc/posix-functions/fwprintf.texi: Likewise.
39989         * doc/posix-functions/fwscanf.texi: Likewise.
39990         * doc/posix-functions/getwchar.texi: Likewise.
39991         * doc/posix-functions/getwc.texi: Likewise.
39992         * doc/posix-functions/iswalnum.texi: Likewise.
39993         * doc/posix-functions/iswalpha.texi: Likewise.
39994         * doc/posix-functions/iswblank.texi: Likewise.
39995         * doc/posix-functions/iswcntrl.texi: Likewise.
39996         * doc/posix-functions/iswctype.texi: Likewise.
39997         * doc/posix-functions/iswdigit.texi: Likewise.
39998         * doc/posix-functions/iswgraph.texi: Likewise.
39999         * doc/posix-functions/iswlower.texi: Likewise.
40000         * doc/posix-functions/iswprint.texi: Likewise.
40001         * doc/posix-functions/iswpunct.texi: Likewise.
40002         * doc/posix-functions/iswspace.texi: Likewise.
40003         * doc/posix-functions/iswupper.texi: Likewise.
40004         * doc/posix-functions/iswxdigit.texi: Likewise.
40005         * doc/posix-functions/mbrtowc.texi: Likewise.
40006         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40007         * doc/posix-functions/mbstowcs.texi: Likewise.
40008         * doc/posix-functions/mbtowc.texi: Likewise.
40009         * doc/posix-functions/putwchar.texi: Likewise.
40010         * doc/posix-functions/putwc.texi: Likewise.
40011         * doc/posix-functions/swprintf.texi: Likewise.
40012         * doc/posix-functions/tolower.texi: Likewise.
40013         * doc/posix-functions/toupper.texi: Likewise.
40014         * doc/posix-functions/towctrans.texi: Likewise.
40015         * doc/posix-functions/ungetwc.texi: Likewise.
40016         * doc/posix-functions/vswprintf.texi: Likewise.
40017         * doc/posix-functions/wcrtomb.texi: Likewise.
40018         * doc/posix-functions/wcscat.texi: Likewise.
40019         * doc/posix-functions/wcschr.texi: Likewise.
40020         * doc/posix-functions/wcscmp.texi: Likewise.
40021         * doc/posix-functions/wcscoll.texi: Likewise.
40022         * doc/posix-functions/wcscpy.texi: Likewise.
40023         * doc/posix-functions/wcscspn.texi: Likewise.
40024         * doc/posix-functions/wcsftime.texi: Likewise.
40025         * doc/posix-functions/wcslen.texi: Likewise.
40026         * doc/posix-functions/wcsncat.texi: Likewise.
40027         * doc/posix-functions/wcsncmp.texi: Likewise.
40028         * doc/posix-functions/wcsncpy.texi: Likewise.
40029         * doc/posix-functions/wcspbrk.texi: Likewise.
40030         * doc/posix-functions/wcsrchr.texi: Likewise.
40031         * doc/posix-functions/wcsrtombs.texi: Likewise.
40032         * doc/posix-functions/wcsspn.texi: Likewise.
40033         * doc/posix-functions/wcsstr.texi: Likewise.
40034         * doc/posix-functions/wcstod.texi: Likewise.
40035         * doc/posix-functions/wcstof.texi: Likewise.
40036         * doc/posix-functions/wcstoimax.texi: Likewise.
40037         * doc/posix-functions/wcstok.texi: Likewise.
40038         * doc/posix-functions/wcstold.texi: Likewise.
40039         * doc/posix-functions/wcstoll.texi: Likewise.
40040         * doc/posix-functions/wcstol.texi: Likewise.
40041         * doc/posix-functions/wcstombs.texi: Likewise.
40042         * doc/posix-functions/wcstoull.texi: Likewise.
40043         * doc/posix-functions/wcstoul.texi: Likewise.
40044         * doc/posix-functions/wcstoumax.texi: Likewise.
40045         * doc/posix-functions/wcswidth.texi: Likewise.
40046         * doc/posix-functions/wcsxfrm.texi: Likewise.
40047         * doc/posix-functions/wctob.texi: Likewise.
40048         * doc/posix-functions/wctomb.texi: Likewise.
40049         * doc/posix-functions/wctrans.texi: Likewise.
40050         * doc/posix-functions/wctype.texi: Likewise.
40051         * doc/posix-functions/wcwidth.texi: Likewise.
40052         * doc/posix-functions/wmemchr.texi: Likewise.
40053         * doc/posix-functions/wmemcmp.texi: Likewise.
40054         * doc/posix-functions/wmemcpy.texi: Likewise.
40055         * doc/posix-functions/wmemmove.texi: Likewise.
40056         * doc/posix-functions/wmemset.texi: Likewise.
40057         * doc/posix-functions/wprintf.texi: Likewise.
40058         * doc/posix-functions/wscanf.texi: Likewise.
40059
40060 2008-12-21  Bruno Haible  <bruno@clisp.org>
40061
40062         Update doc for HP-UX 11.11.
40063         * doc/posix-functions/btowc.texi: Clarify that the function is missing
40064         in HP-UX version 11.00, not in all versions of HP-UX 11.
40065         * doc/posix-functions/fwide.texi: Likewise.
40066         * doc/posix-functions/fwprintf.texi: Likewise.
40067         * doc/posix-functions/fwscanf.texi: Likewise.
40068         * doc/posix-functions/inet_ntop.texi: Likewise.
40069         * doc/posix-functions/inet_pton.texi: Likewise.
40070         * doc/posix-functions/mbrlen.texi: Likewise.
40071         * doc/posix-functions/mbrtowc.texi: Likewise.
40072         * doc/posix-functions/mbsinit.texi: Likewise.
40073         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40074         * doc/posix-functions/swprintf.texi: Likewise.
40075         * doc/posix-functions/swscanf.texi: Likewise.
40076         * doc/posix-functions/towctrans.texi: Likewise.
40077         * doc/posix-functions/vfwprintf.texi: Likewise.
40078         * doc/posix-functions/vswprintf.texi: Likewise.
40079         * doc/posix-functions/vwprintf.texi: Likewise.
40080         * doc/posix-functions/wcrtomb.texi: Likewise.
40081         * doc/posix-functions/wcsrtombs.texi: Likewise.
40082         * doc/posix-functions/wcsstr.texi: Likewise.
40083         * doc/posix-functions/wctob.texi: Likewise.
40084         * doc/posix-functions/wctrans.texi: Likewise.
40085         * doc/posix-functions/wmemchr.texi: Likewise.
40086         * doc/posix-functions/wmemcmp.texi: Likewise.
40087         * doc/posix-functions/wmemcpy.texi: Likewise.
40088         * doc/posix-functions/wmemmove.texi: Likewise.
40089         * doc/posix-functions/wmemset.texi: Likewise.
40090         * doc/posix-functions/wprintf.texi: Likewise.
40091         * doc/posix-functions/wscanf.texi: Likewise.
40092
40093 2008-12-21  Bruno Haible  <bruno@clisp.org>
40094
40095         Work around a portability problem.
40096         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
40097         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
40098
40099 2008-12-20  Bruno Haible  <bruno@clisp.org>
40100
40101         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
40102         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
40103         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
40104         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
40105         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
40106
40107         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
40108         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
40109         set.
40110         (GNULIB_defined_mbstate_t): New macro.
40111         (mbsinit): Redefine if REPLACE_MBSINIT is set.
40112         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
40113         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
40114         reuses the system's mbrtowc function but works around the bugs.
40115         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
40116         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
40117         macros.
40118         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
40119         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
40120         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
40121         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
40122         REPLACE_MBSINIT if mbsinit needs to be overridden.
40123         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
40124         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40125         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
40126         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40127         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40128         m4/locale-zh.m4.
40129         (Depends): Add mbsinit.
40130         * modules/mbsinit (Depends): Add mbrtowc.
40131         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
40132
40133 2008-12-20  Bruno Haible  <bruno@clisp.org>
40134
40135         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
40136         so that there are no conversion errors on AIX.
40137         * tests/test-mbsrtowcs.c (main): LIkewise.
40138
40139 2008-12-20  Bruno Haible  <bruno@clisp.org>
40140
40141         Work around wctob bug on Solaris <= 9.
40142         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
40143         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
40144         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
40145         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
40146         * modules/wctob (Files): Add m4/locale-fr.m4.
40147         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
40148
40149 2008-12-20  Bruno Haible  <bruno@clisp.org>
40150
40151         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
40152         /dev/null.
40153         * tests/test-select-in.sh: Likewise.
40154         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40155
40156 2008-12-20  Bruno Haible  <bruno@clisp.org>
40157
40158         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
40159         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
40160         Cygwin 1.5.x.
40161
40162 2008-12-20  Bruno Haible  <bruno@clisp.org>
40163
40164         Ensure mbstate_t is defined on HP-UX 11.11.
40165         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
40166         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
40167         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
40168         AC_USE_SYSTEM_EXTENSIONS.
40169         * modules/fnmatch (Depends-on): Add extensions.
40170         * modules/mbrlen (Depends-on): Likewise.
40171         * modules/mbrtowc (Depends-on): Likewise.
40172         * modules/mbsinit (Depends-on): Likewise.
40173         * modules/mbsrtowcs (Depends-on): Likewise.
40174         * modules/mbswidth (Depends-on): Likewise.
40175         * modules/quotearg (Depends-on): Likewise.
40176         * modules/strftime (Depends-on): Likewise.
40177
40178 2008-12-20  Bruno Haible  <bruno@clisp.org>
40179
40180         Ensure wctob is declared on IRIX 6.5.
40181         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
40182         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
40183         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
40184         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
40185         of HAVE_WCTOB.
40186         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
40187         HAVE_WCTOB.
40188         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
40189
40190 2008-12-19  Bruno Haible  <bruno@clisp.org>
40191
40192         * modules/mbsrtowcs-tests: New file.
40193         * tests/test-mbsrtowcs1.sh: New file.
40194         * tests/test-mbsrtowcs2.sh: New file.
40195         * tests/test-mbsrtowcs3.sh: New file.
40196         * tests/test-mbsrtowcs4.sh: New file.
40197         * tests/test-mbsrtowcs.c: New file.
40198
40199         New module 'mbsrtowcs'.
40200         * lib/wchar.in.h (mbsrtowcs): New declaration.
40201         * lib/mbsrtowcs.c: New file.
40202         * m4/mbsrtowcs.m4: New file.
40203         * modules/mbsrtowcs: New file.
40204         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
40205         HAVE_MBSRTOWCS.
40206         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
40207         HAVE_MBSRTOWCS.
40208         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
40209
40210 2008-12-19  Bruno Haible  <bruno@clisp.org>
40211
40212         New module 'mbrlen'.
40213         * lib/wchar.in.h (mbrlen): New declaration.
40214         * lib/mbrlen.c: New file.
40215         * m4/mbrlen.m4: New file.
40216         * modules/mbrlen: New file.
40217         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
40218         HAVE_MBRLEN.
40219         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
40220         HAVE_MBRLEN.
40221         * doc/posix-functions/mbrlen.texi: Document the new module.
40222
40223 2008-12-19  Bruno Haible  <bruno@clisp.org>
40224
40225         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
40226         * modules/mbrtowc (Depends-on): Add verify.
40227         Suggested by Paul Eggert.
40228
40229 2008-12-18  Bruno Haible  <bruno@clisp.org>
40230
40231         * modules/mbsinit-tests: New file.
40232         * tests/test-mbsinit.sh: New file.
40233         * tests/test-mbsinit.c: New file.
40234
40235 2008-12-18  Bruno Haible  <bruno@clisp.org>
40236
40237         * modules/mbrtowc-tests: New file.
40238         * tests/test-mbrtowc1.sh: New file.
40239         * tests/test-mbrtowc2.sh: New file.
40240         * tests/test-mbrtowc3.sh: New file.
40241         * tests/test-mbrtowc4.sh: New file.
40242         * tests/test-mbrtowc.c: New file.
40243
40244         New module 'mbrtowc'.
40245         * lib/wchar.in.h (mbstate_t): Override when the system does not have
40246         mbsinit and mbrtowc.
40247         (mbrtowc): New declaration.
40248         * lib/mbrtowc.c: New file.
40249         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
40250         * modules/mbrtowc: New file.
40251         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
40252         HAVE_MBRTOWC.
40253         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
40254         HAVE_MBRTOWC.
40255         * doc/posix-functions/mbrtowc.texi: Document the new module.
40256
40257 2008-12-18  Bruno Haible  <bruno@clisp.org>
40258
40259         New module 'wctob'.
40260         * lib/wchar.in.h (wctob): New declaration.
40261         * lib/wctob.c: New file.
40262         * m4/wctob.m4: New file.
40263         * modules/wctob: New file.
40264         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
40265         HAVE_WCTOB.
40266         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
40267         * doc/posix-functions/wctob.texi: Document the new module.
40268
40269 2008-12-18  Bruno Haible  <bruno@clisp.org>
40270
40271         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
40272         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
40273
40274 2008-12-18  Simon Josefsson  <simon@josefsson.org>
40275
40276         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
40277         G. Christensen" <tgc@jupiterrise.com>.
40278
40279         * lib/flock.c: Need to include errno.h.  Reported by "Tom
40280         G. Christensen" <tgc@jupiterrise.com>.
40281
40282         * lib/flock.c: Need to include string.h.  Reported by "Tom
40283         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
40284         <ebb9@byu.net>.
40285
40286 2008-12-18  Bruno Haible  <bruno@clisp.org>
40287
40288         * m4/locale-ja.m4: New file, from GNU gettext.
40289
40290 2008-12-17  Bruno Haible  <bruno@clisp.org>
40291
40292         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
40293         Suggested by Eric Blake.
40294
40295 2008-12-17  Bruno Haible  <bruno@clisp.org>
40296
40297         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
40298
40299 2008-12-17  Bruno Haible  <bruno@clisp.org>
40300
40301         * lib/mbsinit.c: Include verify.h. Verify an assumption.
40302         * modules/mbsinit (Depends-on): Add verify.
40303         Suggested by Paul Eggert.
40304
40305 2008-12-17  Bruno Haible  <bruno@clisp.org>
40306
40307         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
40308         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
40309         gl_FUNC_MBRTOWC.
40310         * m4/mbiter.m4 (gl_MBITER): LIkewise.
40311         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
40312         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
40313         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
40314         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
40315         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
40316         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
40317         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
40318         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
40319         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
40320         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
40321         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
40322         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
40323         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
40324         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
40325         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40326         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
40327         * modules/trim (configure.ac): Likewise.
40328
40329 2008-12-17  Bruno Haible  <bruno@clisp.org>
40330
40331         * modules/btowc-tests: New file.
40332         * tests/test-btowc1.sh: New file.
40333         * tests/test-btowc2.sh: New file.
40334         * tests/test-btowc.c: New file.
40335
40336         New module 'btowc'.
40337         * lib/wchar.in.h (btowc): New declaration.
40338         * lib/btowc.c: New file.
40339         * m4/btowc.m4: New file.
40340         * modules/btowc: New file.
40341         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
40342         HAVE_BTOWC.
40343         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
40344         * doc/posix-functions/btowc.texi: Document the new module.
40345
40346 2008-12-17  Bruno Haible  <bruno@clisp.org>
40347
40348         New module 'mbsinit'.
40349         * lib/wchar.in.h (mbsinit): New declaration.
40350         * lib/mbsinit.c: New file.
40351         * m4/mbsinit.m4: New file.
40352         * modules/mbsinit: New file.
40353         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
40354         HAVE_MBSINIT.
40355         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
40356         HAVE_MBSINIT.
40357         * doc/posix-functions/mbsinit.texi: Document the new module.
40358
40359 2008-12-16  Bruno Haible  <bruno@clisp.org>
40360
40361         * lib/unistd.in.h: Add comment.
40362         * tests/test-environ.c: Don't include <stdlib.h>.
40363
40364 2008-12-16  Bruno Haible  <bruno@clisp.org>
40365
40366         * lib/parse-duration.h (parse_duration): Document return value
40367         convention.
40368         * lib/parse-duration.c: Include specification header first. Add
40369         comments.
40370         (_): Remove macro.
40371         (parse_year_month_day, parse_hour_minute_second): Move side effects
40372         outside of strchr call.
40373         (parse_non_iso8601): Move side effects outside of isspace call.
40374         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
40375         call.
40376
40377 2008-12-16  Bruno Haible  <bruno@clisp.org>
40378
40379         * tests/test-parse-duration.sh: Produce no output when the test
40380         succeeds.
40381
40382 2008-12-16  Bruno Haible  <bruno@clisp.org>
40383
40384         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
40385         expressions.
40386
40387 2008-12-15  Bruno Haible  <bruno@clisp.org>
40388
40389         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
40390         * doc/glibc-functions/flistxattr.texi: Likewise.
40391         * doc/glibc-functions/fopencookie.texi: Likewise.
40392         * doc/glibc-functions/fremovexattr.texi: Likewise.
40393         * doc/glibc-functions/fsetxattr.texi: Likewise.
40394         * doc/glibc-functions/getxattr.texi: Likewise.
40395         * doc/glibc-functions/lgetxattr.texi: Likewise.
40396         * doc/glibc-functions/listxattr.texi: Likewise.
40397         * doc/glibc-functions/llistxattr.texi: Likewise.
40398         * doc/glibc-functions/lremovexattr.texi: Likewise.
40399         * doc/glibc-functions/lsetxattr.texi: Likewise.
40400         * doc/glibc-functions/removexattr.texi: Likewise.
40401         * doc/glibc-functions/setxattr.texi: Likewise.
40402         * doc/posix-functions/open_memstream.texi: Likewise.
40403
40404 2008-12-15  Eric Blake  <ebb9@byu.net>
40405
40406         Update doc for cygwin 1.7.
40407         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
40408         functions.
40409         * doc/posix-functions/fchmodat.texi: Likewise.
40410         * doc/posix-functions/fchownat.texi: Likewise.
40411         * doc/posix-functions/fdopendir.texi: Likewise.
40412         * doc/posix-functions/fmemopen.texi: Likewise.
40413         * doc/posix-functions/freeaddrinfo.texi: Likewise.
40414         * doc/posix-functions/fstatat.texi: Likewise.
40415         * doc/posix-functions/futimens.texi: Likewise.
40416         * doc/posix-functions/gai_strerror.texi: Likewise.
40417         * doc/posix-functions/getaddrinfo.texi: Likewise.
40418         * doc/posix-functions/getnameinfo.texi: Likewise.
40419         * doc/posix-functions/if_freenameindex.texi: Likewise.
40420         * doc/posix-functions/if_indextoname.texi: Likewise.
40421         * doc/posix-functions/if_nameindex.texi: Likewise.
40422         * doc/posix-functions/if_nametoindex.texi: Likewise.
40423         * doc/posix-functions/insque.texi: Likewise.
40424         * doc/posix-functions/linkat.texi: Likewise.
40425         * doc/posix-functions/llrint.texi: Likewise.
40426         * doc/posix-functions/llrintf.texi: Likewise.
40427         * doc/posix-functions/llrintl.texi: Likewise.
40428         * doc/posix-functions/lockf.texi: Likewise.
40429         * doc/posix-functions/lrintl.texi: Likewise.
40430         * doc/posix-functions/mkdirat.texi: Likewise.
40431         * doc/posix-functions/mkfifoat.texi: Likewise.
40432         * doc/posix-functions/mknodat.texi: Likewise.
40433         * doc/posix-functions/mq_close.texi: Likewise.
40434         * doc/posix-functions/mq_getattr.texi: Likewise.
40435         * doc/posix-functions/mq_notify.texi: Likewise.
40436         * doc/posix-functions/mq_open.texi: Likewise.
40437         * doc/posix-functions/mq_receive.texi: Likewise.
40438         * doc/posix-functions/mq_send.texi: Likewise.
40439         * doc/posix-functions/mq_setattr.texi: Likewise.
40440         * doc/posix-functions/mq_timedreceive.texi: Likewise.
40441         * doc/posix-functions/mq_timedsend.texi: Likewise.
40442         * doc/posix-functions/mq_unlink.texi: Likewise.
40443         * doc/posix-functions/open_memstream.texi: Likewise.
40444         * doc/posix-functions/openat.texi: Likewise.
40445         * doc/posix-functions/posix_fadvise.texi: Likewise.
40446         * doc/posix-functions/posix_fallocate.texi: Likewise.
40447         * doc/posix-functions/posix_madvise.texi: Likewise.
40448         * doc/posix-functions/posix_memalign.texi: Likewise.
40449         * doc/posix-functions/posix_openpt.texi: Likewise.
40450         * doc/posix-functions/readlinkat.texi: Likewise.
40451         * doc/posix-functions/remque.texi: Likewise.
40452         * doc/posix-functions/renameat.texi: Likewise.
40453         * doc/posix-functions/rintl.texi: Likewise.
40454         * doc/posix-functions/sem_unlink.texi: Likewise.
40455         * doc/posix-functions/shm_open.texi: Likewise.
40456         * doc/posix-functions/shm_unlink.texi: Likewise.
40457         * doc/posix-functions/signgam.texi: Likewise.
40458         * doc/posix-functions/sigset.texi: Likewise.
40459         * doc/posix-functions/stpcpy.texi: Likewise.
40460         * doc/posix-functions/stpncpy.texi: Likewise.
40461         * doc/posix-functions/strerror.texi: Likewise.
40462         * doc/posix-functions/strtod.texi: Likewise.
40463         * doc/posix-functions/symlinkat.texi: Likewise.
40464         * doc/posix-functions/unlinkat.texi: Likewise.
40465         * doc/posix-functions/utimensat.texi: Likewise.
40466         * doc/glibc-functions/bindresvport.texi: Likewise.
40467         * doc/glibc-functions/dn_expand.texi: Likewise.
40468         * doc/glibc-functions/exp10.texi: Likewise.
40469         * doc/glibc-functions/exp10f.texi: Likewise.
40470         * doc/glibc-functions/fgetxattr.texi: Likewise.
40471         * doc/glibc-functions/flistxattr.texi: Likewise.
40472         * doc/glibc-functions/fopencookie.texi: Likewise.
40473         * doc/glibc-functions/freeifaddrs.texi: Likewise.
40474         * doc/glibc-functions/fremovexattr.texi: Likewise.
40475         * doc/glibc-functions/fsetxattr.texi: Likewise.
40476         * doc/glibc-functions/getifaddrs.texi: Likewise.
40477         * doc/glibc-functions/getxattr.texi: Likewise.
40478         * doc/glibc-functions/lgetxattr.texi: Likewise.
40479         * doc/glibc-functions/listxattr.texi: Likewise.
40480         * doc/glibc-functions/llistxattr.texi: Likewise.
40481         * doc/glibc-functions/lremovexattr.texi: Likewise.
40482         * doc/glibc-functions/lsetxattr.texi: Likewise.
40483         * doc/glibc-functions/pow10.texi: Likewise.
40484         * doc/glibc-functions/pow10f.texi: Likewise.
40485         * doc/glibc-functions/rcmd_af.texi: Likewise.
40486         * doc/glibc-functions/removexattr.texi: Likewise.
40487         * doc/glibc-functions/res_init.texi: Likewise.
40488         * doc/glibc-functions/res_mkquery.texi: Likewise.
40489         * doc/glibc-functions/res_query.texi: Likewise.
40490         * doc/glibc-functions/res_querydomain.texi: Likewise.
40491         * doc/glibc-functions/res_send.texi: Likewise.
40492         * doc/glibc-functions/rresvport_af.texi: Likewise.
40493         * doc/glibc-functions/setxattr.texi: Likewise.
40494         * doc/glibc-functions/strcasestr.texi: Likewise.
40495
40496 2008-12-15  Bruno Haible  <bruno@clisp.org>
40497
40498         Fix compilation error on OSF/1 4.0.
40499         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
40500         <sys/time.h>, simply delegate to the system header.
40501         Reported by Daniel Richard G. <oss@teragram.com>.
40502
40503 2008-12-15  Bruno Haible  <bruno@clisp.org>
40504
40505         * doc/posix-functions/openat.texi: Mention the 'openat' module.
40506         * doc/posix-functions/fchmodat.texi: Likewise.
40507         * doc/posix-functions/fchownat.texi: Likewise.
40508         * doc/posix-functions/fdopendir.texi: Likewise.
40509         * doc/posix-functions/fstatat.texi: Likewise.
40510         * doc/posix-functions/mkdirat.texi: Likewise.
40511         * doc/posix-functions/unlinkat.texi: Likewise.
40512
40513 2008-12-14  Bruno Haible  <bruno@clisp.org>
40514
40515         Update doc for POSIX:2008.
40516         * doc/posix-functions/faccessat.texi: New file.
40517         * doc/posix-functions/fchmodat.texi: New file.
40518         * doc/posix-functions/fchownat.texi: New file.
40519         * doc/posix-functions/fdopendir.texi: New file.
40520         * doc/posix-functions/fstatat.texi: New file.
40521         * doc/posix-functions/futimens.texi: New file.
40522         * doc/posix-functions/linkat.texi: New file.
40523         * doc/posix-functions/mkdirat.texi: New file.
40524         * doc/posix-functions/mkfifoat.texi: New file.
40525         * doc/posix-functions/mknodat.texi: New file.
40526         * doc/posix-functions/open_wmemstream.texi: New file.
40527         * doc/posix-functions/openat.texi: New file.
40528         * doc/posix-functions/psiginfo.texi: New file.
40529         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
40530         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
40531         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
40532         * doc/posix-functions/readlinkat.texi: New file.
40533         * doc/posix-functions/renameat.texi: New file.
40534         * doc/posix-functions/strerror_l.texi: New file.
40535         * doc/posix-functions/symlinkat.texi: New file.
40536         * doc/posix-functions/unlinkat.texi: New file.
40537         * doc/posix-functions/utimensat.texi: New file.
40538         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40539
40540 2008-12-14  Bruno Haible  <bruno@clisp.org>
40541
40542         Update doc for POSIX:2008.
40543         * doc/posix-functions/alphasort.texi: Renamed from
40544         doc/glibc-functions/alphasort.texi.
40545         * doc/posix-functions/dirfd.texi: Renamed from
40546         doc/glibc-functions/dirfd.texi.
40547         * doc/posix-functions/dprintf.texi: Renamed from
40548         doc/glibc-functions/dprintf.texi.
40549         * doc/posix-functions/duplocale.texi: Renamed from
40550         doc/glibc-functions/duplocale.texi.
40551         * doc/posix-functions/fexecve.texi: Renamed from
40552         doc/glibc-functions/fexecve.texi.
40553         * doc/posix-functions/fmemopen.texi: Renamed from
40554         doc/glibc-functions/fmemopen.texi.
40555         * doc/posix-functions/freelocale.texi: Renamed from
40556         doc/glibc-functions/freelocale.texi.
40557         * doc/posix-functions/getdate_err.texi: Renamed from
40558         doc/glibc-functions/getdate_err.texi.
40559         * doc/posix-functions/isalnum_l.texi: Renamed from
40560         doc/glibc-functions/isalnum_l.texi.
40561         * doc/posix-functions/isalpha_l.texi: Renamed from
40562         doc/glibc-functions/isalpha_l.texi.
40563         * doc/posix-functions/isblank_l.texi: Renamed from
40564         doc/glibc-functions/isblank_l.texi.
40565         * doc/posix-functions/iscntrl_l.texi: Renamed from
40566         doc/glibc-functions/iscntrl_l.texi.
40567         * doc/posix-functions/isdigit_l.texi: Renamed from
40568         doc/glibc-functions/isdigit_l.texi.
40569         * doc/posix-functions/isgraph_l.texi: Renamed from
40570         doc/glibc-functions/isgraph_l.texi.
40571         * doc/posix-functions/islower_l.texi: Renamed from
40572         doc/glibc-functions/islower_l.texi.
40573         * doc/posix-functions/isprint_l.texi: Renamed from
40574         doc/glibc-functions/isprint_l.texi.
40575         * doc/posix-functions/ispunct_l.texi: Renamed from
40576         doc/glibc-functions/ispunct_l.texi.
40577         * doc/posix-functions/isspace_l.texi: Renamed from
40578         doc/glibc-functions/isspace_l.texi.
40579         * doc/posix-functions/isupper_l.texi: Renamed from
40580         doc/glibc-functions/isupper_l.texi.
40581         * doc/posix-functions/iswalnum_l.texi: Renamed from
40582         doc/glibc-functions/iswalnum_l.texi.
40583         * doc/posix-functions/iswalpha_l.texi: Renamed from
40584         doc/glibc-functions/iswalpha_l.texi.
40585         * doc/posix-functions/iswblank_l.texi: Renamed from
40586         doc/glibc-functions/iswblank_l.texi.
40587         * doc/posix-functions/iswcntrl_l.texi: Renamed from
40588         doc/glibc-functions/iswcntrl_l.texi.
40589         * doc/posix-functions/iswctype_l.texi: Renamed from
40590         doc/glibc-functions/iswctype_l.texi.
40591         * doc/posix-functions/iswdigit_l.texi: Renamed from
40592         doc/glibc-functions/iswdigit_l.texi.
40593         * doc/posix-functions/iswgraph_l.texi: Renamed from
40594         doc/glibc-functions/iswgraph_l.texi.
40595         * doc/posix-functions/iswlower_l.texi: Renamed from
40596         doc/glibc-functions/iswlower_l.texi.
40597         * doc/posix-functions/iswprint_l.texi: Renamed from
40598         doc/glibc-functions/iswprint_l.texi.
40599         * doc/posix-functions/iswpunct_l.texi: Renamed from
40600         doc/glibc-functions/iswpunct_l.texi.
40601         * doc/posix-functions/iswspace_l.texi: Renamed from
40602         doc/glibc-functions/iswspace_l.texi.
40603         * doc/posix-functions/iswupper_l.texi: Renamed from
40604         doc/glibc-functions/iswupper_l.texi.
40605         * doc/posix-functions/iswxdigit_l.texi: Renamed from
40606         doc/glibc-functions/iswxdigit_l.texi.
40607         * doc/posix-functions/isxdigit_l.texi: Renamed from
40608         doc/glibc-functions/isxdigit_l.texi.
40609         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
40610         doc/glibc-functions/mbsnrtowcs.texi.
40611         * doc/posix-functions/mkdtemp.texi: Renamed from
40612         doc/glibc-functions/mkdtemp.texi.
40613         * doc/posix-functions/newlocale.texi: Renamed from
40614         doc/glibc-functions/newlocale.texi.
40615         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
40616         doc/glibc-functions/nl_langinfo_l.texi.
40617         * doc/posix-functions/open_memstream.texi: Renamed from
40618         doc/glibc-functions/open_memstream.texi.
40619         * doc/posix-functions/opterr.texi: Renamed from
40620         doc/glibc-functions/opterr.texi.
40621         * doc/posix-functions/optind.texi: Renamed from
40622         doc/glibc-functions/optind.texi.
40623         * doc/posix-functions/optopt.texi: Renamed from
40624         doc/glibc-functions/optopt.texi.
40625         * doc/posix-functions/psignal.texi: Renamed from
40626         doc/glibc-functions/psignal.texi.
40627         * doc/posix-functions/scandir.texi: Renamed from
40628         doc/glibc-functions/scandir.texi.
40629         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
40630         doc/glibc-functions/sched_get_priority_min.texi.
40631         * doc/posix-functions/signgam.texi: Renamed from
40632         doc/glibc-functions/signgam.texi.
40633         * doc/posix-functions/stpcpy.texi: Renamed from
40634         doc/glibc-functions/stpcpy.texi.
40635         * doc/posix-functions/stpncpy.texi: Renamed from
40636         doc/glibc-functions/stpncpy.texi.
40637         * doc/posix-functions/strcasecmp_l.texi: Renamed from
40638         doc/glibc-functions/strcasecmp_l.texi.
40639         * doc/posix-functions/strcoll_l.texi: Renamed from
40640         doc/glibc-functions/strcoll_l.texi.
40641         * doc/posix-functions/strfmon_l.texi: Renamed from
40642         doc/glibc-functions/strfmon_l.texi.
40643         * doc/posix-functions/strftime_l.texi: Renamed from
40644         doc/glibc-functions/strftime_l.texi.
40645         * doc/posix-functions/strncasecmp_l.texi: Renamed from
40646         doc/glibc-functions/strncasecmp_l.texi.
40647         * doc/posix-functions/strndup.texi: Renamed from
40648         doc/glibc-functions/strndup.texi.
40649         * doc/posix-functions/strnlen.texi: Renamed from
40650         doc/glibc-functions/strnlen.texi.
40651         * doc/posix-functions/strsignal.texi: Renamed from
40652         doc/glibc-functions/strsignal.texi.
40653         * doc/posix-functions/strxfrm_l.texi: Renamed from
40654         doc/glibc-functions/strxfrm_l.texi.
40655         * doc/posix-functions/timer_gettime.texi: Renamed from
40656         doc/glibc-functions/timer_gettime.texi.
40657         * doc/posix-functions/tolower_l.texi: Renamed from
40658         doc/glibc-functions/tolower_l.texi.
40659         * doc/posix-functions/toupper_l.texi: Renamed from
40660         doc/glibc-functions/toupper_l.texi.
40661         * doc/posix-functions/towctrans_l.texi: Renamed from
40662         doc/glibc-functions/towctrans_l.texi.
40663         * doc/posix-functions/towlower_l.texi: Renamed from
40664         doc/glibc-functions/towlower_l.texi.
40665         * doc/posix-functions/towupper_l.texi: Renamed from
40666         doc/glibc-functions/towupper_l.texi.
40667         * doc/posix-functions/uselocale.texi: Renamed from
40668         doc/glibc-functions/uselocale.texi.
40669         * doc/posix-functions/vdprintf.texi: Renamed from
40670         doc/glibc-functions/vdprintf.texi.
40671         * doc/posix-functions/wcpcpy.texi:
40672         Renamed from doc/glibc-functions/wcpcpy.texi.
40673         * doc/posix-functions/wcpncpy.texi: Renamed from
40674         doc/glibc-functions/wcpncpy.texi.
40675         * doc/posix-functions/wcscasecmp.texi: Renamed from
40676         doc/glibc-functions/wcscasecmp.texi.
40677         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
40678         doc/glibc-functions/wcscasecmp_l.texi.
40679         * doc/posix-functions/wcscoll_l.texi: Renamed from
40680         doc/glibc-functions/wcscoll_l.texi.
40681         * doc/posix-functions/wcsdup.texi: Renamed from
40682         doc/glibc-functions/wcsdup.texi.
40683         * doc/posix-functions/wcsncasecmp.texi: Renamed from
40684         doc/glibc-functions/wcsncasecmp.texi.
40685         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
40686         doc/glibc-functions/wcsncasecmp_l.texi.
40687         * doc/posix-functions/wcsnlen.texi: Renamed from
40688         doc/glibc-functions/wcsnlen.texi.
40689         * doc/posix-functions/wcsnrtombs.texi: Renamed from
40690         doc/glibc-functions/wcsnrtombs.texi.
40691         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
40692         doc/glibc-functions/wcsxfrm_l.texi.
40693         * doc/posix-functions/wctrans_l.texi: Renamed from
40694         doc/glibc-functions/wctrans_l.texi.
40695         * doc/posix-functions/wctype_l.texi: Renamed from
40696         doc/glibc-functions/wctype_l.texi.
40697         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40698         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
40699         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
40700         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
40701         these subsections.
40702         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
40703         Remove sections.
40704
40705 2008-12-14  Bruno Haible  <bruno@clisp.org>
40706
40707         Update doc for POSIX:2008.
40708         * doc/posix-functions/*.texi: Update URL of POSIX specification.
40709
40710 2008-12-14  Bruno Haible  <bruno@clisp.org>
40711
40712         Update doc for POSIX:2008.
40713         * doc/pastposix-functions/bcmp.texi: Renamed from
40714         doc/posix-functions/bcmp.texi.
40715         * doc/pastposix-functions/bcopy.texi: Renamed from
40716         doc/posix-functions/bcopy.texi.
40717         * doc/pastposix-functions/bsd_signal.texi: Renamed from
40718         doc/posix-functions/bsd_signal.texi.
40719         * doc/pastposix-functions/bzero.texi: Renamed from
40720         doc/posix-functions/bzero.texi.
40721         * doc/pastposix-functions/ecvt.texi: Renamed from
40722         doc/posix-functions/ecvt.texi.
40723         * doc/pastposix-functions/fcvt.texi: Renamed from
40724         doc/posix-functions/fcvt.texi.
40725         * doc/pastposix-functions/ftime.texi: Renamed from
40726         doc/posix-functions/ftime.texi.
40727         * doc/pastposix-functions/gcvt.texi: Renamed from
40728         doc/posix-functions/gcvt.texi.
40729         * doc/pastposix-functions/getcontext.texi: Renamed from
40730         doc/posix-functions/getcontext.texi.
40731         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
40732         doc/posix-functions/gethostbyaddr.texi.
40733         * doc/pastposix-functions/gethostbyname.texi: Renamed from
40734         doc/posix-functions/gethostbyname.texi.
40735         * doc/pastposix-functions/getwd.texi: Renamed from
40736         doc/posix-functions/getwd.texi.
40737         * doc/pastposix-functions/h_errno.texi: Renamed from
40738         doc/posix-functions/h_errno.texi.
40739         * doc/pastposix-functions/index.texi: Renamed from
40740         doc/posix-functions/index.texi.
40741         * doc/pastposix-functions/makecontext.texi: Renamed from
40742         doc/posix-functions/makecontext.texi.
40743         * doc/pastposix-functions/mktemp.texi: Renamed from
40744         doc/posix-functions/mktemp.texi.
40745         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
40746         doc/posix-functions/pthread_attr_getstackaddr.texi.
40747         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
40748         doc/posix-functions/pthread_attr_setstackaddr.texi.
40749         * doc/pastposix-functions/rindex.texi: Renamed from
40750         doc/posix-functions/rindex.texi.
40751         * doc/pastposix-functions/scalb.texi: Renamed from
40752         doc/posix-functions/scalb.texi.
40753         * doc/pastposix-functions/setcontext.texi: Renamed from
40754         doc/posix-functions/setcontext.texi.
40755         * doc/pastposix-functions/swapcontext.texi: Renamed from
40756         doc/posix-functions/swapcontext.texi.
40757         * doc/pastposix-functions/ualarm.texi: Renamed from
40758         doc/posix-functions/ualarm.texi.
40759         * doc/pastposix-functions/usleep.texi: Renamed from
40760         doc/posix-functions/usleep.texi.
40761         * doc/pastposix-functions/vfork.texi: Renamed from
40762         doc/posix-functions/vfork.texi.
40763         * doc/pastposix-functions/wcswcs.texi: Renamed from
40764         doc/posix-functions/wcswcs.texi.
40765         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
40766         (Function Substitutes): Update.
40767
40768 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40769
40770         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
40771         m4/strerror.m4.
40772
40773 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40774             Bruno Haible  <bruno@clisp.org>
40775
40776         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
40777
40778 2008-12-13  Bruno Haible  <bruno@clisp.org>
40779
40780         * modules/strtoull (Depends-on): Remove unistd.
40781
40782 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40783
40784         * modules/strtoull (Depends-on): Add stdlib.
40785
40786 2008-12-11  Simon Josefsson  <simon@josefsson.org>
40787
40788         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
40789
40790 2008-12-10  Jim Meyering  <meyering@redhat.com>
40791
40792         gl_ASSERT: don't say assertions are disabled when they're not
40793         * m4/assert.m4 (gl_ASSERT): Do not make configure report
40794         "checking whether to enable assertions... no", when they are in
40795         fact enabled.  This is solely a bug in the output of configure.
40796         In spite of saying "no", NDEBUG was not defined in that case.
40797         Also, as noted by Eric Blake, leave assertions enabled upon
40798         --enable-assert=INVALID.
40799
40800 2008-12-10  Bruno Haible  <bruno@clisp.org>
40801
40802         Change MODULES.html to refer to POSIX:2008 where possible.
40803         * MODULES.html.sh (POSIX2008_URL): New variable.
40804         (posix_headers): Remove sys/timeb, ucontext.
40805         (posix2001_headers): New variable.
40806         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
40807         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
40808         index, makecontext, mktemp, pthread_attr_getstackaddr,
40809         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
40810         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
40811         (posix2001_functions): New variable.
40812         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
40813         otherwise.
40814
40815 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40816
40817         add missing include to parse-duration.c
40818         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
40819         * modules/parse-duration (Depends-on): Add xalloc.
40820
40821         fix sed script reading maint.mk
40822         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
40823         (syntax-check-rules): Use it.
40824
40825 2008-12-09  Bruno Haible  <bruno@clisp.org>
40826
40827         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
40828         MacOS X 10.4/PowerPC.
40829         Reported by Simon Josefsson.
40830
40831 2008-12-08  Jim Meyering  <meyering@redhat.com>
40832
40833         work around mingw's lack of some S_IF definitions
40834         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
40835         Reported by Simon Josefsson.
40836
40837 2008-12-08  Bruno Haible  <bruno@clisp.org>
40838
40839         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
40840         applied to variables. Needed on MacOS X 10.4/PowerPC.
40841         Reported by Simon Josefsson.
40842
40843 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
40844         and Eric Blake  <ebb9@byu.net>
40845
40846         assert: honor --enable-assert
40847         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
40848         order to honor --enable-assert, rather than treating it as a
40849         synonym for --disable-assert.
40850
40851 2008-12-08  Jim Meyering  <meyering@redhat.com>
40852
40853         * lib/posixtm.c: Remove now-useless declaration of mktime.
40854
40855         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
40856
40857 2008-12-07  Bruno Haible  <bruno@clisp.org>
40858
40859         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
40860         test_once): Mark functions as static.
40861         * tests/test-tls.c (test_tls): Likewise.
40862
40863 2008-12-07  Bruno Haible  <bruno@clisp.org>
40864
40865         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
40866         iconv_register_autodetect.
40867
40868 2008-12-07  Jim Meyering  <meyering@redhat.com>
40869
40870         posixtm.c: avoid a warning
40871         * lib/posixtm.c (posixtime): Don't initialize tm0.
40872         It's no longer needed to placate gcc4's -Wuninitialized,
40873         and the attempt to placate would elicit a new warning.
40874
40875         unicodeio.c: mark unused parameters
40876         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40877         (fallback_failure_callback): Likewise.
40878
40879 2008-12-07  Bruno Haible  <bruno@clisp.org>
40880
40881         * gnulib-tool (func_create_testdir): When building the tests
40882         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
40883         Reported by Simon Josefsson.
40884
40885 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40886
40887         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
40888
40889 2008-12-06  Bruno Haible  <bruno@clisp.org>
40890
40891         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
40892         Suggested by Eric Blake.
40893
40894 2008-12-06  Bruno Haible  <bruno@clisp.org>
40895
40896         Fix a c-stack test failure on MacOS X.
40897         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
40898         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
40899         handler for SIGBUS as well.
40900         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40901         install a signal handler for SIGBUS as well.
40902         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40903
40904 2008-12-06  Bruno Haible  <bruno@clisp.org>
40905
40906         Advocacy documentation.
40907         * doc/gnulib-intro.texi (Benefits): New section.
40908         * doc/gnulib.texi: Update.
40909
40910 2008-12-06  Bruno Haible  <bruno@clisp.org>
40911
40912         Document the 'manywarnings' module.
40913         * doc/manywarnings.texi: New file.
40914         * doc/gnulib.texi: Include it.
40915
40916 2008-12-05  Eric Blake  <ebb9@byu.net>
40917
40918         tests: silence some gcc warnings
40919         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40920         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40921         type mismatches.
40922
40923 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40924             Bruno Haible  <bruno@clisp.org>
40925
40926         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40927
40928 2008-11-29  Jim Meyering  <meyering@redhat.com>
40929
40930         unicodeio.c: mark unused parameters
40931         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40932         (fallback_failure_callback): Likewise.
40933
40934         fts: fix a thinko
40935         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40936         (set_stat_type): Return S_IF*-valued "type" directly.
40937         Prompted by James Youngman's spotting a related bug.
40938         Confirmed by further testing through find.
40939
40940         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40941         * lib/fts.c (D_TYPE): Define.
40942         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40943         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40944         (s_ifmt_shift_bits): New function.
40945         (set_stat_type): New function.
40946         (fts_build): When not calling fts_stat, call set_stat_type
40947         to propagate dirent.d_type info to fts_read caller.
40948         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40949         fts_statp->st_mode type information may be valid.
40950
40951 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40952
40953         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40954         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40955         <sds@gnu.org>.
40956
40957 2008-11-20  Bruno Haible  <bruno@clisp.org>
40958
40959         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40960         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40961         INCLUDE_NEXT.
40962         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40963         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40964         * modules/math (Makefile.am): Substitute
40965         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40966         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40967
40968 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40969             Bruno Haible  <bruno@clisp.org>
40970
40971         * lib/stdint.in.h: Define all type macros so that their expansion is
40972         a single typedef'ed token. Fixes a compilation failure in Boost which
40973         does "using ::int8_t;".
40974
40975 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40976
40977         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40978         gl_MANYWARN_ALL_GCC.
40979         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40980         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40981         * modules/manywarnings: New file.
40982         * MODULES.html.sh: Mention manywarnings module.
40983
40984 2008-11-18  Bruno Haible  <bruno@clisp.org>
40985
40986         * doc/gnulib-tool.texi (Unit tests): New section.
40987
40988 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40989
40990         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40991         paths like 'lib/po/foo.po'.
40992
40993 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40994
40995         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40996         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40997
40998 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40999
41000         * m4/warnings.m4: Use CPPFLAGS to really check whether the
41001         parameter works.
41002
41003 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41004
41005         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
41006
41007 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41008
41009         * modules/parse-duration-tests: New file.
41010         * tests/test-parse-duration.sh: New file.
41011         * tests/test-parse-duration.c: New file.
41012
41013         New module 'parse-duration'.
41014         * lib/parse-duration.h: New file.
41015         * lib/parse-duration.c: New file.
41016         * modules/parse-duration: New file.
41017
41018 2008-11-17  Bruno Haible  <bruno@clisp.org>
41019
41020         * tests/test-select-out.sh: Comment out the first pipe test.
41021         Reported by Simon Josefsson.
41022
41023 2008-11-17  Bruno Haible  <bruno@clisp.org>
41024
41025         * modules/getaddrinfo (Depends-on): Add servent, hostent.
41026         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
41027         gl_HOSTENT.
41028
41029 2008-11-17  Bruno Haible  <bruno@clisp.org>
41030
41031         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
41032         -lnetwork and -lnet. Needed for Haiku and BeOS.
41033
41034 2008-11-16  Bruno Haible  <bruno@clisp.org>
41035
41036         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
41037
41038 2008-11-16  Bruno Haible  <bruno@clisp.org>
41039
41040         Avoid test failure on Haiku.
41041         * tests/test-fsync.c: Include <errno.h>.
41042         (main): Don't require that fsync (0) fails.
41043
41044 2008-11-15  Bruno Haible  <bruno@clisp.org>
41045
41046         New module 'hostent'.
41047         * modules/hostent: New file.
41048         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
41049
41050 2008-11-15  Bruno Haible  <bruno@clisp.org>
41051
41052         New module 'servent'.
41053         * modules/servent: New file.
41054         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
41055
41056 2008-11-15  Bruno Haible  <bruno@clisp.org>
41057
41058         Avoid generating same test program with two different rules.
41059         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
41060         test-frexp to test-frexp-nolibm.
41061         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
41062         test-frexpl to test-frexpl-nolibm.
41063
41064 2008-11-15  Bruno Haible  <bruno@clisp.org>
41065
41066         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
41067         $(FREXPL_LIBM).
41068
41069 2008-11-15  Bruno Haible  <bruno@clisp.org>
41070
41071         * lib/netdb.in.h: Activate the definitions also when the system's
41072         <netdb.h> has 'struct addrinfo'.
41073         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
41074         EAI_OVERFLOW or AI_NUMERICSERV.
41075         * doc/posix-headers/netdb.texi: Document the problem.
41076
41077 2008-11-15  Bruno Haible  <bruno@clisp.org>
41078
41079         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
41080
41081         Make the 'sched' module work on platforms where <sched.h> exists but
41082         is incomplete (such as Haiku).
41083         * lib/sched.in.h; Include the system's <sched.h> if it exists.
41084         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
41085         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
41086         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
41087         HAVE_STRUCT_SCHED_PARAM.
41088         * modules/sched (Depends-on): Add include_next.
41089         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
41090         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
41091         * doc/posix-headers/sched.texi: Document the issue.
41092
41093 2008-11-13  Jim Meyering  <meyering@redhat.com>
41094
41095         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
41096         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
41097         test would fail due to the difference in the Report bugs to ...
41098         line.  The expected address is empty, "<>", while the actual
41099         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
41100
41101 2008-11-12  Bruno Haible  <bruno@clisp.org>
41102
41103         lstat: don't compile lstat.c on systems lacking lstat
41104         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
41105         which don't have lstat; this is handled by lib/sys_stat.in.h already.
41106         Reported by Daniel P. Berrange via Jim Meyering.
41107
41108 2008-11-12  Jim Meyering  <meyering@redhat.com>
41109
41110         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
41111
41112 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41113
41114         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
41115         instead.
41116
41117 2008-11-12  Bruno Haible  <bruno@clisp.org>
41118
41119         * lib/unicodeio.c: Include unistr.h.
41120         (utf8_wctomb): Remove function.
41121         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
41122
41123 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41124
41125         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
41126         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
41127         <bruno@clisp.org>.
41128         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
41129
41130 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41131
41132         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
41133         * doc/gnulib.texi: Add section for warnings.
41134
41135 2008-11-11  Bruno Haible  <bruno@clisp.org>
41136
41137         * lib/sockets.h: Add a comment.
41138
41139 2008-11-11  Karl Berry  <karl@gnu.org>
41140
41141         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
41142
41143 2008-11-11  Eric Blake  <ebb9@byu.net>
41144
41145         fdl.texi: avoid git symlinks
41146         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
41147
41148 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41149
41150         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
41151
41152 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41153
41154         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
41155         (gl_WARN_ADD): Substitute $2 if literal.
41156
41157 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41158
41159         * m4/warning.m4: Remove.
41160
41161 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41162
41163         * m4/warnings.m4: Almost complete rewrite. :-)
41164
41165 2008-11-10  Simon Josefsson  <simon@josefsson.org>
41166
41167         * modules/warnings: New module.
41168         * m4/warnings.m4: New file.
41169         * MODULES.html.sh: Mention warnings module.
41170         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
41171         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41172
41173 2008-11-10  Eric Blake  <ebb9@byu.net>
41174
41175         fdl.texi: make a symlink to the latest version
41176         * doc/standards.texi: Revert today's earlier change.
41177         * doc/fdl-1.2.texi: Rename from old fdl.texi...
41178         * doc/fdl.texi: ...and replace this with a symlink to the newer
41179         fdl-1.3.texi.
41180
41181 2008-11-10  Bruno Haible  <bruno@clisp.org>
41182
41183         * tests/test-select-fd.c (main): Accept the result file name as fourth
41184         argument.
41185         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
41186         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
41187
41188 2008-11-10  Bruno Haible  <bruno@clisp.org>
41189
41190         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
41191         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
41192         as autoconf-substituted macros.
41193         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
41194         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
41195         gl_NETDB_H_DEFAULTS. Set these variables.
41196         * modules/netdb (Makefile.am): Substitute these variables.
41197
41198 2008-11-10  Eric Blake  <ebb9@byu.net>
41199
41200         standards.texi: include correct file for FDL 1.3
41201         * doc/standards.texi (GNU Free Documentation License): Change
41202         include file to pull in FDL 1.3, not 1.2.
41203
41204         fdl.texi: revert accidental change to license
41205         * doc/fdl.texi: This is FDL 1.2, not 1.3.
41206
41207 2008-11-10  Bruno Haible  <bruno@clisp.org>
41208
41209         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
41210         cross-compiling guesses also when the native compile gives no result.
41211
41212 2008-11-10  Bruno Haible  <bruno@clisp.org>
41213
41214         * lib/spawni.c (__spawni): Force variable into the stack.
41215
41216 2008-11-10  Bruno Haible  <bruno@clisp.org>
41217
41218         Add support for Haiku.
41219         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
41220         glibc and BeOS, but also on Haiku.
41221         * lib/fpurge.c (fpurge): Likewise.
41222         * lib/freadable.c (freadable): Likewise.
41223         * lib/freadahead.c (freadahead): Likewise.
41224         * lib/freading.c (freading): Likewise.
41225         * lib/freadptr.c (freadptr): Likewise.
41226         * lib/freadseek.c (freadptrinc): Likewise.
41227         * lib/fseeko.c (rpl_fseeko): Likewise.
41228         * lib/fseterr.c (fseterr): Likewise.
41229         * lib/fwritable.c (fwritable): Likewise.
41230         * lib/fwriting.c (fwriting): Likewise.
41231         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
41232
41233 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41234
41235         * lib/config.charset: Treat Haiku like BeOS.
41236
41237 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41238
41239         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
41240         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
41241
41242 2008-11-08  Bruno Haible  <bruno@clisp.org>
41243
41244         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
41245         AC_CACHE_CHECK.
41246
41247 2008-11-08  Bruno Haible  <bruno@clisp.org>
41248
41249         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
41250
41251 2008-11-08  Bruno Haible  <bruno@clisp.org>
41252
41253         * tests/test-select-fd.c: New file.
41254         * tests/test-select-in.sh: New file.
41255         * tests/test-select-out.sh: New file.
41256         * tests/test-select-stdin.c: New file.
41257         * modules/select-tests (Files): Add the new files.
41258         (Depends-on): Add gettimeofday.
41259         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
41260         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
41261         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
41262
41263 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
41264             Bruno Haible  <bruno@clisp.org>
41265
41266         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
41267
41268 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
41269
41270         * build-aux/pmccabe2html: Added support for C++ source files.
41271
41272 2008-11-05  Ben Pfaff  <blp@gnu.org>
41273
41274         Fix lib/close.c build on Windows.
41275         * modules/close (Files): Add lib/w32sock.h.
41276
41277 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
41278
41279         Accept Bison's NEWS format.
41280         * build-aux/announce-gen (print_news_deltas): Tweak
41281         $re_prefix.
41282
41283 2008-11-04  Bruno Haible  <bruno@clisp.org>
41284
41285         * modules/random_r (Maintainer): Add glibc.
41286
41287 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41288
41289         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
41290         by karl@freefriends.org (Karl Berry).
41291         * doc/alloca.texi: Likewise.
41292         * doc/c-ctype.texi: Likewise.
41293         * doc/c-strcase.texi: Likewise.
41294         * doc/c-strcaseeq.texi: Likewise.
41295         * doc/c-strcasestr.texi: Likewise.
41296         * doc/c-strstr.texi: Likewise.
41297         * doc/c-strtod.texi: Likewise.
41298         * doc/c-strtold.texi: Likewise.
41299         * doc/ctime.texi: Likewise.
41300         * doc/error.texi: Likewise.
41301         * doc/fdl.texi: Likewise.
41302         * doc/gcd.texi: Likewise.
41303         * doc/getdate.texi: Likewise.
41304         * doc/gnulib-intro.texi: Likewise.
41305         * doc/gnulib-tool.texi: Likewise.
41306         * doc/gnulib.texi: Likewise.
41307         * doc/inet_ntoa.texi: Likewise.
41308         * doc/maintain.texi: Likewise.
41309         * doc/make-stds.texi: Likewise.
41310         * doc/quote.texi: Likewise.
41311         * doc/regexprops-generic.texi: Likewise.
41312         * doc/standards.texi: Likewise.
41313         * doc/verify.texi: Likewise.
41314         * doc/visibility.texi: Likewise.
41315         * doc/gnulib.texi (GNU Free Documentation License): Include
41316         fdl-1.3.texi instead of fdl.texi.
41317
41318 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41319
41320         * doc/fdl-1.3.texi: New file, from
41321         <http://www.gnu.org/licenses/fdl-1.3.texi>.
41322         * modules/fdl-1.3: Add.
41323         * MODULES.html.sh: Add fdl-1.3.
41324
41325 2008-11-03  Bruno Haible  <bruno@clisp.org>
41326
41327         Make determination of absolute name of header file work with AIX xlc.
41328         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
41329         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
41330         preprocessing.
41331         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41332         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
41333
41334 2008-11-03  Simon Josefsson  <simon@josefsson.org>
41335
41336         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
41337         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
41338         <ludo@gnu.org>.
41339
41340 2008-11-02  Bruno Haible  <bruno@clisp.org>
41341
41342         Mark 'strpbrk' obsolete.
41343         * modules/strpbrk (Status, Notice): New sections.
41344         * modules/strtok_r (Depends-on): Add strpbrk.
41345
41346 2008-11-02  Bruno Haible  <bruno@clisp.org>
41347
41348         Mark 'strdup' obsolete.
41349         * modules/strdup (Status, Notice): New sections.
41350         * modules/findprog (Depends-on): Add strdup.
41351         * modules/getaddrinfo (Depends-on): Likewise.
41352         * modules/localename (Depends-on): Likewise.
41353         * modules/relocatable-lib (Depends-on): Likewise.
41354         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
41355         * modules/relocatable-prog (Depends-on): Likewise.
41356         * modules/trim (Depends-on): Likewise.
41357         * modules/unictype/gen-ctype (Depends-on): Likewise.
41358         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41359
41360 2008-11-02  Bruno Haible  <bruno@clisp.org>
41361
41362         Mark 'strcspn' obsolete.
41363         * modules/strcspn (Status, Notice): New sections.
41364
41365 2008-11-02  Bruno Haible  <bruno@clisp.org>
41366
41367         Mark 'rmdir' obsolete.
41368         * modules/rmdir (Status, Notice): New sections.
41369         * modules/clean-temp (Depends-on): Add rmdir.
41370         * modules/openat (Depends-on): Likewise.
41371
41372 2008-11-02  Bruno Haible  <bruno@clisp.org>
41373
41374         Mark 'raise' obsolete.
41375         * modules/raise (Status, Notice): New sections.
41376         (Include): Specify <signal.h>.
41377         * modules/stdio (Depends-on): Add raise.
41378         * modules/write (Depends-on): Likewise.
41379
41380 2008-11-02  Bruno Haible  <bruno@clisp.org>
41381
41382         Mark 'memset' obsolete.
41383         * modules/memset (Status, Notice): New sections.
41384
41385 2008-11-02  Bruno Haible  <bruno@clisp.org>
41386
41387         Mark 'memmove' obsolete.
41388         * modules/memmove (Status, Notice): New sections.
41389         * modules/argp (Depends-on): Add memmove.
41390         * modules/argz (Depends-on): Likewise.
41391         * modules/canonicalize (Depends-on): Likewise.
41392         * modules/canonicalize-lgpl (Depends-on): Likewise.
41393         * modules/fts (Depends-on): Likewise.
41394         * modules/getcwd (Depends-on): Likewise.
41395         * modules/human (Depends-on): Likewise.
41396         * modules/regex (Depends-on): Likewise.
41397         * modules/striconveh (Depends-on): Likewise.
41398         * modules/trim (Depends-on): Likewise.
41399         * modules/unistr/u8-move (Depends-on): Likewise.
41400         * modules/unistr/u16-move (Depends-on): Likewise.
41401         * modules/unistr/u32-move (Depends-on): Likewise.
41402
41403 2008-11-02  Bruno Haible  <bruno@clisp.org>
41404
41405         Mark 'memcpy' obsolete.
41406         * modules/memcpy (Status, Notice): New sections.
41407
41408 2008-11-02  Bruno Haible  <bruno@clisp.org>
41409
41410         Mark 'memcmp' obsolete.
41411         * modules/memcmp (Status, Notice): New sections.
41412         * modules/argmatch (Depends-on): Add memchr.
41413         * modules/backupfile (Depends-on): Likewise.
41414         * modules/c-strcasestr (Depends-on): Likewise.
41415         * modules/crypto/des (Depends-on): Likewise.
41416         * modules/csharpcomp (Depends-on): Likewise.
41417         * modules/fnmatch (Depends-on): Likewise.
41418         * modules/git-merge-changelog (Depends-on): Likewise.
41419         * modules/isnand (Depends-on): Likewise.
41420         * modules/isnand-nolibm (Depends-on): Likewise.
41421         * modules/isnanf (Depends-on): Likewise.
41422         * modules/isnanf-nolibm (Depends-on): Likewise.
41423         * modules/isnanl (Depends-on): Likewise.
41424         * modules/isnanl-nolibm (Depends-on): Likewise.
41425         * modules/mbchar (Depends-on): Likewise.
41426         * modules/memcoll (Depends-on): Likewise.
41427         * modules/quotearg (Depends-on): Likewise.
41428         * modules/regex (Depends-on): Likewise.
41429         * modules/relocatable-prog (Depends-on): Likewise.
41430         * modules/same (Depends-on): Likewise.
41431         * modules/signbit (Depends-on): Likewise.
41432         * modules/strcasestr-simple (Depends-on): Likewise.
41433         * modules/unictype/gen-ctype (Depends-on): Likewise.
41434         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41435         * modules/uniname/uniname (Depends-on): Likewise.
41436         * modules/unistr/u8-cmp (Depends-on): Likewise.
41437
41438 2008-11-02  Bruno Haible  <bruno@clisp.org>
41439
41440         Mark 'memchr' obsolete.
41441         * modules/memchr (Status, Notice): New sections.
41442         * modules/argp (Depends-on): Add memchr.
41443         * modules/base64 (Depends-on): Likewise.
41444         * modules/c-strcasestr (Depends-on): Likewise.
41445         * modules/chdir-long (Depends-on): Likewise.
41446         * modules/fnmatch (Depends-on): Likewise.
41447         * modules/getsubopt (Depends-on): Likewise.
41448         * modules/git-merge-changelog (Depends-on): Likewise.
41449         * modules/glob (Depends-on): Likewise.
41450         * modules/strcasestr-simple (Depends-on): Likewise.
41451         * modules/strnlen (Depends-on): Likewise.
41452
41453 2008-11-02  Bruno Haible  <bruno@clisp.org>
41454
41455         Mark 'atexit' obsolete.
41456         * modules/atexit (Status, Notice): New sections.
41457         * modules/chdir-long (Depends-on): Add atexit.
41458         * modules/wait-process (Depends-on): Likewise.
41459
41460 2008-11-02  Bruno Haible  <bruno@clisp.org>
41461
41462         * gnulib-tool: New option --with-obsolete.
41463         (func_usage): Document it.
41464         (func_modules_transitive_closure): Drop obsolete dependencies if
41465         incobsolete is not true.
41466         (func_import): Read and save the incobsolete variable to the cache.
41467
41468 2008-11-02  Bruno Haible  <bruno@clisp.org>
41469
41470         * modules/TEMPLATE-EXTENDED: New field 'Status'.
41471         * gnulib-tool: New option --extract-status.
41472         (func_usage): Document it.
41473         (sed_extract_prog): Recognize it.
41474         (func_get_status): New function.
41475
41476 2008-10-30  Simon Josefsson  <simon@josefsson.org>
41477
41478         * modules/sockets (License): Change from LGPL to LGPLv2+.
41479
41480 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41481
41482         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
41483
41484 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41485
41486         * MODULES.html.sh (Support for systems lacking POSIX:2001):
41487         Mention times and sys_times.
41488         * modules/sys_times, modules/sys_times-tests: New modules.
41489         * modules/times, modules/times-tests: Likewise
41490         * m4/sys_times_h.m4: New file.
41491         * lib/sys_times.in.h: Likewise
41492         * lib/times.c: Likewise.
41493         * tests/test-sys_times.c: Likewise.
41494         * tests/test-times.c: Likewise.
41495         * doc/posix-headers/sys_times.texi: Update.
41496         * doc/posix-functions/times.texi: Update.
41497
41498 2008-10-28  Jim Meyering  <meyering@redhat.com>
41499
41500         * modules/tempname (Depends-on): Add lstat.
41501
41502         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
41503
41504 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41505
41506         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
41507         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
41508         using idiom used elsewhere in gnulib.
41509
41510 2008-10-27  Jim Meyering  <meyering@redhat.com>
41511
41512         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
41513
41514 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41515
41516         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
41517         TESTS_ENVIRONMENT, for shell scripts that needs to call built
41518         programs.
41519         * tests/test-argp-2.sh: Use $EXEEXT when needed.
41520
41521 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41522
41523         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
41524
41525 2008-10-27  Bruno Haible  <bruno@clisp.org>
41526
41527         * tests/test-lstat.c: Include <stdio.h>.
41528
41529 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41530
41531         * modules/lstat-tests: New module.
41532         * tests/test-lstat.c: New file.
41533
41534 2008-10-26  Jim Meyering  <meyering@redhat.com>
41535
41536         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
41537
41538 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41539             Bruno Haible  <bruno@clisp.org>
41540
41541         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
41542         * modules/configmake (Include): Add a note that the include must come
41543         after all system headers.
41544         * lib/javaversion.c: Include configmake.h after all other includes.
41545
41546 2008-10-26  Bruno Haible  <bruno@clisp.org>
41547
41548         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
41549         HAVE_STRUCT_RANDOM_DATA to 1.
41550         (gl_STDLIB_H): Simplify.
41551
41552 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41553
41554         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
41555         substitute HAVE_STRUCT_RANDOM_DATA.
41556         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
41557         random_data.
41558         * modules/stdlib (Makefile.am): Substitute
41559         HAVE_STRUCT_RANDOM_DATA.
41560
41561 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41562
41563         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
41564         * doc/gnulib-intro.texi (Copyright): Likewise.
41565
41566 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41567
41568         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
41569         findings.
41570
41571 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
41572             Bruno Haible  <bruno@clisp.org>
41573
41574         * lib/unistd.in.h: Include <winsock2.h>.
41575         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
41576         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
41577         Provide dummy declarations.
41578         (gethostname): Override.
41579         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
41580         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
41581         gl_PREREQ_SYS_H_WINSOCK2.
41582         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
41583         * doc/posix-functions/gethostname.texi: More details.
41584
41585 2008-10-25  Bruno Haible  <bruno@clisp.org>
41586
41587         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41588         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
41589         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
41590
41591         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
41592         here ...
41593         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
41594         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
41595         gl_UNISTD_H_DEFAULTS.
41596
41597 2008-10-25  Eric Blake  <ebb9@byu.net>
41598
41599         signbit: avoid spurious compiler failure
41600         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
41601         declarations inside function.
41602
41603 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41604             Bruno Haible  <bruno@clisp.org>
41605
41606         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
41607         * modules/random_r (Depends-on): Add stdint.
41608
41609 2008-10-24  Bruno Haible  <bruno@clisp.org>
41610
41611         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
41612         Eggert.
41613         * modules/strerror (License): Likewise.
41614
41615 2008-10-24  Jim Meyering  <meyering@redhat.com>
41616
41617         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
41618         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
41619
41620 2008-10-24  Eric Blake  <ebb9@byu.net>
41621
41622         getgroups: fix compilation when getgroups is available
41623         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
41624         but with <config.h> override of getgroups disabled.
41625
41626 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41627
41628         * doc/gnulib.texi (Header files): Add note about C++ problems.
41629         Explained by Bruno Haible <bruno@clisp.org>.
41630
41631 2008-10-23  Bruno Haible  <bruno@clisp.org>
41632
41633         Define a dummy SA_NODEFER macro on Interix.
41634         * lib/signal.in.h (SA_NODEFER): Define fallback.
41635         Reported by Aleksey Cheusov <cheusov@tut.by> via
41636         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
41637
41638 2008-10-23  Bruno Haible  <bruno@clisp.org>
41639
41640         * modules/freadahead (License): Change to LGPLv2+.
41641         Suggested by Simon Josefsson.
41642
41643 2008-10-23  Jim Meyering  <meyering@redhat.com>
41644
41645         random_r: new module
41646         * modules/random_r: New file.
41647         * m4/random_r.m4: New file.
41648         * lib/random_r.c: New file, from glibc.
41649         * modules/random_r-tests: New file.
41650         * tests/test-random_r.c: New file.
41651         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
41652          Declare.
41653         (RAND_MAX): Define.
41654         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
41655         * modules/stdlib: Substitute them, too.
41656         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
41657         * doc/glibc-functions/initstate_r.texi: Mention the new module.
41658         * doc/glibc-functions/random_r.texi: Likewise.
41659         * doc/glibc-functions/setstate_r.texi: Likewise.
41660         * doc/glibc-functions/srandom_r.texi: Likewise.
41661         * config/srclist.txt: Mention it.
41662
41663 2008-10-23  David Lutterkort  <lutter@redhat.com>
41664
41665         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
41666         link requirement
41667
41668 2008-10-23  Jim Meyering  <meyering@redhat.com>
41669
41670         selinux-h: mark parameters of stub functions as intentionally unused
41671         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
41672         * lib/se-context.in.h: Likewise.
41673
41674 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41675
41676         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
41677
41678 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41679
41680         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
41681
41682 2008-10-22  Eric Blake  <ebb9@byu.net>
41683
41684         glthread/thread: avoid compiler warning
41685         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
41686         Add unreachable abort to silence compiler.
41687
41688 2008-10-22  Eric Blake  <ebb9@byu.net>
41689
41690         netdb: also supply struct addrinfo for cygwin 1.5.x
41691         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
41692         older cygwin.
41693         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
41694         cygwin.
41695         * doc/posix-headers/netdb.texi (netdb.h): Document this.
41696
41697 2008-10-22  Bruno Haible  <bruno@clisp.org>
41698
41699         * users.txt: Update entry about pspp.
41700
41701 2008-10-21  Bruno Haible  <bruno@clisp.org>
41702
41703         Simplification.
41704         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
41705         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
41706
41707         Simplification.
41708         * lib/ioctl.c (ioctl): Don't undefine.
41709         * lib/socket.c (socket): Don't undefine.
41710
41711         Remove unused module indicator macros.
41712         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
41713         GNULIB_$1 as a C macro.
41714
41715         * doc/posix-functions/close.texi: Undo last change.
41716         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
41717         Windows platforms.
41718
41719 2008-10-21  Bruno Haible  <bruno@clisp.org>
41720
41721         Add gethostname() declaration to <unistd.h>.
41722         * lib/unistd.in.h (gethostname): New declaration.
41723         * lib/gethostname.c: Include <unistd.h>.
41724         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
41725         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
41726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
41727         and HAVE_GETHOSTNAME.
41728         * modules/gethostname (Depends-on): Add unistd.
41729         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41730         (Include): Specify <unistd.h>.
41731         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
41732         HAVE_GETHOSTNAME.
41733         * tests/test-gethostname.c: Include <unistd.h> first.
41734
41735 2008-10-21  Bruno Haible  <bruno@clisp.org>
41736
41737         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
41738         * modules/select-tests (Depends-on): Likewise.
41739         Reported by Simon Josefsson.
41740
41741 2008-10-21  Simon Josefsson  <simon@josefsson.org>
41742
41743         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
41744         * lib/accept.c: New file, based on winsock.c.
41745         * lib/bind.c: New file, based on winsock.c.
41746         * lib/connect.c: New file, based on winsock.c.
41747         * lib/getpeername.c: New file, based on winsock.c.
41748         * lib/getsockname.c: New file, based on winsock.c.
41749         * lib/getsockopt.c: New file, based on winsock.c.
41750         * lib/ioctl.c: New file, based on winsock.c.
41751         * lib/listen.c: New file, based on winsock.c.
41752         * lib/recv.c: New file, based on winsock.c.
41753         * lib/recvfrom.c: New file, based on winsock.c.
41754         * lib/send.c: New file, based on winsock.c.
41755         * lib/sendto.c: New file, based on winsock.c.
41756         * lib/setsockopt.c: New file, based on winsock.c.
41757         * lib/shutdown.c: New file, based on winsock.c.
41758         * lib/socket.c: New file, based on winsock.c.
41759         * lib/w32sock.h: New file, based on winsock.c.
41760         * lib/winsock.c: Remove file.
41761         * modules/accept: Likewise.
41762         * modules/bind: Likewise.
41763         * modules/connect: Likewise.
41764         * modules/getpeername: Likewise.
41765         * modules/getsockname: Likewise.
41766         * modules/getsockopt: Likewise.
41767         * modules/ioctl: Likewise.
41768         * modules/listen: Likewise.
41769         * modules/recv: Likewise.
41770         * modules/recvfrom: Likewise.
41771         * modules/send: Likewise.
41772         * modules/sendto: Likewise.
41773         * modules/setsockopt: Likewise.
41774         * modules/shutdown: Likewise.
41775         * modules/socket: Use socket.c instead of winsock.c.
41776         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
41777         * doc/posix-functions/accept.texi: Doc fix.
41778         * doc/posix-functions/bind.texi: Doc fix.
41779         * doc/posix-functions/close.texi: Doc fix.
41780         * doc/posix-functions/connect.texi: Doc fix.
41781         * doc/posix-functions/getpeername.texi: Doc fix.
41782         * doc/posix-functions/getsockname.texi: Doc fix.
41783         * doc/posix-functions/getsockopt.texi: Doc fix.
41784         * doc/posix-functions/ioctl.texi: Doc fix.
41785         * doc/posix-functions/listen.texi: Doc fix.
41786         * doc/posix-functions/recv.texi: Doc fix.
41787         * doc/posix-functions/recvfrom.texi: Doc fix.
41788         * doc/posix-functions/send.texi: Doc fix.
41789         * doc/posix-functions/sendto.texi: Doc fix.
41790         * doc/posix-functions/setsockopt.texi: Doc fix.
41791         * doc/posix-functions/shutdown.texi: Doc fix.
41792         * doc/posix-functions/socket.texi: Doc fix.
41793
41794 2008-10-20  Bruno Haible  <bruno@clisp.org>
41795
41796         Take into account the role of SIGABRT_COMPAT on Windows 2008.
41797         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
41798         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
41799         as an alias for SIGABRT.
41800         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
41801         (sigaction): Map it to SIGABRT.
41802         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
41803
41804 2008-10-20  Bruno Haible  <bruno@clisp.org>
41805
41806         * lib/fts.c: Don't include lstat.h.
41807         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
41808
41809         Move the lstat() declaration to <sys/stat.h>.
41810         * lib/lstat.h: Remove file.
41811         * lib/sys_stat.in.h: Add special invocation convention.
41812         (lstat): New declaration.
41813         * lib/lstat.c (orig_lstat): New function.
41814         (rpl_lstat): Use orig_lstat instead of lstat.
41815         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
41816         AC_C_INLINE. Set REPLACE_LSTAT.
41817         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
41818         and REPLACE_LSTAT.
41819         * modules/lstat (Files): Remove lib/lstat.h.
41820         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41821         (Include): Specify <sys/stat.h> instead of lstat.h.
41822         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
41823         REPLACE_LSTAT.
41824         * NEWS: Mention the change.
41825
41826 2008-10-20  Bruno Haible  <bruno@clisp.org>
41827
41828         * modules/posix_spawn-tests: New file.
41829         * tests/test-posix_spawn3.c: New file.
41830
41831 2008-10-20  Bruno Haible  <bruno@clisp.org>
41832
41833         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
41834         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41835         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
41836         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41837         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
41838
41839 2008-10-20  Bruno Haible  <bruno@clisp.org>
41840
41841         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
41842         of posix_spawn on AIX 5.3.
41843
41844 2008-10-20  Bruno Haible  <bruno@clisp.org>
41845
41846         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
41847
41848 2008-10-20  Bruno Haible  <bruno@clisp.org>
41849
41850         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
41851         of AC_LANG_PROGRAM.
41852
41853 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41854
41855         * lib/netdb.in.h: Don't define GNU specific constants until they
41856         are supported or needed.  Reported by Bruno Haible
41857         <bruno@clisp.org>.
41858
41859 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41860
41861         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
41862
41863 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41864
41865         * lib/getaddrinfo.h: Remove file.
41866         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
41867         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
41868         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
41869         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
41870         * modules/netdb: Substitute GNULIB_GETADDRINFO.
41871         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
41872         * tests/test-getaddrinfo.c: Likewise.
41873         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
41874         * NEWS: Mention change.
41875
41876 2008-10-19  Bruno Haible  <bruno@clisp.org>
41877
41878         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
41879
41880 2008-10-19  Bruno Haible  <bruno@clisp.org>
41881
41882         * lib/wait-process.c: Include simply <sys/wait.h>.
41883         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
41884         WIFSTOPPED): Remove fallback definitions.
41885         * modules/wait-process (Depends-on): Add sys_wait.
41886
41887         New module 'sys_wait'.
41888         * modules/sys_wait: New file.
41889         * lib/sys_wait.in.h: New file, partially copied from
41890         lib/wait-process.c.
41891         * m4/sys_wait_h.m4: New file.
41892         * doc/posix-headers/sys_wait.texi: Mention the new module.
41893
41894 2008-10-19  Bruno Haible  <bruno@clisp.org>
41895
41896         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
41897
41898 2008-10-19  Bruno Haible  <bruno@clisp.org>
41899
41900         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41901         * lib/wait-process.c (WAIT_T): Remove type.
41902         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41903         (wait_subprocess): Update.
41904
41905 2008-10-19  Bruno Haible  <bruno@clisp.org>
41906
41907         New module 'atoll'.
41908         * modules/atoll: New file.
41909         * lib/stdlib.in.h (atoll): New declaration.
41910         * lib/atoll.c: New file, from glibc with modifications.
41911         * m4/atoll.m4: New file.
41912         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41913         HAVE_ATOLL.
41914         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41915         * doc/posix-functions/atoll.texi: Mention the new module.
41916
41917 2008-10-19  Bruno Haible  <bruno@clisp.org>
41918
41919         Add strtoull() declaration to <stdlib.h>.
41920         * lib/stdlib.in.h (strtoull): New declaration.
41921         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41922         Set HAVE_STRTOULL.
41923         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41924         HAVE_STRTOULL.
41925         * modules/strtoull (Depends-on): Add stdlib.
41926         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41927         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41928         HAVE_STRTOULL.
41929
41930 2008-10-19  Bruno Haible  <bruno@clisp.org>
41931
41932         Add strtoll() declaration to <stdlib.h>.
41933         * lib/stdlib.in.h (strtoll): New declaration.
41934         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41935         Set HAVE_STRTOLL.
41936         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41937         HAVE_STRTOLL.
41938         * modules/strtoll (Depends-on): Add stdlib.
41939         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41940         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41941
41942 2008-10-19  Bruno Haible  <bruno@clisp.org>
41943
41944         * modules/bcopy (Depends-on): Add strings.
41945         (Include): Specify <strings.h>.
41946
41947 2008-10-19  Bruno Haible  <bruno@clisp.org>
41948
41949         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41950
41951 2008-10-19  Bruno Haible  <bruno@clisp.org>
41952
41953         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41954         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41955         mingw.
41956
41957 2008-10-19  Bruno Haible  <bruno@clisp.org>
41958
41959         * lib/atanl.c: Don't include isnanl.h.
41960         * lib/cosl.c: Likewise.
41961         * lib/ldexpl.c: Likewise.
41962         * lib/logl.c: Likewise.
41963         * lib/sinl.c: Likewise.
41964         * lib/sqrtl.c: Likewise.
41965         * lib/tanl.c: Likewise.
41966
41967         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41968         * lib/isnanf.h: Remove file.
41969         * lib/isnand.h: Remove file.
41970         * lib/isnanl.h: Remove file.
41971         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41972         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41973         macros.
41974         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41975         HAVE_ISNANF, don't define it as a C macro.
41976         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41977         HAVE_ISNAND, don't define it as a C macro.
41978         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41979         HAVE_ISNANL, don't define it as a C macro.
41980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41981         HAVE_ISNAN[FDL].
41982         * modules/isnanf (Files): Remove lib/isnanf.h.
41983         (Depends-on): Add math.
41984         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41985         (Include): Specify <math.h> instead of isnanf.h.
41986         * modules/isnand (Files): Remove lib/isnand.h.
41987         (Depends-on): Add math.
41988         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41989         (Include): Specify <math.h> instead of isnand.h.
41990         * modules/isnanl (Files): Remove lib/isnanl.h.
41991         (Depends-on): Add math.
41992         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41993         (Include): Specify <math.h> instead of isnanl.h.
41994         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41995         HAVE_ISNAN[FDL].
41996         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41997         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41998         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41999         * NEWS: Mention the change.
42000
42001 2008-10-18  Bruno Haible  <bruno@clisp.org>
42002
42003         Add getusershell(), setusershell(), endusershell() declarations to
42004         <unistd.h>.
42005         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
42006         declarations.
42007         * lib/getusershell.c: Include unistd.h.
42008         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
42009         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42010         HAVE_GETUSERSHELL.
42011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
42012         and HAVE_GETUSERSHELL.
42013         * modules/getusershell (Depends-on): Add unistd, extensions.
42014         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42015         (Include): Specify <unistd.h>.
42016         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
42017         HAVE_GETUSERSHELL.
42018
42019 2008-10-18  Bruno Haible  <bruno@clisp.org>
42020
42021         Add a getloadavg() declaration to <stdlib.h>.
42022         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
42023         getloadavg declaration.
42024         (getloadavg): New declaration.
42025         * lib/getloadavg.c: Include <stdlib.h> first.
42026         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
42027         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
42028         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
42029         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
42030         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42031         * modules/getloadavg (Depends-on): Add stdlib, extensions.
42032         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42033         (Include): Specify <stdlib.h>.
42034         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
42035         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42036
42037 2008-10-18  Bruno Haible  <bruno@clisp.org>
42038
42039         * lib/dirchownmod.c: Don't include lchmod.h.
42040
42041         Move the lchmod() declaration to <sys/stat.h>.
42042         * lib/lchmod.h: Remove file.
42043         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
42044         (lchmod): New declaration, moved here from lib/lchown.h.
42045         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
42046         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
42047         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
42048         and HAVE_LCHMOD.
42049         * modules/lchmod (Files): Remove lib/lchmod.h.
42050         (Depends-on): Add sys_stat, extensions.
42051         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42052         (Include): Specify <sys/stat.h> instead of lchmod.h.
42053         * modules/sys_stat (Depends-on): Add link-warning.
42054         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
42055         definition of GL_LINK_WARNING.
42056         * NEWS: Mention the change.
42057
42058 2008-10-18  Bruno Haible  <bruno@clisp.org>
42059
42060         * lib/fchdir.c: Don't include dirfd.h.
42061         * lib/fts.c: Likewise.
42062         * lib/getcwd.c: Likewise.
42063         * lib/glob.c: Likewise.
42064
42065         Move the dirfd() declaration to <dirent.h>.
42066         * lib/dirfd.h: Remove file.
42067         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
42068         (dirfd): New declaration.
42069         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
42070         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
42071         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
42072         HAVE_DECL_DIRFD.
42073         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
42074         HAVE_DECL_DIRFD.
42075         * modules/dirfd (Files): Remove lib/dirfd.h.
42076         (Depends-on): Add dirent, extensions.
42077         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
42078         (Include): Specify <dirent.h> instead of dirfd.h.
42079         * modules/dirent (Depends-on): Add link-warning.
42080         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
42081         definition of GL_LINK_WARNING.
42082         * NEWS: Mention the change.
42083
42084 2008-10-18  Bruno Haible  <bruno@clisp.org>
42085
42086         Move the euidaccess() declaration to <unistd.h>.
42087         * lib/euidaccess.h: Remove file.
42088         * lib/unistd.in.h (euidaccess): New declaration.
42089         * lib/euidaccess.c: Don't include euidaccess.h.
42090         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
42091         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
42092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
42093         and HAVE_EUIDACCESS.
42094         * modules/euidaccess (Files): Remove lib/euidaccess.h.
42095         (Depends-on): Add unistd.
42096         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42097         (Include): Specify <unistd.h> instead of euidaccess.h.
42098         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
42099         HAVE_EUIDACCESS.
42100         * NEWS: Mention the change.
42101
42102 2008-10-18  Bruno Haible  <bruno@clisp.org>
42103
42104         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
42105
42106         Move the getdomainname() declaration to <unistd.h>.
42107         * lib/getdomainname.h: Remove file.
42108         * lib/unistd.in.h (getdomainname): New declaration.
42109         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
42110         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
42111         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42112         HAVE_GETDOMAINNAME.
42113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42114         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
42115         * modules/getdomainname (Files): Remove lib/getdomainname.h.
42116         (Depends-on): Add unistd, extensions.
42117         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42118         (Includes): Specify <unistd.h> instead of getdomainname.h.
42119         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
42120         HAVE_GETDOMAINNAME.
42121         * NEWS: Mention the change.
42122
42123 2008-10-18  Bruno Haible  <bruno@clisp.org>
42124
42125         * modules/dirent: New file.
42126         * m4/dirent_h.m4: New file.
42127         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
42128         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
42129         * modules/fchdir (Files): Remove lib/dirent.in.h.
42130         (Depends-on): Add dirent.
42131         (Makefile.am): Move rules to modules/dirent.
42132         * doc/posix-headers/dirent.texi: Mention the new module.
42133
42134 2008-10-18  Bruno Haible  <bruno@clisp.org>
42135
42136         Avoid -Wunused-parameter warnings in public gnulib header files.
42137         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
42138         macro.
42139         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
42140
42141 2008-10-18  Bruno Haible  <bruno@clisp.org>
42142
42143         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
42144         * doc/glibc-functions/error.texi: Mention the module 'error'.
42145         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
42146         * doc/glibc-functions/getdomainname.texi: Mention the module
42147         'getdomainname'.
42148         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
42149         * doc/glibc-functions/getpagesize.texi: Mention the module
42150         'getpagesize'.
42151         * doc/glibc-functions/getusershell.texi: Mention the module
42152         'getusershell'.
42153         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
42154         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
42155         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
42156         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
42157         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
42158         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
42159         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
42160         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
42161         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
42162         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
42163         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
42164         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
42165         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
42166         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
42167
42168 2008-10-17  Bruno Haible  <bruno@clisp.org>
42169
42170         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
42171         HP-UX and IRIX, use -0.0L.
42172         * tests/test-ceill.c (minus_zero): Likewise.
42173         * tests/test-floorl.c (minus_zero): Likewise.
42174         * tests/test-frexpl.c (minus_zero): Likewise.
42175         * tests/test-isnan.c (minus_zerol): Likewise.
42176         * tests/test-isnanl.h (minus_zero): Likewise.
42177         * tests/test-ldexpl.c (minus_zero): Likewise.
42178         * tests/test-roundl.c (minus_zero): Likewise.
42179         * tests/test-signbit.c (minus_zerol): Likewise.
42180         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42181         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42182         * tests/test-truncl.c (minus_zero): Likewise.
42183         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42184         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42185         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
42186         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42187
42188 2008-10-17  Bruno Haible  <bruno@clisp.org>
42189
42190         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
42191         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
42192         that it gets activated only for gcc >= 3.0.
42193         * lib/dirent.in.h: Likewise.
42194         * lib/errno.in.h: Likewise.
42195         * lib/fcntl.in.h: Likewise.
42196         * lib/float.in.h: Likewise.
42197         * lib/iconv.in.h: Likewise.
42198         * lib/inttypes.in.h: Likewise.
42199         * lib/locale.in.h: Likewise.
42200         * lib/math.in.h: Likewise.
42201         * lib/netdb.in.h: Likewise.
42202         * lib/netinet_in.in.h: Likewise.
42203         * lib/search.in.h: Likewise.
42204         * lib/signal.in.h: Likewise.
42205         * lib/spawn.in.h: Likewise.
42206         * lib/stdarg.in.h: Likewise.
42207         * lib/stdint.in.h: Likewise.
42208         * lib/stdio.in.h: Likewise.
42209         * lib/stdlib.in.h: Likewise.
42210         * lib/string.in.h: Likewise.
42211         * lib/strings.in.h: Likewise.
42212         * lib/sys_file.in.h: Likewise.
42213         * lib/sys_ioctl.in.h: Likewise.
42214         * lib/sys_select.in.h: Likewise.
42215         * lib/sys_socket.in.h: Likewise.
42216         * lib/sys_stat.in.h: Likewise.
42217         * lib/sys_time.in.h: Likewise.
42218         * lib/sysexits.in.h: Likewise.
42219         * lib/time.in.h: Likewise.
42220         * lib/unistd.in.h: Likewise.
42221         * lib/wchar.in.h: Likewise.
42222         * lib/wctype.in.h: Likewise.
42223         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42224
42225 2008-10-17  Jim Meyering  <meyering@redhat.com>
42226
42227         ignore-value: don't depend on inline module
42228         * modules/ignore-value (Depends-on): Remove 'inline'.
42229         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
42230         Suggestion from Bruno Haible.
42231
42232 2008-10-17  Bruno Haible  <bruno@clisp.org>
42233
42234         New implementation of condition variables for Win32.
42235         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
42236         (gl_linked_waitqueue_t): New type.
42237         (gl_cond_t): Use it.
42238         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
42239         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
42240         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
42241         (glthread_cond_init_func, glthread_cond_wait_func,
42242         glthread_cond_timedwait_func, glthread_cond_signal_func,
42243         glthread_cond_broadcast_func, glthread_cond_destroy_func):
42244         Reimplemented on the basis of gl_linked_waitqueue_t.
42245         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
42246         gl_waitqueue_t.
42247         (gl_rwlock_t): Update.
42248         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
42249
42250 2008-10-17  Simon Josefsson  <simon@josefsson.org>
42251
42252         * modules/recvfrom (Depends-on): Add dependency on getpeername.
42253         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42254
42255 2008-10-17  Jim Meyering  <meyering@redhat.com>
42256
42257         ignore-value: new module
42258         * modules/ignore-value: New file.
42259         * lib/ignore-value.h: New file.
42260         * MODULES.html.sh (Compiler warning management): New section,
42261         just for this module.  More to come.
42262
42263 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42264
42265         open-safer.c: avoid 'signed and unsigned in conditional...' warning
42266         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
42267         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
42268
42269 2008-10-16  Jim Meyering  <meyering@redhat.com>
42270
42271         openat-die.c: avoid 'no previous prototype' warning
42272         * lib/openat-die.c: Include "openat.h".
42273         Reported by Reuben Thomas <rrt@sc3d.org>.
42274
42275 2008-10-16  Simon Josefsson  <simon@josefsson.org>
42276
42277         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
42278         * lib/netdb.in.h: Fix typo.
42279         Reported by Bruno Haible  <bruno@clisp.org>
42280
42281         * lib/netdb.in.h: Include sys/socket.h for platforms without
42282         netdb.h, to get structures like hostent on MinGW.
42283         * modules/netdb (Depends-on): Add sys_socket.
42284
42285 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42286
42287         * modules/netdb, modules/netdb-tests: New file.
42288         * m4/netdb_h.m4: New file.
42289         * lib/netdb.in.h: Add, currently just an empty file pending
42290         definitions.
42291         * tests/test-netdb.c: New file.
42292         * doc/posix-headers/netdb.texi: Mention that we replace it if
42293         needed.
42294         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42295         netdb.
42296
42297 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42298
42299         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
42300         with code.
42301
42302 2008-10-13  Bruno Haible  <bruno@clisp.org>
42303
42304         * lib/glthread/cond.c (glthread_cond_wait_func,
42305         glthread_cond_timedwait_func): Add a comment.
42306
42307 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42308
42309         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
42310         * tests/test-select.c: Likewise,
42311
42312 2008-10-13  Bruno Haible  <bruno@clisp.org>
42313
42314         * lib/glthread/cond.c (glthread_cond_wait_func,
42315         glthread_cond_timedwait_func): Fix variable name.
42316         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42317
42318 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
42319
42320         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
42321         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
42322         struct sockaddr.sa_len.
42323         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
42324
42325 2008-10-13  Simon Josefsson  <simon@josefsson.org>
42326
42327         * build-aux/pmccabe2html: Add css and css_url parameters.
42328
42329 2008-10-12  Bruno Haible  <bruno@clisp.org>
42330
42331         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
42332         calling aclx_get.
42333         Reported by Rainer Tammer <tammer@tammer.net>.
42334
42335 2008-10-12  Bruno Haible  <bruno@clisp.org>
42336
42337         Use msvcrt aware primitives for creation/termination of Win32 threads.
42338         * lib/glthread/thread.c: Include <process.h>.
42339         (glthread_create_func): Use _beginthreadex instead of CreateThread.
42340         (wrapper_func): Update signature.
42341         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
42342
42343 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42344             Bruno Haible  <bruno@clisp.org>
42345
42346         Provide a Win32 implementation of the 'cond' module.
42347         * lib/glthread/cond.h [USE_WIN32]: New implementation.
42348         * lib/glthread/cond.c (glthread_cond_init_func,
42349         glthread_cond_wait_func, glthread_cond_timedwait_func,
42350         glthread_cond_signal_func, glthread_cond_broadcast_func,
42351         glthread_cond_destroy_func) [USE_WIN32]: New functions.
42352         * modules/cond (Dependencies): Add gettimeofday.
42353
42354 2008-10-11  Bruno Haible  <bruno@clisp.org>
42355
42356         Make sleep work on older versions of mingw.
42357         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
42358         only whether it exists.
42359         * doc/posix-functions/sleep.texi: Mention the problem with older
42360         versions of mingw.
42361
42362 2008-10-11  Bruno Haible  <bruno@clisp.org>
42363
42364         New module 'shutdown'.
42365         * modules/shutdown: New file.
42366         * lib/sys_socket.in.h (shutdown): New declaration.
42367         * lib/winsock.c (shutdown): New function.
42368         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42369         GNULIB_SHUTDOWN.
42370         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
42371         * doc/posix-functions/shutdown.texi: Document the new module.
42372
42373 2008-10-11  Jim Meyering  <meyering@redhat.com>
42374
42375         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
42376
42377 2008-10-11  Bruno Haible  <bruno@clisp.org>
42378
42379         New module 'fclose'.
42380         * modules/fclose: New file.
42381         * lib/stdio.in.h (fclose): New declaration.
42382         * lib/fclose.c: New file.
42383         * m4/fclose.m4: New file.
42384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
42385         REPLACE_FCLOSE.
42386         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
42387         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
42388         REPLACE_FCLOSE.
42389         * modules/close (Depends-on): fclose.
42390         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
42391
42392 2008-10-11  Bruno Haible  <bruno@clisp.org>
42393
42394         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
42395         set errno and don't call _close.
42396
42397 2008-10-10  Bruno Haible  <bruno@clisp.org>
42398
42399         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
42400         ACL, not afterwards. Fixes test failure on Cygwin.
42401
42402 2008-10-09  Ben Pfaff  <blp@gnu.org>
42403
42404         * build-aux/announce-gen: Fix gnulib version related part of usage
42405         message.  Die with a useful error message if no tarballs are
42406         found.
42407
42408 2008-10-10  Jim Meyering  <meyering@redhat.com>
42409
42410         bootstrap: use git's --depth=N option only if it's supported
42411         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
42412         recognize the --depth option.  Reported by Pádraig Brady.
42413
42414 2008-10-09  Bruno Haible  <bruno@clisp.org>
42415
42416         New module 'ioctl'.
42417         * modules/ioctl: New file.
42418         * lib/sys_socket.in.h (ioctl): Remove declaration.
42419         * lib/winsock.c: Include <sys/ioctl.h>.
42420         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
42421         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42422         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
42423         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
42424         * doc/posix-functions/ioctl.texi: Mention the new module.
42425
42426 2008-10-09  Bruno Haible  <bruno@clisp.org>
42427
42428         New module 'sys_ioctl'.
42429         * lib/sys_ioctl.in.h: New file.
42430         * m4/sys_ioctl_h.m4: New file.
42431         * modules/sys_ioctl: New file.
42432         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
42433
42434 2008-10-09  Bruno Haible  <bruno@clisp.org>
42435
42436         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
42437         * lib/winsock.c: Include <stdarg.h>.
42438         (rpl_ioctl): Change to second argument 'int' and then varargs.
42439
42440 2008-10-09  Bruno Haible  <bruno@clisp.org>
42441
42442         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
42443         when the sys_socket module is present and the system has <winsock2.h>.
42444
42445 2008-10-09  Bruno Haible  <bruno@clisp.org>
42446
42447         * doc/posix-functions/close.texi: Mention module 'close' instead of
42448         module 'sys_socket'.
42449
42450 2008-10-09  Bruno Haible  <bruno@clisp.org>
42451
42452         * doc/glibc-headers/sys_ioctl.texi: New file.
42453         * doc/gnulib.texi: Include it.
42454
42455 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42456             Bruno Haible  <bruno@clisp.org>
42457
42458         Combine the two replacements of 'close'.
42459         * lib/sys_socket.in.h (close): Define to a reminder to include
42460         <unistd.h>.
42461         (_gl_close_fd_maybe_socket): New declaration.
42462         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
42463         * lib/winsock.c (close): Remove undefinition.
42464         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
42465         needed for the gnulib module 'close'.
42466         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
42467         define to an error symbol or to a warning, if suitable.
42468         * lib/close.c: Include <sys/socket.h>.
42469         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
42470         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
42471         UNISTD_H_HAVE_WINSOCK2_H.
42472         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
42473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42474         UNISTD_H_HAVE_WINSOCK2_H.
42475         * modules/sys_socket (Files): Add m4/unistd_h.m4.
42476         (configure.ac): Set a module indicator.
42477         (Makefile.am): Substitute GNULIB_CLOSE.
42478         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
42479         * modules/poll-tests (Depends-on): Add close.
42480         * modules/select-tests (Depends-on): Likewise.
42481
42482 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42483             Bruno Haible  <bruno@clisp.org>
42484
42485         New module 'close'.
42486         * modules/close: New file.
42487         * lib/unistd.in.h (close): Move declaration out of the
42488         FCHDIR_REPLACEMENT scope.
42489         (_gl_unregister_fd): New declaration.
42490         * lib/close.c: New file.
42491         * lib/fchdir.c (rpl_close): Remove function.
42492         * m4/close.m4: New file.
42493         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42494         close.
42495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
42496         REPLACE_CLOSE.
42497         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
42498         REPLACE_CLOSE.
42499         * modules/fchdir (Depends-on): Add close.
42500
42501 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42502             Bruno Haible  <bruno@clisp.org>
42503
42504         * lib/fcntl.in.h (open): Simplify conditionals.
42505         (_gl_register_fd): New declaration.
42506         * lib/fchdir.c (rpl_open): Remove function.
42507         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
42508         also.
42509         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
42510         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42511         open.
42512
42513 2008-10-09  Jim Meyering  <meyering@redhat.com>
42514
42515         GNUmakefile: use the more name-space-friendly "_version"
42516         * top/GNUmakefile (_dummy): Update.
42517         (_version): Rename from "version".
42518
42519 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42520             Bruno Haible  <bruno@clisp.org>
42521
42522         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
42523         rpl_close.
42524         (_gl_register_fd): New function, extracted from rpl_open.
42525         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
42526         (rpl_open, rpl_opendir): Use _gl_register_fd.
42527
42528 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42529
42530         Fix organization of 'open' replacement.
42531         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
42532         (gl_FUNC_OPEN): Use it.
42533         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
42534
42535 2008-10-08  Bruno Haible  <bruno@clisp.org>
42536
42537         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
42538
42539 2008-10-08  Simon Josefsson  <simon@josefsson.org>
42540
42541         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
42542         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
42543         listen).
42544
42545 2008-10-08  Eric Blake  <ebb9@byu.net>
42546
42547         GNUmakefile: add 'make version' target
42548         * top/GNUmakefile (_curr-ver): Split version update rules...
42549         (version): ...into a target.
42550
42551 2008-10-07  Bruno Haible  <bruno@clisp.org>
42552
42553         Use a more portable replacement expression for -0.0L.
42554         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
42555         instead of -0.0L. Fix m4 quotation.
42556
42557         * tests/test-signbit.c: Include <float.h>.
42558         (minus_zero): New variable.
42559         (test_signbitl): Use minus_zero instead of -zero.
42560         * modules/signbit-tests (Depends-on): Add float.
42561
42562         * tests/test-ceill.c: Include <float.h>.
42563         (zero): Remove variable.
42564         (minus_zero): New variable.
42565         (main): Use minus_zero instead of -zero.
42566         * modules/ceill-tests (Depends-on): Add float.
42567
42568         * tests/test-floorl.c: Include <float.h>.
42569         (zero): Remove variable.
42570         (minus_zero): New variable.
42571         (main): Use minus_zero instead of -zero.
42572         * modules/floorl-tests (Depends-on): Add float.
42573
42574         * tests/test-roundl.c: Include <float.h>.
42575         (zero): Remove variable.
42576         (minus_zero): New variable.
42577         (main): Use minus_zero instead of -zero.
42578         * modules/roundl-tests (Depends-on): Add float.
42579
42580         * tests/test-truncl.c: Include <float.h>.
42581         (zero): Remove variable.
42582         (minus_zero): New variable.
42583         (main): Use minus_zero instead of -zero.
42584         * modules/truncl-tests (Depends-on): Add float.
42585
42586         * tests/test-frexpl.c (zero): Remove variable.
42587         (minus_zero): New variable.
42588         (main): Use minus_zero instead of -zero.
42589         * modules/frexpl-tests (Depends-on): Add float.
42590
42591         * tests/test-isnan.c (zerol): Remove variable.
42592         (minus_zerol): New variable.
42593         (test_long_double): Use minus_zerol instead of -zerol.
42594         * modules/isnan-tests (Depends-on): Add float.
42595
42596         * tests/test-isnanl.h (zero): Remove variable.
42597         (minus_zero): New variable.
42598         (main): Use minus_zero instead of -zero.
42599         * modules/isnanl-nolibm-tests (Depends-on): Add float.
42600         * modules/isnanl-tests (Depends-on): Add float.
42601
42602         * tests/test-ldexpl.c (zero): Remove variable.
42603         (minus_zero): New variable.
42604         (main): Use minus_zero instead of -zero.
42605         * modules/ldexpl-tests (Depends-on): Add float.
42606
42607         * tests/test-snprintf-posix.h (zerol): Remove variable.
42608         (minus_zerol): New variable.
42609         (test_function): Use minus_zerol instead of -zerol.
42610         * modules/snprintf-posix-tests (Depends-on): Add float.
42611         * modules/vsnprintf-posix-tests (Depends-on): Add float.
42612
42613         * tests/test-sprintf-posix.h (zerol): Remove variable.
42614         (minus_zerol): New variable.
42615         (test_function): Use minus_zerol instead of -zerol.
42616         * modules/sprintf-posix-tests (Depends-on): Add float.
42617         * modules/vsprintf-posix-tests (Depends-on): Add float.
42618
42619         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
42620         (minus_zerol): New variable.
42621         (test_function): Use minus_zerol instead of -zerol.
42622         * modules/vasnprintf-posix-tests (Depends-on): Add float.
42623
42624         * tests/test-vasprintf-posix.c (zerol): Remove variable.
42625         (minus_zerol): New variable.
42626         (test_function): Use minus_zerol instead of -zerol.
42627         * modules/vasprintf-posix-tests (Depends-on): Add float.
42628
42629 2008-10-07  Simon Josefsson  <simon@josefsson.org>
42630
42631         * MODULES.html.sh (Support for building documentation): Mention
42632         pmccabe2html.  Sort entries.
42633
42634         Add pmccabe2html module, from gnupdf.
42635         * build-aux/pmccabe.css: New file.
42636         * build-aux/pmccabe2html: New file.
42637         * m4/pmccabe2html.m4: New file.
42638         * modules/pmccabe2html: New file.
42639
42640 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
42641
42642         flock: new module
42643         * MODULES.html.sh: Add to list of modules.
42644         * lib/flock.c: flock implementation for Windows and Unix systems
42645         which have fcntl.
42646         * doc/glibc-functions/flock.texi: Update documentation.
42647         * lib/sys_file.in.h: <sys/file.h> header file.
42648         * m4/flock.m4: M4 macros.
42649         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
42650         * modules/flock: flock module.
42651         * modules/flock-tests: flock tests module.
42652         * modules/sys_file: sys/file.h module.
42653         * tests/test-flock.c: test suite for flock.
42654
42655 2008-10-06  Jim Meyering  <meyering@redhat.com>
42656
42657         bootstrap: check for LT_INIT more portably still ;-)
42658         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
42659         Spotted by Bruno Haible.
42660
42661 2008-10-06  Eric Blake  <ebb9@byu.net>
42662
42663         test-signbit: avoid tripping Irix cc bug on -0.0L
42664         * tests/test-signbit.c (minus_zerol): Delete, and replace with
42665         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
42666         entire testsuite consistent and avoids an Irix 6.2 bug.
42667
42668 2008-10-05  Bruno Haible  <bruno@clisp.org>
42669             Jim Meyering  <jim@meyering.net>
42670
42671         Add an option for ignoring EPIPE during close_stdout.
42672         * lib/closeout.h: Include <stdbool.h>.
42673         (close_stdout_set_ignore_EPIPE): New declaration.
42674         * lib/closeout.c: Include <stdbool.h>.
42675         (ignore_EPIPE): New variable.
42676         (close_stdout_set_ignore_EPIPE): New function.
42677         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
42678         * lib/close-stream.c (close_stream): Mention the possible EPIPE
42679         failure.
42680         * modules/closeout (Depends-on): Add stdbool.
42681
42682 2008-10-05  Bruno Haible  <bruno@clisp.org>
42683
42684         * modules/accept: New file.
42685         * modules/bind: New file.
42686         * modules/connect: New file.
42687         * modules/getpeername: New file.
42688         * modules/getsockname: New file.
42689         * modules/getsockopt: New file.
42690         * modules/listen: New file.
42691         * modules/recv: New file.
42692         * modules/recvfrom: New file.
42693         * modules/send: New file.
42694         * modules/sendto: New file.
42695         * modules/setsockopt: New file.
42696         * modules/socket: New file.
42697         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
42698         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
42699         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
42700         the particular module is requested. Add a link warning when the
42701         particular module is not requested.
42702         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
42703         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
42704         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
42705         the particular module is requested.
42706         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
42707         gl_SYS_SOCKET_H_DEFAULTS): New macros.
42708         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
42709         * modules/sys_socket (Depends-on): Add link-warning.
42710         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
42711         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
42712         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
42713         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
42714         GL_LINK_WARNING.
42715         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
42716         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
42717         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
42718         * doc/posix-functions/getpeername.texi: Mention the new module
42719         'getpeername'.
42720         * doc/posix-functions/getsockname.texi: Mention the new module
42721         'getsockname'.
42722         * doc/posix-functions/getsockopt.texi: Mention the new module
42723         'getsockopt'.
42724         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
42725         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
42726         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
42727         * doc/posix-functions/send.texi: Mention the new module 'send'.
42728         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
42729         * doc/posix-functions/setsockopt.texi: Mention the new module
42730         'setsockopt'.
42731         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
42732         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
42733         listen, connect, accept.
42734         * modules/select-tests (Depends-on): Likewise.
42735
42736 2008-10-05  Bruno Haible  <bruno@clisp.org>
42737
42738         * lib/winsock.c (strerror): Remove unused #undef.
42739         (rpl_close): Remove unused local variable.
42740
42741         * modules/sys_socket (Depends-on); Add errno.
42742
42743 2008-10-05  Bruno Haible  <bruno@clisp.org>
42744
42745         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
42746         (select): Add a link warning when the 'select' module is not used.
42747         * modules/sys_select (Depends-on): Add link-warning.
42748         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
42749         Suggested by Paolo Bonzini.
42750
42751 2008-10-05  Jim Meyering  <meyering@redhat.com>
42752
42753         bootstrap: check for LT_INIT more portably
42754         * build-aux/bootstrap: Avoid using grep -E, since it's not
42755         portable enough.  Suggestion from Bruno Haible.
42756
42757 2008-10-05  Bruno Haible  <bruno@clisp.org>
42758
42759         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
42760         as being fixed by gnulib.
42761
42762 2008-10-05  Bruno Haible  <bruno@clisp.org>
42763
42764         * modules/select-tests: New file, mostly copied from
42765         modules/sys_select-tests.
42766         * tests/test-select.c: New file, mostly copied from
42767         tests/test-sys_select.c.
42768         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
42769         * modules/sys_select-tests (Depends-on): Remove all dependencies.
42770         (Makefile.am): Remove test_sys_select_LDADD.
42771
42772         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
42773         to an undefined symbol, for an error message.
42774         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
42775         (gl_SYS_SELECT_H_DEFAULTS): New macro.
42776         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
42777         winsock-select.c here.
42778         * modules/sys_select (Files): Remove lib/winsock-select.c.
42779         (Depends-on): Remove alloca.
42780         (Makefile.am): Substitute GNULIB_SELECT.
42781         * modules/select: New file.
42782         * doc/posix-functions/select.texi: Update.
42783
42784 2008-10-05  Bruno Haible  <bruno@clisp.org>
42785
42786         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
42787         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
42788         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
42789         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
42790         getdtablesize.
42791         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
42792         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
42793
42794 2008-10-05  Bruno Haible  <bruno@clisp.org>
42795
42796         * modules/getdtablesize-tests: New file.
42797         * tests/test-getdtablesize.c: New file.
42798
42799         New module 'getdtablesize'.
42800         * lib/unistd.in.h (getdtablesize): New declaration.
42801         * lib/getdtablesize.c: New file.
42802         * m4/getdtablesize.m4: New file.
42803         * modules/getdtablesize: New file.
42804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42805         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
42806         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
42807         HAVE_GETDTABLESIZE.
42808         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
42809
42810 2008-10-05  Bruno Haible  <bruno@clisp.org>
42811
42812         * modules/sched (Makefile.am): Fix typo.
42813         Reported by Simon Josefsson.
42814
42815 2008-10-05  Jim Meyering  <meyering@redhat.com>
42816
42817         bootstrap: check for LT_INIT, too
42818         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
42819         are deprecated.  Suggestion from Ralf Wildenhues.
42820
42821 2008-10-05  Bruno Haible  <bruno@clisp.org>
42822
42823         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
42824         overriding them by ours.
42825         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
42826
42827 2008-10-05  Jim Meyering  <meyering@redhat.com>
42828
42829         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
42830         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
42831         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
42832
42833 2008-10-04  Bruno Haible  <bruno@clisp.org>
42834
42835         * modules/dup2 (License): Change to LGPLv2+.
42836         * modules/sleep (License): Likewise.
42837         * modules/perror (License): Likewise.
42838         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
42839         Blake.
42840         * modules/signal (License): Likewise.
42841         * modules/sigprocmask (License): Likewise.
42842         * modules/raise (License): Change to LGPLv2+, with approval by Jim
42843         Meyering.
42844
42845 2008-10-04  Bruno Haible  <bruno@clisp.org>
42846
42847         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
42848         Reported by Rainer Tammer <tammer@tammer.net>.
42849
42850 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
42851             Bruno Haible  <bruno@clisp.org>
42852
42853         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
42854         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
42855         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
42856
42857 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
42858
42859         filevercmp: new module
42860         * lib/filevercmp.h: New function filevercmp comparing version strings.
42861         * lib/filevercmp.c: Implementation of filevercmp function.
42862         * modules/filevercmp: Module metadata.
42863         * tests/test-filevercmp.c: Unit test for new module.
42864         * modules/filevercmp-tests: Unit test metadata.
42865         * MODULES.html.sh: Add filevercmp module.
42866
42867 2008-10-03  Bruno Haible  <bruno@clisp.org>
42868
42869         * lib/c-ctype.h: Add comment.
42870         Reported by Jim Meyering.
42871
42872 2008-10-02  Bruno Haible  <bruno@clisp.org>
42873
42874         * modules/posix_spawn-internal (Depends-on): Add 'open'.
42875
42876 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42877
42878         * build-aux/bootstrap: Allow renaming bootstrap, and change the
42879         name of bootstrap.conf accordingly.
42880
42881 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42882
42883         * build-aux/bootstrap: Install git-merge-changelog configuration
42884         items into .gitconfig if needed.
42885
42886 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42887
42888         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
42889         git repository, and initialize/update it accordingly.
42890
42891 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
42892
42893         * modules/fsync-tests: New file.
42894         * tests/test-fsync.c: New file.
42895
42896         New module 'fsync'.
42897         * lib/fsync.c: New file.
42898         * m4/fsync.m4: New file.
42899         * modules/fsync: New file.
42900         * lib/unistd.in.h (fsync): New declaration.
42901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42902         GNULIB_FSYNC and HAVE_FSYNC.
42903         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42904         * MODULES.html.sh (posix_functions): Add fsync.
42905         * doc/posix-functions/fsync.texi: Mention the new module.
42906
42907 2008-10-02  Jim Meyering  <meyering@redhat.com>
42908
42909         fts.c: sync with similar code from coreutils' remove.c
42910         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42911         Guard also with "#if defined __linux__", since for now at least,
42912         this code is Linux-kernel-specific.
42913
42914 2008-10-02  Jim Meyering  <meyering@redhat.com>
42915
42916         fts: bug fixes
42917         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42918         Include <sys/vfs.h>, not <sys/statfs.h>.
42919
42920         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42921         Include <sys/vfs.h>, not <sys/statfs.h>.
42922
42923 2008-10-01  Bruno Haible  <bruno@clisp.org>
42924
42925         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42926         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42927         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42928         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42929         * doc/posix-functions/posix_spawnp.texi: Likewise.
42930         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42931         whether posix_spawn actually works.
42932         * m4/pipe.m4 (gl_PIPE): Likewise.
42933         * modules/execute (Files): Add m4/posix_spawn.m4.
42934         * modules/pipe (Files): Add m4/posix_spawn.m4.
42935         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42936
42937 2008-10-01  Jim Meyering  <meyering@redhat.com>
42938
42939         remove trailing spaces
42940         * NEWS: Likewise.
42941         * lib/poll.c (poll): Likewise.
42942         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42943         * lib/winsock.c (rpl_close): Likewise.
42944         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42945         * modules/yield: Likewise.
42946         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42947         * tests/test-sys_select.c (connect_to_socket): Likewise.
42948
42949         fts.c: adjust a new interface to be more generally useful
42950         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42951         (fts_build): Adjust caller.
42952
42953 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42954
42955         * modules/cond-tests: New file.
42956         * tests/test-cond.c: New file.
42957
42958 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42959             Bruno Haible  <bruno@clisp.org>
42960
42961         * modules/cond (Dependencies): Add errno, time.
42962         * lib/glthread/cond.h: Include <time.h>.
42963         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42964         across platforms.
42965
42966 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42967             Bruno Haible  <bruno@clisp.org>
42968
42969         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42970
42971 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42972             Bruno Haible  <bruno@clisp.org>
42973
42974         * modules/tls-tests (Depends-on): Add thread, yield.
42975         (configure.ac): Remove all checks.
42976         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42977         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42978         gl_thread_self): Remove definitions. Include glthread/thread.h and
42979         glthread/yield.h instead.
42980         (test_tls): Pass an additional NULL argument to gl_thread_join.
42981
42982 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42983             Bruno Haible  <bruno@clisp.org>
42984
42985         * modules/lock-tests (Depends-on): Add thread, yield.
42986         (configure.ac): Remove all checks.
42987         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42988         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42989         gl_thread_self): Remove definitions. Include glthread/thread.h and
42990         glthread/yield.h instead.
42991         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42992         additional NULL argument to gl_thread_join.
42993
42994 2008-09-30  Bruno Haible  <bruno@clisp.org>
42995
42996         Fix the Win32 implementation of the 'thread' module.
42997         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42998         pointer type.
42999         (gl_thread_self): Invoke gl_thread_self_func.
43000         (gl_thread_self_func): New declaration.
43001         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
43002         (do_init_self_key, init_self_key): New functions.
43003         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
43004         Remove some fields.
43005         (running_threads, running_lock): Remove variables.
43006         (get_current_thread_handle): New function.
43007         (gl_thread_self_func, wrapper_func, glthread_create_func,
43008         glthread_join_func, gl_thread_exit_func): Largely rewritten and
43009         simplified.
43010
43011 2008-09-30  Bruno Haible  <bruno@clisp.org>
43012
43013         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
43014         files.
43015
43016 2008-09-30  Jim Meyering  <meyering@redhat.com>
43017
43018         fts.m4: correct the test for statfs.f_type
43019         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
43020         when checking for statfs.f_type.
43021
43022 2008-09-15  Simon Josefsson  <simon@josefsson.org>
43023
43024         tests: avoid some compiler warnings
43025         * tests/test-memchr.c (main): Pass NULL indirectly.
43026         * tests/test-getdate.c (main): Remove unused variable 'ret'.
43027
43028 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
43029
43030         getdate.y: disallow countable dayshifts like "4 yesterday ago"
43031         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
43032         exactly specified dayshifts.
43033         (dayshift): New rule.
43034         (rel): Add dayshift.
43035         (relative_time_table) [tomorrow, yesterday, today, now]:
43036         Use tDAY_SHIFT in place of tDAY_UNIT.
43037         * tests/test-getdate.c: Add tests for now-disallowed countable
43038         dayshifts, e.g., "4 yesterday ago".
43039
43040 2008-09-29  Bruno Haible  <bruno@clisp.org>
43041
43042         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
43043         * tests/test-posix_spawn1.in.sh: Renamed from
43044         tests/test-posix_spawn.in.sh.
43045         * tests/test-posix_spawn2.c: New file.
43046         * tests/test-posix_spawn2.in.sh: New file.
43047         * modules/posix_spawnp-tests (Files): Update.
43048         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
43049
43050 2008-09-29  Bruno Haible  <bruno@clisp.org>
43051
43052         Propagate effects of putenv/setenv/unsetenv to child processes.
43053         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
43054         * lib/pipe.c (create_pipe): Likewise.
43055
43056 2008-09-29  Bruno Haible  <bruno@clisp.org>
43057
43058         Enable use of shell scripts as executables in mingw.
43059         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
43060         run the program as a shell script.
43061         * lib/pipe.c (create_pipe): Likewise.
43062         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
43063         resulting array.
43064
43065 2008-09-29  Eric Blake  <ebb9@byu.net>
43066
43067         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
43068
43069 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
43070
43071         * doc/posix-functions/accept.texi: Update mingw problems.
43072         * doc/posix-functions/bind.texi: Update mingw problems.
43073         * doc/posix-functions/close.texi: Update mingw problems.
43074         * doc/posix-functions/connect.texi: Update mingw problems.
43075         * doc/posix-functions/getpeername.texi: Update mingw problems.
43076         * doc/posix-functions/getsockname.texi: Update mingw problems.
43077         * doc/posix-functions/getsockopt.texi: Update mingw problems.
43078         * doc/posix-functions/ioctl.texi: Update mingw problems.
43079         * doc/posix-functions/listen.texi: Update mingw problems.
43080         * doc/posix-functions/recv.texi: Update mingw problems.
43081         * doc/posix-functions/recvfrom.texi: Update mingw problems.
43082         * doc/posix-functions/select.texi: Update mingw problems.
43083         * doc/posix-functions/send.texi: Update mingw problems.
43084         * doc/posix-functions/sendto.texi: Update mingw problems.
43085         * doc/posix-functions/setsockopt.texi: Update mingw problems.
43086         * doc/posix-functions/socket.texi: Update mingw problems.
43087
43088 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
43089             Bruno Haible  <bruno@clisp.org>
43090
43091         * lib/sys_select.in.h: Include sys/time.h.
43092         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
43093         * modules/sys_select: Depend on sys_time.
43094         * tests/test-sys_select.c: Test that sys/select.h defines struct
43095         timeval fully.
43096
43097 2008-09-29  Bruno Haible  <bruno@clisp.org>
43098
43099         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
43100         * lib/sys_select.in.h: Likewise.
43101
43102 2008-09-29  Bruno Haible  <bruno@clisp.org>
43103
43104         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
43105
43106 2008-09-29  Bruno Haible  <bruno@clisp.org>
43107
43108         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
43109         Set LIBSOCKET instead of augmenting LIBS.
43110         * modules/sockets (Link): New section.
43111         * modules/sockets-tests (test_sockets_LDADD): New variable.
43112         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
43113         * modules/poll-tests (test_poll_LDADD): New variable.
43114         * NEWS: Document the change.
43115
43116 2008-09-29  Bruno Haible  <bruno@clisp.org>
43117
43118         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
43119         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
43120         ARPA_INET_H directly.
43121         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43122
43123 2008-09-28  Bruno Haible  <bruno@clisp.org>
43124
43125         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
43126         from gl_HEADER_SYS_SOCKET.
43127         (gl_HEADER_SYS_SOCKET): Invoke it.
43128         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43129
43130 2008-09-28  Bruno Haible  <bruno@clisp.org>
43131
43132         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
43133         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
43134         Needed on OSF/1 4.0.
43135
43136 2008-09-28  Bruno Haible  <bruno@clisp.org>
43137
43138         Override open more carefully.
43139         * lib/open.c (orig_open): New function.
43140         (rpl_open): Use orig_open instead of open.
43141         * lib/fcntl.in.h: Add special invocation convention.
43142         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
43143         (gl_FUNC_OPEN): Invoke it.
43144
43145         Override freopen more carefully.
43146         * lib/freopen.c (orig_freopen): New function.
43147         (rpl_freopen): Use orig_freopen instead of freopen.
43148         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
43149         (gl_FUNC_FREOPEN): Invoke it.
43150
43151         Override fopen more carefully.
43152         * lib/fopen.c (orig_fopen): New function.
43153         (rpl_fopen): Use orig_fopen instead of fopen.
43154         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
43155         (gl_FUNC_FOPEN): Invoke it.
43156         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
43157
43158 2008-09-28  Bruno Haible  <bruno@clisp.org>
43159
43160         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
43161         SIGPIPE.
43162
43163 2008-09-28  Bruno Haible  <bruno@clisp.org>
43164
43165         * tests/test-sigaction.c (handler, main): Disable the check whether
43166         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
43167         glibc systems with LinuxThreads.
43168
43169 2008-09-28  Bruno Haible  <bruno@clisp.org>
43170
43171         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
43172
43173         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
43174         with AIX xlc.
43175         * lib/fcntl.in.h (open): Likewise.
43176         Reported by Rainer Tammer <tammer@tammer.net>.
43177
43178 2008-09-28  Bruno Haible  <bruno@clisp.org>
43179
43180         * modules/posix_spawnp-tests: New file.
43181         * tests/test-posix_spawn.c: New file.
43182         * tests/test-posix_spawn.in.sh: New file.
43183
43184         New module 'posix_spawnp'.
43185         * modules/posix_spawnp: New file.
43186         * lib/spawnp.c: New file, from GNU libc with modifications.
43187         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
43188
43189         New module 'posix_spawn'.
43190         * modules/posix_spawn: New file.
43191         * lib/spawn.c: New file, from GNU libc with modifications.
43192         * doc/posix-functions/posix_spawn.texi: Mention the new module.
43193
43194         New module 'posix_spawnattr_destroy'.
43195         * modules/posix_spawnattr_destroy: New file.
43196         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
43197         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
43198         module.
43199
43200         New module 'posix_spawnattr_setsigmask'.
43201         * modules/posix_spawnattr_setsigmask: New file.
43202         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
43203         modifications.
43204         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
43205         new module.
43206
43207         New module 'posix_spawnattr_getsigmask'.
43208         * modules/posix_spawnattr_getsigmask: New file.
43209         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
43210         modifications.
43211         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
43212         new module.
43213
43214         New module 'posix_spawnattr_setsigdefault'.
43215         * modules/posix_spawnattr_setsigdefault: New file.
43216         * lib/spawnattr_setdefault.c: New file, from GNU libc with
43217         modifications.
43218         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
43219         new module.
43220
43221         New module 'posix_spawnattr_getsigdefault'.
43222         * modules/posix_spawnattr_getsigdefault: New file.
43223         * lib/spawnattr_getdefault.c: New file, from GNU libc with
43224         modifications.
43225         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
43226         new module.
43227
43228         New module 'posix_spawnattr_setschedpolicy'.
43229         * modules/posix_spawnattr_setschedpolicy: New file.
43230         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
43231         modifications.
43232         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
43233         new module.
43234
43235         New module 'posix_spawnattr_getschedpolicy'.
43236         * modules/posix_spawnattr_getschedpolicy: New file.
43237         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
43238         modifications.
43239         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
43240         new module.
43241
43242         New module 'posix_spawnattr_setschedparam'.
43243         * modules/posix_spawnattr_setschedparam: New file.
43244         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
43245         modifications.
43246         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
43247         new module.
43248
43249         New module 'posix_spawnattr_getschedparam'.
43250         * modules/posix_spawnattr_getschedparam: New file.
43251         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
43252         modifications.
43253         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
43254         new module.
43255
43256         New module 'posix_spawnattr_setpgroup'.
43257         * modules/posix_spawnattr_setpgroup: New file.
43258         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
43259         modifications.
43260         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
43261         module.
43262
43263         New module 'posix_spawnattr_getpgroup'.
43264         * modules/posix_spawnattr_getpgroup: New file.
43265         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
43266         modifications.
43267         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
43268         module.
43269
43270         New module 'posix_spawnattr_setflags'.
43271         * modules/posix_spawnattr_setflags: New file.
43272         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
43273         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
43274         module.
43275
43276         New module 'posix_spawnattr_getflags'.
43277         * modules/posix_spawnattr_getflags: New file.
43278         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
43279         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
43280         module.
43281
43282         New module 'posix_spawnattr_init'.
43283         * modules/posix_spawnattr_init: New file.
43284         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
43285         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
43286         module.
43287
43288         New module 'posix_spawn_file_actions_destroy'.
43289         * modules/posix_spawn_file_actions_destroy: New file.
43290         * lib/spawn_faction_destroy.c: New file, from GNU libc with
43291         modifications.
43292         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
43293         the new module.
43294
43295         New module 'posix_spawn_file_actions_addopen'.
43296         * modules/posix_spawn_file_actions_addopen: New file.
43297         * lib/spawn_faction_addopen.c: New file, from GNU libc with
43298         modifications.
43299         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43300         the new module.
43301
43302         New module 'posix_spawn_file_actions_adddup2'.
43303         * modules/posix_spawn_file_actions_adddup2: New file.
43304         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
43305         modifications.
43306         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43307         the new module.
43308
43309         New module 'posix_spawn_file_actions_addclose'.
43310         * modules/posix_spawn_file_actions_addclose: New file.
43311         * lib/spawn_faction_addclose.c: New file, from GNU libc with
43312         modifications.
43313         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43314         the new module.
43315
43316         New module 'posix_spawn_file_actions_init'.
43317         * modules/posix_spawn_file_actions_init: New file.
43318         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
43319         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
43320         new module.
43321
43322         New module 'posix_spawn-internal'.
43323         * modules/posix_spawn-internal: New file.
43324         * lib/spawn_int.h: New file, from GNU libc with modifications.
43325         * lib/spawni.c: New file, from GNU libc with modifications.
43326         * m4/posix_spawn.m4: New file.
43327
43328         New module 'spawn'.
43329         * modules/spawn: New file.
43330         * lib/spawn.in.h: New file, from GNU libc with modifications.
43331         * m4/spawn_h.m4: New file.
43332         * doc/posix-headers/spawn.texi: Mention the new module.
43333
43334 2008-09-28  Bruno Haible  <bruno@clisp.org>
43335
43336         * modules/sched-tests: New file.
43337         * tests/test-sched.c: New file.
43338
43339         New module 'sched'.
43340         * modules/sched: New file.
43341         * lib/sched.in.h: New file.
43342         * m4/sched_h.m4: New file.
43343         * doc/posix-headers/sched.texi: Mention the new module.
43344
43345 2008-09-27  Eric Blake  <ebb9@byu.net>
43346
43347         Fix previous patch, and tweak references to $0.
43348         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
43349         (func_version, func_gnulib_dir): Don't call this program
43350         gnulib-tool.
43351         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
43352         with using $0 in function.
43353         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
43354         (func_fatal_error): Reuse the name the user invoked us with.
43355
43356 2008-09-27  Bruno Haible  <bruno@clisp.org>
43357
43358         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
43359         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
43360         (gl_ICONV_H): Not here.
43361         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
43362         instead of assigning ICONV_H directly.
43363
43364         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
43365         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
43366         WCHAR_H directly.
43367
43368 2008-09-27  Bruno Haible  <bruno@clisp.org>
43369
43370         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
43371         * modules/arpa_inet (Depends-on): Add link-warning.
43372         (Makefile.am): Insert the definition of GL_LINK-WARNING.
43373         * modules/unistd (Makefile.am): Likewise.
43374
43375 2008-09-26  Bruno Haible  <bruno@clisp.org>
43376
43377         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
43378         variables.
43379         (func_version): Essentially copied from gnulib-tool.
43380         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
43381         func_readlink): Copied from gnulib-tool.
43382
43383 2008-09-26  Bruno Haible  <bruno@clisp.org>
43384
43385         * gnulib-tool (func_version): Change directory to $gnulib_dir before
43386         invoking git-version-gen.
43387
43388 2008-09-26  Bruno Haible  <bruno@clisp.org>
43389
43390         * posix-modules: Update to directory names changed on 2008-01-19.
43391         Remove commas in output before splitting into words. No more need to
43392         avoid 'ftruncate' since 2007-02-19.
43393
43394 2008-09-26  Bruno Haible  <bruno@clisp.org>
43395
43396         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
43397
43398 2008-09-26  Bruno Haible  <bruno@clisp.org>
43399
43400         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
43401         * modules/fwriteerror (Depends-on): Add errno.
43402
43403 2008-09-26  Bruno Haible  <bruno@clisp.org>
43404
43405         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
43406         * tests/test-vc-list-files-cvs.sh: Likewise.
43407
43408 2008-09-26  Bruno Haible  <bruno@clisp.org>
43409
43410         * doc/posix-headers/sys_resource.texi: Reorder items.
43411
43412 2008-09-26  Jim Meyering  <meyering@redhat.com>
43413
43414         fts: tweak inode comparison function
43415         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
43416         inode numbers, as documented.
43417
43418         fts: sort dirent entries on inode number before traversing
43419         This avoids a quadratic, seek-related performance penalty when
43420         operating on a directory containing many entries (measurable at 10k;
43421         3.5 hours at 2 million entries with a cold cache) on certain types
43422         of file systems, including ext3 and ext4, but not tmpfs.
43423         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
43424         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
43425         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
43426         (fs_handles_readdir_ordered_dirents_efficiently): New function.
43427         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
43428         (fts_build): Set the stat.st_ino member from D_INO.
43429         If it is likely to be useful, sort dirent entries on inode number.
43430
43431         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
43432         and the struct statfs.f_type member.
43433         * modules/fts (Depends-on): Add d-ino.
43434
43435 2008-09-26  Bruno Haible  <bruno@clisp.org>
43436
43437         * modules/sigpipe-die (Depends-on): Add sigpipe.
43438
43439         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
43440         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
43441         and GNULIB_STDIO_H_SIGPIPE are set.
43442         * lib/stdio-write.c: New file.
43443         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
43444         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43445         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43446         REPLACE_STDIO_WRITE_FUNCS.
43447         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
43448         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43449         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43450         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43451         * modules/stdio (Files): Add lib/stdio-write.c.
43452         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
43453         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43454         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43455         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43456         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
43457         REPLACE_FPRINTF_POSIX.
43458         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
43459         REPLACE_PRINTF_POSIX.
43460         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
43461         REPLACE_VFPRINTF_POSIX.
43462         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
43463         REPLACE_VPRINTF_POSIX.
43464         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
43465         SIGPIPE issue.
43466         * doc/posix-functions/fputc.texi: Likewise.
43467         * doc/posix-functions/fputs.texi: Likewise.
43468         * doc/posix-functions/fwrite.texi: Likewise.
43469         * doc/posix-functions/printf.texi: Likewise.
43470         * doc/posix-functions/putc.texi: Likewise.
43471         * doc/posix-functions/putchar.texi: Likewise.
43472         * doc/posix-functions/puts.texi: Likewise.
43473         * doc/posix-functions/vfprintf.texi: Likewise.
43474         * doc/posix-functions/vprintf.texi: Likewise.
43475
43476         * modules/safe-write (Depends-on): Add write.
43477
43478         * modules/sigpipe-tests: New file.
43479         * tests/test-sigpipe.c: New file.
43480         * tests/test-sigpipe.sh: New file.
43481
43482         * modules/write: New file.
43483         * lib/unistd.in.h: Include <sys/types.h>.
43484         (write): New declaration.
43485         * lib/write.c: New file.
43486         * m4/write.m4: New file.
43487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43488         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
43489         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
43490         GNULIB_WRITE, REPLACE_WRITE.
43491         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
43492         and the SIGPIPE issue.
43493
43494         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
43495         (raise): New declaration.
43496         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
43497         (ext_signal): New function.
43498         (rpl_raise): New function.
43499         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
43500         GNULIB_SIGNAL_H_SIGPIPE.
43501         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
43502         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
43503
43504         * modules/sigpipe: New file.
43505         * m4/sigpipe.m4: New file.
43506
43507 2008-09-25  Derek Price  <derek@ximbiot.com>
43508             Bruno Haible  <bruno@clisp.org>
43509
43510         * gnulib-tool (func_import): Report all license incompatibilities, not
43511         just the first one.
43512
43513 2008-09-25  Bruno Haible  <bruno@clisp.org>
43514
43515         * gnulib-tool (func_import): When computing the edits, consider not
43516         only the Makefile.ams that exist but also those that will be generated.
43517
43518 2008-09-25  Simon Josefsson  <simon@josefsson.org>
43519
43520         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
43521         fixes gnulib-tool --test warning about duplicate dependency.
43522
43523 2008-09-25  Bruno Haible  <bruno@clisp.org>
43524
43525         * gnulib-tool: Don't ask the user to perform edits in the generated
43526         Makefile.ams.
43527         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
43528         apply to the Makefile.am being generated.
43529         (func_emit_tests_Makefile_am): Execute edits that apply to the
43530         Makefile.am being generated.
43531         (func_import): Setup list of Makefile.am edits before emitting the
43532         Makefile.ams, not at the end.
43533         (func_create_testdir): Update.
43534         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43535
43536 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43537
43538         * gnulib-tool (func_import): Store the --tests-base option in the
43539         comment in gnulib-cache.m4.
43540
43541 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
43542
43543         * NEWS: Document increased portability that sys_select now provides.
43544
43545         * lib/sys_select.in.h: Install select wrapper.
43546         * lib/sys_socket.in.h: Use more descriptive name when there is no
43547         select wrapper.
43548         * lib/winsock-select.c: New.
43549         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
43550         Require gl_HEADER_SYS_SOCKET.
43551         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
43552         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
43553         * tests/test-sys_select.c: Add functional tests.
43554
43555 2008-09-24  Eric Blake  <ebb9@byu.net>
43556
43557         open, fopen: close fd leak in last patch
43558         * lib/open.c (rpl_open): Close fd before returning error.
43559         * lib/fopen.c (rpl_fopen): Close fd before returning error.
43560         * doc/posix-functions/open.texi (open): Document that Irix also
43561         has the bug.
43562         * doc/posix-functions/fopen.texi (fopen): Likewise.
43563         Reported by Paolo Bonzini.
43564
43565 2008-09-24  Bruno Haible  <bruno@clisp.org>
43566
43567         Ensure that a filename ending in a slash cannot be used to access a
43568         non-directory.
43569         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
43570         to check whether it's really a directory.
43571         * lib/fopen.c: Include fcntl.h, unistd.h.
43572         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
43573         and fdopen().
43574         * modules/fopen (Depends-on): Add unistd.
43575         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
43576         * tests/test-fopen.c (main): Likewise.
43577         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
43578         * doc/posix-functions/fopen.texi: Likewise.
43579         Reported by Eric Blake.
43580
43581 2008-09-23  Eric Blake  <ebb9@byu.net>
43582
43583         c-stack: avoid compiler optimizations when provoking overflow
43584         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
43585         recursion harder to optimize, to ensure a stack overflow occurs.
43586         * tests/test-c-stack.c (recurse): Likewise.
43587         Borrowed from libsigsegv.
43588
43589         c-stack: work around Irix sigaltstack bug
43590         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
43591         whether sigaltstack uses wrong end of stack_t (copied in part from
43592         libsigsegv).
43593         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
43594         Irix bug, without requiring an over-allocation.
43595         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
43596         bug.
43597
43598         fopen: document mingw bug on directories
43599         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
43600         not allowing a stream visiting a directory, even though reading
43601         from such a stream is not portable.
43602
43603 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43604
43605         * lib/poll.c: Rewrite.
43606         * modules/poll: Depend on alloca.
43607
43608 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43609
43610         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
43611         instead define prototypes for a full set of wrappers.  Ensure
43612         that Cygwin does not use the compatibility code, which is only
43613         for MinGW.
43614         * lib/winsock.c: New.
43615         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
43616         * modules/sys_socket: Add lib/winsock.c.
43617
43618         * modules/poll-tests: Add errno and perror.
43619         * tests/test-poll.c: Use ioctl, not ioctlsocket.
43620
43621 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43622
43623         * tests/test-poll.c: Downgrade minimum needed Winsock version.
43624
43625 2008-09-23  Bruno Haible  <bruno@clisp.org>
43626
43627         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
43628         * doc/glibc-functions/*: Likewise.
43629
43630 2008-09-23  Simon Josefsson  <simon@josefsson.org>
43631
43632         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
43633         success.
43634
43635 2008-09-22  Eric Blake  <ebb9@byu.net>
43636             Bruno Haible  <bruno@clisp.org>
43637
43638         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
43639         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
43640         supply %A but mishandle pseudo-NaN.
43641         Reported by Simon Josefsson.
43642
43643 2008-09-21  Bruno Haible  <bruno@clisp.org>
43644
43645         * tests/test-lock.c (main): Tweak skip message.
43646         * tests/test-tls.c (main): Likewise.
43647
43648 2008-09-21  Bruno Haible  <bruno@clisp.org>
43649
43650         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
43651         whether 'struct sigaction' has sa_sigaction here...
43652         (gl_PREREQ_SIG_HANDLER_H): ... not here.
43653         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
43654
43655 2008-09-21  Bruno Haible  <bruno@clisp.org>
43656
43657         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
43658         section.
43659         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
43660         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
43661         the new section.
43662         (Support for obsolete systems lacking POSIX:2001): New section.
43663         (String handling <string.h>): Move strdup to the new section.
43664         Suggested by Simon Josefsson and Paolo Bonzini.
43665
43666 2008-09-21  Bruno Haible  <bruno@clisp.org>
43667
43668         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
43669         exponents in %e and %g results on 'long double'. Needed for mingw's
43670         improved *printf functions.
43671         * tests/test-vasprintf-posix.c (test_function): Likewise.
43672         * tests/test-snprintf-posix.h (test_function): Likewise.
43673         * tests/test-sprintf-posix.h (test_function): Likewise.
43674         Reported by Eric Blake.
43675
43676 2008-09-21  Bruno Haible  <bruno@clisp.org>
43677
43678         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
43679         * tests/test-sprintf-posix.h (test_function): Likewise.
43680
43681 2008-09-21  Bruno Haible  <bruno@clisp.org>
43682
43683         * modules/getpass (Depends-on): Add strdup-posix.
43684
43685         New module 'strdup-posix'.
43686         * modules/strdup-posix: New file.
43687         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
43688         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
43689         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43690         REPLACE_STRDUP.
43691         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
43692         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
43693         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43694         strdup-posix.
43695
43696         * modules/strdup (Depends-on): Remove malloc-posix.
43697
43698 2008-09-20  Bruno Haible  <bruno@clisp.org>
43699
43700         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
43701         Wildenhues.
43702
43703 2008-09-20  Bruno Haible  <bruno@clisp.org>
43704
43705         Ensure that wint_t gets defined on IRIX 5.3.
43706         * lib/wchar.in.h (wint_t): Define if not defined by the system.
43707         * lib/wctype.in.h (wint_t): Likewise.
43708         (__wctype_wint_t): Remove type.
43709         (isw*): Use wint_t instead of __wctype_wint_t.
43710         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
43711         * modules/wchar (Files): Add m4/wint_t.m4.
43712         (Makefile.am): Substitute HAVE_WINT_T.
43713         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
43714         * tests/test-wctype.c: Check that wint_t is defined.
43715         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
43716         * doc/posix-headers/wctype.texi: Likewise.
43717         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43718
43719 2008-09-18  Bruno Haible  <bruno@clisp.org>
43720
43721         * gnulib-tool (func_exit): Update comment.
43722
43723 2008-09-18  Simon Josefsson  <simon@josefsson.org>
43724
43725         * modules/getaddrinfo (Depends-on): Remove strdup, this module
43726         assumes strdup exists and does not depend on strdup to return
43727         ENOMEM on out of memory conditions.
43728
43729 2008-09-18  Bruno Haible  <bruno@clisp.org>
43730
43731         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
43732         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
43733         digits for the exponent.
43734
43735 2008-09-18  Jim Meyering  <meyering@redhat.com>
43736             Bruno Haible  <bruno@clisp.org>
43737
43738         * lib/vasnprintf.c (decimal_point_char): Define also if
43739         NEED_PRINTF_INFINITE_LONG_DOUBLE.
43740
43741 2008-09-16  Bruno Haible  <bruno@clisp.org>
43742         and Eric Blake  <ebb9@byu.net>
43743
43744         vasnprintf: support Irix 5.3
43745         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
43746         that mishandle long double infinity.
43747         Reported by Tom G. Christensen.
43748
43749 2008-09-16  Bruno Haible  <bruno@clisp.org>
43750
43751         * doc/glibc-functions/scandir.texi: Mention the function is missing on
43752         Solaris 9.
43753         * doc/glibc-functions/alphasort.texi: Likewise.
43754         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
43755
43756 2008-09-16  Jim Meyering  <meyering@redhat.com>
43757
43758         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
43759         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
43760         a umask modification leak out of a subshell.  Otherwise, the
43761         opensolaris /bin/sh would be accepted and thus cause unwarranted
43762         failures in the coreutils test suite.
43763
43764 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
43765
43766         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
43767         to succeed.
43768
43769 2008-09-16  Jim Meyering  <meyering@redhat.com>
43770
43771         avoid spurious test failure when library is built without ACL support
43772         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
43773         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
43774         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
43775         * tests/test-copy-acl.sh: Likewise.
43776
43777 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43778
43779         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
43780         based on character occurrence counts.
43781
43782 2008-09-15  Eric Blake  <ebb9@byu.net>
43783
43784         tests: avoid some compiler warnings
43785         * tests/test-memchr.c (main): Pass NULL indirectly.
43786         * tests/test-closein.c (main): Avoid unused variable.
43787
43788 2008-09-15  Bruno Haible  <bruno@clisp.org>
43789
43790         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
43791         are missing on OpenBSD 4.0 individually.
43792         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43793
43794 2008-09-15  Bruno Haible  <bruno@clisp.org>
43795
43796         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
43797         * doc/posix-functions/strerror.texi: Mention also Cygwin.
43798         * doc/posix-functions/perror.texi: Likewise.
43799         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
43800         is missing.
43801         Reported by Eric Blake.
43802
43803         * lib/errno.in.h: Use replacement values >= 2000.
43804         Reported by Eric Blake.
43805
43806 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43807
43808         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
43809         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
43810         limit.
43811         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
43812         compareseq was aborted.
43813
43814 2008-09-14  Bruno Haible  <bruno@clisp.org>
43815
43816         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
43817         yvec_edit_count.
43818         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
43819         (fstrcmp_bounded): Simplify result computation accordingly.
43820
43821 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43822
43823         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
43824         (fstrcmp): Define in terms of fstrcmp_bounded.
43825         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
43826         lower_bound argument.
43827         Return quickly if the result is certainly < lower_bound.
43828         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
43829
43830 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43831
43832         * lib/diffseq.h (EARLY_ABORT): New macro.
43833         (compareseq): Change return type to bool. Return true when EARLY_ABORT
43834         evaluates to true.
43835
43836 2008-09-14  Bruno Haible  <bruno@clisp.org>
43837
43838         * modules/perror-tests: New file.
43839         * tests/test-perror.sh: New file.
43840         * tests/test-perror.c: New file.
43841
43842         New module 'perror'.
43843         * lib/stdio.in.h (perror): New declaration.
43844         * lib/perror.c: New file.
43845         * m4/perror.m4: New file.
43846         * modules/perror: New file.
43847         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
43848         * doc/posix-functions/perror.texi: Mention the perror module.
43849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
43850         REPLACE_PERROR.
43851         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
43852         REPLACE_PERROR.
43853
43854 2008-09-14  Bruno Haible  <bruno@clisp.org>
43855
43856         * modules/stdio (Makefile.am): Reorder to match the order in
43857         lib/stdio.in.h.
43858         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43859
43860 2008-09-13  Bruno Haible  <bruno@clisp.org>
43861
43862         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
43863
43864 2008-09-13  Bruno Haible  <bruno@clisp.org>
43865
43866         Extend strerror to cover the added errno values.
43867         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
43868         (rpl_strerror): Provide error messages for the added errno values and
43869         for the WSA* values.
43870         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
43871         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
43872         strerror.
43873         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
43874         * modules/strerror (Depends-on): Add errno.
43875         * doc/posix-functions/strerror.texi: Document the change.
43876         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
43877         and EOVERFLOW.
43878
43879 2008-09-13  Bruno Haible  <bruno@clisp.org>
43880
43881         * modules/EOVERFLOW: Remove file.
43882         * m4/eoverflow.m4: Remove file.
43883         * modules/EOVERFLOW-tests: Remove file.
43884         * tests/test-EOVERFLOW.c: Remove file.
43885         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
43886         * modules/ftell (Depends-on): Likewise.
43887         * modules/getdelim (Depends-on): Likewise.
43888         * modules/getugroups (Depends-on): Likewise.
43889         * modules/poll (Depends-on): Likewise.
43890         * modules/snprintf (Depends-on): Likewise.
43891         * modules/sprintf-posix (Depends-on): Likewise.
43892         * modules/vasnprintf (Depends-on): Likewise.
43893         * modules/vasprintf (Depends-on): Likewise.
43894         * modules/vfprintf-posix (Depends-on): Likewise.
43895         * modules/vsnprintf (Depends-on): Likewise.
43896         * modules/vsprintf-posix (Depends-on): Likewise.
43897         * modules/xvasprintf (Depends-on): Likewise.
43898         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43899         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
43900         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43901         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43902         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43903         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43904         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43905         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43906         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43907         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43908         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43909         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43910         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43911         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43912         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43913         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43914         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43915         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43916         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43917         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43918         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43919         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43920         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43921         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43922         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43923         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43924         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43925         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43926         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43927         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43928         * MODULES.html.sh: Remove EOVERFLOW.
43929         * NEWS: Mention the change.
43930
43931 2008-09-13  Bruno Haible  <bruno@clisp.org>
43932
43933         * modules/errno-tests: New file.
43934         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43935
43936         * lib/errno.in.h: New file.
43937         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43938         * modules/errno: New file.
43939         * doc/posix-headers/errno.texi: Update documentation.
43940         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43941
43942 2008-09-13  Bruno Haible  <bruno@clisp.org>
43943
43944         * tests/test-poll.c: Use #if for native Windows, rather than testing
43945         __MSVCRT__.
43946
43947 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43948             Bruno Haible  <bruno@clisp.org>
43949
43950         * lib/glob.c: Don't include <pwd.h> on native Windows.
43951         (WINDOWS32): New macro.
43952         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43953
43954 2008-09-13  Bruno Haible  <bruno@clisp.org>
43955
43956         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43957         (ETIMEDOUT): Remove macro.
43958         (glthread_cond_timedwait_multithreaded): New declaration.
43959         (glthread_cond_timedwait): Use it.
43960         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43961         (glthread_cond_timedwait_multithreaded): New function.
43962
43963 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43964
43965         * modules/poll-tests: Do not check for io.h.
43966         * tests/test-poll.c: Check for __MSVCRT__ instead.
43967
43968 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43969
43970         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43971         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43972         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43973
43974 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43975
43976         * modules/poll-tests: New.
43977         * tests/test-poll.c: New.
43978
43979 2008-09-12  Eric Blake  <ebb9@byu.net>
43980
43981         frexp: test for NetBSD failure on -0.0
43982         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43983         not all, bugs from NetBSD 3.0 have been fixed.
43984         * doc/posix-functions/frexp.texi (frexp): Document bug.
43985         Reported by Thomas Klausner.
43986
43987         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43988         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43989         literal -0.0.
43990         Reported by Jonathan C. Patschke <jp@centtech.com>.
43991
43992 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43993
43994         * lib/glthread/cond.h: Use dummy implementation also if
43995         USE_WIN32_THREADS.
43996
43997 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43998
43999         * modules/fnmatch-posix (License): Change to LGPLv2+.
44000         * modules/fnmatch-gnu (License): Likewise.
44001
44002 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44003
44004         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
44005
44006 2008-09-11  Jim Meyering  <meyering@redhat.com>
44007
44008         * users.txt: Add gtk-vnc.
44009
44010 2008-09-08  Simon Josefsson  <simon@josefsson.org>
44011
44012         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
44013         rotate amounts.
44014
44015         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
44016         required for 16-bit and 8-bit rotates.
44017         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
44018         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
44019         UINT8_MAX instead of hard-coded constants.
44020         Suggested by Paul Eggert.
44021
44022 2008-09-07  Bruno Haible  <bruno@clisp.org>
44023
44024         * tests/test-striconveh.c (main): Check behaviour when converting from
44025         UTF-7.
44026
44027         Make striconveh work better with stateful encodings.
44028         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
44029         that iconv does not increment the inptr when returning -1/EINVAL.
44030
44031 2008-09-07  Bruno Haible  <bruno@clisp.org>
44032
44033         * build-aux/config.rpath: Update according to libtool-2.2.6.
44034         * build-aux/config.libpath: Likewise.
44035
44036 2008-09-06  Bruno Haible  <bruno@clisp.org>
44037
44038         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
44039         * lib/freadptr.c (freadptr): Likewise.
44040         * lib/freadseek.c (freadptrinc): Likewise.
44041         Reported by Simon Josefsson.
44042
44043 2008-09-06  Bruno Haible  <bruno@clisp.org>
44044
44045         * modules/freadptr (License): Change to LGPLv2+.
44046         * modules/freadseek (License): Likewise.
44047         Suggested by Eric Blake.
44048
44049         * modules/memchr2 (License): Change to LGPLv2+.
44050         Approved by Eric Blake.
44051
44052 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44053             Bruno Haible  <bruno@clisp.org>
44054
44055         Make gnulib-tool work with native 'sed' on AIX.
44056         * gnulib-tool (sed_noop): New variable.
44057         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
44058         func_add_or_update, func_create_testdir): Use it to initialize sed
44059         script variables.
44060         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44061
44062 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
44063             Bruno Haible  <bruno@clisp.org>
44064
44065         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
44066         also works after #include directives.
44067
44068 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
44069
44070         getdate.y: reject an out-of-range timezone value
44071         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
44072         the range [-24...+24].  When specified with only one or two digits,
44073         * tests/test-getdate.c: Tests for the fix.
44074         * doc/getdate.texi: Document this change.
44075
44076 2008-09-03  Bruno Haible  <bruno@clisp.org>
44077
44078         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
44079
44080 2008-09-02  Simon Josefsson  <simon@josefsson.org>
44081
44082         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
44083         <bruce.korb@gmail.com> with ideas from Ben Pfaff
44084         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
44085         Blake <ebb9@byu.net>.
44086
44087         * tests/test-bitrotate.c: Add more test vectors.
44088
44089 2008-09-02  Eric Blake  <ebb9@byu.net>
44090
44091         vasnprintf-posix: handle large precision via %.*d
44092         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
44093         when handling it ourselves.
44094         * tests/test-vasnprintf-posix.c (test_function): Add test.
44095         * tests/test-snprintf-posix.h (test_function): Likewise.
44096         * tests/test-sprintf-posix.h (test_function): Likewise.
44097         * tests/test-vasprintf-posix.c (test_function): Likewise.
44098         Reported by Alain Guibert.
44099
44100 2008-09-01  Eric Blake  <ebb9@byu.net>
44101
44102         c-stack: make configure-time check more robust
44103         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
44104         successful sigaction call.
44105         Reported by Tom G. Christensen.
44106
44107 2008-09-01  Bruno Haible  <bruno@clisp.org>
44108
44109         New module 'findprog-lgpl'.
44110         * modules/findprog-lgpl: New file.
44111         * lib/findprog-lgpl.c: New file.
44112         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
44113         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
44114         to decide whether to use strdup or xstrdup, concatenated_filename or
44115         xconcatenated_filename.
44116
44117 2008-09-01  Bruno Haible  <bruno@clisp.org>
44118
44119         Split module 'concat-filename' into 'concat-filename' (LGPL) and
44120         'xconcat-filename' (GPL).
44121         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
44122         (License): Change to LGPLv2+.
44123         * modules/xconcat-filename: New file.
44124         * lib/concat-filename.h (concatenated_filename): Change specification.
44125         (xconcatenated_filename): New declaration.
44126         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
44127         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
44128         memory situations.
44129         * lib/xconcat-filename.c: New file.
44130         * NEWS: Mention the change.
44131         * lib/findprog.c: Include concat-filename.h, not filename.h.
44132         (find_in_path): Use xconcatenated_filename instead of
44133         concatenated_filename.
44134         * lib/javacomp.c: Include concat-filename.h, not filename.h.
44135         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44136         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44137         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44138         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
44139         instead of concatenated_filename.
44140         * lib/javaexec.c: Include concat-filename.h, not filename.h.
44141         (execute_java_class): Use xconcatenated_filename instead of
44142         concatenated_filename.
44143         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
44144         * modules/javacomp (Depends-on): Likewise.
44145         * modules/javaexec (Depends-on): Likewise.
44146
44147 2008-09-01  Bruno Haible  <bruno@clisp.org>
44148
44149         Split module 'filename' into 'filename' and 'concat-filename'.
44150         * modules/filename: Keep only lib/filename.h.
44151         (License): Change to LGPLv2+.
44152         * modules/concat-filename: New file, extracted from modules/filename.
44153         * lib/filename.h (concatenated_filename): Remove declaration.
44154         * lib/concat-filename.h: New file, extracted from lib/filename.h.
44155         * lib/concat-filename.c: Include concat-filename.h.
44156         * NEWS: Mention the change.
44157
44158 2008-09-01  Simon Josefsson  <simon@josefsson.org>
44159
44160         * lib/bitrotate.h (rotl8, rotr8): Add.
44161
44162         * modules/bitrotate (configure.ac): Need
44163         AC_REQUIRE([AC_C_INLINE]).
44164         (Description): Mention stdint.h.  Reported by Bruno Haible
44165         <bruno@clisp.org>.
44166
44167         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
44168         Paolo Bonzini <bonzini@gnu.org>.
44169
44170 2008-08-31  Bruno Haible  <bruno@clisp.org>
44171
44172         Assume Solaris specific bi-arch conventions on Solaris systems.
44173         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
44174         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
44175         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
44176         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
44177         like acl_libdirstem.
44178         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
44179         acl_libdirstem.
44180         * NEWS: Mention the change.
44181         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
44182
44183 2008-08-31  Jim Meyering  <meyering@redhat.com>
44184
44185         * lib/strftime.h: Add comments describing the two added arguments.
44186
44187         remove duplicate #include directives
44188         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
44189         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
44190
44191 2008-08-31  Bruno Haible  <bruno@clisp.org>
44192
44193         New module 'sigpipe-die'.
44194         * modules/sigpipe-die: New file.
44195         * lib/sigpipe-die.h: New file.
44196         * lib/sigpipe-die.c: New file.
44197         * MODULES.html.sh (Signal handling): Add sigpipe-die.
44198
44199 2008-08-31  Bruno Haible  <bruno@clisp.org>
44200
44201         Don't override previously installed signal handlers.
44202         * lib/fatal-signal.c (saved_sigactions): New variable.
44203         (uninstall_handlers): Reset the signal to the saved handler, not
44204         to SIG_DFL (except when ignored).
44205         (install_handlers): Save the previous handlers.
44206
44207 2008-08-30  Bruno Haible  <bruno@clisp.org>
44208
44209         * gnulib-tool (func_reset_sigpipe): New function.
44210         (func_get_automake_snippet, func_modules_transitive_closure,
44211         func_import): Invoke it before a join command that reads from stdin,
44212         to avoid "echo: write error: Broken pipe" error messages on stderr.
44213         Reported by Sam Steingold <sds@gnu.org>.
44214
44215 2008-08-30  Bruno Haible  <bruno@clisp.org>
44216
44217         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
44218         Code copied from m4/open.m4.
44219         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
44220         access and the filename ends in a slash. Code copied from lib/open.c.
44221         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
44222         * tests/test-fopen.c (main): Check against bug with trailing slash.
44223
44224 2008-08-29  Bruno Haible  <bruno@clisp.org>
44225
44226         Avoid some "gcc -pedantic" warnings.
44227         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
44228         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
44229         * lib/dirent.in.h: Likewise.
44230         * lib/fcntl.in.h: Likewise.
44231         * lib/float.in.h: Likewise.
44232         * lib/iconv.in.h: Likewise.
44233         * lib/inttypes.in.h: Likewise.
44234         * lib/locale.in.h: Likewise.
44235         * lib/math.in.h: Likewise.
44236         * lib/netinet_in.in.h: Likewise.
44237         * lib/search.in.h: Likewise.
44238         * lib/signal.in.h: Likewise.
44239         * lib/stdarg.in.h: Likewise.
44240         * lib/stdint.in.h: Likewise.
44241         * lib/stdio.in.h: Likewise.
44242         * lib/stdlib.in.h: Likewise.
44243         * lib/string.in.h: Likewise.
44244         * lib/strings.in.h: Likewise.
44245         * lib/sys_select.in.h: Likewise.
44246         * lib/sys_socket.in.h: Likewise.
44247         * lib/sys_stat.in.h: Likewise.
44248         * lib/sys_time.in.h: Likewise.
44249         * lib/sysexits.in.h: Likewise.
44250         * lib/time.in.h: Likewise.
44251         * lib/unistd.in.h: Likewise.
44252         * lib/wchar.in.h: Likewise.
44253         * lib/wctype.in.h: Likewise.
44254         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
44255         * modules/fchdir (Makefile.am): Likewise.
44256         * modules/fcntl (Makefile.am): Likewise.
44257         * modules/float (Makefile.am): Likewise.
44258         * modules/iconv_open (Makefile.am): Likewise.
44259         * modules/inttypes (Makefile.am): Likewise.
44260         * modules/locale (Makefile.am): Likewise.
44261         * modules/math (Makefile.am): Likewise.
44262         * modules/netinet_in (Makefile.am): Likewise.
44263         * modules/search (Makefile.am): Likewise.
44264         * modules/signal (Makefile.am): Likewise.
44265         * modules/stdarg (Makefile.am): Likewise.
44266         * modules/stdint (Makefile.am): Likewise.
44267         * modules/stdio (Makefile.am): Likewise.
44268         * modules/stdlib (Makefile.am): Likewise.
44269         * modules/string (Makefile.am): Likewise.
44270         * modules/strings (Makefile.am): Likewise.
44271         * modules/sys_select (Makefile.am): Likewise.
44272         * modules/sys_socket (Makefile.am): Likewise.
44273         * modules/sys_stat (Makefile.am): Likewise.
44274         * modules/sys_time (Makefile.am): Likewise.
44275         * modules/sysexits (Makefile.am): Likewise.
44276         * modules/time (Makefile.am): Likewise.
44277         * modules/unistd (Makefile.am): Likewise.
44278         * modules/wchar (Makefile.am): Likewise.
44279         * modules/wctype (Makefile.am): Likewise.
44280         Reported by Reuben Thomas <rrt@sc3d.org>.
44281
44282 2008-08-29  Bruno Haible  <bruno@clisp.org>
44283
44284         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
44285         any more.
44286
44287 2008-08-29  Simon Josefsson  <simon@josefsson.org>
44288
44289         * MODULES.html.sh (Misc): Add bitrotate.
44290
44291         * modules/bitrotate: New file.
44292
44293         * lib/bitrotate.h: New file.
44294
44295         * modules/bitrotate-tests: New file.
44296
44297         * tests/test-bitrotate.c: New file.
44298
44299         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
44300         on the bitrotate module.
44301
44302         * lib/arctwo.c: Use new bitrotate module.
44303
44304 2008-08-29  Jim Meyering  <meyering@redhat.com>
44305
44306         bootstrap: merge changes from coreutils
44307         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
44308         of copied files.  Remove a kludge, now that this is fixed.
44309         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
44310         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
44311         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
44312
44313 2008-08-29  Bruno Haible  <bruno@clisp.org>
44314
44315         * MODULES.html.sh: Remove --cvs-urls option.
44316
44317 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
44318
44319         maint.mk: adjust to file name change
44320         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
44321
44322 2008-08-28  Jim Meyering  <meyering@redhat.com>
44323
44324         * modules/getndelim2 (License): Relicense to LGPLv2+.
44325         Approved by Richard Stallman for the version of 1995, and by
44326         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
44327
44328 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
44329
44330         * lib/getdelim.c (flockfile, funlockfile): Make all of them
44331         dummy if one is not available.  Do not touch them if
44332         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
44333         (getc_maybe_unlocked): New.
44334         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
44335
44336 2008-08-26  Eric Blake  <ebb9@byu.net>
44337
44338         doc/INSTALL: resync from autoconf
44339         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
44340         (INSTALL_PRELUDE): Delete; this is done more efficiently by
44341         moving...
44342         * install.texi [!autoconf]: ...here.  Resync from autoconf.
44343         * INSTALL: Regenerate.
44344         * INSTALL.ISO: New file.
44345         * INSTALL.UTF-8: Likewise.
44346
44347 2008-08-26  Jim Meyering  <meyering@redhat.com>
44348
44349         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
44350         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
44351         these definitions conditional, so that they may be overridden, too.
44352
44353 2008-08-26  Bruno Haible  <bruno@clisp.org>
44354
44355         Generate INSTALL file variants with prettier quotes.
44356         * doc/Makefile (INSTALL_PRELUDE): New macro.
44357         (INSTALL): Use it.
44358         (INSTALL.ISO, INSTALL.UTF-8): New rules.
44359
44360 2008-08-26  Bruno Haible  <bruno@clisp.org>
44361
44362         Run makeinfo in an English locale.
44363         * doc/Makefile (MAKEINFO): New variable.
44364
44365 2008-08-26  Bruno Haible  <bruno@clisp.org>
44366
44367         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
44368         Suggested by Eric Blake.
44369
44370 2008-08-25  Bruno Haible  <bruno@clisp.org>
44371
44372         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
44373
44374 2008-08-25  Eric Blake  <ebb9@byu.net>
44375
44376         c-stack: test that stack overflow can be caught
44377         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
44378         that platform allows handling stack overflow; at least OS/2 EMX
44379         has sigaltstack, but crashes before transferring control to
44380         handler on stack overflow.
44381         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
44382         check for HAVE_STACK_OVERFLOW_HANDLING.
44383         Reported by Elbert Pol.
44384
44385 2008-08-25  Bruno Haible  <bruno@clisp.org>
44386
44387         * doc/posix-functions/strftime.texi: Fix description of strftime
44388         module.
44389
44390 2008-08-24  Bruno Haible  <bruno@clisp.org>
44391
44392         * tests/uniwidth/test-uc_width2.c: New file.
44393         * tests/uniwidth/test-uc_width2.sh: New file.
44394         * modules/uniwidth/width-tests (Files): Add the new files.
44395         (TESTS): Add uniwidth/test-uc_width2.sh.
44396         (TESTS_ENVIRONMENT): New variable.
44397         (check_PROGRAMS): Add test-uc_width2.
44398         (test_uc_width2_SOURCES): New variable.
44399
44400         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
44401         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
44402         not 0x00AB.
44403         Reported by Alexander V. Lukyanov <lav@netis.ru>.
44404
44405 2008-08-22  Eric Blake  <ebb9@byu.net>
44406
44407         test-lock, test-tls: mention why a test is skipped
44408         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
44409         skipped.
44410         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
44411
44412         count-one-bits: relax license
44413         * modules/count-one-bits (License): Relicense to LGPLv2+.
44414         Suggested by Ludovic Courtès, approved by Ben Pfaff.
44415
44416 2008-08-22  Andreas Schwab  <schwab@suse.de>
44417
44418         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
44419         Remove spurious space in assignment.
44420
44421 2008-08-21  Simon Josefsson  <simon@josefsson.org>
44422
44423         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
44424         Paul Eggert <eggert@CS.UCLA.EDU>.
44425
44426 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
44427
44428         * modules/gettext: Add m4/threadlib.m4.
44429
44430 2008-08-19  Eric Blake  <ebb9@byu.net>
44431
44432         test-c-stack: fix compilation failure on FreeBSD 5.0
44433         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
44434         headers before <sys/resource.h>.
44435         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
44436         the bug.
44437         Reported by Nelson H. F. Beebe.
44438
44439         strverscmp: migrate from "strverscmp.h" to <string.h>
44440         * modules/string (Makefile.am): Add new hooks.
44441         * modules/strverscmp (Files): Remove strverscmp.h.
44442         (Depends-on): Add string.
44443         (configure.ac): Add indicator.
44444         (Include): Mention new header.
44445         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
44446         defaults.
44447         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
44448         results.
44449         * lib/strverscmp.h: Delete.
44450         * lib/string.in.h (strverscmp): Provide declaration, when needed.
44451         * tests/test-strverscmp.c (includes): Adjust client.
44452         * lib/check-version.c (includes): Likewise.
44453         * NEWS: Document the change.
44454
44455         strverscmp: add unit test
44456         * modules/strverscmp-tests: New file.
44457         * tests/test-strverscmp.c: Likewise.
44458
44459 2008-08-19  Simon Josefsson  <simon@josefsson.org>
44460
44461         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
44462         regarding Windows crypto stuff, from Mono.
44463
44464 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
44465
44466         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
44467         if present, for intel RND.  Return error on failures.
44468
44469 2008-08-18  Ben Pfaff  <blp@gnu.org>
44470
44471         gitlog-to-changelog: give better diagnostic for failed pipe-open
44472         * build-aux/gitlog-to-changelog: Improve error message: suggest
44473         that the version of Git may be too old.
44474
44475 2008-08-18  Simon Josefsson  <simon@josefsson.org>
44476
44477         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
44478         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
44479
44480 2008-08-18  Bruno Haible  <bruno@clisp.org>
44481
44482         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
44483         pthread_in_use().
44484
44485 2008-08-18  Bruno Haible  <bruno@clisp.org>
44486
44487         * lib/glthread/threadlib.c: Include <pthread.h>.
44488
44489 2008-08-18  Bruno Haible  <bruno@clisp.org>
44490
44491         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
44492         glthread_recursive_lock_* macros.
44493         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
44494         Fix syntax error.
44495
44496 2008-08-18  Bruno Haible  <bruno@clisp.org>
44497
44498         * lib/glthread/thread.c: Avoid forcing a context switch right after
44499         thread creation.
44500
44501 2008-08-17  Bruno Haible  <bruno@clisp.org>
44502
44503         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
44504         * lib/glthread/thread.h: Provide Win32 specific implementation.
44505         * modules/thread (Files): Add lib/glthread/thread.c.
44506         (Depends-on): Add lock.
44507         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
44508
44509 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44510
44511         New module 'yield'.
44512         * modules/yield: New file.
44513         * lib/glthread/yield.h: New file.
44514         * m4/yield.m4: New file.
44515         * MODULES.html.sh (Multithreading): Add yield.
44516
44517 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44518
44519         New module 'thread'.
44520         * modules/thread: New file.
44521         * lib/glthread/thread.h: New file.
44522         * m4/thread.m4: New file.
44523         * MODULES.html.sh (Multithreading): Add thread.
44524
44525 2008-08-17  Bruno Haible  <bruno@clisp.org>
44526
44527         * lib/glthread/lock.h: Include <stdlib.h> always.
44528         * lib/glthread/tls.h: Likewise.
44529         * lib/glthread/cond.h: Likewise.
44530
44531 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44532
44533         New module 'cond'.
44534         * modules/cond: New file.
44535         * lib/glthread/cond.h: New file.
44536         * lib/glthread/cond.c: New file.
44537         * m4/cond.m4: New file.
44538         * MODULES.html.sh (Multithreading): Add cond.
44539
44540 2008-08-16  Eric Blake  <ebb9@byu.net>
44541
44542         c-stack: fix regression on Irix 5.3 from 2008-06-21
44543         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
44544         sa_sigaction...
44545         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
44546         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
44547         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
44548         * modules/signal (Makefile.am): Use the value.
44549         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
44550         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
44551         * doc/posix-headers/signal.texi (signal.h): Document this
44552         portability issue.
44553         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
44554         Reported by Tom G. Christensen.
44555
44556 2008-08-17  Bruno Haible  <bruno@clisp.org>
44557
44558         New module 'threadlib'.
44559         * modules/threadlib: New file.
44560         * lib/glthread/threadlib.c: New file, extracted from
44561         lib/glthread/lock.c.
44562         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
44563         functions.
44564         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
44565         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
44566         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
44567         macros.
44568         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
44569         (gl_DISABLE_THREADS): Remove macro.
44570         * modules/lock (Files): Remove build-aux/config.rpath.
44571         (Depends-on): Remove havelib. Add threadlib.
44572         (configure.ac-early): Remove section.
44573         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
44574         * modules/tls (Depends-on): Remove lock. Add threadlib.
44575         (Link): New section, copied from threadlib.
44576         * MODULES.html.sh (Multithreading): Add threadlib.
44577
44578 2008-08-14  Bruno Haible  <bruno@clisp.org>
44579
44580         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
44581         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
44582         glthread_rwlock_unlock, glthread_rwlock_destroy,
44583         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
44584         glthread_recursive_lock_destroy): Define as macros always.
44585         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
44586         glthread_lock_lock.
44587         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
44588         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
44589         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
44590         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
44591         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
44592         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
44593         (glthread_recursive_lock_lock_func): Renamed from
44594         glthread_recursive_lock_lock.
44595         (glthread_recursive_lock_unlock_func): Renamed from
44596         glthread_recursive_lock_unlock.
44597         (glthread_recursive_lock_destroy_func): Renamed from
44598         glthread_recursive_lock_destroy.
44599
44600 2008-08-14  Bruno Haible  <bruno@clisp.org>
44601
44602         * lib/glthread/lock.h: Renamed from lib/lock.h.
44603         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
44604         * lib/glthread/tls.h: Renamed from lib/tls.h.
44605         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
44606         * lib/fstrcmp.c: Update includes.
44607         * lib/strsignal.c: Update includes.
44608         * modules/lock (Files, Makefile.am): Update.
44609         (Include): Change to "glthread/lock.h".
44610         * modules/tls (Files, Makefile.am): Update.
44611         (Include): Change to "glthread/tls.h".
44612         * tests/test-lock.c: Update includes.
44613         * tests/test-tls.c: Update includes.
44614         * NEWS: Mention the renamed header files.
44615
44616 2008-08-11  Jim Meyering  <meyering@redhat.com>
44617
44618         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
44619
44620 2008-08-11  Eric Blake  <ebb9@byu.net>
44621
44622         test-c-stack: avoid C99-ism
44623         * tests/test-c-stack.c (main): Fix whitespace, move declaration
44624         before statement.
44625         Reported by Alain Guibert.
44626
44627 2008-08-10  Jim Meyering  <meyering@redhat.com>
44628
44629         ensure that return value of uinttostr et al are not ignored
44630         * lib/inttostr.h (__GNUC_PREREQ): Define.
44631         (__attribute_warn_unused_result__): Define.
44632         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
44633
44634 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
44635
44636         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
44637         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
44638
44639 2008-08-07  Jim Meyering  <meyering@redhat.com>
44640
44641         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
44642
44643         * modules/mkstemp (License): Relicense under LGPLv2+.
44644         * modules/tempname (License): Likewise.
44645
44646 2008-08-06  Bruno Haible  <bruno@clisp.org>
44647
44648         * lib/poll.c (poll): Further micro-optimization.
44649
44650 2008-08-06  Jim Meyering  <meyering@redhat.com>
44651
44652         inet_pton.c: use locale-independent tolower
44653         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
44654         (inet_pton6): Use c_tolower rather than tolower.
44655         * modules/inet_pton (Depends-on): Add c-ctype.
44656
44657 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
44658
44659         * lib/poll.c (poll): Avoid division when timeout is 0, cache
44660         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
44661
44662 2008-08-06  Jim Meyering  <meyering@redhat.com>
44663
44664         * modules/inet_pton (License): Relicense under LGPLv2+.
44665
44666 2008-08-03  Bruno Haible  <bruno@clisp.org>
44667
44668         Additional non-aborting API for lock and tls.
44669         * lib/lock.h: Include <errno.h>.
44670         (glthread_lock_init): New macro/function.
44671         (gl_lock_init): Define as wrapper around glthread_lock_init.
44672         (glthread_lock_lock): New macro/function.
44673         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
44674         (glthread_lock_unlock): New macro/function.
44675         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
44676         (glthread_lock_destroy): New macro/function.
44677         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
44678         (glthread_rwlock_init): New macro/function.
44679         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
44680         (glthread_rwlock_rdlock): New macro/function.
44681         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
44682         (glthread_rwlock_wrlock): New macro/function.
44683         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
44684         (glthread_rwlock_unlock): New macro/function.
44685         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
44686         (glthread_rwlock_destroy): New macro/function.
44687         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
44688         (glthread_recursive_lock_init): New macro/function.
44689         (gl_recursive_lock_init): Define as wrapper around
44690         glthread_recursive_lock_init.
44691         (glthread_recursive_lock_lock): New macro/function.
44692         (gl_recursive_lock_lock): Define as wrapper around
44693         glthread_recursive_lock_lock.
44694         (glthread_recursive_lock_unlock): New macro/function.
44695         (gl_recursive_lock_unlock): Define as wrapper around
44696         glthread_recursive_lock_unlock.
44697         (glthread_recursive_lock_destroy): New macro/function.
44698         (gl_recursive_lock_destroy): Define as wrapper around
44699         glthread_recursive_lock_destroy.
44700         (glthread_once): New macro/function.
44701         (gl_once): Define as wrapper around glthread_once.
44702         Update function declarations.
44703         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
44704         glthread_rwlock_init. Return error code.
44705         (glthread_rwlock_rdlock_multithreaded): Renamed from
44706         glthread_rwlock_rdlock. Return error code.
44707         (glthread_rwlock_wrlock_multithreaded): Renamed from
44708         glthread_rwlock_wrlock. Return error code.
44709         (glthread_rwlock_unlock_multithreaded): Renamed from
44710         glthread_rwlock_unlock. Return error code.
44711         (glthread_rwlock_destroy_multithreaded): Renamed from
44712         glthread_rwlock_destroy. Return error code.
44713         (glthread_recursive_lock_init_multithreaded): Renamed from
44714         glthread_recursive_lock_init. Return error code.
44715         (glthread_recursive_lock_lock_multithreaded): Renamed from
44716         glthread_recursive_lock_lock. Return error code.
44717         (glthread_recursive_lock_unlock_multithreaded): Renamed from
44718         glthread_recursive_lock_unlock. Return error code.
44719         (glthread_recursive_lock_destroy_multithreaded): Renamed from
44720         glthread_recursive_lock_destroy. Return error code.
44721         (glthread_once_call): Make static.
44722         (glthread_once_multithreaded): Renamed from glthread_once.
44723         * lib/tls.h: Include <errno.h>.
44724         (glthread_tls_key_init): New macro/function.
44725         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
44726         (glthread_tls_set): New macro/function.
44727         (gl_tls_set): Define as wrapper around glthread_tls_set.
44728         (glthread_tls_key_destroy): New macro/function.
44729         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
44730         Update function declarations.
44731         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
44732         glthread_tls_get.
44733         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44734
44735 2008-08-04  Eric Blake  <ebb9@byu.net>
44736
44737         gnumakefile: use space, not TAB, outside of targets
44738         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
44739
44740 2008-08-02  Jim Meyering  <meyering@redhat.com>
44741
44742         getdate.y: avoid locale-dependent date parsing failure
44743         In Turkish locales, getdate would fail to recognize keywords
44744         containing a lowercase "i".  The solution is not to rely on
44745         locale-sensitive case-conversion.
44746         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
44747         (lookup_word): Use c_toupper in place of toupper.
44748         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
44749         Reported by Vefa Bicakci <bicave@superonline.com> in
44750         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
44751         * modules/getdate (Depends-on): Add c-ctype.
44752
44753 2008-08-02  Bruno Haible  <bruno@clisp.org>
44754
44755         * gnulib-tool (func_import): When updating or creating a .gitignore
44756         file, prepend each added line with a slash, and ignore leading slashes
44757         from the existing lines.
44758         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44759
44760 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44761
44762         Portability fix for GNU make 3.79.1.
44763         * top/GNUmakefile: Avoid 'else COND', which older GNU make
44764         versions do not understand.
44765
44766 2008-08-01  Bruno Haible  <bruno@clisp.org>
44767
44768         Work around bug of HP-UX 10.20 cc with -0.0 literal.
44769         * tests/test-isnanf.h (zero): New variable.
44770         (main): Avoid literal -0.0f.
44771         * tests/test-isnand.h (zero): New variable.
44772         (main): Avoid literal -0.0.
44773         * tests/test-isnanl.h (zero): New variable.
44774         (main): Avoid literal -0.0L.
44775         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
44776         (test_float, test_double, test_long_double): Avoid literals -0.0f,
44777         -0.0, -0.0L.
44778         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
44779         (test_signbitd): Avoid literal -0.0.
44780         (test_signbitl): Avoid literal -0.0L.
44781         * tests/test-ceilf1.c (zero): New variable.
44782         (main): Avoid literal -0.0f.
44783         * tests/test-ceill.c (zero): New variable.
44784         (main): Avoid literal -0.0L.
44785         * tests/test-floorf1.c (zero): New variable.
44786         (main): Avoid literal -0.0f.
44787         * tests/test-floorl.c (zero): New variable.
44788         (main): Avoid literal -0.0L.
44789         * tests/test-roundf1.c (zero): New variable.
44790         (main): Avoid literal -0.0f.
44791         * tests/test-round1.c (zero): New variable.
44792         (main): Avoid literal -0.0.
44793         * tests/test-roundl.c (zero): New variable.
44794         (main): Avoid literal -0.0L.
44795         * tests/test-truncf1.c (zero): New variable.
44796         (main): Avoid literal -0.0f.
44797         * tests/test-trunc1.c (zero): New variable.
44798         (main): Avoid literal -0.0.
44799         * tests/test-truncl.c (zero): New variable.
44800         (main): Avoid literal -0.0L.
44801         * tests/test-frexp.c (zero): New variable.
44802         (main): Avoid literal -0.0.
44803         * tests/test-frexpl.c (zero): New variable.
44804         (main): Avoid literal -0.0L.
44805         * tests/test-ldexpl.c (zero): New variable.
44806         (main): Avoid literal -0.0L.
44807         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44808         (zerod, zerol): New variables.
44809         (test_function): Avoid literals -0.0, -0.0L.
44810         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44811         (zerod, zerol): New variables.
44812         (test_function): Avoid literals -0.0, -0.0L.
44813         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44814         (zerod, zerol): New variables.
44815         (test_function): Avoid literals -0.0, -0.0L.
44816         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44817         (zerod, zerol): New variables.
44818         (test_function): Avoid literals -0.0, -0.0L.
44819         * tests/test-strtod.c (zero): New variable.
44820         (main): Avoid literal -0.0.
44821         Reported by Jonathan C. Patschke <jp@centtech.com>.
44822
44823 2008-07-31  Jim Meyering  <meyering@redhat.com>
44824
44825         sha256.h: correct definition of SHA224_DIGEST_SIZE
44826         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
44827         Reported by Paulie Pena IV <paulie4@gmail.com>.
44828         Define as 224 / 8, rather than as a literal.
44829         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
44830         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
44831         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
44832
44833 2008-07-31  Bruno Haible  <bruno@clisp.org>
44834
44835         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
44836         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
44837         Reported by Jonathan Patschke <jp@centtech.com>.
44838
44839 2008-07-31  Bruno Haible  <bruno@clisp.org>
44840
44841         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
44842         Reported by Paolo Bonzini <bonzini@gnu.org>.
44843
44844 2008-07-30  Eric Blake  <ebb9@byu.net>
44845
44846         test-strtod: allow compilation without -lm
44847         * tests/test-strtod.c (main): Avoid link dependence on fabs.
44848         Reported by Dennis Clarke <blastwave@gmail.com>.
44849
44850 2008-07-28  Jim Meyering  <meyering@redhat.com>
44851
44852         bootstrap: work also when there are no .po files in po/
44853         * build-aux/bootstrap (update_po_files): Complete the change
44854         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
44855
44856 2008-07-27  Jim Meyering  <meyering@redhat.com>
44857
44858         * users.txt: Add zile.
44859
44860 2008-07-26  Ben Pfaff  <blp@gnu.org>
44861
44862         Add missing dependencies on new m4/exponent[fdl].m4 files.
44863         * modules/isnanf-nolibm: Add m4/exponentf.m4.
44864         * modules/isnand-nolibm: Add m4/exponentd.m4.
44865         * modules/isnanl-nolibm: Add m4/exponentl.m4.
44866         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
44867         m4/isnan[fdl].m4, because the macros actually used moved.
44868         Reported by Jim Meyering.
44869
44870 2008-07-14  Ben Pfaff  <blp@gnu.org>
44871
44872         Add isinf module.
44873         * lib/isinf.c: New file.
44874         * lib/math.in.h: Define isinf macro if we have decided to replace
44875         it.
44876         * m4/isinf.m4: New file.
44877         * m4/math_h.m4: Initialize and substitute variables for isinf
44878         module.
44879         * modules/isinf: New file.
44880         * modules/isinf-tests: New file.
44881         * modules/math: Add substitutions for new module.
44882         * tests/test-isinf.c: New file.
44883         * doc/posix-functions/isinf.texi: Mention new module.
44884         * MODULES.html.sh: Mention new module.
44885
44886 2008-07-14  Ben Pfaff  <blp@gnu.org>
44887
44888         Factor out some macros for use by additional modules.
44889         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
44890         exponentf.m4.
44891         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
44892         exponentd.m4.
44893         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
44894         file exponentl.m4.
44895         * m4/exponentf.m4: New file.
44896         * m4/exponentd.m4: New file.
44897         * m4/exponentl.m4: New file.
44898         * modules/isnanf: Use new file m4/exponentf.m4.
44899         * modules/isnand: Use new file m4/exponentd.m4.
44900         * modules/isnanl: Use new file m4/exponentl.m4.
44901
44902 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44903
44904         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44905         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44906         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44907         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44908
44909         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44910         readlink on platforms without PATH_MAX.
44911
44912 2008-07-21  Eric Blake  <ebb9@byu.net>
44913
44914         Warn, not fail, on stale version.
44915         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44916
44917         Don't allow installation with stale devel version number.
44918         * top/GNUmakefile (_is-install-target): New macro.
44919         (_curr-ver): Forbid installation with stale version number.
44920
44921 2008-07-20  Bruno Haible  <bruno@clisp.org>
44922
44923         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44924         TESTS_ENVIRONMENT.
44925         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44926
44927 2008-07-20  Bruno Haible  <bruno@clisp.org>
44928
44929         * lib/c-stack.h (c_stack_action): Add documentation.
44930         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44931
44932 2008-07-20  Bruno Haible  <bruno@clisp.org>
44933
44934         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44935         * modules/readlink (License): Likewise.
44936
44937 2008-07-17  Eric Blake  <ebb9@byu.net>
44938
44939         * modules/c-stack (Link): Fix typo.
44940
44941         Make c-stack use libsigsegv, when available.
44942         * modules/c-stack (Depends-on): Add libsigsegv.
44943         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44944         needed.
44945         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44946         (segv_handler, overflow_handler, c_stack_action)
44947         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44948         implementation when libsigsegv is available, but only when using
44949         the library is necessary.
44950         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44951         comment, explaining why XSI check fails on Linux.
44952         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44953         * tests/test-c-stack2.sh: Tweak skip message.
44954         * NEWS: Document new link-time requirements.
44955
44956 2008-07-16  Eric Blake  <ebb9@byu.net>
44957
44958         c-stack: Expose false positives when not using libsigsegv.
44959         * modules/c-stack-tests (Files): Expand test.
44960         * tests/test-c-stack.c (main): Add means to conditionally trigger
44961         non-overflow SIGSEGV.
44962         * tests/test-c-stack2.sh: New file.
44963
44964 2008-07-14  Bruno Haible  <bruno@clisp.org>
44965
44966         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44967         Reported by Eric Blake.
44968
44969 2008-07-14  Sam Steingold  <sds@gnu.org>
44970             Bruno Haible  <bruno@clisp.org>
44971
44972         New module libsigsegv.
44973         * modules/libsigsegv: New file.
44974         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44975         modifications.
44976         * MODULES.html.sh (Signal handling): New section.
44977
44978 2008-07-14  Bruno Haible  <bruno@clisp.org>
44979
44980         * modules/unictype/ctype-* (Description): Add the word "function".
44981         Improves the resulting doc in MODULES.html.
44982
44983 2008-07-12  Ben Pfaff  <blp@gnu.org>
44984
44985         Add longlong module.
44986         * modules/longlong: New file.
44987
44988 2008-07-12  Bruno Haible  <bruno@clisp.org>
44989
44990         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44991         to empty.
44992
44993 2008-07-10  Ben Pfaff  <blp@gnu.org>
44994
44995         Add isnan module.
44996         * doc/posix-functions/isnan.texi: Mention new module.
44997         * lib/math.in.h: Define isnan macro if we have decided to replace
44998         it.
44999         * m4/isnan.m4: New file.
45000         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
45001         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
45002         also.
45003         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
45004         redundancy.
45005         * m4/math_h.m4: Initialize and substitute variables for isnan
45006         module.
45007         * modules/isnan: New file.
45008         * modules/isnan-tests: New file.
45009         * modules/math: Add substitutions for new module.
45010         * tests/test-isnan.c: New file.
45011         * MODULES.html.sh: Mention new module.
45012
45013 2008-07-10  Ben Pfaff  <blp@gnu.org>
45014
45015         Add isnanf module.
45016         * lib/isnanf.m4: New file.
45017         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
45018         (gl_HAVE_ISNANF_IN_LIBM): New macro.
45019         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
45020         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
45021         * modules/isnanf: New file.
45022         * modules/isnanf-tests: New file.
45023         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
45024         files.
45025         * tests/test-isnanf-nolibm.c: factored most of its contents into
45026         new file tests/test-isnanf.h.
45027         * tests/test-isnanf.h: New file.
45028         * tests/test-isnanf.c: New file.
45029         * MODULES.html.sh: Mention new module.
45030         * doc/glibc-functions/isnanf.texi: Mention new module.
45031
45032 2008-07-10  Ben Pfaff  <blp@gnu.org>
45033
45034         Add isnand module.
45035         * lib/isnand.h: New file.
45036         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
45037         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
45038         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
45039         functionality also.
45040         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
45041         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
45042         (gl_HAVE_ISNAND_IN_LIBM): New macro.
45043         * modules/isnand: New file.
45044         * modules/isnand-tests: New file.
45045         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
45046         files.
45047         * tests/test-isnand-nolibm.c: factored most of its contents into
45048         new file tests/test-isnand.h.
45049         * tests/test-isnand.h: New file.
45050         * tests/test-isnand.c: New file.
45051         * MODULES.html.sh: Mention new module.
45052
45053 2008-07-10  Ben Pfaff  <blp@gnu.org>
45054
45055         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
45056         * lib/isnand.h: Rename lib/isnand-nolibm.h.
45057         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
45058         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
45059         * modules/isnanf-nolibm: Update references to renamed files.
45060         * modules/isnand-nolibm: Likewise.
45061         * modules/isnanf-nolibm-tests: Likewise.
45062         * modules/isnand-nolibm-tests: Likewise.
45063         * lib/frexp.c: Likewise.
45064         * lib/isfinite.c: Likewise.
45065         * lib/signbitd.c: Likewise.
45066         * lib/signbitf.c: Likewise.
45067         * lib/vasnprintf.c: Likewise.
45068         * tests/test-ceilf1.c: Likewise.
45069         * tests/test-ceilf2.c: Likewise.
45070         * tests/test-floorf1.c: Likewise.
45071         * tests/test-floorf2.c: Likewise.
45072         * tests/test-frexp.c: Likewise.
45073         * tests/test-round1.c: Likewise.
45074         * tests/test-round2.c: Likewise.
45075         * tests/test-roundf1.c: Likewise.
45076         * tests/test-strtod.c: Likewise.
45077         * tests/test-trunc1.c: Likewise.
45078         * tests/test-trunc2.c: Likewise.
45079         * tests/test-truncf1.c: Likewise.
45080         * tests/test-truncf2.c: Likewise.
45081         * NEWS: Mention the renamed header files.
45082
45083 2008-07-11  Jim Meyering  <meyering@redhat.com>
45084
45085         vc-list-files: make the last-resort awk code more portable
45086         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
45087         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
45088         does not support it.
45089
45090 2008-07-10  Eric Blake  <ebb9@byu.net>
45091
45092         Work with tar's bootstrap.
45093         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
45094         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
45095         an m4 comment.
45096
45097 2008-07-09  Jim Meyering  <meyering@redhat.com>
45098
45099         posix-shell.m4: fix typo that made this test malfunction
45100         * m4/posix-shell.m4: Remove capitalization in variable name.
45101
45102 2008-07-08  Bruno Haible  <bruno@clisp.org>
45103
45104         * m4/onceonly.m4: Update comments.
45105         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45106
45107 2008-07-04  Jim Meyering  <meyering@redhat.com>
45108
45109         * users.txt: Add vc-dwim.
45110         (bison, coreutils): Use the gitweb URL.
45111
45112 2008-07-03  Jim Meyering  <meyering@redhat.com>
45113
45114         * users.txt: Add libffcall.  From Sam Steingold.
45115
45116 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
45117
45118         getdate.y: do not ignore TZ with relative day, month or year offset
45119         * lib/getdate.y (get_date): Move the tz-handling block to follow the
45120         relative-date-handling, since otherwise, the latter would clobber the
45121         sole output (an updated Start value) of the tz-handling block.
45122         * tests/test-getdate.c: Tests for the fix
45123
45124 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45125
45126         Recognize 'foo_LIBRARIES += libgnu.a'.
45127         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
45128         makefile snippet has already specified an installation location,
45129         also using '+='.
45130
45131 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
45132
45133         getdate.y: factor out common actions
45134         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
45135         Use them in place of open-coded actions.
45136
45137 2008-07-01  Simon Josefsson  <simon@josefsson.org>
45138
45139         Add self-test for getdate module.
45140         * modules/getdate-tests: New file.
45141         * tests/test-getdate.c: New file.
45142
45143 2008-06-29  Bruno Haible  <bruno@clisp.org>
45144
45145         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
45146         .gitignore.
45147         Reported by Sylvain Beucler <beuc@beuc.net>.
45148
45149 2008-06-29  Bruno Haible  <bruno@clisp.org>
45150
45151         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
45152         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
45153
45154 2008-06-29  Bruno Haible  <bruno@clisp.org>
45155
45156         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
45157         EXTRA_DIST.
45158         Reported by Sylvain Beucler <beuc@beuc.net>.
45159
45160 2008-06-26  Jim Meyering  <meyering@redhat.com>
45161
45162         make several modules depend on the "open" module
45163         This provides slightly increased consistency when opening-for-write
45164         the name of a non-directory spelled with a trailing slash.
45165         * modules/chdir-safer: Likewise.
45166         * modules/chown: Likewise.
45167         * modules/clean-temp: Likewise.
45168         * modules/copy-file: Likewise.
45169         * modules/fchdir: Likewise.
45170         * modules/fcntl-safer: Likewise.
45171         * modules/pipe: Likewise.
45172         * modules/utime: Likewise.
45173         Prompted by Eric Blake and Bruno Haible.
45174
45175 2008-06-24  Andreas Schwab  <schwab@suse.de>
45176
45177         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
45178         literals can be used as initializers for global variables.
45179
45180 2008-06-23  Eric Blake  <ebb9@byu.net>
45181
45182         Make gnulib-cache.m4 easier to diff.
45183         * gnulib-tool (func_import): Allow newlines when reading cached
45184         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
45185
45186 2008-06-23  Bruno Haible  <bruno@clisp.org>
45187
45188         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
45189         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
45190         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
45191         m4/signalblocking.m4.
45192         (gl_PREREQ_SIGACTION): Don't invoke it.
45193         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
45194         gl_PREREQ_SIG_HANDLER_H.
45195         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45196         Don't check for sigaction here.
45197
45198 2008-06-23  Bruno Haible  <bruno@clisp.org>
45199
45200         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
45201         (install_handlers): Don't set the SA_RESETHAND flag.
45202
45203 2008-06-23  Bruno Haible  <bruno@clisp.org>
45204
45205         * m4/sigaction.m4: Comment fixes.
45206         * lib/signal.in.h: Likewise.
45207
45208 2008-06-23  Eric Blake  <ebb9@byu.net>
45209
45210         Fix typo.
45211         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
45212
45213         Avoid SA_ namespace.
45214         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
45215         Reported by Ralf Wildenhues.
45216
45217         Avoid test failure due to SA_RESTORER.
45218         * tests/test-sigaction.c (SA_MASK): New macro.
45219         (main): Avoid failing due to extension flags being set.
45220         Reported by Jim Meyering.
45221
45222         Revert use of sig-handler.h in sigprocmask.c.
45223         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
45224         it requires the existence of struct sigaction.
45225         * lib/sigprocmask.c (handler_t): Restore typedef.
45226         (rpl_signal, old_handlers): Use local type.
45227
45228 2008-06-22  Bruno Haible  <bruno@clisp.org>
45229
45230         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
45231         conditionally.
45232         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45233
45234 2008-06-22  Bruno Haible  <bruno@clisp.org>
45235
45236         * doc/posix-functions/siginterrupt.texi: Move note.
45237
45238         * lib/signal.in.h (SA_RESTART): New macro.
45239         * lib/sigaction.c: Update comment.
45240
45241         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
45242
45243         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
45244         (gl_PREREQ_SIGPROCMASK): Invoke it.
45245         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
45246
45247         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
45248
45249         * lib/sigprocmask.c: Update a comment.
45250
45251 2008-06-21  Eric Blake  <ebb9@byu.net>
45252
45253         Use sigaction module rather than signal().
45254         * modules/c-stack (Depends-on): Add sigaction.
45255         * modules/fatal-signal (Depends-on): Likewise.
45256         * modules/nanosleep (Depends-on): Likewise.
45257         * modules/sigprocmask (Files): Add sig-handler.h.
45258         * modules/sigaction (Files): Likewise.
45259         * lib/sig-handler.h (get_handler): New file, suggested by Paul
45260         Eggert.
45261         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
45262         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
45263         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
45264         (init_fatal_signals): Likewise.
45265         * lib/nanosleep.c (rpl_nanosleep): Likewise.
45266         (siginterrupt): Delete fallback.
45267         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
45268         instead.
45269         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
45270         siginterrupt.
45271
45272         New module sigaction, for mingw.
45273         * modules/sigaction: New module...
45274         * modules/sigaction-tests: ...and its test.
45275         * m4/sigaction.m4: New file.
45276         * lib/sigaction.c: Likewise.
45277         * tests/test-sigaction.c: Likewise.
45278         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
45279         * modules/signal (Makefile.am): Likewise.
45280         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
45281         needed.
45282         * doc/posix-headers/signal.texi (signal.h): Mention provided
45283         types.
45284         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
45285         that sigaction is preferable.
45286         * doc/posix-functions/sigaction.texi (sigaction): Mention new
45287         module.
45288         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45289         sigaction.
45290
45291         Improve robustness of sigprocmask by overriding signal.
45292         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
45293         is in use.
45294         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
45295         (SIGKILL, SIGSTOP): Provide fallbacks.
45296         (rpl_signal): Implement.
45297         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
45298         signal can be called inside handlers.
45299
45300         Fix nanosleep module on mingw.
45301         * modules/nanosleep (Depends-on): Add sys_select.
45302         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
45303
45304         Fix licensing of sigprocmask.
45305         * modules/raise (License): Relicense as LGPL.
45306
45307 2008-06-21  Bruno Haible  <bruno@clisp.org>
45308
45309         * lib/propername.c (proper_name_utf8): Don't use the transliterated
45310         result if it contains question marks.
45311         Reported by Michael Geng <linux@michaelgeng.de>.
45312
45313 2008-06-19  Bruno Haible  <bruno@clisp.org>
45314
45315         Fix CVS-ism.
45316         * doc/gnulib.texi: Include updated-stamp.texi.
45317         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
45318         (updated-stamp.texi): New rule.
45319         (gnulib.info): Depend on it.
45320         * doc/.gitignore: Add updated-stamp.texi.
45321         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
45322
45323 2008-06-19  Bruno Haible  <bruno@clisp.org>
45324
45325         * doc/Makefile (gnulib.info): Update and simplify dependencies.
45326         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45327
45328 2008-06-19  Eric Blake  <ebb9@byu.net>
45329
45330         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
45331         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
45332         Reported by Stepan Kasal.
45333
45334 2008-06-18  Bruno Haible  <bruno@clisp.org>
45335
45336         * lib/fatal-signal.c (init_fatal_signals): Add comment.
45337         Reported by Eric Blake.
45338
45339 2008-06-18  Eric Blake  <ebb9@byu.net>
45340
45341         Work around cygwin 1.5.25 strsignal bug.
45342         * tests/test-strsignal.c: Allow for const char *.
45343         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
45344
45345 2008-06-18  Simon Josefsson  <simon@josefsson.org>
45346
45347         * users.txt: Update URL to article and add author/date
45348         information.
45349
45350 2008-06-17  Bruno Haible  <bruno@clisp.org>
45351
45352         New macro gl_DISABLE_THREADS.
45353         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
45354         if the user did not pass --enable-threads or --disable-threads option.
45355         (gl_DISABLE_THREADS): New macro.
45356         Reported by Eric Blake <ebb9@byu.net>.
45357
45358 2008-06-17  Bruno Haible  <bruno@clisp.org>
45359
45360         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
45361         when the macro ignores it.
45362         Based on a patch by Eric Blake <ebb9@byu.net>.
45363
45364 2008-06-17  Bruno Haible  <bruno@clisp.org>
45365
45366         * modules/tls (License): Change to LGPLv2+.
45367         Reported by Eric Blake.
45368
45369 2008-06-17  Eric Blake  <ebb9@byu.net>
45370
45371         Simplify c-stack prerequisites.
45372         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
45373         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
45374         no longer requires <ucontext.h> to exist.  Optimize setrlimit
45375         check.
45376         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
45377         <sys/resource.h>.
45378
45379         Move c-stack test into testsuite.
45380         * modules/c-stack-tests: New file.
45381         * lib/c-stack.c [DEBUG]: Move test program...
45382         * tests/test-c-stack.c: ...into this new file.  Skip rather than
45383         fail test if sigaltstack is lacking.
45384         * tests/test-c-stack.sh: New driver file.
45385
45386 2008-06-16  Eric Blake  <ebb9@byu.net>
45387
45388         Use raise module consistently.
45389         * modules/fatal-signal (Depends-on): Add raise.
45390         * modules/sigprocmask (Depends-on): Likewise.
45391         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
45392         * lib/sigprocmask.c (sigprocmask): Likewise.
45393         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45394         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
45395
45396         Fix compliance bug in sigpending.
45397         * lib/sigprocmask.c (sigpending): Return pending array via
45398         parameter, not return value.
45399
45400 2008-06-14  Eric Blake  <ebb9@byu.net>
45401
45402         Improve obstack-printf test code.
45403         * tests/test-obstack-printf.c (test_function): Fix comment, and
45404         simplify usage of obstack_* in macros.  Add a test for coverage.
45405         Reported by Bruno Haible.
45406
45407 2008-06-14  Bruno Haible  <bruno@clisp.org>
45408
45409         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
45410         array size as a constant, not as a const variable.
45411         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
45412         AC_USE_SYSTEM_EXTENSIONS.
45413         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45414         Test whether the obstack_printf function actually exists.
45415         * modules/obstack-printf (Depends-on): Add extensions.
45416         (Include): Remove obstack.h.
45417         * modules/obstack-printf-posix (Depends-on): Add extensions.
45418         (Include): Remove obstack.h.
45419
45420 2008-06-13  Eric Blake  <ebb9@byu.net>
45421
45422         Add obstack-printf and obstack-printf-posix modules.
45423         * modules/obstack-printf: New file.
45424         * modules/obstack-printf-posix: Likewise.
45425         * MODULES.html.sh (Misc): Mention them.
45426         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
45427         Likewise.
45428         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
45429         Likewise.
45430         * modules/stdio (Makefile.am): Accomodate new modules.
45431         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45432         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
45433         Declare.
45434         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
45435         functions.
45436         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
45437         (gl_REPLACE_OBSTACK_PRINTF): New macros
45438         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
45439         * tests/test-obstack-printf.c: New file.
45440         * modules/obstack-printf-tests: Likewise.
45441         * modules/obstack-printf-posix-tests: Likewise.
45442
45443 2008-06-11  Bruno Haible  <bruno@clisp.org>
45444
45445         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
45446         * lib/open.c: Include errno.h.
45447         (open): Fail when attempting to write to a file that has a trailing
45448         slash.
45449         * tests/test-open.c (main): Test against trailing slash bug.
45450         * doc/posix-functions/open.texi: Mention the trailing slash bug.
45451
45452 2008-06-10  Bruno Haible  <bruno@clisp.org>
45453
45454         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
45455         for $? to work inside the trap command, with various /bin/sh-s.
45456         * tests/test-vc-list-files-cvs.sh: Likewise.
45457
45458 2008-06-10  Bruno Haible  <bruno@clisp.org>
45459
45460         * lib/acl-internal.h: Don't include gettext.h here.
45461         * lib/set-mode-acl.c: Include gettext.h here.
45462         * lib/copy-acl.c: Likewise.
45463
45464 2008-06-10  Bruno Haible  <bruno@clisp.org>
45465
45466         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
45467         * lib/wait-process.c (wait_subprocess): Likewise.
45468         * lib/execute.h (execute): Add termsigp argument.
45469         * lib/execute.c (execute): Likewise.
45470         * lib/csharpcomp.c (compile_csharp_using_pnet,
45471         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
45472         * lib/csharpexec.c (execute_csharp_using_pnet,
45473         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
45474         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
45475         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
45476         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
45477         is_jikes_present): Update.
45478         * lib/javaexec.c (execute_java_class): Update.
45479         * lib/javaversion.c (execute_and_read_line): Update.
45480         * NEWS: Document the changes.
45481         Reported by Eric Blake.
45482
45483 2008-06-10  Eric Blake  <ebb9@byu.net>
45484
45485         Add missing include.
45486         * tests/test-strstr.c (includes): Add <signal.h>.
45487         * tests/test-strcasestr.c (includes): Likewise.
45488         * tests/test-memmem.c (includes): Likewise.
45489
45490 2008-06-10  Bruno Haible  <bruno@clisp.org>
45491
45492         * lib/wait-process.c (wait_subprocess): Add an assertion.
45493
45494 2008-06-10  Bruno Haible  <bruno@clisp.org>
45495
45496         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
45497
45498 2008-06-10  Bruno Haible  <bruno@clisp.org>
45499
45500         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
45501         using alarm().
45502         * tests/test-strcasestr.c (main): Likewise.
45503         * tests/test-strstr.c (main): Likewise.
45504
45505 2008-06-09  Bruno Haible  <bruno@clisp.org>
45506
45507         Work around the Solaris 10 ACE ACLs ABI change.
45508         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
45509         declare if ACL_NO_TRIVIAL is present.
45510         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
45511         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
45512         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
45513         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
45514         define if ACL_NO_TRIVIAL is present.
45515         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
45516         and use the current ABI.
45517         (file_has_acl): Use same #if condition as elsewhere.
45518         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
45519         in use, and use the current ABI.
45520         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
45521         Reported by Jim Meyering.
45522
45523 2008-06-09  Eric Blake  <ebb9@byu.net>
45524
45525         Work around environments that (stupidly) ignore SIGALRM.
45526         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
45527         before using alarm().
45528         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45529         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45530         Reported by Ian Beckwith <ianb@erislabs.net>.
45531
45532         Produce autobuild blurb earlier in log.
45533         * modules/autobuild (configure.ac-early): Move AB_INIT here.
45534
45535 2008-06-09  Jim Meyering  <meyering@redhat.com>
45536         and OndÅ™ej Vašík  <ovasik@redhat.com>
45537
45538         utimens.c: correct kernel bug work-around
45539         OndÅ™ej Vašík found that the invalid return value of 280 indicates
45540         failure, not success, and the kernel bug we're trying to work
45541         around affects not just the utimensat call, but also the fallback
45542         futimens call.
45543         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
45544         not success.
45545         [HAVE_FUTIMENS]: Use the same work-around, here.
45546
45547 2008-06-09  Jim Meyering  <meyering@redhat.com>
45548
45549         add more guards around definition of ACE_-related code
45550         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
45551         ALLOW and ACE_OWNER are also defined.
45552
45553 2008-06-08  Bruno Haible  <bruno@clisp.org>
45554
45555         * lib/acl-internal.h: Add me as co-author.
45556         * lib/file-has-acl.c: Likewise.
45557         * lib/set-mode-acl.c: Likewise.
45558         * lib/copy-acl.c: Likewise.
45559
45560 2008-06-08  Bruno Haible  <bruno@clisp.org>
45561
45562         Add support for AIX ACLs.
45563         * lib/acl-internal.h (acl_nontrivial): New declaration.
45564         * lib/file-has-acl.c (acl_nontrivial): New function.
45565         (file_has_acl): Add implementation using AIX 4 ACL API.
45566         * lib/set-mode-acl.c (qset_acl): Likewise.
45567         * lib/copy-acl.c (qcopy_acl): Likewise.
45568
45569 2008-06-08  Bruno Haible  <bruno@clisp.org>
45570
45571         Add support for HP-UX ACLs.
45572         * lib/acl-internal.h (acl_nontrivial): New declaration.
45573         * lib/file-has-acl.c (acl_nontrivial): New function.
45574         (file_has_acl): Add implementation using HP-UX 11 ACL API.
45575         * lib/set-mode-acl.c (qset_acl): Likewise.
45576         * lib/copy-acl.c (qcopy_acl): Likewise.
45577
45578 2008-06-08  Bruno Haible  <bruno@clisp.org>
45579
45580         Add support for Cygwin ACLs.
45581         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
45582         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
45583         the chmod_or_fchmod call.
45584         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
45585
45586 2008-06-08  Bruno Haible  <bruno@clisp.org>
45587
45588         Fix bug with setuid modes in Solaris 10+ code.
45589         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
45590         succeeded, when the mode contains some special bits.
45591
45592 2008-06-08  Bruno Haible  <bruno@clisp.org>
45593
45594         Add support for Solaris 7..10 ACLs.
45595         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
45596         declarations.
45597         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
45598         functions.
45599         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
45600         * lib/set-mode-acl.c (qset_acl): Likewise.
45601         * lib/copy-acl.c (qcopy_acl): Likewise.
45602
45603 2008-06-08  Bruno Haible  <bruno@clisp.org>
45604
45605         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
45606         declaration.
45607         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
45608         (acl_access_nontrivial): Remove MacOS X case.
45609         (file_has_acl): Use acl_extended_nontrivial.
45610         * lib/copy-acl.c (qcopy_acl): Likewise.
45611
45612 2008-06-08  Bruno Haible  <bruno@clisp.org>
45613
45614         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
45615
45616 2008-06-08  Jim Meyering  <meyering@redhat.com>
45617
45618         * modules/acl (Maintainer): Add Bruno Haible.
45619
45620 2008-06-07  Bruno Haible  <bruno@clisp.org>
45621
45622         Improve support for Tru64 ACLs.
45623         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
45624         ACL on OSF/1.
45625
45626 2008-06-07  Bruno Haible  <bruno@clisp.org>
45627
45628         Add support for MacOS X ACLs.
45629         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
45630         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
45631         * lib/set-mode-acl.c (qset_acl): Likewise.
45632         * lib/copy-acl.c (qcopy_acl): Likewise.
45633
45634 2008-06-07  Bruno Haible  <bruno@clisp.org>
45635
45636         Fix memory leak introduced on 2008-05-22.
45637         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
45638         use.
45639
45640 2008-06-07  Bruno Haible  <bruno@clisp.org>
45641
45642         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
45643         to construct an empty ACL.
45644
45645 2008-06-07  Bruno Haible  <bruno@clisp.org>
45646
45647         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
45648         precisely.
45649         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
45650
45651 2008-06-07  Bruno Haible  <bruno@clisp.org>
45652
45653         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
45654         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
45655
45656 2008-06-07  Bruno Haible  <bruno@clisp.org>
45657
45658         * doc/posix-functions/_setjmp.texi: Explain the use of this function
45659         regardless of POSIX.
45660         * doc/posix-functions/_longjmp.texi: Likewise.
45661         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
45662         SystemV platform in this case.
45663
45664 2008-06-06  Eric Blake  <ebb9@byu.net>
45665
45666         Document abort() bugs.
45667         * doc/posix-functions/abort.texi (abort): Mention anomalies.
45668
45669         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
45670         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
45671         sigsetjmp.
45672         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
45673         siglongjmp, but only as a macro.
45674         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
45675         is obsolete.
45676         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
45677
45678         Tweak documentation to cover cygwin argz bugs.
45679         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
45680         argz bug fix; no code change needed since no cygwin releases
45681         occurred between the last fix and the bug being tested.
45682         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
45683         module and recently fixed cygwin bugs.
45684         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
45685         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
45686         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
45687         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
45688         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
45689         Likewise.
45690         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
45691         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
45692         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
45693         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
45694         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
45695         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
45696         Likewise.
45697
45698         Avoid gcc warning on cygwin.
45699         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
45700         !ACL_NO_TRIVIAL]: Avoid unused variable.
45701
45702 2008-06-05  Eric Blake  <ebb9@byu.net>
45703
45704         Be tolerant of UNKNOWN version in gnulib-tool test dir.
45705         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
45706         git-version-gen fails to come up with a version.
45707         Reported by Simon Josefsson.
45708
45709 2008-06-05  Jim Meyering  <meyering@redhat.com>
45710             Paul Eggert  <eggert@cs.ucla.edu>
45711
45712         utimens.c: work around a probable Linux kernel bug
45713         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
45714         appears to be a kernel bug that causes utimensat to return 280
45715         instead of 0, indicating success.
45716
45717 2008-06-04  Bruno Haible  <bruno@clisp.org>
45718
45719         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
45720         2008-06-01 commit.
45721
45722 2008-06-04  Bruno Haible  <bruno@clisp.org>
45723
45724         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
45725         * lib/file-has-acl.c (acl_access_nontrivial): New function.
45726         (file_has_acl): Use it. Save errno afterwards.
45727         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
45728
45729 2008-06-03  Bruno Haible  <bruno@clisp.org>
45730
45731         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
45732         draft code. Simplify #ifs.
45733         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
45734         Put Solaris code after POSIX-draft code. Fix comments regarding
45735         Solaris 10, HP-UX. Mention Cygwin.
45736         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
45737
45738 2008-06-03  Eric Blake  <ebb9@byu.net>
45739
45740         Provide fallback for older kernels.
45741         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
45742         Provide runtime fallback if kernel lacks support.
45743         Reported by Mike Frysinger.
45744
45745 2008-06-02  Bruno Haible  <bruno@clisp.org>
45746
45747         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
45748         it exists.
45749
45750 2008-06-02  Bruno Haible  <bruno@clisp.org>
45751
45752         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
45753         * lib/copy-acl.c (qcopy_acl): Update comment.
45754
45755 2008-06-02  Bruno Haible  <bruno@clisp.org>
45756
45757         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
45758         like ACL APIs.
45759
45760 2008-06-02  Bruno Haible  <bruno@clisp.org>
45761
45762         * tests/test-file-has-acl.sh: Use different code for Cygwin.
45763         * tests/test-set-mode-acl.sh: Likewise.
45764         * tests/test-copy-acl.sh: Likewise.
45765         * tests/test-copy-file.sh: Likewise.
45766
45767 2008-06-02  Bruno Haible  <bruno@clisp.org>
45768
45769         * tests/test-file-has-acl.sh: Remove unused code.
45770
45771 2008-06-01  Bruno Haible  <bruno@clisp.org>
45772
45773         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
45774         (copy_acl): Just a wrapper around qcopy_acl that emits the error
45775         messages.
45776         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
45777
45778 2008-06-01  Bruno Haible  <bruno@clisp.org>
45779
45780         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
45781         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
45782         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
45783         APIs.
45784         * modules/acl-tests (configure.ac): Remove tests now contained in
45785         m4/acl.m4.
45786
45787 2008-06-02  Jim Meyering  <meyering@redhat.com>
45788
45789         announce-gen: use a better key-server host name
45790         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
45791         it may be more consistently reliable.  Suggested by Werner Koch
45792         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
45793
45794 2008-06-01  Bruno Haible  <bruno@clisp.org>
45795
45796         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
45797         Reported by Voroskoi Andras <voroskoi@gmail.com>.
45798
45799 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
45800
45801         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
45802
45803 2008-06-01  Bruno Haible  <bruno@clisp.org>
45804
45805         New ACL tests.
45806         * tests/test-file-has-acl.sh: New file.
45807         * tests/test-file-has-acl.c: New file.
45808         * tests/test-set-mode-acl.sh: New file.
45809         * tests/test-set-mode-acl.c: New file.
45810         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
45811         * tests/test-copy-acl.c: New file.
45812         * modules/acl-tests: New file, based on modules/copy-file-tests.
45813         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
45814         (Depends-on): Add acl-tests.
45815         (configure.ac): Remove checks.
45816         (Makefile.am): Don't create test-sameacls program here any more.
45817
45818 2008-06-01  Bruno Haible  <bruno@clisp.org>
45819
45820         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
45821         * tests/test-sameacls.c: Include progname.h.
45822         (main): Invoke set_program_name. Portability fixes for MacOS X,
45823         Solaris, HP-UX.
45824
45825 2008-06-01  Bruno Haible  <bruno@clisp.org>
45826
45827         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
45828         function.
45829         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
45830
45831 2008-06-01  Bruno Haible  <bruno@clisp.org>
45832
45833         * modules/rpmatch (Depends-on): Add strdup.
45834
45835 2008-06-01  Bruno Haible  <bruno@clisp.org>
45836
45837         * lib/pipe.c: Include unistd-safer.h.
45838         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
45839         * modules/pipe (Depends-on): Add unistd-safer.
45840
45841 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45842
45843         * modules/autobuild (configure.ac): Call AB_INIT.
45844
45845 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45846
45847         * tests/test-getaddrinfo.c: Don't print debug messages by default.
45848         Suggested by Bruno Haible <bruno@clisp.org>.
45849
45850 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45851
45852         * tests/test-base64.c: Cast size_t to unsigned long when invoking
45853         printf.  Use %lu instead of %d.  Reported by Bruno Haible
45854         <bruno@clisp.org>.
45855
45856 2008-05-29  Eric Blake  <ebb9@byu.net>
45857
45858         Prefer new POSIX 200x interfaces over futimesat.
45859         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
45860         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
45861         when available.
45862         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
45863
45864 2008-05-28  Bruno Haible  <bruno@clisp.org>
45865
45866         * modules/stpcpy (License): Change to LGPLv2+.
45867         Requested by David Lutterkort <dlutter@redhat.com>.
45868
45869 2008-05-27  Bruno Haible  <bruno@clisp.org>
45870
45871         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
45872         current mingw.
45873         Reported by Jose E. Marchesi <jemarch@gnu.org>.
45874
45875 2008-05-27  Bruno Haible  <bruno@clisp.org>
45876
45877         * modules/iconv_open (Link): New section, from module 'iconv'.
45878         * modules/striconv (Link): Likewise.
45879         * modules/striconveh (Link): Likewise.
45880         * modules/xstriconv (Link): Likewise.
45881         * modules/unicodeio (Link): Likewise.
45882         * modules/propername (Link): Likewise.
45883         Reported by Jim Meyering.
45884
45885 2008-05-26  Jim Meyering  <meyering@redhat.com>
45886
45887         sha256: do not artificially restrict buffer length to be < 2^32
45888         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
45889         uint32_t to size_t.
45890         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
45891         to match.
45892
45893         avoid unaligned access errors, e.g., on sparc
45894         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
45895         direct access through a possibly-unaligned uint64* pointer.
45896         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
45897         direct access through a possibly-unaligned uint32* pointer.
45898         Prompted by this patch from Tom "spot" Callaway:
45899         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
45900
45901         sha512.c: fix typo in comment
45902         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45903
45904 2008-05-25  Bruno Haible  <bruno@clisp.org>
45905
45906         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45907         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45908         (Makefile.am): Update lib_SOURCES.
45909
45910 2008-05-25  Bruno Haible  <bruno@clisp.org>
45911
45912         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45913
45914 2008-05-25  Jim Meyering  <meyering@redhat.com>
45915
45916         useless-if-before-free: freed expr may have white-space differences
45917         * build-aux/useless-if-before-free: Recognize cases in which the
45918         freed expression differs from the tested one in embedded white
45919         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45920         $1 was used, so we can't make any regexp shy.  Improved tests now
45921         detect this.
45922
45923         useless-if-before-free: accept white space in the expression.
45924         * build-aux/useless-if-before-free: For now, any white space
45925         in the expression must be identical in the free argument.
45926
45927         useless-if-before-free: efficiency tweak
45928         * build-aux/useless-if-before-free: Make the expression-matching
45929         regexp "shy".
45930         Make the *outer* regexp shy, not the expr-matching one.
45931
45932         update code-in-comment to accept cast of free arg
45933         * build-aux/useless-if-before-free: Update regexp.
45934
45935 2008-05-25  Bruno Haible  <bruno@clisp.org>
45936
45937         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45938         * modules/copy-file-tests (Files, Makefile.am): Update.
45939         * tests/test-copy-file.c (func_test_copy): Update.
45940
45941 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45942
45943         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45944
45945 2008-05-23  Bruno Haible  <bruno@clisp.org>
45946
45947         Improve support for ACLs on OSF/1.
45948         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45949         Remove fallback for unknown flavors of ACLs.
45950
45951 2008-05-22  Bruno Haible  <bruno@clisp.org>
45952
45953         Add support for ACLs on OSF/1.
45954         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45955         replacements.
45956         (acl_free_text): New macro fallback.
45957         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45958         acl_free.
45959         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45960         acl_free_text function. Require AC_C_INLINE.
45961
45962 2008-05-22  Bruno Haible  <bruno@clisp.org>
45963
45964         Make copy_acl work on MacOS X 10.5.
45965         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45966         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45967         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45968         If MODE_INSIDE_ACL, don't assume that every system has the same text
45969         representation for ACLs as FreeBSD.
45970         * lib/copy-acl.c (copy_acl): Add support for platforms with
45971         !MODE_INSIDE_ACL.
45972         * lib/file-has-acl.c (file_has_acl): Likewise.
45973         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45974         FreeBSD, MacOS X, or IRIX, respectively.
45975
45976 2008-05-22  Bruno Haible  <bruno@clisp.org>
45977
45978         * lib/acl.h: Don't include <sys/acl.h>.
45979         (GETACLCNT): Move fallback to lib/acl-internal.h.
45980         * lib/acl-internal.h: Include <sys/acl.h> here.
45981         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45982
45983 2008-05-22  Bruno Haible  <bruno@clisp.org>
45984
45985         Split off copy_acl function to separate file.
45986         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45987         * lib/acl.c (copy_acl): Moved function to separate file.
45988         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45989         * modules/acl (Files): Add lib/copy-acl.c.
45990         (Makefiles.am): Augment lib_SOURCES.
45991
45992 2008-05-22  Bruno Haible  <bruno@clisp.org>
45993
45994         * modules/copy-file-tests: New file.
45995         * tests/test-copy-file.sh: New file.
45996         * tests/test-copy-file.c: New file.
45997         * tests/test-copy-file-sameacls.c: New file.
45998
45999 2008-05-22  Eric Blake  <ebb9@byu.net>
46000
46001         Avoid gcc warning.
46002         * tests/test-memcmp.c (main): Pass NULL indirectly.
46003
46004 2008-05-21  Bruno Haible  <bruno@clisp.org>
46005
46006         Add reference doc about ACLs.
46007         * doc/acl-resources.txt: New file.
46008         * doc/acl-cygwin.txt: New file.
46009
46010 2008-05-21  Bruno Haible  <bruno@clisp.org>
46011
46012         Avoid one more warning from gcc.
46013         * lib/vasnprintf.c (IF_LINT): Update comments.
46014         (VASNPRINTF): Use it also for the 'prefix' array initializer.
46015
46016 2008-05-21  Jim Meyering  <meyering@redhat.com>
46017
46018         avoid a warning from gcc
46019         * lib/vasnprintf.c (IF_LINT): Define.
46020         (scale10_round_decimal_long_double):
46021         Use it to avoid a "may be used uninitialized" warning.
46022         (scale10_round_decimal_double): Likewise.
46023
46024 2008-05-21  Simon Josefsson  <simon@josefsson.org>
46025
46026         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
46027         declared.
46028
46029 2008-05-20  Bruno Haible  <bruno@clisp.org>
46030
46031         * tests/test-memcmp.c (main): Test also the sign of the result. Test
46032         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
46033
46034 2008-05-20  Simon Josefsson  <simon@josefsson.org>
46035
46036         * modules/memcmp-tests: New file.
46037         * tests/test-memcmp.c: New file.
46038
46039 2008-05-19  Bruno Haible  <bruno@clisp.org>
46040
46041         * modules/propername (Notice, configure.ac): Put quoted "..." into
46042         --keyword option.
46043         * lib/propername.h: Update comments accordingly.
46044         Reported by Eric Blake.
46045
46046 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
46047
46048         * modules/getpass-gnu (Depends-on): Add fseeko.
46049
46050 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46051
46052         * modules/base64-tests: New file.
46053
46054 2008-05-19  Bo Borgerson <gigabo@gmail.com>
46055
46056         * lib/base64.c (base64_decode_ctx): If a decode context structure
46057         was passed in use it to ignore newlines.  If a context structure
46058         was _not_ passed in, continue to treat newlines as garbage (this
46059         is the historical behavior).  Formerly base64_decode.
46060         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46061         takes a decode context structure.
46062         * lib/base64.h (base64_decode): Macro for four-argument calls.
46063         (base64_decode_alloc): Likewise.
46064         * lib/base64.c (base64_decode_ctx): If a decode context structure
46065         was passed in use it to ignore newlines.  If a context structure
46066         was _not_ passed in, continue to treat newlines as garbage (this
46067         is the historical behavior).  Formerly base64_decode.
46068         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46069         takes a decode context structure.
46070         * lib/base64.h (base64_decode): Macro for four-argument calls.
46071         (base64_decode_alloc): Likewise.
46072
46073 2008-05-19  Jim Meyering  <meyering@redhat.com>
46074
46075         avoid a warning from gcc
46076         * lib/trim.c (IF_LINT): Define.
46077         (trim2): Use it to avoid a "may be used uninitialized" warning.
46078
46079         Fix doc typo.
46080         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
46081
46082 2008-05-19  Bruno Haible  <bruno@clisp.org>
46083
46084         * doc/glibc-functions/getpass.texi: Document limits of other
46085         implementations.
46086
46087 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46088             Bruno Haible <bruno@clisp.org>
46089
46090         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
46091
46092 2008-05-18  Bruno Haible  <bruno@clisp.org>
46093
46094         * modules/propername: New file, from GNU gettext.
46095         * lib/propername.h: New file, from GNU gettext.
46096         * lib/propername.c: New file, from GNU gettext.
46097         * MODULES.html.sh (Internationalization functions): Add propername.
46098
46099 2008-05-16  Jim Meyering  <meyering@redhat.com>
46100             Bruno Haible  <bruno@clisp.org>
46101
46102         Avoid some warnings from "gcc -Wshadow".
46103         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
46104
46105 2008-05-15  Eric Blake  <ebb9@byu.net>
46106
46107         Extend previous patch to cygwin 1.7.0.
46108         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
46109         fast implementation in cygwin >= 1.7.0.
46110         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46111         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46112
46113 2008-05-15  Bruno Haible  <bruno@clisp.org>
46114
46115         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
46116         implementation in glibc >= 2.9.
46117         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46118         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46119
46120 2008-05-15  Bruno Haible  <bruno@clisp.org>
46121
46122         * MODULES.html.sh (Internationalization functions): Remove linebreak.
46123         (Unicode string functions): Add unilbrk/*.
46124         Reported by Karl Berry.
46125
46126 2008-05-15  Eric Blake  <ebb9@byu.net>
46127
46128         Fix violation of <stdbool.h> replacement in regex.
46129         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
46130         * lib/regexec.c (re_search_internal): Likewise.
46131         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
46132
46133 2008-05-15  Jim Meyering  <meyering@redhat.com>
46134
46135         avoid distracting test output when git or cvs is not found
46136         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
46137         * tests/test-vc-list-files-git.sh: Likewise.
46138
46139 2008-05-15  Eric Blake  <ebb9@byu.net>
46140
46141         Glibc finally accepted the memmem speedup code, bugzilla #5514.
46142         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
46143         glibc version.
46144         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46145         * doc/posix-functions/strstr.texi (strstr): Likewise.
46146         * lib/str-two-way.h (MAX): Sychronize with glibc.
46147
46148 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
46149
46150         * lib/regcomp.c (optimize_utf8): Add a note on why we test
46151         opr.ctx_type.
46152         (calc_first): Initialize constraint field.
46153         (duplicate_node_closure): Use it instead of special casing ANCHORS.
46154         Fix grammar.
46155         (duplicate_node): Merge constraint field for all node types.
46156         (calc_eclosure_iter): Look at constraint field for all node types.
46157         * lib/regex_internal.c (create_cd_newstate): Don't look at
46158         opr.ctx_type.
46159
46160 2008-05-14  Bruno Haible  <bruno@clisp.org>
46161
46162         Help GCC to do better code generation.
46163         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
46164         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
46165         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
46166         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
46167         Declare with attribute 'malloc' if supported.
46168
46169 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
46170
46171         use "echo STR|wc -c" rather than unportable "expr length STR"
46172         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
46173         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
46174
46175 2008-05-14  Jim Meyering  <meyering@redhat.com>
46176
46177         use dd ibs=$n count=1 ... rather than less-portable head -c$n
46178         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
46179         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
46180         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
46181         via Collin Lasse.
46182
46183 2008-05-14  Eric Blake  <ebb9@byu.net>
46184
46185         Avoid quadratic growth in gl_LIBSOURCES.
46186         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
46187         Suggested by Bruno Haible.
46188
46189         Test xmemdup0.
46190         * modules/xmemdup0-tests: New file.
46191         * tests/test-xmemdup0.c: Likewise.
46192
46193 2008-05-13  Eric Blake  <ebb9@byu.net>
46194
46195         Split xmemdup0 into its own module.
46196         * modules/xmemdup0: New file.
46197         * lib/xmemdup0.h: Likewise.
46198         * lib/xmemdup0.c: Likewise.
46199         * MODULES.html.sh (Memory management functions): Add xmemdup0.
46200         * lib/xalloc.h (xmemdup0): Remove.
46201         * lib/xmalloc.c (xmemdup0): Likewise.
46202
46203 2008-05-13  Eric Blake  <ebb9@byu.net>
46204             Bruno Haible  <bruno@clisp.org>
46205
46206         Reduce number of forks required during autoconf.
46207         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
46208         and gl_LIBSOURCES_DIR.
46209         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
46210         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
46211         m4_syscmd per file.
46212         <m4_foreach_w>: Move...
46213         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
46214
46215 2008-05-13  Eric Blake  <ebb9@byu.net>
46216
46217         * gnulib-tool: Fix various comment typos.
46218
46219 2008-05-12  Bruno Haible  <bruno@clisp.org>
46220
46221         Tailor the linebreaking algorithm.
46222         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
46223
46224 2008-05-12  Bruno Haible  <bruno@clisp.org>
46225
46226         Update to Unicode 5.0.0.
46227         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46228         LBP_JV, LBP_JT. Redistribute values.
46229         (unilbrk_table): Change size.
46230         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
46231         Unicode TR#14 rev. 22.
46232         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46233         LBP_JV, LBP_JT. Redistribute values.
46234         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
46235         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
46236         Update.
46237         * lib/unilbrk/lbrkprop1.h: Regenerated.
46238         * lib/unilbrk/lbrkprop2.h: Regenerated.
46239         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
46240         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
46241         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
46242         Likewise.
46243         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
46244         Likewise.
46245         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
46246         result.
46247         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
46248         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
46249         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
46250         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
46251         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
46252         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
46253
46254 2008-05-11  Bruno Haible  <bruno@clisp.org>
46255
46256         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
46257
46258 2008-05-11  Bruno Haible  <bruno@clisp.org>
46259
46260         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
46261         * modules/unilbrk/gen-lbrk: New file.
46262
46263 2008-05-11  Bruno Haible  <bruno@clisp.org>
46264
46265         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
46266         * m4/sha512.m4 (gl_SHA512): Likewise.
46267
46268 2008-05-11  Jim Meyering  <meyering@redhat.com>
46269
46270         New modules: crypto/sha256, crypto/sha512 (from coreutils)
46271         * modules/crypto/sha256: New file.
46272         * modules/crypto/sha512: Likewise.
46273         * lib/sha256.c: Likewise.
46274         * lib/sha256.h: Likewise.
46275         * lib/sha512.c: Likewise.
46276         * lib/sha512.h: Likewise.
46277         * lib/u64.h: Likewise.
46278         * m4/sha256.m4: Likewise.
46279         * m4/sha512.m4: Likewise.
46280         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
46281
46282 2008-05-10  Bruno Haible  <bruno@clisp.org>
46283
46284         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
46285         (Input/Output <stdio.h>): Add xprintf.
46286         (Signal handling <signal.h>): Add strsignal.
46287         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
46288         (Core language properties): Add func.
46289         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
46290         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
46291         strings.
46292         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
46293         (Input/output): New section.
46294         (File system functions): Add openat-die, stat-macros.
46295         (Networking functions): Add sockets.
46296         (Unicode string functions): Add unictype/*.
46297         (Support for building libraries and executables): Add gperf.
46298         (Support for building documentation): Add agpl-3.0.
46299         (Misc): Add nocrash.
46300
46301 2008-05-10  Bruno Haible  <bruno@clisp.org>
46302
46303         * modules/unictype/gen-ctype: New file.
46304
46305 2008-05-10  Jim Meyering  <meyering@redhat.com>
46306
46307         Make chdir-safer.c more efficient on a system with no symlinks.
46308         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
46309         also if ELOOP is zero.  Suggested by Bruno Haible.
46310
46311         Make chdir-safer.c slightly safer.
46312         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
46313         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
46314
46315         Avoid compile failure on systems without ELOOP (like mingw).
46316         * lib/chdir-safer.c (ELOOP): Define if not already defined.
46317         Reported by Bruno Haible.
46318
46319 2008-05-10  Bruno Haible  <bruno@clisp.org>
46320
46321         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
46322         (is_utf8_encoding): Use a case-insensitive comparison.
46323         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
46324         streq.
46325
46326 2008-05-10  Bruno Haible  <bruno@clisp.org>
46327
46328         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
46329         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
46330         * lib/unilbrk/ulc-common.h (iconv_string_length,
46331         iconv_string_keeping_offsets): Remove declarations.
46332         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
46333         Don't include <iconv.h>, streq.h, xsize.h.
46334         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
46335         conversion.
46336         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
46337         <iconv.h>, streq.h, xsize.h.
46338         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
46339         conversion.
46340         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
46341         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
46342         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
46343         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
46344
46345 2008-05-10  Bruno Haible  <bruno@clisp.org>
46346
46347         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
46348         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
46349
46350         * modules/unilbrk/u32-width-linebreaks-tests: New file.
46351         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
46352
46353         * modules/unilbrk/u16-width-linebreaks-tests: New file.
46354         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
46355
46356         * modules/unilbrk/u8-width-linebreaks-tests: New file.
46357         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
46358
46359         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
46360         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
46361
46362         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
46363         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
46364
46365         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
46366         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
46367
46368         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
46369         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
46370
46371 2008-05-10  Bruno Haible  <bruno@clisp.org>
46372
46373         Split up 'linebreak' module.
46374         * lib/unilbrk.h: New file, based on lib/linebreak.h.
46375         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
46376         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
46377         modifications.
46378         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
46379         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
46380         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
46381         lib/linebreak.c.
46382         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
46383         lib/linebreak.c.
46384         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
46385         lib/linebreak.c.
46386         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
46387         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
46388         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
46389         lib/linebreak.c.
46390         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
46391         lib/linebreak.c.
46392         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
46393         lib/linebreak.c.
46394         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
46395         lib/linebreak.c.
46396         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
46397         lib/linebreak.c.
46398         * modules/unilbrk/base: New file.
46399         * modules/unilbrk/tables: New file.
46400         * modules/unilbrk/u8-possible-linebreaks: New file.
46401         * modules/unilbrk/u16-possible-linebreaks: New file.
46402         * modules/unilbrk/u32-possible-linebreaks: New file.
46403         * modules/unilbrk/ulc-common: New file.
46404         * modules/unilbrk/ulc-possible-linebreaks: New file.
46405         * modules/unilbrk/u8-width-linebreaks: New file.
46406         * modules/unilbrk/u16-width-linebreaks: New file.
46407         * modules/unilbrk/u32-width-linebreaks: New file.
46408         * modules/unilbrk/ulc-width-linebreaks: New file.
46409         * lib/linebreak.h: Remove file.
46410         * lib/linebreak.c: Remove file.
46411         * m4/linebreak.m4: Remove file.
46412         * modules/linebreak: Remove file.
46413         * NEWS: Mention the changes.
46414
46415 2008-05-09  Eric Blake  <ebb9@byu.net>
46416
46417         Add xmemdup0.
46418         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
46419         implementation.
46420         * lib/xmalloc.c (xmemdup0): New C implementation.
46421
46422 2008-05-08  Bruno Haible  <bruno@clisp.org>
46423
46424         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
46425
46426 2008-05-07  Eric Blake  <ebb9@byu.net>
46427
46428         Support cross-compilation of <wctype.h>.
46429         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
46430         AC_CACHE_CHECK.
46431
46432 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
46433
46434         * build-aux/vc-list-files: Add support for bzr.
46435
46436 2008-05-03  Jim Meyering  <meyering@redhat.com>
46437
46438         avoid failed assertion with tight malloc
46439         * tests/test-getndelim2.c: Correct an off-by-one assertion.
46440
46441 2008-05-03  Simon Josefsson  <simon@josefsson.org>
46442
46443         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
46444         are needed from arpa/inet.h.
46445         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
46446         Reported by Bruno Haible.
46447
46448 2008-05-02  Jim Meyering  <meyering@redhat.com>
46449
46450         avoid compilation error on FreeBSD 6
46451         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
46452
46453 2008-05-01  Jim Meyering  <meyering@redhat.com>
46454
46455         useless-if-before-free: correct --help's exit status description
46456         * build-aux/useless-if-before-free (usage): Like grep, exit 0
46457         for one or more matches, etc.  Reported by Bruno Haible.
46458
46459         vc-list-files: make the stand-alone gnulib test work
46460         * modules/vc-list-files-tests (configure.ac):
46461         Define and AC_SUBST abs_aux_dir.
46462         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
46463         $(abs_top_srcdir) to each script and having each of them
46464         duplicate the work of setting PATH, set PATH here, using
46465         the new variable, abs_aux_dir instead.
46466         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
46467         * tests/test-vc-list-files-git.sh: Likewise.
46468         Reported by Bruno Haible.
46469
46470 2008-05-01  Bruno Haible  <bruno@clisp.org>
46471
46472         * lib/getndelim2.c (getndelim2): Fix newsize computation during
46473         reallocation. Rename 'done' to 'found_delimiter'.
46474
46475 2008-05-01  Jim Meyering  <meyering@redhat.com>
46476
46477         vc-list-files: accommodate /bin/sh like the one from Solaris 10
46478         * build-aux/vc-list-files: Use `...`, not $(...).
46479
46480 2008-04-30  Jim Meyering  <meyering@redhat.com>
46481
46482         add tests for vc-list-files
46483         * modules/vc-list-files-tests: New module.
46484         * tests/test-vc-list-files-cvs.sh: New file.
46485         * tests/test-vc-list-files-git.sh: New file.
46486
46487         avoid a warning from gcc
46488         * lib/getndelim2.c (IF_LINT): Define.
46489         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
46490
46491         vc-list-files: work properly with build-aux/cvsu, too
46492         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
46493         to all cvs-based clauses.
46494
46495         vc-list-files: work properly in the CVS+awk case, too
46496         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
46497
46498         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
46499         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
46500         take more than one file argument, so .  Add quotes, just in case $dir
46501         ever contains a shell meta-character.  Prompted by Soren Hansen in
46502         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
46503
46504 2008-04-29  Eric Blake  <ebb9@byu.net>
46505
46506         Optimize getndelim2 to use block operations when possible.
46507         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
46508         freadseek, and memchr2.
46509         * lib/getndelim2.c (getndelim2): Use them for block reads.
46510
46511 2008-04-29  Bruno Haible  <bruno@clisp.org>
46512
46513         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
46514         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46515         * modules/inet_ntop (Depends-on): Add extensions.
46516         * modules/inet_pton (Depends-on): Likewise.
46517         Reported by Simon Josefsson.
46518
46519 2008-04-29  Jim Meyering  <meyering@redhat.com>
46520
46521         When the is more than one match in a block, match all of them.
46522         * build-aux/useless-if-before-free: Iterate through each block
46523         until there are no more matches.
46524
46525         Fix broken useless-if-before-free script.
46526         * build-aux/useless-if-before-free: Fix typo: missing "?" after
46527         the expression to match cast of argument to free-like function.
46528
46529 2008-04-29  Eric Blake  <ebb9@byu.net>
46530
46531         Use new header.
46532         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
46533
46534 2008-04-29  Jim Meyering  <meyering@redhat.com>
46535
46536         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
46537         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
46538         by gnulib to exist and to declare e.g., inet_ntop.
46539         Don't include "inet_ntop.h", now removed.
46540
46541         * m4/arpa_inet_h.m4: Remove trailing blanks.
46542
46543 2008-04-29  Eric Blake  <ebb9@byu.net>
46544
46545         Silence valgrind on safe reads beyond potential array bounds.
46546         * lib/rawmemchr.valgrind: New file.
46547         * lib/strchrnul.valgrind: Likewise.
46548         * modules/rawmemchr (Files): Distribute new file.
46549         * modules/strchrnul (Files): Likewise.
46550         Suggested by Bruno Haible.
46551
46552 2008-04-29  Bruno Haible  <bruno@clisp.org>
46553
46554         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
46555         (inet_ntop, inet_pton): Change portability warning's wording.
46556         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
46557         Invoke gl_CHECK_NEXT_HEADERS.
46558         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
46559         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
46560         set ARPA_INET_H.
46561         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46562         * modules/arpa_inet (Description): No longer only for systems that
46563         lack it.
46564         (Depends-on): Add include_next.
46565         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
46566         HAVE_ARPA_INET_H.
46567
46568 2008-04-29  Jim Meyering  <meyering@redhat.com>
46569
46570         * modules/mkdir (License): Re-license as LGPLv2+.
46571
46572 2008-04-29  Bruno Haible  <bruno@clisp.org>
46573
46574         * modules/rawmemchr (Maintainer): Set to Eric.
46575         * modules/strchrnul (Maintainer): Likewise.
46576
46577 2008-04-29  Simon Josefsson  <simon@josefsson.org>
46578
46579         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
46580         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
46581
46582         * modules/arpa_inet (arpa/inet.h): Use them.
46583
46584 2008-04-28  Eric Blake  <ebb9@byu.net>
46585
46586         Test getndelim2.
46587         * modules/getndelim2-tests: New file.
46588         * tests/test-getndelim2.c: Likewise.
46589         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
46590         stream.
46591         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
46592
46593         * MODULES.html.sh: Document new module.
46594
46595 2008-04-20  Bruno Haible  <bruno@clisp.org>
46596
46597         * lib/c-stack.c (die): Use raise.
46598         * modules/c-stack (Depends-on): Add raise.
46599
46600 2008-04-28  Bruno Haible  <bruno@clisp.org>
46601
46602         Expect rpmatch to be declared.
46603         * lib/yesno.c (rpmatch): Remove declaration.
46604
46605         Declare rpmatch.
46606         * lib/stdlib.in.h (rpmatch): New declaration.
46607         * lib/rpmatch.c: Include <stdlib.h> first.
46608         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
46609         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
46610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
46611         HAVE_RPMATCH.
46612         * modules/rpmatch (Depends-on): Add stdlib, extensions.
46613         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46614         (Include): Set to <stdlib.h>.
46615         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
46616         HAVE_RPMATCH.
46617         * NEWS: Document the change.
46618
46619 2008-04-28  Bruno Haible  <bruno@clisp.org>
46620
46621         Change rpmatch to use nl_langinfo when appropriate.
46622         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
46623         (N_): New macro.
46624         (localized_pattern): New function/macro.
46625         (try): Remove match, nomatch arguments. Copy the pattern into safe
46626         memory before caching it.
46627         (rpmatch): Use localized_pattern. Add translator comments.
46628         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
46629         Suggested by Eric Blake.
46630         * modules/rpmatch (Depends-on): Add stdbool.
46631
46632 2008-04-28  Eric Blake  <ebb9@byu.net>
46633
46634         Add rawmemchr module, matching glibc.
46635         * modules/string (Makefile.am): New indicator.
46636         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
46637         * lib/string.in.h (rawmemchr): Declare when appropriate.
46638         * modules/rawmemchr: New file.
46639         * m4/rawmemchr.m4: Likewise.
46640         * lib/rawmemchr.c: Likewise.
46641         * modules/rawmemchr-tests: Likewise.
46642         * tests/test-rawmemchr.c: Likewise.
46643         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
46644         module.
46645         * modules/strchrnul (Depends-on): Add rawmemchr.
46646         * lib/strchrnul.c (strchrnul): Optimize a corner case.
46647
46648         Whitespace cleanup.
46649         * tests/test-strchrnul.c: Reindent.
46650         * lib/strchrnul.c: Likewise.
46651
46652         Optimize and test strchrnul.
46653         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
46654         * modules/strchrnul-tests: New file.
46655         * tests/test-strchrnul.c: Likewise.
46656
46657         Remove intprops dependency.
46658         * modules/memchr (Depends-on): Remove intprops.
46659         * modules/memrchr (Depends-on): Likewise.
46660         * modules/memchr2 (Depends-on): Likewise.
46661         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
46662         * lib/memrchr.c (__memrchr): Likewise.
46663         * lib/memrchr2.c (memchr2): Likewise.
46664         Reported by Simon Josefsson.
46665
46666 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46667
46668         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
46669         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46670
46671 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46672
46673         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
46674
46675         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
46676
46677         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
46678
46679         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
46680         declarations.
46681         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
46682
46683         * m4/inet_pton.m4: Don't check for header files.
46684
46685         * m4/inet_ntop.m4: Don't check for header files.
46686
46687 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46688
46689         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
46690         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
46691         trigger for cygwin).
46692         Reported by Bruno Haible  <bruno@clisp.org>.
46693
46694 2008-04-28  Bruno Haible  <bruno@clisp.org>
46695
46696         * doc/posix-functions/strdup.texi: Mention mingw problem.
46697
46698 2008-04-27  Bruno Haible  <bruno@clisp.org>
46699
46700         * modules/stat-time-tests (Depends-on): Add sleep.
46701         * tests/test-stat-time.c (force_unlink): New function.
46702         (cleanup): Use it.
46703         (test_mtime): Remove the ctime related tests.
46704         (test_ctime): New function, containing the ctime related tests.
46705         (main): Call test_ctime, except on native Windows platforms.
46706
46707 2008-04-27  Bruno Haible  <bruno@clisp.org>
46708
46709         * lib/rpmatch.c (rpmatch): Add some comments.
46710         Reported by James Youngman <jay@gnu.org>.
46711
46712 2008-04-27  Bruno Haible  <bruno@clisp.org>
46713
46714         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
46715         quiet NaNs.
46716
46717 2008-04-27  Bruno Haible  <bruno@clisp.org>
46718
46719         Make test-yesno.sh work on mingw.
46720         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
46721         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
46722         (main): Set stdin to binary mode.
46723         * modules/yesno-tests (Depends-on): Add binary-io.
46724
46725 2008-04-27  Bruno Haible  <bruno@clisp.org>
46726
46727         Fix 'isfinite' on x86, x86_64, ia64 platforms.
46728         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
46729         argument that lie outside the IEEE 854 domain.
46730         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
46731         (gl_ISFINITE): Use it.
46732         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
46733
46734 2008-04-27  Bruno Haible  <bruno@clisp.org>
46735
46736         Allow local renaming in config.h.
46737         * lib/memrchr.c (memrchr): Don't undefine outside libc.
46738
46739 2008-04-27  Bruno Haible  <bruno@clisp.org>
46740
46741         * lib/memchr.c (__memchr): Change type of 'i'.
46742         * lib/memchr2.c (memchr2): Likewise.
46743
46744 2008-04-26  Eric Blake  <ebb9@byu.net>
46745         and Bruno Haible  <bruno@clisp.org>
46746
46747         Optimize and test memrchr.
46748         * modules/memrchr (Depends-on): Add intprops.
46749         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
46750         * modules/memrchr-tests: New file.
46751         * tests/test-memrchr.c: New file.
46752
46753 2008-04-26  Bruno Haible  <bruno@clisp.org>
46754
46755         Add tentative support for DragonFly BSD.
46756         * lib/stdio-impl.h: Add macros for DragonFly BSD.
46757         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
46758         fp.
46759         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46760         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
46761         * lib/fpurge.c (fpurge): Likewise.
46762         * lib/freadable.c (freaadable): Likewise.
46763         * lib/freadahead.c (freadahead): Likewise.
46764         * lib/freading.c (freading): Likewise.
46765         * lib/freadptr.c (freadptr): Likewise.
46766         * lib/freadseek.c (freadptrinc): Likewise.
46767         * lib/fseeko.c (fseeko): Likewise.
46768         * lib/fseterr.c (fseterr): Likewise.
46769         * lib/fwritable.c (fwritable): Likewise.
46770         * lib/fwriting.c (fwriting): Likewise.
46771
46772 2008-04-26  Bruno Haible  <bruno@clisp.org>
46773
46774         * lib/stdio-impl.h: New file.
46775         * lib/fbufmode.c: Include stdio-impl.h.
46776         (fbufmode): Use fp_, remove redundant #defines.
46777         * lib/fflush.c: Include stdio-impl.h.
46778         (clear_ungetc_buffer): Remove redundant #defines.
46779         * lib/fpurge.c: Include stdio-impl.h.
46780         (fpurge): Remove redundant #defines.
46781         * lib/freadable.c: Include stdio-impl.h.
46782         (freadable): Remove redundant #defines.
46783         * lib/freadahead.c: Include stdio-impl.h.
46784         (freadahead): Remove redundant #defines.
46785         * lib/freading.c: Include stdio-impl.h.
46786         (freading): Remove redundant #defines.
46787         * lib/freadptr.c: Include stdio-impl.h.
46788         (freadptr): Remove redundant #defines.
46789         * lib/freadseek.c: Include stdio-impl.h.
46790         (freadptrinc): Remove redundant #defines.
46791         * lib/fseeko.c: Include stdio-impl.h.
46792         (rpl_fseeko): Remove redundant #defines.
46793         * lib/fseterr.c: Include stdio-impl.h.
46794         (fseterr): Remove redundant #defines.
46795         * lib/fwritable.c: Include stdio-impl.h.
46796         (fwritable: Remove redundant #defines.
46797         * lib/fwriting.c: Include stdio-impl.h.
46798         (fwriting): Remove redundant #defines.
46799         * modules/fbufmode (Files): Add lib/stdio-impl.h.
46800         * modules/fflush (Files): Likewise.
46801         * modules/fpurge (Files): Likewise.
46802         * modules/freadable (Files): Likewise.
46803         * modules/freadahead (Files): Likewise.
46804         * modules/freading (Files): Likewise.
46805         * modules/freadptr (Files): Likewise.
46806         * modules/freadseek (Files): Likewise.
46807         * modules/fseeko (Files): Likewise.
46808         * modules/fseterr (Files): Likewise.
46809         * modules/fwritable (Files): Likewise.
46810         * modules/fwriting (Files): Likewise.
46811
46812 2008-04-26  Bruno Haible  <bruno@clisp.org>
46813
46814         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46815         restore_seek_optimization, update_fpos_cache): New functions, extracted
46816         from rpl_fflush.
46817         (rpl_fflush): Use them.
46818         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
46819         (gl_REPLACE_FFLUSH): Use it.
46820
46821 2008-04-26  Bruno Haible  <bruno@clisp.org>
46822
46823         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
46824         on Solaris.
46825         * tests/test-xstrtoimax.sh: Likewise.
46826         * tests/test-xstrtoumax.sh: Likewise.
46827         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46828
46829 2008-04-26  Bruno Haible  <bruno@clisp.org>
46830
46831         * modules/memchr-tests: New file.
46832         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
46833
46834 2008-04-26  Eric Blake  <ebb9@byu.net>
46835             Bruno Haible  <bruno@clisp.org>
46836
46837         * lib/memchr.c: Include intprops.h.
46838         (__memchr): Optimize parallel detection of matching bytes. Rename local
46839         variables. Add explanatory comments.
46840
46841 2008-04-26  Bruno Haible  <bruno@clisp.org>
46842
46843         Fix module 'memchr', broken since 2000-10-28.
46844         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
46845
46846 2008-04-26  Bruno Haible  <bruno@clisp.org>
46847
46848         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
46849         comments.
46850
46851 2008-04-25  Eric Blake  <ebb9@byu.net>
46852
46853         Use native fstatat on cygwin 1.7.0.
46854         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
46855         first.
46856
46857 2008-04-23  Eric Blake  <ebb9@byu.net>
46858
46859         Improve memchr2 performance.
46860         * lib/memchr2.c (memchr2): Further optimize parallel detection of
46861         NUL bytes.
46862         * modules/memchr2 (Depends-on): Use intprops.h.
46863
46864 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46865
46866         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
46867         an inline function instead of a CPP macro.  Patch by Ben Pfaff
46868         <blp@cs.stanford.edu>.
46869
46870 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46871
46872         * lib/arpa_inet.in.h: New file.
46873
46874         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
46875         (Makefile.am): Sed in substitute header file.
46876
46877         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
46878         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
46879
46880         * modules/inet_ntop (configure.ac): Use
46881         gl_ARPA_INET_MODULE_INDICATOR.
46882
46883         * modules/inet_pton (configure.ac): Use
46884         gl_ARPA_INET_MODULE_INDICATOR.
46885
46886 2008-04-22  Jim Meyering  <meyering@redhat.com>
46887
46888         * modules/verify (License): Re-license as LGPLv2+.
46889
46890 2008-04-22  Simon Josefsson  <simon@josefsson.org>
46891
46892         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
46893         parameter to void* as per POSIX standard (MinGW uses char*).
46894
46895 2008-04-21  Bruno Haible  <bruno@clisp.org>
46896
46897         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46898         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46899         Define to replacements if REPLACE_ISWCNTRL is 1.
46900         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46901         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46902         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46903         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46904         what it fixes.
46905         * doc/posix-functions/iswalpha.texi: Likewise.
46906         * doc/posix-functions/iswblank.texi: Likewise.
46907         * doc/posix-functions/iswcntrl.texi: Likewise.
46908         * doc/posix-functions/iswdigit.texi: Likewise.
46909         * doc/posix-functions/iswgraph.texi: Likewise.
46910         * doc/posix-functions/iswlower.texi: Likewise.
46911         * doc/posix-functions/iswprint.texi: Likewise.
46912         * doc/posix-functions/iswpunct.texi: Likewise.
46913         * doc/posix-functions/iswspace.texi: Likewise.
46914         * doc/posix-functions/iswupper.texi: Likewise.
46915         * doc/posix-functions/iswxdigit.texi: Likewise.
46916         Reported by Alain Guibert.
46917
46918 2008-04-21  Bruno Haible  <bruno@clisp.org>
46919
46920         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46921         Patch by Alain Guibert.
46922
46923 2008-04-21  Bruno Haible  <bruno@clisp.org>
46924
46925         Fix test failures on mingw.
46926         * tests/test-xstrtol.c (print_no_progname): New function.
46927         (main): Install it in error_print_progname hook.
46928         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46929         * tests/test-xstrtoimax.sh: Likewise.
46930         * tests/test-xstrtoumax.sh: Likewise.
46931
46932 2008-04-21  Bruno Haible  <bruno@clisp.org>
46933
46934         Fix test failure on mingw.
46935         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46936
46937 2008-04-21  Bruno Haible  <bruno@clisp.org>
46938
46939         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46940         Actually assign a value.
46941
46942 2008-04-20  Bruno Haible  <bruno@clisp.org>
46943
46944         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46945         take 2.
46946         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46947         'canonicalize-lgpl' module is also used.
46948         * lib/canonicalize-lgpl.c: Undo last change.
46949         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46950
46951 2008-04-20  Bruno Haible  <bruno@clisp.org>
46952
46953         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46954         config.h. Provide _mkdir based fallback for mingw.
46955         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46956         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46957         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46958         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46959         rather than defining mkdir in config.h.
46960         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46961         (gl_SYS_STAT_H_DEFAULTS): New macro.
46962         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46963         HAVE_IO_H any more.
46964         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46965         HAVE_DECL_MKDIR and HAVE_IO_H.
46966
46967 2008-04-20  Bruno Haible  <bruno@clisp.org>
46968
46969         * lib/isapipe.c: Port to native Windows platforms.
46970
46971 2008-04-20  Bruno Haible  <bruno@clisp.org>
46972
46973         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46974
46975 2008-04-21  Eric Blake  <ebb9@byu.net>
46976
46977         Work around preprocessors that don't handle UINTMAX_MAX.
46978         * lib/memchr2.c (memchr2): Avoid embedded #if.
46979         Reported by Alain Guibert, fix suggested by Bruno Haible.
46980
46981 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46982
46983         * doc/posix-functions/strftime.texi (strftime): Explain better
46984         Windows incompatibility.  Suggested by Micah Cowan
46985         <micah@cowan.name>.
46986
46987 2008-04-20  Bruno Haible  <bruno@clisp.org>
46988
46989         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46990         unistr/u8-mblen.
46991
46992 2008-04-20  Bruno Haible  <bruno@clisp.org>
46993
46994         Fix test failure on platforms with non-GNU iconv.
46995         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46996         (U_TO_U8): Use it, rather than u16_to_u8.
46997         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46998         units at the end of the input string.
46999         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
47000
47001 2008-04-20  Bruno Haible  <bruno@clisp.org>
47002
47003         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
47004         when the resulting length is 0.
47005         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
47006
47007 2008-04-20  Bruno Haible  <bruno@clisp.org>
47008
47009         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
47010         works.
47011         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
47012
47013 2008-04-20  Bruno Haible  <bruno@clisp.org>
47014
47015         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
47016         * modules/tsearch-tests (configure.ac): Test for initstate function.
47017
47018 2008-04-20  Bruno Haible  <bruno@clisp.org>
47019
47020         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
47021         for nlink_t if missing.
47022         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
47023
47024 2008-04-19  Bruno Haible  <bruno@clisp.org>
47025
47026         Work around snprintf bug on Linux libc5.
47027         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
47028         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47029         gl_SNPRINTF_SIZE1.
47030         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47031         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
47032         that test failed.
47033         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
47034         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
47035         * modules/snprintf (Files): Add m4/printf.m4.
47036         * modules/vsnprintf (Files): Likewise.
47037         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
47038         * doc/posix-functions/vsnprintf.texi: Likewise.
47039
47040 2008-04-19  Bruno Haible  <bruno@clisp.org>
47041
47042         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
47043         from 0.0058 to less than 10^-7.
47044
47045 2008-04-19  Bruno Haible  <bruno@clisp.org>
47046
47047         Fix rounding when a precision is given.
47048         * lib/vasnprintf.c (is_borderline): New function.
47049         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
47050         9...9x.
47051         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
47052         %e, %g.
47053         * tests/test-vasprintf-posix.c (test_function): Likewise.
47054         * tests/test-snprintf-posix.h (test_function): Likewise.
47055         * tests/test-sprintf-posix.h (test_function): Likewise.
47056         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
47057         * tests/test-printf-posix.h (test_function): Likewise.
47058         * tests/test-printf-posix.output: Update.
47059         Reported by John Darrington <john@darrington.wattle.id.au> via
47060         Ben Pfaff <blp@cs.stanford.edu>.
47061
47062 2008-04-18  Simon Josefsson  <simon@josefsson.org>
47063
47064         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
47065         Suggested by Bruno Haible <bruno@clisp.org>.
47066
47067 2008-04-17  Bruno Haible  <bruno@clisp.org>
47068
47069         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
47070         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
47071         implementation.
47072         Patch by Bruce Merry <bmerry@gmail.com>.
47073
47074 2008-04-17  Simon Josefsson  <simon@josefsson.org>
47075
47076         * doc/posix-functions/strftime.texi (strftime): Mention that %e
47077         doesn't work under Windows.
47078
47079 2008-04-16  Bruno Haible  <bruno@clisp.org>
47080
47081         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
47082         New macros.
47083         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
47084         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
47085         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
47086         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
47087         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
47088         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
47089         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
47090         macros.
47091         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
47092         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
47093         Northern Sotho, Uighur.
47094
47095 2008-04-16  Bruno Haible  <bruno@clisp.org>
47096
47097         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
47098         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
47099         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
47100         Reported by Daniel Bergström <daniel@octocode.com>.
47101
47102 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
47103             Bruno Haible  <bruno@clisp.org>
47104
47105         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
47106         function.
47107         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
47108         New functions, mostly extracted from gl_locale_name_default.
47109         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
47110
47111 2008-04-16  Eric Blake  <ebb9@byu.net>
47112
47113         Adjust strtod detection to catch glibc 2.7 bug.
47114         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
47115         Reported by John Gatewood Ham.
47116
47117 2008-04-16  Bruno Haible  <bruno@clisp.org>
47118
47119         Add tentative support for Linux libc5.
47120         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
47121         * lib/fpurge.c (fpurge): Likewise.
47122         * lib/freadable.c (freadable): Likewise.
47123         * lib/freadahead.c (freadahead): Likewise.
47124         * lib/freading.c (freading): Likewise.
47125         * lib/freadptr.c (freadptr): Likewise.
47126         * lib/freadseek.c (freadptrinc): Likewise.
47127         * lib/fseeko.c (rpl_fseeko): Likewise.
47128         * lib/fseterr.c (fseterr): Likewise.
47129         * lib/fwritable.c (fwritable): Likewise.
47130         * lib/fwriting.c (fwriting): Likewise.
47131         Reported by Alain Guibert <alguibert+bts@free.fr>.
47132
47133 2008-04-15  Bruno Haible  <bruno@clisp.org>
47134
47135         * modules/mathl (configure.ac): Define module indicator.
47136
47137 2008-04-15  Bruno Haible  <bruno@clisp.org>
47138
47139         * lib/logl.c (logl): Remove unused variables.
47140
47141 2008-04-15  Bruno Haible  <bruno@clisp.org>
47142
47143         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
47144         fails.
47145
47146 2008-04-15  Bruno Haible  <bruno@clisp.org>
47147
47148         * lib/trim.c (trim2): Fix argument of isspace() macro.
47149
47150 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
47151
47152         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
47153         to 0.
47154         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
47155
47156 2008-04-14  Bruno Haible  <bruno@clisp.org>
47157
47158         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
47159         AC_LANG_PROGRAM argument.
47160         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
47161         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
47162         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
47163         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47164         * m4/math_h.m4 (gl_MATH_H): Likewise.
47165         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
47166         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47167         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47168         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
47169         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47170         * m4/regex.m4 (gl_REGEX): Likewise.
47171         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
47172         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
47173         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47174         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
47175         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47176         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47177         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47178         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47179
47180 2008-04-14  Jim Meyering  <meyering@redhat.com>
47181
47182         test-strtod: fix typos: s/abs/fabs/
47183         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
47184
47185 2008-04-13  Bruno Haible  <bruno@clisp.org>
47186
47187         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
47188         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
47189         module is also used and while not building the reloc-wrapper.
47190
47191 2008-04-13  Bruno Haible  <bruno@clisp.org>
47192
47193         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
47194
47195 2008-04-13  Bruno Haible  <bruno@clisp.org>
47196
47197         Fix AIX compilation failure introduced on 2008-04-02.
47198         * tests/test-frexp.c (exp): Undefine before redefining.
47199         * tests/test-frexpl.c (exp): Likewise.
47200
47201 2008-04-13  Bruno Haible  <bruno@clisp.org>
47202
47203         Work around a HP-UX stdio bug.
47204         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
47205         * tests/test-ftello.c (main): Likewise.
47206         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
47207         * doc/posix-functions/ftello.texi: Likewise.
47208
47209 2008-04-13  Bruno Haible  <bruno@clisp.org>
47210
47211         Make test-signbit pass on HP-UX/hppa.
47212         * tests/test-signbit.c (minus_zerol): New variable.
47213         (test_signbitl): Use it.
47214
47215 2008-04-13  Bruno Haible  <bruno@clisp.org>
47216
47217         Make truncl work on OSF/1 4.0.
47218         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
47219         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47220         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
47222         HAVE_DECL_TRUNCL.
47223         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
47224         HAVE_DECL_TRUNCL.
47225         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
47226
47227 2008-04-13  Bruno Haible  <bruno@clisp.org>
47228
47229         * lib/unictype.h: Remove trailing comma from enumeration definitions.
47230
47231 2008-04-13  Bruno Haible  <bruno@clisp.org>
47232
47233         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
47234         expression, so as to avoid HP-UX 11 cc compiler bug.
47235
47236 2008-04-13  Bruno Haible  <bruno@clisp.org>
47237
47238         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
47239
47240 2008-04-13  Bruno Haible  <bruno@clisp.org>
47241
47242         * lib/git-merge-changelog.c: Remove empty declaration outside of
47243         functions.
47244
47245 2008-04-13  Bruno Haible  <bruno@clisp.org>
47246
47247         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
47248
47249 2008-04-13  Bruno Haible  <bruno@clisp.org>
47250
47251         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
47252         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
47253         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
47254         also if it exists but lacks definitions of the SHUT_* macros.
47255         * modules/sys_socket (Description): Update.
47256         Reported by Elbert Pol <e.pol@chello.nl>.
47257
47258 2008-04-13  Bruno Haible  <bruno@clisp.org>
47259
47260         * lib/localcharset.c (OS2): Don't redefine if already defined.
47261         Reported by Elbert Pol <e.pol@chello.nl>.
47262
47263 2008-04-13  Bruno Haible  <bruno@clisp.org>
47264
47265         * lib/binary-io.h [__EMX__]: Include <io.h>.
47266         Reported by Elbert Pol <e.pol@chello.nl>.
47267
47268 2008-04-12  Bruno Haible  <bruno@clisp.org>
47269
47270         * lib/fpucw.h: Enable the definitions also for x86_64.
47271         Needed for NetBSD/x86_64.
47272         Reported by Thomas Klausner <tk@giga.or.at>.
47273
47274 2008-04-12  Bruno Haible  <bruno@clisp.org>
47275
47276         * tests/test-strtod.c: Include isnand.h.
47277         (main): Use isnand instead of isnan.
47278         Reported by Jim Meyering.
47279
47280 2008-04-12  Bruno Haible  <bruno@clisp.org>
47281
47282         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
47283         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
47284
47285 2008-04-12  Jim Meyering  <meyering@redhat.com>
47286
47287         * m4/math_h.m4 (gl_MATH_H): Fix typos.
47288
47289 2008-04-12  Bruno Haible  <bruno@clisp.org>
47290
47291         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
47292         Reported by Elbert Pol <e.pol@chello.nl>.
47293
47294 2008-04-12  Eric Blake  <ebb9@byu.net>
47295
47296         Work around Solaris 10 math.h bug.
47297         * m4/math_h.m4 (gl_MATH_H): Check for bug.
47298         (gl_MATH_H_DEFAULTS): Set up default.
47299         * modules/math (Makefile.am): Replace new indicators.
47300         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
47301         * tests/test-math.c (main): Test this.
47302         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
47303         * doc/posix-headers/math.texi (math.h): Mention bug.
47304         Reported by Nelson H. F. Beebe and Jim Meyering.
47305
47306 2008-04-11  Bruno Haible  <bruno@clisp.org>
47307
47308         Adapt to future versions of Apple GCC.
47309         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
47310         Reported by Peter O'Gorman <peter@pogma.com>.
47311
47312 2008-04-11  Bruno Haible  <bruno@clisp.org>
47313
47314         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
47315
47316 2008-04-11  Bruno Haible  <bruno@clisp.org>
47317
47318         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
47319
47320         * modules/getaddrinfo-tests (Makefile.am): Define
47321         test_getaddrinfo_LDADD.
47322
47323 2008-04-11  Bruno Haible  <bruno@clisp.org>
47324
47325         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
47326         (init): Fix syntax error.
47327         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
47328         is declared.
47329
47330 2008-04-11  Bruno Haible  <bruno@clisp.org>
47331
47332         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
47333         * modules/glob (Depends-on): Add stdbool.
47334
47335 2008-04-11  Bruno Haible  <bruno@clisp.org>
47336
47337         * lib/trim.c: Include <string.h>.
47338
47339 2008-04-11  Eric Blake  <ebb9@byu.net>
47340
47341         Avoid compile failure on OS/2.
47342         * lib/regex_internal.h (internal_function): Disable optimization
47343         on OS/2 (__EMX__), where it caused compiler error.
47344         Reported by Elbert Pol.
47345
47346 2008-04-11  Bruno Haible  <bruno@clisp.org>
47347
47348         Flush the standard error stream before aborting. Needed on mingw.
47349         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
47350         * tests/test-array_list.c (ASSERT): Likewise.
47351         * tests/test-array_oset.c (ASSERT): Likewise.
47352         * tests/test-avltree_list.c (ASSERT): Likewise.
47353         * tests/test-avltree_oset.c (ASSERT): Likewise.
47354         * tests/test-avltreehash_list.c (ASSERT): Likewise.
47355         * tests/test-binary-io.c (ASSERT): Likewise.
47356         * tests/test-byteswap.c (ASSERT): Likewise.
47357         * tests/test-c-ctype.c (ASSERT): Likewise.
47358         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
47359         * tests/test-c-strcasestr.c (ASSERT): Likewise.
47360         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
47361         * tests/test-c-strstr.c (ASSERT): Likewise.
47362         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
47363         * tests/test-canonicalize.c (ASSERT): Likewise.
47364         * tests/test-carray_list.c (ASSERT): Likewise.
47365         * tests/test-ceilf1.c (ASSERT): Likewise.
47366         * tests/test-ceilf2.c (ASSERT): Likewise.
47367         * tests/test-ceill.c (ASSERT): Likewise.
47368         * tests/test-count-one-bits.c (ASSERT): Likewise.
47369         * tests/test-fbufmode.c (ASSERT): Likewise.
47370         * tests/test-fflush2.c (ASSERT): Likewise.
47371         * tests/test-floorf1.c (ASSERT): Likewise.
47372         * tests/test-floorf2.c (ASSERT): Likewise.
47373         * tests/test-floorl.c (ASSERT): Likewise.
47374         * tests/test-fopen.c (ASSERT): Likewise.
47375         * tests/test-fpending.c (ASSERT): Likewise.
47376         * tests/test-fprintf-posix.c (ASSERT): Likewise.
47377         * tests/test-fpurge.c (ASSERT): Likewise.
47378         * tests/test-freadable.c (ASSERT): Likewise.
47379         * tests/test-freadahead.c (ASSERT): Likewise.
47380         * tests/test-freading.c (ASSERT): Likewise.
47381         * tests/test-freadptr.c (ASSERT): Likewise.
47382         * tests/test-freadptr2.c (ASSERT): Likewise.
47383         * tests/test-freadseek.c (ASSERT): Likewise.
47384         * tests/test-freopen.c (ASSERT): Likewise.
47385         * tests/test-frexp.c (ASSERT): Likewise.
47386         * tests/test-frexpl.c (ASSERT): Likewise.
47387         * tests/test-fseek.c (ASSERT): Likewise.
47388         * tests/test-fseeko.c (ASSERT): Likewise.
47389         * tests/test-fstrcmp.c (ASSERT): Likewise.
47390         * tests/test-ftell.c (ASSERT): Likewise.
47391         * tests/test-ftello.c (ASSERT): Likewise.
47392         * tests/test-func.c (ASSERT): Likewise.
47393         * tests/test-fwritable.c (ASSERT): Likewise.
47394         * tests/test-fwriting.c (ASSERT): Likewise.
47395         * tests/test-getdelim.c (ASSERT): Likewise.
47396         * tests/test-getline.c (ASSERT): Likewise.
47397         * tests/test-i-ring.c (ASSERT): Likewise.
47398         * tests/test-iconv-utf.c (ASSERT): Likewise.
47399         * tests/test-iconv.c (ASSERT): Likewise.
47400         * tests/test-isfinite.c (ASSERT): Likewise.
47401         * tests/test-isnand.c (ASSERT): Likewise.
47402         * tests/test-isnanf.c (ASSERT): Likewise.
47403         * tests/test-isnanl.h (ASSERT): Likewise.
47404         * tests/test-ldexpl.c (ASSERT): Likewise.
47405         * tests/test-linked_list.c (ASSERT): Likewise.
47406         * tests/test-linkedhash_list.c (ASSERT): Likewise.
47407         * tests/test-localename.c (ASSERT): Likewise.
47408         * tests/test-lseek.c (ASSERT): Likewise.
47409         * tests/test-mbscasecmp.c (ASSERT): Likewise.
47410         * tests/test-mbscasestr1.c (ASSERT): Likewise.
47411         * tests/test-mbscasestr2.c (ASSERT): Likewise.
47412         * tests/test-mbscasestr3.c (ASSERT): Likewise.
47413         * tests/test-mbscasestr4.c (ASSERT): Likewise.
47414         * tests/test-mbschr.c (ASSERT): Likewise.
47415         * tests/test-mbscspn.c (ASSERT): Likewise.
47416         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
47417         * tests/test-mbspbrk.c (ASSERT): Likewise.
47418         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
47419         * tests/test-mbsrchr.c (ASSERT): Likewise.
47420         * tests/test-mbsspn.c (ASSERT): Likewise.
47421         * tests/test-mbsstr1.c (ASSERT): Likewise.
47422         * tests/test-mbsstr2.c (ASSERT): Likewise.
47423         * tests/test-mbsstr3.c (ASSERT): Likewise.
47424         * tests/test-memchr2.c (ASSERT): Likewise.
47425         * tests/test-memmem.c (ASSERT): Likewise.
47426         * tests/test-open.c (ASSERT): Likewise.
47427         * tests/test-printf-frexp.c (ASSERT): Likewise.
47428         * tests/test-printf-frexpl.c (ASSERT): Likewise.
47429         * tests/test-printf-posix.c (ASSERT): Likewise.
47430         * tests/test-quotearg.c (ASSERT): Likewise.
47431         * tests/test-rbtree_list.c (ASSERT): Likewise.
47432         * tests/test-rbtree_oset.c (ASSERT): Likewise.
47433         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
47434         * tests/test-round1.c (ASSERT): Likewise.
47435         * tests/test-roundf1.c (ASSERT): Likewise.
47436         * tests/test-roundl.c (ASSERT): Likewise.
47437         * tests/test-signbit.c (ASSERT): Likewise.
47438         * tests/test-sleep.c (ASSERT): Likewise.
47439         * tests/test-snprintf-posix.c (ASSERT): Likewise.
47440         * tests/test-snprintf.c (ASSERT): Likewise.
47441         * tests/test-sprintf-posix.c (ASSERT): Likewise.
47442         * tests/test-stat-time.c (ASSERT): Likewise.
47443         * tests/test-strcasestr.c (ASSERT): Likewise.
47444         * tests/test-strerror.c (ASSERT): Likewise.
47445         * tests/test-striconv.c (ASSERT): Likewise.
47446         * tests/test-striconveh.c (ASSERT): Likewise.
47447         * tests/test-striconveha.c (ASSERT): Likewise.
47448         * tests/test-strsignal.c (ASSERT): Likewise.
47449         * tests/test-strstr.c (ASSERT): Likewise.
47450         * tests/test-strtod.c (ASSERT): Likewise.
47451         * tests/test-trunc1.c (ASSERT): Likewise.
47452         * tests/test-trunc2.c (ASSERT): Likewise.
47453         * tests/test-truncf1.c (ASSERT): Likewise.
47454         * tests/test-truncf2.c (ASSERT): Likewise.
47455         * tests/test-truncl.c (ASSERT): Likewise.
47456         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
47457         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
47458         * tests/test-vasnprintf.c (ASSERT): Likewise.
47459         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
47460         * tests/test-vasprintf.c (ASSERT): Likewise.
47461         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
47462         * tests/test-vprintf-posix.c (ASSERT): Likewise.
47463         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
47464         * tests/test-vsnprintf.c (ASSERT): Likewise.
47465         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
47466         * tests/test-wcwidth.c (ASSERT): Likewise.
47467         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
47468         * tests/test-xprintf-posix.c (ASSERT): Likewise.
47469         * tests/test-xvasprintf.c (ASSERT): Likewise.
47470         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
47471         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
47472         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
47473         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
47474         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
47475         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
47476         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
47477         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
47478         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
47479         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
47480         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
47481         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
47482         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
47483         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
47484         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
47485         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
47486         * tests/unictype/test-block_list.c (ASSERT): Likewise.
47487         * tests/unictype/test-block_of.c (ASSERT): Likewise.
47488         * tests/unictype/test-block_test.c (ASSERT): Likewise.
47489         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
47490         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
47491         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
47492         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
47493         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
47494         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
47495         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
47496         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
47497         * tests/unictype/test-combining.c (ASSERT): Likewise.
47498         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
47499         * tests/unictype/test-digit.c (ASSERT): Likewise.
47500         * tests/unictype/test-mirror.c (ASSERT): Likewise.
47501         * tests/unictype/test-numeric.c (ASSERT): Likewise.
47502         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
47503         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
47504         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
47505         * tests/unictype/test-scripts.c (ASSERT): Likewise.
47506         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
47507         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
47508         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
47509         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
47510         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
47511         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
47512         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
47513         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
47514         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
47515         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
47516         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
47517         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
47518         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
47519         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
47520         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
47521         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
47522         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
47523         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
47524         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
47525         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
47526         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
47527         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
47528         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
47529         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
47530         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
47531         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
47532         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
47533         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
47534         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
47535         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
47536         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
47537         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
47538         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
47539         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
47540         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
47541         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
47542         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
47543         Reported by Eric Blake.
47544
47545 2008-04-11  Bruno Haible  <bruno@clisp.org>
47546
47547         * lib/wchar.in.h: Tweak comment.
47548
47549 2008-04-11  Bruno Haible  <bruno@clisp.org>
47550
47551         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
47552         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
47553         gl_COMMON.
47554         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
47555
47556 2008-04-11  Bruno Haible  <bruno@clisp.org>
47557
47558         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
47559
47560 2008-04-11  Simon Josefsson  <simon@josefsson.org>
47561
47562         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
47563         of attempting to use non-existing /dev/*random.  Based on patch
47564         from Adam Strzelecki <ono@java.pl> in
47565         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
47566
47567 2008-04-08  Bruno Haible  <bruno@clisp.org>
47568
47569         Add tentative support for emx+gcc.
47570         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
47571         * lib/fpurge.c (fpurge): Likewise.
47572         * lib/freadable.c (freadable): Likewise.
47573         * lib/freadahead.c (freadahead): Likewise.
47574         * lib/freading.c (freading): Likewise.
47575         * lib/freadptr.c (freadptr): Likewise.
47576         * lib/freadseek.c (freadptrinc): Likewise.
47577         * lib/fseeko.c (rpl_fseeko): Likewise.
47578         * lib/fseterr.c (fseterr): Likewise.
47579         * lib/fwritable.c (fwritable): Likewise.
47580         * lib/fwriting.c (fwriting): Likewise.
47581         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
47582
47583 2008-04-09  Eric Blake  <ebb9@byu.net>
47584
47585         Avoid some autoconf warnings.
47586         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
47587         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
47588         * m4/afs.m4 (gl_AFS): Likewise.
47589         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
47590         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
47591         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47592         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
47593         (gl_INTEGER_TYPE_SUFFIX): Likewise.
47594         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
47595         (AC_CHECK_DECLS_ONCE): Likewise.
47596         Rename file...
47597         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
47598         gnulib-tool requires autoconf 2.59 or better.
47599         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
47600
47601 2008-04-08  Eric Blake  <ebb9@byu.net>
47602
47603         Use 'git describe --match' if present (added in git 1.5.5).
47604         * build-aux/git-version-gen: Limit result to tags that match 'v*'
47605         if possible.
47606
47607 2008-04-08  Bruno Haible  <bruno@clisp.org>
47608
47609         Add tentative support for OpenServer.
47610         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
47611         _ptr, _cnt.
47612         * lib/fpurge.c (fpurge): Likewise.
47613         * lib/freadable.c (freadable): Likewise.
47614         * lib/freadahead.c (freadahead): Likewise.
47615         * lib/freading.c (freading): Likewise.
47616         * lib/freadptr.c (freadptr): Likewise.
47617         * lib/freadseek.c (freadptrinc): Likewise.
47618         * lib/fseeko.c (rpl_fseeko): Likewise.
47619         * lib/fseterr.c (fseterr): Likewise.
47620         * lib/fwritable.c (fwritable): Likewise.
47621         * lib/fwriting.c (fwriting): Likewise.
47622         Reported by Roger Cornelius <rac@tenzing.org> and
47623         Brian K. White <brian@aljex.com>.
47624
47625 2008-04-06  Jim Meyering  <meyering@redhat.com>
47626
47627         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
47628
47629 2008-04-06  Bruno Haible  <bruno@clisp.org>
47630
47631         Avoid possible error with non-ASCII bytes in UTF-8 locales.
47632         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
47633         * tests/test-printf-posix.sh: Likewise.
47634         * tests/test-vfprintf-posix.sh: Likewise.
47635         * tests/test-vprintf-posix.sh: Likewise.
47636         * tests/test-xprintf-posix.sh: Likewise.
47637
47638 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47639
47640         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
47641         hide error from 'ls', needed on OS/2.
47642         Report by Elbert Pol <elbert.pol@gmail.com>.
47643
47644 2008-04-04  Eric Blake  <ebb9@byu.net>
47645
47646         Make test-fseeko.c failures meaningful.
47647         * tests/test-fseeko.c: Print line number on failure.
47648         * tests/test-fseek.c: Likewise.
47649         Reported by Nelson H. F. Beebe.
47650
47651         Improve strtod bug detection check.
47652         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
47653         required for Solaris 10.
47654         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
47655
47656 2008-04-04  Bruno Haible  <bruno@clisp.org>
47657
47658         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
47659         by m4/setenv.m4.
47660
47661 2008-04-03  Eric Blake  <ebb9@byu.net>
47662
47663         Ensure sane .version contents.
47664         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
47665         version string.
47666         * build-aux/git-version-gen: Improve documentation.
47667
47668         Make GNU make output nicer.
47669         * top/GNUmakefile [!_have-Makefile]: Add dependency on
47670         MAKECMDGOALS to enforce message for all command line targets.  Set
47671         srcdir for use in maint.mk.
47672
47673         Another maintainer tweak.
47674         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
47675         a target that regenerates version.
47676
47677 2008-04-03  Jim Meyering  <meyering@redhat.com>
47678
47679         vc-list-files: don't cause coreutils "make po-check" failure
47680         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
47681
47682 2008-04-03  Eric Blake  <ebb9@byu.net>
47683
47684         Allow VPATH usage of vc-list-files.
47685         * build-aux/vc-list-files (scriptversion): Add timestamp.
47686         (options): Add --help, --version, -C.
47687         (CVS): Support installed cvsu.
47688
47689 2008-04-02  Bruno Haible  <bruno@clisp.org>
47690
47691         Avoid some "statement with no effect" warnings from gcc.
47692         * tests/test-wctype.c (main): Explicitly ignore unused values.
47693         Reported by Jim Meyering.
47694
47695 2008-04-02  Jim Meyering  <meyering@redhat.com>
47696
47697         Avoid some warnings from "gcc -Wshadow".
47698         * tests/test-frexp.c (exp): Define to a different identifier.
47699         * tests/test-frexpl.c (exp): Likewise.
47700
47701 2008-04-03  Jim Meyering  <meyering@redhat.com>
47702
47703         bootstrap: remove dangling *.[ch] symlinks from lib
47704         * build-aux/bootstrap [dangling symlink removal]: Move find's
47705         -depth option to precede all others, to avoid a warning.
47706         Remove *.[ch] files too, and from "$source_base" (usually lib/).
47707
47708 2008-04-02  Bruno Haible  <bruno@clisp.org>
47709
47710         Avoid some warnings from "gcc -Wshadow".
47711         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
47712         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
47713         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
47714         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
47715         Reported by Jim Meyering.
47716
47717 2008-04-01  Bruno Haible  <bruno@clisp.org>
47718
47719         Fix test to work on IRIX 6.5 with cc.
47720         * tests/test-math.c (numeric_equal): New function.
47721         (main): Use it.
47722
47723 2008-04-01  Bruno Haible  <bruno@clisp.org>
47724
47725         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
47726
47727 2008-04-01  Bruno Haible  <bruno@clisp.org>
47728
47729         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
47730         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47731         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
47732         (Depends-on): Remove math.
47733
47734         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
47735         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47736         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
47737         (Depends-on): Remove math.
47738
47739         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
47740         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47741         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
47742         (Depends-on): Remove math.
47743         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
47744         (Depends-on): Remove math.
47745
47746         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
47747         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47748         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
47749         (Depends-on): Remove math.
47750         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
47751         (Depends-on): Remove math.
47752
47753         * tests/test-round1.c: Include nan.h.
47754         (main): Use NaNd instead of NAN.
47755         * modules/round-tests (Files): Add tests/nan.h.
47756
47757         * tests/test-trunc1.c: Include nan.h.
47758         (main): Use NaNd instead of NAN.
47759         * modules/trunc-tests (Files): Add tests/nan.h.
47760
47761         * tests/test-roundf1.c: Include nan.h.
47762         (main): Use NaNf instead of NAN.
47763         * modules/roundf-tests (Files): Add tests/nan.h.
47764
47765         * tests/test-truncf1.c: Include nan.h.
47766         (main): Use NaNf instead of NAN.
47767         * modules/truncf-tests (Files): Add tests/nan.h.
47768
47769         * tests/test-ceilf1.c: Include nan.h.
47770         (main): Use NaNf instead of NAN.
47771         * modules/ceilf-tests (Files): Add tests/nan.h.
47772
47773         * tests/test-floorf1.c: Include nan.h.
47774         (main): Use NaNf instead of NAN.
47775         * modules/floorf-tests (Files): Add tests/nan.h.
47776
47777         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
47778         (main): Use NaNf instead of NAN.
47779         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
47780
47781         * tests/test-isnand.c: Include nan.h instead of <math.h>.
47782         (main): Use NaNd instead of NAN.
47783         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
47784
47785         * tests/test-frexp.c: Include nan.h.
47786         (main): Use NaNd instead of NAN.
47787         * modules/frexp-tests (Files): Add tests/nan.h.
47788
47789         * lib/isnan.c: Don't include <math.h>.
47790         (FUNC): Don't use NAN macro.
47791         * modules/isnand-nolibm (Depends-on): Remove math.
47792         * modules/isnanf-nolibm (Depends-on): Remove math.
47793         * modules/isnanl (Depends-on): Remove math.
47794         * modules/isnanl-nolibm (Depends-on): Remove math.
47795
47796         * tests/nan.h: New file.
47797
47798 2008-04-01  Eric Blake  <ebb9@byu.net>
47799
47800         Fix typos.
47801         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
47802         values to be the right type.
47803
47804         For now, cater to gnulib strtod inaccuracies.
47805         * tests/test-strtod.c (main): Allow 1-ulp error on expected
47806         fractional results.  While not as nice from a QoI perspective, it
47807         is a quicker patch than correctly implementing decimal to binary
47808         rounding.
47809
47810 2008-03-31  Eric Blake  <ebb9@byu.net>
47811
47812         Guarantee a definition of NAN.
47813         * lib/math.in.h (NAN): Define if missing.
47814         * tests/test-math.c (main): Test it.
47815         * doc/posix-headers/math.texi (math.h): Document this.
47816         * lib/isnan.c (rpl_isnand): Use it.
47817         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
47818         * tests/test-floorf1.c (NaN): Likewise.
47819         * tests/test-frexp.c (NaN): Likewise.
47820         * tests/test-isnand.c (NaN): Likewise.
47821         * tests/test-isnanf.c (NaN): Likewise.
47822         * tests/test-round1.c (NaN): Likewise.
47823         * tests/test-roundf1.c (NaN): Likewise.
47824         * tests/test-snprintf-posix.h (NaN): Likewise.
47825         * tests/test-sprintf-posix.h (NaN): Likewise.
47826         * tests/test-trunc1.c (NaN): Likewise.
47827         * tests/test-truncf1.c (NaN): Likewise.
47828         * tests/test-vasnprintf-posix.c (NaN): Likewise.
47829         * tests/test-vasprintf-posix.c (NaN): Likewise.
47830         * modules/isnand-nolibm (Depends-on): Add math.
47831         * modules/isnanf-nolibm (Depends-on): Likewise.
47832         * modules/isnanl (Depends-on): Likewise.
47833         * modules/isnanl-nolibm (Depends-on): Likewise.
47834         * modules/snprintf-posix-tests (Depends-on): Likewise.
47835         * modules/sprintf-posix-tests (Depends-on): Likewise.
47836         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
47837         * modules/vsprintf-posix-tests (Depends-on): Likewise.
47838         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
47839         * modules/vasprintf-posix-tests (Depends-on): Likewise.
47840
47841 2008-03-31  Bruno Haible  <bruno@clisp.org>
47842
47843         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
47844         * doc/posix-functions/strtod.texi: Likewise.
47845
47846 2008-03-31  Bruno Haible  <bruno@clisp.org>
47847
47848         * tests/test-strtod.c (main): Don't use C99 syntax.
47849
47850 2008-03-31  Bruno Haible  <bruno@clisp.org>
47851
47852         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
47853         Reported by Eric Blake.
47854
47855 2008-03-31  Jim Meyering  <meyering@redhat.com>
47856
47857         Don't compare actual signbit return values.
47858         * tests/test-strtod.c (main): Rather, compare only their
47859         zero/non-zero nature.
47860
47861 2008-03-31  Eric Blake  <ebb9@byu.net>
47862
47863         More strtod documentation.
47864         * doc/posix-functions/strtod.texi (strtod): Interpret more test
47865         failures as distinct bugs.
47866
47867 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47868
47869         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
47870         Problem reported by Erik Benada in
47871         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
47872
47873 2008-03-30  Bruno Haible  <bruno@clisp.org>
47874
47875         * tests/test-strtod.c: Add comments about which assertion fails on which
47876         platform.
47877         * doc/posix-functions/strtod.texi: Add info about many more platforms.
47878
47879 2008-03-30  Eric Blake  <ebb9@byu.net>
47880
47881         Test signbit behavior on zeros.
47882         * tests/test-signbit.c (test_signbitf): Add tests for zero.
47883         (test_signbitd, test_signbitl): Likewise.
47884
47885         More strtod touchups.
47886         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
47887         sign of negative underflow, for now.  Use .5, not .1.
47888         * doc/posix-functions/strtod.texi (strtod): Mention these
47889         limitations.
47890         Reported by Jim Meyering.
47891
47892 2008-03-30  Bruno Haible  <bruno@clisp.org>
47893
47894         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
47895         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
47896
47897 2008-03-30  Bruno Haible  <bruno@clisp.org>
47898
47899         Avoid failure when attempting to return empty iconv results on some
47900         platforms.
47901         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47902         allocation, don't report ENOMEM when the resulting string is empty.
47903
47904 2008-03-30  Bruno Haible  <bruno@clisp.org>
47905
47906         Fix buffer overrun.
47907         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47908         Don't consider the width for tmp_length. Check count against tmp_length
47909         before doing the padding. Ensure enough allocation during padding.
47910
47911 2008-03-30  Eric Blake  <ebb9@byu.net>
47912
47913         strtod touchups.
47914         * lib/strtod.c (strtod): Avoid compiler warnings.
47915         Reported by Jim Meyering.
47916
47917 2008-03-30  Bruno Haible  <bruno@clisp.org>
47918
47919         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47920         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47921         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47922         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47923         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47924         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47925         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47926         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47927
47928         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47929         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47930         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47931         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47932         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47933         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47934         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47935         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47936
47937         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47938         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47939         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47940         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47941         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47942         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47943         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47944         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47945
47946         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47947         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47948
47949         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47950         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47951
47952         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47953         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47954
47955         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47956         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47957         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47958
47959         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47960         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47961         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47962
47963         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47964         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47965         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47966
47967         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47968         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47969         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47970
47971         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47972         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47973         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47974         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47975         (Depends-on): Add EOVERFLOW.
47976         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47977         (Depends-on): Add EOVERFLOW.
47978         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47979         (Depends-on): Add EOVERFLOW.
47980         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47981         (Depends-on): Add EOVERFLOW.
47982         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47983         (Depends-on): Add EOVERFLOW.
47984         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47985         (Depends-on): Add EOVERFLOW.
47986         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47987         (Depends-on): Add EOVERFLOW.
47988         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47989         (Depends-on): Add EOVERFLOW.
47990
47991         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47992         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47993         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47994
47995         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47996         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47997         * modules/snprintf (Depends-on): Add EOVERFLOW.
47998
47999         * lib/poll.c (EOVERFLOW): Remove fallback.
48000         * modules/poll (Depends-on): Add EOVERFLOW.
48001
48002         * lib/getugroups.c (EOVERFLOW): Remove fallback.
48003         * modules/getugroups (Depends-on): Add EOVERFLOW.
48004
48005         * lib/getdelim.c (EOVERFLOW): Remove fallback.
48006         * modules/getdelim (Depends-on): Add EOVERFLOW.
48007
48008         * lib/ftell.c (EOVERFLOW): Remove fallback.
48009         * modules/ftell (Depends-on): Add EOVERFLOW.
48010
48011         * lib/fprintf.c (EOVERFLOW): Remove fallback.
48012         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
48013         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
48014
48015         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
48016
48017         * modules/EOVERFLOW-tests: New file.
48018         * tests/test-EOVERFLOW.c: New file.
48019
48020         * modules/EOVERFLOW: New file.
48021         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
48022
48023 2008-03-30  Bruno Haible  <bruno@clisp.org>
48024
48025         Fix bug introduced on 2007-06-10.
48026         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
48027         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
48028
48029 2008-03-30  Bruno Haible  <bruno@clisp.org>
48030
48031         Improve freadseek's efficiency after ungetc.
48032         * lib/freadseek.c: Include freadahead.h.
48033         (freadptrinc): New function, extracted from freadseek.
48034         (freadseek): Use it in a loop. Use freadahead to determine the number
48035         of loop iterations.
48036         * modules/freadseek (Depends-on): Add freadahead.
48037         (configure.ac): Require AC_C_INLINE.
48038
48039 2008-03-30  Bruno Haible  <bruno@clisp.org>
48040
48041         * lib/freadseek.c (freadseek): Don't ignore the return value of
48042         freadptr.
48043
48044 2008-03-29  Eric Blake  <ebb9@byu.net>
48045
48046         Add hex float support.
48047         * modules/strtod (Depends-on): Add c-ctype.
48048         (Link): Mention POW_LIB.
48049         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
48050         whitespace between 'e' and exponent.
48051         * tests/test-strtod.c (main): Enable hex float tests.
48052         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
48053         now provides.
48054
48055         Document various strtod bugs, with some fixes.
48056         * doc/posix-functions/strtod.texi (strtod): Document bugs with
48057         "-0x", "inf", "nan", and hex constants.
48058         * doc/posix-functions/atof.texi (atof): Likewise.
48059         * modules/stdlib (Makefile.am): Support strtod.
48060         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
48061         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
48062         detect additional strtod bugs.
48063         * lib/stdlib.in.h (rpl_strtod): Add declarations.
48064         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
48065         bool where appropriate.  Parse 'inf' and 'nan'.
48066         * tests/test-strtod.c: New file.
48067         * modules/strtod (Depends-on): Add stdbool, stdlib.
48068         (configure.ac): Turn on module indicator.
48069         * modules/strtod-tests: New module.
48070
48071 2008-03-29  Eric Blake  <ebb9@byu.net>
48072
48073         Fix ftell on mingw.
48074         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
48075         * modules/ftell-tests (Depends-on): Add binary-io.
48076         * modules/ftello-tests (Depends-on): Likewise.
48077         * tests/test-ftell.c (main): Enhance test to cover behavior after
48078         ungetc.  Enforce binary mode.
48079         * tests/test-ftello.c (main): Likewise.
48080
48081         Pass test-freadseek on cygwin.
48082         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
48083         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
48084         ungetc buffer.
48085
48086         * tests/test-fflush2.c (main): Fix typo.
48087
48088 2008-03-29  Bruno Haible  <bruno@clisp.org>
48089
48090         * tests/test-fflush2.c (main): Temporarily disable the contents of
48091         this test.
48092         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
48093         Reported by Eric Blake.
48094
48095 2008-03-28  Simon Josefsson  <simon@josefsson.org>
48096
48097         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
48098         (GC_SHA224_DIGEST_SIZE): Add.
48099
48100         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
48101         (gc_hash_digest_length): Likewise.
48102         (gc_hash_buffer): Likewise.
48103
48104 2008-03-25  Bruno Haible  <bruno@clisp.org>
48105
48106         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
48107         detail which gettext release to use.
48108         Reported by Simon Josefsson.
48109
48110 2008-03-26  Jim Meyering  <meyering@redhat.com>
48111
48112         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
48113         * modules/gnumakefile (clean-GNUmakefile): Also, use
48114         test ... && ... || : syntax rather than if-then ... fi.
48115
48116         gnumakefile: Don't double-quote-expand $(VPATH) value.
48117         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
48118
48119 2008-03-24  Eric Blake  <ebb9@byu.net>
48120
48121         Alter GNUmakefile to install into top directory.
48122         * modules/maintainer-makefile: Split, and add dependency...
48123         * modules/gnumakefile: to this new module.
48124         * build-aux/GNUmakefile: Move...
48125         * top/GNUmakefile: ...here.
48126         * build-aux/maint.mk: Move...
48127         * top/maint.mk: ...here.
48128         * MODULES.html.sh (Support for maintaining...): Document new
48129         module.
48130
48131 2008-03-23  Bruno Haible  <bruno@clisp.org>
48132
48133         * gnulib-tool: New options --vc-files, --no-vc-files.
48134         (func_usage): Document them.
48135         (vc_files): New variable.
48136         (func_import): Consider vc_files.
48137         (func_create_testdir): Set vc_files to empty.
48138         Suggested by Jim Meyering and Karl Berry.
48139
48140 2008-03-23  Bruno Haible  <bruno@clisp.org>
48141
48142         Fix regex compilation error on HP-UX 11.
48143         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
48144         * modules/regex (Files): Add m4/mbstate_t.m4.
48145         Reported by Ton Voon <ton.voon@altinity.com>.
48146
48147 2008-03-23  Bruno Haible  <bruno@clisp.org>
48148
48149         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
48150
48151 2008-03-23  Eric Blake  <ebb9@byu.net>
48152             Bruno Haible  <bruno@clisp.org>
48153
48154         Install files from top/ in the destination directory.
48155         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48156         augmentation also for the files from top/.
48157         (func_import, func_create_testdir): Rewrite file names:
48158         top/filename -> filename.
48159
48160 2008-03-23  Bruno Haible  <bruno@clisp.org>
48161
48162         Tweak "gnulib --version" output.
48163         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
48164
48165 2008-03-23  Bruno Haible  <bruno@clisp.org>
48166
48167         Tweak "gnulib --version" output.
48168         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
48169         rather than contents of ChangeLog, when possible.
48170
48171 2008-03-21  Eric Blake  <ebb9@byu.net>
48172
48173         More --version tweaks.
48174         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
48175         date of last ChangeLog entry.
48176
48177 2008-03-21  Jim Meyering  <meyering@redhat.com>
48178
48179         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
48180
48181 2008-03-20  Eric Blake  <ebb9@byu.net>
48182
48183         VPATH fix.
48184         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
48185
48186 2008-03-20  Simon Josefsson  <simon@josefsson.org>
48187
48188         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
48189         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
48190
48191 2008-03-20  Eric Blake  <ebb9@byu.net>
48192
48193         Sync GNUmakefile with coreutils.
48194         * build-aux/GNUmakefile (have-Makefile): Rename...
48195         (_have-Makefile): ...to this, for namespace consideration.
48196         (GNUmakefile.cfg): Include, if present.
48197         (_autoreconf): Define a default.
48198         (_is-dist-target): New rule for rebuilds to pick up intra-release
48199         version.
48200         (maint-cfg.mk): Rename...
48201         (cfg.mk): ...to this.
48202
48203 2008-03-18  Jim Meyering  <meyering@redhat.com>
48204
48205         New script and module: mktempd
48206         * MODULES.html.sh (maint+release support): Add mktempd.
48207         * build-aux/mktempd: New file.
48208         * modules/mktempd: New file.
48209
48210 2008-03-15  Jim Meyering  <meyering@redhat.com>
48211
48212         Undo last change.
48213         * lib/sha1.c, lib/md5.c: 63 != ~63.
48214         Reported by Andreas Schwab.
48215
48216         sha1.c, md5.c: Hoist a redundant expression.
48217         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
48218         "ctx->buflen" only once, before calling *_process_block.
48219         * lib/md5.c (md5_process_bytes): Likewise.
48220
48221 2008-03-14  Eric Blake  <ebb9@byu.net>
48222
48223         Bump copyright year in files generated by gnulib-tool.
48224         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
48225         gnulib-tool, rather than hard-coding it.
48226
48227         Fix 'gnulib-tool --version' output to work with git.
48228         * gnulib-tool (func_gnulib_dir): New function, extracted from...
48229         (startup): ...here.
48230         (func_version): Use it to invoke git-version-gen, rather than
48231         relying on CVS keyword expansion.  Modernize wording.
48232         (cvsdatestamp, last_checkin_date, version): Kill unused
48233         variables.
48234
48235 2008-03-12  Jim Meyering  <meyering@redhat.com>
48236
48237         Recognize optional cast of the argument to free.
48238         * build-aux/useless-if-before-free: Update regexps.
48239
48240         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
48241
48242 2008-03-11  Bruno Haible  <bruno@clisp.org>
48243
48244         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
48245         by a single package.
48246         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
48247         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
48248         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
48249         Reported by Sam Steingold <sds@gnu.org>.
48250
48251 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48252
48253         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
48254         repositories.
48255
48256 2008-03-11  Bruno Haible  <bruno@clisp.org>
48257
48258         Avoid conflicts between local macro definitions.
48259         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48260         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
48261
48262 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
48263             Bruno Haible  <bruno@clisp.org>
48264
48265         Make va_copy work with some version of xlc on AIX 5.1.
48266         * lib/stdarg.in.h: New file.
48267         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
48268         On AIX, use a <stdarg.h> file substitute.
48269         * modules/stdarg (Files): Add lib/stdarg.in.h.
48270         (Depends-on): Add include_next.
48271         (Makefile.am): Build a stdarg.h substitute if requested.
48272         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
48273
48274 2008-03-10  Bruno Haible  <bruno@clisp.org>
48275
48276         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
48277         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48278         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48279
48280 2008-03-10  Bruno Haible  <bruno@clisp.org>
48281
48282         * modules/stdlib (Depends-on): Add include_next, remove
48283         absolute-header.
48284
48285 2008-03-09  Bruno Haible  <bruno@clisp.org>
48286
48287         * lib/freadahead.h (freadahead): Document more precisely.
48288         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
48289         the sum of both buffer sizes.
48290         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
48291         * NEWS: Document the change.
48292
48293 2008-03-09  Bruno Haible  <bruno@clisp.org>
48294
48295         Extend freadptr to return also the buffer size.
48296         * lib/freadptr.h (freadptr): Add sizep argument.
48297         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
48298         (freadptr): Add sizep argument. Determine buffer size like freadahead
48299         does.
48300         * tests/test-freadptr.c: Don't include freadahead.h.
48301         (main): Adapt for new calling convention of freadptr.
48302         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
48303         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
48304         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
48305         tests/test-freadptr2.sh.
48306         (Depends): Remove freadahead.
48307         (TESTS): Add test-freadptr2.sh.
48308         (check_PROGRAMS): Add test-freadptr2.
48309
48310 2008-03-09  Bruno Haible  <bruno@clisp.org>
48311
48312         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
48313         Report and solution by Simon Josefsson.
48314
48315 2008-03-06  Bruno Haible  <bruno@clisp.org>
48316
48317         Make fflush after ungetc work on BSD platforms.
48318         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
48319         * tests/test-fflush2.c: New file.
48320         * tests/test-fflush2.sh: New file.
48321         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
48322         tests/test-fflush2.c.
48323         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
48324         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
48325
48326 2008-03-06  Eric Blake  <ebb9@byu.net>
48327
48328         Likewise for ftello.
48329         * modules/ftello (Dependencies): Add extensions.
48330         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
48331
48332 2008-03-06  Bruno Haible  <bruno@clisp.org>
48333
48334         * modules/fseeko (Dependencies): Add extensions.
48335         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
48336         Needed on glibc systems.
48337
48338 2008-03-06  Bruno Haible  <bruno@clisp.org>
48339
48340         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
48341         email address.
48342         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48343
48344 2008-03-06  Bruno Haible  <bruno@clisp.org>
48345
48346         * users.txt: Add libgnupdf.
48347
48348 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48349
48350         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
48351         (Header File Substitutes, Function Substitutes,
48352         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
48353         (Build robot for gnulib): Fix typo.
48354
48355 2008-03-06  Bruno Haible  <bruno@clisp.org>
48356
48357         * doc/gnulib-tool.texi (VCS Issues): Small updates.
48358         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48359
48360 2008-03-06  Bruno Haible  <bruno@clisp.org>
48361
48362         * doc/func.texi: New file, extracted from doc/gnulib.texi.
48363         * doc/gnulib.texi: Include it.
48364
48365 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48366
48367         * modules/func (License): Change license to unlimited; there was
48368         no LGPL parts in the module anyway.
48369
48370 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48371
48372         * modules/__func__: Renamed to modules/func.
48373         * modules/__func__-tests: Renamed to modules/func-tests.
48374         * tests/test-__func__.c: Renamed to tests/test-func.c.
48375         * m4/__func__.m4: Renamed to m4/func.m4.
48376         * doc/gnulib.texi (__func__): Section renamed to func.
48377         Suggested by Eric Blake <ebb9@byu.net>.
48378
48379 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48380
48381         * doc/gnulib.texi (__func__): Use C99 terminology when talking
48382         about __func__.  Make example self-contained.  Suggested by Eric
48383         Blake <ebb9@byu.net>.
48384
48385         * tests/test-__func__.c (main): Avoid extraneous () around __func.
48386         Suggested by Eric Blake <ebb9@byu.net>.
48387
48388 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48389
48390         * modules/__func__: New file.
48391         * modules/__func__-tests: New file.
48392         * tests/test-__func__.c: New file.
48393         * m4/__func__.m4: New file.
48394         * doc/gnulib.texi (__func__): Document __func__ module.
48395
48396 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48397
48398         * modules/byteswap (License): Re-license as LGPLv2+.
48399
48400 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48401
48402         * doc/Makefile: Add pdf target.
48403
48404 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48405
48406         * modules/inline (License): Use 'unlimited', since there are only
48407         *.m4 files in this module.
48408
48409 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48410             Bruno Haible  <bruno@clisp.org>
48411
48412         Add support for HP C 7.1 on OpenVMS 8.3.
48413         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
48414
48415 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48416
48417         Update VMS specifics.
48418         * lib/getopt.c [VMS]: Remove include of unixlib.h.
48419
48420 2008-03-02  Jim Meyering  <meyering@redhat.com>
48421
48422         Remove the last dependency on the "free" module.
48423         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
48424         Reported by Bob Proulx.
48425
48426         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
48427
48428         Remove useless "if" tests before free.  Deprecate "free" module.
48429         * doc/posix-functions/free.texi: Mention that this
48430         module is no longer useful.
48431         * modules/free (Notice): Say this module is obsolete.
48432         * modules/readutmp (Depends-on): Remove free.
48433         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
48434         * lib/putenv.c (putenv): Likewise.
48435         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
48436         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
48437         * tests/test-c-strcasestr.c (main): Likewise.
48438         * tests/test-c-strstr.c (main): Likewise.
48439         * tests/test-mbscasestr1.c (main): Likewise.
48440         * tests/test-mbscasestr2.c (main): Likewise.
48441         * tests/test-mbsstr1.c (main): Likewise.
48442         * tests/test-mbsstr2.c (main): Likewise.
48443         * tests/test-memmem.c (main): Likewise.
48444         * tests/test-strcasestr.c (main): Likewise.
48445         * tests/test-striconv.c (main): Likewise.
48446         * tests/test-striconveh.c (main): Likewise.
48447         * tests/test-striconveha.c (main): Likewise.
48448         * tests/test-strstr.c (main): Likewise.
48449
48450         * build-aux/git-version-gen: Adjust a comment and the Usage string.
48451
48452         bootstrap: sync from coreutils again
48453         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
48454
48455 2008-03-01  Jim Meyering  <meyering@redhat.com>
48456
48457         bootstrap: sync from coreutils
48458         * build-aux/bootstrap (update_po_files): Copy a .po file into place
48459         also when the target doesn't exist.
48460
48461 2008-03-01  Eric Blake  <ebb9@byu.net>
48462
48463         Fix bugs in last patch.
48464         * lib/memchr2.c (memchr2): Fix typo.
48465         * tests/test-memchr2.c: Test previous bug, and don't use GNU
48466         extension.
48467         Reported by Bruce Korb.
48468
48469         New module 'memchr2'.
48470         * modules/memchr2: New file.
48471         * modules/memchr2-tests: Likewise.
48472         * lib/memchr2.h: Likewise.
48473         * lib/memchr2.c: Likewise, based on memchr.c.
48474         * tests/test-memchr2.c: New test.
48475         * MODULES.html.sh (String handling): Add memchr2.
48476
48477 2008-02-29  Bruno Haible  <bruno@clisp.org>
48478
48479         * modules/freadseek-tests: New file.
48480         * tests/test-freadseek.sh: New file.
48481         * tests/test-freadseek.c: New file.
48482
48483         New module 'freadseek'.
48484         * modules/freadseek: New file.
48485         * lib/freadseek.h: New file.
48486         * lib/freadseek.c: New file.
48487         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
48488
48489 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48490
48491         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
48492         wydawca.
48493
48494         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
48495         program_invocation_name and program_invocation_short_name are
48496         present.
48497
48498 2008-02-28  Bruno Haible  <bruno@clisp.org>
48499
48500         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
48501         * tests/test-freadptr.sh: Also test non-seekable stdin.
48502
48503 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
48504
48505         * build-aux/bootstrap (source_base, m4_base)
48506         (doc_base, tests_base): New variables.
48507         (gnulib_tool_options): Do not hardcode base directories, use
48508         the above variables instead.
48509
48510 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
48511
48512         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
48513
48514 2008-02-28  Bruno Haible  <bruno@clisp.org>
48515
48516         * modules/freadptr-tests: New file.
48517         * tests/test-freadptr.sh: New file.
48518         * tests/test-freadptr.c: New file.
48519
48520         New module 'freadptr'.
48521         * modules/freadptr: New file.
48522         * lib/freadptr.h: New file.
48523         * lib/freadptr.c: New file.
48524         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
48525
48526 2008-02-26  Karl Berry  <karl@freefriends.org>
48527
48528         Sync from Libtool:
48529         * libltdl/argz.c (argz_add, argz_count): New functions.
48530         * libltdl/argz.in.h: Declare them.
48531         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
48532
48533 2008-02-22  Bruno Haible  <bruno@clisp.org>
48534
48535         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
48536         is a pointer type.  Needed for HP-UX 10.
48537         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
48538         * doc/posix-functions/gmtime_r.texi: Likewise.
48539         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48540
48541 2008-02-24  Bruno Haible  <bruno@clisp.org>
48542
48543         * modules/environ-tests: New file.
48544         * tests/test-environ.c: New file.
48545
48546         New module 'environ'.
48547         * modules/environ: New file.
48548         * lib/unistd.in.h (environ): New declaration.
48549         * m4/environ.m4: New file.
48550         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
48551         after use.
48552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
48553         HAVE_DECL_ENVIRON.
48554         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
48555         HAVE_DECL_ENVIRON.
48556         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
48557         wrong claim that 'environ' is missing on some systems.
48558         * modules/execute (Depends-on): Add environ.
48559         * lib/execute.c (environ): Remove fallback declaration.
48560         * modules/pipe (Depends-on): Add environ.
48561         * lib/pipe.c (environ): Remove fallback declaration.
48562         * modules/setenv (Depends-on): Add environ.
48563         * lib/setenv.c (environ): Remove fallback declaration.
48564         * modules/unsetenv (Depends-on): Add environ.
48565         * lib/unsetenv.c (environ): Remove fallback declaration.
48566         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
48567         m4/environ.m4.
48568         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
48569         (gl_PREREQ_UNSETENV): Likewise.
48570
48571 2008-02-24  Bruno Haible  <bruno@clisp.org>
48572
48573         * doc/posix-functions/environ.texi: Document the MacOS X problem.
48574
48575 2008-02-20  Bob Proulx  <bob@proulx.com>
48576
48577         Enable use of older two part flavor 'git describe'.
48578         * build-aux/git-version-gen: If using the older two part flavor of
48579         git version then recreate the third part now present in the
48580         newer three part flavor of git describe.
48581
48582 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
48583
48584         * lib/fts.c (fts_build): Typo correction to comment.
48585
48586 2008-02-17  Bruno Haible  <bruno@clisp.org>
48587
48588         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
48589         generating no-op conflicts.
48590
48591 2008-02-17  Bruno Haible  <bruno@clisp.org>
48592
48593         Speed up by 10%.
48594         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
48595         result_entries, rather than an index-based loop.
48596
48597 2008-02-17  Bruno Haible  <bruno@clisp.org>
48598
48599         Speed up by 25%.
48600         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
48601         'hashcode_cached'.
48602         (entry_create): New function.
48603         (entry_hashcode): Use the cached hashcode if possible.
48604         (read_changelog_file, try_split_merged_entry): Use entry_create.
48605
48606 2008-02-17  Bruno Haible  <bruno@clisp.org>
48607
48608         Speed up from O(n^2) to O(n) for long ChangeLog files.
48609         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
48610         (read_changelog_file): Change implementation of entries_reversed list
48611         to rbtreehash.
48612         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
48613
48614 2008-02-17  Bruno Haible  <bruno@clisp.org>
48615
48616         New option --split-merged-entry.
48617         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
48618         (find_paragraph_end, try_split_merged_entry): New functions.
48619         (long_options): Add option --split-merged-entry.
48620         (usage): Document option --split-merged-entry.
48621         (main): Implement option --split-merged-entry.
48622         Reported by Eric Blake.
48623
48624 2008-02-17  Bruno Haible  <bruno@clisp.org>
48625
48626         * lib/git-merge-changelog.c: Include c-strstr.h.
48627         (main): Support the "git pull --rebase" situation.
48628         * modules/git-merge-changelog (Depends-on): Add c-strstr.
48629         Reported by Eric Blake.
48630
48631 2008-02-16  Eric Blake  <ebb9@byu.net>
48632
48633         Avoid doubling \ in common case of "c-maybe" quoting style.
48634         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
48635         eliding outer quotes.
48636         * lib/quotearg.h: Document this.
48637         * tests/test-quotearg.c (result_strings, inputs, results_g)
48638         (flag_results, locale_results): Test it by adding a new string to
48639         each test group.
48640         (compare_strings): Test new string.
48641
48642 2008-02-13  Eric Blake  <ebb9@byu.net>
48643
48644         Avoid trigraph quoting in default output.
48645         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
48646         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
48647         unless explicitly requested.
48648         * tests/test-quotearg.c (flag_results, main): Add additional tests.
48649
48650 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
48651
48652         Don't rely on signed integer overflowing to negative value.
48653         * lib/getugroups.c (getugroups): Include <limits.h>.
48654         Instead, compare against INT_MAX, and increment only if the test passes.
48655
48656 2008-02-13  Jim Meyering  <meyering@redhat.com>
48657         and Eric Blake  <ebb9@byu.net>
48658
48659         Avoid shadowing warning and compile errors on Linux.
48660         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
48661         forwarding macros on Linux.
48662         (dcgettext): Define a stub, for Linux.
48663         (results_g, main): Avoid warnings.
48664
48665 2008-02-12  Eric Blake  <ebb9@byu.net>
48666
48667         Silence warning in last patch.
48668         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
48669
48670         Quotearg part 4: add tests, fix c-maybe colon quoting.
48671         * lib/quotearg.h: Improve documentation.
48672         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
48673         escapes when adding outer quotes.  When quoting trigraphs, use
48674         valid C notation.  When quoting NUL, omit extra characters if next
48675         character is not digit.  Alter prototype.
48676         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
48677         callers.
48678         * modules/quotearg-tests: New module.
48679         * tests/test-quotearg.c: New test.
48680
48681 2008-02-07  Eric Blake  <ebb9@byu.net>
48682
48683         Quotearg part 3: add flag to control outer quote elision.
48684         * lib/quotearg.h (c_maybe_quoting_style): New style.
48685         (enum quoting_flags): Better documentation of flags.
48686         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
48687         c-maybe style.
48688         (quotearg_buffer_restyled): Handle new flag to elide outer
48689         quotes.
48690
48691         Quotearg part 2: add flag that can control NUL elision.
48692         * lib/quotearg.h (set_quoting_flags): New prototype.
48693         * lib/quotearg.c (struct quoting_options): Add flag field.
48694         (set_quoting_flags): New function.
48695         (quotearg_buffer_restyled): Add flags parameter.
48696         (quotearg_alloc_mem): Set the flag if length cannot be returned.
48697         (quotearg_n_options): Set the flag, since length cannot be
48698         returned.
48699         (quoting_options_from_style): Default flags correctly.
48700
48701         Quotearg part 1: more wrappers, restore quotearg_char state.
48702         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
48703         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
48704         (quotearg_colon_mem): New wrappers.
48705         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
48706         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
48707         functions.
48708         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
48709         (quotearg_colon_mem): New functions.
48710
48711 2008-02-11  Bruno Haible  <bruno@clisp.org>
48712
48713         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
48714         library in the current directory: it does not work with parallel make.
48715         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48716
48717 2008-02-11  Bruno Haible  <bruno@clisp.org>
48718
48719         * .gitattributes: New file.
48720
48721 2008-02-11  Jim Meyering  <meyering@redhat.com>
48722
48723         useless-if-before-free: Fix reversed exit values.
48724         * build-aux/useless-if-before-free: Use correct values
48725         for EXIT_MATCH and EXIT_NO_MATCH.
48726
48727         * build-aux/useless-if-before-free: Close stdout carefully.
48728
48729 2008-02-10  Bruno Haible  <bruno@clisp.org>
48730
48731         New module 'git-merge-changelog'.
48732         * modules/git-merge-changelog: New file.
48733         * lib/git-merge-changelog.c: New file.
48734
48735 2008-02-10  Jim Meyering  <meyering@redhat.com>
48736
48737         useless-if-before-free: New option: --list (-l).
48738
48739         useless-if-before-free: Don't exit immediately upon open failure.
48740         * build-aux/useless-if-before-free: Exit 2 for errors.
48741         Upon failure to open a file, don't exit immediately.
48742         Rather, just warn and continue with any remaining files.
48743
48744 2008-02-10  Bruno Haible  <bruno@clisp.org>
48745
48746         New abstract list operation 'node_set_value'.
48747         * lib/gl_list.h (gl_list_node_set_value): New function.
48748         (struct gl_list_implementation): New field node_set_value.
48749         * lib/gl_list.c (gl_list_node_set_value): New function.
48750         * lib/gl_array_list.c (gl_array_node_set_value): New function.
48751         (gl_array_list_implementation): Update.
48752         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
48753         (gl_carray_list_implementation): Update.
48754         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
48755         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48756         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48757         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
48758         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48759         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48760         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48761         Update.
48762         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48763         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
48764         (gl_sublist_list_implementation): Update.
48765
48766 2008-02-10  Bruno Haible  <bruno@clisp.org>
48767
48768         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
48769         Needed when ELEMENT is #defined to 'some_type *'.
48770
48771 2008-02-10  Jim Meyering  <meyering@redhat.com>
48772
48773         New script and module: useless-if-before-free
48774         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
48775         * build-aux/useless-if-before-free: New file.
48776         * modules/useless-if-before-free: New file.
48777
48778         * build-aux/gitlog-to-changelog: Use committer date, not author date.
48779
48780         xstrtol_error: Fix typo.
48781         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
48782         s/exit_failure/exit_status/.
48783
48784 2008-02-09  Jim Meyering  <meyering@redhat.com>
48785
48786         New script and module: gitlog-to-changelog
48787         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
48788         * modules/gitlog-to-changelog: New file.
48789         * build-aux/gitlog-to-changelog: New file.
48790
48791 2008-02-08  Jim Meyering  <meyering@redhat.com>
48792
48793         Avoid two "parameter unused" warnings.
48794         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
48795         Mark "st" as used.
48796
48797         Use "git COMMAND", not "git-COMMAND".
48798         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
48799         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
48800         * build-aux/git-version-gen: Use "git status", not "git-status".
48801
48802 2008-02-07  Bruno Haible  <bruno@clisp.org>
48803
48804         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
48805         Avoids a crash on Windows Vista.
48806         Reported by Adam Strzelecki <ono@java.pl> via
48807         Simon Josefsson <simon@josefsson.org>.
48808
48809 2008-02-06  Bruno Haible  <bruno@clisp.org>
48810
48811         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
48812         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
48813         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
48814         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
48815         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48816         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48817         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
48818         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
48819         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48820         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48821         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48822         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48823         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48824         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48825         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48826         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
48827         left-adjust flag.
48828         * tests/test-snprintf-posix.h (test_function): Likewise.
48829         * tests/test-sprintf-posix.h (test_function): Likewise.
48830         * tests/test-vasprintf-posix.c (test_function): Likewise.
48831         * doc/posix-functions/fprintf.texi: Update.
48832         * doc/posix-functions/printf.texi: Update.
48833         * doc/posix-functions/snprintf.texi: Update.
48834         * doc/posix-functions/sprintf.texi: Update.
48835         * doc/posix-functions/vfprintf.texi: Update.
48836         * doc/posix-functions/vprintf.texi: Update.
48837         * doc/posix-functions/vsnprintf.texi: Update.
48838         * doc/posix-functions/vsprintf.texi: Update.
48839         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48840
48841 2008-02-06  Bruno Haible  <bruno@clisp.org>
48842
48843         Fix bug introduced on 2008-01-26.
48844         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
48845
48846 2008-02-06  Bruno Haible  <bruno@clisp.org>
48847
48848         Fix bug introduced on 2007-06-10.
48849         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
48850         !NEED_PRINTF_FLAG_ZERO.
48851
48852 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
48853
48854         getloadavg: use libperfstat on AIX5
48855         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
48856
48857 2008-02-03  Bruno Haible  <bruno@clisp.org>
48858
48859         * lib/diffseq.h: Add comments about required #includes.
48860         Reported by Michael Biggs <gnulib@doubleplum.net>.
48861
48862 2008-02-01  Bruno Haible  <bruno@clisp.org>
48863
48864         * users.txt: Add gnuit.
48865
48866 2008-01-31  Bruno Haible  <bruno@clisp.org>
48867
48868         * lib/md4.c (set_uint32): Mark as inline.
48869         * lib/md5.c (set_uint32): Likewise.
48870         * lib/sha1.c (set_uint32): Likewise.
48871         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
48872         * m4/md5.m4 (gl_MD5): Likewise.
48873         * m4/sha1.m4 (gl_SHA1): Likewise.
48874
48875 2008-01-31  Jim Meyering  <meyering@redhat.com>
48876
48877         Use "sizeof VAR", rather than a literal "4".
48878         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
48879         * lib/md4.c (md4_read_ctx): Likewise.
48880         * lib/sha1.c (sha1_read_ctx): Likewise.
48881
48882 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48883
48884         * tests/test-sha1.c: New file, based on test-md5.c.
48885
48886         * modules/crypto/sha1-tests: New file.
48887
48888 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48889
48890         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
48891
48892 2008-01-31  Jim Meyering  <meyering@redhat.com>
48893
48894         Prefer "sizeof v" over the equivalent "4".
48895         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
48896         * lib/md5.c (set_uint32): Likewise.
48897         * lib/sha1.c (set_uint32): Likewise.
48898
48899 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48900
48901         * lib/sha1.c (set_uint32): Mark function as static.
48902
48903 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48904
48905         md2: clarify comments to say that alignment is not required.
48906         * lib/md2.h: Remove warning about alignment in comment.
48907         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48908         never been required.
48909
48910 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48911
48912         md4: adapt alignment constraint fix from sha1.
48913         * lib/md4.c (set_uint32): New function, from sha1.c
48914         (md4_read_ctx): Use it.
48915         (md4_finish_ctx): Doc fix.
48916         * lib/md4.h: Doc fix.
48917
48918 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48919
48920         md5: adapt alignment constraint fix from sha1.
48921         * lib/md5.c (set_uint32): New function, from sha1.c
48922         (md5_read_ctx): Use it.
48923         (md5_finish_ctx): Doc fix.
48924         * lib/md5.h: Doc fix.
48925
48926 2008-01-30  Peter Palfrader  <weasel@debian.org>
48927
48928         sha1: remove the result buffer alignment constraint
48929         * lib/sha1.c (set_uint32): New function.
48930         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48931         constraint.
48932         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48933         * lib/sha1.h: Likewise.
48934
48935 2008-01-30  Andreas Schwab  <schwab@suse.de>
48936             Bruno Haible  <bruno@clisp.org>
48937
48938         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48939         correct definition of LDBL_MIN_EXP.
48940
48941 2008-01-30  Karl Berry  <karl@gnu.org>
48942
48943         * config/srclist-update: try to preserve x bit on updates.
48944         * config/srclistvars.sh: update for karl.
48945
48946 2008-01-29  Jim Meyering  <meyering@redhat.com>
48947
48948         vasnprintf.c: Avoid warning about unused label
48949         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48950         "overflow" label definition and associated code with the
48951         same cpp condition that guards the sole use of that label.
48952
48953 2008-01-26  Bruno Haible  <bruno@clisp.org>
48954
48955         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48956         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48957         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48958         * lib/isnanl-nolibm.h (isnanl): Likewise.
48959         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48960
48961 2008-01-26  Bruno Haible  <bruno@clisp.org>
48962
48963         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48964         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48965
48966 2008-01-26  Bruno Haible  <bruno@clisp.org>
48967
48968         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48969         GCC >= 4.0 built-in.
48970         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48971
48972 2008-01-26  Bruno Haible  <bruno@clisp.org>
48973
48974         Rename isnan, applicable to 'double' only, to isnand.
48975         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48976         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48977         (configure.ac): Update.
48978         (Include): Replace "isnan.h" with "isnand.h".
48979         * m4/isnand.m4: Renamed from m4/isnan.m4.
48980         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48981         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48982         instead of isnan.c.
48983         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48984         instead of HAVE_ISNAN_IN_LIBC.
48985         (isnand): Renamed from isnan.
48986         * lib/isnand.c: New file.
48987         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48988         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48989         (Makefile.am): Update.
48990         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48991         Include isnand.h instead of isnan.h.
48992         (main): Test isnand instead of isnan.
48993         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48994         isnan-nolibm.
48995         * modules/frexp (Depends-on): Likewise.
48996         * modules/frexp-tests (Depends-on): Likewise.
48997         * modules/frexp-nolibm (Depends-on): Likewise.
48998         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48999         * modules/isfinite (Depends-on): Likewise.
49000         * modules/round-tests (Depends-on): Likewise.
49001         * modules/signbit (Depends-on): Likewise.
49002         * modules/signbit-tests (Depends-on): Likewise.
49003         * modules/snprintf-posix (Depends-on): Likewise.
49004         * modules/sprintf-posix (Depends-on): Likewise.
49005         * modules/trunc-tests (Depends-on): Likewise.
49006         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49007         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49008         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49009         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49010         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49011         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49012         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49013         * modules/vasnprintf-posix (Depends-on): Likewise.
49014         * modules/vasprintf-posix (Depends-on): Likewise.
49015         * modules/vfprintf-posix (Depends-on): Likewise.
49016         * modules/vsnprintf-posix (Depends-on): Likewise.
49017         * modules/vsprintf-posix (Depends-on): Likewise.
49018         * lib/frexp.c: Include isnand.h instead of isnan.h.
49019         (ISNAN): Set to isnand instead of isnan.
49020         * lib/isfinite.c: Include isnand.h instead of isnan.h.
49021         (gl_isfinited): Use isnand instead of isnan.
49022         * lib/signbitd.c: Include isnand.h instead of isnan.h.
49023         (gl_signbitd): Use isnand instead of isnan.
49024         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
49025         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
49026         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
49027         (main): Use isnand instead of isnan.
49028         * tests/test-round1.c: Include isnand.h.
49029         (main): Use isnand instead of isnan.
49030         * tests/test-round2.c: Include isnand.h instead of isnan.h.
49031         (ISNAN): Set to isnand instead of isnan.
49032         * tests/test-trunc1.c: Include isnand.h.
49033         (main): Use isnand instead of isnan.
49034         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
49035         (equal): Use isnand instead of isnan.
49036         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
49037         isnand-nolibm.
49038         * NEWS: Mention the change.
49039
49040 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
49041             Bruno Haible  <bruno@clisp.org>
49042
49043         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
49044         the GCC builtins for signbits are present and set
49045         REPLACE_SIGNBIT_USING_GCC if so.
49046         * lib/math.in.h (signbit): Define using GCC builtins if
49047         REPLACE_SIGNBIT_USING_GCC is set.
49048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
49049         REPLACE_SIGNBIT_USING_GCC.
49050         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
49051
49052 2008-01-25  Jim Meyering  <meyering@redhat.com>
49053
49054         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
49055         * lib/poll.c: Include <config.h>, not "config.h".
49056         * tests/test-getaddrinfo.c: Likewise.
49057
49058 2008-01-25  Simon Josefsson  <simon@josefsson.org>
49059
49060         * modules/sockets-tests: New file.
49061
49062 2008-01-24  Simon Josefsson  <simon@josefsson.org>
49063
49064         * modules/sockets: New module, can be used to call WSA_Startup and
49065         WSA_Cleanup when needed.
49066
49067         * lib/sockets.h, lib/sockets.c: New files.
49068
49069         * m4/sockets.m4: New file.
49070
49071         * tests/test-sockets.c: New file.
49072
49073 2008-01-19  Bruno Haible  <bruno@clisp.org>
49074
49075         * doc/posix-headers: Renamed from doc/headers.
49076         * doc/posix-functions: Renamed from doc/functions.
49077         * doc/gnulib.texi: Update.
49078
49079 2008-01-19  Bruno Haible  <bruno@clisp.org>
49080
49081         * doc/glibc-functions/strcasestr.texi: Include contents of
49082         doc/functions/strcasestr.texi, fixing the list of platforms.
49083         * doc/functions/strcasestr.texi: Remove file.
49084
49085 2008-01-19  Bruno Haible  <bruno@clisp.org>
49086
49087         * doc/glibc-functions/memmem.texi: Include contents of
49088         doc/functions/memmem.texi.
49089         * doc/functions/memmem.texi: Remove file.
49090
49091 2008-01-18  Bruno Haible  <bruno@clisp.org>
49092
49093         * doc/glibc-functions/*.texi: New files.
49094         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
49095         to use the new files.
49096
49097 2008-01-17  Bruno Haible  <bruno@clisp.org>
49098
49099         * tests/test-gethostname.c (main): Fix printf statement.
49100
49101 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49102
49103         * modules/gethostname-tests: New file.
49104
49105         * tests/test-gethostname.c: New file.
49106
49107 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49108
49109         * lib/gethostname.c: Include string.h unconditionally, strncpy is
49110         used by the UNAME case.  Reported by Bruno Haible
49111         <bruno@clisp.org>.
49112
49113 2008-01-17  Eric Blake  <ebb9@byu.net>
49114
49115         Convert c-strcasestr to be more efficient.
49116         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
49117         (Depends-on): Add c-strcase, remove malloca, strnlen.
49118         * tests/test-c-strcasestr.c (main): Enhance test.
49119         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
49120
49121 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49122
49123         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
49124         Use it in creating po/Makevars.
49125
49126 2008-01-15  Simon Josefsson  <simon@josefsson.org>
49127
49128         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
49129         Applications that requires it should initialize libgcrypt
49130         manually.
49131
49132 2008-01-16  Simon Josefsson  <simon@josefsson.org>
49133
49134         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
49135
49136 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
49137
49138         Fix problem with getdate on mingw32 reported by Simon Josefsson
49139         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
49140         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
49141         tzname", when deciding whether to declare tzname.
49142         * lib/strftime.c (tzname): Likewise.
49143
49144 2008-01-15  Bruno Haible  <bruno@clisp.org>
49145
49146         Work around a MacOS X 10.5 bug in frexpl().
49147         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
49148         * doc/functions/frexpl.texi: Document the bug.
49149         Reported by Elias Pipping <pipping@gentoo.org>.
49150
49151 2008-01-14  Eric Blake  <ebb9@byu.net>
49152
49153         Touch up previous patch.
49154         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
49155         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
49156
49157         Convert strcasestr module to use Two-Way algorithm.
49158         * modules/strcasestr-simple: New module, based on the old
49159         strcasestr, but with Two-Way rather than KMP.
49160         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
49161         * lib/string.in.h (rpl_strcasestr): Declare.
49162         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
49163         performance.
49164         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
49165         * modules/string (Makefile.am): Support strcasestr.
49166         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49167         * modules/strcasestr-tests (Depends-on): Check for alarm.
49168         * tests/test-strcasestr.c: Augment test.
49169         * lib/str-two-way.h: Clean up stray macro.
49170         * NEWS: Document new module.
49171         * MODULES.html.sh (string handling): Likewise.
49172         * doc/functions/strcasestr.texi: New file.
49173         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
49174         here, since it is not a POSIX function.
49175
49176 2008-01-14  Colin Watson  <cjwatson@debian.org>
49177             Bruno Haible  <bruno@clisp.org>
49178
49179         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
49180         works fine; if not, set REPLACE_STRSIGNAL.
49181         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
49182         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49183         REPLACE_STRSIGNAL.
49184         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
49185         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
49186         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
49187
49188 2008-01-14  Bruno Haible  <bruno@clisp.org>
49189
49190         * modules/strsignal (Include): Change to <string.h>.
49191
49192 2008-01-14  Colin Watson  <cjwatson@debian.org>
49193
49194         * modules/argp (Notice): Add a notice recommending to change
49195         XGETTEXT_OPTIONS.
49196         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
49197
49198 2008-01-13  Colin Watson  <cjwatson@debian.org>
49199
49200         * modules/strsignal-tests: New file.
49201         * tests/test-strsignal.c: New file.
49202
49203         * lib/strsignal.c: New file, from glibc with modifications.
49204         * lib/siglist.h: New file, from glibc with modifications.
49205         * lib/string.in.h (strsignal): New declaration.
49206         * m4/strsignal.m4: New file.
49207         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49208         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
49209         * modules/strsignal: New file.
49210         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
49211         HAVE_DECL_STRSIGNAL.
49212
49213 2008-01-13  Bruno Haible  <bruno@clisp.org>
49214
49215         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
49216         locale encoding is not ASCII. Needed for OpenBSD 4.0.
49217         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49218         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49219
49220 2008-01-13  Bruno Haible  <bruno@clisp.org>
49221
49222         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
49223         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
49224         * lib/argp.h (__attribute__): Likewise.
49225         * lib/c-stack.c (__attribute__): Likewise.
49226         * lib/error.h (__attribute__): Likewise.
49227         * lib/fts.c (__attribute__): Likewise.
49228         * lib/openat.h (__attribute__): Likewise.
49229         * lib/stdio.in.h (__attribute__): Likewise.
49230         * lib/string.in.h (__attribute__): Likewise.
49231         * lib/utimens.c (__attribute__): Likewise.
49232         * lib/vasnprintf.h (__attribute__): Likewise.
49233         * lib/xalloc.h (__attribute__): Likewise.
49234         * lib/xprintf.h (__attribute__): Likewise.
49235         * lib/xstrtol.h (__attribute__): Likewise.
49236         * lib/xvasprintf.h (__attribute__): Likewise.
49237
49238 2008-01-12  Bruno Haible  <bruno@clisp.org>
49239
49240         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
49241         * doc/glibc-headers/a.out.texi: New file.
49242         * doc/glibc-headers/aliases.texi: New file.
49243         * doc/glibc-headers/alloca.texi: New file.
49244         * doc/glibc-headers/ar.texi: New file.
49245         * doc/glibc-headers/argp.texi: New file.
49246         * doc/glibc-headers/argz.texi: New file.
49247         * doc/glibc-headers/byteswap.texi: New file.
49248         * doc/glibc-headers/crypt.texi: New file.
49249         * doc/glibc-headers/endian.texi: New file.
49250         * doc/glibc-headers/envz.texi: New file.
49251         * doc/glibc-headers/err.texi: New file.
49252         * doc/glibc-headers/error.texi: New file.
49253         * doc/glibc-headers/execinfo.texi: New file.
49254         * doc/glibc-headers/fpu_control.texi: New file.
49255         * doc/glibc-headers/fstab.texi: New file.
49256         * doc/glibc-headers/fts.texi: New file.
49257         * doc/glibc-headers/getopt.texi: New file.
49258         * doc/glibc-headers/ieee754.texi: New file.
49259         * doc/glibc-headers/ifaddrs.texi: New file.
49260         * doc/glibc-headers/libintl.texi: New file.
49261         * doc/glibc-headers/mcheck.texi: New file.
49262         * doc/glibc-headers/mntent.texi: New file.
49263         * doc/glibc-headers/obstack.texi: New file.
49264         * doc/glibc-headers/paths.texi: New file.
49265         * doc/glibc-headers/printf.texi: New file.
49266         * doc/glibc-headers/pty.texi: New file.
49267         * doc/glibc-headers/resolv.texi: New file.
49268         * doc/glibc-headers/shadow.texi: New file.
49269         * doc/glibc-headers/sysexits.texi: New file.
49270         * doc/glibc-headers/ttyent.texi: New file.
49271
49272 2008-01-12  Jim Meyering  <meyering@redhat.com>
49273
49274         announce-gen: emit Gnulib's git-based version string.
49275         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
49276         New option --gnulib-version=V, where V is expected to be
49277         the output of running git describe in the gnulib directory.
49278         (get_tool_versions): Request feedback on xdelta.  I suspect it's
49279         not useful, and plan to stop publishing an xdelta file with each
49280         coreutils release.
49281
49282         * build-aux/announce-gen: Also check for lzma-compressed files.
49283
49284 2008-01-11  Bruno Haible  <bruno@clisp.org>
49285
49286         * tests/test-memmem.c (main): Increase maximum allowed time.
49287         * tests/test-strstr.c (main): Likewise.
49288
49289 2008-01-11  Bruno Haible  <bruno@clisp.org>
49290
49291         * doc/functions/memmem.texi: Add more precisions about platforms.
49292         * doc/functions/strstr.texi: Likewise.
49293
49294 2008-01-10  Eric Blake  <ebb9@byu.net>
49295
49296         * m4/strstr.m4: Delete cruft from copy-n-paste.
49297         Reported by Bruno Haible.
49298
49299 2008-01-10  Bruno Haible  <bruno@clisp.org>
49300
49301         Make c-strstr rely on strstr.
49302         * lib/c-strstr.c: Don't include str-kmp.h.
49303         (c_strstr): Define in terms of strstr.
49304         * modules/c-strstr (Files): Remove lib/str-kmp.h.
49305         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
49306
49307 2008-01-10  Bruno Haible  <bruno@clisp.org>
49308
49309         * doc/gnulib.texi (String Functions in C Locale): New section.
49310         * doc/c-ctype.texi: New file.
49311         * doc/c-strcase.texi: New file.
49312         * doc/c-strcaseeq.texi: New file.
49313         * doc/c-strcasestr.texi: New file.
49314         * doc/c-strstr.texi: New file.
49315         * doc/c-strtod.texi: New file.
49316         * doc/c-strtold.texi: New file.
49317
49318 2008-01-10  Eric Blake  <ebb9@byu.net>
49319
49320         * lib/relocatable.h: Fix a comment.
49321
49322 2008-01-10  Eric Blake  <ebb9@byu.net>
49323
49324         Share two-way algorithm.
49325         * lib/str-two-way.h: New file, merged from...
49326         * lib/memmem.c: ...here...
49327         * lib/strstr.c: ...and here.
49328         * modules/memmem (Files): Use it.
49329         * modules/strstr (Files): Likewise.
49330
49331         Avoid quadratic strstr implementations.
49332         * lib/strstr.c: New file.
49333         * m4/strstr.m4: Likewise.
49334         * modules/strstr: Likewise.
49335         * modules/strstr-tests: Likewise.
49336         * tests/test-strstr.c: Likewise.
49337         * lib/string.in.h (rpl_strstr): Declare.
49338         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
49339         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
49340         * modules/string (Makefile.am): Likewise.
49341         * MODULES.html.sh (string handling): Mention new module.
49342         * doc/functions/strstr.texi (strstr): Document the bug.
49343
49344 2008-01-10  Bruno Haible  <bruno@clisp.org>
49345
49346         * lib/relocatable.h (relocate): State whether result is freshly
49347         allocated or not.
49348         * lib/relocatable.c (relocate): Return a freshly allocated string
49349         instead of a pointer to a privately held string.
49350         Reported by Sylvain Beucler <beuc@gnu.org>.
49351
49352 2008-01-10  Colin Watson  <cjwatson@debian.org>
49353
49354         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
49355         s/S_ISNLK/S_ISLNK/.
49356
49357 2008-01-09  Bruno Haible  <bruno@clisp.org>
49358
49359         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
49360         and other files.
49361         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
49362         if it's only a guess.
49363         * modules/memmem: Simplify by depending on memmem-simple.
49364
49365 2008-01-09  Bruno Haible  <bruno@clisp.org>
49366
49367         Work around OpenBSD 4.0 tdelete() bug.
49368         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
49369         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
49370         macros and don't redefine the enum values.
49371         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
49372         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
49373         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
49374
49375 2008-01-09  Bruno Haible  <bruno@clisp.org>
49376
49377         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
49378         (main): Don't perform the tests if setlocale did not install a UTF-8
49379         locale. Needed on OpenBSD 4.0.
49380         * modules/wcwidth-tests (Depends-on): Add localcharset.
49381
49382 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49383
49384         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
49385         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
49386         * NEWS: announce this.
49387         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
49388
49389 2008-01-09  Simon Josefsson  <simon@josefsson.org>
49390         and Eric Blake  <ebb9@byu.net>
49391
49392         Add memmem-simple module.
49393         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
49394         (gl_FUNC_MEMMEM): Separate performance from presence checks.
49395         * modules/memmem-simple: New file.
49396         * modules/memmem (Description): Tweak.
49397         * MODULES.html.sh (string handling): Mention new module.
49398         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
49399         addressed by memmem-simple.
49400         * NEWS: Document the difference.
49401
49402 2008-01-09  Eric Blake  <ebb9@byu.net>
49403
49404         Give gcc some memmem optimization hints.
49405         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
49406         (strcasestr): Declare as pure.
49407         * modules/memmem (Maintainer): Claim my implementation.
49408
49409 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49410
49411         Support AIX 6.1 and higher.
49412         * build-aux/config.libpath: Likewise.
49413         * build-aux/config.rpath: Likewise.
49414
49415 2008-01-08  Jim Meyering  <meyering@redhat.com>
49416             Bruno Haible  <bruno@clisp.org>
49417
49418         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
49419         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
49420         Reported by Peter Fales in
49421         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
49422
49423 2008-01-08  Bruno Haible  <bruno@clisp.org>
49424
49425         * modules/unictype/category-of (Depends-on): Add
49426         unictype/category-none.
49427         * modules/unictype/category-and-tests (Depends-on): Add
49428         unictype/category-{L,N,Lu,Nd}.
49429         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
49430         * modules/unictype/category-or-tests (Depends-on): Add
49431         unictype/category-{L,N}.
49432         * modules/unictype/category-name-tests (Depends-on): Add
49433         unictype/category-{Z,Nl}.
49434         Reported by Simon Josefsson.
49435
49436 2008-01-08  Bruno Haible  <bruno@clisp.org>
49437
49438         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
49439         convention better.
49440         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
49441         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
49442         Reported by Peter Miller <millerp@canb.auug.org.au>.
49443
49444 2008-01-08  Eric Blake  <ebb9@byu.net>
49445
49446         Rewrite memmem to guarantee linear complexity without malloc.
49447         * lib/memmem.c (memmem): Use Two-Way rather than
49448         Knuth-Morris-Pratt, to allow O(1) space usage.
49449         (critical_factorization, two_way_short_needle)
49450         (two_way_long_needle): New functions.
49451         (knuth_morris_pratt): Delete.
49452         * modules/memmem (Depends-on): No longer need malloca or stdbool.
49453         Add stdint.
49454         * tests/test-memmem.c (main): Add tests for periodic needle and
49455         sublinear performance.
49456         * doc/functions/memmem.texi (memmem): Document other deficiencies
49457         in cygwin and older glibc.
49458
49459 2008-01-08  Bruno Haible  <bruno@clisp.org>
49460
49461         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
49462         augmentation.
49463
49464 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
49465
49466         Add a configure time option: --disable-acl.
49467         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
49468         AC_ARG_ENABLE(acl).
49469
49470 2008-01-06  Simon Josefsson  <simon@josefsson.org>
49471
49472         * tests/test-localename.c: Don't include obsolete "setenv.h".
49473
49474         * modules/localename-tests (Depends-on): Need unsetenv.
49475
49476 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49477
49478         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
49479
49480 2008-01-06  Colin Watson  <cjwatson@debian.org>
49481
49482         * users.txt: Add man-db.
49483
49484 2008-01-07  Bruno Haible  <bruno@clisp.org>
49485
49486         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
49487         previous section name.
49488
49489 2008-01-07  Bruno Haible  <bruno@clisp.org>
49490
49491         * lib/progname.c (set_program_name): Don't strip off a leading
49492         "lt-" prefix outside a .libs directory.
49493         Suggested by Paul Eggert.
49494
49495 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
49496             Bruno Haible  <bruno@clisp.org>
49497
49498         Improve memory cleanup in 'relocatable' module.
49499         * lib/relocatable.h (compute_curr_prefix): Change return type to
49500         'char *'.
49501         * lib/relocatable.c (compute_curr_prefix): Change return type to
49502         'char *'. Free curr_installdir after use.
49503         (relocate): Free curr_prefix_better after use.
49504         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
49505
49506 2008-01-01  Bruno Haible  <bruno@clisp.org>
49507
49508         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
49509         failure on older glibc systems.
49510         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49511
49512 2008-01-05  Eric Blake  <ebb9@byu.net>
49513
49514         Avoid quadratic system memmem.
49515         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
49516         Reported by Ralf Wildenhues.
49517
49518         Fix memmem test for mingw.
49519         * modules/memmem-tests (configure.ac): Check for alarm.
49520         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
49521         it.
49522         * doc/functions/memmem.texi: New file.
49523         * doc/gnulib.texi (Function Substitutes): Add memmem.
49524         Reported by Bruno Haible.
49525
49526 2008-01-04  Bruno Haible  <bruno@clisp.org>
49527
49528         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
49529         Require gl_HEADER_STRINGS_H_DEFAULTS, not
49530         gl_HEADER_STRING_H_DEFAULTS.
49531
49532 2008-01-04  Eric Blake  <ebb9@byu.net>
49533
49534         Shorten duration of memmem test.
49535         * tests/test-memmem.c (main): Use alarm to declare failure if test
49536         is taking too long.
49537         Reported by Ralf Wildenhues.
49538
49539 2007-12-21  Simon Josefsson  <simon@josefsson.org>
49540
49541         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
49542         string, needed by strerror.
49543
49544 2008-01-03  Colin Watson  <cjwatson@debian.org>
49545             Bruno Haible  <bruno@clisp.org>
49546
49547         * doc/gnulib-tool.texi (Localization): New section.
49548
49549 2008-01-02  Bruno Haible  <bruno@clisp.org>
49550
49551         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
49552         variables to 'unsigned char *' type.
49553         Reported by Paul Eggert.
49554
49555 2008-01-02  Jim Meyering  <jim@meyering.net>
49556
49557         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
49558
49559 2007-12-31  Jim Meyering  <jim@meyering.net>
49560
49561         Avoid use of private FTS type name.
49562         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
49563
49564 2007-12-30  Karl Berry  <karl@gnu.org>
49565
49566         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
49567         work around defect in Texinfo and/or the standalone Info browser.
49568
49569 2007-12-30  Bruno Haible  <bruno@clisp.org>
49570
49571         Unify 5 copies of the KMP code.
49572         * lib/str-kmp.h: New file.
49573         * lib/c-strcasestr.c: Include str-kmp.h.
49574         (knuth_morris_pratt): Remove function.
49575         (c_strcasestr): Update.
49576         * lib/c-strstr.c: Include str-kmp.h.
49577         (knuth_morris_pratt): Remove function.
49578         (c_strcasestr): Update.
49579         * lib/mbscasestr.c: Include str-kmp.h.
49580         (knuth_morris_pratt_unibyte): Remove function.
49581         * lib/mbsstr.c: Include str-kmp.h.
49582         (knuth_morris_pratt_unibyte): Remove function.
49583         * lib/strcasestr.c: Include str-kmp.h.
49584         (knuth_morris_pratt): Remove function.
49585         (strcasestr): Update.
49586         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
49587         * modules/c-strstr (Files): Likewise.
49588         * modules/mbscasestr (Files): Likewise.
49589         * modules/mbsstr (Files): Likewise.
49590         * modules/strcasestr (Files): Likewise.
49591         Suggested by Paul Eggert.
49592
49593 2007-12-30  Bruno Haible  <bruno@clisp.org>
49594
49595         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
49596         defined.
49597
49598 2007-12-30  Bruno Haible  <bruno@clisp.org>
49599
49600         * lib/xmalloca.h: Include xalloc.h.
49601         (xnmalloca): New macro.
49602
49603 2007-12-30  Bruno Haible  <bruno@clisp.org>
49604
49605         * lib/malloca.h (nmalloca): New macro.
49606         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
49607         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
49608         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
49609         knuth_morris_pratt_multibyte): Likewise.
49610         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
49611         knuth_morris_pratt_multibyte): Likewise.
49612         * lib/memmem.c (knuth_morris_pratt): Likewise.
49613         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
49614
49615 2007-12-25  Bruno Haible  <bruno@clisp.org>
49616
49617         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
49618         * lib/glob.c: Don't include openat.h.
49619         (link_exists2_p): Add back the code that deals with the
49620         !GLOB_ALTDIRFUNC case.
49621         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
49622         let it do the filename concatenation.
49623         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
49624         * modules/glob (Depends-on): Remove openat.
49625
49626 2007-12-31  Bruno Haible  <bruno@clisp.org>
49627
49628         * modules/dirfd (License): Change to LGPLv2+.
49629         Approved by Jim Meyering.
49630
49631 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49632
49633         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
49634         when multiplying M by sizeof (size_t).
49635
49636 2007-12-10  Martin Lambers  <marlam@marlam.de>
49637
49638         Override getpagesize on mingw.
49639         * lib/getpagesize.c: New file.
49640         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
49641         * modules/getpagesize (Files): Add lib/getpagesize.c.
49642         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
49643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49644         REPLACE_GETPAGESIZE.
49645         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
49646
49647 2007-12-25  Bruno Haible  <bruno@clisp.org>
49648
49649         * modules/localcharset (Notice): New field.
49650         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
49651         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
49652
49653 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49654             Bruno Haible  <bruno@clisp.org>
49655
49656         Avoid using the syntax symbol() in formatted documentation.
49657         * MODULES.html.sh (func_module): When replacing symbol() with a
49658         hyperlink, remove the parentheses. Show an error if some remain.
49659         Recognize and render the '...' syntax.
49660         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
49661         Rework. Add paragraph about GCC's inlining.
49662         * doc/alloca.texi: Likewise.
49663         * doc/error.texi: Remove parentheses from symbol reference.
49664         * doc/gnulib-intro.texi: Likewise.
49665         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
49666         * modules/fnmatch (Description): Reword to say "the ... function".
49667         * modules/full-read (Description): Likewise.
49668         * modules/full-write (Description): Likewise.
49669         * modules/safe-read (Description): Likewise.
49670         * modules/safe-write (Description): Likewise.
49671         * modules/strchrnul (Description): Likewise.
49672         * modules/trim (Description): Likewise.
49673         * modules/error (Description): Remove parentheses from symbol
49674         references.
49675         * modules/verror (Description): Likewise.
49676         Reported by Karl Berry.
49677
49678 2007-12-25  Bruno Haible  <bruno@clisp.org>
49679
49680         Fixup after 2007-10-16 commit.
49681         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
49682
49683 2007-12-24  Bruno Haible  <bruno@clisp.org>
49684
49685         Make --enable-relocatable work with DESTDIR.
49686         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
49687         to compute installdir from destprog.
49688         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
49689         also set the RELOC_DESTDIR variable.
49690         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49691
49692 2007-12-24  Bruno Haible  <bruno@clisp.org>
49693
49694         Fix link error due to xalloc_die().
49695         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
49696         of xreadlink.
49697         * lib/relocwrapper.c: Update comments.
49698         * build-aux/install-reloc: Remove xreadlink.c from file list.
49699         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
49700         xreadlink.c.
49701         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49702
49703 2007-12-24  Bruno Haible  <bruno@clisp.org>
49704
49705         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
49706         * lib/setenv.h: Remove file.
49707         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
49708         lib/setenv.h.
49709         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
49710         (Depends-on): Add stdlib.
49711         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
49712         gl_FUNC_UNSETENV.
49713         (Include): Replace setenv.h with <stdlib.h>.
49714         * modules/unsetenv: New file.
49715         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
49716         * lib/unsetenv.c: Include <stdlib.h> first.
49717         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
49718         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
49719         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
49720         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
49721         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
49722         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
49724         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49725         * doc/functions/unsetenv.texi: Update.
49726         * modules/xsetenv (Depends-on): Add unsetenv.
49727         * modules/getdate (Depends-on): Likewise.
49728         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
49729         * lib/xsetenv.c: Don't include setenv.h.
49730         * lib/getdate.y: Likewise.
49731         * lib/relocwrapper.c: Likewise.
49732         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
49733         (Depends-on): Add stdlib.
49734         * NEWS: Mention the changes.
49735         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49736
49737 2007-12-23  Bruno Haible  <bruno@clisp.org>
49738
49739         * lib/memmem.c (memmem): Use lowercase variable names. Tab
49740         indentation.
49741
49742 2007-12-23  Bruno Haible  <bruno@clisp.org>
49743
49744         * lib/c-strcasestr.c: Add more comments.
49745         * lib/c-strstr.c: Likewise.
49746         * lib/mbscasestr.c: Likewise.
49747         * lib/mbsstr.c: Likewise.
49748         * lib/strcasestr.c: Likewise.
49749         * lib/memmem.c: Likewise.
49750
49751 2007-12-23  Bruno Haible  <bruno@clisp.org>
49752
49753         * tests/test-memmem.c: Include <string.h> first.
49754
49755 2007-12-22  Bruno Haible  <bruno@clisp.org>
49756
49757         * gnulib-tool (func_create_testdir): Change $auxdir while generating
49758         the contents of $testsbase.
49759         Reported by Ralf Wildenhues.
49760
49761 2007-12-22  Bruno Haible  <bruno@clisp.org>
49762
49763         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
49764         two variables local_ldadd_before, local_ldadd_last.
49765
49766 2007-12-20  Eric Blake  <ebb9@byu.net>
49767
49768         Work around circular library issue when cross-compiling.
49769         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
49770         that progname.o does not need to pull in rpl_memcmp.
49771
49772 2007-12-19  Eric Blake  <ebb9@byu.net>
49773
49774         Fix memmem to avoid O(n^2) worst-case complexity.
49775         * lib/memmem.c (knuth_morris_pratt): New function.
49776         (memmem): Use it if first few naive iterations fail.
49777         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
49778         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
49779         * modules/memchr (License): Likewise.
49780         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
49781         malloca.
49782         * tests/test-memmem.c: Rewrite, borrowing ideas from
49783         test-mbsstr1.c; the old version wouldn't even compile!
49784         * modules/memmem-tests: New file.
49785         * lib/string.in.h (rpl_memmem): Add declaration.
49786         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
49787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
49788         REPLACE_MEMMEM.
49789
49790 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49791
49792         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
49793         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
49794         before any system include files, and undef after them all.  This
49795         should fix a problem on VMS reported by John E. Malmberg in
49796         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
49797
49798 2007-12-17  Eric Blake  <ebb9@byu.net>
49799
49800         Revert addition of verify, for BSD/OS.
49801         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
49802         can't handle large files, for the sake of obsolete platforms.
49803         * modules/fseeko (Depends-on): Remove verify.
49804         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
49805         * doc/functions/ftello.texi (ftello): Likewise.
49806         * doc/functions/fgetpos.texi (fgetpos): Likewise.
49807         Reported by Larry Jones.
49808
49809 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
49810
49811         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
49812         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
49813
49814 2007-12-17  Jim Meyering  <meyering@redhat.com>
49815
49816         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
49817         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
49818         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
49819         * modules/getcwd (Depends-on): Add openat.
49820         Reported by Petr Salinger.
49821
49822 2007-12-17  Bruno Haible  <bruno@clisp.org>
49823
49824         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
49825         avoid a segmentation fault of the configure test on x86_64 systems.
49826
49827 2007-12-15  Jim Meyering  <meyering@redhat.com>
49828
49829         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
49830
49831 2007-12-13  Eric Blake  <ebb9@byu.net>
49832
49833         Another fseek test.
49834         * tests/test-fseek.c (main): Also test ungetc handling.
49835         * tests/test-fseeko.c (main): Likewise.
49836         * modules/fseeko (Depends-on): Add verify.
49837         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
49838         large.
49839         Reported by Larry Jones.
49840
49841         Fix fseeko on mingw.
49842         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
49843         seek.
49844
49845         Beef up fseek tests.
49846         * tests/test-fseek.c (main): Also test eof handling.
49847         * tests/test-fseeko.c (main): Likewise.
49848         Reported by Larry Jones.
49849
49850 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
49851
49852         Fix fseeko on BSD-based platforms.
49853         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
49854         successful seek.
49855
49856 2007-12-12  Eric Blake  <ebb9@byu.net>
49857
49858         Allow circular dependency of separate libtests.a
49859         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
49860         when use_libtests.
49861
49862 2007-12-11  Eric Blake  <ebb9@byu.net>
49863
49864         Fix bug with -0.0L in previous patch.
49865         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
49866         * tests/test-isnan.c (main): Also test on zeroes.
49867         * tests/test-isnanf.c (main): Likewise.
49868         * tests/test-isnanl.h (main): Likewise.
49869
49870         Detect pseudo-denormals on x86 even when cross-compiling.
49871         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
49872         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
49873         invalid bit patterns that happen to satisfy ==.
49874
49875         Avoid link failures with separate libtests.a.
49876         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
49877         last, to satisfy circular dependencies.
49878
49879 2007-12-11  Eric Blake  <ebb9@byu.net>
49880         and Bruno Haible  <bruno@clisp.org>
49881
49882         Fix OpenBSD 4.0 <float.h> handling of long double.
49883         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
49884         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
49885         * doc/headers/float.texi (float.h): Document OpenBSD bug.
49886
49887 2007-12-11  Jim Meyering  <meyering@redhat.com>
49888
49889         * users.txt: Add libvirt.
49890
49891         Support versions of autoconf prior to 2.59c.
49892         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
49893         if it is not already defined.
49894
49895 2007-12-09  Bruno Haible  <bruno@clisp.org>
49896
49897         Let 'gnulib-tool --import' collect sources needed for the tests in
49898         tests/ rather than in lib/.
49899         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
49900         argument. If true, add rules to generate libtests.a, and put libtests.a
49901         into $(LDADD). Consider source files in subdirectories and set
49902         uses_subdirs.
49903         (func_emit_initmacro_start, func_emit_initmacro_end,
49904         func_emit_initmacro_done): Pass all arguments explicitly.
49905         (func_import): Determine two module lists main_modules,
49906         testsrelated_modules. Determine use_libtests. Determine two variables
49907         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49908         instead of just sed_transform_lib_file. Determine two variables
49909         main_files and testsrelated_files. Compute 'files' as the union of
49910         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49911         func_add_or_update. In the generated gnulib-comp.m4, collect the
49912         object files for tests/ in different variables than those for lib/.
49913         Substitute LIBTESTS_LIBDEPS.
49914         (func_create_testdir): Combine the uses_subdirs results from
49915         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49916
49917 2007-12-09  Bruno Haible  <bruno@clisp.org>
49918
49919         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49920         the build-aux directory.
49921
49922 2007-12-09  Bruno Haible  <bruno@clisp.org>
49923
49924         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49925         introduced on 2006-09-09.
49926
49927 2007-12-07  Jim Meyering  <meyering@redhat.com>
49928
49929         Let these macros work also with autoconf-2.59.
49930         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49931         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49932         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49933
49934 2007-12-06  Jim Meyering  <meyering@redhat.com>
49935
49936         Avoid a configure-time syntax error in gl_FUNC_ACL.
49937         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49938         function in each branch, before testing the cache variable.
49939
49940 2007-12-04  Eric Blake  <ebb9@byu.net>
49941
49942         Make scripts executable.
49943         * build-aux/config.guess: Add execute permissions.
49944         * build-aux/config.sub: Likewise.
49945         * build-aux/gendocs.sh: Likewise.
49946
49947         Fix frexp on mingw.
49948         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49949         cross-compiling.
49950         * doc/functions/frexp.texi (frexp): Document the bug.
49951
49952         Make cygwin fseeko check more reliable.
49953         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49954         version numbers, rather than unrelated feature check.
49955         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49956         * doc/functions/ftello.texi (ftello): Likewise.
49957         Reported by Bruno Haible.
49958
49959         * m4/strerror.m4: Bump version number.
49960
49961 2007-12-03  Bruno Haible  <bruno@clisp.org>
49962
49963         * doc/functions/mprotect.texi: Mention the mingw problem.
49964
49965 2007-12-03  Eric Blake  <ebb9@byu.net>
49966
49967         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49968         REPLACE_STRERROR is initialized before this macro.
49969
49970 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49971
49972         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49973         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49974         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49975         put -lsec in even for programs other than 'ls'.  This fixes a problem
49976         for gettext reported by Bruno Haible in
49977         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49978         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49979         Add support for Solaris 10.  This isn't efficient, but should get the
49980         job done for now.
49981
49982 2007-12-03  James Youngman  <jay@gnu.org>
49983
49984         * doc/regexprops-generic.texi: change "an close-group" to "a
49985         close-group" and "illegal" to "not allowed".
49986
49987 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49988
49989         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49990         pr_byname.h. Needed for the rare case when the maintainer has done
49991         "make maintainer-clean" in the source directory and then attempts a
49992         build outside the source directory.
49993         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49994         scripts_byname.h.
49995
49996 2007-12-02  Martin Lambers <marlam@marlam.de>
49997             Bruno Haible  <bruno@clisp.org>
49998
49999         * lib/getpagesize.h: Remove file.
50000         * lib/unistd.in.h: Include declaration of getpagesize here.
50001         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
50002         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
50003         HAVE_SYS_PARAM_H.
50004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
50005         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50006         * modules/getpagesize (Files): Remove lib/getpagesize.h.
50007         (Depends-on): Add unistd.
50008         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50009         (Include): Use <unistd.h> instead of getpagesize.h.
50010         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
50011         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50012         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
50013         gl_GETPAGESIZE invocation, already handled by module dependency.
50014         * lib/pagealign_alloc.c: Don't include getpagesize.h.
50015
50016 2007-12-02  Bruno Haible  <bruno@clisp.org>
50017
50018         * modules/strings-tests: New file.
50019         * tests/test-strings.c: New file.
50020
50021         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
50022         * lib/strings.in.h: New file.
50023         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
50024         * m4/strings_h.m4: New file.
50025         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
50026         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
50027         * modules/strings: New file.
50028         * modules/string (Makefile.am): Update.
50029         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
50030         Reported by Karl Berry.
50031
50032 2007-12-01  Eric Blake  <ebb9@byu.net>
50033
50034         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
50035         accomodate fix in cygwin 1.5.25.
50036
50037 2007-12-01  Jim Meyering  <meyering@redhat.com>
50038
50039         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
50040         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
50041         that would inhibit utf8-optimization of a regexp containing line-
50042         or buffer-anchors, e.g., `^', `$'.
50043
50044 2007-11-30  Bruno Haible  <bruno@clisp.org>
50045
50046         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
50047         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
50048         glthread_recursive_lock_init.
50049         * lib/lock.c (glthread_recursive_lock_init)
50050         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
50051         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50052
50053 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
50054
50055         New function qset_acl, like set_acl but with syscall semantics.
50056         * lib/acl.h (qset_acl): New decl.
50057         * lib/acl.c (qset_acl): New function.
50058         (set_acl): Use new function.  Use more-consistent diagnostics.
50059
50060 2007-11-28  Jim Meyering  <meyering@redhat.com>
50061
50062         * modules/physmem (License): Change from GPL to LGPLv2+.
50063
50064 2007-11-26  Bruno Haible  <bruno@clisp.org>
50065
50066         * lib/vasnprintf.c (decode_long_double): Don't abort if the
50067         'long double' type has excess precision.
50068         Reported by Jim Meyering in
50069         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
50070
50071 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50072
50073         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
50074         Sync from <http://gnu.org/licenses>.
50075         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
50076         with license text from same location.
50077         * doc/maintain.texi, doc/standards.texi:  Sync from
50078         <http://savannah.gnu.org/projects/gnustandards>.
50079
50080 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
50081         and Jim Meyering  <meyering@redhat.com>
50082
50083         Adjust getdate' grammar to accept a slightly more regular language.
50084         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
50085         Before, the former was rejected.
50086         * lib/getdate.y (digits_to_date_time): New function, factored
50087         out of ...
50088         (number): ...here.  Just call digits_to_date_time.
50089         (hybrid): New non-terminal to handle an <unsigned number,
50090         signed relative offset> sequence consistently.
50091
50092 2007-11-18  Jim Meyering  <meyering@redhat.com>
50093
50094         Pull my changes from coreutils:
50095         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
50096         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
50097         use of $gnulib_tool_option_extras, so that it's separated from the
50098         preceding argument.
50099
50100         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
50101         * build-aux/bootstrap (cp_mark_as_generated): Create any required
50102         parent destination directories before copying a file into place.
50103
50104 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
50105
50106         bootstrap: work also with 4-argument variant of AC_INIT
50107         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
50108
50109 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50110
50111         Port test-getaddrinfo to Solaris.
50112         Problem reported by Bruno Haible in
50113         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
50114         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
50115         explanation of setting 'hints'.
50116         Don't reject an implementation merely because it returns EAI_SERVICE.
50117         (EAI_SERVICE): Define to 0 if not defined.
50118
50119 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
50120
50121         The license of gnu-make and posix-shell is now "GPLed build tool".
50122         * modules/gnu-make (License): Likewise.
50123         * modules/posix-shell (License): Likewise.
50124
50125         New module posix-shell, for determining a POSIX shell
50126         or perhaps something that is close enough to a POSIX shell.
50127         * m4/posix-shell.m4: New file.
50128         * modules/posix-shell: New file.
50129
50130         * MODULES.html.sh: Mention new module.
50131
50132         New module gnu-make, for determining whether we're using GNU Make.
50133         * m4/gnu-make.m4: New file.
50134         * modules/gnu-make: New file.
50135         * MODULES.html.sh: Mention new module.
50136
50137 2007-11-14  Jim Meyering  <meyering@redhat.com>
50138
50139         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
50140         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
50141         use this macro to create a function _definition_.
50142         Remove useless "#undef ARGMATCH_DIE".
50143
50144 2007-11-14  Bruno Haible  <bruno@clisp.org>
50145
50146         * lib/config.charset: Update for OpenBSD 4.1.
50147         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
50148
50149 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
50150
50151         Document 64-bit #if problems in stdint.texi.
50152         * doc/headers/stdint.texi (stdint.h): Mention problems with
50153         64-bit-#if, and how to work around them.
50154
50155         Don't insist on 'long long int' support in the preprocessor.  It
50156         breaks too many things.  For example, PRIdMAX still uses a 'long
50157         long int' format with the latest Sun compiler, even though
50158         HAVE_LONG_LONG_INT isn't defined due to that compiler's
50159         preprocessor problem.  This causes the latest coreutils to dump
50160         core on Solaris 10 sparc with the Sun C compiler.
50161         Instead, fix the 2007-10-16 problem in a different way, by evaluating
50162         the troublesome expressions at configure-time, not at #if-time.
50163         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
50164         preprocessor.
50165         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
50166         compile-time C checks, done at 'configure'-time.
50167         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
50168         * modules/inttypes (Makefile): Substitute the new symbols that
50169         gl_INTTYPES_H now generates.
50170         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
50171
50172 2007-11-12  Bruno Haible  <bruno@clisp.org>
50173
50174         Tests for Unicode character classification functions.
50175
50176         * modules/unictype/bidicategory-byname-tests: New file.
50177         * modules/unictype/bidicategory-name-tests: New file.
50178         * modules/unictype/bidicategory-of-tests: New file.
50179         * modules/unictype/bidicategory-test-tests: New file.
50180         * modules/unictype/block-list-tests: New file.
50181         * modules/unictype/block-of-tests: New file.
50182         * modules/unictype/block-test-tests: New file.
50183         * modules/unictype/category-C-tests: New file.
50184         * modules/unictype/category-Cc-tests: New file.
50185         * modules/unictype/category-Cf-tests: New file.
50186         * modules/unictype/category-Cn-tests: New file.
50187         * modules/unictype/category-Co-tests: New file.
50188         * modules/unictype/category-Cs-tests: New file.
50189         * modules/unictype/category-L-tests: New file.
50190         * modules/unictype/category-Ll-tests: New file.
50191         * modules/unictype/category-Lm-tests: New file.
50192         * modules/unictype/category-Lo-tests: New file.
50193         * modules/unictype/category-Lt-tests: New file.
50194         * modules/unictype/category-Lu-tests: New file.
50195         * modules/unictype/category-M-tests: New file.
50196         * modules/unictype/category-Mc-tests: New file.
50197         * modules/unictype/category-Me-tests: New file.
50198         * modules/unictype/category-Mn-tests: New file.
50199         * modules/unictype/category-N-tests: New file.
50200         * modules/unictype/category-Nd-tests: New file.
50201         * modules/unictype/category-Nl-tests: New file.
50202         * modules/unictype/category-No-tests: New file.
50203         * modules/unictype/category-P-tests: New file.
50204         * modules/unictype/category-Pc-tests: New file.
50205         * modules/unictype/category-Pd-tests: New file.
50206         * modules/unictype/category-Pe-tests: New file.
50207         * modules/unictype/category-Pf-tests: New file.
50208         * modules/unictype/category-Pi-tests: New file.
50209         * modules/unictype/category-Po-tests: New file.
50210         * modules/unictype/category-Ps-tests: New file.
50211         * modules/unictype/category-S-tests: New file.
50212         * modules/unictype/category-Sc-tests: New file.
50213         * modules/unictype/category-Sk-tests: New file.
50214         * modules/unictype/category-Sm-tests: New file.
50215         * modules/unictype/category-So-tests: New file.
50216         * modules/unictype/category-Z-tests: New file.
50217         * modules/unictype/category-Zl-tests: New file.
50218         * modules/unictype/category-Zp-tests: New file.
50219         * modules/unictype/category-Zs-tests: New file.
50220         * modules/unictype/category-and-not-tests: New file.
50221         * modules/unictype/category-and-tests: New file.
50222         * modules/unictype/category-byname-tests: New file.
50223         * modules/unictype/category-name-tests: New file.
50224         * modules/unictype/category-none-tests: New file.
50225         * modules/unictype/category-of-tests: New file.
50226         * modules/unictype/category-or-tests: New file.
50227         * modules/unictype/category-test-withtable-tests: New file.
50228         * modules/unictype/combining-class-tests: New file.
50229         * modules/unictype/ctype-alnum-tests: New file.
50230         * modules/unictype/ctype-alpha-tests: New file.
50231         * modules/unictype/ctype-blank-tests: New file.
50232         * modules/unictype/ctype-cntrl-tests: New file.
50233         * modules/unictype/ctype-digit-tests: New file.
50234         * modules/unictype/ctype-graph-tests: New file.
50235         * modules/unictype/ctype-lower-tests: New file.
50236         * modules/unictype/ctype-print-tests: New file.
50237         * modules/unictype/ctype-punct-tests: New file.
50238         * modules/unictype/ctype-space-tests: New file.
50239         * modules/unictype/ctype-upper-tests: New file.
50240         * modules/unictype/ctype-xdigit-tests: New file.
50241         * modules/unictype/decimal-digit-tests: New file.
50242         * modules/unictype/digit-tests: New file.
50243         * modules/unictype/mirror-tests: New file.
50244         * modules/unictype/numeric-tests: New file.
50245         * modules/unictype/property-alphabetic-tests: New file.
50246         * modules/unictype/property-ascii-hex-digit-tests: New file.
50247         * modules/unictype/property-bidi-arabic-digit-tests: New file.
50248         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
50249         * modules/unictype/property-bidi-block-separator-tests: New file.
50250         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
50251         * modules/unictype/property-bidi-common-separator-tests: New file.
50252         * modules/unictype/property-bidi-control-tests: New file.
50253         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
50254         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
50255         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
50256         * modules/unictype/property-bidi-european-digit-tests: New file.
50257         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
50258         * modules/unictype/property-bidi-left-to-right-tests: New file.
50259         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
50260         * modules/unictype/property-bidi-other-neutral-tests: New file.
50261         * modules/unictype/property-bidi-pdf-tests: New file.
50262         * modules/unictype/property-bidi-segment-separator-tests: New file.
50263         * modules/unictype/property-bidi-whitespace-tests: New file.
50264         * modules/unictype/property-byname-tests: New file.
50265         * modules/unictype/property-combining-tests: New file.
50266         * modules/unictype/property-composite-tests: New file.
50267         * modules/unictype/property-currency-symbol-tests: New file.
50268         * modules/unictype/property-dash-tests: New file.
50269         * modules/unictype/property-decimal-digit-tests: New file.
50270         * modules/unictype/property-default-ignorable-code-point-tests: New file.
50271         * modules/unictype/property-deprecated-tests: New file.
50272         * modules/unictype/property-diacritic-tests: New file.
50273         * modules/unictype/property-extender-tests: New file.
50274         * modules/unictype/property-format-control-tests: New file.
50275         * modules/unictype/property-grapheme-base-tests: New file.
50276         * modules/unictype/property-grapheme-extend-tests: New file.
50277         * modules/unictype/property-grapheme-link-tests: New file.
50278         * modules/unictype/property-hex-digit-tests: New file.
50279         * modules/unictype/property-hyphen-tests: New file.
50280         * modules/unictype/property-id-continue-tests: New file.
50281         * modules/unictype/property-id-start-tests: New file.
50282         * modules/unictype/property-ideographic-tests: New file.
50283         * modules/unictype/property-ids-binary-operator-tests: New file.
50284         * modules/unictype/property-ids-trinary-operator-tests: New file.
50285         * modules/unictype/property-ignorable-control-tests: New file.
50286         * modules/unictype/property-iso-control-tests: New file.
50287         * modules/unictype/property-join-control-tests: New file.
50288         * modules/unictype/property-left-of-pair-tests: New file.
50289         * modules/unictype/property-line-separator-tests: New file.
50290         * modules/unictype/property-logical-order-exception-tests: New file.
50291         * modules/unictype/property-lowercase-tests: New file.
50292         * modules/unictype/property-math-tests: New file.
50293         * modules/unictype/property-non-break-tests: New file.
50294         * modules/unictype/property-not-a-character-tests: New file.
50295         * modules/unictype/property-numeric-tests: New file.
50296         * modules/unictype/property-other-alphabetic-tests: New file.
50297         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
50298         * modules/unictype/property-other-grapheme-extend-tests: New file.
50299         * modules/unictype/property-other-id-continue-tests: New file.
50300         * modules/unictype/property-other-id-start-tests: New file.
50301         * modules/unictype/property-other-lowercase-tests: New file.
50302         * modules/unictype/property-other-math-tests: New file.
50303         * modules/unictype/property-other-uppercase-tests: New file.
50304         * modules/unictype/property-paired-punctuation-tests: New file.
50305         * modules/unictype/property-paragraph-separator-tests: New file.
50306         * modules/unictype/property-pattern-syntax-tests: New file.
50307         * modules/unictype/property-pattern-white-space-tests: New file.
50308         * modules/unictype/property-private-use-tests: New file.
50309         * modules/unictype/property-punctuation-tests: New file.
50310         * modules/unictype/property-quotation-mark-tests: New file.
50311         * modules/unictype/property-radical-tests: New file.
50312         * modules/unictype/property-sentence-terminal-tests: New file.
50313         * modules/unictype/property-soft-dotted-tests: New file.
50314         * modules/unictype/property-space-tests: New file.
50315         * modules/unictype/property-terminal-punctuation-tests: New file.
50316         * modules/unictype/property-test-tests: New file.
50317         * modules/unictype/property-titlecase-tests: New file.
50318         * modules/unictype/property-unassigned-code-value-tests: New file.
50319         * modules/unictype/property-unified-ideograph-tests: New file.
50320         * modules/unictype/property-uppercase-tests: New file.
50321         * modules/unictype/property-variation-selector-tests: New file.
50322         * modules/unictype/property-white-space-tests: New file.
50323         * modules/unictype/property-xid-continue-tests: New file.
50324         * modules/unictype/property-xid-start-tests: New file.
50325         * modules/unictype/property-zero-width-tests: New file.
50326         * modules/unictype/scripts-tests: New file.
50327         * modules/unictype/syntax-c-ident-tests: New file.
50328         * modules/unictype/syntax-c-whitespace-tests: New file.
50329         * modules/unictype/syntax-java-ident-tests: New file.
50330         * modules/unictype/syntax-java-whitespace-tests: New file.
50331         * tests/unictype/test-bidi_byname.c: New file.
50332         * tests/unictype/test-bidi_name.c: New file.
50333         * tests/unictype/test-bidi_of.c: New file.
50334         * tests/unictype/test-bidi_test.c: New file.
50335         * tests/unictype/test-block_list.c: New file.
50336         * tests/unictype/test-block_of.c: New file.
50337         * tests/unictype/test-block_test.c: New file.
50338         * tests/unictype/test-categ_and.c: New file.
50339         * tests/unictype/test-categ_and_not.c: New file.
50340         * tests/unictype/test-categ_byname.c: New file.
50341         * tests/unictype/test-categ_name.c: New file.
50342         * tests/unictype/test-categ_none.c: New file.
50343         * tests/unictype/test-categ_of.c: New file.
50344         * tests/unictype/test-categ_or.c: New file.
50345         * tests/unictype/test-categ_test_withtable.c: New file.
50346         * tests/unictype/test-combining.c: New file.
50347         * tests/unictype/test-decdigit.c: New file.
50348         * tests/unictype/test-digit.c: New file.
50349         * tests/unictype/test-mirror.c: New file.
50350         * tests/unictype/test-numeric.c: New file.
50351         * tests/unictype/test-pr_byname.c: New file.
50352         * tests/unictype/test-pr_test.c: New file.
50353         * tests/unictype/test-predicate-part1.h: New file.
50354         * tests/unictype/test-predicate-part2.h: New file.
50355         * tests/unictype/test-scripts.c: New file.
50356         * tests/unictype/test-sy_c_ident.c: New file.
50357         * tests/unictype/test-sy_java_ident.c: New file.
50358
50359         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
50360         for Unicode 5.0.0.
50361         * tests/unictype/test-categ_Cc.c: Likewise.
50362         * tests/unictype/test-categ_Cf.c: Likewise.
50363         * tests/unictype/test-categ_Cn.c: Likewise.
50364         * tests/unictype/test-categ_Co.c: Likewise.
50365         * tests/unictype/test-categ_Cs.c: Likewise.
50366         * tests/unictype/test-categ_L.c: Likewise.
50367         * tests/unictype/test-categ_Ll.c: Likewise.
50368         * tests/unictype/test-categ_Lm.c: Likewise.
50369         * tests/unictype/test-categ_Lo.c: Likewise.
50370         * tests/unictype/test-categ_Lt.c: Likewise.
50371         * tests/unictype/test-categ_Lu.c: Likewise.
50372         * tests/unictype/test-categ_M.c: Likewise.
50373         * tests/unictype/test-categ_Mc.c: Likewise.
50374         * tests/unictype/test-categ_Me.c: Likewise.
50375         * tests/unictype/test-categ_Mn.c: Likewise.
50376         * tests/unictype/test-categ_N.c: Likewise.
50377         * tests/unictype/test-categ_Nd.c: Likewise.
50378         * tests/unictype/test-categ_Nl.c: Likewise.
50379         * tests/unictype/test-categ_No.c: Likewise.
50380         * tests/unictype/test-categ_P.c: Likewise.
50381         * tests/unictype/test-categ_Pc.c: Likewise.
50382         * tests/unictype/test-categ_Pd.c: Likewise.
50383         * tests/unictype/test-categ_Pe.c: Likewise.
50384         * tests/unictype/test-categ_Pf.c: Likewise.
50385         * tests/unictype/test-categ_Pi.c: Likewise.
50386         * tests/unictype/test-categ_Po.c: Likewise.
50387         * tests/unictype/test-categ_Ps.c: Likewise.
50388         * tests/unictype/test-categ_S.c: Likewise.
50389         * tests/unictype/test-categ_Sc.c: Likewise.
50390         * tests/unictype/test-categ_Sk.c: Likewise.
50391         * tests/unictype/test-categ_Sm.c: Likewise.
50392         * tests/unictype/test-categ_So.c: Likewise.
50393         * tests/unictype/test-categ_Z.c: Likewise.
50394         * tests/unictype/test-categ_Zl.c: Likewise.
50395         * tests/unictype/test-categ_Zp.c: Likewise.
50396         * tests/unictype/test-categ_Zs.c: Likewise.
50397         * tests/unictype/test-ctype_alnum.c: Likewise.
50398         * tests/unictype/test-ctype_alpha.c: Likewise.
50399         * tests/unictype/test-ctype_blank.c: Likewise.
50400         * tests/unictype/test-ctype_cntrl.c: Likewise.
50401         * tests/unictype/test-ctype_digit.c: Likewise.
50402         * tests/unictype/test-ctype_graph.c: Likewise.
50403         * tests/unictype/test-ctype_lower.c: Likewise.
50404         * tests/unictype/test-ctype_print.c: Likewise.
50405         * tests/unictype/test-ctype_punct.c: Likewise.
50406         * tests/unictype/test-ctype_space.c: Likewise.
50407         * tests/unictype/test-ctype_upper.c: Likewise.
50408         * tests/unictype/test-ctype_xdigit.c: Likewise.
50409         * tests/unictype/test-decdigit.h: Likewise.
50410         * tests/unictype/test-digit.h: Likewise.
50411         * tests/unictype/test-numeric.h: Likewise.
50412         * tests/unictype/test-pr_alphabetic.c: Likewise.
50413         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
50414         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
50415         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
50416         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
50417         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
50418         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
50419         * tests/unictype/test-pr_bidi_control.c: Likewise.
50420         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
50421         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
50422         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
50423         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
50424         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
50425         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
50426         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
50427         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
50428         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
50429         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
50430         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
50431         * tests/unictype/test-pr_combining.c: Likewise.
50432         * tests/unictype/test-pr_composite.c: Likewise.
50433         * tests/unictype/test-pr_currency_symbol.c: Likewise.
50434         * tests/unictype/test-pr_dash.c: Likewise.
50435         * tests/unictype/test-pr_decimal_digit.c: Likewise.
50436         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
50437         * tests/unictype/test-pr_deprecated.c: Likewise.
50438         * tests/unictype/test-pr_diacritic.c: Likewise.
50439         * tests/unictype/test-pr_extender.c: Likewise.
50440         * tests/unictype/test-pr_format_control.c: Likewise.
50441         * tests/unictype/test-pr_grapheme_base.c: Likewise.
50442         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
50443         * tests/unictype/test-pr_grapheme_link.c: Likewise.
50444         * tests/unictype/test-pr_hex_digit.c: Likewise.
50445         * tests/unictype/test-pr_hyphen.c: Likewise.
50446         * tests/unictype/test-pr_id_continue.c: Likewise.
50447         * tests/unictype/test-pr_id_start.c: Likewise.
50448         * tests/unictype/test-pr_ideographic.c: Likewise.
50449         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
50450         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
50451         * tests/unictype/test-pr_ignorable_control.c: Likewise.
50452         * tests/unictype/test-pr_iso_control.c: Likewise.
50453         * tests/unictype/test-pr_join_control.c: Likewise.
50454         * tests/unictype/test-pr_left_of_pair.c: Likewise.
50455         * tests/unictype/test-pr_line_separator.c: Likewise.
50456         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
50457         * tests/unictype/test-pr_lowercase.c: Likewise.
50458         * tests/unictype/test-pr_math.c: Likewise.
50459         * tests/unictype/test-pr_non_break.c: Likewise.
50460         * tests/unictype/test-pr_not_a_character.c: Likewise.
50461         * tests/unictype/test-pr_numeric.c: Likewise.
50462         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
50463         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
50464         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
50465         * tests/unictype/test-pr_other_id_continue.c: Likewise.
50466         * tests/unictype/test-pr_other_id_start.c: Likewise.
50467         * tests/unictype/test-pr_other_lowercase.c: Likewise.
50468         * tests/unictype/test-pr_other_math.c: Likewise.
50469         * tests/unictype/test-pr_other_uppercase.c: Likewise.
50470         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
50471         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
50472         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
50473         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
50474         * tests/unictype/test-pr_private_use.c: Likewise.
50475         * tests/unictype/test-pr_punctuation.c: Likewise.
50476         * tests/unictype/test-pr_quotation_mark.c: Likewise.
50477         * tests/unictype/test-pr_radical.c: Likewise.
50478         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
50479         * tests/unictype/test-pr_soft_dotted.c: Likewise.
50480         * tests/unictype/test-pr_space.c: Likewise.
50481         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
50482         * tests/unictype/test-pr_titlecase.c: Likewise.
50483         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
50484         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
50485         * tests/unictype/test-pr_uppercase.c: Likewise.
50486         * tests/unictype/test-pr_variation_selector.c: Likewise.
50487         * tests/unictype/test-pr_white_space.c: Likewise.
50488         * tests/unictype/test-pr_xid_continue.c: Likewise.
50489         * tests/unictype/test-pr_xid_start.c: Likewise.
50490         * tests/unictype/test-pr_zero_width.c: Likewise.
50491         * tests/unictype/test-sy_c_whitespace.c: Likewise.
50492         * tests/unictype/test-sy_java_whitespace.c: Likewise.
50493
50494 2007-11-12  Bruno Haible  <bruno@clisp.org>
50495
50496         Unicode character classification functions.
50497         * lib/unictype.h: New file.
50498         * modules/unictype/base: New file.
50499         * modules/unictype/category-L: New file.
50500         * modules/unictype/category-Lu: New file.
50501         * modules/unictype/category-Ll: New file.
50502         * modules/unictype/category-Lt: New file.
50503         * modules/unictype/category-Lm: New file.
50504         * modules/unictype/category-Lo: New file.
50505         * modules/unictype/category-M: New file.
50506         * modules/unictype/category-Mn: New file.
50507         * modules/unictype/category-Mc: New file.
50508         * modules/unictype/category-Me: New file.
50509         * modules/unictype/category-N: New file.
50510         * modules/unictype/category-Nd: New file.
50511         * modules/unictype/category-Nl: New file.
50512         * modules/unictype/category-No: New file.
50513         * modules/unictype/category-P: New file.
50514         * modules/unictype/category-Pc: New file.
50515         * modules/unictype/category-Pd: New file.
50516         * modules/unictype/category-Ps: New file.
50517         * modules/unictype/category-Pe: New file.
50518         * modules/unictype/category-Pi: New file.
50519         * modules/unictype/category-Pf: New file.
50520         * modules/unictype/category-Po: New file.
50521         * modules/unictype/category-S: New file.
50522         * modules/unictype/category-Sm: New file.
50523         * modules/unictype/category-Sc: New file.
50524         * modules/unictype/category-Sk: New file.
50525         * modules/unictype/category-So: New file.
50526         * modules/unictype/category-Z: New file.
50527         * modules/unictype/category-Zs: New file.
50528         * modules/unictype/category-Zl: New file.
50529         * modules/unictype/category-Zp: New file.
50530         * modules/unictype/category-C: New file.
50531         * modules/unictype/category-Cc: New file.
50532         * modules/unictype/category-Cf: New file.
50533         * modules/unictype/category-Cs: New file.
50534         * modules/unictype/category-Co: New file.
50535         * modules/unictype/category-Cn: New file.
50536         * modules/unictype/category-or: New file.
50537         * modules/unictype/category-of: New file.
50538         * modules/unictype/category-test: New file.
50539         * modules/unictype/category-test-withtable: New file.
50540         * modules/unictype/category-byname: New file.
50541         * modules/unictype/category-none: New file.
50542         * modules/unictype/category-and: New file.
50543         * modules/unictype/category-and-not: New file.
50544         * modules/unictype/category-name: New file.
50545         * modules/unictype/combining-class: New file.
50546         * modules/unictype/category-all: New file.
50547         * modules/unictype/bidicategory-all: New file.
50548         * modules/unictype/bidicategory-byname: New file.
50549         * modules/unictype/bidicategory-name: New file.
50550         * modules/unictype/bidicategory-of: New file.
50551         * modules/unictype/bidicategory-test: New file.
50552         * modules/unictype/decimal-digit: New file.
50553         * modules/unictype/digit: New file.
50554         * modules/unictype/numeric: New file.
50555         * modules/unictype/mirror: New file.
50556         * modules/unictype/property-white-space: New file.
50557         * modules/unictype/property-alphabetic: New file.
50558         * modules/unictype/property-other-alphabetic: New file.
50559         * modules/unictype/property-not-a-character: New file.
50560         * modules/unictype/property-default-ignorable-code-point: New file.
50561         * modules/unictype/property-other-default-ignorable-code-point: New
50562         file.
50563         * modules/unictype/property-deprecated: New file.
50564         * modules/unictype/property-logical-order-exception: New file.
50565         * modules/unictype/property-variation-selector: New file.
50566         * modules/unictype/property-private-use: New file.
50567         * modules/unictype/property-unassigned-code-value: New file.
50568         * modules/unictype/property-uppercase: New file.
50569         * modules/unictype/property-other-uppercase: New file.
50570         * modules/unictype/property-lowercase: New file.
50571         * modules/unictype/property-other-lowercase: New file.
50572         * modules/unictype/property-titlecase: New file.
50573         * modules/unictype/property-soft-dotted: New file.
50574         * modules/unictype/property-id-start: New file.
50575         * modules/unictype/property-other-id-start: New file.
50576         * modules/unictype/property-id-continue: New file.
50577         * modules/unictype/property-other-id-continue: New file.
50578         * modules/unictype/property-xid-start: New file.
50579         * modules/unictype/property-xid-continue: New file.
50580         * modules/unictype/property-pattern-white-space: New file.
50581         * modules/unictype/property-pattern-syntax: New file.
50582         * modules/unictype/property-join-control: New file.
50583         * modules/unictype/property-grapheme-base: New file.
50584         * modules/unictype/property-grapheme-extend: New file.
50585         * modules/unictype/property-other-grapheme-extend: New file.
50586         * modules/unictype/property-grapheme-link: New file.
50587         * modules/unictype/property-bidi-control: New file.
50588         * modules/unictype/property-bidi-left-to-right: New file.
50589         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
50590         * modules/unictype/property-bidi-arabic-right-to-left: New file.
50591         * modules/unictype/property-bidi-european-digit: New file.
50592         * modules/unictype/property-bidi-eur-num-separator: New file.
50593         * modules/unictype/property-bidi-eur-num-terminator: New file.
50594         * modules/unictype/property-bidi-arabic-digit: New file.
50595         * modules/unictype/property-bidi-common-separator: New file.
50596         * modules/unictype/property-bidi-block-separator: New file.
50597         * modules/unictype/property-bidi-segment-separator: New file.
50598         * modules/unictype/property-bidi-whitespace: New file.
50599         * modules/unictype/property-bidi-non-spacing-mark: New file.
50600         * modules/unictype/property-bidi-boundary-neutral: New file.
50601         * modules/unictype/property-bidi-pdf: New file.
50602         * modules/unictype/property-bidi-embedding-or-override: New file.
50603         * modules/unictype/property-bidi-other-neutral: New file.
50604         * modules/unictype/property-hex-digit: New file.
50605         * modules/unictype/property-ascii-hex-digit: New file.
50606         * modules/unictype/property-ideographic: New file.
50607         * modules/unictype/property-unified-ideograph: New file.
50608         * modules/unictype/property-radical: New file.
50609         * modules/unictype/property-ids-binary-operator: New file.
50610         * modules/unictype/property-ids-trinary-operator: New file.
50611         * modules/unictype/property-zero-width: New file.
50612         * modules/unictype/property-space: New file.
50613         * modules/unictype/property-non-break: New file.
50614         * modules/unictype/property-iso-control: New file.
50615         * modules/unictype/property-format-control: New file.
50616         * modules/unictype/property-dash: New file.
50617         * modules/unictype/property-hyphen: New file.
50618         * modules/unictype/property-punctuation: New file.
50619         * modules/unictype/property-line-separator: New file.
50620         * modules/unictype/property-paragraph-separator: New file.
50621         * modules/unictype/property-quotation-mark: New file.
50622         * modules/unictype/property-sentence-terminal: New file.
50623         * modules/unictype/property-terminal-punctuation: New file.
50624         * modules/unictype/property-currency-symbol: New file.
50625         * modules/unictype/property-math: New file.
50626         * modules/unictype/property-other-math: New file.
50627         * modules/unictype/property-paired-punctuation: New file.
50628         * modules/unictype/property-left-of-pair: New file.
50629         * modules/unictype/property-combining: New file.
50630         * modules/unictype/property-composite: New file.
50631         * modules/unictype/property-decimal-digit: New file.
50632         * modules/unictype/property-numeric: New file.
50633         * modules/unictype/property-diacritic: New file.
50634         * modules/unictype/property-extender: New file.
50635         * modules/unictype/property-ignorable-control: New file.
50636         * modules/unictype/property-test: New file.
50637         * modules/unictype/property-byname: New file.
50638         * modules/unictype/property-all: New file.
50639         * modules/unictype/scripts: New file.
50640         * modules/unictype/scripts-all: New file.
50641         * modules/unictype/block-of: New file.
50642         * modules/unictype/block-test: New file.
50643         * modules/unictype/block-list: New file.
50644         * modules/unictype/block-all: New file.
50645         * modules/unictype/syntax-c-whitespace: New file.
50646         * modules/unictype/syntax-java-whitespace: New file.
50647         * modules/unictype/syntax-c-ident: New file.
50648         * modules/unictype/syntax-java-ident: New file.
50649         * modules/unictype/ctype-alnum: New file.
50650         * modules/unictype/ctype-alpha: New file.
50651         * modules/unictype/ctype-cntrl: New file.
50652         * modules/unictype/ctype-digit: New file.
50653         * modules/unictype/ctype-graph: New file.
50654         * modules/unictype/ctype-lower: New file.
50655         * modules/unictype/ctype-print: New file.
50656         * modules/unictype/ctype-punct: New file.
50657         * modules/unictype/ctype-space: New file.
50658         * modules/unictype/ctype-upper: New file.
50659         * modules/unictype/ctype-xdigit: New file.
50660         * modules/unictype/ctype-blank: New file.
50661         * lib/unictype/bidi_byname.c: New file.
50662         * lib/unictype/bidi_name.c: New file.
50663         * lib/unictype/bidi_of.c: New file.
50664         * lib/unictype/bidi_test.c: New file.
50665         * lib/unictype/bitmap.h: New file.
50666         * lib/unictype/block_test.c: New file.
50667         * lib/unictype/blocks.c: New file.
50668         * lib/unictype/categ_C.c: New file.
50669         * lib/unictype/categ_Cc.c: New file.
50670         * lib/unictype/categ_Cf.c: New file.
50671         * lib/unictype/categ_Cn.c: New file.
50672         * lib/unictype/categ_Co.c: New file.
50673         * lib/unictype/categ_Cs.c: New file.
50674         * lib/unictype/categ_L.c: New file.
50675         * lib/unictype/categ_Ll.c: New file.
50676         * lib/unictype/categ_Lm.c: New file.
50677         * lib/unictype/categ_Lo.c: New file.
50678         * lib/unictype/categ_Lt.c: New file.
50679         * lib/unictype/categ_Lu.c: New file.
50680         * lib/unictype/categ_M.c: New file.
50681         * lib/unictype/categ_Mc.c: New file.
50682         * lib/unictype/categ_Me.c: New file.
50683         * lib/unictype/categ_Mn.c: New file.
50684         * lib/unictype/categ_N.c: New file.
50685         * lib/unictype/categ_Nd.c: New file.
50686         * lib/unictype/categ_Nl.c: New file.
50687         * lib/unictype/categ_No.c: New file.
50688         * lib/unictype/categ_P.c: New file.
50689         * lib/unictype/categ_Pc.c: New file.
50690         * lib/unictype/categ_Pd.c: New file.
50691         * lib/unictype/categ_Pe.c: New file.
50692         * lib/unictype/categ_Pf.c: New file.
50693         * lib/unictype/categ_Pi.c: New file.
50694         * lib/unictype/categ_Po.c: New file.
50695         * lib/unictype/categ_Ps.c: New file.
50696         * lib/unictype/categ_S.c: New file.
50697         * lib/unictype/categ_Sc.c: New file.
50698         * lib/unictype/categ_Sk.c: New file.
50699         * lib/unictype/categ_Sm.c: New file.
50700         * lib/unictype/categ_So.c: New file.
50701         * lib/unictype/categ_Z.c: New file.
50702         * lib/unictype/categ_Zl.c: New file.
50703         * lib/unictype/categ_Zp.c: New file.
50704         * lib/unictype/categ_Zs.c: New file.
50705         * lib/unictype/categ_and.c: New file.
50706         * lib/unictype/categ_and_not.c: New file.
50707         * lib/unictype/categ_byname.c: New file.
50708         * lib/unictype/categ_name.c: New file.
50709         * lib/unictype/categ_none.c: New file.
50710         * lib/unictype/categ_of.c: New file.
50711         * lib/unictype/categ_or.c: New file.
50712         * lib/unictype/categ_test.c: New file.
50713         * lib/unictype/combining.c: New file.
50714         * lib/unictype/ctype_alnum.c: New file.
50715         * lib/unictype/ctype_alpha.c: New file.
50716         * lib/unictype/ctype_blank.c: New file.
50717         * lib/unictype/ctype_cntrl.c: New file.
50718         * lib/unictype/ctype_digit.c: New file.
50719         * lib/unictype/ctype_graph.c: New file.
50720         * lib/unictype/ctype_lower.c: New file.
50721         * lib/unictype/ctype_print.c: New file.
50722         * lib/unictype/ctype_punct.c: New file.
50723         * lib/unictype/ctype_space.c: New file.
50724         * lib/unictype/ctype_upper.c: New file.
50725         * lib/unictype/ctype_xdigit.c: New file.
50726         * lib/unictype/decdigit.c: New file.
50727         * lib/unictype/digit.c: New file.
50728         * lib/unictype/identsyntaxmap.h: New file.
50729         * lib/unictype/mirror.c: New file.
50730         * lib/unictype/numeric.c: New file.
50731         * lib/unictype/pr_alphabetic.c: New file.
50732         * lib/unictype/pr_ascii_hex_digit.c: New file.
50733         * lib/unictype/pr_bidi_arabic_digit.c: New file.
50734         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
50735         * lib/unictype/pr_bidi_block_separator.c: New file.
50736         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
50737         * lib/unictype/pr_bidi_common_separator.c: New file.
50738         * lib/unictype/pr_bidi_control.c: New file.
50739         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
50740         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
50741         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
50742         * lib/unictype/pr_bidi_european_digit.c: New file.
50743         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
50744         * lib/unictype/pr_bidi_left_to_right.c: New file.
50745         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
50746         * lib/unictype/pr_bidi_other_neutral.c: New file.
50747         * lib/unictype/pr_bidi_pdf.c: New file.
50748         * lib/unictype/pr_bidi_segment_separator.c: New file.
50749         * lib/unictype/pr_bidi_whitespace.c: New file.
50750         * lib/unictype/pr_byname.c: New file.
50751         * lib/unictype/pr_byname.gperf: New file.
50752         * lib/unictype/pr_combining.c: New file.
50753         * lib/unictype/pr_composite.c: New file.
50754         * lib/unictype/pr_currency_symbol.c: New file.
50755         * lib/unictype/pr_dash.c: New file.
50756         * lib/unictype/pr_decimal_digit.c: New file.
50757         * lib/unictype/pr_default_ignorable_code_point.c: New file.
50758         * lib/unictype/pr_deprecated.c: New file.
50759         * lib/unictype/pr_diacritic.c: New file.
50760         * lib/unictype/pr_extender.c: New file.
50761         * lib/unictype/pr_format_control.c: New file.
50762         * lib/unictype/pr_grapheme_base.c: New file.
50763         * lib/unictype/pr_grapheme_extend.c: New file.
50764         * lib/unictype/pr_grapheme_link.c: New file.
50765         * lib/unictype/pr_hex_digit.c: New file.
50766         * lib/unictype/pr_hyphen.c: New file.
50767         * lib/unictype/pr_id_continue.c: New file.
50768         * lib/unictype/pr_id_start.c: New file.
50769         * lib/unictype/pr_ideographic.c: New file.
50770         * lib/unictype/pr_ids_binary_operator.c: New file.
50771         * lib/unictype/pr_ids_trinary_operator.c: New file.
50772         * lib/unictype/pr_ignorable_control.c: New file.
50773         * lib/unictype/pr_iso_control.c: New file.
50774         * lib/unictype/pr_join_control.c: New file.
50775         * lib/unictype/pr_left_of_pair.c: New file.
50776         * lib/unictype/pr_line_separator.c: New file.
50777         * lib/unictype/pr_logical_order_exception.c: New file.
50778         * lib/unictype/pr_lowercase.c: New file.
50779         * lib/unictype/pr_math.c: New file.
50780         * lib/unictype/pr_non_break.c: New file.
50781         * lib/unictype/pr_not_a_character.c: New file.
50782         * lib/unictype/pr_numeric.c: New file.
50783         * lib/unictype/pr_other_alphabetic.c: New file.
50784         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
50785         * lib/unictype/pr_other_grapheme_extend.c: New file.
50786         * lib/unictype/pr_other_id_continue.c: New file.
50787         * lib/unictype/pr_other_id_start.c: New file.
50788         * lib/unictype/pr_other_lowercase.c: New file.
50789         * lib/unictype/pr_other_math.c: New file.
50790         * lib/unictype/pr_other_uppercase.c: New file.
50791         * lib/unictype/pr_paired_punctuation.c: New file.
50792         * lib/unictype/pr_paragraph_separator.c: New file.
50793         * lib/unictype/pr_pattern_syntax.c: New file.
50794         * lib/unictype/pr_pattern_white_space.c: New file.
50795         * lib/unictype/pr_private_use.c: New file.
50796         * lib/unictype/pr_punctuation.c: New file.
50797         * lib/unictype/pr_quotation_mark.c: New file.
50798         * lib/unictype/pr_radical.c: New file.
50799         * lib/unictype/pr_sentence_terminal.c: New file.
50800         * lib/unictype/pr_soft_dotted.c: New file.
50801         * lib/unictype/pr_space.c: New file.
50802         * lib/unictype/pr_terminal_punctuation.c: New file.
50803         * lib/unictype/pr_test.c: New file.
50804         * lib/unictype/pr_titlecase.c: New file.
50805         * lib/unictype/pr_unassigned_code_value.c: New file.
50806         * lib/unictype/pr_unified_ideograph.c: New file.
50807         * lib/unictype/pr_uppercase.c: New file.
50808         * lib/unictype/pr_variation_selector.c: New file.
50809         * lib/unictype/pr_white_space.c: New file.
50810         * lib/unictype/pr_xid_continue.c: New file.
50811         * lib/unictype/pr_xid_start.c: New file.
50812         * lib/unictype/pr_zero_width.c: New file.
50813         * lib/unictype/scripts.c: New file.
50814         * lib/unictype/sy_c_ident.c: New file.
50815         * lib/unictype/sy_c_whitespace.c: New file.
50816         * lib/unictype/sy_java_ident.c: New file.
50817         * lib/unictype/sy_java_whitespace.c: New file.
50818
50819         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
50820         Unicode 5.0.0.
50821         * lib/unictype/blocks.h: Likewise.
50822         * lib/unictype/categ_C.h: Likewise.
50823         * lib/unictype/categ_Cc.h: Likewise.
50824         * lib/unictype/categ_Cf.h: Likewise.
50825         * lib/unictype/categ_Cn.h: Likewise.
50826         * lib/unictype/categ_Co.h: Likewise.
50827         * lib/unictype/categ_Cs.h: Likewise.
50828         * lib/unictype/categ_L.h: Likewise.
50829         * lib/unictype/categ_Ll.h: Likewise.
50830         * lib/unictype/categ_Lm.h: Likewise.
50831         * lib/unictype/categ_Lo.h: Likewise.
50832         * lib/unictype/categ_Lt.h: Likewise.
50833         * lib/unictype/categ_Lu.h: Likewise.
50834         * lib/unictype/categ_M.h: Likewise.
50835         * lib/unictype/categ_Mc.h: Likewise.
50836         * lib/unictype/categ_Me.h: Likewise.
50837         * lib/unictype/categ_Mn.h: Likewise.
50838         * lib/unictype/categ_N.h: Likewise.
50839         * lib/unictype/categ_Nd.h: Likewise.
50840         * lib/unictype/categ_Nl.h: Likewise.
50841         * lib/unictype/categ_No.h: Likewise.
50842         * lib/unictype/categ_P.h: Likewise.
50843         * lib/unictype/categ_Pc.h: Likewise.
50844         * lib/unictype/categ_Pd.h: Likewise.
50845         * lib/unictype/categ_Pe.h: Likewise.
50846         * lib/unictype/categ_Pf.h: Likewise.
50847         * lib/unictype/categ_Pi.h: Likewise.
50848         * lib/unictype/categ_Po.h: Likewise.
50849         * lib/unictype/categ_Ps.h: Likewise.
50850         * lib/unictype/categ_S.h: Likewise.
50851         * lib/unictype/categ_Sc.h: Likewise.
50852         * lib/unictype/categ_Sk.h: Likewise.
50853         * lib/unictype/categ_Sm.h: Likewise.
50854         * lib/unictype/categ_So.h: Likewise.
50855         * lib/unictype/categ_Z.h: Likewise.
50856         * lib/unictype/categ_Zl.h: Likewise.
50857         * lib/unictype/categ_Zp.h: Likewise.
50858         * lib/unictype/categ_Zs.h: Likewise.
50859         * lib/unictype/categ_of.h: Likewise.
50860         * lib/unictype/combining.h: Likewise.
50861         * lib/unictype/ctype_alnum.h: Likewise.
50862         * lib/unictype/ctype_alpha.h: Likewise.
50863         * lib/unictype/ctype_blank.h: Likewise.
50864         * lib/unictype/ctype_cntrl.h: Likewise.
50865         * lib/unictype/ctype_digit.h: Likewise.
50866         * lib/unictype/ctype_graph.h: Likewise.
50867         * lib/unictype/ctype_lower.h: Likewise.
50868         * lib/unictype/ctype_print.h: Likewise.
50869         * lib/unictype/ctype_punct.h: Likewise.
50870         * lib/unictype/ctype_space.h: Likewise.
50871         * lib/unictype/ctype_upper.h: Likewise.
50872         * lib/unictype/ctype_xdigit.h: Likewise.
50873         * lib/unictype/decdigit.h: Likewise.
50874         * lib/unictype/digit.h: Likewise.
50875         * lib/unictype/mirror.h: Likewise.
50876         * lib/unictype/numeric.h: Likewise.
50877         * lib/unictype/pr_alphabetic.h: Likewise.
50878         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50879         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50880         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50881         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50882         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50883         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50884         * lib/unictype/pr_bidi_control.h: Likewise.
50885         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50886         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50887         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50888         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50889         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50890         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50891         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50892         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50893         * lib/unictype/pr_bidi_pdf.h: Likewise.
50894         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50895         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50896         * lib/unictype/pr_combining.h: Likewise.
50897         * lib/unictype/pr_composite.h: Likewise.
50898         * lib/unictype/pr_currency_symbol.h: Likewise.
50899         * lib/unictype/pr_dash.h: Likewise.
50900         * lib/unictype/pr_decimal_digit.h: Likewise.
50901         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50902         * lib/unictype/pr_deprecated.h: Likewise.
50903         * lib/unictype/pr_diacritic.h: Likewise.
50904         * lib/unictype/pr_extender.h: Likewise.
50905         * lib/unictype/pr_format_control.h: Likewise.
50906         * lib/unictype/pr_grapheme_base.h: Likewise.
50907         * lib/unictype/pr_grapheme_extend.h: Likewise.
50908         * lib/unictype/pr_grapheme_link.h: Likewise.
50909         * lib/unictype/pr_hex_digit.h: Likewise.
50910         * lib/unictype/pr_hyphen.h: Likewise.
50911         * lib/unictype/pr_id_continue.h: Likewise.
50912         * lib/unictype/pr_id_start.h: Likewise.
50913         * lib/unictype/pr_ideographic.h: Likewise.
50914         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50915         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50916         * lib/unictype/pr_ignorable_control.h: Likewise.
50917         * lib/unictype/pr_iso_control.h: Likewise.
50918         * lib/unictype/pr_join_control.h: Likewise.
50919         * lib/unictype/pr_left_of_pair.h: Likewise.
50920         * lib/unictype/pr_line_separator.h: Likewise.
50921         * lib/unictype/pr_logical_order_exception.h: Likewise.
50922         * lib/unictype/pr_lowercase.h: Likewise.
50923         * lib/unictype/pr_math.h: Likewise.
50924         * lib/unictype/pr_non_break.h: Likewise.
50925         * lib/unictype/pr_not_a_character.h: Likewise.
50926         * lib/unictype/pr_numeric.h: Likewise.
50927         * lib/unictype/pr_other_alphabetic.h: Likewise.
50928         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50929         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50930         * lib/unictype/pr_other_id_continue.h: Likewise.
50931         * lib/unictype/pr_other_id_start.h: Likewise.
50932         * lib/unictype/pr_other_lowercase.h: Likewise.
50933         * lib/unictype/pr_other_math.h: Likewise.
50934         * lib/unictype/pr_other_uppercase.h: Likewise.
50935         * lib/unictype/pr_paired_punctuation.h: Likewise.
50936         * lib/unictype/pr_paragraph_separator.h: Likewise.
50937         * lib/unictype/pr_pattern_syntax.h: Likewise.
50938         * lib/unictype/pr_pattern_white_space.h: Likewise.
50939         * lib/unictype/pr_private_use.h: Likewise.
50940         * lib/unictype/pr_punctuation.h: Likewise.
50941         * lib/unictype/pr_quotation_mark.h: Likewise.
50942         * lib/unictype/pr_radical.h: Likewise.
50943         * lib/unictype/pr_sentence_terminal.h: Likewise.
50944         * lib/unictype/pr_soft_dotted.h: Likewise.
50945         * lib/unictype/pr_space.h: Likewise.
50946         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50947         * lib/unictype/pr_titlecase.h: Likewise.
50948         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50949         * lib/unictype/pr_unified_ideograph.h: Likewise.
50950         * lib/unictype/pr_uppercase.h: Likewise.
50951         * lib/unictype/pr_variation_selector.h: Likewise.
50952         * lib/unictype/pr_white_space.h: Likewise.
50953         * lib/unictype/pr_xid_continue.h: Likewise.
50954         * lib/unictype/pr_xid_start.h: Likewise.
50955         * lib/unictype/pr_zero_width.h: Likewise.
50956         * lib/unictype/scripts.h: Likewise.
50957         * lib/unictype/scripts_byname.gperf: Likewise.
50958         * lib/unictype/sy_c_ident.h: Likewise.
50959         * lib/unictype/sy_c_whitespace.h: Likewise.
50960         * lib/unictype/sy_java_ident.h: Likewise.
50961         * lib/unictype/sy_java_whitespace.h: Likewise.
50962
50963         * lib/unictype/Makefile: New file.
50964         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50965         glibc.
50966         * lib/unictype/3level.h: New file, copied from glibc.
50967         * lib/unictype/3levelbit.h: New file.
50968
50969 2007-11-11  Bruno Haible  <bruno@clisp.org>
50970
50971         * modules/gperf: New file.
50972         * modules/iconv_open (Depends-on): Add it.
50973         (Makefile.am): Remove the GPERF definition.
50974
50975 2007-11-11  Bruno Haible  <bruno@clisp.org>
50976
50977         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50978         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50979
50980 2007-11-11  Bruno Haible  <bruno@clisp.org>
50981
50982         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50983         (usage): Remove function.
50984
50985 2007-11-11  Bruno Haible  <bruno@clisp.org>
50986
50987         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50988         gl_FUNC_CEILF_LIBS.
50989         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50990         gl_FUNC_CEIL_LIBS.
50991         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50992         gl_FUNC_CEILL_LIBS.
50993         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50994         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50995         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50996
50997 2007-11-11  Bruno Haible  <bruno@clisp.org>
50998
50999         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
51000         roundf were declared but do not exist on functions.
51001         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
51002         roundl were declared but do not exist on functions.
51003         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
51004         HAVE_FLOORL_AND_CEILL, respectively.
51005         Needed for Sun C on Solaris 10.
51006
51007 2007-11-11  Bruno Haible  <bruno@clisp.org>
51008
51009         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
51010         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
51011         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
51012         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
51013         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
51014         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
51015         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
51016         HAVE_DECL_ROUNDF.
51017         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
51018         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
51019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
51020         of HAVE_DECL_ROUND*.
51021         * modules/math (Makefile.am): Update.
51022
51023 2007-11-10  Bruno Haible  <bruno@clisp.org>
51024
51025         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
51026         ptrdiff_t as m4/intl.m4.
51027
51028 2007-11-10  Jim Meyering  <meyering@redhat.com>
51029
51030         Avoid link failure for the argmatch test.
51031         * tests/test-argmatch.c (usage): Define function to avoid a link
51032         failure: argmatch_die requires a usage function.
51033
51034 2007-11-09  Bruno Haible  <bruno@clisp.org>
51035
51036         * doc/functions/snprintf.texi: Mention BeOS deficiency.
51037         * doc/functions/vsnprintf.texi: Likewise.
51038         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
51039         with a size argument < 2.
51040
51041 2007-11-09  Bruno Haible  <bruno@clisp.org>
51042
51043         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
51044         buffer. Fixes an inefficiency introduced on 2007-11-03.
51045
51046 2007-11-09  Bruno Haible  <bruno@clisp.org>
51047
51048         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
51049         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
51050
51051 2007-11-08  Jim Meyering  <meyering@redhat.com>
51052
51053         Change cache variable name prefix "jm_" to "gl_" everywhere.
51054         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
51055         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
51056         * m4/uptime.m4: s/gl_/jm_/
51057
51058 2007-11-07  Bruno Haible  <bruno@clisp.org>
51059
51060         Update to GNU gettext 0.17.
51061         * m4/intl.m4: Update to GNU gettext 0.17.
51062         * m4/po.m4: Likewise.
51063         * modules/gettext (Files): Remove m4/ulonglong.m4.
51064         (configure.ac): Require gettext infrastructure from version 0.17.
51065
51066 2007-11-06  Bruno Haible  <bruno@clisp.org>
51067
51068         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
51069         symbolic values are not defined in a public header.
51070         * lib/freadable.c (freadable) [QNX]: Likewise.
51071         * lib/freadahead.c (freadahead) [QNX]: Likewise.
51072         * lib/freading.c (freading) [QNX]: Likewise.
51073         * lib/fseterr.c (fseterr) [QNX]: Likewise.
51074         * lib/fwritable.c (fwritable) [QNX]: Likewise.
51075         * lib/fwriting.c (fwriting) [QNX]: Likewise.
51076         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
51077         Reported by Alain Magloire.
51078
51079         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
51080
51081 2007-11-05  Bruno Haible  <bruno@clisp.org>
51082
51083         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
51084         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
51085         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
51086         Reported by Eric Blake.
51087
51088 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51089             Bruno Haible  <bruno@clisp.org>
51090
51091         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
51092         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
51093         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
51094         (malloc): Undefine also before including <stdlib.h>.
51095         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
51096         Needed on OSF/1 4.0.
51097
51098 2007-11-05  Jim Meyering  <meyering@redhat.com>
51099
51100         git-version-gen: sync from coreutils.
51101         * build-aux/git-version-gen: Add comments.
51102         Change the first '-' to '.' in the snapshot version string,
51103         e.g., 6.9-377-08144 -> 6.9.377-08144
51104         Remove first parameter.
51105         Don't declare a version "-dirty" merely because a time
51106         stamp has changed.
51107
51108 2007-11-04  Bruno Haible  <bruno@clisp.org>
51109
51110         * lib/lock.h: Protect all macro definitions containing an 'if'
51111         statement through a "do { ... } while (0)".
51112         * lib/tls.h: Likewise.
51113
51114 2007-11-04  Bruno Haible  <bruno@clisp.org>
51115
51116         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
51117
51118 2007-11-04  Bruno Haible  <bruno@clisp.org>
51119
51120         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
51121         * modules/fprintf-posix (Depends-on): Add nocrash.
51122         * modules/snprintf-posix (Depends-on): Likewise.
51123         * modules/sprintf-posix (Depends-on): Likewise.
51124         * modules/vasnprintf-posix (Depends-on): Likewise.
51125         * modules/vasprintf-posix (Depends-on): Likewise.
51126         * modules/vfprintf-posix (Depends-on): Likewise.
51127         * modules/vsnprintf-posix (Depends-on): Likewise.
51128         * modules/vsprintf-posix (Depends-on): Likewise.
51129         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51130         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51131         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51132         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51133         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51134         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51135         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51136
51137 2007-11-04  Bruno Haible  <bruno@clisp.org>
51138
51139         * modules/nocrash: New file.
51140         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
51141         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
51142
51143 2007-11-04  Bruno Haible  <bruno@clisp.org>
51144
51145         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
51146         precision handling.
51147         * tests/test-vasprintf-posix.c (test_function): Likewise.
51148         * tests/test-snprintf-posix.h (test_function): Likewise.
51149         * tests/test-sprintf-posix.h (test_function): Likewise.
51150
51151         Fix *printf behaviour for large precisions on mingw and BeOS.
51152         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
51153         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
51154         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
51155         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51156         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51157         gl_PRINTF_PRECISION and test its result. Invoke
51158         gl_PREREQ_VASNPRINTF_PRECISION.
51159         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51160         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51161         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51162         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51163         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51164         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51165         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51166         * doc/functions/fprintf.texi: Update.
51167         * doc/functions/printf.texi: Update.
51168         * doc/functions/snprintf.texi: Update.
51169         * doc/functions/sprintf.texi: Update.
51170         * doc/functions/vfprintf.texi: Update.
51171         * doc/functions/vprintf.texi: Update.
51172         * doc/functions/vsnprintf.texi: Update.
51173         * doc/functions/vsprintf.texi: Update.
51174
51175 2007-11-04  Bruno Haible  <bruno@clisp.org>
51176
51177         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
51178
51179 2007-11-04  Bruno Haible  <bruno@clisp.org>
51180
51181         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
51182         Reported by Sylvain Beucler <beuc@gnu.org>.
51183
51184 2007-11-03  Bruno Haible  <bruno@clisp.org>
51185
51186         * tests/test-fprintf-posix2.sh: New file.
51187         * tests/test-fprintf-posix2.c: New file.
51188         * modules/fprintf-posix-tests (Files): Add them.
51189         (TESTS): Add test-fprintf-posix2.sh.
51190         (configure.ac): Check for getrlimit and setrlimit.
51191         (check_PROGRAMS): Add test-fprintf-posix2.
51192
51193         * tests/test-printf-posix2.sh: New file.
51194         * tests/test-printf-posix2.c: New file.
51195         * modules/printf-posix-tests (Files): Add them.
51196         (TESTS): Add test-printf-posix2.sh.
51197         (configure.ac): Check for getrlimit and setrlimit.
51198         (check_PROGRAMS): Add test-printf-posix2.
51199
51200         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
51201         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
51202         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
51203         (decode_double): New function, copied from decode_long_double.
51204         (scale10_round_decimal_decoded): New function, extracted from
51205         scale10_round_decimal_long_double.
51206         (scale10_round_decimal_long_double): Use it.
51207         (scale10_round_decimal_double): New function.
51208         (floorlog10): New function.
51209         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
51210         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
51211         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51212         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51213         gl_PRINTF_ENOMEM and test its result. Invoke
51214         gl_PREREQ_VASNPRINTF_ENOMEM.
51215         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51216         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51217         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51218         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51219         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51220         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51221         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51222         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
51223         * modules/snprintf-posix (Depends-on): Likewise.
51224         * modules/sprintf-posix (Depends-on): Likewise.
51225         * modules/vasnprintf-posix (Depends-on): Likewise.
51226         * modules/vasprintf-posix (Depends-on): Likewise.
51227         * modules/vfprintf-posix (Depends-on): Likewise.
51228         * modules/vsnprintf-posix (Depends-on): Likewise.
51229         * modules/vsprintf-posix (Depends-on): Likewise.
51230         * doc/functions/fprintf.texi: Update.
51231         * doc/functions/printf.texi: Update.
51232         * doc/functions/snprintf.texi: Update.
51233         * doc/functions/sprintf.texi: Update.
51234         * doc/functions/vfprintf.texi: Update.
51235         * doc/functions/vprintf.texi: Update.
51236         * doc/functions/vsnprintf.texi: Update.
51237         * doc/functions/vsprintf.texi: Update.
51238
51239 2007-11-03  Bruno Haible  <bruno@clisp.org>
51240
51241         * modules/frexp-nolibm-tests: New file.
51242
51243         * modules/frexp-nolibm: New file.
51244         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
51245
51246 2007-11-03  Bruno Haible  <bruno@clisp.org>
51247
51248         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
51249         value is C99 compliant.
51250         Needed for OSF/1 5.1.
51251
51252 2007-11-03  Bruno Haible  <bruno@clisp.org>
51253
51254         Fix out-of-memory handling of vasnprintf.
51255         * lib/printf-parse.c: Include <errno.h>.
51256         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
51257         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
51258         is already set.
51259
51260 2007-11-02  Eric Blake  <ebb9@byu.net>
51261
51262         Fix tests on cygwin.
51263         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
51264
51265 2007-11-01  Bruno Haible  <bruno@clisp.org>
51266
51267         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
51268         warning.
51269         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
51270         needed for POSIX compatibility.
51271
51272 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
51273
51274         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
51275         for compatibility with GNU.
51276
51277 2007-11-01  Bruno Haible  <bruno@clisp.org>
51278
51279         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
51280         (putenv): Renamed from rpl_putenv. Change argument type from
51281         'const char *' to 'char *'.
51282         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
51283         of defining putenv in config.h, just set REPLACE_PUTENV.
51284         * modules/putenv (Depends-on): Add stdlib.
51285         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51286         (Include): Use <stdlib.h>.
51287         * lib/stdlib.in.h (putenv): New declaration.
51288         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
51289         REPLACE_PUTENV.
51290         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
51291         REPLACE_PUTENV.
51292         Needed for MacOS X 10.5.0.
51293         Reported by Peter O'Gorman <peter@pogma.com>.
51294
51295 2007-11-01  Jim Meyering  <meyering@redhat.com>
51296
51297         Treat an empty date string exactly like "0".
51298         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
51299         if the remaining date string (to be parsed) is empty, use "0".
51300         Reported by Mischa Molhoek and discussed in this thread:
51301         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
51302
51303 2007-10-31  Bruno Haible  <bruno@clisp.org>
51304
51305         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
51306         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
51307         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
51308         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
51309         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
51310         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
51311
51312 2007-10-31  Bruno Haible  <bruno@clisp.org>
51313
51314         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
51315         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
51316         (AC_TYPE_LONG_LONG_INT): Use it.
51317         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
51318         it as well.
51319         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
51320         to m4/longlong.m4.
51321         * modules/stdint (Files): Remove m4/ulonglong.m4.
51322         * modules/strtoull (Files): Use m4/longlong.m4 instead of
51323         m4/ulonglong.m4.
51324         * modules/strtoumax (Files): Likewise.
51325
51326 2007-10-30  Bruno Haible  <bruno@clisp.org>
51327
51328         * modules/xvasprintf-posix: New file.
51329         Suggested by Eric Blake.
51330
51331 2007-10-30  Bruno Haible  <bruno@clisp.org>
51332
51333         * modules/xprintf-posix-tests: New file.
51334         * tests/test-xprintf-posix.sh: New file.
51335         * tests/test-xprintf-posix.c: New file.
51336         * tests/test-xfprintf-posix.c: New file.
51337
51338         * modules/xprintf-posix: New file.
51339
51340 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51341
51342         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
51343         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
51344         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
51345
51346 2007-10-29  Bruno Haible  <bruno@clisp.org>
51347
51348         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
51349         contain the special marker '_cv_'.
51350         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51351         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51352         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51353         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
51354         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51355         Reported by Ralf Wildenhues.
51356
51357 2007-10-29  Bruno Haible  <bruno@clisp.org>
51358
51359         * gnulib-tool (func_import): When --lgpl is not specified, set
51360         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
51361         GPLv3.
51362         Reported by Simon Josefsson.
51363
51364 2007-10-28  Bruno Haible  <bruno@clisp.org>
51365
51366         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
51367         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
51368         HAVE_DECL_ISFINITE.
51369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51370         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
51371         HAVE_DECL_ISFINITE.
51372
51373 2007-10-28  Bruno Haible  <bruno@clisp.org>
51374
51375         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
51376         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
51377
51378 2007-10-28  Bruno Haible  <bruno@clisp.org>
51379
51380         Fix link errors with Sun C 5.0 on Solaris 10.
51381         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
51382         function is declared but not present in the compiler's libm.
51383         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
51384         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51385         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
51386         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
51387         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
51388         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
51389         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
51390         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51391         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
51392         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
51393         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
51394         HAVE_DECL_FLOORL.
51395
51396 2007-10-28  Bruno Haible  <bruno@clisp.org>
51397
51398         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
51399         gl_FUNC_FLOORL. Cache the result.
51400         (gl_FUNC_FLOORL): Use it.
51401         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
51402         gl_FUNC_CEILL. Cache the result.
51403         (gl_FUNC_CEILL): Use it.
51404
51405         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
51406         gl_FUNC_FLOOR. Cache the result.
51407         (gl_FUNC_FLOOR): Use it.
51408         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
51409         gl_FUNC_CEIL. Cache the result.
51410         (gl_FUNC_CEIL): Use it.
51411
51412         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
51413         gl_FUNC_FLOORF. Cache the result.
51414         (gl_FUNC_FLOORF): Use it.
51415         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
51416         gl_FUNC_CEILF. Cache the result.
51417         (gl_FUNC_CEILF): Use it.
51418
51419 2007-10-28  Bruno Haible  <bruno@clisp.org>
51420
51421         * gnulib-tool: Allow specifying the LGPL version number through
51422         --lgpl=2 or --lgpl=3.
51423         (func_usage): Document --lgpl with argument.
51424         Handle --lgpl=... arguments.
51425         (func_import): Recognize also gl_LGPL calls with an argument. When
51426         --lgpl=2 is used and the module's license is just LGPL, report an
51427         error. Set sed_transform_lib_file according to the lgpl variable. In
51428         the generated files, use --lgpl or gl_LGPL invocations with argument,
51429         if necessary.
51430         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
51431         an LGPv2+ license.
51432         * doc/gnulib-tool.texi (Modified imports): Update explanation of
51433         gl_LGPL macro.
51434
51435 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51436             Bruno Haible  <bruno@clisp.org>
51437
51438         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
51439         (u16_uctomb_aux): Likewise.
51440         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
51441         !HAVE_INLINE.
51442         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
51443
51444 2007-10-28  Bruno Haible  <bruno@clisp.org>
51445
51446         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
51447         Invoke AM_GETTEXT_OPTION if it exists.
51448         * modules/vasprintf: Likewise.
51449         * modules/verror: Likewise.
51450         * modules/xprintf: Likewise.
51451         * modules/xvasprintf: Likewise.
51452
51453 2007-10-27  Ben Pfaff  <blp@gnu.org>
51454
51455         * lib/math.in.h: Define isfinite macro and prototypes for
51456         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
51457         implementations.
51458         * m4/math_h.m4: New substitutions for isfinite module.
51459         * lib/isfinite.c: New file.
51460         * m4/isfinite.m4: New file.
51461         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
51462         * modules/isfinite: New file.
51463         * modules/isfinite-tests: New file.
51464         * tests/tests-isfinite.c: New file.
51465         * doc/functions/isfinite.texi: Mention isfinite module.
51466         * MODULES.html.sh: Mention new module.
51467
51468 2007-10-27  Ben Pfaff  <blp@gnu.org>
51469
51470         Ralf Wildenhues reported that Tru64 4.0D declares the round
51471         functions but does not have definitions.
51472         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
51473         cannot be found in any library, set the output variable to
51474         "missing" instead of "".
51475         * m4/round.m4: Also use our substitute if we cannot find round in
51476         any library, even if it is declared.
51477         * m4/roundf.m4: Likewise for roundf.
51478         * m4/roundl.m4: Likewise for roundl.
51479         * lib/math.in.h: Undefine roundf, round, roundl before defining
51480         their replacements, to allow for hypothetical systems where these
51481         may be defined as macros but not available in libraries.
51482
51483 2007-10-27  Bruno Haible  <bruno@clisp.org>
51484
51485         * doc/gnulib.texi: Invoke @firstparagraphindent.
51486         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
51487         changes in gnulib.
51488         (Source changes): New section.
51489
51490 2007-10-26  Bruno Haible  <bruno@clisp.org>
51491
51492         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
51493         borrowed from autoconf.
51494
51495 2007-10-26  Bruno Haible  <bruno@clisp.org>
51496
51497         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
51498         strerror returned the empty string. Needed on HP-UX 11.00.
51499
51500 2007-10-24  Micah Cowan  <micah@cowan.name>
51501
51502         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
51503         * build-aux/bootstrap: Remove support for now-unnecessary option,
51504         --cvs-user, and envvars CVS_USER, CVS_RSH.
51505
51506 2007-10-24  Jim Meyering  <meyering@redhat.com>
51507
51508         Avoid diagnostics from sha1sum when there is no cached checksum.
51509         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
51510         if the po.s1 file hasn't been created yet.
51511
51512         * build-aux/bootstrap: Sync from coreutils:
51513         2007-10-24  Jim Meyering  <meyering@redhat.com>
51514         Get gnulib from the git repository, not from an obsolete cvs one.
51515         * build-aux/bootstrap: Suggestion from Micah Cowan.
51516         2007-10-04  Jim Meyering  <jim@meyering.net>
51517         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
51518         (update_po_files): Work also when there are no .po files in po/.
51519
51520 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51521
51522         * README: Append ".git" to git and cg examples.
51523         Problem reported by Benoit Sigoure.
51524
51525 2007-10-23  Micah Cowan  <micah@cowan.name>
51526
51527         * users.txt: Add wget.
51528
51529 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51530
51531         Fix linking of some unistdio tests on FreeBSD.
51532         * modules/unistdio/u16-vsnprintf-tests
51533         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
51534         * modules/unistdio/u16-vsprintf-tests
51535         (test_u16_vsnprintf1_LDADD): Likewise.
51536         * modules/unistdio/u32-vsnprintf-tests
51537         (test_u32_vsnprintf1_LDADD): Likewise.
51538         * modules/unistdio/u32-vsprintf-tests
51539         (test_u32_vsprintf1_LDADD): Likewise.
51540         * modules/unistdio/u8-vsnprintf-tests
51541         (test_u8_vsnprintf1_LDADD): Likewise.
51542         * modules/unistdio/u8-vsprintf-tests
51543         (test_u8_vsprintf1_LDADD): Likewise.
51544         * modules/unistdio/ulc-vsnprintf-tests
51545         (test_ulc_vsnprintf1_LDADD): Likewise.
51546         * modules/unistdio/ulc-vsprintf-tests
51547         (test_ulc_vsprintf1_LDADD): Likewise.
51548
51549         Fix linking of some uniconv tests on FreeBSD.
51550         * modules/uniconv/u16-conv-from-enc-tests
51551         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
51552         * modules/uniconv/u16-conv-to-enc-tests
51553         (test_u16_conv_to_enc_LDADD): Likewise.
51554         * modules/uniconv/u16-strconv-from-enc-tests
51555         (test_u16_strconv_from_enc_LDADD): Likewise.
51556         * modules/uniconv/u16-strconv-to-enc-tests
51557         (test_u16_strconv_to_enc_LDADD): Likewise.
51558         * modules/uniconv/u32-conv-from-enc-tests
51559         (test_u32_conv_from_enc_LDADD): Likewise.
51560         * modules/uniconv/u32-conv-to-enc-tests
51561         (test_u32_conv_to_enc_LDADD): Likewise.
51562         * modules/uniconv/u32-strconv-from-enc-tests
51563         (test_u32_strconv_from_enc_LDADD): Likewise.
51564         * modules/uniconv/u32-strconv-to-enc-tests
51565         (test_u32_strconv_to_enc_LDADD): Likewise.
51566         * modules/uniconv/u8-conv-from-enc-tests
51567         (test_u8_conv_from_enc_LDADD): Likewise.
51568         * modules/uniconv/u8-conv-to-enc-tests
51569         (test_u8_conv_to_enc_LDADD): Likewise.
51570         * modules/uniconv/u8-strconv-from-enc-tests
51571         (test_u8_strconv_from_enc_LDADD): Likewise.
51572         * modules/uniconv/u8-strconv-to-enc-tests
51573         (test_u8_strconv_to_enc_LDADD): Likewise.
51574
51575 2007-10-22  Bruno Haible  <bruno@clisp.org>
51576
51577         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
51578         size.
51579
51580 2007-10-22  Eric Blake  <ebb9@byu.net>
51581
51582         Tweak x*printf documentation.
51583         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
51584         variable name and comments.
51585         Suggested by Bruno Haible.
51586
51587 2007-10-22  Bruno Haible  <bruno@clisp.org>
51588
51589         * lib/acl.c (copy_acl): Fix file name in comment.
51590
51591 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51592
51593         Fix Tru64 problem with stdbool.h.
51594         * lib/stdbool.in.h (false, true):
51595         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
51596         Don't declare as an enum in this situation; it runs afoul of Tru64.
51597         Problem reported by Steven M. Schweda in
51598         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
51599
51600 2007-10-22  Eric Blake  <ebb9@byu.net>
51601
51602         Also wrap vf?printf.
51603         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
51604         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
51605         (xvprintf, xvfprintf): New functions.
51606
51607 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51608
51609         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
51610         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
51611
51612         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
51613         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
51614
51615 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51616
51617         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
51618         by Bruno Haible.
51619
51620 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51621
51622         * lib/getloadavg.c
51623         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
51624         Undef `sys' after including sys/table.h, for Tru64 4.0D.
51625
51626         * tests/test-i-ring.c: Work for C89.
51627
51628 2007-10-22  Bruno Haible  <bruno@clisp.org>
51629
51630         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
51631         -1u, in preprocessor expression, so that we don't test for the bug
51632         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
51633         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
51634
51635 2007-10-22  Eric Blake  <ebb9@byu.net>
51636
51637         * tests/test-yesno.sh: Silence stderr during test.
51638
51639 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51640
51641         * modules/crypto/gc-camellia: New file.
51642
51643         * m4/gc-camellia.m4: New file.
51644
51645         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
51646
51647         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
51648
51649 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51650
51651         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
51652         --help to stdout.  Reported by sms@antinode.org (Steven
51653         M. Schweda).
51654
51655 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51656
51657         * users.txt: Fix link to libksba.
51658
51659 2007-10-21  Ben Pfaff  <blp@gnu.org>
51660
51661         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
51662         round.c roundf implementation that depends on floorf and ceilf to
51663         be tested unconditionally.
51664
51665 2007-10-21  Ben Pfaff  <blp@gnu.org>
51666
51667         * m4/check-libm-func.m4: Removed.
51668         * m4/check-math-lib.m4: New file.
51669         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
51670         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
51671         definition and lack of AC_LIBOBJ([roundf]).
51672         * m4/roundl.m4: Ditto, and similarly for roundl.
51673         * modules/round: Reference new m4 file.
51674         * modules/roundf: Ditto.
51675         * modules/roundl: Ditto.
51676         * tests/test-round2.c (main): Use ROUND instead of round.
51677         Bug report from Bruno Haible.
51678
51679 2007-10-21  Bruno Haible  <bruno@clisp.org>
51680
51681         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
51682         context.
51683
51684 2007-10-21  Bruno Haible  <bruno@clisp.org>
51685
51686         * tests/test-wcwidth.c (main): Allow negative result for some control
51687         characters.
51688
51689         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
51690         Needed on OSF/1 5.1.
51691
51692 2007-10-21  Bruno Haible  <bruno@clisp.org>
51693
51694         * tests/test-floorf1.c: Include isnanf.h.
51695         (main): Use isnanf() instead of isnan().
51696         * tests/test-ceilf1.c: Include isnanf.h.
51697         (main): Use isnanf() instead of isnan().
51698         * tests/test-truncf1.c: Include isnanf.h.
51699         (main): Use isnanf() instead of isnan().
51700         * tests/test-roundf1.c: Include isnanf.h.
51701         (main): Use isnanf() instead of isnan().
51702
51703 2007-10-21  Eric Blake  <ebb9@byu.net>
51704
51705         * users.txt: Update URL for m4.
51706
51707 2007-10-21  Bruno Haible  <bruno@clisp.org>
51708
51709         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
51710
51711 2007-10-21  Bruno Haible  <bruno@clisp.org>
51712
51713         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
51714         Git's management files if the CVS files are not present.
51715
51716 2007-10-20  Bruno Haible  <bruno@clisp.org>
51717
51718         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
51719         gcc-3.4.x.
51720
51721 2007-10-20  Ben Pfaff  <blp@gnu.org>
51722
51723         * lib/math.in.h: Declare round, roundf, roundl if we are providing
51724         implementations.
51725         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
51726         * lib/round.c: New file.
51727         * lib/roundf.c: New file.
51728         * lib/roundl.c: New file.
51729         * m4/round.m4: New file.
51730         * m4/roundf.m4: New file.
51731         * m4/roundl.m4: New file.
51732         * m4/check-libm-func-m4: New file.
51733         * modules/math: Replace round, roundf, roundl related @VARS@ in
51734         math.in.h.
51735         * modules/round: New file.
51736         * modules/round-tests: New file.
51737         * modules/roundf: New file.
51738         * modules/roundf-tests: New file.
51739         * modules/roundl: New file.
51740         * modules/roundl-tests: New file.
51741         * tests/test-round1.c: New file.
51742         * tests/test-round2.c: New file.
51743         * tests/test-roundf1.c: New file.
51744         * tests/test-roundf2.c: New file.
51745         * tests/test-roundl.c: New file.
51746         * doc/functions/round.texi: Mention round module.
51747         * doc/functions/roundf.texi: Mention roundf module.
51748         * doc/functions/roundl.texi: Mention roundl module.
51749         * MODULES.html.sh: Mention new modules.
51750         Thanks to Bruno Haible for suggestions.
51751
51752 2007-10-20  Jim Meyering  <meyering@redhat.com>
51753
51754         * lib/xprintf.c: Include <config.h> unconditionally.
51755
51756         Change xprintf's license to GPL.
51757         * modules/xprintf (License): s/LGPL/GPL/, since this module
51758         depends on modules (exit and exitfail) which are GPL.
51759         Suggestion from Bruno Haible.
51760
51761         xprintf fixes.
51762         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
51763         Use a clearer diagnostic.
51764         Patch from Bruno Haible.
51765
51766 2007-10-20  Bruno Haible  <bruno@clisp.org>
51767
51768         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
51769         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
51770         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51771
51772 2007-10-20  Bruno Haible  <bruno@clisp.org>
51773
51774         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
51775         precision in the comparison result > x - 1 or similar.
51776         * tests/test-ceilf2.c (correct_result_p): Likewise.
51777         * tests/test-truncf2.c (correct_result_p): Likewise.
51778         * tests/test-trunc2.c (correct_result_p): Likewise.
51779         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51780
51781 2007-10-20  Bruno Haible  <bruno@clisp.org>
51782
51783         * modules/ceil: New file.
51784         * m4/ceil.m4: New file.
51785         * doc/functions/ceil.texi: Mention the 'ceil' module.
51786
51787 2007-10-20  Bruno Haible  <bruno@clisp.org>
51788
51789         * modules/floor: New file.
51790         * m4/floor.m4: New file.
51791         * doc/functions/floor.texi: Mention the 'floor' module.
51792
51793 2007-10-20  Bruno Haible  <bruno@clisp.org>
51794
51795         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
51796         of %a.
51797         * modules/floorf-tests (Depends-on): Likewise.
51798         * modules/truncf-tests (Depends-on): Likewise.
51799         * modules/trunc-tests (Depends-on): Likewise.
51800         Reported by Ben Pfaff.
51801
51802 2007-10-19  Jim Meyering  <meyering@redhat.com>
51803
51804         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
51805         Don't bother testing specific errno values.  Just test ferror.
51806
51807         New module: xprintf
51808         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
51809
51810 2007-10-19  Bruno Haible  <bruno@clisp.org>
51811
51812         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
51813         syntax.
51814         * modules/javaexec (Makefile.am): Likewise.
51815         * modules/relocatable-prog (Makefile.am): Likewise.
51816         Suggested by Jim Meyering.
51817
51818 2007-10-18  Bruno Haible  <bruno@clisp.org>
51819
51820         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
51821         Reported by Jim Meyering.
51822
51823 2007-10-18  Eric Blake  <ebb9@byu.net>
51824
51825         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
51826
51827 2007-10-18  Bruno Haible  <bruno@clisp.org>
51828
51829         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
51830         the format string into writable memory. Needed in Fortify conditions.
51831
51832 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
51833             Bruno Haible  <bruno@clisp.org>
51834
51835         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
51836         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
51837         * modules/trim (Depends-on): Add mbchar.
51838         (configure.ac): Add gl_FUNC_MBRTOWC.
51839         (Makefile.am): Augment lib_SOURCES.
51840
51841 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51842
51843         Modify glob.c to use fstatat and dirfd, to simplify it.
51844         Suggested by Eric Blake.
51845         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
51846         Don't include <stdbool.h>; not used.
51847         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
51848         (link_exists_p): Simplify implementation, since we can now assume
51849         dirfd and fstatat.
51850         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
51851
51852 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51853
51854         * gnulib-tool (func_get_dependencies): Fix sed script to
51855         match only tests.
51856
51857 2007-10-17  Bruno Haible  <bruno@clisp.org>
51858
51859         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
51860         allow locale names without encoding suffix.
51861         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51862         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51863
51864 2007-10-16  Bruno Haible  <bruno@clisp.org>
51865
51866         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
51867         * lib/getgroups.c (getgroups): Likewise.
51868         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
51869
51870 2007-10-16  Bruno Haible  <bruno@clisp.org>
51871
51872         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
51873         * modules/malloc-posix (License): Likewise.
51874         * modules/realloc-posix (License): Likewise.
51875         * modules/calloc-posix (License): Likewise.
51876         * modules/intprops (License): Change from GPL to LGPL, with
51877         Paul Eggert's approval.
51878
51879 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51880
51881         Merge glibc changes into lib/glob.c.
51882
51883         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
51884         2007-10-15 04:59:03 UTC.  Here are the changes:
51885
51886         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
51887
51888         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
51889
51890         * lib/glob.c: Add some branch prediction throughout.
51891
51892         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
51893
51894         [BZ #5103]
51895         * lib/glob.c (glob): Recognize patterns starting \/.
51896
51897         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
51898
51899         [BZ #3996]
51900         * lib/glob.c (attribute_hidden): Define if not defined.
51901         (glob): Unescape dirname, filename or username when needed and not
51902         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51903         is NULL.  Handle unescaped [ in pattern without closing ].
51904         Don't pass GLOB_CHECK down to recursive glob for directories.
51905         (__glob_pattern_type): New function.
51906         (__glob_pattern_p): Implement using __glob_pattern_type.
51907         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51908         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51909         Remove unreachable code.
51910
51911         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51912
51913         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51914         explain why there are no leaks.
51915
51916         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51917
51918         [BZ #3253]
51919         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51920         time, rather allocate increasingly bigger arrays of pointers, if
51921         possible with alloca, if too large with malloc.
51922
51923 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51924
51925         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51926         Problem reported by H.Merijn Brand in
51927         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51928         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51929         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51930
51931 2007-10-15  Bruno Haible  <bruno@clisp.org>
51932
51933         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51934         with explicit rpl_ prefix.
51935         * lib/fopen.c (fopen): Likewise.
51936         * lib/freopen.c (freopen): Likewise.
51937         * lib/iconv.c (iconv): Likewise.
51938         * lib/iconv_close.c (iconv_close): Likewise.
51939
51940 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51941
51942         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51943
51944 2007-10-15  Bruno Haible  <bruno@clisp.org>
51945
51946         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51947         <stddef.h> instead of <stdlib.h> since we only need NULL.
51948         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51949
51950 2007-10-15  Bruno Haible  <bruno@clisp.org>
51951
51952         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51953         Replace paragraph talking about LIBOBJS.
51954         Reported by Colin Watson <cjwatson@debian.org>.
51955
51956 2007-10-15  Bruno Haible  <bruno@clisp.org>
51957
51958         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51959         <stdlib.h> before using NULL.
51960
51961 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51962
51963         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51964         Reported by Albert Chin <china@thewrittenword.com>.
51965
51966 2007-10-14  Bruno Haible  <bruno@clisp.org>
51967
51968         * modules/iconv_open-utf-tests: New file.
51969         * tests/test-iconv-utf.c: New file.
51970
51971         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51972         * modules/iconv_open-utf: New file.
51973         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51974         (iconv, iconv_close): New declarations.
51975         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51976         be defined.
51977         (iconv_open): Add special handling of conversion between UTF-8 and
51978         UTF-{16,32}{BE,LE}.
51979         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51980         * lib/iconv_close.c: New file.
51981         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51982         gl_FUNC_ICONV_OPEN.
51983         (gl_FUNC_ICONV_OPEN): Use it.
51984         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51985         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51986         and REPLACE_ICONV_UTF.
51987         * modules/iconv_open (Depends-on): Add c-strcase.
51988         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51989         ICONV_CONST.
51990         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51991
51992 2007-10-13  Albert Chin  <china@thewrittenword.com>
51993             Bruno Haible  <bruno@clisp.org>
51994
51995         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51996         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51997
51998 2007-10-13  Bruno Haible  <bruno@clisp.org>
51999
52000         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
52001         defined, use the ISO C99 inline semantics.
52002         * lib/argp.h (ARGP_EI): Likewise.
52003
52004 2007-10-13  Bruno Haible  <bruno@clisp.org>
52005
52006         Handle 'inline' change in gcc 4.3.0.
52007         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
52008         argp_fmtstream_write, argp_fmtstream_set_lmargin,
52009         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
52010         argp_fmtstream_point): Disable 'extern' declaration if the function
52011         definition is going to be provided inline.
52012         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
52013         semantics, not the ISO C99 inline semantics.
52014         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
52015         'extern' declaration if the function definition is going to be provided
52016         inline.
52017         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
52018         the GNU C inline semantics, not the ISO C99 inline semantics. With
52019         GCC 4.2, avoid a warning.
52020
52021 2007-10-13  Bruno Haible  <bruno@clisp.org>
52022
52023         * lib/freading.h (freading): Enable the use of __freading for
52024         glibc >= 2.7.
52025         * lib/freading.c (freading): Likewise.
52026
52027 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52028
52029         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
52030         "warning: C99 inline functions are not supported; using GNU89".
52031
52032 2007-10-12  Bruno Haible  <bruno@clisp.org>
52033
52034         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
52035         of 2.
52036         * tests/test-ceilf2.c: New file.
52037         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
52038
52039         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
52040         * modules/ceilf-tests: Update.
52041
52042 2007-10-12  Bruno Haible  <bruno@clisp.org>
52043
52044         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
52045         of 2.
52046         * tests/test-floorf2.c: New file.
52047         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
52048
52049         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
52050         * modules/floorf-tests: Update.
52051
52052 2007-10-12  Bruno Haible  <bruno@clisp.org>
52053
52054         * tests/test-trunc2.c: New file.
52055         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
52056
52057         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
52058         * modules/trunc-tests: Update.
52059
52060 2007-10-12  Bruno Haible  <bruno@clisp.org>
52061
52062         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
52063         of 2.
52064         * tests/test-truncf2.c: New file.
52065         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
52066
52067         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
52068         * modules/truncf-tests: Update.
52069
52070 2007-10-11  Eric Blake  <ebb9@byu.net>
52071
52072         Don't claim strerror is broken on Interix.
52073         * doc/functions/strerror.texi (strerror): Known broken systems are
52074         now Solaris 8, and not Interix.
52075         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
52076         Interix on cross-compile.
52077         Reported by Martin Koeppe in
52078         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
52079
52080 2007-10-11  Bruno Haible  <bruno@clisp.org>
52081
52082         * modules/i-ring-tests: New file.
52083         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
52084         instead of assert.
52085
52086 2007-10-11  Bruno Haible  <bruno@clisp.org>
52087
52088         * modules/filenamecat-tests: New file.
52089         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
52090         * lib/filenamecat.c: Remove test code.
52091
52092 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52093
52094         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
52095
52096         * lib/strerror.c: Include <string.h> always, to test interface,
52097         and to remove the need for the dummy.
52098         Include intprops.h to compute width instead of doing it ourselves
52099         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
52100         (strerror): Define it to return NULL if there's no system strerror.
52101         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
52102         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
52103         ancient pre-strerror Unix systems well any more.  Saying "unknown
52104         system error" is enough.
52105         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
52106         simpler strerror.c implementation.
52107         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
52108         Simplify the tests to reflect the simpler strerror implementation.
52109         * modules/strerror (Depends-on): Add intprops.
52110
52111 2007-10-09  Eric Blake  <ebb9@byu.net>
52112
52113         Silence test-fpending.
52114         * modules/fpending-tests (Files): Add wrapper script.
52115         * tests/test-fpending.sh: New file.
52116
52117 2007-10-09  Bruno Haible  <bruno@clisp.org>
52118
52119         * MODULES.html.sh (func_module): Don't create a hyperlink for
52120         function names like 'printf_frexp'.
52121         (Misc): Add crc, memxor.
52122         (Characteristics of floating types): New section.
52123         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
52124         isnanf-nolibm, signbit, trunc, truncf, truncl.
52125         (Enhancements for ISO C 99 functions): New subsection Input/output.
52126         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
52127         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
52128         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
52129         (Compatibility checks for POSIX:2001 functions): Add clock-time.
52130         (Enhancements for POSIX:2001 functions): Add chdir-long.
52131         (File system functions): Add areadlink, chdir-safer, read-file.
52132         Remove cycle-check.
52133         (File system as inode set): New section.
52134         (Date and time): Add gethrxtime.
52135         (Multithreading): Add openmp.
52136         (Internationalization functions): Add localename.
52137         (Unicode string functions): Add unistr/u*-mbsnlen.
52138         (Support for maintaining and releasing projects): Add git-version-gen.
52139         (Lone files): Remove directories.
52140
52141 2007-10-08  Ben Pfaff  <blp@gnu.org>
52142
52143         * lib/xmalloca.h: Fix typo in comment.
52144
52145 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52146
52147         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
52148         when avoiding problems with integer overflow.  Use a portable test
52149         instead.
52150
52151 2007-10-08  Simon Josefsson  <simon@josefsson.org>
52152
52153         * modules/dummy (License): Change to LGPLv2+.
52154         * modules/float (License): Likewise
52155         * modules/realloc (License): Likewise
52156         * modules/stdlib (License): Likewise
52157
52158 2007-10-07  Bruno Haible  <bruno@clisp.org>
52159
52160         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
52161         * floor.c (TWO_MANT_DIG): Likewise.
52162         * ceil.c (TWO_MANT_DIG): Likewise.
52163         Reported by Ben Pfaff.
52164
52165 2007-10-07  Bruno Haible  <bruno@clisp.org>
52166
52167         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
52168         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
52169         * lib/frexp.c (FUNC): Likewise.
52170         * lib/printf-frexp.h (printf_frexp): Likewise.
52171         * lib/printf-frexpl.h (printf_frexpl): Likewise.
52172         * lib/printf-frexp.c (FUNC): Likewise.
52173         Suggested by Jim Meyering.
52174
52175 2007-10-07  Jim Meyering  <meyering@redhat.com>
52176
52177         Make xnanosleep's integer overflow test more robust.
52178         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
52179         so that gcc-4.3.0 doesn't optimize away this test for overflow.
52180
52181 2007-10-07  Bruno Haible  <bruno@clisp.org>
52182
52183         * NEWS: Mention the license change.
52184
52185         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
52186         abbreviations in the modules files.
52187
52188         Change copyright notice from GPLv2+ to GPLv3+.
52189         * README: Change copyright notice.
52190         * MODULES.html.sh: Likewise.
52191         * build-aux/bootstrap.conf: Likewise.
52192         * build-aux/config.libpath: Likewise.
52193         * build-aux/csharpcomp.sh.in: Likewise.
52194         * build-aux/csharpexec.sh.in: Likewise.
52195         * build-aux/install-reloc: Likewise.
52196         * build-aux/javacomp.sh.in: Likewise.
52197         * build-aux/javaexec.sh.in: Likewise.
52198         * build-aux/ldd.sh.in: Likewise.
52199         * build-aux/reloc-ldflags: Likewise.
52200         * build-aux/relocatable.sh.in: Likewise.
52201         * build-aux/x-to-1.in: Likewise.
52202         * check-module: Likewise.
52203         * config/srclistvars.sh: Likewise.
52204         * gnulib-tool: Likewise.
52205         * lib/acl-internal.h: Likewise.
52206         * lib/acl.c: Likewise.
52207         * lib/acl.h: Likewise.
52208         * lib/acl_entries.c: Likewise.
52209         * lib/areadlink-with-size.c: Likewise.
52210         * lib/areadlink.c: Likewise.
52211         * lib/areadlink.h: Likewise.
52212         * lib/argmatch.c: Likewise.
52213         * lib/argmatch.h: Likewise.
52214         * lib/argp-ba.c: Likewise.
52215         * lib/argp-eexst.c: Likewise.
52216         * lib/argp-fmtstream.c: Likewise.
52217         * lib/argp-fmtstream.h: Likewise.
52218         * lib/argp-fs-xinl.c: Likewise.
52219         * lib/argp-help.c: Likewise.
52220         * lib/argp-namefrob.h: Likewise.
52221         * lib/argp-parse.c: Likewise.
52222         * lib/argp-pin.c: Likewise.
52223         * lib/argp-pv.c: Likewise.
52224         * lib/argp-pvh.c: Likewise.
52225         * lib/argp-xinl.c: Likewise.
52226         * lib/argp.h: Likewise.
52227         * lib/at-func.c: Likewise.
52228         * lib/atanl.c: Likewise.
52229         * lib/backupfile.c: Likewise.
52230         * lib/backupfile.h: Likewise.
52231         * lib/basename.c: Likewise.
52232         * lib/binary-io.h: Likewise.
52233         * lib/byteswap.in.h: Likewise.
52234         * lib/c-stack.c: Likewise.
52235         * lib/c-stack.h: Likewise.
52236         * lib/c-strcasestr.c: Likewise.
52237         * lib/c-strcasestr.h: Likewise.
52238         * lib/c-strstr.c: Likewise.
52239         * lib/c-strstr.h: Likewise.
52240         * lib/c-strtod.c: Likewise.
52241         * lib/calloc.c: Likewise.
52242         * lib/canon-host.c: Likewise.
52243         * lib/canon-host.h: Likewise.
52244         * lib/canonicalize-lgpl.c: Likewise.
52245         * lib/canonicalize.c: Likewise.
52246         * lib/canonicalize.h: Likewise.
52247         * lib/ceil.c: Likewise.
52248         * lib/ceilf.c: Likewise.
52249         * lib/ceill.c: Likewise.
52250         * lib/chdir-long.c: Likewise.
52251         * lib/chdir-long.h: Likewise.
52252         * lib/chdir-safer.c: Likewise.
52253         * lib/chdir-safer.h: Likewise.
52254         * lib/chown.c: Likewise.
52255         * lib/classpath.c: Likewise.
52256         * lib/classpath.h: Likewise.
52257         * lib/clean-temp.c: Likewise.
52258         * lib/clean-temp.h: Likewise.
52259         * lib/cloexec.c: Likewise.
52260         * lib/close-stream.c: Likewise.
52261         * lib/closein.c: Likewise.
52262         * lib/closein.h: Likewise.
52263         * lib/closeout.c: Likewise.
52264         * lib/closeout.h: Likewise.
52265         * lib/concat-filename.c: Likewise.
52266         * lib/copy-file.c: Likewise.
52267         * lib/copy-file.h: Likewise.
52268         * lib/count-one-bits.h: Likewise.
52269         * lib/crc.c: Likewise.
52270         * lib/crc.h: Likewise.
52271         * lib/creat-safer.c: Likewise.
52272         * lib/csharpcomp.c: Likewise.
52273         * lib/csharpcomp.h: Likewise.
52274         * lib/csharpexec.c: Likewise.
52275         * lib/csharpexec.h: Likewise.
52276         * lib/cycle-check.c: Likewise.
52277         * lib/cycle-check.h: Likewise.
52278         * lib/diacrit.c: Likewise.
52279         * lib/diacrit.h: Likewise.
52280         * lib/diffseq.h: Likewise.
52281         * lib/dirchownmod.c: Likewise.
52282         * lib/dirent.in.h: Likewise.
52283         * lib/dirfd.c: Likewise.
52284         * lib/dirfd.h: Likewise.
52285         * lib/dirname.c: Likewise.
52286         * lib/dirname.h: Likewise.
52287         * lib/dummy.c: Likewise.
52288         * lib/dup-safer.c: Likewise.
52289         * lib/dup2.c: Likewise.
52290         * lib/eealloc.h: Likewise.
52291         * lib/error.c: Likewise.
52292         * lib/error.h: Likewise.
52293         * lib/euidaccess.c: Likewise.
52294         * lib/exclude.c: Likewise.
52295         * lib/exclude.h: Likewise.
52296         * lib/execute.c: Likewise.
52297         * lib/execute.h: Likewise.
52298         * lib/exitfail.c: Likewise.
52299         * lib/exitfail.h: Likewise.
52300         * lib/expl.c: Likewise.
52301         * lib/fatal-signal.c: Likewise.
52302         * lib/fatal-signal.h: Likewise.
52303         * lib/fbufmode.c: Likewise.
52304         * lib/fbufmode.h: Likewise.
52305         * lib/fchdir.c: Likewise.
52306         * lib/fchmodat.c: Likewise.
52307         * lib/fchownat.c: Likewise.
52308         * lib/fcntl--.h: Likewise.
52309         * lib/fcntl-safer.h: Likewise.
52310         * lib/fcntl.in.h: Likewise.
52311         * lib/fd-safer.c: Likewise.
52312         * lib/fflush.c: Likewise.
52313         * lib/file-has-acl.c: Likewise.
52314         * lib/file-set.c: Likewise.
52315         * lib/file-type.c: Likewise.
52316         * lib/file-type.h: Likewise.
52317         * lib/fileblocks.c: Likewise.
52318         * lib/filemode.c: Likewise.
52319         * lib/filemode.h: Likewise.
52320         * lib/filename.h: Likewise.
52321         * lib/filenamecat.c: Likewise.
52322         * lib/filenamecat.h: Likewise.
52323         * lib/findprog.c: Likewise.
52324         * lib/findprog.h: Likewise.
52325         * lib/float.in.h: Likewise.
52326         * lib/floor.c: Likewise.
52327         * lib/floorf.c: Likewise.
52328         * lib/floorl.c: Likewise.
52329         * lib/fopen-safer.c: Likewise.
52330         * lib/fopen.c: Likewise.
52331         * lib/fpending.c: Likewise.
52332         * lib/fpending.h: Likewise.
52333         * lib/fprintf.c: Likewise.
52334         * lib/fprintftime.h: Likewise.
52335         * lib/fpucw.h: Likewise.
52336         * lib/fpurge.c: Likewise.
52337         * lib/fpurge.h: Likewise.
52338         * lib/freadable.c: Likewise.
52339         * lib/freadable.h: Likewise.
52340         * lib/freadahead.c: Likewise.
52341         * lib/freadahead.h: Likewise.
52342         * lib/freading.c: Likewise.
52343         * lib/freading.h: Likewise.
52344         * lib/free.c: Likewise.
52345         * lib/freopen.c: Likewise.
52346         * lib/frexp.c: Likewise.
52347         * lib/frexpl.c: Likewise.
52348         * lib/fseek.c: Likewise.
52349         * lib/fseterr.c: Likewise.
52350         * lib/fseterr.h: Likewise.
52351         * lib/fstatat.c: Likewise.
52352         * lib/fstrcmp.c: Likewise.
52353         * lib/fstrcmp.h: Likewise.
52354         * lib/fsusage.c: Likewise.
52355         * lib/fsusage.h: Likewise.
52356         * lib/ftell.c: Likewise.
52357         * lib/ftello.c: Likewise.
52358         * lib/fts-cycle.c: Likewise.
52359         * lib/fts.c: Likewise.
52360         * lib/fts_.h: Likewise.
52361         * lib/full-read.c: Likewise.
52362         * lib/full-read.h: Likewise.
52363         * lib/full-write.c: Likewise.
52364         * lib/full-write.h: Likewise.
52365         * lib/fwritable.c: Likewise.
52366         * lib/fwritable.h: Likewise.
52367         * lib/fwriteerror.c: Likewise.
52368         * lib/fwriteerror.h: Likewise.
52369         * lib/fwriting.c: Likewise.
52370         * lib/fwriting.h: Likewise.
52371         * lib/gcd.c: Likewise.
52372         * lib/gcd.h: Likewise.
52373         * lib/getcwd.c: Likewise.
52374         * lib/getdate.h: Likewise.
52375         * lib/getdate.y: Likewise.
52376         * lib/getdomainname.c: Likewise.
52377         * lib/getdomainname.h: Likewise.
52378         * lib/getgroups.c: Likewise.
52379         * lib/gethostname.c: Likewise.
52380         * lib/gethrxtime.c: Likewise.
52381         * lib/gethrxtime.h: Likewise.
52382         * lib/getloadavg.c: Likewise.
52383         * lib/getndelim2.c: Likewise.
52384         * lib/getndelim2.h: Likewise.
52385         * lib/getnline.c: Likewise.
52386         * lib/getnline.h: Likewise.
52387         * lib/getopt.c: Likewise.
52388         * lib/getopt.in.h: Likewise.
52389         * lib/getopt1.c: Likewise.
52390         * lib/getopt_int.h: Likewise.
52391         * lib/getpagesize.h: Likewise.
52392         * lib/getsubopt.c: Likewise.
52393         * lib/gettime.c: Likewise.
52394         * lib/getugroups.c: Likewise.
52395         * lib/getugroups.h: Likewise.
52396         * lib/getusershell.c: Likewise.
52397         * lib/gl_anyavltree_list1.h: Likewise.
52398         * lib/gl_anyavltree_list2.h: Likewise.
52399         * lib/gl_anyhash_list1.h: Likewise.
52400         * lib/gl_anyhash_list2.h: Likewise.
52401         * lib/gl_anylinked_list1.h: Likewise.
52402         * lib/gl_anylinked_list2.h: Likewise.
52403         * lib/gl_anyrbtree_list1.h: Likewise.
52404         * lib/gl_anyrbtree_list2.h: Likewise.
52405         * lib/gl_anytree_list1.h: Likewise.
52406         * lib/gl_anytree_list2.h: Likewise.
52407         * lib/gl_anytree_oset.h: Likewise.
52408         * lib/gl_anytreehash_list1.h: Likewise.
52409         * lib/gl_anytreehash_list2.h: Likewise.
52410         * lib/gl_array_list.c: Likewise.
52411         * lib/gl_array_list.h: Likewise.
52412         * lib/gl_array_oset.c: Likewise.
52413         * lib/gl_array_oset.h: Likewise.
52414         * lib/gl_avltree_list.c: Likewise.
52415         * lib/gl_avltree_list.h: Likewise.
52416         * lib/gl_avltree_oset.c: Likewise.
52417         * lib/gl_avltree_oset.h: Likewise.
52418         * lib/gl_avltreehash_list.c: Likewise.
52419         * lib/gl_avltreehash_list.h: Likewise.
52420         * lib/gl_carray_list.c: Likewise.
52421         * lib/gl_carray_list.h: Likewise.
52422         * lib/gl_linked_list.c: Likewise.
52423         * lib/gl_linked_list.h: Likewise.
52424         * lib/gl_linkedhash_list.c: Likewise.
52425         * lib/gl_linkedhash_list.h: Likewise.
52426         * lib/gl_list.c: Likewise.
52427         * lib/gl_list.h: Likewise.
52428         * lib/gl_oset.c: Likewise.
52429         * lib/gl_oset.h: Likewise.
52430         * lib/gl_rbtree_list.c: Likewise.
52431         * lib/gl_rbtree_list.h: Likewise.
52432         * lib/gl_rbtree_oset.c: Likewise.
52433         * lib/gl_rbtree_oset.h: Likewise.
52434         * lib/gl_rbtreehash_list.c: Likewise.
52435         * lib/gl_rbtreehash_list.h: Likewise.
52436         * lib/gl_sublist.c: Likewise.
52437         * lib/gl_sublist.h: Likewise.
52438         * lib/group-member.c: Likewise.
52439         * lib/group-member.h: Likewise.
52440         * lib/hard-locale.c: Likewise.
52441         * lib/hard-locale.h: Likewise.
52442         * lib/hash-pjw.c: Likewise.
52443         * lib/hash-pjw.h: Likewise.
52444         * lib/hash-triple.c: Likewise.
52445         * lib/hash.c: Likewise.
52446         * lib/hash.h: Likewise.
52447         * lib/human.c: Likewise.
52448         * lib/human.h: Likewise.
52449         * lib/i-ring.c: Likewise.
52450         * lib/i-ring.h: Likewise.
52451         * lib/idcache.c: Likewise.
52452         * lib/imaxabs.c: Likewise.
52453         * lib/imaxdiv.c: Likewise.
52454         * lib/inet_pton.c: Likewise.
52455         * lib/inet_pton.h: Likewise.
52456         * lib/intprops.h: Likewise.
52457         * lib/inttostr.c: Likewise.
52458         * lib/inttostr.h: Likewise.
52459         * lib/inttypes.in.h: Likewise.
52460         * lib/isapipe.c: Likewise.
52461         * lib/isdir.c: Likewise.
52462         * lib/isnan.c: Likewise.
52463         * lib/isnan.h: Likewise.
52464         * lib/isnanf.c: Likewise.
52465         * lib/isnanf.h: Likewise.
52466         * lib/isnanl-nolibm.h: Likewise.
52467         * lib/isnanl.c: Likewise.
52468         * lib/isnanl.h: Likewise.
52469         * lib/javacomp.c: Likewise.
52470         * lib/javacomp.h: Likewise.
52471         * lib/javaexec.c: Likewise.
52472         * lib/javaexec.h: Likewise.
52473         * lib/javaversion.c: Likewise.
52474         * lib/javaversion.h: Likewise.
52475         * lib/javaversion.java: Likewise.
52476         * lib/lbrkprop.h: Likewise.
52477         * lib/lchmod.h: Likewise.
52478         * lib/lchown.c: Likewise.
52479         * lib/ldexpl.c: Likewise.
52480         * lib/linebreak.c: Likewise.
52481         * lib/linebreak.h: Likewise.
52482         * lib/linebuffer.c: Likewise.
52483         * lib/linebuffer.h: Likewise.
52484         * lib/locale.in.h: Likewise.
52485         * lib/logl.c: Likewise.
52486         * lib/long-options.c: Likewise.
52487         * lib/long-options.h: Likewise.
52488         * lib/lstat.c: Likewise.
52489         * lib/lstat.h: Likewise.
52490         * lib/math.in.h: Likewise.
52491         * lib/mbchar.c: Likewise.
52492         * lib/mbchar.h: Likewise.
52493         * lib/mbfile.h: Likewise.
52494         * lib/mbiter.h: Likewise.
52495         * lib/mbscasecmp.c: Likewise.
52496         * lib/mbscasestr.c: Likewise.
52497         * lib/mbschr.c: Likewise.
52498         * lib/mbscspn.c: Likewise.
52499         * lib/mbslen.c: Likewise.
52500         * lib/mbsncasecmp.c: Likewise.
52501         * lib/mbsnlen.c: Likewise.
52502         * lib/mbspbrk.c: Likewise.
52503         * lib/mbspcasecmp.c: Likewise.
52504         * lib/mbsrchr.c: Likewise.
52505         * lib/mbssep.c: Likewise.
52506         * lib/mbsspn.c: Likewise.
52507         * lib/mbsstr.c: Likewise.
52508         * lib/mbstok_r.c: Likewise.
52509         * lib/mbswidth.c: Likewise.
52510         * lib/mbswidth.h: Likewise.
52511         * lib/mbuiter.h: Likewise.
52512         * lib/memcasecmp.c: Likewise.
52513         * lib/memcasecmp.h: Likewise.
52514         * lib/memchr.c: Likewise.
52515         * lib/memcmp.c: Likewise.
52516         * lib/memcoll.c: Likewise.
52517         * lib/memcoll.h: Likewise.
52518         * lib/memcpy.c: Likewise.
52519         * lib/memrchr.c: Likewise.
52520         * lib/mkancesdirs.c: Likewise.
52521         * lib/mkdir-p.c: Likewise.
52522         * lib/mkdir-p.h: Likewise.
52523         * lib/mkdir.c: Likewise.
52524         * lib/mkdirat.c: Likewise.
52525         * lib/mkdtemp.c: Likewise.
52526         * lib/mkstemp-safer.c: Likewise.
52527         * lib/mkstemp.c: Likewise.
52528         * lib/modechange.c: Likewise.
52529         * lib/modechange.h: Likewise.
52530         * lib/mountlist.c: Likewise.
52531         * lib/mountlist.h: Likewise.
52532         * lib/mpsort.c: Likewise.
52533         * lib/nanosleep.c: Likewise.
52534         * lib/obstack.c: Likewise.
52535         * lib/obstack.h: Likewise.
52536         * lib/open-safer.c: Likewise.
52537         * lib/open.c: Likewise.
52538         * lib/openat-die.c: Likewise.
52539         * lib/openat-priv.h: Likewise.
52540         * lib/openat-proc.c: Likewise.
52541         * lib/openat.c: Likewise.
52542         * lib/openat.h: Likewise.
52543         * lib/pagealign_alloc.c: Likewise.
52544         * lib/pagealign_alloc.h: Likewise.
52545         * lib/physmem.c: Likewise.
52546         * lib/physmem.h: Likewise.
52547         * lib/pipe-safer.c: Likewise.
52548         * lib/pipe.c: Likewise.
52549         * lib/pipe.h: Likewise.
52550         * lib/posixtm.c: Likewise.
52551         * lib/posixtm.h: Likewise.
52552         * lib/posixver.c: Likewise.
52553         * lib/printf-frexp.c: Likewise.
52554         * lib/printf-frexp.h: Likewise.
52555         * lib/printf-frexpl.c: Likewise.
52556         * lib/printf-frexpl.h: Likewise.
52557         * lib/printf.c: Likewise.
52558         * lib/progname.c: Likewise.
52559         * lib/progname.h: Likewise.
52560         * lib/progreloc.c: Likewise.
52561         * lib/putenv.c: Likewise.
52562         * lib/quote.c: Likewise.
52563         * lib/quote.h: Likewise.
52564         * lib/quotearg.c: Likewise.
52565         * lib/quotearg.h: Likewise.
52566         * lib/raise.c: Likewise.
52567         * lib/readline.c: Likewise.
52568         * lib/readline.h: Likewise.
52569         * lib/readlink.c: Likewise.
52570         * lib/readtokens.c: Likewise.
52571         * lib/readtokens.h: Likewise.
52572         * lib/readtokens0.c: Likewise.
52573         * lib/readtokens0.h: Likewise.
52574         * lib/readutmp.c: Likewise.
52575         * lib/readutmp.h: Likewise.
52576         * lib/realloc.c: Likewise.
52577         * lib/relocwrapper.c: Likewise.
52578         * lib/rename-dest-slash.c: Likewise.
52579         * lib/rename.c: Likewise.
52580         * lib/rmdir.c: Likewise.
52581         * lib/rpmatch.c: Likewise.
52582         * lib/safe-read.c: Likewise.
52583         * lib/safe-read.h: Likewise.
52584         * lib/safe-write.c: Likewise.
52585         * lib/safe-write.h: Likewise.
52586         * lib/same-inode.h: Likewise.
52587         * lib/same.c: Likewise.
52588         * lib/same.h: Likewise.
52589         * lib/save-cwd.c: Likewise.
52590         * lib/save-cwd.h: Likewise.
52591         * lib/savedir.c: Likewise.
52592         * lib/savedir.h: Likewise.
52593         * lib/savewd.c: Likewise.
52594         * lib/savewd.h: Likewise.
52595         * lib/search.in.h: Likewise.
52596         * lib/setenv.c: Likewise.
52597         * lib/setenv.h: Likewise.
52598         * lib/settime.c: Likewise.
52599         * lib/sh-quote.c: Likewise.
52600         * lib/sh-quote.h: Likewise.
52601         * lib/sig2str.c: Likewise.
52602         * lib/sig2str.h: Likewise.
52603         * lib/signal.in.h: Likewise.
52604         * lib/signbitd.c: Likewise.
52605         * lib/signbitf.c: Likewise.
52606         * lib/signbitl.c: Likewise.
52607         * lib/sigprocmask.c: Likewise.
52608         * lib/sincosl.c: Likewise.
52609         * lib/sleep.c: Likewise.
52610         * lib/sprintf.c: Likewise.
52611         * lib/sqrtl.c: Likewise.
52612         * lib/stat-time.h: Likewise.
52613         * lib/stdio--.h: Likewise.
52614         * lib/stdio-safer.h: Likewise.
52615         * lib/stdlib--.h: Likewise.
52616         * lib/stdlib-safer.h: Likewise.
52617         * lib/stdlib.in.h: Likewise.
52618         * lib/stpcpy.c: Likewise.
52619         * lib/stpncpy.c: Likewise.
52620         * lib/strchrnul.c: Likewise.
52621         * lib/strcspn.c: Likewise.
52622         * lib/strerror.c: Likewise.
52623         * lib/strftime.c: Likewise.
52624         * lib/strftime.h: Likewise.
52625         * lib/striconveh.c: Likewise.
52626         * lib/striconveh.h: Likewise.
52627         * lib/striconveha.c: Likewise.
52628         * lib/striconveha.h: Likewise.
52629         * lib/stripslash.c: Likewise.
52630         * lib/strnlen1.c: Likewise.
52631         * lib/strnlen1.h: Likewise.
52632         * lib/strtod.c: Likewise.
52633         * lib/strtoimax.c: Likewise.
52634         * lib/strtok_r.c: Likewise.
52635         * lib/strtol.c: Likewise.
52636         * lib/strtoll.c: Likewise.
52637         * lib/strtoul.c: Likewise.
52638         * lib/strtoull.c: Likewise.
52639         * lib/sysexits.in.h: Likewise.
52640         * lib/tempname.c: Likewise.
52641         * lib/tempname.h: Likewise.
52642         * lib/timespec.h: Likewise.
52643         * lib/tls.c: Likewise.
52644         * lib/tls.h: Likewise.
52645         * lib/tmpdir.c: Likewise.
52646         * lib/tmpdir.h: Likewise.
52647         * lib/tmpfile-safer.c: Likewise.
52648         * lib/tmpfile.c: Likewise.
52649         * lib/trigl.c: Likewise.
52650         * lib/trigl.h: Likewise.
52651         * lib/trim.c: Likewise.
52652         * lib/trim.h: Likewise.
52653         * lib/trunc.c: Likewise.
52654         * lib/truncf.c: Likewise.
52655         * lib/truncl.c: Likewise.
52656         * lib/tsearch.c: Likewise.
52657         * lib/unicodeio.c: Likewise.
52658         * lib/unicodeio.h: Likewise.
52659         * lib/unistd--.h: Likewise.
52660         * lib/unistd-safer.h: Likewise.
52661         * lib/unistdio/ulc-fprintf.c: Likewise.
52662         * lib/unistdio/ulc-vfprintf.c: Likewise.
52663         * lib/unlinkdir.c: Likewise.
52664         * lib/unlinkdir.h: Likewise.
52665         * lib/unlocked-io.h: Likewise.
52666         * lib/unsetenv.c: Likewise.
52667         * lib/userspec.c: Likewise.
52668         * lib/utime.c: Likewise.
52669         * lib/utimecmp.c: Likewise.
52670         * lib/utimecmp.h: Likewise.
52671         * lib/utimens.c: Likewise.
52672         * lib/verify.h: Likewise.
52673         * lib/verror.c: Likewise.
52674         * lib/verror.h: Likewise.
52675         * lib/version-etc-fsf.c: Likewise.
52676         * lib/version-etc.c: Likewise.
52677         * lib/version-etc.h: Likewise.
52678         * lib/vfprintf.c: Likewise.
52679         * lib/vprintf.c: Likewise.
52680         * lib/vsprintf.c: Likewise.
52681         * lib/w32spawn.h: Likewise.
52682         * lib/wait-process.c: Likewise.
52683         * lib/wait-process.h: Likewise.
52684         * lib/wcwidth.c: Likewise.
52685         * lib/write-any-file.c: Likewise.
52686         * lib/xalloc-die.c: Likewise.
52687         * lib/xalloc.h: Likewise.
52688         * lib/xasprintf.c: Likewise.
52689         * lib/xgetcwd.c: Likewise.
52690         * lib/xgetcwd.h: Likewise.
52691         * lib/xgetdomainname.c: Likewise.
52692         * lib/xgetdomainname.h: Likewise.
52693         * lib/xgethostname.c: Likewise.
52694         * lib/xmalloc.c: Likewise.
52695         * lib/xmalloca.c: Likewise.
52696         * lib/xmalloca.h: Likewise.
52697         * lib/xmemcoll.c: Likewise.
52698         * lib/xnanosleep.c: Likewise.
52699         * lib/xreadlink.c: Likewise.
52700         * lib/xreadlink.h: Likewise.
52701         * lib/xsetenv.c: Likewise.
52702         * lib/xsetenv.h: Likewise.
52703         * lib/xstriconv.c: Likewise.
52704         * lib/xstriconv.h: Likewise.
52705         * lib/xstrndup.c: Likewise.
52706         * lib/xstrndup.h: Likewise.
52707         * lib/xstrtod.c: Likewise.
52708         * lib/xstrtod.h: Likewise.
52709         * lib/xstrtol-error.c: Likewise.
52710         * lib/xstrtol.c: Likewise.
52711         * lib/xstrtol.h: Likewise.
52712         * lib/xtime.h: Likewise.
52713         * lib/xvasprintf.c: Likewise.
52714         * lib/xvasprintf.h: Likewise.
52715         * lib/yesno.c: Likewise.
52716         * lib/yesno.h: Likewise.
52717         * posix-modules: Likewise.
52718         * tests/test-alloca-opt.c: Likewise.
52719         * tests/test-arcfour.c: Likewise.
52720         * tests/test-arctwo.c: Likewise.
52721         * tests/test-argmatch.c: Likewise.
52722         * tests/test-argp-2.sh: Likewise.
52723         * tests/test-argp.c: Likewise.
52724         * tests/test-arpa_inet.c: Likewise.
52725         * tests/test-array_list.c: Likewise.
52726         * tests/test-array_oset.c: Likewise.
52727         * tests/test-atexit.c: Likewise.
52728         * tests/test-avltree_list.c: Likewise.
52729         * tests/test-avltree_oset.c: Likewise.
52730         * tests/test-avltreehash_list.c: Likewise.
52731         * tests/test-base64.c: Likewise.
52732         * tests/test-binary-io.c: Likewise.
52733         * tests/test-byteswap.c: Likewise.
52734         * tests/test-c-ctype.c: Likewise.
52735         * tests/test-c-strcasecmp.c: Likewise.
52736         * tests/test-c-strcasestr.c: Likewise.
52737         * tests/test-c-strncasecmp.c: Likewise.
52738         * tests/test-c-strstr.c: Likewise.
52739         * tests/test-canonicalize-lgpl.c: Likewise.
52740         * tests/test-canonicalize.c: Likewise.
52741         * tests/test-carray_list.c: Likewise.
52742         * tests/test-ceilf.c: Likewise.
52743         * tests/test-ceill.c: Likewise.
52744         * tests/test-count-one-bits.c: Likewise.
52745         * tests/test-crc.c: Likewise.
52746         * tests/test-dirname.c: Likewise.
52747         * tests/test-fbufmode.c: Likewise.
52748         * tests/test-fcntl.c: Likewise.
52749         * tests/test-fflush.c: Likewise.
52750         * tests/test-floorf.c: Likewise.
52751         * tests/test-floorl.c: Likewise.
52752         * tests/test-fopen.c: Likewise.
52753         * tests/test-fprintf-posix.c: Likewise.
52754         * tests/test-fprintf-posix.h: Likewise.
52755         * tests/test-fpurge.c: Likewise.
52756         * tests/test-freadable.c: Likewise.
52757         * tests/test-freadahead.c: Likewise.
52758         * tests/test-freading.c: Likewise.
52759         * tests/test-freopen.c: Likewise.
52760         * tests/test-frexp.c: Likewise.
52761         * tests/test-frexpl.c: Likewise.
52762         * tests/test-fseek.c: Likewise.
52763         * tests/test-fseeko.c: Likewise.
52764         * tests/test-fseterr.c: Likewise.
52765         * tests/test-fstrcmp.c: Likewise.
52766         * tests/test-ftell.c: Likewise.
52767         * tests/test-ftello.c: Likewise.
52768         * tests/test-fwritable.c: Likewise.
52769         * tests/test-fwriting.c: Likewise.
52770         * tests/test-getaddrinfo.c: Likewise.
52771         * tests/test-getpass.c: Likewise.
52772         * tests/test-gettimeofday.c: Likewise.
52773         * tests/test-hmac-md5.c: Likewise.
52774         * tests/test-hmac-sha1.c: Likewise.
52775         * tests/test-iconv.c: Likewise.
52776         * tests/test-iconvme.c: Likewise.
52777         * tests/test-inttypes.c: Likewise.
52778         * tests/test-isnan.c: Likewise.
52779         * tests/test-isnanf.c: Likewise.
52780         * tests/test-isnanl-nolibm.c: Likewise.
52781         * tests/test-isnanl.c: Likewise.
52782         * tests/test-isnanl.h: Likewise.
52783         * tests/test-ldexpl.c: Likewise.
52784         * tests/test-linked_list.c: Likewise.
52785         * tests/test-linkedhash_list.c: Likewise.
52786         * tests/test-locale.c: Likewise.
52787         * tests/test-localename.c: Likewise.
52788         * tests/test-lock.c: Likewise.
52789         * tests/test-lseek.c: Likewise.
52790         * tests/test-malloca.c: Likewise.
52791         * tests/test-math.c: Likewise.
52792         * tests/test-mbscasecmp.c: Likewise.
52793         * tests/test-mbscasestr1.c: Likewise.
52794         * tests/test-mbscasestr2.c: Likewise.
52795         * tests/test-mbscasestr3.c: Likewise.
52796         * tests/test-mbscasestr4.c: Likewise.
52797         * tests/test-mbschr.c: Likewise.
52798         * tests/test-mbscspn.c: Likewise.
52799         * tests/test-mbsncasecmp.c: Likewise.
52800         * tests/test-mbspbrk.c: Likewise.
52801         * tests/test-mbspcasecmp.c: Likewise.
52802         * tests/test-mbsrchr.c: Likewise.
52803         * tests/test-mbsspn.c: Likewise.
52804         * tests/test-mbsstr1.c: Likewise.
52805         * tests/test-mbsstr2.c: Likewise.
52806         * tests/test-mbsstr3.c: Likewise.
52807         * tests/test-md5.c: Likewise.
52808         * tests/test-memmem.c: Likewise.
52809         * tests/test-netinet_in.c: Likewise.
52810         * tests/test-open.c: Likewise.
52811         * tests/test-printf-frexp.c: Likewise.
52812         * tests/test-printf-frexpl.c: Likewise.
52813         * tests/test-printf-posix.c: Likewise.
52814         * tests/test-printf-posix.h: Likewise.
52815         * tests/test-rbtree_list.c: Likewise.
52816         * tests/test-rbtree_oset.c: Likewise.
52817         * tests/test-rbtreehash_list.c: Likewise.
52818         * tests/test-read-file.c: Likewise.
52819         * tests/test-rijndael.c: Likewise.
52820         * tests/test-search.c: Likewise.
52821         * tests/test-signbit.c: Likewise.
52822         * tests/test-sleep.c: Likewise.
52823         * tests/test-snprintf-posix.c: Likewise.
52824         * tests/test-snprintf-posix.h: Likewise.
52825         * tests/test-snprintf.c: Likewise.
52826         * tests/test-sprintf-posix.c: Likewise.
52827         * tests/test-sprintf-posix.h: Likewise.
52828         * tests/test-stat-time.c: Likewise.
52829         * tests/test-stdbool.c: Likewise.
52830         * tests/test-stdint.c: Likewise.
52831         * tests/test-stdio.c: Likewise.
52832         * tests/test-stdlib.c: Likewise.
52833         * tests/test-stpncpy.c: Likewise.
52834         * tests/test-strcasestr.c: Likewise.
52835         * tests/test-striconv.c: Likewise.
52836         * tests/test-striconveh.c: Likewise.
52837         * tests/test-striconveha.c: Likewise.
52838         * tests/test-string.c: Likewise.
52839         * tests/test-sys_select.c: Likewise.
52840         * tests/test-sys_socket.c: Likewise.
52841         * tests/test-sys_stat.c: Likewise.
52842         * tests/test-sys_time.c: Likewise.
52843         * tests/test-sysexits.c: Likewise.
52844         * tests/test-time.c: Likewise.
52845         * tests/test-tls.c: Likewise.
52846         * tests/test-trunc.c: Likewise.
52847         * tests/test-truncf.c: Likewise.
52848         * tests/test-truncl.c: Likewise.
52849         * tests/test-unistd.c: Likewise.
52850         * tests/test-vasnprintf-posix.c: Likewise.
52851         * tests/test-vasnprintf-posix2.c: Likewise.
52852         * tests/test-vasnprintf.c: Likewise.
52853         * tests/test-vasprintf-posix.c: Likewise.
52854         * tests/test-vasprintf.c: Likewise.
52855         * tests/test-verify.c: Likewise.
52856         * tests/test-vfprintf-posix.c: Likewise.
52857         * tests/test-vprintf-posix.c: Likewise.
52858         * tests/test-vsnprintf-posix.c: Likewise.
52859         * tests/test-vsnprintf.c: Likewise.
52860         * tests/test-vsprintf-posix.c: Likewise.
52861         * tests/test-wchar.c: Likewise.
52862         * tests/test-wctype.c: Likewise.
52863         * tests/test-wcwidth.c: Likewise.
52864         * tests/test-xstrtol.c: Likewise.
52865         * tests/test-xvasprintf.c: Likewise.
52866         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52867         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52868         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52869         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52870         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52871         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52872         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52873         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52874         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52875         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52876         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52877         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52878         * tests/uniname/test-uninames.c: Likewise.
52879         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52880         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
52881         * tests/unistdio/test-u16-printf1.h: Likewise.
52882         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52883         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52884         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52885         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52886         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52887         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52888         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52889         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
52890         * tests/unistdio/test-u32-printf1.h: Likewise.
52891         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52892         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52893         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52894         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52895         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52896         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52897         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52898         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
52899         * tests/unistdio/test-u8-printf1.h: Likewise.
52900         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52901         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52902         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52903         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52904         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52905         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52906         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52907         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52908         * tests/unistdio/test-ulc-printf1.h: Likewise.
52909         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52910         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52911         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52912         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52913         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52914         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52915         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52916         * tests/uniwidth/test-u16-width.c: Likewise.
52917         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52918         * tests/uniwidth/test-u32-width.c: Likewise.
52919         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52920         * tests/uniwidth/test-u8-width.c: Likewise.
52921         * tests/uniwidth/test-uc_width.c: Likewise.
52922         * config/srclist-update: Likewise.
52923         (fixlicense): Update to GPLv3+.
52924
52925         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52926         * tests/test-tsearch.c: Change copyright notice.
52927
52928         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52929         * lib/c-strcaseeq.h: Change copyright notice.
52930         * lib/streq.h: Likewise.
52931         * lib/uniconv.h: Likewise.
52932         * lib/uniconv/u-conv-from-enc.h: Likewise.
52933         * lib/uniconv/u-conv-to-enc.h: Likewise.
52934         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52935         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52936         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52937         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52938         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52939         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52940         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52941         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52942         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52943         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52944         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52945         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52946         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52947         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52948         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52949         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52950         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52951         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52952         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52953         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52954         * lib/uniname.h: Likewise.
52955         * lib/uniname/uniname.c: Likewise.
52956         * lib/unistdio.h: Likewise.
52957         * lib/unistdio/u-asnprintf.h: Likewise.
52958         * lib/unistdio/u-asprintf.h: Likewise.
52959         * lib/unistdio/u-printf-args.c: Likewise.
52960         * lib/unistdio/u-printf-args.h: Likewise.
52961         * lib/unistdio/u-printf-parse.h: Likewise.
52962         * lib/unistdio/u-snprintf.h: Likewise.
52963         * lib/unistdio/u-sprintf.h: Likewise.
52964         * lib/unistdio/u-vasprintf.h: Likewise.
52965         * lib/unistdio/u-vsnprintf.h: Likewise.
52966         * lib/unistdio/u-vsprintf.h: Likewise.
52967         * lib/unistdio/u16-asnprintf.c: Likewise.
52968         * lib/unistdio/u16-asprintf.c: Likewise.
52969         * lib/unistdio/u16-printf-parse.c: Likewise.
52970         * lib/unistdio/u16-snprintf.c: Likewise.
52971         * lib/unistdio/u16-sprintf.c: Likewise.
52972         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52973         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52974         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52975         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52976         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52977         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52978         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52979         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52980         * lib/unistdio/u16-vasnprintf.c: Likewise.
52981         * lib/unistdio/u16-vasprintf.c: Likewise.
52982         * lib/unistdio/u16-vsnprintf.c: Likewise.
52983         * lib/unistdio/u16-vsprintf.c: Likewise.
52984         * lib/unistdio/u32-asnprintf.c: Likewise.
52985         * lib/unistdio/u32-asprintf.c: Likewise.
52986         * lib/unistdio/u32-printf-parse.c: Likewise.
52987         * lib/unistdio/u32-snprintf.c: Likewise.
52988         * lib/unistdio/u32-sprintf.c: Likewise.
52989         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52990         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52991         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52992         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52993         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52994         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52995         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52996         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52997         * lib/unistdio/u32-vasnprintf.c: Likewise.
52998         * lib/unistdio/u32-vasprintf.c: Likewise.
52999         * lib/unistdio/u32-vsnprintf.c: Likewise.
53000         * lib/unistdio/u32-vsprintf.c: Likewise.
53001         * lib/unistdio/u8-asnprintf.c: Likewise.
53002         * lib/unistdio/u8-asprintf.c: Likewise.
53003         * lib/unistdio/u8-printf-parse.c: Likewise.
53004         * lib/unistdio/u8-snprintf.c: Likewise.
53005         * lib/unistdio/u8-sprintf.c: Likewise.
53006         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
53007         * lib/unistdio/u8-u8-asprintf.c: Likewise.
53008         * lib/unistdio/u8-u8-snprintf.c: Likewise.
53009         * lib/unistdio/u8-u8-sprintf.c: Likewise.
53010         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
53011         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
53012         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
53013         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
53014         * lib/unistdio/u8-vasnprintf.c: Likewise.
53015         * lib/unistdio/u8-vasprintf.c: Likewise.
53016         * lib/unistdio/u8-vsnprintf.c: Likewise.
53017         * lib/unistdio/u8-vsprintf.c: Likewise.
53018         * lib/unistdio/ulc-asnprintf.c: Likewise.
53019         * lib/unistdio/ulc-asprintf.c: Likewise.
53020         * lib/unistdio/ulc-printf-parse.c: Likewise.
53021         * lib/unistdio/ulc-snprintf.c: Likewise.
53022         * lib/unistdio/ulc-sprintf.c: Likewise.
53023         * lib/unistdio/ulc-vasnprintf.c: Likewise.
53024         * lib/unistdio/ulc-vasprintf.c: Likewise.
53025         * lib/unistdio/ulc-vsnprintf.c: Likewise.
53026         * lib/unistdio/ulc-vsprintf.c: Likewise.
53027         * lib/unistr.h: Likewise.
53028         * lib/unistr/u-cpy-alloc.h: Likewise.
53029         * lib/unistr/u-cpy.h: Likewise.
53030         * lib/unistr/u-endswith.h: Likewise.
53031         * lib/unistr/u-move.h: Likewise.
53032         * lib/unistr/u-set.h: Likewise.
53033         * lib/unistr/u-startswith.h: Likewise.
53034         * lib/unistr/u-stpcpy.h: Likewise.
53035         * lib/unistr/u-stpncpy.h: Likewise.
53036         * lib/unistr/u-strcat.h: Likewise.
53037         * lib/unistr/u-strcpy.h: Likewise.
53038         * lib/unistr/u-strcspn.h: Likewise.
53039         * lib/unistr/u-strdup.h: Likewise.
53040         * lib/unistr/u-strlen.h: Likewise.
53041         * lib/unistr/u-strncat.h: Likewise.
53042         * lib/unistr/u-strncpy.h: Likewise.
53043         * lib/unistr/u-strnlen.h: Likewise.
53044         * lib/unistr/u-strpbrk.h: Likewise.
53045         * lib/unistr/u-strspn.h: Likewise.
53046         * lib/unistr/u-strstr.h: Likewise.
53047         * lib/unistr/u-strtok.h: Likewise.
53048         * lib/unistr/u16-check.c: Likewise.
53049         * lib/unistr/u16-chr.c: Likewise.
53050         * lib/unistr/u16-cmp.c: Likewise.
53051         * lib/unistr/u16-cpy-alloc.c: Likewise.
53052         * lib/unistr/u16-cpy.c: Likewise.
53053         * lib/unistr/u16-endswith.c: Likewise.
53054         * lib/unistr/u16-mblen.c: Likewise.
53055         * lib/unistr/u16-mbsnlen.c: Likewise.
53056         * lib/unistr/u16-mbtouc-aux.c: Likewise.
53057         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
53058         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
53059         * lib/unistr/u16-mbtouc.c: Likewise.
53060         * lib/unistr/u16-mbtoucr.c: Likewise.
53061         * lib/unistr/u16-move.c: Likewise.
53062         * lib/unistr/u16-next.c: Likewise.
53063         * lib/unistr/u16-prev.c: Likewise.
53064         * lib/unistr/u16-set.c: Likewise.
53065         * lib/unistr/u16-startswith.c: Likewise.
53066         * lib/unistr/u16-stpcpy.c: Likewise.
53067         * lib/unistr/u16-stpncpy.c: Likewise.
53068         * lib/unistr/u16-strcat.c: Likewise.
53069         * lib/unistr/u16-strchr.c: Likewise.
53070         * lib/unistr/u16-strcmp.c: Likewise.
53071         * lib/unistr/u16-strcpy.c: Likewise.
53072         * lib/unistr/u16-strcspn.c: Likewise.
53073         * lib/unistr/u16-strdup.c: Likewise.
53074         * lib/unistr/u16-strlen.c: Likewise.
53075         * lib/unistr/u16-strmblen.c: Likewise.
53076         * lib/unistr/u16-strmbtouc.c: Likewise.
53077         * lib/unistr/u16-strncat.c: Likewise.
53078         * lib/unistr/u16-strncmp.c: Likewise.
53079         * lib/unistr/u16-strncpy.c: Likewise.
53080         * lib/unistr/u16-strnlen.c: Likewise.
53081         * lib/unistr/u16-strpbrk.c: Likewise.
53082         * lib/unistr/u16-strrchr.c: Likewise.
53083         * lib/unistr/u16-strspn.c: Likewise.
53084         * lib/unistr/u16-strstr.c: Likewise.
53085         * lib/unistr/u16-strtok.c: Likewise.
53086         * lib/unistr/u16-to-u32.c: Likewise.
53087         * lib/unistr/u16-to-u8.c: Likewise.
53088         * lib/unistr/u16-uctomb-aux.c: Likewise.
53089         * lib/unistr/u16-uctomb.c: Likewise.
53090         * lib/unistr/u32-check.c: Likewise.
53091         * lib/unistr/u32-chr.c: Likewise.
53092         * lib/unistr/u32-cmp.c: Likewise.
53093         * lib/unistr/u32-cpy-alloc.c: Likewise.
53094         * lib/unistr/u32-cpy.c: Likewise.
53095         * lib/unistr/u32-endswith.c: Likewise.
53096         * lib/unistr/u32-mblen.c: Likewise.
53097         * lib/unistr/u32-mbsnlen.c: Likewise.
53098         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
53099         * lib/unistr/u32-mbtouc.c: Likewise.
53100         * lib/unistr/u32-mbtoucr.c: Likewise.
53101         * lib/unistr/u32-move.c: Likewise.
53102         * lib/unistr/u32-next.c: Likewise.
53103         * lib/unistr/u32-prev.c: Likewise.
53104         * lib/unistr/u32-set.c: Likewise.
53105         * lib/unistr/u32-startswith.c: Likewise.
53106         * lib/unistr/u32-stpcpy.c: Likewise.
53107         * lib/unistr/u32-stpncpy.c: Likewise.
53108         * lib/unistr/u32-strcat.c: Likewise.
53109         * lib/unistr/u32-strchr.c: Likewise.
53110         * lib/unistr/u32-strcmp.c: Likewise.
53111         * lib/unistr/u32-strcpy.c: Likewise.
53112         * lib/unistr/u32-strcspn.c: Likewise.
53113         * lib/unistr/u32-strdup.c: Likewise.
53114         * lib/unistr/u32-strlen.c: Likewise.
53115         * lib/unistr/u32-strmblen.c: Likewise.
53116         * lib/unistr/u32-strmbtouc.c: Likewise.
53117         * lib/unistr/u32-strncat.c: Likewise.
53118         * lib/unistr/u32-strncmp.c: Likewise.
53119         * lib/unistr/u32-strncpy.c: Likewise.
53120         * lib/unistr/u32-strnlen.c: Likewise.
53121         * lib/unistr/u32-strpbrk.c: Likewise.
53122         * lib/unistr/u32-strrchr.c: Likewise.
53123         * lib/unistr/u32-strspn.c: Likewise.
53124         * lib/unistr/u32-strstr.c: Likewise.
53125         * lib/unistr/u32-strtok.c: Likewise.
53126         * lib/unistr/u32-to-u16.c: Likewise.
53127         * lib/unistr/u32-to-u8.c: Likewise.
53128         * lib/unistr/u32-uctomb.c: Likewise.
53129         * lib/unistr/u8-check.c: Likewise.
53130         * lib/unistr/u8-chr.c: Likewise.
53131         * lib/unistr/u8-cmp.c: Likewise.
53132         * lib/unistr/u8-cpy-alloc.c: Likewise.
53133         * lib/unistr/u8-cpy.c: Likewise.
53134         * lib/unistr/u8-endswith.c: Likewise.
53135         * lib/unistr/u8-mblen.c: Likewise.
53136         * lib/unistr/u8-mbsnlen.c: Likewise.
53137         * lib/unistr/u8-mbtouc-aux.c: Likewise.
53138         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
53139         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
53140         * lib/unistr/u8-mbtouc.c: Likewise.
53141         * lib/unistr/u8-mbtoucr.c: Likewise.
53142         * lib/unistr/u8-move.c: Likewise.
53143         * lib/unistr/u8-next.c: Likewise.
53144         * lib/unistr/u8-prev.c: Likewise.
53145         * lib/unistr/u8-set.c: Likewise.
53146         * lib/unistr/u8-startswith.c: Likewise.
53147         * lib/unistr/u8-stpcpy.c: Likewise.
53148         * lib/unistr/u8-stpncpy.c: Likewise.
53149         * lib/unistr/u8-strcat.c: Likewise.
53150         * lib/unistr/u8-strchr.c: Likewise.
53151         * lib/unistr/u8-strcmp.c: Likewise.
53152         * lib/unistr/u8-strcpy.c: Likewise.
53153         * lib/unistr/u8-strcspn.c: Likewise.
53154         * lib/unistr/u8-strdup.c: Likewise.
53155         * lib/unistr/u8-strlen.c: Likewise.
53156         * lib/unistr/u8-strmblen.c: Likewise.
53157         * lib/unistr/u8-strmbtouc.c: Likewise.
53158         * lib/unistr/u8-strncat.c: Likewise.
53159         * lib/unistr/u8-strncmp.c: Likewise.
53160         * lib/unistr/u8-strncpy.c: Likewise.
53161         * lib/unistr/u8-strnlen.c: Likewise.
53162         * lib/unistr/u8-strpbrk.c: Likewise.
53163         * lib/unistr/u8-strrchr.c: Likewise.
53164         * lib/unistr/u8-strspn.c: Likewise.
53165         * lib/unistr/u8-strstr.c: Likewise.
53166         * lib/unistr/u8-strtok.c: Likewise.
53167         * lib/unistr/u8-to-u16.c: Likewise.
53168         * lib/unistr/u8-to-u32.c: Likewise.
53169         * lib/unistr/u8-uctomb-aux.c: Likewise.
53170         * lib/unistr/u8-uctomb.c: Likewise.
53171         * lib/unitypes.h: Likewise.
53172         * lib/uniwidth.h: Likewise.
53173         * lib/uniwidth/cjk.h: Likewise.
53174         * lib/uniwidth/u16-strwidth.c: Likewise.
53175         * lib/uniwidth/u16-width.c: Likewise.
53176         * lib/uniwidth/u32-strwidth.c: Likewise.
53177         * lib/uniwidth/u32-width.c: Likewise.
53178         * lib/uniwidth/u8-strwidth.c: Likewise.
53179         * lib/uniwidth/u8-width.c: Likewise.
53180         * lib/uniwidth/width.c: Likewise.
53181
53182 2007-10-07  Bruno Haible  <bruno@clisp.org>
53183
53184         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
53185         The file is still under LGPL (see modules/inttypes).
53186
53187 2007-10-06  Bruno Haible  <bruno@clisp.org>
53188
53189         * modules/trunc (Dependencies): Add 'extensions'.
53190         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
53191         Reported by Ben Pfaff <blp@gnu.org>.
53192
53193 2007-10-06  Bruno Haible  <bruno@clisp.org>
53194
53195         * modules/freopen-tests: New file.
53196         * tests/test-freopen.c: New file.
53197
53198         * modules/fopen-tests: New file.
53199         * tests/test-fopen.c: New file.
53200
53201         * modules/fopen: New file.
53202         * lib/fopen.c: New file.
53203         * m4/fopen.m4: New file.
53204         * modules/freopen: New file.
53205         * lib/freopen.c: New file.
53206         * m4/freopen.m4: New file.
53207         * lib/stdio.in.h (fopen, freopen): New declarations.
53208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
53209         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53210         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
53211         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53212         * doc/functions/fopen.texi: Mention the 'fopen' module.
53213         * doc/functions/freopen.texi: Mention the 'freopen' module.
53214
53215 2007-10-06  Bruno Haible  <bruno@clisp.org>
53216
53217         * modules/open-tests: New file.
53218         * tests/test-open.c: New file.
53219
53220         * modules/open: New file.
53221         * lib/open.c: New file.
53222         * m4/open.m4: New file.
53223         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
53224         lib/open.c does.
53225         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
53226         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
53227         macros.
53228         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
53229         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
53230         REPLACE_OPEN.
53231         * doc/functions/open.texi: Mention the 'open' module.
53232
53233 2007-10-04  Bruno Haible  <bruno@clisp.org>
53234
53235         * modules/ceill-tests: New file.
53236         * tests/test-ceill.c: New file.
53237
53238         * modules/ceill: New file.
53239         * lib/ceill.c: Replace entire file.
53240         * m4/ceill.m4: New file.
53241         * lib/math.in.h (ceill): Replace declaration.
53242         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
53243         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
53244         * doc/functions/ceill.texi: Mention the 'ceill' module.
53245         * modules/mathl (Files): Remove lib/ceill.c.
53246         (Depends-on): Add ceill.
53247
53248 2007-10-04  Bruno Haible  <bruno@clisp.org>
53249
53250         * modules/ceilf-tests: New file.
53251         * tests/test-ceilf.c: New file.
53252
53253         * modules/ceilf: New file.
53254         * lib/ceil.c: New file.
53255         * lib/ceilf.c: New file.
53256         * m4/ceilf.m4: New file.
53257         * lib/math.in.h (ceilf): New declaration.
53258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
53259         HAVE_DECL_CEILF.
53260         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
53261         HAVE_DECL_CEILF.
53262         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
53263
53264 2007-10-04  Bruno Haible  <bruno@clisp.org>
53265
53266         * modules/floorl-tests: New file.
53267         * tests/test-floorl.c: New file.
53268
53269         * modules/floorl: New file.
53270         * lib/floorl.c: Replace entire file.
53271         * m4/floorl.m4: New file.
53272         * lib/math.in.h (floorl): Replace declaration.
53273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
53274         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
53275         * doc/functions/floorl.texi: Mention the 'floorl' module.
53276         * modules/mathl (Files): Remove lib/floorl.c.
53277         (Depends-on): Add floorl.
53278
53279 2007-10-04  Bruno Haible  <bruno@clisp.org>
53280
53281         * modules/floorf-tests: New file.
53282         * tests/test-floorf.c: New file.
53283
53284         * modules/floorf: New file.
53285         * lib/floor.c: New file.
53286         * lib/floorf.c: New file.
53287         * m4/floorf.m4: New file.
53288         * lib/math.in.h (floorf): New declaration.
53289         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
53290         HAVE_DECL_FLOORF.
53291         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
53292         HAVE_DECL_FLOORF.
53293         * doc/functions/floorf.texi: Mention the 'floorf' module.
53294
53295 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
53296             Bruno Haible  <bruno@clisp.org>
53297
53298         Advertise for the Git server instead of the CVS server.
53299         * doc/gnulib-intro.texi (Steady Development): Mention the Git
53300         repository instead of the CVS one.
53301         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
53302         about all VCS systems generically.
53303         * doc/gnulib.texi (Introduction): Capitalize `Git'.
53304
53305 2007-10-04  Bruno Haible  <bruno@clisp.org>
53306
53307         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
53308         means.
53309         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
53310
53311 2007-10-04  Bruno Haible  <bruno@clisp.org>
53312
53313         * modules/truncl-tests: New file.
53314         * tests/test-truncl.c: New file.
53315
53316         * modules/truncl: New file.
53317         * lib/truncl.c: New file.
53318         * m4/truncl.m4: New file.
53319         * lib/math.in.h (truncl): New declaration.
53320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
53321         HAVE_DECL_TRUNCL.
53322         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
53323         HAVE_DECL_TRUNCL.
53324         * doc/functions/truncl.texi: Mention the 'truncl' module.
53325
53326 2007-10-04  Bruno Haible  <bruno@clisp.org>
53327
53328         * modules/truncf-tests: New file.
53329         * tests/test-truncf.c: New file.
53330
53331         * modules/truncf: New file.
53332         * lib/trunc.c: Make paramerizable through USE_* macros.
53333         * lib/truncf.c: New file.
53334         * m4/truncf.m4: New file.
53335         * lib/math.in.h (truncf): New declaration.
53336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
53337         HAVE_DECL_TRUNCF.
53338         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
53339         HAVE_DECL_TRUNCF.
53340         * doc/functions/truncf.texi: Mention the 'truncf' module.
53341
53342 2007-10-03  Bruno Haible  <bruno@clisp.org>
53343
53344         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53345         augmentation also for tests modules.
53346         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
53347         * modules/atexit-tests (Makefile.am): Likewise.
53348         * modules/binary-io-tests (Makefile.am): Likewise.
53349         * modules/c-strcase-tests (Makefile.am): Likewise.
53350         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
53351         * modules/canonicalize-tests (Makefile.am): Likewise.
53352         * modules/closein-tests (Makefile.am): Likewise.
53353         * modules/fprintf-posix-tests (Makefile.am): Likewise.
53354         * modules/freadahead-tests (Makefile.am): Likewise.
53355         * modules/fseek-tests (Makefile.am): Likewise.
53356         * modules/fseeko-tests (Makefile.am): Likewise.
53357         * modules/ftell-tests (Makefile.am): Likewise.
53358         * modules/ftello-tests (Makefile.am): Likewise.
53359         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
53360         * modules/isnanl-tests (Makefile.am): Likewise.
53361         * modules/lseek-tests (Makefile.am): Likewise.
53362         * modules/mbscasecmp-tests (Makefile.am): Likewise.
53363         * modules/mbscasestr-tests (Makefile.am): Likewise.
53364         * modules/mbschr-tests (Makefile.am): Likewise.
53365         * modules/mbscspn-tests (Makefile.am): Likewise.
53366         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
53367         * modules/mbspbrk-tests (Makefile.am): Likewise.
53368         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
53369         * modules/mbsrchr-tests (Makefile.am): Likewise.
53370         * modules/mbsspn-tests (Makefile.am): Likewise.
53371         * modules/mbsstr-tests (Makefile.am): Likewise.
53372         * modules/printf-posix-tests (Makefile.am): Likewise.
53373         * modules/snprintf-posix-tests (Makefile.am): Likewise.
53374         * modules/sprintf-posix-tests (Makefile.am): Likewise.
53375         * modules/tsearch-tests (Makefile.am): Likewise.
53376         * modules/uniname/uniname-tests (Makefile.am): Likewise.
53377         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
53378         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
53379         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
53380         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
53381         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
53382         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
53383         * modules/vprintf-posix-tests (Makefile.am): Likewise.
53384         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
53385         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
53386         * modules/xstrtoimax-tests (Makefile.am): Likewise.
53387         * modules/xstrtol-tests (Makefile.am): Likewise.
53388         * modules/xstrtoumax-tests (Makefile.am): Likewise.
53389         * modules/yesno-tests (Makefile.am): Likewise.
53390
53391 2007-10-03  Bruno Haible  <bruno@clisp.org>
53392
53393         * modules/trunc-tests: New file.
53394         * tests/test-trunc.c: New file.
53395
53396         * modules/trunc: New file.
53397         * lib/trunc.c: New file.
53398         * m4/trunc.m4: New file.
53399         * lib/math.in.h (trunc): New declaration.
53400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
53401         HAVE_DECL_TRUNC.
53402         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
53403         HAVE_DECL_TRUNC.
53404         * doc/functions/trunc.texi: Mention the 'trunc' module.
53405
53406 2007-10-03  Bruno Haible  <bruno@clisp.org>
53407
53408         * tests/test-fpending.c: New file, mostly copied
53409         from coreutils/lib/t-fpending.c.
53410         * modules/fpending-tests: New file.
53411
53412 2007-10-03  Bruno Haible  <bruno@clisp.org>
53413
53414         Port the stdio extensions to QNX (untested).
53415         * lib/fseterr.c (fseterr): Add support for QNX.
53416         * lib/fbufmode.c (fbufmode): Likewise.
53417         * lib/freadable.c (freadable): Likewise.
53418         * lib/fwritable.c (fwritable): Likewise.
53419         * lib/freading.c (freading): Likewise.
53420         * lib/fwriting.c (fwriting): Likewise.
53421         * lib/freadahead.c (freadahed): Likewise.
53422         * lib/fpurge.c (fpurge): Likewise.
53423         * lib/fseeko.c (rpl_fseeko): Likewise.
53424
53425 2007-10-03  Bruno Haible  <bruno@clisp.org>
53426             Jim Meyering  <jim@meyering.net>
53427             Eric Blake  <ebb9@byu.net>
53428
53429         * doc/relocatable.texi: Use @command instead of @program.
53430
53431 2007-10-02  Jim Meyering  <jim@meyering.net>
53432
53433         Perform one more "_.h" -> ".in.h" substitution.
53434         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
53435         instead of unistd_.h here, too.
53436
53437 2007-10-01  Bruno Haible  <bruno@clisp.org>
53438
53439         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
53440         Needed for the alloca-opt module.
53441
53442 2007-09-30  Bruno Haible  <bruno@clisp.org>
53443
53444         * lib/alloca.in.h: Renamed from lib/alloca_.h.
53445         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
53446         alloca_.h.
53447         * lib/argz.in.h: Renamed from lib/argz_.h.
53448         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
53449         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
53450         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
53451         byteswap_.h.
53452         * lib/dirent.in.h: Renamed from lib/dirent_.h.
53453         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
53454         dirent_.h.
53455         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
53456         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
53457         fcntl_.h.
53458         * lib/float.in.h: Renamed from lib/float_.h.
53459         * modules/float (Files, Makefile.am): Use float.in.h instead of
53460         float_.h.
53461         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
53462         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
53463         fnmatch_.h.
53464         * lib/getopt.in.h: Renamed from lib/getopt_.h.
53465         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
53466         getopt_.h.
53467         * lib/glob.in.h: Renamed from lib/glob_.h.
53468         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
53469         * lib/iconv.in.h: Renamed from lib/iconv_.h.
53470         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
53471         iconv_.h.
53472         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
53473         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
53474         inttypes_.h.
53475         * lib/locale.in.h: Renamed from lib/locale_.h.
53476         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
53477         locale_.h.
53478         * lib/math.in.h: Renamed from lib/math_.h.
53479         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
53480         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
53481         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
53482         of netinet_in_.h. Add dependency.
53483         * lib/poll.in.h: Renamed from lib/poll_.h.
53484         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
53485         * lib/search.in.h: Renamed from lib/search_.h.
53486         * modules/search (Files, Makefile.am): Use search.in.h instead of
53487         search_.h.
53488         * lib/signal.in.h: Renamed from lib/signal_.h.
53489         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
53490         _signal.h.
53491         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
53492         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
53493         stdbool_.h.
53494         * lib/stdint.in.h: Renamed from lib/stdint_.h.
53495         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
53496         stdint_.h.
53497         * lib/stdio.in.h: Renamed from lib/stdio_.h.
53498         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
53499         stdio_.h.
53500         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
53501         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
53502         stdlib_.h.
53503         * lib/string.in.h: Renamed from lib/string_.h.
53504         * modules/string (Files, Makefile.am): Use string.in.h instead of
53505         string_.h.
53506         * doc/gnulib-tool.texi (Initial import): Update.
53507         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
53508         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
53509         of sys_select_.h. Add dependency.
53510         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
53511         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
53512         of sys_socket_.h.
53513         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
53514         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
53515         sys_stat_.h.
53516         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
53517         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
53518         sys_time_.h.
53519         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
53520         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
53521         sysexits_.h.
53522         * lib/time.in.h: Renamed from lib/time_.h.
53523         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
53524         * lib/unistd.in.h: Renamed from lib/unistd_.h.
53525         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
53526         unistd_.h.
53527         * lib/wchar.in.h: Renamed from lib/wchar_.h.
53528         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
53529         wchar_.h.
53530         * lib/wctype.in.h: Renamed from lib/wctype_.h.
53531         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
53532         wctype_.h.
53533         * build-aux/bootstrap (slurp): Update.
53534         * lib/.cppi-disable: Update.
53535
53536 2007-09-30  Bruno Haible  <bruno@clisp.org>
53537
53538         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
53539         Needed on BeOS.
53540
53541 2007-09-30  Bruno Haible  <bruno@clisp.org>
53542
53543         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
53544
53545 2007-09-29  Bruno Haible  <bruno@clisp.org>
53546
53547         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
53548
53549 2007-09-29  Bruno Haible  <bruno@clisp.org>
53550
53551         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
53552         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
53553         * build-aux/install-reloc: Compile also areadlink.c.
53554         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
53555
53556 2007-09-29  Bruno Haible  <bruno@clisp.org>
53557
53558         * gnulib-tool (func_emit_initmacro_done): Indentation.
53559
53560 2007-09-29  Bruno Haible  <bruno@clisp.org>
53561
53562         * README: Add CVS checkout update instructions.
53563         Info from Bob Proulx <bob@proulx.com>.
53564
53565 2007-09-28  Eric Blake  <ebb9@byu.net>
53566
53567         Provide move-if-change.
53568         * build-aux/move-if-change: New file, based on best practice
53569         rather than any canonical upstream location.
53570
53571 2007-09-28  Jim Meyering  <jim@meyering.net>
53572
53573         Fix canonicalize loop-detection corner case.
53574         Do not attempt to stat the symlink values stored via seen_triple.
53575         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
53576         on linux-2.6.18, (but not 2.6.22).
53577         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
53578         triple_compare.  The former compares dev,ino,filename, while the latter
53579         would actually stat dirname(filename) when dev and ino were equal.
53580         * lib/hash-triple.c: Install <string.h>.
53581         (STREQ): Define.
53582         (triple_compare_ino_str): New function.
53583         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
53584
53585 2007-09-28  Eric Blake  <ebb9@byu.net>
53586
53587         Enforce that AC_REPLACE_FUNCS files exist.
53588         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
53589         override check for typos.
53590
53591         Fix test-closein on Solaris 10.
53592         * tests/test-closein.c (main): Don't assume stdin can be inherited
53593         closed on all systems.
53594         * tests/test-closein.sh: Likewise.
53595         Reported by Piotr Tarnowski.
53596
53597 2007-09-28  Jim Meyering  <jim@meyering.net>
53598
53599         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
53600
53601 2007-09-27  Jim Meyering  <jim@meyering.net>
53602
53603         canonicalize: Avoid a false-positive cycle failure.
53604         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
53605         Sort.  Remove cycle-check.
53606         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
53607         not cycle-check.h.
53608         (seen_triple): New function.
53609         (canonicalize_filename_mode): Use it instead of cycle-check.
53610         * tests/test-canonicalize.c: Add a test for this bug.
53611         * tests/test-canonicalize.sh: Set up and run the test.
53612
53613         New module, file-set, from coreutils.
53614         * modules/file-set: Define it.
53615         * lib/file-set.c, lib/file-set.h: Implement.
53616
53617         New module, hash-triple, from coreutils.
53618         * modules/hash-triple: Define it.
53619         * lib/hash-triple.c, lib/hash-triple.h: Implement.
53620
53621 2007-09-25  Eric Blake  <ebb9@byu.net>
53622
53623         Fix strerror on Interix.
53624         * lib/string_.h (strerror): Declare replacement.
53625         * doc/functions/strerror.texi (strerror): Document the Interix
53626         shortcoming.
53627         * modules/string (Makefile.am): Support new hooks.
53628         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
53629         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
53630         gl_FUNC_STRERROR_SEPARATE.
53631         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
53632         * lib/strerror.c (rpl_strerror): Provide replacement.
53633         * modules/strerror (Depends-on): Add string.
53634         (configure.ac): Detect use of module.
53635         * tests/test-strerror.c: New file.
53636         * modules/strerror-tests: New test module.
53637         * modules/argp (Depends-on): Add strerror.
53638         * modules/error (Depends-on): Likewise.
53639         Reported by Martin Koeppe.
53640
53641 2007-09-24  Bruno Haible  <bruno@clisp.org>
53642
53643         * README: Update git instructions.
53644
53645 2007-09-24  Eric Blake  <ebb9@byu.net>
53646
53647         Revert fpending breakage from 2007-09-08.
53648         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
53649         __fpending.c.
53650
53651 2007-09-24  Jim Meyering  <jim@meyering.net>
53652
53653         filenamecat.c: Add a test.
53654         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
53655         showing how the function works when DIR is the empty string.
53656
53657 2007-09-21  Simon Josefsson  <simon@josefsson.org>
53658
53659         * tests/test-canonicalize.sh: Turn on executable bit.
53660
53661 2007-09-19  Eric Blake  <ebb9@byu.net>
53662
53663         * README: Update CVS instructions.
53664
53665 2007-09-18  Bruno Haible  <bruno@clisp.org>
53666
53667         * modules/areadlink: New file.
53668         * lib/areadlink.h (areadlink): New declaration.
53669         * lib/areadlink.c: New file, based on lib/xreadlink.c.
53670
53671 2007-09-17  Jim Meyering  <jim@meyering.net>
53672
53673         * lib/savewd.c (ESTALE) [!defined]: Define.
53674         Reported to be required on Interix by Martin Koeppe.
53675
53676 2007-09-17  Bruno Haible  <bruno@clisp.org>
53677
53678         * gnulib-tool (func_version): Use $version.
53679
53680 2007-09-16  Bruno Haible  <bruno@clisp.org>
53681
53682         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
53683         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
53684         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
53685         Reported by Greg Schafer <gschafer@zip.com.au>.
53686
53687 2007-09-15  Bruno Haible  <bruno@clisp.org>
53688
53689         * gnulib-tool (sed): Try a little harder to make bash understand the
53690         alias.
53691         Reported by Bruce Korb <bruce.korb@gmail.com>.
53692
53693 2007-09-13  Eric Blake  <ebb9@byu.net>
53694
53695         * ChangeLog: Remove conflict markers.
53696
53697 2007-09-13  Simon Josefsson  <simon@josefsson.org>
53698
53699         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
53700         Reported by Bruno Haible <bruno@clisp.org>.
53701
53702 2007-09-12  Bruno Haible  <bruno@clisp.org>
53703
53704         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
53705         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
53706         is not defined.
53707
53708 2007-09-12  Eric Blake  <ebb9@byu.net>
53709
53710         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
53711         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
53712         Autoconf definition.
53713         * modules/euidaccess (Depends-on): Add extensions, for
53714         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
53715         * modules/fnmatch (Depends-on): Likewise.
53716         * modules/getaddrinfo (Depends-on): Likewise.
53717         * modules/getdelim (Depends-on): Likewise.
53718         * modules/getline (Depends-on): Likewise.
53719         * modules/getsubopt (Depends-on): Likewise.
53720         * modules/gettext (Depends-on): Likewise.
53721         * modules/group-member (Depends-on): Likewise.
53722         * modules/mbchar (Depends-on): Likewise.
53723         * modules/memmem (Depends-on): Likewise.
53724         * modules/mempcpy (Depends-on): Likewise.
53725         * modules/memrchr (Depends-on): Likewise.
53726         * modules/pagealign_alloc (Depends-on): Likewise.
53727         * modules/readutmp (Depends-on): Likewise.
53728         * modules/stpcpy (Depends-on): Likewise.
53729         * modules/stpncpy (Depends-on): Likewise.
53730         * modules/strchrnul (Depends-on): Likewise.
53731         * modules/strndup (Depends-on): Likewise.
53732         * modules/strsep (Depends-on): Likewise.
53733         * modules/strverscmp (Depends-on): Likewise.
53734         * modules/vasprintf (Depends-on): Likewise.
53735         * modules/wcwidth (Depends-on): Likewise.
53736         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
53737         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
53738         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
53739         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
53740         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53741         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53742         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
53743         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53744         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
53745         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
53746         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53747         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53748         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53749         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
53750         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
53751         * m4/readutmp.m4 (gl_READUTMP): Likewise.
53752         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53753         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53754         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53755         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53756         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53757         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53758         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53759         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
53760         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
53761         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53762         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
53763         so that lock.m4 can be used in gettext without extensions module.
53764
53765 2007-09-11  Bruno Haible  <bruno@clisp.org>
53766
53767         * m4/isc-posix.m4: Remove file.
53768         Suggested by Eric Blake.
53769
53770 2007-09-11  Eric Blake  <ebb9@byu.net>
53771
53772         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
53773
53774 2007-09-10  Bruno Haible  <bruno@clisp.org>
53775
53776         * posix-modules: Fix typo in error message.
53777         Reported by Matt <mkraai@beckman.com>.
53778
53779 2007-09-09  Bruno Haible  <bruno@clisp.org>
53780
53781         * doc/functions/getdelim.texi: Update list of platforms lacking the
53782         function.
53783         * doc/functions/getline.texi: Likewise.
53784
53785 2007-09-09  Jim Meyering  <jim@meyering.net>
53786
53787         * lib/hash.c (hash_initialize): Detect calloc failure.
53788         Reported by Bruno Haible.
53789
53790 2007-09-09  Bruno Haible  <bruno@clisp.org>
53791
53792         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
53793         malloc or realloc fails.
53794
53795 2007-09-09  Bruno Haible  <bruno@clisp.org>
53796
53797         * modules/getcwd (Depends-on): Add malloc-posix.
53798         * modules/glob (Depends-on): Likewise.
53799         * modules/putenv (Depends-on): Likewise.
53800         * modules/strdup (Depends-on): Likewise.
53801         * modules/getdelim (Depends-on): Add realloc-posix.
53802         * modules/read-file (Depends-on): Likewise.
53803
53804 2007-09-09  Bruno Haible  <bruno@clisp.org>
53805
53806         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
53807         (gl_FUNC_MALLOC_POSIX): Require it.
53808         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
53809         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
53810         * modules/realloc (Files): Add m4/malloc.m4.
53811         * modules/calloc (Files): Likewise.
53812
53813 2007-09-09  Bruno Haible  <bruno@clisp.org>
53814
53815         * modules/malloc-posix: New file.
53816         * modules/malloc (Depends-on): Add malloc-posix.
53817         * lib/malloc.c: Include errno.h.
53818         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
53819         and a POSIX-compatible malloc into a single function. Set ENOMEM
53820         when returning NULL.
53821         * m4/malloc.m4: New file.
53822         * doc/functions/malloc.texi: Mention the malloc-posix module.
53823         * lib/stdlib_.h (malloc): New declaration.
53824         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53825         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
53826         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
53827         and HAVE_MALLOC_POSIX.
53828
53829 2007-09-09  Bruno Haible  <bruno@clisp.org>
53830
53831         * modules/realloc-posix: New file.
53832         * modules/realloc (Depends-on): Add realloc-posix.
53833         * lib/realloc.c: Include errno.h.
53834         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
53835         and a POSIX-compatible realloc into a single function. Set ENOMEM
53836         when returning NULL.
53837         * m4/realloc.m4: New file.
53838         * doc/functions/realloc.texi: Mention the realloc-posix module.
53839         * lib/stdlib_.h (realloc): New declaration.
53840         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53841         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
53842         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
53843         and HAVE_REALLOC_POSIX.
53844
53845 2007-09-09  Bruno Haible  <bruno@clisp.org>
53846
53847         * modules/calloc-posix: New file.
53848         * modules/calloc (Depends-on): Add calloc-posix.
53849         * lib/calloc.c: Include errno.h.
53850         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
53851         and a POSIX-compatible calloc into a single function. Set ENOMEM
53852         when returning NULL.
53853         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
53854         * doc/functions/calloc.texi: Mention the calloc-posix module.
53855         * lib/stdlib_.h (calloc): New declaration.
53856         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53857         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
53858         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
53859         and HAVE_CALLOC_POSIX.
53860
53861 2007-09-09  Bruno Haible  <bruno@clisp.org>
53862
53863         Allow for modules to show an arbitrary notice.
53864         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
53865         * gnulib-tool: New option --extract-notice.
53866         (func_usage): Document it.
53867         (sed_extract_prog): Update.
53868         (func_get_notice): New function.
53869         (func_modules_notice): New function.
53870         (func_import, func_create_testdir): Invoke it.
53871         Suggested by Jim Meyering.
53872
53873 2007-09-09  Bruno Haible  <bruno@clisp.org>
53874
53875         * gnulib-tool: New options --verbose, --quiet.
53876         (func_usage): Document them.
53877         (verbose): New variable.
53878         (func_execute_command): New function.
53879         (func_import): Don't show the module list and the file list if
53880         $verbose < 0.
53881         (func_create_testdir): Likewise. Use func_execute_command.
53882         (func_create_megatestdir): Use func_execute_command.
53883
53884 2007-09-08  Bruno Haible  <bruno@clisp.org>
53885
53886         * gnulib-tool (func_import): Prefer rsync over wget when available,
53887         for fetching the PO files.
53888
53889 2007-09-08  Bruno Haible  <bruno@clisp.org>
53890
53891         * posix-modules: New file. Portions copied from gnulib-tool.
53892         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
53893
53894 2007-09-08  Jim Meyering  <jim@meyering.net>
53895
53896         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
53897         * lib/fpending.h: Rename from __fpending.h.
53898         * lib/fpending.c: Rename from __fpending.c.
53899         Include "fpending.h", not "__fpending.h".
53900         * lib/__fpending.h, lib/__fpending.c: Remove files.
53901         * modules/fpending (Files): Reflect new file names.
53902         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53903
53904 2007-09-08  Bruno Haible  <bruno@clisp.org>
53905
53906         * m4/inttypes-h.m4: Remove stub file.
53907
53908 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53909
53910         * doc/headers/stdint.texi: Discuss #include_next issue.
53911
53912 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53913
53914         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53915
53916 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53917
53918         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53919         in variable name.
53920
53921 2007-09-03  Jim Meyering  <jim@meyering.net>
53922
53923         New module: git-version-gen.
53924         * modules/git-version-gen: New file.
53925
53926         Import changes from coreutils for bootstrap script.
53927
53928         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53929
53930         bootstrap: uses rsync to download the .po files
53931         * build-aux/bootstrap (po_download_command_format): New global.
53932         (download_po_files): Use rsync.
53933         (update_po_files): Don't remove .po files after download,
53934         so future rsync runs can take advantage of the copies.
53935
53936         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53937
53938         Solve the unnecessary-.po-file-regeneration problem once and for all.
53939         * build-aux/bootstrap (download_po_files): New function, renamed from
53940         get_translations.  Now, downloads, but doesn't update LINGUAS.
53941         (update_po_files): New function.
53942
53943         bootstrap: Ignore more.
53944         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53945         uniwidth to e.g., lib/.gitignore.
53946         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53947
53948         * build-aux/bootstrap: New setting: vc_ignore.
53949         (insert_sorted_if_absent): Create $file if absent.
53950         Adapt to new, possibly empty, list: $vc_ignore.
53951
53952         bootstrap: generate more ignorable names
53953         * build-aux/bootstrap (slurp): When generating ignorable names,
53954         also map .sin to .sed, .gperf to .c, and .y to .c.
53955
53956 2007-09-03  Jim Meyering  <jim@meyering.net>
53957
53958         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53959         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53960
53961 2007-09-02  Bruno Haible  <bruno@clisp.org>
53962
53963         Fix mis-recognition of 'mcs' on QNX 6.
53964         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53965         output contains the string "Mono".
53966         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53967         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53968
53969 2007-09-01  Bruno Haible  <bruno@clisp.org>
53970
53971         Fix collision between uniwidth/* and linebreak modules.
53972         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53973         u32_width): Remove declarations.
53974         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53975         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53976         streq3, streq2, streq1, streq0): Remove functions.
53977         (STREQ): Remove macro.
53978         (is_cjk_encoding): Remove function.
53979         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53980         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53981         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53982         * NEWS: Document the change.
53983
53984 2007-09-01  Bruno Haible  <bruno@clisp.org>
53985
53986         * lib/streq.h: Add double-inclusion guard.
53987
53988 2007-09-01  Karl Berry  <karl@gnu.org>
53989
53990         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53991
53992 2007-08-28  Jim Meyering  <jim@meyering.net>
53993
53994         Rename mreadlink_with_size to areadlink_with_size.
53995         * NEWS: Document the change.
53996         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53997         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53998         * lib/mreadlink.h: Rename this to...
53999         * lib/areadlink.h: ...this.
54000         * modules/mreadlink-with-size: Rename this to...
54001         * modules/areadlink-with-size: ...this.
54002         * lib/canonicalize.c: Reflect the renaming.
54003         * modules/canonicalize: Likewise.
54004
54005 2007-08-26  Bruno Haible  <bruno@clisp.org>
54006
54007         * gnulib-tool (func_import): When deciding which files to remove,
54008         consider also dangling symbolic links.
54009         Reported by Eric Blake.
54010
54011 2007-08-26  Bruno Haible  <bruno@clisp.org>
54012
54013         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
54014
54015 2007-08-23  Simon Josefsson  <simon@josefsson.org>
54016
54017         * lib/readline.c: Don't include getline.h, the prototype is now
54018         found in stdio.h.
54019
54020 2007-08-23  Jim Meyering  <jim@meyering.net>
54021
54022         Getdelim touchup.
54023         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
54024         around the funlockfile call, since funlockfile never sets errno.
54025         Don't set errno upon failed realloc.
54026
54027 2007-08-22  Eric Blake  <ebb9@byu.net>
54028
54029         Getline touchups.
54030         * lib/getdelim.c (getdelim): Revert regression that required *n to
54031         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
54032         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
54033         getdelim, rather than whether implementation is missing.
54034         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
54035         * lib/stdio_.h (getline): Also declare if replacement is
54036         required.
54037         * doc/functions/getdelim.texi: New file.
54038         * doc/functions/getline.texi: Likewise.
54039         * doc/gnulib.texi (Function Substitutes): Add new files.
54040         Reported by Bruno Haible.
54041
54042 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
54043
54044         * users.txt: Add Guile.
54045
54046 2007-08-22  Eric Blake  <ebb9@byu.net>
54047
54048         * tests/test-getdelim.c (main): Use remove, not unlink.
54049         * tests/test-getline.c (main): Likewise.
54050
54051         Move getline and getdelim into stdio.h, per POSIX 200x.
54052         * modules/getline (Files): Remove getline.h.
54053         (Depends-on): Add stdio.
54054         (configure.ac): Add module indicator.
54055         * modules/getdelim (Files): Remove getdelim.h.
54056         (Depends-on): Add stdio.
54057         (configure.ac): Add module indicator.
54058         * modules/stdio (Makefile.am): Work with new indicators.
54059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
54060         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
54061         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54062         * lib/getdelim.h: Delete.
54063         * lib/getline.h: Delete.
54064         * lib/stdio_.h (getdelim, getline): Declare.
54065         * modules/getdelim-tests: New module.
54066         * modules/getline-tests: Likewise.
54067         * tests/test-getdelim.c: New file.
54068         * tests/test-getline.c: Likewise.
54069         * NEWS: Document the change.
54070         * lib/getline.c: Update choice of header.
54071         * lib/csharpcomp.c: Likewise.
54072         * lib/getpass.c: Likewise.
54073         * lib/javacomp.c: Likewise.
54074         * lib/javaversion.c: Likewise.
54075         * lib/yesno.c: Likewise.
54076         * lib/getdelim.c: Likewise.
54077         (getdelim): Set errno on failure, and avoid memory leak.
54078
54079 2007-08-19  Bruno Haible  <bruno@clisp.org>
54080
54081         * modules/closein (Depends-on): Add freadahead.
54082         * lib/closein.c: Include freadahead.h.
54083         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
54084         is zero.
54085
54086 2007-08-19  Bruno Haible  <bruno@clisp.org>
54087
54088         * modules/freadahead-tests: New file.
54089         * tests/test-freadahead.sh: New file.
54090         * tests/test-freadahead.c: New file.
54091
54092         * modules/freadahead: New file.
54093         * lib/freadahead.h: New file.
54094         * lib/freadahead.c: New file.
54095         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
54096         fbufmode, fpurge, freadable, fwritable.
54097
54098 2007-08-19  Eric Blake  <ebb9@byu.net>
54099
54100         Test yesno in combination with closein.
54101         * lib/yesno.c (yesno): Document use of stdin.
54102         * modules/yesno-tests (Files): New module.
54103         * tests/test-yesno.c (main): New file.
54104         * tests/test-yesno.sh: Likewise.
54105
54106 2007-08-19  Bruno Haible  <bruno@clisp.org>
54107
54108         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
54109         * lib/fseeko.c (rpl_fseeko): Likewise.
54110         * lib/fseterr.c (fseterr): Likewise.
54111
54112 2007-08-19  Bruno Haible  <bruno@clisp.org>
54113
54114         * tests/test-lseek.c (main): Disable a test for BeOS.
54115         * doc/functions/lseek.texi: Document the BeOS bug.
54116
54117 2007-08-19  Bruno Haible  <bruno@clisp.org>
54118             Eric Blake  <ebb9@byu.net>
54119
54120         * lib/lseek.c: Include <sys/stat.h>.
54121         (rpl_lseek): Add workaround code also for Unix platforms.
54122         Needed for BeOS.
54123         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
54124         * doc/functions/lseek.texi: Document BeOS definiency.
54125
54126 2007-08-18  Bruno Haible  <bruno@clisp.org>
54127
54128         * modules/fstrcmp-tests: New file.
54129         * tests/test-fstrcmp.c: New file.
54130
54131 2007-08-18  Bruno Haible  <bruno@clisp.org>
54132
54133         * modules/fstrcmp: New file, from GNU gettext with modifications.
54134         * lib/fstrcmp.h: New file, from GNU gettext.
54135         * lib/fstrcmp.c: New file, from GNU gettext.
54136         * MODULES.html.sh (String handling): Add fstrcmp.
54137
54138 2007-08-18  Bruno Haible  <bruno@clisp.org>
54139
54140         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
54141         'bool'.
54142         (diag, compareseq): Remove const from the ctxt argument.
54143         (USE_HEURISTIC): Undefine at the end.
54144
54145 2007-08-18  Jim Meyering  <jim@meyering.net>
54146
54147         New file: lib/idcache.h
54148         * NEWS: Mention the addition.
54149         * modules/idcache (Files): Add lib/idcache.h
54150         * lib/idcache.c: Include "idcache.h".
54151         Don't include <sys/types.h>.
54152         Add a FIXME comment.
54153         Move file-scoped "static" declarations to the top.
54154         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
54155
54156 2007-08-17  Bruno Haible  <bruno@clisp.org>
54157         and Paul Eggert  <eggert@cs.ucla.edu>
54158
54159         * MODULES.html.sh: Add diffseq.
54160         * modules/diffseq: New file.
54161         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
54162         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
54163
54164 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54165
54166         Import changes from coreutils for bootstrap script.
54167
54168         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
54169
54170         * build-aux/bootstrap (slurp): Work even in environments where
54171         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
54172         current code does not slurp files whose names start with ".", and
54173         this looks like it might be a troublesome area.
54174
54175         2007-07-11  Jim Meyering  <jim@meyering.net>
54176
54177         If there's a GPL vN copyright comment, require that N == 3.
54178
54179         2007-07-08  Jim Meyering  <jim@meyering.net>
54180
54181         Run the coreutils-specific code only if tests/Makefile.am.in exists.
54182         * build-aux/bootstrap (mam_template): Move definition out of loop.
54183
54184         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
54185
54186         * build-aux/bootstrap (symlink_to_dir): Rename function from
54187         symlink_to_gnulib.  Add a directory parameter.  Update all
54188         callers.
54189         (cp_mark_as_generated): Also check for -- and link to -- files in
54190         gl/.
54191
54192         2007-07-08  Jim Meyering  <jim@meyering.net>
54193
54194         Adapt to deeper hierarchy in gnulib.
54195         * build-aux/bootstrap (symlink_to_dir): If the destination
54196         directory doesn't exist, create it. This is required at least for
54197         "lib/uniwidth/cjk.h".
54198
54199         2007-05-15  Jim Meyering  <jim@meyering.net>
54200
54201         * build-aux/bootstrap: Now that generated Makefile.am files
54202         are no longer under version control, they must be created at
54203         bootstrap time.
54204
54205 2007-08-14  Ben Pfaff  <blp@gnu.org>
54206
54207         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
54208
54209 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54210
54211         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
54212         given the changes below.
54213         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
54214         even on hosts that have padding bits beyond the supported 64.
54215
54216 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54217
54218         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
54219         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
54220         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
54221         depends on it.
54222         (xstrtol_error): Remove.
54223         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
54224         but with a different signature.
54225         (ATTRIBUTE_NORETURN, __attribute__): New macros.
54226         * lib/xstrtol-error.c: Include exitfail.h.
54227         (xstrtol_fatal): New function, with a different signature from the
54228         old xstrtol_error, so that the caller need not worry about passing
54229         in an exit status, or about storage management of the option argument.
54230         (xstrtol_error): Now a static function.  Redo signature to
54231         implement xstrtol_fatal.  Output the correct number of hyphens in
54232         front of the option so that the caller need not worry about
54233         storage management.
54234         (N_): New macro.
54235         (_): Remove; not used now.
54236         * modules/xstrtol: Depend on getopt.
54237         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
54238         of old STRTOL_FATAL_ERROR macro.
54239         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
54240         of test program.
54241         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
54242         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
54243
54244 2007-08-08  Eric Blake  <ebb9@byu.net>
54245
54246         * lib/xstrtol-error.c: Add missing include.
54247
54248         Move xstrtol messages into gnulib domain, when --pobase is used.
54249         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
54250         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
54251         * modules/xstrtol (Files): Distribute new file.
54252         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
54253         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
54254         * tests/test-xstrtol.c: ...into new file.
54255         * tests/test-xstrtoul.c: Also test xstrtoul.
54256         * tests/test-xstrtoimax.c: Also test xstrtoimax.
54257         * tests/test-xstrtoumax.c: Also test xstrtoumax.
54258         * tests/test-xstrtol.sh: Drive the tests.
54259         * tests/test-xstrtoimax.sh: Likewise.
54260         * tests/test-xstrtoumax.sh: Likewise.
54261         * modules/xstrtol-tests: New module.
54262         * modules/xstrtoimax-tests: Likewise.
54263         * modules/xstrtoumax-tests: Likewise.
54264
54265 2007-08-08  Jim Meyering  <jim@meyering.net>
54266
54267         New function: mfile_name_concat.
54268         * lib/filenamecat.c (mfile_name_concat): New function, just like
54269         file_name_concat, but return NULL upon failure rather than exiting
54270         with a diagnostic.
54271         * lib/filenamecat.h: Declare it.
54272
54273 2007-08-07  Bruno Haible  <bruno@clisp.org>
54274
54275         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
54276         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
54277         warning from gcc.
54278         Reported by Eric Blake.
54279
54280 2007-08-07  Simon Josefsson  <simon@josefsson.org>
54281
54282         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
54283         * modules/crypto/arcfour (License): Likewise.
54284         * modules/crypto/des-tests (License): Likewise.
54285         * modules/crypto/gc-arctwo-tests (License): Likewise.
54286         * modules/crypto/gc-des-tests (License): Likewise.
54287         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
54288         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
54289         * modules/crypto/gc-md2-tests (License): Likewise.
54290         * modules/crypto/gc-md4-tests (License): Likewise.
54291         * modules/crypto/gc-md5-tests (License): Likewise.
54292         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
54293         * modules/crypto/gc-rijndael-tests (License): Likewise.
54294         * modules/crypto/gc-sha1-tests (License): Likewise.
54295         * modules/crypto/gc-tests (License): Likewise.
54296         * modules/crypto/hmac-md5 (License): Likewise.
54297         * modules/crypto/hmac-sha1 (License): Likewise.
54298         * modules/crypto/md2-tests (License): Likewise.
54299         * modules/crypto/md4-tests (License): Likewise.
54300         * modules/crypto/md5 (License): Likewise.
54301         * modules/crypto/rijndael (License): Likewise.
54302         * modules/crypto/sha1 (License): Likewise.
54303         * modules/memxor (License): Likewise.
54304
54305 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54306         and Bruno Haible  <bruno@clisp.org>
54307
54308         * NEWS: Describe interface changes to human, xstrtol.
54309         * lib/human.h: Include <xstrtol.h>.
54310         (human_options): Return enum strtol_error, not int.  Remove
54311         bool arg; take int * instead.
54312         * lib/human.c: Don't include "gettext.h".
54313         (_): Remove; no longer used.
54314         Don't include <xstrtol.h>, since human.h does it.
54315         (human_options): Adjust to abovementioned interface changes.
54316         Do not report error to stderr; that's now the caller's
54317         responsibility.
54318         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
54319         interface change.
54320         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
54321         Str, Argument_type_string.  All uses changed.  Put " argument"
54322         in diagnostics to make them clearer.  Change wording of suffix
54323         message for clarity.
54324         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
54325         Argument_type_string.
54326         (STRTOL_FATAL_WARN): Remove; no longer used.
54327         * modules/human (Depends-on): Remove gettext-h.
54328
54329 2007-08-06  Simon Josefsson  <simon@josefsson.org>
54330
54331         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
54332
54333 2007-07-31  Bruno Haible  <bruno@clisp.org>
54334
54335         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
54336         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
54337         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
54338
54339 2007-07-31  Bruno Haible  <bruno@clisp.org>
54340
54341         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
54342         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
54343
54344 2007-07-30  Bruno Haible  <bruno@clisp.org>
54345
54346         * modules/base64 (License): Use the synonymous term "LGPLv2+".
54347         * modules/c-ctype (License): Likewise.
54348         * modules/c-strcase (License): Likewise.
54349         * modules/check-version (License): Likewise.
54350         * modules/iconv (License): Likewise.
54351         * modules/iconv_open (License): Likewise.
54352         * modules/read-file (License): Likewise.
54353         * modules/striconv (License): Likewise.
54354         * modules/strverscmp (License): Likewise.
54355         * modules/vasprintf (License): Likewise.
54356         * modules/crypto/des (License): Likewise.
54357         * modules/crypto/gc (License): Likewise.
54358         * modules/crypto/gc-arcfour (License): Likewise.
54359         * modules/crypto/gc-arctwo (License): Likewise.
54360         * modules/crypto/gc-des (License): Likewise.
54361         * modules/crypto/gc-hmac-md5 (License): Likewise.
54362         * modules/crypto/gc-hmac-sha1 (License): Likewise.
54363         * modules/crypto/gc-md2 (License): Likewise.
54364         * modules/crypto/gc-md4 (License): Likewise.
54365         * modules/crypto/gc-md5 (License): Likewise.
54366         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
54367         * modules/crypto/gc-random (License): Likewise.
54368         * modules/crypto/gc-rijndael (License): Likewise.
54369         * modules/crypto/gc-sha1 (License): Likewise.
54370         * modules/crypto/md2 (License): Likewise.
54371         * modules/crypto/md4 (License): Likewise.
54372
54373 2007-07-30  Jim Meyering  <jim@meyering.net>
54374
54375         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
54376         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
54377         it has valid stat data.  This bug would cause du not to count the
54378         sizes of inaccessible directories.
54379         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
54380         in <http://bugzilla.redhat.com/250077>.
54381
54382 2007-07-25  Peter O'Gorman  <peter@pogma.com>
54383             Bruno Haible  <bruno@clisp.org>
54384
54385         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
54386         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
54387         #include_next, gives a diagnostic about it, but reports no error in
54388         the exit code.
54389         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54390
54391 2007-07-24  Ben Pfaff  <blp@gnu.org>
54392
54393         Improve name: "count-one-bits" is better than "popcount".
54394         * MODULES.html.sh: Update name.
54395         * lib/popcount.h: Renamed lib/count-one-bits.h.
54396         (popcount): Renamed count_one_bits.
54397         (popcountl): Renamed count_one_bits_l.
54398         (popcountll): Renamed count_one_bits_ll.
54399         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
54400         * modules/popcount: Renamed module/count-one-bits.
54401         * modules/popcount-tests: Renamed module/count-one-bits-tests.
54402         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
54403
54404 2007-07-23  Ben Pfaff  <blp@gnu.org>
54405
54406         * lib/popcount.h (popcount32): Reduce size of constants, to allow
54407         better code generation, and add U to large constants to avoid
54408         warnings, in non-GCC case.
54409         Suggested by Bruno Haible.
54410
54411 2007-07-23  Ben Pfaff  <blp@gnu.org>
54412
54413         * lib/popcount.h: Use verify_true instead of if...abort.
54414         * modules/popcount: Depend on verify module.
54415         Suggested by Jim Meyering.
54416
54417 2007-07-23  Bruno Haible  <bruno@clisp.org>
54418
54419         * gnulib-tool (func_import): Create a .cvsignore file also when the
54420         directory is not yet in CVS but the toplevel directory is. When
54421         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
54422         Reported by Karl Berry.
54423
54424 2007-07-22  Ben Pfaff  <blp@gnu.org>
54425
54426         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
54427         case.
54428         Suggested by Eric Blake.
54429
54430 2007-07-22  Ben Pfaff  <blp@gnu.org>
54431
54432         New module: popcount.
54433         * MODULES.html.sh: Add popcount.
54434         * modules/popcount: New file.
54435         * modules/popcount-tests: New file.
54436         * tests/test-popcount.c: New file.
54437         * lib/popcount.h: New file.
54438         * m4/popcount.m4: New file.
54439
54440 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54441
54442         * build-aux/announce-gen: Update to GPLv3.
54443
54444         * build-aux/config.guess: Update from config.
54445
54446 2007-07-21  Bruno Haible  <bruno@clisp.org>
54447
54448         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
54449         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
54450
54451 2007-07-20  Jim Meyering  <jim@meyering.net>
54452
54453         * check-module: Diagnose a self-dependency.
54454
54455 2007-07-19  Bruno Haible  <bruno@clisp.org>
54456
54457         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
54458         empty.
54459         Reported by Eric Blake.
54460
54461 2007-07-18  Bruno Haible  <bruno@clisp.org>
54462
54463         * gnulib-tool: New options --po-base, --po-domain.
54464         (func_usage): Document them.
54465         (pobase, po_domain): New variables.
54466         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
54467         DEFAULT_TEXT_DOMAIN.
54468         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
54469         (func_import): Consider pobase and po_domain. Create a po/ directory.
54470         (func_create_testdir): Set pobase and po_domain to empty.
54471         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
54472         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
54473
54474 2007-07-18  Bruno Haible  <bruno@clisp.org>
54475
54476         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54477         EXTRA_DIST augmentation for files in build-aux/.
54478
54479 2007-07-16  Bruno Haible  <bruno@clisp.org>
54480
54481         * modules/lseek (License): Use the synonymous term "LGPLv2+".
54482         * modules/getdelim (License): Likewise.
54483
54484 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54485
54486         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
54487         * modules/d-type (License): Likewise.
54488         * modules/extensions (License): Likewise.
54489         * modules/fnmatch (License): Likewise.
54490         * modules/fseeko (License): Likewise.
54491         * modules/getaddrinfo (License): Likewise.
54492         * modules/getline (License): Likewise.
54493         * modules/getlogin_r (License): Likewise.
54494         * modules/getpass (License): Likewise.
54495         * modules/gettimeofday (License): Likewise.
54496         * modules/glob (License): Likewise.
54497         * modules/inet_ntop (License): Likewise.
54498         * modules/malloc (License): Likewise.
54499         * modules/malloca (License): Likewise.
54500         * modules/memmem (License): Likewise.
54501         * modules/mempcpy (License): Likewise.
54502         * modules/memset (License): Likewise.
54503         * modules/minmax (License): Likewise.
54504         * modules/mktime (License): Likewise.
54505         * modules/netinet_in (License): Likewise.
54506         * modules/pathmax (License): Likewise.
54507         * modules/poll (License): Likewise.
54508         * modules/regex (License): Likewise.
54509         * modules/snprintf (License): Likewise.
54510         * modules/stdbool (License): Likewise.
54511         * modules/stdint (License): Likewise.
54512         * modules/stdio (License): Likewise.
54513         * modules/strcase (License): Likewise.
54514         * modules/strcasestr (License): Likewise.
54515         * modules/strdup (License): Likewise.
54516         * modules/string (License): Likewise.
54517         * modules/strndup (License): Likewise.
54518         * modules/strnlen (License): Likewise.
54519         * modules/strpbrk (License): Likewise.
54520         * modules/strptime (License): Likewise.
54521         * modules/strsep (License): Likewise.
54522         * modules/sys_select (License): Likewise.
54523         * modules/sys_socket (License): Likewise.
54524         * modules/sys_stat (License): Likewise.
54525         * modules/sys_time (License): Likewise.
54526         * modules/time (License): Likewise.
54527         * modules/time_r (License): Likewise.
54528         * modules/timegm (License): Likewise.
54529         * modules/unistd (License): Likewise.
54530         * modules/vsnprintf (License): Likewise.
54531         * modules/wctype (License): Likewise.
54532
54533 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54534
54535         * modules/argz (License): LGPLv2+.
54536
54537 2007-07-15  Karl Berry  <karl@gnu.org>
54538
54539         * doc/gnulib.texi: revise node structure per new fdl.texi.
54540
54541 2007-07-14  Bruno Haible  <bruno@clisp.org>
54542
54543         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
54544         the output file.
54545         * lib/uniname/uninames.h: Regenerated.
54546
54547 2007-07-14  Karl Berry  <karl@gnu.org>
54548
54549         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
54550         omitting sectioning and index commands.
54551
54552 2007-07-13  Bruno Haible  <bruno@clisp.org>
54553
54554         New gnulib-tool option --more-symlinks.
54555         * gnulib-tool (func_usage): Document --more-symlinks.
54556         (do_copyrights): New variable.
54557         Recognize option --more-symlinks.
54558         (func_import): Don't add a copyright notice transform to
54559         sed_transform_lib_file if do_copyrights is empty.
54560
54561 2007-07-13  Bruno Haible  <bruno@clisp.org>
54562
54563         * lib/vasnprintf.c (decimal_point_char): Define also if
54564         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
54565         && !NEED_PRINTF_DIRECTIVE_A.
54566         Reported by Clemens Koller <clemens.koller@anagramm.de> via
54567         Gary V. Vaughan <gary@gnu.org>.
54568
54569 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
54570
54571         * lib/inttypes_.h: Undo previous change, since it was fixed
54572         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
54573
54574 2007-07-13  Bruno Haible  <bruno@clisp.org>
54575
54576         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
54577         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
54578
54579 2007-07-13  Jim Meyering  <jim@meyering.net>
54580
54581         df: Don't fail for Tru64's "file-on-file mount".
54582         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
54583         so we fall through and use statfs instead.  Details here:
54584         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
54585         Reported by Albert Chin.
54586
54587 2007-07-13  Bruno Haible  <bruno@clisp.org>
54588
54589         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
54590         * modules/configmake (License): Likewise.
54591         * modules/gettext (License): Likewise.
54592         * modules/gettext-h (License): Likewise.
54593         * modules/include_next (License): Likewise.
54594         * modules/link-warning (License): Likewise.
54595         * modules/localcharset (License): Likewise.
54596         * modules/localename (License): Likewise.
54597         * modules/lock (License): Likewise.
54598         * modules/relocatable-lib-lgpl (License): Likewise.
54599         * modules/size_max (License): Likewise.
54600         * modules/vasnprintf (License): Likewise.
54601         * modules/wchar (License): Likewise.
54602         * modules/xsize (License): Likewise.
54603
54604 2007-07-13  Bruno Haible  <bruno@clisp.org>
54605
54606         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
54607         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
54608
54609 2007-07-12  Bruno Haible  <bruno@clisp.org>
54610
54611         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
54612         in the modules files.
54613
54614 2007-07-11  Karl Berry  <karl@gnu.org>
54615
54616         * MODULES.html.sh (func_module): use
54617          sed -e '\|^'"${includefile}"'$|d'
54618          instead of /.../d, to avoid errors on $includefile's containing /.
54619
54620 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54621
54622         * gnulib-tool (func_import): Avoid duplication of --avoid
54623         statements
54624         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
54625         names to `_' in variable names.
54626
54627 2007-07-10  Eric Blake  <ebb9@byu.net>
54628
54629         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
54630         * NEWS: Document this change.
54631
54632 2007-07-08  Bruno Haible  <bruno@clisp.org>
54633
54634         Update to Unicode 5.0.
54635         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
54636         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
54637         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
54638         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
54639         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
54640         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
54641         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
54642         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
54643         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
54644         U+10A3F, U+1D242..U+1D244.
54645         (nonspacing_table_ind): Update.
54646         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
54647         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
54648
54649 2007-07-08  Bruno Haible  <bruno@clisp.org>
54650
54651         Update to Unicode 5.0.
54652         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
54653         code transform. Extend the name index field of unicode_name_to_code and
54654         unicode_code_to_name from 16 to 24 bits.
54655         * lib/uniname/uniname.c (unicode_character_name,
54656         unicode_name_character): Add the range 0x12xxx to the code transform.
54657         * lib/uniname/uninames.h: Regenerated.
54658         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
54659
54660 2007-07-07  Bruno Haible  <bruno@clisp.org>
54661
54662         * modules/wcwidth-tests: New file.
54663         * tests/test-wcwidth.c: New file.
54664
54665         Work around MacOS X wcwidth() bug.
54666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
54667         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
54668         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
54669         original wcwidth in non-UTF-8 locales.
54670         * modules/wcwidth (Depends-on): Add localcharset, streq,
54671         uniwidth/width.
54672         * doc/functions/wcwidth.texi: Update.
54673
54674 2007-07-07  Bruno Haible  <bruno@clisp.org>
54675
54676         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
54677         (wcwidth): New declaration.
54678         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
54679         macros.
54680         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
54681         here. Prepare for creating <wchar.h> unconditionally.
54682         * modules/wchar (Depends-on): Add link-warning.
54683         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
54684         REPLACE_WCWIDTH, and GL_LINK_WARNING.
54685         * lib/wcwidth.h: Remove file.
54686         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
54687         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
54688         * modules/wcwidth (Files): Remove lib/wcwidth.h.
54689         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
54690         (Include): Replace wcwidth.h with <wchar.h>.
54691         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
54692         * lib/mbchar.h: Don't include wcwidth.h.
54693         * lib/mbswidth.c: Likewise.
54694         * NEWS: Mention the change.
54695
54696 2007-07-07  Bruno Haible  <bruno@clisp.org>
54697
54698         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
54699         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
54700         definition with an external declaration.
54701         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
54702         defined as a function. Remove AC_C_INLINE requirement.
54703         * modules/wcwidth (Files): Add lib/wcwidth.c.
54704         (Makefile.am): Remove redundant statement.
54705
54706 2007-07-07  Bruno Haible  <bruno@clisp.org>
54707
54708         * MODULES.html.sh (Unicode string functions): Add the new modules.
54709
54710         * tests/uniwidth/test-u32-strwidth.c: New file.
54711         * modules/uniwidth/u32-strwidth-tests: New file.
54712
54713         * lib/uniwidth/u32-strwidth.c: New file.
54714         * modules/uniwidth/u32-strwidth: New file.
54715
54716         * tests/uniwidth/test-u16-strwidth.c: New file.
54717         * modules/uniwidth/u16-strwidth-tests: New file.
54718
54719         * lib/uniwidth/u16-strwidth.c: New file.
54720         * modules/uniwidth/u16-strwidth: New file.
54721
54722         * tests/uniwidth/test-u8-strwidth.c: New file.
54723         * modules/uniwidth/u8-strwidth-tests: New file.
54724
54725         * lib/uniwidth/u8-strwidth.c: New file.
54726         * modules/uniwidth/u8-strwidth: New file.
54727
54728         * tests/uniwidth/test-u32-width.c: New file.
54729         * modules/uniwidth/u32-width-tests: New file.
54730
54731         * lib/uniwidth/u32-width.c: New file.
54732         * modules/uniwidth/u32-width: New file.
54733
54734         * tests/uniwidth/test-u16-width.c: New file.
54735         * modules/uniwidth/u16-width-tests: New file.
54736
54737         * lib/uniwidth/u16-width.c: New file.
54738         * modules/uniwidth/u16-width: New file.
54739
54740         * tests/uniwidth/test-u8-width.c: New file.
54741         * modules/uniwidth/u8-width-tests: New file.
54742
54743         * lib/uniwidth/u8-width.c: New file.
54744         * modules/uniwidth/u8-width: New file.
54745
54746         * tests/uniwidth/test-uc_width.c: New file.
54747         * modules/uniwidth/width-tests: New file.
54748
54749         * lib/uniwidth/width.c: New file, from GNU libiconv.
54750         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
54751         * modules/uniwidth/width: New file.
54752
54753         * lib/uniwidth.h: New file, from GNU libiconv.
54754         * modules/uniwidth/base: New file.
54755
54756 2007-07-07  Bruno Haible  <bruno@clisp.org>
54757
54758         * lib/uniname.h: New file, from GNU gettext.
54759         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
54760         * lib/uniname/uninames.h: New file, from GNU gettext.
54761         * lib/uniname/uniname.c: New file, from GNU gettext.
54762         * tests/uniname/test-uninames.sh: New file.
54763         * tests/uniname/test-uninames.c: New file, from GNU gettext.
54764         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
54765         * modules/uniname/base: New file.
54766         * modules/uniname/uniname: New file.
54767         * modules/uniname/uniname-tests: New file.
54768         * MODULES.html.sh (Unicode string functions): Add the new modules.
54769
54770 2007-07-06  Bruno Haible  <bruno@clisp.org>
54771
54772         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
54773
54774 2007-07-06  Bruno Haible  <bruno@clisp.org>
54775
54776         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
54777         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
54778         includes <cygwin/sys_time.h> which includes <sys/select.h> which
54779         include <sys/time.h>.
54780         Reported by Eric Blake.
54781
54782 2007-07-06  Eric Blake  <ebb9@byu.net>
54783
54784         Fix testing canonicalize on cygwin.
54785         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54786         Revert patch from 2007-06-19.
54787         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
54788         canonicalize module is also in use.
54789         * tests/test-canonicalize.c: New file.
54790         * tests/test-canonicalize.sh: Likewise.
54791         * modules/canonicalize-tests: Likewise.
54792
54793 2007-07-06  Jim Meyering  <jim@meyering.net>
54794
54795         * lib/getugroups.c (getugroups): Detect getgrent failure.
54796         Adjust comment to reflect reality: this function may return -1.
54797
54798 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54799
54800         * build-aux/bootstrap (TP_URL,get_translations): Update to use
54801         the new TP address.
54802         (usage): Fix typo
54803         (gnulib_mk): New variable.
54804
54805 2007-07-05  Jim Meyering  <jim@meyering.net>
54806
54807         Don't let endgrent clobber errno, no matter how improbable.
54808         * lib/getugroups.c (getugroups): Save and restore errno around
54809         endgrent call.
54810
54811         Close the group DB even when failing with 2^31 or more members.
54812         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
54813
54814 2007-07-04  Jim Meyering  <jim@meyering.net>
54815
54816         * lib/getugroups.h: New file.
54817         * lib/getugroups.c: Include "getugroups.h".
54818         Remove uses of "register" keyword.
54819         Move local variable, "cp", down into scope where used.
54820         Give "username" parameter the "const" attribute.
54821         * modules/getugroups (Files): Add lib/getugroups.h
54822
54823 2007-07-04  Karl Berry  <karl@gnu.org>
54824
54825         * MODULES.html.sh (func_all_modules): Complete rename of
54826         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
54827
54828 2007-07-02  Bruno Haible  <bruno@clisp.org>
54829
54830         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
54831         mode, when inttypes.h comes from gnulib.
54832         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54833
54834 2007-07-02  Simon Josefsson  <simon@josefsson.org>
54835
54836         * NEWS: Mention lgpl module name change.
54837
54838         * modules/lgpl-2.1: Renamed from lgpl.
54839
54840         * NEWS: Mention gpl module name change.
54841
54842         * modules/gpl-3.0: New file, based on gpl-2.0.
54843
54844         * modules/gpl-2.0: Renamed from gpl.
54845
54846         * modules/gpl: Fix filename, doc/gpl.texi is now found at
54847         doc/gpl-2.0.texi.
54848
54849 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54850
54851         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
54852         #define __STDC_LIMIT_MACROS temporarily while including
54853         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
54854         Problem reported by Joel E. Denny in
54855         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
54856
54857 2007-07-01  Bruno Haible  <bruno@clisp.org>
54858
54859         * lib/unistdio.h: New file.
54860         * lib/unistdio/u-asnprintf.h: New file.
54861         * lib/unistdio/u-asprintf.h: New file.
54862         * lib/unistdio/u-printf-args.c: New file.
54863         * lib/unistdio/u-printf-args.h: New file.
54864         * lib/unistdio/u-printf-parse.h: New file.
54865         * lib/unistdio/u-snprintf.h: New file.
54866         * lib/unistdio/u-sprintf.h: New file.
54867         * lib/unistdio/u-vasprintf.h: New file.
54868         * lib/unistdio/u-vsnprintf.h: New file.
54869         * lib/unistdio/u-vsprintf.h: New file.
54870         * lib/unistdio/ulc-asnprintf.c: New file.
54871         * lib/unistdio/ulc-asprintf.c: New file.
54872         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
54873         * lib/unistdio/ulc-printf-parse.c: New file.
54874         * lib/unistdio/ulc-snprintf.c: New file.
54875         * lib/unistdio/ulc-sprintf.c: New file.
54876         * lib/unistdio/ulc-vasnprintf.c: New file.
54877         * lib/unistdio/ulc-vasprintf.c: New file.
54878         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
54879         * lib/unistdio/ulc-vsnprintf.c: New file.
54880         * lib/unistdio/ulc-vsprintf.c: New file.
54881         * lib/unistdio/u8-asnprintf.c: New file.
54882         * lib/unistdio/u8-asprintf.c: New file.
54883         * lib/unistdio/u8-printf-parse.c: New file.
54884         * lib/unistdio/u8-snprintf.c: New file.
54885         * lib/unistdio/u8-sprintf.c: New file.
54886         * lib/unistdio/u8-vasnprintf.c: New file.
54887         * lib/unistdio/u8-vasprintf.c: New file.
54888         * lib/unistdio/u8-vsnprintf.c: New file.
54889         * lib/unistdio/u8-vsprintf.c: New file.
54890         * lib/unistdio/u8-u8-asnprintf.c: New file.
54891         * lib/unistdio/u8-u8-asprintf.c: New file.
54892         * lib/unistdio/u8-u8-snprintf.c: New file.
54893         * lib/unistdio/u8-u8-sprintf.c: New file.
54894         * lib/unistdio/u8-u8-vasnprintf.c: New file.
54895         * lib/unistdio/u8-u8-vasprintf.c: New file.
54896         * lib/unistdio/u8-u8-vsnprintf.c: New file.
54897         * lib/unistdio/u8-u8-vsprintf.c: New file.
54898         * lib/unistdio/u16-asnprintf.c: New file.
54899         * lib/unistdio/u16-asprintf.c: New file.
54900         * lib/unistdio/u16-printf-parse.c: New file.
54901         * lib/unistdio/u16-snprintf.c: New file.
54902         * lib/unistdio/u16-sprintf.c: New file.
54903         * lib/unistdio/u16-vasnprintf.c: New file.
54904         * lib/unistdio/u16-vasprintf.c: New file.
54905         * lib/unistdio/u16-vsnprintf.c: New file.
54906         * lib/unistdio/u16-vsprintf.c: New file.
54907         * lib/unistdio/u16-u16-asnprintf.c: New file.
54908         * lib/unistdio/u16-u16-asprintf.c: New file.
54909         * lib/unistdio/u16-u16-snprintf.c: New file.
54910         * lib/unistdio/u16-u16-sprintf.c: New file.
54911         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54912         * lib/unistdio/u16-u16-vasprintf.c: New file.
54913         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54914         * lib/unistdio/u16-u16-vsprintf.c: New file.
54915         * lib/unistdio/u32-asnprintf.c: New file.
54916         * lib/unistdio/u32-asprintf.c: New file.
54917         * lib/unistdio/u32-printf-parse.c: New file.
54918         * lib/unistdio/u32-snprintf.c: New file.
54919         * lib/unistdio/u32-sprintf.c: New file.
54920         * lib/unistdio/u32-vasnprintf.c: New file.
54921         * lib/unistdio/u32-vasprintf.c: New file.
54922         * lib/unistdio/u32-vsnprintf.c: New file.
54923         * lib/unistdio/u32-vsprintf.c: New file.
54924         * lib/unistdio/u32-u32-asnprintf.c: New file.
54925         * lib/unistdio/u32-u32-asprintf.c: New file.
54926         * lib/unistdio/u32-u32-snprintf.c: New file.
54927         * lib/unistdio/u32-u32-sprintf.c: New file.
54928         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54929         * lib/unistdio/u32-u32-vasprintf.c: New file.
54930         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54931         * lib/unistdio/u32-u32-vsprintf.c: New file.
54932         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54933         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54934         * tests/unistdio/test-ulc-printf1.h: New file.
54935         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54936         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54937         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54938         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54939         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54940         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54941         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54942         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54943         * tests/unistdio/test-u8-asnprintf1.c: New file.
54944         * tests/unistdio/test-u8-asnprintf1.h: New file.
54945         * tests/unistdio/test-u8-printf1.h: New file.
54946         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54947         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54948         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54949         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54950         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54951         * tests/unistdio/test-u8-vasprintf1.c: New file.
54952         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54953         * tests/unistdio/test-u8-vsprintf1.c: New file.
54954         * tests/unistdio/test-u16-asnprintf1.c: New file.
54955         * tests/unistdio/test-u16-asnprintf1.h: New file.
54956         * tests/unistdio/test-u16-printf1.h: New file.
54957         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54958         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54959         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54960         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54961         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54962         * tests/unistdio/test-u16-vasprintf1.c: New file.
54963         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54964         * tests/unistdio/test-u16-vsprintf1.c: New file.
54965         * tests/unistdio/test-u32-asnprintf1.c: New file.
54966         * tests/unistdio/test-u32-asnprintf1.h: New file.
54967         * tests/unistdio/test-u32-printf1.h: New file.
54968         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54969         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54970         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54971         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54972         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54973         * tests/unistdio/test-u32-vasprintf1.c: New file.
54974         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54975         * tests/unistdio/test-u32-vsprintf1.c: New file.
54976         * modules/unistdio/base: New file.
54977         * modules/unistdio/u-printf-args: New file.
54978         * modules/unistdio/ulc-asnprintf: New file.
54979         * modules/unistdio/ulc-asprintf: New file.
54980         * modules/unistdio/ulc-fprintf: New file.
54981         * modules/unistdio/ulc-printf-parse: New file.
54982         * modules/unistdio/ulc-snprintf: New file.
54983         * modules/unistdio/ulc-sprintf: New file.
54984         * modules/unistdio/ulc-vasnprintf: New file.
54985         * modules/unistdio/ulc-vasprintf: New file.
54986         * modules/unistdio/ulc-vfprintf: New file.
54987         * modules/unistdio/ulc-vsnprintf: New file.
54988         * modules/unistdio/ulc-vsprintf: New file.
54989         * modules/unistdio/u8-asnprintf: New file.
54990         * modules/unistdio/u8-asprintf: New file.
54991         * modules/unistdio/u8-printf-parse: New file.
54992         * modules/unistdio/u8-snprintf: New file.
54993         * modules/unistdio/u8-sprintf: New file.
54994         * modules/unistdio/u8-vasnprintf: New file.
54995         * modules/unistdio/u8-vasprintf: New file.
54996         * modules/unistdio/u8-vsnprintf: New file.
54997         * modules/unistdio/u8-vsprintf: New file.
54998         * modules/unistdio/u8-u8-asnprintf: New file.
54999         * modules/unistdio/u8-u8-asprintf: New file.
55000         * modules/unistdio/u8-u8-snprintf: New file.
55001         * modules/unistdio/u8-u8-sprintf: New file.
55002         * modules/unistdio/u8-u8-vasnprintf: New file.
55003         * modules/unistdio/u8-u8-vasprintf: New file.
55004         * modules/unistdio/u8-u8-vsnprintf: New file.
55005         * modules/unistdio/u8-u8-vsprintf: New file.
55006         * modules/unistdio/u16-asnprintf: New file.
55007         * modules/unistdio/u16-asprintf: New file.
55008         * modules/unistdio/u16-printf-parse: New file.
55009         * modules/unistdio/u16-snprintf: New file.
55010         * modules/unistdio/u16-sprintf: New file.
55011         * modules/unistdio/u16-vasnprintf: New file.
55012         * modules/unistdio/u16-vasprintf: New file.
55013         * modules/unistdio/u16-vsnprintf: New file.
55014         * modules/unistdio/u16-vsprintf: New file.
55015         * modules/unistdio/u16-u16-asnprintf: New file.
55016         * modules/unistdio/u16-u16-asprintf: New file.
55017         * modules/unistdio/u16-u16-snprintf: New file.
55018         * modules/unistdio/u16-u16-sprintf: New file.
55019         * modules/unistdio/u16-u16-vasnprintf: New file.
55020         * modules/unistdio/u16-u16-vasprintf: New file.
55021         * modules/unistdio/u16-u16-vsnprintf: New file.
55022         * modules/unistdio/u16-u16-vsprintf: New file.
55023         * modules/unistdio/u32-asnprintf: New file.
55024         * modules/unistdio/u32-asprintf: New file.
55025         * modules/unistdio/u32-printf-parse: New file.
55026         * modules/unistdio/u32-snprintf: New file.
55027         * modules/unistdio/u32-sprintf: New file.
55028         * modules/unistdio/u32-vasnprintf: New file.
55029         * modules/unistdio/u32-vasprintf: New file.
55030         * modules/unistdio/u32-vsnprintf: New file.
55031         * modules/unistdio/u32-vsprintf: New file.
55032         * modules/unistdio/u32-u32-asnprintf: New file.
55033         * modules/unistdio/u32-u32-asprintf: New file.
55034         * modules/unistdio/u32-u32-snprintf: New file.
55035         * modules/unistdio/u32-u32-sprintf: New file.
55036         * modules/unistdio/u32-u32-vasnprintf: New file.
55037         * modules/unistdio/u32-u32-vasprintf: New file.
55038         * modules/unistdio/u32-u32-vsnprintf: New file.
55039         * modules/unistdio/u32-u32-vsprintf: New file.
55040         * modules/unistdio/ulc-asnprintf-tests: New file.
55041         * modules/unistdio/ulc-vasnprintf-tests: New file.
55042         * modules/unistdio/ulc-vasprintf-tests: New file.
55043         * modules/unistdio/ulc-vsnprintf-tests: New file.
55044         * modules/unistdio/ulc-vsprintf-tests: New file.
55045         * modules/unistdio/u8-asnprintf-tests: New file.
55046         * modules/unistdio/u8-vasnprintf-tests: New file.
55047         * modules/unistdio/u8-vasprintf-tests: New file.
55048         * modules/unistdio/u8-vsnprintf-tests: New file.
55049         * modules/unistdio/u8-vsprintf-tests: New file.
55050         * modules/unistdio/u16-asnprintf-tests: New file.
55051         * modules/unistdio/u16-vasnprintf-tests: New file.
55052         * modules/unistdio/u16-vasprintf-tests: New file.
55053         * modules/unistdio/u16-vsnprintf-tests: New file.
55054         * modules/unistdio/u16-vsprintf-tests: New file.
55055         * modules/unistdio/u32-asnprintf-tests: New file.
55056         * modules/unistdio/u32-vasnprintf-tests: New file.
55057         * modules/unistdio/u32-vasprintf-tests: New file.
55058         * modules/unistdio/u32-vsnprintf-tests: New file.
55059         * modules/unistdio/u32-vsprintf-tests: New file.
55060         * MODULES.html.sh (Unicode string functions): Add the new modules.
55061
55062 2007-07-01  Bruno Haible  <bruno@clisp.org>
55063
55064         * lib/sprintf.c (sprintf): Limit the available length estimation,
55065         to avoid address wraparound.
55066         * lib/vsprintf.c (vsprintf): Likewise.
55067         * modules/sprintf-posix (Dependencies): Add stdint.
55068         * modules/vsprintf-posix (Dependencies): Likewise.
55069
55070 2007-07-01  Bruno Haible  <bruno@clisp.org>
55071
55072         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
55073         Windows PATH as well. Conservative double-quoting. Comments.
55074
55075 2007-07-01  Bruno Haible  <bruno@clisp.org>
55076             Eric Blake  <ebb9@byu.net>
55077             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55078
55079         * gnulib-tool (self_abspathname): Fix algorithm to cope with
55080         empty components in $PATH, denoting '.'.
55081
55082 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55083
55084         * gnulib-tool: Fix indentation.
55085         (func_create_megatestdir): Likewise.
55086         Report by Bruno Haible.
55087
55088 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55089
55090         Sync from Automake.
55091         * build-aux/gnupload: Fix shell portability issues with for loops.
55092         Report by Karl Berry.
55093
55094 2007-06-29  Simon Josefsson  <simon@josefsson.org>
55095
55096         * build-aux/maint.mk (POURL): Use translationproject.org.
55097
55098 2007-06-27  Simon Josefsson  <simon@josefsson.org>
55099             Bruno Haible  <bruno@clisp.org>
55100
55101         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
55102         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
55103         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
55104         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
55105         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
55106
55107 2007-06-27  Bruno Haible  <bruno@clisp.org>
55108
55109         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
55110         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
55111
55112 2007-06-26  Karl Berry  <karl@gnu.org>
55113
55114         * MODULES.html.sh: remove xreadlink-with-size.
55115
55116 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55117
55118         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
55119         method that I hope also handles the double-include problem noted
55120         by Bruno Haible in
55121         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
55122
55123 2007-06-23  Bruno Haible  <bruno@clisp.org>
55124
55125         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55126         Don't let the 'mostlyclean' target fail if the last subdirectory could
55127         not be removed.
55128         Reported by Karl Berry.
55129
55130 2007-06-23  Bruno Haible  <bruno@clisp.org>
55131
55132         * gnulib-tool (echo): Add a speedier workaround for ksh.
55133         * tests/test-echo.sh: Likewise.
55134
55135 2007-06-23  Bruno Haible  <bruno@clisp.org>
55136
55137         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
55138         * tests/test-echo.sh: Likewise.
55139
55140 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55141
55142         * gnulib-tool (IFS): Initialize early, so we don't set it to
55143         empty later.
55144         (self_abspathname): Rewrite algorithm to set it, reindent.
55145         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
55146         (func_create_megatestdir): Merge some sed scripts.
55147
55148 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55149
55150         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
55151         exposed by Sun Studio 11 cc on Solaris 8.
55152
55153 2007-06-22  Bruno Haible  <bruno@clisp.org>
55154
55155         * gnulib-tool (echo): Ensure the echo primitive does not interpret
55156         backslashes.
55157         * tests/test-echo.sh: New file.
55158
55159 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55160
55161         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
55162         simplify `sed_replace_build_aux' scripts, they are portable but
55163         echoing them with `echo' is not.
55164         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
55165
55166 2007-06-21  Karl Berry  <karl@gnu.org>
55167
55168         * config/srclist.txt: guess we can't handle the licenses via
55169         srclist at the moment.
55170
55171 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
55172
55173         * MODULES.html.sh: Add include_next.
55174         * modules/include_next: New file.
55175
55176 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
55177
55178         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
55179         INCLUDE_NEXT.
55180         (gl_CHECK_NEXT_HEADERS): New macro.
55181         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
55182         the obsolescent gl_ABSOLUTE_HEADER.
55183         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
55184         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
55185         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
55186         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55187         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
55188         * m4/math_h.m4 (gl_MATH_H): Likewise.
55189         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55190         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55191         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
55192         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55193         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
55194         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
55195         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
55196         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55197         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55198         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
55199         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
55200         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
55201         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
55202         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
55203         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
55204         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55205         * m4/inttypes.m4 (gl_INTTYPES_H): Define
55206         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
55207         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
55208         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
55209         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
55210         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
55211         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
55212         * lib/float_.h: Likewise.
55213         * lib/inttypes_.h: Likewise.
55214         * lib/math_.h: Likewise.
55215         * lib/search_.h: Likewise.
55216         * lib/signal_.h: Likewise.
55217         * lib/stdint_.h: Likewise.
55218         * lib/stdio_.h: Likewise.
55219         * lib/stdlib_.h: Likewise.
55220         * lib/string_.h: Likewise.
55221         * lib/sys_stat_.h: Likewise.
55222         * lib/sys_time_.h: Likewise.
55223         * lib/time_.h: Likewise.
55224         * lib/unistd_.h: Likewise.
55225         * lib/wchar_.h: Likewise.
55226         * lib/wctype_.h: Likewise.
55227         * lib/dirent_.h: Likewise.
55228         * lib/iconv_.h: Likewise.
55229         * lib/locale_.h: Likewise.
55230         * lib/netinet_in_.h: Likewise.
55231         * lib/sys_select_.h: Likewise.
55232         * lib/sys_socket_.h: Likewise.
55233         * lib/sysexits_.h: Likewise.
55234         * modules/fcntl (Depends-on): Depend on include_next, not
55235         absolute_header.
55236         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
55237         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
55238         * modules/fchdir: Likewise.
55239         * modules/float: Likewise.
55240         * modules/iconv_open: Likewise.
55241         * modules/inttypes: Likewise.
55242         * modules/locale: Likewise.
55243         * modules/math: Likewise.
55244         * modules/netinet_in: Likewise.
55245         * modules/search: Likewise.
55246         * modules/signal: Likewise.
55247         * modules/stdint: Likewise.
55248         * modules/stdio: Likewise.
55249         * modules/stdlib: Likewise.
55250         * modules/string: Likewise.
55251         * modules/sys_select: Likewise.
55252         * modules/sys_socket: Likewise.
55253         * modules/sys_stat: Likewise.
55254         * modules/sys_time: Likewise.
55255         * modules/sysexits: Likewise.
55256         * modules/time: Likewise.
55257         * modules/unistd: Likewise.
55258         * modules/wchar: Likewise.
55259         * modules/wctype: Likewise.
55260         * modules/sys_stat: Change maintainer to "all".
55261         * modules/unistd: Likewise.
55262
55263 2007-06-20  Karl Berry  <karl@gnu.org>
55264
55265         * config/srclist.txt: track www changes in license files.
55266
55267 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
55268
55269         * build-aux/bootstrap: Remove stray dot.
55270         Make sure build_aux settings are honored when linking
55271         gnulib_extra_files.
55272
55273 2007-06-19  Eric Blake  <ebb9@byu.net>
55274
55275         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55276         Allow compilation on cygwin.
55277
55278 2007-06-19  Jim Meyering  <jim@meyering.net>
55279
55280         xreadlink-with-size: Remove module.  No longer used.
55281         Ex-callers now use xreadlink or mreadlink-with-size.
55282         * modules/xreadlink-with-size: Remove module.
55283         * lib/xreadlink-with-size.c: Remove file.
55284         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
55285         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
55286         just before the function definition *is* accurate.
55287
55288         Eliminate one way canonicalize_filename_mode could exit.
55289         * lib/canonicalize.c (canonicalize_filename_mode):
55290         Use mreadlink_with_size, not xreadlink_with_size.
55291
55292 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
55293
55294         Detect porting problems to FreeBSD/arm, which has time_t wider than
55295         long int.  Original problem reported for GNU diff by Xin Li in
55296         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
55297         * modules/getdate (Depends-on): Add intprops, verify.
55298         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
55299         is an integer type no wider than long int.
55300
55301 2007-06-18  Jim Meyering  <jim@meyering.net>
55302
55303         New module: mreadlink-with-size.
55304         * MODULES.html.sh: Add mreadlink-with-size.
55305         * modules/mreadlink-with-size: New module
55306         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
55307         not xreadlink-with-size.
55308         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
55309
55310 2007-06-16  Bruno Haible  <bruno@clisp.org>
55311
55312         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
55313         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
55314         Reported by Gary V. Vaughan <gary@gnu.org>.
55315
55316 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
55317
55318         Revamp lchown so that it lives in unistd.h where it belongs.
55319         * lib/lchown.h: Remove.
55320         * lib/dirchownmod.c: Don't include lib/lchown.h.
55321         * lib/fchownat.c: Likewise.
55322         * lib/openat.c: Likewise.
55323         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
55324         does not follow symlinks.
55325         (EOPNOTSUPP): Define if not defined.
55326         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
55327         is defined to 0.
55328         (lchown): New decl.
55329         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
55330         Do not check for lchown decl.
55331         Set REPLACE_LCHOWN.
55332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
55333         REPLACE_LCHOWN.
55334         * modules/chown: Make it clear it follows symlinks.
55335         * modules/lchown: Make it clear it doesn't follow symlinks.
55336         (Files): Remove lib/lchown.h
55337         (Depends-on): Add unistd.
55338         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
55339         (Include): Include <unistd.h>, not "lchown.h".
55340         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
55341         REPLACE_LCHOWN.
55342
55343 2007-06-15  Jim Meyering  <jim@meyering.net>
55344
55345         Change license (GPL to LGPL) of fsusage and dependents.
55346         * modules/fsusage (License): Change to LGPL.
55347         * modules/full-read (License): Likewise.
55348         * modules/full-write (License): Likewise.
55349         * modules/safe-read (License): Likewise.
55350         * modules/safe-write (License): Likewise.
55351
55352 2007-06-14  Ben Pfaff  <blp@gnu.org>
55353
55354         Missing part of allocsa -> malloca transition.
55355         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
55356         gl_MALLOCA.
55357
55358 2007-06-12  Bruno Haible  <bruno@clisp.org>
55359
55360         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
55361         to ia64, x86_64, i386.
55362         Reported by Eric Blake.
55363
55364 2007-06-12  Bruno Haible  <bruno@clisp.org>
55365
55366         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
55367         cross-compiling to x86_64.
55368
55369 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
55370
55371         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
55372         glitch reported by Ralf Wildenhues in
55373         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
55374
55375         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
55376         Vin Shelton.
55377
55378 2007-06-11  Bruno Haible  <bruno@clisp.org>
55379
55380         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
55381         replacement string.
55382         Reported by Eric Blake.
55383
55384 2007-06-10  Bruno Haible  <bruno@clisp.org>
55385
55386         Prepare vasnprintf code for use with Unicode strings.
55387         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
55388         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
55389         TYPE_U32_STRING.
55390         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
55391         a_u32_string variants.
55392         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55393         * lib/printf-args.c: Don't include config.h and the specification
55394         header if PRINTF_FETCHARGS is already defined.
55395         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55396         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
55397         TYPE_U16_STRING, TYPE_U32_STRING.
55398         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
55399         u16_directive, u16_directives, u32_directive, u32_directives): New
55400         types.
55401         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
55402         New declarations.
55403         * lib/printf-parse.c: Don't include config.h and the specification
55404         header if PRINTF_PARSE is already defined. Eliminate the set of
55405         parameters for WIDE_CHAR_VERSION; the user of this file must provide
55406         them now. Include c-ctype.h.
55407         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
55408         directive and CHAR_T_ONLY_ASCII.
55409         * lib/vasnprintf.c: Don't include config.h and the specification header
55410         if VASNPRINTF is already defined.
55411         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
55412         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
55413         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
55414         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
55415         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
55416         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
55417         code accordingly.
55418         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
55419         pad_ourselves also in this case, with the 'c' and 's' directives, and
55420         with a different notion of "width".
55421         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
55422
55423 2007-06-10  Bruno Haible  <bruno@clisp.org>
55424
55425         * modules/unistr/u32-mbsnlen: New file.
55426         * lib/unistr/u32-mbsnlen.c: New file.
55427
55428         * modules/unistr/u16-mbsnlen: New file.
55429         * lib/unistr/u16-mbsnlen.c: New file.
55430
55431         * modules/unistr/u8-mbsnlen: New file.
55432         * lib/unistr/u8-mbsnlen.c: New file.
55433
55434         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
55435         declarations.
55436
55437 2007-06-10  Bruno Haible  <bruno@clisp.org>
55438
55439         * lib/string_.h (mbsnlen): New declaration.
55440         * lib/mbsnlen.c: New file.
55441         * m4/mbsnlen.m4: New file.
55442         * modules/mbsnlen: New file.
55443         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
55444         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
55445         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
55446
55447 2007-06-10  Bruno Haible  <bruno@clisp.org>
55448
55449         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
55450
55451 2007-06-10  Bruno Haible  <bruno@clisp.org>
55452
55453         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
55454         * lib/mbuiter.h: Likewise.
55455
55456 2007-06-10  Bruno Haible  <bruno@clisp.org>
55457
55458         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
55459         declaration.
55460
55461 2007-06-10  Karl Berry  <karl@gnu.org>
55462
55463         * config/srclist.txt: remove gettext entries, Bruno prefers
55464         to update individually.
55465
55466 2007-06-10  Bruno Haible  <bruno@clisp.org>
55467
55468         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
55469         'maxlen'. Ensure only length + width bytes are allocated, not
55470         length + 1 + width.
55471
55472 2007-06-09  Bruno Haible  <bruno@clisp.org>
55473
55474         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
55475         (CHAR_T): Remove macro.
55476         (VASNPRINTF): Update.
55477
55478 2007-06-09  Bruno Haible  <bruno@clisp.org>
55479
55480         * MODULES.html.sh (Unicode string functions): Add the new modules.
55481
55482         * modules/uniconv/u32-conv-to-enc: New file.
55483         * lib/uniconv/u32-conv-to-enc.c: New file.
55484         * modules/uniconv/u32-conv-to-enc-tests: New file.
55485         * tests/uniconv/test-u32-conv-to-enc.c: New file.
55486
55487         * modules/uniconv/u16-conv-to-enc: New file.
55488         * lib/uniconv/u16-conv-to-enc.c: New file.
55489         * lib/uniconv/u-conv-to-enc.h: New file.
55490         * modules/uniconv/u16-conv-to-enc-tests: New file.
55491         * tests/uniconv/test-u16-conv-to-enc.c: New file.
55492
55493         * modules/uniconv/u8-conv-to-enc: New file.
55494         * lib/uniconv/u8-conv-to-enc.c: New file.
55495         * modules/uniconv/u8-conv-to-enc-tests: New file.
55496         * tests/uniconv/test-u8-conv-to-enc.c: New file.
55497
55498         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
55499         u32_conv_to_encoding): New declarations.
55500
55501 2007-06-09  Bruno Haible  <bruno@clisp.org>
55502
55503         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
55504
55505 2007-06-09  Bruno Haible  <bruno@clisp.org>
55506
55507         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
55508         * modules/malloca: Renamed from modules/allocsa, updated.
55509         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
55510         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
55511         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
55512         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
55513         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
55514         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
55515         * modules/xmalloca: Renamed from modules/xallocsa, updated.
55516         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
55517         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
55518         * modules/c-strcasestr (Depends-on): Update.
55519         * lib/c-strcasestr.c: Update.
55520         * modules/c-strstr (Depends-on): Update.
55521         * lib/c-strstr.c: Update.
55522         * modules/canonicalize-lgpl (Depends-on): Update.
55523         * lib/canonicalize-lgpl.c: Update.
55524         * modules/clean-temp (Depends-on): Update.
55525         * lib/clean-temp.c: Update.
55526         * modules/csharpcomp (Depends-on): Update.
55527         * lib/csharpcomp.c: Update.
55528         * modules/csharpexec (Depends-on): Update.
55529         * lib/csharpexec.c: Update.
55530         * modules/javacomp (Depends-on): Update.
55531         * lib/javacomp.c: Update.
55532         * modules/javaexec (Depends-on): Update.
55533         * lib/javaexec.c: Update.
55534         * modules/mbscasestr (Depends-on): Update.
55535         * lib/mbscasestr.c: Update.
55536         * modules/mbsstr (Depends-on): Update.
55537         * lib/mbsstr.c: Update.
55538         * modules/setenv (Depends-on): Update.
55539         * lib/setenv.c: Update.
55540         * modules/strcasestr (Depends-on): Update.
55541         * lib/strcasestr.c: Update.
55542         * modules/striconveha (Depends-on): Update.
55543         * lib/striconveha.c: Update.
55544         * modules/relocatable-prog-wrapper (Files): Update.
55545         * lib/relocwrapper.c: Update.
55546         * build-aux/install-reloc: Update.
55547         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
55548
55549 2007-06-08  Bruno Haible  <bruno@clisp.org>
55550
55551         Port to uClibc.
55552         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
55553         * lib/fpurge.c (fpurge): Likewise.
55554         * lib/freading.c (freading): Likewise.
55555         * lib/fseeko.c (rpl_fseeko): Likewise.
55556         * lib/fseterr.c (fseterr): Likewise.
55557         * lib/fwriting.c (fwriting): Likewise.
55558         * tests/test-fflush.c (main): Avoid a failure on uClibc.
55559
55560 2007-06-08  Bruno Haible  <bruno@clisp.org>
55561
55562         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
55563         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
55564         * modules/gettext (Files): Add m4/intlmacosx.m4.
55565
55566 2007-06-07  Bruno Haible  <bruno@clisp.org>
55567
55568         * modules/localename-tests: New file.
55569         * tests/test-localename.c: New file.
55570
55571         New module 'localename'.
55572         * lib/localename.h: New file.
55573         * lib/localename.c: New file, from GNU gettext.
55574         * m4/localename.m4: New file.
55575         * modules/localename: New file.
55576
55577 2007-06-07  Bruno Haible  <bruno@clisp.org>
55578
55579         Work around the lack of <wchar.h> on some builds of uClibc.
55580         * doc/headers/wchar.texi: Update.
55581         * lib/wchar_.h: Include <wchar.h> only if it exists.
55582         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
55583         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
55584         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
55585         doesn't exist.
55586         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
55587         * modules/mbfile (Depends-on): Add wchar.
55588         * modules/mbiter (Depends-on): Likewise.
55589         * modules/mbuiter (Depends-on): Likewise.
55590         Reported by Simon Josefsson.
55591
55592 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55593
55594         Work around problem reported by Steven M. Schweda in
55595         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
55596         Tru64 5.1B with the Compaq compiler environment installed declares
55597         an 'isblank' function but does not define it in the C library.
55598         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
55599         * lib/regex_internal.h (isblank): Likewise.
55600         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
55601         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55602
55603 2007-06-05  Bruno Haible  <bruno@clisp.org>
55604
55605         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
55606         ia64.
55607         * modules/printf-safe: New file.
55608         * modules/fprintf-posix (Depends-on): Add printf-safe.
55609         * modules/printf-posix (Depends-on): Likewise.
55610         * modules/snprintf-posix (Depends-on): Likewise.
55611         * modules/sprintf-posix (Depends-on): Likewise.
55612         * modules/vasnprintf-posix (Depends-on): Likewise.
55613         * modules/vasprintf-posix (Depends-on): Likewise.
55614         * modules/vfprintf-posix (Depends-on): Likewise.
55615         * modules/vprintf-posix (Depends-on): Likewise.
55616         * modules/vsnprintf-posix (Depends-on): Likewise.
55617         * modules/vsprintf-posix (Depends-on): Likewise.
55618         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
55619         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
55620         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
55621         "no" on i386, x86_64, ia64.
55622         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
55623         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55624         on i386, x86_64, ia64.
55625         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
55626         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55627         on i386, x86_64, ia64.
55628         * tests/test-vasnprintf-posix.c: Include float.h.
55629         (LDBL80_WORDS): New macro.
55630         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55631         on i386, x86_64, ia64.
55632         * tests/test-vasprintf-posix.c: Include float.h.
55633         (LDBL80_WORDS): New macro.
55634         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55635         on i386, x86_64, ia64.
55636         * tests/test-snprintf-posix.c: Include float.h.
55637         * tests/test-sprintf-posix.c: Likewise.
55638         * tests/test-vsnprintf-posix.c: Likewise.
55639         * tests/test-vsprintf-posix.c: Likewise.
55640
55641 2007-06-05  Bruno Haible  <bruno@clisp.org>
55642
55643         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
55644         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
55645         non-IEEE numbers on i386, x86_64, ia64.
55646         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
55647         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
55648         * tests/test-isnanl.h: Include float.h.
55649         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
55650
55651 2007-06-05  Bruno Haible  <bruno@clisp.org>
55652
55653         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
55654         also the %a / %A. Handle the %a / %A code before this extra handling.
55655
55656 2007-06-05  Bruno Haible  <bruno@clisp.org>
55657
55658         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
55659         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
55660
55661 2007-06-05  Bruno Haible  <bruno@clisp.org>
55662
55663         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
55664         typo in variable name.
55665
55666 2007-06-05  Eric Blake  <ebb9@byu.net>
55667
55668         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
55669         Reported by Simon Josefsson.
55670
55671 2007-06-04  Bruno Haible  <bruno@clisp.org>
55672
55673         Avoid test failures on some PowerPC platforms.
55674         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
55675         Define differently for PowerPC.
55676         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
55677         Reported by Gary V. Vaughan <gary@gnu.org>.
55678
55679 2007-06-02  Bruno Haible  <bruno@clisp.org>
55680
55681         Fix test-stdint failure on FreeBSD/ia64.
55682         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
55683         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
55684         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
55685         * doc/headers/stdint.texi: Update.
55686
55687 2007-06-01  Bruno Haible  <bruno@clisp.org>
55688
55689         * tests/test-binary-io.c (main): Pass a third argument to open().
55690         Reported by Gary V. Vaughan <gary@gnu.org>.
55691
55692 2007-06-01  Bruno Haible  <bruno@clisp.org>
55693
55694         * doc/functions/frexpl.texi: Update for mingw.
55695
55696 2007-06-01  Bruno Haible  <bruno@clisp.org>
55697
55698         * tests/test-lseek.c (main): Disable test of errno for invalid third
55699         argument.
55700         * doc/functions/lseek.texi: Update.
55701         Reported by Gary V. Vaughan <gary@gnu.org>.
55702
55703 2007-05-28  Bruno Haible  <bruno@clisp.org>
55704
55705         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
55706
55707 2007-05-31  Eric Blake  <ebb9@byu.net>
55708
55709         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
55710         cross compiling.
55711
55712 2007-05-30  Eric Blake  <ebb9@byu.net>
55713         and Bruno Haible  <bruno@clisp.org>
55714
55715         Work around mingw test failures exposed by m4-1.4.9b.
55716         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
55717         * tests/test-unistd.c: Disable uid_t and git_t tests for the
55718         moment.
55719
55720 2007-05-30  Bruno Haible  <bruno@clisp.org>
55721
55722         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
55723         assuming that they are closed. Needed on HP-UX 11.
55724
55725 2007-05-29  Bruno Haible  <bruno@clisp.org>
55726
55727         Fix a problem with #include_next.
55728         * lib/dirent_.h: Split the double-inclusion guard.
55729         * lib/fcntl_.h: Likewise.
55730         * lib/float_.h: Likewise.
55731         * lib/iconv_.h: Likewise.
55732         * lib/inttypes_.h: Likewise.
55733         * lib/locale_.h: Likewise.
55734         * lib/math_.h: Likewise.
55735         * lib/netinet_in_.h: Likewise.
55736         * lib/search_.h: Likewise.
55737         * lib/signal_.h: Likewise.
55738         * lib/stdint_.h: Likewise.
55739         * lib/stdio_.h: Likewise.
55740         * lib/stdlib_.h: Likewise.
55741         * lib/string_.h: Likewise.
55742         * lib/sys_select_.h: Likewise.
55743         * lib/sys_socket_.h: Likewise.
55744         * lib/sys_stat_.h: Likewise.
55745         * lib/sys_time_.h: Likewise.
55746         * lib/sysexits_.h: Likewise.
55747         * lib/time_.h: Likewise.
55748         * lib/unistd_.h: Likewise.
55749         * lib/wchar_.h: Likewise.
55750         * lib/wctype_.h: Likewise.
55751
55752 2007-05-29  Bruno Haible  <bruno@clisp.org>
55753
55754         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
55755         for the moment.
55756
55757 2007-05-29  Bruno Haible  <bruno@clisp.org>
55758
55759         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
55760         invocation.
55761         Reported by Eric Blake.
55762
55763 2007-05-29  Bruno Haible  <bruno@clisp.org>
55764
55765         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
55766         compiling case.
55767
55768 2007-05-29  Eric Blake  <ebb9@byu.net>
55769             Bruno Haible  <bruno@clisp.org>
55770
55771         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
55772         cross compiles.
55773
55774 2007-05-28  Eric Blake  <ebb9@byu.net>
55775
55776         * modules/closein-tests (test_closein_LDADD): Support test on
55777         cygwin with libtool.
55778
55779 2007-05-28  Bruno Haible  <bruno@clisp.org>
55780
55781         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
55782         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55783         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55784         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55785         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55786         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55787         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55788         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55789         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55790
55791 2007-05-28  Eric Blake  <ebb9@byu.net>
55792
55793         Unconditionally include <config.h> in unit tests.
55794         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
55795         * tests/test-allocsa.c, tests/test-arcfour.c,
55796         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
55797         tests/test-array_list.c, tests/test-array_oset.c,
55798         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
55799         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
55800         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
55801         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
55802         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
55803         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
55804         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
55805         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
55806         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
55807         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
55808         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
55809         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
55810         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
55811         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
55812         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
55813         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
55814         test-md5.c, test-memmem.c, test-printf-posix.c,
55815         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
55816         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
55817         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
55818         test-strcasestr.c, test-striconv.c, test-striconveh.c,
55819         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
55820         test-vasnprintf-posix2.c, test-vasnprintf.c,
55821         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
55822         test-vfprintf-posix.c, test-vprintf-posix.c,
55823         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
55824         test-xvasprintf.c: Likewise.
55825
55826 2007-05-28  Bruno Haible  <bruno@clisp.org>
55827
55828         * gnulib-tool (func_import): Remember the --with-tests command-line
55829         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
55830         Reported by Eric Blake.
55831
55832 2007-05-28  Bruno Haible  <bruno@clisp.org>
55833
55834         * modules/ftell-tests: New file.
55835         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
55836         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
55837
55838         * lib/ftell.c: New file.
55839         * modules/ftell: New file.
55840         * m4/ftell.m4: New file.
55841         * doc/functions/ftell.texi: Update.
55842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
55843         REPLACE_FTELL.
55844         * lib/stdio_.h (rpl_ftell): New declaration.
55845         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
55846         REPLACE_FTELL.
55847
55848 2007-05-28  Eric Blake  <ebb9@byu.net>
55849
55850         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
55851
55852 2007-05-28  Bruno Haible  <bruno@clisp.org>
55853
55854         * modules/fseek-tests: New file.
55855         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
55856         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
55857
55858         * lib/fseek.c: New file.
55859         * modules/fseek: New file.
55860         * m4/fseek.m4: New file.
55861         * doc/functions/fseek.texi: Update.
55862         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
55863         REPLACE_FSEEK.
55864         * lib/stdio_.h (rpl_fseek): New declaration.
55865         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
55866         REPLACE_FSEEK.
55867
55868 2007-05-28  Bruno Haible  <bruno@clisp.org>
55869
55870         * lib/stdio_.h (fflush): More comments.
55871
55872 2007-05-28  Bruno Haible  <bruno@clisp.org>
55873
55874         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
55875         runtime test.
55876
55877 2007-05-28  Eric Blake  <ebb9@byu.net>
55878
55879         Improve lseek module.
55880         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
55881         * lib/unistd_.h (lseek): Scale back link warning message.
55882         * tests/test-lseek.c: Beef up test.
55883         * tests/test-lseek.sh: Exercise more facets of lseek.
55884         Reported by Bruno Haible.
55885
55886 2007-05-28  Bruno Haible  <bruno@clisp.org>
55887
55888         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
55889         to define.
55890
55891 2007-05-27  Bruno Haible  <bruno@clisp.org>
55892
55893         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
55894
55895 2007-05-27  Bruno Haible  <bruno@clisp.org>
55896
55897         * modules/openmp: New file.
55898         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
55899         Noah Misch.
55900
55901 2007-05-26  Bruno Haible  <bruno@clisp.org>
55902
55903         * modules/chdir-long (Depends-on): Add fchdir.
55904         * modules/chdir-safer (Depends-on): Likewise.
55905         * modules/fts (Depends-on): Likewise.
55906         * modules/fts-lgpl (Depends-on): Likewise.
55907         * modules/openat (Depends-on): Likewise.
55908         * modules/savewd (Depends-on): Likewise.
55909
55910 2007-05-24  Eric Blake  <ebb9@byu.net>
55911
55912         Fix lseek on mingw.
55913         * modules/lseek: New module.
55914         * m4/lseek.m4: New file.
55915         * lib/lseek.c: New file.
55916         * modules/lseek-tests: New file.
55917         * tests/test-lseek.c: New file.
55918         * tests/test-lseek.sh: New file.
55919         * MODULES.html.sh: Document lseek module.
55920         * modules/fflush (Depends-on): Add lseek, fseeko.
55921         * modules/fseeko (Depends-on): Likewise.
55922         * modules/ftello (Depends-on): Likewise.
55923         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55924         broken.
55925         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55926         broken.
55927         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55928         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55929         * lib/ftello.c (rpl_ftello): Likewise.
55930         * tests/test-fseeko.c (main): Test this.
55931         * tests/test-fseeko.sh: Likewise.
55932         * tests/test-ftello.c (main): Likewise.
55933         * tests/test-ftello.sh: Likewise.
55934         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55935         implies replacing fseek.
55936         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55937         HAVE_FTELLO.
55938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55939         * modules/unistd (Makefile.am): Likewise.
55940         * lib/unistd_.h (lseek): Declare a replacement.
55941         * doc/functions/lseek.texi (lseek): Document this fix.
55942         * doc/functions/fseek.texi (fseek): Likewise.
55943         * doc/functions/ftell.texi (ftell): Likewise.
55944
55945 2007-05-24  Bruno Haible  <bruno@clisp.org>
55946
55947         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55948         in the printed representation of a NaN.
55949         * tests/test-vasprintf-posix.c (test_function): Likewise.
55950         * tests/test-snprintf-posix.h (test_function): Likewise.
55951         * tests/test-sprintf-posix.h (test_function): Likewise.
55952         Reported by Eric Blake.
55953
55954 2007-05-23  Eric Blake  <ebb9@byu.net>
55955
55956         Fix fseeko/ftello on cygwin 1.5.24.
55957         * doc/functions/fseeko.texi (fseeko): Document the fix.
55958         * doc/functions/ftello.texi (ftello): Document the fix.
55959         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55960         * doc/functions/stdout.text (stdout): New file.
55961         * doc/functions/stderr.text (stderr): New file.
55962         * doc/gnulib.texi (Function Substitutes): Use new files.
55963         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55964         prior to 1.7.0.
55965         * tests/test-ftello.c (main): Likewise for ftello.
55966         * tests/test-fseeko.sh: New file.
55967         * tests/test-ftello.sh: New file.
55968         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55969         with seekable stdin.
55970         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55971         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55972         (gl_REPLACE_FSEEKO): New macro.
55973         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55974         * modules/fseeko (Files): Distribute fseeko.c.
55975         * modules/ftello (Files): Distribute ftello.c.
55976         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55977         mode.
55978         * lib/ftello.c (rpl_ftello): New file.
55979         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55980         fseeko, ftello.
55981         (gl_STDIN_LARGE_OFFSET): New macro.
55982         * modules/stdio (Makefile.am): Perform the replacement.
55983         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55984
55985 2007-05-23  Bruno Haible  <bruno@clisp.org>
55986
55987         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55988         GNULIB_POSIXCHECK is defined.
55989
55990 2007-05-21  Bruno Haible  <bruno@clisp.org>
55991
55992         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55993         Check also the output for NaN arguments. When cross-compiling, guess
55994         no on IRIX.
55995         * lib/vasnprintf.c: Update comments.
55996         * tests/test-vasnprintf-posix.c (strisnan): New function.
55997         (test_function): Use it.
55998         * tests/test-vasprintf-posix.c (strisnan): New function.
55999         (test_function): Use it.
56000         * tests/test-snprintf-posix.h (strisnan): New function.
56001         (test_function): Use it.
56002         * tests/test-sprintf-posix.h (strisnan): New function.
56003         (test_function): Use it.
56004         Reported by Eric Blake.
56005
56006 2007-05-20  Bruno Haible  <bruno@clisp.org>
56007
56008         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
56009         numbers that fails on BeOS.
56010         * doc/functions/frexpl.texi: Update.
56011
56012 2007-05-20  Jim Meyering  <jim@meyering.net>
56013
56014         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
56015         forced upon us by glibc-2.6.
56016
56017 2007-05-20  Bruno Haible  <bruno@clisp.org>
56018
56019         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
56020         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
56021         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
56022         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
56023         NEED_PRINTF_INFINITE.
56024         (is_infinitel): New function.
56025         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
56026         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
56027         gl_PREREQ_VASNPRINTF_INFINITE.
56028         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
56029         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56030         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
56031         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
56032         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
56033         gl_PREREQ_VASNPRINTF_INFINITE.
56034         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56035         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56036         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56037         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56038         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56039         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56040         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56041         * doc/functions/fprintf.texi: Update.
56042         * doc/functions/printf.texi: Update.
56043         * doc/functions/snprintf.texi: Update.
56044         * doc/functions/sprintf.texi: Update.
56045         * doc/functions/vfprintf.texi: Update.
56046         * doc/functions/vprintf.texi: Update.
56047         * doc/functions/vsnprintf.texi: Update.
56048         * doc/functions/vsprintf.texi: Update.
56049
56050 2007-05-20  Bruno Haible  <bruno@clisp.org>
56051
56052         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
56053         was not found in libc.
56054         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
56055
56056 2007-05-20  Bruno Haible  <bruno@clisp.org>
56057
56058         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56059         printed as "-nan" instead of "nan".
56060         * tests/test-vasprintf-posix.c (test_function): Likewise.
56061         * tests/test-snprintf-posix.h (test_function): Likewise.
56062         * tests/test-sprintf-posix.h (test_function): Likewise.
56063         Needed for HP-UX 11.
56064
56065 2007-05-20  Jim Meyering  <jim@meyering.net>
56066
56067         Fix buggy test for the fchownat-deref bug.
56068         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
56069         symlink required for the run-test.  Without it, this test would
56070         always declare that fchownat doesn't work, and client code would
56071         unnecessarily use the replacement function with fixed libc.
56072         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
56073         Reported by Greg Schafer.
56074
56075 2007-05-19  Bruno Haible  <bruno@clisp.org>
56076
56077         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
56078         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
56079         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
56080         Needed for IRIX 6.5 and Solaris 2.5.1.
56081
56082 2007-05-19  Bruno Haible  <bruno@clisp.org>
56083
56084         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
56085         (test_function): Skip tests involving -0.0 on platforms where
56086         -0.0 = 0.0.
56087         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
56088         (test_function): Skip tests involving -0.0 on platforms where
56089         -0.0 = 0.0.
56090         * tests/test-snprintf-posix.h (have_minus_zero): New function.
56091         (test_function): Skip tests involving -0.0 on platforms where
56092         -0.0 = 0.0.
56093         * tests/test-sprintf-posix.h (have_minus_zero): New function.
56094         (test_function): Skip tests involving -0.0 on platforms where
56095         -0.0 = 0.0.
56096         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
56097         tests.
56098         * tests/test-printf-posix.h (test_function): Likewise.
56099         * tests/test-printf-posix.output: Remove all -0.0 related results.
56100         Needed for IRIX 6.5.
56101
56102 2007-05-19  Bruno Haible  <bruno@clisp.org>
56103
56104         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56105         printed as "nan0x7fffffff" instead of "nan".
56106         * tests/test-vasprintf-posix.c (test_function): Likewise.
56107         * tests/test-snprintf-posix.h (test_function): Likewise.
56108         * tests/test-sprintf-posix.h (test_function): Likewise.
56109         * tests/test-fprintf-posix.h (NaN): Remove macro.
56110         (test_function): Remove all NaN related tests.
56111         * tests/test-printf-posix.h (NaN): Remove macro.
56112         (test_function): Remove all NaN related tests.
56113         * tests/test-printf-posix.output: Remove all NaN related results.
56114         Needed for IRIX 6.5.
56115
56116 2007-05-19  Bruno Haible  <bruno@clisp.org>
56117
56118         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
56119         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
56120
56121 2007-05-19  Bruno Haible  <bruno@clisp.org>
56122
56123         * lib/float_.h: New file.
56124         * m4/float_h.m4: New file.
56125         * modules/float: New file.
56126         * modules/isnanl (Dependencies): Add float.
56127         * modules/isnanl-nolibm (Dependencies): Likewise.
56128         * modules/mathl (Dependencies): Likewise.
56129         * modules/printf-frexpl (Dependencies): Likewise.
56130         * modules/signbit (Dependencies): Likewise.
56131         * modules/vasnprintf (Dependencies): Likewise.
56132         * doc/headers/float.texi: Update.
56133
56134 2007-05-19  Jim Meyering  <jim@meyering.net>
56135
56136         * lib/utimens.c (gl_futimens): Rename from futimens,
56137         now that glibc-2.6 declares futimens.
56138         * lib/utimens.h: Likewise.
56139
56140 2007-05-19  Bruno Haible  <bruno@clisp.org>
56141
56142         Avoid test failures on mingw.
56143         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
56144         * tests/test-printf-posix.sh: Likewise.
56145         * tests/test-vfprintf-posix.sh: Likewise.
56146         * tests/test-vprintf-posix.sh: Likewise.
56147
56148 2007-05-19  Bruno Haible  <bruno@clisp.org>
56149
56150         Fix *printf result for NaN, Inf, -0.0 on mingw.
56151         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
56152         * lib/vasnprintf.c: Include math.h and isnan.h.
56153         (is_infinite_or_zero): New function.
56154         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
56155         values in the %f, %F, %e, %E, %g, %G directives.
56156         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
56157         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56158         gl_PRINTF_INFINITE and test its result. Invoke
56159         gl_PREREQ_VASNPRINTF_INFINITE.
56160         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56161         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56162         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56163         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56164         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56165         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56166         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56167         * doc/functions/fprintf.texi: Update.
56168         * doc/functions/printf.texi: Update.
56169         * doc/functions/snprintf.texi: Update.
56170         * doc/functions/sprintf.texi: Update.
56171         * doc/functions/vfprintf.texi: Update.
56172         * doc/functions/vprintf.texi: Update.
56173         * doc/functions/vsnprintf.texi: Update.
56174         * doc/functions/vsprintf.texi: Update.
56175
56176 2007-05-19  Bruno Haible  <bruno@clisp.org>
56177
56178         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
56179         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
56180         Instead of multiplying with 10^k, set extra_zeroes to k.
56181         (scale10_round_long_double): Remove function.
56182
56183 2007-05-18  Bruno Haible  <bruno@clisp.org>
56184
56185         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
56186         introduced on 2007-05-06.
56187
56188 2007-05-18  Bruno Haible  <bruno@clisp.org>
56189
56190         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
56191         %g directives.
56192         * tests/test-vasprintf-posix.c (test_function): Likewise.
56193         * tests/test-snprintf-posix.h (test_function): Likewise.
56194         * tests/test-sprintf-posix.h (test_function): Likewise.
56195
56196 2007-05-18  Bruno Haible  <bruno@clisp.org>
56197
56198         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
56199         (strmatch): New function.
56200         (test_function): Test the %f directive on numbers of various exponents.
56201         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
56202         (strmatch): New function.
56203         (test_function): Test the %f directive on numbers of various exponents.
56204         * tests/test-snprintf-posix.h (strmatch): New function.
56205         (test_function): Test the %f directive on numbers of various exponents.
56206         * tests/test-sprintf-posix.h (strmatch): New function.
56207         (test_function): Test the %f directive on numbers of various exponents.
56208         * tests/test-snprintf-posix.c (SIZEOF): New macro.
56209         * tests/test-sprintf-posix.c (SIZEOF): New macro.
56210         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
56211         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
56212
56213 2007-05-18  Bruno Haible  <bruno@clisp.org>
56214
56215         Add support for 'long double' number output.
56216         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
56217         * lib/vasnprintf.c: Include math.h and float+.h.
56218         (mp_limb_t): New type.
56219         (GMP_LIMB_BITS): New macro.
56220         (mp_twolimb_t): New type.
56221         (GMP_TWOLIMB_BITS): New macro.
56222         (mpn_t): New type.
56223         (multiply, divide, convert_to_decimal, decode_long_double,
56224         scale10_round_long_double, scale10_round_decimal_long_double,
56225         floorlog10l): New functions.
56226         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
56227         for the %f, %F, %e, %E, %g, %G directives.
56228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
56229         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56230         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
56231         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
56232         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56233         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56234         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56235         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56236         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56237         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56238         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56239         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
56240         * modules/snprintf-posix (Depends-on): Likewise.
56241         * modules/sprintf-posix (Depends-on): Likewise.
56242         * modules/vasnprintf-posix (Depends-on): Likewise.
56243         * modules/vasprintf-posix (Depends-on): Likewise.
56244         * modules/vfprintf-posix (Depends-on): Likewise.
56245         * modules/vsnprintf-posix (Depends-on): Likewise.
56246         * modules/vsprintf-posix (Depends-on): Likewise.
56247         * modules/vasnprintf (Files): Add lib/float+.h.
56248         * doc/functions/fprintf.texi: Update.
56249         * doc/functions/printf.texi: Update.
56250         * doc/functions/snprintf.texi: Update.
56251         * doc/functions/sprintf.texi: Update.
56252         * doc/functions/vfprintf.texi: Update.
56253         * doc/functions/vprintf.texi: Update.
56254         * doc/functions/vsnprintf.texi: Update.
56255         * doc/functions/vsprintf.texi: Update.
56256
56257 2007-05-18  Bruno Haible  <bruno@clisp.org>
56258
56259         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
56260
56261 2007-05-18  Bruno Haible  <bruno@clisp.org>
56262
56263         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
56264         for printing 64-bit integers. Needed for mingw.
56265
56266 2007-05-18  Bruno Haible  <bruno@clisp.org>
56267
56268         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56269         gl_FUNC_FREXPL_WORKS.
56270         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
56271
56272 2007-05-18  Bruno Haible  <bruno@clisp.org>
56273
56274         * modules/frexpl-nolibm-tests: New file.
56275
56276         * modules/frexpl-nolibm: New file.
56277         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
56278
56279 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56280
56281         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
56282         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56283         GCC 4.2, which otherwise issues a lot of warnings.
56284         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
56285         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
56286         Likewise.
56287         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
56288         * modules/iconv_open (iconv.h): Likewise.
56289         * modules/locale (locale.h): Likewise.
56290         * modules/netinet_in (netinet/in.h): Likewise.
56291         * modules/sys_select (sys_select.h): Likewise.
56292         * modules/sys_socket (sys/socket.h): Likewise.
56293         * modules/sys_stat (sys/stat.h): Likewise.
56294         * modules/sysexits (sysexits.h): Likewise.
56295         * modules/unistd (unistd.h): Likewise.
56296
56297 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56298
56299         * modules/closein-tests (Makefile.am): Distribute
56300         `test-closein.sh'.
56301
56302 2007-05-17  Bruno Haible  <bruno@clisp.org>
56303
56304         * tests/test-printf-posix.output: Renamed from
56305         tests/test-fprintf-posix.out.
56306         * modules/fprintf-posix-tests: Update.
56307         * modules/printf-posix-tests: Update.
56308         * modules/vfprintf-posix-tests: Update.
56309         * modules/vprintf-posix-tests: Update.
56310         * tests/test-fprintf-posix.sh: Update.
56311         * tests/test-printf-posix.sh: Update.
56312         * tests/test-vfprintf-posix.sh: Update.
56313         * tests/test-vprintf-posix.sh: Update.
56314         Reported by Ralf Wildenhues.
56315
56316 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56317
56318         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
56319         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56320         GCC 4.2, which otherwise issues a lot of warnings.
56321         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
56322         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
56323         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
56324         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
56325         it should no longer be needed.
56326         * lib/string_.h: Likewise.
56327         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
56328         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
56329         * modules/inttypes (inttypes.h): Likewise.
56330         * modules/math (math.h): Likewise.
56331         * modules/search (search.h): Likewise.
56332         * modules/signal (signal.h): Likewise.
56333         * modules/stdint (stdint.h): Likewise.
56334         * modules/stdio (stdio.h): Likewise.
56335         * modules/stdlib (stdlib.h): Likewise.
56336         * modules/string (string.h): Likewise.
56337         * modules/sys_time (sys/time.h): Likewise.
56338         * modules/time (time.h): Likewise.
56339         * modules/wchar (wchar.h): Likewise.
56340         * modules/wctype (wtype.h): Likewise.
56341
56342 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56343
56344         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
56345
56346 2007-05-13  Bruno Haible  <bruno@clisp.org>
56347
56348         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
56349         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56350         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
56351         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56352         (gl_PREREQ_STRTOK_R): Don't require it here.
56353
56354 2007-05-13  Bruno Haible  <bruno@clisp.org>
56355
56356         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
56357         when used in C++ mode.
56358
56359 2007-05-12  Bruno Haible  <bruno@clisp.org>
56360
56361         * lib/linebuffer.h: Tweak doc.
56362         * lib/linebuffer.c: Likewise.
56363
56364 2007-05-12  James Youngman  <jay@gnu.org>
56365
56366         * lib/linebuffer.c (readlinebuffer_delim): New function,
56367         like readlinebuffer, but use a caller-specified delimiter.
56368         (readlinebuffer): Just call readlinebuffer_delim with '\n'
56369         as the delimiter.
56370         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
56371
56372 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56373
56374         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
56375         * modules/openat (Files): Remove openat-die.c.
56376         (Depends-on): Add openat-die.
56377         * modules/openat-die: New module.
56378
56379 2007-05-06  Bruno Haible  <bruno@clisp.org>
56380
56381         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
56382         Update with info about Cygwin.
56383         * doc/functions/fprintf.texi: Update.
56384         * doc/functions/printf.texi: Update.
56385         * doc/functions/snprintf.texi: Update.
56386         * doc/functions/sprintf.texi: Update.
56387         * doc/functions/vfprintf.texi: Update.
56388         * doc/functions/vprintf.texi: Update.
56389         * doc/functions/vsnprintf.texi: Update.
56390         * doc/functions/vsprintf.texi: Update.
56391         Reported by Eric Blake.
56392
56393 2007-05-06  Bruno Haible  <bruno@clisp.org>
56394
56395         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
56396         padding ourselves for the floating-point directives.
56397         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
56398         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
56399         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56400         gl_PRINTF_FLAG_ZERO and test its result. Invoke
56401         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
56402         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56403         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56404         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56405         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56406         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56407         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56408         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56409         * tests/test-snprintf-posix.h (test_function): Also check the width
56410         and some flags in the %f directive.
56411         * tests/test-sprintf-posix.h (test_function): Likewise.
56412         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56413         * tests/test-vasprintf-posix.c (test_function): Likewise.
56414         * doc/functions/fprintf.texi: Update.
56415         * doc/functions/printf.texi: Update.
56416         * doc/functions/snprintf.texi: Update.
56417         * doc/functions/sprintf.texi: Update.
56418         * doc/functions/vfprintf.texi: Update.
56419         * doc/functions/vprintf.texi: Update.
56420         * doc/functions/vsnprintf.texi: Update.
56421         * doc/functions/vsprintf.texi: Update.
56422
56423 2007-05-06  Bruno Haible  <bruno@clisp.org>
56424
56425         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
56426         pass the ' flag character to sprintf or snprintf.
56427         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
56428         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
56429         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56430         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
56431         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
56432         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56433         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56434         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56435         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56436         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56437         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56438         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56439         * tests/test-snprintf-posix.h (test_function): Also check the grouping
56440         flag.
56441         * tests/test-sprintf-posix.h (test_function): Likewise.
56442         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56443         * tests/test-vasprintf-posix.c (test_function): Likewise.
56444         * doc/functions/fprintf.texi: Update.
56445         * doc/functions/printf.texi: Update.
56446         * doc/functions/snprintf.texi: Update.
56447         * doc/functions/sprintf.texi: Update.
56448         * doc/functions/vfprintf.texi: Update.
56449         * doc/functions/vprintf.texi: Update.
56450         * doc/functions/vsnprintf.texi: Update.
56451         * doc/functions/vsprintf.texi: Update.
56452
56453 2007-05-01  Bruno Haible  <bruno@clisp.org>
56454
56455         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
56456
56457 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
56458
56459         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
56460         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
56461
56462 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56463
56464         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
56465         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
56466         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
56467
56468 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
56469
56470         * lib/argp-help.c (struct hol_entry): New member `ord'.
56471         (HOL_ENTRY_PTRCMP): Use ord for comparison
56472         (hol_sort): Initialize ord.
56473
56474 2007-05-01  Bruno Haible  <bruno@clisp.org>
56475
56476         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
56477         Reported by Eric Blake.
56478         * doc/gnulib.texi (Function Substitutes): Update.
56479
56480 2007-05-01  Bruno Haible  <bruno@clisp.org>
56481
56482         * doc/functions.texi: Remove file, now redundant through
56483         doc/functions/*.texi.
56484
56485 2007-05-01  Bruno Haible  <bruno@clisp.org>
56486
56487         * modules/argp (Depends-on): Add sleep.
56488
56489 2007-05-01  Bruno Haible  <bruno@clisp.org>
56490
56491         * modules/sleep-tests: New file.
56492         * tests/test-sleep.c: New file.
56493
56494         * modules/sleep: New file.
56495         * lib/sleep.c: New file.
56496         * m4/sleep.m4: New file.
56497         * lib/unistd_.h (sleep): New declaration.
56498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
56499         HAVE_SLEEP.
56500         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
56501         * doc/functions/sleep.texi: Document the sleep module.
56502
56503 2007-05-01  Bruno Haible  <bruno@clisp.org>
56504
56505         * lib/sigprocmask.h: Remove file.
56506         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
56507         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
56508         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
56509         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
56510         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
56511         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
56512         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
56513         HAVE_SIGSET_T as a shell variable.
56514         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
56515         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
56516         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
56517         (Depends-on): Add signal. Remove verify.
56518         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
56519         (Include): Mention <signal.h> instead of sigprocmask.h.
56520         * NEWS: Mention the change.
56521         * lib/fatal-signal.c: Don't include sigprocmask.h.
56522
56523 2007-05-01  Bruno Haible  <bruno@clisp.org>
56524
56525         * modules/signal: New file.
56526         * lib/signal_.h: New file.
56527         * m4/signal_h.m4: New file.
56528
56529 2007-05-01  Bruno Haible  <bruno@clisp.org>
56530
56531         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
56532         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
56533         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
56534         HAVE_WCTYPE_CTMP_BUG into wctype.h.
56535
56536 2007-05-01  Bruno Haible  <bruno@clisp.org>
56537
56538         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
56539         configure time.
56540         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
56541         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
56542         * modules/sys_stat (Makefile.am): Substitute their values into
56543         sys/stat.h.
56544
56545 2007-05-01  Bruno Haible  <bruno@clisp.org>
56546
56547         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
56548         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
56549         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
56550
56551 2007-05-01  Bruno Haible  <bruno@clisp.org>
56552
56553         * doc/header/assert.texi: Undo last change: don't mention the gnulib
56554         'assert' module here.
56555
56556 2007-05-01  Bruno Haible  <bruno@clisp.org>
56557
56558         * doc/functions/*.texi: New files.
56559         * doc/functions/google-ranking.txt: New file.
56560         * doc/gnulib.texi (Function Substitutes): New chapter.
56561         (ctime, inet_ntoa): Remove sections.
56562         * doc/ctime.texi: Remove file.
56563         * doc/inet_ntoa.texi: Remove file.
56564         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
56565         dependencies.
56566         (%.info): New rule, specifying a --reference-limit.
56567
56568 2007-05-01  Bruno Haible  <bruno@clisp.org>
56569
56570         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
56571
56572 2007-05-01  Bruno Haible  <bruno@clisp.org>
56573
56574         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
56575         the portability of 'mkdir' to mingw systems.
56576
56577 2007-05-01  Bruno Haible  <bruno@clisp.org>
56578
56579         * doc/headers/google-ranking.txt: New file.
56580
56581 2007-04-30  Eric Blake  <ebb9@byu.net>
56582
56583         Prefer fseeko to fseek.
56584         * modules/getpass (Depends-on): Add fseeko.
56585         * lib/getpass.c (getpass): Use fseeko, not fseek.
56586
56587 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
56588
56589         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
56590         assumes the sorting is stable, while most qsort implementations
56591         are not.  Use argument addresses to ensure they never compare as
56592         equal.
56593
56594         * tests/test-argp-2.sh (usage-indent test): Fix output
56595         (func_compare): Restore diff options
56596         * tests/test-argp.c: Restore #include "progname.h"
56597
56598 2007-04-29  Bruno Haible  <bruno@clisp.org>
56599
56600         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
56601         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56602         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
56603         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56604         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
56605         (configure.ac): Define CHECK_SNPRINTF_POSIX.
56606         (TESTS, check_PROGRAMS): Add test-snprintf.
56607         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
56608         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
56609         (TESTS, check_PROGRAMS): Add test-vsnprintf.
56610         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
56611         assertions that fail on HP-UX, OSF/1, or IRIX.
56612         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
56613
56614 2007-04-29  Bruno Haible  <bruno@clisp.org>
56615
56616         * MODULES.html.sh (posix_functions): Remove 'contents'.
56617
56618 2007-04-29  Karl Berry  <karl@gnu.org>
56619
56620         * config/srclist.txt (gendocs_template_min): new entry.
56621
56622 2007-04-29  Bruno Haible  <bruno@clisp.org>
56623
56624         Work around fpurge bug on BSD systems.
56625         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
56626         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
56627         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
56628         fpurge to rpl_fpurge if the system already has this function.
56629         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
56630         the case where the system already has this function. Correct invariants
56631         on BSD systems.
56632         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
56633         BSD systems.
56634
56635 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56636
56637         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
56638         proposed by Sven Verdoolaege.
56639
56640         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
56641         options.
56642         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
56643         (usage and help tests): Update
56644
56645 2007-04-29  Bruno Haible  <bruno@clisp.org>
56646
56647         * tests/test-fflush.c (main): Use a file of size 17, not 10.
56648         Print more information in case of failure. Disable a test on BeOS.
56649
56650 2007-04-29  Bruno Haible  <bruno@clisp.org>
56651
56652         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
56653         This helps debugging on systems on which no gdb is available.
56654
56655 2007-04-29  Bruno Haible  <bruno@clisp.org>
56656
56657         * lib/freading.h: Improve comments.
56658         * lib/fwriting.h: Likewise.
56659         * tests/test-freading.c (main): Don't check freading immediately after
56660         repositioning. Needed for glibc.
56661
56662 2007-04-29  Bruno Haible  <bruno@clisp.org>
56663
56664         * lib/freading.c (freading): Trivial simplification.
56665
56666 2007-04-28  Bruno Haible  <bruno@clisp.org>
56667
56668         * tests/test-fwriting.c (main): Also test the interaction between
56669         fflush and fwriting.
56670         * modules/fwriting-tests (Depends-on): Add fflush.
56671
56672         * tests/test-freading.c (main): Also test the interaction between
56673         fflush and freading.
56674         * modules/freading-tests (Depends-on): Add fflush.
56675
56676 2007-04-28  Bruno Haible  <bruno@clisp.org>
56677
56678         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
56679         fseeko and ftello.
56680         Suggested by Eric Blake.
56681
56682 2007-04-28  Jim Meyering  <jim@meyering.net>
56683
56684         Avoid false-negative in gl_STDINT_H's C99 conformance test.
56685         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
56686         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
56687
56688 2007-04-27  Eric Blake  <ebb9@byu.net>
56689
56690         * doc/headers/assert.texi (assert.h): Document assert module use.
56691
56692 2007-04-27  Bruno Haible  <bruno@clisp.org>
56693
56694         * doc/headers/*.texi: New files.
56695         * doc/gnulib.texi (Header File Substitutes): New chapter.
56696         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
56697         dependencies.
56698         (standards.info ,standards.html, standards.dvi): Update dependencies.
56699         (mostlyclean, clean): New targets.
56700
56701 2007-04-27  Bruno Haible  <bruno@clisp.org>
56702
56703         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
56704         * modules/sysexits (Files, Makefile.am): Update.
56705
56706         * lib/sys_socket_.h: Renamed from lib/socket_.h.
56707         * modules/sys_socket (Files, Makefile.am): Update.
56708
56709         * lib/sys_stat_.h: Renamed from lib/stat_.h.
56710         * modules/sys_stat (Files, Makefile.am): Update.
56711
56712 2007-04-27  Eric Blake  <ebb9@byu.net>
56713
56714         * lib/freading.h: Improve comments.
56715         * lib/fwriting.h: Likewise.
56716         * lib/fflush.c: Likewise.
56717
56718         Fix closein for mingw.
56719         * modules/closein-tests: Add tests for closein.
56720         * tests/test-closein.c: New file.
56721         * tests/test-closein.sh: Likewise.
56722         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
56723         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
56724
56725 2007-04-27  Bruno Haible  <bruno@clisp.org>
56726
56727         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
56728         version is < 6.
56729         * lib/math_.h [__DECC]: Likewise.
56730         * lib/stdio_.h [__DECC]: Likewise.
56731         * lib/stdlib_.h [__DECC]: Likewise.
56732         * lib/string_.h [__DECC]: Likewise.
56733         * lib/time_.h [__DECC]: Likewise.
56734         * lib/wchar_.h [__DECC]: Likewise.
56735         * lib/wctype_.h [__DECC]: Likewise.
56736
56737 2007-04-27  Bruno Haible  <bruno@clisp.org>
56738
56739         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
56740
56741 2007-04-27  Bruno Haible  <bruno@clisp.org>
56742
56743         * lib/fflush.c: Add comments.
56744         * modules/fpurge-tests (Depends-on): Add fflush.
56745         * modules/freadable-tests (Depends-on): Likewise.
56746         * modules/fwritable-tests (Depends-on): Likewise.
56747
56748 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
56749
56750         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
56751         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
56752         Report by Bruno Haible <bruno@clisp.org>.
56753
56754 2007-04-26  Eric Blake  <ebb9@byu.net>
56755
56756         Fix fflush on mingw.
56757         * modules/fflush (Depends-on): Add freading.
56758         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
56759         but unread data.
56760
56761 2007-04-26  Eric Blake  <ebb9@byu.net>
56762         and Bruno Haible  <bruno@clisp.org>
56763
56764         Implement freading and fwriting.
56765         * lib/freading.c: New file.
56766         * lib/freading.h: Likewise.
56767         * m4/freading.m4: Likewise.
56768         * modules/freading: Likewise.
56769         * modules/freading-tests: Likewise.
56770         * tests/test-freading.c: Likewise.
56771         * lib/fwriting.c: New file.
56772         * lib/fwriting.h: Likewise.
56773         * m4/fwriting.m4: Likewise.
56774         * modules/fwriting: Likewise.
56775         * modules/fwriting-tests: Likewise.
56776         * tests/test-fwriting.c: Likewise.
56777         * MODULES.html.sh (File stream based Input/Output): Mention them.
56778
56779 2007-04-26  Bruno Haible  <bruno@clisp.org>
56780
56781         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
56782         'long' when we assume it.
56783         Suggested by Eric Blake.
56784
56785 2007-04-26  Bruno Haible  <bruno@clisp.org>
56786
56787         Ensure fseeko, ftello are declared on glibc systems.
56788         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
56789         * modules/fseeko (configure.ac-early): Likewise.
56790         * modules/ftello (configure.ac-early): Likewise.
56791         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
56792         AC_FUNC_FSEEKO for this.
56793         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
56794         (gl_CHECK_FSEEKO): Remove macro.
56795
56796 2007-04-26  Bruno Haible  <bruno@clisp.org>
56797
56798         * tests/test-fflush.c (main): Also check the ftell result after
56799         fflush and fseek/fseeko.
56800         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
56801         file descriptor position cache in the stream.
56802         * lib/fseeko.c (rpl_fseeko): Likewise.
56803
56804 2007-04-26  Bruno Haible  <bruno@clisp.org>
56805
56806         * modules/fflush-tests (Depends-on): Add fseeko.
56807
56808 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
56809             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56810
56811         * lib/argz_.h: ensure error_t definition is obtained in same
56812         mechanism system argz.h would have.
56813         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
56814         argz facilities are known bad.  Err on the side of caution if
56815         cross-compiling.
56816
56817 2007-04-25  Eric Blake  <ebb9@byu.net>
56818
56819         * lib/fpurge.c (includes): Use stdlib.h for free.
56820         * tests/test-fflush.c (main): Also test fflush-fseeko.
56821
56822 2007-04-25  Bruno Haible  <bruno@clisp.org>
56823
56824         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
56825         * lib/fseeko.c: New file.
56826         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
56827         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
56828         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
56829         gl_FUNC_FSEEKO.
56830         (gl_FUNC_FSEEKO): Invoke it.
56831         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
56832         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
56833         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
56834
56835 2007-04-25  Bruno Haible  <bruno@clisp.org>
56836
56837         * modules/fflush (Depends-on): Add ftello.
56838
56839 2007-04-25  Bruno Haible  <bruno@clisp.org>
56840
56841         * modules/ftello-tests: New file.
56842         * tests/test-ftello.c: New file.
56843
56844         * modules/ftello: New file.
56845         * m4/ftello.m4: New file.
56846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
56847         HAVE_FTELLO.
56848         * lib/stdio_.h (ftello): New declaration.
56849         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
56850         HAVE_FTELLO.
56851
56852 2007-04-25  Bruno Haible  <bruno@clisp.org>
56853
56854         * modules/fseeko-tests: New file.
56855         * tests/test-fseeko.c: New file.
56856
56857         * modules/fseeko: New file.
56858         * m4/fseeko.m4: New file.
56859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
56860         HAVE_FSEEKO.
56861         * lib/stdio_.h (fseeko): New declaration.
56862         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
56863         HAVE_FSEEKO.
56864
56865 2007-04-25  Bruno Haible  <bruno@clisp.org>
56866
56867         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
56868
56869 2007-04-25  Bruno Haible  <bruno@clisp.org>
56870
56871         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
56872         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
56873         * tests/test-unistd.c: Likewise.
56874         * tests/test-fcntl.c: Likewise.
56875
56876 2007-04-23  Eric Blake  <ebb9@byu.net>
56877
56878         * lib/fflush.c: Fix missing include.
56879         Reported by Bruno Haible.
56880
56881 2007-04-23  Bruno Haible  <bruno@clisp.org>
56882
56883         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
56884         Reported by Eric Blake.
56885
56886 2007-04-23  Bruno Haible  <bruno@clisp.org>
56887
56888         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
56889
56890 2007-04-23  Bruno Haible  <bruno@clisp.org>
56891
56892         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
56893
56894 2007-04-23  Bruno Haible  <bruno@clisp.org>
56895
56896         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
56897         Needed on HP-UX 11.
56898
56899 2007-04-16  Eric Blake  <ebb9@byu.net>
56900
56901         Make fflush rely on fpurge.
56902         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56903         open coding all variants.
56904         * modules/fflush (Depends-on): Add fpurge and unistd.
56905         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56906         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56907
56908         Fix --with-tests compilation on cygwin.
56909         * modules/argmatch-tests (Makefile.am): List gnulib library first
56910         in LDADD.
56911         * modules/argp-tests (Makefile.am): Likewise.
56912         * modules/array-list-tests (Makefile.am): Likewise.
56913         * modules/array-oset-tests (Makefile.am): Likewise.
56914         * modules/avltree-list-tests (Makefile.am): Likewise.
56915         * modules/avltree-oset-tests (Makefile.am): Likewise.
56916         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56917         * modules/carray-list-tests (Makefile.am): Likewise.
56918         * modules/dirname-tests (Makefile.am): Likewise.
56919         * modules/frexp-tests (Makefile.am): Likewise.
56920         * modules/isnanl-tests (Makefile.am): Likewise.
56921         * modules/linked-list-tests (Makefile.am): Likewise.
56922         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56923         * modules/lock-tests (Makefile.am): Likewise.
56924         * modules/rbtree-list-tests (Makefile.am): Likewise.
56925         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56926         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56927         * modules/tls-tests (Makefile.am): Likewise.
56928         * modules/tsearch-tests (Makefile.am): Likewise.
56929         * modules/xvasprintf-tests (Makefile.am): Likewise.
56930
56931         Fix fpurge for cygwin.
56932         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56933         value.
56934         * modules/fpurge-tests (Depends-on): Clean up trash.
56935
56936 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56937
56938         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56939
56940         * m4/autobuild.m4: Re-indent.
56941
56942 2007-04-13  Bruno Haible  <bruno@clisp.org>
56943
56944         * modules/fpurge-tests: New file.
56945         * tests/test-fpurge.c: New file.
56946
56947         * modules/fpurge: New file.
56948         * lib/fpurge.h: New file.
56949         * lib/fpurge.c: New file.
56950         * m4/fpurge.m4: New file.
56951
56952 2007-04-13  Bruno Haible  <bruno@clisp.org>
56953
56954         * modules/fbufmode-tests: New file.
56955         * tests/test-fbufmode.c: New file.
56956
56957         * modules/fbufmode: New file.
56958         * lib/fbufmode.h: New file.
56959         * lib/fbufmode.c: New file.
56960         * m4/fbufmode.m4: New file.
56961
56962 2007-04-13  Bruno Haible  <bruno@clisp.org>
56963
56964         * modules/fwritable-tests: New file.
56965         * tests/test-fwritable.c: New file.
56966
56967         * modules/fwritable: New file.
56968         * lib/fwritable.h: New file.
56969         * lib/fwritable.c: New file.
56970         * m4/fwritable.m4: New file.
56971
56972 2007-04-13  Bruno Haible  <bruno@clisp.org>
56973
56974         * modules/freadable-tests: New file.
56975         * tests/test-freadable.c: New file.
56976
56977         * modules/freadable: New file.
56978         * lib/freadable.h: New file.
56979         * lib/freadable.c: New file.
56980         * m4/freadable.m4: New file.
56981
56982 2007-04-13  Bruno Haible  <bruno@clisp.org>
56983
56984         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56985         MOSTLYCLEANFILES.
56986
56987 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56988
56989         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56990         gzip bootstrap.conf to avoid dragging in i18n machinery.
56991         (gnulib_tool_option): Use it.
56992
56993 2007-04-13  Bruno Haible  <bruno@clisp.org>
56994
56995         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56996         %F directives.
56997         * tests/test-vasprintf-posix.c (test_function): Likewise.
56998         * tests/test-snprintf-posix.h (test_function): Likewise.
56999         * tests/test-sprintf-posix.h (test_function): Likewise.
57000         * tests/test-fprintf-posix.h (test_function): Likewise.
57001         * tests/test-printf-posix.h (test_function): Likewise.
57002         * tests/test-fprintf-posix.out: Likewise.
57003
57004 2007-04-13  Bruno Haible  <bruno@clisp.org>
57005
57006         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
57007         * modules/tls-tests (configure.ac): Likewise.
57008         Reported by Arto C. Nirkko <anirkko@insel.ch>.
57009
57010 2007-04-13  Bruno Haible  <bruno@clisp.org>
57011
57012         * lib/tls.c (glthread_tls_get): Fix return type.
57013         Patch by Arto C. Nirkko <anirkko@insel.ch>.
57014
57015 2007-04-12  Eric Blake  <ebb9@byu.net>
57016
57017         * modules/gettime (Depends-on): Remove gettime.
57018         Reported by Dmitry V. Levin.
57019
57020 2007-04-12  Bruno Haible  <bruno@clisp.org>
57021
57022         * modules/fflush (Include): Mention <stdio.h>.
57023         * modules/strtoimax (Include): Mention <inttypes.h>.
57024         * modules/strtoumax (Include): Likewise.
57025
57026 2007-04-12  Eric Blake  <ebb9@byu.net>
57027
57028         * .cvsignore: New file.
57029         * .gitignore: Likewise.
57030
57031 2007-04-12  Bruno Haible  <bruno@clisp.org>
57032
57033         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
57034         not before, since $(LDADD) often contains libgnu.a.
57035         * modules/striconv-tests (test_striconv_LDADD): Likewise.
57036         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
57037         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
57038         Needed on Cygwin.
57039
57040 2007-04-12  Eric Blake  <ebb9@byu.net>
57041
57042         Work around glibc's failure to flush stdin on fclose.
57043         * lib/closein.c (close_stdin): Flush stdin before closing.
57044
57045         Work around glibc's failure to reset seekable stdin on exit.
57046         * modules/closein: New module.
57047         * lib/closein.c: New file.
57048         * lib/closein.h: Likewise.
57049         * m4/closein.m4: Likewise.
57050         * MODULES.html.sh (File stream based Input/Output): Document it.
57051
57052 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57053
57054         * gnulib-tool: Rename generated 'autobuild' script to
57055         'do-autobuild' in --create-megatestdir output.
57056
57057         * doc/gnulib.texi (Build robot for gnulib): Fix.
57058
57059 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57060
57061         * modules/sysexits (Depends-on): Add absolute-header.
57062
57063 2007-04-12  Eric Blake  <ebb9@byu.net>
57064
57065         No need to preserve errno on success.
57066         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
57067         Reported by Bruno Haible.
57068
57069 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57070
57071         * MODULES.html.sh (Support for maintaining and releasing
57072         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
57073
57074 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57075
57076         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
57077
57078 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57079
57080         * modules/autobuild: New module.
57081
57082         * m4/autobuild.m4: New file.
57083
57084 2007-04-11  Bruno Haible  <bruno@clisp.org>
57085
57086         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
57087         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
57088         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
57089         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
57090         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_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         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57094         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57095         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57096         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
57097         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57098         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57099         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
57100         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57101         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57102         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
57103         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57104         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57105         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
57106         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57107         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57108         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
57109         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57110         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57111         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
57112         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57113         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57114         Reported by Eric Blake.
57115
57116 2007-04-11  Bruno Haible  <bruno@clisp.org>
57117
57118         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
57119
57120 2007-04-10  Bruno Haible  <bruno@clisp.org>
57121
57122         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
57123         for NaN and Infinity. Needed on FreeBSD 6.1.
57124         * tests/test-vasnprintf-posix.c (test_function): Undo last change
57125         regarding results for "%010a" of Infinity and NaN.
57126         * tests/test-vasprintf-posix.c (test_function): Likewise.
57127         * tests/test-snprintf-posix.h (test_function): Likewise.
57128         * tests/test-sprintf-posix.h (test_function): Likewise.
57129         * tests/test-fprintf-posix.h (test_function): Likewise.
57130         * tests/test-printf-posix.h (test_function): Likewise.
57131         * tests/test-fprintf-posix.out: Likewise.
57132
57133 2007-04-10  Bruno Haible  <bruno@clisp.org>
57134
57135         * modules/locale-tests: New file.
57136         * tests/test-locale.c: New file.
57137
57138         * modules/locale: New file.
57139         * lib/locale_.h: New file.
57140         * m4/locale_h.m4: New file.
57141
57142 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
57143             Bruno Haible  <bruno@clisp.org>
57144
57145         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
57146         be determined, test for availability of the copysignf, copysign,
57147         copysignl functions.
57148         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
57149         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
57150         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
57151
57152 2007-04-09  Eric Blake  <ebb9@byu.net>
57153
57154         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
57155         * modules/stdio (Makefile.am): Support fflush.
57156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57157         * modules/fflush: New file.
57158         * lib/fflush.c: Likewise.
57159         * m4/fflush.m4: Likewise.
57160         * modules/fflush-tests: New test.
57161         * tests/test-fflush.c: Likewise.
57162         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
57163
57164 2007-04-06  Bruno Haible  <bruno@clisp.org>
57165
57166         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
57167         (VASNPRINTF): Use signbit for faster determination whether to print a
57168         minus sign.
57169         * modules/vasnprintf (Files): Remove lib/float+.h.
57170         * modules/fprintf-posix (Depends-on): Add signbit.
57171         * modules/snprintf-posix (Depends-on): Likewise.
57172         * modules/sprintf-posix (Depends-on): Likewise.
57173         * modules/vasnprintf-posix (Depends-on): Likewise.
57174         * modules/vasprintf-posix (Depends-on): Likewise.
57175         * modules/vfprintf-posix (Depends-on): Likewise.
57176         * modules/vsnprintf-posix (Depends-on): Likewise.
57177         * modules/vsprintf-posix (Depends-on): Likewise.
57178
57179 2007-04-06  Bruno Haible  <bruno@clisp.org>
57180
57181         * tests/test-frexp.c (main): Test also the sign bit of zero results.
57182         * tests/test-frexpl.c (main): Likewise.
57183         * tests/test-ldexpl.c (main): Likewise.
57184         * modules/frexp-tests (Depends-on): Add signbit.
57185         * modules/frexpl-tests (Depdends-on): Likewise.
57186         * modules/ldexpl-tests (Depdends-on): Likewise.
57187
57188 2007-04-06  Bruno Haible  <bruno@clisp.org>
57189
57190         * modules/signbit-tests: New file.
57191         * tests/test-signbit.c: New file.
57192
57193         * modules/signbit: New file.
57194         * lib/signbitf.c: New file.
57195         * lib/signbitd.c: New file.
57196         * lib/signbitl.c: New file.
57197         * m4/signbit.m4: New file.
57198         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
57199         (signbit): New macro.
57200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
57201         REPLACE_SIGNBIT.
57202         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
57203         REPLACE_FREXPL into math.h.
57204
57205 2007-04-06  Bruno Haible  <bruno@clisp.org>
57206
57207         * modules/isnanf-nolibm-tests: New file.
57208         * tests/test-isnanf.c: New file.
57209
57210         * modules/isnanf-nolibm: New file.
57211         * lib/isnanf.h: New file.
57212         * lib/isnanf.c: New file.
57213         * lib/isnan.c: Consider the USE_FLOAT macro.
57214         * m4/isnanf.m4: New file.
57215
57216 2007-04-06  Bruno Haible  <bruno@clisp.org>
57217
57218         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
57219         (Link): New section.
57220
57221         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
57222
57223 2007-04-06  Bruno Haible  <bruno@clisp.org>
57224
57225         Assume the 'long double' type.
57226         * m4/longdouble.m4: Remove file.
57227         * config/srclist.txt: Don't mention longdouble.m4.
57228         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
57229         * lib/float+.h: Likewise.
57230         * lib/frexp.c: Likewise.
57231         * lib/printf-args.h: Likewise.
57232         * lib/printf-args.c: Likewise.
57233         * lib/printf-frexp.c: Likewise.
57234         * lib/printf-parse.c: Likewise.
57235         * lib/vasnprintf.c: Likewise.
57236         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
57237         * m4/intl.m4: Likewise.
57238         * m4/isnanl.m4: Likewise.
57239         * m4/printf.m4: Likewise.
57240         * m4/printf-frexpl.m4: Likewise.
57241         * m4/vasnprintf.m4: Likewise.
57242         * modules/allocsa (Files): Remove m4/longdouble.m4.
57243         * modules/gettext (Files): Likewise.
57244         * modules/relocatable-prog-wrapper (Files): Likewise.
57245         * modules/vasnprintf (Files): Likewise.
57246         * modules/isnanl (Files): Likewise.
57247         (Include): Simplify.
57248         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
57249         (Include): Simplify.
57250         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
57251         (Include): Simplify.
57252         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
57253         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57254         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
57255         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57256         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57257         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57258         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
57259         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57260         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57261         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57262         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
57263         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57264         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
57265         * tests/test-isnanl.c: Likewise.
57266         * tests/test-snprintf-posix.h: Likewise.
57267         * tests/test-sprintf-posix.h: Likewise.
57268         * tests/test-vasnprintf-posix.c: Likewise.
57269         * tests/test-vasnprintf-posix2.c: Likewise.
57270         * tests/test-vasprintf-posix.c: Likewise.
57271
57272 2007-04-06  Bruno Haible  <bruno@clisp.org>
57273
57274         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
57275         * lib/math_.h [__DECC]: Include the overridden include file through
57276         #include_next, outside the double-inclusion guard.
57277         * lib/stdio_.h [__DECC]: Likewise.
57278         * lib/stdlib_.h [__DECC]: Likewise.
57279         * lib/string_.h [__DECC]: Likewise.
57280         * lib/time_.h [__DECC]: Likewise.
57281         * lib/wchar_.h [__DECC]: Likewise.
57282         * lib/wctype_.h [__DECC]: Likewise.
57283         * lib/inttypes_.h [__DECC]: Likewise.
57284         Reported by Albert Chin <china@thewrittenword.com> in
57285         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
57286
57287 2007-04-04  Eric Blake  <ebb9@byu.net>
57288
57289         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
57290         1.5.x.
57291
57292 2007-04-04  Bruno Haible  <bruno@clisp.org>
57293
57294         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
57295         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
57296
57297 2007-04-04  Bruno Haible  <bruno@clisp.org>
57298
57299         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
57300         results for "%010a" of Infinity and NaN.
57301         * tests/test-vasprintf-posix.c (test_function): Likewise.
57302         * tests/test-snprintf-posix.h (test_function): Likewise.
57303         * tests/test-sprintf-posix.h (test_function): Likewise.
57304         * tests/test-fprintf-posix.h (test_function): Remove these tests.
57305         * tests/test-printf-posix.h (test_function): Likewise.
57306         * tests/test-fprintf-posix.out: Update.
57307         Needed for FreeBSD 6.1.
57308
57309 2007-04-04  Bruno Haible  <bruno@clisp.org>
57310
57311         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
57312         directly used by the gnulib modules nor by gnulib-tool.
57313
57314 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57315
57316         * DEPENDENCIES: Give overall description of version dependency
57317         desirability.  Use more-typical names for apps.
57318         Add shell, coreutils, diffutils, grep, tar, gzip.
57319
57320 2007-04-04  Simon Josefsson  <simon@josefsson.org>
57321
57322         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
57323
57324 2007-04-04  Karl Berry  <karl@gnu.org>
57325
57326         * MODULES.html.sh (func_module): missing '.
57327
57328 2007-04-03  Bruno Haible  <bruno@clisp.org>
57329
57330         * modules/argmatch-tests (Makefile.am): New variable
57331         test_argmatch_LDADD.
57332         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
57333         * modules/array-list-tests (Makefile.am): New variable
57334         test_array_list_LDADD.
57335         * modules/array-oset-tests (Makefile.am): New variable
57336         test_array_oset_LDADD.
57337         * modules/avltree-list-tests (Makefile.am): New variable
57338         test_avltree_list_LDADD.
57339         * modules/avltree-oset-tests (Makefile.am): New variable
57340         test_avltree_oset_LDADD.
57341         * modules/avltreehash-list-tests (Makefile.am): New variable
57342         test_avltreehash_list_LDADD.
57343         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
57344         test_canonicalize_lgpl_LDADD.
57345         * modules/carray-list-tests (Makefile.am): New variable
57346         test_carray_list_LDADD.
57347         * modules/dirname-tests (Makefile.am): New variable
57348         test_dirname_LDADD.
57349         * modules/linked-list-tests (Makefile.am): New variable
57350         test_linked_list_LDADD.
57351         * modules/linkedhash-list-tests (Makefile.am): New variable
57352         test_linkedhash_list_LDADD.
57353         * modules/rbtree-list-tests (Makefile.am): New variable
57354         test_rbtree_list_LDADD.
57355         * modules/rbtree-oset-tests (Makefile.am): New variable
57356         test_rbtree_oset_LDADD.
57357         * modules/rbtreehash-list-tests (Makefile.am): New variable
57358         test_rbtreehash_list_LDADD.
57359         * modules/xvasprintf-tests (Makefile.am): New variable
57360         test_xvasprintf_LDADD.
57361         Reported by Eric Blake.
57362
57363 2007-04-03  Eric Blake  <ebb9@byu.net>
57364
57365         * DEPENDENCIES: Weaken m4 requirements.
57366
57367 2007-04-03  Bruno Haible  <bruno@clisp.org>
57368
57369         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
57370         * modules/isnanl-tests (configure.ac): Likewise.
57371
57372 2007-04-03  Ben Pfaff  <blp@gnu.org>
57373
57374         * modules/iconv_open: Add $(srcdir)/ to source directory
57375         references in Makefile fragments that call gperf, to fix VPATH
57376         builds.
57377
57378 2007-04-03  Bruno Haible  <bruno@clisp.org>
57379
57380         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
57381         * lib/ldexpl.c: Undo last change.
57382
57383 2007-04-03  Bruno Haible  <bruno@clisp.org>
57384
57385         * modules/printf-frexpl (Depends-on): Undo last change.
57386         (Files): Add m4/ldexpl.m4.
57387
57388 2007-04-03  Bruno Haible  <bruno@clisp.org>
57389
57390         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
57391         * modules/isnanl (Link): New section.
57392
57393         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
57394         * modules/frexp (Link): New section.
57395
57396         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
57397         * modules/frexpl (Link): New section.
57398
57399         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
57400         * modules/ldexpl (Link): New section.
57401
57402 2007-04-03  Bruno Haible  <bruno@clisp.org>
57403
57404         * modules/TEMPLATE-EXTENDED: New file.
57405         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
57406
57407 2007-04-03  Bruno Haible  <bruno@clisp.org>
57408
57409         * DEPENDENCIES: New file.
57410         Suggested by Simon Josefsson.
57411
57412 2007-04-03  Bruno Haible  <bruno@clisp.org>
57413
57414         * doc/gnulib.texi: Escape @.
57415
57416 2007-04-03  James Youngman  <jay@gnu.org>
57417         and Paul Eggert  <eggert@cs.ucla.edu>
57418
57419         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
57420         birthtime on all systems that have birthtime, not just those which
57421         use st_birthtimensec rather than st_birthtim.  Putting zero in
57422         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
57423         that the birth time is not available for files on an NFS mount.
57424
57425 2007-04-03  Simon Josefsson  <simon@josefsson.org>
57426
57427         * modules/memxor: Move back from crypto/, suggested by Bruno.
57428         * modules/crypto/hmac-sha1: Fix memxor dependency.
57429
57430         * modules/crypto/gc: Moved from ../.
57431
57432 2007-04-02  Eric Blake  <ebb9@byu.net>
57433
57434         * lib/ldexpl.c (includes): Avoid libm.
57435
57436         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
57437
57438 2007-04-02  Bruno Haible  <bruno@clisp.org>
57439
57440         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
57441         on IRIX.
57442
57443 2007-04-02  Bruno Haible  <bruno@clisp.org>
57444
57445         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
57446         x86 or x86_64 platforms running MacOS X.
57447         Reported by Ryan Schmidt <@ryandesign.com>.
57448
57449 2007-04-02  Bruno Haible  <bruno@clisp.org>
57450
57451         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
57452         i386.
57453
57454 2007-04-01  Simon Josefsson  <simon@josefsson.org>
57455
57456         * modules/crypto/arcfour: Moved from ../.
57457         * modules/crypto/arcfour-tests: Moved from ../.
57458         * modules/crypto/arctwo: Moved from ../.
57459         * modules/crypto/arctwo-tests: Moved from ../.
57460         * modules/crypto/des: Moved from ../.
57461         * modules/crypto/des-tests: Moved from ../.
57462         * modules/crypto/gc-arcfour: Moved from ../.
57463         * modules/crypto/gc-arcfour-tests: Moved from ../.
57464         * modules/crypto/gc-arctwo: Moved from ../.
57465         * modules/crypto/gc-arctwo-tests: Moved from ../.
57466         * modules/crypto/gc-des: Moved from ../.
57467         * modules/crypto/gc-des-tests: Moved from ../.
57468         * modules/crypto/gc-hmac-md5: Moved from ../.
57469         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
57470         * modules/crypto/gc-hmac-sha1: Moved from ../.
57471         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
57472         * modules/crypto/gc-md2: Moved from ../.
57473         * modules/crypto/gc-md2-tests: Moved from ../.
57474         * modules/crypto/gc-md4: Moved from ../.
57475         * modules/crypto/gc-md4-tests: Moved from ../.
57476         * modules/crypto/gc-md5: Moved from ../.
57477         * modules/crypto/gc-md5-tests: Moved from ../.
57478         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
57479         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
57480         * modules/crypto/gc-random: Moved from ../.
57481         * modules/crypto/gc-rijndael: Moved from ../.
57482         * modules/crypto/gc-rijndael-tests: Moved from ../.
57483         * modules/crypto/gc-sha1: Moved from ../.
57484         * modules/crypto/gc-sha1-tests: Moved from ../.
57485         * modules/crypto/gc-tests: Moved from ../.
57486         * modules/crypto/hmac-md5: Moved from ../.
57487         * modules/crypto/hmac-md5-tests: Moved from ../.
57488         * modules/crypto/hmac-sha1: Moved from ../.
57489         * modules/crypto/hmac-sha1-tests: Moved from ../.
57490         * modules/crypto/md2: Moved from ../.
57491         * modules/crypto/md2-tests: Moved from ../.
57492         * modules/crypto/md4: Moved from ../.
57493         * modules/crypto/md4-tests: Moved from ../.
57494         * modules/crypto/md5: Moved from ../.
57495         * modules/crypto/md5-tests: Moved from ../.
57496         * modules/crypto/memxor: Moved from ../.
57497         * modules/crypto/rijndael: Moved from ../.
57498         * modules/crypto/rijndael-tests: Moved from ../.
57499         * modules/crypto/sha1: Moved from ../.
57500
57501 2007-03-30  James Youngman  <jay@gnu.org>
57502
57503         * tests/test-stat-time.c (prepare_test): use chmod() rather than
57504         rename() to change the ctime of a file (because ctime is unaffected
57505         by rename on jfs2 on AIX 5.1).
57506         (main): Start by doing cleanup, in case a previous run failed leaving
57507         test files behind.
57508
57509 2007-03-31  Bruno Haible  <bruno@clisp.org>
57510
57511         Support old proprietary implementations of iconv.
57512         * modules/iconv_open: New file.
57513         * lib/iconv_.h: New file.
57514         * m4/iconv_h.m4: New file.
57515         * lib/iconv_open.c: New file.
57516         * lib/iconv_open-aix.gperf: New file.
57517         * lib/iconv_open-hpux.gperf: New file.
57518         * lib/iconv_open-irix.gperf: New file.
57519         * lib/iconv_open-osf.gperf: New file.
57520         * m4/iconv_open.m4: New file.
57521         * modules/linebreak (Depends-on): Add iconv_open.
57522         * modules/striconv (Depends-on): Likewise.
57523         * modules/striconveh (Depends-on): Likewise.
57524         * modules/unicodeio (Depends-on): Likewise.
57525         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
57526         (iconv_t)(-1).
57527         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
57528         conversion if cd is (iconv_t)(-1).
57529         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
57530         is not possible.
57531
57532 2007-03-31  Bruno Haible  <bruno@clisp.org>
57533
57534         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57535         work on Solaris either. Protect also second use of "autodetect_jp".
57536
57537 2007-03-31  Bruno Haible  <bruno@clisp.org>
57538
57539         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
57540         the function is not present.
57541
57542 2007-03-31  Bruno Haible  <bruno@clisp.org>
57543
57544         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
57545         the function is not present.
57546
57547 2007-03-31  Bruno Haible  <bruno@clisp.org>
57548
57549         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
57550         a bug in HP-UX iconv_open().
57551
57552 2007-03-31  Bruno Haible  <bruno@clisp.org>
57553
57554         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
57555         (Mathematics <math.h>): New section, add fpieee.
57556         (Input/output <stdio.h>): Add fseterr.
57557         (Mathematics <math.h>): New section, add printf-frexp.
57558         (Container data structures): Add sublist.
57559         (Core language properties): Add fpucw, inline.
57560         (Functions for greatest-width integer types <inttypes.h>): Add
57561         imaxabs, imaxdiv, inttypes.
57562         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
57563         isnanl-nolibm, ldexp.
57564         (Mathematics <math.h>): New section, add printf-frexpl.
57565         (Support for systems lacking POSIX:2001): Add fprintf-posix,
57566         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
57567         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
57568         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
57569         (Unicode string functions): Add unistr/u*-mbtoucr.
57570         (Java): Add javacomp-script, javaexec-script.
57571         (C#): Add csharpcomp-script, csharpexec-script.
57572         (Support for building libraries and executables): Add havelib,
57573         relocatable-*.
57574         (Support for maintaining and releasing projects): Renamed from
57575         'Support for maintaining and release projects'. Add announce-gen.
57576
57577 2007-03-31  Bruno Haible  <bruno@clisp.org>
57578
57579         * README: Talk primarily about git.
57580         (git and CVS): Renamed from CVS.
57581         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
57582         gnulib is available through git.
57583         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
57584
57585 2007-03-30  Bruno Haible  <bruno@clisp.org>
57586
57587         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
57588         * lib/poll_.h: Likewise.
57589         * lib/stat_.h: Likewise.
57590         * lib/sys_time_.h: Likewise.
57591         * lib/sysexit_.h: Likewise.
57592         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
57593         * lib/stdbool_.h: Likewise.
57594         * lib/byteswap_.h: Add double-inclusion guard.
57595
57596 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
57597
57598         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
57599
57600 2007-03-30  Karl Berry  <karl@gnu.org>
57601
57602         * config/srclist-update: double space after USA in the license
57603         substitution, since that's how it's usually (?) written.
57604
57605 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57606
57607         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
57608         reported by Bruno Haible.
57609
57610 2007-03-29  Bruno Haible  <bruno@clisp.org>
57611
57612         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
57613         a bug in AIX iconv().
57614
57615 2007-03-29  Bruno Haible  <bruno@clisp.org>
57616
57617         * modules/ldexpl-tests: New file.
57618         * tests/test-ldexpl.c: New file.
57619
57620 2007-03-29  Bruno Haible  <bruno@clisp.org>
57621
57622         * lib/ldexpl.c: Include fpucw.h.
57623         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
57624         multiplication.
57625         * modules/ldexpl (Depends-on): Add fpucw.
57626
57627 2007-03-29  Bruno Haible  <bruno@clisp.org>
57628
57629         * modules/ldexpl: New file.
57630         * m4/ldexpl.m4: New file.
57631         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
57632         set.
57633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
57634         REPLACE_LDEXPL.
57635         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
57636         REPLACE_LDEXPL.
57637         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57638         gl_FUNC_LDEXPL_WORKS.
57639         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
57640         * modules/mathl (Files): Remove lib/ldexpl.c.
57641         (Depends-on): Add ldexpl.
57642
57643 2007-03-29  Bruno Haible  <bruno@clisp.org>
57644
57645         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
57646
57647 2007-03-29  Bruno Haible  <bruno@clisp.org>
57648
57649         * tests/test-striconveh.c (main): Don't assume that a direct conversion
57650         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
57651         and possibly also HP-UX.
57652         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57653         work on AIX, IRIX, HP-UX, OSF/1.
57654         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
57655         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
57656         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
57657         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
57658         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
57659         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
57660
57661 2007-03-29  Bruno Haible  <bruno@clisp.org>
57662
57663         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
57664
57665 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57666
57667         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
57668         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
57669
57670 2007-03-29  Eric Blake  <ebb9@byu.net>
57671
57672         * lib/acl-internal.h: Remove redundant include.
57673         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
57674         Cygwin when a file is locked.
57675
57676 2007-03-29  Bruno Haible  <bruno@clisp.org>
57677
57678         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
57679         file.
57680         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
57681
57682 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57683
57684         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
57685         try to remove a parent directory if the child couldn't be removed
57686         (except for the first rmdir, which could fail because the child
57687         doesn't exist).  Problem reported by Jeff Blaine in
57688         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
57689
57690 2007-03-28  Bruno Haible  <bruno@clisp.org>
57691
57692         * lib/striconveh.c (utf8conv_carefully): New function.
57693         (mem_cd_iconveh_internal): Invoke it.
57694
57695 2007-03-28  Bruno Haible  <bruno@clisp.org>
57696
57697         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
57698         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
57699         input.
57700         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
57701         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
57702         unistr/u8-uctomb.
57703
57704 2007-03-28  Bruno Haible  <bruno@clisp.org>
57705
57706         * modules/unistr/u8-mbtoucr: New file.
57707         * lib/unistr/u8-mbtoucr.c: New file.
57708         * modules/unistr/u16-mbtoucr: New file.
57709         * lib/unistr/u16-mbtoucr.c: New file.
57710         * modules/unistr/u16-mbtoucr: New file.
57711         * lib/unistr/u16-mbtoucr.c: New file.
57712         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
57713
57714 2007-03-27  Simon Josefsson  <simon@josefsson.org>
57715             Bruno Haible  <bruno@clisp.org>
57716
57717         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
57718         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
57719         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
57720
57721         * m4/stdio_h.m4: Add stubs for vasprintf too.
57722
57723         * modules/stdio: Support vasprintf in sed command.
57724
57725         * modules/vasprintf: Depend on stdio for prototypes.  Remove
57726         vasprintf.h.  Add stdio module indicator.
57727
57728         * lib/stdio_.h: Declare asprintf and vasprintf, based on
57729         vasprintf.h.
57730
57731         * lib/vasprintf.h: File removed.
57732
57733         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
57734         * lib/vasprintf.c: Ditto.
57735         * lib/xvasprintf.c: Ditto.
57736         * tests/test-vasprintf-posix.c: Ditto.
57737         * tests/test-vasprintf.c: Ditto.
57738
57739 2007-03-27  Bruno Haible  <bruno@clisp.org>
57740
57741         Make vasnprintf multithread-safe.
57742         * lib/vasnprintf.c (decimal_point_char): New function.
57743         (VASNPRINTF): Use it.
57744         Suggested by Simon Josefsson.
57745
57746 2007-03-27  Eric Blake  <ebb9@byu.net>
57747
57748         Support sub-second birthtime on cygwin.
57749         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
57750         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
57751         (get_stat_birthtime): Also work with st_birthtim.
57752
57753 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
57754
57755         * lib/stat-time.h (USE_BIRTHTIME): Remove.
57756         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
57757         (get_stat_birthtime_ns): Do not try to use "spare" fields.
57758         (get_stat_birthtime_ns): Simplify compile-time tests.
57759         (get_stat_birthtime): Change the API to look like
57760         get_stat_mtime etc., except return a negative tv_nsec on error.
57761         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
57762         Don't check for "spare" fields.
57763         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
57764         or for struct stat.st_birthtime, as these tests aren't used.
57765         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
57766
57767 2007-03-27  Bruno Haible  <bruno@clisp.org>
57768
57769         * lib/stat-time.h: Include <sys/stat.h>.
57770
57771 2007-03-27  James Youngman  <jay@gnu.org>
57772
57773         * lib/stat-time.h (get_stat_birthtime): New function for
57774           retrieving st_birthtime as provided by UFS2 (hence *BSD).
57775         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
57776           and its variants.
57777         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
57778         * modules/stat-time-test: New file.
57779         * tests/test-stat-time.c: New test, devised by Bruno Haible.
57780
57781 2007-03-26  Bruno Haible  <bruno@clisp.org>
57782
57783         Better support of signalling NaNs.
57784         * lib/atanl.c: Include isnanl.h.
57785         (atanl): Perform test for NaN at the beginning of the function and
57786         through a call to isnanl.
57787         * lib/cosl.c: Include isnanl.h.
57788         (cosl): Perform test for NaN at the beginning of the function and
57789         through a call to isnanl.
57790         * lib/ldexpl.c: Include isnanl.h.
57791         (ldexpl): Perform test for NaN through a call to isnanl.
57792         * lib/logl.c: Include isnanl.h.
57793         (logl): Perform test for NaN at the beginning of the function and
57794         through a call to isnanl.
57795         * lib/sinl.c: Include isnanl.h.
57796         (sinl): Perform test for NaN at the beginning of the function and
57797         through a call to isnanl.
57798         * lib/sqrtl.c: Include isnanl.h.
57799         (sqrtl): Perform test for NaN at the beginning of the function and
57800         through a call to isnanl.
57801         * lib/tanl.c: Include isnanl.h.
57802         (tanl): Perform test for NaN at the beginning of the function and
57803         through a call to isnanl.
57804         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
57805         * modules/mathl (Depends-on): Add isnanl.
57806
57807 2007-03-26  Eric Blake  <ebb9@byu.net>
57808
57809         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
57810         regression in logic sense of previous patch.
57811
57812 2007-03-26  Bruno Haible  <bruno@clisp.org>
57813
57814         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
57815         unportable shell command "if ! ...".
57816         Reported by Ralf Wildenhues.
57817
57818 2007-03-25  Bruno Haible  <bruno@clisp.org>
57819
57820         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
57821         <sysexits.h> file, and only add EX_CONFIG.
57822         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
57823         absolute file name and whether it is sufficient. Substitute also
57824         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
57825         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
57826         ABSOLUTE_SYSEXITS_H into sysexits.h.
57827
57828 2007-03-25  Bruno Haible  <bruno@clisp.org>
57829
57830         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
57831         hints is NULL.
57832
57833 2007-03-25  Bruno Haible  <bruno@clisp.org>
57834
57835         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
57836         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
57837
57838 2007-03-25  Bruno Haible  <bruno@clisp.org>
57839
57840         * lib/vasnprintf.c: Include langinfo.h.
57841         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
57842         multithread-safe.
57843         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
57844         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
57845         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57846         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57847         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57848         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57849         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57850         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
57851         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57852         Reported by Simon Josefsson.
57853
57854 2007-03-25  Bruno Haible  <bruno@clisp.org>
57855
57856         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
57857         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
57858         * modules/vasnprintf (Depends-on): Add stdint.
57859
57860 2007-03-25  Bruno Haible  <bruno@clisp.org>
57861
57862         * modules/fpieee: New file.
57863         * m4/fpieee.m4: New file.
57864         * modules/isnan-nolibm (Depends-on): Add fpieee.
57865         * modules/isnanl-nolibm (Depends-on): Add fpieee.
57866         * modules/isnanl (Depends-on): Add fpieee.
57867
57868 2007-03-25  Bruno Haible  <bruno@clisp.org>
57869
57870         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
57871
57872 2007-03-25  Bruno Haible  <bruno@clisp.org>
57873
57874         Avoid test failures on IRIX 6.5.
57875         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
57876         (main): Use it.
57877         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
57878         macros.
57879         (main): Use them.
57880
57881 2007-03-25  Bruno Haible  <bruno@clisp.org>
57882
57883         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
57884         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
57885         exists but doesn't work.
57886         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
57887         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
57888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
57889         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
57890         math.h.
57891
57892 2007-03-25  Bruno Haible  <bruno@clisp.org>
57893
57894         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
57895         returns inf. Needed on IRIX 6.5.
57896
57897 2007-03-25  Bruno Haible  <bruno@clisp.org>
57898
57899         * tests/test-frexpl.c: Include isnanl-nolibm.h.
57900         (main): Use isnanl instead of x != x idiom.
57901         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57902
57903         * tests/test-frexp.c: Include isnan.h.
57904         (main): Use isnan instead of x != x idiom.
57905         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57906
57907 2007-03-25  Bruno Haible  <bruno@clisp.org>
57908
57909         * tests/test-frexp.c (NaN): New function/macro.
57910         (main): Use it instead of 0.0 / 0.0.
57911         * tests/test-isnan.c (NaN): New function/macro.
57912         (main): Use it instead of 0.0 / 0.0.
57913         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57914         (test_function): Use it instead of 0.0 / 0.0.
57915         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57916         (test_function): Use it instead of 0.0 / 0.0.
57917         * tests/test-snprintf-posix.h (NaN): New function/macro.
57918         (test_function): Use it instead of 0.0 / 0.0.
57919         * tests/test-sprintf-posix.h (NaN): New function/macro.
57920         (test_function): Use it instead of 0.0 / 0.0.
57921         * tests/test-fprintf-posix.h (NaN): New function/macro.
57922         (test_function): Use it instead of 0.0 / 0.0.
57923         * tests/test-printf-posix.h (NaN): New function/macro.
57924         (test_function): Use it instead of 0.0 / 0.0.
57925
57926         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57927
57928 2007-03-25  Bruno Haible  <bruno@clisp.org>
57929
57930         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57931
57932 2007-03-25  Bruno Haible  <bruno@clisp.org>
57933
57934         * lib/regexec.c (merge_state_with_log): Make static.
57935
57936 2007-03-25  Bruno Haible  <bruno@clisp.org>
57937
57938         * lib/trigl.c (kernel_rem_pio2): Make static.
57939
57940 2007-03-25  Bruno Haible  <bruno@clisp.org>
57941
57942         * lib/sincosl.c (sincosl_table): Make static.
57943
57944 2007-03-25  Bruno Haible  <bruno@clisp.org>
57945
57946         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57947         if the compiler does not support C99.
57948
57949 2007-03-25  Bruno Haible  <bruno@clisp.org>
57950
57951         * modules/time (Makefile.am): Ensure all rule action lines start with a
57952         tab.
57953
57954 2007-03-24  Bruno Haible  <bruno@clisp.org>
57955
57956         * modules/tsearch-tests: New file.
57957         * tests/test-tsearch.sh: New file.
57958         * tests/test-tsearch.c: New file, mostly copied from glibc.
57959
57960         * modules/search-tests: New file.
57961         * tests/test-search.c: New file.
57962
57963         * modules/search: New file.
57964         * lib/search_.h: New file, incorporating lib/tsearch.h.
57965         * m4/search_h.m4: New file.
57966         * lib/tsearch.h: Remove file.
57967         * lib/tsearch.c: Include search.h instead of tsearch.h.
57968         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57969         HAVE_TSEARCH.
57970         * modules/tsearch (Files): Remove lib/tsearch.h.
57971         (Depends-on): Add search.
57972         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57973         (Include): Change tsearch.h into search.h.
57974
57975 2007-03-24  Bruno Haible  <bruno@clisp.org>
57976
57977         * modules/fpucw: New file.
57978         * lib/fpucw.h: New file.
57979         * lib/frexp.c: Include fpucw.h.
57980         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57981         (FUNC): Use them.
57982         * lib/printf-frexp.c: Include fpucw.h.
57983         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57984         (FUNC): Use them.
57985         * lib/vasnprintf.c: Include fpucw.h.
57986         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57987         'long double' calculations.
57988         * tests/test-frexpl.c: Include fpucw.h.
57989         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57990         * tests/test-printf-frexpl.c: Include fpucw.h.
57991         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57992         * modules/frexpl (Depends-on): Add fpucw.
57993         * modules/printf-frexpl (Depends-on): Likewise.
57994         * modules/fprintf-posix (Depends-on): Likewise.
57995         * modules/snprintf-posix (Depends-on): Likewise.
57996         * modules/sprintf-posix (Depends-on): Likewise.
57997         * modules/vasnprintf-posix (Depends-on): Likewise.
57998         * modules/vasprintf-posix (Depends-on): Likewise.
57999         * modules/vfprintf-posix (Depends-on): Likewise.
58000         * modules/vsnprintf-posix (Depends-on): Likewise.
58001         * modules/vsprintf-posix (Depends-on): Likewise.
58002         * modules/frexpl-tests (Depends-on): Likewise.
58003         * modules/printf-frexpl-tests (Depends-on): Likewise.
58004
58005 2007-03-24  Bruno Haible  <bruno@clisp.org>
58006
58007         * lib/float+.h: New file.
58008         * lib/isnan.c: Include float+.h.
58009         (SIZE): New macro.
58010         (FUNC): Compare only SIZE bytes of the value.
58011         * lib/vasnprintf.c: Include float+.h.
58012         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
58013         SIZEOF_LDBL or SIZEOF_DBL bytes.
58014         * modules/isnan-nolibm (Files): Add lib/float+.h.
58015         * modules/isnanl-nolibm (Files): Add lib/float+.h.
58016         * modules/isnanl (Files): Add lib/float+.h.
58017         * modules/vasnprintf (Files): Add lib/float+.h.
58018
58019 2007-03-24  Bruno Haible  <bruno@clisp.org>
58020
58021         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
58022         include isnanl-nolibm.h.
58023
58024 2007-03-24  Bruno Haible  <bruno@clisp.org>
58025
58026         * tests/test-read-file.c (main): Don't produce spurious output for
58027         expected situations. Make the test fail if it encountered unexpected
58028         results.
58029
58030 2007-03-24  Bruno Haible  <bruno@clisp.org>
58031
58032         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
58033         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
58034
58035 2007-03-24  Bruno Haible  <bruno@clisp.org>
58036
58037         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
58038
58039 2007-03-24  Bruno Haible  <bruno@clisp.org>
58040
58041         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
58042         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
58043
58044         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
58045         * modules/utf8-ucs4: Turn into a symbolic link to module
58046         unistr/u8-mbtouc.
58047
58048         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
58049         utf8-ucs4-unsafe.
58050         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
58051         unistr/u8-mbtouc-unsafe.
58052
58053         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
58054         * modules/utf16-ucs4: Turn into a symbolic link to module
58055         unistr/u16-mbtouc.
58056
58057         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
58058         utf16-ucs4-unsafe.
58059         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
58060         unistr/u16-mbtouc-unsafe.
58061
58062         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
58063         * modules/ucs4-utf8: Turn into a symbolic link to module
58064         unistr/u8-ubtomb.
58065
58066         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
58067         * modules/ucs4-utf16: Turn into a symbolic link to module
58068         unistr/u16-ubtomb.
58069
58070 2007-03-24  Bruno Haible  <bruno@clisp.org>
58071
58072         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
58073         Enable the function only if HAVE_INLINE.
58074         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
58075         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58076         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
58077         Enable the function only if HAVE_INLINE.
58078         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
58079         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58080         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
58081         Enable the function only if HAVE_INLINE.
58082         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
58083         Enable the function only if HAVE_INLINE.
58084         * modules/utf8-ucs4: Update.
58085         * modules/utf8-ucs4-unsafe: Update.
58086         * modules/utf16-ucs4: Update.
58087         * modules/utf16-ucs4-unsafe: Update.
58088         * modules/ucs4-utf8: Update.
58089         * modules/ucs4-utf16: Update.
58090
58091 2007-03-24  Bruno Haible  <bruno@clisp.org>
58092
58093         * lib/utf8-ucs4.h: Remove file.
58094         * lib/utf8-ucs4-unsafe.h: Remove file.
58095         * lib/utf16-ucs4.h: Remove file.
58096         * lib/utf16-ucs4-unsafe.h: Remove file.
58097         * lib/ucs4-utf8.h: Remove file.
58098         * lib/ucs4-utf16.h: Remove file.
58099         * lib/unistr.h: Include their previous contents.
58100         * m4/utf-ucs4.m4: Remove file.
58101         * m4/ucs4-utf.m4: Remove file.
58102         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
58103         (Depends-on): Add unistr/base.
58104         (configure.ac): Remove gl_UTF_UCS4.
58105         (Makefile.am): Update.
58106         (Include): Change to unistr.h.
58107         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
58108         (Depends-on): Add unistr/base.
58109         (configure.ac): Remove gl_UTF_UCS4.
58110         (Makefile.am): Update.
58111         (Include): Change to unistr.h.
58112         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
58113         (Depends-on): Add unistr/base.
58114         (configure.ac): Remove gl_UTF_UCS4.
58115         (Makefile.am): Update.
58116         (Include): Change to unistr.h.
58117         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
58118         (Depends-on): Add unistr/base.
58119         (configure.ac): Remove gl_UTF_UCS4.
58120         (Makefile.am): Update.
58121         (Include): Change to unistr.h.
58122         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
58123         (Depends-on): Add unistr/base.
58124         (configure.ac): Remove gl_UCS4_UTF.
58125         (Makefile.am): Update.
58126         (Include): Change to unistr.h.
58127         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
58128         (Depends-on): Add unistr/base.
58129         (configure.ac): Remove gl_UCS4_UTF.
58130         (Makefile.am): Update.
58131         (Include): Change to unistr.h.
58132         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
58133         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
58134         utf8-ucs4-unsafe.h.
58135         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
58136         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
58137         utf16-ucs4-unsafe.h.
58138         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
58139         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
58140         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
58141         * lib/unistr/u8-strchr.c: Likewise.
58142         * lib/unistr/u8-strrchr.c: Likewise.
58143         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
58144         * lib/unistr/u16-strchr.c: Likewise.
58145         * lib/unistr/u16-strrchr.c: Likewise.
58146         * lib/striconveh.c: Update.
58147         * lib/linebreak.c: Update.
58148
58149 2007-03-24  Bruno Haible  <bruno@clisp.org>
58150
58151         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
58152         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
58153
58154 2007-03-22  Bruno Haible  <bruno@clisp.org>
58155
58156         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
58157
58158 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
58159
58160         * MODULES.html.sh (File system functions): New module write-any-file.
58161         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
58162         * m4/write-any-file.m4: New files.
58163
58164 2007-03-23  Eric Blake  <ebb9@byu.net>
58165
58166         * gnulib-tool: Rearrange space-tab sequences, since some editors
58167         like to eat them.
58168
58169 2007-03-23  Eric Blake  <ebb9@byu.net>
58170
58171         * lib/version-etc.c (version_etc_va): Update license wording to
58172         be more concise.  Recommended by Richard Stallman.
58173
58174 2007-03-22  Bruno Haible  <bruno@clisp.org>
58175
58176         * lib/poll.c (MSG_PEEK): New fallback definition.
58177
58178 2007-03-22  Bruno Haible  <bruno@clisp.org>
58179
58180         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
58181         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
58182         (main): Update.
58183         Fixes a compilation error on BeOS.
58184
58185 2007-03-22  Bruno Haible  <bruno@clisp.org>
58186
58187         * modules/frexpl-tests: New file.
58188         * tests/test-frexpl.c: New file.
58189
58190         * modules/frexpl: New file.
58191         * m4/frexpl.m4: New file.
58192         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
58193         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
58194         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
58195         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
58196         (Depends-on): Add frexpl. Remove isnanl-nolibm.
58197         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
58198
58199 2007-03-22  Bruno Haible  <bruno@clisp.org>
58200
58201         * lib/frexpl.c: Share code with lib/frexp.c.
58202         * modules/mathl (Files): Add lib/frexp.c.
58203         (Depends-on): Add isnanl-nolibm.
58204
58205 2007-03-22  Bruno Haible  <bruno@clisp.org>
58206
58207         * modules/printf-frexp (Files): Add m4/frexp.m4.
58208         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
58209         only if the found frexp function actually works.
58210
58211 2007-03-22  Bruno Haible  <bruno@clisp.org>
58212
58213         * lib/frexp.c: Remove older implementation that uses divisions.
58214
58215 2007-03-21  Bruno Haible  <bruno@clisp.org>
58216
58217         * modules/frexp-tests: New file.
58218         * tests/test-frexp.c: New file.
58219
58220         * modules/frexp: New file.
58221         * lib/frexp.c: New file.
58222         * m4/frexp.m4: New file.
58223         * lib/math_.h (frexp): New declaration.
58224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
58225         REPLACE_FREXP.
58226         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
58227
58228 2007-03-21  Bruno Haible  <bruno@clisp.org>
58229
58230         * modules/isnanl-tests: New file.
58231         * tests/test-isnanl.c: New file.
58232
58233         * modules/isnanl: New file.
58234         * lib/isnanl.h: New file.
58235         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
58236         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
58237         gl_FUNC_ISNANL_WORKS.
58238         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
58239         New macros.
58240
58241 2007-03-21  Bruno Haible  <bruno@clisp.org>
58242
58243         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
58244         lib/isnanl.h.
58245         (Include): Update.
58246         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
58247         * lib/vasnprintf.c: Update.
58248         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
58249         tests/test-isnanl.h, remove tests/test-isnanl.c.
58250         (Makefile.am): Update.
58251         * tests/test-isnanl-nolibm.c: New file.
58252         * tests/test-isnanl.h: New file.
58253         * tests/test-isnanl.c: Remove file.
58254
58255 2007-03-21  Jim Meyering  <jim@meyering.net>
58256
58257         When trying to open ".", treat ESTALE like EACCES.
58258         * lib/savewd.c (savewd_save): Resort to forking not just upon
58259         failure with EACCES, but also when errno is ESTALE.
58260
58261 2007-03-20  Bruno Haible  <bruno@clisp.org>
58262
58263         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
58264         Needed on AIX 5.1. Reported by Matthew Woehlke.
58265
58266 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58267
58268         Suggestions by Bruno Haible:
58269         * lib/acl-internal.h: Include "gettext.h" rather than rolling
58270         our own.
58271         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
58272         * modules/acl (Depends-on): Add gettext.
58273
58274 2007-03-19  Bruno Haible  <bruno@clisp.org>
58275
58276         * modules/iconvme: Remove file.
58277         * lib/iconvme.h: Remove file.
58278         * lib/iconvme.c: Remove file.
58279         * m4/iconvme.m4: Remove file.
58280
58281 2007-03-19  Bruno Haible  <bruno@clisp.org>
58282
58283         * doc/relocatable-maint.texi: Break long shell script line.
58284         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58285
58286 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58287
58288         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
58289         handle file_has_acl.
58290         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
58291         * lib/acl.c: Move header inclusions and related macro defns into
58292         lib/acl-internal.h.
58293         (S_ISLNK): Remove defn, since that's now done for us.
58294         (file_has_acl): Move to lib/file-has-acl.c.
58295         Call acl_trivial if available.  This is the crucial part of the fix.
58296         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
58297         shared within the library.  Rewrite a bit, partly to make it compatible
58298         with the GNU coding style.
58299         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
58300         Remove unnecessary double-quotes.
58301         Don't test for acl_to_text; the build will catch that.
58302         Replace acl_entries if it doesn't exist and it is needed.
58303         Check for -lsec and acl_trivial (as used on Solaris 10).
58304         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
58305         lib/file-has-acl.c.
58306         (Depends-on): Add sys_stat, for S_ISLNK.
58307
58308 2007-03-19  Ben Pfaff  <blp@gnu.org>
58309
58310         * doc/gnulib.texi: Fix typos.
58311         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58312
58313 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58314
58315         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
58316         If size is zero here, buf must be zero.
58317
58318 2007-03-19  Simon Josefsson  <simon@josefsson.org>
58319
58320         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
58321         <bruno@clisp.org>.
58322
58323 2007-03-18  Bruno Haible  <bruno@clisp.org>
58324
58325         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
58326         Suggested by Eric Blake.
58327
58328 2007-03-18  Ben Pfaff  <blp@gnu.org>
58329
58330         * doc/relocatable.texi: Recommend using as prefix a directory
58331         that does not exist and will never be created.  Based on
58332         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
58333         and others.
58334
58335 2007-03-17  Bruno Haible  <bruno@clisp.org>
58336
58337         * lib/fchownat.c: Include lchown.h.
58338
58339 2007-03-17  Bruno Haible  <bruno@clisp.org>
58340
58341         Fix endless loop when the given allocated size was > INT_MAX.
58342         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
58343         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
58344         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
58345         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
58346         * lib/sprintf.c (sprintf): Likewise.
58347
58348 2007-03-17  Bruno Haible  <bruno@clisp.org>
58349
58350         * tests/test-argp-2.sh (func_compare): Output a context diff.
58351
58352 2007-03-17  Bruno Haible  <bruno@clisp.org>
58353
58354         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
58355         locale's decimal-point character.
58356
58357 2007-03-17  Bruno Haible  <bruno@clisp.org>
58358
58359         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
58360         before comparing it. Needed because on some platforms (e.g. x86) a
58361         'long double' occupies less bytes than sizeof (long double).
58362
58363 2007-03-17  Bruno Haible  <bruno@clisp.org>
58364
58365         * tests/test-crc.c (main): Make printf statements 64-bit clean.
58366         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
58367         * tests/test-getaddrinfo.c (simple): Likewise.
58368         * tests/test-read-file.c (main): Likewise.
58369
58370 2007-03-17  Bruno Haible  <bruno@clisp.org>
58371
58372         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
58373
58374 2007-03-17  Bruno Haible  <bruno@clisp.org>
58375
58376         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
58377         unused variable.
58378
58379 2007-03-17  Bruno Haible  <bruno@clisp.org>
58380
58381         * tests/test-c-strcasecmp.c: Include c-strcase.h.
58382         * tests/test-c-strncasecmp.c: Likewise.
58383
58384 2007-03-17  Bruno Haible  <bruno@clisp.org>
58385
58386         * modules/stdlib (Depends-on): Add unistd.
58387         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
58388         Needed for MacOS X 10.3.
58389
58390 2007-03-17  Bruno Haible  <bruno@clisp.org>
58391
58392         * lib/unistr/u-strdup.h: Include <stdlib.h>.
58393
58394 2007-03-17  Bruno Haible  <bruno@clisp.org>
58395
58396         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
58397
58398 2007-03-17  Bruno Haible  <bruno@clisp.org>
58399
58400         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
58401         to reflect files copied from gnulib (with or without modifications).
58402         Suggested by Jim Meyering.
58403
58404 2007-03-17  Eric Blake  <ebb9@byu.net>
58405
58406         * NEWS: Document stdlib change from 2007-02-18.
58407
58408 2007-03-17  Jim Meyering  <jim@meyering.net>
58409
58410         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
58411         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
58412         someone uses a name containing shell meta-characters.
58413         Reported by Alfred M. Szmidt.
58414
58415         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
58416
58417 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58418
58419         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
58420         and copy gettext configuration files only if configure.ac contains
58421         a use of AM_GNU_GETTEXT_VERSION.
58422
58423 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58424
58425         * build-aux/bootstrap (gnulib_name): New variable.
58426         (gnulib_tool_options): Use it.
58427
58428 2007-03-13  Simon Josefsson  <simon@josefsson.org>
58429
58430         * tests/test-des.c: Use new namespace.
58431
58432 2007-03-15  Bruno Haible  <bruno@clisp.org>
58433
58434         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
58435         Reported by James Youngman <jay@gnu.org>.
58436
58437 2007-03-15  Bruno Haible  <bruno@clisp.org>
58438
58439         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
58440         declared prototype. Needed with cc on OSF/1 5.1.
58441
58442 2007-03-15  Bruno Haible  <bruno@clisp.org>
58443
58444         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
58445         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
58446         (struct gl_list_implementation): Add dispose_fn argument to the
58447         'create_empty', 'create' methods.
58448         (struct gl_list_impl_base): Add field 'dispose_fn'.
58449         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
58450         argument.
58451         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
58452         dispose_fn argument.
58453         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
58454         dispose_fn on the dropped values.
58455         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
58456         dispose_fn argument.
58457         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
58458         dropped values.
58459         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
58460         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58461         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
58462         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58463         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
58464         argument.
58465         (gl_tree_list_free): Call dispose_fn on the dropped values.
58466         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
58467         the dropped values.
58468         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58469         Add dispose_fn argument.
58470         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
58471         Call dispose_fn on the dropped values.
58472         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
58473         Add dispose_fn argument.
58474         (gl_sublist_create): Initialize the 'dispose_fn' field.
58475         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
58476         * tests/test-array_list.c (main): Update.
58477         * tests/test-carray_list.c (main): Update.
58478         * tests/test-avltree_list.c (main): Update.
58479         * tests/test-rbtree_list.c (main): Update.
58480         * tests/test-avltreehash_list.c (main): Update.
58481         * tests/test-rbtreehash_list.c (main): Update.
58482         * tests/test-linked_list.c (main): Update.
58483         * tests/test-linkedhash_list.c (main): Update.
58484         * tests/test-array_oset.c (main): Update.
58485
58486 2007-03-15  Bruno Haible  <bruno@clisp.org>
58487
58488         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
58489         (gl_oset_create_empty): Add dispose_fn argument.
58490         (struct gl_oset_implementation): Add dispose_fn argument to
58491         'create_empty' method.
58492         (struct gl_oset_impl_base): Add dispose_fn field.
58493         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
58494         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
58495         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
58496         values.
58497         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
58498         (gl_tree_oset_free): Call dispose_fn on the dropped values.
58499         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58500         dropped value.
58501         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58502         dropped value.
58503         * tests/test-array_oset.c (main): Update.
58504         * tests/test-avltree_oset.c (main): Update.
58505         * tests/test-rbtree_oset.c (main): Update.
58506         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
58507
58508 2007-03-13  Bruno Haible  <bruno@clisp.org>
58509
58510         * tests/test-stdbool.c (i): Update after last patch.
58511
58512 2007-03-12  Bruno Haible  <bruno@clisp.org>
58513
58514         * lib/quotearg.c: Include <wctype.h> early, before the definition of
58515         the iswprint macro. Needed on Solaris 2.5.1.
58516
58517 2007-03-12  Bruno Haible  <bruno@clisp.org>
58518
58519         * tests/test-printf-frexp.c (main): Declare x as volatile.
58520
58521 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58522
58523         * doc/gnulib.texi (Build robot for gnulib): New section.
58524
58525 2007-03-12  Jim Meyering  <jim@meyering.net>
58526
58527         * build-aux/bootstrap: New file.
58528         * build-aux/bootstrap.conf: New file, from coreutils.
58529
58530 2007-03-11  Bruno Haible  <bruno@clisp.org>
58531
58532         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
58533
58534 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58535
58536         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
58537         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
58538         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
58539
58540 2007-03-11  Bruno Haible  <bruno@clisp.org>
58541
58542         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
58543         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
58544
58545 2007-03-11  Bruno Haible  <bruno@clisp.org>
58546
58547         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
58548         formula. Needed for SunPRO C 5.0.
58549
58550 2007-03-11  Bruno Haible  <bruno@clisp.org>
58551
58552         * modules/long-options (Depends-on): Add getopt.
58553
58554 2007-03-11  Bruno Haible  <bruno@clisp.org>
58555
58556         * modules/modechange (Depends-on): Add stdbool.
58557
58558 2007-03-11  Bruno Haible  <bruno@clisp.org>
58559
58560         * modules/i-ring (Depends-on): Add stdbool.
58561
58562 2007-03-11  Bruno Haible  <bruno@clisp.org>
58563
58564         * modules/gc-des (Depends-on): Add stdbool.
58565
58566 2007-03-11  Bruno Haible  <bruno@clisp.org>
58567
58568         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
58569
58570 2007-03-11  Bruno Haible  <bruno@clisp.org>
58571
58572         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
58573
58574 2007-03-11  Bruno Haible  <bruno@clisp.org>
58575
58576         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
58577
58578 2007-03-11  Bruno Haible  <bruno@clisp.org>
58579
58580         * lib/vasnprintf.c (sprintf): Undefine.
58581
58582 2007-03-11  Bruno Haible  <bruno@clisp.org>
58583
58584         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
58585         initializers in SunPRO C and Compaq C compilers.
58586
58587 2007-03-11  Bruno Haible  <bruno@clisp.org>
58588
58589         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
58590         decrementing code ANSI C compliant.
58591
58592 2007-03-11  Bruno Haible  <bruno@clisp.org>
58593
58594         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
58595         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
58596
58597 2007-03-11  Bruno Haible  <bruno@clisp.org>
58598
58599         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
58600         <stdbool.h> substitute doesn't pass.
58601
58602 2007-03-11  Bruno Haible  <bruno@clisp.org>
58603
58604         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
58605
58606 2007-03-11  Bruno Haible  <bruno@clisp.org>
58607
58608         * gnulib-tool (func_create_megatestdir): Create also an autobuild
58609         script, for submission to autobuild.josefsson.org.
58610
58611 2007-03-10  Bruno Haible  <bruno@clisp.org>
58612
58613         * modules/canonicalize-lgpl-tests: New file.
58614         * tests/test-canonicalize-lgpl.sh: New file.
58615         * tests/test-canonicalize-lgpl.c: New file.
58616
58617         * modules/c-strcase-tests: New file.
58618         * tests/test-c-strcase.sh: New file.
58619         * tests/test-c-strcasecmp.c: New file.
58620         * tests/test-c-strncasecmp.c: New file.
58621
58622         * modules/atexit-tests: New file.
58623         * tests/test-atexit.sh: New file.
58624         * tests/test-atexit.c: New file.
58625
58626 2007-03-10  Bruno Haible  <bruno@clisp.org>
58627
58628         * tests/test-binary-io.sh: Use temporary filenames that are not so
58629         likely to clash with those of other tests (in a parallel make).
58630         * tests/test-binary-io.c: Likewise.
58631
58632 2007-03-10  Bruno Haible  <bruno@clisp.org>
58633
58634         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
58635         fallback; use #error instead.
58636         Suggested by Simon Josefsson.
58637
58638 2007-03-10  Bruno Haible  <bruno@clisp.org>
58639
58640         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
58641         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
58642         first and the last.
58643
58644 2007-03-10  Bruno Haible  <bruno@clisp.org>
58645
58646         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
58647
58648 2007-03-10  Bruno Haible  <bruno@clisp.org>
58649
58650         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
58651         "make distcheck".
58652         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
58653         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
58654         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
58655
58656 2007-03-10  Bruno Haible  <bruno@clisp.org>
58657
58658         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
58659         variable.
58660         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
58661         variable.
58662
58663 2007-03-09  Eric Blake  <ebb9@byu.net>
58664         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
58665
58666         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
58667         types are not being provided by gnulib.
58668         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
58669         types are supported.
58670
58671 2007-03-10  Bruno Haible  <bruno@clisp.org>
58672
58673         * lib/stdio_.h (__attribute__): New macro.
58674         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
58675         vsprintf): Specify __attribute__ __format__ for GCC.
58676         Suggested by Eric Blake.
58677
58678 2007-03-09  Bruno Haible  <bruno@clisp.org>
58679
58680         * modules/printf-posix-tests: New file.
58681         * tests/test-printf-posix.sh: New file.
58682         * tests/test-printf-posix.c: New file.
58683
58684         * modules/printf-posix: New file.
58685         * lib/printf.c: New file.
58686         * m4/printf-posix-rpl.m4: New file.
58687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
58688         REPLACE_PRINTF.
58689         * lib/stdio_.h (printf): New declaration.
58690         (format, __format__, ____printf____, ____scanf____, ____strftime____,
58691         ____strfmon____): New macros.
58692         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
58693         REPLACE_PRINTF.
58694
58695 2007-03-09  Bruno Haible  <bruno@clisp.org>
58696
58697         * tests/test-vasnprintf-posix2.sh: New file.
58698         * tests/test-vasnprintf-posix2.c: New file.
58699         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
58700         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
58701         (Makefile.am): Activate test-vasnprintf-posix2.sh.
58702
58703         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
58704         a locale dependent decimal point, rather than always '.'.
58705
58706 2007-03-09  Eric Blake  <ebb9@byu.net>
58707
58708         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
58709         spite of platforms like Tandem/NSK that define it to -1.
58710
58711 2007-03-08  Bruno Haible  <bruno@clisp.org>
58712
58713         * modules/vprintf-posix-tests: New file.
58714         * tests/test-vprintf-posix.sh: New file.
58715         * tests/test-vprintf-posix.c: New file.
58716         * tests/test-printf-posix.h: New file.
58717
58718         * modules/vprintf-posix: New file.
58719         * lib/vprintf.c: New file.
58720         * m4/vprintf-posix.m4: New file.
58721         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
58722         REPLACE_VPRINTF.
58723         * lib/stdio_.h (vprintf): New declaration.
58724         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
58725         REPLACE_VPRINTF.
58726
58727 2007-03-08  Bruno Haible  <bruno@clisp.org>
58728
58729         * modules/fprintf-posix-tests: New file.
58730         * tests/test-fprintf-posix.sh: New file.
58731         * tests/test-fprintf-posix.c: New file.
58732
58733         * modules/fprintf-posix: New file.
58734         * lib/fprintf.c: New file.
58735         * m4/fprintf-posix.m4: New file.
58736         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
58737         REPLACE_FPRINTF.
58738         * lib/stdio_.h (fprintf): New declaration.
58739         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
58740         REPLACE_FPRINTF.
58741
58742 2007-03-08  Bruno Haible  <bruno@clisp.org>
58743
58744         * modules/vfprintf-posix-tests: New file.
58745         * tests/test-vfprintf-posix.sh: New file.
58746         * tests/test-vfprintf-posix.c: New file.
58747         * tests/test-fprintf-posix.h: New file.
58748         * tests/test-fprintf-posix.out: New file.
58749
58750         * modules/vfprintf-posix: New file.
58751         * lib/vfprintf.c: New file.
58752         * m4/vfprintf-posix.m4: New file.
58753         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
58754         REPLACE_VFPRINTF.
58755         * lib/stdio_.h (vfprintf): New declaration.
58756         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
58757         REPLACE_VFPRINTF.
58758
58759 2007-03-08  Bruno Haible  <bruno@clisp.org>
58760
58761         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
58762
58763 2007-03-08  Bruno Haible  <bruno@clisp.org>
58764
58765         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
58766         instead of 'expr' invocations.
58767         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58768         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58769         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58770         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58771         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58772         Suggested by Paul Eggert.
58773
58774 2007-03-08  Bruno Haible  <bruno@clisp.org>
58775
58776         * modules/fseterr-tests: New file.
58777         * tests/test-fseterr.c: New file.
58778
58779         * modules/fseterr: New file.
58780         * lib/fseterr.h: New file.
58781         * lib/fseterr.c: New file.
58782
58783 2007-03-08  Bruno Haible  <bruno@clisp.org>
58784
58785         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
58786         * lib/getopt_.h: Likewise.
58787         * lib/mbswidth.h: Likewise.
58788         * lib/setenv.h: Likewise.
58789         * lib/vasnprintf.h: Likewise.
58790         * lib/vasprintf.h: Likewise.
58791         * lib/verror.h: Likewise.
58792         * lib/xsetenv.h: Likewise.
58793         * lib/xvasprintf.h: Likewise.
58794
58795 2007-03-08  Jim Meyering  <jim@meyering.net>
58796
58797         * users.txt: Add parted.
58798
58799         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
58800
58801 2007-03-07  Bruno Haible  <bruno@clisp.org>
58802
58803         * m4/printf.m4: Make the shell script snippets copy&pastable.
58804
58805 2007-03-02  Bruno Haible  <bruno@clisp.org>
58806
58807         * lib/netinet_in_.h: New file.
58808         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
58809         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
58810         * modules/netinet_in (Files): Add lib/netinet_in_.h.
58811         (Depends-on): Add absolute-header.
58812         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
58813         into netinet/in.h.
58814
58815 2007-03-03  Bruno Haible  <bruno@clisp.org>
58816
58817         * lib/sys_select_.h: New file.
58818         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
58819         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
58820         * modules/sys_select (Files): Add lib/sys_select_.h.
58821         (Depends-on): Add absolute-header.
58822         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
58823         into sys/select.h.
58824
58825 2007-03-02  Bruno Haible  <bruno@clisp.org>
58826
58827         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
58828         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
58829         values.
58830         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
58831         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
58832         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
58833         * modules/sys_socket (Depends-on): Add absolute-header.
58834         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
58835         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
58836         (Include): Remove requirement of inclusion of <sys/types.h>.
58837
58838 2007-03-02  Bruno Haible  <bruno@clisp.org>
58839
58840         * lib/byteswap_.h (bswap_32): Fix formula.
58841
58842 2007-03-06  Bruno Haible  <bruno@clisp.org>
58843
58844         * modules/sprintf-posix-tests: New file.
58845         * tests/test-sprintf-posix.c: New file.
58846
58847         * modules/sprintf-posix: New file.
58848         * lib/sprintf.c: New file.
58849         * m4/sprintf-posix.m4: New file.
58850         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
58851         REPLACE_SPRINTF.
58852         * lib/stdio_.h (sprintf): New declaration.
58853         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
58854         REPLACE_SPRINTF.
58855
58856 2007-03-06  Bruno Haible  <bruno@clisp.org>
58857
58858         * modules/vsprintf-posix-tests: New file.
58859         * tests/test-vsprintf-posix.c: New file.
58860         * tests/test-sprintf-posix.h: New file.
58861
58862         * modules/vsprintf-posix: New file.
58863         * lib/vsprintf.c: New file.
58864         * m4/vsprintf-posix.m4: New file.
58865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
58866         REPLACE_VSPRINTF.
58867         * lib/stdio_.h (vsprintf): New declaration.
58868         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
58869         REPLACE_VSPRINTF.
58870
58871 2007-03-06  Bruno Haible  <bruno@clisp.org>
58872
58873         * modules/vsnprintf (Depend-on): Remove minmax.
58874
58875 2007-03-06  Bruno Haible  <bruno@clisp.org>
58876
58877         * modules/snprintf-posix-tests: New file.
58878         * tests/test-snprintf-posix.c: New file.
58879
58880         * modules/snprintf-posix: New file.
58881         * m4/snprintf-posix.m4: New file.
58882         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
58883         gl_FUNC_SNPRINTF.
58884         (gl_FUNC_SNPRINTF): Invoke it.
58885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
58886         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
58887         is set.
58888         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
58889
58890 2007-03-06  Bruno Haible  <bruno@clisp.org>
58891
58892         * modules/vsnprintf-posix-tests: New file.
58893         * tests/test-vsnprintf-posix.c: New file.
58894         * tests/test-snprintf-posix.h: New file.
58895
58896         * modules/vsnprintf-posix: New file.
58897         * m4/vsnprintf-posix.m4: New file.
58898         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
58899         gl_FUNC_VSNPRINTF.
58900         (gl_FUNC_VSNPRINTF): Invoke it.
58901         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58902         * lib/stdio_.h (vsnprintf): Define as a replacement if
58903         REPLACE_VSNPRINTF is set.
58904         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58905
58906 2007-03-06  Bruno Haible  <bruno@clisp.org>
58907
58908         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58909         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58910
58911 2007-03-06  Bruno Haible  <bruno@clisp.org>
58912
58913         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58914         (asinl): Declare also if HAVE_DECL_ASINL is set.
58915         (atanl): Declare also if HAVE_DECL_ATANL is set.
58916         (ceill): Declare also if HAVE_DECL_CEILL is set.
58917         (cosl): Declare also if HAVE_DECL_COSL is set.
58918         (expl): Declare also if HAVE_DECL_EXPL is set.
58919         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58920         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58921         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58922         (logl): Declare also if HAVE_DECL_LOGL is set.
58923         (sinl): Declare also if HAVE_DECL_SINL is set.
58924         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58925         (tanl): Declare also if HAVE_DECL_TANL is set.
58926         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58927         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58928         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58929         declaration of frexpl, ldexpl.
58930         * modules/printf-frexpl (Depends-on): Add math.
58931         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58932
58933 2007-03-05  Bruno Haible  <bruno@clisp.org>
58934
58935         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58936         frexpl and ldexpl are declared.
58937         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58938
58939 2007-03-05  Bruno Haible  <bruno@clisp.org>
58940
58941         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58942         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58943
58944 2007-03-05  Bruno Haible  <bruno@clisp.org>
58945
58946         * lib/stdio_.h: Include <stddef.h>.
58947
58948 2007-03-05  Bruno Haible  <bruno@clisp.org>
58949
58950         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58951
58952 2007-03-05  Bruno Haible  <bruno@clisp.org>
58953
58954         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58955         NetBSD 4, from Ralf Wildenhues.
58956
58957 2007-03-04  Bruno Haible  <bruno@clisp.org>
58958
58959         * lib/vasprintf.h: Update #if logic for the case when the functions
58960         exist but are overridden.
58961
58962 2007-03-04  Bruno Haible  <bruno@clisp.org>
58963
58964         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58965         implementations: glibc-2.4 and MacOS X 10.3.
58966         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58967         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58968         * tests/test-vasprintf-posix.c (test_function): Likewise.
58969
58970 2007-03-04  Bruno Haible  <bruno@clisp.org>
58971
58972         * modules/vasprintf-posix-tests: New file.
58973         * tests/test-vasprintf-posix.c: New file.
58974
58975         * modules/vasprintf-posix: New file.
58976         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58977         defined.
58978         * m4/vasprintf-posix.m4: New file.
58979         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58980         gl_FUNC_VASPRINTF.
58981         (gl_FUNC_VASPRINTF): Invoke it.
58982         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58983         here.
58984         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58985
58986 2007-03-04  Bruno Haible  <bruno@clisp.org>
58987
58988         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58989         REPLACE_GETTIMEOFDAY.
58990         * modules/sys_time (Makefile.am): Likewise.
58991         * m4/sys_time_h.m4: Likewise.
58992         * m4/gettimeofday.m4: Likewise.
58993
58994 2007-03-04  Bruno Haible  <bruno@clisp.org>
58995
58996         * modules/vasnprintf-posix-tests: New file.
58997         * tests/test-vasnprintf-posix.c: New file.
58998
58999         * modules/vasnprintf-posix: New file.
59000         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
59001         printf-frexpl.h.
59002         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
59003         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
59004         REPLACE_VASNPRINTF is defined.
59005         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
59006         gl_FUNC_VASNPRINTF.
59007         (gl_FUNC_VASNPRINTF): Invoke it.
59008         * m4/vasnprintf-posix.m4: New file.
59009         * m4/printf.m4: New file.
59010
59011 2007-03-04  Bruno Haible  <bruno@clisp.org>
59012
59013         Compile progreloc.c only if --enable-relocatable is specified.
59014         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
59015         if --enable-relocatable was specified.
59016         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
59017         lib_SOURCES.
59018
59019 2007-03-04  Jim Meyering  <jim@meyering.net>
59020
59021         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
59022         Use it consistently, rather than enumerating errno constants.
59023
59024 2007-03-04  Bruno Haible  <bruno@clisp.org>
59025
59026         * modules/xvasprintf-tests: New file.
59027         * tests/test-xvasprintf.c: New file.
59028
59029         * modules/vasprintf-tests: New file.
59030         * tests/test-vasprintf.c: New file.
59031
59032         * modules/vasnprintf-tests: New file.
59033         * tests/test-vasnprintf.c: New file.
59034
59035         * modules/vsnprintf-tests: New file.
59036         * tests/test-vsnprintf.c: New file.
59037
59038         * modules/snprintf-tests: New file.
59039         * tests/test-snprintf.c: New file.
59040
59041 2007-03-04  Bruno Haible  <bruno@clisp.org>
59042
59043         Compile relocatable.c only if --enable-relocatable is specified.
59044         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
59045         gl_RELOCATABLE_LIBRARY.
59046         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
59047         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
59048         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
59049         gl_RELOCATABLE_LIBRARY.
59050         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
59051         (Makefile.am): Remove lib_SOURCES.
59052         * modules/relocatable-lib-lgpl (configure.ac): Invoke
59053         gl_RELOCATABLE_LIBRARY.
59054         (Makefile.am): Remove lib_SOURCES.
59055         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
59056         always.
59057         * modules/relocatable-prog-wrapper (configure.ac): Invoke
59058         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
59059
59060 2007-03-04  Bruno Haible  <bruno@clisp.org>
59061
59062         * modules/argmatch-tests: New file.
59063         * tests/test-argmatch.c: New file.
59064
59065         * tests/test-allocsa.c (main): Halve the number of loop runs.
59066
59067         * modules/alloca-opt-tests: New file.
59068         * tests/test-alloca-opt.c: New file.
59069
59070 2007-03-04  Jim Meyering  <jim@meyering.net>
59071
59072         Work around difference between Linux ACLs and Solaris 10 ZFS.
59073         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
59074         for EINVAL.
59075
59076 2007-03-03  Bruno Haible  <bruno@clisp.org>
59077
59078         * modules/relocatable-prog (Depends-on): Add back progreloc's
59079         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
59080
59081 2007-03-03  Bruno Haible  <bruno@clisp.org>
59082
59083         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
59084         * modules/relocatable-lib: New file.
59085
59086 2007-03-03  Bruno Haible  <bruno@clisp.org>
59087
59088         * modules/relocatable-prog: Renamed from modules/relocatable.
59089         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
59090
59091 2007-03-03  Bruno Haible  <bruno@clisp.org>
59092
59093         * modules/relocatable-script (Files): Add doc/relocatable.texi,
59094         m4/relocatable-lib.m4.
59095         (Depends-on): Remove 'relocatable'.
59096         (configure.ac): Add gl_RELOCATABLE_NOP.
59097
59098 2007-03-03  Bruno Haible  <bruno@clisp.org>
59099
59100         * modules/relocatable-prog-wrapper: New file.
59101         * modules/relocatable (Depends-on): Add it. Remove all other
59102         dependencies except progname.
59103         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
59104
59105         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
59106         (gl_FUNC_STRERROR): Nop.
59107         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
59108
59109         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
59110         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
59111
59112         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
59113         (gl_FUNC_READLINK): Update.
59114
59115         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
59116
59117 2007-03-03  Bruno Haible  <bruno@clisp.org>
59118
59119         * lib/xreadlink.c: Include <unistd.h> unconditionally.
59120         * modules/xreadlink (Depends-on): Add unistd.
59121         * modules/xreadlink-with-size (Depends-on): Likewise.
59122
59123 2007-03-03  Bruno Haible  <bruno@clisp.org>
59124
59125         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
59126         extracted from gt_FUNC_SETENV.
59127         (gt_FUNC_SETENV): Remove macro.
59128         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
59129         remove gt_FUNC_SETENV.
59130
59131 2007-03-03  Bruno Haible  <bruno@clisp.org>
59132
59133         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
59134         ENABLE_RELOCATABLE here.
59135         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
59136
59137 2007-03-03  Bruno Haible  <bruno@clisp.org>
59138
59139         * modules/rbtreehash-list-tests (Depends-on): Add progname.
59140         * tests/test-rbtreehash_list.c: Include progname.h.
59141         (main): Call set_program_name.
59142
59143         * modules/rbtree-oset-tests (Depends-on): Add progname.
59144         * tests/test-rbtree_oset.c: Include progname.h.
59145         (main): Call set_program_name.
59146
59147         * modules/rbtree-list-tests (Depends-on): Add progname.
59148         * tests/test-rbtree_list.c: Include progname.h.
59149         (main): Call set_program_name.
59150
59151         * modules/linked-list-tests (Depends-on): Add progname.
59152         * tests/test-linked_list.c: Include progname.h.
59153         (main): Call set_program_name.
59154
59155 2007-03-03  Bruno Haible  <bruno@clisp.org>
59156
59157         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
59158         All uses of __restrict changed to _Restrict_.
59159         * lib/glob_.h (__restrict): Remove macro.
59160
59161 2007-03-02  Bruno Haible  <bruno@clisp.org>
59162
59163         * modules/gettext (configure.ac): Require gettext infrastructure
59164         from version 0.16.1.
59165
59166 2007-03-02  Bruno Haible  <bruno@clisp.org>
59167
59168         * modules/linkedhash-list-tests (Depends-on): Add progname.
59169         * tests/test-linkedhash_list.c: Include progname.h.
59170         (main): Call set_program_name.
59171
59172         * modules/carray-list-tests (Depends-on): Add progname.
59173         * tests/test-carray_list.c: Include progname.h.
59174         (main): Call set_program_name.
59175
59176         * modules/avltreehash-list-tests (Depends-on): Add progname.
59177         * tests/test-avltreehash_list.c: Include progname.h.
59178         (main): Call set_program_name.
59179
59180         * modules/avltree-oset-tests (Depends-on): Add progname.
59181         * tests/test-avltree_oset.c: Include progname.h.
59182         (main): Call set_program_name.
59183
59184         * modules/avltree-list-tests (Depends-on): Add progname.
59185         * tests/test-avltree_list.c: Include progname.h.
59186         (main): Call set_program_name.
59187
59188         * modules/array-oset-tests (Depends-on): Add progname.
59189         * tests/test-array_oset.c: Include progname.h.
59190         (main): Call set_program_name.
59191
59192         * modules/array-list-tests (Depends-on): Add progname.
59193         * tests/test-array_list.c: Include progname.h.
59194         (main): Call set_program_name.
59195
59196         * modules/argp-tests (Depends-on): Add progname.
59197         * tests/test-argp.c: Include argp.h first. Include progname.h.
59198         (main): Call set_program_name.
59199
59200 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
59201
59202         * doc/gnulib-tool.texi (Initial import): Reword description of
59203         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
59204         limited effect even if defined after the first system include.
59205
59206 2007-03-01  Bruno Haible  <bruno@clisp.org>
59207
59208         * build-aux/config.libpath: Update to libtool-1.5.22.
59209         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59210
59211 2007-03-01  Bruno Haible  <bruno@clisp.org>
59212
59213         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
59214         foo_CFLAGS.
59215         Reported by Ralf Wildenhues.
59216
59217 2007-03-01  Bruno Haible  <bruno@clisp.org>
59218
59219         * build-aux/install-reloc: Remove object files left over by some
59220         compilers.
59221         Reported by Ralf Wildenhues.
59222
59223 2007-03-01  Bruno Haible  <bruno@clisp.org>
59224
59225         * build-aux/install-reloc: Break long lines.
59226
59227 2007-03-01  Bruno Haible  <bruno@clisp.org>
59228
59229         * doc/relocatable.texi: Document that it may not work on OpenBSD.
59230         Reported by Ralf Wildenhues.
59231
59232 2007-03-01  Bruno Haible  <bruno@clisp.org>
59233
59234         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
59235         include ordering constraints.
59236
59237 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59238
59239         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
59240         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
59241         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
59242         as another example.
59243         * lib/time_.h: Fix misspelling.
59244         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59245         Require gl_HEADER_TIME_H_DEFAULTS.
59246         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
59247         * m4/time_r.m4 (gl_TIME_R): Likewise.
59248         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
59249
59250 2007-03-01  Bruno Haible  <bruno@clisp.org>
59251
59252         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
59253         * m4/utimens.m4 (gl_UTIMENS): Likewise.
59254
59255 2007-03-01  Jim Meyering  <jim@meyering.net>
59256
59257         * modules/xreadlink (Maintainer): Add my name.
59258         * modules/xreadlink-with-size (Depends-on): Alphabetize.
59259
59260 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
59261             Bruno Haible  <bruno@clisp.org>
59262
59263         * build-aux/install-reloc: Compile also c-ctype.c.
59264         * build-aux/relocatable.sh.in: New file.
59265         * doc/relocatable.texi: New file.
59266         * doc/relocatable-maint.texi: New file.
59267         * doc/gnulib.texi: Include relocatable-maint.texi.
59268         * lib/progreloc.c: Include unistd.h unconditionally.
59269         * lib/relocwrapper.c: Include unistd.h unconditionally.
59270         Include c-ctype.h.
59271         (add_dotbin): Use c_tolower.
59272         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
59273         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
59274         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
59275         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
59276         to m4/relocatable-lib.m4.
59277         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
59278         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
59279         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
59280         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
59281         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
59282         * modules/relocatable: New file.
59283         * modules/relocatable-lib: New file.
59284         * modules/relocatable-script: New file.
59285
59286 2007-02-28  Bruno Haible  <bruno@clisp.org>
59287
59288         Import --enable-relocatable infrastructure.
59289         * build-aux/config.libpath: New file, from GNU gettext.
59290         * build-aux/install-reloc: New file, from GNU gettext.
59291         * build-aux/reloc-ldflags: New file, from GNU gettext.
59292         * lib/relocatable.h: New file, from GNU gettext.
59293         * lib/relocatable.c: New file, from GNU gettext.
59294         * lib/relocwrapper.c: New file, from GNU gettext.
59295         * m4/relocatable.m4: New file, from GNU gettext.
59296
59297 2007-02-28  Bruno Haible  <bruno@clisp.org>
59298
59299         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
59300
59301         * modules/xreadlink: New file, from GNU gettext with modifications.
59302         * lib/xreadlink.c: New file, from GNU gettext.
59303         * lib/xreadlink.h: Add comments.
59304         (xreadlink): New declaration.
59305
59306         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
59307         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
59308         lib/xreadlink-with-size.c.
59309         (configure.ac): Remove gl_XREADLINK invocation.
59310         (Makefile.am): Augment lib_SOURCES.
59311         * m4/xreadlink.m4: Remove file.
59312         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
59313         (xreadlink_with_size): Renamed from xreadink.
59314         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
59315         * modules/canonicalize (Depends-on): Replace xreadlink with
59316         xreadlink-with-size.
59317         * lib/canonicalize.c (canonicalize_filename_mode): Update.
59318
59319 2007-02-25  Jim Meyering  <jim@meyering.net>
59320
59321         * build-aux/announce-gen: When complaining about excess arguments,
59322         list them.
59323
59324 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59325
59326         * README: Document signed integer overflow situation more
59327         accurately.
59328
59329 2007-02-25  Bruno Haible  <bruno@clisp.org>
59330
59331         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
59332         'a' or 'A' conversion.
59333
59334 2007-02-25  Bruno Haible  <bruno@clisp.org>
59335
59336         * modules/filename: Renamed from modules/pathname.
59337         (Files): Replace lib/pathname.h with lib/filename.h. Replace
59338         lib/concatpath.c with lib/concat-filename.c.
59339         (Makefile.am): Update.
59340         (Include): Replace pathname.h with filename.h.
59341         * lib/filename.h: Renamed from lib/pathname.h.
59342         (concatenated_filename): Renamed from concatenated_pathname.
59343         * lib/concat-filename.c: Renamed from lib/concatpath.c.
59344         (concatenated_filename): Renamed from concatenated_pathname.
59345         * lib/findprog.c: Include filename.h instead of pathname.h.
59346         (find_in_path): Update.
59347         * lib/javacomp.c: Include filename.h instead of pathname.h.
59348         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
59349         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
59350         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
59351         is_oldgcj_14_13_usable, is_javac_usable): Update.
59352         * lib/javaexec.c: Include filename.h instead of pathname.h.
59353         (execute_java_class): Update.
59354         * modules/findprog: Update.
59355         * modules/javacomp: Update.
59356         * modules/javaexec: Update.
59357         * MODULES.html.sh (File system functions): Add 'filename', remove
59358         'pathname'.
59359
59360 2007-02-25  Bruno Haible  <bruno@clisp.org>
59361
59362         * modules/printf-frexpl-tests: New file.
59363         * tests/test-printf-frexpl.c: New file.
59364
59365         * modules/printf-frexpl: New file.
59366         * lib/printf-frexpl.h: New file.
59367         * lib/printf-frexpl.c: New file.
59368         * m4/printf-frexpl.m4: New file.
59369
59370 2007-02-25  Bruno Haible  <bruno@clisp.org>
59371
59372         * modules/printf-frexp-tests: New file.
59373         * tests/test-printf-frexp.c: New file.
59374
59375         * modules/printf-frexp: New file.
59376         * lib/printf-frexp.h: New file.
59377         * lib/printf-frexp.c: New file.
59378         * m4/printf-frexp.m4: New file.
59379
59380 2007-02-25  Bruno Haible  <bruno@clisp.org>
59381
59382         Assume automake >= 1.10 for the tests.
59383         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
59384         * modules/arctwo-tests: Likewise.
59385         * modules/argp-tests: Likewise.
59386         * modules/avltree-list-tests: Likewise.
59387         * modules/avltree-oset-tests: Likewise.
59388         * modules/avltreehash-list-tests: Likewise.
59389         * modules/carray-list-tests: Likewise.
59390         * modules/crc-tests: Likewise.
59391         * modules/des-tests: Likewise.
59392         * modules/gc-arcfour-tests: Likewise.
59393         * modules/gc-arctwo-tests: Likewise.
59394         * modules/gc-des-tests: Likewise.
59395         * modules/gc-hmac-md5-tests: Likewise.
59396         * modules/gc-hmac-sha1-tests: Likewise.
59397         * modules/gc-md2-tests: Likewise.
59398         * modules/gc-md4-tests: Likewise.
59399         * modules/gc-md5-tests: Likewise.
59400         * modules/gc-pbkdf2-sha1-tests: Likewise.
59401         * modules/gc-rijndael-tests: Likewise.
59402         * modules/gc-sha1-tests: Likewise.
59403         * modules/gc-tests: Likewise.
59404         * modules/getaddrinfo-tests: Likewise.
59405         * modules/hmac-md5-tests: Likewise.
59406         * modules/hmac-sha1-tests: Likewise.
59407         * modules/linked-list-tests: Likewise.
59408         * modules/linkedhash-list-tests: Likewise.
59409         * modules/lock-tests: Likewise.
59410         * modules/md2-tests: Likewise.
59411         * modules/md4-tests: Likewise.
59412         * modules/md5-tests: Likewise.
59413         * modules/rbtree-list-tests: Likewise.
59414         * modules/rbtree-oset-tests: Likewise.
59415         * modules/rbtreehash-list-tests: Likewise.
59416         * modules/read-file-tests: Likewise.
59417         * modules/rijndael-tests: Likewise.
59418         * modules/stdint-tests: Likewise.
59419         * modules/tls-tests: Likewise.
59420
59421 2007-02-24  Bruno Haible  <bruno@clisp.org>
59422
59423         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
59424         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
59425         function; instead check whether isnan with a double argument links.
59426         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
59427         function; instead check whether isnan with a 'long double' argument
59428         links.
59429         Reported by Eric Blake <ebb9@byu.net>.
59430
59431 2007-02-24  Bruno Haible  <bruno@clisp.org>
59432
59433         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
59434         defined.
59435         * lib/isnanl.c: Remove all code. Just include isnan.c.
59436         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
59437
59438 2007-02-25  Jim Meyering  <jim@meyering.net>
59439
59440         Avoid conflicting types for 'unsetenv' on FreeBSD.
59441         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
59442         conflicting with FreeBSD's (5.0 and 6.1) function declaration
59443         in stdlib.h.
59444
59445 2007-02-24  Bruno Haible  <bruno@clisp.org>
59446
59447         * modules/isnanl-nolibm-tests: New file.
59448         * tests/test-isnanl.c: New file.
59449
59450         * modules/isnanl-nolibm: New file.
59451         * lib/isnanl.h: New file.
59452         * lib/isnanl.c: New file.
59453         * m4/isnanl.m4: New file.
59454
59455 2007-02-24  Bruno Haible  <bruno@clisp.org>
59456
59457         * modules/isnan-nolibm-tests: New file.
59458         * tests/test-isnan.c: New file.
59459
59460         * modules/isnan-nolibm: New file.
59461         * lib/isnan.h: New file.
59462         * lib/isnan.c: New file.
59463         * m4/isnan.m4: New file.
59464
59465 2007-02-24  Bruno Haible  <bruno@clisp.org>
59466
59467         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
59468         assume that an exponent fits in 20 bits.
59469
59470 2007-02-24  Jim Meyering  <jim@meyering.net>
59471
59472         * m4/regex.m4: Update the description of the configure-time option,
59473         --without-included-regex, to state accurately what the defaults are,
59474         and perhaps to give people an idea why using this option is risky.
59475
59476 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59477
59478         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
59479         loops on small arguments.  This attempts to avoid the problem
59480         Bruno Haible reported for AIX 4.3.2 in
59481         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
59482
59483 2007-02-23  Bruno Haible  <bruno@clisp.org>
59484
59485         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
59486         Needed for help2man.
59487
59488 2007-02-23  Karl Berry  <karl@gnu.org>
59489
59490         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
59491         exists, foo.h should be cvs-ignored, not committed.
59492
59493 2007-02-23  Eric Blake  <ebb9@byu.net>
59494
59495         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
59496         * lib/stat-time.h (includes): Likewise.
59497         * lib/utimecmp.c (includes): Likewise.
59498         * lib/utimens.h (includes): Likewise.
59499         * lib/getdate.y (includes): Also include "timespec.h" for use
59500         internal to the module.
59501         * modules/utimens (Depends-on): Revert yesterday's patch.
59502         * modules/nanosleep (Depends-on): Add missing dependency.
59503
59504 2007-02-22  Bruno Haible  <bruno@clisp.org>
59505
59506         * lib/glob.c: Don't include getlogin_r.h.
59507
59508 2007-02-22  Jim Meyering  <jim@meyering.net>
59509
59510         * modules/utimens (Depends-on): Add timespec, required for
59511         utimens.h's inclusion of timespec.h.
59512
59513 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
59514
59515         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
59516         long unreadable paths in GNU/Linux.  Problem reported by Andreas
59517         Schwab in
59518         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
59519         I'll try to think of a better way to fix the Solaris problem.
59520
59521         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
59522         like glibc; on Solaris 10, it fails with errno == EINVAL.
59523         POSIX says the behavior is unspecified if the first argument is NULL,
59524         so play it safe and never pass NULL to the system getcwd.
59525
59526 2007-02-21  Jim Meyering  <jim@meyering.net>
59527
59528         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
59529         of gettimeofday.  It would conflict with the one now always
59530         provided via sys_time_.h.  Reported by Matthew Woehlke, as
59531         an IRIX 6.5 build failure.
59532
59533 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
59534
59535         Minor fixups to port to Solaris 10 with Sun C 5.8.
59536         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
59537         * modules/getcwd (Depends-on): Add dirfd.
59538         * lib/putenv.c (putenv): #undef it.
59539         (rpl_putenv): New decl.
59540         (malloc, free): Include <stdlib.h> rather than prototyping separately.
59541
59542 2007-02-20  Bruno Haible  <bruno@clisp.org>
59543
59544         * modules/stdio-tests: New file.
59545         * tests/test-stdio.c: New file.
59546
59547         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
59548         (Depends-on): Add stdio.
59549         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59550         (Include): Use <stdio.h> instead of vsnprintf.h.
59551         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59552         HAVE_DECL_VSNPRINTF.
59553         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
59554
59555         * modules/snprintf (Files): Remove lib/snprintf.h.
59556         (Depends-on): Add stdio.
59557         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59558         (Include): Use <stdio.h> instead of snprintf.h.
59559         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59560         HAVE_DECL_SNPRINTF.
59561         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
59562         * lib/getaddrinfo.c: Likewise.
59563
59564         * modules/stdio: New file.
59565         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
59566         * lib/snprintf.h: Remove file.
59567         * lib/vsnprintf.h: Remove file.
59568         * lib/.cppi-disable: Remove snprintf.h.
59569         * m4/stdio_h.m4: New file.
59570         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
59571
59572 2007-02-20  Jim Meyering  <jim@meyering.net>
59573
59574         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
59575         used by e.g., mingw.  From Bruno Haible.
59576
59577 2007-02-19  Bruno Haible  <bruno@clisp.org>
59578
59579         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
59580         warnings.
59581         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59582
59583 2007-02-19  Bruno Haible  <bruno@clisp.org>
59584
59585         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
59586         from mingw users.
59587
59588 2007-02-19  Bruno Haible  <bruno@clisp.org>
59589
59590         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
59591         warnings.
59592         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
59593
59594 2007-02-19  Jim Meyering  <jim@meyering.net>
59595
59596         Don't use FD after a successful "fdopendir (fd)".
59597         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
59598         Reset it by calling dirfd on the just-obtained DIR*.
59599
59600         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
59601         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
59602
59603 2007-02-18  Bruno Haible  <bruno@clisp.org>
59604
59605         * lib/readlink.c: Include <unistd.h>.
59606         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
59607         HAVE_READLINK.
59608         * modules/readlink (Depends-on): Add unistd.
59609         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59610         (Include): Add <unistd.h>.
59611
59612         * lib/getlogin_r.h: Remove file.
59613         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
59614         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
59615         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
59616         HAVE_DECL_GETLOGIN_R.
59617         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
59618         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59619         (Include): Use <unistd.h> instead of getlogin_r.h.
59620
59621         * lib/getcwd.h: Remove file.
59622         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
59623         * lib/xgetcwd.c: Likewise.
59624         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
59625         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
59626         * modules/getcwd (Files): Remove lib/getcwd.h.
59627         (Depends-on): Add unistd.
59628         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59629         (Include): Use <unistd.h> instad of getcwd.h.
59630
59631         * lib/ftruncate.c: Include <unistd.h> first.
59632         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
59633         Set HAVE_FTRUNCATE.
59634         * modules/ftruncate (Depends-on): Add unistd.
59635         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59636
59637         * lib/fchdir.c: Include <unistd.h> first.
59638         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
59639         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
59640         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
59641         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59642         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
59643
59644         * lib/dup2.c: Include <unistd.h> first.
59645         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
59646         HAVE_DUP2.
59647         * modules/dup2 (Depends-on): Add unistd.
59648         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59649
59650         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
59651         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
59652         REPLACE_CHOWN. Don't define chown as a macro here.
59653         * modules/chown (Depends-on): Add unistd.
59654         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59655
59656         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
59657         Add definition for GL_LINK_WARNING.
59658         (chown, dup2): New declarations.
59659         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
59660         link warning.
59661         (ftruncate): New declaration.
59662         (getcwd): New declaration, taken from old getcwd.h.
59663         (getlogin_r): New declaration, taken from old getlogin_r.h.
59664         (readlink): New declaration.
59665         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
59666         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
59667         (gl_PREREQ_UNISTD): Remove macro.
59668         (gl_UNISTD_MODULE_INDICATOR): New macro.
59669         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
59670         many new variables. Don't set UNISTD_H.
59671         * modules/unistd (Description): Change.
59672         (Depends-on): Add link-warning.
59673         (configure.ac): Update.
59674         (Makefile.am): Create unistd.h always. Substitute many new variables
59675         into it.
59676
59677 2007-02-18  Bruno Haible  <bruno@clisp.org>
59678
59679         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
59680         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
59681         HAVE_GETSUBOPT.
59682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
59683         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
59684         * lib/getsubopt.h: Remove file.
59685         * modules/getsubopt (Files): Remove lib/getsubopt.h.
59686         (Depends-on): Add stdlib.
59687         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59688         (Includes): Use <stdlib.h> instead of getsubopt.h.
59689         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
59690         Set HAVE_GETSUBOPT.
59691         * lib/getsubopt.c: Don't include getsubopt.h.
59692
59693 2007-02-18  Bruno Haible  <bruno@clisp.org>
59694
59695         * modules/fchdir (Depends-on): Add dup2.
59696
59697 2007-02-18  Bruno Haible  <bruno@clisp.org>
59698
59699         * lib/stdlib_.h: Handle glibc's special invocation convention
59700         specially.
59701
59702 2007-02-18  Bruno Haible  <bruno@clisp.org>
59703
59704         * modules/stdlib-tests: New file.
59705         * tests/test-stdlib.c: New file.
59706
59707         * modules/mkstemp (Files): Remove lib/mkstemp.h.
59708         (Depends-on): Add stdlib.
59709         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59710         (Includes): Use <stdlib.h> instead of mkstemp.h.
59711         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59712         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
59713         * lib/mkstemp.c: Don't include mkstemp.h.
59714         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
59715         * lib/stdlib--.h: Don't include mkstemp.h.
59716
59717         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
59718         (Depends-on): Add stdlib.
59719         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59720         (Includes): Use <stdlib.h> instead of mkdtemp.h.
59721         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59722         HAVE_MKDTEMP.
59723         * lib/mkdtemp.c: Don't include mkdtemp.h.
59724         * lib/clean-temp.c: Don't include mkdtemp.h.
59725
59726         * modules/exit (Files): Remove lib/exit.h.
59727         (Depends-on): Add stdlib.
59728         (Makefile.am): Remove lib_SOURCES.
59729         (Include): Use <stdlib.h> instead of exit.h.
59730         * lib/argmatch.c: Don't include exit.h.
59731         * lib/execute.c: Likewise.
59732         * lib/pagealign_alloc.c: Likewise.
59733         * lib/pipe.c: Likewise.
59734         * lib/wait-process.c: Likewise.
59735         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
59736         * lib/exitfail.c: Likewise.
59737         * lib/savewd.c: Likewise.
59738         * lib/xsetenv.c: Likewise.
59739
59740         * modules/stdlib: New file.
59741         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
59742         and extra comments about mkstemp().
59743         * lib/exit.h: Remove file.
59744         * lib/mkdtemp.h: Remove file.
59745         * lib/mkstemp.h: Remove file.
59746         * m4/stdlib_h.m4: New file.
59747         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
59748
59749 2007-02-18  Bruno Haible  <bruno@clisp.org>
59750
59751         * modules/math-tests: New file.
59752         * tests/test-math.c: New file.
59753
59754         * modules/math: New file.
59755         * modules/mathl (Files): Remove lib/mathl.h.
59756         (Depends-on): Add math.
59757         (Makefile.am): Don't mention mathl.h.
59758         (Include): Use <math.h> instead of mathl.h.
59759         * lib/math_.h: New file.
59760         * lib/mathl.h: Remove file.
59761         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
59762         mathl.h.
59763         * lib/asinl.c: Likewise.
59764         * lib/atanl.c: Likewise.
59765         * lib/ceill.c: Likewise.
59766         * lib/cosl.c: Likewise.
59767         * lib/expl.c: Likewise.
59768         * lib/floorl.c: Likewise.
59769         * lib/frexpl.c: Likewise.
59770         * lib/ldexpl.c: Likewise.
59771         * lib/logl.c: Likewise.
59772         * lib/sincosl.c: Likewise.
59773         * lib/sinl.c: Likewise.
59774         * lib/sqrtl.c: Likewise.
59775         * lib/tanl.c: Likewise.
59776         * lib/trigl.c: Likewise.
59777         * m4/math_h.m4: New file.
59778         * MODULES.html.sh (Mathematics): Add math.
59779
59780 2007-02-17  Bruno Haible  <bruno@clisp.org>
59781
59782         * modules/wctype-tests: New file.
59783         * tests/test-wctype.c: New file.
59784
59785         * modules/wchar-tests: New file.
59786         * tests/test-wchar.c: New file.
59787
59788         * modules/unistd-tests: New file.
59789         * tests/test-unistd.c: New file.
59790
59791         * modules/time-tests: New file.
59792         * tests/test-time.c: New file.
59793
59794         * modules/sysexits-tests: New file.
59795         * tests/test-sysexits.c: New file.
59796
59797         * modules/sys_time-tests: New file.
59798         * tests/test-sys_time.c: New file.
59799
59800         * modules/sys_stat-tests: New file.
59801         * tests/test-sys_stat.c: New file.
59802
59803         * modules/sys_socket-tests: New file.
59804         * tests/test-sys_socket.c: New file.
59805
59806         * modules/sys_select-tests: New file.
59807         * tests/test-sys_select.c: New file.
59808
59809         * modules/string-tests: New file.
59810         * tests/test-string.c: New file.
59811
59812         * modules/stdbool-tests: New file.
59813         * tests/test-stdbool.c: New file.
59814
59815         * modules/netinet_in-tests: New file.
59816         * tests/test-netinet_in.c: New file.
59817
59818         * modules/inttypes-tests: New file.
59819         * tests/test-inttypes.c: New file.
59820
59821         * modules/fcntl-tests: New file.
59822         * tests/test-fcntl.c: New file.
59823
59824         * modules/byteswap-tests: New file.
59825         * tests/test-byteswap.c: New file.
59826
59827         * modules/arpa_inet-tests: New file.
59828         * tests/test-arpa_inet.c: New file.
59829
59830 2007-02-17  Bruno Haible  <bruno@clisp.org>
59831
59832         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
59833         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
59834         if the corresponding module is not enabled. Emit link warnings if
59835         the function is used nevertheless.
59836         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
59837         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
59838         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
59839         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
59840         * modules/inttypes (Depends-on): Add link-warning.
59841         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59842         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
59843         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
59844         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
59845         * modules/imaxdiv (configure.ac): Likewise.
59846         * modules/strtoimax (configure.ac): Likewise.
59847         * modules/strtoumax (configure.ac): Likewise.
59848
59849 2007-02-17  Bruno Haible  <bruno@clisp.org>
59850
59851         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
59852         gl_STRING_MODULE_INDICATOR_DEFAULTS.
59853         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
59854         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
59855
59856 2007-02-17  Bruno Haible  <bruno@clisp.org>
59857
59858         * modules/link-warning: New file.
59859         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
59860         * lib/string_.h (GL_LINK_WARNING): Remove definition.
59861         * modules/string (Depends-on): Add link-warning.
59862         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59863         string.h.
59864         * MODULES.html.sh (Support for building libraries and executables): Add
59865         link-warning.
59866
59867 2007-02-17  Bruno Haible  <bruno@clisp.org>
59868
59869         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
59870         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
59871         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
59872         long lines.
59873
59874 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
59875             Bruno Haible  <bruno@clisp.org>
59876
59877         * modules/tmpfile: New file.
59878         * lib/tmpfile.c: New file.
59879         * m4/tmpfile.m4: New file.
59880         * MODULES.html.sh (func_all_modules): New section "Input/output".
59881
59882 2007-02-15  Bruno Haible  <bruno@clisp.org>
59883
59884         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
59885         (supports_delete_on_close): New function.
59886         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
59887
59888 2007-02-14  Bruno Haible  <bruno@clisp.org>
59889
59890         * modules/mbspcasecmp-tests: New file.
59891         * tests/test-mbspcasecmp.sh: New file.
59892         * tests/test-mbspcasecmp.c: New file.
59893
59894         New module mbspcasecmp.
59895         * modules/mbspcasecmp: New file.
59896         * lib/mbspcasecmp.c: New file.
59897         * lib/string_.h (strncasecmp): Change warning message.
59898         (mbspcasecmp): New declaration.
59899         * m4/mbspcasecmp.m4: New file.
59900         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59901         GNULIB_MBSPCASECMP.
59902         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59903         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59904
59905 2007-02-14  Bruno Haible  <bruno@clisp.org>
59906
59907         * modules/mbsncasecmp-tests: New file.
59908         * tests/test-mbsncasecmp.sh: New file.
59909         * tests/test-mbsncasecmp.c: New file.
59910
59911         New module mbsncasecmp.
59912         * modules/mbsncasecmp: New file.
59913         * lib/mbsncasecmp.c: New file.
59914         * lib/string_.h (mbsncasecmp): New declaration.
59915         * m4/mbsncasecmp.m4: New file.
59916         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59917         GNULIB_MBSNCASECMP.
59918         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59919         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59920
59921 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59922
59923         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59924         Verify that it doesn't overlap with our flags.
59925         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59926         do not have the desired effect in multibyte locales; instead, use
59927         mbscasecmp.
59928         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59929         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59930         we don't require GNU fnmatch ourselves (if our users require it, they
59931         should do so explicitly).
59932
59933         Fix regex code so it doesn't rely on strcasecmp.
59934         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59935         Otherwise, include gnulib's langinfo.h.
59936         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59937         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59938         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59939         * modules/regex (FILES): Remove m4/codeset.m4.
59940         (Depends-on): Add localcharset.  Remove strcase.
59941
59942 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59943
59944         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59945         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59946
59947 2007-02-13  Bruno Haible  <bruno@clisp.org>
59948
59949         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59950         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59951
59952 2007-02-12  Bruno Haible  <bruno@clisp.org>
59953
59954         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59955         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59956         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59957         time warning rather than a link error.
59958
59959 2007-02-12  Bruno Haible  <bruno@clisp.org>
59960
59961         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59962         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59963         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59964
59965 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59966
59967         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59968         args, not 2.
59969
59970 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59971
59972         New module 'time', so that apps can include <time.h> as per
59973         POSIX and GNU instead of separate include files like time_r.h
59974         and timegm.h.  This implementation tries out a simpler approach
59975         for replacing decls in standard include files (as compared to
59976         the string module), somewhat as an experiment.
59977
59978         * config/srclist.txt: Comment out mktime.c for now.
59979         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59980         since it doesn't apply any more.  Use generic wording instead.
59981         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59982         'time'.
59983         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59984         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59985         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59986         Don't include <sys/types.h>; no longer needed since we assume C89.
59987         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59988         * lib/strftime.c: Likewise.
59989         * lib/time_r.c: Likewise.
59990         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59991         * lib/nanosleep.c: Include <time.h> first, to check interface.
59992         * lib/strptime.c: Likewise.
59993         * lib/time_r.c: Likewise.
59994         * lib/timegm.c: Likewise.
59995         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59996         needed.
59997         * lib/timegm.c: Don't include timegm.h; no longer needed.
59998         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59999         time.h now handles any problems in that area.
60000         (struct timespec, nanosleep): Remove; time.h now arranges for these.
60001         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
60002         that time.h defines struct timespec.
60003         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
60004         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
60005         handles that.
60006         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
60007         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
60008         needed.  Set REPLACE_LOCALTIME.
60009         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
60010         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
60011         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
60012         nanosleep; time_h.m4 now does that.  Don't require
60013         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
60014         module handles this now.
60015         * modules/getdate (Depends-on): Remove timespec.  Add time.
60016         * modules/nanosleep (Depends-on): Likewise.
60017         * modules/stat-time (Depends-on): Likewise.
60018         * modules/nanosleep (Include): Include time.h, not timespec.h.
60019         * modules/strptime (Files): Remove lib/strptime.h.
60020         (Depends-on): Add extensions, time.
60021         (Include): Include time.h, not strptime.h.
60022         * modules/time_r (Files): Remove lib/time_r.h.
60023         (Depends-on): Add time.
60024         (Include): Include time.h, not time_r.h.
60025         * modules/timegm: Likewise.
60026         * modules/timespec (Description): Now does timespec-related decls
60027         of our own, instead of struct timespec itself.
60028         (Depends-on): Add time; remove extensions.
60029         (Maintainer): Add self.
60030         * modules/utimecmp (Depends-on): Add time; remove timespec.
60031         * modules/utimens (Depends-on): Likewise.
60032         * modules/xnanosleep (Depends-on): Likewise.
60033
60034 2007-02-11  Bruno Haible  <bruno@clisp.org>
60035
60036         * lib/c-strstr.c: Include allocsa.h.
60037         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60038         * lib/c-strcasestr.c: Include allocsa.h.
60039         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60040         * lib/strcasestr.c: Include allocsa.h.
60041         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60042         * lib/mbsstr.c: Include allocsa.h.
60043         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60044         allocsa/freesa instead of malloc/free.
60045         * lib/mbscasestr.c: Include allocsa.h.
60046         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60047         allocsa/freesa instead of malloc/free.
60048         * modules/c-strstr (Depends-on): Add allocsa.
60049         * modules/c-strcasestr (Depends-on): Likewise.
60050         * modules/strcasestr (Depends-on): Likewise.
60051         * modules/mbsstr (Depends-on): Likewise.
60052         * modules/mbscasestr (Depends-on): Likewise.
60053
60054 2007-02-11  Bruno Haible  <bruno@clisp.org>
60055
60056         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
60057
60058         * modules/mbsspn-tests: New file.
60059         * tests/test-mbsspn.sh: New file.
60060         * tests/test-mbsspn.c: New file.
60061
60062 2007-02-11  Bruno Haible  <bruno@clisp.org>
60063
60064         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
60065
60066         * modules/mbspbrk-tests: New file.
60067         * tests/test-mbspbrk.sh: New file.
60068         * tests/test-mbspbrk.c: New file.
60069
60070 2007-02-11  Bruno Haible  <bruno@clisp.org>
60071
60072         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
60073         unneeded cast.
60074
60075         * modules/mbscspn-tests: New file.
60076         * tests/test-mbscspn.sh: New file.
60077         * tests/test-mbscspn.c: New file.
60078
60079 2007-02-11  Bruno Haible  <bruno@clisp.org>
60080
60081         * modules/mbscasecmp-tests: New file.
60082         * tests/test-mbscasecmp.sh: New file.
60083         * tests/test-mbscasecmp.c: New file.
60084
60085 2007-02-11  Bruno Haible  <bruno@clisp.org>
60086
60087         Ensure O(n) worst-case complexity of mbscasestr.
60088         * lib/mbscasestr.c: Include stdbool.h.
60089         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60090         functions.
60091         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
60092         the bookkeeping indicates that it's worth it.
60093         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
60094
60095         * modules/mbscasestr-tests: New file.
60096         * tests/test-mbscasestr1.c: New file.
60097         * tests/test-mbscasestr2.sh: New file.
60098         * tests/test-mbscasestr2.c: New file.
60099         * tests/test-mbscasestr3.sh: New file.
60100         * tests/test-mbscasestr3.c: New file.
60101         * tests/test-mbscasestr4.sh: New file.
60102         * tests/test-mbscasestr4.c: New file.
60103         * m4/locale-tr.m4: New file.
60104
60105 2007-02-11  Bruno Haible  <bruno@clisp.org>
60106
60107         Ensure O(n) worst-case complexity of mbsstr.
60108         * lib/mbsstr.c: Include stdbool.h.
60109         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60110         functions.
60111         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
60112         bookkeeping indicates that it's worth it.
60113         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
60114
60115         * modules/mbsstr-tests: New file.
60116         * tests/test-mbsstr1.c: New file.
60117         * tests/test-mbsstr2.sh: New file.
60118         * tests/test-mbsstr2.c: New file.
60119         * tests/test-mbsstr3.sh: New file.
60120         * tests/test-mbsstr3.c: New file.
60121         * m4/locale-fr.m4: New file.
60122
60123 2007-02-11  Bruno Haible  <bruno@clisp.org>
60124
60125         * lib/mbsrchr.c (mbsrchr): Fix bug.
60126
60127         * modules/mbsrchr-tests: New file.
60128         * tests/test-mbsrchr.sh: New file.
60129         * tests/test-mbsrchr.c: New file.
60130
60131 2007-02-11  Bruno Haible  <bruno@clisp.org>
60132
60133         * lib/mbschr.c (mbschr): Fix bug.
60134
60135         * modules/mbschr-tests: New file.
60136         * tests/test-mbschr.sh: New file.
60137         * tests/test-mbschr.c: New file.
60138         * m4/locale-zh.m4: New file.
60139
60140 2007-02-11  Bruno Haible  <bruno@clisp.org>
60141
60142         Support for copying multibyte string iterators.
60143         * lib/mbiter.h: Include <string.h>.
60144         (mbiter_multi_copy): New function.
60145         (mbi_copy): New macro.
60146         * lib/mbuiter.h: Include <string.h>.
60147         (mbuiter_multi_copy): New function.
60148         (mbui_copy): New macro.
60149
60150 2007-02-11  Bruno Haible  <bruno@clisp.org>
60151
60152         New module mbslen.
60153         * modules/mbslen: New file.
60154         * lib/mbslen.c: New file.
60155         * lib/string_.h (mbslen): New declaration.
60156         * m4/mbslen.m4: New file.
60157         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60158         GNULIB_MBSLEN.
60159         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
60160         * MODULES.html.sh (Internationalization functions): Add mbslen.
60161
60162 2007-02-11  Bruno Haible  <bruno@clisp.org>
60163
60164         Ensure O(n) worst-case complexity of strcasestr substitute.
60165         * lib/strcasestr.c: Include stdbool.h.
60166         (knuth_morris_pratt): New function.
60167         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60168         bookkeeping indicates that it's worth it.
60169         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
60170
60171         * modules/strcasestr-tests: New file.
60172         * tests/test-strcasestr.c: New file.
60173
60174 2007-02-11  Bruno Haible  <bruno@clisp.org>
60175
60176         Ensure O(n) worst-case complexity of c_strcasestr.
60177         * lib/c-strcasestr.c: Include stdbool.h, string.h.
60178         (knuth_morris_pratt): New function.
60179         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
60180         the bookkeeping indicates that it's worth it.
60181         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
60182
60183         * modules/c-strcasestr-tests: New file.
60184         * tests/test-c-strcasestr.c: New file.
60185
60186 2007-02-11  Bruno Haible  <bruno@clisp.org>
60187
60188         Ensure O(n) worst-case complexity of c_strstr.
60189         * lib/c-strstr.c: Include stdbool.h, string.h.
60190         (knuth_morris_pratt): New function.
60191         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60192         bookkeeping indicates that it's worth it.
60193         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
60194
60195         * lib/c-strstr.c: Complete rewrite for maintainability.
60196
60197         * modules/c-strstr-tests: New file.
60198         * tests/test-c-strstr.c: New file.
60199
60200 2007-02-11  Bruno Haible  <bruno@clisp.org>
60201
60202         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
60203         5.2.1 and earlier, whereby \055 was treated just like the range
60204         delimiter '-'.
60205         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60206
60207 2007-02-08  Bruno Haible  <bruno@clisp.org>
60208
60209         * modules/regex (Depends-on): Add stdbool.
60210         Reported by Dalibor Topic <robilad@kaffe.org>.
60211
60212 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60213
60214         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
60215         Prefer returning from main to exiting from it.
60216         Remove unnecessary parens after sizeof.
60217
60218 2007-02-05  Bruno Haible  <bruno@clisp.org>
60219
60220         New module mbssep.
60221         * modules/mbssep: New file.
60222         * lib/mbssep.c: New file.
60223         * lib/string_.h (strsep): Add a conditional link warning.
60224         (mbssep): New declaration.
60225         * m4/mbssep.m4: New file.
60226         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60227         GNULIB_MBSSEP.
60228         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
60229         * MODULES.html.sh (Internationalization functions): Add mbssep.
60230
60231 2007-02-05  Bruno Haible  <bruno@clisp.org>
60232
60233         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
60234         Optimize search in case of 1 delimiter.
60235
60236 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60237
60238         * lib/acl.h: Include sys/types.h before sys/acl.h.
60239
60240 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60241
60242         Merge upstream fix for glibc bugzilla #3957:
60243
60244         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
60245
60246         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
60247         bit for RE_HAT_LISTS_NOT_NEWLINE.
60248         (build_charclass_op): Remove bogus comment.
60249
60250 2007-02-05  Simon Josefsson  <simon@josefsson.org>
60251
60252         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
60253
60254 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60255
60256         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
60257         * lib/memmem.c [!defined _LIBC]: Include config.h.
60258
60259 2007-02-04  Bruno Haible  <bruno@clisp.org>
60260
60261         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
60262         warning message.
60263
60264 2007-02-04  Bruno Haible  <bruno@clisp.org>
60265
60266         New module mbstok_r.
60267         * modules/mbstok_r: New file.
60268         * lib/mbstok_r.c: New file.
60269         * lib/string_.h (strtok_r): Change argument names to match the
60270         comments. Add a conditional link warning.
60271         (mbstok_r): New declaration.
60272         * m4/mbstok_r.m4: New file.
60273         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60274         GNULIB_MBSTOK_R.
60275         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
60276         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
60277
60278 2007-02-04  Bruno Haible  <bruno@clisp.org>
60279
60280         New module mbsspn.
60281         * modules/mbsspn: New file.
60282         * lib/mbsspn.c: New file.
60283         * lib/string_.h (strspn): Add a conditional link warning.
60284         (mbsspn): New declaration.
60285         * m4/mbsspn.m4: New file.
60286         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60287         GNULIB_MBSSPN.
60288         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
60289         * MODULES.html.sh (Internationalization functions): Add mbsspn.
60290
60291 2007-02-04  Bruno Haible  <bruno@clisp.org>
60292
60293         New module mbspbrk.
60294         * modules/mbspbrk: New file.
60295         * lib/mbspbrk.c: New file.
60296         * lib/string_.h (strpbrk): Add a conditional link warning.
60297         (mbspbrk): New declaration.
60298         * m4/mbspbrk.m4: New file.
60299         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60300         GNULIB_MBSPBRK.
60301         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
60302         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
60303
60304 2007-02-04  Bruno Haible  <bruno@clisp.org>
60305
60306         New module mbscspn.
60307         * modules/mbscspn: New file.
60308         * lib/mbscspn.c: New file.
60309         * lib/string_.h (strcspn): Add a conditional link warning.
60310         (mbscspn): New declaration.
60311         * m4/mbscspn.m4: New file.
60312         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60313         GNULIB_MBSCSPN.
60314         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
60315         * MODULES.html.sh (Internationalization functions): Add mbscspn.
60316
60317 2007-02-04  Bruno Haible  <bruno@clisp.org>
60318
60319         New module mbscasestr, reduced goal of strcasestr.
60320         * modules/mbscasestr: New file.
60321         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
60322         (mbscasestr): Renamed from strcasestr.
60323         * lib/strcasestr.c: Don't include mbuiter.h.
60324         (strcasestr): Remove support for multibyte locales.
60325         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
60326         Change the conditional link warning.
60327         (mbscasestr): New declaration.
60328         * m4/mbscasestr.m4: New file.
60329         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
60330         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
60331         REPLACE_STRCASESTR.
60332         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
60333         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60334         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60335         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
60336         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
60337         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60338         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
60339         (Depends-on): Remove mbuiter.
60340         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
60341
60342 2007-02-04  Bruno Haible  <bruno@clisp.org>
60343
60344         Simplify handling of strncasecmp.
60345         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
60346         the conditional link warning.
60347         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60348         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
60349         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
60350         * modules/strcase (configure.ac): Don't invoke
60351         gl_STRING_MODULE_INDICATOR.
60352         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
60353
60354 2007-02-04  Bruno Haible  <bruno@clisp.org>
60355
60356         New module mbscasecmp, reduced goal of strcasecmp.
60357         * modules/mbscasecmp: New file.
60358         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
60359         (mbscasecmp): Renamed from strcasecmp.
60360         * lib/strcasecmp.c: Don't include mbuiter.h.
60361         (strcasecmp): Remove support for multibyte locales.
60362         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
60363         Change the conditional link warning.
60364         (mbscasecmp): New declaration.
60365         * m4/mbscasecmp.m4: New file.
60366         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
60367         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
60368         REPLACE_STRCASECMP.
60369         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
60370         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60371         GNULIB_MBSCASECMP.
60372         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
60373         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
60374         * modules/strcase (Files): Remove m4/mbrtowc.m4.
60375         (Depends-on): Remove mbuiter.
60376         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
60377
60378 2007-02-04  Bruno Haible  <bruno@clisp.org>
60379
60380         New module mbsstr. Remove module strstr.
60381         * modules/mbsstr: New file.
60382         * modules/strstr: Remove file.
60383         * lib/mbsstr.c: Renamed from lib/strstr.c.
60384         (mbsstr): Renamed from strstr.
60385         * lib/string_.h (strstr): Remove declaration. Change the conditional
60386         link warning.
60387         (mbsstr): New declaration.
60388         * m4/mbsstr.m4: New file.
60389         * m4/strstr.m4: Remove file.
60390         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
60391         REPLACE_STRSTR.
60392         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
60393         Don't initialize GNULIB_STRSTR.
60394         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
60395         substitute GNULIB_STRSTR and REPLACE_STRSTR.
60396         * MODULES.html.sh (Internationalization functions): Add mbsstr.
60397         (Support for systems lacking ANSI C 89): Remove strstr.
60398
60399 2007-02-04  Bruno Haible  <bruno@clisp.org>
60400
60401         New module mbsrchr.
60402         * modules/mbsrchr: New file.
60403         * lib/mbsrchr.c: New file.
60404         * lib/string_.h (strrchr): Add a conditional link warning.
60405         (mbsrchr): New declaration.
60406         * m4/mbsrchr.m4: New file.
60407         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60408         GNULIB_MBSRCHR.
60409         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
60410         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
60411
60412 2007-02-04  Bruno Haible  <bruno@clisp.org>
60413
60414         New module mbschr.
60415         * modules/mbschr: New file.
60416         * lib/mbschr.c: New file.
60417         * lib/string_.h (strchr): Add a conditional link warning.
60418         (mbschr): New declaration.
60419         * m4/mbschr.m4: New file.
60420         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60421         GNULIB_MBSCHR.
60422         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
60423         * MODULES.html.sh (Internationalization functions): Add mbschr.
60424
60425 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60426
60427         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
60428
60429         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
60430
60431 2007-02-04  Bruno Haible  <bruno@clisp.org>
60432
60433         New module description section 'configure.ac-early'.
60434         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
60435         (func_get_autoconf_early_snippet): New function.
60436         (func_import, func_create_testdir): Use it. Remove special cases for
60437         modules 'extensions' and 'lock'.
60438         * modules/extensions (configure.ac-early): Require
60439         gl_USE_SYSTEM_EXTENSIONS.
60440         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
60441
60442 2007-02-04  Bruno Haible  <bruno@clisp.org>
60443
60444         Make use of gcj-4.3's -fsource and -ftarget option.
60445         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
60446         and if so try the options -fsource and -ftarget.
60447         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
60448         source_version, ftarget_option, target_version arguments.
60449         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
60450         (is_envjavac_oldgcj_14_14_usable): Renamed from
60451         is_envjavac_gcj_14_14_usable.
60452         (is_envjavac_oldgcj_14_13_usable): Renamed from
60453         is_envjavac_gcj_14_13_usable.
60454         (is_gcj_present): Update.
60455         (is_gcj_43, is_gcj43_usable): New functions.
60456         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
60457         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
60458         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
60459         try the options -fsource and -ftarget.
60460
60461 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60462
60463         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
60464         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
60465         larger value.
60466
60467 2007-02-03  Jim Meyering  <jim@meyering.net>
60468
60469         Give tools a better chance to allocate space for very large buffers.
60470         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
60471
60472         Make pwd and readlink work also when run with an unreadable parent dir
60473         on systems with openat support.
60474         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
60475         provided getcwd function, even when we have openat support.
60476         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
60477
60478 2007-02-02  Bruno Haible  <bruno@clisp.org>
60479
60480         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60481         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
60482         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
60483         portability problems if one of these functions is only used on specific
60484         platforms.
60485         Reported by Paul Eggert.
60486
60487 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
60488
60489         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
60490         is causing more trouble than it's curing.
60491         * lib/regex_internal.h (__mempcpy): Remove.
60492         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
60493         (and make the code a tad smaller to boot).
60494         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
60495
60496 2007-02-02  Jim Meyering  <jim@meyering.net>
60497
60498         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
60499         section, not in the Makefile.am: one.
60500
60501 2007-02-02  Eric Blake  <ebb9@byu.net>
60502
60503         * lib/strchrnul.c: Always include config.h first.
60504
60505         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
60506         gnulib strstr is not necessary here.
60507
60508 2007-02-02  Simon Josefsson  <simon@josefsson.org>
60509
60510         * m4/socklen.m4: Fix typo.
60511
60512 2007-02-02  Eric Blake  <ebb9@byu.net>
60513
60514         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
60515         * modules/netinet_in (Makefile.am): Likewise.
60516
60517 2007-02-01  Bruno Haible  <bruno@clisp.org>
60518
60519         * lib/string_.h (GL_LINK_WARNING): New macro.
60520         (strcasecmp, strstr, strcasestr): If provided by the system,
60521         conditionally define as a macro that leads to a warning instead of to
60522         an error.
60523         (strncasecmp): Conditionally define as a macro that leads to a warning.
60524
60525 2007-02-01  Karl Berry  <karl@gnu.org>
60526
60527         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
60528
60529 2007-02-01  Bruno Haible  <bruno@clisp.org>
60530
60531         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
60532         renamings.
60533
60534 2007-02-01  Eric Blake  <ebb9@byu.net>
60535
60536         * modules/regex (Depends-on): Revert dependence on mempcpy.
60537         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
60538         module's definition of mempcpy.
60539         Reported by Paul Eggert.
60540
60541 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60542
60543         * lib/string_.h: If the gnulib module XYZ is not present, undefine
60544         the symbol XYZ before redefining it.  This fixes a problem with
60545         programs that don't use XYZ, when compiled on systems that define
60546         XYZ to something else.
60547
60548 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
60549
60550         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
60551         occurs when "mkdir -m foo" creates a setgid directory that is (1)
60552         writeable to group or other and (2) is intended to have a special
60553         mode bit that is set or cleared.  In such a case, the directory
60554         should be neither group- nor other-writeable until the special
60555         mode bits are right.
60556
60557 2007-01-31  Eric Blake  <ebb9@byu.net>
60558
60559         * modules/mountlist (Depends-on): Add strstr.
60560
60561         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
60562         bug.
60563         * modules/string (Makefile.am): Remove redundant replacement.
60564         * modules/regex (Depends-on): Add mempcpy.
60565
60566 2007-01-31  Bruno Haible  <bruno@clisp.org>
60567
60568         New module description field 'Link'.
60569         * gnulib-tool (func_usage): Document --extract-link-directive.
60570         (sed_extract_prog): Recognize 'Link' directive.
60571         (func_get_link_directive): New function.
60572         (func_import): Show summary of link directives.
60573         Handle --extract-link-directive option.
60574         * modules/acl (Link): New section.
60575         * modules/clock-time (Link): New section.
60576         * modules/euidaccess (Link): New section.
60577         * modules/gettext (Link): New section.
60578         * modules/iconv (Link): New section.
60579         * modules/lock (Link): New section.
60580         * modules/nanosleep (Link): New section.
60581         * modules/readline (Link): New section.
60582
60583 2007-01-27  Bruno Haible  <bruno@clisp.org>
60584
60585         Enforce the use of gnulib modules for unportable <string.h> functions.
60586         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
60587         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
60588         (gl_HEADER_STRING_H_BODY): Require it.
60589         * lib/string_.h: If the gnulib module XYZ is not present, redefine
60590         the symbol XYZ to one that gives a link error.
60591         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
60592         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
60593         * modules/mempcpy (configure.ac): Likewise.
60594         * modules/memrchr (configure.ac): Likewise.
60595         * modules/stpcpy (configure.ac): Likewise.
60596         * modules/stpncpy (configure.ac): Likewise.
60597         * modules/strcase (configure.ac): Likewise.
60598         * modules/strcasestr (configure.ac): Likewise.
60599         * modules/strchrnul (configure.ac): Likewise.
60600         * modules/strdup (configure.ac): Likewise.
60601         * modules/strndup (configure.ac): Likewise.
60602         * modules/strnlen (configure.ac): Likewise.
60603         * modules/strpbrk (configure.ac): Likewise.
60604         * modules/strsep (configure.ac): Likewise.
60605         * modules/strstr (configure.ac): Likewise.
60606         * modules/strtok_r (configure.ac): Likewise.
60607
60608 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
60609
60610         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
60611
60612 2007-01-30  Jim Meyering  <jim@meyering.net>
60613
60614         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
60615
60616 2007-01-29  Bruno Haible  <bruno@clisp.org>
60617
60618         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
60619         * lib/execute.c: Likewise.
60620         * lib/pipe.c: Likewise.
60621         * lib/printf-args.h: Likewise.
60622         * lib/printf-args.c: Likewise.
60623         * lib/printf-parse.c: Likewise.
60624         * lib/vasnprintf.c: Likewise.
60625
60626 2007-01-29  Eric Blake  <ebb9@byu.net>
60627
60628         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
60629         declaration.
60630
60631 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60632
60633         * lib/strptime.h (strptime): Use 'restrict' for args where
60634         POSIX requires this.
60635         * lib/strptime.c (strptime): Likewise.
60636         Change license notice from LGPL to GPL, since gnulib-tool will
60637         change this as needed.
60638         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
60639         defined.
60640         Include "strptime.h" first, to check interface.
60641         Do not #undef _LIBC and _NL_CURRENT.
60642         Do not include <stdlib.h>; no longer needed.
60643         Include "time_r.h" and declare ptime_locale_status
60644         only if _LIBC is not defined.
60645         (__P): Remove unused macro.
60646         (match_string): Bring back glibc version, but use it only if _LIBC
60647         is defined.
60648         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
60649         Remove unnecessary assertion and abort() call.
60650         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
60651         * m4/strptime.m4: Fix serial number comment.
60652         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
60653         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
60654         (Depends-on): Add time_r.
60655
60656 2007-01-29  Bruno Haible  <bruno@clisp.org>
60657
60658         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60659         strptime.
60660         * modules/strptime (Depends-on): Add stdbool.
60661         * lib/strptime.h: Include <time.h> always. Add comments.
60662
60663 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60664
60665         * modules/strptime: New file.
60666         * lib/strptime.h: New file.
60667         * lib/strptime.c: New file.
60668         * m4/strptime.m4: New file.
60669
60670 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60671
60672         * MODULES.html.sh: New module mpsort.
60673         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
60674
60675         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
60676         a circularity problem with HP-UX ia64 reported by Bob Proulx in
60677         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
60678         All uses changed.
60679         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
60680         All uses changed.
60681         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
60682         to _Restrict_.
60683         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
60684         the parameter matches the prototype.
60685
60686 2007-01-28  Jim Meyering  <jim@meyering.net>
60687
60688         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
60689         sys/time.h here, reverting that part of the previous patch:
60690         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
60691
60692 2007-01-28  Bruno Haible  <bruno@clisp.org>
60693
60694         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
60695         value of $(SYS_TIME_H).
60696         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
60697         remove it conditionally, too. [added by Jim Meyering]
60698         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
60699         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60700         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
60701         GETTIMEOFDAY_REPLACEMENT to 1.
60702
60703 2007-01-28  Bruno Haible  <bruno@clisp.org>
60704
60705         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
60706         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
60707         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
60708         Set UNISTD_H instead of UNISTD_H2.
60709         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
60710
60711 2007-01-28  Bruno Haible  <bruno@clisp.org>
60712
60713         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
60714         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
60715
60716 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60717
60718         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
60719         (func_create_testdir): Ensure C locale for `grep' and `tr'
60720         character ranges.
60721         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
60722         ACLOCAL_AMFLAGS parsing state machine.
60723
60724 2007-01-27  Bruno Haible  <bruno@clisp.org>
60725
60726         * modules/unistr/base: Update.
60727
60728 2007-01-27  Bruno Haible  <bruno@clisp.org>
60729
60730         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
60731         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
60732         * modules/unistr/u32-mbtouc-unsafe: Renamed from
60733         modules/unistr/u32-mbtouc.
60734         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
60735         * lib/unistr.h: Update.
60736         * lib/linebreak.c: Update.
60737         * modules/unistr/u32-mbtouc: Renamed from
60738         modules/unistr/u32-mbtouc-safe.
60739         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
60740         * lib/unistr.h: Update.
60741         * lib/unistr/u32-to-u8.c: Update.
60742         * lib/unistr/u32-to-u16.c: Update.
60743
60744 2007-01-27  Bruno Haible  <bruno@clisp.org>
60745
60746         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
60747         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
60748         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
60749         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
60750         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
60751         * modules/unistr/u16-mbtouc-unsafe: Renamed from
60752         modules/unistr/u16-mbtouc.
60753         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
60754         * lib/unistr.h: Update.
60755         * lib/linebreak.c: Update.
60756         * modules/linebreak: Update.
60757         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
60758         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
60759         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
60760         * modules/unistr/u16-mbtouc: Renamed from
60761         modules/unistr/u16-mbtouc-safe.
60762         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
60763         * lib/unistr.h: Update.
60764         * lib/unistr/u16-to-u8.c: Update.
60765         * modules/unistr/u16-to-u8: Update.
60766         * lib/unistr/u16-to-u32.c: Update.
60767         * modules/unistr/u16-to-u32: Update.
60768
60769 2007-01-27  Bruno Haible  <bruno@clisp.org>
60770
60771         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
60772         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
60773         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
60774         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
60775         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
60776         * modules/unistr/u8-mbtouc-unsafe: Renamed from
60777         modules/unistr/u8-mbtouc.
60778         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
60779         * lib/unistr.h: Update.
60780         * lib/striconveh.c: Update.
60781         * modules/striconveh: Update.
60782         * lib/linebreak.c: Update.
60783         * modules/linebreak: Update.
60784         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
60785         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
60786         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
60787         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
60788         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
60789         * lib/unistr.h: Update.
60790         * lib/striconveh.c: Update.
60791         * modules/striconveh: Update.
60792         * lib/unistr/u8-to-u16.c: Update.
60793         * modules/unistr/u8-to-u16: Update.
60794         * lib/unistr/u8-to-u32.c: Update.
60795         * modules/unistr/u8-to-u32: Update.
60796
60797 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60798
60799         Sync from Libtool.
60800         * lib/argz.c: Do not include strings.h nor memory.h, include
60801         string.h unconditionally.  Patch by Simon Josefsson.
60802
60803 2007-01-27  Bruno Haible  <bruno@clisp.org>
60804
60805         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
60806         from gl_HEADER_STRING_H_BODY.
60807         (gl_HEADER_STRING_H_BODY): Require it.
60808         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
60809         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60810         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60811         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60812         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60813         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
60814         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60815         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60816         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
60817         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60818         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60819         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
60820         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60821         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60822         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60823
60824 2007-01-27  Bruno Haible  <bruno@clisp.org>
60825
60826         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
60827         check_PROGRAMS into noinst_PROGRAMS.
60828         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
60829         check_PROGRAMS in this case.
60830         (func_import): Set for_test to false.
60831         (func_create_testdir): Set for_test to true.
60832
60833 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60834             Bruno Haible  <bruno@clisp.org>
60835
60836         * modules/strcasestr (Files): Remove lib/strcasestr.h.
60837         (Depends-on): Add string.
60838         (Includes): Use <string.h> instead of strcasestr.h.
60839         * modules/string (Makefile.am): Also substitute the value of
60840         REPLACE_STRCASESTR.
60841         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
60842         assume strcasestr is declared in <string.h> not <strings.h>. Also
60843         set REPLACE_STRCASESTR.
60844         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
60845         REPLACE_STRCASESTR.
60846         * lib/strcasestr.h: Remove file.
60847         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
60848         * lib/string_.h (strcasestr): New declaration.
60849
60850 2007-01-27  Bruno Haible  <bruno@clisp.org>
60851
60852         * lib/string_.h: Use 'extern'.
60853
60854 2007-01-27  Jim Meyering  <jim@meyering.net>
60855
60856         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
60857         of set-but-not-used local, "q".
60858
60859         * lib/mempcpy.c: Include <config.h> before <string.h>.
60860         This fixes a compilation error on HP-UX, due to the system's
60861         "restrict"-using mempcpy prototype.
60862
60863 2007-01-26  Bruno Haible  <bruno@clisp.org>
60864
60865         Small optimization.
60866         * lib/javacomp.c: Include c-strstr.h.
60867          (is_envjavac_gcj): Use c_strstr instead of strstr.
60868         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
60869
60870 2007-01-26  Bruno Haible  <bruno@clisp.org>
60871
60872         * MODULES.html.sh (Unicode string functions): Add the new modules.
60873
60874         * modules/uniconv/u32-strconv-to-locale: New file.
60875         * lib/uniconv/u32-strconv-to-locale.c: New file.
60876
60877         * modules/uniconv/u16-strconv-to-locale: New file.
60878         * lib/uniconv/u16-strconv-to-locale.c: New file.
60879
60880         * modules/uniconv/u8-strconv-to-locale: New file.
60881         * lib/uniconv/u8-strconv-to-locale.c: New file.
60882
60883         * modules/uniconv/u32-strconv-from-locale: New file.
60884         * lib/uniconv/u32-strconv-from-locale.c: New file.
60885
60886         * modules/uniconv/u16-strconv-from-locale: New file.
60887         * lib/uniconv/u16-strconv-from-locale.c: New file.
60888
60889         * modules/uniconv/u8-strconv-from-locale: New file.
60890         * lib/uniconv/u8-strconv-from-locale.c: New file.
60891
60892         * modules/uniconv/u32-strconv-to-enc: New file.
60893         * lib/uniconv/u32-strconv-to-enc.c: New file.
60894         * modules/uniconv/u32-strconv-to-enc-tests: New file.
60895         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
60896
60897         * modules/uniconv/u16-strconv-to-enc: New file.
60898         * lib/uniconv/u16-strconv-to-enc.c: New file.
60899         * lib/uniconv/u-strconv-to-enc.h: New file.
60900         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60901         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60902
60903         * modules/uniconv/u8-strconv-to-enc: New file.
60904         * lib/uniconv/u8-strconv-to-enc.c: New file.
60905         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60906         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60907
60908         * modules/uniconv/u32-strconv-from-enc: New file.
60909         * lib/uniconv/u32-strconv-from-enc.c: New file.
60910         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60911         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60912
60913         * modules/uniconv/u16-strconv-from-enc: New file.
60914         * lib/uniconv/u16-strconv-from-enc.c: New file.
60915         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60916         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60917
60918         * modules/uniconv/u8-strconv-from-enc: New file.
60919         * lib/uniconv/u8-strconv-from-enc.c: New file.
60920         * lib/uniconv/u-strconv-from-enc.h: New file.
60921         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60922         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60923
60924         * modules/uniconv/u32-conv-from-enc: New file.
60925         * lib/uniconv/u32-conv-from-enc.c: New file.
60926         * modules/uniconv/u32-conv-from-enc-tests: New file.
60927         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60928
60929         * modules/uniconv/u16-conv-from-enc: New file.
60930         * lib/uniconv/u16-conv-from-enc.c: New file.
60931         * lib/uniconv/u-conv-from-enc.h: New file.
60932         * modules/uniconv/u16-conv-from-enc-tests: New file.
60933         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60934
60935         * modules/uniconv/u8-conv-from-enc: New file.
60936         * lib/uniconv/u8-conv-from-enc.c: New file.
60937         * modules/uniconv/u8-conv-from-enc-tests: New file.
60938         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60939
60940         * modules/uniconv/base: New file.
60941         * lib/uniconv.h: New file.
60942
60943 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60944
60945         * doc/gnulib-tool.texi (Initial import): Update to match current
60946         behavior with strdup module.
60947         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60948         * lib/memmem.h: Remove; all uses removed.  This is now done
60949         by <string.h>.
60950         * lib/mempcpy.h: Likewise.
60951         * lib/memrchr.h: Likewise.
60952         * lib/stpcpy.h: Likewise.
60953         * lib/stpncpy.h: Likewise.
60954         * lib/strcase.h: Likewise.
60955         * lib/strchrnul.h: Likewise.
60956         * lib/strdup.h: Likewise.
60957         * lib/strndup.h: Likewise.
60958         * lib/strnlen.h: Likewise.
60959         * lib/strpbrk.h: Likewise.
60960         * lib/strsep.h: Likewise.
60961         * lib/strstr.h: Likewise.
60962         * lib/strtok_r.h: Likewise.
60963         * lib/string_.h: New file.
60964         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60965         Rely on <string.h> instead.
60966         * lib/canon-host.c: Likewise.
60967         * lib/chdir-long.c: Likewise.
60968         * lib/concatpath.c: Likewise.
60969         * lib/exclude.c: Likewise.
60970         * lib/fchdir.c: Likewise.
60971         * lib/getaddrinfo.c: Likewise.
60972         * lib/getcwd.c: Likewise.
60973         * lib/getsubopt.c: Likewise.
60974         * lib/glob.c: Likewise.
60975         * lib/hard-locale.c: Likewise.
60976         * lib/iconvme.c: Likewise.
60977         * lib/javacomp.c: Likewise.
60978         * lib/mempcpy.c: Likewise.
60979         * lib/memrchr.c: Likewise.
60980         * lib/regex_internal.h: Likewise.
60981         * lib/stpncpy.c: Likewise.
60982         * lib/strcasecmp.c: Likewise.
60983         * lib/strchrnul.c: Likewise.
60984         * lib/strdup.c: Likewise.
60985         * lib/striconv.c: Likewise.
60986         * lib/striconveh.c: Likewise.
60987         * lib/striconveha.c: Likewise.
60988         * lib/strncasecmp.c: Likewise.
60989         * lib/strndup.c: Likewise.
60990         * lib/strnlen.c: Likewise.
60991         * lib/strsep.c: Likewise.
60992         * lib/strstr.c: Likewise.
60993         * lib/strtok_r.c: Likewise.
60994         * lib/userspec.c: Likewise.
60995         * lib/w32spawn.h: Likewise.
60996         * lib/xstrndup.c: Likewise.
60997         * lib/mountlist.c (strstr): Remove decl.
60998         * m4/string_h.m4: New file.
60999         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
61000         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
61001         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
61002         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
61003         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
61004         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
61005         Set REPLACE_STRCASECMP if necessary.
61006         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
61007         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
61008         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
61009         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
61010         HAVE_DECL_STRDUP if necessary.
61011         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
61012         since gl_FUNC_STRNDUP does that now.
61013         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
61014         Check for decl here...
61015         (gl_PREREQ_STRNLEN): ... not here.
61016         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
61017         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
61018         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
61019         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
61020         necessary.
61021         * modules/string: New file.
61022         * modules/memmem (Files): Remove special-purpose include file.
61023         (Depends-on): Add string.
61024         (Include): Include <string.h>, not the removed file.
61025         * modules/mempcpy: Likewise.
61026         * modules/memrchr: Likewise.
61027         * modules/stpcpy: Likewise.
61028         * modules/stpncpy: Likewise.
61029         * modules/strcase: Likewise.
61030         * modules/strchrnul: Likewise.
61031         * modules/strdup: Likewise.
61032         * modules/strndup: Likewise.
61033         * modules/strnlen: Likewise.
61034         * modules/strpbrk: Likewise.
61035         * modules/strsep: Likewise.
61036         * modules/strstr: Likewise.
61037         * modules/strtok_r: Likewise.
61038         * tests/test-dirname.c: Don't include "strdup.h", since
61039         <string.h> now suffices.
61040         * tests/test-memmem.c: Don't include "memmem.h", since
61041         <string.h> now suffices.
61042
61043 2007-01-25  Bruno Haible  <bruno@clisp.org>
61044
61045         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
61046         *resultp is 0.
61047
61048         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
61049         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
61050         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
61051         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
61052
61053         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
61054         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
61055         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
61056         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
61057         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
61058         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
61059
61060 2007-01-24  Bruno Haible  <bruno@clisp.org>
61061
61062         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
61063         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
61064         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
61065         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
61066         gl_FUNC_FTS_CORE.
61067         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
61068         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
61069         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61070         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
61071         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
61072         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
61073         gl_FUNC_FCHOWNAT.
61074         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
61075         gl_FUNC_STRFTIME.
61076         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
61077         Reported by Ralf Wildenhues.
61078
61079 2007-01-24  Bruno Haible  <bruno@clisp.org>
61080
61081         Drop AC_REQUIRE calls that are redundant with the module dependencies.
61082         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
61083         gl_GETADDRINFO.
61084         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
61085         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
61086         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
61087
61088 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
61089
61090         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
61091         Don't use 'exit'; just return from 'main'.
61092         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
61093
61094         * lib/fnmatch_.h: Readjust white space and comments to match
61095         glibc, to avoid spurious diffs.
61096
61097 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61098
61099         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
61100         2004-12-01 change by Jakub Jelinek, since this code won't compile
61101         if !LIBC.  Problem reported by Bob Proulx.
61102
61103 2007-01-23  Bruno Haible  <bruno@clisp.org>
61104
61105         * lib/striconveh.c: Include c-strcaseeq.h.
61106         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
61107         * modules/striconveh (Depends-on): Add c-strcaseeq.
61108
61109 2007-01-23  Bruno Haible  <bruno@clisp.org>
61110
61111         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
61112
61113         * modules/c-strcaseeq: New file.
61114         * lib/c-strcaseeq.h: New file.
61115
61116         * modules/streq: New file.
61117         * lib/streq.h: New file.
61118
61119 2007-01-23  Bruno Haible  <bruno@clisp.org>
61120
61121         * modules/striconveha-tests: New file.
61122         * tests/test-striconveha.c: New file.
61123
61124         * lib/striconveha.h: Include <stdbool.h>.
61125         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
61126         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
61127         (mem_iconveha_notranslit): Renamed from mem_iconveha.
61128         (mem_iconveha): New function.
61129         (str_iconveha_notranslit): Renamed from str_iconveha.
61130         (str_iconveha): New function.
61131         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
61132         c-strcase.
61133
61134 2007-01-23  Bruno Haible  <bruno@clisp.org>
61135
61136         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
61137         encodings without forgiving before trying any encoding with handler.
61138         (str_iconveha): Try all encodings without forgiving before trying any
61139         encoding with handler.
61140
61141 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61142
61143         Import the following changes from libc.
61144
61145         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61146
61147         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
61148
61149         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61150
61151         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
61152         normal_bracket label.
61153
61154         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
61155
61156         [BZ #361]
61157         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
61158         to normal_bracket after fetching the next character.
61159
61160 2007-01-22  Bruno Haible  <bruno@clisp.org>
61161
61162         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
61163         argument.
61164         * lib/striconveh.c (iconv_carefully_1): New function.
61165         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
61166         argument.
61167         (str_cd_iconveh): Update.
61168         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
61169         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
61170         * tests/test-striconveh.c (MAGIC): New macro.
61171         (new_offsets): New function.
61172         (main): Test call with and without offsets.
61173
61174 2007-01-22  Bruno Haible  <bruno@clisp.org>
61175
61176         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
61177         * modules/sys_select (Makefile.am): Likewise.
61178         * modules/sys_socket (Makefile.am): Likewise.
61179         * modules/sys_time (Makefile.am): Likewise.
61180
61181 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61182
61183         * modules/gettimeofday (License): Change from GPL to LGPL, since
61184         gettimeofday is a library function.
61185
61186 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61187
61188         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
61189
61190 2007-01-21  Bruno Haible  <bruno@clisp.org>
61191
61192         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
61193
61194 2007-01-21  Bruno Haible  <bruno@clisp.org>
61195
61196         * modules/striconveha: New file.
61197         * lib/striconveha.h: New file.
61198         * lib/striconveha.c: New file.
61199         * MODULES.html.sh (Internationalization functions): Add striconveha.
61200         * lib/striconv.c (str_iconv): Optimize the case of an empty input
61201         string.
61202         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
61203
61204 2007-01-21  Bruno Haible  <bruno@clisp.org>
61205
61206         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
61207         * lib/striconveh.c (str_iconveh): Likewise.
61208
61209 2007-01-21  Bruno Haible  <bruno@clisp.org>
61210
61211         * lib/striconveh.h (mem_iconveh): New declaration.
61212         * lib/striconveh.c (mem_iconveh): New function.
61213         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
61214
61215 2007-01-21  Bruno Haible  <bruno@clisp.org>
61216
61217         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
61218
61219         * lib/striconveh.h (mem_cd_iconveh): Change specification.
61220         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
61221         original result buffer.
61222         (str_cd_iconveh): Update.
61223         * tests/test-striconveh.c (main): Update.
61224
61225         * lib/striconv.h (mem_cd_iconv): Change specification.
61226         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
61227         result buffer.
61228         (str_cd_iconv): Update.
61229         * tests/test-striconv.c (main): Update.
61230
61231 2007-01-21  Bruno Haible  <bruno@clisp.org>
61232
61233         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
61234
61235 2007-01-20  Jim Meyering  <jim@meyering.net>
61236
61237         * lib/userspec.c (parse_with_separator): If a user or group string
61238         starts with "+", skip the corresponding name-to-ID look-up, since
61239         such a look-up must fail: user and group names may not include "+".
61240
61241 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61242
61243         * lib/poll.c: Include sys/time.h and time.h unconditionally,
61244         since we now assume the sys_time module.
61245         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
61246         check for sys/time.h; no longer needed.
61247         * modules/poll (Depends-on): Depend on sys_time.
61248
61249 2007-01-18  Bruno Haible  <bruno@clisp.org>
61250
61251         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
61252         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61253
61254         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
61255         gettimeofday.
61256
61257         * tests/test-gettimeofday.c: Include <time.h>.
61258         (dummy): Remove variable.
61259
61260         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
61261         gl_HEADER_SYS_TIME_H.
61262         (gl_HEADER_SYS_TIME_H): New macro.
61263
61264         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
61265         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61266         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
61267         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
61268         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61269         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
61270         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
61271         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61272         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
61273         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
61274         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61275
61276         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
61277         last change; it caused a compilation error when cross-compiling to
61278         Cygwin.
61279
61280 2007-01-18  Jim Meyering  <jim@meyering.net>
61281
61282         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
61283         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
61284         than the race-prone "test -d sys || mkdir sys".
61285         (configure.ac): Use AC_PROG_MKDIR_P.
61286         * modules/sys_select: Likewise.
61287         * modules/sys_socket: Likewise.
61288         * modules/sys_time: Likewise.
61289
61290 2007-01-18  Eric Blake  <ebb9@byu.net>
61291
61292         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
61293         replace gettimeofday.
61294         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
61295         name, to avoid infinite recursion.
61296
61297 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
61298
61299         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
61300         module sys_time.
61301         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
61302         assume timespec.h defines struct timeval.
61303         * lib/settime.c: Likewise.
61304         * lib/utimens.c: Likewise.
61305         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
61306         since we now assume the gettimeofday module.
61307         * lib/tempname.c (__gen_tempname): Likewise.
61308         * lib/gettimeofday.h: Remove.
61309         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
61310         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
61311         Include <time.h>, for 'time()'.
61312         (localtime_buffer_addr): Also use this workaround if
61313         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
61314         to simplify the uses.  All uses changed.
61315         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
61316         that #undef is inside {}, and 'const' follows type name consistently.
61317         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
61318         (gettimeofday): Do not use the maximum possible value for
61319         tv->tv_usec, since that might break usages other than ls.c.
61320         Instead, we'll leave ls.c alone.  This undoes today's patch
61321         by Bruno.  Add a compile-time warning for 1s-clock resolution;
61322         we've never observed the problem but might as well keep the
61323         canary.
61324         * lib/nanosleep.c: Include timespec.h first, for interface check.
61325         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
61326         now assume the sys_time module.
61327         * lib/tempname.c: Likewise.
61328         * lib/timespec.h: Likewise.
61329         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
61330         needed.
61331         * lib/strftime.c: Likewise.
61332         * lib/timespec.h: Likewise.
61333         * lib/posixtm.c: Include posixtm.h first, for interface check.
61334         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
61335         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
61336         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
61337         * lib/sys_time_.h: New file.
61338         * lib/timespec.h (struct timespec): Use long int, not long.
61339         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61340         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
61341         Remove obsolescent call to AC_HEADER_TIME.
61342         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
61343         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61344         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61345         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
61346         Likewise.
61347         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
61348         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
61349         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
61350         into the sys_time module.  Check for gettimeofday just once.
61351         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
61352         for gettimeofday signature to just check the signature.  Merely
61353         compile it, since linking doesn't test signature.  Improve test for
61354         whether gettimeofday.o is actually needed.
61355         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
61356         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
61357         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
61358         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61359         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
61360         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
61361         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
61362         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
61363         than worrying about sys/time.h.
61364         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61365         Don't bother worrying about TIME_WITH_SYS_TIME.
61366         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
61367         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
61368         * m4/sys_time_h.m4: New file.
61369         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
61370         Don't include sys/time.h.  Return from main rather than exiting.
61371         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
61372         all uses changed.
61373         * modules/gethrxtime (Depends-on): Add sys_time.
61374         * modules/gettime (Depends-on): Likewise.
61375         * modules/gettimeofday (Depends-on): Likewise.
61376         * modules/nanosleep (Depends-on): Likewise.
61377         * modules/settime (Depends-on): Likewise.
61378         * modules/tempname (Depends-on): Likewise.
61379         * modules/utimens (Depends-on): Likewise.
61380         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
61381         (Include): Change back to <sys/time.h>.
61382         (Maintainer): Add self.
61383         * modules/sys_time: New file.
61384         * modules/tempname (Depends-on): Add gettimeofday.
61385         * tests/test-gettimeofday.c: Include <sys/time.h>
61386         rather than gettimeofday.h.
61387
61388 2007-01-17  Bruno Haible  <bruno@clisp.org>
61389
61390         * gnulib-tool (func_get_license): Revert last patch. Instead, let
61391         the license default to GPL.
61392         (func_create_testdir): Don't complain if a module is LGPL and its
61393         tests module depends on GPLed modules.
61394
61395 2007-01-17  Bruno Haible  <bruno@clisp.org>
61396
61397         * lib/gettimeofday.c (gettimeofday): Add code for the case
61398         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
61399         maximum possible value for tv->tv_usec, rather than the minimum one.
61400
61401 2005-10-08  Martin Lambers  <marlam@marlam.de>
61402 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61403 2007-01-16  Bruno Haible  <bruno@clisp.org>
61404
61405         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
61406         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
61407         gl_FUNC_GETTIMEOFDAY.
61408         (Include): Add gettimeofday.h.
61409         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
61410         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
61411         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
61412         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
61413         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
61414         * lib/gettimeofday.h: New file.
61415         * lib/gettimeofday.c: Include <sys/timeb.h>.
61416         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
61417         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61418         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
61419         fall back on time().
61420
61421         * tests/test-gettimeofday.c: New file.
61422         * modules/gettimeofday-tests: New file.
61423
61424 2007-01-16  Eric Blake  <ebb9@byu.net>
61425
61426         * modules/fnmatch (Depends-on): Depend on wchar.
61427         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
61428         * m4/fnmatch.m4: Likewise.
61429         * modules/mbchar (Makefile.am): Assume <wchar.h>.
61430         * m4/mbchar.m4: Likewise.
61431         * modules/mbswidth (Depends-on): Depend on wchar.
61432         * lib/mbswidth.c: Assume <wchar.h>.
61433         * m4/mbswidth.m4: Likewise.
61434         * modules/quotearg (Depends-on): Depend on wchar.
61435         * lib/quotearg.c: Assume <wchar.h>.
61436         * m4/quotearg.m4: Likewise.
61437         * modules/regex (Depends-on): Depend on wchar.
61438         * lib/regex_internal.h: Assume <wchar.h>.
61439         * m4/regex.m4: Likewise.
61440         * modules/stdint (Depends-on): Depend on wchar.
61441         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
61442         * m4/stdint.m4: Likewise.
61443         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
61444         * modules/strftime (Depends-on): Depend on wchar.
61445         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
61446         * modules/strtol (Depends-on): Depend on wchar.
61447         * lib/strtol.c: Assume <wchar.h>.
61448         * modules/wcwidth (Depends-on): Depend on wchar.
61449         * lib/wcwidth.h: Assume <wchar.h>.
61450         * m4/wcwidth.m4: Likewise.
61451
61452 2007-01-16  Bruno Haible  <bruno@clisp.org>
61453
61454         * modules/csharpexec-script: New, created from...
61455         * modules/csharpexec: ... this.
61456
61457 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61458
61459         * modules/javaexec-script: New, created from...
61460         * modules/javaexec: ... this.
61461
61462 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61463
61464         * modules/poll (Dependencies): Add sys_select.
61465
61466 2007-01-15  Jim Meyering  <jim@meyering.net>
61467
61468         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
61469         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
61470         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
61471         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
61472
61473 2007-01-15  Bruno Haible  <bruno@clisp.org>
61474
61475         * modules/striconveh: New file.
61476         * lib/striconveh.h: New file.
61477         * lib/striconveh.c: New file.
61478         * MODULES.html.sh (Internationalization functions): Add striconveh.
61479
61480         * modules/striconveh-tests: New file.
61481         * tests/test-striconveh.c: New file.
61482
61483 2007-01-15  Bruno Haible  <bruno@clisp.org>
61484
61485         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
61486         not from GNU libiconv or GNU libc.
61487
61488 2007-01-15  Bruno Haible  <bruno@clisp.org>
61489
61490         * doc/gnulib-intro.texi (Copyright): Explain the different license
61491         terms for module descriptions, autoconf macros, tests, documentation.
61492
61493 2007-01-14  Bruno Haible  <bruno@clisp.org>
61494
61495         * modules/striconv-tests: New file.
61496         * tests/test-striconv.c: New file.
61497
61498 2007-01-14  Bruno Haible  <bruno@clisp.org>
61499
61500         * modules/iconv-tests: New file.
61501         * tests/test-iconv.c: New file.
61502
61503 2007-01-14  Bruno Haible  <bruno@clisp.org>
61504
61505         * gnulib-tool (func_get_license): For test modules, use the license of
61506         the main module.
61507
61508 2007-01-14  Bruno Haible  <bruno@clisp.org>
61509
61510         * modules/iconv (Include): Clarify that <iconv.h> can only be included
61511         if iconv is found to exist.
61512
61513 2007-01-14  Bruno Haible  <bruno@clisp.org>
61514
61515         * modules/c-ctype-tests: New file.
61516         * tests/test-c-ctype.c: New file.
61517
61518 2007-01-14  Bruno Haible  <bruno@clisp.org>
61519
61520         * modules/binary-io-tests: New file.
61521         * tests/test-binary-io.sh: New file.
61522         * tests/test-binary-io.c: New file.
61523
61524 2007-01-14  Bruno Haible  <bruno@clisp.org>
61525
61526         * modules/array-oset-tests: New file.
61527         * tests/test-array_oset.c: New file.
61528
61529 2007-01-14  Bruno Haible  <bruno@clisp.org>
61530
61531         * modules/array-list-tests: New file.
61532         * tests/test-array_list.c: New file.
61533
61534 2007-01-14  Bruno Haible  <bruno@clisp.org>
61535
61536         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
61537         and make.
61538         Reported by Simon Josefsson in
61539         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
61540
61541 2007-01-14  Bruno Haible  <bruno@clisp.org>
61542
61543         * modules/allocsa-tests: New file.
61544         * tests/test-allocsa.c: New file.
61545
61546 2007-01-14  Bruno Haible  <bruno@clisp.org>
61547
61548         * modules/fchdir (Depends-on): Add absolute-header.
61549         * modules/unistd (Depends-on): Likewise.
61550
61551 2006-12-30  Bruno Haible  <bruno@clisp.org>
61552
61553         * modules/fchdir: New file.
61554         * modules/unistd (Files): Add lib/unistd_.h.
61555         (Makefile.am): Generate unistd.h from unistd_.h.
61556         * lib/fchdir.c: New file.
61557         * lib/dirent_.h: New file.
61558         * lib/unistd_.h: New file.
61559         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
61560         * m4/fchdir.m4: New file.
61561         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
61562         (gl_HEADER_UNISTD): Invoke it.
61563         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
61564         function.
61565         * lib/backupfile.c (opendir, closedir): Undefine.
61566         * lib/chown.c (open, close): Undefine.
61567         * lib/clean-temp.c (open, close): Undefine.
61568         * lib/copy-file.c (open, close): Undefine.
61569         * lib/execute.c (open, close): Undefine.
61570         * lib/fsusage.c (open, close): Undefine.
61571         * lib/gc-gnulib.c (open, close): Undefine.
61572         * lib/getcwd.c (opendir, closedir): Undefine.
61573         * lib/glob.c (opendir, closedir): Undefine.
61574         * lib/javacomp.c (open, close): Undefine.
61575         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
61576         * lib/openat-proc.c (open, close): Undefine.
61577         * lib/pagealign_alloc.c (open, close): Undefine.
61578         * lib/pipe.c (open, close): Undefine.
61579         * lib/progreloc.c (open, close): Undefine.
61580         * lib/savedir.c (opendir, closedir): Undefine.
61581         * lib/utime.c (open, close): Undefine.
61582         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
61583
61584 2007-01-10  Bruno Haible  <bruno@clisp.org>
61585
61586         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
61587
61588 2007-01-12  Eric Blake  <ebb9@byu.net>
61589
61590         Provide a robust <wchar.h>.  Further simplifications are now
61591         possible in other modules, but not included here.
61592         * modules/wchar: New module.
61593         * m4/wchar.m4: New file.
61594         * lib/wchar_.h: Likewise.
61595         * modules/mbchar (Depends-on): Depend on wchar, as the first use
61596         of the new module.
61597         * MODULES.html.sh (Extended multibyte and wide character utilities):
61598         New section.
61599
61600 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
61601
61602         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
61603         to a reasonable default for memory allocation.
61604         (xreadlink): Don't allocate a huge buffer, to work around a buggy
61605         file system that reports garbage st_size values for symlinks.
61606         Problem reported by Liyang Hu.
61607
61608 2007-01-11  Simon Josefsson  <simon@josefsson.org>
61609
61610         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
61611         Emacs .#* auto-save files).
61612
61613 2007-01-11  Bruno Haible  <bruno@clisp.org>
61614
61615         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
61616         directory.
61617
61618 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61619
61620         Use @...@ consistently in lib/wctype_.h.
61621         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
61622         on it being set to 1 or 0.
61623         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
61624         go back to AC_SUBSTing it.
61625         * modules/wctype (Makefile.am): Undo previous change.
61626
61627 2007-01-10  Eric Blake  <ebb9@byu.net>
61628
61629         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
61630         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
61631         * modules/wctype (Makefile.am): Likewise.
61632         Reported by Chris McGuire.
61633
61634 2007-01-10  Jim Meyering  <jim@meyering.net>
61635
61636         fts.c: a small readability/maintainability improvement
61637         * lib/fts.c (fts_read): Make this code slightly more readable and
61638         maintainable by hoisting the "sp->fts_cur = p" assignments to
61639         immediately follow the statements that set P.  Derived from
61640         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
61641
61642 2007-01-10  Eric Blake  <ebb9@byu.net>
61643
61644         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
61645         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
61646         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61647         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61648         Reported by Chris McGuire.
61649
61650 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61651
61652         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
61653         in sed script.
61654
61655 2007-01-09  Bruno Haible  <bruno@clisp.org>
61656
61657         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
61658         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
61659         variables.
61660         (func_module): Use them.
61661
61662 2007-01-09  Bruno Haible  <bruno@clisp.org>
61663
61664         * modules/unistr/base: New file.
61665         * lib/unistr.h: New file.
61666
61667         * modules/unistr/u8-to-u16: New file.
61668         * lib/unistr/u8-to-u16.c: New file.
61669
61670         * modules/unistr/u8-to-u32: New file.
61671         * lib/unistr/u8-to-u32.c: New file.
61672
61673         * modules/unistr/u16-to-u8: New file.
61674         * lib/unistr/u16-to-u8.c: New file.
61675
61676         * modules/unistr/u16-to-u32: New file.
61677         * lib/unistr/u16-to-u32.c: New file.
61678
61679         * modules/unistr/u32-to-u8: New file.
61680         * lib/unistr/u32-to-u8.c: New file.
61681
61682         * modules/unistr/u32-to-u16: New file.
61683         * lib/unistr/u32-to-u16.c: New file.
61684
61685         * modules/unistr/u8-check: New file.
61686         * modules/unistr/u16-check: New file.
61687         * modules/unistr/u32-check: New file.
61688         * lib/unistr/u8-check.c: New file.
61689         * lib/unistr/u16-check.c: New file.
61690         * lib/unistr/u32-check.c: New file.
61691
61692         * modules/unistr/u8-chr: New file.
61693         * modules/unistr/u16-chr: New file.
61694         * modules/unistr/u32-chr: New file.
61695         * lib/unistr/u8-chr.c: New file.
61696         * lib/unistr/u16-chr.c: New file.
61697         * lib/unistr/u32-chr.c: New file.
61698
61699         * modules/unistr/u8-cmp: New file.
61700         * modules/unistr/u16-cmp: New file.
61701         * modules/unistr/u32-cmp: New file.
61702         * lib/unistr/u8-cmp.c: New file.
61703         * lib/unistr/u16-cmp.c: New file.
61704         * lib/unistr/u32-cmp.c: New file.
61705
61706         * modules/unistr/u8-cpy: New file.
61707         * modules/unistr/u16-cpy: New file.
61708         * modules/unistr/u32-cpy: New file.
61709         * lib/unistr/u8-cpy.c: New file.
61710         * lib/unistr/u16-cpy.c: New file.
61711         * lib/unistr/u32-cpy.c: New file.
61712         * lib/unistr/u-cpy.h: New file.
61713
61714         * modules/unistr/u8-cpy-alloc: New file.
61715         * modules/unistr/u16-cpy-alloc: New file.
61716         * modules/unistr/u32-cpy-alloc: New file.
61717         * lib/unistr/u8-cpy-alloc.c: New file.
61718         * lib/unistr/u16-cpy-alloc.c: New file.
61719         * lib/unistr/u32-cpy-alloc.c: New file.
61720         * lib/unistr/u-cpy-alloc.h: New file.
61721
61722         * modules/unistr/u8-endswith: New file.
61723         * modules/unistr/u16-endswith: New file.
61724         * modules/unistr/u32-endswith: New file.
61725         * lib/unistr/u8-endswith.c: New file.
61726         * lib/unistr/u16-endswith.c: New file.
61727         * lib/unistr/u32-endswith.c: New file.
61728         * lib/unistr/u-endswith.h: New file.
61729
61730         * modules/unistr/u8-mblen: New file.
61731         * modules/unistr/u16-mblen: New file.
61732         * modules/unistr/u32-mblen: New file.
61733         * lib/unistr/u8-mblen.c: New file.
61734         * lib/unistr/u16-mblen.c: New file.
61735         * lib/unistr/u32-mblen.c: New file.
61736
61737         * modules/unistr/u8-mbtouc: New file.
61738         * modules/unistr/u16-mbtouc: New file.
61739         * modules/unistr/u32-mbtouc: New file.
61740         * lib/unistr/u8-mbtouc.c: New file.
61741         * lib/unistr/u16-mbtouc.c: New file.
61742         * lib/unistr/u32-mbtouc.c: New file.
61743
61744         * modules/unistr/u8-mbtouc-safe: New file.
61745         * modules/unistr/u16-mbtouc-safe: New file.
61746         * modules/unistr/u32-mbtouc-safe: New file.
61747         * lib/unistr/u8-mbtouc-safe.c: New file.
61748         * lib/unistr/u16-mbtouc-safe.c: New file.
61749         * lib/unistr/u32-mbtouc-safe.c: New file.
61750
61751         * modules/unistr/u8-move: New file.
61752         * modules/unistr/u16-move: New file.
61753         * modules/unistr/u32-move: New file.
61754         * lib/unistr/u8-move.c: New file.
61755         * lib/unistr/u16-move.c: New file.
61756         * lib/unistr/u32-move.c: New file.
61757         * lib/unistr/u-move.h: New file.
61758
61759         * modules/unistr/u8-next: New file.
61760         * modules/unistr/u16-next: New file.
61761         * modules/unistr/u32-next: New file.
61762         * lib/unistr/u8-next.c: New file.
61763         * lib/unistr/u16-next.c: New file.
61764         * lib/unistr/u32-next.c: New file.
61765
61766         * modules/unistr/u8-prev: New file.
61767         * modules/unistr/u16-prev: New file.
61768         * modules/unistr/u32-prev: New file.
61769         * lib/unistr/u8-prev.c: New file.
61770         * lib/unistr/u16-prev.c: New file.
61771         * lib/unistr/u32-prev.c: New file.
61772
61773         * modules/unistr/u8-set: New file.
61774         * modules/unistr/u16-set: New file.
61775         * modules/unistr/u32-set: New file.
61776         * lib/unistr/u8-set.c: New file.
61777         * lib/unistr/u16-set.c: New file.
61778         * lib/unistr/u32-set.c: New file.
61779         * lib/unistr/u-set.h: New file.
61780
61781         * modules/unistr/u8-startswith: New file.
61782         * modules/unistr/u16-startswith: New file.
61783         * modules/unistr/u32-startswith: New file.
61784         * lib/unistr/u8-startswith.c: New file.
61785         * lib/unistr/u16-startswith.c: New file.
61786         * lib/unistr/u32-startswith.c: New file.
61787         * lib/unistr/u-startswith.h: New file.
61788
61789         * modules/unistr/u8-stpcpy: New file.
61790         * modules/unistr/u16-stpcpy: New file.
61791         * modules/unistr/u32-stpcpy: New file.
61792         * lib/unistr/u8-stpcpy.c: New file.
61793         * lib/unistr/u16-stpcpy.c: New file.
61794         * lib/unistr/u32-stpcpy.c: New file.
61795         * lib/unistr/u-stpcpy.h: New file.
61796
61797         * modules/unistr/u8-stpncpy: New file.
61798         * modules/unistr/u16-stpncpy: New file.
61799         * modules/unistr/u32-stpncpy: New file.
61800         * lib/unistr/u8-stpncpy.c: New file.
61801         * lib/unistr/u16-stpncpy.c: New file.
61802         * lib/unistr/u32-stpncpy.c: New file.
61803         * lib/unistr/u-stpncpy.h: New file.
61804
61805         * modules/unistr/u8-strcat: New file.
61806         * modules/unistr/u16-strcat: New file.
61807         * modules/unistr/u32-strcat: New file.
61808         * lib/unistr/u8-strcat.c: New file.
61809         * lib/unistr/u16-strcat.c: New file.
61810         * lib/unistr/u32-strcat.c: New file.
61811         * lib/unistr/u-strcat.h: New file.
61812
61813         * modules/unistr/u8-strchr: New file.
61814         * modules/unistr/u16-strchr: New file.
61815         * modules/unistr/u32-strchr: New file.
61816         * lib/unistr/u8-strchr.c: New file.
61817         * lib/unistr/u16-strchr.c: New file.
61818         * lib/unistr/u32-strchr.c: New file.
61819
61820         * modules/unistr/u8-strcmp: New file.
61821         * modules/unistr/u16-strcmp: New file.
61822         * modules/unistr/u32-strcmp: New file.
61823         * lib/unistr/u8-strcmp.c: New file.
61824         * lib/unistr/u16-strcmp.c: New file.
61825         * lib/unistr/u32-strcmp.c: New file.
61826
61827         * modules/unistr/u8-strcpy: New file.
61828         * modules/unistr/u16-strcpy: New file.
61829         * modules/unistr/u32-strcpy: New file.
61830         * lib/unistr/u8-strcpy.c: New file.
61831         * lib/unistr/u16-strcpy.c: New file.
61832         * lib/unistr/u32-strcpy.c: New file.
61833         * lib/unistr/u-strcpy.h: New file.
61834
61835         * modules/unistr/u8-strcspn: New file.
61836         * modules/unistr/u16-strcspn: New file.
61837         * modules/unistr/u32-strcspn: New file.
61838         * lib/unistr/u8-strcspn.c: New file.
61839         * lib/unistr/u16-strcspn.c: New file.
61840         * lib/unistr/u32-strcspn.c: New file.
61841         * lib/unistr/u-strcspn.h: New file.
61842
61843         * modules/unistr/u8-strdup: New file.
61844         * modules/unistr/u16-strdup: New file.
61845         * modules/unistr/u32-strdup: New file.
61846         * lib/unistr/u8-strdup.c: New file.
61847         * lib/unistr/u16-strdup.c: New file.
61848         * lib/unistr/u32-strdup.c: New file.
61849         * lib/unistr/u-strdup.h: New file.
61850
61851         * modules/unistr/u8-strlen: New file.
61852         * modules/unistr/u16-strlen: New file.
61853         * modules/unistr/u32-strlen: New file.
61854         * lib/unistr/u8-strlen.c: New file.
61855         * lib/unistr/u16-strlen.c: New file.
61856         * lib/unistr/u32-strlen.c: New file.
61857         * lib/unistr/u-strlen.h: New file.
61858
61859         * modules/unistr/u8-strmblen: New file.
61860         * modules/unistr/u16-strmblen: New file.
61861         * modules/unistr/u32-strmblen: New file.
61862         * lib/unistr/u8-strmblen.c: New file.
61863         * lib/unistr/u16-strmblen.c: New file.
61864         * lib/unistr/u32-strmblen.c: New file.
61865
61866         * modules/unistr/u8-strmbtouc: New file.
61867         * modules/unistr/u16-strmbtouc: New file.
61868         * modules/unistr/u32-strmbtouc: New file.
61869         * lib/unistr/u8-strmbtouc.c: New file.
61870         * lib/unistr/u16-strmbtouc.c: New file.
61871         * lib/unistr/u32-strmbtouc.c: New file.
61872
61873         * modules/unistr/u8-strncat: New file.
61874         * modules/unistr/u16-strncat: New file.
61875         * modules/unistr/u32-strncat: New file.
61876         * lib/unistr/u8-strncat.c: New file.
61877         * lib/unistr/u16-strncat.c: New file.
61878         * lib/unistr/u32-strncat.c: New file.
61879         * lib/unistr/u-strncat.h: New file.
61880
61881         * modules/unistr/u8-strncmp: New file.
61882         * modules/unistr/u16-strncmp: New file.
61883         * modules/unistr/u32-strncmp: New file.
61884         * lib/unistr/u8-strncmp.c: New file.
61885         * lib/unistr/u16-strncmp.c: New file.
61886         * lib/unistr/u32-strncmp.c: New file.
61887
61888         * modules/unistr/u8-strncpy: New file.
61889         * modules/unistr/u16-strncpy: New file.
61890         * modules/unistr/u32-strncpy: New file.
61891         * lib/unistr/u8-strncpy.c: New file.
61892         * lib/unistr/u16-strncpy.c: New file.
61893         * lib/unistr/u32-strncpy.c: New file.
61894         * lib/unistr/u-strncpy.h: New file.
61895
61896         * modules/unistr/u8-strnlen: New file.
61897         * modules/unistr/u16-strnlen: New file.
61898         * modules/unistr/u32-strnlen: New file.
61899         * lib/unistr/u8-strnlen.c: New file.
61900         * lib/unistr/u16-strnlen.c: New file.
61901         * lib/unistr/u32-strnlen.c: New file.
61902         * lib/unistr/u-strnlen.h: New file.
61903
61904         * modules/unistr/u8-strpbrk: New file.
61905         * modules/unistr/u16-strpbrk: New file.
61906         * modules/unistr/u32-strpbrk: New file.
61907         * lib/unistr/u8-strpbrk.c: New file.
61908         * lib/unistr/u16-strpbrk.c: New file.
61909         * lib/unistr/u32-strpbrk.c: New file.
61910         * lib/unistr/u-strpbrk.h: New file.
61911
61912         * modules/unistr/u8-strrchr: New file.
61913         * modules/unistr/u16-strrchr: New file.
61914         * modules/unistr/u32-strrchr: New file.
61915         * lib/unistr/u8-strrchr.c: New file.
61916         * lib/unistr/u16-strrchr.c: New file.
61917         * lib/unistr/u32-strrchr.c: New file.
61918
61919         * modules/unistr/u8-strspn: New file.
61920         * modules/unistr/u16-strspn: New file.
61921         * modules/unistr/u32-strspn: New file.
61922         * lib/unistr/u8-strspn.c: New file.
61923         * lib/unistr/u16-strspn.c: New file.
61924         * lib/unistr/u32-strspn.c: New file.
61925         * lib/unistr/u-strspn.h: New file.
61926
61927         * modules/unistr/u8-strstr: New file.
61928         * modules/unistr/u16-strstr: New file.
61929         * modules/unistr/u32-strstr: New file.
61930         * lib/unistr/u8-strstr.c: New file.
61931         * lib/unistr/u16-strstr.c: New file.
61932         * lib/unistr/u32-strstr.c: New file.
61933         * lib/unistr/u-strstr.h: New file.
61934
61935         * modules/unistr/u8-strtok: New file.
61936         * modules/unistr/u16-strtok: New file.
61937         * modules/unistr/u32-strtok: New file.
61938         * lib/unistr/u8-strtok.c: New file.
61939         * lib/unistr/u16-strtok.c: New file.
61940         * lib/unistr/u32-strtok.c: New file.
61941         * lib/unistr/u-strtok.h: New file.
61942
61943         * modules/unistr/u8-uctomb: New file.
61944         * modules/unistr/u16-uctomb: New file.
61945         * modules/unistr/u32-uctomb: New file.
61946         * lib/unistr/u8-uctomb.c: New file.
61947         * lib/unistr/u16-uctomb.c: New file.
61948         * lib/unistr/u32-uctomb.c: New file.
61949
61950         * MODULES.html.sh (Unicode string functions): Add the new modules.
61951
61952 2007-01-08  Bruno Haible  <bruno@clisp.org>
61953
61954         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61955         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61956         subdirectories.
61957
61958 2007-01-08  Karl Berry  <karl@gnu.org>
61959
61960         * doc/error.texi: mention that main() fns must set program_name
61961         when progname is used.
61962
61963 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61964
61965         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61966         WCTYPE_H is empty, for the benefit of builds from non-distclean
61967         directories.  Problem reported by Eric Blake in
61968         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61969
61970 2007-01-08  Bruno Haible  <bruno@clisp.org>
61971
61972         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61973         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61974         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61975         PROVIDE_CANONICALIZE_FILENAME_MODE.
61976         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61977
61978 2007-01-08  Bruno Haible  <bruno@clisp.org>
61979
61980         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61981         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61982         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61983         * lib/fts.c: Likewise.
61984         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61985
61986 2006-12-25  Bruno Haible  <bruno@clisp.org>
61987
61988         * modules/utf8-ucs4-safe: New file.
61989         * lib/utf8-ucs4-safe.h: New file.
61990         * lib/unistr/utf8-ucs4-safe.c: New file.
61991
61992         * modules/utf16-ucs4-safe: New file.
61993         * lib/utf16-ucs4-safe.h: New file.
61994         * lib/unistr/utf16-ucs4-safe.c: New file.
61995
61996         * MODULES.html.sh (Unicode string functions): Add the new modules.
61997
61998 2007-01-08  Bruno Haible  <bruno@clisp.org>
61999
62000         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
62001         (Depends-on): Add unitypes.
62002         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62003         (u8_mbtouc_aux): Move out to separate file.
62004         (u8_mbtouc): Use ucs4_t, uint8_t types.
62005         * lib/unistr/utf8-ucs4.c: New file.
62006
62007         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
62008         (Depends-on): Add unitypes.
62009         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62010         (u16_mbtouc_aux): Move out to separate file.
62011         (u16_mbtouc): Use ucs4_t, uint16_t types.
62012         * lib/unistr/utf16-ucs4.c: New file.
62013
62014         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
62015         (Depends-on): Add unitypes.
62016         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
62017         (u8_uctomb_aux): Move out to separate file.
62018         (u8_uctomb): Use ucs4_t, uint8_t types.
62019         * lib/unistr/ucs4-utf8.c: New file.
62020
62021         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
62022         (Depends-on): Add unitypes.
62023         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
62024         (u16_uctomb_aux): Move out to separate file.
62025         (u16_uctomb): Use ucs4_t, uint16_t types.
62026         * lib/unistr/ucs4-utf16.c: New file.
62027
62028 2006-12-25  Bruno Haible  <bruno@clisp.org>
62029
62030         * modules/unitypes: New file.
62031         * lib/unitypes.h: New file.
62032         * MODULES.html.sh (func_all_modules): New section "Unicode string
62033         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
62034         this section. Add unitypes.
62035
62036 2007-01-08  Bruno Haible  <bruno@clisp.org>
62037
62038         Avoid variable names that conflict with those from libtool.
62039         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
62040         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
62041         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
62042         library_names_spec to acl_library_names_spec, hardcode_* to
62043         acl_hardcode_*.
62044         Reported by Ralf Wildenhues.
62045
62046 2007-01-08  Bruno Haible  <bruno@clisp.org>
62047
62048         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
62049         definition.
62050         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
62051         definition.
62052         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
62053         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
62054         definition.
62055         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
62056         definition.
62057         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
62058         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
62059         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
62060         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
62061         definition.
62062         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
62063         definition.
62064         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
62065         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
62066         GC_USE_<algorithm>.
62067         * lib/gc-libgcrypt.c: Likewise.
62068         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
62069         * modules/gc-arctwo (configure.ac): Likewise.
62070         * modules/gc-des (configure.ac): Likewise.
62071         * modules/gc-hmac-md5 (configure.ac): Likewise.
62072         * modules/gc-hmac-sha1 (configure.ac): Likewise.
62073         * modules/gc-md2 (configure.ac): Likewise.
62074         * modules/gc-md4 (configure.ac): Likewise.
62075         * modules/gc-md5 (configure.ac): Likewise.
62076         * modules/gc-random (configure.ac): Likewise.
62077         * modules/gc-rijndael (configure.ac): Likewise.
62078         * modules/gc-sha1 (configure.ac): Likewise.
62079
62080 2007-01-08  Bruno Haible  <bruno@clisp.org>
62081
62082         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
62083         macro definition.
62084         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
62085         definition.
62086         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
62087         definition.
62088         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
62089         * modules/fcntl-safer (configure.ac): Likewise.
62090         * modules/fopen-safer (configure.ac): Likewise.
62091         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
62092         GNULIB_FWRITEERROR macro definition.
62093
62094 2007-01-08  Bruno Haible  <bruno@clisp.org>
62095
62096         * m4/gnulib-common.m4: New file.
62097         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
62098         (func_get_filelist): Add m4/gnulib-common.m4.
62099
62100 2007-01-08  Bruno Haible  <bruno@clisp.org>
62101
62102         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
62103         command.
62104
62105 2007-01-08  Jim Meyering  <jim@meyering.net>
62106
62107         Use a more robust test for a "can't happen" condition.
62108         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
62109         narrowed the st_size value.  Presuming the "can't happen" condition
62110         is true, that narrowing could conceivably convert an invalid st_size
62111         value into a valid one.  Instead, use a change based on Matthew
62112         Woehlke's original patch.
62113
62114         Slight readability improvement: use an assert-like macro
62115         in place of literal "abort ()" uses.
62116         * lib/fts.c (fts_assert): Define.
62117         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
62118         Use this macro instead of a bare 'abort'.
62119
62120 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
62121
62122         Don't worry about using IRIX 5.3's wctype.h broken definitions;
62123         simply work around them.
62124         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
62125         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
62126         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
62127         declaring.
62128         Don't bother to define as macros, since the standard doesn't require it.
62129         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
62130         longer worry about IRIX 5.3.
62131         (HAVE_WCTYPE_CTMP_BUG): Remove.
62132
62133 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62134
62135         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
62136         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
62137         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62138         Problems reported by Georg Schwarz for IRIX 5.3.
62139
62140         * gnulib-tool (autoconf_minversion): Take the maximum version number
62141         found, not the minimum.  Problem reported by James Youngman.
62142
62143 2007-01-03  Karl Berry  <karl@gnu.org>
62144
62145         * doc/error.texi: new file, explaining interaction with progname.
62146         * doc/gnulib.texi: include it.  Update copyright.
62147
62148 2007-01-03  Simon Josefsson  <simon@josefsson.org>
62149
62150         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
62151         AC_CANONICAL_HOST, to improve autobuild outputs.
62152
62153 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
62154             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62155
62156         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
62157         sockets, server sockets, and other file descriptors.  Count errors
62158         to compute the return value.  Reorder the code a bit to be easier
62159         to follow.  Don't set event bits that were not requested (except
62160         POLLERR and POLLHUP).
62161
62162 2007-01-01  Bruno Haible  <bruno@clisp.org>
62163
62164         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
62165
62166 2007-01-03  Jim Meyering  <jim@meyering.net>
62167
62168         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
62169
62170 2007-01-02  Bruno Haible  <bruno@clisp.org>
62171
62172         * modules/settime (Include): Require timespec.h.
62173         * modules/nanosleep (Include): Likewise.
62174
62175 2007-01-01  Bruno Haible  <bruno@clisp.org>
62176
62177         * gnulib-tool (func_emit_copyright_notice): Bump year.
62178         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
62179
62180 2007-01-01  Bruno Haible  <bruno@clisp.org>
62181
62182         Improve support for OpenBSD.
62183         * build-aux/config.rpath (libname_spec): Export.
62184         (library_names_spec): New variable. Export.
62185         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
62186         library_names_spec from the config.rpath output. Locate shared library
62187         through the name pattern in library_names_spec.
62188
62189 2007-01-01  Eric Blake  <ebb9@byu.net>
62190
62191         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
62192
62193 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
62194
62195         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
62196         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
62197         assume the C locale, and avoid an "eval" that could cause trouble.
62198         Problem with SORT reported by Bob Proulx.
62199
62200         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
62201         Define.  Trivial patch from Henning Nielsen Lund, originally
62202         sent to bug-grep@gnu.org today.
62203
62204 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62205
62206         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
62207         struct stat.  Problem reported by Henning Nielsen Lund.
62208         * lib/acl.c: Include acl.h first, to check interface.  Don't
62209         bother to include sys/types.h and sys/stat.h again.
62210
62211 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62212
62213         Import the following change from libc; problem reported by
62214         Sven Verdoolaege.
62215
62216         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
62217
62218         [BZ #1373]
62219         * lib/argp.h: Remove __NTH for __argp_usage inline function.
62220
62221 2006-12-28  Jim Meyering  <jim@meyering.net>
62222
62223         * build-aux/announce-gen: Do not assume that the package
62224         builds any of tar.gz, tar.bz2, and .xdelta files.
62225         Suggestion from Simon Josefsson.
62226
62227 2006-12-28  Simon Josefsson  <simon@josefsson.org>
62228
62229         * modules/announce-gen: New file.
62230
62231 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62232
62233         * lib/mbchar.h: Just include <wctype.h>; the wctype module
62234         handles its gotchas now.
62235         * lib/mbswidth.c: Likewise.
62236         * lib/wcwidth.h: Likewise.
62237         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
62238         and iswcntrl; the wctype module does this stuff now.
62239         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62240         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62241         * modules/mbchar (Depends-on): Add wctype.
62242         * modules/mbswidth (Depends-on): Likewise.
62243         * modules/wcwidth (Depends-on): Likewise.
62244
62245 2006-12-27  Eric Blake  <ebb9@byu.net>
62246
62247         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
62248         module uses more than what <wctype.h> is required to provide.
62249
62250 2006-12-26  Eric Blake  <ebb9@byu.net>
62251
62252         * gnulib-tool (sed_extract_prog): Avoid space-tab.
62253
62254 2006-12-26  Eric Blake  <ebb9@byu.net>
62255
62256         * modules/absolute-header: New module.
62257         * modules/fcntl (Depends-on): Depend on it.
62258         * modules/inttypes (Depends-on): Likewise.
62259         * modules/stdint (Depends-on): Likewise.
62260         * modules/sys_stat (Depends-on): Likewise.
62261         * modules/wctype (Depends-on): Likewise.
62262         * MODULES.html.sh (Support for building libraries and
62263         executables): Document it.
62264
62265 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62266
62267         * gnulib-tool (SED): Remove, undoing previous change.
62268         The problem was that it broke coreutils on Solaris, because
62269         "sed --posix" leaked into a makefile.
62270         (sed): New alias, if 'alias' and GNU sed.
62271
62272 2006-12-24  Jim Meyering  <jim@meyering.net>
62273
62274         Work around an fchownat bug in glibc-2.4:
62275         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
62276         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
62277         in spite of the -P option.
62278         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
62279         New macros.
62280         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
62281         * modules/openat (Files): Add lib/fchownat.c.
62282         * lib/openat.c (fchownat): Don't define here.  Move to...
62283         * lib/fchownat.c: ...this new file.
62284
62285 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62286
62287         Fix bug reported by Bruno Haible in
62288         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
62289         where quotearg.c didn't compile on Mac OS X 10.2 because it
62290         lacks <wchar.h> and wint_t.
62291         * lib/wctype_.h (__wctype_wint_t): New type.
62292         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
62293         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
62294         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
62295         Arg is now of type __wctype_wint_t, not wint_t.
62296         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
62297         substitute HAVE_WINT_T.
62298         * modules/wctype (Files): Add m4/wint_t.m4.
62299         (wctype.h): Substitute HAVE_WINT_T.
62300
62301 2006-12-23  Bruno Haible  <bruno@clisp.org>
62302
62303         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
62304
62305 2006-12-23  Bruno Haible  <bruno@clisp.org>
62306
62307         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
62308         S_ISLNK.
62309         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
62310         mingw.
62311
62312 2006-12-22  Bruno Haible  <bruno@clisp.org>
62313
62314         * lib/copy-file.c: Include acl.h.
62315         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
62316         Close the file descriptors only after being done with copy_acl.
62317         * modules/copy-file (Depends-on): Add acl.
62318
62319 2006-12-22  Bruno Haible  <bruno@clisp.org>
62320
62321         * gnulib-tool (SED): New variable.
62322         Use $SED instead of sed everywhere.
62323
62324 2006-12-22  Bruno Haible  <bruno@clisp.org>
62325
62326         * modules/no-c++: New file.
62327         * m4/no-c++.m4: New file.
62328         * MODULES.html.sh (Support for building libraries and executables):
62329         Add no-c++.
62330
62331 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62332
62333         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62334         Include <limits.h>, and use its INT_MAX to rewrite the
62335         j loop so that it does not overflow 'int'.  Problem reported by
62336         Ralf Wildenhues in
62337         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
62338         Play it safe by shifting left by 1 rather than multiplying by 2,
62339         as GCC is less likely to optimize this away when the value
62340         is signed (when it assumes overflow leads to undefined behavior).
62341         Also, don't assume time_t uses two's complement.
62342
62343 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62344
62345         * MODULES.html.sh: New module wctype.
62346         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
62347         * lib/fnmatch.c: Don't bother to include <wchar.h> before
62348         <wctype.h>, since the new wctype module should fix this.
62349         * lib/quotearg.c: Include <wctype.h> unconditionally, since
62350         the wctype module should arrange for it.
62351         * lib/regex_internal.h: Likewise.
62352         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
62353         since the wctype module should handle this now.
62354         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
62355         * modules/fnmatch (Depends-on): Add wctype.
62356         * modules/quotearg (Depends-on): Likewise.
62357         * modules/regex (Depends-on): Likewise.
62358
62359 2006-12-19  Bruno Haible  <bruno@clisp.org>
62360
62361         * lib/strdup.h [C++]: Wrap definitions in extern "C".
62362         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
62363
62364 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62365
62366         * modules/savewd (Depends-on): Fix dependency on fcntl.
62367
62368 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62369
62370         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
62371         conforms to C99, rather than relying on the user's environment
62372         setting of STDINT_H.
62373
62374 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62375         and Eric Blake  <ebb9@byu.net>
62376
62377         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
62378         This is more consistent with the other defines here.
62379         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
62380         Port to z/OS.  Problem reported by Paul Gilmartin.
62381         Change local vars to use gl_ prefix rather than ac_.
62382         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
62383         with other defines.
62384         * modules/double-slash-root: New module.
62385         * modules/dirname (Files): Remove m4/double-slash-root.m4.
62386         (Depends-on): Add double-slash-root.
62387         * MODULES.html.sh (File system functions): Mention new module.
62388
62389 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
62390
62391         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
62392         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
62393         This is for the benefit of gzip, which doesn't do i18n.
62394
62395 2006-12-12  Jim Meyering  <jim@meyering.net>
62396
62397         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
62398         Reported by Andreas Schwab <schwab@suse.de>.
62399
62400 2006-12-12  Bruno Haible  <bruno@clisp.org>
62401
62402         Merge these changes.
62403         2006-09-05  Bruno Haible  <bruno@clisp.org>
62404         * lib/iconvme.c (iconv_string): No need to save and restore errno when
62405         iconv_alloc succeeded.
62406         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
62407         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
62408         test for " && dest " at the end - dest is always != NULL there. Call
62409         iconv with 4xNULL arguments initially, to reset the state. Call iconv
62410         with 2xNULL arguments, also to flush the state storage. Handle the
62411         IRIX iconv behaviour. Realloc the final result, to throw away unused
62412         memory.
62413
62414 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
62415
62416         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
62417         and fchmodat unconditionally, since glibc 2.4 has them.
62418         Problem reported by Arkadiusz Miskiewicz.
62419
62420 2006-12-10  Bruno Haible  <bruno@clisp.org>
62421
62422         * gnulib-tool (func_import): Show the include files only for those
62423         modules that are copied and specified.
62424         Reported by Karl Berry.
62425
62426 2006-12-08  Jim Meyering  <jim@meyering.net>
62427
62428         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
62429         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
62430
62431         * build-aux/announce-gen: Add two new options, both optional:
62432         --bootstrap-tools=TOOL_LIST
62433               a comma-separated list of tools, e.g.,
62434               autoconf,automake,bison,gnulib
62435         --gnulib-snapshot-date=DATE
62436               if gnulib is in the bootstrap tool list,
62437               then report this as the snapshot date.
62438               If not specified, use the current date/time.
62439               If you specify a date here, be sure it's UTC.
62440
62441 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62442
62443         * tests/test-argp-2.sh: Fix test to match actual output.
62444         (func_compare): Fix sed script to be portable.
62445
62446 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
62447
62448         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
62449         workaround for this case.  It is not autoconfigured now; offhand
62450         it's hard to see how to autoconfigure it.
62451
62452 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62453
62454         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
62455         a directory that is about to be chowned.  Such a directory's
62456         initial file permissions should permit the owner only and this
62457         should not be changed until after the chown, since the group and
62458         other bits would be incorrect if they granted permission before
62459         the chown.
62460
62461         Fix porting problem for iswctype reported by Georg Schwarz in:
62462         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
62463         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
62464         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
62465         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
62466         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62467
62468 2006-12-03  Jim Meyering  <jim@meyering.net>
62469
62470         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
62471         p->fts_statp may not yet be defined.
62472         (fts_read): Instead, set it in the caller, once p->fts_statp is
62473         sure to be defined, and corresponds to a top-level directory.
62474         This bug made du -x fail.  Here's the coreutils test case:
62475         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
62476         Reported by Mike Frysinger.
62477
62478 2006-12-01  Jim Meyering  <jim@meyering.net>
62479
62480         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
62481         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
62482         Reported by Simon Josefsson.
62483
62484 2006-11-30  Jim Meyering  <jim@meyering.net>
62485
62486         * m4/warning.m4: Use the all-permissive copyright notice
62487         recommended by RMS (rather than LGPL).
62488         * m4/vararrays.m4: Likewise.
62489         * m4/flexmember.m4: Likewise.
62490
62491 2006-11-29  Bruno Haible  <bruno@clisp.org>
62492
62493         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62494         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
62495         using +=.
62496         Reported by Simon Josefsson <simon@josefsson.org>.
62497
62498 2006-11-28  James Youngman <jay@gnu.org>
62499
62500         * README: Advise users that they might find the bug-gnulib@gnu.org
62501         and autotools-announce@gnu.org mailing lists useful.
62502
62503 2006-11-28  Bruno Haible  <bruno@clisp.org>
62504
62505         * m4/ptrdiff_max.m4: Remove file.
62506
62507 2006-11-21  Bruno Haible  <bruno@clisp.org>
62508
62509         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
62510         _AC_COMPUTE_INT.
62511         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62512         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
62513         _AC_COMPUTE_INT.
62514         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62515         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
62516         _AC_COMPUTE_INT.
62517         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62518
62519 2006-11-28  Jim Meyering  <jim@meyering.net>
62520
62521         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
62522         warning from "gcc -Wshadow" about shadowing the builtin.
62523
62524 2006-11-27  Bruno Haible  <bruno@clisp.org>
62525
62526         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
62527         _AC_COMPUTE_INT.
62528         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62529
62530 2006-11-27  Bruno Haible  <bruno@clisp.org>
62531             Paul Eggert  <eggert@cs.ucla.edu>
62532
62533         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
62534
62535 2006-11-26  Bruno Haible  <bruno@clisp.org>
62536
62537         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62538         noinst_LTLIBRARIES.
62539
62540 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
62541             Bruno Haible  <bruno@clisp.org>
62542
62543         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
62544         if compiling with "gcc -ansi".
62545
62546 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
62547
62548         Fix some incompatibilities with gcc -ansi -pedantic.
62549         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
62550         if compiling pedantically with GCC, unless it's C99 or later.
62551         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
62552         it mishandles gcc -ansi -pedantic as well.
62553         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
62554         if gcc -pedantic.
62555         * lib/regexec.c (check_node_accept_bytes): Don't use auto
62556         initializers for struct if -pedantic, unless it's C99 or later.
62557
62558 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
62559
62560         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
62561         Don't close an fd more than once. Identical atimes indicate
62562         success, not failure.
62563
62564 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
62565
62566         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
62567
62568 2006-11-23  Jim Meyering  <jim@meyering.net>
62569
62570         * build-aux/announce-gen: New file.  From coreutils.
62571
62572 2006-11-22  Jim Meyering  <jim@meyering.net>
62573
62574         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
62575         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
62576         (fts_read): Use a temporary to narrow the overused st_size member
62577         before using it in a switch statement.  Reported by Matthew Woehlke.
62578
62579         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
62580         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62581
62582 2006-11-20  Bruno Haible  <bruno@clisp.org>
62583
62584         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
62585         changequote instead of pairs of brackets.
62586         Reported by Andreas Schwab <schwab@suse.de>.
62587
62588 2006-11-21  Jim Meyering  <jim@meyering.net>
62589
62590         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
62591         so as to remain compatible with older compilers.
62592         Patch from Michael Deutschmann.
62593
62594 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62595
62596         * MODULES.html.sh (File system functions): Add openat.
62597
62598         * lib/openat.h (rpl_fstatat): New macro, if
62599         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
62600         (fstatat): Define to rpl_fstatat under the same conditions,
62601         unless COMPILING_FSTATAT.
62602         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
62603         seems to have the bug.
62604         * lib/fstatat.c: New file.
62605         * modules/openat (Files): Add it.
62606
62607 2006-11-20  Bruno Haible  <bruno@clisp.org>
62608
62609         * Makefile: New file.
62610
62611 2006-11-20  Jim Meyering  <jim@meyering.net>
62612
62613         The beginnings of syntax-related checks for gnulib.
62614         * lib/Makefile: New file.
62615         * lib/t-idcache: New script.  Ensure that the two halves of
62616         idcache.c stay in sync.
62617
62618         * lib/idcache.c: Adjust comments in user- and group- portions to
62619         be more accurate, and to be consistent with one another.
62620
62621 2006-11-20  Jim Meyering  <jim@meyering.net>
62622
62623         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
62624         continue using the flexible array member (thus, this module performs
62625         half as many malloc calls), with the addition that...
62626         (getgroup, getuser): Consistently record a non-match via an empty
62627         "name" string, and map an empty string match to a NULL return value.
62628         * modules/idcache (Depends-on): Re-add flexmember.
62629
62630         * lib/idcache.c (getuser): Remove all uses of the register keyword.
62631         (getuidbyname, getgroup, getgidbyname): Likewise.
62632
62633         Use cleaner syntax: NULL rather than 0.
62634         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
62635
62636 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62637
62638         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
62639         It mishandled the case where the group was missing.
62640         Problem reported by Greg Schafer.
62641         * modules/idcache: Likewise.
62642
62643 2006-11-18  Jim Meyering  <jim@meyering.net>
62644
62645         * check-module (%exempt_header): Add exception for some
62646         conditionally-included headers.
62647
62648         * modules/i-ring (Depends-on): Add verify.
62649         (License): Change to LGPL.
62650
62651 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62652
62653         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
62654         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
62655         and inttostr.h.  Use snprintf rather than uinttostr, so that
62656         LGPLed code doesn't depend on GPLed.
62657
62658 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62659
62660         * modules/inline (License): Change from GPL to LGPL.
62661
62662 2006-11-17  Jim Meyering  <jim@meyering.net>
62663
62664         * modules/d-type (License): Switch to LGPL.
62665
62666 2006-11-15  Bruno Haible  <bruno@clisp.org>
62667
62668         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
62669
62670 2006-11-15  Eric Blake  <ebb9@byu.net>
62671
62672         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
62673         the module dependency.
62674
62675 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62676             Bruno Haible  <bruno@clisp.org>
62677
62678         * gnulib-tool (func_create_testdir): Add license consistency check.
62679
62680 2006-11-15  Eric Blake  <ebb9@byu.net>
62681
62682         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
62683         random "(cached)" in configure output.
62684
62685 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62686
62687         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
62688         test for conforming inttypes.h is both announced and cached.
62689
62690         * MODULES.html.sh (seen_modules, seen_files): New variables.
62691         (func_module): Rewrite to use a few less gnulib-tool and sed
62692         invocations.  Avoid a couple of quadratic algorithms for ...
62693         (missed_modules, missed_files): ... these, with ...
62694         (func_append, func_tmpdir): ... these new functions, from
62695         gnulib-tool.  Analogously, install traps for cleanup.
62696
62697         * tests/test-gc.c (main): Remove unused variables.
62698         * tests/test-read-file.c: Include stdlib.h, for 'free'.
62699
62700 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
62701
62702         * modules/inttostr (License): Change to LGPL.
62703
62704 2006-11-14  Eric Blake  <ebb9@byu.net>
62705
62706         * modules/tempname (License): Change to LGPL.
62707
62708 2006-11-14  Eric Blake  <ebb9@byu.net>
62709
62710         * doc/functions.texi (Function Portability): *printf functions on
62711         Cygwin now understand all POSIX size specifiers.
62712
62713 2006-11-14  Bruno Haible  <bruno@clisp.org>
62714
62715         * modules/c-ctype (License): Change to LGPL.
62716
62717 2006-11-12  Bruno Haible  <bruno@clisp.org>
62718
62719         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62720         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
62721         for GNOME libraries, for which the include files are installed in
62722         subdirectories of $prefix/include.
62723
62724 2006-11-12  Bruno Haible  <bruno@clisp.org>
62725
62726         * m4/lib-link.m4: Require at least autoconf-2.54.
62727         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
62728         name to underscores for the --with option.
62729
62730 2006-11-13  Bruno Haible  <bruno@clisp.org>
62731
62732         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
62733         the tests directory.
62734         Reported by Ralf Wildenhues.
62735
62736 2006-11-13  Bruno Haible  <bruno@clisp.org>
62737
62738         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
62739         (func_emit_initmacro_end): Undo the override here.
62740         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
62741         Works around the famous automake error in coreutils.
62742
62743 2006-11-13  Eric Blake  <ebb9@byu.net>
62744
62745         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
62746         element, not its node.
62747
62748 2006-11-12  Bruno Haible  <bruno@clisp.org>
62749
62750         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
62751         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
62752
62753 2006-11-12  Bruno Haible  <bruno@clisp.org>
62754
62755         * gnulib-tool: New option --local-symlink.
62756         (func_usage): Document it.
62757         (lsymbolic): New variable.
62758         (func_import, func_create_testdir): If --symlink was not specified,
62759         test whether --local-symlink was specified and the file comes from
62760         the local_gnulib_dir.
62761
62762 2006-11-12  Bruno Haible  <bruno@clisp.org>
62763
62764         * gnulib-tool (func_ln): New function.
62765         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
62766
62767 2006-11-12  Bruno Haible  <bruno@clisp.org>
62768
62769         Finish support for source files in subdirectories.
62770         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
62771         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
62772         AUTOMAKE_OPTIONS.
62773         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
62774
62775 2006-11-12  Bruno Haible  <bruno@clisp.org>
62776
62777         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62778         EXTRA_lib_SOURCES augmentation.
62779         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
62780
62781 2006-11-12  Jim Meyering  <jim@meyering.net>
62782
62783         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
62784         file descriptors.  This also averts a failure on systems with
62785         native openat support when a traversed directory lacks "x" access.
62786         * lib/fts_.h: Include "i-ring.h"
62787         (struct FTS) [fts_fd_ring]: New member.
62788         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
62789         (FCHDIR): Add parentheses.
62790         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
62791         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
62792         When descending, rather than simply closing the previous
62793         fts_cwd_fd value, push that file descriptor onto the ring.
62794         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
62795         (fts_open): Initialize the new fd_ring member.
62796         (fts_close): Clear the ring.
62797         (fts_safe_changedir): When possible, use our new fd_ring to skip
62798         the diropen and fstat and dev/ino comparison that would normally
62799         accompany a virtual `chdir ("..")'.
62800
62801         * modules/fts (Depends-on): Add i-ring.
62802         * modules/i-ring: New module.
62803         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
62804         * m4/i-ring.m4: New file.
62805
62806 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62807
62808         * gnulib-tool (func_create_testdir): Fix replacement of
62809         `build-aux' in configure.ac.  Run autotools in gltests
62810         subdirectory.
62811         (func_create_testdir, func_create_megatestdir, test): There is
62812         no need for '--force' in most autotool invocations in a new
62813         tree.  Actually fail the whole test if any of the tools, or the
62814         configure or make stages fail.
62815
62816         Sync from Automake.
62817         * build-aux/gnupload: Revert last change.  Add pointer to upload
62818         instructions of the GNU Maintenance Instructions.
62819         Suggestion by Karl Berry.
62820
62821 2006-11-10  Jim Meyering  <jim@meyering.net>
62822
62823         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
62824
62825 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62826
62827         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
62828         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
62829         (bind_textdomain_codeset) [! ENABLE_NLS]:
62830         Evaluate all the arguments.  That way, callers get compatible behavior
62831         if the arguments have side effects.  Also, it avoids some GCC
62832         diagnostics in some cases; Joel E. Denny reported problems when Bison
62833         was configured with --enable-gcc-warnigs.
62834
62835 2006-11-10  Jim Meyering  <jim@meyering.net>
62836
62837         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
62838         relevant options in CFLAGS (like -O, -fno-inline) are taken into
62839         account.
62840
62841 2006-11-10  Jim Meyering  <jim@meyering.net>
62842
62843         * modules/inline: New file/module.
62844         * modules/xalloc (Files): Remove m4/inline.m4.
62845         (Depends-on): Add inline, instead.
62846         * modules/oset: Likewise.
62847         * modules/list: Likewise.
62848
62849 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62850
62851         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
62852         Problem reported by Matthew Woehlke.
62853
62854 2006-11-09  Bruno Haible  <bruno@clisp.org>
62855
62856         * lib/tempname.c (gen_tempname): Remove variant that invokes
62857         __gen_tempname.
62858         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
62859         __gen_tempname.
62860
62861 2006-11-08  Bruno Haible  <bruno@clisp.org>
62862
62863         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
62864         to 'yes' instead of 'cross-compiling'.
62865
62866 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
62867
62868         * lib/quotearg.h (quotearg_free): New decl.
62869         * lib/quotearg.c (quotearg_free): New function.
62870         (slot0, nslots, slotvec0, slotvec):
62871         Now file-scope so that quotearg_free can get at them.
62872
62873 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62874
62875         Sync from Automake.
62876         * build-aux/gnupload: Add missing 'gnu' to example URL.
62877         Report by Karl Berry.
62878
62879 2006-11-08  Bruno Haible  <bruno@clisp.org>
62880
62881         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
62882         Suggested by Paul Eggert.
62883
62884 2006-11-08  Jim Meyering  <jim@meyering.net>
62885
62886         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
62887         It's already included if !_LIBC.
62888         (fts_safe_changedir): Add a comment.
62889
62890 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62891
62892         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
62893         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
62894         Matthew Woehlke.
62895
62896         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
62897         definitions up, to avoid colliding with change below.
62898         (static_inline) [HAVE_INLINE]: New macro.
62899         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
62900         Provide extern decls when !HAVE_INLINE.  Do not define unless
62901         static_inline is defined, either by us or by xmalloc.c.  Use
62902         static_inline rather than static inline.
62903         (XCALLOC): Optimize sizeof(T) = 1 case.
62904         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62905
62906 2006-11-07  Bruno Haible  <bruno@clisp.org>
62907
62908         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62909         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62910         AC_C_INLINE.
62911         * modules/xalloc (Files): Add m4/inline.m4.
62912
62913 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62914
62915         * README: Fix typo.
62916         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62917         (Miscellanous Notes): ...from this.
62918
62919 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62920
62921         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62922         Mention that offsetof should be used instead of sizeof.
62923         From Bruno Haible.
62924
62925 2006-11-07  Bruno Haible  <bruno@clisp.org>
62926
62927         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62928
62929 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62930
62931         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62932         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62933         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62934         (gl_tree_add_before, gl_tree_add_after):
62935         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62936         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62937         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62938         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62939         (gl_linked_add_after, gl_linked_add_at): Likewise.
62940         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62941         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62942         (gl_tree_add_before, gl_tree_add_after): Likewise.
62943         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62944         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62945         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62946
62947 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62948
62949         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62950
62951 2006-11-06  Bruno Haible  <bruno@clisp.org>
62952
62953         * m4/inline.m4: New file.
62954         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62955         * modules/list (Files): Add m4/inline.m4.
62956         * modules/oset (Files): Likewise.
62957
62958 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62959
62960         * lib/idcache.c: Include <stddef.h>, for offsetof.
62961         (struct userid.name): Change from char * to a flexible array member.
62962         All uses changed.
62963         * modules/idcache (Depends-on): Add flexmember.
62964
62965         * MODULES.html.sh (Core language properties): New module flexmember.
62966         * modules/flexmember, m4/flexmember.m4: New files.
62967
62968         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62969         inline functions that are identical with the old xnmalloc_inline,
62970         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62971         that we can avoid some unnecessary integer multiplications and
62972         divisions in the common case where the element size is known at
62973         compile time.
62974         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62975         needed.
62976         (xnboundedmalloc): Remove.
62977         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62978         arguments, for consistency with rest of this header.
62979         (xcharalloc): Rewrite using XNMALLOC.
62980         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62981         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62982         versions have been moved to lib/xalloc.h and renamed to be the
62983         non-*_inline versions.
62984         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62985         and xnrealloc functions, since those functions are now inline and
62986         now call us.
62987         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62988         renaming described above.
62989         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62990         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62991         captures the dependency in AC_C_INLINE.
62992
62993         New module canonicalize-lgpl, proposed by Charles Wilson in
62994         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62995         with a few small changes afterwards.
62996         * MODULES.html.sh (File system functions): New module
62997         canonicalize-lgpl.
62998         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62999         and canonicalize_file_name.
63000         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
63001         * modules/canonicalize-lgpl: New files.
63002
63003 2006-11-05  Bruno Haible  <bruno@clisp.org>
63004
63005         * gnulib-tool (func_import, func_create_testdir): Create directories
63006         also for files in subdirectories of lib/.
63007
63008 2006-11-05  Bruno Haible  <bruno@clisp.org>
63009
63010         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
63011         ANSI C compliant.
63012
63013 2006-11-03  Bruno Haible  <bruno@clisp.org>
63014
63015         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
63016         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
63017         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
63018         (xnboundedmalloc): New inline function.
63019         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
63020         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
63021         xmalloc.
63022         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
63023         xmalloc.
63024         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
63025         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
63026         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
63027         xmalloc.
63028         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63029         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
63030         xmalloc.
63031         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
63032         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63033         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
63034         xmalloc.
63035         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63036         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
63037         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63038         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
63039         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
63040         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
63041         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
63042
63043 2006-11-03  Bruno Haible  <bruno@clisp.org>
63044
63045         * lib/c-ctype.h [C++]: Define functions without name mangling.
63046         * lib/fwriteerror.h [C++]: Likewise.
63047         * lib/gcd.h [C++]: Likewise.
63048         * lib/linebreak.h [C++]: Likewise.
63049
63050 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63051
63052         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
63053         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
63054         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
63055         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63056         Check for functions and headers just once.
63057         Check for declaration of canonicalize_file_name.
63058         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
63059
63060 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63061
63062         * gnulib-tool (func_import): Fix typo in actioncmd.
63063
63064 2006-11-02  Bruno Haible  <bruno@clisp.org>
63065
63066         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
63067         newline sequence in the Makefile.am snippet as a space, like "make"
63068         does.
63069         Reported by Roger Persson <perrog@gmail.com>.
63070
63071 2006-11-01  Bruno Haible  <bruno@clisp.org>
63072
63073         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
63074         already declared in <string.h>.
63075         * lib/strcase.h (strncasecmp): Don't declare it if yes.
63076
63077 2006-11-01  Bruno Haible  <bruno@clisp.org>
63078
63079         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
63080         * lib/strcase.h: Include <string.h>.
63081         (strcasecmp): Define to rpl_strcasecmp here.
63082
63083 2006-11-01  Bruno Haible  <bruno@clisp.org>
63084
63085         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
63086
63087 2006-11-01  Eric Blake  <ebb9@byu.net>
63088
63089         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
63090
63091         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
63092
63093 2006-10-29  Bruno Haible  <bruno@clisp.org>
63094
63095         Make it compile in C++ mode.
63096         * lib/full-write.c (full_rw): Add a cast.
63097
63098 2006-11-01  Bruno Haible  <bruno@clisp.org>
63099
63100         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
63101         be POSIX compliant.
63102         Reported by Roger Persson <perrog@gmail.com>.
63103
63104 2006-11-01  Eric Blake  <ebb9@byu.net>
63105
63106         * lib/getopt_.h: Fix comments.
63107
63108 2006-10-31  Eric Blake  <ebb9@byu.net>
63109
63110         * modules/tmpdir (Depends-on): Add sys_stat.
63111         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
63112         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
63113         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
63114         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
63115         tempname.
63116
63117 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
63118
63119         Avoid some C++ diagnostics reported by Bruno Haible.
63120         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
63121         xmalloc.
63122         (quotearg_alloc): Use xcharalloc rather than xmalloc.
63123         (struct slotvec): Move to top level.
63124         (quotearg_n_options): Rewrite to avoid xmalloc.
63125         * lib/xalloc.h (xcharalloc): New function.
63126         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
63127         [defined __cplusplus]: Add function template that provides result
63128         type propagation.  This part of the change is from Bruno Haible.
63129
63130 2006-10-29  Bruno Haible  <bruno@clisp.org>
63131
63132         Make it compile in C++ mode.
63133         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
63134         * lib/strnlen1.c (strnlen1): Cast memchr result.
63135         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
63136         * lib/clean-temp.c (string_equals, string_hash): Add casts.
63137         (create_temp_dir): Rename local variable 'template'.
63138         (compile_csharp_using_sscli): Add cast.
63139         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
63140         * lib/findprog.c (find_in_path): Likewise.
63141         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
63142         * lib/wait-process.c (register_slave_subprocess): Likewise.
63143
63144 2006-10-22  Bruno Haible  <bruno@clisp.org>
63145
63146         * modules/tsearch: New file.
63147         * lib/tsearch.h: New file.
63148         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
63149         * m4/tsearch.m4: New file.
63150         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
63151
63152 2006-10-29  Eric Blake  <ebb9@byu.net>
63153
63154         * lib/arcfour.c: Assume config.h.
63155         * lib/arctwo.c: Likewise.
63156         * lib/base64.c: Likewise.
63157         * lib/check-version.c: Likewise.
63158         * lib/crc.c: Likewise.
63159         * lib/des.c: Likewise.
63160         * lib/gc-gnulib.c: Likewise.
63161         * lib/gc-libgcrypt.c: Likewise.
63162         * lib/gc-pbkdf2-sha1.c: Likewise.
63163         * lib/getaddrinfo.c: Likewise.
63164         * lib/getdelim.c: Likewise.
63165         * lib/getline.c: Likewise.
63166         * lib/hmac-md5.c: Likewise.
63167         * lib/hmac-sha1.c: Likewise.
63168         * lib/iconvme.c: Likewise.
63169         * lib/md2.c: Likewise.
63170         * lib/md4.c: Likewise.
63171         * lib/memxor.c: Likewise.
63172         * lib/read-file.c: Likewise.
63173         * lib/readline.c: Likewise.
63174         * lib/rijndael-alg-fst.c: Likewise.
63175         * lib/rijndael-api-fst.c: Likewise.
63176         * lib/xgetdomainname.c: Likewise.
63177
63178 2006-10-28  Eric Blake  <ebb9@byu.net>
63179
63180         * lib/xstrndup.c: Assume config.h.
63181
63182 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63183
63184         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
63185         stat-macros.h is now for our own macros, whereas stat_h is for
63186         macros in the <sys/stat.h> name space.
63187         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
63188         (STAT_MACROS_H): Remove.
63189         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
63190         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
63191         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
63192         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
63193         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
63194         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
63195         Move these macros to ...
63196         * lib/stat_.h: here.  Don't include stat-macros.h.
63197         * lib/canonicalize.c: Don't include stat-macros.h.
63198         * lib/chown.c: Likewise.
63199         * lib/euidaccess.c: Likewise.
63200         * lib/file-type.c: Likewise.
63201         * lib/filemode.c: Likewise.
63202         * lib/glob.c: Likewise.
63203         * lib/isapipe.c: Likewise.
63204         * lib/lchown.c: Likewise.
63205         * lib/lstat.c: Likewise.
63206         * lib/mkdir-p.c: Likewise.
63207         * lib/rmdir.c: Likewise.
63208         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
63209         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
63210         unless mkdir isn't declared, to speed up 'configure'.
63211         Always create sys/stat.h, since it's unlikely any real sys/stat.h
63212         would define all the S_* symbols.
63213         * modules/canonicalize (Depends-on):
63214         Depend on sys_stat, not stat-macros.
63215         * modules/chown: Likewise.
63216         * modules/euidaccess: Likewise.
63217         * modules/filemode: Likewise.
63218         * modules/file-type: Likewise.
63219         * modules/glob: Likewise.
63220         * modules/isapipe: Likewise.
63221         * modules/lchown: Likewise.
63222         * modules/lstat: Likewise.
63223         * modules/mkancesdirs: Likewise.
63224         * modules/rmdir: Likewise.
63225         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
63226         * modules/modechange: Likewise.
63227         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
63228         (configure.ac): Remove gl_STAT_MACROS.
63229         * modules/sys_stat (Depends-on): Remove stat-macros.
63230
63231 2006-10-27  Bruno Haible  <bruno@clisp.org>
63232
63233         * m4/signed.m4: Remove file.
63234         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
63235         invocation.
63236         * modules/vasnprintf (Files): Remove m4/signed.m4.
63237
63238 2006-10-27  Bruno Haible  <bruno@clisp.org>
63239
63240         Update to GNU gettext 0.16.
63241         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
63242         m4/inttypes-h.m4, m4/signed.m4.
63243         * m4/gettext.m4: Update to GNU gettext 0.16.
63244         * m4/intl.m4: New file, from GNU gettext.
63245         * m4/intldir.m4: New file, from GNU gettext.
63246         * config/srclist.txt: Update
63247
63248 2006-10-27  Eric Blake  <ebb9@byu.net>
63249
63250         * MODULES.html.sh: Document tempname.
63251         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
63252         dependencies.
63253         (Files): Move lib/tempname.c...
63254         * modules/tempname: ...to this new module.
63255         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
63256         (gl_PREREQ_TEMPNAME): Move...
63257         * m4/tempname.m4: ...to this new file.
63258         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
63259         * modules/sys_stat (Depends-on): Add stat-macros.
63260         * lib/stat_.h (includes): Pick up stat macros.
63261         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
63262         if stat macros are broken.
63263         * lib/tempname.c (includes): No need to include "stat-macros.h".
63264         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
63265         (direxists, __path_search) [!_LIBC]: Don't compile these in
63266         gnulib; the tmpdir module covers that.
63267         * lib/tempname.h: New file.
63268
63269 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63270
63271         * COPYING: Explain how gnulib-tool converts licence headers.
63272         Almost all wording by Eric Blake.
63273
63274 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
63275
63276         * lib/mbchar.h (is_basic_table): Make read-only.
63277         * lib/mbchar.c (is_basic_table): Likewise.
63278         Reported by John Darrington.
63279
63280 2006-10-25  Bruno Haible  <bruno@clisp.org>
63281
63282         * lib/progname.h (set_program_name): Undefine before defining.
63283
63284 2006-10-25  Bruno Haible  <bruno@clisp.org>
63285
63286         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
63287         false for non-gcc C++ compilers.
63288         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
63289
63290 2006-10-24  Bruno Haible  <bruno@clisp.org>
63291
63292         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
63293         iconv implementations like Irix iconv.
63294
63295 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63296
63297         * modules/vararrays: New file.
63298         * m4/vararrays.m4: New file, taken from diffutils.
63299         * MODULES.html.sh: New module vararrays.
63300
63301 2006-10-24  Karl Berry  <karl@gnu.org>
63302
63303         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
63304         Don't call GNU Unix.
63305
63306 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63307
63308         * users.txt: Add Libtool.
63309
63310         Sync from Libtool:
63311
63312         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63313
63314         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
63315         to gnulib's policy of including config.h unconditionally.
63316
63317 2006-10-24  Bruno Haible  <bruno@clisp.org>
63318
63319         * modules/wcwidth (Files): Add m4/wint_t.m4.
63320         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
63321         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
63322
63323 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63324
63325         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
63326         to pacify GCC with some -W flags enabled.  Problem reported by
63327         Bruno Haible.
63328
63329 2006-10-24  Jim Meyering  <jim@meyering.net>
63330
63331         * MODULES.html.sh: Remove uinttostr.  It's not a module.
63332         Reported by Karl Berry.
63333
63334 2006-10-23  Bruno Haible  <bruno@clisp.org>
63335
63336         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
63337
63338 2006-10-24  Bruno Haible  <bruno@clisp.org>
63339
63340         * lib/gl_list.h: Use C comment style, not C++ comment style.
63341
63342 2006-10-23  Eric Blake  <ebb9@byu.net>
63343
63344         * lib/getaddrinfo.c (includes): Add missing include.
63345
63346 2006-10-23  Bruno Haible  <bruno@clisp.org>
63347             Paul Eggert  <eggert@cs.ucla.edu>
63348
63349         Ability to rename obstack_free.
63350         * lib/obstack.h (__obstack_free): New macro. Declare instead of
63351         obstack_free.
63352         (obstack_free): Invoke the __obstack_free macro.
63353         * lib/obstack.c (obstack_free): Use __obstack_free macro.
63354
63355 2006-10-23  Bruno Haible  <bruno@clisp.org>
63356             Paul Eggert  <eggert@cs.ucla.edu>
63357
63358         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
63359         __argc, __argv from the declaration. (They are defined as macros on
63360         mingw.)
63361
63362 2006-10-22  Bruno Haible  <bruno@clisp.org>
63363
63364         * doc/gnulib-intro.texi: New file.
63365         * doc/gnulib.texi: Include it.
63366
63367 2006-10-21  Bruno Haible  <bruno@clisp.org>
63368
63369         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
63370         "Introduction", "Miscellanous Notes", "Particular Modules".
63371
63372 2006-10-21  Bruno Haible  <bruno@clisp.org>
63373
63374         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63375         Change mostlyclean-local rule to avoid sh syntax error from bash
63376         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
63377
63378 2006-10-23  Jim Meyering  <jim@meyering.net>
63379
63380         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
63381         in place of snprintf.
63382
63383         * modules/inttostr (Files): Add lib/uinttostr.c.
63384         * lib/uinttostr.c (inttostr): New file/function.
63385         * lib/inttostr.h (uinttostr): Declare.
63386         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
63387         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63388         Add uinttostr.
63389         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
63390
63391 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63392
63393         * lib/canonicalize.c (ELOOP): Define if not already defined.
63394         Problem reported by Bruno Haible in
63395         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
63396
63397 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63398
63399         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
63400         Problem reported by Perry Smith and Ville Laurikari.
63401
63402         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
63403         uses.
63404
63405 2006-10-19  Bruno Haible  <bruno@clisp.org>
63406
63407         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
63408         for mingw.
63409
63410 2006-10-19  Bruno Haible  <bruno@clisp.org>
63411
63412         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
63413         Needed for mingw.
63414
63415 2006-10-19  Bruno Haible  <bruno@clisp.org>
63416
63417         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
63418
63419 2006-10-19  Bruno Haible  <bruno@clisp.org>
63420
63421         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
63422         it.
63423
63424 2006-10-19  Bruno Haible  <bruno@clisp.org>
63425
63426         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
63427         invocation.
63428
63429 2006-10-19  Bruno Haible  <bruno@clisp.org>
63430
63431         * gnulib-tool (func_create_testdir): Don't include ftruncate and
63432         mountlist by default.
63433
63434 2006-10-16  Bruno Haible  <bruno@clisp.org>
63435
63436         * lib/c-strstr.c: Include c-strstr.h.
63437
63438 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63439
63440         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
63441         in a slash.
63442
63443 2006-10-18  Bruno Haible  <bruno@clisp.org>
63444
63445         * lib/lock.h [C++]: Wrap definitions in extern "C".
63446
63447 2006-10-18  Bruno Haible  <bruno@clisp.org>
63448
63449         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
63450         gl_LIBOBJS list.
63451
63452 2006-10-18  Bruno Haible  <bruno@clisp.org>
63453
63454         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
63455
63456 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
63457
63458         * lib/xstrtol.h: Include gettext.h.
63459         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
63460         Problem reported by Eric Blake.
63461         * modules/xstrtol (Depends-on): Add gettext-h.
63462
63463 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
63464
63465         * lib/strftime.c (advance): New macro.
63466         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
63467         incomplete type, so you can't add 0 to it.  Problem and patch
63468         reported by Eelco Dolstra for dietlibc.
63469
63470 2006-10-18  Jim Meyering  <jim@meyering.net>
63471
63472         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
63473         type for a local, and rename it: s/up/user_proc/.
63474
63475 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63476
63477         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
63478         READ_UTMP_USER_PROCESS.
63479         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
63480
63481 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63482
63483         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
63484         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
63485
63486 2006-10-17  Eric Blake  <ebb9@byu.net>
63487
63488         * lib/sigprocmask.c (sigprocmask): Fix typo.
63489
63490         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
63491
63492         * modules/clean-temp (Makefile.am): Don't add to make output...
63493         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
63494         config.h.
63495
63496 2006-10-17  Bruno Haible  <bruno@clisp.org>
63497
63498         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
63499         differently if DEFAULT_TEXT_DOMAIN is set.
63500
63501 2006-10-16  Bruno Haible  <bruno@clisp.org>
63502
63503         * lib/clean-temp.c: Include fwriteerror.h.
63504
63505 2006-10-16  Bruno Haible  <bruno@clisp.org>
63506
63507         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
63508
63509 2006-10-16  Bruno Haible  <bruno@clisp.org>
63510
63511         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
63512         * lib/sigprocmask.h: Include <sys/types.h>.
63513         (sigset_t): Use the system's definition if present.
63514
63515 2006-10-17  Eric Blake  <ebb9@byu.net>
63516
63517         * lib/xvasprintf.c (includes): Assume config.h.
63518         * lib/xasprintf.c (includes): Likewise.
63519
63520 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63521
63522         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
63523         at least as wide as intmax_t.
63524
63525 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
63526
63527         (Imported from Automake.)
63528         * build-aux/gnupload: Update to version 1.1 of directive file.
63529
63530 2006-10-16  Eric Blake  <ebb9@byu.net>
63531
63532         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
63533         match Automake 1.10a.
63534
63535 2006-10-14  Bruno Haible  <bruno@clisp.org>
63536
63537         * modules/sigprocmask: New file.
63538         * lib/sigprocmask.h: New file.
63539         * lib/sigprocmask.c: New file.
63540         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
63541         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
63542         request sigprocmask.o.
63543         (gl_PREREQ_SIGPROCMASK): New macro.
63544         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
63545         (Depends-on): Add sigprocmask.
63546         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
63547         gt_SIGNALBLOCKING. Test for 'raise' only once.
63548         * lib/fatal-signal.c: Include sigprocmask.h.
63549         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
63550         unblock_fatal_signals): Define always.
63551         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63552         sigprocmask.
63553
63554 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63555
63556         Sync from Automake.
63557         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
63558         which incorrectly sets the mode of an existing destination
63559         directory.  In some cases the unpatched install-sh could do the
63560         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
63561         system.  We hope this is rare in practice, but it's clearly worth
63562         fixing.  Problem reported by Alex Unleashed in
63563         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
63564         Also, don't bother to check for -m bugs unless we're using -m;
63565         suggested by Stepan Kasal.
63566
63567 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63568
63569         Sync from Automake.
63570         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
63571         `-c' flag, so they appear at the same position as in %FASTDEP%
63572         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
63573         which ignores unknown options only after the first non-option.
63574         Bug report against M4 by Nelson H. F. Beebe.
63575
63576 2006-10-13  Jim Meyering  <jim@meyering.net>
63577
63578         Fix a bug in yesterday's change.
63579         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
63580         p->fts_statp->st_dev would be used uninitialized.
63581         Ensures that we always call fts_stat on the very first entry.
63582         Miklos Szeredi reported that find -xdev stopped working.
63583
63584 2006-10-12  Bruno Haible  <bruno@clisp.org>
63585
63586         * gnulib-tool (func_get_automake_snippet): Append an automatically
63587         computed EXTRA_DIST augmentation.
63588         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
63589         * modules/alloca-opt (Makefile.am): Likewise.
63590         * modules/allocsa (Makefile.am): Likewise.
63591         * modules/arcfour (Makefile.am): Likewise.
63592         * modules/arctwo (Makefile.am): Likewise.
63593         * modules/argmatch (Makefile.am): Likewise.
63594         * modules/argz (Makefile.am): Likewise.
63595         * modules/atexit (Makefile.am): Likewise.
63596         * modules/backupfile (Makefile.am): Likewise.
63597         * modules/byteswap (Makefile.am): Likewise.
63598         * modules/c-strtod (Makefile.am): Likewise.
63599         * modules/c-strtold (Makefile.am): Likewise.
63600         * modules/calloc (Makefile.am): Likewise.
63601         * modules/canon-host (Makefile.am): Likewise.
63602         * modules/canonicalize (Makefile.am): Likewise.
63603         * modules/chdir-long (Makefile.am): Likewise.
63604         * modules/chdir-safer (Makefile.am): Likewise.
63605         * modules/check-version (Makefile.am): Likewise.
63606         * modules/chown (Makefile.am): Likewise.
63607         * modules/cloexec (Makefile.am): Likewise.
63608         * modules/close-stream (Makefile.am): Likewise.
63609         * modules/closeout (Makefile.am): Likewise.
63610         * modules/crc (Makefile.am): Likewise.
63611         * modules/csharpexec (Makefile.am): Likewise.
63612         * modules/cycle-check (Makefile.am): Likewise.
63613         * modules/des (Makefile.am): Likewise.
63614         * modules/dev-ino (Makefile.am): Likewise.
63615         * modules/dirfd (Makefile.am): Likewise.
63616         * modules/dirname (Makefile.am): Likewise.
63617         * modules/dup2 (Makefile.am): Likewise.
63618         * modules/eealloc (Makefile.am): Likewise.
63619         * modules/error (Makefile.am): Likewise.
63620         * modules/euidaccess (Makefile.am): Likewise.
63621         * modules/exclude (Makefile.am): Likewise.
63622         * modules/exitfail (Makefile.am): Likewise.
63623         * modules/fcntl-safer (Makefile.am): Likewise.
63624         * modules/fcntl (Makefile.am): Likewise.
63625         * modules/file-type (Makefile.am): Likewise.
63626         * modules/fileblocks (Makefile.am): Likewise.
63627         * modules/filemode (Makefile.am): Likewise.
63628         * modules/filenamecat (Makefile.am): Likewise.
63629         * modules/fnmatch (Makefile.am): Likewise.
63630         * modules/fopen-safer (Makefile.am): Likewise.
63631         * modules/fpending (Makefile.am): Likewise.
63632         * modules/fprintftime (Makefile.am): Likewise.
63633         * modules/free (Makefile.am): Likewise.
63634         * modules/fsusage (Makefile.am): Likewise.
63635         * modules/ftruncate (Makefile.am): Likewise.
63636         * modules/fts (Makefile.am): Likewise.
63637         * modules/gc-arcfour (Makefile.am): Likewise.
63638         * modules/gc-des (Makefile.am): Likewise.
63639         * modules/gc-hmac-md5 (Makefile.am): Likewise.
63640         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
63641         * modules/gc-md4 (Makefile.am): Likewise.
63642         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63643         * modules/gc-sha1 (Makefile.am): Likewise.
63644         * modules/gc (Makefile.am): Likewise.
63645         * modules/getaddrinfo (Makefile.am): Likewise.
63646         * modules/getcwd (Makefile.am): Likewise.
63647         * modules/getdelim (Makefile.am): Likewise.
63648         * modules/getdomainname (Makefile.am): Likewise.
63649         * modules/getgroups (Makefile.am): Likewise.
63650         * modules/gethostname (Makefile.am): Likewise.
63651         * modules/gethrxtime (Makefile.am): Likewise.
63652         * modules/getline (Makefile.am): Likewise.
63653         * modules/getloadavg (Makefile.am): Likewise.
63654         * modules/getlogin_r (Makefile.am): Likewise.
63655         * modules/getndelim2 (Makefile.am): Likewise.
63656         * modules/getopt (Makefile.am): Likewise.
63657         * modules/getpagesize (Makefile.am): Likewise.
63658         * modules/getpass-gnu (Makefile.am): Likewise.
63659         * modules/getpass (Makefile.am): Likewise.
63660         * modules/getsubopt (Makefile.am): Likewise.
63661         * modules/gettime (Makefile.am): Likewise.
63662         * modules/gettimeofday (Makefile.am): Likewise.
63663         * modules/getugroups (Makefile.am): Likewise.
63664         * modules/getusershell (Makefile.am): Likewise.
63665         * modules/glob (Makefile.am): Likewise.
63666         * modules/group-member (Makefile.am): Likewise.
63667         * modules/hard-locale (Makefile.am): Likewise.
63668         * modules/hash (Makefile.am): Likewise.
63669         * modules/hmac-md5 (Makefile.am): Likewise.
63670         * modules/hmac-sha1 (Makefile.am): Likewise.
63671         * modules/human (Makefile.am): Likewise.
63672         * modules/idcache (Makefile.am): Likewise.
63673         * modules/imaxabs (Makefile.am): Likewise.
63674         * modules/imaxdiv (Makefile.am): Likewise.
63675         * modules/inet_ntop (Makefile.am): Likewise.
63676         * modules/inet_pton (Makefile.am): Likewise.
63677         * modules/intprops (Makefile.am): Likewise.
63678         * modules/inttostr (Makefile.am): Likewise.
63679         * modules/inttypes (Makefile.am): Likewise.
63680         * modules/isapipe (Makefile.am): Likewise.
63681         * modules/javaversion (Makefile.am): Likewise.
63682         * modules/lchmod (Makefile.am): Likewise.
63683         * modules/lchown (Makefile.am): Likewise.
63684         * modules/localcharset (Makefile.am): Likewise.
63685         * modules/long-options (Makefile.am): Likewise.
63686         * modules/lstat (Makefile.am): Likewise.
63687         * modules/malloc (Makefile.am): Likewise.
63688         * modules/mathl (Makefile.am): Likewise.
63689         * modules/mbchar (Makefile.am): Likewise.
63690         * modules/md2 (Makefile.am): Likewise.
63691         * modules/md4 (Makefile.am): Likewise.
63692         * modules/md5 (Makefile.am): Likewise.
63693         * modules/memcasecmp (Makefile.am): Likewise.
63694         * modules/memchr (Makefile.am): Likewise.
63695         * modules/memcmp (Makefile.am): Likewise.
63696         * modules/memcoll (Makefile.am): Likewise.
63697         * modules/memcpy (Makefile.am): Likewise.
63698         * modules/memmem (Makefile.am): Likewise.
63699         * modules/memmove (Makefile.am): Likewise.
63700         * modules/mempcpy (Makefile.am): Likewise.
63701         * modules/memrchr (Makefile.am): Likewise.
63702         * modules/memset (Makefile.am): Likewise.
63703         * modules/memxor (Makefile.am): Likewise.
63704         * modules/mkancesdirs (Makefile.am): Likewise.
63705         * modules/mkdir-p (Makefile.am): Likewise.
63706         * modules/mkdir (Makefile.am): Likewise.
63707         * modules/mkdtemp (Makefile.am): Likewise.
63708         * modules/mkstemp (Makefile.am): Likewise.
63709         * modules/mktime (Makefile.am): Likewise.
63710         * modules/modechange (Makefile.am): Likewise.
63711         * modules/mountlist (Makefile.am): Likewise.
63712         * modules/nanosleep (Makefile.am): Likewise.
63713         * modules/obstack (Makefile.am): Likewise.
63714         * modules/openat (Makefile.am): Likewise.
63715         * modules/pagealign_alloc (Makefile.am): Likewise.
63716         * modules/pathmax (Makefile.am): Likewise.
63717         * modules/physmem (Makefile.am): Likewise.
63718         * modules/poll (Makefile.am): Likewise.
63719         * modules/posixtm (Makefile.am): Likewise.
63720         * modules/posixver (Makefile.am): Likewise.
63721         * modules/putenv (Makefile.am): Likewise.
63722         * modules/quote (Makefile.am): Likewise.
63723         * modules/quotearg (Makefile.am): Likewise.
63724         * modules/raise (Makefile.am): Likewise.
63725         * modules/read-file (Makefile.am): Likewise.
63726         * modules/readline (Makefile.am): Likewise.
63727         * modules/readlink (Makefile.am): Likewise.
63728         * modules/readtokens (Makefile.am): Likewise.
63729         * modules/readutmp (Makefile.am): Likewise.
63730         * modules/realloc (Makefile.am): Likewise.
63731         * modules/regex (Makefile.am): Likewise.
63732         * modules/rename-dest-slash (Makefile.am): Likewise.
63733         * modules/rename (Makefile.am): Likewise.
63734         * modules/rijndael (Makefile.am): Likewise.
63735         * modules/rmdir (Makefile.am): Likewise.
63736         * modules/rpmatch (Makefile.am): Likewise.
63737         * modules/safe-read (Makefile.am): Likewise.
63738         * modules/safe-write (Makefile.am): Likewise.
63739         * modules/same-inode (Makefile.am): Likewise.
63740         * modules/same (Makefile.am): Likewise.
63741         * modules/save-cwd (Makefile.am): Likewise.
63742         * modules/savedir (Makefile.am): Likewise.
63743         * modules/setenv (Makefile.am): Likewise.
63744         * modules/settime (Makefile.am): Likewise.
63745         * modules/sha1 (Makefile.am): Likewise.
63746         * modules/sig2str (Makefile.am): Likewise.
63747         * modules/snprintf (Makefile.am): Likewise.
63748         * modules/stat-macros (Makefile.am): Likewise.
63749         * modules/stat-time (Makefile.am): Likewise.
63750         * modules/stdbool (Makefile.am): Likewise.
63751         * modules/stdint (Makefile.am): Likewise.
63752         * modules/stdlib-safer (Makefile.am): Likewise.
63753         * modules/stpcpy (Makefile.am): Likewise.
63754         * modules/stpncpy (Makefile.am): Likewise.
63755         * modules/strcase (Makefile.am): Likewise.
63756         * modules/strcasestr (Makefile.am): Likewise.
63757         * modules/strchrnul (Makefile.am): Likewise.
63758         * modules/strcspn (Makefile.am): Likewise.
63759         * modules/strdup (Makefile.am): Likewise.
63760         * modules/strerror (Makefile.am): Likewise.
63761         * modules/strftime (Makefile.am): Likewise.
63762         * modules/strndup (Makefile.am): Likewise.
63763         * modules/strnlen (Makefile.am): Likewise.
63764         * modules/strpbrk (Makefile.am): Likewise.
63765         * modules/strsep (Makefile.am): Likewise.
63766         * modules/strstr (Makefile.am): Likewise.
63767         * modules/strtod (Makefile.am): Likewise.
63768         * modules/strtoimax (Makefile.am): Likewise.
63769         * modules/strtok_r (Makefile.am): Likewise.
63770         * modules/strtol (Makefile.am): Likewise.
63771         * modules/strtoll (Makefile.am): Likewise.
63772         * modules/strtoul (Makefile.am): Likewise.
63773         * modules/strtoull (Makefile.am): Likewise.
63774         * modules/strtoumax (Makefile.am): Likewise.
63775         * modules/strverscmp (Makefile.am): Likewise.
63776         * modules/sys_socket (Makefile.am): Likewise.
63777         * modules/sys_stat (Makefile.am): Likewise.
63778         * modules/sysexits (Makefile.am): Likewise.
63779         * modules/time_r (Makefile.am): Likewise.
63780         * modules/timegm (Makefile.am): Likewise.
63781         * modules/timespec (Makefile.am): Likewise.
63782         * modules/tmpfile-safer (Makefile.am): Likewise.
63783         * modules/trim (Makefile.am): Likewise.
63784         * modules/unistd-safer (Makefile.am): Likewise.
63785         * modules/unlinkdir (Makefile.am): Likewise.
63786         * modules/unlocked-io (Makefile.am): Likewise.
63787         * modules/userspec (Makefile.am): Likewise.
63788         * modules/utime (Makefile.am): Likewise.
63789         * modules/utimecmp (Makefile.am): Likewise.
63790         * modules/utimens (Makefile.am): Likewise.
63791         * modules/vasnprintf (Makefile.am): Likewise.
63792         * modules/vasprintf (Makefile.am): Likewise.
63793         * modules/vsnprintf (Makefile.am): Likewise.
63794         * modules/xalloc (Makefile.am): Likewise.
63795         * modules/xgetcwd (Makefile.am): Likewise.
63796         * modules/xnanosleep (Makefile.am): Likewise.
63797         * modules/xreadlink (Makefile.am): Likewise.
63798         * modules/xstrtod (Makefile.am): Likewise.
63799         * modules/xstrtol (Makefile.am): Likewise.
63800         * modules/xstrtold (Makefile.am): Likewise.
63801         * modules/yesno (Makefile.am): Likewise.
63802         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
63803
63804 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63805
63806         * modules/error (Makefile.am): Distribute files through
63807         EXTRA_DIST, not lib_SOURCES.
63808
63809 2006-10-12  Eric Blake  <ebb9@byu.net>
63810
63811         * modules/error (Makefile.am): Distribute files in /lib.
63812         * modules/obstack (Makefile.am): Likewise.
63813
63814 2006-10-12  Bruno Haible  <bruno@clisp.org>
63815
63816         * modules/acl (Makefile.am): Distribute all files in lib/ through
63817         EXTRA_DIST.
63818         * modules/arcfour (Makefile.am): Likewise.
63819         * modules/arctwo (Makefile.am): Likewise.
63820         * modules/argmatch (Makefile.am): Likewise.
63821         * modules/argz (Makefile.am): Likewise.
63822         * modules/atexit (Makefile.am): Likewise.
63823         * modules/backupfile (Makefile.am): Likewise.
63824         * modules/c-strtod (Makefile.am): Likewise.
63825         * modules/c-strtold (Makefile.am): Likewise.
63826         * modules/calloc (Makefile.am): Likewise.
63827         * modules/canon-host (Makefile.am): Likewise.
63828         * modules/canonicalize (Makefile.am): Likewise.
63829         * modules/chdir-long (Makefile.am): Likewise.
63830         * modules/chdir-safer (Makefile.am): Likewise.
63831         * modules/check-version (Makefile.am): Likewise.
63832         * modules/chown (Makefile.am): Likewise.
63833         * modules/cloexec (Makefile.am): Likewise.
63834         * modules/close-stream (Makefile.am): Likewise.
63835         * modules/closeout (Makefile.am): Likewise.
63836         * modules/crc (Makefile.am): Likewise.
63837         * modules/cycle-check (Makefile.am): Likewise.
63838         * modules/des (Makefile.am): Likewise.
63839         * modules/dirfd (Makefile.am): Likewise.
63840         * modules/dirname (Makefile.am): Likewise.
63841         * modules/dup2 (Makefile.am): Likewise.
63842         * modules/euidaccess (Makefile.am): Likewise.
63843         * modules/exclude (Makefile.am): Likewise.
63844         * modules/exitfail (Makefile.am): Likewise.
63845         * modules/fcntl-safer (Makefile.am): Likewise.
63846         * modules/file-type (Makefile.am): Likewise.
63847         * modules/fileblocks (Makefile.am): Likewise.
63848         * modules/filemode (Makefile.am): Likewise.
63849         * modules/filenamecat (Makefile.am): Likewise.
63850         * modules/fnmatch (Makefile.am): Likewise.
63851         * modules/fopen-safer (Makefile.am): Likewise.
63852         * modules/fpending (Makefile.am): Likewise.
63853         * modules/fprintftime (Makefile.am): Likewise.
63854         * modules/free (Makefile.am): Likewise.
63855         * modules/fsusage (Makefile.am): Likewise.
63856         * modules/ftruncate (Makefile.am): Likewise.
63857         * modules/fts (Makefile.am): Likewise.
63858         * modules/gc (Makefile.am): Likewise.
63859         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63860         * modules/getaddrinfo (Makefile.am): Likewise.
63861         * modules/getcwd (Makefile.am): Likewise.
63862         * modules/getdelim (Makefile.am): Likewise.
63863         * modules/getdomainname (Makefile.am): Likewise.
63864         * modules/getgroups (Makefile.am): Likewise.
63865         * modules/gethostname (Makefile.am): Likewise.
63866         * modules/gethrxtime (Makefile.am): Likewise.
63867         * modules/getline (Makefile.am): Likewise.
63868         * modules/getloadavg (Makefile.am): Likewise.
63869         * modules/getlogin_r (Makefile.am): Likewise.
63870         * modules/getopt (Makefile.am): Likewise.
63871         * modules/getpass (Makefile.am): Likewise.
63872         * modules/getpass-gnu (Makefile.am): Likewise.
63873         * modules/getsubopt (Makefile.am): Likewise.
63874         * modules/gettime (Makefile.am): Likewise.
63875         * modules/gettimeofday (Makefile.am): Likewise.
63876         * modules/getugroups (Makefile.am): Likewise.
63877         * modules/getusershell (Makefile.am): Likewise.
63878         * modules/glob (Makefile.am): Likewise.
63879         * modules/group-member (Makefile.am): Likewise.
63880         * modules/hard-locale (Makefile.am): Likewise.
63881         * modules/hash (Makefile.am): Likewise.
63882         * modules/hmac-md5 (Makefile.am): Likewise.
63883         * modules/hmac-sha1 (Makefile.am): Likewise.
63884         * modules/human (Makefile.am): Likewise.
63885         * modules/idcache (Makefile.am): Likewise.
63886         * modules/imaxabs (Makefile.am): Likewise.
63887         * modules/imaxdiv (Makefile.am): Likewise.
63888         * modules/inet_ntop (Makefile.am): Likewise.
63889         * modules/inet_pton (Makefile.am): Likewise.
63890         * modules/inttostr (Makefile.am): Likewise.
63891         * modules/isapipe (Makefile.am): Likewise.
63892         * modules/lchown (Makefile.am): Likewise.
63893         * modules/long-options (Makefile.am): Likewise.
63894         * modules/lstat (Makefile.am): Likewise.
63895         * modules/malloc (Makefile.am): Likewise.
63896         * modules/mathl (Makefile.am): Likewise.
63897         * modules/mbchar (Makefile.am): Likewise.
63898         * modules/md2 (Makefile.am): Likewise.
63899         * modules/md4 (Makefile.am): Likewise.
63900         * modules/md5 (Makefile.am): Likewise.
63901         * modules/memcasecmp (Makefile.am): Likewise.
63902         * modules/memchr (Makefile.am): Likewise.
63903         * modules/memcmp (Makefile.am): Likewise.
63904         * modules/memcoll (Makefile.am): Likewise.
63905         * modules/memcpy (Makefile.am): Likewise.
63906         * modules/memmem (Makefile.am): Likewise.
63907         * modules/memmove (Makefile.am): Likewise.
63908         * modules/mempcpy (Makefile.am): Likewise.
63909         * modules/memrchr (Makefile.am): Likewise.
63910         * modules/memset (Makefile.am): Likewise.
63911         * modules/memxor (Makefile.am): Likewise.
63912         * modules/mkancesdirs (Makefile.am): Likewise.
63913         * modules/mkdir (Makefile.am): Likewise.
63914         * modules/mkdir-p (Makefile.am): Likewise.
63915         * modules/mkdtemp (Makefile.am): Likewise.
63916         * modules/mkstemp (Makefile.am): Likewise.
63917         * modules/mktime (Makefile.am): Likewise.
63918         * modules/modechange (Makefile.am): Likewise.
63919         * modules/mountlist (Makefile.am): Likewise.
63920         * modules/nanosleep (Makefile.am): Likewise.
63921         * modules/openat (Makefile.am): Likewise.
63922         * modules/pagealign_alloc (Makefile.am): Likewise.
63923         * modules/physmem (Makefile.am): Likewise.
63924         * modules/poll (Makefile.am): Likewise.
63925         * modules/posixtm (Makefile.am): Likewise.
63926         * modules/posixver (Makefile.am): Likewise.
63927         * modules/putenv (Makefile.am): Likewise.
63928         * modules/quote (Makefile.am): Likewise.
63929         * modules/quotearg (Makefile.am): Likewise.
63930         * modules/raise (Makefile.am): Likewise.
63931         * modules/read-file (Makefile.am): Likewise.
63932         * modules/readline (Makefile.am): Likewise.
63933         * modules/readlink (Makefile.am): Likewise.
63934         * modules/readtokens (Makefile.am): Likewise.
63935         * modules/readutmp (Makefile.am): Likewise.
63936         * modules/realloc (Makefile.am): Likewise.
63937         * modules/regex (Makefile.am): Likewise.
63938         * modules/rename (Makefile.am): Likewise.
63939         * modules/rename-dest-slash (Makefile.am): Likewise.
63940         * modules/rijndael (Makefile.am): Likewise.
63941         * modules/rmdir (Makefile.am): Likewise.
63942         * modules/rpmatch (Makefile.am): Likewise.
63943         * modules/safe-read (Makefile.am): Likewise.
63944         * modules/safe-write (Makefile.am): Likewise.
63945         * modules/same (Makefile.am): Likewise.
63946         * modules/save-cwd (Makefile.am): Likewise.
63947         * modules/savedir (Makefile.am): Likewise.
63948         * modules/setenv (Makefile.am): Likewise.
63949         * modules/settime (Makefile.am): Likewise.
63950         * modules/sha1 (Makefile.am): Likewise.
63951         * modules/sig2str (Makefile.am): Likewise.
63952         * modules/snprintf (Makefile.am): Likewise.
63953         * modules/stdlib-safer (Makefile.am): Likewise.
63954         * modules/stpcpy (Makefile.am): Likewise.
63955         * modules/stpncpy (Makefile.am): Likewise.
63956         * modules/strcase (Makefile.am): Likewise.
63957         * modules/strcasestr (Makefile.am): Likewise.
63958         * modules/strchrnul (Makefile.am): Likewise.
63959         * modules/strcspn (Makefile.am): Likewise.
63960         * modules/strdup (Makefile.am): Likewise.
63961         * modules/strerror (Makefile.am): Likewise.
63962         * modules/strftime (Makefile.am): Likewise.
63963         * modules/strndup (Makefile.am): Likewise.
63964         * modules/strnlen (Makefile.am): Likewise.
63965         * modules/strpbrk (Makefile.am): Likewise.
63966         * modules/strsep (Makefile.am): Likewise.
63967         * modules/strstr (Makefile.am): Likewise.
63968         * modules/strtod (Makefile.am): Likewise.
63969         * modules/strtoimax (Makefile.am): Likewise.
63970         * modules/strtok_r (Makefile.am): Likewise.
63971         * modules/strtol (Makefile.am): Likewise.
63972         * modules/strtoll (Makefile.am): Likewise.
63973         * modules/strtoul (Makefile.am): Likewise.
63974         * modules/strtoull (Makefile.am): Likewise.
63975         * modules/strtoumax (Makefile.am): Likewise.
63976         * modules/strverscmp (Makefile.am): Likewise.
63977         * modules/time_r (Makefile.am): Likewise.
63978         * modules/timegm (Makefile.am): Likewise.
63979         * modules/tmpfile-safer (Makefile.am): Likewise.
63980         * modules/unistd-safer (Makefile.am): Likewise.
63981         * modules/unlinkdir (Makefile.am): Likewise.
63982         * modules/userspec (Makefile.am): Likewise.
63983         * modules/utime (Makefile.am): Likewise.
63984         * modules/utimecmp (Makefile.am): Likewise.
63985         * modules/utimens (Makefile.am): Likewise.
63986         * modules/vasnprintf (Makefile.am): Likewise.
63987         * modules/vasprintf (Makefile.am): Likewise.
63988         * modules/vsnprintf (Makefile.am): Likewise.
63989         * modules/xalloc (Makefile.am): Likewise.
63990         * modules/xgetcwd (Makefile.am): Likewise.
63991         * modules/xnanosleep (Makefile.am): Likewise.
63992         * modules/xreadlink (Makefile.am): Likewise.
63993         * modules/xstrtod (Makefile.am): Likewise.
63994         * modules/xstrtol (Makefile.am): Likewise.
63995         * modules/xstrtold (Makefile.am): Likewise.
63996         * modules/yesno (Makefile.am): Likewise.
63997
63998 2006-10-12  Jim Meyering  <jim@meyering.net>
63999
64000         * m4/getloadavg.m4: Revert the change below.
64001
64002         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
64003         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
64004         fail with a symlink, which is what coreutils' ./bootstrap now
64005         creates by default.
64006
64007 2006-10-12  Bruno Haible  <bruno@clisp.org>
64008
64009         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
64010         mingw.
64011         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
64012         MSVC and mingw explicitly.
64013
64014 2006-10-11  Simon Josefsson  <jas@extundo.com>
64015             Bruno Haible  <bruno@clisp.org>
64016
64017         Add support for multiple gnulib-tool invocations in the scope of a
64018         single configure.ac file.
64019         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
64020         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
64021         with the same contents as the _LIBADD variable.
64022         (func_emit_initmacro_start, func_emit_initmacro_end,
64023         func_emit_initmacro_done): New functions.
64024         (func_import, func_create_testdir): Invoke them. Allow the identifiers
64025         gl_LIBOBJS and gl_LTLIBOBJS.
64026
64027 2006-10-11  Bruno Haible  <bruno@clisp.org>
64028
64029         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
64030         (func_create_testdir): Don't create po/Makefile.am, don't invoke
64031         autoreconf. Instead, invoke autopoint explicitly but move back the
64032         *.m4 files from gnulib.
64033
64034 2006-10-11  Bruno Haible  <bruno@clisp.org>
64035
64036         * gnulib-tool (func_usage): Make module names after --create-testdir
64037         optional.
64038         (func_create_testdir): If no module was specified, use nearly all
64039         modules.
64040
64041 2006-10-12  Jim Meyering  <jim@meyering.net>
64042
64043         Big performance improvement for fts-based tools that use FTS_NOSTAT.
64044         Avoid spurious inode-mismatch problems on non-POSIX file systems.
64045         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
64046         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
64047         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
64048         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
64049         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
64050         (fts_set_stat_required): New function.
64051         (fts_open): Defer the calls to fts_stat, if possible or requested.
64052         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
64053         into fts_stat itself.
64054         (fts_read): Perform any required (deferred) fts_stat call.
64055         (fts_build): Likewise, for the directory we're about to open and read.
64056         In the readdir loop, carefully decide whether each entry will require
64057         an eventual call to fts_stat, using dirent.d_type info if available.
64058         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
64059         a command line argument into this function.  Update all callers.
64060         Map a return value of FTS_DOT to FTS_D for a command line argument.
64061         * modules/fts (Depends-on): Add d-type.  Alphabetize.
64062         Thanks to Miklos Szeredi for his tenacity and for the initial
64063         bug report about "find" failing on a FUSE-based file system.
64064
64065         * lib/fts.c (fts_open): Use consistent indentation.
64066
64067 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64068
64069         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
64070         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
64071         reported by Jim Meyering.  All uses of cache variables renamed
64072         to match Autoconf's.
64073         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
64074         the other one.
64075
64076         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
64077         Fix misspelling in diagnostic.
64078
64079 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64080
64081         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
64082         defined.  Problem reported by Matthew Woehlke.
64083
64084         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
64085         Add support for Tandem NonStop R series.
64086         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
64087         Use new macro.
64088
64089         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
64090         (has_trailing_slash): Omit size arg; all callers changed.
64091         Omit 'inline', since it doesn't help performance and we'd
64092         need to configure it.
64093         Don't count //, ///, etc. as having a trailing slash.
64094         As a side effect, this removes a C99ism reported by Matthew Woehlke.
64095         (rpl_rename_dest_slash): On failure, use rename's errno rather
64096         than (in some cases) an incorrect or junk errno.
64097         Simplify code by removing need to compute length; this does
64098         cause it to make two passes instead of one over the file name,
64099         but it's worth it.
64100
64101         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
64102         change, since Autoconf's version may no longer be appropriate now
64103         that we are using CVS Autoconf's version.  Add support for Tandem.
64104
64105 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64106             Bruno Haible  <bruno@clisp.org>
64107
64108         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
64109         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
64110         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
64111         gl_AC_TYPE_LONG_LONG.
64112
64113         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
64114         instead of HAVE_LONG_LONG.
64115         * lib/printf-args.c (printf_fetchargs): Likewise.
64116         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
64117         * lib/vasnprintf.c (VASNPRINTF): Likewise.
64118         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
64119         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
64120         gl_AC_TYPE_LONG_LONG.
64121
64122 2006-10-11  Bruno Haible  <bruno@clisp.org>
64123
64124         * m4/longlong.m4: Add comments.
64125         * m4/ulonglong.m4: Likewise.
64126
64127 2006-10-10  Bruno Haible  <bruno@clisp.org>
64128
64129         Make it possible to #define stpcpy, strdup to aliases.
64130         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
64131         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
64132
64133 2006-10-10  Bruno Haible  <bruno@clisp.org>
64134
64135         Make it possible to #define gcd to an alias.
64136         * lib/gcd.c: Include config.h.
64137
64138 2006-10-10  Bruno Haible  <bruno@clisp.org>
64139
64140         Make it possible to #define c_isascii to an alias.
64141         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
64142         defined. Undefine the macros before defining them, to avoid gcc
64143         warnings.
64144         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
64145         define NO_C_CTYPE_MACROS early.
64146
64147 2006-10-10  Bruno Haible  <bruno@clisp.org>
64148
64149         Make it possible to #define set_program_name to an alias.
64150         * lib/progname.c: Don't undefine set_program_name; instead, undefine
64151         ENABLE_RELOCATABLE early.
64152
64153 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64154
64155         Port to Tandem NSK OSS, which has 64-bit signed int but at most
64156         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
64157         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
64158         More generally, don't assume that 64-bit signed int is available
64159         if unsigned int is, and vice versa.
64160         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
64161         unsigned symbols, not on their signed counterparts.
64162         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
64163         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
64164         (UINT64_C, UINTMAX_C):
64165         Likewise.
64166         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
64167         unsigned counterparts.
64168         (Have_long_long, Unsigned): New macros.
64169         (Int): Renamed from INT.
64170         (strtoimax): Use the new macros.
64171         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
64172         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
64173         * modules/inttypes (inttypes.h): Substitute
64174         HAVE_UNSIGNED_LONG_LONG_INT.
64175         * modules/stdint (stdint.h): Likewise.
64176         (Files): Add m4/ulonglong.m4.
64177
64178 2006-10-10  Bruno Haible  <bruno@clisp.org>
64179
64180         Fix a gcc -Wshadow warning.
64181         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
64182         to 'bucket'.
64183         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
64184         gl_linked_indexof_from_to): Likewise.
64185         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
64186         Likewise.
64187         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
64188         Likewise.
64189         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
64190         Reported by Eric Blake.
64191
64192 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
64193
64194         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
64195         for NetBSD.  Problem reported by Bruno Haible.
64196
64197 2006-10-09  Jim Meyering  <jim@meyering.net>
64198
64199         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
64200         Patch from Bruno Haible.
64201
64202 2006-10-09  Jim Meyering  <jim@meyering.net>
64203
64204         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
64205         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
64206         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
64207
64208 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64209
64210         Don't include <config.h> twice; this doesn't work in some cases,
64211         e.g., when config.h has "#define intmax_t long long int" and
64212         we include <config.h>, <inttypes.h>, <config.h> in that order.
64213         Problem reported by Matthew Woehlke in:
64214         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
64215         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
64216         * lib/fts-cycle.c: Don't include config.h.
64217         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
64218         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
64219         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
64220         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
64221         inttypes.h.
64222         * lib/xstrtoumax.c: Likewise.
64223         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
64224         __strtol and the like, so that this module is more like its siblings.
64225         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
64226         Remove; no longer needed now that we assume gnulib inttypes.h.
64227
64228 2006-10-08  Bruno Haible  <bruno@clisp.org>
64229
64230         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
64231         option.
64232
64233 2006-10-07  Jim Meyering  <jim@meyering.net>
64234
64235         * modules/inttypes (inttypes.h): Revert what seems to have been
64236         an inadvertent part of today's change: use "|", not "/" in the
64237         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
64238
64239 2006-10-07  Bruno Haible  <bruno@clisp.org>
64240
64241         * modules/sublist: New file.
64242
64243 2006-10-07  Bruno Haible  <bruno@clisp.org>
64244
64245         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
64246         * modules/argz (argz.h): Likewise.
64247         * modules/arpa_inet (arpa/inet.h): Likewise.
64248         * modules/byteswap (byteswap.h): Likewise.
64249         * modules/configmake (configmake.h): Likewise.
64250         * modules/fcntl (fcntl.h): Likewise.
64251         * modules/fnmatch (fnmatch.h): Likewise.
64252         * modules/getopt (getopt.h): Likewise.
64253         * modules/glob (glob.h): Likewise.
64254         * modules/inttypes (inttypes.h): Likewise.
64255         * modules/netinet_in (netinet/in.h): Likewise.
64256         * modules/poll (poll.h): Likewise.
64257         * modules/stdbool (stdbool.h): Likewise.
64258         * modules/stdint (stdint.h): Likewise.
64259         * modules/sys_select (sys/select.h): Likewise.
64260         * modules/sys_socket (sys/socket.h): Likewise.
64261         * modules/sys_stat (sys/stat.h): Likewise.
64262         * modules/sysexits (sysexits.h): Likewise.
64263         * modules/unistd (unistd.h): Likewise.
64264         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64265         Add a "DO NOT EDIT" comment to the generated file.
64266         (func_import): Likewise for gnulib-comp.m4.
64267
64268 2006-10-07  Bruno Haible  <bruno@clisp.org>
64269
64270         * lib/gl_sublist.h: New file.
64271         * lib/gl_sublist.c: New file.
64272
64273 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64274
64275         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
64276         name (relative to the original working directory) and the file
64277         name component (relative to the temporary working directory).  All
64278         callers changed.
64279         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
64280         * lib/mkdir-p.c (make_dir_parents): Likewise.
64281         * lib/mkdir-p.h (make_dir_parents): Likewise.
64282
64283 2006-10-06  Eric Blake  <ebb9@byu.net>
64284
64285         Define several macros for use by the clean-temp module.
64286         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
64287         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
64288         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
64289
64290         * lib/clean-temp.h (close_stream_temp): New declaration.
64291         * lib/clean-temp.c (includes): Pull in headers according to what
64292         other modules are in use.
64293         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
64294
64295 2006-10-06  Bruno Haible  <bruno@clisp.org>
64296
64297         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
64298         instead of fopen, fwriteerror.
64299
64300 2006-10-06  Bruno Haible  <bruno@clisp.org>
64301
64302         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
64303         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
64304         int.
64305         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
64306         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
64307         Return an error indicator.
64308         Suggested by Eric Blake.
64309
64310 2006-10-06  Bruno Haible  <bruno@clisp.org>
64311
64312         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
64313         Reported by Eric Blake.
64314
64315 2006-10-06  Bruno Haible  <bruno@clisp.org>
64316
64317         * modules/closeout (Description): Mention stderr too.
64318
64319 2006-10-06  Bruno Haible  <bruno@clisp.org>
64320         and Paul Eggert  <eggert@cs.ucla.edu>
64321
64322         * lib/closeout.c (close_stdout): Also close stderr.
64323         * lib/closeout.h: Update comment.
64324
64325 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64326
64327         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
64328         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
64329         * lib/dirchownmod.c: Include lchown.h.
64330         * lib/lchown.c: Don't include files that lchown.h now includes.
64331         Don't declare chown, since lchown.h now does that.
64332         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
64333         (lchown): Define to rpl_chown if lchown is declared but
64334         does not exist.  Declare using a prototype if lchown is not
64335         declared.  Add a copyright notice.
64336         * lib/mkstemp.h: Include <unistd.h>.
64337         * lib/openat.c: Include lchown.h.
64338
64339         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
64340         we now test for that separately.
64341         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
64342         rather than O_NOFOLLOW, when testing whether it's possible to
64343         avoid a race condition reliably.
64344         * lib/savewd.c (savewd_chdir): Likewise.
64345
64346         Remove macros that are no longer needed now that stdint.h is
64347         reliable.
64348         * lib/fsusage.c (UINTMAX_MAX): Remove.
64349         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
64350         * lib/utimecmp.c (SIZE_MAX): Remove.
64351
64352         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
64353
64354         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
64355         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
64356         O_NOATIME works.
64357
64358 2006-10-05  Bruno Haible  <bruno@clisp.org>
64359
64360         * lib/gl_list.h (gl_sortedlist_search_from_to,
64361         gl_sortedlist_indexof_from_to): New declarations.
64362         (gl_list_implementation): New fields sortedlist_search_from_to,
64363         sortedlist_indexof_from_to.
64364         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
64365         inline functions.
64366         * lib/gl_list.c (gl_sortedlist_search_from_to,
64367         gl_sortedlist_indexof_from_to): New functions.
64368         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
64369         function.
64370         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
64371         (gl_array_sortedlist_search_from_to): New function.
64372         (gl_array_list_implementation): Update.
64373         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
64374         function.
64375         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
64376         (gl_carray_sortedlist_search_from_to): New function.
64377         (gl_carray_list_implementation): Update.
64378         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
64379         gl_linked_sortedlist_indexof_from_to): New functions.
64380         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64381         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64382         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
64383         gl_tree_sortedlist_indexof_from_to): New functions.
64384         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64385         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64386         Update.
64387         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64388         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
64389         Update.
64390
64391 2006-10-05  Bruno Haible  <bruno@clisp.org>
64392
64393         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
64394         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
64395         (struct gl_list_implementation): Add fields search_from_to,
64396         indexof_from_to. Remove fields search, indexof.
64397         (gl_list_search): Use the search_from_to method.
64398         (gl_list_search_from, gl_list_search_from_to): New functions.
64399         (gl_list_indexof): Use the indexof_from_to method.
64400         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64401         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
64402         (gl_list_search_from, gl_list_search_from_to): New functions.
64403         (gl_list_indexof): Use the indexof_from_to method.
64404         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64405         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
64406         gl_array_indexof. Add start_index, end_index arguments.
64407         (gl_array_search_from_to): Renamed from gl_array_search. Add
64408         start_index, end_index arguments.
64409         (gl_array_remove, gl_array_list_implementation): Update.
64410         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
64411         gl_carray_indexof. Add start_index, end_index arguments.
64412         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
64413         start_index, end_index arguments.
64414         (gl_carray_remove, gl_carray_list_implementation): Update.
64415         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
64416         gl_linked_search. Add start_index, end_index arguments.
64417         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
64418         start_index, end_index arguments.
64419         (gl_linked_remove): Update.
64420         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64421         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64422         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
64423         field to 'size_t'.
64424         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
64425         gl_tree_search. Add start_index, end_index arguments.
64426         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64427         start_index, end_index arguments.
64428         (gl_tree_remove): Update.
64429         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64430         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64431         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
64432         function.
64433         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
64434         gl_tree_search. Add start_index, end_index arguments.
64435         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64436         start_index, end_index arguments.
64437         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64438         Update.
64439         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
64440
64441 2006-10-05  Bruno Haible  <bruno@clisp.org>
64442
64443         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
64444
64445         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
64446         fwriteerror_temp): New declarations.
64447         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
64448         (descriptors): New variable.
64449         (cleanup): First, close the descriptors.
64450         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
64451         fclose_temp, fwriteerror_temp): New functions.
64452
64453 2006-10-04  Jim Meyering  <jim@meyering.net>
64454
64455         * lib/fts.c (fts_open): Tiny comment change.
64456
64457 2006-10-04  Bruno Haible  <bruno@clisp.org>
64458
64459         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
64460         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
64461         gl_LOCK_BODY.
64462         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
64463         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
64464         gl_LOCK_EARLY_BODY.
64465         (gl_LOCK): Require gl_LOCK_BODY.
64466
64467 2006-10-04  Bruno Haible  <bruno@clisp.org>
64468
64469         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
64470         (gl_oset_search_atleast): New declaration.
64471         (struct gl_oset_implementation): Add field 'search_atleast'.
64472         (gl_oset_search_atleast): New inline function.
64473         * lib/gl_oset.c (gl_oset_search_atleast): New function.
64474         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
64475         (gl_array_oset_implementation): Update.
64476         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
64477         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
64478         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
64479
64480 2006-10-04  Bruno Haible  <bruno@clisp.org>
64481
64482         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
64483
64484 2006-10-03  Bruno Haible  <bruno@clisp.org>
64485
64486         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
64487         from gl_avltreehash_list_implementation.
64488
64489 2006-10-03  Bruno Haible  <bruno@clisp.org>
64490
64491         * lib/gl_oset.c (gl_oset_add): Fix return type.
64492
64493 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
64494
64495         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
64496
64497 2006-10-02  Eric Blake  <ebb9@byu.net>
64498
64499         * modules/strnlen (Depends-on): Add extensions.
64500
64501 2006-10-02  Eric Blake  <ebb9@byu.net>
64502
64503         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
64504         definition in 2.60+.
64505
64506 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
64507
64508         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
64509         checks.
64510
64511 2006-10-02  Bruno Haible  <bruno@clisp.org>
64512
64513         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
64514         to the AUTOMAKE_OPTIONS.
64515         Reported by Jim Meyering.
64516
64517 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64518
64519         Work around bug in Solaris 10 /proc file system:
64520         /proc/self/fd/NNN/.. isn't the parent directory of
64521         the directory whose file descriptor is NNN.  This needs to
64522         be worked around at run time, not compile time, since a
64523         program might be built on Solaris 8, where things work, and
64524         run on Solaris 10.
64525         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
64526         to use the following interface instead:
64527         (OPENAT_BUFFER_SIZE): New macro.
64528         (openat_proc_name): New function.
64529         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
64530         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
64531         Likewise.
64532         * lib/openat-proc.c: New file.
64533         * modules/openat (Files): Add lib/openat-proc.c.
64534         (Depends-on): Add same-inode, stdbool.
64535         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
64536
64537 2006-09-29  Bruno Haible  <bruno@clisp.org>
64538
64539         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
64540         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
64541         argument. Set stdout_closed before testing for ferror, not after.
64542         (fwriteerror, fwriteerror_no_ebadf): New functions.
64543
64544 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64545
64546         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
64547
64548 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
64549
64550         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
64551         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
64552
64553 2006-09-28  Jim Meyering  <jim@meyering.net>
64554
64555         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
64556         Include <unistd.h>.
64557
64558 2006-09-28  Bruno Haible  <bruno@clisp.org>
64559
64560         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
64561         * modules/linkedhash-list (Depends-on): Likewise.
64562         * modules/rbtreehash-list (Depends-on): Likewise.
64563
64564 2006-09-28  Bruno Haible  <bruno@clisp.org>
64565
64566         * lib/strndup.h: Simplify the redefinition of strndup.
64567         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
64568         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
64569
64570 2006-09-28  Bruno Haible  <bruno@clisp.org>
64571
64572         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
64573         * lib/gl_linkedhash_list.c: Likewise.
64574         * lib/gl_rbtreehash_list.c: Likewise.
64575
64576 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64577
64578         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
64579         getaddrinfo.
64580
64581         * lib/__fpending.h: Don't include <stdio_ext.h> unless
64582         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
64583         it causes <stdio_ext.h> to cause a compile-time error.
64584         Problem reported by Nelson H. F. Beebe.
64585         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
64586         of HAVE_DECL___PENDING.
64587
64588         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
64589         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
64590         declaration.
64591
64592 2006-09-27  Jim Meyering  <jim@meyering.net>
64593
64594         This file could end up with a definition for a function
64595         named __strndup, rather than rpl_strndup on a system with
64596         incomplete weak_alias support.
64597         * lib/strndup.c (strndup): Rename from __strndup.
64598         Remove #defines that used to map __strndup to strndup.
64599         Don't use K&R prototypes.
64600         Remove LIBC-related code, since this file is not sync'd with glibc.
64601         * lib/strndup.h: Revamp, accordingly.
64602         * m4/strndup.m4: Modernize.
64603
64604 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64605
64606         * modules/savewd (Depends-on): Add 'raise'.
64607         * lib/savewd.c: Include <signal.h>, for 'raise'.
64608
64609 2006-09-26  Jim Meyering  <jim@meyering.net>
64610
64611         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
64612         when we detect Darwin 8.7.0's acl_get_file bug.
64613         Rearrange to perform the new (below) run-test while $LIBS
64614         contains any acl-related library.  Set USE_ACL at the end.
64615         (gl_ACL_GET_FILE): New function.
64616
64617 2006-09-26  Eric Blake  <ebb9@byu.net>
64618
64619         * lib/verror.c: Include <config.h> unconditionally.
64620
64621 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
64622
64623         * modules/clock-time (Maintainer): Add self.
64624         * modules/getlogin_r (Depends-on): Add extensions.
64625
64626 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64627
64628         * modules/clock-time: New module.
64629         * modules/nanosleep (Depends-on): Add clock-time.
64630         * modules/gethrxtime (Depends-on): Likewise.
64631         * modules/gettime (Depends-on): Likewise.
64632         * modules/settime (Depends-on): Likewise.
64633
64634         * modules/fts-lgpl: Depend on openat.
64635         * modules/mkancesdirs: Depend on savewd.
64636         * modules/mkdir-p: Likewise.
64637
64638 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64639
64640         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
64641
64642         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
64643         `gl_have_arbitrary_file_name_length_limit' to
64644         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
64645         actually works between configure runs.
64646
64647 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64648             Bruno Haible  <bruno@clisp.org>
64649
64650         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
64651
64652 2006-09-25  Jim Meyering  <jim@meyering.net>
64653
64654         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
64655         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
64656
64657 2006-09-25  Eric Blake  <ebb9@byu.net>
64658
64659         * gnulib-tool (func_import, func_create_testdir): Fix typos in
64660         exec's in 2006-09-18 patch when shuffling fds.
64661
64662 2006-09-25  Bruno Haible  <bruno@clisp.org>
64663
64664         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
64665         Reported by Jim Meyering.
64666
64667 2006-09-24  Jim Meyering  <jim@meyering.net>
64668
64669         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
64670         compare a pointer against a literal "0".  That caused failures with
64671         at least HP-UX's hpcc.
64672
64673 2006-09-22  Simon Josefsson  <jas@extundo.com>
64674
64675         * modules/gc-sha1:
64676         * modules/gc-md4:
64677         * modules/gc-hmac-sha1:
64678         * modules/gc-hmac-md5:
64679         * modules/gc-des:
64680         * modules/gc-arcfour: Distribute more files.
64681
64682 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64683
64684         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
64685         (gl_linked_iterator_from_to): Initialize struct completely.
64686         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
64687         (gl_tree_iterator_from_to): Likewise
64688         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
64689         * lib/gl_array_list.c [lint] (gl_array_iterator)
64690         (gl_array_iterator_from_to): Likewise.
64691         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
64692         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
64693         (gl_carray_iterator_from_to): Likewise.
64694
64695         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
64696         * lib/md4.c (md4_process_block): Remove unused variable.
64697         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
64698         parentheses for clarity.
64699
64700 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64701
64702         * modules/bison-i18n (Depends-on): Add gettext.
64703
64704 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64705
64706         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
64707         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64708         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
64709         also add missing comma that caused broken test.
64710         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
64711         stdlib.h, for `abort'.
64712         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
64713         variables.
64714         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
64715         include unistd.h if present, for `rmdir'.
64716         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
64717         variables.
64718         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
64719         in the process include standard headers for prototypes.
64720         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
64721         gets declared on GNU/Linux.
64722         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
64723         unistd.h, for `rmdir'.
64724         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
64725
64726         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
64727         always true.
64728         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
64729
64730         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
64731
64732 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64733
64734         * gnulib-tool (func_version): Create output all at once.  This
64735         may help avoid triggering unnecessary SIGPIPEs, and at any
64736         rate it doesn't hurt.
64737
64738 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64739             Bruno Haible  <bruno@clisp.org>
64740
64741         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
64742         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64743         * m4/signed.m4 (bh_C_SIGNED): Likewise.
64744
64745         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
64746         (gl_FUNC_VASPRINTF): Invoke it.
64747
64748 2006-09-22  Bruno Haible  <bruno@clisp.org>
64749
64750         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
64751         getloadavg.c as first argument.
64752
64753 2006-09-22  Bruno Haible  <bruno@clisp.org>
64754
64755         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
64756         at the beginning of the gl_INIT macro.
64757         * modules/getloadavg (configure.ac): Pass $gl_source_base to
64758         gl_GETLOADAVG.
64759
64760 2006-09-22  Bruno Haible  <bruno@clisp.org>
64761
64762         * gnulib-tool (func_create_megatestdir): Don't include the config-h
64763         module.
64764         Suggested by Ralf Wildenhues.
64765
64766 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64767
64768         Import this patch from libc:
64769
64770         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
64771
64772         * lib/regex_internal.c (re_string_reconstruct): Handle
64773         offset < pstr->valid_raw_len && pstr->offsets_needed case.
64774         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
64775         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
64776         re_string_context_at.
64777
64778         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
64779         now requires it.
64780         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
64781         gl_REGEX now does it for us.
64782         (gl_REGEX): Add test taken from
64783         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
64784
64785         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
64786         Check that large offsets work.  Modernize Autoconf usages.
64787         Prefer "yes" to mean a good thing rather than a bad.
64788         Don't put "#define mkstemp" in config.h, as this might interfere
64789         with standard system headers that "#define mkstemp mkstemp64".
64790
64791         * modules/mkstemp (Depends-on): Add extensions, so that
64792         mkstemp is visible on some platforms.
64793         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
64794         (Include): Change to "mkstemp.h" from <stdlib.h>.
64795         (Files): Add mkstemp.h.
64796
64797         * lib/mkstemp.h: New file, since some standard headers
64798         #define mkstemp.
64799         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
64800         Include "mkstemp.h".
64801         Make the _LIBC code resemble glibc original more,
64802         e.g., use K&R style.
64803         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
64804         (mkstemp): Remove, since mkstemp.h does this for us.
64805         * lib/stdlib--.h: Include mkstemp.h.
64806
64807         Import this patch from libc:
64808
64809         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64810
64811         * lib/tempname.c (__gen_tempname): Change attempts_min
64812         into a macro.  Use preprocessor to decide how to initialize
64813         attempts [Coverity CID 67].
64814
64815 2006-09-20  Bruno Haible  <bruno@clisp.org>
64816
64817         * lib/mkdtemp.c: Import from libc.
64818         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64819                 * sysdeps/posix/tempname.c (__gen_tempname): Change
64820                 attempts_min into a macro.  Use preprocessor to decide how to
64821                 initialize attempts [Coverity CID 67].
64822         2001-11-27  Paul Eggert  <eggert@twinsun.com>
64823                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
64824                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
64825
64826 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64827
64828         * gnulib-tool (func_exit): New function, to allow to pass the
64829         exit status portably through the trap.  Use everywhere.
64830         (--help, --version): Signal a write error.
64831         (trap): catch SIGPIPE, for write errors.
64832         Exit at the end of the trap, with the correct exit status.
64833
64834 2006-09-19  Karl Berry  <karl@gnu.org>
64835
64836         * doc/gnulib.texi: note about the license texinfo files.
64837
64838 2006-09-19  Eric Blake  <ebb9@byu.net>
64839
64840         * gnulib-tool: Avoid space-tab.
64841
64842 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64843
64844         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
64845         that prevented coreutils 6.1 from building.  Problem reported
64846         by Petter Reinholdtsen.
64847
64848 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64849
64850         * gnulib-tool (avoidlist): Fix typo that broke options like
64851         --avoid=lock that are used by coreutils bootstrap.
64852
64853 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
64854
64855         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
64856         more systematically.
64857
64858 2006-09-18  Jim Meyering  <jim@meyering.net>
64859
64860         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
64861
64862 2006-09-18  Bruno Haible  <bruno@clisp.org>
64863
64864         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
64865
64866 2006-09-18  Bruno Haible  <bruno@clisp.org>
64867
64868         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
64869         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
64870         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
64871         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
64872         * m4/gettext.m4: Require autoconf >= 2.52.
64873         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
64874         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
64875         of gl_cv_header_inttypes_h.
64876
64877 2006-09-18  Bruno Haible  <bruno@clisp.org>
64878
64879         * lib/javaversion.c: Include configmake.h.
64880
64881 2006-09-18  Bruno Haible  <bruno@clisp.org>
64882
64883         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
64884         avoid that the while loops be executed in a subshell.
64885
64886 2006-09-18  Bruno Haible  <bruno@clisp.org>
64887
64888         * MODULES.html.sh (func_module): Break long lines.
64889         Suggested by Bruce Korb <bkorb@gnu.org>.
64890
64891 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64892
64893         Speed up by a factor of 1.12.
64894         * gnulib-tool (nl): New variable.
64895         (func_import): Rewrite include directive extraction to only read each
64896         directive once.
64897
64898 2006-09-17  Bruno Haible  <bruno@clisp.org>
64899
64900         * modules/javaversion (Makefile.am): Remove DEFS setting.
64901         (Depends-on): Add configmake, for PKGDATADIR definition.
64902
64903 2006-09-17  Bruno Haible  <bruno@clisp.org>
64904
64905         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64906
64907 2006-09-17  Bruno Haible  <bruno@clisp.org>
64908
64909         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64910         (func_modules_transitive_closure, func_modules_add_dummy,
64911         func_modules_to_filelist, func_import, func_create_testdir,
64912         func_create_megatestdir, ...): Use it wherever possible.
64913         Suggested by Ralf Wildenhues.
64914
64915 2006-09-16  Karl Berry  <karl@gnu.org>
64916
64917         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64918         to avoid sectioning errors.
64919         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64920         [ifinfo]: blank line after @center-ed titles.
64921         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64922         Spell FSF address consistently with others.
64923         (These changes approved by rms.)
64924
64925 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64926
64927         Speed up by a factor of 1.61.
64928         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64929         already checked module names again.
64930
64931 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64932
64933         Speed up by a factor of 1.13.
64934         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64935         for new_files, and the input to func_add_or_update.
64936
64937 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64938
64939         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64940         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64941
64942 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64943
64944         * modules/mkancesdirs (Depends-on): Add fcntl.
64945         * modules/savewd: New file.
64946         * MODULES.html.sh (File system functions): Add savewd.
64947
64948         * modules/configmake (Makefile.am): Add support for the
64949         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64950
64951 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64952
64953         * m4/savewd.m4: New file.
64954
64955 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64956
64957         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64958         (dirchownmod): New arg FD.  All callers changed.
64959         Use FD rather than opening the directory ourself, as opening is
64960         now the caller's responsibility.
64961         * lib/dirchownmod.h: Likewise.
64962         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64963         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64964         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64965         (test_dir): Remove.
64966         (mkancesdirs): Return length of prefix of FILE that has already
64967         been made, or -2 if there is a child doing the work.  Redo
64968         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64969         ".", and treat ".." specially since it might stray back into
64970         already-created areas.  Use a subprocess if necessary.  New arg
64971         WD; all users changed.  MAKE_DIR function should now return 1
64972         if it creates a directory that is not readable.  Return -2 if
64973         a child process is spun off.
64974         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64975         Adjust signature to match code.
64976         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64977         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64978         all users changed.
64979         * lib/savewd.c, lib/savewd.h: New files.
64980
64981 2006-09-15  Jim Meyering  <jim@meyering.net>
64982
64983         * modules/rename-dest-slash: New module.
64984         * MODULES.html.sh (posix_compat): Add it here.
64985
64986         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64987
64988 2006-09-15  Jim Meyering  <jim@meyering.net>
64989
64990         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64991         file.
64992
64993         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64994
64995 2006-09-15  Jim Meyering  <jim@meyering.net>
64996
64997         * lib/rename-dest-slash.c (has_trailing_slash): Use
64998         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64999         (rpl_rename_dest_slash): Perform the cheaper trailing slash
65000         test before testing whether SRC is a directory.
65001         Suggestions from Bruno Haible.
65002
65003         Avoid a warning about an unused variable.
65004         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
65005         into the #ifdef block where it's used.
65006
65007         * lib/rename-dest-slash.c: New file.
65008
65009 2006-09-14  Bruno Haible  <bruno@clisp.org>
65010
65011         * lib/allocsa.c: Include <config.h> unconditionally.
65012         * lib/asnprintf.c: Likewise.
65013         * lib/asprintf.c: Likewise.
65014         * lib/c-strcasecmp.c: Likewise.
65015         * lib/c-strcasestr.c: Likewise.
65016         * lib/c-strncasecmp.c: Likewise.
65017         * lib/c-strstr.c: Likewise.
65018         * lib/classpath.c: Likewise.
65019         * lib/clean-temp.c: Likewise.
65020         * lib/concatpath.c: Likewise.
65021         * lib/copy-file.c: Likewise.
65022         * lib/csharpcomp.c: Likewise.
65023         * lib/csharpexec.c: Likewise.
65024         * lib/execute.c: Likewise.
65025         * lib/fatal-signal.c: Likewise.
65026         * lib/findprog.c: Likewise.
65027         * lib/fwriteerror.c: Likewise.
65028         * lib/gl_array_list.c: Likewise.
65029         * lib/gl_array_oset.c: Likewise.
65030         * lib/gl_avltree_list.c: Likewise.
65031         * lib/gl_avltree_oset.c: Likewise.
65032         * lib/gl_avltreehash_list.c: Likewise.
65033         * lib/gl_carray_list.c: Likewise.
65034         * lib/gl_linked_list.c: Likewise.
65035         * lib/gl_linkedhash_list.c: Likewise.
65036         * lib/gl_list.c: Likewise.
65037         * lib/gl_oset.c: Likewise.
65038         * lib/gl_rbtree_list.c: Likewise.
65039         * lib/gl_rbtree_oset.c: Likewise.
65040         * lib/gl_rbtreehash_list.c: Likewise.
65041         * lib/imaxabs.c: Likewise.
65042         * lib/imaxdiv.c: Likewise.
65043         * lib/javacomp.c: Likewise.
65044         * lib/javaexec.c: Likewise.
65045         * lib/javaversion.c: Likewise.
65046         * lib/linebreak.c: Likewise.
65047         * lib/localcharset.c: Likewise.
65048         * lib/lock.c: Likewise.
65049         * lib/mbchar.c: Likewise.
65050         * lib/mbswidth.c: Likewise.
65051         * lib/mkdtemp.c: Likewise.
65052         * lib/pipe.c: Likewise.
65053         * lib/printf-args.c: Likewise.
65054         * lib/printf-parse.c: Likewise.
65055         * lib/progname.c: Likewise.
65056         * lib/progreloc.c: Likewise.
65057         * lib/readlink.c: Likewise.
65058         * lib/sh-quote.c: Likewise.
65059         * lib/stpcpy.c: Likewise.
65060         * lib/stpncpy.c: Likewise.
65061         * lib/strcasecmp.c: Likewise.
65062         * lib/strcasestr.c: Likewise.
65063         * lib/strcspn.c: Likewise.
65064         * lib/striconv.c: Likewise.
65065         * lib/strncasecmp.c: Likewise.
65066         * lib/strnlen1.c: Likewise.
65067         * lib/strstr.c: Likewise.
65068         * lib/strtok_r.c: Likewise.
65069         * lib/tls.c: Likewise.
65070         * lib/tmpdir.c: Likewise.
65071         * lib/unicodeio.c: Likewise.
65072         * lib/unsetenv.c: Likewise.
65073         * lib/vasnprintf.c: Likewise.
65074         * lib/vasprintf.c: Likewise.
65075         * lib/wait-process.c: Likewise.
65076         * lib/xallocsa.c: Likewise.
65077         * lib/xsetenv.c: Likewise.
65078         * lib/xstriconv.c: Likewise.
65079
65080 2006-09-13  Simon Josefsson  <jas@extundo.com>
65081
65082         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
65083         that internally, suggested by Ralf Wildenhues
65084         <Ralf.Wildenhues@gmx.de>.
65085
65086 2006-09-13  Simon Josefsson  <jas@extundo.com>
65087
65088         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
65089         @LIBOBJS@.
65090         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65091
65092 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65093
65094         * lib/_fpending.c: Include <config.h> unconditionally, since we no
65095         longer worry about uses that don't define HAVE_CONFIG_H.
65096         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
65097         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
65098         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
65099         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
65100         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
65101         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
65102         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
65103         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
65104         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
65105         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
65106         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
65107         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
65108         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
65109         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
65110         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
65111         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
65112         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
65113         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
65114         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
65115         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
65116         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
65117         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
65118         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
65119         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
65120         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
65121         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
65122         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
65123         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
65124         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
65125         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
65126         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
65127         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
65128         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
65129         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
65130         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
65131         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
65132         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
65133         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
65134         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
65135         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
65136         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
65137         Likewise.
65138
65139 2006-09-13  Eric Blake  <ebb9@byu.net>
65140
65141         * lib/getopt.c: Fix typo in last commit.
65142
65143 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65144
65145         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
65146         dgettext.
65147
65148 2006-09-12  Jim Meyering  <jim@meyering.net>
65149
65150         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
65151         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
65152         Reported by Nelson H. F. Beebe.
65153
65154 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65155
65156         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
65157         program_invocation_name and program_invocation_short_name are
65158         initialized.
65159         * lib/argp-namefrob.h: Move declarations of program_invocation_name
65160         and program_invocation_short_name to argp.h, so they are visible
65161         to user programs.
65162         * lib/argp.h: Likewise
65163
65164 2006-09-10  Bruno Haible  <bruno@clisp.org>
65165
65166         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65167         m4/inttypes_h.m4, m4/uintmax_t.m4.
65168
65169 2006-09-10  Bruno Haible  <bruno@clisp.org>
65170
65171         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
65172         gl_AC_TYPE_UINTMAX_T.
65173
65174 2006-09-10  Bruno Haible  <bruno@clisp.org>
65175
65176         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
65177
65178 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65179
65180         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
65181         convention.  Text proposed by Bruno Haible.
65182         (struct argp_option): Document the use of N_() wrappers.
65183
65184         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
65185         '\v', and translate the two parts separately, instead of feeding
65186         the whole string to gettext.  This allows to exclude
65187         '\v' from the strings visible to the translator by writing doc
65188         strings as N_("..") "\v" N_("..").
65189
65190 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
65191
65192         * config/srclist.txt: Undo latest change; the bug was fixed.
65193
65194 2006-09-09  Bruno Haible  <bruno@clisp.org>
65195
65196         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
65197         assignments if building a library without libtool.
65198         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
65199         in func_emit_lib_Makefile_am.
65200         (func_import): When building a static library libfoo.a, arrange to
65201         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
65202         (func_create_testdir): Likewise.
65203         * modules/gc (configure.ac, Makefile.am): If building statically,
65204         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
65205         * modules/iconvme (configure.ac, Makefile.am): Likewise.
65206         * modules/striconv (configure.ac, Makefile.am): Likewise.
65207         Based on a suggestion by Ralf Wildenhues.
65208
65209 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65210
65211         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65212         Check for unistd.h too, since Autoconf doesn't assume POSIX.
65213         Also:
65214
65215         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65216         Add year_2050_test to catch glibc bug 2821
65217         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65218
65219         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65220         Prefer #ifdef to #if.
65221
65222         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
65223         Return from 'main' instead of calling 'exit'.
65224
65225 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65226
65227         * lib/mktime.c (guess_time_tm): Fix bug where mktime
65228         returned the maximum time_t value rather than (time_t) -1.
65229         Problem originally reported by William Bardwell
65230         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65231
65232         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65233         Moved to here ...
65234         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65235         ... from here.
65236
65237 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65238
65239         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
65240         2821 is fixed.
65241
65242 2006-09-08  Jim Meyering  <jim@meyering.net>
65243
65244         Don't make generated files read-only.  That would bother too many
65245         people.  However, do retain the ability to work when targets are
65246         read-only: remove the destination and temporary files before writing
65247         them (when generated via sed or echo), or by using the -f option for
65248         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
65249         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65250         * modules/byteswap, modules/configmake, modules/fcntl:
65251         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65252         * modules/localcharset, modules/netinet_in, modules/poll:
65253         * modules/stdbool, modules/stdint, modules/sys_select:
65254         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65255
65256 2006-09-08  Jim Meyering  <jim@meyering.net>
65257
65258         Avoid new build failure on FreeBSD 6.0.
65259         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
65260         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
65261         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
65262
65263 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65264
65265         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
65266
65267 2006-09-07  Jim Meyering  <jim@meyering.net>
65268
65269         Fix global typo in last change: use chmod u-w, not chmod u-x.
65270         Spotted by Paul Eggert and Bruce Korb.
65271         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65272         * modules/byteswap, modules/configmake, modules/fcntl:
65273         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65274         * modules/localcharset, modules/netinet_in, modules/poll:
65275         * modules/stdbool, modules/stdint, modules/sys_select:
65276         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65277
65278 2006-09-06  Jim Meyering  <jim@meyering.net>
65279
65280         Make generated files be read-only.
65281         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
65282         Ensure that each generated file is now read-only.
65283         * modules/argz: Likewise.
65284         * modules/arpa_inet: Likewise.
65285         * modules/byteswap: Likewise.
65286         * modules/configmake: Likewise.
65287         * modules/fcntl: Likewise.
65288         * modules/fnmatch: Likewise.
65289         * modules/getopt: Likewise.
65290         * modules/glob: Likewise.
65291         * modules/inttypes: Likewise.
65292         * modules/netinet_in: Likewise.
65293         * modules/poll: Likewise.
65294         * modules/stdbool: Likewise.
65295         * modules/stdint: Likewise.
65296         * modules/sys_select: Likewise.
65297         * modules/sys_socket: Likewise.
65298         * modules/sys_stat: Likewise.
65299         * modules/sysexits: Likewise.
65300         * modules/localcharset: Same as above, but continue using temporary
65301         file named "t-$@" (why different?) rather than the "$@-t" used
65302         everywhere else.
65303
65304         * modules/sysexits (Makefile.am): Replace literal occurrences
65305         of "sysexit.h" more readable, and more consistent, "$@".
65306
65307 2006-09-06  Bruno Haible  <bruno@clisp.org>
65308
65309         * modules/striconv: New file.
65310         * modules/xstriconv: New file.
65311         * MODULES.html.sh (Internationalization functions): Add striconv,
65312         xstriconv.
65313
65314 2006-09-06  Bruno Haible  <bruno@clisp.org>
65315
65316         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
65317         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
65318         not using libtool correctly.
65319
65320 2006-09-06  Bruno Haible  <bruno@clisp.org>
65321
65322         * lib/striconv.h: New file.
65323         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
65324         iconvstring.c.
65325         * lib/xstriconv.h: New file.
65326         * lib/xstriconv.c: New file.
65327
65328 2006-09-06  Bruno Haible  <bruno@clisp.org>
65329
65330         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65331         lib_..._LDFLAGS.
65332
65333 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65334
65335         * lib/argz_.h: Sync from Libtool.
65336
65337         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
65338                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65339
65340         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
65341
65342 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65343
65344         * modules/trim: New file.
65345
65346 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65347
65348         * lib/trim.h: New file.
65349         * lib/trim.c: New file.
65350
65351 2006-09-05  Bruno Haible  <bruno@clisp.org>
65352
65353         * MODULES.html.sh (String handling): Add trim.
65354
65355 2006-09-04  Karl Berry  <karl@gnu.org>
65356
65357         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
65358         until next release.
65359
65360 2006-09-03  Bruno Haible  <bruno@clisp.org>
65361
65362         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
65363         correctly.
65364
65365 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65366
65367         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
65368         not gl_GETLOADAVG.  Omit unneeded semicolons.
65369         Problems reported by Ralf Wildenhues in
65370         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65371         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
65372         at the end, which is the usual gnulib style.
65373
65374         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
65375         of doing all the work ourselves.
65376         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
65377         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
65378
65379 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65380
65381         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
65382         Problem reported by Ralf Wildenhues in
65383         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65384
65385         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
65386         HAVE_STRUCT_STATFS_F_FSTYPENAME.
65387
65388 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65389
65390         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
65391         yesterday's patch by changing test -n to test -z.
65392
65393 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65394
65395         * modules/getloadavg (Files): Add m4/getloadavg.m4.
65396         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
65397         the former is now obsolescent.
65398
65399         * modules/chdir-long (Depends-on): Add fcntl.
65400
65401 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65402
65403         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
65404         obsolescent, and programs should use gnulib instead.
65405         * m4/getloadavg.m4: New file, with contents taken from Autoconf
65406         but with prefixes changed.
65407
65408 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65409
65410         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
65411         or stdbool.h, because they might not exist while configuring.
65412
65413         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
65414         Don't include unistd.h or limits.h; not needed, since chdir-long.h
65415         does that for us.
65416         (O_DIRECTORY): Remove.
65417
65418 2006-08-31  Eric Blake  <ebb9@byu.net>
65419
65420         * gnulib-tool: Don't let emacs change spaces to TAB.
65421
65422 2006-08-31  Bruno Haible  <bruno@clisp.org>
65423
65424         * gnulib-tool: When calling func_import more than once, do it in a
65425         subshell.
65426         Reported by Eric Blake <ebb9@byu.net>.
65427
65428 2006-08-31  Bruno Haible  <bruno@clisp.org>
65429
65430         * gnulib-tool (nl): Remove variable.
65431         (sed_transform_lib_file): Use more robust test for config-h module.
65432         (func_import): Fix typo in 2006-08-25 patch.
65433
65434 2006-08-31  Bruno Haible  <bruno@clisp.org>
65435
65436         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
65437         specified, augment Makefile.am variables instead of assigning them.
65438
65439 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65440
65441         Work around a bug in both the Linux and SunOS 64-bit kernels:
65442         nanosleep mishandles sleeps for longer than 2**31 seconds.
65443         Problem reported by Frank v Waveren in
65444         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65445         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
65446         Check for nanosleep bug.
65447         (LIB_NANOSLEEP): Append clock_gettime library if needed.
65448
65449 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65450
65451         Work around a bug in both the Linux and SunOS 64-bit kernels:
65452         nanosleep mishandles sleeps for longer than 2**31 seconds.
65453         Problem reported by Frank v Waveren in
65454         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65455         * lib/nanosleep.c (BILLION): New constant.
65456         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
65457         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
65458         implementation.
65459
65460 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65461
65462         * modules/nanosleep (Depends-on): Add gettime.
65463
65464 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65465         and Simon Josefsson  <jas@extundo.com>
65466         and Oskar Liljeblad  <oskar@osk.mine.nu>
65467
65468         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
65469         * gnulib-tool (func_import): New license type 'unmodifiable license
65470         text'.
65471         * modules/fdl: Use it.  Longer description.
65472         * module/gpl, module/lgpl: New files.
65473
65474 2006-08-30  Jim Meyering  <jim@meyering.net>
65475
65476         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
65477         shadowing the parameter.
65478
65479 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65480
65481         Sync from Libtool:
65482
65483         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65484
65485         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
65486         sharing with gnulib.  Report by Eric Blake.
65487
65488 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65489
65490         * modules/isapipe: New file.
65491         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
65492
65493 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65494
65495         * modules/configmake (Makefile.am): Add a comment, and omit
65496         the CONFIGMAKE_ prefix from generated macro names.  Suggested
65497         by Bruno Haible.
65498
65499 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65500
65501         * m4/isapipe.m4: New file.
65502
65503 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65504
65505         * lib/isapipe.c, lib/isapipe.h: New files.
65506
65507 2006-08-29  Jim Meyering  <jim@meyering.net>
65508
65509         * modules/configmake (Makefile.am): Make configmake.h depend on
65510         Makefile.  Otherwise, a stale configmake.h could hang around.
65511
65512 2006-08-29  Eric Blake  <ebb9@byu.net>
65513
65514         * lib/error.c (error_at_line, print_errno_message): Match libc, after
65515         resolution of upstream bug 3044.
65516
65517 2006-08-29  Bruno Haible  <bruno@clisp.org>
65518
65519         * modules/localcharset (Depends-on): Add configmake.
65520         (Makefile.am): Remove setting of LIBDIR through DEFS.
65521
65522 2006-08-29  Bruno Haible  <bruno@clisp.org>
65523
65524         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
65525         defined.
65526
65527 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65528
65529         * modules/fcntl: New file.
65530         * modules/chdir-safer (Depends-on): Add fcntl.
65531         * modules/fts: Likewise.
65532         * modules/mkdir-p: Likewise.
65533
65534         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
65535         This undoes the most recent change, since we're now addressing the
65536         problem in a different way.
65537
65538         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
65539         into output, since the output might be called Makefile.am even
65540         if $makefile_name is something different.
65541         (func_import): Use $makefile_am rather than
65542         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
65543         empty.
65544
65545         * modules/inttypes (Files): Add m4/inttypes-h.m4.
65546
65547 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65548
65549         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
65550         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
65551         recent change to stdint.m4, since we're now addressing the problem in a
65552         different way.
65553
65554 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65555
65556         * m4/fcntl_h.m4: New file.
65557
65558 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65559
65560         * lib/fcntl_.h: New file.
65561         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
65562         the fcntl module.
65563         * lib/dirchownmod.c: Likewise.
65564         * lib/fts.c: Likewise.
65565
65566         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
65567         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
65568         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
65569         just before including <inttypes.h>, to avoid circular inclusion.
65570
65571 2006-08-28  Jim Meyering  <jim@meyering.net>
65572
65573         * doc/visibility.texi: Actually read and correct the grammar of the
65574         sentence affected by yesterday's change.
65575
65576 2006-08-28  Eric Blake  <ebb9@byu.net>
65577
65578         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
65579         needs wrapper.
65580
65581 2006-08-28  Eric Blake  <ebb9@byu.net>
65582
65583         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
65584
65585 2006-08-28  Eric Blake  <ebb9@byu.net>
65586
65587         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
65588
65589 2006-08-28  Bruno Haible  <bruno@clisp.org>
65590
65591         * modules/c-strstr: New file, from GNU gettext.
65592         * MODULES.html.sh (String handling): Add c-strstr.
65593
65594 2006-08-28  Bruno Haible  <bruno@clisp.org>
65595
65596         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
65597         macros.
65598         Reported by Eric Blake.
65599
65600 2006-08-28  Bruno Haible  <bruno@clisp.org>
65601
65602         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
65603         (VASNPRINTF): Return a string of length > INT_MAX without failing.
65604         * lib/vasprintf.c: Include errno.h, limits.h.
65605         (EOVERFLOW): New fallback definition.
65606         (vasprintf): Test here whether the string length is > INT_MAX.
65607         * lib/vsnprintf.c: Include errno.h, limits.h.
65608         (EOVERFLOW): New fallback definition.
65609         (vsnprintf): Fix bug when generated string was too long for the buffer.
65610         Test here whether the string length is > INT_MAX.
65611
65612 2006-08-28  Bruno Haible  <bruno@clisp.org>
65613
65614         * lib/inttypes_.h (SCNX*): Remove definitions.
65615         Reported by Eric Blake.
65616
65617 2006-08-28  Bruno Haible  <bruno@clisp.org>
65618
65619         * lib/c-strstr.h: New file, from GNU gettext.
65620         * lib/c-strstr.c: New file, from GNU gettext.
65621
65622 2006-08-28  Bruno Haible  <bruno@clisp.org>
65623
65624         * gnulib-tool: Reorder some statements.
65625
65626 2006-08-28  Bruno Haible  <bruno@clisp.org>
65627
65628         * gnulib-tool: New option --makefile-name.
65629         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
65630         $makefile_name.
65631         (func_import): Write $makefile_name to the cache file, and read it from
65632         there unless explicitly specified. Use $makefile_name as file name
65633         instead of Makefile.am. Adjust the recommendations accordingly.
65634
65635 2006-08-28  Bruno Haible  <bruno@clisp.org>
65636
65637         * gnulib-tool (func_verify_module): Check against misapplying patch.
65638
65639 2006-08-28  Bruno Haible  <bruno@clisp.org>
65640
65641         * gnulib-tool (func_relativize, func_relconcat): New functions.
65642         Give an error if --local-dir is given with --update.
65643         Remove trailing slashes from $local_gnulib_dir.
65644         (func_import): Store the relativized $local_gnulib_dir in
65645         gnulib-cache.m4, and read it from there if not specified explicitly.
65646
65647 2006-08-28  Bruno Haible  <bruno@clisp.org>
65648
65649         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
65650         is the current directory. Respect also $local_gnulib_dir.
65651
65652 2006-08-28  Bruno Haible  <bruno@clisp.org>
65653             Simon Josefsson  <jas@extundo.com>
65654
65655         BeOS portability.
65656         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
65657
65658 2006-08-27  Jim Meyering  <jim@meyering.net>
65659
65660         * doc/visibility.texi: Remove duplicate word: "pointer".
65661
65662 2006-08-26  Bruno Haible  <bruno@clisp.org>
65663
65664         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
65665         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
65666         (Makefile.am): Create inttypes.h from inttypes_.h.
65667         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
65668
65669         * modules/imaxabs: New file.
65670
65671         * modules/imaxdiv: New file.
65672
65673 2006-08-26  Bruno Haible  <bruno@clisp.org>
65674
65675         * m4/inttypes.m4: New file.
65676         * m4/_inttypes_h.m4: Remove file.
65677         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
65678         PRI_MACROS_BROKEN.
65679         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
65680
65681         * m4/imaxabs.m4: New file.
65682
65683         * m4/imaxdiv.m4: New file.
65684
65685 2006-08-26  Bruno Haible  <bruno@clisp.org>
65686
65687         * lib/inttypes_.h: New file.
65688         * lib/inttypes.h: Remove file.
65689         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
65690
65691         * lib/imaxabs.c: New file.
65692
65693         * lib/imaxdiv.c: New file.
65694
65695 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65696
65697         New config-h module, so that "make" output needn't be cluttered
65698         by -DHAVE_CONFIG_H.
65699         * MODULES.html.sh (Support for building libraries and executables):
65700         Add config-h.
65701         * modules/config-h: New file.
65702         * gnulib-tool (nl, sed_transform_lib_file): New vars.
65703         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
65704         the config-h module is used.
65705
65706         New configmake module, so that "make" output needn't be cluttered
65707         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
65708         * MODULES.html.sh (Support for building libraries and executables):
65709         Add configmake.
65710         * modules/configmake: New file.
65711
65712 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65713
65714         * m4/config-h.m4: New file.
65715
65716 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65717
65718         * config/srclist.txt: Add elisp-comp.
65719
65720 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65721
65722         * MODULES.html.sh (Support for building libraries and executables):
65723         Add elisp-comp.
65724         * build-aux/elisp-comp: New file.
65725         * modules/elisp-comp: New file.
65726
65727 2006-08-24  Bruno Haible  <bruno@clisp.org>
65728
65729         * gnulib-tool (func_create_testdir): Use non-default values of
65730         sourcebase and m4base.
65731
65732 2006-08-24  Bruno Haible  <bruno@clisp.org>
65733
65734         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
65735         HTML structure.
65736
65737 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65738
65739         * modules/openat (Depends-on): Add lchown.
65740
65741 2006-08-23  Bruno Haible  <bruno@clisp.org>
65742
65743         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
65744         of gl_LOCK_EARLY instead of gl_LOCK.
65745
65746 2006-08-23  Bruno Haible  <bruno@clisp.org>
65747
65748         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
65749         on OSF/1 to no.
65750         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
65751
65752 2006-08-23  Bruno Haible  <bruno@clisp.org>
65753
65754         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
65755         as unusable.
65756
65757         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
65758         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
65759         (gl_LOCK): New macro.
65760
65761 2006-08-22  Simon Josefsson  <jas@extundo.com>
65762
65763         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
65764         to md5 module.
65765
65766 2006-08-22  Simon Josefsson  <jas@extundo.com>
65767
65768         * MODULES.html.sh: Add "Support for maintaining and release
65769         projects".
65770
65771         * build-aux/gnupload: New file, from coreutils.
65772
65773 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65774
65775         Avoid the need for AC_LIBSOURCES in m4 macros.
65776         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
65777         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
65778         * modules/check-version (EXTRA_DIST): Add check-version.h.
65779         * modules/crc (EXTRA_DIST): Add crc.h.
65780         * modules/des (EXTRA_DIST): Add des.h.
65781         * modules/gc (EXTRA_DIST): Add gc.h.
65782         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
65783         * modules/getline (EXTRA_DIST): Add getline.h.
65784         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
65785         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
65786         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
65787         * modules/md2 (EXTRA_DIST): Add md2.h.
65788         * modules/md4 (EXTRA_DIST): Add md4.h.
65789         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
65790         * modules/read-file (EXTRA_DIST): Add read-file.h.
65791         * modules/readline (EXTRA_DIST): Add readline.h.
65792         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
65793         rijndael-api-fst.h.
65794
65795 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65796
65797         * m4/rijndael.m4 (gl_ARCFOUR):
65798         * m4/arctwo.m4 (gl_ARCTWO):
65799         * m4/check-version.m4 (gl_CHECK_VERSION):
65800         * m4/crc.m4 (gl_CRC):
65801         * m4/des.m4 (gl_DES):
65802         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
65803         * m4/gc.m4 (gl_GC):
65804         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
65805         * m4/getline.m4 (gl_FUNC_GETLINE):
65806         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
65807         * m4/hmac-md5.m4 (gl_HMAC_MD5):
65808         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
65809         * m4/md2.m4 (gl_MD2):
65810         * m4/md4.m4 (gl_MD4):
65811         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
65812         * m4/read-file.m4 (gl_FUNC_READ_FILE):
65813         * m4/readline.m4 (gl_FUNC_READLINE):
65814         * m4/rijndael.m4 (gl_RIJNDAEL):
65815         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65816         to get the necessary .h files and whatnot.
65817
65818 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65819
65820         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
65821         gnulib rather than the other way around.
65822         * config/srclistvars.sh (COREUTILS): Remove.
65823
65824 2006-08-22  Jim Meyering  <jim@meyering.net>
65825
65826         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
65827
65828         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
65829
65830 2006-08-22  Eric Blake  <ebb9@byu.net>
65831
65832         * modules/regexprops-generic: New file.
65833         * MODULES.html.sh (Support for building documentation): List it.
65834
65835 2006-08-22  Eric Blake  <ebb9@byu.net>
65836
65837         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
65838         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65839         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
65840         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65841
65842 2006-08-22  Bruno Haible  <bruno@clisp.org>
65843
65844         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
65845         and lib_LTLIBRARIES like the other lib_* variables.
65846
65847 2006-08-22  Bruno Haible  <bruno@clisp.org>
65848
65849         * build-aux/x-to-1.in: New file, from GNU gettext.
65850
65851 2006-08-22  Bruno Haible  <bruno@clisp.org>
65852
65853         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
65854         <utmpx.h> exists.
65855
65856 2006-08-22  Bruno Haible  <bruno@clisp.org>
65857
65858         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
65859         <utmpx.h> exists.
65860
65861 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65862
65863         BeOS portability.
65864         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
65865         exist.
65866         Problem reported by Bruno Haible.
65867
65868 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65869
65870         Avoid the need for AC_LIBSOURCES in m4 macros.
65871         * modules/acl (EXTRA_DIST): Add acl.h.
65872         * modules/argmatch (Files): Add m4/argmatch.m4.
65873         (configure.ac): Add gl_ARGMATCH.
65874         (EXTRA_DIST): Renamed from lib_SOURCES, for
65875         consistency with the other modules.  Remove argmatch.c.
65876         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
65877         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
65878         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
65879         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
65880         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
65881         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
65882         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
65883         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
65884         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
65885         * modules/closeout (EXTRA_DIST): Add closeout.h.
65886         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
65887         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
65888         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
65889         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
65890         dirname.h; remove basename.c and stripslash.c.
65891         * modules/exclude (EXTRA_DIST): Add exclude.h.
65892         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
65893         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
65894         * modules/file-type (EXTRA_DIST): Add file-type.h.
65895         * modules/filemode (EXTRA_DIST): Add filemode.h.
65896         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
65897         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65898         * modules/fpending (EXTRA_DIST): Add __fpending.h.
65899         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
65900         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65901         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65902         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65903         * modules/getdate (EXTRA_DIST): Add getdate.c.
65904         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65905         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65906         * modules/getpass (EXTRA_DIST): Add getpass.h.
65907         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65908         * modules/group-member (EXTRA_DIST): Add group-member.h.
65909         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65910         * modules/hash (EXTRA_DIST): Add hash.h.
65911         * modules/human (EXTRA_DIST): Add human.h.
65912         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65913         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65914         * modules/lchown (EXTRA_DIST): Add lchown.h.
65915         * modules/long-options (EXTRA_DIST): Add long-options.h.
65916         * modules/lstat (EXTRA_DIST): Add lstat.h.
65917         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65918         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65919         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65920         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65921         * modules/memxor (EXTRA_DIST): Add memxor.h.
65922         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65923         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65924         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65925         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65926         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65927         * modules/physmem (EXTRA_DIST): Add physmem.h.
65928         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65929         * modules/posixver (EXTRA_DIST): Add posixver.h.
65930         * modules/quote (EXTRA_DIST): Add quote.h.
65931         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65932         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65933         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65934         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65935         regex_internal.h regexec.c.
65936         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65937         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65938         * modules/same (EXTRA_DIST): Add same.h.
65939         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65940         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65941         * modules/savedir (EXTRA_DIST): Add savedir.h.
65942         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65943         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65944         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65945         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65946         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65947         * modules/strdup (EXTRA_DIST): Add strdup.h.
65948         * modules/strftime (EXTRA_DIST): Add strftime.h.
65949         * modules/strndup (EXTRA_DIST): Add strndup.h.
65950         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65951         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65952         * modules/time_r (EXTRA_DIST): Add time_r.h.
65953         * modules/timespec (EXTRA_DIST): Add timespec.h.
65954         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65955         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65956         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65957         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65958         * modules/userspec (EXTRA_DIST): Add userspec.h.
65959         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65960         * modules/utimens (EXTRA_DIST): Add utimens.h.
65961         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65962         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65963         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65964         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65965         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65966         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65967         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65968         * modules/yesno (EXTRA_DIST): Add yesno.h.
65969
65970 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65971
65972         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65973
65974         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65975         * m4/dev-ino.m4, same-inode.m4: Remove.
65976
65977         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65978         * m4/acl.m4 (AC_FUNC_ACL):
65979         * m4/backupfile.m4 (gl_BACKUPFILE):
65980         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65981         * m4/canon-host.m4 (gl_CANON_HOST):
65982         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65983         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65984         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65985         * m4/cloexec.m4 (gl_CLOEXEC):
65986         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65987         * m4/closeout.m4 (gl_CLOSEOUT):
65988         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65989         * m4/dirname.m4 (gl_DIRNAME):
65990         * m4/exclude.m4 (gl_EXCLUDE):
65991         * m4/exitfail.m4 (gl_EXITFAIL):
65992         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65993         * m4/file-type.m4 (gl_FILE_TYPE):
65994         * m4/filemode.m4 (gl_FILEMODE):
65995         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65996         * m4/fpending.m4 (gl_FUNC_FPENDING):
65997         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65998         * m4/fts.m4 (gl_FUNC_FTS):
65999         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
66000         * m4/getdate.m4 (gl_GETDATE):
66001         * m4/gethrxtime.m4 (gl_GETHRXTIME):
66002         * m4/getpagesize.m4 (gl_GETPAGESIZE):
66003         * m4/getpass.m4 (gl_FUNC_GETPASS):
66004         * m4/gettime.m4 (gl_GETTIME):
66005         * m4/getugroups.m4 (gl_GETUGROUPS):
66006         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
66007         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
66008         * m4/hard-locale.m4 (gl_HARD_LOCALE):
66009         * m4/hash.m4 (gl_HASH):
66010         * m4/idcache.m4 (gl_IDCACHE):
66011         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
66012         * m4/lchown.m4 (gl_FUNC_LCHOWN):
66013         * m4/long-options.m4 (gl_LONG_OPTIONS):
66014         * m4/lstat.m4 (gl_FUNC_LSTAT):
66015         * m4/md5.m4 (gl_MD5):
66016         * m4/memcasecmp.m4 (gl_MEMCASECMP):
66017         * m4/memcoll.m4 (gl_MEMCOLL):
66018         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
66019         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
66020         * m4/memxor.m4 (gl_MEMXOR):
66021         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
66022         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
66023         * m4/modechange.m4 (gl_MODECHANGE):
66024         * m4/mountlist.m4 (gl_MOUNTLIST):
66025         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66026         * m4/openat.m4 (gl_FUNC_OPENAT):
66027         * m4/pathmax.m4 (gl_PATHMAX):
66028         * m4/physmem.m4 (gl_PHYSMEM):
66029         * m4/posixtm.m4 (gl_POSIXTM):
66030         * m4/posixver.m4 (gl_POSIXVER):
66031         * m4/quote.m4 (gl_QUOTE):
66032         * m4/quotearg.m4 (gl_QUOTEARG):
66033         * m4/readtokens.m4 (gl_READTOKENS):
66034         * m4/readutmp.m4 (gl_READUTMP):
66035         * m4/regex.m4 (gl_REGEX):
66036         * m4/safe-read.m4 (gl_SAFE_READ):
66037         * m4/safe-write.m4 (gl_SAFE_WRITE):
66038         * m4/same.m4 (gl_SAME):
66039         * m4/save-cwd.m4 (gl_SAVE_CWD):
66040         * m4/savedir.m4 (gl_SAVEDIR):
66041         * m4/settime.m4 (gl_SETTIME):
66042         * m4/sha1.m4 (gl_SHA1):
66043         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
66044         * m4/stat-macros.m4 (gl_STAT_MACROS):
66045         * m4/stat-time.m4 (gl_STAT_TIME):
66046         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
66047         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
66048         * m4/strdup.m4 (gl_FUNC_STRDUP):
66049         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
66050         * m4/strndup.m4 (gl_FUNC_STRNDUP):
66051         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
66052         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
66053         * m4/time_r.m4 (gl_TIME_R):
66054         * m4/timespec.m4 (gl_TIMESPEC):
66055         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
66056         * m4/unlinkdir.m4 (gl_UNLINKDIR):
66057         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
66058         * m4/userspec.m4 (gl_USERSPEC):
66059         * m4/utimecmp.m4 (gl_UTIMECMP):
66060         * m4/utimens.m4 (gl_UTIMENS):
66061         * m4/xalloc.m4 (gl_XALLOC):
66062         * m4/xgetcwd.m4 (gl_XGETCWD):
66063         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
66064         * m4/xreadlink.m4 (gl_XREADLINK):
66065         * m4/xstrtod.m4 (gl_XSTRTOD):
66066         * m4/yesno.m4 (gl_YESNO):
66067         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66068         to get the necessary .h files and whatnot.
66069
66070 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
66071             Bruno Haible  <bruno@clisp.org>
66072
66073         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
66074         /bin/sh understanding of '!' conditional negation.
66075
66076 2006-08-21  Jim Meyering  <jim@meyering.net>
66077
66078         * modules/openat (Depends-on): Really alphabetize.
66079
66080         * modules/acl (Depends-on): Add error and quote.
66081
66082         * check-module (find_included_lib_files): Add at-func.c to the
66083         ok-to-include-more-than-once white list.
66084
66085         * modules/openat (Depends-on): Add lstat.  Alphabetize.
66086
66087 2006-08-21  Bruno Haible  <bruno@clisp.org>
66088
66089         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66090         Emit a pkgdata_DATA variable only if some snippets add contents to it.
66091         Reported by Martin Lambers <marlam@marlam.de>.
66092
66093 2006-08-21  Bruno Haible  <bruno@clisp.org>
66094
66095         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
66096         specify an installation location, don't emit a noinst_LIBRARIES or
66097         noinst_LTLIBRARIES assignment.
66098
66099 2006-08-21  Bruno Haible  <bruno@clisp.org>
66100
66101         BeOS portability.
66102         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
66103         BeOS has mbrtowc() but no <wctype.h>.
66104
66105 2006-08-21  Bruno Haible  <bruno@clisp.org>
66106
66107         BeOS portability.
66108         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
66109         exist.
66110
66111 2006-08-21  Bruno Haible  <bruno@clisp.org>
66112
66113         BeOS portability.
66114         * lib/mbchar.h: Include <wctype.h> only if it exists.
66115
66116 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66117
66118         Remove files that are no longer needed by their respective modules.
66119         * m4/obstack.m4: Remove.
66120         * m4/strerror_r.m4: Remove.
66121         * m4/uint32_t.m4: Remove.
66122         * m4/uintptr_t.m4: Remove.
66123         * m4/ullong_max.m4: Remove.
66124         * m4/xstrtoimax.m4: Remove.
66125         * m4/xstrtoumax.m4: Remove.
66126
66127         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
66128         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
66129         dependencies now capture this.
66130
66131         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
66132         Do not use AC_LIBSOURCES, since gnulib modules now do this.
66133         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
66134         * m4/human.m4 (gl_HUMAN): Likewise.
66135         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
66136         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
66137
66138         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
66139
66140         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
66141         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
66142         stdint.
66143         * m4/human.m4 (gl_HUMAN): Likewise.
66144         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
66145         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
66146         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66147         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66148         * m4/xstrtol (gl_XSTRTOL): Likewise.
66149
66150         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
66151         AC_TYPE_LONG_LONG_INT.
66152         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66153         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
66154         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
66155         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66156
66157         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
66158         on stdbool.
66159
66160         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
66161         (gl_PREREQ_XSTRTOUL): Remove.
66162
66163         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
66164
66165         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
66166         mode.
66167
66168 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66169
66170         Add and change modules to make it easier for coreutils to use
66171         gnulib-tool.
66172         * modules/backupfile (Files): Remove m4/d-ino.m4.
66173         (Depends-on): Add d-ino.
66174         * modules/cycle-check (Depends-on): Add stdint.
66175         (lib_SOURCES): Add cycle-check.h.
66176         * modules/d-ino: New module.
66177         * modules/d-type: New module.
66178         * modules/error (Files): Remove m4/strerror_r.m4.
66179         * modules/filemode (Files): Add m4/st_dm_mode.m4.
66180         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
66181         m4/inttypes_h.m4, m4/uintmax_t.m4.
66182         (Depends-on): Add stdint.
66183         (lib_SOURCES): Add fsusage.h.
66184         * modules/getcwd (Files): Remove d-ino.m4.
66185         (Depends-on): Add d-ino.
66186         * modules/getndelim2 (Depends-on): Add stdint.
66187         * modules/glob (Files): Remove m4/d-type.m4.
66188         (Depends-on): Add d-type.
66189         * modules/host-os: New module.
66190         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
66191         m4/inttypes_h.m4, m4/uintmax_t.m4.
66192         * Depends-on: Add stdint.
66193         (lib_SOURCES): Add human.h.
66194         * modules/inttostr (Files): Remove m4/intmax_t.m4,
66195         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
66196         m4/uintmax_t.m4, m4/ulonglong.m4.
66197         (Depends-on): Add stdint.
66198         (EXTRA_DIST): Add inttostr.h.
66199         * modules/lchmod: New module.
66200         * modules/link-follow: New module.
66201         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
66202         (Depends-on): Add lchmod.
66203         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
66204         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
66205         (Depends-on): Add stdint.
66206         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
66207         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
66208         (Depends-on): Add stdint.
66209         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
66210         * modules/perl: New module.
66211         * modules/regex (Depends-on): Add stdint.
66212         * modules/rmdir-errno: New module.
66213         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66214         m4/intmax_t.m4.
66215         (Depends-on): Add stdint.
66216         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66217         m4/uintmax_t.m4.
66218         (Depends-on): Add stdint.
66219         * modules/unlink-busy: New module.
66220         * modules/utimecmp (Depends-on): Add stdint.
66221         * modules/uptime: New module.
66222         * modules/winsz-ioctl: New module.
66223         * modules/winsz-termios: New module.
66224         * modules/xnanosleep (Depends-on): Add nanosleep.
66225         * modules/ullong_max: Remove.
66226         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
66227         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
66228         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
66229         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
66230         (Depends-on): Add inttypes.
66231         (lib_SOURCES): Add xstrtol.h.
66232         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
66233         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
66234         * MODULES.html.sh: Move 'assert' into the assert section.
66235         Move 'dummy' into the linking section.
66236         Remove ullong_max.
66237         Add section for compatibility checks for POSIX:2001 functions,
66238         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
66239         winsz-ioctl, and winsz-termios into it.
66240         Add lchmod.
66241         Add top-level Misc section and put host-os, perl, and uptime
66242         into it.
66243
66244 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66245
66246         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
66247         now assume the stdint module.  Do not include inttypes.h.
66248         * lib/fsusage.h: Likewise.
66249         * lib/getndelim2.c: Likewise.
66250         * lib/human.h: Likewise.
66251         * lib/inttostr.h: Likewise.
66252         * lib/obstack.c: Likewise.
66253         * lib/regex_internal.h: Likewise.
66254         * lib/tempname.c: Likewise.
66255         * lib/utimecmp.c: Likewise.
66256         * lib/xstrtol.h: Likewise.
66257
66258         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
66259
66260         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
66261         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
66262         * lib/xtime.h: Likewise.
66263
66264 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66265
66266         * modules/openat (Files): Add lib/fchmodat.c.
66267         Fixes problem reported by Jay Youngman.
66268
66269 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66270
66271         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
66272         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
66273
66274 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
66275             Bruno Haible  <bruno@clisp.org>
66276
66277         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
66278         and is a script that invokes bison. Tighten the code. Add comments.
66279
66280 2006-08-18  Jim Meyering  <jim@meyering.net>
66281
66282         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
66283         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
66284         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
66285         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
66286
66287 2006-08-18  Bruno Haible  <bruno@clisp.org>
66288
66289         * modules/bison-i18n: New file.
66290         * MODULES.html.sh (Internationalization functions): Add it.
66291
66292 2006-08-18  Bruno Haible  <bruno@clisp.org>
66293
66294         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
66295         sys/statvfs.h. When getmntinfo was found, check its declaration and
66296         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
66297
66298 2006-08-18  Bruno Haible  <bruno@clisp.org>
66299
66300         * m4/bison-i18n.m4: New file, from bison.
66301
66302 2006-08-18  Bruno Haible  <bruno@clisp.org>
66303
66304         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
66305         (ME_DUMMY): Treat "kernfs" as a dummy.
66306         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
66307
66308 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66309
66310         Update from coreutils.
66311
66312         2006-08-15  Jim Meyering  <jim@meyering.net>
66313
66314         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
66315
66316         2006-01-17  Jim Meyering  <jim@meyering.net>
66317
66318         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
66319
66320         2006-01-11  Jim Meyering  <jim@meyering.net>
66321
66322         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
66323         Check for the lchmod function.
66324
66325 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66326
66327         Update from coreutils.
66328
66329         * lib/__fpending.h: Add copyright notice.
66330         * lib/fprintftime.h: Likewise.
66331         * lib/savedir.c: Use (C) in copyright notice.
66332         * lib/savedir.h: Likewise.
66333
66334         2006-08-15  Jim Meyering  <jim@meyering.net>
66335
66336         * lib/at-func.c: New file, with the logic of all emulated at-functions.
66337         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
66338         in support of the EXPECTED_ERRNO macro.
66339         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
66340         definitions.  Instead, define the appropriate symbols and include
66341         "at-func.c".
66342         * lib/mkdirat.c (mkdirat): Likewise.
66343         * lib/fchmodat.c (fchmodat): Likewise.
66344         (ENOSYS): Remove definition.
66345         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
66346         it.  Don't include "unistd--.h" -- it wasn't ever used.
66347
66348         2006-01-17  Jim Meyering  <jim@meyering.net>
66349
66350         Rewrite fts.c not to change the current working directory,
66351         by using openat, fstatat, fdopendir, etc..
66352
66353         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
66354         (HAVE_OPENAT_SUPPORT): Define.
66355         [_LIBC] (fchdir): Don't undef or define; no longer used.
66356         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
66357         Now, this `function' always succeeds, and consumes its file descriptor
66358         parameter -- so callers must not close such FDs.  Update callers.
66359         (diropen_fd, opendirat, cwd_advance_fd): New functions.
66360         (diropen): Add parameter, SP.  Adjust all callers.
66361         Implement using diropen_fd, rather than open.
66362         (fts_open): Initialize new member, fts_cwd_fd.
66363         Remove fts_rft-setting code.
66364         (fts_close): Close fts_cwd_fd, if necessary.
66365         (__opendir2): Define in terms of opendir or opendirat,
66366         depending on whether the FST_NOCHDIR flag is set.
66367         (fts_build): Since fts_safe_changedir consumes its FD, and since
66368         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
66369         and close the dup'd file descriptor upon failure.
66370         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
66371         (fts_safe_changedir): Tweak semantics to reflect that this function
66372         now calls cwd_advance_fd and hence consumes its FD argument.
66373         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
66374         [struct FTS] (fts_rft): Remove now-unused member.
66375         [struct FTS] (fts_cycle.state): Improve comment.
66376
66377         * lib/openat.c (openat_needs_fchdir): New function.
66378         * lib/openat.h (openat_needs_fchdir): Declare it.
66379
66380 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66381
66382         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
66383         Problem and fix reported by Pádraig Brady in
66384         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
66385
66386 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66387
66388         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
66389
66390 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66391
66392         * lib/memcoll.c (memcoll): Optimize for the common case where the
66393         arguments are bytewise equal.
66394
66395 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66396
66397         * doc/regexprops-generic.texi: Add a copyright notice.
66398
66399 2006-08-15  Bruno Haible  <bruno@clisp.org>
66400
66401         * modules/tmpdir (License): Change to LGPL.
66402
66403 2006-08-15  Bruno Haible  <bruno@clisp.org>
66404
66405         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
66406         module.
66407
66408 2006-08-14  Simon Josefsson  <jas@extundo.com>
66409
66410         * config/srclist.txt: Add gnupload.
66411
66412 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66413
66414         Change copyright notice from LGPL 2 to GPL 2, since that's the
66415         standard form used in the gnulib repository.
66416         * tests/test-lock.c: Likewise.
66417         * tests/test-stdint.c: Likewise.
66418         * tests/test-tls.c: Likewise.
66419
66420         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
66421         prelude-manager.  User shorter URLs for GNU projects, without '?'.
66422         Add copyright notice.
66423
66424         * check-module: Add copyright notice.  Output a copyright
66425         notice if "--version" is specified.
66426         * modules/COPYING: New file.
66427         * tests/test-getaddrinfo.c: Add copyright notice.
66428         * tests/test-verify.c: Likewise.
66429
66430 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66431
66432         Change copyright notice from LGPL 2 to GPL 2, since that's the
66433         standard form used in the gnulib repository.
66434         * lib/lock.c: LGPL -> GPL.
66435         * lib/lock.h: Likewise.
66436         * lib/strnlen1.c: Likewise.
66437         * lib/strnlen1.h: Likewise.
66438         * lib/tls.c: Likewise.
66439         * lib/tls.h: Likewise.
66440         * lib/tmpdir.c: Likewise.
66441
66442         * lib/TODO: Remove; this belongs only in coreutils.
66443
66444 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66445
66446         Add copyright notices to long-enough files that lack them, since
66447         otherwise the files aren't clearly free.  Use the same notice that
66448         getdate.texi already uses.
66449         * doc/alloca-opt.texi: Add copyright notice.
66450         * doc/alloca.texi: Likewise.
66451         * doc/ctime.texi: Likewise.
66452         * doc/functions.texi: Likewise.
66453         * doc/gcd.texi: Likewise.
66454         * doc/gnulib-tool.texi: Likewise.
66455         * doc/inet_ntoa.texi: Likewise.
66456         * doc/visibility.texi: Likewise.
66457
66458         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
66459         * doc/quote.texi: Add copyright notice.
66460
66461         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
66462         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
66463         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
66464         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
66465         is now obsolete, and give a pointer to the Sun list.
66466         Add copyright notice.
66467
66468 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66469
66470         * config/srclistvars.sh: Add copyright notice.
66471
66472 2006-08-14  Eric Blake  <ebb9@byu.net>
66473
66474         Import the following change from libc:
66475
66476         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
66477
66478         Upstream bug 2997.
66479         * lib/misc/error.c: Add space between program name and message if file
66480         name is missing.
66481
66482 2006-08-12  Karl Berry  <karl@gnu.org>
66483
66484         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
66485         remove, these originate in gnulib now.
66486
66487 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66488
66489         * doc/Makefile (standards.info standards.html standards.dvi):
66490         Also depend on make-stds.texi.
66491
66492 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66493
66494         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
66495         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
66496
66497         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
66498         in wchar_t.  Problem reported by Eric Blake.
66499
66500         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
66501         LEN is smaller than SIZE.  Suggested by Bruno Haible.
66502         Also, help the compiler to keep LEN in a register.
66503
66504 2006-08-11  Eric Blake  <ebb9@byu.net>
66505
66506         * users.txt: Sort.  Add tar.
66507
66508 2006-08-11  Bruno Haible  <bruno@clisp.org>
66509
66510         * users.txt: New file.
66511
66512 2006-08-11  Bruno Haible  <bruno@clisp.org>
66513
66514         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
66515         before <wchar.h>. Needed for OSF/1 and BSD/OS.
66516
66517 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66518
66519         * modules/snprintf (Depends-on): Remove minmax.
66520         (Maintainer): Add self and Bruno.
66521
66522 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66523
66524         * lib/.cppi-disable: Add snprintf.h, socket_.h.
66525         * lib/snprintf.c: Include <errno.h> and <limits.h>.
66526         (EOVERFLOW): Define if the system does not.
66527         Do not include "minmax.h"; it wasn't used.
66528         (snprintf): Don't assume size_t promotes to an unsigned type.
66529         Fix bug when generated string was too long for the buffer: the
66530         buffer's contents are supposed to be the initial prefix of the
66531         output.  Don't assume vasnprintf returns EOVERFLOW if the size
66532         exceeds INT_MAX; do the check ourselves.
66533
66534         Import the following changes from libc:
66535
66536         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
66537
66538         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
66539         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
66540         set wc to the byte which couldn't be converted.
66541         (re_string_reconstruct): Don't clear valid_raw_len before calling
66542         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
66543         tip_context using re_string_context_at.
66544
66545         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
66546
66547         * lib/posix/regex.h: g++ still cannot handled [restrict].
66548
66549         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
66550
66551         * lib/posix/regex.h: Remove special handling for VMS.
66552
66553 2006-08-10  Jim Meyering  <jim@meyering.net>
66554
66555         * modules/same-inode: New module.
66556         * modules/dev-ino: New module.
66557         * modules/cycle-check: Depend on these modules, rather than simply
66558         including their .h files.
66559         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
66560         required via m4/cycle-check.m4.
66561         * modules/same: Depend on new same-inode module, rather than
66562         including same-inode.h.
66563         * modules/chdir-safer: New file.
66564
66565         * modules/chown (Depends-on): Add stat-macros.
66566
66567 2006-08-10  Jim Meyering  <jim@meyering.net>
66568
66569         * m4/cycle-check.m4: New file.
66570         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
66571         * m4/dev-ino.m4, m4/same-inode.m4: New files.
66572
66573 2006-08-10  Eric Blake  <ebb9@byu.net>
66574
66575         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
66576         in from original proposal.
66577
66578 2006-08-10  Eric Blake  <ebb9@byu.net>
66579         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66580
66581         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
66582         namespace.
66583
66584 2006-08-10  Bruno Haible  <bruno@clisp.org>
66585
66586         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
66587         as well.
66588
66589 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66590
66591         Sync from coreutils.
66592
66593         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
66594
66595         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
66596         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
66597
66598 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66599
66600         * modules/restrict: Remove; no longer needed now that we assume
66601         Autoconf 2.59 or later.
66602         * MODULES.html.sh: Remove 'restrict'.
66603         * modules/argp (Depends-on): Remove 'restrict'.
66604         * modules/base64 (Depends-on): Likewise.
66605         * modules/gc (Depends-on): Likewise.
66606         * modules/getaddrinfo (Depends-on): Likewise.
66607         * modules/glob (Depends-on): Likewise.
66608         * modules/inet_ntop (Depends-on): Likewise.
66609         * modules/inet_pton (Depends-on): Likewise.
66610         * modules/memxor (Depends-on): Likewise.
66611         * modules/regex (Depends-on): Likewise.
66612         * modules/strtok_r (Depends-on): Likewise.
66613         * modules/time_r (Depends-on): Likewise.
66614
66615 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66616
66617         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
66618         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
66619         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66620         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
66621         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
66622         * m4/memxor.m4 (gl_MEMXOR): Likewise.
66623         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
66624         gl_C_RESTRICT replaced by AC_C_RESTRICT.
66625
66626         Merge from coreutils.
66627         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
66628         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
66629         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66630         * m4/time_r.m4 (gl_TIME_R): Likewise.
66631
66632 2006-08-09  Karl Berry  <karl@gnu.org>
66633
66634         * config/srclist.txt: no more gettext-tools, per Bruno.
66635
66636 2006-08-08  Eric Blake  <ebb9@byu.net>
66637
66638         * modules/verror: New module.
66639         * MODULES.html.sh: Document it.
66640
66641 2006-08-08  Eric Blake  <ebb9@byu.net>
66642
66643         * lib/verror.h, lib/verror.c: New files.
66644
66645 2006-08-08  Eric Blake  <ebb9@byu.net>
66646
66647         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
66648         verror_at_line output complies with GNU Coding Standards even when
66649         file is NULL.
66650
66651 2006-08-07  Bruno Haible  <bruno@clisp.org>
66652
66653         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
66654         versions of AIX.
66655         Reported by Ralf Wildenhues.
66656
66657 2006-08-07  Bruno Haible  <bruno@clisp.org>
66658
66659         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
66660         in an AC_DEFUN. Needed so that the autoconf snippets can use
66661         AC_REQUIRE.
66662
66663 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66664
66665         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66666         Initialize pkgdata_DATA.
66667         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
66668         overriding it.
66669
66670 2006-08-06  Eric Blake  <ebb9@byu.net>
66671
66672         * lib/error.h: Fold in some upstream changes from glibc.
66673         * lib/error.c: Likewise.
66674
66675 2006-08-04  Bruno Haible  <bruno@clisp.org>
66676
66677         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66678         Make the mostlyclean-local rule depend on mostlyclean-generic.
66679         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
66680
66681 2006-07-31  Bruno Haible  <bruno@clisp.org>
66682
66683         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
66684         <stdlib.h>, <string.h>.
66685
66686 2006-07-30  Bruno Haible  <bruno@clisp.org>
66687
66688         * modules/readlink (License): Change to LGPL.
66689
66690 2006-07-30  Bruno Haible  <bruno@clisp.org>
66691
66692         * modules/javaversion (Makefile.am): Distribute javaversion.java and
66693         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
66694         set PKGDATADIR to point to it.
66695
66696 2006-07-30  Bruno Haible  <bruno@clisp.org>
66697
66698         * modules/csharpexec (configure.ac): Comment out macro invocation.
66699         * modules/javaexec (configure.ac): Likewise.
66700         * modules/javacomp-script (configure.ac): Likewise.
66701
66702         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
66703
66704 2006-07-30  Bruno Haible  <bruno@clisp.org>
66705
66706         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
66707         linked-list.
66708
66709 2006-07-30  Bruno Haible  <bruno@clisp.org>
66710
66711         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
66712
66713 2006-07-30  Bruno Haible  <bruno@clisp.org>
66714
66715         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66716         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
66717         get removed.
66718
66719 2006-07-29  Bruno Haible  <bruno@clisp.org>
66720
66721         Make it possible for gnulib-tool to work with locally modified or
66722         augmented gnulib repositories.
66723         * gnulib-tool (func_usage): Document --local-dir option.
66724         (local_gnulib_dir): New variable.
66725         Handle --local-dir option.
66726         (func_lookup_file): New function.
66727         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
66728         (func_get_description, func_get_filelist, func_get_description,
66729         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
66730         func_get_automake_snippet, func_get_include_directive,
66731         func_get_license, func_get_maintainer): Use func_lookup_file.
66732         (func_import, func_create_testdir): Use func_lookup_file.
66733
66734 2006-07-29  Bruno Haible  <bruno@clisp.org>
66735
66736         * modules/setenv (Depends-on): Add unistd.
66737
66738 2006-07-29  Bruno Haible  <bruno@clisp.org>
66739
66740         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
66741
66742 2006-07-29  Bruno Haible  <bruno@clisp.org>
66743
66744         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
66745
66746 2006-07-29  Bruno Haible  <bruno@clisp.org>
66747
66748         * gnulib-tool (import, update): If there is no Makefile.am, look at
66749         aclocal.m4, instead of bailing out.
66750
66751 2006-07-29  Bruno Haible  <bruno@clisp.org>
66752
66753         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
66754         Categorize the options by when they are useful.
66755
66756 2006-07-29  Bruno Haible  <bruno@clisp.org>
66757
66758         * gnulib-tool (func_usage): Document option --no-libtool.
66759         Handle option --no-libtool.
66760         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
66761         for changed semantics of $libtool variable.
66762         (func_import): Likewise. If libtool is not used, show this through
66763         an option --no-libtool.
66764         (func_create_testdir): Update.
66765
66766 2006-07-29  Bruno Haible  <bruno@clisp.org>
66767
66768         * gnulib-tool (func_import): Extend error message about missing
66769         --doc-base.
66770
66771 2006-07-29  Bruno Haible  <bruno@clisp.org>
66772
66773         * gnulib-tool (func_import): Don't create the $docbase directory if
66774         there is no file to store there.
66775
66776 2006-07-29  Bruno Haible  <bruno@clisp.org>
66777
66778         * gnulib-tool (autoconf_minversion): If a --dir option is given and
66779         relevant, look for configure.ac there, not in the current directory.
66780         Also use a simple search for AC_PREREQ, not "autoconf --trace".
66781
66782 2006-07-29  Bruno Haible  <bruno@clisp.org>
66783
66784         * gnulib-tool (SORT): New variable.
66785         (func_usage): Undocument --assume-autoconf option.
66786         Remove --assume-autoconf option handling.
66787         (autoconf_minversion): Determine from the contents of configure.ac.
66788         (func_import): Remove autoconf_minversion handling.
66789         Suggested by Eric Blake.
66790
66791 2006-07-29  Bruno Haible  <bruno@clisp.org>
66792
66793         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
66794
66795 2006-07-29  Bruno Haible  <bruno@clisp.org>
66796
66797         * config/srclist.txt (*setenv.[ch]): Remove rules.
66798
66799 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66800
66801         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
66802
66803 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66804
66805         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
66806         arpa/inet.h.
66807
66808 2006-07-28  Simon Josefsson  <jas@extundo.com>
66809
66810         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
66811         * modules/inet_pton (Depends-on): Likewise.
66812
66813 2006-07-28  Simon Josefsson  <jas@extundo.com>
66814
66815         * m4/netinet_in_h.m4: New file.
66816
66817 2006-07-28  Simon Josefsson  <jas@extundo.com>
66818
66819         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
66820         #include's.
66821
66822 2006-07-28  Simon Josefsson  <jas@extundo.com>
66823
66824         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
66825         #include's.
66826
66827 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
66828
66829         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
66830         setgid on directories only if they set these bits.
66831         * lib/modechange.h: Remove obsolete comment about masks.
66832
66833 2006-07-28  Eric Blake  <ebb9@byu.net>
66834
66835         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
66836         macro expansion.
66837
66838 2006-07-28  Bruno Haible  <bruno@clisp.org>
66839
66840         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
66841
66842 2006-07-28  Bruno Haible  <bruno@clisp.org>
66843
66844         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
66845
66846 2006-07-28  Bruno Haible  <bruno@clisp.org>
66847
66848         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
66849         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
66850         Define fallbacks.
66851         Avoids link error on FreeBSD 4.x.
66852         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66853
66854         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
66855         encoding.
66856         * lib/mbswidth.c (iswcntrl): Likewise.
66857
66858 2006-07-27  Bruno Haible  <bruno@clisp.org>
66859
66860         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
66861         test.
66862
66863 2006-07-27  Bruno Haible  <bruno@clisp.org>
66864
66865         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
66866         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
66867         defined.
66868
66869 2006-07-26  Eric Blake  <ebb9@byu.net>
66870
66871         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
66872
66873 2006-07-26  Eric Blake  <ebb9@byu.net>
66874
66875         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
66876         like mingw that lack mkstemp.
66877         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
66878         avoid compilation warning on mingw.
66879
66880 2006-07-26  Bruno Haible  <bruno@clisp.org>
66881
66882         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
66883         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
66884         INT_FAST*_MIN, INTPTR_MIN.
66885
66886 2006-07-25  Bruno Haible  <bruno@clisp.org>
66887
66888         * modules/version-etc (Depends-on): Add stdarg.
66889
66890 2006-07-25  Bruno Haible  <bruno@clisp.org>
66891
66892         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
66893         complex commands.
66894
66895 2006-07-25  Bruno Haible  <bruno@clisp.org>
66896
66897         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
66898         defined in <stdarg.h> or config.h.
66899
66900 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66901
66902         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66903         (gl_STDIO_SAFER): Remove.
66904
66905 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66906
66907         * MODULES.html.sh (File stream based Input/Output):
66908         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66909         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66910         * modules/fopen-safer, modules/tmpfile-safer: New files.
66911         * modules/stdio-safer: Remove.
66912
66913 2006-07-24  Bruno Haible  <bruno@clisp.org>
66914
66915         * modules/tmpdir: New file.
66916         * MODULES.html.sh (File system functions): Add it.
66917
66918 2006-07-24  Bruno Haible  <bruno@clisp.org>
66919
66920         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66921         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66922
66923 2006-07-24  Bruno Haible  <bruno@clisp.org>
66924
66925         * modules/clean-temp: New file.
66926
66927 2006-07-24  Bruno Haible  <bruno@clisp.org>
66928
66929         * m4/tmpdir.m4: New file, from GNU gettext.
66930
66931 2006-07-24  Bruno Haible  <bruno@clisp.org>
66932
66933         * lib/tmpdir.h: New file, from GNU gettext.
66934         * lib/tmpdir.c: New file, from GNU gettext.
66935
66936 2006-07-24  Bruno Haible  <bruno@clisp.org>
66937
66938         * lib/clean-temp.h: New file, from GNU gettext.
66939         * lib/clean-temp.c: New file, from GNU gettext.
66940
66941 2006-07-23  Eric Blake  <ebb9@byu.net>
66942
66943         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66944         (Depends-on): Add binary-io.
66945
66946 2006-07-23  Eric Blake  <ebb9@byu.net>
66947
66948         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66949
66950 2006-07-23  Eric Blake  <ebb9@byu.net>
66951
66952         * lib/tmpfile-safer.c: New file.
66953         * lib/stdio-safer.h (fopen_safer): Add prototype.
66954         * lib/stdio--.h (tmpfile): Make safer.
66955
66956 2006-07-23  Bruno Haible  <bruno@clisp.org>
66957
66958         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66959         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66960         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66961         gl_linked_remove_at): Use it.
66962
66963 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66964         and Simon Josefsson <jas@extundo.com>
66965
66966         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66967
66968         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66969
66970 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66971
66972         * modules/close-stream: New file.
66973         * modules/closeout (Description): Make it clear that it exits
66974         with a diagnostic on error.
66975         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66976         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66977
66978 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66979
66980         * m4/close-stream.m4: New file.
66981
66982 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66983
66984         * lib/close-stream.c, lib/close-stream.h: New files.
66985
66986 2006-07-22  Bruno Haible  <bruno@clisp.org>
66987
66988         Merge from GNU gettext 0.15.
66989
66990         2006-05-01  Bruno Haible  <bruno@clisp.org>
66991
66992                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66993
66994         2006-07-22  Bruno Haible  <bruno@clisp.org>
66995
66996                 * modules/javaversion: New file.
66997                 * MODULES.html.sh (Java): Add javaversion.
66998
66999         2006-03-12  Bruno Haible  <bruno@clisp.org>
67000
67001                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
67002
67003         2005-12-04  Bruno Haible  <bruno@clisp.org>
67004
67005                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
67006                 (untested).
67007
67008         2006-06-21  Bruno Haible  <bruno@clisp.org>
67009
67010                 Avoid warnings from recent versions of mcs.
67011                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
67012                 -o, -L, -r any more. Use options documented since mcs-1.0
67013                 instead. Similarly for -g.
67014
67015         2005-12-04  Bruno Haible  <bruno@clisp.org>
67016
67017                 * build-aux/csharpcomp.sh.in: Suffix for resources is
67018                 .resources, not .resource.
67019
67020         2005-07-09  Bruno Haible  <bruno@clisp.org>
67021
67022                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
67023                 add a .dll suffix.
67024                 Reported by Mark Junker <mjscod@gmx.de>.
67025
67026         2006-07-22  Bruno Haible  <bruno@clisp.org>
67027
67028                 * modules/gettext: Upgrade to gettext-0.15.
67029                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
67030                 m4/visibility.m4.
67031                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
67032
67033 2006-07-22  Bruno Haible  <bruno@clisp.org>
67034
67035         Merge from GNU gettext 0.15.
67036
67037         2006-03-25  Bruno Haible  <bruno@clisp.org>
67038
67039                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
67040
67041         2006-07-21  Bruno Haible  <bruno@clisp.org>
67042
67043                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
67044                 "1.1".
67045
67046         2006-05-09  Bruno Haible  <bruno@clisp.org>
67047
67048                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
67049                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
67050                 for the conftestver execution.
67051
67052         2006-05-01  Bruno Haible  <bruno@clisp.org>
67053
67054                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
67055                 optional target-version argument. Verify that the compiler
67056                 groks source of the specified source-version, or add -source
67057                 option as necessary. Verify that the compiler produces
67058                 bytecode in the specified target-version, or add -target and
67059                 -source options as necessary. Make the result of the test
67060                 available as variable CONF_JAVAC. Also log error output in
67061                 config.log.
67062
67063         2006-03-11  Bruno Haible  <bruno@clisp.org>
67064
67065                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
67066
67067         2006-05-09  Bruno Haible  <bruno@clisp.org>
67068
67069                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
67070                 CLASSPATH_SEPARATOR to a semicolon.
67071
67072         2006-03-12  Bruno Haible  <bruno@clisp.org>
67073
67074                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
67075                 available as variable CONF_JAVA, for subsequent autoconf
67076                 tests. Also log error output in config.log.
67077
67078         2006-07-19  Bruno Haible  <bruno@clisp.org>
67079
67080                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
67081                 that getline works on glibc2 systems. Needed to avoid trouble
67082                 in relocatable.c.
67083                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
67084
67085         2005-12-04  Bruno Haible  <bruno@clisp.org>
67086
67087                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
67088                 launcher (untested).
67089
67090         2005-12-04  Bruno Haible  <bruno@clisp.org>
67091
67092                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
67093
67094         2006-07-22  Bruno Haible  <bruno@clisp.org>
67095
67096                 * gettext.m4: Update from GNU gettext-0.15.
67097                 * nls.m4: Likewise.
67098                 * po.m4: Likewise.
67099                 * inttypes-pri.m4: Likewise.
67100                 * inttypes-h.m4: Renamed from inttypes.m4.
67101                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
67102
67103 2006-07-22  Bruno Haible  <bruno@clisp.org>
67104
67105         Merge from GNU gettext 0.15.
67106
67107         2005-07-05  Bruno Haible  <bruno@clisp.org>
67108
67109                 * printf-args.c (printf_fetchargs): Work around broken
67110                 definition of wint_t on mingw.
67111
67112         2005-02-12  Bruno Haible  <bruno@clisp.org>
67113
67114                 * xallocsa.h: Add extern "C" for C++.
67115
67116         2006-05-17  Bruno Haible  <bruno@clisp.org>
67117
67118                 Cygwin portability.
67119                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
67120
67121         2006-04-30  Bruno Haible  <bruno@clisp.org>
67122
67123                 * progreloc.c: Include <mach-o/dyld.h> if available.
67124                 (find_executable): Use _NSGetExecutablePath when possible.
67125
67126         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67127
67128                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
67129                 function.
67130
67131         2005-12-29  Bruno Haible  <bruno@clisp.org>
67132
67133                 * progreloc.c (set_program_name_and_installdir): Fix
67134                 compilation error.
67135
67136         2005-12-04  Bruno Haible  <bruno@clisp.org>
67137
67138                 Cygwin portability.
67139                 * progreloc.c: Include <windows.h> also on Cygwin.
67140                 (find_executable): Add support for Cygwin.
67141                 (set_program_name_and_installdir): Handle also platforms with
67142                 nonempty EXEEXT.
67143
67144         2006-07-11  Bruno Haible  <bruno@clisp.org>
67145
67146                 * javacomp.c: Fix a comment.
67147                 Reported by Jim Meyering.
67148
67149         2006-04-30  Bruno Haible  <bruno@clisp.org>
67150
67151                 * javacomp.h (compile_java_class): Add source_version,
67152                 target_version arguments.
67153                 * javacomp.c: Rewritten to choose only a compiler that
67154                 respects the specified source_version and target_version.
67155
67156         2006-06-27  Bruno Haible  <bruno@clisp.org>
67157
67158                 Assume correct S_ISDIR macro.
67159                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
67160
67161         2006-07-22  Bruno Haible  <bruno@clisp.org>
67162
67163                 * javaversion.h: New file, from GNU gettext.
67164                 * javaversion.c: New file, from GNU gettext.
67165                 * javaversion.java: New file, from GNU gettext.
67166                 * javaversion.class: New file, from GNU gettext.
67167
67168         2006-05-17  Bruno Haible  <bruno@clisp.org>
67169
67170                 Cygwin portability.
67171                 * javaexec.c (execute_java_class): Test for jview program
67172                 also on Cygwin.
67173
67174         2006-04-09  Bruno Haible  <bruno@clisp.org>
67175
67176                 * fatal-signal.c: Don't include string.h.
67177                 (at_fatal_signal): Use a copying loop instead of memcpy.
67178
67179         2005-12-04  Bruno Haible  <bruno@clisp.org>
67180
67181                 * csharpexec.c: Add support for 'clix' launcher (untested).
67182                 (execute_csharp_using_sscli): New function.
67183                 (execute_csharp_program): Call it.
67184
67185         2006-06-21  Bruno Haible  <bruno@clisp.org>
67186
67187                 Avoid warnings from recent versions of mcs.
67188                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
67189                 -o, -L, -r any more. Use options documented since mcs-1.0
67190                 instead. Similarly for -g.
67191
67192         2005-07-09  Bruno Haible  <bruno@clisp.org>
67193
67194                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
67195                 add a .dll suffix.
67196                 Reported by Mark Junker <mjscod@gmx.de>.
67197
67198         2006-06-17  Bruno Haible  <bruno@clisp.org>
67199
67200                 * config.charset: Update for NetBSD 3.0.
67201
67202         2006-05-17  Bruno Haible  <bruno@clisp.org>
67203
67204                 Cygwin portability.
67205                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
67206
67207         2006-05-16  Bruno Haible  <bruno@clisp.org>
67208
67209                 * localcharset.c [CYGWIN]: Include <windows.h>.
67210                 (get_charset_aliases): For Cygwin, return the same CPxxx
67211                 aliases list as under WIN32.
67212                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
67213                 the environment variables. Fall back to GetACP().
67214
67215         2006-04-05  Bruno Haible  <bruno@clisp.org>
67216
67217                 * config.charset: Update Juan Manuel Guerrero's address.
67218
67219         2005-02-12  Bruno Haible  <bruno@clisp.org>
67220
67221                 * allocsa.h: Add extern "C" for C++.
67222
67223         2005-02-10  Bruno Haible  <bruno@clisp.org>
67224
67225                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
67226                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
67227
67228         2006-07-22  Bruno Haible  <bruno@clisp.org>
67229
67230                 * gettext.h: Update to GNU gettext-0.15.
67231
67232 2006-07-22  Bruno Haible  <bruno@clisp.org>
67233
67234         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
67235         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
67236         lib-prefix.m4, longdouble.m4, ssize_t.m4.
67237
67238 2006-07-21  Eric Blake  <ebb9@byu.net>
67239
67240         * modules/stdlib-safer: New file.
67241         * MODULES.html.sh (File stream based Input/Output): Add
67242         stdlib-safer.
67243
67244 2006-07-21  Eric Blake  <ebb9@byu.net>
67245
67246         * lib/stdlib-safer.h: New file from coreutils, required by
67247         stdlib--.h.
67248
67249 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
67250
67251         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
67252
67253 2006-07-20  Bruno Haible  <bruno@clisp.org>
67254
67255         * gnulib-tool: Recognize new option --assume-autoconf.
67256         (autoconf_minversion): New variable.
67257         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
67258
67259 2006-07-20  Bruno Haible  <bruno@clisp.org>
67260
67261         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
67262
67263 2006-07-19  Derek R. Price  <derek@ximbiot.com>
67264
67265         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
67266         Reindent and repaginate.
67267
67268 2006-07-19  Derek Price  <derek@ximbiot.com>
67269
67270         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
67271         Correct grammar.
67272
67273 2006-07-17  Bruno Haible  <bruno@clisp.org>
67274
67275         * modules/list: New file.
67276         * modules/array-list: New file.
67277         * modules/carray-list, modules/carray-list-tests: New files.
67278         * modules/linked-list, modules/linked-list-tests: New files.
67279         * modules/avltree-list, modules/avltree-list-tests: New files.
67280         * modules/rbtree-list, modules/rbtree-list-tests: New files.
67281         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
67282         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
67283         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
67284         * modules/oset: New file.
67285         * modules/array-oset: New file.
67286         * modules/avltree-oset, modules/avltree-oset-tests: New files.
67287         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
67288         * tests/test-carray_list.c: New file.
67289         * tests/test-linked_list.c: New file.
67290         * tests/test-avltree_list.c: New file.
67291         * tests/test-rbtree_list.c: New file.
67292         * tests/test-linkedhash_list.c: New file.
67293         * tests/test-avltreehash_list.c: New file.
67294         * tests/test-rbtreehash_list.c: New file.
67295         * tests/test-avltree_oset.c: New file.
67296         * tests/test-rbtree_oset.c: New file.
67297         * MODULES.html.sh (Container data structures): New section.
67298
67299 2006-07-17  Bruno Haible  <bruno@clisp.org>
67300
67301         * m4/gl_list.m4: New file.
67302
67303 2006-07-17  Bruno Haible  <bruno@clisp.org>
67304
67305         * lib/gl_list.h: New file.
67306         * lib/gl_list.c: New file.
67307         * lib/gl_array_list.h: New file.
67308         * lib/gl_array_list.c: New file.
67309         * lib/gl_carray_list.h: New file.
67310         * lib/gl_carray_list.c: New file.
67311         * lib/gl_linked_list.h: New file.
67312         * lib/gl_linked_list.c: New file.
67313         * lib/gl_anylinked_list1.h: New file.
67314         * lib/gl_anylinked_list2.h: New file.
67315         * lib/gl_avltree_list.h: New file.
67316         * lib/gl_avltree_list.c: New file.
67317         * lib/gl_anyavltree_list1.h: New file.
67318         * lib/gl_anyavltree_list2.h: New file.
67319         * lib/gl_rbtree_list.h: New file.
67320         * lib/gl_rbtree_list.c: New file.
67321         * lib/gl_anyrbtree_list1.h: New file.
67322         * lib/gl_anyrbtree_list2.h: New file.
67323         * lib/gl_anytree_list1.h: New file.
67324         * lib/gl_anytree_list2.h: New file.
67325         * lib/gl_linkedhash_list.h: New file.
67326         * lib/gl_linkedhash_list.c: New file.
67327         * lib/gl_anyhash_list1.h: New file.
67328         * lib/gl_anyhash_list2.h: New file.
67329         * lib/gl_avltreehash_list.h: New file.
67330         * lib/gl_avltreehash_list.c: New file.
67331         * lib/gl_rbtreehash_list.h: New file.
67332         * lib/gl_rbtreehash_list.c: New file.
67333         * lib/gl_anytreehash_list1.h: New file.
67334         * lib/gl_anytreehash_list2.h: New file.
67335
67336         * lib/gl_oset.h: New file.
67337         * lib/gl_oset.c: New file.
67338         * lib/gl_array_oset.h: New file.
67339         * lib/gl_array_oset.c: New file.
67340         * lib/gl_avltree_oset.h: New file.
67341         * lib/gl_avltree_oset.c: New file.
67342         * lib/gl_rbtree_oset.h: New file.
67343         * lib/gl_rbtree_oset.c: New file.
67344         * lib/gl_anytree_oset.h: New file.
67345
67346 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67347
67348         * m4/mkancesdirs.m4: New file.
67349         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
67350         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
67351         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
67352         it.
67353
67354 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67355
67356         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
67357         * lib/mkancesdirs.h: New files.
67358         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
67359         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
67360         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
67361         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
67362         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
67363         callers changed.  Revamp internals significantly, by not
67364         attempting to create directories that are temporarily more
67365         permissive than the final results.  Do not attempt to use
67366         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
67367         This removes some race conditions, fixes some bugs, and simplifies
67368         things.  Use new dirchownmod function to do owner and mode changes.
67369         * lib/mkdir-p.h: Likewise.
67370         * lib/modechange.c (octal_to_mode): New function.
67371         (struct mode_change): New member mentioned.
67372         (make_node_op_equals): New arg mentioned.  All callers changed.
67373         (mode_compile): Keep track of which mode bits the user has explicitly
67374         mentioned.
67375         (mode_adjust): New arg DIR, so that we implement the X op correctly.
67376         New arg PMODE_BITS, to keep track of which mode bits the user
67377         mentioned; it treats S_ISUID and S_ISGID speciall.
67378         All callers changed.
67379         * lib/modechange.h: Likewise.
67380
67381 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67382
67383         * MODULES.html.sh: Add mkancestors.
67384         * modules/mkancesdirs: New module.
67385         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
67386         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
67387         The chdir-safer and afs files are now orphans; I'll remove them
67388         unless someone speaks up.
67389         Add lib/dirchownmod.c, lib/dirchownmod.h.
67390         (Depends-on): Remove alloca, chown, save-cwd, dirname.
67391         Add lchown, mkancesdirs.
67392         (Maintainer): Add self.
67393
67394 2006-07-15  Karl Berry  <karl@gnu.org>
67395
67396         * gnulib-tool: help message wording/arrangement.
67397
67398 2006-07-14  Simon Josefsson  <jas@extundo.com>
67399
67400         * doc/gnulib.texi (Libtool and Windows): New section.
67401
67402 2006-07-12  Simon Josefsson  <jas@extundo.com>
67403
67404         * modules/gendocs (License): Fix license, approved by Karl.
67405
67406 2006-07-12  Eric Blake  <ebb9@byu.net>
67407
67408         * MODULES.html.sh: Add gendocs.
67409
67410 2006-07-11  Eric Blake  <ebb9@byu.net>
67411
67412         * modules/fdl: New module, to install doc/fdl.texi.
67413         * MODULES.html.sh: Add new section for documentation modules.
67414         * gnulib-tool: Avoid space-tab.
67415         (--doc-base): New option, to manage files from doc.
67416
67417 2006-07-11  Eric Blake  <ebb9@byu.net>
67418
67419         * m4/absolute-header.m4: Fix comments to match recent change.
67420
67421 2006-07-11  Eric Blake  <ebb9@byu.net>
67422
67423         * gnulib-tool: List --doc-base before --tests-base.
67424
67425 2006-07-11  Derek R. Price  <derek@ximbiot.com>
67426
67427         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
67428
67429 2006-07-11  Bruno Haible  <bruno@clisp.org>
67430
67431         * README: Mention where to put documentation.
67432
67433 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67434
67435         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
67436
67437 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67438
67439         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
67440         to stdint.m4.
67441
67442 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67443
67444         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
67445         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
67446         "no/such/file/stdint.h" when there is no such file, so that
67447         the resulting C code can be parsed by dodgy compilers.
67448         Problems reported by Bob Proulx.
67449
67450 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67451
67452         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
67453         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67454         macros into the GNU _D_EXACT_NAMLEN.
67455         * lib/savedir.c:  Likewise.
67456         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
67457
67458 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67459         and Paul Eggert  <eggert@cs.ucla.edu>
67460
67461         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
67462         * m4/savedir.m4:
67463         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67464         macros into the GNU _D_EXACT_NAMLEN.
67465
67466 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67467
67468         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
67469         around the absolute name, to work around a problem with the HP-UX
67470         11.23 native C compiler, reported by Bob Proulx.
67471
67472 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67473
67474         * doc/maintain.texi, make-stds.texi: Sync from
67475         <http://savannah.gnu.org/projects/gnustandards>.
67476
67477 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67478
67479         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
67480
67481 2006-07-09  Jim Meyering  <jim@meyering.net>
67482
67483         * m4/glob.m4: Remove a doubled word in a comment.
67484
67485 2006-07-09  Jim Meyering  <jim@meyering.net>
67486
67487         * lib/argp-pv.c: Remove a doubled word in a comment.
67488         * lib/check-version.c (check_version): Likewise.
67489         * lib/javacomp.c (compile_java_class): Likewise.
67490
67491 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67492
67493         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
67494         for the benefit of people using Autoconf 2.60.  If you want to
67495         support older Autoconf versions you can copy m4/onceonly_2_57.m4
67496         (or m4/onceonly.m4, if pre-2.57) manually.
67497
67498 2006-07-08  Jim Meyering  <jim@meyering.net>
67499
67500         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
67501         comment.
67502         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
67503         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
67504         comment.
67505
67506 2006-07-08  Jim Meyering  <jim@meyering.net>
67507
67508         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
67509
67510 2006-07-07  Simon Josefsson  <jas@extundo.com>
67511
67512         * tests/test-crc.c: Change expected crc value, the test vector
67513         were probably computed using the old broken crc.c?
67514
67515 2006-07-06  Simon Josefsson  <jas@extundo.com>
67516
67517         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
67518         now the canonical place for the M4 file).
67519
67520         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
67521         from the sys_socket dependency now.
67522
67523         * modules/inet_pton (Files): Ditto.
67524
67525         * modules/inet_ntop (Files): Ditto.
67526
67527 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67528
67529         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
67530         not gl_PREREQ_GETUSERSHELL.
67531
67532 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67533
67534         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
67535         with only one argument, for Autoconf 2.60.
67536         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
67537         expand to nothing, so add a shell command to avoid syntax error.
67538         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67539
67540 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67541
67542         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
67543
67544 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67545
67546         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
67547         no longer needed.  Check for isblank decl.
67548         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
67549         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
67550         of existence.
67551
67552 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67553
67554         * lib/getloadavg.c: Use __VMS, not VMS.
67555         * lib/getopt.c: Likewise.
67556         * lib/getpagesize.h: Likewise.
67557         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
67558         and probably does not work.
67559
67560 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67561
67562         * lib/.cppi-disable: Add wcwidth.
67563         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
67564         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
67565         (ISGRAPH): Remove.  All uses changed to isgraph.
67566         (FOLD) [!defined _LIBC]: Remove special case.
67567         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
67568         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
67569         HAVE_ISBLANK.
67570         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
67571         case.
67572
67573 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67574
67575         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
67576         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
67577         brackets.  Other minor changes to suppress some compiler
67578         warnings.
67579
67580 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67581         and Paul Eggert  <eggert@cs.ucla.edu>
67582
67583         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
67584         of invoking obsolescent AC_HEADER_DIRENT macro.
67585         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
67586         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
67587         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
67588         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
67589         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
67590         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67591         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
67592         * m4/readdir.m4: Remove; no longer needed.
67593
67594 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67595         and Paul Eggert  <eggert@cs.ucla.edu>
67596
67597         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
67598         Don't worry about this obsolete case any more.
67599         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
67600         directories.
67601         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
67602         worry about this obsolete case any more.
67603         * lib/fts.c: Likewise.
67604         * lib/getcwd.c: Likewise.
67605         * lib/glob.h: Likewise.
67606         * lib/savedir.c: Likewise.
67607
67608 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67609
67610         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
67611         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
67612         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
67613         needed.
67614         All uses removed.
67615         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67616         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67617         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
67618         needed.
67619         * m4/getdate.m4 (gl_GETDATE): Likewise.
67620         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67621         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67622         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67623         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67624         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67625         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67626         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
67627         needed.
67628
67629 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67630
67631         * lib/memcasecmp.c: Include <limits.h>.
67632         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
67633         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
67634         Don't assume isdigit succeeds only on '0' through '9'.
67635
67636 2006-07-05  Eric Blake  <ebb9@byu.net>
67637
67638         * modules/getaddrinfo (Depends-on): Add snprintf.
67639
67640 2006-07-05  Eric Blake  <ebb9@byu.net>
67641
67642         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
67643         to avoid 'header present but could not be compiled' on cygwin.
67644
67645 2006-07-05  Eric Blake  <ebb9@byu.net>
67646
67647         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
67648         missing from netdb.h.
67649         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
67650
67651 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67652
67653         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
67654         no longer needed.
67655         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
67656         * m4/getdate.m4 (gl_GETDATE): Likewise.
67657         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67658         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67659         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67660         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67661         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67662
67663 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67664
67665         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
67666         All uses of is_space replaced by isspace.
67667         * lib/exit.h: Don't talk about STDC_HEADERS.
67668         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
67669         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
67670         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
67671         replaced by isprint etc.
67672         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
67673         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67674         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
67675         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
67676         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
67677         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67678
67679 2006-07-05  Bruno Haible  <bruno@clisp.org>
67680
67681         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
67682         the function exists, before testing against AIX.
67683         Reported by Martin Lambers <marlam@marlam.de>.
67684
67685 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67686
67687         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
67688         From Mark D. Baushke.
67689
67690 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67691
67692         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
67693         to the absolute name, not just one, to bypass Sun C 5.8's
67694         "warning: #include of /usr/include/... may be non-portable".
67695
67696 2006-07-04  Eric Blake  <ebb9@byu.net>
67697
67698         * modules/dirname-tests: New test module.
67699         * tests/test-dirname.c: New file, replacing dirname.c
67700         TEST_DIRNAME section that was recently deleted.
67701
67702 2006-07-04  Bruno Haible  <bruno@clisp.org>
67703
67704         Assume ANSI C header files and <ctype.h> functions.
67705         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
67706         (mbsnwidth): Use isprint, iscntrl instead.
67707
67708 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67709
67710         Merge from coreutils.
67711         * MODULES.html.sh: Add xstrtold.
67712         * modules/xstrtold: New file.
67713         * modules/cycle-check (Files): Add lib/same-inode.h.
67714         * modules/dirname (Files): Add m4/double-slash-root.m4.
67715         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
67716         * modules/mkdir-p (Files): Add lib/same-inode.h.
67717         * modules/same (Files): Add lib/same-inode.h.
67718
67719 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67720
67721         * m4/absolute-header.m4: Renamed from full-header-path.m4.
67722         This is to keep the terminology clean; POSIX talks about
67723         "absolute pathnames", not "full pathnames", but the GNU
67724         Coding Standards say to use "path" for something else;
67725         so use "absolute" to keep both sides happy.
67726         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
67727         Set gl_absolute_header, not gl_full_header_path.
67728         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
67729         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
67730         All uses changed.
67731
67732         Merge from coreutils.
67733
67734         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67735
67736         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
67737         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
67738         want to require the building of c-strtod.o.
67739         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
67740         needs -lm directly.
67741         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
67742
67743         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67744
67745         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
67746         --as-needed option if available.  Problem reported by Albert Chin in
67747         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
67748         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
67749         cc merely issues a bunch of annoying warnings for --as-needed
67750         (this problem was reported by Bob Proulx).  Also, try linking with
67751         -lm to detect a bug in binutils 2.16 (this problem was reported
67752         by Ralf Wildenhues).
67753
67754         2006-06-18  Jim Meyering  <jim@meyering.net>
67755
67756         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
67757         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
67758         macro.
67759         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
67760         also check for glibc-2.4's abort-inducing bug.
67761
67762         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
67763         Low-probability clean-up should be to use rmdir to get rid of
67764         the just-created directory, not unlink.
67765
67766         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
67767         configure fail, and request a bug report to inform us about it.
67768         Add a comment that, barring reports to the contrary, in 2007 we'll
67769         assume ftruncate is universally available.
67770
67771         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67772
67773         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
67774
67775         2006-03-12  Jim Meyering  <jim@meyering.net>
67776
67777         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
67778         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
67779         * m4/same.m4 (gl_SAME): Likewise.
67780         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
67781
67782         2006-03-11  Eric Blake  <ebb9@byu.net>
67783
67784         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
67785         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
67786         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
67787         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
67788
67789 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67790
67791         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
67792         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
67793         reported by Mark D. Baushke, one in
67794         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
67795
67796         Merge from coreutils.
67797
67798         * lib/.cppi-disable: Add stdint_.h.
67799         * lib/.cvsignore: Add stdint.h.
67800
67801         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67802
67803         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
67804         both double and long double versions.
67805         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
67806         * lib/xstrtold.c: New file.
67807         * lib/xstrtod.h (xstrtold): New decl.
67808
67809         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67810
67811         * lib/filemode.c (setst): Remove.
67812         (strmode): Rewrite to avoid setst.  This makes the code shorter,
67813         (arguably) clearer, and the generated code is a bit smaller on my
67814         Debian GNU/Linux stable x86 host.
67815
67816         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67817
67818         * lib/filemode.c: Include "filemode.h" first, to test the interface.
67819         Assume that filemode.h includes sys/types.h and sys/stat.h.
67820         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
67821         (ftypelet): Reorder to put common cases first, for efficiency.
67822         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
67823         to do 'M'.
67824         (strmode): Renamed from mode_string, and now stores 12 bytes instead
67825         of 10, for compatibility with FreeBSD.  All callers changed.
67826         (filemodestring): Now stores 12 bytes instead of 10, and sets file
67827         types that can't be deduced solely from st_mode.  First arg is now a
67828         const pointer.
67829         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
67830         (strmode): Renamed from mode_string.
67831         (filemodestring): New decl.
67832         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
67833         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
67834         needed.
67835         (S_ISPORT, S_ISWHT): New macros, if not already defined.
67836
67837         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67838
67839         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
67840         fsusage.h now does that.  Include fsusage.h first, to test interface.
67841         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
67842         at most one method (the old code could have generated decls that
67843         didn't conform to C89, not that this was ever exercised).
67844         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
67845
67846         2006-03-19  Jim Meyering  <jim@meyering.net>
67847
67848         Work even in a chroot where d_ino values for entries in "/"
67849         don't match the stat.st_ino values for the same names.
67850         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
67851         number, iterate through all entries again, using lstat instead.
67852         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
67853         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
67854
67855         * lib/getcwd.c (__getcwd): Clarify a comment.
67856         Use memcpy in place of a call to strcpy.
67857
67858         2006-03-12  Jim Meyering  <jim@meyering.net>
67859
67860         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
67861         matches that of the current directory (which we're about to chdir ".."
67862         out of), then save the dev-ino of the parent, instead.
67863
67864         * lib/same-inode.h (SAME_INODE): New file/macro.
67865         * lib/chdir-safer.c (SAME_INODE): Remove definition.
67866         Include "same-inode.h", instead.
67867         * lib/same.c: Likewise.
67868         * lib/cycle-check.h: Include "same-inode.h".
67869         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
67870         * lib/cycle-check.c (SAME_INODE): Remove definition.
67871         * lib/root-dev-ino.h: Include "same-inode.h".
67872
67873         2006-03-11  Eric Blake  <ebb9@byu.net>
67874
67875         * lib/same.c (same_name): s/base_name/last_component/
67876         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
67877         * lib/filenamecat.c (file_name_concat): Likewise.
67878
67879         2006-03-11  Eric Blake  <ebb9@byu.net>,
67880                     Paul Eggert  <eggert@cs.ucla.edu>
67881
67882         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
67883         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
67884         drive prefix.
67885         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
67886         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
67887         (last_component): New method.
67888         * lib/dirname.c (dir_len): Determine when drive letters need a
67889         subsequent slash.  Preserve // when it is special.
67890         (dir_name): Don't append dot when drive letter is absolute.
67891         [TEST_DIRNAME]: Move into a full-blown gnulib test.
67892         * lib/basename.c (base_name): New semantics - malloc the result.
67893         Preserve // when it is special.  Preserve relative files that look
67894         like drive letters.
67895         (base_len): Preserve // when it is special.
67896         (last_component): New method, similar to old base_name semantics.
67897         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
67898         base_name.  Strip redundant slashes from ///.
67899
67900 2006-07-03  Jim Meyering  <jim@meyering.net>
67901
67902         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67903         macro is used before the first cycle_check call.
67904
67905 2006-07-03  Eric Blake  <ebb9@byu.net>
67906
67907         * modules/dirname (Depends-on): Add xstrndup.
67908
67909 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67910
67911         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67912         test cases, so that config.log is a bit easier to follow.
67913
67914 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67915
67916         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67917         both are 64 bits, since this seems to be the tradition, and this
67918         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67919         we ever run into a host that prefers long long to long in this
67920         case, we'll need another configure-time test.  Problem reported by
67921         Jim Meyering.
67922
67923 2006-07-02  Eric Blake  <ebb9@byu.net>
67924
67925         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67926
67927 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67928
67929         * modules/inttypes (Depends-on): No longer depends on stdint.
67930         * modules/stdint (Description): Say more about assumptions.
67931         Say that the fast types might differ.  Say macros are used.
67932         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67933         (Makefile.am): Revise list of substituted symbols to match
67934         new stdint.m4.
67935         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67936         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67937         * tests/test-stdint.c (verify_same_types)
67938         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67939         the code conforms to C99/C89.
67940         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67941         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67942
67943 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67944
67945         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67946         but fix a bug, by requiring at least 64 bits.
67947         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67948         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67949         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67950         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67951
67952         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67953         changes.  Make 2.59 a prerequisite.  Check and substitute for
67954         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67955         inttypes.h.  Do not use special include files; just use the
67956         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67957         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67958         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67959         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67960         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67961         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67962         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67963         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67964         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67965         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67966         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67967         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67968         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67969         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67970         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67971         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67972         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67973         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67974         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67975         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67976         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67977         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67978         not check for things that C99 does not require, e.g., int8_t.  If
67979         a test isn't needed unless <stdint.h> isn't working, and is
67980         unlikely to be needed for any other reason, then don't do it
67981         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67982         size_t, since we assume C89 freestanding at least.  Do not check
67983         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67984         the right thing even if the types are not defined.  Instead use:
67985         (gl_STDINT_TYPE_PROPERTIES): New macro.
67986         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67987         testing whether <sys/types.h> clashes, as Autoconf does this for
67988         us now.  All uses removed.
67989         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67990         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67991         (gl_CHECK_TYPE_SAME):
67992         Remove; no longer needed.
67993         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67994         exists, since we'll return 0 anyway in that case.
67995         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67996
67997 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67998
67999         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
68000         possible collision with system files.
68001         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
68002         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
68003         WCHAR_MIN and WCHAR_MAX in this case.
68004         (<stddef.h>): Do not include; no longer needed.
68005         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
68006         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
68007         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
68008         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
68009         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
68010         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
68011         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
68012         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
68013         !defined(__c99))]: Include in this case too, since it's harmless
68014         now.
68015         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
68016         dangerous to do so.
68017         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
68018         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
68019         (_STDINT_MIN, _STDINT_MAX): New macros.
68020         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
68021         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
68022         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
68023         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
68024         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
68025         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
68026         macros, not typedefs; this simplifies things quite a bit.
68027         Use long int for all types narrower than int64_t.
68028         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
68029         Define in terms of long long int or int64_t or long int,
68030         not int64_t or int32_t.  This saves some compile-time testing.
68031         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
68032         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
68033         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
68034         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
68035         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
68036         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
68037         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
68038         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
68039         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
68040         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
68041         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68042         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68043         undef any previous version and define our own version, for
68044         simplicity and consistency with the new macros for types.
68045         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68046         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68047         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
68048         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
68049         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
68050         @WINT_T_SUFFIX@ to keep things simple here.
68051         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
68052         Simplify by assuming typical 8/16/32/64 host, since we're
68053         already doing that elsewhere anyway.
68054         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
68055         and assume long long int is 64 bits if available.  This
68056         speeds up 'configure'.
68057
68058 2006-07-01  Eric Blake  <ebb9@byu.net>
68059
68060         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
68061         Reported by Andreas Buening.
68062
68063 2006-07-01  Eric Blake  <ebb9@byu.net>
68064
68065         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
68066
68067 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68068
68069         * lib/getaddrinfo.c: fixed typo
68070
68071 2006-06-29  Jim Meyering  <jim@meyering.net>
68072
68073         * modules/strftime (Maintainer): Add my name, since with the
68074         FPRINTFTIME changes strftime.c has forked from glibc.
68075
68076 2006-06-29  Eric Blake  <ebb9@byu.net>
68077
68078         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
68079
68080 2006-06-29  Eric Blake  <ebb9@byu.net>
68081
68082         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
68083
68084 2006-06-29  Eric Blake  <ebb9@byu.net>
68085
68086         * lib/stat_.h: New file.
68087
68088 2006-06-29  Eric Blake  <ebb9@byu.net>
68089
68090         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
68091         unused static function.
68092
68093 2006-06-29  Eric Blake  <ebb9@byu.net>
68094
68095         * doc/functions.texi (Function Portability): Document missing lstat
68096         on mingw.
68097
68098 2006-06-29  Eric Blake  <ebb9@byu.net>
68099
68100         * MODULES.html.sh: Add sys_stat.
68101         * modules/sys_stat: New module.
68102         * modules/mkstemp (Depends-on): Add sys_stat.
68103
68104 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68105
68106         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
68107
68108 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68109
68110         * m4/c-bs-a.m4: Removed.
68111
68112 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68113
68114         * lib/strftime.c: Assume strftime() exists.
68115
68116 2006-06-29  Derek Price  <derek@ximbiot.com>
68117
68118         * modules/c-bs-a: Removed - \a is C89.
68119         * MODULES.html.sh: Remove c-bs-a.
68120
68121 2006-06-29  Bruno Haible  <bruno@clisp.org>
68122
68123         * modules/wcwidth (License): Change to LGPL.
68124
68125 2006-06-28  Simon Josefsson  <jas@extundo.com>
68126
68127         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
68128         on _WIN32.
68129
68130         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
68131         getnameinfo.
68132
68133 2006-06-28  Simon Josefsson  <jas@extundo.com>
68134
68135         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
68136
68137 2006-06-28  Simon Josefsson  <jas@extundo.com>
68138
68139         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
68140         functions there.  It will succeed on Windows XP, but on Windows
68141         2000 and (presumably) earlier, it will fail, and use the internal
68142         re-implementation.
68143         (use_win32_p): New function.
68144         (getaddrinfo): Use strtoul on servname, to support numeric ports.
68145         Support AI_NUMERICSERV to disable getservbyname.
68146         (getnameinfo): New function, only supports
68147         NI_NUMERICHOST|NI_NUMERICSERV for now.
68148
68149         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
68150         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
68151         getnameinfo.
68152
68153 2006-06-28  Eric Blake  <ebb9@byu.net>
68154
68155         * modules/wcwidth: New file.
68156         * modules/mbchar (Depends-on): Add wcwidth.
68157         * modules/mbswidth (Depends-on): Add wcwidth.
68158         * MODULES.html.sh: Add wcwidth.
68159
68160 2006-06-28  Eric Blake  <ebb9@byu.net>
68161
68162         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
68163         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
68164
68165 2006-06-28  Eric Blake  <ebb9@byu.net>
68166
68167         * lib/xvasprintf.h: Fix comments.
68168
68169 2006-06-28  Eric Blake  <ebb9@byu.net>
68170
68171         * lib/mbchar.h (wcwidth): Include wcwidth.h.
68172         * lib/mbswidth.c (wcwidth): Move from here...
68173         * lib/wcwidth.h: ...to this new file.
68174
68175 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68176
68177         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
68178
68179         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
68180         it's obsolete.
68181         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
68182
68183 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68184
68185         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
68186         Autoconf 2.60 says this stuff was obsolete.
68187
68188 2006-06-28  Bruno Haible  <bruno@clisp.org>
68189
68190         * modules/wcwidth (Files): Add m4/wchar_t.m4.
68191
68192 2006-06-28  Bruno Haible  <bruno@clisp.org>
68193
68194         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
68195         gt_TYPE_WCHAR_T.
68196
68197 2006-06-28  Bruno Haible  <bruno@clisp.org>
68198
68199         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
68200         declaration for wcwidth.
68201         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
68202
68203 2006-06-28  Bruno Haible  <bruno@clisp.org>
68204
68205         * lib/mkdtemp.c [MINGW]: Include <io.h>.
68206         (mkdir): Define using _mkdir.
68207
68208 2006-06-28  Bruno Haible  <bruno@clisp.org>
68209
68210         * lib/getaddrinfo.h: Fix POSIX URL.
68211         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
68212         _WIN32.
68213         (use_win32_p): Make static.
68214         (getaddrinfo): Reject service name if it is empty or does not consist
68215         solely of decimal digits, or if its value is > 65535.
68216         (getnameinfo): Remove useless casts.
68217
68218 2006-06-27  Simon Josefsson  <jas@extundo.com>
68219
68220         * modules/sys_select: New file, suggested by Bruno Haible, Paul
68221         Eggert and Martin Lambers.
68222
68223 2006-06-27  Simon Josefsson  <jas@extundo.com>
68224
68225         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
68226         Eggert and Martin Lambers.
68227
68228 2006-06-27  Bruno Haible  <bruno@clisp.org>
68229
68230         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
68231         result to 0, not to empty.
68232         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
68233
68234 2006-06-27  Bruno Haible  <bruno@clisp.org>
68235
68236         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
68237
68238 2006-06-26  Simon Josefsson  <jas@extundo.com>
68239
68240         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
68241         present.
68242
68243 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
68244
68245         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
68246         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
68247         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
68248
68249 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
68250
68251         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
68252
68253 2006-06-26  Bruno Haible  <bruno@clisp.org>
68254
68255         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
68256
68257 2006-06-26  Bruno Haible  <bruno@clisp.org>
68258
68259         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
68260
68261 2006-06-26  Bruno Haible  <bruno@clisp.org>
68262
68263         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
68264         SGI C compiler in pre-C99 mode.
68265         Suggested by Mark D. Baushke and Larry Jones.
68266
68267 2006-06-26  Bruno Haible  <bruno@clisp.org>
68268
68269         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
68270         WCHAR_MAX.
68271         Reported by Mark D. Baushke and Larry Jones.
68272
68273 2006-06-26  Bruno Haible  <bruno@clisp.org>
68274
68275         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
68276         in pre-C99 mode.
68277         Suggested by Mark D. Baushke and Larry Jones.
68278
68279 2006-06-23  Simon Josefsson  <jas@extundo.com>
68280             Bruno Haible  <bruno@clisp.org>
68281
68282         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
68283         Emit mostlyclean-local rule.
68284         (func_emit_tests_Makefile_am): Likewise.
68285         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
68286
68287 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
68288
68289         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
68290
68291 2006-06-23  Bruno Haible  <bruno@clisp.org>
68292
68293         * tests/test-stdint.c: Update to match ISO C 99 Technical
68294         Corrigendum 1.
68295
68296 2006-06-23  Bruno Haible  <bruno@clisp.org>
68297
68298         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
68299
68300 2006-06-23  Bruno Haible  <bruno@clisp.org>
68301
68302         * lib/stdint_.h: Treat IRIX like OpenBSD.
68303
68304 2006-06-23  Bruno Haible  <bruno@clisp.org>
68305
68306         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
68307         ISO C 99 Technical Corrigendum 1.
68308
68309 2006-06-22  Simon Josefsson  <jas@extundo.com>
68310
68311         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
68312         MinGW.
68313
68314 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68315
68316         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
68317         needed.  Some compiler complained about some of them.  Problem reported
68318         by Larry Jones in
68319         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
68320
68321 2006-06-21  Simon Josefsson  <jas@extundo.com>
68322
68323         * tests/test-getaddrinfo.c: New file.
68324
68325         * modules/getaddrinfo-tests: New file.
68326
68327         * MODULES.html.sh: Add inet_pton.
68328
68329         * modules/inet_pton: New file.
68330
68331 2006-06-21  Simon Josefsson  <jas@extundo.com>
68332
68333         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
68334         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
68335         of using the (limited) gnulib implementation on Windows XP.
68336
68337         * m4/inet_pton.m4: New file.
68338
68339 2006-06-21  Simon Josefsson  <jas@extundo.com>
68340
68341         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
68342         variable.
68343
68344         * lib/socket_.h: Don't define WINVER.
68345
68346         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
68347         slightly modified to work in gnulib.
68348
68349 2006-06-21  Simon Josefsson  <jas@extundo.com>
68350
68351         * doc/gnulib.texi (Windows sockets): Add.
68352
68353 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68354
68355         * lib/read-file.c (fread_file): Start with buffer allocation of
68356         0 bytes rather than 1 byte; this simplifies the code.
68357         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
68358         code to free buffer and save/restore errno.
68359         (internal_read_file): Remove unused local.
68360
68361 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68362
68363         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
68364         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
68365         Problem reported by Denis Excoffier in
68366         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
68367
68368 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68369
68370         * modules/sys_socket, modules/socklen: Include sys/types since
68371         FreeBSD 4.x's sys/socket.h needs it.
68372
68373 2006-06-19  Simon Josefsson  <jas@extundo.com>
68374
68375         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
68376
68377 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68378
68379         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
68380
68381 2006-06-19  Bruno Haible  <bruno@clisp.org>
68382
68383         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
68384         and FULL_PATH_INTTYPES_H in angle brackets.
68385         Reported by Mark D. Baushke <mdb@gnu.org>.
68386
68387 2006-06-17  Eric Blake  <ebb9@byu.net>
68388
68389         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
68390         errno.
68391
68392 2006-06-17  Bruno Haible  <bruno@clisp.org>
68393
68394         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
68395         <sys/inttypes.h>.
68396
68397 2006-06-17  Bruno Haible  <bruno@clisp.org>
68398
68399         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
68400         whether errno is declared. Assume <errno.h> declares errno.
68401
68402 2006-06-17  Bruno Haible  <bruno@clisp.org>
68403
68404         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
68405
68406 2006-06-17  Bruno Haible  <bruno@clisp.org>
68407
68408         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
68409         problem on Solaris 2.5.1.
68410
68411 2006-06-16  Eric Blake  <ebb9@byu.net>
68412
68413         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
68414         * lib/unicodeio.c [!defined errno]: Likewise.
68415         * lib/strtol.c [!defined errno]: Likewise.
68416         * lib/strtod.c [!defined errno]: Likewise.
68417
68418 2006-06-15  Eric Blake  <ebb9@byu.net>
68419
68420         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
68421
68422 2006-06-15  Eric Blake  <ebb9@byu.net>
68423
68424         * config/srclist.txt (ssize_t.m4): Lose sync.
68425
68426 2006-06-15  Bruno Haible  <bruno@clisp.org>
68427
68428         * modules/stdint (Files): Include m4/full-header-path.m4,
68429         m4/size_max.m4, m4/wchar_t.m4.
68430         (Makefile.am): Many more substitutions.
68431         * modules/stdint-tests: New file.
68432         * tests/test-stdint.c: New file.
68433
68434 2006-06-15  Bruno Haible  <bruno@clisp.org>
68435
68436         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
68437         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
68438         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
68439         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
68440         gl_CHECK_TYPE_SAME): New macros.
68441
68442 2006-06-15  Bruno Haible  <bruno@clisp.org>
68443
68444         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
68445
68446 2006-06-15  Bruno Haible  <bruno@clisp.org>
68447
68448         * lib/stdint_.h: Rewritten to be fully auto-configured.
68449         Fixes bug on HP-UX/IA64.
68450
68451 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
68452
68453         * lib/getdate.y (__attribute__): Don't define if already defined.
68454         Problem reported by Larry Jones.
68455         * lib/utimens.c (__attribute__): Likewise.
68456
68457 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
68458
68459         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
68460         reported by Andreas Schwab.
68461
68462 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68463             Bruno Haible  <bruno@clisp.org>
68464
68465         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
68466         check for the declaration of strnlen and a run test that exposes the
68467         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
68468         rpl_strndup.
68469
68470 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68471             Bruno Haible  <bruno@clisp.org>
68472
68473         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
68474
68475 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68476
68477         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
68478         compile test, for Tru64 4.0D.
68479
68480 2006-05-28  Karl Berry  <karl@gnu.org>
68481
68482         * config/srclist.txt (printf-args.c): lose sync.
68483
68484 2006-05-26  Martin Lambers  <marlam@marlam.de>
68485
68486         * lib/getpass.c: Updates the test for the native W32 API, and adds
68487         missing includes, thus fixing compilation warnings.
68488
68489 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68490
68491         * lib/exclude.c (exclude_fnmatch): New function.
68492         (excluded_file_name): Call exclude_fnmatch.
68493         * lib/exclude.h (excluded_file_name): New prototype
68494
68495 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
68496
68497         * lib/tempname.c (small_open, large_open): New macros.
68498         (__open, __open64) [!_LIBC]: Remove.
68499         (__gen_tempname): Use small_open and large_open instead of __open
68500         and __open64.  This fixes a portability bug on HP-UX 11.11i
68501         reported by Simon Wing-Tang in
68502         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
68503
68504 2006-05-24  Bruno Haible  <bruno@clisp.org>
68505
68506         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
68507         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
68508         Reported by Thorsten Maerz <torte@netztorte.de> via
68509         Aaron Stone <aaron@serendipity.cx>.
68510
68511 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68512
68513         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
68514         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
68515         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
68516         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
68517         not really conditional on the cache.
68518         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
68519
68520 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68521
68522         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
68523         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
68524         (my_usleep): Don't mishandle maximum value.
68525
68526 2006-05-19  Jim Meyering  <jim@meyering.net>
68527
68528         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
68529
68530 2006-05-17  Bruno Haible  <bruno@clisp.org>
68531
68532         Cygwin portability.
68533         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
68534
68535 2006-05-17  Bruno Haible  <bruno@clisp.org>
68536
68537         * lib/stdint_.h: Fix recognition of Cygwin.
68538
68539 2006-05-15  Bruno Haible  <bruno@clisp.org>
68540
68541         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
68542         on libtool patch by Ralf Wildenhues.
68543
68544 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68545
68546         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
68547         test for C99 conformance; (bool) 0.5 is an integer constant
68548         expression, but (bool) -0.5 is not.  Problem reported by Fedor
68549         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
68550
68551 2006-05-11  Simon Josefsson  <jas@extundo.com>
68552
68553         * m4/xvasprintf.m4: Fix obvious typo.
68554
68555 2006-05-11  Jim Meyering  <jim@meyering.net>
68556
68557         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
68558         James Lemley.
68559
68560 2006-05-10  Simon Josefsson  <jas@extundo.com>
68561
68562         * lib/md4.c: Typo fix, update copyright years.
68563         (K1, K2): Don't use L because it turn computations into 64-bit on
68564         64-bit platforms.
68565
68566 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
68567
68568         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
68569         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
68570         unwanted sign propagation, e.g., on hosts with 64-bit int.
68571         There still are some problems with reeelly weird theoretical hosts
68572         (e.g., 33-bit int) but it's not worth worrying about now.
68573         * lib/sha1.c (rol): Likewise.
68574         (K1, K2, K3, K4): Remove unnecessary L suffix.
68575
68576 2006-05-10  Bruno Haible  <bruno@clisp.org>
68577
68578         * lib/des.c: Cast to avoid warnings.
68579
68580 2006-05-09  Bruno Haible  <bruno@clisp.org>
68581
68582         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
68583         (Depends-on): Depend also on xsize, stdarg.
68584         (configure.ac): Add gl_XVASPRINTF.
68585
68586 2006-05-09  Bruno Haible  <bruno@clisp.org>
68587
68588         * m4/xvasprintf.m4: New file.
68589
68590 2006-05-09  Bruno Haible  <bruno@clisp.org>
68591
68592         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
68593         (EOVERFLOW): Define fallback value.
68594         (xstrcat): New function.
68595         (xvasprintf): Recognize the special case of a string concatenation.
68596
68597 2006-05-08  Eric Blake  <ebb9@byu.net>
68598
68599         * gnulib-tool (func_version): Base copyright year on CVS date.
68600         (func_emit_copyright_notice): New function.
68601         (func_emit_lib_Makefile_am): Use it.
68602         (func_emit_tests_Makefile_am): Likewise.
68603         (func_import): Likewise.
68604
68605 2006-05-08  Bruno Haible  <bruno@clisp.org>
68606
68607         * modules/stdarg: New file.
68608         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
68609
68610 2006-05-08  Bruno Haible  <bruno@clisp.org>
68611
68612         * m4/stdarg.m4: New file, from GNU gettext.
68613
68614 2006-05-08  Bruno Haible  <bruno@clisp.org>
68615
68616         * config/srclist.txt (build-aux/config.rpath): different from latest
68617         release.
68618
68619 2006-05-08  Bruno Haible  <bruno@clisp.org>
68620
68621         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
68622
68623 2006-05-05  Jim Meyering  <jim@meyering.net>
68624
68625         * m4/warning.m4: New file, derived from bison's file by the same name.
68626
68627 2006-05-03  Bruno Haible  <bruno@clisp.org>
68628
68629         * lib/stdint_.h: Shorter URL.
68630         * lib/inttypes.h: Likewise.
68631
68632 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68633
68634         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
68635
68636 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68637
68638         * lib/verify.h: Document the internals better.  Most of this change
68639         was written by Bruno Haible.
68640
68641 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68642
68643         * doc/verify.texi: New file, partly based on a proposal by
68644         Bruno Haible.
68645
68646 2006-05-02  Bruno Haible  <bruno@clisp.org>
68647
68648         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
68649         test from here...
68650         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
68651
68652 2006-04-29  Bruno Haible  <bruno@clisp.org>
68653
68654         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
68655         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
68656
68657 2006-04-29  Bruno Haible  <bruno@clisp.org>
68658
68659         * gnulib-tool: Make --update option actually work.
68660
68661 2006-04-29  Bruno Haible  <bruno@clisp.org>
68662
68663         * doc/gcd.texi: New file.
68664         * doc/gnulib.texi: Include it.
68665
68666 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
68667
68668         * lib/getdate.y (get_date): When adding relative date, start with the
68669         initial time, not with the result of the first mktime call.
68670
68671 2006-04-25  Bruno Haible  <bruno@clisp.org>
68672
68673         * gnulib-tool (func_import): Output the include directives in three
68674         blocks, sorted separately.
68675         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68676
68677 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68678
68679         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
68680         to define main with arguments, for C++.  Reported by Eric Blake.
68681         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
68682         Prefer 'int main ()' to 'int main (void)', for C++.
68683         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
68684         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
68685         for 'main', for C99 and C++.
68686
68687 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68688
68689         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
68690         Don't assume that exit status -1 is valid.
68691         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68692         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
68693         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
68694         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
68695         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
68696         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
68697         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
68698         functions can be used without declaring them, or that you can
68699         exit with status -1.
68700         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
68701
68702 2006-04-24  Karl Berry  <karl@gnu.org>
68703
68704         * config/srclist.txt (longdouble.m4): sync lost.
68705
68706 2006-04-24  Eric Blake  <ebb9@byu.net>
68707
68708         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
68709
68710 2006-04-24  Bruno Haible  <bruno@clisp.org>
68711
68712         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
68713         poll() implementation in AIX.
68714         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68715
68716 2006-04-24  Bruno Haible  <bruno@clisp.org>
68717
68718         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
68719         assigned exactly once.
68720
68721 2006-04-23  Claudio Fontana  <claudio@gnu.org>
68722             Bruno Haible  <bruno@clisp.org>
68723
68724         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
68725         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
68726         for AM_CPPFLAGS.
68727
68728 2006-04-23  Bruno Haible  <bruno@clisp.org>
68729
68730         * modules/copy-file: Depend on unistd.
68731         * modules/execute: Likewise.
68732         * modules/fatal-signal: Likewise.
68733         * modules/findprog: Likewise.
68734         * modules/mkdtemp : Likewise.
68735         * modules/pipe: Likewise.
68736         * modules/wait-process: Likewise.
68737
68738 2006-04-23  Bruno Haible  <bruno@clisp.org>
68739
68740         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
68741         condition was already detected.
68742         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68743
68744 2006-04-23  Bruno Haible  <bruno@clisp.org>
68745
68746         * lib/copy-file.c: Include <unistd.h> unconditionally.
68747         * lib/execute.c: Likewise.
68748         * lib/fatal-signal.c: Likewise.
68749         * lib/findprog.c: Likewise.
68750         * lib/mkdtemp.c: Likewise.
68751         * lib/pipe.h: Likewise.
68752         * lib/pipe.c: Likewise.
68753         * lib/wait-process.h: Likewise.
68754
68755 2006-04-23  Bruno Haible  <bruno@clisp.org>
68756
68757         * gnulib-tool (func_usage): Fix --import description. Document
68758         --update.
68759         (func_import): Create temporary file in a temporary directory, if
68760         --dry-run is specified. Silence errors from 'grep' when there are no
68761         m4 files in $m4dir.
68762         (func_create_testdir): Silence errors from 'grep' when there are no
68763         m4 files in $m4dir.
68764         Reported by Karl Berry <karl@freefriends.org>.
68765
68766 2006-04-20  Bruno Haible  <bruno@clisp.org>
68767
68768         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
68769         one argument, so that the code will be portable to Autoconf 2.60.
68770         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
68771         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68772         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
68773
68774 2006-04-19  Derek Price  <derek@ximbiot.com>
68775             Eric Blake  <ebb9@byu.net>
68776
68777         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
68778         rather than "/full/path.h".  Update comment to match.  Shorten &
68779         generalize m4_translit call via AS_TR_CPP.
68780
68781 2006-04-19  Derek Price  <derek@ximbiot.com>
68782             Eric Blake  <ebb9@byu.net>
68783
68784         * lib/inttypes.h: Correct grammar in comment.
68785
68786 2006-04-18  Derek Price  <derek@ximbiot.com>
68787             Paul Eggert  <eggert@cs.ucla.edu>
68788
68789         * modules/inttypes: New file.
68790         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
68791
68792 2006-04-18  Derek Price  <derek@ximbiot.com>
68793             Paul Eggert  <eggert@cs.ucla.edu>
68794
68795         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
68796         New files.
68797
68798 2006-04-18  Derek Price  <derek@ximbiot.com>
68799             Paul Eggert  <eggert@cs.ucla.edu>
68800
68801         * lib/inttypes.h: New file.
68802         * lib/strtoimax.c: Assume <inttypes.h>.
68803
68804 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
68805
68806         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
68807         isn't mounted.  Problem reported by Kir Kolyshkin.
68808
68809 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68810
68811         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
68812         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
68813         Derek R. Price.
68814         * lib/regex.h (RE_DUP_MAX): Update comment to match current
68815         implementation.
68816
68817 2006-04-12  Eric Blake  <ebb9@byu.net>
68818
68819         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
68820         is now done automatically by the corresponding Autoconf macro.
68821
68822 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
68823
68824         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
68825         time_r.h.
68826
68827 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68828
68829         Merge regex changes from libc, removing some of our
68830         POSIX-conformance changes that were rejected and redoing them in a
68831         less-intrusive way.
68832
68833         * lib/regcomp.c (re_compile_internal, init_dfa):
68834         Length arg is now size_t, not Idx.  All uses changed.
68835         (peek_token): Forward decl now says internal_function.
68836         (__re_error_msgid, __re_error_msgid_idx):
68837         Now static rather than extern with attribute_hidden.
68838         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
68839         For some reason libc prefers K&R style defns for external functions.
68840         (regerror) [!defined _LIBC]: Likewise.
68841         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
68842         (seek_collating_symbol_entry, lookup_collation_sequence_value):
68843         (build_range_exp, build_collating_symbol):
68844         Use K&R-style defn.
68845         (re_compile_fastmap): Use '\0' to memset, not 0.
68846         (utf8_sb_map): Make the calculations more obvious.
68847         (init_dfa, parse_bracket_exp, build_charclass_op):
68848         Call calloc and cast result, as glibc does.
68849         (init_word_char, fetch_token, peek_token, peek_token_bracket):
68850         (build_range_exp, build_collating_symbol):
68851         Now internal functions.
68852
68853         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
68854
68855         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
68856         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
68857         Don't depend on VMS; depend on __VMS instead, for POSIX
68858         namespace cleanness.
68859         (regoff_t): Define to ssize_t, not long int.
68860
68861         Remove the REG_ macros named below.  Instead, make the old names
68862         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
68863         __USE_GNU_REGEX.
68864         (REG_BACKSLASH_ESCAPE_IN_LISTS):
68865         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
68866         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
68867         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
68868         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
68869         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
68870         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
68871         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
68872         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
68873         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
68874         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
68875         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
68876         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
68877         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
68878         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
68879         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
68880         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
68881         (REG_NREGS):
68882         Remove.  All uses replaced by the old RE_* names.
68883         (RE_BACKSLASH_ESCAPE_IN_LISTS):
68884         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
68885         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
68886         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
68887         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
68888         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
68889         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
68890         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
68891         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
68892         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
68893         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
68894         Don't bother having these macros be independent of each others'
68895         values, since they no longer exist in the POSIX name space.
68896
68897         Rename the following member names back to their old names,
68898         unless !__USE_GNU_REGEX.  All uses changed back.
68899         (buffer): Renamed from re_buffer.
68900         (allocated): Renamed from re_allocated.
68901         (used): Renamed from re_used.
68902         (syntax): Renamed from re_syntax.
68903         (fastmap): Renamed from re_fastmap.
68904         (translate): Renamed from re_translate.
68905         (can_be_null): Renamed from re_can_be_null.
68906         (regs_allocated): Renamed from re_regs_allocated.
68907         (fastmap_accurate): Renamed from re_fastmap_accurate.
68908         (no_sub): Renamed from re_no_sub.
68909         (not_bol): Renamed from re_not_bol.
68910         (not_eol): Renamed from re_not_eol.
68911         (newline_anchor): Renamed from re_newline_anchor.
68912         (num_regs): Renamed from rm_num_regs.
68913         (start): Renamed from rm_start.
68914         (end): Renamed from rm_end.
68915
68916         (free_state): Move up a bit.
68917
68918         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68919         #define to be empty.
68920         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68921         when that is what is intended.
68922         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68923         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68924         (MAX): New macro.
68925         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68926         All uses changed back to re_malloc, etc.  It's now the caller's
68927         responsibility to check for overflow; all callers changed.
68928         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68929         (re_x2nrealloc): Remove.
68930         (free_state): Remove decl.
68931
68932         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68933         (re_set_registers, re_exec):
68934         Use K&R-style defn.
68935
68936         2006-01-31  Roland McGrath  <roland@redhat.com>
68937
68938         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68939         Reported by Mike Frysinger <vapier@gentoo.org>.
68940
68941         2006-01-15  Andreas Jaeger  <aj@suse.de>
68942
68943         [BZ #1950]
68944         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68945         build_wcs_upper_buffer change.
68946         (build_wcs_upper_buffer): Change return type.
68947
68948         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68949
68950         * lib/regex_internal.h: Include <stdint.h> if available.
68951
68952         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68953
68954         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68955
68956         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68957
68958         * lib/regcomp.c: Adjust for changed secondary hash function.
68959
68960         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68961
68962         * lib/regex.h: Pretty printing.
68963         Clean up namespace a bit.
68964
68965         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68966
68967         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68968         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68969
68970         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68971                     Ulrich Drepper  <drepper@redhat.com>
68972
68973         [BZ #1302]
68974         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68975         changed.
68976         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68977
68978         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68979
68980         [BZ #281]
68981         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68982         * lib/regcomp.c: Remove unnecessary uses of
68983         unsigned RE_TRANSLATE_TYPE.
68984         * lib/regex_internal.h: Likewise.
68985         * lib/regex_internal.c: Likewise.
68986         * lib/regexec.c: Likewise.
68987         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68988
68989         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68990
68991         * lib/regexec.c (find_recover_state): Remove unnecessary
68992         initialization.
68993         (transit_state_bkref): Make DFA a const pointer.
68994         (get_subexp): Likewise.
68995         (check_arrival): Likewise.
68996         (update_cur_sifted_state): Likewise.
68997         (re_search_internal): Likewise.
68998         (prune_impossible_nodes): Likewise.
68999         (acquire_init_state_context): Likewise.
69000         (proceed_next_node): Likewise.
69001         (set_regs): Likewise.
69002         (free_fail_stack_return): Likewise.
69003         (check_arrival_expand_ecl): Mark DFA parameter as const.
69004         (check_arrival_expand_ecl_sub): Likewise.
69005         (check_subexp_limits): Likewise.
69006         (sub_epsilon_src_nodes):  Likewise.
69007         (add_epsilon_src_nodes):  Likewise.
69008         (merge_state_array): Likewise.
69009         (update_regs): Likewise.
69010         (build_trtable): Likewise.
69011         (sift_states_backward): Mark MCTX parameter as const.
69012         (build_sifted_states): Likewise.
69013         (update_cur_sifted_state): Likewise.
69014         (sift_states_mkref): Likewise.
69015         (check_arrival_expand_ecl): Mark eclosure as const.
69016         (check_dst_limits_calc_pos_1): Likewise.
69017         * lib/regex_internal.h (re_match_context_t): Make dfa a const
69018         pointer.
69019
69020         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
69021
69022         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
69023         (transit_state_sb): Likewise.
69024         (transit_state_mb): Likewise.
69025         (sift_states_iter_mb): Likewise.
69026         (check_arrival_add_next_nodes): Likewise.
69027         (check_node_accept_bytes): Change first parameter to pointer-to-const.
69028         [_LIBC] (re_search_2_stub): Use mempcpy.
69029
69030         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
69031         mbrtowc for very simple UTF-8 case.
69032
69033         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
69034         a pointer-to-const.
69035         (re_acquire_state_context): Likewise.
69036         * lib/regex_internal.h: Adjust prototypes.
69037
69038         * lib/regex.c: Prevent using C++ compilers.
69039
69040         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
69041         (re_acquire_state_context): Likewise.
69042
69043 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69044
69045         * modules/regex (Depends-on): Add ssize_t.
69046
69047 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69048
69049         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
69050         translation table.
69051
69052 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69053
69054         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
69055
69056 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
69057             Bruno Haible  <bruno@clisp.org>
69058
69059         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
69060         <sys/types.h> and <inttypes.h>.
69061
69062 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69063
69064         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
69065         `__error_t_defined', so argp.h will not typedef the former.
69066
69067 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
69068
69069         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
69070         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
69071         glibc names.  Even if glibc is changed to conform to POSIX, the
69072         traditional names will be available anyway, since regex depends on
69073         the extensions module.  Also, fix a longstanding typo in the
69074         implementation of Spencer ERE test #75 from grep 2.3.  Problems
69075         reported by Emanuele Giaquinta.  Also, change sense of cached
69076         variable, so that the message makes sense.
69077
69078 2006-03-24  Simon Josefsson  <jas@extundo.com>
69079
69080         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
69081         including some doc fixes.
69082         (base64_encode_alloc): Fix +1 bug on allocation failures.
69083
69084 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69085
69086         * lib/base64.c (base64_encode): Do not read past end of array with
69087         unsanitized input on systems with CHAR_BIT > 8.
69088
69089 2006-03-24  Eric Blake  <ebb9@byu.net>
69090
69091         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
69092
69093 2006-03-22  Karl Berry  <karl@gnu.org>
69094
69095         * config/srclist.txt (*setenv.[ch]): get from coreutils.
69096         * config/srclistvars.sh (COREUTILS): new var.
69097
69098 2006-03-17  Jim Meyering  <jim@meyering.net>
69099
69100         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
69101         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
69102
69103 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69104
69105         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
69106         no longer needs it.  Instead, check that regoff_t is as least
69107         as wide as ptrdiff_t.
69108
69109         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
69110         so that our regex.h stays compatible with the installed regex.
69111         This is helpful for installers who configure --without-included-regex.
69112         Problem reported by Emanuele Giaquinta.
69113
69114 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69115
69116         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
69117         Typedef to long int, not to off_, as POSIX will likely change
69118         in that direction.
69119
69120 2006-03-15  Eric Blake  <ebb9@byu.net>
69121
69122         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
69123
69124 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69125
69126         * lib/argp-help.c (validate_uparams): Fix typo
69127         * lib/argp-parse.c (argp_default_options): Consistently begin help
69128         messages with a lowercase letter.
69129
69130 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
69131
69132         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
69133         overrun buffers and shouldn't be used (much as gets shouldn't be
69134         used).
69135         * lib/time_r.c (asctime_r, ctime_r): Likewise.
69136
69137 2006-03-08  Simon Josefsson  <jas@extundo.com>
69138
69139         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
69140         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69141
69142 2006-03-08  Simon Josefsson  <jas@extundo.com>
69143
69144         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
69145         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69146
69147 2006-03-08  Simon Josefsson  <jas@extundo.com>
69148
69149         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
69150         signal that configure disabled the device.
69151
69152 2006-03-08  Simon Josefsson  <jas@extundo.com>
69153
69154         * build-aux/maint.mk: Fix refresh-po, to handle no translated
69155         languages.
69156
69157 2006-03-07  Simon Josefsson  <jas@extundo.com>
69158
69159         * modules/getopt (Depends-on): Add unistd.
69160
69161         * modules/unistd: New file.
69162
69163 2006-03-07  Simon Josefsson  <jas@extundo.com>
69164
69165         * modules/gc-random: New file.
69166
69167 2006-03-07  Simon Josefsson  <jas@extundo.com>
69168
69169         * m4/unistd_h.m4: New file.
69170
69171 2006-03-07  Simon Josefsson  <jas@extundo.com>
69172
69173         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
69174         test to be side-effect free by storing the result in the cache
69175         variable gl_cv_lib_readline, and moving the assignment of
69176         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
69177         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69178
69179 2006-03-07  Simon Josefsson  <jas@extundo.com>
69180
69181         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
69182         error on missing devices (the functions will return an error).
69183
69184         * m4/gc.m4: Move random stuff to gc-random.m4
69185
69186 2006-03-07  Simon Josefsson  <jas@extundo.com>
69187
69188         * lib/unistd_.h: New file.
69189
69190 2006-03-07  Simon Josefsson  <jas@extundo.com>
69191
69192         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
69193
69194 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69195
69196         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
69197         Problem reported by Juan Manuel Guerrero.
69198
69199 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69200
69201         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
69202         the unistd module.
69203         * lib/getlogin_r.c: Likewise.
69204         * lib/getlogin_r.h: Likewise.
69205         * lib/glob.c: Likewise.
69206         * lib/pagealign_alloc.c: Likewise.
69207         * lib/unistd_.h: Remove; no longer needed.
69208
69209 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69210
69211         * MODULES.html.sh (Support for systems lacking POSIX:2001):
69212         Add unistd.
69213         * modules/c-stack (Depends-on): Add unistd.
69214         * modules/getlogin_r: Likewise.
69215         * modules/glob: Likewise.
69216         * modules/pagealign_alloc: Likewise.
69217         * modules/unistd (Files): Remove lib/unistd_.h.
69218         (EXTRA_DIST): Remove.
69219         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
69220         need unistd_.h.
69221         (MOSTLYCLEANFILES): Remove unistd.h-t.
69222
69223 2006-03-03  Simon Josefsson  <jas@extundo.com>
69224
69225         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
69226
69227 2006-03-03  Simon Josefsson  <jas@extundo.com>
69228
69229         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
69230         libidn and bison.
69231
69232 2006-03-03  Simon Josefsson  <jas@extundo.com>
69233
69234         * build-aux/maint.mk: Add indent target.
69235
69236 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
69237
69238         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
69239         our replacement poll.h in any case, to avoid a differing
69240         declaration from a system header.  Seen on AIX.
69241
69242 2006-03-01  Simon Josefsson  <jas@extundo.com>
69243
69244         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
69245         <kasal@ucw.cz>.
69246
69247 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69248
69249         * modules/gettime (Depends-on): Add extensions module.
69250         * modules/nanosleep (Depends-on): Likewise.
69251         * modules/settime (Depends-on): Likewise.
69252
69253 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69254
69255         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
69256         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
69257         pedantically.
69258         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69259         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
69260
69261         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
69262         not "==".  Reported by Ralf Wildenhues.
69263
69264 2006-03-01  Karl Berry  <karl@gnu.org>
69265
69266         * doc/Copyright/request-*: new files, synced from gnuorg.
69267
69268 2006-03-01  Karl Berry  <karl@gnu.org>
69269
69270         * config/srclist.txt (Copyright/*): new entries.
69271
69272 2006-02-28  Simon Josefsson  <jas@extundo.com>
69273
69274         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
69275
69276 2006-02-27  Simon Josefsson  <jas@extundo.com>
69277
69278         * lib/base64.h: Indent #define's.  From Jim Meyering
69279         <jim@meyering.net>.
69280
69281 2006-02-27  Jim Meyering  <jim@meyering.net>
69282
69283         Revert the change of 2006-02-24, so these files can continue
69284         to be sync'd from gettext.
69285         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
69286         of `config.h'.
69287
69288 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69289
69290         * modules/intprops: New file.
69291         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69292         Add intprops.
69293         * modules/getloadavg (Files): Remove lib/intprops.h.
69294         (Depends-on): Add intprops.
69295         * modules/human: Likewise.
69296         * modules/inttostr: Likewise.
69297         * modules/openat: Likewise.
69298         * modules/sig2str: Likewise.
69299         * modules/userspec: Likewise.
69300         * modules/utimecmp: Likewise.
69301         * modules/xnanosleep: Likewise.
69302         * modules/xstrtol: Likewise.
69303
69304 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
69305
69306         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
69307         * modules/lock-tests (TESTS): Use $(EXEEXT).
69308         * modules/tls-tests: Likewise.
69309         * modules/argp-tests: Likewise.
69310         (check_PROGRAMS): New var, replacing...
69311         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
69312
69313 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69314
69315         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
69316         `config.h'.
69317
69318 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69319
69320         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
69321
69322 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69323
69324         Sync from coreutils.
69325         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
69326         gl_CHDIR_SAFER.
69327
69328 2006-02-22  Jim Meyering  <jim@meyering.net>
69329
69330         Sync from coreutils.
69331         * m4/chdir-safer.m4: New file.
69332
69333 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69334
69335         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
69336         AT_FDCWD exceeds INT_MAX.
69337         * lib/openat.h (AT_FDCWD): Likewise.
69338
69339 2006-02-17  Eric Blake  <address@hidden>
69340
69341         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
69342
69343 2006-02-16  Simon Josefsson  <jas@extundo.com>
69344
69345         * modules/getaddrinfo (Depends-on): Add sys_socket.
69346
69347 2006-02-15  Simon Josefsson  <jas@extundo.com>
69348
69349         * build-aux/maint.mk: Add dsyntax-check rule.
69350
69351 2006-02-15  Eric Blake  <ebb9@byu.net>
69352
69353         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
69354         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
69355         'present but cannot compile' warnings on cygwin.
69356         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
69357         use ws2tcpip.h if sys/socket.h works.
69358         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
69359         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
69360
69361 2006-02-14  Simon Josefsson  <jas@extundo.com>
69362
69363         * modules/maintainer-makefile (Files): Rename.
69364
69365         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
69366         and (the local) Makefile.cfg to maint-cfg.mk.
69367
69368         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
69369         to the latter.
69370
69371         * modules/maintainer-makefile: New module.
69372
69373         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
69374         severaly stripped to make it possible to build it up from scratch
69375         with reliable tests.
69376
69377         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
69378         fixes to permit overriding the default actions when configure and
69379         makefile are not available.
69380
69381 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69382
69383         Sync from coreutils.
69384         * modules/lstat (Depends-on): Don't depend on xalloc.
69385         (License): Change from GPL to LGPL, since this is now simply a
69386         replacement for a libc function.
69387
69388 2006-02-14  Jim Meyering  <jim@meyering.net>
69389
69390         Sync from coreutils.
69391
69392         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
69393         failure on deficient systems, and simplify gnulib lgpl dependencies.
69394         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
69395         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
69396
69397         * lib/xalloc-die.c: Remove unused definition of N_.
69398
69399 2006-02-14  Jim Meyering  <jim@meyering.net>
69400
69401         Sync from coreutils.
69402         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
69403         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
69404         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
69405         double-quote uses of that variable, to accommodate the rare case in
69406         which getmntent is available in none of the libraries checked.  This
69407         happens at least on FreeBSD 5.0.
69408
69409 2006-02-13  Simon Josefsson  <jas@extundo.com>
69410
69411         * gnulib-tool (Usage): Fix --import, from
69412         karl@freefriends.org (Karl Berry).
69413
69414 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69415
69416         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
69417
69418 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
69419
69420         * lib/argp-namefrob.h: Restore changes accidentally lost during the
69421         "autoupdate" on 2005-12-12.
69422
69423 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69424
69425         * modules/closeout (Depends-on): Remove atexit.
69426
69427 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69428
69429         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
69430         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
69431
69432 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69433
69434         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
69435         __EXTENSIONS__ if this causes compilation to fail.  Problem
69436         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
69437         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
69438
69439 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
69440
69441         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
69442         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
69443         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
69444         All uses changed.
69445
69446 2006-01-26  Simon Josefsson  <jas@extundo.com>
69447
69448         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
69449         prototype is visible on mingw32.
69450
69451         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
69452         for mingw32.
69453
69454         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
69455         mingw32).
69456
69457 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69458
69459         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
69460         attempt to open for write; this always fails, at least on POSIX
69461         hosts.  This reinstates the 2006-01-09 change, which was
69462         inadvertently removed.
69463
69464 2006-01-26  Bruno Haible  <bruno@clisp.org>
69465
69466         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
69467         Reported by Paul Eggert.
69468
69469 2006-01-26  Bruno Haible  <bruno@clisp.org>
69470             Paul Eggert  <eggert@cs.ucla.edu>
69471
69472         * lib/stdbool_.h (_Bool)
69473         [(! (defined __cplusplus || defined __BEOS__)
69474           && !defined __GNUC__
69475           && !(defined __HP_cc || defined __xlc__
69476                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
69477                || defined __sgi))]:
69478         #define to signed char in these cases too; this simplifies
69479         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
69480         etc., separately) and makes it more conservative.
69481
69482 2006-01-25  Simon Josefsson  <jas@extundo.com>
69483
69484         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
69485         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
69486         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
69487
69488 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69489
69490         * lib/argp-namefrob.h: Bugfix. Remove stray #
69491
69492 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
69493
69494         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
69495         so that we test the test.
69496         Check for yet another HP-UX cc bug involving *bool |= bool.
69497
69498 2006-01-25  Karl Berry  <karl@gnu.org>
69499
69500         * config/srclist.txt (vasnprintf.c): sync lost.
69501
69502 2006-01-25  Jim Meyering  <jim@meyering.net>
69503
69504         Sync from the stable (b5) branch of coreutils:
69505
69506         * lib/fts.c (fts_children): Don't let close() clobber errno from
69507         failed fchdir().
69508
69509         * lib/fts.c (fts_stat): When following a symlink-to-directory,
69510         don't necessarily interpret stat-fails+lstat-succeeds as indicating
69511         a dangling symlink.  That can also happen at least for ELOOP.
69512         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
69513         FYI, this bug predates the inclusion of fts.c in coreutils.
69514
69515         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
69516         in their own block, so pre-c99 compilers don't object.
69517
69518         Avoid the double-free (first in fts_read, second in fts_close) that
69519         would occur when an `active' directory is made inaccessible (e.g.,
69520         via chmod a-x) during a traversal.
69521         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69522         before returning.  Reproduce this failure by
69523         mkdir -p a/b; cd a; chmod a-x . b
69524         Reported by Stavros Passas.
69525
69526 2006-01-25  Jim Meyering  <jim@meyering.net>
69527
69528         * lib/fileblocks.c: Remove more useless parentheses.
69529         * lib/readutmp.h: Likewise.
69530
69531 2006-01-25  Bruno Haible  <bruno@clisp.org>
69532
69533         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
69534         warnings.
69535         Reported by Paul Eggert.
69536
69537 2006-01-25  Bruno Haible  <bruno@clisp.org>
69538
69539         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
69540         rid of a trap command. For Solaris sh.
69541         Reported by Mark D. Baushke <mdb@gnu.org>.
69542
69543 2006-01-24  Simon Josefsson  <jas@extundo.com>
69544
69545         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
69546         Bruno.
69547
69548 2006-01-24  Karl Berry  <karl@gnu.org>
69549
69550         * config/srclist.txt (argp-namefrob.h): sync lost.
69551
69552 2006-01-24  Jim Meyering  <jim@meyering.net>
69553
69554         * modules/openat (Files): Add lib/intprops.h.
69555         From Mark D. Baushke.
69556
69557 2006-01-24  Jim Meyering  <jim@meyering.net>
69558
69559         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
69560         Reported by Mark D. Baushke.
69561
69562 2006-01-24  Jim Meyering  <jim@meyering.net>
69563
69564         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
69565
69566 2006-01-24  Bruno Haible  <bruno@clisp.org>
69567
69568         * modules/strnlen (Maintainer): Change from glibc to all.
69569
69570 2006-01-24  Bruno Haible  <bruno@clisp.org>
69571
69572         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
69573         Patch by Paul Eggert.
69574
69575 2006-01-24  Bruno Haible  <bruno@clisp.org>
69576
69577         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
69578         already has it.
69579         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
69580         2005-11-26.
69581
69582         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
69583         'signed char' to avoid problems with the built-in _Bool type.
69584         Reported by Paul Eggert on 2005-11-26.
69585
69586 2006-01-24  Bruno Haible  <bruno@clisp.org>
69587
69588         * gnulib-tool (func_import): Avoid constructing complicated sed
69589         expressions inside backquote.
69590         Report and solution by Mark D. Baushke <mdb@gnu.org>.
69591
69592 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
69593
69594         These changes imported from libc.
69595         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
69596         test and two separate function calls.
69597         * lib/strndup.c (__strndup): Add libc_hidden_def.
69598
69599 2006-01-23  Simon Josefsson  <jas@extundo.com>
69600
69601         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
69602         Remove the test_*_SOURCES variable: automake infers it by default.
69603         * modules/tls-tests: Likewise.
69604
69605 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69606
69607         Work around porting bugs reported by Dieter in
69608         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
69609         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
69610         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
69611         Include "getopt.h" first, to check interface.
69612         (getenv): Declare only if defined HAVE_DECL_GETENV &&
69613         !HAVE_DECL_GETENV.
69614         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
69615         (__strndup): Revert to K&R-style function dfns, the glibc style.
69616         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
69617         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
69618         Include strnlen.h first, to get prototype properly.
69619         (strnlen): Renamed from __strnlen.
69620         Remove weak alias.
69621
69622 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69623
69624         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
69625
69626 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69627
69628         * config/srclist.txt: Adjust to reflect glibc reorganization.
69629         This affects only comments.
69630
69631 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69632
69633          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
69634          Reported by Bruce Korb <bkorb@gnu.org>.
69635
69636 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69637
69638         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
69639         to pacify gcc -Wswitch-default.
69640
69641 2006-01-22  Bruno Haible  <bruno@clisp.org>
69642
69643         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
69644         temporary buffer for sprintf, take into account the precision also
69645         for 'd', 'i', 'u', 'o', 'x', 'X'.
69646
69647 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69648
69649         * modules/argp-tests: New module
69650         * tests/test-argp.c: New file
69651         * tests/test-argp-2.sh: New file
69652
69653 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69654
69655         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
69656         (__argp_base_name): Removed
69657         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
69658         typo.
69659         (__argp_base_name): Provide macro definition or extern declaration
69660         depending on the configuration
69661
69662 2006-01-20  Simon Josefsson  <jas@extundo.com>
69663
69664         * modules/inet_ntop (Depends-on): Depend on sys_socket.
69665
69666 2006-01-20  Simon Josefsson  <jas@extundo.com>
69667
69668         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
69669
69670 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69671
69672         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
69673         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
69674         Suggested by Bruno Haible.
69675
69676 2006-01-20  Karl Berry  <karl@gnu.org>
69677
69678         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
69679         until changes propagate, I guess.
69680
69681 2006-01-19  Simon Josefsson  <jas@extundo.com>
69682
69683         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
69684
69685 2006-01-19  Simon Josefsson  <jas@extundo.com>
69686
69687         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
69688
69689 2006-01-19  Simon Josefsson  <jas@extundo.com>
69690
69691         * gnulib-tool: Set check_PROGRAMS.
69692
69693         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69694         modules/des-tests, modules/gc-arcfour-tests,
69695         modules/gc-arctwo-tests, modules/gc-des-tests,
69696         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69697         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69698         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69699         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69700         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69701         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
69702         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
69703         test_*_SOURCES.
69704
69705 2006-01-18  Simon Josefsson  <jas@extundo.com>
69706
69707         * modules/socklen (Depends-on): Depend on sys_socket.
69708
69709 2006-01-18  Simon Josefsson  <jas@extundo.com>
69710
69711         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69712         modules/des-tests, modules/gc-arcfour-tests,
69713         modules/gc-arctwo-tests, modules/gc-des-tests,
69714         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69715         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69716         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69717         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69718         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69719         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
69720         $(EXEEXT) to automake TESTS variable, for mingw32.
69721
69722 2006-01-17  Simon Josefsson  <jas@extundo.com>
69723
69724         * modules/socklen (Include): Need sys/socket.h.
69725
69726 2006-01-17  Bruno Haible  <bruno@clisp.org>
69727
69728         * modules/ssize_t (Include): Add <sys/types.h>.
69729
69730 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
69731
69732         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
69733         it's not portable and it doesn't work with cross-compiles.
69734         Problem reported by Bruno Haible.  Fix missing-$ typo in
69735         'test "gl_cv_ignore_unused_libraries" ...' that prevented
69736         -zignore from being used with Sun's C compiler.
69737
69738 2006-01-12  Simon Josefsson  <jas@extundo.com>
69739
69740         * lib/base64.c: Fix warning, reported by Bruno Haible
69741         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
69742
69743 2006-01-12  Bruno Haible  <bruno@clisp.org>
69744
69745         * modules/ldd: New file.
69746         * build-aux/ldd.sh.in: New file.
69747         * MODULES.html.sh (Support for building libraries and executables): Add
69748         ldd.
69749
69750 2006-01-12  Bruno Haible  <bruno@clisp.org>
69751
69752         * m4/ldd.m4: New file.
69753
69754 2006-01-12  Bruno Haible  <bruno@clisp.org>
69755
69756         * gnulib-tool (func_import, func_create_testdir): Don't go into an
69757         endless loop while replacing $auxdir with build-aux.
69758
69759 2006-01-11  Simon Josefsson  <jas@extundo.com>
69760
69761         * lib/stdint_.h (SIZE_MAX): Add missing (.
69762
69763 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
69764
69765         Sync from coreutils.
69766         * lib/md5.c: Fix commentary typos.
69767         (alignof, UNALIGNED_P): No need for a GCC-specific version.
69768         * lib/md5.h (__attribute__): Remove; unused.
69769         * lib/sha1.c: Fix commentary to match md5 better.
69770         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
69771         so that we don't need to worry about alignment.  All uses changed.
69772         This merges the 2005-10-28 md5 change into sha1.
69773
69774 2006-01-11  Jim Meyering  <jim@meyering.net>
69775
69776         Sync from coreutils.
69777         * lib/md5.c (OP): Fix spacing.
69778
69779 2006-01-11  Bruno Haible  <bruno@clisp.org>
69780
69781         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69782         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
69783         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
69784
69785 2006-01-11  Bruno Haible  <bruno@clisp.org>
69786
69787         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69788         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
69789         the "early" section as well.
69790
69791 2006-01-11  Bruno Haible  <bruno@clisp.org>
69792
69793         Avoid "ar: no archive members specified" error on MacOS X.
69794         * gnulib-tool (func_modules_add_dummy): New function.
69795         (func_import, func_create_testdir): Invoke it.
69796
69797 2006-01-11  Bruno Haible  <bruno@clisp.org>
69798
69799         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
69800         with $auxdir in AC_CONFIG_FILES statements.
69801
69802 2006-01-11  Bruno Haible  <bruno@clisp.org>
69803
69804         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69805         Initialize also noinst_HEADERS to empty.
69806
69807 2006-01-11  Bruno Haible  <bruno@clisp.org>
69808
69809         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
69810         variables.
69811         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
69812         autoreconf.
69813
69814 2006-01-11  Bruno Haible  <bruno@clisp.org>
69815
69816         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
69817         overridable by the user.
69818         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69819
69820 2006-01-10  Simon Josefsson  <jas@extundo.com>
69821
69822         * modules/sys_socket: New file.
69823
69824 2006-01-10  Simon Josefsson  <jas@extundo.com>
69825
69826         * m4/sys_socket_h.m4: New file.
69827
69828 2006-01-10  Simon Josefsson  <jas@extundo.com>
69829
69830         * lib/socket_.h: New file.
69831
69832 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69833
69834         * modules/readutmp (Maintainer): Add myself.
69835
69836 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69837
69838         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
69839         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
69840         People who are still concerned with buggy memcmp implementations
69841         can invoke gl_FUNC_MEMCMP themselves.
69842
69843 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69844
69845         * lib/regex_internal.h (BITSET_WORD_BITS):
69846         Work around a bug in 64-bit PGC (before version 6.1-2), where the
69847         preprocessor mishandles large unsigned values as if they were signed.
69848         Problem reported by Claudio Fontana in
69849         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
69850
69851 2006-01-10  Jim Meyering  <jim@meyering.net>
69852
69853         Avoid the double-free (first in fts_read, second in fts_close) that
69854         would occur when an `active' directory is made inaccessible (e.g.,
69855         via chmod a-x) during a traversal.
69856         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69857         before returning.  Reproduce this failure by
69858         mkdir -p a/b; cd a; chmod a-x . b
69859         Reported by Stavros Passas.
69860
69861         Sync from coreutils.
69862         * lib/sha1.c: Tweak grammar in a comment.
69863
69864 2006-01-10  Jim Meyering  <jim@meyering.net>
69865
69866         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
69867         Patch by Joerg Sonnenberger.
69868
69869 2006-01-10  Bruno Haible  <bruno@clisp.org>
69870
69871         * modules/readutmp: Depend on module free.
69872         * modules/strtok_r: Depend on module restrict.
69873
69874 2006-01-10  Bruno Haible  <bruno@clisp.org>
69875
69876         * modules/gettext (configure.ac): Add an invocation of
69877         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
69878
69879 2006-01-10  Bruno Haible  <bruno@clisp.org>
69880
69881         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
69882         Reported by Werner Lemberg <wl@gnu.org>.
69883
69884 2006-01-10  Bruno Haible  <bruno@clisp.org>
69885
69886         * lib/localcharset.c: Update from GNU gettext.
69887
69888 2006-01-10  Bruno Haible  <bruno@clisp.org>
69889
69890         * lib/argp.h (__const): Remove macro. Use const instead.
69891         * lib/argp-fmtstream.h (__const): Likewise.
69892         * lib/glob_.h (__const): Remove macro.
69893         * lib/glob-libc.h: Use const instead of __const.
69894
69895 2006-01-10  Bruno Haible  <bruno@clisp.org>
69896
69897         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
69898         variable.
69899         Needed to avoid an automake error regarding the 'gettext' module.
69900
69901 2006-01-09  Simon Josefsson  <jas@extundo.com>
69902
69903         * modules/inet_ntop (Depends-on): Add restrict.
69904
69905 2006-01-09  Simon Josefsson  <jas@extundo.com>
69906
69907         * modules/gc-rijndael-tests (License): Put under LGPL.
69908
69909         * modules/gc-des-tests (License): Likewise.
69910
69911         * modules/gc-arcfour-tests (License): Likewise.
69912
69913         * modules/gc-arctwo-tests (License): Likewise.
69914
69915         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69916
69917         * modules/gc-hmac-sha1-tests (Files): Likewise.
69918
69919         * modules/gc-hmac-md5-tests (License): Likewise.
69920
69921         * modules/gc-sha1-tests (License): Likewise.
69922
69923         * modules/gc-md5-tests (License): Likewise.
69924
69925         * modules/gc-md4-tests (License): Likewise.
69926
69927         * modules/gc-md2-tests (License): Likewise.
69928
69929         * modules/gc-tests (License): Likewise.
69930
69931         * modules/des-tests (License): Likewise.
69932
69933         * modules/md4-tests (License): Likewise.
69934
69935         * modules/md2-tests (License): Likewise.
69936
69937 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69938
69939         Sync from coreutils:
69940
69941         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69942         * modules/lib-ignore: New file.
69943         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69944         chdir-safer.m4, lchmod.m4.
69945         * modules/openat: Add mkdirat.c, openat-priv.h.
69946
69947 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69948
69949         Sync from coreutils.
69950         * m4/lib-ignore.m4: New file.
69951         * m4/lchmod.m4: New file.
69952
69953 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69954
69955         Sync from coreutils.
69956         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69957         for write access: POSIX says that must fail.
69958         * lib/fts.c (diropen): Likewise.
69959         * lib/save-cwd.c (save_cwd): Likewise.
69960         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69961         well, for minor improvements on hosts that lack O_DIRECTORY.
69962         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69963         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69964         Fall back on chown if open failed with EACCES.
69965
69966         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69967         Report an error at compile-time if only a 1-second nominal clock
69968         resolution is found.
69969
69970         * lib/lchmod.h: New file.
69971         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69972         (make_dir_parents): Use lchown rather than chown, and
69973         lchmod rather than chmod.
69974
69975         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69976         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69977         "proc" reported by n0dalus.
69978
69979         * lib/mountlist.c: Include <limits.h>.
69980         (dev_from_mount_options)
69981         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69982         New function.  It no longer assumes "dev=" has the System V meaning
69983         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69984         (read_file_system_list)
69985         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69986         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69987         dev= in that case.
69988
69989         * lib/posixtm.h (PDS_PRE_2000): New macro.
69990         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69991         allow_century.  All usages changed.  Reject dates outside the range
69992         1969-1999 if PDS_PRE_2000 is used.
69993
69994 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69995
69996         Sync from coreutils.
69997         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69998         (Time of day items): Mention the possibility of leap seconds.
69999         Problem reported by Dr. David Alan Gilbert.
70000
70001 2006-01-09  Jim Meyering  <jim@meyering.net>
70002
70003         Sync from coreutils.
70004
70005         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
70006
70007         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
70008
70009         * lib/modechange.c (mode_compile): Reject an invalid mode string
70010         that starts with an octal digit.  From Andreas Gruenbacher.
70011
70012         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
70013         and dup to open_safer and dup_safer, respectively.
70014         (openat_permissive): Fix typo in comment.
70015
70016         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
70017         "gettext.h"; either no longer needed or are guaranteed by openat.h.
70018         (_): Remove; no longer needed.
70019         (openat): Renamed from rpl_openat; no need for rpl_openat
70020         since openat.h renames openat for us.
70021         Replace most of the body with a call to openat_permissive,
70022         to avoid duplicate code.
70023         Port to (probably hypothetical) environments were mode_t is
70024         wider than int.
70025         (openat_permissive): Require mode arg, so that we can check
70026         types better.  Put it just after flags.  Change cwd failure
70027         indicator from pointer-to-bool to pointer-to-errno-value.
70028         All callers changed.
70029         Invoke openat_save_fail and/or openat_restore_fail if
70030         cwd_errno is null, so that openat can call us.
70031         (openat_permissive, fdopendir, fstatat, unlinkat):
70032         Simplify errno handling to avoid some duplicate code,
70033         as it's OK to set errno on success.
70034         * lib/openat.h: Revamp code so that function macros depend on
70035         __OPENAT_PREFIX only, not also on AT_FDCWD.
70036         (openat_ro): Remove.  Caller changed to use openat_permissive.
70037         (openat_permissive): Now a macro, if not a function.
70038         (openat_restore_fail, openat_save_fail): Now always functions,
70039         since mkdirat needs them even if __OPENAT_PREFIX is defined.
70040
70041         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
70042         and openat.c.
70043         * lib/mkdirat.c: Include openat-priv.h.
70044         Remove definitions of macros defined therein.
70045         * lib/openat.c: Likewise.
70046
70047         * lib/mkdirat.c (mkdirat): New file and function.
70048         * lib/openat.h (mkdirat): Declare.
70049
70050         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
70051
70052         * lib/openat.h (openat_permissive): Declare.
70053         (openat_ro): Define.
70054
70055         * lib/openat.c (EXPECTED_ERRNO): New macro.
70056         (openat_permissive): New function -- used in remove.c rewrite.
70057         (all functions): Set errno just before returning, only if there
70058         was an actual failure.
70059         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
70060
70061         Emulate openat-family functions using Linux's procfs, if possible.
70062         Idea and some code based on Ulrich Drepper's glibc changes.
70063
70064         * lib/openat.c: (BUILD_PROC_NAME): New macro.
70065         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
70066         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
70067         before falling back on save_cwd and restore_cwd.
70068         (fdopendir, fstatat, unlinkat): Likewise.
70069
70070         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
70071         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
70072
70073         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
70074         as second argument to va_arg.  Otherwise, some versions of gcc
70075         warn that `if this code is reached, the program will abort'.
70076
70077 2006-01-09  Jim Meyering  <jim@meyering.net>
70078
70079         Sync from coreutils.
70080         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
70081         Require openat-priv.h.
70082
70083 2006-01-09  Bruno Haible  <bruno@clisp.org>
70084
70085         * modules/strnlen (Include): Use strnlen.h.
70086
70087 2006-01-09  Bruno Haible  <bruno@clisp.org>
70088
70089         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
70090
70091 2006-01-09  Bruno Haible  <bruno@clisp.org>
70092
70093         * lib/sysexit_.h (EX_OK): New macro.
70094         Suggested by Martin Lambers <marlam@marlam.de>.
70095
70096 2006-01-09  Bruno Haible  <bruno@clisp.org>
70097
70098         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
70099         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
70100
70101 2006-01-09  Bruno Haible  <bruno@clisp.org>
70102
70103         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
70104         numbers.
70105
70106 2006-01-09  Bruno Haible  <bruno@clisp.org>
70107
70108         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
70109         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
70110         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
70111         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
70112
70113 2006-01-09  Bruno Haible  <bruno@clisp.org>
70114
70115         * build-aux/javacomp.sh.in: New file, moved from lib/.
70116         * modules/javacomp-script (Files): Update.
70117         (configure.ac): Add AC_CONFIG_FILES invocation.
70118         (EXTRA_DIST): Remove variable.
70119
70120         * build-aux/javaexec.sh.in: New file, moved from lib/.
70121         * modules/javaexec (Files): Update.
70122         (configure.ac): Add AC_CONFIG_FILES invocation.
70123         (EXTRA_DIST): Remove javaexec.sh.in.
70124
70125         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
70126         * modules/csharpcomp-script (Files): Update.
70127         (configure.ac): Add AC_CONFIG_FILES invocation.
70128         (EXTRA_DIST): Remove variable.
70129
70130         * build-aux/csharpexec.sh.in: New file, moved from lib/.
70131         * modules/csharpexec (Files): Update.
70132         (configure.ac): Add AC_CONFIG_FILES invocation.
70133         (EXTRA_DIST): Remove csharpexec.sh.in.
70134
70135 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70136
70137         Sync from coreutils.
70138
70139         Add POSIX ACL support
70140         * lib/acl.h (copy_acl, set_acl): Add declarations.
70141         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
70142         systems other than Linux.
70143         (chmod_or_fchmod): New function: use fchmod when possible,
70144         and chmod otherwise.
70145         (file_has_acl): Add a POSIX ACL implementation, with a
70146         Linux-specific subcase.
70147         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
70148         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
70149         acls are unsupported.
70150         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
70151         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
70152         are unsupported.
70153
70154 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70155
70156         Sync from coreutils.
70157         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
70158
70159 2006-01-07  Bruno Haible  <bruno@clisp.org>
70160
70161         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
70162         gl_EARLY.
70163
70164 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70165
70166         * lib/strftime.c (tzname): Don't declare if it is already #defined.
70167         Problem reported for Mingw by Mark Junker.
70168
70169 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70170
70171         * README: Gnulib normally doesn't generate a tarball.
70172
70173 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
70174
70175         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
70176         long int, not int, for nanosecond counts, so that people who are
70177         used to POSIX struct timespec won't be surprised.  Reported by Jim
70178         Meyering.
70179
70180 2005-12-28  Bruno Haible  <bruno@clisp.org>
70181
70182         * build-aux/config.rpath: Update from GNU gettext.
70183
70184 2005-12-16  Jim Meyering  <jim@meyering.net>
70185
70186         * modules/fprintftime: New module.
70187         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
70188
70189 2005-12-16  Jim Meyering  <jim@meyering.net>
70190
70191         * m4/fprintftime.m4: New file.
70192
70193 2005-12-16  Jim Meyering  <jim@meyering.net>
70194
70195         * lib/fprintftime.c, lib/fprintftime.h: New files.
70196
70197 2005-12-15  Simon Josefsson  <jas@extundo.com>
70198
70199         * modules/socklen (configure.ac): Fix M4 macro name, to align with
70200         new m4/socklen.m4.
70201
70202 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70203
70204         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
70205         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
70206
70207 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70208
70209         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
70210         * lib/argp-help.c (fill_in_uparams): Check if the constructed
70211         struct uparams is valid. Fall back to the default values if it is
70212         not.
70213
70214 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70215
70216         * modules/argp (Files): Add argp-pin.c
70217         (Depends-on): dirname
70218         (lib_SOURCES): Add argp-pin.c
70219
70220 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70221
70222         * m4/argp.m4:  Check if program_invocation_name and
70223         program_invocation_short_name are declared and define appropriate
70224         macros if they are not.
70225
70226 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70227
70228         * lib/argp-help.c (__argp_base_name): New function
70229         (__argp_short_program_name): Rewrite using __argp_base_name
70230         * lib/argp-namefrob.h: Define program_invocation_name and
70231         program_invocation_short_name if requested
70232         (__argp_base_name): Add prototype
70233         * lib/argp-parse.c (argp_def): Use gettext wrappers
70234         (argp_default_parser): Use __argp_base_name
70235         * lib/argp-pin.c: New file. Defines program_invocation_name and
70236         program_invocation_short_name on systems that lack them.
70237
70238 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70239
70240         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
70241         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70242         porting problem reported by Georg Schwarz in
70243         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70244
70245 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70246
70247         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
70248         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70249         porting problem reported by Georg Schwarz in
70250         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70251
70252 2005-12-05  Bruno Haible  <bruno@clisp.org>
70253
70254         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
70255         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
70256         Reported by Mark Junker <mjscod@gmx.de>.
70257
70258 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
70259
70260         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
70261         Use implementation from Albert Chin, with some
70262         comments/corrections by Stepan Kasal and myself.
70263
70264 2005-12-02  Bruno Haible  <bruno@clisp.org>
70265
70266         * gnulib-tool (func_import): Accept GPLed build tool modules when
70267         --lgpl is given.
70268         * modules/csharpcomp-script: New file.
70269         * modules/csharpcomp: Depend on it.
70270         * modules/javacomp-script: New file.
70271         * modules/javacomp: Depend on it.
70272         Suggested by Simon Josefsson.
70273
70274 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
70275
70276         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
70277         statement, to work around an HP-UX 10.20 compiler bug reported by
70278         Peter O'Gorman.
70279
70280 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70281
70282         * modules/savedir (Depends-on): Add openat.
70283
70284 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70285
70286         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
70287         (uintmax_t) [defined uintmax_t]: Do not declare.
70288         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
70289         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
70290         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
70291         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
70292         sake of portability to weird hosts that C allows (though we don't
70293         know of any practical examples).
70294
70295         * lib/savedir.h (fdsavedir): New decl.
70296         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
70297         contains most of the former guts of savedir.
70298         (savedir): Use savedirstream.
70299         Include "openat.h".
70300
70301 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70302
70303         * modules/obstack (Files): Add m4/ulonglong.m4.
70304         Problem reported by Davide Angelocola.
70305
70306 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
70307
70308         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
70309         coreutils no longer futzes with rounding modes.
70310
70311 2005-11-14  Jim Meyering  <jim@meyering.net>
70312
70313         * lib/mkstemp-safer.c: Include <config.h>, required for possible
70314         replacement of mkstemp.
70315
70316 2005-11-10  Simon Josefsson  <jas@extundo.com>
70317
70318         * lib/readline.c: Remove EOL.
70319
70320 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70321
70322         * modules/gethrxtime (Depends-on): Add gettime.
70323
70324 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70325
70326         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
70327         or gettimeofday; no longer needed.
70328
70329 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70330
70331         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
70332         time business.
70333         (gethrxtime) [! (HAVE_NANOUPTIME
70334         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
70335         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
70336         our own approximation.
70337
70338 2005-11-08  Eric Blake  <ebb9@byu.net>
70339
70340         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70341
70342 2005-11-08  Eric Blake  <ebb9@byu.net>
70343
70344         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70345
70346 2005-11-04  Bruno Haible  <bruno@clisp.org>
70347
70348         * gnulib-tool: Implement --update mode.
70349
70350 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70351
70352         Fix porting problem reported by Theodoros V. Kalamatianos.
70353         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
70354         Don't assume that futimes failing means we must fail.
70355
70356 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70357
70358         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
70359         variables to suggest the intended function of the PATH_MAX check.
70360
70361 2005-10-30  Kean Johnston  <jkj@sco.com>
70362
70363         Trivial changes to support SCO systems.
70364         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
70365         as PATH_MAX.
70366         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
70367         where __ptr is null when no I/O is pending.
70368
70369 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70370
70371         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
70372         leave errno alone.  Problem reported by Dmitry V. Levin.
70373
70374 2005-10-28  Simon Josefsson  <jas@extundo.com>
70375
70376         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
70377         Test more.
70378
70379         * tests/test-gc-md2.c, tests/test-md2.c: New files.
70380
70381         * modules/md2, modules/md2-tests: New files.
70382
70383 2005-10-28  Simon Josefsson  <jas@extundo.com>
70384
70385         * m4/inet_ntop.m4: More tests.
70386
70387         * m4/gc-md2.m4, md2.m4: New file.
70388
70389 2005-10-28  Simon Josefsson  <jas@extundo.com>
70390
70391         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
70392         "restrict" keywords, as per POSIX.  Protect the function
70393         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
70394         Don't use K&R prototypes.  Check the sprintf return values.
70395         Re-define EAFNOSUPPORT if not present.  Indent.
70396
70397         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
70398         suggested by Bruno Haible <bruno@clisp.org>.
70399
70400         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
70401
70402         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
70403
70404         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
70405         libgcrypt).
70406
70407         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
70408
70409         * lib/md2.h, lib/md2.c: New files.
70410
70411 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
70412
70413         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
70414         errno alone.  Problem reported by Frederic Jolliton.
70415
70416 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70417
70418         * modules/verify (License): Change from GPL to LGPL.  This is a
70419         tiny module and there are apparently near-equivalents that are
70420         under the BSD license.
70421
70422 2005-10-24  Simon Josefsson  <jas@extundo.com>
70423
70424         * modules/sha1: Relicense to LGPL.
70425
70426 2005-10-24  Simon Josefsson  <jas@extundo.com>
70427
70428         * lib/md4.h: Shrink buffer size, now that we changed the type.
70429
70430 2005-10-23  Simon Josefsson  <jas@extundo.com>
70431
70432         * gnulib-tool (func_import): Fix --tests-base.
70433
70434 2005-10-22  Simon Josefsson  <jas@extundo.com>
70435
70436         * modules/arcfour (Depends-on): Need stdint.
70437
70438 2005-10-22  Simon Josefsson  <jas@extundo.com>
70439
70440         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
70441         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
70442
70443 2005-10-22  Simon Josefsson  <jas@extundo.com>
70444
70445         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
70446         suggested by Bruno Haible <bruno@clisp.org>.
70447
70448 2005-10-22  Simon Josefsson  <jas@extundo.com>
70449
70450         * lib/crc.h: Include stddef.h, for size_t.
70451
70452 2005-10-22  Simon Josefsson  <jas@extundo.com>
70453
70454         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
70455         arcfour_context struct (simplify test vector testing in GNU
70456         Shishi).
70457
70458 2005-10-21  Simon Josefsson  <jas@extundo.com>
70459
70460         * modules/des, modules/des-tests: New files.
70461
70462         * modules/gc-des, modules/gc-des-tests: New files.
70463
70464         * tests/test-des.c, tests/test-gc-des.c: New file.
70465
70466 2005-10-21  Simon Josefsson  <jas@extundo.com>
70467
70468         * modules/arctwo, modules/arctwo-tests: New files.
70469
70470         * tests/test-arctwo.c: New file.
70471
70472         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
70473
70474         * tests/test-gc-arctwo.c: New file.
70475
70476 2005-10-21  Simon Josefsson  <jas@extundo.com>
70477
70478         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
70479         Bruno Haible <bruno@clisp.org>.
70480
70481         * m4/gc-des.m4: New file.
70482
70483 2005-10-21  Simon Josefsson  <jas@extundo.com>
70484
70485         * m4/arctwo.m4: New file.
70486
70487         * m4/gc-arctwo.m4: New file.
70488
70489 2005-10-21  Simon Josefsson  <jas@extundo.com>
70490
70491         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
70492         block.
70493
70494 2005-10-21  Simon Josefsson  <jas@extundo.com>
70495
70496         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
70497         <bruno@clisp.org>.
70498
70499         * lib/hmac-sha1.c (hmac_sha1): Likewise.
70500
70501         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
70502         Bruno Haible <bruno@clisp.org>.
70503
70504         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
70505         <bruno@clisp.org>.
70506
70507 2005-10-21  Simon Josefsson  <jas@extundo.com>
70508
70509         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
70510
70511 2005-10-21  Simon Josefsson  <jas@extundo.com>
70512
70513         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
70514
70515 2005-10-21  Simon Josefsson  <jas@extundo.com>
70516
70517         * lib/des.h, lib/des.c: New files.
70518
70519         * lib/gc-gnulib.c: Support DES.c
70520
70521 2005-10-21  Simon Josefsson  <jas@extundo.com>
70522
70523         * lib/arctwo.h, lib/arctwo.c: New files.
70524
70525         * lib/gc-gnulib.c: Support ARCTWO.
70526
70527 2005-10-21  Simon Josefsson  <jas@extundo.com>
70528
70529         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
70530         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70531
70532 2005-10-21  Simon Josefsson  <jas@extundo.com>
70533
70534         * gnulib-tool (func_import, func_create_testdir): Define automake
70535         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
70536         Makefile.am snippet),
70537         suggested by Bruno Haible <bruno@clisp.org>.
70538
70539         * modules/gc (Makefile.am): Use it.
70540
70541 2005-10-21  Bruno Haible  <bruno@clisp.org>
70542
70543         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
70544         patch.
70545
70546 2005-10-19  Simon Josefsson  <jas@extundo.com>
70547
70548         * tests/test-gc-rijndael.c: New file.
70549
70550         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
70551
70552 2005-10-19  Simon Josefsson  <jas@extundo.com>
70553
70554         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
70555         interface too.
70556
70557 2005-10-19  Simon Josefsson  <jas@extundo.com>
70558
70559         * tests/test-gc-arcfour.c: New file.
70560
70561         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
70562
70563 2005-10-19  Simon Josefsson  <jas@extundo.com>
70564
70565         * modules/gc-md4, modules/gc-md4-tests: New file.
70566
70567         * tests/test-gc-md4.c: New file.
70568
70569 2005-10-19  Simon Josefsson  <jas@extundo.com>
70570
70571         * m4/gc-md4.m4: New file.
70572
70573 2005-10-19  Simon Josefsson  <jas@extundo.com>
70574
70575         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
70576         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
70577         <kasal@ucw.cz>.
70578
70579 2005-10-19  Simon Josefsson  <jas@extundo.com>
70580
70581         * m4/gc-arcfour.m4: New file.
70582
70583         * m4/gc-rijndael.m4: New file.
70584
70585 2005-10-19  Simon Josefsson  <jas@extundo.com>
70586
70587         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
70588
70589 2005-10-19  Simon Josefsson  <jas@extundo.com>
70590
70591         * lib/gc-gnulib.c: Support ARCFOUR.
70592
70593 2005-10-19  Simon Josefsson  <jas@extundo.com>
70594
70595         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
70596         support.
70597
70598         * lib/gc.h: Add ECB enum type.
70599
70600         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
70601
70602 2005-10-18  Simon Josefsson  <jas@extundo.com>
70603
70604         * tests/test-md5.c: New file.
70605
70606         * modules/md5-tests: New file.
70607
70608 2005-10-18  Simon Josefsson  <jas@extundo.com>
70609
70610         * tests/test-md4.c: New file.
70611
70612         * modules/md4, modules/md4-tests: New files.
70613
70614 2005-10-18  Simon Josefsson  <jas@extundo.com>
70615
70616         * m4/md4.m4: New file.
70617
70618 2005-10-18  Simon Josefsson  <jas@extundo.com>
70619
70620         * lib/md4.h, lib/md4.c: New files, based on md5.?.
70621
70622 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
70623
70624         * gnulib-tool (func_create_testdir): Omit the second check whether
70625         BUILT_SOURCES in nonempty.
70626
70627 2005-10-17  Simon Josefsson  <jas@extundo.com>
70628
70629         * tests/test-rijndael.c: New file.
70630
70631 2005-10-17  Simon Josefsson  <jas@extundo.com>
70632
70633         * modules/sha1: Depend on stdint instead of md5.
70634
70635         * modules/md5: Depend on stdint, remove uint32_t.
70636
70637 2005-10-17  Simon Josefsson  <jas@extundo.com>
70638
70639         * modules/gc-sha1-tests: New file.
70640
70641         * tests/test-gc-sha1.c: New file.
70642
70643 2005-10-17  Simon Josefsson  <jas@extundo.com>
70644
70645         * m4/md5.m4: Remove call to uint32_t.m4.
70646
70647 2005-10-17  Simon Josefsson  <jas@extundo.com>
70648
70649         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
70650
70651         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
70652         md5.h.
70653
70654         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
70655
70656         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
70657
70658 2005-10-17  Simon Josefsson  <jas@extundo.com>
70659
70660         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
70661
70662 2005-10-17  Simon Josefsson  <jas@extundo.com>
70663
70664         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
70665
70666 2005-10-17  Simon Josefsson  <jas@extundo.com>
70667
70668         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
70669
70670         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
70671
70672 2005-10-17  Bruno Haible  <bruno@clisp.org>
70673
70674         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
70675         that it can also be used in a test.
70676
70677 2005-10-16  Bruno Haible  <bruno@clisp.org>
70678
70679         * gnulib-tool (func_emit_tests_Makefile_am): Also define
70680         TESTS_ENVIRONMENT, so that individual tests can augment it.
70681
70682         * gnulib-tool (func_create_testdir): Use an intermediate target for
70683         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
70684         macros, like $(ALLOCA_H), which cannot be passed through the command
70685         line.
70686
70687 2005-10-15  Simon Josefsson  <jas@extundo.com>
70688
70689         * modules/rijndael-tests: New file.
70690
70691         * modules/rijndael: New file.
70692
70693 2005-10-15  Simon Josefsson  <jas@extundo.com>
70694
70695         * m4/rijndael.m4: New file.
70696
70697 2005-10-15  Simon Josefsson  <jas@extundo.com>
70698
70699         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
70700
70701         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
70702
70703 2005-10-14  Simon Josefsson  <jas@extundo.com>
70704
70705         * tests/test-arcfour.c: New file.
70706
70707         * modules/arcfour, modules/arcfour-tests: New files.
70708
70709 2005-10-14  Simon Josefsson  <jas@extundo.com>
70710
70711         * m4/arcfour.m4: New file.
70712
70713 2005-10-14  Simon Josefsson  <jas@extundo.com>
70714
70715         * lib/arcfour.h, lib/arcfour.c: New files.
70716
70717 2005-10-14  Roland McGrath  <roland@redhat.com>
70718
70719         Import from libc.  [BZ #1331]
70720         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
70721         macro argument.
70722         Reported by Matej Vela <vela@debian.org>.
70723
70724 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70725
70726         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
70727         include <wchar.h>; no longer needed.
70728
70729 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70730
70731         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
70732
70733 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
70734         and  Ulrich Drepper  <drepper@redhat.com>
70735
70736         Import from libc.
70737         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
70738         instead of inline stream orientation test and two separate
70739         function calls.  Pay no attention to USE_IN_LIBIO.
70740
70741 2005-10-13  Simon Josefsson  <jas@extundo.com>
70742
70743         * modules/gc-hmac-md5-tests: New file.
70744
70745         * tests/test-gc-hmac-sha1.c: New file.
70746
70747         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
70748
70749         * modules/gc-hmac-md5-tests: New file.
70750
70751         * tests/test-gc-md5.c: New file.
70752
70753         * modules/gc-md5-tests: New file.
70754
70755 2005-10-13  Simon Josefsson  <jas@extundo.com>
70756
70757         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
70758         Move memory allocation outside of loop.
70759
70760 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
70761
70762         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
70763         intermediate directory is in a read-only file system.  Problem
70764         reported by Eric Blake.
70765
70766 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
70767
70768         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
70769
70770 2005-10-12  Simon Josefsson  <jas@extundo.com>
70771
70772         * tests/test-hmac-sha1.c: New file.
70773
70774         * modules/hmac-sha1-tests: New file.
70775
70776         * modules/hmac-sha1: New file.
70777
70778 2005-10-12  Simon Josefsson  <jas@extundo.com>
70779
70780         * modules/gc-sha1: New file.
70781
70782 2005-10-12  Simon Josefsson  <jas@extundo.com>
70783
70784         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
70785
70786         * tests/test-gc-pbkdf2-sha1.c: New file.
70787
70788 2005-10-12  Simon Josefsson  <jas@extundo.com>
70789
70790         * modules/gc-md5, modules/gc-hmac-md5: New files.
70791
70792         * modules/gc (Files): Remove md5, memxor and hmac files.
70793
70794 2005-10-12  Simon Josefsson  <jas@extundo.com>
70795
70796         * m4/gc-pbkdf2-sha1.m4: New file.
70797
70798         * m4/gc-hmac-sha1.m4: New file.
70799
70800         * m4/gc-sha1: New file.
70801
70802         * m4/hmac-sha1.m4: New file.
70803
70804 2005-10-12  Simon Josefsson  <jas@extundo.com>
70805
70806         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
70807
70808         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
70809
70810 2005-10-12  Simon Josefsson  <jas@extundo.com>
70811
70812         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
70813         suggested by Bruno Haible <bruno@clisp.org>.
70814
70815 2005-10-12  Simon Josefsson  <jas@extundo.com>
70816
70817         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
70818
70819 2005-10-12  Simon Josefsson  <jas@extundo.com>
70820
70821         * lib/gc-pbkdf2-sha1.c: New file.
70822
70823         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
70824
70825 2005-10-12  Simon Josefsson  <jas@extundo.com>
70826
70827         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
70828
70829         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
70830
70831 2005-10-12  Simon Josefsson  <jas@extundo.com>
70832
70833         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
70834         GC_USE_HMAC_MD5, respectively.
70835
70836         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
70837         (gc_md5): Fix typo.
70838
70839         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
70840
70841         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
70842
70843         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
70844
70845 2005-10-12  Bruno Haible  <bruno@clisp.org>
70846
70847         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
70848         Reported by Stepan Kasal <kasal@ucw.cz>.
70849
70850 2005-10-11  Simon Josefsson  <jas@extundo.com>
70851
70852         * tests/test-crc.c: New file.
70853
70854         * modules/crc, modules/crc-tests: New files.
70855
70856 2005-10-11  Simon Josefsson  <jas@extundo.com>
70857
70858         * m4/crc.m4: New file.
70859
70860 2005-10-11  Simon Josefsson  <jas@extundo.com>
70861
70862         * lib/gc.h: Add gc_hash and gc_hash_buffer.
70863
70864         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
70865
70866         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
70867
70868 2005-10-11  Simon Josefsson  <jas@extundo.com>
70869
70870         * lib/crc.h, lib/crc.c: New files.
70871
70872         * lib/gc.h (gc_hash_buffer): Add doc.
70873
70874 2005-10-11  Bruno Haible  <bruno@clisp.org>
70875
70876         * modules/c-strcasestr: New file.
70877         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
70878
70879 2005-10-11  Bruno Haible  <bruno@clisp.org>
70880
70881         * modules/c-strcase: New file.
70882         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
70883
70884 2005-10-11  Bruno Haible  <bruno@clisp.org>
70885
70886         * lib/strcasecmp.c: Include limits.h.
70887         (strcasecmp): Avoid integer overflow on exotic platforms.
70888         * lib/strncasecmp.c: Include limits.h.
70889         (strncasecmp): Avoid integer overflow on exotic platforms.
70890         Reported by Paul Eggert.
70891
70892 2005-10-11  Bruno Haible  <bruno@clisp.org>
70893
70894         * lib/c-strcasestr.h: New file, from GNU gettext.
70895         * lib/c-strcasestr.c: New file, from GNU gettext.
70896
70897 2005-10-11  Bruno Haible  <bruno@clisp.org>
70898
70899         * lib/c-strcase.h: New file, from GNU gettext.
70900         * lib/c-strcasecmp.c: New file, from GNU gettext.
70901         * lib/c-strncasecmp.c: New file, from GNU gettext.
70902
70903 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70904
70905         * modules/mempcpy (License): GPL -> LGPL.
70906         * modules/strchrnul (License): Likewise.
70907         * modules/sysexits (License): Likewise.
70908
70909 2005-10-08  Simon Josefsson  <jas@extundo.com>
70910
70911         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70912
70913 2005-10-07  Simon Josefsson  <jas@extundo.com>
70914
70915         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70916
70917 2005-10-06  Simon Josefsson  <jas@extundo.com>
70918
70919         * tests/test-hmac-md5.c: New file.
70920
70921         * modules/hmac-md5-tests: New file.
70922
70923         * modules/hmac-md5: New file.
70924
70925 2005-10-06  Simon Josefsson  <jas@extundo.com>
70926
70927         * m4/hmac-md5.m4: New file.
70928
70929         * m4/memxor.m4: Require gl_C_RESTRICT.
70930
70931 2005-10-06  Simon Josefsson  <jas@extundo.com>
70932
70933         * lib/memxor.c (memxor): Avoid casts and warnings.
70934
70935 2005-10-06  Simon Josefsson  <jas@extundo.com>
70936
70937         * lib/hmac-md5.c: New file.
70938
70939         * lib/hmac.h: New file.
70940
70941 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70942
70943         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70944         promotes to int, not unsigned int, to catch the AIX 5.3
70945         compiler bug.
70946
70947 2005-10-05  Simon Josefsson  <jas@extundo.com>
70948
70949         * modules/memxor: New file.
70950
70951         * modules/iconv (Files): Move config.rpath to havelib, it is used
70952         there.
70953
70954         * modules/havelib (Files): Add config.rpath.
70955
70956 2005-10-05  Simon Josefsson  <jas@extundo.com>
70957
70958         * m4/memxor.m4: New file.
70959
70960 2005-10-05  Simon Josefsson  <jas@extundo.com>
70961
70962         * lib/memxor.c (memxor): Fix compiler error.
70963
70964         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70965         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70966
70967         * lib/memxor.h, lib/memxor.c: New files.
70968
70969         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70970         we assume all systems have it, suggested by Jim Meyering
70971         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70972         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70973         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70974         same reasons.
70975
70976 2005-10-05  Simon Josefsson  <jas@extundo.com>
70977
70978         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70979
70980 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70981
70982         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70983         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70984         needed, since the source code now assumes these .h files.
70985
70986 2005-10-05  Derek Price  <derek@ximbiot.com>
70987
70988         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70989
70990 2005-10-05  Bruno Haible  <bruno@clisp.org>
70991
70992         * modules/stdint (License): Change to LGPL.
70993
70994 2005-10-04  Simon Josefsson  <jas@extundo.com>
70995
70996         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70997         D. Baushke" <mdb@gnu.org>.
70998
70999 2005-10-04  Bruno Haible  <bruno@clisp.org>
71000
71001         * lib/verify.h (verify_true): Provide alternative definition for C++.
71002
71003 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
71004
71005         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
71006         (SSIZE_MAX): New macro, if not already defined.
71007         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
71008         than 2 GiB.
71009
71010 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71011
71012         Sync from coreutils.
71013         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
71014         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
71015         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
71016         ULLONG_MAX doesn't work with 2.7.2.1.
71017
71018 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71019
71020         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
71021         From Ben Pfaff.
71022
71023         * modules/exclude (Depends-on): Depend on verify.
71024         * modules/strtoimax (Depends-on): Likewise.
71025         * modules/utimecmp (Depends-on): Likewise.
71026
71027 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71028
71029         * lib/exclude.c: Include verify.h.
71030         (verify): Remove.  All callers changed to use verify.h's version.
71031         * lib/strtoimax.c: Likewise.
71032         * lib/utimecmp.c: Likewis.e
71033
71034         Sync from coreutils.
71035         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
71036         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
71037         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
71038         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
71039         bother returning ENOSYS if settimeofday or stime fails; just let
71040         them return whatever errno they want to return.
71041         * lib/utimens.c: Include unistd.h, for dup2.
71042         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
71043         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
71044
71045 2005-10-02  Jim Meyering  <jim@meyering.net>
71046
71047         Sync from coreutils.
71048         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
71049         from glibc-2.2.5 that fails for read-only files.
71050
71051 2005-10-02  Jim Meyering  <jim@meyering.net>
71052
71053         Sync from coreutils.
71054         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
71055         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
71056         `#if HAVE_CONFIG_H'.
71057         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
71058         Remove AT_FDCWD test.
71059         Do not consume the fd unless successful.
71060         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
71061         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
71062         block, so that we don't even try to compile it if settimeofday is
71063         available.  This works around a compilation failure on OSF1 V5.1,
71064         due to stime requiring a `long int*' while tv_sec is `int'.
71065
71066 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
71067
71068         Sync from coreutils.
71069         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
71070         against `yes', rather than just testing for nonempty.
71071
71072 2005-10-01  Simon Josefsson  <jas@extundo.com>
71073
71074         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
71075         and Darwin.
71076
71077         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
71078         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
71079         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
71080         freeaddrinfo and gai_strerror are declared by the POSIX headers.
71081         Check if struct addrinfo is declared.
71082
71083 2005-10-01  Simon Josefsson  <jas@extundo.com>
71084
71085         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
71086         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
71087         AI_* and EAI_* definitions.  Protect function declarations.
71088
71089 2005-10-01  Jim Meyering  <jim@meyering.net>
71090
71091         Sync from coreutils.
71092
71093         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
71094         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
71095         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
71096         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71097         in the inet and nsl libraries.  Required on Solaris 5.7.
71098
71099 2005-10-01  Jim Meyering  <jim@meyering.net>
71100
71101         Sync from coreutils.
71102         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71103         in the inet and nsl libraries.  Required on Solaris 5.7.
71104
71105 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
71106
71107         * lib/getdelim.c (getdelim): Remove unused variables.
71108
71109 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
71110
71111         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
71112         so that the code works even with ancient cpp.  Portability problem
71113         with GCC 2.7.2.1 reported by Thomas M.Ott.
71114
71115 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
71116
71117         * modules/regex (Depends-on): Add strcase.
71118
71119         * modules/gethostname (Licence): Change from GPL to LGPL, since
71120         gethostname.c is a trivial implementation of a standard library
71121         function.
71122         * modules/poll (License): Change from GPL to LGPL, since it's
71123         derived from LGPL code.
71124
71125 2005-09-27  Jim Meyering  <jim@meyering.net>
71126
71127         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
71128         HAVE_CONFIG_H.
71129
71130         * lib/intprops.h (signed_type_or_expr__): Define.
71131         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
71132         for unsigned types.
71133
71134 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
71135
71136         * lib/verify.h (verify_expr): Remove, replacing with:
71137         (verify_true): New macro that returns true instead of void.
71138         (verify_type__): Remove.
71139         (verify): Use verify_true rather than verify_type__.
71140
71141 2005-09-26  Bruno Haible  <bruno@clisp.org>
71142
71143         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
71144         is necessary.
71145         (lib_SOURCES): Remove mbchar.c.
71146         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
71147         (Files): Add m4/mbrtowc.m4.
71148         * modules/mbiter: Likewise.
71149         * modules/mbuiter: Likewise.
71150
71151 2005-09-26  Bruno Haible  <bruno@clisp.org>
71152
71153         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
71154         compile mbchar.c if they are not both present.
71155         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
71156         * m4/mbiter.m4 (gl_MBITER): Likewise.
71157         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
71158         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
71159         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
71160
71161 2005-09-25  Jim Meyering  <jim@meyering.net>
71162
71163         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
71164         also uses socklen_t.
71165
71166 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
71167
71168         * lib/utimens.c (ENOSYS): Define if not already defined.
71169         (futimens): Support having a null PATH if the file descriptor
71170         is nonnegative.
71171
71172         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
71173         Remove.
71174         (__attribute): Define to empty unless GCC 3.1 or later.
71175         This works around a core dump on OpenBSD 3.4, which has GCC
71176         2.95.3, which dumps core when given __attribute__(()).  It also
71177         simplifies other tests, since we really don't want to bother with
71178         worrying about which ancient version of GCC supported what.
71179         Original problem reported by Yoann Vandoorselaere, with part of
71180         the fix suggested by Derek Price.
71181
71182 2005-09-24  Jim Meyering  <jim@meyering.net>
71183
71184         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
71185         so we can once again use a positive bitfield width of 1 -- now we
71186         don't have to explain why we were using a bitfield width of 2.
71187
71188 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71189
71190         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
71191         and similarly for the other external symbols.  Problem reported
71192         by James Gallager.
71193
71194         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
71195         bug reported by Jim Meyering.
71196
71197         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
71198         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
71199         not needed, since socklen is a prerequisite module.
71200
71201 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71202
71203         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
71204         Problem reported by Eric Blake.
71205         (getaddrinfo): Initialize se so that it's not garbage.
71206         Redo internal storage allocation so that it doesn't make unportable
71207         assumptions about alignment.
71208         Fix a memory leak.
71209
71210         * lib/utimens.c (futimens): Use futimesat if available.
71211         Prefer it to futimes since it doesn't have the futimes bug.
71212
71213         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
71214         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
71215         Instead, declare a function that returns a pointer to an array,
71216         and use verify_type__ to declare the size of the array.
71217         Problem and germ of a solution reported by Bruno Haible.
71218         (verify_type__): Use 2, not 1, for bitfield size, to avoid
71219         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
71220
71221 2005-09-23  Jim Meyering  <jim@meyering.net>
71222
71223         Sync from coreutils.
71224         Correct build failure (socklen_t not defined) on at least
71225         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
71226         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
71227
71228 2005-09-23  Jim Meyering  <jim@meyering.net>
71229
71230         * modules/getaddrinfo (Depends-on): Add socklen.
71231
71232 2005-09-23  Bruno Haible  <bruno@clisp.org>
71233
71234         * tests/test-verify.c: New file.
71235
71236 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71237
71238         Sync from coreutils.
71239
71240         * modules/argmatch (Depends-on): Add verify.
71241         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
71242         unistd-safer.
71243         * modules/save-cwd (Depends-on): Likewise.
71244
71245         * modules/openat (Files): Add lib/openat-die.c.
71246         (Depends-on): Remove error, exitfail.
71247         Add dirname.
71248
71249         * modules/verify: New file.
71250         * MODULES.html.sh (Diagnostics <assert.h>): New section,
71251         with "verify" module.
71252
71253 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71254
71255         Sync from coreutils.
71256
71257         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
71258         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
71259         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
71260         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
71261         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
71262         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
71263         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
71264         Don't bother checking for string.h, stdlib.h, unistd.h.
71265         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
71266         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
71267         module's job.
71268         * m4/jm-macros.m4 (gl_MACROS): Likewise.
71269         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
71270
71271         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
71272         (gl_GETDATE): Use it.
71273
71274         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
71275
71276 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71277
71278         Sync from coreutils.
71279
71280         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
71281         stat-time.h.
71282         * lib/argmatch.h: Include verify.h
71283         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
71284         (ARGMATCH_ASSERT): Remove; unused.
71285         * lib/canonicalize.c: Assume STDC_HEADERS.
71286         * lib/exclude.c: Include "strcase.h".
71287         * lib/regex_internal.h [!defined _LIBC]: Likewise.
71288         * lib/getusershell.c: Include stdio--.h rather than stdio.h
71289         and stdio-safer.h.
71290         (getusershell): Call fopen, not fopen_safer.
71291         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
71292         Do not include unistd-safer.h.
71293         (save_cwd): Don't call fd_safer; no longer needed
71294         now that we include fcntl--.h.
71295
71296         * lib/getdate.y (relative_time): New type.
71297         (RELATIVE_TIME_0): New constant.
71298         (parser_control): Use relative_time instead of doing it ourselves.
71299         (%union): Add new relative_time rel member.
71300         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
71301         Now typeless.
71302         (relunit, relunit_snumber): Now of type rel.
71303         (zone, rel, relunit, get_date): Adjust to above changes.
71304
71305         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
71306         Do not include unistd-safer.h.
71307         (getloadavg): Don't call fd_safer; no longer needed
71308         now that we include fcntl--.h.
71309
71310         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
71311         (make_dir_parents): Treat ENOSYS like EEXIST.
71312
71313         Improve quality of diagnostics on restore_cwd failure.
71314         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
71315         (make_dir_parents): Last arg is now int * (for errno), not bool *.
71316         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
71317         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
71318         each time through the loop.  Do not diagnose restore_cwd failure;
71319         that is the caller's job (and perhaps the caller does not care).
71320
71321         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
71322         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
71323         If the file already exists but is not a directory, don't bother
71324         to try to make its parents.
71325         Close potential file descriptor leak if we can't chdir("/") (!).
71326         Don't always return true if chdir($PWD) fails; return true only
71327         if the requested action was done successfully (except for the
71328         chdir($PWD)).
71329         Don't log final directory unless we actually made it.
71330         Refactor to avoid duplicate code to fix up permissions.
71331         Don't attempt to fix up parent permissions if chdir($PWD) fails.
71332
71333         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
71334         to make it a bit faster and (I hope) clearer.
71335         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
71336         Fix bug in formats like %2N.
71337
71338         * lib/verify.h: New file.
71339
71340 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71341
71342         Sync from coreutils.
71343         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
71344
71345 2005-09-22  Jim Meyering  <jim@meyering.net>
71346
71347         Sync from coreutils.
71348
71349         * m4/lstat.m4 (gl_FUNC_LSTAT):
71350         Use AC_LIBSOURCES to require lstat.c and lstat.h.
71351         Remove obsolete comment.
71352         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
71353         * m4/xstrtod.m4: Likewise.
71354
71355         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
71356
71357 2005-09-22  Jim Meyering  <jim@meyering.net>
71358
71359         Sync from coreutils.
71360
71361         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
71362
71363         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
71364         the .tm_year member, since otherwise gcc-4.0 would now warn about
71365         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
71366
71367         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
71368         order to avoid an unsuppressible warning from gcc on 64-bit systems.
71369
71370         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
71371         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
71372         when run in a time zone for which daylight savings time is in effect
71373         for the starting date.
71374
71375         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
71376         stop us from restricting permissions of just-created absolute-named
71377         directories.
71378         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
71379         to restore initial working directory.
71380         * lib/mkdir-p.c (make_dir_parents): New parameter:
71381         different_working_dir, to tell caller if/when we change the working
71382         directory and are unable to return to the initial one.
71383         * lib/mkdir-p.h (make_dir_parents): Update prototype.
71384         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
71385         `return false'.  This fixes a bug introduced on 2004-07-30.
71386
71387         * lib/openat.c (fdopendir): Be sure to close the supplied
71388         file descriptor before returning.  This makes our replacement
71389         implementation a little closer to Solaris's, where fdopendir
71390         ties the file descriptor to the returned DIR* pointer.
71391         * lib/openat.c (unlinkat): New function.
71392         * lib/openat.h (unlinkat): Add prototype.
71393         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
71394         (openat_restore_fail): Rename from openat_restore_die.
71395         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
71396
71397         Provide an alternative to exiting immediately upon save_cwd or
71398         restore_cwd failure.  Now, an application can arrange e.g.,
71399         to perform a longjump in that case.
71400         * lib/openat.c: Include dirname.h.
71401         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
71402         (rpl_openat, fdopendir, fstatat): Call openat_save_die
71403         and openat_restore_die rather than calling error directly.
71404         Don't include "error.h" or "exitfail.h"; they're no longer needed.
71405
71406         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
71407         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
71408         define.
71409
71410         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
71411         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
71412                             int utc, int nanoseconds);
71413         Background:
71414         date should not have to allocate a megabyte of virtual memory to
71415         handle a format argument like +%1048575T.  When implemented with
71416         strftime, it must allocate such a buffer, use strftime to fill it
71417         in, print it, then free it.
71418         With fprintftime, it simply prints everything and exits.
71419         With no need for memory allocation, that's one fewer way to fail.
71420         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
71421         optional field width, not before, so we accept %9:z, not %:9z.
71422         (my_strftime): Be sure to use L_('x') for literals.
71423
71424         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
71425         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
71426         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
71427         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
71428         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
71429         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
71430         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
71431         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
71432         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
71433         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
71434         * lib/xgethostname.c, lib/xreadlink.c:
71435         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
71436
71437         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
71438         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
71439         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
71440         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71441         and don't include <sys/file.h>).
71442
71443 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
71444
71445         Sync from coreutils.
71446
71447         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
71448         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
71449         [!LDAV_DONE]: Avoid unused variable warning.
71450
71451 2005-09-21  Bruno Haible  <bruno@clisp.org>
71452
71453         * lib/unicodeio.h (unicode_to_mb): New declaration.
71454
71455 2005-09-20  Derek Price  <derek@ximbiot.com>
71456
71457         * lib/getaddrinfo.c: Don't include <netdb.h> included from
71458         getaddrinfo.h.
71459
71460 2005-09-20  Bruno Haible  <bruno@clisp.org>
71461
71462         * gnulib-tool: Remove trailing slashes from the values specified for
71463         --source-base, --m4-base, --tests-base, --aux-dir.
71464         Suggested by Simon Josefsson <jas@extundo.com>.
71465
71466 2005-09-20  Bruno Haible  <bruno@clisp.org>
71467
71468         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
71469         func_modules_to_filelist, func_import, func_create_testdir): Make all
71470         sorting results locale-independent, so that gnulib-cache.m4 doesn't
71471         change when gnulib-tool is invoked in a different locale.
71472
71473 2005-09-19  Simon Josefsson  <jas@extundo.com>
71474
71475         * m4/socklen.m4: Fix typo.
71476
71477 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71478
71479         Use a consistent style for including <config.h>.
71480         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
71481         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
71482         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
71483         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
71484         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
71485         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
71486         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
71487         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
71488         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
71489         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
71490         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
71491         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
71492         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
71493         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
71494         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
71495         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
71496         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
71497         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
71498         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
71499         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
71500         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
71501         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
71502         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
71503         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
71504         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
71505         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
71506         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
71507         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
71508         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
71509         lib/xstrtoumax.c, lib/yesno.c:
71510         Standardize inclusion of config.h.
71511         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
71512         lib/inttostr.h:  Removed inclusion of config.h from header files.
71513         * lib/inttostr.c:  Adjusted in-tree users.
71514         * lib/timespec.h: Remove superfluous warning to include config.h.
71515         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
71516         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
71517         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
71518         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
71519         config.h with HAVE_CONFIG_H.
71520
71521 2005-09-19  Jim Meyering  <jim@meyering.net>
71522
71523         * modules/pathmax (License): Change to LGPL.
71524
71525 2005-09-19  Derek Price  <derek@ximbiot.com>
71526
71527         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
71528
71529 2005-09-19  Bruno Haible  <bruno@clisp.org>
71530
71531         * gnulib-tool (import): Provide default for --tests-base.
71532
71533 2005-09-19  Bruno Haible  <bruno@clisp.org>
71534
71535         * doc/quote.texi: New file, extracted from gnulib.texi.
71536         * doc/ctime.texi: New file, extracted from gnulib.texi.
71537         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
71538         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
71539         * doc/gnulib.texi: Include them.
71540
71541 2005-09-18  Bruno Haible  <bruno@clisp.org>
71542
71543         Portability fix.
71544         * gnulib-tool (func_readlink): New function.
71545         (func_ln_if_changed): Use it.
71546
71547 2005-09-18  Bruno Haible  <bruno@clisp.org>
71548
71549         * gnulib-tool: Support --with-tests also with --import.
71550         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
71551         (func_import): Use variables $testsbase and $inctests. Emit a
71552         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
71553         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
71554         SUBDIRS += $testsdir.
71555         (func_create_testdir): Update.
71556
71557 2005-09-18  Bruno Haible  <bruno@clisp.org>
71558
71559         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
71560         instead of $dry_run.
71561         (func_cp_if_changed, func_mv_if_changed): Remove functions.
71562         (func_ln_if_changed): Don't handle dry-run here.
71563         (func_import): In dry-run mode, detect more precisely which actions
71564         would be performed, and don't use "...ing" verbs.
71565
71566 2005-09-18  Bruno Haible  <bruno@clisp.org>
71567
71568         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
71569         (func_import): Use join on two temporary files instead of three nested
71570         loops, in order to determine which files are new or old.
71571
71572 2005-09-18  Bruno Haible  <bruno@clisp.org>
71573
71574         * gnulib-tool (func_import): Comment out code that spits out the
71575         new files with --dry-run.
71576
71577 2005-09-18  Bruno Haible  <bruno@clisp.org>
71578
71579         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
71580
71581 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71582
71583         * lib/stat-time.h: New file.
71584         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
71585         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
71586         in a different way.
71587         (timespec_cmp): New function.
71588         * lib/utimecmp.c: Include stat-time.h.
71589         (SYSCALL_RESOLUTION): Depend on whether various struct stat
71590         members exist, not on the obsolescent ST_MTIM_NSEC.
71591         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
71592
71593 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71594
71595         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
71596
71597 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71598
71599         * MODULES.html.sh (File system functions): Add stat-time.
71600         * modules/stat-time: New file.
71601         * modules/timespec (Files): Remove m4/st_mtim.m4; this
71602         is now done in a different way, by the stat-time module.
71603         * modules/utimecmp (Depends-on): Add stat-time.
71604
71605 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71606
71607         * m4/st_mtim.m4: Remove.  Superseded by...
71608         * m4/stat-time.m4: New file.
71609         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
71610         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
71611
71612 2005-09-15  Derek Price  <derek@ximbiot.com>
71613
71614         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
71615
71616 2005-09-15  Derek Price  <derek@ximbiot.com>
71617
71618         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
71619         * lib/regex_internal.c: Ditto, using this...
71620         (__GNUC_PREREQ): ...new macro.
71621         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
71622         using...
71623         (__GNUC_PREREQ): ...this new macro.
71624
71625         * lib/strstr.h: Include string.h. Define strstr as a macro here.
71626
71627 2005-09-15  Derek Price  <derek@ximbiot.com>
71628             Paul Eggert  <eggert@cs.ucla.edu>
71629
71630         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
71631         changes, consolidating in...
71632         * lib/regex_internal.h: ...this file.
71633
71634 2005-09-13  Jim Meyering  <jim@meyering.net>
71635
71636         * lib/canon-host.c: Filter through gnu indent and reword comments
71637         slightly.
71638         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
71639
71640 2005-09-13  Derek Price  <derek@ximbiot.com>
71641
71642         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
71643         failure.
71644         Reported by Jim Meyering  <jim@meyering.net>.
71645
71646 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71647
71648         * lib/base64.c: Typo.
71649         (base64_encode): Put b64str in initialized data section.
71650
71651 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
71652
71653         Merge glibc and coreutils changes into gnulib, plus a few
71654         extra fixes.
71655         * lib/md5.c: Use #error rather than a string.
71656         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
71657         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
71658         (__attribute__): Define to empty for non recent-GCC.
71659         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
71660         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
71661         Renamed from their non-__ counterparts, with new macros replacing
71662         them if not _LIBC.  Add __THROW attribute.
71663         (rol): Remove.
71664         (struct md5_ctx): Align buffer if using GCC.
71665         * lib/sha1.h (struct sha1_ctx): Likewise.
71666         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
71667         The old name was backwards.
71668         (NOTSWAP): Remove; not used.
71669         (rol): New macro, moved here from md5.h.
71670         (sha1_process_block): Remove a FIXME that doesn't make sense.
71671
71672 2005-09-12  Derek Price  <derek@ximbiot.com>
71673
71674         Return usable errors from canon-host.
71675         * lib/canon-host.h: New file.
71676         * lib/canon-host.c (canon_host): Wrap...
71677         (canon_host_r): ...this new function, which now relies exclusively on
71678         getaddrinfo.
71679         (ch_strerror): New function.
71680         (last_cherror): New global.
71681         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
71682         interface.
71683         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
71684         void *.
71685         (freeaddrinfo): Free ai->ai_canonname when set.
71686
71687 2005-09-12  Derek Price  <derek@ximbiot.com>
71688
71689         Make canon-host require getaddrinfo.
71690         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
71691         AC_LIBSOURCE canon-host.h.  Call...
71692         (gl_PREREQ_CANON_HOST): ...this new function, which requires
71693         gl_GETADDRINFO.
71694         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
71695
71696 2005-09-12  Derek Price  <derek@ximbiot.com>
71697
71698         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
71699         LGPL.
71700         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
71701
71702 2005-09-12  Derek Price  <derek@ximbiot.com>
71703
71704         * lib/gai_strerror.c: Include config.h when available.  Include
71705         getaddrinfo.h before other headers to test interface.
71706         Reported by Larry Jones <lawrence.jones@ugs.com>.
71707
71708 2005-09-12  Derek Price  <derek@ximbiot.com>
71709             Paul Eggert  <eggert@cs.ucla.edu>
71710
71711         * modules/glob (Files): Add glob-libc.h.
71712
71713 2005-09-12  Derek Price  <derek@ximbiot.com>
71714             Paul Eggert  <eggert@cs.ucla.edu>
71715
71716         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
71717         glob_.h, glob-libc.h.
71718         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
71719
71720 2005-09-12  Derek Price  <derek@ximbiot.com>
71721             Paul Eggert  <eggert@cs.ucla.edu>
71722
71723         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
71724         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
71725         protecting things that should be done only in gnulib contexts.
71726         * lib/glob_.h: New file, containing only the glob things needed for
71727         gnulib.
71728         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
71729         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
71730         (glob, globfree, glob_pattern_p): Now defined simply in terms of
71731         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
71732         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
71733         and to respect the namespace rules better.
71734
71735 2005-09-08  Simon Josefsson  <jas@extundo.com>
71736
71737         * modules/socklen: New file.
71738
71739 2005-09-08  Simon Josefsson  <jas@extundo.com>
71740
71741         * m4/socklen.m4: New file.
71742
71743 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71744
71745         * modules/utimens (Files): Add m4/utimbuf.m4, since
71746         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
71747         Reported by Sergey Poznyakoff.
71748
71749 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71750
71751         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
71752         definitions, since that's the preferred style in glibc.
71753         Fix a minor spacing issue, and update copyright notice to match
71754         glibc's.
71755
71756 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71757
71758         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
71759
71760 2005-09-06  Simon Josefsson  <jas@extundo.com>
71761
71762         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
71763         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
71764
71765 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71766
71767         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
71768         warning.
71769
71770 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71771
71772         * config/srclist.txt: Add glibc bug 1302.
71773
71774 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
71775
71776         Change bitset word type from unsigned int to unsigned long int,
71777         as this has better performance on typical 64-bit hosts.
71778         Port bitset code to hosts with unusual word sizes.
71779         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
71780         (build_collating_symbol):
71781         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
71782         argument is a bitset.  This is merely a style issue, but it makes
71783         it clearer that an entire array is expected.
71784         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
71785         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
71786         Port to the case where bitset_word is not the same as unsigned int.
71787         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71788         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
71789         Likewise.
71790         * lib/regexec.c (check_dst_limits_calc_pos_1,
71791         check_subexp_matching_top):
71792         (build_trtable, group_nodes_into_DFAstates):
71793         Likewise.
71794         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
71795         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
71796         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
71797         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
71798         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
71799         * lib/regcomp.c (optimize_subexps, lower_subexp):
71800         Work even if bitset_word has holes in its bitwise representation.
71801         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
71802         * lib/regexec.c (check_dst_limits_calc_pos_1,
71803         check_subexp_matching_top):
71804         Likewise.
71805         * lib/regex_internal.c (re_string_reconstruct):
71806         Don't assume UCHAR_MAX == 255.
71807         * lib/regex_internal.h (bitset_set_all): Likewise.
71808         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
71809         All uses changed.
71810         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
71811         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
71812         All uses changed.
71813         (BITSET_WORD_MAX): New macro.
71814         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
71815         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
71816         (bitset_empty, bitset_copy):
71817         Prefer sizeof (bitset) to multiplying it out ourselves.
71818         (bitset_not_merge): Remove; unused.
71819         (bitset_contain): Return bool, not unsigned int with one bit on.
71820         All callers changed.
71821         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
71822         alignment than re_node_set; do this by defining a new internal
71823         type struct dests_alloc and using it to allocate memory.
71824
71825 2005-09-05  Bruno Haible  <bruno@clisp.org>
71826
71827         * gnulib-tool (func_import): Fix comparison in handling of symbolic
71828         links.
71829
71830 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
71831
71832         * modules/size_max (Makefile.am): Add size_max.h
71833
71834 2005-09-04  Derek Price  <derek@ximbiot.com>
71835
71836         * gnulib-tool (func_import): Fix reversed $symbolic logic.
71837
71838 2005-09-03  Simon Josefsson  <jas@extundo.com>
71839
71840         * gnulib-tool: Fix typo.
71841
71842 2005-09-03  Simon Josefsson  <jas@extundo.com>
71843
71844         * config/srclist.txt: Add glibc bug 1293.
71845
71846 2005-09-03  Derek Price  <derek@ximbiot.com>
71847
71848         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
71849         From Larry Jones <lawrence.jones@ugs.com>.
71850
71851 2005-09-02  Simon Josefsson  <jas@extundo.com>
71852
71853         * modules/socklen: New file.
71854
71855 2005-09-02  Simon Josefsson  <jas@extundo.com>
71856
71857         * modules/havelib: New module.
71858
71859         * modules/gettext, modules/iconv, modules/lock, modules/readline:
71860         Use havelib.
71861
71862 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71863
71864         Check for arithmetic overflow when calculating sizes, to prevent
71865         some buffer-overflow issues.  These patches are conservative, in the
71866         sense that when I couldn't determine whether an overflow was possible,
71867         I inserted a run-time check.
71868         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
71869         macros.
71870         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
71871         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
71872         (re_xnrealloc, re_x2nrealloc): New inline functions.
71873         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
71874         parse_bracket_exp):
71875         (build_equiv_class, build_charclass): Check for arithmetic overflow
71876         in size expression calculations.
71877         * lib/regex_internal.c (re_string_realloc_buffers):
71878         (build_wcs_upper_buffer, re_node_set_add_intersect):
71879         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
71880         (re_dfa_add_node, register_state): Likewise.
71881         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
71882         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
71883         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
71884         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
71885
71886 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71887
71888         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71889         m4/ulonglong.m4.  Problem reported by Martin Lambers.
71890
71891 2005-09-02  Bruno Haible  <bruno@clisp.org>
71892
71893         Support for lib vs. lib64 distinction on biarch platforms.
71894         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
71895         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
71896         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
71897
71898 2005-09-02  Bruno Haible  <bruno@clisp.org>
71899
71900         * gnulib-tool (import): In the other first-use case, provide defaults
71901         as well.
71902
71903 2005-09-02  Bruno Haible  <bruno@clisp.org>
71904
71905         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71906         patches not yet found in the latest gettext release.
71907
71908 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71909
71910         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71911         to avoid a collision with bits/local_lim.h in glibc.
71912         All uses changed.  Problem reported by Dmitry V. Levin in
71913         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71914
71915         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71916         bugs in int versus size_t comparisons.
71917         (re_string_context_at): Fix bug where the code assumed that
71918         Idx is signed.
71919
71920         Use bool where appropriate.
71921         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71922         All callers changed.
71923         (calc_eclosure_iter): Likewise, for ROOT arg.
71924         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71925         (build_charclass_op): Likewise, for NON_MATCH arg.
71926         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71927         (re_string_construct_common): Likewise, for ICASE arg.
71928         * lib/regexec.c (re_search_2_stub, re_search_stub):
71929         Likewise, for RET_LEN arg.
71930         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71931         (set_regs): Likewise, for FL_BACKTRACK arg.
71932         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71933         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71934         (calc_eclosure_iter, parse_bracket_exp):
71935         Use bool for internal variables that are booleans.
71936         * lib/regexec.c (re_search_internal, check_matching,
71937         proceed_next_node):
71938         (set_regs, build_sifted_states, sift_states_bkref):
71939         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71940         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71941         (find_collation_sequence_value):
71942         Likewise.
71943         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71944         (re_node_set_compare):
71945         Return bool, not int. All callers changed.
71946         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71947         (build_trtable, check_node_accept): Likewise.
71948         * lib/regex_internal.h: Include stdbool.h.
71949
71950         Fix bugs uncovered when converting to bool.
71951         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71952         failure instead of charging ahead blindly.
71953         * lib/regex_internal.c (register_state): Likewise.
71954         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71955         for freeing internal storage.
71956         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71957         bitset pieces used as boolean, to avoid undefined behavior
71958         on hosts that do int overflow checking.
71959
71960 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71961
71962         * config/srclist.txt: Add glibc bugs 1285-1287.
71963
71964 2005-09-01  Jim Meyering  <jim@meyering.net>
71965
71966         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71967         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71968         Require gl_STAT_MACROS, too.
71969
71970 2005-09-01  Bruno Haible  <bruno@clisp.org>
71971
71972         * gnulib-tool (import): In the first-use case, provide defaults.
71973
71974 2005-09-01  Bruno Haible  <bruno@clisp.org>
71975
71976         * gnulib-tool (func_import): Remove the .tmp files.
71977
71978 2005-09-01  Bruno Haible  <bruno@clisp.org>
71979
71980         * gnulib-tool (func_import): Fix handling of symbolic links.
71981
71982 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71983
71984         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71985         old glibc regex code mishandles strings longer than 2**31 bytes.
71986         This patch fixes this when the regex code is used in gnulib
71987         (i.e., outside glibc).
71988
71989         This patch should not affect the use of the regex code inside
71990         glibc.  No doubt this problem also needs to be handled for glibc
71991         as well, but the result will be an incompatible change to the
71992         glibc ABI, and the old ABI will have to be supported too.  That
71993         can be the the subject for another patch.
71994
71995         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71996         governing whether the rest of this patch is active.  By default,
71997         the macro is disabled and the patch has no effect.
71998         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71999         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
72000         (struct re_pattern_buffer, re_search, re_search_2, re_match):
72001         (re_match_2, re_set_registers): Use the new types.
72002         * lib/regex_internal.h (Idx, re_hashval_t): New types.
72003         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
72004         New macros.
72005         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
72006         (re_string_context_at, bin_tree_t, re_dfastate_t):
72007         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
72008         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
72009         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
72010         (re_string_char_size_at, re_string_wchar_at):
72011         (re_string_elem_size_at):
72012         Use the new types and macros to port to 64-bit hosts.
72013         Use unsigned types for internal values, so that the code
72014         mostly works even for arrays larger than SSIZE_MAX.
72015         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
72016         (search_duplicated_node, calc_eclosure_iter, fetch_number):
72017         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
72018         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
72019         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
72020         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
72021         (calc_inveclosure, parse_dup_op, build_range_exp):
72022         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
72023         (fetch_number, create_token_tree, mark_opt_subexp):
72024         Likewise.
72025         * lib/regex_internal.c (re_string_construct_common,
72026         create_ci_newstate):
72027         (create_cd_newstate, re_string_allocate, re_string_construct):
72028         (re_string_realloc_buffers, build_wcs_upper_buffer):
72029         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72030         (re_string_reconstruct, re_string_peek_byte_case):
72031         (re_string_fetch_byte_case, re_string_context_at):
72032         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72033         (re_node_set_init_copy, re_node_set_add_intersect):
72034         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72035         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72036         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72037         (re_acquire_state, re_acquire_state_context, register_state):
72038         Likewise.
72039         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
72040         search_cur_bkref_entry):
72041         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
72042         (re_search_internal, re_search_2_stub, re_search_stub)
72043         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
72044         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
72045         (update_cur_sifted_state, check_dst_limits):
72046         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72047         (check_subexp_limits, sift_states_bkref, merge_state_array):
72048         (check_subexp_matching_top, get_subexp, get_subexp_sub):
72049         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
72050         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72051         (expand_bkref_cache, check_node_accept_bytes):
72052         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
72053         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
72054         (acquire_init_state_context, check_halt_node_context):
72055         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
72056         (sift_states_backward, clean_state_log_if_needed):
72057         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
72058         (find_recover_state, transit_state_sb, transit_state_mb):
72059         (transit_state_bkref, build_trtable, match_ctx_clean):
72060         Likewise.
72061         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
72062         to work around an assumption that REG_MISSING is negative.
72063
72064         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
72065         (seek_collating_symbol_entry) [defined _LIBC]:
72066         (lookup_collation_sequence_value) [defined _LIBC]:
72067         (build_range_exp, build_collating_symbol) [defined _LIBC]:
72068         Use prototypes rather than old-style function definitions.
72069         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
72070         (transit_state_sb) [0]:
72071         (find_collation_sequence_value) [defined _LIBC]: Likewise.
72072
72073         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
72074         rm_eo.
72075
72076         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
72077         (optimize_subexps, lower_subexp):
72078         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
72079         since the signed shift might overflow.  Use 1u<<31 instead.
72080         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
72081         Likewise.
72082         * lib/regexec.c (check_dst_limits_calc_pos_1,
72083         check_subexp_matching_top): Likewise.
72084
72085         * lib/regcomp.c (optimize_subexps, lower_subexp):
72086         Use CHAR_BIT rather than 8, for clarity.
72087         * lib/regexec.c (check_dst_limits_calc_pos_1):
72088         (check_subexp_matching_top): Likewise.
72089         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
72090         have to worry about portability issues when shifting it left.
72091         Remove no-longer-needed test for table_size > 0.
72092         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
72093         in a word, as the resulting behavior is undefined.
72094         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
72095         in one case, a <= should have been an <, and in another case the
72096         whole test was missing.
72097         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
72098         the standard name CHAR_BIT.
72099         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
72100         this is not true on one's complement and signed-magnitude hosts.
72101
72102         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
72103         next_last_offset.
72104         (struct re_dfa_t): Remove unused member states_alloc.
72105         * lib/regcomp.c (init_dfa): Don't initialize unused members.
72106
72107 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72108
72109         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
72110         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
72111         and large-file glibc and in 32-bit large-file Solaris.
72112
72113 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72114
72115         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
72116         lengths fit in regoff_t; this isn't true if regoff_t is the same
72117         width as size_t.
72118         * lib/regex.c (re_search_internal): 5th arg is LAST_START
72119         (= START + RANGE) instead of RANGE.  This avoids overflow
72120         problems when regoff_t is the same width as size_t.
72121         All callers changed.
72122         (re_search_2_stub): Check for overflow when adding the
72123         sizes of the two strings.
72124         (re_search_stub): Check for overflow when adding START
72125         to RANGE; if it occurs, substitute the extreme value.
72126
72127 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72128
72129         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
72130
72131 2005-08-31  Jim Meyering  <jim@meyering.net>
72132
72133         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
72134         a pointer-to-const.
72135         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
72136         (register_state): Likewise.
72137         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
72138         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72139         (group_nodes_into_DFAstates): Likewise.
72140
72141 2005-08-31  Jim Meyering  <jim@meyering.net>
72142
72143         * check-module: Add a FIXME comment.
72144
72145 2005-08-31  Eric Blake  <ebb9@byu.net>
72146
72147         * modules/unistd-safer (Files): Add unistd--.h.
72148         * modules/stdio-safer (Files): Add stdio--.h.
72149
72150 2005-08-31  Derek Price  <derek@ximbiot.com>
72151
72152         * lib/getdelim.c (getdelim): Return EOF on EOF.
72153         Reported by Larry Jones <lawrence.jones@ugs.com>.
72154
72155 2005-08-31  Bruno Haible  <bruno@clisp.org>
72156
72157         Avoid unnecessary diffs in the generated lib/Makefile.am.
72158         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
72159         the generated files.
72160         (func_import): Don't set cmd.
72161
72162 2005-08-31  Bruno Haible  <bruno@clisp.org>
72163
72164         * lib/strstr.c: Include <stddef.h>, for NULL.
72165         * lib/strcasestr.c: Likewise.
72166         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72167
72168 2005-08-31  Bruno Haible  <bruno@clisp.org>
72169
72170         * gnulib-tool: New option --macro-prefix.
72171         (func_import): Use macro_prefix.
72172         (import): Handle option --macro-prefix.
72173
72174 2005-08-31  Bruno Haible  <bruno@clisp.org>
72175
72176         * gnulib-tool (import): Rename most ac_* variables to cached_*.
72177         Also use new variables cached_lgpl, cached_libtool.
72178
72179 2005-08-31  Bruno Haible  <bruno@clisp.org>
72180
72181         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
72182         always instantiating them.
72183
72184 2005-08-31  Bruno Haible  <bruno@clisp.org>
72185
72186         * gnulib-tool (func_import): Read the previous cached settings
72187         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
72188         earlier added by gnulib but are now dropped. Warn when a gnulib file
72189         overwrites a non-gnulib file.
72190
72191 2005-08-31  Bruno Haible  <bruno@clisp.org>
72192
72193         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
72194         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
72195         projects that don't keep autogenerated files in CVS. Put into
72196         actioncmd only the specified modules, not the transitive closure.
72197
72198 2005-08-31  Bruno Haible  <bruno@clisp.org>
72199
72200         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
72201         Create directories that shall be filled.
72202         (import): Don't look for gl_* macros in configure.ac. Recurse across
72203         all directories containing a gnulib-cache.m4 files, if meaningful.
72204
72205 2005-08-31  Bruno Haible  <bruno@clisp.org>
72206
72207         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
72208         (import): Set seen_libtool when we see gl_LIBTOOL.
72209
72210 2005-08-31  Bruno Haible  <bruno@clisp.org>
72211
72212         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
72213         declaration macro definitions from generated gnulib.m4.
72214
72215 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
72216
72217         * lib/iconvme.h: Add prototype for iconv_alloc.
72218
72219 2005-08-29  Simon Josefsson  <jas@extundo.com>
72220
72221         * lib/iconvme.c: Fix errno.
72222
72223 2005-08-29  Bruno Haible  <bruno@clisp.org>
72224
72225         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
72226         that it works when the directory contains spaces.
72227
72228 2005-08-29  Bruno Haible  <bruno@clisp.org>
72229
72230         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
72231
72232 2005-08-29  Bruno Haible  <bruno@clisp.org>
72233
72234         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
72235         Emit more advice.
72236
72237 2005-08-29  Bruno Haible  <bruno@clisp.org>
72238         and Stepan Kasal  <kasal@ucw.cz>
72239
72240         * check-module: If more parameters are given, check each of them
72241         separately; add more exceptions, as noted by Jim Meyering.
72242         (check_module): New procedure.
72243         (%exempt_header): Now contains all exceptions.
72244
72245 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
72246
72247         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
72248
72249 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72250
72251         * lib/iconvme.c: Split iconv_string into iconv_alloc.
72252
72253 2005-08-28  Bruno Haible  <bruno@clisp.org>
72254
72255         * m4/gnulib-tool.m4: New file.
72256
72257 2005-08-27  Jim Meyering  <jim@meyering.net>
72258
72259         * modules/unistd-safer (Files): Add pipe-safer.c.
72260         * modules/fcntl-safer (Files): Add creat-safer.c.
72261
72262 2005-08-27  Jim Meyering  <jim@meyering.net>
72263
72264         * m4/stdlib-safer.m4: New file.  From coreutils.
72265         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
72266         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
72267         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
72268         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
72269         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
72270
72271 2005-08-27  Jim Meyering  <jim@meyering.net>
72272
72273         * lib/fopen-safer.c: Merge minor changes from coreutils.
72274         * lib/dup-safer.c: Likewise.
72275         * lib/fd-safer.c: Likewise.
72276
72277         Merge from coreutils.
72278         * lib/stdio--.h: New file.
72279         * lib/stdlib--.h: New file.
72280         * lib/mkstemp-safer.c: New file.
72281
72282         GNU tar needs these.
72283         * lib/pipe-safer.c: New file.
72284         * lib/creat-safer.c: New file.
72285         * lib/fcntl--.h (creat): Define to creat_safer.
72286         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
72287         * lib/unistd--.h (pipe): Define to pipe_safer.
72288         * lib/unistd-safer.h: Declare pipe_safer.
72289
72290 2005-08-26  Simon Josefsson  <jas@extundo.com>
72291
72292         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
72293         Haible <bruno@clisp.org>.
72294
72295 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
72296
72297         * lib/regex_internal.h: Remove all references to
72298         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
72299         or better.
72300         (bitset_not, bitset_merge, bitset_not_merge):
72301         (bitset_mask, re_string_allocate, re_string_construct):
72302         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
72303         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
72304         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
72305         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
72306         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72307         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72308         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
72309         (re_acquire_state_context):
72310         Remove unnecessary forward decls.
72311         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
72312         Put __attribute at function definition,
72313         now that the function decl has been removed.
72314         * lib/regex_internal.c (re_string_peek_byte_case):
72315         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
72316         Likewise.
72317
72318 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
72319
72320         * m4/regex.m4: Add AC_PREREQ(2.50).
72321         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
72322
72323 2005-08-25  Simon Josefsson  <jas@extundo.com>
72324
72325         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
72326         __fsetlocking.
72327
72328 2005-08-25  Simon Josefsson  <jas@extundo.com>
72329
72330         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
72331         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
72332         GLIBC specific code.
72333
72334 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72335
72336         Make regex safe for g++.  This fixes one real bug (an "err"
72337         that should have been "*err").  g++ problem reported by
72338         Sam Steingold.
72339         * lib/regex_internal.h (re_calloc): New macro, consistent with
72340         re_malloc etc.  All callers of calloc changed to use re_calloc.
72341         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
72342         not int.  All callers changed.
72343         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
72344         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
72345         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
72346         (find_recover_state): Change "err" to "*err"; this fixes what
72347         appears to be a real bug.
72348         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
72349         versus int.
72350
72351 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72352
72353         * modules/regex (Depends-on): Add malloc, since the code
72354         assumes that !malloc(0) means failure.
72355
72356 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72357
72358         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
72359
72360         alloca modernization/simplification for regex.
72361         * lib/regex.c: Remove portability cruft for alloca.  This no longer
72362         needs to be at the start of the file, and can be moved into
72363         regex_internal.h and simplified.
72364         * lib/regex_internal.h: Include <alloca.h>.
72365         (__libc_use_alloca) [!defined _LIBC]: New macro.
72366         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
72367         now works outside glibc.
72368
72369 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72370
72371         * config/srclist.txt: Add glibc bugs 1241, 1245.
72372
72373 2005-08-25  Jim Meyering  <jim@meyering.net>
72374
72375         * lib/open-safer.c: Include <config.h>.
72376         Otherwise, we'd lose LARGEFILE support in any file using
72377         e.g. "fcntl--.h"
72378
72379 2005-08-25  Bruno Haible  <bruno@clisp.org>
72380
72381         * m4/minmax.m4: Require autoconf 2.52.
72382         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
72383         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
72384         alternatives of translit over the alphabet.
72385         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
72386
72387 2005-08-24  Simon Josefsson  <jas@extundo.com>
72388
72389         * tests/test-getpass.c: New file.
72390
72391 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72392
72393         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
72394         for GNU regex features.
72395
72396 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72397
72398         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
72399         * lib/regex.h (regerror): Likewise.
72400
72401         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
72402         requires this.  (The code never needed it.)
72403
72404         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
72405         All uses of recently-renamed identifiers changed to use the new,
72406         POSIX-compliant names.  The code will build and run just fine
72407         without these changes, but it's better to eat our own dog food
72408         and use the standard-conforming names.
72409
72410         * lib/regex.h: Fix a multitude of POSIX name space violations.
72411         These changes have an effect only for programs that define
72412         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
72413         do not change anything for programs compiled in the normal way.
72414         Also, there is no effect on the ABI.
72415
72416         (_REGEX_SOURCE): New macro.
72417         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
72418         defined and _GNU_SOURCE is not; this fixes a name space violation.
72419
72420         Rename the following macros to obey POSIX requirements.
72421         The old names are still visible as macros if _REGEX_SOURCE is defined.
72422         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
72423         RE_BACKSLASH_ESCAPE_IN_LISTS.
72424         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
72425         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
72426         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
72427         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
72428         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
72429         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
72430         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
72431         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
72432         (REG_INTERVALS): renamed from RE_INTERVALS.
72433         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
72434         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
72435         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
72436         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
72437         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
72438         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
72439         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
72440         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
72441         RE_UNMATCHED_RIGHT_PAREN_ORD.
72442         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
72443         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
72444         (REG_DEBUG): renamed from RE_DEBUG.
72445         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
72446         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
72447         unusual, since we can't clash with the POSIX REG_ICASE.
72448         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
72449         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
72450         (REG_NO_SUB): renamed from RE_NO_SUB.
72451         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
72452         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
72453         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
72454         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
72455         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
72456         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
72457         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
72458         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
72459         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
72460         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
72461         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
72462         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
72463         RE_SYNTAX_POSIX_MINIMAL_BASIC.
72464         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
72465         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
72466         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
72467         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
72468         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
72469         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
72470         (REG_FIXED): Renamed from REGS_FIXED.
72471         (REG_NREGS): Renamed from RE_NREGS.
72472
72473         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
72474         of other REG_* macros, since POSIX says the user is allowed to
72475         #undef these macros selectively.
72476
72477         (reg_errcode_t): Update comment stating what other tables need
72478         to be consistent.
72479
72480         Rename the following enum values to obey POSIX requirements.
72481         The old names are still visible as macros.
72482         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
72483         is not defined, since GNU is supposed to be a superset of POSIX as
72484         much as possible, and since we want reg_errcode_t to be a signed
72485         type for implementation consistency.
72486         (_REG_NOERROR): Renamed from REG_NOERROR.
72487         (_REG_NOMATCH): Renamed from REG_NOMATCH.
72488         (_REG_BADPAT): Renamed from REG_BADPAT.
72489         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
72490         (_REG_ECTYPE): Renamed from REG_ECTYPE.
72491         (_REG_EESCAPE): Renamed from REG_EESCAPE.
72492         (_REG_ESUBREG): Renamed from REG_ESUBREG.
72493         (_REG_EBRACK): Renamed from REG_EBRACK.
72494         (_REG_EPAREN): Renamed from REG_EPAREN.
72495         (_REG_EBRACE): Renamed from REG_EBRACE.
72496         (_REG_BADBR): Renamed from REG_BADBR.
72497         (_REG_ERANGE): Renamed from REG_ERANGE.
72498         (_REG_ESPACE): Renamed from REG_ESPACE.
72499         (_REG_BADRPT): Renamed from REG_BADRPT.
72500         (_REG_EEND): Renamed from REG_EEND.
72501         (_REG_ESIZE): Renamed from REG_ESIZE.
72502         (_REG_ERPAREN): Renamed from REG_ERPAREN.
72503         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
72504         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
72505         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
72506         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
72507
72508         (_REG_RE_NAME, _REG_RM_NAME): New macros.
72509         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
72510         changed.  But support the old name if the new one is not defined
72511         and if _REGEX_SOURCE.
72512
72513         Change the following member names in struct re_pattern_buffer.
72514         The old names are still supported if !_REGEX_SOURCE.
72515         The new names are always supported, regardless of _REGEX_SOURCE.
72516         (re_buffer): Renamed from buffer.
72517         (re_allocated): Renamed from allocated.
72518         (re_used): Renamed from used.
72519         (re_syntax): Renamed from syntax.
72520         (re_fastmap): Renamed from fastmap.
72521         (re_translate): Renamed from translate.
72522         (re_can_be_null): Renamed from can_be_null.
72523         (re_regs_allocated): Renamed from regs_allocated.
72524         (re_fastmap_accurate): Renamed from fastmap_accurate.
72525         (re_no_sub): Renamed from no_sub.
72526         (re_not_bol): Renamed from not_bol.
72527         (re_not_eol): Renamed from not_eol.
72528         (re_newline_anchor): Renamed from newline_anchor.
72529
72530         Change the following member names in struct re_registers.
72531         The old names are still supported if !_REGEX_SOURCE.
72532         The new names are always supported, regardless of _REGEX_SOURCE.
72533         (rm_num_regs): Renamed from num_regs.
72534         (rm_start): Renamed from start.
72535         (rm_end): Renamed from end.
72536
72537         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
72538         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
72539         Prepend __ to parameter names.
72540
72541         Undo yesterday's changes.
72542
72543 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72544
72545         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
72546         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
72547         lib/regex.c.
72548
72549 2005-08-24  Jim Meyering  <jim@meyering.net>
72550
72551         Sync from coreutils.
72552         * m4/fcntl-safer.m4: New file.
72553
72554         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
72555         and object files for this module.
72556
72557 2005-08-24  Jim Meyering  <jim@meyering.net>
72558
72559         Sync from coreutils.
72560         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
72561
72562 2005-08-24  Jim Meyering  <jim@meyering.net>
72563
72564         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
72565         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
72566
72567 2005-08-24  Jim Meyering  <jim@meyering.net>
72568
72569         * modules/fcntl-safer: New module.
72570         * modules/fts (Depends-on): Add fcntl-safer.
72571         * MODULES.html.sh (File descriptor based Input/Output):
72572         Add fcntl-safer.
72573
72574 2005-08-24  Bruno Haible  <bruno@clisp.org>
72575
72576         Support for unit test modules.
72577         * modules/README: Mention tests modules.
72578         * modules/TEMPLATE-TESTS: New file.
72579         * gnulib-tool: New options --extract-tests-module, --with-tests and
72580         --tests-base (unused for the moment).
72581         (testsbase, inctests): New variables.
72582         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
72583         (func_verify_module): Exclude TEMPLATE-TESTS.
72584         (func_verify_nontests_module, func_verify_tests_module): New functions.
72585         (func_get_dependencies): Add implicit dependency for tests modules.
72586         (func_get_tests_module): New function.
72587         (func_modules_transitive_closure): When --with-tests was specified,
72588         include the unit tests as well, unless explicitly avoided.
72589         (func_emit_lib_Makefile_am): Ignore the tests modules here.
72590         (func_emit_tests_Makefile_am): New function.
72591         (func_create_testdir): When --with-tests was specified, emit a
72592         tests/ directory.
72593         * MODULES.html.sh (Future developments): Update.
72594
72595 2005-08-24  Bruno Haible  <bruno@clisp.org>
72596
72597         * modules/tls-tests: New file.
72598         * tests/test-tls.c: New file, from GNU gettext.
72599
72600 2005-08-24  Bruno Haible  <bruno@clisp.org>
72601
72602         * modules/lock-tests: New file.
72603         * tests/test-lock.c: New file, from GNU gettext.
72604
72605 2005-08-24  Bruno Haible  <bruno@clisp.org>
72606
72607         * lib/lock.h: Add multiple inclusion guard.
72608         * lib/tls.h: Add multiple inclusion guard.
72609
72610 2005-08-24  Bruno Haible  <bruno@clisp.org>
72611
72612         * gnulib-tool: Add support for the --aux-dir option to
72613         --create-testdir, --create-megatestdir, --test, --megatest.
72614         (func_create_testdir, func_create_megatestdir): Optionally emit a
72615         AC_CONFIG_AUX_DIR directive.
72616         (create-testdir, create-megatestdir, test, megatest): Provide a
72617         default value for $auxdir.
72618
72619 2005-08-24  Bruno Haible  <bruno@clisp.org>
72620
72621         * gnulib-tool (import): Use compound statement instead of subshell
72622         where possible.
72623
72624 2005-08-24  Bruno Haible  <bruno@clisp.org>
72625
72626         * gnulib-tool (import): Change --aux-dir default to "build-aux".
72627
72628 2005-08-24  Bruno Haible  <bruno@clisp.org>
72629
72630         * gnulib-tool (func_version): Update.
72631
72632 2005-08-24  Bruno Haible  <bruno@clisp.org>
72633
72634         * gnulib-tool (func_import, func_create_testdir,
72635         func_create_megatestdir): Quote all autoconf macro arguments.
72636
72637 2005-08-24  Bruno Haible  <bruno@clisp.org>
72638
72639         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
72640         option --force, because --force causes the aclocal.m4 of each
72641         subdirectory to be newer than the corresponding config.h.in.
72642
72643 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72644
72645         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
72646         All contents moved to gl_REGEX.
72647         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
72648         assume that it does.
72649
72650 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72651
72652         * lib/regex.h (REG_NOSYS)
72653         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
72654         Define, since POSIX requires it as of 2001.
72655         (_REG_ENOSYS)
72656         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
72657         New private symbol, used to keep the enum signed in all cases.
72658         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
72659         Youngman in
72660         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
72661
72662         * lib/regex_internal.c (re_string_skip_chars, register_state):
72663         (calc_state_hash):
72664         Remove forward decls; no longer needed now that we use prototypes.
72665         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
72666         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
72667         (clean_state_log_if_needed): Likewise.
72668
72669 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72670
72671         * config/srclist.txt: Add glibc bugs 1231-1233.
72672
72673 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72674
72675         Fix problems reported by Sam Steingold in
72676         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
72677         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
72678         assumed that reg_errcode_t is a signed type, which is not
72679         necessarily true if _XOPEN_SOURCE is not defined.
72680         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
72681         since some compilers warn about it otherwise.
72682
72683 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72684
72685         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
72686         (init_word_char, create_initial_state, duplicate_node_closure):
72687         (fetch_token, peek_token_bracket, build_range_exp):
72688         (build_collating_symbol): Remove forward decls; no longer needed
72689         now that we use prototypes.
72690
72691         * lib/regcomp.c:
72692         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
72693         (re_compile_fastmap_iter, regcomp, regerror, regfree):
72694         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
72695         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
72696         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
72697         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
72698         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
72699         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
72700         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
72701         (build_range_exp, build_collating_symbol, parse_bracket_exp):
72702         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
72703         (build_charclass, build_charclass_op, fetch_number, create_tree):
72704         (create_token_tree, mark_opt_subexp, duplicate_tree):
72705         Use prototypes rather than old-style definitions.
72706
72707         * lib/regex_internal.c:
72708         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
72709         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
72710         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72711         (re_string_reconstruct, re_string_peek_byte_case):
72712         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
72713         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72714         (re_node_set_init_copy, re_node_set_add_intersect):
72715         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72716         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72717         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72718         (re_acquire_state, re_acquire_state_context, register_state):
72719         (create_ci_newstate, create_cd_newstate, free_state):
72720         Likewise.
72721         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
72722         re_search_2):
72723         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
72724         (re_search_internal, prune_impossible_nodes):
72725         (acquire_init_state_context, check_matching, static):
72726         (check_halt_node_context, check_halt_state_context, proceed_next_node):
72727         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
72728         (update_regs, sift_states_backward, build_sifted_states):
72729         (clean_state_log_if_needed, merge_state_array):
72730         (update_cur_sifted_state, add_epsilon_src_nodes):
72731         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
72732         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
72733         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
72734         (find_recover_state, check_subexp_matching_top, transit_state_mb):
72735         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
72736         (check_arrival, check_arrival_add_next_nodes):
72737         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72738         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72739         (check_node_accept_bytes, check_node_accept, extend_buffers):
72740         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
72741         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
72742         (sift_ctx_init):
72743         Likewise.
72744
72745         * lib/regex_internal.h:
72746         (re_string_allocate, re_string_construct, re_string_reconstruct):
72747         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
72748         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
72749         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
72750         (re_string_context_at, re_string_peek_byte_case):
72751         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
72752         is defined, since we now use prototypes always.
72753
72754         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
72755         C89 or better.  All uses removed.
72756
72757 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72758
72759         * config/srclist.txt: Add glibc bugs 1220-1227.
72760
72761 2005-08-20  Jim Meyering  <jim@meyering.net>
72762
72763         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
72764         of unused local, dfa.
72765
72766 2005-08-20  Bruno Haible  <bruno@clisp.org>
72767
72768         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
72769
72770 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72771
72772         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
72773         (re_node_set_insert_last, re_dfa_add_node):
72774         Rename local variables to avoid GCC shadowing warnings.
72775
72776 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72777
72778         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
72779         [defined lint]: Suppress bogus uninitialized-variable warnings.
72780
72781         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
72782         and let the caller return REG_ESPACE if out of space.  This
72783         removes an uninitialied-variable warning with GCC 4.0.1, and also
72784         avoids taking the address of a local variable.  All callers
72785         changed.
72786
72787 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72788
72789         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
72790         $LIBCSRC/posix/regexec.c.
72791         Add glibc bug 1217 for regcomp.c.
72792
72793 2005-08-19  Jim Meyering  <jim@meyering.net>
72794
72795         * lib/regexec.c (proceed_next_node): Redo local variables to
72796         avoid GCC shadowing warnings.
72797
72798 2005-08-18  Bruno Haible  <bruno@clisp.org>
72799
72800         * lib/strstr.c (strstr): Fix return value in multibyte case.
72801         * lib/strcasestr.c (strcasestr): Likewise.
72802
72803 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72804
72805         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
72806
72807 2005-08-17  Jim Meyering  <jim@meyering.net>
72808
72809         Make the %s format (seconds since the epoch) work for a negative
72810         number and when used with a zero-padded field width, e.g. %015s.
72811
72812         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
72813         label so that it precedes the code to set `digits'.  Otherwise,
72814         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
72815         print `00-22'.  Now, it prints `-0022', as it should.
72816
72817 2005-08-17  Bruno Haible  <bruno@clisp.org>
72818
72819         * modules/strstr (Files): Add m4/mbrtowc.m4.
72820         (Depends-on): Add mbuiter.
72821
72822 2005-08-17  Bruno Haible  <bruno@clisp.org>
72823
72824         * modules/strcasestr: New file.
72825         * MODULES.html.sh (String handling, based on ANSI C 89): Add
72826         strcasestr.
72827
72828 2005-08-17  Bruno Haible  <bruno@clisp.org>
72829
72830         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
72831
72832 2005-08-17  Bruno Haible  <bruno@clisp.org>
72833
72834         * modules/mbuiter: New file.
72835         * MODULES.html.sh (Extended multibyte and wide character utilities):
72836         Add mbuiter.
72837
72838 2005-08-17  Bruno Haible  <bruno@clisp.org>
72839
72840         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
72841         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
72842
72843 2005-08-17  Bruno Haible  <bruno@clisp.org>
72844
72845         * m4/strcasestr.m4: New file.
72846
72847 2005-08-17  Bruno Haible  <bruno@clisp.org>
72848
72849         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
72850         * lib/strstr.c: Completely rewritten, with multibyte locale support.
72851
72852 2005-08-17  Bruno Haible  <bruno@clisp.org>
72853
72854         * lib/strcasestr.h: New file.
72855         * lib/strcasestr.c: New file.
72856
72857 2005-08-17  Bruno Haible  <bruno@clisp.org>
72858
72859         * lib/strcasecmp.c: Use mbuiter.h.
72860
72861 2005-08-17  Bruno Haible  <bruno@clisp.org>
72862
72863         * lib/mbuiter.h: New file.
72864
72865 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72866
72867         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
72868         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
72869         and gl_GETOPT are both invoked via different paths (as happens
72870         with GNU tar CVS because it uses both argp and getopt), the former
72871         wins.
72872
72873 2005-08-16  Bruno Haible  <bruno@clisp.org>
72874
72875         * modules/tls: New file.
72876         * MODULES.html.sh (Multithreading): Add tls.
72877
72878 2005-08-16  Bruno Haible  <bruno@clisp.org>
72879
72880         * modules/strnlen1: New file.
72881         * MODULES.html.sh (String handling): Add strnlen1.
72882
72883 2005-08-16  Bruno Haible  <bruno@clisp.org>
72884
72885         * modules/strcase (Files): Add m4/mbrtowc.m4.
72886         (Depends-on): Add strnlen1, mbchar.
72887
72888 2005-08-16  Bruno Haible  <bruno@clisp.org>
72889
72890         * modules/mbiter: New file.
72891         * MODULES.html.sh (Extended multibyte and wide character utilities):
72892         Add mbiter.
72893
72894 2005-08-16  Bruno Haible  <bruno@clisp.org>
72895
72896         * modules/mbfile: New file.
72897         * MODULES.html.sh (Extended multibyte and wide character utilities):
72898         Add mbfile.
72899
72900 2005-08-16  Bruno Haible  <bruno@clisp.org>
72901
72902         * modules/mbchar: New file.
72903         * MODULES.html.sh (Extended multibyte and wide character utilities):
72904         New section.
72905
72906 2005-08-16  Bruno Haible  <bruno@clisp.org>
72907
72908         * m4/tls.m4: New file, from GNU gettext.
72909
72910 2005-08-16  Bruno Haible  <bruno@clisp.org>
72911
72912         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72913         always.
72914         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72915
72916 2005-08-16  Bruno Haible  <bruno@clisp.org>
72917
72918         * m4/mbiter.m4: New file.
72919
72920 2005-08-16  Bruno Haible  <bruno@clisp.org>
72921
72922         * m4/mbfile.m4: New file.
72923
72924 2005-08-16  Bruno Haible  <bruno@clisp.org>
72925
72926         * m4/mbchar.m4: New file.
72927
72928 2005-08-16  Bruno Haible  <bruno@clisp.org>
72929
72930         * lib/tls.h: New file, from GNU gettext.
72931         * lib/tls.c: New file, from GNU gettext.
72932
72933 2005-08-16  Bruno Haible  <bruno@clisp.org>
72934
72935         * lib/strnlen1.h: New file.
72936         * lib/strnlen1.c: New file.
72937
72938 2005-08-16  Bruno Haible  <bruno@clisp.org>
72939
72940         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72941         (mbi_init): Update.
72942         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72943         NUL byte, not after it.
72944
72945 2005-08-16  Bruno Haible  <bruno@clisp.org>
72946
72947         * lib/strcase.h (strcasecmp): Add note in comments.
72948         * lib/strncasecmp.c: Use code from strcasecmp.c.
72949         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72950         (strcasecmp): Work correctly in multibyte locales.
72951
72952 2005-08-16  Bruno Haible  <bruno@clisp.org>
72953
72954         * lib/mbiter.h: New file.
72955
72956 2005-08-16  Bruno Haible  <bruno@clisp.org>
72957
72958         * lib/mbfile.h: New file.
72959
72960 2005-08-16  Bruno Haible  <bruno@clisp.org>
72961
72962         * lib/mbchar.h: New file.
72963         * lib/mbchar.c: New file.
72964
72965 2005-08-16  Bruno Haible  <bruno@clisp.org>
72966
72967         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72968         the valid ones. Makes the comparison operations transitive:
72969         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72970         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72971
72972 2005-08-15  Simon Josefsson  <jas@extundo.com>
72973
72974         * modules/ssize_t (License): Change to 'unlimited'.
72975
72976         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72977
72978 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72979
72980         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72981         Add comments for each pending glibc patch.
72982
72983 2005-08-15  Bruno Haible  <bruno@clisp.org>
72984
72985         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72986         __cplusplus is defined.
72987
72988 2005-08-14  Jim Meyering  <jim@meyering.net>
72989
72990         Sync from coreutils.
72991
72992         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72993         Use the hash-table-based cycle-detection code not just when
72994         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72995         Reported by James Youngman in
72996         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72997         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72998         FTS_TIGHT_CYCLE_CHECK.
72999         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
73000         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
73001         once again.
73002         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
73003         * lib/fts.c (fd_safer): Remove decl.
73004         Include fcntl--.h rather than unistd-safer.h
73005         (fts_safe_changedir): Don't call fd_safer; no longer needed
73006         now that we include fcntl--.h.
73007
73008 2005-08-12  Simon Josefsson  <jas@extundo.com>
73009
73010         * modules/getndelim2: Use ssize_t module.
73011         * modules/getnline: Likewise.
73012         * modules/safe-read: Likewise.
73013         * modules/xreadlink: Likewise.
73014
73015         * modules/ssize_t: New file.
73016
73017 2005-08-12  Simon Josefsson  <jas@extundo.com>
73018
73019         * m4/readline.m4: Look for termcap, curses or ncurses if required.
73020
73021 2005-08-12  Simon Josefsson  <jas@extundo.com>
73022
73023         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73024         ssize_t.
73025
73026 2005-08-12  Simon Josefsson  <jas@extundo.com>
73027
73028         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
73029         readline, getdelim and check_version.
73030         (Support for systems lacking ISO C 99: Sizes of integer types):
73031         Add size_max.
73032
73033 2005-08-12  Bruno Haible  <bruno@clisp.org>
73034
73035         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
73036
73037 2005-08-11  Simon Josefsson  <jas@extundo.com>
73038
73039         * modules/readline: New file.
73040
73041         * modules/strnlen (Files): Add strnlen.h.
73042
73043 2005-08-11  Simon Josefsson  <jas@extundo.com>
73044
73045         * m4/readline.m4: New file.
73046
73047 2005-08-11  Simon Josefsson  <jas@extundo.com>
73048
73049         * lib/readline.h, readline.c: New file.
73050
73051 2005-08-11  Simon Josefsson  <jas@extundo.com>
73052
73053         * doc/gnulib.texi (Initial import, Finishing touches): Mention
73054         gl_AVOID.
73055
73056 2005-08-11  Bruno Haible  <bruno@clisp.org>
73057
73058         * lib/strnlen.h (strnlen): Change parameter name to match comment.
73059
73060 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
73061
73062         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
73063
73064 2005-08-10  Simon Josefsson  <jas@extundo.com>
73065
73066         * tests/test-iconvme.c: New file.
73067
73068 2005-08-10  Simon Josefsson  <jas@extundo.com>
73069
73070         * m4/strnlen.m4: New file.
73071
73072         * m4/strndup.m4: Don't check for strnlen declaration, done in
73073         strnlen.m4.
73074
73075 2005-08-10  Simon Josefsson  <jas@extundo.com>
73076
73077         * lib/strndup.c: Use strnlen.h.
73078
73079         * lib/strnlen.h: New file.
73080
73081 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73082
73083         * README: Typos.
73084
73085 2005-08-02  Simon Josefsson  <jas@extundo.com>
73086
73087         * modules/readline: New file.
73088
73089 2005-08-02  Simon Josefsson  <jas@extundo.com>
73090
73091         * modules/getdelim: New file.
73092
73093         * modules/getline: Rewrite, don't use getndelim2.
73094
73095 2005-08-02  Simon Josefsson  <jas@extundo.com>
73096
73097         * m4/getline.m4: Separate out getdelim stuff into separate module.
73098
73099         * m4/getdelim.m4: New file.
73100
73101 2005-08-02  Simon Josefsson  <jas@extundo.com>
73102
73103         * lib/getline.h, getline.c: Rewrite.
73104
73105         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
73106
73107 2005-07-31  Bruno Haible  <bruno@clisp.org>
73108
73109         * lib/lock.h (gl_lock_initializer): New macro.
73110         (gl_lock_define_initialized): Use it.
73111         (gl_rwlock_initializer): New macro.
73112         (gl_rwlock_define_initialized): Use it.
73113         (gl_recursive_lock_initializer): New macro.
73114         (gl_recursive_lock_define_initialized): Use it.
73115
73116 2005-07-30  Karl Berry  <karl@gnu.org>
73117
73118         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
73119         Report from Ben Pfaff, regarding getopt.
73120
73121 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
73122
73123         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
73124         normal way.
73125         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
73126         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
73127         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
73128         (gl_GETOPT): Use the new macros.  Most of the implementation
73129         is moved to the new macros.  This is for programs like Emacs
73130         that don't want all the functionality of gl_GETOPT.
73131
73132 2005-07-26  Bruno Haible  <bruno@clisp.org>
73133
73134         * m4/lock.m4: Update from GNU gettext.
73135
73136 2005-07-26  Bruno Haible  <bruno@clisp.org>
73137
73138         * lib/lock.h: Update from GNU gettext.
73139         * lib/lock.c: Update from GNU gettext.
73140
73141 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
73142
73143         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
73144         obsolescent AC_TRY_RUN.  Include the default includes files, for
73145         'exit'.
73146
73147 2005-07-24  Bruno Haible  <bruno@clisp.org>
73148
73149         * modules/visibility: New file.
73150         * MODULES.html.sh (Misc): Add visibility.
73151
73152 2005-07-24  Bruno Haible  <bruno@clisp.org>
73153
73154         * m4/visibility.m4: New file.
73155
73156 2005-07-24  Bruno Haible  <bruno@clisp.org>
73157
73158         * doc/visibility.texi: New file.
73159
73160 2005-07-22  Bruno Haible  <bruno@clisp.org>
73161
73162         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
73163         $(ALLOCA_H), redundant through BUILT_SOURCES.
73164         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
73165         redundant through BUILT_SOURCES.
73166         * modules/byteswap (Makefile.am): Remove explicit dependency on
73167         $(BYTESWAP_H), redundant through BUILT_SOURCES.
73168         * modules/fnmatch (Makefile.am): Remove explicit dependency on
73169         $(FNMATCH_H), redundant through BUILT_SOURCES.
73170         * modules/getopt (Makefile.am): Remove explicit dependency on
73171         $(GETOPT_H), redundant through BUILT_SOURCES.
73172         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
73173         redundant through BUILT_SOURCES.
73174         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
73175         redundant through BUILT_SOURCES.
73176         * modules/stdbool (Makefile.am): Remove explicit dependency on
73177         $(STDBOOL_H), redundant through BUILT_SOURCES.
73178         * modules/stdint (Makefile.am): Remove explicit dependency on
73179         $(STDINT_H), redundant through BUILT_SOURCES.
73180         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
73181         Remove explicit dependency on $(SYSEXITS_H).
73182         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
73183
73184 2005-07-18  Simon Josefsson  <jas@extundo.com>
73185
73186         * lib/check-version.c (check_version): Accept identical versions too.
73187
73188 2005-07-18  Bruno Haible  <bruno@clisp.org>
73189
73190         * modules/lock: New file.
73191         * MODULES.html.sh (Multithreading): New section.
73192
73193 2005-07-18  Bruno Haible  <bruno@clisp.org>
73194
73195         * m4/lock.m4: New file, from GNU gettext.
73196
73197 2005-07-18  Bruno Haible  <bruno@clisp.org>
73198
73199         * lib/lock.h: New file, from GNU gettext.
73200         * lib/lock.c: New file, from GNU gettext.
73201
73202 2005-07-18  Bruno Haible  <bruno@clisp.org>
73203
73204         * lib/lock.h (gl_once_t): New type.
73205         (gl_once_define, gl_once): New macros.
73206         * lib/lock.c (fresh_once): New variable.
73207         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
73208         functions.
73209
73210 2005-07-16  Simon Josefsson  <jas@extundo.com>
73211
73212         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
73213         workaround, suggested by Bruno.
73214
73215 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73216
73217         * modules/xalloc (Depends-on): Add xalloc-die.
73218         * modules/xvasprintf (Depends-on): Add xalloc-die.
73219
73220 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73221
73222         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
73223         with a minor change.
73224
73225 2005-07-15  Bruno Haible  <bruno@clisp.org>
73226
73227         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
73228         When using lib/poll.c, define poll as rpl_poll.
73229
73230 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
73231
73232         * modules/argp (Depends-on): Remove unlocked-io.
73233
73234 2005-07-14  Derek Price  <derek@ximbiot.com>
73235
73236         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
73237         for glob symlink bug.
73238
73239 2005-07-14  Bruno Haible  <bruno@clisp.org>
73240
73241         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
73242         Instead, test for *_unlocked function declarations directly.
73243
73244 2005-07-11  Simon Josefsson  <jas@extundo.com>
73245
73246         * modules/size_max: New file.
73247
73248         * modules/xsize: Depend on size_max module for size_max.m4.
73249
73250 2005-07-11  Simon Josefsson  <jas@extundo.com>
73251
73252         * lib/size_max.h: New file.
73253
73254 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
73255
73256         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
73257         copyright symbol and the year.
73258         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
73259         (version_etc_va): Use parameterized copyright notice.
73260         Reword to conform to the current GNU coding standards.
73261
73262 2005-07-11  Karl Berry  <karl@gnu.org>
73263
73264         * doc/gnulib.texi (Quoting): new node.
73265         (Initial import): more info, from Patrice.
73266
73267 2005-07-11  Bruno Haible  <bruno@clisp.org>
73268
73269         * gnulib-tool (func_usage): Document option --avoid.
73270         (Command line options): Handle --avoid.
73271         (func_acceptable): New function.
73272         (func_modules_transitive_closure): Use it.
73273
73274 2005-07-11  Bruno Haible  <bruno@clisp.org>
73275
73276         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
73277         Reported by Jim Meyering.
73278
73279 2005-07-10  Bruno Haible  <bruno@clisp.org>
73280
73281         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
73282         Needed when size_t is smaller than 'unsigned int'.
73283         Reported by Paul Eggert.
73284
73285 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73286
73287         * modules/argp (Depends-on): Add unlocked-io
73288
73289 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73290
73291         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
73292         block of defines.
73293
73294 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73295
73296         * config/srclist.txt: Comment out regcomp.c, since we have a porting
73297         fix now.
73298
73299 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
73300         and Paul Eggert  <eggert@cs.ucla.edu>
73301
73302         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
73303         in wint_t, not wchar_t.  Remove now-unnecessary cast.
73304
73305 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73306
73307         * modules/regex (Files): Add lib/regex_internal.c,
73308         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
73309         (Depends-on): Add extensions.
73310         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
73311
73312 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73313
73314         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
73315         pathconf.
73316         * m4/same.m4 (gl_SAME): Likewise.
73317         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
73318
73319         * m4/regex.m4: Adjust to new libc regex implementation.
73320         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
73321         all the .c and .h parts of (the new) regex.
73322         Quote the m4 stuff better.
73323         Check for RE_ICASE bug of old gnulib.
73324         Check for REG_STARTEND of recent libc.
73325         Rename local variables from jm_* to gl_*.
73326         Quote operand of "test -f".
73327         Say "recent enough" version of libc, not "version 2".
73328         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
73329         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
73330         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
73331         Remove check for btowc, isascii.
73332         Require AM_LANGINFO_CODESET.
73333
73334 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73335
73336         * lib/regex.c, regex.h: Sync from libc.
73337         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
73338         * lib/regexec.c:
73339         New files, synced from libc, except that regex_internal.h
73340         currently has a small porting fix.
73341
73342 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73343
73344         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
73345         regex_internal.c, regexec.c.
73346         Add regex_internal.h too, but as a comment, since the libc version
73347         is currently broken in gnulib mode.
73348
73349 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73350
73351         Support programs like Emacs that use gnulib but not gettext.
73352         * MODULES.html.sh (Internationalization functions): Add gettext-h.
73353         * modules/gettext-h: New file.
73354         * modules/gettext (Files): Remove lib/gettext.h.
73355         (Depends-on): Add gettext-h.
73356         (Makefile.am): Remove lib_SOURCES.
73357         * modules/argmatch, modules/c-stack, modules/closeout:
73358         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
73359         * modules/execute, modules/file-type, modules/getaddrinfo:
73360         * modules/getopt, modules/human, modules/javacomp:
73361         * modules/javaexec, modules/mkdir-p, modules/obstack:
73362         * modules/openat, modules/pagealign_alloc, modules/pipe:
73363         * modules/quotearg, modules/regex, modules/rpmatch:
73364         * modules/unicodeio, modules/userspec, modules/version-etc:
73365         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
73366         * modules/xsetenv:
73367         Depend on gettext-h, not gettext.
73368
73369 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73370
73371         * gnulib-tool (func_import): Add support for 'public domain' license.
73372         * modules/alloca, modules/atexit, modules/memmove:
73373         Now public domain, not GPL.
73374         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
73375         * modules/realloc, modules/strerror, modules/strtod:
73376         Now LGPL, not GPL.
73377
73378 2005-07-05  Bruno Haible  <bruno@clisp.org>
73379
73380         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
73381         autoconf CVS. Needed for mingw.
73382
73383 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73384
73385         Remove the dependency of the strftime module on the tzset module.
73386         * modules/strftime (Depends-on): Remove dependency on tzset.
73387
73388 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73389
73390         Remove the dependency of the strftime module on the tzset module.
73391         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
73392         gl_FUNC_TZSET_CLOBBER.
73393
73394 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73395
73396         Remove the dependency of the strftime module on the tzset module.
73397         * lib/strftime.c (my_strftime)
73398         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
73399         Copy the input structure, to work around some of the bug with
73400         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
73401         Solaris releases, you should also use the tzset module, but we won't
73402         require it as a dependency any more since we don't want LGPLed code
73403         to depend on GPLed code.
73404
73405 2005-07-02  Jim Meyering  <jim@meyering.net>
73406
73407         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
73408         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
73409         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
73410         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
73411
73412 2005-07-02  Jim Meyering  <jim@meyering.net>
73413
73414         * lib/backupfile.c (backup_args): Change a `0' to NULL.
73415
73416 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73417
73418         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
73419         declares only 'struct timespec;' (!).
73420
73421 2005-07-01  Jim Meyering  <jim@meyering.net>
73422
73423         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
73424         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
73425         * lib/save-cwd.c, tempname.c:
73426         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73427         and don't include <sys/file.h>).
73428
73429 2005-06-29  Jim Meyering  <jim@meyering.net>
73430
73431         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
73432         type name.  Use the variable name instead.
73433         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
73434         Likewise.
73435
73436 2005-06-28  Simon Josefsson  <jas@extundo.com>
73437
73438         * modules/check-version (Files): Add check-version.m4.
73439
73440 2005-06-28  Simon Josefsson  <jas@extundo.com>
73441
73442         * m4/check-version.m4: New file, suggested by Jim Meyering
73443         <jim@meyering.net>.
73444
73445 2005-06-28  Simon Josefsson  <jas@extundo.com>
73446
73447         * lib/check-version.h, lib/check-version.c: New files.
73448
73449 2005-06-28  Simon Josefsson  <jas@extundo.com>
73450
73451         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
73452         collision with global variable.  Better indentation.  Don't
73453         increment buffer pointer beyond buffer end.  Based on comments
73454         from Paul Eggert <eggert@cs.ucla.edu>.
73455
73456         * lib/base64.h: Indent.
73457
73458 2005-06-28  Simon Josefsson  <jas@extundo.com>
73459
73460         * doc/gnulib.texi (Library version handling): New section.
73461
73462 2005-06-28  Jim Meyering  <jim@meyering.net>
73463
73464         * check-module (find_included_lib_files): Hard-code another
73465         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
73466         but modules/fts-lgpl (correctly) does not list those files.
73467
73468         * modules/canonicalize (Files): Add lib/pathmax.h.
73469
73470 2005-06-25  Simon Josefsson  <jas@extundo.com>
73471
73472         * modules/check-version: New file.
73473
73474 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
73475
73476         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
73477         initializer of struct addrinfo, as an indication that we don't
73478         care how many members the structure has.
73479
73480 2005-06-24  Derek Price  <derek@ximbiot.com>
73481         and Bruno Haible  <bruno@clisp.org>
73482
73483         Remove stat module & update lstat.
73484         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
73485         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73486         * m4/stat.m4: Remove this file.
73487
73488 2005-06-24  Derek Price  <derek@ximbiot.com>
73489         and Bruno Haible  <bruno@clisp.org>
73490
73491         Remove stat module & update lstat.
73492         * lib/stat.c: Remove this file...
73493         (slash_aware_lstat): ...moving this content and its support...
73494         * lib/lstat.c (rpl_lstat): ...into here.
73495         * lib/lstat.h: New file.
73496
73497 2005-06-24  Derek Price  <derek@ximbiot.com>
73498         and Bruno Haible  <bruno@clisp.org>
73499
73500         Remove stat module & update lstat.
73501         * config/srclist.txt (libc sources): Remove stat.
73502
73503 2005-06-24  Derek Price  <derek@ximbiot.com>
73504         and Bruno Haible  <bruno@clisp.org>
73505
73506         Remove stat module & update lstat.
73507         * MODULES.html.sh (stat): Remove.
73508         * MODULES.html: Regenerated.
73509         * modules/lstat (Description): Correct function name.
73510         (Files): Add "lstat.h".
73511         (Depends-on): Remove stat, add xalloc, stat-macros.
73512         * modules/stat: Remove this file.
73513         (Include): Add "lstat.h", remove <sys/stat.h>.
73514
73515 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
73516
73517         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
73518         (ranged_convert): Don't save conversion in a temporary struct.
73519         This causes a warning with GCC 4.0.0, and anyway in the typical
73520         case it's not worth the extra 100 bytes or so of code.
73521         (ranged_convert, __mktime_internal): When calling a function via a
73522         pointer P, use P () rather than (*P) (), as we now assume C89 or
73523         better.
73524
73525 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73526
73527         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
73528         "who -r" failed to give output.  Problem reported by Tim Waugh.
73529
73530         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
73531         (xcalloc): Use it to avoid needless tests.
73532         Problem reported by Jim Meyering.
73533
73534 2005-06-20  Derek Price  <derek@ximbiot.com>
73535
73536         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
73537         unnecessary for Autoconfs > 2.59c.
73538
73539 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73540
73541         * lib/argp.h (__option_is_short): Check upper limit of
73542         __key. Isprint() requires its argument to have the value
73543         of an unsigned char or EOF.
73544
73545 2005-06-16  Jim Meyering  <jim@meyering.net>
73546
73547         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
73548         when either N or S is zero.
73549
73550 2005-06-16  Derek Price  <derek@ximbiot.com>
73551
73552         * m4/bison.m4: Declare YACC & YFLAGS precious.
73553
73554 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
73555
73556         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
73557         multibyte string or pattern, fall back on unibyte matching.
73558         Problem reported by James Youngman.
73559
73560 2005-06-08  Bruno Haible  <bruno@clisp.org>
73561
73562         * modules/csharpcomp: New file.
73563         * MODULES.html.sh (C#): Add csharpcomp.
73564
73565 2005-06-08  Bruno Haible  <bruno@clisp.org>
73566
73567         * m4/csharpcomp.m4: New file, from GNU gettext.
73568
73569 2005-06-08  Bruno Haible  <bruno@clisp.org>
73570
73571         * lib/csharpcomp.h: New file, from GNU gettext.
73572         * lib/csharpcomp.c: New file, from GNU gettext.
73573         * lib/csharpcomp.sh.in: New file, from GNU gettext.
73574
73575 2005-06-08  Bruno Haible  <bruno@clisp.org>
73576
73577         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
73578         warning on mingw.
73579
73580 2005-06-07  Derek Price  <derek@ximbiot.com>
73581
73582         Sync from CVS.
73583         * lib/glob_.h: Indent nested #ifdef.
73584
73585 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73586
73587         Sync from coreutils.
73588         Use "file name" when talking about file names, instead of "filename"
73589         or "path", as per the GNU coding standards.
73590         * lib/mkdir-p.c: Renamed from makepath.c.
73591         (make_dir_parents): Renamed from make_path.  All callers changed.
73592         * lib/mkdir-p.h: Likewise.  All includers changed.
73593         * lib/filenamecat.c: Renamed from path-concat.c.
73594         (file_name_concat): Renamed from path_concat.  All callers changed.
73595         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
73596         * lib/filenamecat.h: Likewise.  All includers changed.
73597         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
73598         in comments or local variable names.
73599         * lib/basename.c: Likewise.
73600         * lib/canonicalize.c, canonicalize.h: Likewise.
73601         * lib/dirname.c, dirname.h: Likewise.
73602         * lib/euidaccess.c: Likewise.
73603         * lib/exclude.c: Likewise
73604         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
73605         * lib/fsusage.c, fsuage.h: Likewise.
73606         * lib/fts.c, fts_.h: Likewise.
73607         * lib/getcwd.c: Likewise.
73608         * lib/getloadavg.c: Likewise.
73609         * lib/mkstemp.c: Likewise.
73610         * lib/mountlist.c, mountlist.h: Likewise.
73611         * lib/openat.c, openat.h: Likewise.
73612         * lib/readlink-stub.c: Likewise.
73613         * lib/readutmp.c, readutmp.h: Likewise.
73614         * lib/rename.c: Likewise.
73615         * lib/rmdir.c: Likewise.
73616         * lib/same.c: Likewise.
73617         * lib/savedir.c: Likewise.
73618         * lib/stripslash.c: Likewise.
73619         * lib/tempname.c: Likewise.
73620         * lib/xreadlink.c: Likewise.
73621         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
73622         All uses changed.
73623         * lib/exclude.h: Likewise.
73624
73625         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
73626         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73627         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
73628         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73629         * lib/pathmax.h: Include <limits.h> unconditionally, since other
73630         files have been getting away with it for years (MORE/BSD 4.3
73631         is extinct now).
73632         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
73633         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73634
73635         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
73636         Define to 256, not 255, as per modern POSIX.
73637
73638 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73639
73640         Sync from coreutils.
73641         Use "file name" when talking about file names, instead of "filename"
73642         or "path", as per the GNU coding standards.
73643         * MODULES.html.sh: mkdir-p renamed from makepath.
73644         filenamecat renamed from path-concat.
73645         * modules/filenamecat: Renamed from modules/path-concat.
73646         (Files): filenamecat.h and filenamecat.c renamed from
73647         path-concat.h and path-concat.c.
73648         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
73649         (Include): filenamecat.h, not path-concat.h.
73650         * modules/mkdir-p: Renamed from modules/makepath.
73651         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
73652         makepath.c.
73653         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
73654         (Include): mkdir-p.h, not makepath.h.
73655
73656 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73657
73658         Sync from coreutils.
73659         * m4/mkdir-p.m4: Renamed from makepath.m4.
73660         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
73661         Rename files from makepath.c to mkdir-p.c, and from
73662         makepath.h to mkdir-p.h.
73663         * m4/filenamecat.m4: Renamed from path-concat.m4.
73664         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
73665         Rename files from path-concat.c to filenamecat.c,
73666         and from path-concat.h to filenamecat.h.
73667         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
73668         "file name" in local variables or comments.
73669         * m4/rename.m4: Likewise.
73670
73671 2005-06-01  Bruno Haible  <bruno@clisp.org>
73672
73673         * modules/csharpexec: New file.
73674         * MODULES.html.sh (C#): New section.
73675
73676 2005-06-01  Bruno Haible  <bruno@clisp.org>
73677
73678         * m4/csharp.m4: New file, from GNU gettext.
73679         * m4/csharpexec.m4: New file, from GNU gettext.
73680
73681 2005-06-01  Bruno Haible  <bruno@clisp.org>
73682
73683         * lib/csharpexec.h: New file, from GNU gettext.
73684         * lib/csharpexec.c: New file, from GNU gettext.
73685         * lib/csharpexec.sh.in: New file, from GNU gettext.
73686
73687 2005-05-31  Derek Price  <derek@ximbiot.com>
73688             Paul Eggert  <eggert@cs.ucla.edu>
73689
73690         Sync from cvs.
73691         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73692
73693 2005-05-31  Derek Price  <derek@ximbiot.com>
73694             Paul Eggert  <eggert@cs.ucla.edu>
73695
73696         Sync from cvs.
73697         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73698
73699 2005-05-29  Derek Price  <derek@ximbiot.com>
73700
73701         * config/srclist.txt (glob_.h, glob.c): Add these files.
73702
73703 2005-05-29  Derek Price  <derek@ximbiot.com>
73704
73705         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
73706         * modules/glob: New file.
73707         * modules/getlogin_r: Add link to POSIX spec in description.
73708
73709 2005-05-29  Derek Price  <derek@ximbiot.com>
73710             Paul Eggert  <eggert@cs.ucla.edu>
73711
73712         * m4/glob.m4: New file.
73713
73714 2005-05-29  Derek Price  <derek@ximbiot.com>
73715             Paul Eggert  <eggert@cs.ucla.edu>
73716
73717         * lib/glob_.h, lib/glob.c: New files.
73718
73719 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73720
73721         * modules/fts (Files): Remove m4/inttypes-pri.m4.
73722         * modules/fts-lgpl (Depends-on): Remove gettext.
73723
73724 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73725
73726         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
73727         and don't require gt_INTTYPES_PRI.
73728
73729 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73730
73731         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
73732
73733         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
73734         the configuration hassle isn't worth it.
73735         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
73736         (LONGEST_MODIFIER, PRIuMAX): Remove.
73737
73738 2005-05-27  Bruno Haible  <bruno@clisp.org>
73739
73740         * lib/getlogin_r.h: Remove second include of <stddef.h>.
73741
73742 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
73743
73744         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
73745         _POSIX_PTHREAD_SEMANTICS for Solaris.
73746
73747 2005-05-25  Derek Price  <derek@ximbiot.com>
73748
73749         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
73750
73751 2005-05-25  Derek Price  <derek@ximbiot.com>
73752             Paul Eggert  <eggert@cs.ucla.edu>
73753
73754         * modules/getlogin_r, m4/getlogin_r.m4: New files.
73755         * lib/getlogin_r.c, getlogin_r.h: New files.
73756
73757 2005-05-25  Bruno Haible  <bruno@clisp.org>
73758             Derek Price  <derek@ximbiot.com>
73759
73760         * lib/getlogin_r.h: Simplify API documentation.
73761
73762 2005-05-23  Derek Price  <derek@ximbiot.com>
73763
73764         * modules/minmax (Files): Add m4/minmax.m4.
73765         (configure.ac): Add gl_MINMAX.
73766
73767 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73768
73769         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
73770         so that unistd-safer.h (GPL'ed code) need not be included.
73771
73772 2005-05-22  Bruno Haible  <bruno@clisp.org>
73773
73774         * m4/minmax.m4: New file.
73775         Based on a patch by Derek Price <derek@ximbiot.com>.
73776
73777 2005-05-22  Bruno Haible  <bruno@clisp.org>
73778
73779         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
73780         (INT64_MIN): Fix definition.
73781         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
73782
73783         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
73784         NEED_SIGNED_INT_TYPES.
73785
73786         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
73787         HAVE_SYSTEM_INTTYPES.
73788
73789 2005-05-22  Bruno Haible  <bruno@clisp.org>
73790
73791         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
73792         Also include <sys/param.h> if it defines MIN, MAX.
73793         Based on a patch by Derek Price <derek@ximbiot.com>.
73794
73795 2005-05-21  Jim Meyering  <jim@meyering.net>
73796
73797         * modules/fts (Files): Add m4/inttypes-pri.m4.
73798         (Depends-on): Add lstat and remove gettext.  Alphabetize.
73799
73800 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73801
73802         New fts module.
73803         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
73804         (setup_dir, free_dir): New functions.
73805         (enter_dir, leave_dir): Define trivial
73806         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
73807         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
73808         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
73809         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
73810         Move to fts-cycle.c.
73811         (fts_open): Use setup_dir.
73812         (fts_close): Use free_dir.
73813         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
73814         This adds a label and some gotos, but the alternatives were messier.
73815         Check for memory allocation failure when entering a dir.
73816         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
73817         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
73818         (FTS): New member fts_cycle, that is a union that contains the
73819         old active_dir_ht and cycle_state.  All uses changed to mention
73820         fts_cycle.ht and fts_cycle.state.
73821         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
73822         fts.c, with the following changes:
73823         (setup_dir, free_dir): New functions.
73824         (enter_dir): Now returns bool.  Return true if successful, false
73825         if memory exhausted.  All callers changed.
73826         Do not bother partly cleaning up on
73827         memory allocation failure; that is free_dir's job.
73828         However, free ad if hash_insert fails, to avoid memory leak.
73829         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
73830         fts->fts_options to see which union member to use.
73831
73832 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73833
73834         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
73835         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
73836
73837 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73838
73839         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
73840
73841 2005-05-20  Jim Meyering  <jim@meyering.net>
73842
73843         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
73844         Now a macro, to pacify GCC.
73845
73846 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73847
73848         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
73849         of -1.
73850
73851 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73852
73853         * lib/chown.c (rpl_chown): Return -1 on failure.
73854
73855 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73856
73857         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
73858         Don't check for stddef.h.
73859         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
73860         don't use its results.
73861         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
73862         since we include them unconditionally.  Don't require
73863         AM_STDBOOL_H, since stdbool is a prerequisite.
73864         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
73865         since we assume C89 or better.
73866         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
73867         as we don't use their results.
73868         Don't check for fchdir, memmove, memset, strrchr, as we use
73869         them unconditionally.
73870         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
73871         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
73872
73873 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73874
73875         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
73876         Include <stddef.h> unconditionally, since we assume C89 now.
73877         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
73878         * lib/fts.c: Include fts_.h first, to check interface.
73879         Do not include intprops.h; no longer needed.
73880         Include cycle-check.h and hash.h, since fts_.h no longer does.
73881         Remove unnecessary casts of closedir to void.
73882         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
73883         decide whether to decrement nlinks.
73884         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
73885         (FTS): Use struct hash_table * instead of Hash_table, so that
73886         we no longer need to include hash.h here.
73887
73888 2005-05-18  Jim Meyering  <jim@meyering.net>
73889
73890         * modules/dirfd (License): Change to LGPL.  Most of the code
73891         is already in the public domain.
73892
73893 2005-05-18  Jim Meyering  <jim@meyering.net>
73894
73895         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
73896         Reported by Yoann Vandoorselaere.
73897
73898 2005-05-17  Jim Meyering  <jim@meyering.net>
73899
73900         * m4/fts.m4: New file, from coreutils.
73901
73902 2005-05-17  Jim Meyering  <jim@meyering.net>
73903
73904         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73905
73906 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73907
73908         Sync from coreutils.
73909         * m4/unlinkdir.m4: New file.
73910
73911 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73912
73913         Sync from coreutils.
73914         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73915         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73916         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73917         White space changes only.
73918         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73919         special.
73920         * lib/yesno.c: Include getline.h, not ctype.h.
73921         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73922         Use getline to remove arbitrary restriction on response length.
73923
73924 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73925
73926         * config/srclist-update: Spell out "Street" in FSF postal
73927         mail address; this is the style the FSF seems to prefer.
73928
73929         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73930         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73931         this updates FSF postal mail address.
73932
73933         Sync from coreutils.
73934         * modules/unlinkdir: New file.
73935         * modules/yesno (Depends-on): Add getline.
73936         * MODULES.html.sh (File system functions): Add unlinkdir.
73937
73938 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73939
73940         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73941         lib/strsep.h:
73942         Change the initial comment to refer to GPL, not LGPL.
73943         gnulib-tool will change it to LGPL as needed.
73944
73945         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73946         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73947         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73948         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73949         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73950         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73951         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73952         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73953         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73954         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73955         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73956         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73957         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73958         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73959         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73960         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73961         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73962         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73963         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73964         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73965         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73966         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73967         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73968         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73969         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73970         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73971         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73972         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73973         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73974         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73975         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73976         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73977         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73978         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73979         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73980         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73981         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73982         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73983         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73984         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73985         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73986         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73987         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73988         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73989         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73990         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73991         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73992         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73993         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73994         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73995         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73996         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73997         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73998         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73999         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
74000         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
74001         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
74002         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
74003         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
74004         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
74005         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
74006         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
74007         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
74008         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
74009         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
74010         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
74011         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
74012         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
74013         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
74014         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
74015         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
74016         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
74017         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
74018         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
74019         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
74020         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
74021         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
74022         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
74023         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
74024         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
74025         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
74026         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
74027         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
74028         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
74029         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
74030         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
74031         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
74032         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
74033         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
74034         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
74035         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
74036         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
74037         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
74038         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
74039         lib/yesno.c, lib/yesno.h:
74040         Update FSF postal mail address.
74041
74042 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74043
74044         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
74045         tests/test-memmem.c, tests/test-stpncpy.c:
74046         Update FSF postal mail address.
74047
74048 2005-05-13  Bruno Haible  <bruno@clisp.org>
74049
74050         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
74051         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
74052         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
74053         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
74054         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
74055         Add support for 64-bit integers in the MSVC compiler.
74056
74057 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74058
74059         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
74060
74061 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
74062
74063         * gnulib-tool (func_import): Sort and uniquify recommended includes.
74064
74065 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
74066
74067         * doc/getdate.texi (General date syntax): Don't say that date
74068         date --iso-8601=ns generates acceptable dates; it doesn't yet.
74069         Problem reported by Nic Ferrier.
74070
74071 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74072
74073         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
74074         specified in ai_socktype. Fix invalid ai_protocol
74075         check. ai_protocol is usually set to 0 or depending on
74076         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
74077         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
74078         ai_socktype / ai_protocol in the returned addrinfo structure.
74079
74080 2005-05-10  Simon Josefsson  <jas@extundo.com>
74081
74082         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
74083         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74084
74085 2005-05-10  Karl Berry  <karl@gnu.org>
74086
74087         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
74088         (from http://www.gnu.org/licenses).
74089         * doc/COPYING.LIB: also rename to COPYING.LESSER.
74090         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
74091         fdl.texi suffices.
74092
74093 2005-05-10  Karl Berry  <karl@gnu.org>
74094
74095         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
74096         (COPYING.DOC): remove.
74097
74098         * config/srclist-update: new FSF address.
74099
74100 2005-05-10  Derek Price  <derek@ximbiot.com>
74101
74102         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
74103         possible.
74104
74105 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74106             Bruno Haible  <bruno@clisp.org>
74107
74108         * modules/inet_ntop: New file.
74109         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74110         inet_ntop.
74111
74112 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74113             Bruno Haible  <bruno@clisp.org>
74114
74115         * m4/inet_ntop.m4: New file.
74116
74117 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74118             Bruno Haible  <bruno@clisp.org>
74119
74120         * lib/inet_ntop.h: New file.
74121         * lib/inet_ntop.c: New file, from glibc with modifications.
74122
74123 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
74124
74125         * modules/time_r (License): Change to LGPL.
74126         * modules/extensions (License): Change to LGPL.  Actually,
74127         the license is more permissive than that, but currently gnulib-tool
74128         doesn't know how to handle more-permissive licenses.
74129
74130         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
74131         Problem reported by Dave Love.
74132
74133 2005-05-08  Jim Meyering  <jim@meyering.net>
74134
74135         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
74136         blank.
74137
74138 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74139
74140         * modules/argmatch (Depends-on): Add stdbool.
74141         * modules/backupfile (Depends-on): Likewise.
74142         * modules/chdir-long (Depends-on): Likewise.
74143         * modules/closeout (Depends-on): Likewise.
74144         * modules/cycle-check (Depends-on): Likewise.
74145         * modules/dirname (Depends-on): Likewise.
74146         * modules/fnmatch (Depends-on): Likewise.
74147         * modules/fsusage (Depends-on): Likewise.
74148         * modules/fwriteerror (Depends-on): Likewise.
74149         * modules/getcwd (Depends-on): Likewise.
74150         * modules/getloadavg (Depends-on): Likewise.
74151         * modules/hard-locale (Depends-on): Likewise.
74152         * modules/makepath (Depends-on): Likewise.
74153         * modules/mountlist (Depends-on): Likewise.
74154         * modules/nanosleep (Depends-on): Likewise.
74155         * modules/posixtm (Depends-on): Likewise.
74156         * modules/quotearg (Depends-on): Likewise.
74157         * modules/readtokens (Depends-on): Likewise.
74158         * modules/readtokens0 (Depends-on): Likewise.
74159         * modules/readutmp (Depends-on): Likewise.
74160         * modules/save-cwd (Depends-on): Likewise.
74161         * modules/strftime (Depends-on): Likewise.
74162         * modules/userspec (Depends-on): Likewise.
74163         * modules/utimecmp (Depends-on): Likewise.
74164         * modules/xgetcwd (Depends-on): Likewise.
74165         * modules/xnanosleep (Depends-on): Likewise.
74166         * modules/xstrtod (Depends-on): Likewise.
74167         * modules/yesno (Depends-on): Likewise.
74168
74169 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
74170
74171         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
74172         needless checks.
74173
74174 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74175
74176         Merge from coreutils.  Among other things,
74177         add bulletproofing for cases where stdin, stdout, or stderr are closed.
74178         * lib/fd-safer.c: New file.
74179         * lib/fcntl-safer.h, open-safer.c: Remove.
74180         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
74181         * lib/dup-safer.c: Include unistd-safer.h first.
74182         Don't include errno.h.
74183         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
74184         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
74185         * lib/file-type.c: Rely on file-type.h change.
74186         * lib/getloadavg.c: Include unistd-safer.h.
74187         (getloadavg): Use safer open.
74188         * lib/getusershell.c: Include "stdio-safer.h".
74189         (getusershell): Use safer fopen.
74190         * lib/long-options.c (long_options): Use NULL rather than 0.
74191         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
74192         'free'.
74193         * lib/modechange.c: Likewise.
74194         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
74195         (MODE_DONE): New constant.
74196         (struct mode_change): Remove 'next' member.
74197         (make_node_op_equals): New function; like the old one of the
74198         same name, except it allocates an array.
74199         (mode_compile, mode_create_from_ref): Use it.
74200         (mode_compile): Allocate result as an array, not a linked list.
74201         Parse octal string ourself, so that we catch mistakes like "+0".
74202         (mode_adjust): Arg is an array, not a linked list.
74203         * lib/modechange.c: Include stat-macros.h, xalloc.h.
74204         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
74205         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
74206         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
74207         Remove.  This is now stat-macros.h's job.
74208         (talloc): Remove.  All callers replaced by xalloc, so that
74209         our invokers don't have to worry about reporting memory failures.
74210         (make_node_op_equals): Remove.
74211         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74212         New constants.
74213         (struct mode_change): Moved here from modechange.h.
74214         (mode_append_entry): Remove.
74215         (mode_compile): Remove MASKED_OPS arg, since it encouraged
74216         apps to have incorrect behavior.  Use simpler algorithm for head
74217         and tail.  Don't futz with umask; that's now the job of mode_adjust.
74218         Detect more invalid usages rather than having somewhat-random behavior.
74219         Don't insert an "a=" action, as that leads to incorrect behavior.
74220         (mode_compile, mode_create_from_ref): Return NULL on error instead
74221         of an enum, since now there's only one way to have an error.  All
74222         callers changed.
74223         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
74224         at the correct time.  Simplify calculation of "+u" and its ilk.
74225         Don't mishandle "+X".
74226         (mode_free): Remove "register" and localize decls.
74227         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74228         (struct mode_change): Move to modechange.c; callers don't
74229         need to see this stuff.
74230         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
74231         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
74232         (mode_change, mode_adjust): Reflect the new signatures noted above.
74233         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
74234         that might redefine system include files.
74235         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
74236         (my_usleep): Use NULL rather than (void *) 0.
74237         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
74238         Use siginterrupt to specify that system calls should be interrupted.
74239         (rpl_nanosleep): Move initialization of suspended closer to call of
74240         my_usleep.
74241         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
74242         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
74243         (desirable_utmp_entry): New function.
74244         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
74245         using x2nrealloc, to simplify logic.
74246         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
74247         size calculation.  Do not assume utmp file is a regular file.
74248         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
74249         (READ_UTMP_CHECK_PIDS): New constant.
74250         * lib/save-cwd.c: Include unistd-safer.h.
74251         (save_cwd): Use fd_safer.
74252         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
74253         [!_LIBC] Include "stat-macros.h" instead.
74254         * lib/unistd-safer.h (fd_safer): New decl.
74255
74256 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74257
74258         * modules/getloadavg (Depends-on): Add unistd-safer.
74259         * modules/getusershell (Depends-on): Add stdio-safer.
74260         * modules/lstat (Depends-on): Remove xalloc.
74261         * modules/mkstemp (Depends-on): Add stat-macros.
74262         * modules/modechange (Depends-on): Remove xstrtol.
74263         Add stat-macros, xalloc.
74264         * modules/save-cwd (Depends-on): Add unistd-safer.
74265         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
74266         * modules/unistd-safer (Files): Add lib/fd-safer.c
74267         (Makefile.am): Remove lib_SOURCES.
74268
74269         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
74270         Remove fcntl-safer; unistd-safer supersedes it.
74271
74272 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74273
74274         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
74275         AC_HEADER_STAT.
74276         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
74277         (gl_PREREQ_CHOWN): Remove.
74278         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
74279         it.  Don't require AC_HEADER_STAT.
74280         (gl_PREREQ_LSTAT): Remove.
74281         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
74282         Don't require AC_HEADER_STAT.
74283         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
74284         (gl_PREREQ_RMDIR): Remove.
74285         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
74286         mention stat-macros.h or AC_HEADER_STAT, since we'll make
74287         the stat-macros module a prerequisite.
74288         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
74289         * m4/filemode.m4 (gl_FILEMODE): Likewise.
74290         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
74291         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
74292         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
74293         variable names.
74294         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
74295         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
74296         variable prefixes.
74297         * m4/fcntl-safer.m4: Remove.
74298         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
74299         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
74300         Invoke gl_PREREQ_FD_SAFER.
74301         (gl_PREREQ_FD_SAFER): New macro.
74302         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
74303         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
74304         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
74305         Remove duplicate call to AC_LIBOBJ(readutmp).
74306         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
74307
74308         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
74309         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
74310
74311 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74312
74313         * MODULES.html.sh (Misc): Add byteswap.
74314
74315 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74316
74317         * modules/getcwd (Depends-on): Add extensions.
74318         * modules/openat (Depends-on): Likewise.
74319
74320 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74321
74322         * modules/byteswap: New file.
74323
74324 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74325
74326         * m4/byteswap.m4: New file.
74327
74328 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74329
74330         * lib/byteswap_.h: New file.
74331
74332 2005-04-25  Karl Berry  <karl@gnu.org>
74333
74334         * m4/gettext.m4: Update from GNU gettext 0.14.4.
74335
74336 2005-04-25  Albert Chin  <china@thewrittenword.com>
74337
74338         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
74339         Toolkit C bug.
74340
74341 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
74342
74343         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
74344         (func_ln_if_changed): Remove forcibly for no error message
74345         in case file does not exist.
74346
74347 2005-04-19  Simon Josefsson  <jas@extundo.com>
74348
74349         * gnulib-tool (Options): Make --symlink mean --symbolic.
74350
74351 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
74352
74353         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
74354
74355 2005-04-16  Simon Josefsson  <jas@extundo.com>
74356
74357         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
74358
74359 2005-04-15  Simon Josefsson  <jas@extundo.com>
74360
74361         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
74362
74363 2005-04-15  Simon Josefsson  <jas@extundo.com>
74364
74365         * gnulib-tool: Rename --symlink to --symbolic.
74366
74367 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
74368
74369         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
74370         symbolic links to files instead of copying/moving.  Add --aux-dir,
74371         specifying directory relative --dir where auxiliary build tools
74372         are placed.
74373
74374 2005-04-14  Bruno Haible  <bruno@clisp.org>
74375
74376         * modules/allocsa (License): Change to LGPL.
74377         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74378
74379 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74380
74381         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
74382         that "UTC +1 second" continues to work.  Problem reported
74383         by Dmitry V. Levin.
74384         (relunit_snumber): New rule.
74385         (relunit): Use it.
74386
74387 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
74388
74389         * lib/getdate.y (universal_time_zone_table): New constant.
74390         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
74391         universal_time_zone_table.
74392         (lookup_zone): Prefer universal_time_zone_table to
74393         local_time_zone_table, so that "GMT" time stamps are allowed in
74394         London during the summer.  Problem reported by Ian Abbott.
74395
74396 2005-04-12  Jim Meyering  <jim@meyering.net>
74397
74398         * lib/human.c (humblock): Set *options even when returning due to
74399         xstrtoumax conversion failure.  Thanks to a used-uninitialized
74400         warning from gcc-4.
74401
74402 2005-04-09  Jim Meyering  <jim@meyering.net>
74403
74404         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
74405         -Wuninitialized: initialize tm0.tm_year.
74406
74407 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
74408
74409         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
74410         count, since there's no maximum.  All uses changed.
74411         Add member dsts_seen.
74412         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
74413         not being INT_MAX.
74414         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
74415         Use pc_rels_seen to decide whther a date is absolute.
74416
74417         * lib/getdate.y (number): Don't overwrite year.
74418         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
74419         check.
74420
74421 2005-04-02  Simon Josefsson  <jas@extundo.com>
74422
74423         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
74424         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
74425
74426 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
74427
74428         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
74429         where no absolute path name can be longer than PATH_MAX.
74430
74431 2005-03-27  Jim Meyering  <jim@meyering.net>
74432
74433         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
74434
74435 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
74436
74437         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
74438         "one's complement" -> "ones' complement" in comment, as per Knuth.
74439         "value of type" -> "type or expression" in comment.
74440         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
74441
74442 2005-03-26  Jim Meyering  <jim@meyering.net>
74443
74444         Comment nits.
74445         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
74446         Correct typos: s/or/of/.
74447
74448 2005-03-26  Jim Meyering  <jim@meyering.net>
74449
74450         * modules/check-include-files: Move to ../ and rename to...
74451         * check-module: ...this.
74452
74453 2005-03-25  Jim Meyering  <jim@meyering.net>
74454
74455         * modules/xvasprintf (Files): Add xalloc.h.
74456
74457 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
74458
74459         * modules/gettext (Files): config/config.rpath ->
74460         build-aux/config.rpath
74461         * modules/iconv (Files): Likewise.
74462         Problem reported by Oskar Liljeblad.
74463
74464 2005-03-23  Jim Meyering  <jim@meyering.net>
74465
74466         * modules/check-include-files: New script to check for
74467         missing dependencies, multiple includes, etc.
74468
74469         * modules/c-strtold (Depends-on): Add xalloc.
74470         * modules/c-strtod (Depends-on): Add xalloc.
74471         * modules/hash (Depends-on): Add xalloc.
74472         (Files): Remove lib/xalloc.h.
74473
74474         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
74475         * modules/userspec (Files): Add lib/inttostr.h.
74476
74477 2005-03-23  Jim Meyering  <jim@meyering.net>
74478
74479         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
74480
74481 2005-03-22  Jim Meyering  <jim@meyering.net>
74482
74483         * modules/stat-macros: New module.
74484         * modules/canonicalize, modules/euidaccess, modules/file-type,
74485         * modules/filemode, modules/lchown, modules/makepath,
74486         * modules/rmdir, modules/stat: Depend on new stat-macros module
74487         rather than listing lib/stat-macros.h manually.
74488         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
74489
74490 2005-03-22  Jim Meyering  <jim@meyering.net>
74491
74492         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
74493
74494 2005-03-22  Bruno Haible  <bruno@clisp.org>
74495
74496         * config/srclist.txt: Replace target directory 'config' with
74497         'build-aux'.
74498         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
74499         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
74500         ../build-aux/.
74501
74502 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
74503
74504         * modules/chdir-long (Depends-on): Add mempcpy.
74505
74506         * modules/acl, modules/backupfile, modules/c-strtod,
74507         modules/c-strtold, modules/canon-host, modules/canonicalize,
74508         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
74509         modules/exclude, modules/exitfail, modules/file-type,
74510         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
74511         modules/getdate, modules/getline, modules/getpagesize,
74512         modules/getpass, modules/getugroups, modules/group-member,
74513         modules/hard-locale, modules/hash, modules/human, modules/idcache,
74514         modules/inttostr, modules/long-options, modules/makepath,
74515         modules/md5, modules/memcasecmp, modules/memcoll,
74516         modules/modechange, modules/mountlist, modules/path-concat,
74517         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
74518         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
74519         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
74520         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
74521         modules/strftime, modules/strndup, modules/strverscmp,
74522         modules/timespec, modules/unlocked-io, modules/userspec,
74523         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
74524         modules/yesno:
74525         Remove lib_SOURCES line from Makefile.am section, as this is now
74526         done automatically by the corresponding Autoconf macro.
74527
74528 2005-03-21  Jim Meyering  <jim@meyering.net>
74529
74530         Changes imported from coreutils.
74531
74532         * lib/cycle-check.c: Don't include xalloc.h.
74533
74534         * lib/path-concat.c: Don't include assert.h.
74535         (path_concat): Remove assertion that would have triggered
74536         for ABASE starting with more than one slash.
74537         Reported by Andreas Schwab.
74538
74539         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
74540         properly when ABASE is an absolute file name.
74541         Correct the description of this function.
74542         Include <assert.h>.
74543         Add an assertion and a test driver.
74544         This fixes a bug introduced on 2004-07-02.
74545         Andreas Schwab reported the resulting failure of cp --parents:
74546         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
74547
74548 2005-03-21  Jim Meyering  <jim@meyering.net>
74549
74550         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
74551         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
74552
74553 2005-03-21  Jim Meyering  <jim@meyering.net>
74554         and  Paul Eggert  <eggert@cs.ucla.edu>
74555
74556         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
74557         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
74558         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
74559         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
74560         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
74561         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
74562         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
74563         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
74564         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
74565         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
74566         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
74567         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
74568         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
74569         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
74570         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
74571         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
74572         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
74573         for these modules.
74574
74575 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
74576
74577         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
74578         (which shouldn't happen), generate nothing instead of returning 0
74579         immediately, so that nstrftime (NULL, ...) doesn't return 0.
74580
74581 2005-03-16  Bruno Haible  <bruno@clisp.org>
74582
74583         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
74584         HAVE_LONGLONG_64BIT.
74585
74586 2005-03-16  Bruno Haible  <bruno@clisp.org>
74587
74588         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
74589         HAVE_LONGLONG_64BIT.
74590
74591 2005-03-16  Bruno Haible  <bruno@clisp.org>
74592
74593         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
74594         HAVE_LONGLONG_64BIT.
74595
74596 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74597
74598         * lib/strftime.c (my_strftime): Prepend space to format so that we can
74599         reliably distinguish strftime failure from empty output on POSIX
74600         hosts.
74601
74602 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74603
74604         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
74605         (iconv_string): Don't guess a size-zero buffer, as that might cause
74606         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
74607         result would be 'too large', where 'too large' is (heuristically)
74608         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
74609         overflow concerns.  This will prevent some unwanted malloc failures
74610         when the inputs are very large.
74611
74612 2005-03-15  Karl Berry  <karl@gnu.org>
74613
74614         * config/srclist.txt (config.rpath): from gettext.
74615         * config/config.rpath: update.
74616
74617 2005-03-15  Bruno Haible  <bruno@clisp.org>
74618
74619         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
74620         to 'negate'.
74621
74622         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
74623         variable.
74624
74625         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
74626         results.
74627
74628 2005-03-14  Simon Josefsson  <jas@extundo.com>
74629
74630         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
74631         <fx@gnu.org>.
74632
74633 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
74634
74635         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
74636         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
74637         intprops.h.
74638         * lib/strtol.c: Likewise.
74639
74640 2005-03-14  Jim Meyering  <jim@meyering.net>
74641
74642         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
74643         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
74644         to be nonzero so that we (and caller) can detect the difference
74645         between a valid zero-length expansion and an error return, even
74646         when the underlying strftime fails before writing anything into
74647         that location.
74648
74649 2005-03-14  Bruno Haible  <bruno@clisp.org>
74650
74651         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
74652         Update from GNU gettext 0.14.3.
74653
74654 2005-03-10  Jim Meyering  <jim@meyering.net>
74655
74656         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
74657
74658 2005-03-10  Jim Meyering  <jim@meyering.net>
74659
74660         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
74661         so that this module works on systems without fchdir.
74662
74663 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
74664
74665         Factor int-properties macros into a single file, except for
74666         glibc-related files.
74667         * lib/intprops.h: New file.
74668         * lib/getloadavg.c: Include it instead of limits.h.
74669         (INT_STRLEN_BOUND): Remove.
74670         * lib/human.c: Include intprops.h.
74671         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
74672         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
74673         302/1000.
74674         * lib/inttostr.h: Include intprops.h instead of limits.h.
74675         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
74676         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
74677         for consistency with intprops.h.
74678         (time_t_is_integer, twos_complement_arithmetic): Use them.
74679         * lib/sig2str.h: Include <signal.h>, intprops.h.
74680         (INT_STRLEN_BOUND): Remove.
74681         * lib/strftime.c (TYPE_SIGNED): Remove.
74682         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
74683         * lib/strtol.c: Adjust comments to match intprops.h.
74684         * lib/userspec.c: Include intprops.h.
74685         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
74686         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
74687         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
74688         instead of rolling our own expressions.
74689         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
74690
74691         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
74692         instead of int.
74693         (my_strftime): Do not mishandle years close to INT_MAX, by doing
74694         the right thing even if adding 1900 would overflow.  Similarly
74695         for tm_mon + 1 and tm_yday + 1.
74696         Make %Y always equivalent to %C%y, and similarly for %G and %g.
74697         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
74698         (DO_SIGNED_NUMBER): New macro.
74699         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
74700
74701 2005-03-07  Bruno Haible  <bruno@clisp.org>
74702
74703         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
74704
74705 2005-03-07  Bruno Haible  <bruno@clisp.org>
74706
74707         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
74708
74709 2005-03-04  Derek R. Price  <derek@ximbiot.com>
74710
74711         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
74712         (func_import): Only replace files via --import when they have actually
74713         changed.
74714
74715 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74716
74717         * m4/mmap-anon.m4: New file.
74718         * m4/pagealign_alloc.m4: New file.
74719
74720 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74721             Bruno Haible  <bruno@clisp.org>
74722
74723         * modules/pagealign_alloc: New file.
74724         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
74725
74726 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74727             Bruno Haible  <bruno@clisp.org>
74728
74729         * lib/pagealign_alloc.h: New file.
74730         * lib/pagealign_alloc.c: New file.
74731
74732 2005-03-03  Bruno Haible  <bruno@clisp.org>
74733
74734         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
74735         Use an all-permissive copyright notice, recommended by RMS.
74736
74737 2005-03-02  Bruno Haible  <bruno@clisp.org>
74738
74739         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
74740         of AIX, the replacement has to be done only after <string.h> is
74741         included, therefore not in config.h. stpncpy.h does the replacement,
74742         and stpncpy.c uses it.
74743
74744 2005-03-02  Bruno Haible  <bruno@clisp.org>
74745
74746         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
74747         stpncpy.c uses it.
74748
74749 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74750
74751         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
74752         The workaround isn't strictly needed for POSIX conformance, and
74753         it's too much of a pain to configure and maintain.  We'll ask
74754         people to fix their kernels instead.
74755         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
74756         (NANOSLEEP_BUG_WORKAROUND): Remove.
74757         (xnanosleep): Remove the workaround.
74758
74759 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74760
74761         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
74762         Reported by Derek Price.
74763         (Include): Add "timespec.h".
74764
74765         * modules/xnanosleep (Depends-on): Remove gethrxtime.
74766
74767 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74768
74769         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
74770         to detect nanosleep bug.
74771
74772 2005-03-01  Bruno Haible  <bruno@clisp.org>
74773
74774         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
74775
74776 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74777
74778         * modules/gethrxtime: New file.
74779         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
74780         (Depends-on): Add gethrxtime.
74781         (configure.ac): Add gl_XNANOSLEEP.
74782         (Makefile.am): Remove lib_SOURCES line.
74783
74784 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74785
74786         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
74787         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
74788
74789 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74790
74791         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
74792         * lib/timespec.h (gettime): Return void, since it always
74793         succeeds now.  All uses changed.
74794         * lib/gettime.c (gettime): Likewise.
74795         [HAVE_NANOTIME]: Prefer nanotime.
74796         Assume gettimeofday succeeds, as POSIX requires.
74797         Assime time () succeeds, since other code already does.
74798         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
74799         (timespec_subtract): Remove.
74800         (NANOSLEEP_BUG_WORKAROUND): New constant.
74801         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
74802         things considerably.  Use it only on GNU/Linux hosts, since the
74803         workaround shouldn't be needed elsewhere.
74804
74805 2005-02-24  Bruno Haible  <bruno@clisp.org>
74806
74807         * modules/gettext (Files): Add m4/glibc2.m4.
74808
74809 2005-02-24  Bruno Haible  <bruno@clisp.org>
74810
74811         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
74812         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
74813         * m4/progtest.m4:
74814         Update from GNU gettext 0.14.2.
74815         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
74816
74817 2005-02-24  Bruno Haible  <bruno@clisp.org>
74818
74819         * lib/localcharset.c: Update from GNU gettext 0.14.2.
74820         * lib/config.charset: Update from GNU gettext 0.14.2.
74821
74822 2005-02-24  Bruno Haible  <bruno@clisp.org>
74823
74824         * lib/gettext.h: Update from GNU gettext 0.14.2.
74825
74826 2005-02-23  Simon Josefsson  <jas@extundo.com>
74827
74828         * m4/iconvme.m4: New file.
74829
74830 2005-02-23  Jim Meyering  <jim@meyering.net>
74831
74832         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
74833         change.
74834         Thanks to Bruno Haible for catching it.
74835
74836 2005-02-22  Simon Josefsson  <jas@extundo.com>
74837
74838         * modules/iconvme: New file.
74839
74840         * MODULES.html.sh: Add iconvme.
74841
74842 2005-02-22  Simon Josefsson  <jas@extundo.com>
74843
74844         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
74845
74846 2005-02-22  Simon Josefsson  <jas@extundo.com>
74847
74848         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
74849
74850 2005-02-22  Jim Meyering  <jim@meyering.net>
74851
74852         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
74853         s/ifndef/ifdef/.
74854
74855 2005-02-20  Neil Conway  <neilc@samurai.com>
74856
74857         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
74858         returned by OSX/Darwin if the specified buffer is not large
74859         enough for the hostname.
74860
74861 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74862
74863         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
74864         pass it to _help, otherwise the latter coredumps trying to
74865         dereference state.root_argp.
74866
74867 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74868
74869         * modules/chdir-long (Depends-on): Add memrchr.
74870         * modules/memrchr (Files): Add lib/memrchr.h.
74871         (Include): "memrchr.h".
74872
74873 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74874
74875         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
74876
74877 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74878
74879         * lib/memrchr.h: New file.
74880         * lib/chdir-long.c: Include it.
74881         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
74882         Don't bother including stddef.h.
74883
74884 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74885
74886         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
74887         inclusion.
74888         Include <sys/types.h>, for dev_t.
74889         (ME_DUMMY, ME_REMOTE): Move from here....
74890         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
74891         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
74892         Dmitry V. Levin.
74893         Include mountlist.h first, to test the interface.
74894
74895 2005-01-29  Bruno Haible  <bruno@clisp.org>
74896
74897         * lib/progname.c (program_name): Initialize.
74898         Needed when linking statically on MacOS X.
74899
74900 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74901
74902         Sync from coreutils.
74903         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74904         (Depends-on): Add c-strtod.
74905         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74906
74907 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74908
74909         Sync from coreutils.
74910         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74911
74912         Remove files that are specific to coreutils.
74913         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74914
74915 2005-01-28  Bruno Haible  <bruno@clisp.org>
74916
74917         * modules/javacomp: New file.
74918         * MODULES.html.sh (Java): Add javacomp.
74919
74920 2005-01-28  Bruno Haible  <bruno@clisp.org>
74921
74922         * m4/javacomp.m4: New file, from GNU gettext.
74923
74924 2005-01-28  Bruno Haible  <bruno@clisp.org>
74925
74926         * lib/javacomp.sh.in: New file, from GNU gettext.
74927         * lib/javacomp.h: New file, from GNU gettext.
74928         * lib/javacomp.c: New file, from GNU gettext.
74929
74930 2005-01-26  Simon Josefsson  <jas@extundo.com>
74931
74932         * lib/gai_strerror.c: Use GPL in header.
74933
74934 2005-01-26  Bruno Haible  <bruno@clisp.org>
74935
74936         * modules/javaexec: New file.
74937         * MODULES.html.sh (Java): Add javaexec.
74938
74939 2005-01-26  Bruno Haible  <bruno@clisp.org>
74940
74941         * m4/javaexec.m4: New file, from GNU gettext.
74942
74943 2005-01-26  Bruno Haible  <bruno@clisp.org>
74944
74945         * lib/javaexec.sh.in: New file, from GNU gettext.
74946         * lib/javaexec.h: New file, from GNU gettext.
74947         * lib/javaexec.c: New file, from GNU gettext.
74948
74949 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74950
74951         * modules/lchown (Depends-on): Remove lchown.h
74952
74953 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74954
74955         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74956         must be defined if the header file was not found, in order
74957         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74958
74959 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74960
74961         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74962         initializers for struct pentry_state.
74963         (__argp_error): Check return value of __asprintf
74964         (__argp_failure): Translate error message
74965
74966         * lib/argp-parse.c: Removed braces around the expansion of N_()
74967
74968 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74969
74970         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74971         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74972         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74973         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74974         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74975         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74976         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74977         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74978         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74979         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74980         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74981         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74982         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74983         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74984         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74985         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74986         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74987         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74988         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74989         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74990         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74991         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74992         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74993         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74994         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74995         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74996         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74997         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74998         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74999         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
75000         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
75001         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
75002         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
75003         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
75004         xstrtol.m4, xstrtoumax.m4, yesno.m4:
75005         Use an all-permissive copyright notice, recommended by RMS.
75006
75007 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
75008
75009         * modules/chdir-long (Depends-on): Remove mempcpy.
75010
75011 2005-01-21  Jim Meyering  <jim@meyering.net>
75012
75013         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
75014         same value as for Solaris 9.
75015
75016         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
75017         component length.  This included changing the parameter to be
75018         of type `char *' rather than `char const *'.
75019         * lib/chdir-long.h (chdir_long): Update prototype.
75020
75021         * lib/openat.c (fdopendir, fstatat): New functions.
75022         * lib/openat.h: Include headers required for use of DIR and struct
75023         stat.
75024         [AT_SYMLINK_NOFOLLOW]: Define.
75025         (fdopendir, fstatat): Add prototypes.
75026
75027 2005-01-21  Bruno Haible  <bruno@clisp.org>
75028
75029         * modules/classpath: New file.
75030         * MODULES.html.sh (Java): Add classpath.
75031
75032 2005-01-21  Bruno Haible  <bruno@clisp.org>
75033
75034         * lib/classpath.h: New file, from GNU gettext.
75035         * lib/classpath.c: New file, from GNU gettext.
75036
75037 2005-01-20  Simon Josefsson  <jas@extundo.com>
75038
75039         * modules/version-etc-fsf: New file.
75040
75041 2005-01-20  Simon Josefsson  <jas@extundo.com>
75042
75043         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
75044         * lib/version-etc.c: Remove version_etc_copyright.
75045         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
75046         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
75047
75048 2005-01-20  Simon Josefsson  <jas@extundo.com>
75049
75050         * lib/base64.h (isbase64): Add.
75051
75052         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
75053         using a unsigned prototype, don't inline.
75054         (base64_decode): Use it.
75055
75056 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75057
75058         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
75059         it.
75060
75061 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75062
75063         * lib/save-cwd.c (save_cwd): Remove code to support the case
75064         where fchdir is missing or flaky.
75065
75066 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75067
75068         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
75069
75070 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75071
75072         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
75073         AC_LIBSOURCES now does this.
75074         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
75075         with new ullong_max module.
75076
75077 2005-01-19  Bruno Haible  <bruno@clisp.org>
75078
75079         * modules/sh-quote: New file.
75080         * MODULES.html.sh (Executing programs): Add sh-quote.
75081
75082 2005-01-19  Bruno Haible  <bruno@clisp.org>
75083
75084         * lib/sh-quote.h: New file, from GNU gettext.
75085         * lib/sh-quote.c: New file, from GNU gettext.
75086
75087 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75088
75089         Merge from coreutils.
75090         * m4/ullong_max.m4: New file.
75091         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
75092         (gl_MACROS): Assume localeconv exists.
75093
75094 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75095
75096         Merge changes from coreutils, as described below in several
75097         changelogs dated today.
75098
75099         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
75100         (O_DIRECTORY): Remove; not needed here, since "." must be
75101         a directory.  All uses removed.
75102         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
75103         universal on Suns, and we also need to test for IRIX.
75104         Revamp code to use 'if' rather than '#if'.
75105         Avoid unnecessary comparison of cwd->desc to 0.
75106
75107         * lib/utimens.c (futimens): Robustify the previous patch, by checking
75108         for known valid error numbers rather than observed invalid ones.
75109
75110 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75111
75112         * modules/ullong_max: New file.
75113
75114         * modules/chdir-long, modules/openat: New files.
75115         * modules/save-cwd (Depends-on): Depend on chdir-long.
75116         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
75117
75118 2005-01-18  Jim Meyering  <jim@meyering.net>
75119
75120         Merge from coreutils.
75121         * m4/chdir-long.m4, m4/openat.m4: New files.
75122         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
75123         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
75124         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
75125         is sane and DOES follow symlinks.  Besides, testing 20 different
75126         systems found no broken chown implementations.
75127         Prompted by a change in rsync's copy of this macro.
75128         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
75129
75130         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
75131
75132         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
75133         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
75134         NULL-means-set-to-current-time semantics.
75135         Remove temporary file immediately, rather than waiting
75136         for configure's at-exit trap code to do it.
75137
75138 2005-01-18  Jim Meyering  <jim@meyering.net>
75139
75140         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75141
75142         * lib/utimens.c (futimens): Account for the fact that futimes
75143         can also fail with errno == ENOSYS or errno == ENOENT.
75144         Patch from Dmitry V. Levin.
75145
75146         Change the name of the robust chdir function from chdir to chdir_long.
75147         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
75148         (restore_cwd): Use chdir_long, not chdir.
75149         * lib/chdir-long.c: Renamed from chdir.c.
75150         * lib/chdir-long.h: Renamed from chdir.h.
75151         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
75152         Hurd.
75153
75154 2005-01-18  Bruno Haible  <bruno@clisp.org>
75155
75156         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
75157         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
75158         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
75159         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
75160         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
75161         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
75162         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
75163         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
75164         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
75165         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
75166         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
75167         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
75168         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
75169         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
75170         Use an all-permissive copyright notice, recommended by RMS.
75171
75172 2005-01-18  Bob Proulx  <bob@proulx.com>
75173
75174         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
75175         simplify offsetof() macro construct to avoid compile failure with
75176         native HP-UX 11.0 ANSI C compiler.
75177
75178 2005-01-17  Bruno Haible  <bruno@clisp.org>
75179
75180         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
75181         redundant because stpncpy.m4 takes care of it.
75182
75183 2005-01-17  Bruno Haible  <bruno@clisp.org>
75184
75185         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
75186
75187 2005-01-17  Bruno Haible  <bruno@clisp.org>
75188
75189         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
75190         used.
75191
75192 2005-01-17  Bruno Haible  <bruno@clisp.org>
75193
75194         * lib/fwriteerror.h (fwriteerror): Change specification to include
75195         fclose.
75196         * lib/fwriteerror.c: Include <stdbool.h>.
75197         (fwriteerror): At the end, close the file stream. Record whether
75198         stdout was already closed.
75199
75200 2005-01-17  Bruno Haible  <bruno@clisp.org>
75201
75202         * lib/execute.c (environ): Declare if needed.
75203         * lib/pipe.c (environ): Likewise.
75204         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
75205
75206 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75207
75208         * modules/argp: Depend on vsnprintf
75209
75210 2005-01-10  Jim Meyering  <jim@meyering.net>
75211
75212         * modules/closeout (Depends-on): Add atexit.
75213
75214 2005-01-06  Bruno Haible  <bruno@clisp.org>
75215
75216         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
75217
75218 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75219
75220         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
75221         definitions to be after all include files, to avoid collisions.
75222         Problem reported by Bob Proulx.
75223
75224 2005-01-04  Jim Meyering  <jim@meyering.net>
75225
75226         Changes imported from coreutils.
75227         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
75228         as the mkstemp template, use a temporary directory and an
75229         8.3-friendly template to avoid trouble on systems like DJGPP.
75230         Reported by Juan M. Guerrero via Stepan Kasal.
75231         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
75232         close. Remove the temporary directory right away, rather than waiting
75233         for configure's at-exit trap code to do it.
75234         Suggestion from Stepan Kasal.
75235
75236 2005-01-01  Simon Josefsson  <jas@extundo.com>
75237
75238         * gnulib-tool: Print #include directives when --import'ing.
75239
75240 2004-12-28  Simon Josefsson  <jas@extundo.com>
75241
75242         * tests/test-base64.c: Include required header files.  Remove
75243         unused variables.
75244
75245 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75246
75247         * modules/error (Depends-on): Remove gettext.
75248
75249 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75250
75251         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
75252         not needed.  This removes a dependency on the gettext module.
75253         [defined _LIBC]: Do not include <libintl.h>; not needed.
75254
75255 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75256
75257         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
75258         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
75259
75260 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75261
75262         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
75263         HAVE_DECL_STRTOLD.
75264
75265 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75266
75267         * modules/getdate (Depends-on): Remove alloca-opt.
75268
75269 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75270
75271         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
75272
75273 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75274
75275         * lib/argp-parse.c: Include <stddef.h>.
75276         (alignof, alignto): New macros.
75277         (parser_init): Don't assume that void * is aligned sufficiently
75278         for struct option.
75279
75280         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
75281         need to extend the stack.
75282         (YYINITDEPTH): New macro, so that the initial stack isn't overly
75283         large.
75284
75285 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75286
75287         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
75288
75289 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75290
75291         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
75292         (2004-10-24) change.  Apparently this was a false alarm.
75293
75294         * modules/getdate: Depend on alloca-opt, not alloca.
75295
75296 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75297
75298         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
75299         Remove now-obsolete comment about AIX.
75300         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
75301         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
75302         (YYMAXDEPTH): New macro.
75303
75304 2004-12-18  Simon Josefsson  <jas@extundo.com>
75305
75306         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
75307
75308 2004-12-18  Bruno Haible  <bruno@clisp.org>
75309
75310         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
75311
75312 2004-12-18  Bruno Haible  <bruno@clisp.org>
75313
75314         * lib/fatal-signal.c (fatal_signals): Make non-const.
75315         (init_fatal_signals): New function.
75316         (uninstall_handlers, install_handlers): Ignore signals that were set to
75317         SIG_IGN.
75318         (at_fatal_signal): Call init_fatal_signals.
75319         (init_fatal_signal_set): Likewise. Ignore signals that were set to
75320         SIG_IGN.
75321         Reported by Paul Eggert.
75322
75323 2004-12-18  Bruno Haible  <bruno@clisp.org>
75324
75325         * doc/alloca.texi: New file.
75326         * doc/alloca-opt.texi: New file.
75327
75328 2004-12-17  Jim Meyering  <jim@meyering.net>
75329
75330         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
75331         Otherwise, install-sh could exit with improper exit status when
75332         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
75333
75334 2004-12-16  Simon Josefsson  <jas@extundo.com>
75335
75336         * tests/test-base64.c: Add license.
75337
75338 2004-12-15  Stepan Kasal  <address@hidden>
75339
75340         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
75341
75342 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
75343
75344         * modules/getcwd (Files): Add m4/d-ino.m4.
75345         Suggested by Mark D. Baushke.
75346
75347 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75348
75349         * lib/getdate.y (textint): New member "negative".
75350         (time_zone_hhmm): New function.
75351         Expect 14 shift-reduce conflicts, not 13.
75352         (o_colon_minutes): New rule.
75353         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
75354         (yylex): Set the "negative" member of signed numbers.
75355
75356 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75357
75358         * doc/getdate.texi (Time of day items, Time zone items):
75359         Describe new formats +00:00, UTC+00:00.
75360
75361 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75362
75363         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
75364         spurious "-l"s.  Problem reported by Stepan Kasal.
75365
75366 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
75367
75368         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
75369         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
75370
75371 2004-12-04  Simon Josefsson  <jas@extundo.com>
75372
75373         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
75374         Vandoorselaere <yoann@prelude-ids.org>.
75375
75376 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75377
75378         Changes imported from coreutils.
75379         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
75380         exist.
75381         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
75382
75383 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75384
75385         Changes imported from coreutils.
75386         * lib/hard-locale.c: Assume <locale.h> exists.
75387         Include "strdup.h".
75388         (GLIBC_VERSION): New macro.
75389         (hard_locale): Assume setlocale exists.
75390         Rewrite to avoid #ifdef.
75391         Use strdup rather than malloc + strcpy.
75392         * lib/human.c: Assume <locale.h> exists.
75393         (human_readable): Assume localeconv exists.
75394
75395 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75396
75397         * modules/hard-locale (Depends-on): Add strdup.
75398
75399 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75400
75401         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
75402         convert T2, not T.  (Imported from libc.)
75403
75404 2004-11-30  Simon Josefsson  <jas@extundo.com>
75405
75406         * modules/restrict (License): Change to LGPL.
75407
75408 2004-11-30  Simon Josefsson  <jas@extundo.com>
75409
75410         * m4/restrict.m4: Add copyright and copying conditions.
75411
75412 2004-11-30  Simon Josefsson  <jas@extundo.com>
75413
75414         * m4/base64.m4: New file.
75415
75416 2004-11-30  Simon Josefsson  <jas@extundo.com>
75417
75418         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
75419         base64.
75420
75421         * tests/test-base64.c: New file.
75422
75423         * modules/base64: New file.
75424
75425 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75426
75427         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
75428         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
75429
75430         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
75431
75432 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75433
75434         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
75435         (__getcwd.c): Don't restore errno; glibc doesn't.
75436         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
75437         first, falling back to our code only if its results look suspicious.
75438         Ensure that the resulting buffer is only as large as necessary.
75439
75440         * lib/readutmp.c: Include readutmp.h first.
75441         Include <errno.h>, since readutmp.h no longer does that.
75442         * lib/readutmp.h: Don't include <errno.h>,
75443         <sys/param.h>, <time.h>; not needed to establish interface.
75444         (errno): Remove decl.
75445         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
75446         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
75447         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
75448
75449 2004-11-28  Simon Josefsson  <jas@extundo.com>
75450
75451         * lib/base64.h, base64.c: New file.
75452
75453 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75454
75455         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
75456
75457 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75458
75459         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
75460         (Depends-on): Remove pathmax, same.  Add mempcpy.
75461         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
75462         (Makefile.am): Append getcwd.h to lib_SOURCES.
75463         (Include): Add getcwd.h.
75464         (Maintainer): Change from Jim Meyering to "all, glibc",
75465         since getdate now uses intended-for-glibc code.
75466         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
75467         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
75468
75469 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75470
75471         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
75472         HP's ANSI C compiler.
75473         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
75474         Declaring int functions causes warnings on some modern systems and
75475         shouldn't be needed to compile on ancient ones.
75476         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
75477         defined.
75478
75479         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
75480         with the following changes.
75481         (__set_errno): Parenthesize properly.
75482         Include <stdbool.h>.
75483         (MIN, MAX, MATCHING_INO): New macros.
75484         (__getcwd): Define with prototype, not K&R form.
75485         Use heuristics to allocate default buffer on stack if possible.
75486         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
75487         behavior, and to avoid the PATH_MAX limit when computing
75488         ../../../../...
75489         Use MATCHING_INO to compare inode number to file.
75490         Check for arithmetic overflow in size calculations.
75491         Fix bug in reallocation of dot array that caused getcwd to fail
75492         on directories nested deeper than 75.
75493         Be more careful about saving errno on error.
75494         Do not use realloc; use only free+malloc, as this is a bit
75495         more flexible and avoids a needless copy operation.
75496         Do not inspect st_dev and st_ino for symbolic links; POSIX
75497         doesn't specify the latter.
75498         Check for closedir errors.
75499         Avoid needless casts.
75500         Use "#ifdef weak_alias" around weak_alias, to be like other
75501         glibc code.
75502         The following changes to getcwd.c have effect only when used in
75503         gnulib; they have no effect inside glibc proper.
75504         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
75505         as alloca isn't used.
75506         (alloca, __alloca): Likewise.
75507         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
75508         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75509         unconditionally, as gnulib assumes C89 or better.
75510         Do not include <sys/param.h>.
75511         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
75512         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
75513         better.
75514         (NULL) [!defined NULL]: Remove; we assume C89 or better.
75515         Include <dirent.h> in a way that is compatible with modern Autoconf.
75516         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
75517         New macros, if not already defined.
75518         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
75519         Use "_LIBC", not "defined _LIBC", for consistency.
75520         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
75521         a mempcpy module.
75522         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
75523         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
75524         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
75525         credit only to Jim Meyering and adjust the copyright dates.
75526         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
75527         <stdlib.h>, <unistd.h>, "pathmax.h".
75528         Instead, include "xgetcwd.h" (first) and "getcwd.h".
75529         (INITIAL_BUFFER_SIZE): Remove.
75530         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
75531
75532 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75533
75534         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
75535         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
75536         Use the _ONCE methods, for efficiency.
75537         Check for fcntl.h.  In test program, include <errno.h>
75538         and <fcntl.h> if available.  Remove old K&R cruft from
75539         test program.  Check for common errors in GNU/Linux,
75540         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
75541         don't do AC_LIBOBJ, as that's getcwd.m4's job.
75542         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
75543         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
75544         name accordingly.
75545         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
75546         accommodate new getcwd.c.
75547         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
75548         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
75549         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
75550         that's all we need now.
75551
75552 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75553
75554         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
75555         argp-parse.c depends on getopt internals, that means we should
75556         always use our getopt, to be on the safe side.
75557         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
75558         order not to spoil the result of an eventual previous invocation
75559         of gl_GETOPT_SUBSTITUTE.
75560
75561 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75562
75563         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
75564         redefinition warnings. To avoid them, include the defines
75565         in `#if !defined __need_getopt ... #endif'. The only place
75566         where __getopt_argv_const is used is in definitions
75567         of getopt_long and getopt_long_only below, which are as well
75568         protected by `#ifndef __need_getopt'.
75569         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
75570         __need_getopt after including <stdio.h> and <unistd.h> These
75571         headers might have defined it.
75572
75573 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75574
75575         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
75576
75577 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75578
75579         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
75580         (futimens): New function, which uses futimes if available.
75581         (futimens, utimens): Support timespec==NULL, with same semantics
75582         as utime and utimens.
75583         * lib/utimens.h (futimens): New decl.
75584
75585 2004-11-23  Jim Meyering  <jim@meyering.net>
75586
75587         * lib/getopt_.h: Remove trailing blanks.
75588
75589 2004-11-23  Jim Meyering  <jim@meyering.net>
75590
75591         * lib/__fpending.c: Add comment.
75592
75593 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
75594
75595         * modules/canonicalize (Depends-on): Add xreadlink.
75596         Problem reported by James Youngman.
75597
75598 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75599
75600         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
75601         New macros.
75602         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
75603         optopt): Use them instead of invoking ## directly; otherwise, the
75604         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
75605
75606 2004-11-19  Bruno Haible  <bruno@clisp.org>
75607
75608         * lib/strtok_r.c: Move comments from here...
75609         * lib/strtok_r.h: ... to here.
75610
75611 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75612
75613         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
75614         implementations that mishandle size_t overflow.
75615
75616 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75617
75618         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
75619         might fail.  Problem reported by Yoann Vandoorselaere.
75620         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
75621         implementations that mishandle size_t overflow.
75622
75623 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75624
75625         * modules/canon-host (Depends-on): Add strdup.
75626
75627 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75628
75629         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
75630
75631 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75632
75633         * lib/canon-host.c: Include "strdup.h".
75634         (canon_host): Use getaddrinfo if available, so that IPv6 works.
75635         Use strdup instead of malloc/strcpy to duplicate strings.
75636
75637         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
75638         (human_space_before_unit): New constant.
75639         * lib/human.c (human_readable): Support it.
75640
75641         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
75642         (xgetcwd): Set errno correctly when failing.
75643         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
75644         the failure is actually due to a PATH_MAX problem.
75645
75646         Further getopt changes to make it more likely that glibc will
75647         buy the changes back.
75648         * lib/getopt.c (POSIXLY_CORRECT): New constant.
75649         (getopt): Use it, so to preserve glibc semantic
75650         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
75651         when compiling for libc.
75652         * lib/getopt_.h (__getopt_argv_const): Bring it back.
75653         (getopt_long, getopt_long_only): Use it.
75654
75655         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75656         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
75657         (getopt): Argv is now char * const *, as per standard.
75658         (_getopt_internal_r, _getopt_internal): Argv is now char **,
75659         not char *__getopt_argv_const *.
75660         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75661         _getopt_long_only_r): Likewise.
75662         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
75663         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75664         _getopt_long_r, _getopt_long_only_r): Likewise.
75665         * lib/getopt_.h (__getopt_argv_const): Remove.
75666         (getopt): Argv is now char * const *, as per standard.
75667
75668         * lib/getdate.y (tORDINAL): New token.
75669         (day, relunit): Allow it for relative times.
75670         (relative_time_table): Use tORDINAL for ordinals.
75671
75672 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75673
75674         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
75675         Document that "second" isn't allowed as an ordinal number.
75676
75677 2004-11-16  Jim Meyering  <jim@meyering.net>
75678
75679         * modules/closeout (Depends-on): Add fpending.
75680
75681 2004-11-15  Jim Meyering  <jim@meyering.net>
75682
75683         * lib/closeout.c: Include "__fpending.h" once again.
75684         Include <stdbool.h>.
75685         (close_stdout): Don't fail just because stdout was closed initially,
75686         since some programs don't write to stdout in the normal course of
75687         operation (other than --version and --help), and we don't want this
75688         function to make e.g. `touch file >&-' fail.
75689         But do fail if it was closed and someone has tried to write to it.
75690         E.g., `printf foo >&-' must fail.
75691
75692 2004-11-13  Jim Meyering  <jim@meyering.net>
75693
75694         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
75695
75696 2004-11-12  Simon Josefsson  <jas@extundo.com>
75697
75698         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
75699         small doc fix is still pending.
75700
75701 2004-11-11  Simon Josefsson  <jas@extundo.com>
75702
75703         * modules/strtok_r: New file.
75704
75705         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75706         strtok_r.
75707
75708 2004-11-11  Simon Josefsson  <jas@extundo.com>
75709
75710         * m4/strtok_r.m4: New file.
75711
75712         * m4/getopt.m4: Replace opterr.
75713
75714 2004-11-11  Simon Josefsson  <jas@extundo.com>
75715
75716         * lib/strtok_r.h, strtok_r.c: New file.
75717
75718 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75719
75720         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
75721         of replacing opterr, getopt, etc.  This should handle the
75722         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
75723
75724 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75725
75726         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
75727         we can stop lying to compilers about the constness of argv when we
75728         are compiled outside glibc.
75729         (getopt, getopt_long, getopt_long_only): Use it.
75730         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75731         _getopt_internal, getopt): Likewise.
75732         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75733         _getopt_long_only_r): Likewise.
75734         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75735         _getopt_long_r, _getopt_long_only_r): Likewise.
75736
75737         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
75738         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
75739         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
75740         the other external symbols.
75741         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
75742         declaration, since the above renaming now works around collisions.
75743
75744 2004-11-11  Jim Meyering  <jim@meyering.net>
75745
75746         * lib/linebreak.c: Remove trailing blanks.
75747         * lib/alloca_.h: Likewise.
75748         * lib/acosl.c: Likewise.
75749         * lib/euidaccess.c: Likewise.
75750         * lib/allocsa.h: Likewise.
75751
75752 2004-11-10  Simon Josefsson  <jas@extundo.com>
75753
75754         * m4/getaddrinfo.m4: New file.
75755
75756 2004-11-10  Simon Josefsson  <jas@extundo.com>
75757
75758         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
75759
75760 2004-11-10  Simon Josefsson  <jas@extundo.com>
75761
75762         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75763         getaddrinfo.
75764
75765         * modules/getaddrinfo: New file.
75766
75767 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75768
75769         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
75770
75771 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75772
75773         * lib/mktime.c (SHR): New macro, which is a portable
75774         substitute for >> that should work even on Crays.
75775         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
75776         Problem reported by Mark D. Baushke in
75777         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
75778         * lib/getdate.y (SHR): Likewise.
75779         (tm_diff): Use it.
75780         * lib/strftime.c (SHR): Likewise.
75781         (tm_diff): Use it.
75782         * lib/quotearg.c (struct quoting_options): Use unsigned int for
75783         quote_these_too, so that right shifts are well defined.  All uses
75784         changed.
75785
75786 2004-11-10  Jim Meyering  <jim@meyering.net>
75787
75788         Ensure that no close failure goes unreported.
75789         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
75790         return early when it seems there's nothing to flush.
75791         Don't include __fpending.h.
75792
75793 2004-11-10  Jim Meyering  <jim@meyering.net>
75794
75795         * modules/closeout (Depends-on): Remove fpending.
75796
75797 2004-11-10  Jim Meyering  <jim@meyering.net>
75798
75799         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
75800
75801 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75802
75803         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
75804         gl_FUNC_STRFTIME.
75805         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
75806         and AC_REQUIRE when possible, to avoid duplicate checks.
75807         Check for <wchar.h>.
75808
75809 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75810
75811         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
75812
75813 2004-11-09  Bruno Haible  <bruno@clisp.org>
75814
75815         * m4/sockpfaf.m4: New file.
75816
75817 2004-11-05  Bruno Haible  <bruno@clisp.org>
75818
75819         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
75820         Reported by Mark D. Baushke <mdb@cvshome.org>.
75821
75822 2004-11-04  Bruno Haible  <bruno@clisp.org>
75823
75824         2004-09-11  Bruno Haible  <bruno@clisp.org>
75825                 * allocsa.valgrind: New file.
75826         2004-02-06  Bruno Haible  <bruno@clisp.org>
75827                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
75828                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
75829                 Reported by Christopher Seip <chris.seip@hp.com>.
75830
75831 2004-11-04  Bruno Haible  <bruno@clisp.org>
75832
75833         * modules/allocsa (Files): Add lib/allocsa.valgrind.
75834         (Makefile.am): Distribute it.
75835
75836 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75837
75838         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
75839         with errno == ERANGE if the buffer is too small.
75840         Problem reported by Mark D. Baushke.
75841
75842 2004-11-03  Albert Chin  <china@thewrittenword.com>
75843             Paul Eggert  <eggert@cs.ucla.edu>
75844
75845         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
75846         equivalent, substitute $ac_type for equivalent type rather than
75847         blindly using uint32_t *always* which won't work if uint32_t is not
75848         available.  Define _UINT32_T to work around typedef of uint32_t if
75849         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
75850         2.5.1.
75851
75852 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75853
75854         * m4/jm-macros.m4: Sync from coreutils.
75855         (gl_MACROS): Check for mbrlen, for pathchk.
75856         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
75857
75858 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75859
75860         * lib/xreadlink.c (MAXSIZE): New macro.
75861         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
75862         size does not exceed MAXSIZE.  Avoid cast.
75863         As suggested by Mark D. Baushke in
75864         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
75865         if readlink fails with buffer size just under MAXSIZE, try again
75866         with MAXSIZE.
75867
75868 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75869
75870         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
75871
75872 2004-11-02  Derek R. Price  <derek@ximbiot.com>
75873         and  Paul Eggert  <eggert@cs.ucla.edu>
75874
75875         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
75876         (get_date): Overparenthesize to avoid GCC warning.
75877
75878 2004-11-02  Bruno Haible  <bruno@clisp.org>
75879
75880         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
75881         returns void.
75882
75883 2004-11-02  Bruno Haible  <bruno@clisp.org>
75884
75885         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
75886         function returns void.
75887
75888 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75889
75890         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
75891         fflush_unlocked, flockfile, funlockfile, funlockfile,
75892         fputs_unlocked, putc_unlocked.
75893
75894 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75895
75896         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75897         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
75898         already declared.
75899
75900 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75901
75902         * modules/getdate (Files): Add doc/getdate.texi.
75903         (Depends-on): Add setenv, xalloc.
75904
75905 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75906
75907         * lib/getdate.y: Add support for TZ="foo" within a date string.
75908         Fix some bugs near time_t boundaries.  Reject dates with
75909         out-of-range components, e.g., "Sept 31".
75910         Include <stdlib.h>, "setenv.h", "xalloc.h".
75911         (ISDIGIT_LOCALE): Remove; unused.
75912         Note that the TZ and time functions used here are not reentrant.
75913         (mktime_ok, get_tz): New functions.
75914         (TZBUFSIZE): New constant.
75915         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75916         This requires that we sometimes generate our own TZ="XXX..." setting.
75917
75918 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75919
75920         * doc/getdate.texi: New file, from coreutils with modifications for
75921         the new TZ parsing.
75922
75923 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75924
75925         * lib/mktime.c (not_equal_tm): Remove redundant check.
75926
75927 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75928
75929         * modules/regex (lib_SOURCES): Add regex.c.
75930         Reported by James Youngman in
75931         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75932
75933 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75934
75935         * lib/getdate.y: Use Bison 1.875 features, and some minor
75936         code cleanups.  This change does not affect semantics.
75937         Don't include <stdlib.h>; no longer needed.
75938         Don't include unlocked-io.h; only the "#if TEST" code uses
75939         stdio, and performance isn't crucial there.
75940         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75941         Bison 1.875 features as described below.
75942         All uses of "PC." replaced by "pc->".
75943         (YYSTYPE): Add a forward declaration.
75944         (yylex, yyerror): Use full prototypes in forward decls.
75945         Use "%pure-parser" rather than obsolescent "%pure_parser".
75946         Use %parse-param and %lex-param instead of obsolescent
75947         YYPARSE_PARAM and YYLEX_PARAM.
75948         (meridian_table, month_and_day_table, time_units_table,
75949         relative_time_table, time_zone_table, military_table,
75950         lookup_zone, lookup_word, get_date):
75951         Use NULL instead of 0 where appropriate.
75952         (to_hour): Avoid abort (), to avoid a dependency on
75953         stdlib.h.
75954         (yyerror, yylex): Now accepts parser_control * arg.
75955         (main) [TEST]: Use '\0' rather than 0 for char.
75956
75957 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75958
75959         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75960
75961 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75962
75963         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75964         It's now the caller's responsibility to handle the case where
75965         !HAVE_GETPAGESIZE && !defined getpagesize.
75966
75967         * lib/mktime.c (leapyear): Arg is long int, not int.
75968
75969 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75970
75971         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75972
75973 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75974
75975         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75976         missing.  Problem reported by James Youngman.
75977
75978 2004-10-16  Simon Josefsson  <jas@extundo.com>
75979
75980         * gnulib-tool: Fix comments.  Fix parse problem.
75981         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75982
75983 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75984
75985         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75986         implementation of getopt_long.  Problem reported by Alexander Taler in:
75987         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75988
75989 2004-10-15  Bruno Haible  <bruno@clisp.org>
75990
75991         * gnulib-tool: Untabify. Initialize supplied_libname.
75992         (func_usage): More homogenous output.
75993         (func_modules_transitive_closure, func_modules_to_filelist,
75994         func_emit_lib_Makefile_am): New functions.
75995         (func_import): New function, extracted from big case statement. Use
75996         func_get_license, func_modules_transitive_closure,
75997         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75998         opt_lgpl. Don't use test -a, as it's not portable.
75999         (func_create_testdir): Use func_modules_transitive_closure,
76000         func_modules_to_filelist, func_emit_lib_Makefile_am.
76001
76002 2004-10-15  Bruno Haible  <bruno@clisp.org>
76003
76004         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
76005
76006 2004-10-15  Bruno Haible  <bruno@clisp.org>
76007
76008         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
76009         the portions belonging to each module.
76010         Suggested by Derek Robert Price <derek@ximbiot.com>.
76011
76012 2004-10-12  Simon Josefsson  <jas@extundo.com>
76013
76014         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
76015         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
76016         to real functions.
76017
76018 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76019
76020         * modules/vsnprintf: New file.
76021
76022 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76023
76024         * m4/vsnprintf.m4: New file.
76025
76026 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76027
76028         * lib/vsnprintf.h: New file.
76029         * lib/vsnprintf.c: New file.
76030
76031 2004-10-11  Bruno Haible  <bruno@clisp.org>
76032
76033         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
76034         vsnprintf.
76035
76036 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76037
76038         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
76039
76040 2004-10-07  Bruno Haible  <bruno@clisp.org>
76041
76042         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
76043         fits into the provided buffer.
76044
76045 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76046
76047         * lib/diacrit.c, diacrit.h: Add GPL notice.
76048
76049         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
76050         notice.
76051         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
76052         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
76053         This avoids a potential constant-folding bug.
76054
76055 2004-10-05  Bruno Haible  <bruno@clisp.org>
76056
76057         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
76058         for the declaration of strsep.
76059
76060 2004-10-05  Bruno Haible  <bruno@clisp.org>
76061
76062         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
76063
76064 2004-10-04  Simon Josefsson  <jas@extundo.com>
76065
76066         * modules/memmem: New file.
76067         * tests/test-memmem.c: New file.
76068         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
76069
76070 2004-10-04  Simon Josefsson  <jas@extundo.com>
76071
76072         * m4/memmem.m4: New file.
76073
76074 2004-10-04  Simon Josefsson  <jas@extundo.com>
76075
76076         * lib/memmem.h: New file.
76077         * lib/memmem.c: New file, taken from glibc.
76078
76079 2004-10-04  Simon Josefsson  <jas@extundo.com>
76080
76081         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
76082         '#ifdef USE_UNLOCKED_IO'.
76083
76084 2004-10-04  Simon Josefsson  <jas@extundo.com>
76085
76086         * config/srclist.txt: Add memmem from glibc.
76087
76088 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76089
76090         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
76091
76092         * modules/argmatch, modules/argp, modules/closeout, modules/error,
76093         modules/exclude, modules/getdate, modules/getline,
76094         modules/getndelim2, modules/getpass, modules/getpass-gnu,
76095         modules/getusershell, modules/linebuffer, modules/md5,
76096         modules/mountlist, modules/posixtm, modules/readtokens,
76097         modules/readutmp, modules/regex, modules/sha1,
76098         modules/version-etc, modules/yesno:
76099         Remove dependency on unlocked-io.
76100
76101 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76102
76103         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
76104
76105         * m4/unlocked-io.m4: Add copyright notice.
76106         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
76107
76108 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76109
76110         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
76111         * lib/xmalloc.c (xmemdup): Likewise.
76112         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
76113         XFREE): Remove these long-obsolescent macros.
76114         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
76115         * lib/xstrdup.c: Remove.
76116
76117         * lib/regex.c (re_comp): Cast gettext return value to char *,
76118         Problem reported by Martin Neitzel via Mark D. Baushke.
76119
76120 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76121
76122         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
76123         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
76124         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
76125         regex.c, sha1.c, version-etc.c, yesno.c:
76126         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
76127         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
76128         the includer's responsibility.
76129
76130         Sync from coreutils.
76131
76132         * lib/modechange.c (mode_compile): Don't decrement a pointer that
76133         points to the start of a string, as the C Standard says the
76134         resulting behavior is undefined.
76135
76136         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
76137         simple -> simple_backups, numbered_existing ->
76138         numbered_existing_backups, numbered -> numbered_backups
76139         to avoid shadowing problems.  All uses changed.
76140         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
76141         * lib/backupfile.c (check_extension, numbered_backup):
76142         Rename locals to avoid shadowing 'basename'.
76143         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
76144         once.
76145
76146         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
76147         * lib/.cvsignore: Add getopt.h.
76148
76149 2004-10-04  Bruno Haible  <bruno@clisp.org>
76150
76151         * modules/README: New file.
76152         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
76153         not a module.
76154
76155 2004-10-02  Jim Meyering  <jim@meyering.net>
76156
76157         * lib/dirfd.h, getpagesize.h: Add copyright notice.
76158
76159 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76160
76161         * modules/strsep: New file.
76162
76163 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76164
76165         * m4/strsep.m4: New file.
76166
76167 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76168
76169         * lib/strsep.h: New file.
76170         * lib/strsep.c: New file.
76171
76172 2004-10-01  Simon Josefsson  <jas@extundo.com>
76173
76174         * lib/snprintf.c (snprintf): Handle size==0.
76175
76176 2004-10-01  Simon Josefsson  <jas@extundo.com>
76177             Bruno Haible  <bruno@clisp.org>
76178
76179         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
76180         (snprintf): Declare 'args'.
76181
76182 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
76183
76184         * lib/snprintf.c: Remove comments as to why each header is needed.
76185
76186 2004-10-01  Bruno Haible  <bruno@clisp.org>
76187
76188         * MODULES.html.sh: Add strsep.
76189
76190 2004-09-30  Simon Josefsson  <jas@extundo.com>
76191
76192         * modules/snprintf: New file.
76193
76194 2004-09-30  Simon Josefsson  <jas@extundo.com>
76195
76196         * m4/snprintf.m4: New file.
76197
76198 2004-09-30  Simon Josefsson  <jas@extundo.com>
76199
76200         * lib/snprintf.h, lib/snprintf.c: New files.
76201
76202 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76203
76204         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
76205         (hol_entry_help): Never translate an empty string.
76206         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
76207         * lib/argp.h (OPTION_NO_TRANS): New option.
76208
76209 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76210
76211         * modules/argp (Maintainer): Replace Simon Josefsson
76212         by Sergey Poznyakoff.
76213
76214 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76215
76216         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
76217         changes merged back into glibc.
76218
76219 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76220
76221         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
76222
76223 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76224
76225         * lib/xvasprintf.c: Include xalloc.h.
76226         (xvasprintf): Use xalloc_die, not xmalloc_die.
76227
76228 2004-09-29  Bruno Haible  <bruno@clisp.org>
76229
76230         * modules/alloca-opt: New file, derived from modules/alloca.
76231         * modules/allocsa: Depend on alloca-opt instead of alloca.
76232         * modules/setenv: Likewise.
76233         * modules/vasnprintf: Likewise.
76234         * MODULES.html.sh: Add alloca-opt.
76235
76236 2004-09-28  Simon Josefsson  <jas@extundo.com>
76237
76238         * gnulib-tool: New parameter --lgpl, to asseert that modules are
76239         LGPL, and to replace license template from GPL to LGPL.
76240
76241 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76242
76243         * modules/dummy: Change license to LGPL.
76244
76245 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76246
76247         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
76248
76249 2004-09-24  Simon Josefsson  <jas@extundo.com>
76250
76251         * modules/minmax (License): Change from GPL to LGPL.
76252
76253 2004-09-23  Simon Josefsson  <jas@extundo.com>
76254
76255         * gnulib-tool (--import): Typo.
76256
76257 2004-09-23  Simon Josefsson  <jas@extundo.com>
76258
76259         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
76260
76261 2004-09-22  Bruno Haible  <bruno@clisp.org>
76262
76263         * modules/*: Add 'License' field.
76264         * gnulib-tool: Accept --extract-license option.
76265         (func_get_license): New function.
76266
76267 2004-09-21  Bruno Haible  <bruno@clisp.org>
76268
76269         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
76270         Reported by Simon Josefsson.
76271
76272 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76273
76274         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
76275         gl_AC_TYPE_LONG_LONG.
76276
76277 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76278
76279         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
76280
76281 2004-09-18  Simon Josefsson  <jas@extundo.com>
76282         and  Paul Eggert  <eggert@cs.ucla.edu>
76283
76284         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
76285         calls with autoreconf.  Define GL_LIB.
76286
76287 2004-09-14  Karl Berry  <karl@gnu.org>
76288
76289         * config/srclist.txt: unsync setenv.c, sigh.
76290
76291 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76292
76293         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
76294         Problem reported by Bruno Haible in:
76295         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
76296
76297 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76298
76299         * config/srclist.txt: Comment out argp-pvh.c.
76300
76301 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
76302
76303         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
76304         in case some system header has #define'd it.  Problem reported by
76305         Soeren D. Schulze in
76306         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
76307
76308 2004-09-09  Karl Berry  <karl@gnu.org>
76309
76310         * regex.[ch]: delete from the root.  These were supposed to be
76311                 synced with emacs cvs, but this has not happened for about
76312                 a year, and anyway nothing else uses emacs regex.[ch].
76313                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
76314                 lib/regex[.ch] is untouched.
76315
76316 2004-09-09  Bruno Haible  <bruno@clisp.org>
76317
76318         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
76319
76320 2004-09-09  Bruno Haible  <bruno@clisp.org>
76321
76322         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
76323         modifications.
76324         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
76325
76326 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76327
76328         * modules/xvasprintf: New file.
76329         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
76330
76331 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76332
76333         * lib/xvasprintf.h: New file.
76334         * lib/xvasprintf.c: New file.
76335         * lib/xasprintf.c: New file.
76336
76337 2004-09-08  Bruno Haible  <bruno@clisp.org>
76338
76339         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
76340
76341 2004-09-08  Bruno Haible  <bruno@clisp.org>
76342
76343         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
76344         length is > INT_MAX.
76345         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
76346         more.
76347
76348 2004-09-08  Bruno Haible  <bruno@clisp.org>
76349
76350         * lib/stdint_.h: New file, taken from GNU clisp.
76351
76352 2004-09-08  Bruno Haible  <bruno@clisp.org>
76353             Oskar Liljeblad  <oskar@osk.mine.nu>
76354
76355         * modules/stdint: New file.
76356         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
76357
76358 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76359
76360         Import from coreutils.
76361         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
76362         strings on unbounded length.  alloca's performance benefits aren't
76363         that important here.
76364         (V_STRDUP): Remove.
76365         (parse_with_separator): New function, with most of the internals
76366         of the old parse_user_spec.  Allow user to omit both user and group,
76367         for compatibility with FreeBSD.
76368         Clone only the user name, not the entire spec.
76369         Do not set *uid, *gid unless entirely successful.
76370         Avoid memory leak in some failing cases.
76371         Fix regression for USER.GROUP reported by Dmitry V. Levin in
76372         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
76373         (parse_user_spec): Rewrite to use parse_with_separator.
76374
76375 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76376
76377         * modules/userspec: Don't depend on alloca.
76378
76379 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76380
76381         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
76382
76383 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76384
76385         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
76386         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
76387         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
76388
76389 2004-08-16  Simon Josefsson  <jas@extundo.com>
76390
76391         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
76392         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
76393         Add --dry-run for --import.
76394         Let user provided command line parameters override configure.ac
76395         settings.
76396
76397 2004-08-12  Simon Josefsson  <jas@extundo.com>
76398
76399         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
76400         as discussed with Paul Eggert in threads rooted at
76401         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
76402         and
76403         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
76404         Before, the test was empty, and relied on ELIDE_CODE in source
76405         code.)
76406         (gl_PREREQ_GETOPT): New macro.
76407         (gl_GETOPT): Use them.
76408
76409 2004-08-12  Simon Josefsson  <jas@extundo.com>
76410
76411         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
76412         * lib/getopt_.h: Renamed from getopt.h.
76413
76414 2004-08-12  Simon Josefsson  <jas@extundo.com>
76415
76416         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
76417         Change default library name from libfoo to libgnu.
76418         Now, if you have a configure.ac that says:
76419                 gl_SOURCE_BASE(gl)
76420                 gl_M4_BASE(gl/m4)
76421                 gl_MODULES(error getopt etcetera)
76422                 gl_INIT
76423         you can import all you need by running:
76424                 ../gnulib/gnulib-tool --import
76425
76426         * modules/getopt (Files): Rename getopt.h to getopt_.h.
76427         (Makefile.am): Rewrite, use logic from argz.
76428         (Include): Use <getopt.h> instead of "getopt.h".
76429
76430 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76431
76432         * modules/argp (Files): Add m4/unlocked-io.m4.
76433         (Depends-on): Add extensions.
76434
76435 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76436
76437         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
76438         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
76439         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
76440         Check for program_invocation_name, program_invocation_short_name,
76441         flockfile, funlockfile, features.h, _getopt_long_only_r.
76442
76443 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76444
76445         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
76446         its complicated substitute.
76447         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
76448         and program_invocation_name.
76449         (__argp_basename) [!_LIBC]: Remove; the only use was
76450         replaced by its body.
76451         (__argp_short_program_name): Change condition from
76452         !defined __argp_short_program_name to
76453         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
76454         to match argp-namefrob.h.
76455         (__argp_failure): Don't assume strerror_r returns char *.
76456         * lib/argp-parse.c (N_): Define unconditionally.
76457         (argp_default_options): Fill out initializers with 0 to avoid
76458         gcc warnings.
76459
76460 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76461
76462         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
76463         getopt1.c.
76464
76465 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76466
76467         Merge from coreutils.
76468
76469         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
76470
76471         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
76472         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
76473
76474 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76475
76476         Merge from coreutils.
76477
76478         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
76479         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
76480         for Reliant Unix 5.43.
76481
76482         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
76483         (union fooround): Use uintmax_t, not long int.
76484         The rest is a merge from libc:
76485         [defined _LIBC]: Include <shlib-compat.h>.
76486         (_obstack) [defined _LIBC]: Remove after 2.3.4.
76487
76488         * lib/settime.c (settime): Recode to avoid warning with
76489         Sun Forte C 6U2.
76490
76491         * lib/strverscmp.c: Convert to UTF-8.
76492
76493 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76494
76495         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76496         m4/uintmax_t.m4.
76497
76498 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76499
76500         * modules/xalloc-die: New file.
76501         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
76502
76503         * modules/md5 (Files): Add m4/uint32_t.m4.
76504         * modules/sha1: Renamed from modules/sha.
76505         (Files):
76506         Rename lib/sha.h to lib/sha1.h.
76507         Rename lib/sha.c to lib/sha1.c.
76508         Rename m4/sha.m4 to m4/sha1.m4.
76509         (lib_SOURCES): Likewise.
76510         (configure.ac): Rename gl_SHA to gl_SHA1.
76511         (Include): sha.h -> sha1.h.
76512
76513 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76514
76515         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
76516         * m4/sha1.m4: Renamed from sha.m4.
76517         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
76518
76519 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76520
76521         * lib/obstack.h (obstack_empty_p):
76522         Don't assume that chunk->contents is suitably aligned.
76523         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
76524         Likewise. Problem reported by Benno in
76525         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
76526
76527         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
76528         readable.  This could be improved further but it'd take some work.
76529
76530 2004-08-08  Simon Josefsson  <jas@extundo.com>
76531
76532         * modules/xgethostname (Depends-on): Remove exit and error (not
76533         used).
76534
76535         * modules/getpass-gnu: Add getpass.h.
76536         (Depends-on): Add stdbool.
76537         * modules/getpass: Add getpass.h.
76538
76539 2004-08-08  Simon Josefsson  <jas@extundo.com>
76540
76541         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
76542         Check getpass declaration.
76543
76544 2004-08-08  Simon Josefsson  <jas@extundo.com>
76545
76546         * lib/xgethostname.c: Don't include error.h (not used).
76547
76548         * lib/getpass.h: Add.
76549         * lib/getpass.c: Include getpass.h first.
76550
76551 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
76552
76553         * lib/xalloc-die.c: New file.
76554         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
76555         All uses removed.
76556         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
76557         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
76558         xalloc-die.c.
76559         (_, N_, xalloc_die): Move to xalloc-die.c.
76560         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
76561         so that we needn't mess with xalloc_msg_memory_exhausted.
76562
76563         * lib/sha1.h: Renamed from sha.h.
76564         (SHA1_H): Renamed from _SHA_H.
76565         (sha1_ctx): Renamed from sha_ctx.
76566         (sha1_init_ctx): Renamed from sha_init_ctx.
76567         (sha1_process_block): Renamed from sha_process_block.
76568         (sha1_process_bytes): Renamed from sha_process_bytes.
76569         (sha1_finish_ctx): Renamed from sha_finish_ctx.
76570         (sha1_read_ctx): Renamed from sha_read_ctx.
76571         (sha1_stream): Renamed from sha_stream.
76572         (sha1_buffer): Renamed from sha_buffer.
76573         * lib/sha1.c: Likewise; renamed from sha.c.
76574         Do not include <sys/types.h>.
76575         Include <stddef.h> rather than <stdlib.h>.
76576
76577 2004-08-08  Bruno Haible  <bruno@clisp.org>
76578
76579         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
76580         FILESYSTEM_PREFIX_LEN.
76581         * lib/progreloc.c: Likewise.
76582         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
76583
76584 2004-08-06  Simon Josefsson  <jas@extundo.com>
76585
76586         * modules/progname (Depends-on): Don't depend on stdbool.
76587
76588 2004-08-06  Simon Josefsson  <jas@extundo.com>
76589
76590         * modules/getsubopt: New file.
76591         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76592         getsubopt.
76593
76594 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76595
76596         More merge from coreutils.
76597
76598         * m4/utimens.m4, m4/utimecmp.m4: New files.
76599         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
76600         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
76601         prereq.m4, sha.m4: Import changes from coreutils.
76602
76603 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76604
76605         More merge from coreutils.
76606         * modules/raise, modules/readtokens0, modules/utimens:
76607         * modules/utimecmp, module/xnanosleep: New files.
76608         * modules/strftime: Add lib/strftime.h.
76609         Change include from <time.h> to "strftime.h".
76610         * modules/yesno: Add lib/yesno.h.
76611         * modules/backupfile: Remove lib/addext.c.
76612         * modules/euidaccess: Add stat-macros.h.
76613         * modules/canonicalize, modules/euidaccess,
76614         modules/filemode, modules/lchown, modules/makepath,
76615         modules/rmdir, modules/stat: Likewise.
76616
76617 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76618
76619         Merge from tar.
76620         * lib/argp-help.c (make_hol, hol_append): Don't assume that
76621         SIZE_MAX is a valid preprocessor constant.
76622         (__argp_basename): Change from "#ifndef _LIBC"
76623         to "#ifndef __argp_short_program_name", so that
76624         we don't compile these functions for tar.
76625
76626         More merges from coreutils.
76627         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
76628         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
76629         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
76630         * lib/addext.c: Remove; no longer needed.
76631         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
76632         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
76633         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
76634         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
76635         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
76636         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
76637         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
76638         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
76639         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
76640         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76641         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
76642         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
76643         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
76644         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
76645         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
76646         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
76647         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
76648         Import changes from coreutils.
76649
76650 2004-08-05  Simon Josefsson  <jas@extundo.com>
76651
76652         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
76653
76654 2004-08-05  Simon Josefsson  <jas@extundo.com>
76655
76656         * m4/getsubopt.m4: New file.
76657
76658 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76659
76660         Merge from coreutils.
76661
76662         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
76663         * m4/getcwd-path-max.m4: New files.
76664
76665         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
76666         FILESYSTEM_PREFIX_LEN ->
76667         FILE_SYSTEM_PREFIX_LEN.
76668         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
76669         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
76670         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
76671         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
76672
76673         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
76674         prerequisite modules now handle the DOS stuff.
76675         Don't check for unistd.h.
76676
76677 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76678
76679         Merge from coreutils.
76680
76681         * lib/.gdb-history: Remove; this doesn't belong here.
76682
76683         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
76684         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
76685         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
76686         * lib/getcwd.c: New files.
76687
76688         * lib/dirname.h: Include <stdbool.h>.
76689         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
76690         for consistency with POSIX terminology.  All uses changed.
76691         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
76692         (strip_trailing_slashes): Use bool for booleans.
76693         * lib/stripslash.c (strip_trailing_slashes): Likewise.
76694
76695         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
76696         sometimes returns a positive errno value even when it succeeds.
76697         (print_errno_message) [!LIBC]: Fall back on strerror if
76698         __strerror_r fails.
76699
76700         * lib/path-concat.c (mempcpy): Don't define if a system header defines
76701         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
76702         (longest_relative_suffix): New function.
76703         (path_concat): Use it.  Assume first argument is not NULL.
76704         Port to DOS.  Omit redundant separators.
76705         Report an error instead of returning NULL.
76706         Use mempcpy instead of memcpy.
76707         (xpath_concat): Remove: not declared or used.
76708
76709         * lib/same.h: Include <stdbool.h>
76710         (same_name): Return bool, not int.
76711         * lib/same.c (same_name): Likewise.
76712         (errno): Don't declare; we assume C89 or better now.
76713
76714         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
76715         if not already defined.
76716
76717         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
76718         * lib/dup-safer.c (errno): Likewise.
76719
76720 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76721
76722         Merge from coreutils.
76723         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
76724         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
76725         * modules/path-concat: Don't depend on strdup.
76726
76727 2004-08-03  Simon Josefsson  <jas@extundo.com>
76728
76729         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
76730         * lib/progname.h: Don't include stdbool.h.
76731
76732 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76733
76734         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
76735         * MODULES.html.sh (func_all_modules): Remove fatal.
76736
76737 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76738
76739         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
76740
76741 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76742
76743         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
76744         working.
76745
76746 2004-08-02  Simon Josefsson  <jas@extundo.com>
76747
76748         * lib/getsubopt.h: New file, with comments from Bruno Haible.
76749         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
76750         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
76751
76752 2004-08-01  Simon Josefsson  <jas@extundo.com>
76753
76754         * lib/xgetdomainname.c: Include stdlib.h, for free().
76755
76756 2004-07-19  Bruno Haible  <bruno@clisp.org>
76757
76758         * MODULES.html.sh (func_all_modules): Add dummy.
76759
76760 2004-07-16  Simon Josefsson  <jas@extundo.com>
76761
76762         * modules/dummy: New file.
76763
76764 2004-07-16  Simon Josefsson  <jas@extundo.com>
76765
76766         * lib/dummy.c: New file.
76767
76768 2004-07-16  Bruno Haible  <bruno@clisp.org>
76769
76770         * lib/backupfile.h: Add extern "C" for C++.
76771         * lib/closeout.h: Likewise.
76772         * lib/copy-file.h: Likewise.
76773         * lib/findprog.h: Likewise.
76774         * lib/full-write.h: Likewise.
76775         * lib/pathname.h: Likewise.
76776         * lib/progname.h: Likewise.
76777         * lib/stpcpy.h: Likewise.
76778         * lib/stpncpy.h: Likewise.
76779         * lib/strcase.h: Likewise.
76780         * lib/strstr.h: Likewise.
76781         * lib/xalloc.h: Likewise.
76782
76783         * lib/mbswidth.h: Add extern "C" for C++.
76784         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
76785
76786 2004-07-13  Robert Millan  <robertmh@gnu.org>
76787
76788         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
76789
76790 2004-07-09  Simon Josefsson  <jas@extundo.com>
76791
76792         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
76793         failed without this.)
76794
76795 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76796
76797         * modules/chown (Files): Add lib/fchown-stub.c, since
76798         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
76799
76800 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76801
76802         * lib/fchown-stub.c: New file.
76803
76804 2004-06-24  Jim Meyering  <jim@meyering.net>
76805
76806         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
76807
76808 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76809
76810         * modules/argz: Omit "#include".
76811
76812         * MODULES.html.sh (func_all_modules): Add calloc, to match
76813         2004-06-01 addition of calloc module.
76814
76815 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76816
76817         * m4/argz.m4: New file, which is autoupdated from libtool.
76818
76819 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76820
76821         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
76822         libtool.
76823
76824 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76825
76826         * config/srclist-update: Don't insist on "USA." before the
76827         close-comment, as libtool omits the period and puts the */ on a
76828         separate line.
76829         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
76830         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
76831
76832 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
76833
76834         * modules/argz: New file.
76835         * MODULES.html.sh (func_all_modules): Add argz.
76836
76837 2004-06-12  Jim Meyering  <jim@meyering.net>
76838         and  Paul Eggert  <eggert@cs.ucla.edu>
76839
76840         * modules/hash (Files): Add lib/xalloc.h.
76841         * modules/pipe (Depends-on): Add wait-process.
76842         * modules/stat (Depends-on): Add xalloc.
76843         * modules/userspec (Files): Add lib/userspec.h.
76844         * modules/xstrto
76845
76846         Upgrade from gettext-0.13.
76847         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
76848         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
76849         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
76850
76851 2004-06-10  Jim Meyering  <jim@meyering.net>
76852
76853         * lib/calloc.c: New file.
76854
76855 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
76856
76857         * lib/getdate.y (yylex): Allow space between sign and number.
76858         Problem reported by Dan Jacobson.
76859
76860 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76861
76862         Merge from coreutils CVS.
76863
76864         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
76865         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
76866         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
76867         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
76868         xstrtol.m4: Fix copyright date and/or serial number.
76869
76870         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
76871         See if we need an fchown replacement.
76872         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
76873         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
76874         and use the replacement function if we detect either defect.
76875
76876         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
76877         gl_UTIMECMP.
76878
76879 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76880         and  Jim Meyering  <jim@meyering.net>
76881
76882         Merge from coreutils CVS.
76883
76884         * lib/stat-macros.h: New file, with contents from file-type.h
76885         and coreutils' system.h.
76886         * lib/file-type.c: Include "stat-macros.h".
76887         * lib/file-type.h (file_type): Move all macro definitions to new file,
76888         stat-macros.h.
76889
76890         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
76891         Wrap old code with this conditional.
76892         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
76893         function that does not dereference symlinks.
76894         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
76895
76896         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
76897         dependency problems.
76898         (xreadlink): Accept new arg SIZE, for efficiency.
76899         All decls and uses changed.
76900         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76901
76902         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76903         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76904
76905         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76906         sysexits.h.
76907
76908 2004-06-01  Jim Meyering  <jim@meyering.net>
76909
76910         * m4/calloc.m4: New file.
76911
76912 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76913
76914         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76915         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76916         Also, fix a typo in a diagnostic.
76917
76918 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76919
76920         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76921         or AC_FUNC_REALLOC.
76922
76923 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76924
76925         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76926         macros to be defined.
76927         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76928         the allocator returns NULL because the requested size is zero.
76929
76930 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76931
76932         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76933         var.  Add comment explaining why libc still defines it.  This
76934         merges the following patch from glibc:
76935         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76936
76937 2004-05-20  Andreas Schwab  <schwab@suse.de>
76938
76939         * m4/free.m4: Replace free if it not known to work, not the other
76940         way round.
76941
76942 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76943
76944         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76945         present in glibc since revision 1.1 of this file.
76946         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76947         obstack_alignment_mask, obstack_alloc, obstack_base,
76948         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76949         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76950         obstack_grow0, obstack_init, obstack_int_grow,
76951         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76952         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76953         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76954         nonexistent functions.
76955
76956 2004-05-18  Karl Berry  <karl@gnu.org>
76957
76958         * config/srclist.txt: break link for vasnprintf.c.
76959
76960 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76961
76962         Port obstack to the AS/400, where pointers are 16 bytes wide and
76963         you cannot cast an integer to a valid pointer.  This patch is
76964         currently waiting to be integrated into glibc; see
76965         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76966
76967         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76968         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76969         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76970         (struct obstack): temp member is now a union of a pointer and
76971         an integer, instead of an integer.  All integer uses changed.
76972         This does not affect the physical layout of struct obstack,
76973         except on hosts (like the AS/400) where the size or alignment of
76974         void * is greater than that of ptrdiff_t.
76975         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76976         __STDC__)]: Store temporary in pointer member of union, not
76977         integer member.
76978         * lib/obstack.c: Include <stddef.h>, for offsetof.
76979         (struct fooalign): Remove; it doesn't need a name.
76980         (union fooround): Change double to long double, and add void *.
76981         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76982         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76983         not a macro.  Hence the values are always int; so remove all
76984         casts-to-int in uses.
76985
76986 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76987
76988         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76989         we can get this patch merged into glibc.
76990
76991 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76992             Paul Eggert  <eggert@cs.ucla.edu>
76993
76994         * m4/argp: Depend on alloca.
76995
76996 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76997             Paul Eggert  <eggert@cs.ucla.edu>
76998
76999         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
77000         freecoding.
77001
77002 2004-05-17  Bruno Haible  <bruno@clisp.org>
77003
77004         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
77005         precision that consists of a '.' followed by an empty digit string.
77006         Patch by Tor Lillqvist <tml@iki.fi>.
77007
77008 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77009
77010         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
77011         for backward compatibility with older code.  We need our own
77012         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
77013         it under some other name, and our alloca.h will define it.
77014
77015 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77016             Derek Price  <derek@ximbiot.com>
77017
77018         * lib/alloca.c: Include <alloca.h>, to get our interface.
77019         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
77020         include <alloca.h> first.  Use C89 prototype for alloca; this
77021         requires including <stddef.h> for size_t.  Use extern "C" if C++.
77022         Use #elif for simplicity, since we can assume C89 now.
77023         Don't try to source the system alloca.h since it will not be found
77024         and to prevent recursively including its replacement.
77025         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
77026         * lib/regex.c: Likewise.
77027
77028 2004-05-16  Derek Price  <derek@ximbiot.com>
77029             Paul Eggert  <eggert@cs.ucla.edu>
77030
77031         getline cleanup.  This changes the getndelim2 API: both order of
77032         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
77033         no delimiter).
77034
77035         * lib/getline.c: Don't include stddef.h or stdio.h, since our
77036         interface does that.
77037         (getline): Always use getdelim, so that we don't have two
77038         copies of this code.
77039         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
77040         if available.
77041         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
77042         (GETNDELIM2_MAXIMUM): New macro.
77043         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
77044         instead of the old practice of delim2==0.  All callers changed.
77045         Return -1 on overflow, instead of returning junk.
77046         Do not set *linesize unless allocation succeeds.
77047         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
77048         that we include sys/types.h.
77049         * lib/getnline.h: Likewise.
77050         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
77051         (getndelim2): Reorder arguments.
77052         * lib/getnline.c (getnline, getndelim):
77053         Don't discard the NMAX argument.
77054         (getnline): Invoke getndelim, to avoid code duplication.
77055         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
77056         of (size_t) -1 by callers of the getnline family.
77057
77058 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77059
77060         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
77061         Check for gettimeofday.
77062         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
77063         Check for settimeofday, stime.
77064
77065 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77066
77067         * lib/nanosleep.c (suspended): Change its type from int to
77068         sig_atomic_t volatile.
77069         (first_call): Make it private to rpl_nanosleep, and have it
77070         be zero initially as that's a bit faster.
77071         (my_usleep): Round up fractional times instead of truncating them,
77072         as this is the usual meaning for 'sleep'.
77073
77074         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
77075         doesn't work.
77076         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
77077         (ENOSYS): Define if not defined.
77078         (settime): Fall back on stime if it exists and settimeofday fails.
77079         But don't bother with fallbacks if a method fails with errno == EPERM.
77080
77081 2004-05-11  Jim Meyering  <jim@meyering.net>
77082
77083         Prior to this change, the save_cwd caller required read access to the
77084         current directory on most systems (ones with the fchdir function).
77085
77086         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
77087         fails, try write-only, and finally, resort to using xgetcwd.
77088
77089 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77090
77091         * lib/obstack.c, obstack.h: Import changes from libc.
77092
77093 2004-04-28  Bruno Haible  <bruno@clisp.org>
77094
77095         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
77096         also implicitly appends .exe to executables.
77097         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
77098         accepts Windows pathnames.
77099         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77100         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77101         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77102         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77103         Reported by Derek Robert Price <derek@ximbiot.com>.
77104
77105 2004-04-21  Karl Berry  <karl@gnu.org>
77106
77107         * config/srclist.txt (localcharset.c): break sync.
77108
77109 2004-04-20  Paul Eggert  <eggert@twinsun.com>
77110
77111         * m4/host-os.m4: Add a copyright notice.
77112
77113 2004-04-20  Jim Meyering  <jim@meyering.net>
77114
77115         Change UTILS_ to gl_ in AC_DEFINE'd names.
77116         Change utils_- and jm_-prefixed variables, too.
77117         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
77118         UTILS_FUNC_MKDIR_TRAILING_SLASH.
77119         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
77120
77121         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
77122         Don't emit trailing blanks.
77123         Also rename jm_-prefixed variables to have gl_ prefix.
77124
77125         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
77126         Also rename jm_-prefixed variables to have gl_ prefix.
77127
77128         * m4/jm-macros.m4: Reflect the renamings.
77129         * m4/prereq.m4: Likewise.
77130
77131 2004-04-20  Jim Meyering  <jim@meyering.net>
77132
77133         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
77134         memory.
77135
77136 2004-04-20  Jim Meyering  <jim@meyering.net>
77137             Bruno Haible  <bruno@clisp.org>
77138
77139         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
77140         memory when realloc fails.
77141
77142 2004-04-19  Jim Meyering  <jim@meyering.net>
77143
77144         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
77145         now that readutmp.c may call `free (0)'.
77146
77147 2004-04-19  Bruno Haible  <bruno@clisp.org>
77148
77149         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
77150         * m4/inttypes_h.m4: Likewise.
77151         * m4/stdint_h.m4: Likewise.
77152         * m4/intmax_t.m4: Likewise.
77153         * m4/uintmax_t.m4: Likewise.
77154
77155 2004-04-18  Jim Meyering  <jim@meyering.net>
77156
77157         * m4/prereq.m4: Don't forbid jm_ prefix.
77158
77159         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
77160         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
77161         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
77162         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
77163         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
77164         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
77165         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
77166         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
77167         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
77168         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
77169         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
77170         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
77171         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
77172         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
77173         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
77174         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
77175         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
77176         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
77177         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
77178
77179 2004-04-18  Jim Meyering  <jim@meyering.net>
77180
77181         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
77182         failure, don't leak memory and do call END_UTMP_ENT.
77183
77184 2004-04-16  Jim Meyering  <jim@meyering.net>
77185
77186         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
77187         coreutils' stat program.
77188         (gl_PREREQ): Don't require jm_PREREQ_STAT.
77189
77190 2004-04-11  Paul Eggert  <eggert@twinsun.com>
77191
77192         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
77193         C89.
77194         (CHAR_BIT): Remove, since we assume C89.
77195         Include <stdint.h> if available, as per current Autoconf CVS advice.
77196
77197 2004-03-31  Jim Meyering  <jim@meyering.net>
77198
77199         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
77200         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
77201         * m4/xalloc.m4: Likewise.
77202
77203 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77204
77205         Merge from coreutils.
77206
77207         * m4/inttostr.m4: New file.
77208         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
77209         Require AM_STDBOOL_H and gl_TIMESPEC instead.
77210         Require gl_CLOCK_TIME.
77211         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
77212
77213 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77214
77215         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
77216         not bool, to be more consistent with Unix conventions.
77217         Suggested by Bruno Haible.
77218
77219         Merge from coreutils.
77220
77221         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
77222         * lib/umaxtostr.c: New files.
77223
77224         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
77225         the usual <time.h> dance.
77226         (get_date): Change signature to support fractional time stamps.
77227         All callers changed.
77228         * lib/getdate.y: Include "getdate.h" first, as we can now
77229         assume C89 and don't need to worry about 'const'.
77230         Similarly, include "unlocked-io.h" near start, not in middle.
77231         Include <limits.h>.
77232         (textint.value): Use long int rather than int.
77233         (textint.digits): Use size_t rather than int.
77234         (BILLION, LOG10_BILLION): New constants.
77235         (parser_control): New member rel_ns.  Members day_ordinal,
77236         time_zone, month, day, hour, minutes, rel_year, rel_month,
77237         rel_day, rel_hour, rel_minutes, rel_seconds
77238         are now long int, not int.  Member seconds is now struct timespec,
77239         not int.  New member timespec_seen.  Members dates_seen, days_seen,
77240         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
77241         not int.
77242         (%union.intval): Now long int, not int.
77243         New member timespec.
77244         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
77245         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
77246         (spec): Now is a timespec or an item list.
77247         (timespec, items): New nonterminals.
77248         (time, rel, relunit, number, get_date):
77249         Add support for fractional seconds.
77250         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
77251         (gmtime, localtime, mktime): Remove decls; not needed with C89.
77252         (to_hour): First arg is now long int, not int.
77253         (to_year): Returns long int, not int.
77254         Don't treat year -70 like 70.
77255         (tm_diff): Returns long int, not int.
77256         (lookup_word): Use bool instead of int when appropriate.
77257         (yylex): Use size_t for count, not int.
77258         Detect overflow when parsing large integer constants.
77259         Add support for fractions.
77260         (get_date): Make pointers 'const' if possible.
77261         Use more-portable code to detect integer overflow.
77262         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
77263         Don't use ctime; it's not reliable if the year has >4 digits.
77264
77265         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
77266         This is for compatibility with BSD.
77267
77268         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
77269         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
77270         From coreutils' system.h.
77271
77272         * lib/userspec.c: Don't include "posixver.h".
77273         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
77274         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
77275         compatible extension.  Simplify code by removing a boolean int
77276         that was always nonzero if a string was nonnull.
77277
77278 2004-03-30  Jim Meyering  <jim@meyering.net>
77279
77280         Merge from coreutils.
77281
77282         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
77283         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
77284         on some systems one must include <grp.h> before it.
77285         Reported by Christian Krackowizer.
77286
77287 2004-03-30  Jim Meyering  <jim@meyering.net>
77288
77289         Merge from coreutils.
77290
77291         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
77292
77293         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
77294         an empty input stream.
77295
77296         * lib/readtokens.c: Include <stdbool.h>.
77297         (readtoken): Use `size_t' rather than int/long.
77298         All callers adjusted.
77299         Use `bool' rather than `int' where appropriate.
77300         Use memset rather than an explicit loop.
77301         Use x2nrealloc rather than xrealloc.
77302         Allow the use of `\0' as a delimiter.
77303         (readtokens): Likewise.
77304         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
77305
77306 2004-03-30  Jim Meyering  <jim@meyering.net>
77307
77308         * m4/realloc.m4: Remove file, since now it does no more than
77309         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
77310         the `configure.ac' section of module/realloc.
77311         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
77312
77313 2004-03-30  Bruno Haible  <bruno@clisp.org>
77314
77315         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
77316         nonnull.
77317
77318 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77319
77320         Merge changes to getloadavg.c from coreutils and Emacs.
77321
77322         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
77323         Define to an expression, not to the empty string.
77324         Include cloexec.h and xalloc.h.
77325         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
77326         Use set_cloexec_flag rather than rolling our own.
77327         * lib/cloexec.c, lib/cloexec.h: New files.
77328
77329 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77330
77331         * m4/cloexec.m4: New file.
77332
77333 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77334
77335         * lib/getopt.h: Sync with libc CVS.
77336
77337 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77338             Bruno Haible  <bruno@clisp.org>
77339
77340         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
77341         mbswidth.
77342
77343 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77344             Bruno Haible  <bruno@clisp.org>
77345
77346         * lib/mbswidth.h: Include <wchar.h> only if
77347         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
77348         <wchar.h>.
77349         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
77350
77351 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77352
77353         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
77354         Sync with libc CVS.
77355         * lib/getopt_int.h: New file, also synced from libc.
77356
77357 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77358
77359         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
77360         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
77361         Bring back getopt.c, getopt.h, getopt1.c.
77362
77363 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77364
77365         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
77366         All uses changed.  Check for sa_sigaction member; this fixes
77367         a bug first reported by Jason Andrade in
77368         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77369
77370 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77371
77372         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
77373         '#if' expressions.  Unlike the code it replaces, it does not
77374         depend on (defined _SC_PAGESIZE).  However, it does depend on
77375         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
77376         first reported by Jason Andrade in
77377         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77378
77379 2004-02-25  Simon Josefsson  <jas@extundo.com>
77380
77381         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
77382
77383 2004-02-25  Simon Josefsson  <jas@extundo.com>
77384
77385         * lib/strdup.h: New file.
77386         * lib/strdup.c: Include it.
77387         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
77388         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
77389
77390 2004-02-23  Karl Berry  <karl@gnu.org>
77391
77392         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
77393         (from fencepost.gnu.org:/gd/gnuorg).
77394
77395 2004-02-23  Karl Berry  <karl@gnu.org>
77396
77397         * config/srclistvars.sh (GNUORG) [karl]: redefine.
77398         * config/srclist.txt: add maintain/standards documents.
77399
77400 2004-02-18  Bruno Haible  <bruno@clisp.org>
77401
77402         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
77403         Reported by Derek Robert Price <derek@ximbiot.com>.
77404
77405 2004-02-16  Karl Berry  <karl@gnu.org>
77406
77407         * config/mkinstalldirs, install-sh: update from automake.
77408
77409 2004-02-06  Karl Berry  <karl@gnu.org>
77410
77411         * m4/po.m4: update from gettext 0.14.1.
77412
77413 2004-02-06  Karl Berry  <karl@gnu.org>
77414
77415         * lib/config.charset: update from gettext 0.14.1.
77416
77417 2004-02-05  Paul Eggert  <eggert@twinsun.com>
77418
77419         Add comments and code, prompted by suggestions from Bruno Haible
77420         for sh-quote.
77421         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
77422         describing the enum quoting_style values.
77423         * lib/quotearg.c (quotearg_alloc): New function.
77424         (quotearg_buffer_restyled): Treat lone { and } as special.
77425         Treat = as special.  Work around bug with older shells
77426         that "see" a '\' that is really the 2nd byte of a multibyte char.
77427         Quote empty string with shell_quoting_style.
77428
77429 2004-02-03  Bruno Haible  <bruno@clisp.org>
77430
77431         * m4/pipe.m4: New file, from GNU gettext.
77432
77433 2004-02-03  Bruno Haible  <bruno@clisp.org>
77434
77435         * lib/pipe.h: New file, from GNU gettext.
77436         * lib/pipe.c: New file, from GNU gettext.
77437
77438 2004-01-27  Bruno Haible  <bruno@clisp.org>
77439
77440         * m4/execute.m4: New file, from GNU gettext.
77441
77442 2004-01-27  Bruno Haible  <bruno@clisp.org>
77443
77444         * lib/execute.h: New file, from GNU gettext.
77445         * lib/execute.c: New file, from GNU gettext.
77446         * lib/w32spawn.h: New file, from GNU gettext.
77447
77448 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77449
77450         Merge from diffutils.
77451
77452         * lib/file-type.c (file_type): Add typed memory objects.
77453         * lib/file-type.h (S_TYPEISTMO): New macro.
77454
77455         * lib/c-stack.h (c_stack_action): Remove argv argument.
77456         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
77457         (die): Don't calculate message unless segv_action returns.
77458         (get_stack_location, min_address_from_argv, max_address_from_argv,
77459         volatile stack_base, volatile_stack_size): Remove.
77460         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
77461         that every segmentation violation is a stack overflow.  (Ouch!)
77462         See Debian bug 136249 (still outstanding) for more info about why
77463         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
77464
77465 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77466
77467         Exit-status fix from coreutils.
77468
77469         Use exit_failure consistently in place of EXIT_FAILURE,
77470         so that program exit statuses are consistent on failure.
77471
77472         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
77473         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
77474         * lib/argmatch.h: Comment fix to match the above.
77475         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
77476         Now a macro referring to exit_failure, instead of a separate
77477         variable.  Include "exitfail.h" to get it.
77478         * lib/xstrtol.h: Include "exitfail.h".
77479         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
77480
77481         * lib/long-options.c (parse_long_options): Use prototype
77482         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
77483         for clarity.
77484
77485 2004-01-21  Jim Meyering  <jim@meyering.net>
77486
77487         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
77488         so as not to conflict with a different-sized __mktime_internal
77489         function in GNU libc.
77490         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
77491         Problem building statically-linked `ls' reported by Michael Brunnbauer.
77492
77493 2004-01-20  Karl Berry  <karl@gnu.org>
77494
77495         * config/config.guess: update from config.
77496
77497         * config/srclistvars.sh: GNUWWWLICENSES for karl.
77498
77499 2004-01-20  Bruno Haible  <bruno@clisp.org>
77500
77501         Safer stack allocation.
77502         * lib/setenv.c: Include allocsa.h.
77503         (alloca): Remove fallback definition.
77504         (freea): Remove macro.
77505         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
77506         instead of freea.
77507
77508 2004-01-20  Bruno Haible  <bruno@clisp.org>
77509
77510         * m4/eealloc.m4: New file, from GNU gettext.
77511
77512 2004-01-20  Bruno Haible  <bruno@clisp.org>
77513
77514         * m4/allocsa.m4: New file, from GNU gettext.
77515
77516 2004-01-20  Bruno Haible  <bruno@clisp.org>
77517
77518         * lib/xallocsa.h: New file, from GNU gettext.
77519         * lib/xallocsa.c: New file, from GNU gettext.
77520
77521 2004-01-20  Bruno Haible  <bruno@clisp.org>
77522
77523         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
77524
77525 2004-01-20  Bruno Haible  <bruno@clisp.org>
77526
77527         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
77528         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
77529         specially.
77530
77531 2004-01-20  Bruno Haible  <bruno@clisp.org>
77532
77533         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
77534         patch.
77535
77536 2004-01-20  Bruno Haible  <bruno@clisp.org>
77537
77538         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
77539
77540 2004-01-20  Bruno Haible  <bruno@clisp.org>
77541
77542         * lib/eealloc.h: New file.
77543
77544 2004-01-20  Bruno Haible  <bruno@clisp.org>
77545
77546         * lib/binary-io.h: Avoid warnings on Cygwin.
77547
77548 2004-01-20  Bruno Haible  <bruno@clisp.org>
77549
77550         * lib/allocsa.h: New file, from GNU gettext.
77551         * lib/allocsa.c: New file, from GNU gettext.
77552
77553 2004-01-18  Karl Berry  <karl@gnu.org>
77554
77555         * doc/gpl.texi, doc/lgpl.texi: new files.
77556
77557 2004-01-18  Karl Berry  <karl@gnu.org>
77558
77559         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
77560         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
77561
77562 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77563
77564         Merge from coreutils.
77565
77566         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
77567         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
77568         (gl_DEFAULT_POSIX2_VERSION): Move
77569         the documentation from 'configure' into 'config.hin',
77570         so that 'configure --help' isn't burdened by it and
77571         we don't have to worry about its formatting there.
77572         Reword the documentation so that it's more succinct
77573         and can be run together into a single paragraph.
77574         * m4/same.m4 (gl_SAME): Check for pathconf.
77575
77576 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77577
77578         Merge from coreutils.
77579
77580         * lib/posixver.c: Include posixver.h.
77581
77582         * lib/same.c: Include <stdbool.h>, <limits.h>.
77583         (_POSIX_NAME_MAX): Define if not defined.
77584         (MIN): New macro.
77585         (same_name): If file names are silently truncated, report
77586         that the file names are the same if they are the same after
77587         the silent truncation.
77588
77589         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
77590         conversion function.
77591         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
77592         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
77593         longer needed.
77594
77595 2004-01-15  Jim Meyering  <jim@meyering.net>
77596
77597         Merge from coreutils.
77598
77599         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
77600         if no library is required.
77601         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
77602         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
77603         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
77604         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
77605         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
77606         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
77607         value, $ac_cv_search_crypt, if it's "none required".
77608         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
77609         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
77610         not gl_FUNC_GETLOADAVG.
77611         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
77612         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
77613
77614 2004-01-15  Jim Meyering  <jim@meyering.net>
77615
77616         Merge from coreutils.
77617
77618         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
77619         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
77620         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
77621
77622         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
77623         optional configure-time default.
77624
77625         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77626
77627         * lib/xreadlink.c (xreadlink): Correct outdated comment.
77628
77629 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
77630
77631         Merge from coreutils.
77632
77633         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
77634         value, $ac_cv_search_nanosleep, if it's "none required".
77635
77636 2004-01-14  Paul Eggert  <eggert@twinsun.com>
77637
77638         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
77639         with like-named macro in fnmatch.c.
77640         (EXT): Use an internal constant instead.
77641
77642         Merge fnmatch patches from glibc.
77643         * lib/fnmatch.c (mbsinit): Remove define.
77644         Add libc_hidden_ver (__fnmatch, fnmatch).
77645         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
77646         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
77647
77648 2004-01-14  Karl Berry  <karl@gnu.org>
77649
77650         * config/install-sh: update from automake.
77651
77652 2004-01-13  Karl Berry  <karl@gnu.org>
77653
77654         * config/install-sh: update from automake.
77655
77656 2004-01-09  Karl Berry  <karl@gnu.org>
77657
77658         * config/install-sh: update from automake.
77659
77660 2004-01-05  Karl Berry  <karl@gnu.org>
77661
77662         * config/config.{sub,guess}: update from config.
77663
77664 2003-12-31  Karl Berry  <karl@gnu.org>
77665
77666         * config/depcomp: update from automake.
77667
77668 2003-12-14  Karl Berry  <karl@gnu.org>
77669
77670         * lib/config.charset: update from gettext-runtime.
77671
77672 2003-12-03  Paul Eggert  <eggert@twinsun.com>
77673
77674         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
77675         Bug reported by Alfred M. Szmidt.
77676
77677 2003-12-03  Bruno Haible  <bruno@clisp.org>
77678
77679         * m4/gettext.m4: Upgrade from gettext-0.13.
77680         * m4/po.m4: Upgrade from gettext-0.13.
77681         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
77682         * m4/intmax.m4: New file, from gettext-0.13.
77683         * m4/printf-posix.m4: New file, from gettext-0.13.
77684
77685 2003-11-29  Karl Berry  <karl@gnu.org>
77686
77687         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
77688
77689 2003-11-25  Paul Eggert  <eggert@twinsun.com>
77690             Bruno Haible  <bruno@clisp.org>
77691
77692         * lib/printf-parse.h: Don't include sys/types.h.
77693         (ARG_NONE): New macro.
77694         (char_directive): Change type of *arg_index fields to size_t.
77695         * lib/printf-parse.c: Don't include sys/types.h.
77696         (SSIZE_MAX): Remove macro.
77697         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
77698         Remove unnecessary overflow check.
77699         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
77700         fields.
77701
77702 2003-11-25  Bruno Haible  <bruno@clisp.org>
77703
77704         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
77705
77706 2003-11-25  Bruno Haible  <bruno@clisp.org>
77707
77708         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
77709         gt_TYPE_SSIZE_T.
77710
77711 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77712
77713         * modules/alloca: Remove dependency on xalloc.
77714
77715 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77716
77717         * lib/alloca.c: Remove dependency on xalloc module.
77718         (xalloc_die): Remove.
77719         (memory_full) [!defined emacs]: New macro.
77720         [!defined emacs]: Don't include xalloc.h.
77721         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
77722         address arithmetic overflows.  Change datatypes a bit to avoid
77723         unnecessary casts.
77724
77725 2003-11-22  Jim Meyering  <jim@meyering.net>
77726
77727         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
77728         s/size/size_t/.
77729
77730 2003-11-21  Karl Berry  <karl@gnu.org>
77731
77732         * config/config.{sub,guess}: update from config.
77733
77734 2003-11-18  Karl Berry  <karl@gnu.org>
77735
77736         * config/config.{sub,guess}: update from config.
77737
77738         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
77739
77740 2003-11-17  Paul Eggert  <eggert@twinsun.com>
77741
77742         * README: Mention that S+T cannot overflow if S is the size of
77743         an existing object and T is sufficiently small.
77744
77745 2003-11-17  Jim Meyering  <jim@meyering.net>
77746
77747         On systems without utime and without a utimes function capable of
77748         dealing with a NULL struct utimbuf* argument, this utime replacement
77749         could -- in unusual circumstances -- leak a file descriptor.
77750         * lib/utime.c: Include <unistd.h> and <errno.h>.
77751         (utime_null): Be sure to close `fd' and to preserve errno.
77752         Reported by Geoff Collyer via Arnold Robbins.
77753
77754 2003-11-17  Bruno Haible  <bruno@clisp.org>
77755
77756         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
77757         (Depends-on): Add xsize.
77758
77759 2003-11-17  Bruno Haible  <bruno@clisp.org>
77760
77761         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
77762
77763 2003-11-17  Bruno Haible  <bruno@clisp.org>
77764
77765         * lib/vasnprintf.c (alloca): Remove fallback definition.
77766         (freea): Remove definition.
77767         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
77768         Reported by Paul Eggert.
77769
77770 2003-11-16  Paul Eggert  <eggert@twinsun.com>
77771             Bruno Haible  <bruno@clisp.org>
77772
77773         Protect against address arithmetic overflow.
77774         * lib/printf-args.h: Include stddef.h.
77775         (arguments): Change type of field 'count' to size_t.
77776         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
77777         'unsigned int' where appropriate.
77778         * lib/printf-parse.h: Include sys/types.h.
77779         (char_directive): Change type of *arg_index fields to ssize_t.
77780         (char_directives): Change type of fields 'count', max_*_length to
77781         size_t.
77782         * lib/printf-parse.c: Include sys/types.h and xsize.h.
77783         (SSIZE_MAX): Define fallback value.
77784         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
77785         instead of 'int' where appropriate. Check a_allocated, d_allocated
77786         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
77787         * lib/vasnprintf.c: Include xsize.h.
77788         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
77789         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
77790         overflow. Avoid wraparound when converting a width or precision from
77791         decimal to binary.
77792
77793 2003-11-16  Bruno Haible  <bruno@clisp.org>
77794
77795         Update from GNU gettext.
77796         * lib/printf-parse.c: Generalize to it can be compiled for wide
77797         strings.
77798         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
77799         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
77800         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
77801         SNPRINTF): New macros.
77802         Don't include <alloca.h> if the file is used inside libintl.
77803         (local_wcslen): New function, for Solaris 2.5.1.
77804         (VASNPRINTF): Use it instead of wcslen.
77805
77806 2003-11-16  Bruno Haible  <bruno@clisp.org>
77807
77808         * lib/xsize.h (xmax): New function.
77809         (xsum, xsum3, xsum4): Declare as "pure" functions.
77810
77811 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77812
77813         * modules/xalloc (Files): Undo latest change, since xalloc.h
77814         no longer needs SIZE_MAX or PTRDIFF_MAX.
77815
77816 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77817
77818         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
77819         gl_PTRDIFF_MAX.
77820
77821 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77822
77823         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
77824         "return", to pacify some unknown compiler.  Problem reported
77825         by Joerg Schilling.
77826
77827 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77828
77829         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
77830         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
77831         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
77832         heuristic is just as accurate as far as we know, and it removes a
77833         dependency on size_max.m4 and ptrdiff_max.m4.
77834
77835 2003-11-11  Bruno Haible  <bruno@clisp.org>
77836
77837         * modules/xsize (Files): Add m4/size_max.m4.
77838         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
77839
77840 2003-11-11  Bruno Haible  <bruno@clisp.org>
77841
77842         * m4/size_max.m4: New file.
77843         * m4/ptrdiff_max.m4: New file.
77844         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
77845         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
77846         (gl_XALLOC): Invoke it.
77847
77848 2003-11-11  Bruno Haible  <bruno@clisp.org>
77849
77850         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
77851         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
77852         defined.
77853
77854 2003-11-10  Paul Eggert  <eggert@twinsun.com>
77855
77856         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
77857         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
77858         rejected some allocations of exactly SIZE_MAX - 2 bytes.
77859         From Bruno Haible.
77860         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
77861         not (size_t) -1, since it's defined here.
77862
77863 2003-11-09  Karl Berry  <karl@gnu.org>
77864
77865         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
77866
77867 2003-11-06  Paul Eggert  <eggert@twinsun.com>
77868
77869         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
77870         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
77871         Reject sizes of exactly SIZE_MAX bytes.
77872         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
77873         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
77874
77875 2003-11-05  Bruno Haible  <bruno@clisp.org>
77876
77877         * lib/xsize.h: Include limits.h, to avoid a possible collision with
77878         SIZE_MAX defined in <limits.h> on Solaris.
77879
77880 2003-11-04  Jim Meyering  <jim@meyering.net>
77881
77882         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
77883         variable names, rather than @VAR@.
77884         * modules/poll: Likewise.
77885
77886 2003-11-04  Bruno Haible  <bruno@clisp.org>
77887
77888         * modules/xsize: New file.
77889         * modules/linebreak: Depend on xsize.
77890         * MODULES.html.sh (func_all_modules): Add xsize.
77891
77892 2003-11-04  Bruno Haible  <bruno@clisp.org>
77893
77894         * m4/xsize.m4: New file.
77895
77896 2003-11-04  Bruno Haible  <bruno@clisp.org>
77897
77898         * lib/xsize.h: New file.
77899         * lib/linebreak.c: Include xsize.h.
77900         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77901         argument for overflow.
77902         Suggested by Paul Eggert.
77903
77904 2003-11-03  Karl Berry  <karl@gnu.org>
77905
77906         * config/config.{guess,sub}: update from config.
77907
77908 2003-11-03  Jim Meyering  <jim@meyering.net>
77909
77910         * modules/userspec (lib_SOURCES): Add userspec.h.
77911         (Include): Add "userspec.h".
77912         Improve description.
77913
77914 2003-11-03  Jim Meyering  <jim@meyering.net>
77915
77916         * lib/userspec.c: Include "userspec.h".
77917         * lib/userspec.h: New file.
77918
77919 2003-11-03  Bruno Haible  <bruno@clisp.org>
77920
77921         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77922
77923 2003-11-03  Bruno Haible  <bruno@clisp.org>
77924
77925         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77926         available, to avoid (extremely rare) race condition.
77927         Suggested by Paul Eggert.
77928
77929 2003-11-02  Karl Berry  <karl@gnu.org>
77930
77931         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77932
77933 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77934
77935         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77936         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77937         (read_filesystem_list): Set and use me_type_malloced.
77938         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77939         whatever the type happens to be), for brevity and consistency.
77940         Check for size calculation overflow on Alphas running OSF/1.
77941
77942 2003-10-31  Jim Meyering  <jim@meyering.net>
77943
77944         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77945
77946         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77947
77948 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77949             Bruno Haible  <bruno@clisp.org>
77950
77951         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77952         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77953
77954 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77955
77956         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77957         netbsd*-gnu*.  Suggested by Robert Millan.
77958
77959 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77960
77961         * modules/group-member: Depend on stdbool.
77962
77963 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77964
77965         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77966
77967 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77968
77969         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77970         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77971         after the 'gnu' in these cases.  This fixes some bugs in the
77972         previous change, and is based on suggestions by Robert Millan.
77973
77974 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77975
77976         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77977         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77978         no longer needed.
77979         * lib/quotearg.c (quotearg_n_options): Use it.
77980         * lib/group-member.c: Include <stdbool.h>.
77981         (free_group_info): Arg is now const *; don't free arg.
77982         (get_group_info): Now returns bool and accepts struct group_info *,
77983         rather than returning a malloc'ed struct group_info *.
77984         All uses changed.  Check for overflow in internal size calculation.
77985
77986         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77987         rather than xmalloc/xrealloc.
77988         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77989         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77990         conformance bug: the old code used a pointer after freeing the
77991         storage that it addressed.
77992         * lib/hash.c (hash_initialize): Simplify the code by using
77993         xalloc_oversized rather than doing it by hand.
77994         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77995         the buffer preserved.  Use free and xmalloc instead.
77996         * lib/quotearg.c (quotearg_n_options): Likewise.
77997         Use a simpler test for size overflow.  Don't use xalloc_oversized
77998         because unsigned int might be wider than size_t (!); this suggests
77999         that we should switch from unsigned int to size_t for slot numbers.
78000
78001 2003-10-28  Paul Eggert  <eggert@twinsun.com>
78002
78003         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
78004         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
78005         NetBSD kernels.  Requested by Richard Stallman.
78006
78007 2003-10-27  Paul Eggert  <eggert@twinsun.com>
78008
78009         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
78010         to allocate the returned structure.  Do not allocate a subarray,
78011         as x2nrealloc will do that.
78012         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
78013         instead of xnrealloc.
78014         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
78015
78016 2003-10-27  Bruno Haible  <bruno@clisp.org>
78017
78018         * lib/stdbool_.h: Better support for BeOS.
78019
78020 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78021
78022         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
78023         now uses inline.
78024
78025 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78026
78027         * lib/xalloc.h (xalloc_oversized): New static inline function, for
78028         callers that want to do their own size-overflow checking.  Include
78029         <stdbool.h>, since xalloc_oversized returns bool.
78030         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
78031         to use xalloc_oversized.
78032
78033         Add two functions x2realloc, x2nrealloc, for programs that grow
78034         arrays dynamically by doubling their sizes.
78035         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
78036         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
78037         New functions.
78038
78039         Port to C99 semantics for 'inline' of external functions.
78040         Bug reported by Bruno Haible.
78041         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
78042         with the old contents of xnmalloc.
78043         (xnmalloc, xmalloc): Use it.
78044         (xnrealloc_inline): New static inline function,
78045         with the old contents of xnrealloc.
78046         (xnrealloc, xrealloc): Use it.
78047
78048         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
78049         that.
78050
78051 2003-10-26  Karl Berry  <karl@gnu.org>
78052
78053         * config/srclist.txt (COPYING.DOC): no longer available from
78054         /gd/gnuorg; don't know where the ultimate source is.
78055
78056 2003-10-25  Paul Eggert  <eggert@twinsun.com>
78057
78058         Fix several address-calculation bugs in the hash modules,
78059         plus some minor code cleanup.
78060
78061         * lib/hash.h: Include <stdbool.h>, for bool.
78062         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
78063         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
78064         hash_get_n_entries, hash_get_max_bucket_length,
78065         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
78066         hash_rehash): Use size_t rather than unsigned.
78067         * lib/hash.c (struct hash_table, hash_get_n_buckets,
78068         hash_get_n_buckets_used, hash_get_n_entries,
78069         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
78070         hash_get_entries, hash_do_for_each, hash_string, is_prime,
78071         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
78072         Likewise.
78073         (SIZE_MAX): Define if not defined.
78074         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
78075         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
78076         hash_print):
78077         Use const * when possible.
78078         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
78079         (check_tuning): Fix bug: if tuning parameters were very close to
78080         0 or 1, rounding errors could have caused subscript violations.
78081         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
78082         (hash_initialize): Add 'fail:' label
78083         to free table and return NULL, and use it to simplify code.
78084         Use calloc rather than clearing the storage ourself.
78085         (hash_initialize, hash_rehash): Check for arithmetic overflow in
78086         buffer size calculations.
78087         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
78088         Include <stddef.h>, for size_t.
78089         * lib/hash-pjw.c (hash_pjw): Likewise.
78090         Switch to method described by Bruno Haible.
78091         Include <limits.h>, for CHAR_BIT.
78092         (SIZE_BITS): New macro.
78093
78094 2003-10-23  Paul Eggert  <eggert@twinsun.com>
78095
78096         * m4/getline.m4 (AM_FUNC_GETLINE):
78097         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
78098         hosts.  Problem reported by Derek Robert Price in
78099         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
78100         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
78101         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
78102
78103 2003-10-21  Paul Eggert  <eggert@twinsun.com>
78104
78105         * lib/getndelim2.c (getndelim2): When size calculation overflows,
78106         ceiling the allocation at NMAX bytes rather than silently
78107         discarding input bytes before NMAX is reached.  This makes
78108         a difference only if NMAX exceeds SIZE_MAX / 2.
78109
78110         * lib/obstack.c: Merge from glibc.
78111         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
78112         Add libc_hidden_def (_obstack_newchunk).
78113         (_obstack_free) [! defined _LIBC]: Remove.
78114         [defined _LIBC]: Make a strong alias from obstack_free, rather than
78115         a clone of the function body.
78116         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
78117         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
78118
78119         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
78120         glibc.
78121         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
78122         arg to memcpy.
78123
78124         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
78125         (obstack_ptr_grow_fast, obstack_int_grow_fast):
78126         Don't use lvalue casts, as GCC plans to remove support for them
78127         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
78128         was also present in the non-GCC version, indicating that this
78129         code had always been buggy and had never been widely used.
78130         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
78131         Use the fast variant of each macro, rather than copying the
78132         definiens of the fast variant; that way, we'll be more likely to
78133         catch future bugs in the fast variants.
78134
78135 2003-10-20  Bruno Haible  <bruno@clisp.org>
78136
78137         * modules/wait-process: New file.
78138         * MODULES.html.sh (func_all_modules): Add wait-process.
78139
78140 2003-10-20  Bruno Haible  <bruno@clisp.org>
78141
78142         * m4/wait-process.m4: New file.
78143
78144 2003-10-20  Bruno Haible  <bruno@clisp.org>
78145
78146         * lib/wait-process.h: New file, from GNU gettext.
78147         * lib/wait-process.c: New file, from GNU gettext.
78148
78149 2003-10-19  Jim Meyering  <jim@meyering.net>
78150
78151         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
78152         HPUX 10.20.
78153
78154 2003-10-18  Karl Berry  <karl@gnu.org>
78155
78156         * config/config.guess: update from config.
78157
78158 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78159
78160         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
78161         (getgroups): First arg is int, not size_t.
78162         Don't let 'free' mangle errno.
78163
78164 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78165
78166         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
78167
78168 2003-10-16  Karl Berry  <karl@gnu.org>
78169
78170         * config/config.{guess,sub}: update from config.
78171
78172 2003-10-16  Jim Meyering  <jim@meyering.net>
78173
78174         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
78175         memcpy.
78176
78177 2003-10-15  Paul Eggert  <eggert@twinsun.com>
78178
78179         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
78180         (SIZE_MAX): Remove.
78181         (new_exclude, add_exclude_file): Initial size no longer needs to
78182         be a power of 2.
78183         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
78184         our own address arithmetic overflow checking.
78185
78186         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
78187         (fnmatch): Do not alloca more than 2000 wide characters;
78188         instead, use malloc for large buffers.
78189         Check for address arithmetic overflow, and return -1
78190         with errno set to ENOMEM in that case.
78191         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
78192         (NEW_PATTERN): Do not alloca more than 8000 bytes;
78193         instead, return -1.  Check for address arithmetic overflow.
78194
78195 2003-10-14  Paul Eggert  <eggert@twinsun.com>
78196
78197         Handle invalid suffixes and overflow independently, so that
78198         callers can treat them independently as needed.  Fix some bugs in
78199         suffix handling, e.g., "100k@" was not diagnosed as an invalid
78200         suffix for a human-readable blocksize.  The major caller-visible
78201         change is the addition of a new
78202         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
78203         that both overflow and suffix chars were found.
78204
78205         * lib/human.c (humblock): Don't check separately for invalid suffix
78206         char; that is xstrtoumax's job (now that its bug is fixed).
78207         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
78208         INTMAX_MAX]: New macros.
78209         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
78210         TYPE_MAXIMUM): New macros.
78211         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
78212         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
78213         if overflow occurs, as it's what __strtol does and it's more useful
78214         in practice.
78215         (__xstrtol): If __strtol reports some error other than ERANGE,
78216         reflect it to the caller as LONGINT_INVALID.  If it reports
78217         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
78218         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
78219         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
78220         value.
78221         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
78222         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
78223         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
78224         [defined UINTMAX_MAX]: New macros.
78225
78226 2003-10-14  Bruno Haible  <bruno@clisp.org>
78227
78228         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
78229
78230 2003-10-14  Bruno Haible  <bruno@clisp.org>
78231
78232         * m4/sig_atomic_t: New file, from GNU gettext.
78233         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
78234
78235 2003-10-14  Bruno Haible  <bruno@clisp.org>
78236
78237         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
78238         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
78239         Also use volatile where needed.
78240
78241 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78242
78243         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
78244         Change maintainer from Bruno Haible to 'all'.
78245
78246 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78247
78248         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
78249
78250 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78251
78252         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
78253         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
78254         and define in terms of the other primitives.
78255         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
78256         (SIZE_MAX): Define if not already defined.
78257         (array_size_overflow): New function.
78258         (xalloc_die): Abort instead of exiting if 'error' returns.
78259         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
78260         (xmalloc, xrealloc): Use them.
78261         (xcalloc): Check for address arithmetic overflow.
78262         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
78263         a bit faster than strcpy.
78264
78265 2003-10-10  Simon Josefsson  <jas@extundo.com>
78266
78267         * modules/argp (Depends-on): Add restrict and strcase.
78268
78269 2003-10-10  Simon Josefsson  <jas@extundo.com>
78270
78271         * m4/argp.m4: Add AC_C_INLINE.
78272
78273 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78274
78275         Merge getpass from libc, plus a few fixes.
78276
78277         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
78278         Include <stdbool.h>.
78279         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
78280         __fsetlocking to empty.
78281         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
78282         do include <bits/libc-lock.h>.
78283         Do not include <fcntl.h>; not needed.
78284         [_LIBC]: Include <wchar.h>.
78285         (NOTCANCEL_MODE): New macro.
78286         (flockfile, funlockfile) [_LIBC]: New macros.
78287         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
78288         [!_LIBC]: New macros.
78289         (call_fclose): New function.
78290         (getpass): Use it.  Save tty stream separately; this simplifies the
78291         code and makes it more reliable if stdin happens to equal stdout.
78292         Invoke __fsetlocking on tty.
78293         Handle thread cancellation if needed.
78294         Namespace cleanup (use __tcgetattr, __getline).
78295         Use bool for Booleans.
78296         [USE_IN_LIBIO]: Handle wide streams.
78297         [!_LIBC]: Unconditionally do the fseek, since we don't know what
78298         stream might go where.
78299
78300         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
78301         doesn't have to include <stdio.h> before us.
78302         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
78303         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
78304         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
78305         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
78306         if not declared, so that we can use getpass.c code from libc without
78307         rewriting it.
78308         (flockfile, ftrylockfile, funlockfile): New macros.
78309
78310 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78311
78312         * modules/getpass: Depend on stdbool.
78313
78314 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78315
78316         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
78317
78318 2003-10-07  Karl Berry  <karl@gnu.org>
78319
78320         * config/config.{guess,sub}: update from config.
78321
78322 2003-10-06  Jim Meyering  <jim@meyering.net>
78323             Bruno Haible  <bruno@clisp.org>
78324
78325         This lets translators provide better translations for the
78326         "Written by ..." part of --version output.
78327         * lib/version-etc.h: Include stdarg.h.
78328         (version_etc_copyright): Declare as readonly.
78329         (version_etc): Make this function variadic with a NULL-terminated list
78330         of author name strings.
78331         (version_etc_va): New declaration.
78332         * lib/version-etc.c: Include stdarg.h, stdlib.h.
78333         (version_etc_copyright): Declare as readonly.
78334         (version_etc_va): New function. Provide a different translatable string
78335         for each possible number of authors < 10. Abbreviate when there are 10
78336         authors or more.
78337         (version_etc): Make this function variadic. Call version_etc_va.
78338         Suggestion from Gary V. Vaughan.
78339
78340         * lib/long-options.h (parse_long_options): Change prototype: the
78341         authors string is moved to the end and becomes variadic.
78342         * lib/long-options.c: Include stdarg.h.
78343         (parse_long_options): Make this function variadic, too.
78344         Call version_etc_va, not version_etc.
78345
78346 2003-10-06  Bruno Haible  <bruno@clisp.org>
78347
78348         * modules/version-etc-2: Remove file.
78349         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
78350
78351 2003-10-06  Bruno Haible  <bruno@clisp.org>
78352
78353         * modules/fatal-signal: New file.
78354         * MODULES.html.sh (func_all_modules): Add fatal-signal.
78355
78356 2003-10-06  Bruno Haible  <bruno@clisp.org>
78357
78358         * m4/fatal-signal.m4: New file.
78359         * m4/signalblocking.m4: New file, from GNU gettext.
78360
78361 2003-10-06  Bruno Haible  <bruno@clisp.org>
78362
78363         * lib/version-etc-2.h: Remove file.
78364         * lib/version-etc-2.c: Remove file.
78365
78366 2003-10-06  Bruno Haible  <bruno@clisp.org>
78367
78368         * lib/fatal-signal.h: New file, from GNU gettext.
78369         * lib/fatal-signal.c: New file, from GNU gettext.
78370
78371 2003-10-05  Paul Eggert  <eggert@twinsun.com>
78372
78373         * README: Rework advice for preventing empty .o files.
78374         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
78375         not <sys/types.h>.
78376
78377 2003-10-04  Karl Berry  <karl@gnu.org>
78378
78379         * lib/argp*: update from libc.
78380
78381 2003-10-04  Karl Berry  <karl@gnu.org>
78382
78383         * config/config.{guess,sub}: update from config.
78384
78385 2003-10-02  Bruno Haible  <bruno@clisp.org>
78386
78387         * modules/lchown (Include): Add lchown.h.
78388         * modules/time_r (Include): Use "..." syntax.
78389         * modules/xgetdomainname (Include): Add xgetdomainname.h.
78390
78391 2003-10-01  Simon Josefsson  <jas@extundo.com>
78392
78393         * MODULES.html.sh (func_all_modules): Move gethostname from section
78394         'based on' to section 'lacking' POSIX:2001.
78395
78396 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
78397
78398         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
78399         to output mode on the same stream.
78400
78401 2003-09-29  Paul Eggert  <eggert@twinsun.com>
78402
78403         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
78404         Fix arg typo in previous patch.
78405
78406 2003-09-28  Jim Meyering  <jim@meyering.net>
78407
78408         * lib/error.c: Correct cpp indentation.
78409
78410 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78411
78412         * modules/free: New file.
78413
78414 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78415
78416         * m4/free.m4: New file.
78417
78418 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78419
78420         * lib/minmax.h (MIN, MAX)
78421         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
78422         Omit the special code that used __typeof__, since we worry that
78423         it could be more trouble than it's worth.  See:
78424         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
78425         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
78426
78427         * lib/free.c: New file.
78428
78429 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
78430
78431         Trivial fixes to Makefile.am parts of module listings.
78432         * modules/strstr: Append strstr.h to lib_SOURCES.
78433         * modules/strcase: Likewise, for strcase.h.
78434
78435 2003-09-27  Karl Berry  <karl@gnu.org>
78436
78437         * config/mkinstalldirs: update from automake.
78438
78439 2003-09-26  Paul Eggert  <eggert@twinsun.com>
78440
78441         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
78442         (error_tail): Do not loop, reallocating temporary buffer, since
78443         the output cannot contain more wide characters than the input
78444         contains bytes, the size must be big enough already.  This avoids
78445         one potential size overflow calculation.  Check for size overflow
78446         when calculating temporary buffer size.  Free temporary buffer
78447         when done, if it was allocated with malloc; this plugs a memory
78448         leak.  Remove casts from void * to pointers, that are no longer
78449         needed now that we're assuming C89 or better.
78450
78451         Merge error changes from glibc.
78452
78453         * lib/error.c, error.h: Update copyright notice header to match glibc.
78454         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
78455         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
78456         Disable cancellation while printing error.
78457         * lib/error.h: Prepend __ to parameter names.
78458
78459 2003-09-26  Jim Meyering  <jim@meyering.net>
78460
78461         * lib/error.c (error_tail): Move some declarations
78462         into inner scope where the local variables are used.
78463
78464 2003-09-26  Bruno Haible  <bruno@clisp.org>
78465
78466         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
78467         stpncpy().
78468         Don't define stpncpy through config.h; it's now done through stpncpy.h.
78469
78470 2003-09-26  Bruno Haible  <bruno@clisp.org>
78471
78472         * lib/stpncpy.h (gnu_stpncpy): New declaration.
78473         (stpncpy): Define as alias for gnu_stpncpy.
78474         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
78475
78476 2003-09-25  Simon Josefsson  <jas@extundo.com>
78477
78478         * lib/xgetdomainname.h: New file.
78479         * lib/xgetdomainname.c: New file.
78480
78481 2003-09-25  Simon Josefsson  <jas@extundo.com>
78482             Bruno Haible  <bruno@clisp.org>
78483
78484         * modules/getdomainname: New file.
78485         * modules/xgetdomainname: New file.
78486         * MODULES.html.sh (func_all_modules): Add getdomainname,
78487         xgetdomainname.
78488
78489 2003-09-25  Simon Josefsson  <jas@extundo.com>
78490             Bruno Haible  <bruno@clisp.org>
78491
78492         * m4/getdomainname.m4: New file.
78493
78494 2003-09-25  Simon Josefsson  <jas@extundo.com>
78495             Bruno Haible  <bruno@clisp.org>
78496
78497         * lib/getdomainname.h: New file.
78498         * lib/getdomainname.c: New file.
78499
78500 2003-09-25  Karl Berry  <karl@gnu.org>
78501
78502         * lib/argp-fmtstream.c, argp-help.c: update from libc.
78503
78504 2003-09-25  Karl Berry  <karl@gnu.org>
78505
78506         * config/install-sh: update from automake.
78507
78508 2003-09-25  Bruno Haible  <bruno@clisp.org>
78509
78510         * modules/version-etc-2: New file, from modules/version-etc with
78511         modifications.
78512         * MODULES.html.sh (func_all_modules): Add version-etc-2.
78513
78514 2003-09-25  Bruno Haible  <bruno@clisp.org>
78515
78516         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
78517         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
78518
78519 2003-09-24  Simon Josefsson  <jas@extundo.com>
78520
78521         * modules/xgethostname: Add xgethostname.h.
78522
78523 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78524
78525         * lib/linebuffer.c (freebuffer): Don't free the argument, just
78526         the buffer associated with the argument.  Bug reported by
78527         Simon Josefsson.
78528
78529 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78530
78531         * README: Document assumptions that 'int' is at least 32 bits
78532         wide, that integer arithmetic is 2's complement without overflow,
78533         that there are no holes in integer values, that adding sizes of
78534         two nonoverlapping objects can't overflow, and that all-bits-zero
78535         yields scalar zero.  Fix spelling and capitalization typos.
78536
78537 2003-09-19  Karl Berry  <karl@gnu.org>
78538
78539         * lib/argp.h: update from libc.
78540
78541 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78542
78543         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
78544         to avoid spurious warnings like "AC_RUN_IFELSE was called before
78545         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
78546
78547 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78548
78549         * gnulib-tool: Use "test -h", not "test -L", for portability
78550         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
78551         (tags_regexp): Remove, since \| doesn't conform to POSIX.
78552         (sed_extract_prog): Issue s commands one-by-one, rather than
78553         using \| in one s command.
78554
78555 2003-09-16  Paul Eggert  <eggert@twinsun.com>
78556
78557         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
78558         input error, instead of returning NULL the next time we are called
78559         (and therefore losing track of errno).
78560
78561 2003-09-16  Bruno Haible  <bruno@clisp.org>
78562
78563         * gnulib-tool (func_create_testdir): Warn about duplicated
78564         dependencies.
78565
78566 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78567
78568         * modules/argmatch, modules/fatal, modules/obstack,
78569         modules/xalloc, modules/xgethostname: Sort dependencies by
78570         importance, not alphabetically.
78571
78572 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78573
78574         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
78575         fails, so that the caller gets the proper errno.
78576
78577         * lib/readutmp.c (read_utmp): Likewise.
78578         Check for fstat error.  Close stream and free storage
78579         when failing.
78580
78581 2003-09-14  Karl Berry  <karl@gnu.org>
78582
78583         * config/srclist.txt (strdup.c): disable for c89 changes.
78584
78585 2003-09-14  Jim Meyering  <jim@meyering.net>
78586
78587         * lib/getloadavg.c: Correct cpp indentation.
78588         * lib/strdup.c: Likewise.
78589         * lib/vasnprintf.c: Likewise.
78590
78591 2003-09-14  Bruno Haible  <bruno@clisp.org>
78592
78593         * modules/fwriteerror: New file.
78594         * MODULES.html.sh (func_all_modules): Add fwriteerror.
78595
78596 2003-09-14  Bruno Haible  <bruno@clisp.org>
78597
78598         * lib/fwriteerror.h: New file.
78599         * lib/fwriteerror.c: New file.
78600
78601 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78602
78603         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
78604         modules/xgethostname, modules/xalloc: Depend on exit.
78605
78606 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78607
78608         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
78609
78610         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
78611         and AC_MINIX, too, so that their extensions are available.
78612
78613         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
78614         This macro has been superseded by gl_BACKUPFILE.
78615
78616         More patches to assume C89 or better.
78617
78618         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
78619
78620         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
78621         unconditionally.
78622         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
78623         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
78624         Include <string.h>, <stdlib.h> unconditionally.
78625         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
78626         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
78627         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
78628         headers or for string.h.
78629         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
78630         or strtoul.
78631
78632         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
78633         headers.
78634         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
78635         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78636         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
78637         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
78638         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78639         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
78640         memcpy, memset.
78641         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
78642         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
78643         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
78644         strtol.
78645         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
78646         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
78647         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
78648         strtoul.
78649
78650 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78651
78652         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
78653         * lib/obstack.c [!defined _LIBC]: Likewise.
78654         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
78655         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
78656         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
78657
78658         More changes to assume C89 or better.
78659
78660         * lib/error.c (error_tail): Assume vprintf.
78661
78662         * lib/argmatch.c (getenv): Remove decl.
78663         * lib/progreloc.c (get_full_program_name): Define via prototype.
78664         * lib/setenv.c (clearenv): Likewise.
78665         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
78666         needed.
78667         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
78668         (malloc, memcpy): Remove decls.
78669         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
78670         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
78671         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78672         (memcpy): Remove macro.
78673         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
78674         (__P): Remove.  All uses removed.
78675         (PTR): Remove.  All uses changed to void *.
78676         (CHAR_BIT, NULL): Remove.
78677         (spaces, zeros, memset_space, memset_zero)
78678         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
78679         Remove.
78680         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
78681         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
78682         Define with prototype.
78683         Remove now-unnecessary prototype decl.
78684         (extra_args_spec): Assume ANSI C.  All uses changed.
78685         (extra_args_spec_iso): Remove.
78686         (my_strftime, emacs_strftimeu): Define via prototype.
78687         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
78688         unconditionally.
78689         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
78690         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
78691         (strtoul, strtol): Remove decls.
78692         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
78693         LONG_MAX): Remove.
78694         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78695         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
78696         (LOCALE_PARAM_PROTO): New macro.
78697         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
78698         (INTERNAL (strtol), strtol): Define with a prototype.
78699         (PARAMS): Remove.  All uses removed.
78700         * lib/tempname.c: Include <string.h> unconditionally.
78701         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
78702         * lib/xgethostname.c (main): Define with a prototype.
78703         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
78704         Include <stdlib.h> unconditionally.
78705         (calloc, malloc, realloc, free): Remove decls.
78706         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
78707         Include <stdlib.h> unconditionally.  Sort include file names.
78708         (strtod): Remove.
78709         (xstrtod): Define with a prototype.
78710         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
78711         (strtol, strtoul): Remove decls.
78712
78713 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78714
78715         More patches to assume C89 or better.
78716         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
78717         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
78718         string.h, memchr, STDC_HEADERS.
78719
78720 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78721
78722         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
78723         Include <stdlib.h>, <string.h> unconditionally.
78724         Remove now-unnecessary cast to char *.
78725         * lib/strnlen.c: Include <string.h> unconditionally.
78726         * lib/yesno.c (yesno): Define with a prototype.
78727
78728 2003-09-11  Bruno Haible  <bruno@clisp.org>
78729
78730         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
78731
78732 2003-09-10  Jim Meyering  <jim@meyering.net>
78733
78734         * lib/error.c: Correct indentation of cpp directives.
78735
78736 2003-09-10  Bruno Haible  <bruno@clisp.org>
78737
78738         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
78739         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
78740         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
78741         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
78742         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
78743         <stdlib.h> and <string.h> checks.
78744         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
78745         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
78746
78747 2003-09-10  Bruno Haible  <bruno@clisp.org>
78748
78749         * lib/strcspn.c: Include <string.h> unconditionally.
78750         * lib/strpbrk.c: Include <string.h> unconditionally.
78751         * lib/strstr.c: Include <string.h> unconditionally.
78752         * lib/unicodeio.c: Include <string.h> unconditionally.
78753         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
78754         * lib/unsetenv.c: Likewise.
78755         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
78756         * lib/yesno.c: Include <stdlib.h> unconditionally.
78757         (rpmatch): Add prototype.
78758
78759 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78760
78761         More patches to assume C89 or better.
78762         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
78763         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
78764         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
78765         or for string.h.
78766         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
78767         stdlib.h.
78768         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
78769         C headers.
78770         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
78771         string.h.
78772         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
78773         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
78774         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
78775         or for string.h.
78776         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
78777         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
78778         C headers.
78779         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
78780         memcpy.
78781         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
78782         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
78783         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
78784         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
78785         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
78786         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
78787         string.h, free.
78788         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
78789         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
78790         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
78791         C headers, or for string.h.
78792         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
78793         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
78794         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
78795         headers, memory.h, stdlib.h, string.h, strings.h.
78796         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
78797         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
78798         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
78799         strchr.
78800         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
78801         headers, memory.h, string.h.
78802         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
78803         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
78804         free.
78805         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
78806         headers.
78807         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
78808         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
78809         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
78810         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
78811         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
78812
78813 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78814
78815         More K&R removal.
78816
78817         * lib/acosl.c (main): Use a prototype.
78818         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
78819         tanl.c: Likewise.
78820
78821         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
78822
78823         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
78824         (getopt, etopt_long, getopt_long_only, _getopt_internal)
78825         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
78826         with a prototype.
78827         * lib/getopt.c (const): Remove macro.
78828         Include <string.h> unconditionally.
78829         (my_index): Remove; all uses changed to strchr.
78830         (strlen): Remove decl.
78831         (exchange): Remove forward decl; no longer needed.
78832         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
78833         Define with prototype.
78834         * lib/getopt1.c (const): Remove macro.
78835         (getopt_long, getopt_long_only, main): Define with prototype.
78836
78837         * lib/getugroups.c: Include <string.h> unconditionally.
78838
78839         * lib/getusershell.c: Include <stdlib.h> unconditionally.
78840         (getusershell, setusershell, endusershell, readname, main):
78841         Define with prototypes.
78842
78843         * lib/group-member.c: Include group-member.h first.
78844         Include <stdlib.h> unconditionally.
78845
78846         * lib/hard-locale.c: Include hard-locale.h first.
78847         Include <stdlib.h>, <string.h> unconditionally.
78848
78849         * lib/hash.c (free, malloc): Remove decls.
78850         Include <stdlib.h> unconditionally.
78851
78852         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
78853         (getenv): Do not declare.
78854
78855         * lib/idcache.c: Include <string.h> unconditionally.
78856
78857         * lib/long-options.c: Include long-options.h first, to test interface.
78858         Include <stdlib.h> unconditionally.
78859
78860         * lib/makepath.c: Include makepath.h first, to test interface.
78861         Include <stdlib.h> and <string.h> unconditionally.
78862
78863         * lib/linebuffer.c: Include <stdlib.h>.
78864         (free): Remove decl.
78865
78866         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
78867         stddef.h. rpl_malloc returns void *, not char *.
78868         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
78869         prototype.
78870
78871         * lib/md5.h: Include <limits.h> unconditionally.
78872         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
78873         (__P): Remove; all uses removed.
78874         * lib/md5.c: Include "md5.h" first.
78875         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
78876         md5_buffer, md5_process_bytes, md5_process_block):
78877         Define with prototypes.
78878         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
78879         * lib/sha.c: Include "sha.h" first.
78880         Include <stdlib.h>, <string.h> unconditionally.
78881
78882         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
78883         * lib/memcmp.c (__ptr_t): Likewise.
78884         * lib/memrchr.c (__ptr_t): Likewise.
78885         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
78886         Include <string.h> unconditionally.
78887         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
78888         * lib/memchr.c: Include <stdlib.h> unconditionally.
78889         * lib/memchr.c (LONG_MAX): Remove.
78890         * lib/memrchr.c (LONG_MAX): Likewise.
78891         * lib/memchr.c (__memchr): Define via a prototype.
78892         * lib/memrchr.c (__memrchr): Likewise.
78893         * lib/memcmp.c (__P): Remove, and remove all uses.
78894         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
78895         Remove forward decls; no longer needed.
78896         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
78897         Use types required by C89 in prototype.
78898
78899         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
78900         * lib/savedir.c: Likewise.
78901         * lib/mkdir.c (free): Remove decl.
78902         * lib/rmdir.c (rmdir): Define with a prototype.
78903         * lib/savedir.c: Include savedir.h first, to test interface.
78904
78905         * lib/mktime.c (STDC_HEADERS): Remove.
78906         Include <stdlib.h>, <string.h> unconditionally.
78907
78908         * lib/modechange.c: Include <stdlib.h> unconditionally.
78909         (malloc): Remove decl.
78910
78911         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78912         (free): Remove decl.
78913
78914         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78915         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78916         (This type really should be intptr_t, but that's a C99ism.)
78917         (_obstack_memcpy): Remove: all uses changed to memcpy.
78918         Include <string.h> unconditionally.
78919         (struct obstack): Assume __STDC__ for types of members
78920         chunkfun, freefun, extra_arg.
78921         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78922         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78923         obstack_begin, obstack_specify_allocation,
78924         obstack_specify_allocation_with_arg, obstack_chunkfun,
78925         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78926         Remove unprototyped decls and the macros that use them.
78927         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78928         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78929         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78930         (defined __STDC__ && __STDC__)]:
78931         Remove nonprototyped code.
78932         Include <stdlib.h> unconditionally.
78933         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78934         _obstack_allocated_p, _obstack_free, obstack_free,
78935         _obstack_memory_used, print_and_abort):
78936         Define using prototypes.
78937         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78938         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78939         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78940         obstack_next_free, obstack_object_size, obstack_room) [0]:
78941         Remove unused, unprototyped code.
78942
78943         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78944
78945         * lib/physmem.c (physmem_total, physmem_available, main): Define
78946         with prototypes.
78947
78948         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78949         (main): Define with a prototype.
78950
78951         * lib/posixver.c (getenv): Remove decl.
78952
78953         * lib/putenv.c (malloc): Returns void *, not char *.
78954         Include <string.h> unconditionally.
78955         (strchr, memcpy, NULL): Do not define.
78956
78957         * lib/readtokens.c: Include readtokens.h first, to test interface.
78958         Include <stdlib.h>, <string.h> unconditionally.
78959         (init_tokenbuffer): Define with a prototype.
78960
78961         * lib/regex.c (PARAMS): Remove.  All uses removed.
78962         All uses of _RE_ARGS removed, too.
78963         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78964         unconditionally.
78965         (bzero): Assume memset exists.
78966         (memcmp, memcpy, NULL): Remove.
78967         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78968         char, or assignments to local vars of type signed char.
78969         (init_syntax_once, PREFIX(extract_number_and_incr),
78970         PREFIX(print_partial_compiled_pattern),
78971         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78972         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78973         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78974         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78975         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78976         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78977         wcs_compile_range, byte_compile_range, truncate_wchar,
78978         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78979         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78980         count_mbs_length, wcs_re_match_2_internal,
78981         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78982         PREFIX(alt_match_null_string_p),
78983         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78984         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78985         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78986         now-unnecessary declaration, if any.
78987         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78988         regcomp, regexec):
78989         Remove now-unnecessary casts among pointer types.
78990         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78991
78992         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78993         (free): Remove decl.
78994
78995         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78996
78997         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78998         (free): Remove decl.
78999
79000         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
79001         * lib/xgetcwd.c: Likewise.
79002
79003         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
79004         (free): Remove decl.
79005
79006         * lib/strchrnul.c (strchrnul): Define with a prototype.
79007         Fix bug: c_in was not converted to char before searching.
79008
79009         The following changes are not K&R related:
79010
79011         * lib/group-member.h: Include <sys/types.h>, so that this file is
79012         self-contained.
79013         * lib/makepath.h: Likewise.
79014
79015         * lib/getusershell.c (readname, default_index, line_size, readname):
79016         Use size_t, not int, for sizes.
79017         (readname): If the size overflows, report an error instead of
79018         looping forever.
79019
79020 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79021
79022         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
79023         libc.
79024
79025 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79026
79027         * README: New section: portability guidelines.
79028
79029 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79030
79031         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
79032         C89 spec.
79033
79034 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79035
79036         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
79037
79038 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79039
79040         Assume C89 or better; remove K&R cruft.
79041         A few of these changes were first proposed by Derek Robert Price
79042         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
79043
79044         * lib/addext.c: Include <string.h> unconditionally.
79045         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
79046         Don't declare getenv or malloc.
79047
79048         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
79049         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
79050         (NULL): Remove.
79051         (find_stack_direction, alloca): Use prototypes.
79052
79053         * lib/atexit.c (atexit): Define using a prototype.
79054
79055         * lib/basename.c, dirname.c, stripslash.c:
79056         Include <string.h> unconditionally.
79057
79058         * lib/bcopy.c: Include <stddef.h>.
79059         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
79060
79061         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
79062
79063         * lib/error.h (error, error_at_line, error_print_progname)
79064         [! (defined (__STDC__) && __STDC__)]: Remove decls.
79065         * lib/error.c: Include error.h first, to check interface.
79066         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79067         (VA_START): Remove; all uses changeed to va_start.
79068         (exit, strerror): Remove decls.
79069         (error_print_progname): Prototype uncondionally.
79070         Don't include <errno.h>; no longer needed.
79071         (private_strerror): Remove.
79072         (error_tail): Always define.
79073         (error, error_at_line): Assume C89 or better; always use prototypes.
79074         * lib/fatal.c: Include "fatal.h" first, to test interface.
79075         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79076         (VA_START): Remove; all uses changed to va_start.
79077         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
79078         this case.
79079         (exit): Remove decl.
79080         (fatal): Prototype unconditionally.  Assume va_start works.
79081         Abort at end, to pacify gcc.
79082
79083         * lib/euidaccess.c (main): Define with a prototype.
79084
79085         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
79086
79087         * lib/exitfail.c: Include <stdlib.h> unconditionally.
79088
79089         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
79090         prototypes.
79091         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
79092         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
79093         (getenv): Remove decl.
79094         (fnmatch): Define using a prototype.
79095         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
79096         (FCT): Define using a prototype.
79097
79098         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
79099
79100         * lib/gethostname.c: Include <stddef.h>.
79101         (gethostname): Define with prototype.  Length is size_t, not int.
79102
79103 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79104
79105         Assume C89 or better; remove K&R cruft.
79106         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
79107         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
79108         string.h, getenv, malloc.
79109         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
79110         headers.
79111         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
79112         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
79113         do not check for strerror.
79114         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
79115         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
79116         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
79117         do not check for doprnt or vprintf.
79118         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
79119         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
79120
79121 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79122
79123         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
79124         getversion.c should have been removed then, but was accidentally
79125         preserved.
79126
79127         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
79128         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
79129
79130 2003-09-08  Karl Berry  <karl@gnu.org>
79131
79132         * config/config.sub, config.guess, srclistvars.sh: update from savannah
79133                 config, forget about prep.
79134
79135         * config/depcomp, missing: update from automake.
79136
79137 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79138
79139         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
79140         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79141
79142 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79143
79144         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
79145         copy_tm_result.  Bug reported by Simon Josefsson in
79146         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79147
79148 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79149
79150         * m4/time_r.m4: New file.
79151         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
79152         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
79153         is. Check for timegm declaration.
79154         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
79155         Do not check for gmtime_r.
79156         Replace mktime if __mktime_internal does not exist and if mktime
79157         hasn't been replaced already.
79158
79159 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79160
79161         * lib/time_r.c, lib/time_r.h: New files.
79162
79163         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
79164         __localtime_r.
79165         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
79166         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
79167
79168         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
79169         __gmtime_r.
79170         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
79171         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
79172         Include <time_r.h>.
79173
79174         * lib/timegm.c: Switch to glibc implementation, with the following
79175         changes:
79176         [defined HAVE_CONFIG_H]: Include <config.h>.
79177         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
79178         (__mktime_internal) [!defined _LIBC]: New decl.
79179         (__gmtime_r) [!defined _LIBC]: New macro and function.
79180         (timegm): Use a prototype, since gnulib assumes C89.
79181         Do not bother declaring tmp to be const, as it's not really usefu.
79182         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
79183         (timegm): Declare only if HAVE_DECL_TIMEGM.
79184
79185 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79186
79187         * MODULES.html.sh (func_all_modules): Add time_r.
79188         * modules/time_r: New file.
79189         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
79190         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
79191
79192 2003-09-03  Paul Eggert  <eggert@twinsun.com>
79193
79194         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
79195         Bug reported by Lute Kamstra in
79196         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
79197
79198         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
79199         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
79200         course with correspondingly smaller numbers for tomorrow and
79201         yesterday.  From Tadayoshi Funaba.  Originally installed into
79202         sh-utils on 1999-08-07, but the patch got lost (I guess during the
79203         coreutils merge?).
79204
79205 2003-08-31  Simon Josefsson  <jas@extundo.com>
79206
79207         * modules/timegm: New file.
79208         * MODULES.html.sh (func_all_modules): Add timegm.
79209
79210 2003-08-31  Simon Josefsson  <jas@extundo.com>
79211
79212         * m4/timegm.m4: New file.
79213
79214 2003-08-31  Simon Josefsson  <jas@extundo.com>
79215
79216         * lib/timegm.h: New file.
79217         * lib/timegm.c: New file.  Based on
79218         wget-1.8.2/src/http.c:mktime_from_utc.
79219
79220 2003-08-31  Karl Berry  <karl@gnu.org>
79221
79222         * lib/argp.h: update from libc.
79223
79224 2003-08-28  Bruno Haible  <bruno@clisp.org>
79225
79226         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
79227         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
79228         followed by '#define fnmatch fnmatch_posix' gives an error.
79229
79230 2003-08-28  Bruno Haible  <bruno@clisp.org>
79231
79232         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
79233         warning on QNX, which defines O_BINARY to 000000.
79234
79235 2003-08-27  Jim Meyering  <jim@meyering.net>
79236
79237         * m4/mkstemp.m4: Require that the system mkstemp be able to create
79238         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
79239         would fail after 32.  Reported by Danny Levinson.  Details here:
79240         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
79241
79242 2003-08-24  Bruno Haible  <bruno@clisp.org>
79243
79244         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
79245         MSVC7 <stdio.h> is included later.
79246
79247 2003-08-22  Simon Josefsson  <jas@extundo.com>
79248
79249         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
79250
79251 2003-08-20  Karl Berry  <karl@gnu.org>
79252
79253         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
79254
79255 2003-08-20  Bruno Haible  <bruno@clisp.org>
79256
79257         * modules/progname: New file.
79258         * MODULES.html.sh (func_all_modules): Add progname.
79259
79260 2003-08-20  Bruno Haible  <bruno@clisp.org>
79261
79262         * lib/progname.h: New file, from GNU gettext.
79263         * lib/progname.c: New file, from GNU gettext.
79264         * lib/progreloc.c: New file, from GNU gettext.
79265
79266 2003-08-19  Jim Meyering  <jim@meyering.net>
79267
79268         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
79269         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
79270
79271 2003-08-19  Bruno Haible  <bruno@clisp.org>
79272
79273         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
79274         more.
79275
79276 2003-08-19  Bruno Haible  <bruno@clisp.org>
79277
79278         * lib/xstrdup.c: Assume <string.h> exists.
79279
79280 2003-08-18  Paul Eggert  <eggert@twinsun.com>
79281
79282         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
79283         in makefile rules.
79284
79285 2003-08-18  Jim Meyering  <jim@meyering.net>
79286
79287         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
79288         * m4/lib-ld.m4: Likewise.
79289
79290 2003-08-18  Jim Meyering  <jim@meyering.net>
79291
79292         * lib/setenv.h: Indent nested cpp directive.
79293         * lib/vasnprintf.c: Remove trailing blanks.
79294
79295 2003-08-17  Simon Josefsson  <jas@extundo.com>
79296
79297         * modules/xstrndup: New file.
79298         * MODULES.html.sh (func_all_modules): Add xstrndup.
79299
79300 2003-08-17  Simon Josefsson  <jas@extundo.com>
79301
79302         * modules/argp: Fix autoconf macro name. Add more dependencies.
79303
79304 2003-08-17  Simon Josefsson  <jas@extundo.com>
79305
79306         * m4/xstrndup.m4: New file.
79307
79308 2003-08-17  Simon Josefsson  <jas@extundo.com>
79309
79310         * m4/argp.m4: New file.
79311
79312 2003-08-17  Simon Josefsson  <jas@extundo.com>
79313             Bruno Haible  <bruno@clisp.org>
79314
79315         * lib/xstrndup.h: New file.
79316         * lib/xstrndup.c: New file.
79317
79318 2003-08-17  Bruno Haible  <bruno@clisp.org>
79319
79320         * modules/strndup (Files, Include): Add lib/strndup.h.
79321
79322 2003-08-17  Bruno Haible  <bruno@clisp.org>
79323
79324         * modules/euidaccess (Files): Add lib/euidaccess.h.
79325
79326 2003-08-17  Bruno Haible  <bruno@clisp.org>
79327
79328         * lib/strndup.h: New file.
79329
79330 2003-08-17  Bruno Haible  <bruno@clisp.org>
79331
79332         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
79333         like AC_GNU_SOURCE.
79334         * modules/extensions (configure.ac): Comment out the invocation of
79335         gl_USE_SYSTEM_EXTENSIONS.
79336
79337 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79338
79339         Merges from coreutils, etc.
79340         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
79341         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
79342         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
79343         fixing a typo.
79344         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
79345         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
79346
79347 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79348
79349         Document merge from coreutils.
79350         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
79351         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
79352         * modules/utime: Add m4/utimes-null.m4.
79353
79354 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79355
79356         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
79357         space, undoing this 2003-08-12 change:
79358         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79359
79360 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79361
79362         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
79363         strtoul.c from libc, undoing this 2003-08-12 change:
79364         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79365
79366 2003-08-16  Jim Meyering  <jim@meyering.net>
79367
79368         Merges from coreutils.
79369         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
79370         prefix.  Adjust cache variables similarly.  Create 500 rather than
79371         just 300 files, to exercise bug on Darwin6.5, too.
79372         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
79373         $missing_dir.
79374         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
79375         AM_SYS_POSIX_TERMIOS.
79376         Reported by mkc@mathdogs.com.
79377         Also change use of $am_cv_sys_posix_termios
79378         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
79379         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
79380         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
79381         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
79382         in /proc/mounts until it finds one with matching device number.  This
79383         is unnecessary when the FILE argument *is* a mount point.  No stat call
79384         is necessary in that case.  So, disable the statvfs-testing code on
79385         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
79386         as RedHat bug# 84846.
79387         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79388         to 1MB, so as not to render systems with no stack size limit (e.g.,
79389         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79390         Include <unistd.h>.  On some systems,
79391         it is required for the definition of _SC_PAGESIZE.
79392
79393 2003-08-16  Jim Meyering  <jim@meyering.net>
79394
79395         Merge from coreutils.
79396         * lib/xstrtoimax.c: #else #if -> #elif.
79397         * lib/xstrtoumax.c: Likewise.
79398
79399 2003-08-16  Jim Meyering  <jim@meyering.net>
79400
79401         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
79402         * m4/utimes.m4: Removed.
79403         * m4/utimes-null.m4: Renamed from utimes.m4.
79404
79405         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79406         to 1MB, so as not to render systems with no stack size limit (e.g.,
79407         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79408         Include <unistd.h>.  On some systems,
79409         it is required for the definition of _SC_PAGESIZE.
79410
79411 2003-08-16  Jim Meyering  <jim@meyering.net>
79412         and Paul Eggert  <eggert@cs.ucla.edu>
79413
79414         Merges from coreutils, etc.
79415
79416         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
79417         using the latest version from cvs.  This avoids problems with #line
79418         directives using a vendor (Sun) compiler.
79419         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
79420         Don't set GETGROUPS_LIB here; now it's
79421         done via getgroups.m4's wrapper function.
79422         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
79423         rather than just in sh-util/configure.in, so that the
79424         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
79425         same.
79426         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
79427         AC_FUNC_GETLOADAVG where to find getloadavg.c.
79428         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
79429         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
79430         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
79431         Remove code that is now done by the newly-required macros.
79432         Append $(EXEEXT) to DF_PROG.
79433         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
79434         Do not invoke or require the following here,
79435         since prereq.m4 or some gnulib .m4 now does this for us:
79436         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
79437         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
79438         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
79439         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
79440         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
79441         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
79442         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
79443         AC_FUNC_OBSTACK.
79444         Do not replace the following functions, as this is now the job
79445         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
79446         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
79447         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
79448         atexit getpass, strdup, getpagesize.
79449         Replace 'raise'.
79450         Do not check for the following functions, as this is now the job
79451         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
79452         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
79453         setregid.
79454         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
79455         Check for sys/sysctl.h.
79456         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
79457         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
79458         of checking for ssize_t ourselves.
79459
79460         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
79461         Require every macro that gnulib/modules/* suggests for us.
79462         (jm_PREREQ_ADDEXT): New macro.
79463         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
79464         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
79465
79466         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
79467         (gl_PHYSMEM): Use it.
79468         Also check for `table' function.
79469         Check for new headers and functions.
79470         Add check for sys/sysmp.h.
79471         With suggestions from Kaveh Ghazi.
79472         Ignore headers that are present but cannot be compiled.  This
79473         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
79474         C 5.4.
79475
79476 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79477
79478         Document merge from coreutils.
79479         * modules/userspec: Depend on posixver.
79480         * modules/strftime: Depend on tzset.
79481
79482 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79483
79484         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
79485         rather than tab, after '#' in shell-script copyright notices.
79486         Suggested by Bruno Haible.
79487
79488 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79489
79490         * config/srclist-update: Use three spaces, rather than tab, after '#'
79491         in shell-script copyright notices.  Suggested by Bruno Haible.
79492         Remove unnecessary parenthesization in regular expression.
79493
79494 2003-08-15  Jim Meyering  <jim@meyering.net>
79495
79496         Merge from coreutils.
79497         * lib/xgethostname.c: Include <stdlib.h>.
79498         (xghostname): Don't exit for anything other than memory-related
79499         failure; just return NULL.
79500         * lib/userspec.c: Include "posixver.h".
79501         (parse_user_spec): Accept `.' as a separator only
79502         in pre-POSIX-200112 mode.
79503         * lib/strtoimax.c: Use #elif rather than #else #if.
79504         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
79505         Remove function, now that we can rely on a working tzset function.
79506         [!_LIBC]: Ensure that the required autoconf test has been run.
79507         [!defined _NL_CURRENT && HAVE_STRFTIME]:
79508         Use underlying_strftime for %r.
79509         * lib/sha.c: Merge in some clean-up and optimization changes from
79510         glibc.
79511         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
79512         Ensure that it is a multiple of 64.
79513         Rearrange loop exit tests so as to avoid performing an
79514         additional fread after encountering an error or EOF.
79515         * lib/realloc.c: Update copyright date.
79516
79517 2003-08-15  Jim Meyering  <jim@meyering.net>
79518         and Paul Eggert  <eggert@twinsun.com>
79519
79520         Merge from coreutils.
79521         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
79522         member but strut utmpx does not.  Needed for AIX 4.3.3.
79523         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
79524
79525 2003-08-15  Jim Meyering  <jim@meyering.net>
79526         and Paul Eggert  <eggert@cs.ucla.edu>
79527
79528         Merges from coreutils, etc.
79529         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
79530         Require gl_FUNC_TZSET_CLOBBER.
79531         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
79532         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
79533         members.
79534
79535 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79536
79537         Help the merge from coreutils.
79538         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
79539         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
79540         * m4/tzset.m4: Use it too.
79541
79542 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79543
79544         * modules/tzset: New file.
79545
79546 2003-08-14  Jim Meyering  <jim@meyering.net>
79547
79548         Merges from coreutils.
79549         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
79550         variable names, rather than @FNMATCH_H@.
79551         * modules/alloca: Likewise for $(ALLOCA_H).
79552
79553         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
79554         the three copies of the literal target, `fnmatch.h'.
79555         * modules/alloca (alloca.h): Likewise.
79556
79557 2003-08-14  Jim Meyering  <jim@meyering.net>
79558
79559         Merge from coreutils.
79560         * m4/tzset.m4: New file.
79561         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
79562         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
79563         otherwise, AIX 5.1 systems would end up using the latter.
79564         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
79565         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
79566         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
79567         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
79568
79569 2003-08-14  Jim Meyering  <jim@meyering.net>
79570
79571         Merge from coreutils.
79572         * lib/obstack.h: Whitespace changes.
79573         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
79574         and xcalloc return values.
79575         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
79576         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
79577         hang on OSF/1 5.1 for DIR on both local and remote file systems.
79578         Reported by (and fix confirmed by) Nelson H. F. Beebe.
79579         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79580         error from mntctl.
79581         Use mntctl's return value to drive the entry-processing loop, since
79582         we can't rely on the value of the vmt_length member in the last
79583         entry.  On some systems doing so could result in exhausting
79584         virtual memory.  Based in part on a patch from Mike Jetzer.
79585
79586 2003-08-14  Jim Meyering  <jim@meyering.net>
79587         and Paul Eggert  <eggert@twinsun.com>
79588
79589         Merges from coreutils, plus other fixes.
79590         * lib/physmem.c: Merge in portability changes from gcc/libiberty
79591         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
79592         for credits and details.  Thanks to Kaveh Ghazi for helping
79593         to keep these files in sync.
79594         (ARRAY_SIZE): Define it.
79595         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
79596         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
79597         (memcasecmp): Don't assume size_t fits in unsigned int.
79598         Remove casts and duplicate code.
79599         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
79600         (memcpy): Remove definition.
79601         Merge in some clean-up and optimization changes from glibc.
79602         [BLOCKSIZE]: Move definition to top of file.
79603         Ensure that it is a multiple of 64.
79604         Rearrange loop exit tests so as to avoid performing an
79605         additional fread after encountering an error or EOF.
79606         * lib/md5.h (md5_uintptr): Define.
79607         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
79608         return to the initial working directory.  Preserve errno
79609         for caller.
79610         * lib/idcache.c: Include "xalloc.h".
79611         (xmalloc, xrealloc): Remove decls.
79612         (getuser): Remove casts no longer required in C89.
79613         * lib/human.c: Include stdio.h, for sprintf.
79614         * lib/group-member.c: Include "xalloc.h".
79615         (xmalloc, xrealloc): Remove decls.
79616         (get_group_info): Remove casts no longer required in C89.
79617         * lib/getusershell.c (readname): Remove casts no longer required in
79618         C89.
79619         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
79620         * lib/getline.c: Whitespace fix, from coreutils.
79621
79622 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79623
79624         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
79625         Check for isascii.
79626
79627         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79628         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79629         Undo previous (whitespace-only) change.
79630
79631 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79632
79633         * lib/exclude.c: Include <ctype.h>
79634         (IN_CTYPE_DOMAIN): New macro.
79635         (is_space): New fn.
79636         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
79637         and empty lines.
79638
79639         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79640         Undo previous (whitespace-only) change.
79641
79642 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79643
79644         * config/srclist-update: Change update back to the old behavior,
79645         leaving whitespace alone.  Use one 'sed' command rather than a
79646         pipeline.
79647         (fixlicense): Now a variable, not a function.
79648         (remove_trailing_blanks): Remove.
79649         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
79650         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79651         Undo previous (whitespace-only) change.
79652
79653 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79654
79655         Merge from coreutils.
79656         * modules/euidaccess: Add lib_SOURCES, include for new
79657         file euidaccess.h
79658
79659 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79660
79661         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79662         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79663         Normalize leading white space and remove trailing white space.
79664
79665         Merge from coreutils
79666         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
79667
79668         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
79669         0.12.1.  These files are now being upgraded automatically by
79670         ../config/srclist-update.
79671
79672 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79673
79674         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79675         Normalize leading white space and remove trailing white space.
79676         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
79677         notice, as per ../config/srclist-update.
79678
79679         Merge from coreutils.
79680         * lib/euidaccess.h: New file.
79681         * lib/euidaccess.c: Include it.
79682         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
79683         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
79684         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
79685
79686 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79687
79688         * config/srclist-update: Add copyright notice.
79689         (remove_id_lines, remove_trailing_blanks): New constants.
79690         (fixfile): Use them to normalize spacing a bit in copied files.
79691         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79692         Normalize leading white space and remove trailing white space.
79693
79694         * config/texinfo.tex: Sync with texinfo.
79695
79696         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
79697         strtoul.c from libc, to merge coreutils whitespace changes.
79698
79699         * config/srclist.txt: Get the following m4 files from gettext:
79700         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
79701         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
79702         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
79703         wint_t.m4.
79704
79705 2003-08-12  Karl Berry  <karl@gnu.org>
79706
79707         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
79708         been made.
79709
79710 2003-08-11  Paul Eggert  <eggert@twinsun.com>
79711
79712         * modules/gnu-source, m4/gnu-source.m4:
79713         Remove; we're assuming Autoconf 2.54 or later now.
79714         Suggested by Bruno Haible.
79715         * MODULES.html.sh (func_all_modules): Remove gnu-source.
79716
79717 2003-08-11  Bruno Haible  <bruno@clisp.org>
79718
79719         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
79720
79721 2003-08-11  Bruno Haible  <bruno@clisp.org>
79722
79723         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
79724         (vasnprintf): Use it instead of wcslen.
79725
79726 2003-08-11  Bruno Haible  <bruno@clisp.org>
79727
79728         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
79729         value to ensure that _Bool promotes to int. Use #define for _Bool when
79730         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
79731
79732 2003-08-10  Karl Berry  <karl@gnu.org>
79733
79734         * lib/regex.h: update from libc (whitespace fix).
79735
79736 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79737
79738         Merge some files from coreutils.  These changes were
79739         originally made by Jim Meyering.
79740         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
79741         many older Unixes require this.
79742         * lib/alloca.c (alloca): Remove cast to argument of free;
79743         no longer needed in C89.
79744         * lib/alloca_.h, regex.h: Fix white space to match
79745         what GNU indent does.
79746
79747 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79748
79749         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
79750         apparently Emacs's Unicode mode got confused before my 2003-08-05
79751         checkin.
79752
79753 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79754
79755         * m4/extensions.m4: New file.
79756         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
79757         Require gl_USE_SYSTEM_EXTENSIONS.
79758         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
79759         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
79760
79761 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79762
79763         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
79764         * modules/extensions, modules/gnu-source: New files.
79765         * modules/timespec, modules/unlocked-io: Depend on extensions.
79766
79767 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79768
79769         * modules/restrict: New file.
79770         * MODULES.html.sh (func_all_modules): Add restrict.
79771         * modules/regex: Depend on restrict.
79772
79773 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79774
79775         * m4/restrict.m4: New file.
79776         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
79777
79778 2003-08-07  Bruno Haible  <bruno@clisp.org>
79779
79780         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
79781         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
79782
79783 2003-08-07  Bruno Haible  <bruno@clisp.org>
79784
79785         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
79786         makes the module 'getndelim2' compatible with the module 'getline'.
79787
79788 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79789
79790         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
79791         byte with "\201" to avoid glitches when editing that source file
79792         with multi-gnome-terminal.
79793
79794 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79795
79796         * lib/bumpalloc.h: Remove.
79797
79798 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79799
79800         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
79801         * modules/bumpalloc: Remove.
79802
79803 2003-08-04  Paul Eggert  <eggert@twinsun.com>
79804
79805         * lib/getloadavg.c: Change copyright notice and spacing to conform to
79806         GNU coding style.
79807
79808         Merge from coreutils.
79809         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
79810         1. From glibc.
79811         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
79812         from Karl Berry, implemented by Jim Meyering.
79813         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
79814         from Dmitry V. Levin.
79815         Remove anachronistic cast of xrealloc.
79816         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
79817         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
79818         type. Otherwise, it wouldn't compile with at least /bin/cc on
79819         ymp-cray-unicos9.0.2.X.
79820         Combine two mostly-identical uses of alloca into one.
79821         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
79822
79823 2003-08-04  Dave Love  <d.love@dl.ac.uk>
79824
79825         [From Emacs.]
79826
79827         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
79828         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
79829         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
79830         obsolete NLIST_NAME_UNION.
79831         [__GNU__]: Undef BSD and FSCALE.
79832         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
79833
79834 2003-08-03  Paul Eggert  <eggert@twinsun.com>
79835
79836         * lib/stdbool_.h (_Bool): Make it signed char, instead of
79837         an enum type, so that it's guaranteed to promote to int.  See:
79838         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
79839
79840 2003-08-03  Karl Berry  <karl@gnu.org>
79841
79842         * config/depcomp: update from automake.
79843
79844 2003-07-31  Paul Eggert  <eggert@twinsun.com>
79845
79846         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
79847         (strerror): Don't assume that a printable int fits in 14 bytes.
79848
79849 2003-07-31  Bruno Haible  <bruno@clisp.org>
79850
79851         * modules/getpass-gnu: New file.
79852         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
79853
79854 2003-07-31  Bruno Haible  <bruno@clisp.org>
79855
79856         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
79857
79858 2003-07-24  Karl Berry  <karl@gnu.org>
79859
79860         * config/missing: update from automake.
79861
79862 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
79863             Bruno Haible  <bruno@clisp.org>
79864
79865         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
79866         * lib/getline.c (getline, getdelim): Likewise.
79867         Remove _GNU_SOURCE define; now it's defined in config.h through
79868         m4/getline.m4.
79869
79870 2003-07-23  Karl Berry  <karl@gnu.org>
79871
79872         * config/config.sub: update from prep.
79873
79874 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79875
79876         * modules/xalloc (Depends-on): Add exitfail.
79877         * modules/xmemcoll: Likewise.
79878
79879 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79880
79881         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
79882         over-parenthesization in macros.
79883
79884         Sync with coreutils.
79885
79886         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
79887         required by C99.
79888
79889         Use `exit_failure' for xalloc and xmemcoll instead of their own
79890         private exit-failure variables.
79891         * lib/xalloc.h (xalloc_exit_failure): Remove.
79892         * lib/xmalloc.c: Likewise.  Include exitfail.h.
79893         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
79894         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
79895         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
79896         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
79897
79898 2003-07-20  Jim Meyering  <jim@meyering.net>
79899
79900         * modules/closeout (Depends-on): Add exitfail.
79901         Suggestion from Bruno Haible.
79902
79903 2003-07-19  Karl Berry  <karl@gnu.org>
79904
79905         * config/config.sub: update from prep.
79906
79907 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79908
79909         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79910         Remove.
79911         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79912         to test that it can stand by itself.  Include "exitfail.h".
79913         Clients should set exit_failure instead.
79914         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79915
79916 2003-07-18  Bruno Haible  <bruno@clisp.org>
79917
79918         * modules/getndelim2: New file.
79919         * modules/getline: Share files with module getndelim2.
79920         * modules/getnline: Depend on getndelim2 instead of sharing files with
79921         it. Add getnline.c to lib_SOURCES.
79922         * MODULES.html.sh (func_all_modules): Add getndelim2.
79923
79924 2003-07-18  Bruno Haible  <bruno@clisp.org>
79925
79926         * m4/getndelim2.m4: New file.
79927         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79928         invoke gl_PREREQ_GETNDELIM2.
79929         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79930         gl_PREREQ_GETNDELIM2.
79931         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79932         gl_GETNDELIM2.
79933
79934 2003-07-18  Bruno Haible  <bruno@clisp.org>
79935
79936         * lib/getndelim2.h: New file.
79937         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79938         getndelim2.h.
79939         (getndelim2): Make non-static. Change return type to ssize_t.
79940         * lib/getline.h: Change argument names.
79941         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79942         * lib/getnline.c: Include getndelim2.h.
79943
79944 2003-07-18  Andreas Schwab  <schwab@suse.de>
79945
79946         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79947
79948 2003-07-17  Karl Berry  <karl@gnu.org>
79949
79950         * config/config.sub: update from prep.
79951
79952 2003-07-17  Bruno Haible  <bruno@clisp.org>
79953
79954         * modules/getnline: New file.
79955         * modules/getline: Add lib/getndelim2.c to source file list.
79956         * MODULES.html.sh (func_all_modules): Add getnline.
79957
79958 2003-07-17  Bruno Haible  <bruno@clisp.org>
79959
79960         * m4/getnline.m4: New file.
79961
79962 2003-07-17  Bruno Haible  <bruno@clisp.org>
79963
79964         * m4/Makefile.am.in: Remove file.
79965         * m4/Makefile.am: Remove file.
79966         * m4/Makefile.in: Remove file.
79967
79968 2003-07-17  Bruno Haible  <bruno@clisp.org>
79969
79970         * lib/getnline.h: New file.
79971         * lib/getnline.c: New file.
79972         * lib/getndelim2.c: New file, extracted from getline.c.
79973         (getndelim2): Renamed from getdelim2, with added nmax argument.
79974         * lib/getline.c: Include getndelim2.c.
79975         (getdelim2): Moved out to getndelim2.c.
79976         (getline, getdelim): Update.
79977
79978 2003-07-17  Bruno Haible  <bruno@clisp.org>
79979
79980         * lib/Makefile.am: Remove file.
79981         * lib/Makefile.in: Remove file.
79982
79983 2003-07-17  Bruno Haible  <bruno@clisp.org>
79984
79985         * configure.in: Remove file.
79986         * Makefile.in: Remove file.
79987
79988 2003-07-17  Bruno Haible  <bruno@clisp.org>
79989
79990         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79991
79992 2003-07-16  Karl Berry  <karl@gnu.org>
79993
79994         * config/srclist-update: was running fixlicense twice, which caused
79995                 texinfo.tex to be nullified for some reason.  Simplify,
79996                 $gplsrc is no longer needed as far as I can see?
79997
79998 2003-07-16  Jim Meyering  <jim@meyering.net>
79999
80000         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
80001
80002 2003-07-15  Paul Eggert  <eggert@twinsun.com>
80003
80004         * config/srclist.txt: Get the following files from gettext-runtime/intl
80005         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
80006         ref-del.sin.  From Bruno Haible.
80007         * config/srclist-update (fixfile): Change grep pattern again, since the
80008         previous fix didn't work (there was another trailing $).  Use
80009         '[$]' to escape the $s.
80010
80011 2003-07-15  Karl Berry  <karl@gnu.org>
80012
80013         * lib/vasnprintf.c: update from gettext.
80014
80015 2003-07-15  Karl Berry  <karl@gnu.org>
80016
80017         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
80018         gets expanded when surrounded by '$'.
80019
80020 2003-07-15  Jim Meyering  <jim@meyering.net>
80021
80022         * modules/save-cwd: Don't depend on error.  From Derek Price.
80023
80024 2003-07-15  Jim Meyering  <jim@meyering.net>
80025
80026         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
80027
80028 2003-07-14  Simon Josefsson  <jas@extundo.com>
80029
80030         * modules/mempcpy: New file.
80031         * MODULES.html.sh (func_all_modules): Add mempcpy.
80032
80033 2003-07-14  Simon Josefsson  <jas@extundo.com>
80034
80035         * m4/mempcpy.m4: New file.
80036
80037 2003-07-14  Simon Josefsson  <jas@extundo.com>
80038
80039         * lib/mempcpy.h: New file.
80040         * lib/mempcpy.c: New file.
80041
80042 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80043
80044         * modules/getdate, modules/posixtm: Depend on mktime.
80045
80046 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80047
80048         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
80049         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
80050         unicodeio.c, unicodeio.h, unlocked-io.h:
80051         Switch from LGPL to GPL.
80052
80053 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80054
80055         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
80056         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
80057         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
80058         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
80059         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
80060         updated automatically by ../config/srclist-update.  This changes
80061         their license from LPGL to GPL.
80062
80063 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80064
80065         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
80066         assumed to refer to the root of the most recent stable gettext version.
80067         * config/srclistvars.sh: Add defaults for eggert.
80068         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
80069         Match "This program" as well as "The program".  This is needed
80070         for gettext.
80071
80072 2003-07-14  Jim Meyering  <jim@meyering.net>
80073
80074         Don't emit diagnostics.  Let callers do that.
80075         * lib/save-cwd.c: Don't include "error.h".
80076         (save_cwd): Don't call error.  Ensure that errno is valid
80077         when returning nonzero.
80078
80079         * lib/save-cwd.h (restore_cwd): Update prototype.
80080         * lib/save-cwd.c (restore_cwd): Remove two parameters.
80081         Simplify.  Don't call error upon failure.  Let callers do that.
80082         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
80083         when auditing is enabled.  But don't bother updating the #if.
80084
80085 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
80086
80087         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
80088         it breaks C++ compilation.
80089         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
80090
80091 2003-07-10  Simon Josefsson  <jas@extundo.com>
80092
80093         * modules/strchrnul (Makefile.am): Add strchrnul.h.
80094
80095 2003-07-10  Jim Meyering  <jim@meyering.net>
80096
80097         * m4/clock_time.m4: Remove trailing blank.
80098         * m4/intmax_t.m4: Likewise.
80099
80100 2003-07-10  Jim Meyering  <jim@meyering.net>
80101
80102         * lib/vasnprintf.c: Remove trailing blanks.
80103         Make cpp indentation consistent.
80104
80105 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80106
80107         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
80108         posixver.c, strftime.c, strnlen.c, strverscmp.c:
80109         Switch from LGPL to GPL.
80110
80111 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80112
80113         * config/srclist.txt: Sort sublists.  Add
80114         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
80115         that differ from gnulib for one reason or another; we'd like this list
80116         to be smaller but for now let's document what we have.
80117
80118 2003-07-08  Paul Eggert  <eggert@twinsun.com>
80119
80120         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
80121         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
80122         and sweeter "eval x=$x".
80123         * config/srclist.txt: Get lib/argp* from glibc.
80124
80125 2003-07-07  Paul Eggert  <eggert@twinsun.com>
80126
80127         * lib/mktime.c: Fix some boundary cases and remove need for floating
80128         point.
80129
80130         Issue a compile-time diagnostic if time_t is floating point, or if
80131         two's complement arithmetic is not in effect, or if arithmetic
80132         right shift does not propagate the sign.  These assumptions were
80133         all in the original code but they weren't checked.
80134
80135         (TIME_T_MIDPOINT, verify): New macros.
80136         (__isleap): Remove; it has integer overflow problems.
80137         (leapyear): New function, without those problems.
80138         (ydhms_tm_diff): Remove; splitting into two parts.
80139         (ydhms_diff): New function, containing the arithmetic part of
80140         the old ydhms_tm_diff function.  Issue a compile-time
80141         diagnostic if we are not using C99 integer division.
80142         Avoid casts when possible.
80143         (guess_time_tm): New function, containing the checking part of
80144         the old ydhms_tm_diff function.  Return the new value, rather than
80145         the difference between it and the old.  Accept a new argument T
80146         so that *T specifies the old value.  Check for overflow in the result.
80147
80148         (__mktime_internal): Use a time_t offset, not a long int offset.
80149         This undoes the 2003-06-04 change, which is no longer needed now
80150         that we have better overflow checking.
80151         (localtime_offset): Likewise.
80152
80153         (__mktime_internal): Avoid harmful overflow on hosts where time_t
80154         and long are 64-bit but int is only 32-bit.
80155         (ydhms_diff): Use long int to store year1 and yday1.
80156         Issue a compile-time diagnostic if long int is not wide enough.
80157
80158         (__mktime_internal): Use long int to store adjusted year and yday.
80159         Use plain C rather than preprocessor commands, if that doesn't
80160         affect efficiency.
80161         Check for overflow (and try to repair) after each probe
80162         rather than checking only at the very end.  This avoids some bugs
80163         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
80164         does not equal GMT offset at maximum time).
80165         Use integer to check for overflow rather than floating point; this
80166         is more portable to non-IEEE hosts, and is a tad faster.
80167         When we detect that we are oscillating between two values,
80168         don't check whether tm_isdst has the requested value, since
80169         we already know the answer.  When tm_isdst has the wrong value,
80170         use a different heuristic to find the right one, based on the
80171         extreme values actually observed in practice in tz2003a,
80172         rather than the (overly optimistic) "previous 3 calendar quarters".
80173
80174         (not_equal_tm, print_tm, check_result): Use "const T" rather than
80175         "T const" to accommodate glibc style.
80176         (check_result): Use less-confusing report format.  "long" -> "long int.
80177         (main): Likewise.
80178         Don't loop if the iteration overflows time_t.
80179         Allow a negative step in the iteration.
80180
80181 2003-07-06  Karl Berry  <karl@gnu.org>
80182
80183         * config/depcomp: update from automake.
80184         * config/config.sub: update from prep.
80185
80186 2003-07-03  Karl Berry  <karl@gnu.org>
80187
80188         * config/config.guess: update from prep.
80189
80190 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80191
80192         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
80193         xreadlink.c now includes it unconditionally.
80194
80195 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80196
80197         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
80198         having it depend on HAVE_SYS_TYPES_H.
80199
80200 2003-07-01  Bruno Haible  <bruno@clisp.org>
80201
80202         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
80203         <sys/types.h> should be sufficient.
80204         Reported by Paul Eggert.
80205
80206 2003-06-26  Karl Berry  <karl@gnu.org>
80207
80208         * config/depcomp: update from automake.
80209
80210 2003-06-26  Bruno Haible  <bruno@clisp.org>
80211
80212         * modules/human: Depend on module stdbool.
80213
80214 2003-06-25  Bruno Haible  <bruno@clisp.org>
80215
80216         * modules/readlink: New file.
80217         * modules/xreadlink: Depend on it.
80218         * MODULES.html.sh (func_all_modules): Add readlink.
80219
80220 2003-06-25  Bruno Haible  <bruno@clisp.org>
80221
80222         * m4/readlink.m4: New file.
80223
80224 2003-06-25  Bruno Haible  <bruno@clisp.org>
80225
80226         * lib/readlink.c: New file.
80227
80228 2003-06-22  Karl Berry  <karl@gnu.org>
80229
80230         * config/srclist.txt: update mkinstalldirs from automake.
80231         * config/mkinstalldirs: update.
80232
80233 2003-06-22  Bruno Haible  <bruno@clisp.org>
80234
80235         Portability to mingw32.
80236         * m4/ssize_t.m4: New file, from GNU gettext.
80237         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
80238         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
80239
80240 2003-06-22  Bruno Haible  <bruno@clisp.org>
80241
80242         * modules/safe-read: Add m4/ssize_t.m4.
80243         * modules/xreadlink: Add m4/ssize_t.m4.
80244
80245 2003-06-20  Bruno Haible  <bruno@clisp.org>
80246
80247         Assume C89, so PARAMS isn't needed.
80248         * lib/unicodeio.h (PARAMS): Remove.
80249         * lib/unicodeio.c: Don't use PARAMS.
80250
80251 2003-06-18  Karl Berry  <karl@gnu.org>
80252
80253         * config/config.{guess,sub}: update from prep.
80254
80255 2003-06-18  Jim Meyering  <jim@meyering.net>
80256
80257         Merge changes from coreutils.
80258         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
80259         Remove explicit declarations of xmalloc and realloc.
80260         Include xalloc.h.
80261         (read_utmp): Remove anachronistic cast of xmalloc.
80262
80263 2003-06-17  Paul Eggert  <eggert@twinsun.com>
80264
80265         Assume C89, so PARAMS isn't needed.
80266         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
80267         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
80268         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
80269         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
80270         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
80271         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
80272         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
80273         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
80274         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
80275         lib/xstrtod.h, lib/xstrtol.h: Likewise.
80276         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
80277         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
80278         no longer needed. Anyway, config.h should always be included before any
80279         other file.
80280
80281 2003-06-11  Simon Josefsson  <jas@extundo.com>
80282
80283         * modules/sysexits: New file.
80284         * MODULES.html.sh (func_all_modules): Add sysexits.
80285
80286 2003-06-11  Simon Josefsson  <jas@extundo.com>
80287
80288         * lib/sysexit_.h: New file.
80289
80290 2003-06-11  Derek Price  <derek@ximbiot.com>
80291
80292         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
80293         necessary.
80294
80295 2003-06-11  Bruno Haible  <bruno@clisp.org>
80296
80297         * m4/sysexits.m4: New file.
80298
80299 2003-06-10  Simon Josefsson  <jas@extundo.com>
80300
80301         * lib/argp.h: New file, from glibc.
80302         * lib/argp-ba.c: New file, from glibc.
80303         * lib/argp-eexst.c: New file, from glibc.
80304         * lib/argp-fmtstream.c: New file, from glibc.
80305         * lib/argp-fmtstream.h: New file, from glibc.
80306         * lib/argp-fs-xinl.c: New file, from glibc.
80307         * lib/argp-help.c: New file, from glibc.
80308         * lib/argp-namefrob.h: New file, from glibc.
80309         * lib/argp-parse.c: New file, from glibc.
80310         * lib/argp-pv.c: New file, from glibc.
80311         * lib/argp-pvh.c: New file, from glibc.
80312         * lib/argp-xinl.c: New file, from glibc.
80313
80314 2003-06-10  Simon Josefsson  <jas@extundo.com>
80315
80316         * modules/strchrnul: New file.
80317
80318 2003-06-10  Simon Josefsson  <jas@extundo.com>
80319
80320         * modules/argp: New file.
80321
80322 2003-06-10  Simon Josefsson  <jas@extundo.com>
80323
80324         * m4/strchrnul.m4: New file.
80325
80326 2003-06-10  Simon Josefsson  <jas@extundo.com>
80327
80328         * lib/strchrnul.h: New file.
80329         * lib/strchrnul.c: New file.
80330
80331 2003-06-10  Bruno Haible  <bruno@clisp.org>
80332
80333         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
80334
80335 2003-06-07  Karl Berry  <karl@gnu.org>
80336
80337         * config/config.{guess,sub}: update from prep.
80338
80339 2003-06-07  Jim Meyering  <jim@meyering.net>
80340
80341         * modules/strtod: Use $(...) notation, not @...@ for
80342         AC_REPLACE'd variables.
80343         * modules/localcharset: Likewise.
80344
80345 2003-06-07  Jim Meyering  <jim@meyering.net>
80346
80347         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
80348         in place of my name in the copyright comment.
80349         Remove definition and uses of __P.
80350
80351         From coreutils.
80352         * lib/stat.c: Don't declare xmalloc explicitly.
80353         Instead, include "xalloc.h".
80354         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
80355         xrealloc, and xcalloc return values.
80356         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
80357         Improve comment.
80358         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
80359
80360 2003-06-07  Bruno Haible  <bruno@clisp.org>
80361
80362         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
80363         avoid AC_CONFIG_LINKS.
80364         * modules/fnmatch (Makefile.am): Use explicit creation rule for
80365         fnmatch.h, to avoid AC_CONFIG_LINKS.
80366         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
80367
80368 2003-06-07  Bruno Haible  <bruno@clisp.org>
80369
80370         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
80371         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
80372         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80373         directory.
80374         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
80375         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80376         directory.
80377
80378 2003-06-06  Jim Meyering  <jim@meyering.net>
80379
80380         Merge from coreutils.
80381         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
80382         Consolidate declarations and initializations of *_base* locals.
80383
80384         Merge from coreutils.
80385         This avoids a core dump on systems without GNU putenv,
80386         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
80387         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
80388         (unsetenv): New static function, from GNU libc.
80389         (rpl_putenv): Use it.
80390
80391         * lib/modechange.c: Remove trailing blanks.
80392
80393         Merge from coreutils.
80394         * lib/fsusage.c: Remove declaration of statfs.
80395         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
80396
80397         * lib/posixtm.c: Include <stdbool.h> unconditionally.
80398
80399 2003-06-06  Jim Meyering  <jim@meyering.net>
80400
80401         * lib/stdbool_.h: Renamed from stdbool.h.in.
80402
80403 2003-06-06  Jim Meyering  <jim@meyering.net>
80404             Bruno Haible  <bruno@clisp.org>
80405
80406         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
80407         Adjust Makefile.am snippet not to redirect directly to target.
80408         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
80409
80410 2003-06-05  Paul Eggert  <eggert@twinsun.com>
80411
80412         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
80413         mismatch, look in future quarters as well as past.  This fixes a
80414         bug when processing fall-backwards gaps immediately after a long
80415         period of daylight-saving time.
80416
80417         * lib/mktime.c: Assume freestanding C89 or better.
80418         (HAVE_LIMITS_H): Remove.  Assume it's 1.
80419         (__P): Remove; not used.
80420         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
80421         (mktime, not_equal_tm, print_tm, check_result,
80422         main): Use prototypes.  Use const * where appropriate.
80423         (main): Fix typo in testing code that uncovered by above changes.
80424         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
80425
80426 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80427
80428         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
80429         locale.h, localeconv.  This merges changes from coreutils.
80430
80431         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
80432         It can be removed after the next Autoconf is released.
80433         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
80434         needed.
80435
80436 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80437
80438         * lib/mktime.c: Fix Debian bug 177940
80439         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
80440         (localtime_offset): Now long int, not time_t, because we want it
80441         to be guaranteed to be signed.  All uses changed.
80442         (__mktime_internal): If overflow would occur when adding offset,
80443         don't add it.
80444
80445         Merge 'human' changes from coreutils.  Rewrite to support
80446         locale-specific notations like thousands separators.
80447         * lib/human.c: Simplify authorship notice.
80448         Include human.h immediately after config.h.
80449         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
80450         <limits.h>: Do not include, since human.h does.
80451         (SIZE_MAX, UINTMAX_MAX): New macros.
80452         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
80453         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
80454         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
80455         (power_letter): Renamed from suffixes.
80456         (generate_suffix_backwards): Remove.
80457         (adjust_value): Now takes int style (because of human.h changes)
80458         and long double value (for greater precision on some platforms).
80459         (group_number): New function.
80460         (human_readable): Use it.  Use integer options, not enum.
80461         Put the options before the sizes in the arg list.
80462         Support all the new options.
80463         The old human_readable function has been removed;
80464         use inttostr.h instead.
80465         (human_readable, default_block_size, humblock):
80466         Use uintmax_t, not int, for block sizes.
80467         (human_readable_inexact, block_size_types): Remove.
80468         (block_size_opts): New constant.
80469         (human_options): Renamed from human_block_size, with new signature
80470         that allows block sizes up to UINTMAX_MAX.  All callers changed.
80471         * lib/human.h: Add copyright and authorship notice.
80472         Include <limits.h> and <stdbool.h> unconditionally.
80473         (PARAMS): Remove.  All uses removed.
80474         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
80475         (enum human_inexact_style): Remove tag; now a nameless enum.
80476         (human_floor, human_ceiling, human_round_to_even): Now have
80477         values 2, 0, 1 rather than -1, 1, 0.
80478         (human_group_digits, human_suppress_point_zero, human_autoscale,
80479         human_base_1024, human_SI, human_B): New constants.
80480         (human_readable_inexact, human_block_size): Remove.
80481         (human_readable): Size args are now uintmax_t, not int.
80482         (human_options): New decl.
80483
80484         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
80485         unnecessary now that we assume C89 or better.  This change
80486         imported from coreutils.
80487
80488         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80489         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
80490         in the 2003-05-30 sync from glibc.
80491
80492         .h files should stand alone, but we shouldn't include <sys/types.h>
80493         if we can get away with just <stddef.h>.
80494
80495         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
80496         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
80497         rather than <sys/types.h>, as we merely need size_t.
80498         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
80499         to get size_t.
80500         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
80501         Include <stdio.h>, to get FILE.
80502         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
80503         memcasecmp.h has included <stddef.h> and all we need is size_t.
80504         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
80505         our interface, instead of including <sys/types.h>
80506
80507 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80508
80509         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
80510         now, as glibc mktime is buggy on non-glibc systems.
80511
80512 2003-06-03  Karl Berry  <karl@gnu.org>
80513
80514         * config/config.sub: update from prep.
80515
80516 2003-06-02  Paul Eggert  <eggert@twinsun.com>
80517
80518         [from coreutils]
80519         Fix some minor time-related bugs with POSIX time arguments.
80520         Some valid time stamps were being rejected (notably -1, and
80521         time stamps before 1900 on 64-bit hosts).  And some invalid
80522         time stamps were being accepted, e.g. September 31.
80523
80524         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
80525         that we can return (time_t) -1 successfully.
80526         * lib/posixtm.c: Likewise.
80527         [HAVE_STDBOOL_H]: Include <stdbool.h>.
80528         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
80529         (t): Remove static var.
80530         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
80531         of static var.  All uses changed.
80532         (year): Do not reject years before 1900; they can occur with
80533         64-bit time_t.
80534         (posix_time_parse): Do not check for out-of-range components;
80535         that is now the caller's responsibility, since our checks were
80536         only approximations.
80537         (posixtime): Use mktime to check for out-of-range components,
80538         since it knows them exactly.
80539         If mktime returns (time_t) -1, check whether an error actually occurred
80540         by invoking localtime on -1.
80541         (main) [TEST_POSIXTIME]: Check for input data errors, and report
80542         posixtime failures better.
80543         Improve the test data (in comments only).
80544
80545 2003-06-02  Karl Berry  <karl@gnu.org>
80546
80547         * config/mkinstalldirs (version): new variable.
80548         (--version): new option.
80549         (usage): improve message.
80550
80551 2003-05-30  Karl Berry  <karl@gnu.org>
80552
80553         * lib/mktime.c: update from libc.
80554
80555 2003-05-30  Bruno Haible  <bruno@clisp.org>
80556
80557         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
80558         * config/config.rpath: Upgrade to gettext-0.12.1.
80559
80560 2003-05-30  Bruno Haible  <bruno@clisp.org>
80561
80562         * m4/gettext.m4: Upgrade to gettext-0.12.1.
80563         * m4/nls.m4: New file, from gettext-0.12.1.
80564         * m4/po.m4: New file, from gettext-0.12.1.
80565         * m4/progtest.m4: Upgrade to gettext-0.12.1.
80566
80567 2003-05-30  Bruno Haible  <bruno@clisp.org>
80568
80569         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
80570         * lib/localcharset.h: Likewise.
80571         * lib/localcharset.c: Likewise.
80572
80573 2003-05-29  Karl Berry  <karl@gnu.org>
80574
80575         * config/config.rpath: update from gettext.
80576
80577 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80578
80579         Assume the headers required for C89 freestanding compilers.
80580         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
80581         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
80582         * m4/human.m4 (gl_HUMAN): Likewise.
80583         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
80584         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
80585         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80586         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
80587         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80588         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
80589
80590 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80591
80592         Assume the headers required for C89 freestanding compilers.
80593         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
80594         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
80595         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
80596         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
80597         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
80598         define, since <limits.h> is guaranteed to do that.
80599         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
80600         * lib/exclude.c: Include <stdbool.h> unconditionally.
80601         * lib/tempname.c: Include <stddef.h> unconditionally.
80602         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
80603         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
80604         <stddef.h> does that.
80605         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
80606         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
80607         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
80608         needed.
80609         * lib/xstrtol.c: Likewise.
80610         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
80611         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
80612
80613         * lib/addext.c (addext): Use assignment rather than cast, to avoid
80614         warnings on some platforms.
80615
80616         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80617         arbitrarily.
80618
80619 2003-05-26  Jim Meyering  <jim@meyering.net>
80620
80621         Merge in a change from coreutils:
80622         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
80623         that is guaranteed to be `no'.  Use `no_such_member' to indicate
80624         that condition, rather than `-1' which is slightly misleading.
80625         Change the name of the cache variable to have the gl_ prefix.
80626         Prompted by a patch from Richard Dawe for DJGPP.
80627
80628 2003-05-24  Karl Berry  <karl@gnu.org>
80629
80630         * config/config.guess: update from prep.
80631
80632 2003-05-22  Karl Berry  <karl@gnu.org>
80633
80634         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
80635
80636 2003-05-20  Karl Berry  <karl@gnu.org>
80637
80638         * config/config.guess: update from prep.
80639
80640 2003-05-18  Karl Berry  <karl@gnu.org>
80641
80642         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
80643         might actually be set by the user.
80644
80645         * config/depcomp, install-sh, mdate-sh: update from automake.
80646
80647 2003-05-17  Bruno Haible  <bruno@clisp.org>
80648
80649         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
80650         invalid expansion for AC_EGREP_CPP.
80651         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
80652         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
80653         Suggested by Akim Demaille <akim@epita.fr> in
80654         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
80655
80656 2003-05-12  Jim Meyering  <jim@meyering.net>
80657
80658         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
80659         the space-padded-by-default conversion specifiers, %e, %k, %l.
80660
80661 2003-05-12  Bruno Haible  <bruno@clisp.org>
80662
80663         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
80664         the string is longer than 4 KB.
80665
80666 2003-05-11  Karl Berry  <karl@gnu.org>
80667
80668         * config/config.{guess,sub}: update from prep.
80669
80670 2003-05-09  Bruno Haible  <bruno@clisp.org>
80671
80672         * modules/error: Add m4/strerror_r.m4 to file list.
80673
80674 2003-05-03  Bruno Haible  <bruno@clisp.org>
80675
80676         Upgrade to Unicode-4.0.
80677         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
80678         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
80679         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
80680         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
80681         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
80682         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
80683         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
80684         Change width of U+E0100..U+E01EF from 1 to 0.
80685
80686 2003-04-25  Jim Meyering  <jim@meyering.net>
80687
80688         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
80689         of type size_t, not int.
80690
80691 2003-04-25  Bruno Haible  <bruno@clisp.org>
80692
80693         * lib/copy-file.c: Include <stddef.h>, for size_t.
80694
80695 2003-04-21  Paul Eggert  <eggert@twinsun.com>
80696
80697         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
80698         code which expansion is under static control.  Patch imported from
80699         Akim Demaille's patch to Bison; see
80700         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
80701
80702 2003-04-14  Bruno Haible  <bruno@clisp.org>
80703
80704         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
80705
80706 2003-04-11  Jim Meyering  <jim@meyering.net>
80707
80708         Merge changes from Coreutils.
80709
80710         2003-03-22  Jim Meyering  <jim@meyering.net>
80711
80712         * lib/strftime.c (widen): Cast alloca return value to proper type.
80713
80714         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
80715
80716         From GNU libc.
80717         * lib/strftime.c (my_strftime): Handle very large width
80718         specifications for numeric values correctly.  Improve checks for
80719         overflow.
80720
80721         2003-01-19  Jim Meyering  <jim@meyering.net>
80722
80723         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
80724         definitions.
80725         (nl_get_alt_digit) [! defined my_strftime]: Define.
80726         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
80727         _nl_get_alt_digit and _nl_get_walt_digit.
80728
80729         * lib/strftime.c (my_strftime): Merge in locale-related changes from
80730         libc. These changes have no effect outside of _LIBC.
80731
80732 2003-04-10  Bruno Haible  <bruno@clisp.org>
80733
80734         * modules/findprog: New file.
80735         * MODULES.html.sh (func_all_modules): Add it.
80736
80737 2003-04-10  Bruno Haible  <bruno@clisp.org>
80738
80739         * m4/findprog.m4: New file.
80740         * m4/eaccess.m4: New file.
80741
80742 2003-04-10  Bruno Haible  <bruno@clisp.org>
80743
80744         * lib/findprog.h: New file, from GNU gettext.
80745         * lib/findprog.c: New file, from GNU gettext.
80746
80747 2003-04-05  Jim Meyering  <jim@meyering.net>
80748
80749         Merge changes from Coreutils.
80750
80751         * lib/exclude.h (PARAMS): Remove definition and uses.
80752         * lib/exclude.c: Remove uses of `PARAMS'.
80753
80754         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
80755         Add test-cases for DOS filenames. Declare program_name.
80756         (main): Set up program_name.  Patch by Rich Dawe.
80757
80758         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80759         error from mntctl.
80760         Use mntctl's return value to drive the entry-processing loop, since
80761         we can't rely on the value of the vmt_length member in the last
80762         entry.  On some systems doing so could result in exhausting
80763         virtual memory.  Based in part on a patch from Mike Jetzer.
80764
80765 2003-04-04  Bruno Haible  <bruno@clisp.org>
80766
80767         * modules/linebreak: New file.
80768         * MODULES.html.sh (func_all_modules): Add it.
80769
80770 2003-04-04  Bruno Haible  <bruno@clisp.org>
80771
80772         * m4/linebreak.m4: New file.
80773
80774 2003-04-04  Bruno Haible  <bruno@clisp.org>
80775
80776         * lib/linebreak.h: New file, from GNU gettext.
80777         * lib/linebreak.c: New file, from GNU gettext with slight
80778         modifications.
80779         * lib/lbrkprop.h: New file, from GNU gettext.
80780
80781 2003-04-03  Bruno Haible  <bruno@clisp.org>
80782
80783         * modules/utf8-ucs4: New file.
80784         * modules/utf16-ucs4: New file.
80785         * modules/ucs4-utf8: New file.
80786         * modules/ucs4-utf16: New file.
80787         * MODULES.html.sh (func_all_modules): Add them.
80788
80789 2003-04-03  Bruno Haible  <bruno@clisp.org>
80790
80791         * m4/utf-ucs4.m4: New file.
80792         * m4/ucs4-utf.m4: New file.
80793
80794 2003-04-03  Bruno Haible  <bruno@clisp.org>
80795
80796         * lib/utf8-ucs4.h: New file, from GNU gettext.
80797         * lib/utf16-ucs4.h: New file, from GNU gettext.
80798         * lib/ucs4-utf8.h: New file, from GNU gettext.
80799         * lib/ucs4-utf16.h: New file, from GNU gettext.
80800
80801 2003-04-02  Bruno Haible  <bruno@clisp.org>
80802
80803         * modules/binary-io: New file.
80804         * MODULES.html.sh (func_all_modules): Add it.
80805
80806 2003-04-02  Bruno Haible  <bruno@clisp.org>
80807
80808         * lib/binary-io.h: New file, from GNU gettext.
80809
80810 2003-04-01  Bruno Haible  <bruno@clisp.org>
80811
80812         * modules/pathname: New file.
80813         * MODULES.html.sh (func_all_modules): Add it.
80814
80815 2003-04-01  Bruno Haible  <bruno@clisp.org>
80816
80817         * lib/pathname.h: New file, from GNU gettext.
80818         * lib/concatpath.c: New file, from GNU gettext.
80819
80820 2003-03-30  Bruno Haible  <bruno@clisp.org>
80821
80822         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
80823
80824 2003-03-30  Bruno Haible  <bruno@clisp.org>
80825
80826         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
80827         function chown() doesn't exist.
80828
80829 2003-03-28  Bruno Haible  <bruno@clisp.org>
80830
80831         * modules/copy-file: New file.
80832         * MODULES.html.sh (func_all_modules): Add it.
80833
80834 2003-03-28  Bruno Haible  <bruno@clisp.org>
80835
80836         * m4/copy-file.m4: New file.
80837
80838 2003-03-28  Bruno Haible  <bruno@clisp.org>
80839
80840         * lib/copy-file.h: New file, from GNU gettext.
80841         * lib/copy-file.c: New file, from GNU gettext.
80842
80843 2003-03-18  Jim Meyering  <jim@meyering.net>
80844
80845         * lib/quote.c (quote_n): Fix typo in comment.
80846
80847 2003-03-18  Bruno Haible  <bruno@clisp.org>
80848
80849         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
80850         checking.
80851         * m4/onceonly_2_57.m4: Likewise.
80852
80853 2003-03-17  Bruno Haible  <bruno@clisp.org>
80854
80855         * m4/onceonly.m4: Require autoconf 2.54 or newer.
80856         (m4_quote): Remove macro.
80857         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
80858
80859 2003-03-14  Jim Meyering  <jim@meyering.net>
80860
80861         Merge changes from Coreutils.
80862         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
80863         to be const, in order to avoid warnings.
80864         (obstack_room): Likewise.
80865         (obstack_empty_p): Likewise.
80866
80867 2003-03-14  Bruno Haible  <bruno@clisp.org>
80868
80869         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
80870         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
80871
80872 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80873
80874         Merge changes from Bison.
80875         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
80876         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
80877         when compiling Bison 1.875's `bitset bset = obstack_alloc
80878         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
80879         * lib/hash.c: Include <stdbool.h> unconditionally.
80880
80881 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80882
80883         * m4/onceonly.m4 (m4_quote): New macro.
80884         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
80885         Quote AC_FOREACH variable-expansions properly.
80886
80887 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80888
80889         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
80890
80891 2003-03-09  Paul Eggert  <eggert@twinsun.com>
80892
80893         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
80894         Reported by Bruce Becker; see:
80895         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
80896
80897 2003-03-03  Paul Eggert  <eggert@twinsun.com>
80898             Bruno Haible  <bruno@clisp.org>
80899
80900         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80901         Reported by John Hughes, see
80902         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80903
80904 2003-02-20  Bruno Haible  <bruno@clisp.org>
80905
80906         * MODULES.html.sh (func_all_modules): Add poll.
80907
80908 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80909
80910         * modules/poll: New file.
80911
80912 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80913
80914         * lib/poll_.h: New file.
80915         * lib/poll.c: New file.
80916
80917 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80918
80919         * m4/poll.m4: New file.
80920
80921 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80922
80923         * modules/mathl: New file.
80924
80925 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80926
80927         * lib/mathl.h: New file.
80928         * lib/acosl.c: New file.
80929         * lib/asinl.c: New file.
80930         * lib/atanl.c: New file.
80931         * lib/ceill.c: New file.
80932         * lib/cosl.c: New file.
80933         * lib/expl.c: New file.
80934         * lib/floorl.c: New file.
80935         * lib/frexpl.c: New file.
80936         * lib/ldexpl.c: New file.
80937         * lib/logl.c: New file.
80938         * lib/sincosl.c: New file.
80939         * lib/sinl.c: New file.
80940         * lib/sqrtl.c: New file.
80941         * lib/tanl.c: New file.
80942         * lib/trigl.c: New file.
80943         * lib/trigl.h: New file.
80944
80945 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80946
80947         * m4/mathl.m4: New file.
80948
80949 2003-02-18  Bruno Haible  <bruno@clisp.org>
80950
80951         * MODULES.html.sh (func_all_modules): Add mathl.
80952
80953 2003-02-17  Bruno Haible  <bruno@clisp.org>
80954
80955         * modules/mkdtemp: New module.
80956         * MODULES.html.sh (func_all_modules): Add it.
80957
80958 2003-02-17  Bruno Haible  <bruno@clisp.org>
80959
80960         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80961
80962 2003-02-17  Bruno Haible  <bruno@clisp.org>
80963
80964         * lib/mkdtemp.h: New file, from GNU gettext.
80965         * lib/mkdtemp.c: New file, from GNU gettext.
80966
80967 2003-02-02  Jim Meyering  <jim@meyering.net>
80968
80969         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80970         e.g. glibc-2.2.93.
80971
80972 2003-01-31  Bruno Haible  <bruno@clisp.org>
80973
80974         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80975         'rpl_rename'.
80976         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80977         'rpl_strnlen'.
80978         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80979         'rpl_strtod'.
80980         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80981         'rpl_utime'.
80982
80983 2003-01-31  Bruno Haible  <bruno@clisp.org>
80984
80985         * lib/rename.c: #undef rename before defining rpl_rename.
80986         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80987
80988 2003-01-30  Bruno Haible  <bruno@clisp.org>
80989
80990         * modules/vasnprintf, modules/vasprintf: New modules.
80991         * MODULES.html.sh (func_all_modules): Add them.
80992
80993 2003-01-30  Bruno Haible  <bruno@clisp.org>
80994
80995         * m4/signed.m4: New file, from GNU gettext.
80996         * m4/longdouble.m4: New file, from GNU gettext.
80997         * m4/wchar_t.m4: New file, from GNU gettext.
80998         * m4/wint_t.m4: New file, from GNU gettext.
80999         * m4/vasnprintf.m4: New file.
81000         * m4/vasprintf.m4: New file.
81001
81002 2003-01-30  Bruno Haible  <bruno@clisp.org>
81003
81004         * lib/printf-args.h: New file, from GNU gettext.
81005         * lib/printf-args.c: New file, from GNU gettext.
81006         * lib/printf-parse.h: New file, from GNU gettext.
81007         * lib/printf-parse.c: New file, from GNU gettext.
81008         * lib/vasnprintf.h: New file, from GNU gettext.
81009         * lib/vasnprintf.c: New file, from GNU gettext.
81010         * lib/asnprintf.c: New file, from GNU gettext.
81011         * lib/vasprintf.h: New file, from GNU gettext with modifications.
81012         * lib/vasprintf.c: New file, from GNU gettext.
81013         * lib/asprintf.c: New file, from GNU gettext.
81014
81015 2003-01-29  Bruno Haible  <bruno@clisp.org>
81016
81017         * modules/stpncpy: New module.
81018         * MODULES.html.sh (func_all_modules): Add it.
81019
81020 2003-01-29  Bruno Haible  <bruno@clisp.org>
81021
81022         * m4/stpncpy.m4: New file.
81023
81024 2003-01-29  Bruno Haible  <bruno@clisp.org>
81025
81026         * lib/stpncpy.h: New file, from GNU gettext with modifications.
81027         * lib/stpncpy.c: New file, from GNU gettext with modifications.
81028
81029 2003-01-28  Bruno Haible  <bruno@clisp.org>
81030
81031         * modules/c-ctype: New module.
81032         * MODULES.html.sh (func_all_modules): Add it.
81033
81034 2003-01-28  Bruno Haible  <bruno@clisp.org>
81035
81036         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
81037         Paul Eggert.
81038         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
81039         Paul Eggert.
81040
81041 2003-01-27  Bruno Haible  <bruno@clisp.org>
81042
81043         * modules/xsetenv: New module.
81044         * MODULES.html.sh (func_all_modules): Add it.
81045
81046 2003-01-27  Bruno Haible  <bruno@clisp.org>
81047
81048         * lib/xsetenv.h: New file, from GNU gettext.
81049         * lib/xsetenv.c: New file, from GNU gettext.
81050
81051 2003-01-23  Jim Meyering  <jim@meyering.net>
81052
81053         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
81054         from working on systems without dirfd (at least Irix and OSF1/Tru64).
81055
81056 2003-01-23  Bruno Haible  <bruno@clisp.org>
81057
81058         * modules/minmax: New module.
81059         * MODULES.html.sh (func_all_modules): Add it.
81060
81061 2003-01-23  Bruno Haible  <bruno@clisp.org>
81062
81063         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
81064         Eggert.
81065
81066 2003-01-22  Bruno Haible  <bruno@clisp.org>
81067
81068         * modules/exit: New module.
81069         * MODULES.html.sh (func_all_modules): Add it.
81070
81071 2003-01-22  Bruno Haible  <bruno@clisp.org>
81072
81073         * lib/exit.h: New file, from GNU gettext.
81074
81075 2003-01-19  Bruno Haible  <bruno@clisp.org>
81076
81077         * gnulib-tool: Recognize option --extract-maintainer.
81078         (func_get_maintainer): New function.
81079         * modules/*: Add Maintainer entry.
81080
81081 2003-01-16  Jim Meyering  <jim@meyering.net>
81082
81083         * m4/regex.m4: The `regex' struct is both input and output.
81084         Initialize it before each use.  Patch by Tim Waugh.
81085
81086 2003-01-16  Bruno Haible  <bruno@clisp.org>
81087
81088         * MODULES.html.sh: Add a table of contents. Add the module name as
81089         leftmost column. Add hyperlinks.
81090
81091 2003-01-15  Bruno Haible  <bruno@clisp.org>
81092
81093         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
81094
81095 2003-01-15  Bruno Haible  <bruno@clisp.org>
81096
81097         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
81098         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
81099         suffix.
81100
81101 2003-01-15  Bruno Haible  <bruno@clisp.org>
81102
81103         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
81104
81105 2003-01-15  Bruno Haible  <bruno@clisp.org>
81106
81107         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
81108         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
81109
81110 2003-01-14  Jim Meyering  <jim@meyering.net>
81111
81112         * lib/same.c (same_name): Tweak a comment.
81113
81114 2003-01-14  Bruno Haible  <bruno@clisp.org>
81115
81116         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
81117         when a string comparison is sufficient.
81118
81119 2003-01-14  Bruno Haible  <bruno@clisp.org>
81120
81121         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
81122         'unsigned int'.
81123
81124 2003-01-14  Bruno Haible  <bruno@clisp.org>
81125
81126         * lib/hash-pjw.c: Add comment about low quality of this function.
81127
81128 2003-01-13  Bruno Haible  <bruno@clisp.org>
81129
81130         * modules/stpcpy: Distribute lib/stpcpy.h.
81131         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
81132
81133 2003-01-13  Bruno Haible  <bruno@clisp.org>
81134
81135         * modules/*: Add a description.
81136         * modules/strpbrk: Fix Makefile.am snippet.
81137         * modules/strtoimax: Fix dependencies.
81138         * modules/strtoumax: Likewise.
81139
81140 2003-01-13  Bruno Haible  <bruno@clisp.org>
81141
81142         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
81143         * modules/alloca (Makefile.am): All object files depend on alloca.h.
81144         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
81145
81146 2003-01-13  Bruno Haible  <bruno@clisp.org>
81147
81148         * gnulib-tool (func_create_testdir): Store config/* files in the main
81149         directory.
81150         * config.rpath: Move to ...
81151         * config/config.rpath: ... here.
81152         * modules/gettext: Contains config/config.rpath, not config.rpath.
81153         * modules/iconv: Likewise.
81154
81155 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81156
81157         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81158         to avoid collisions with libcurses and libreadline.
81159
81160         * m4/getstr.m4: Remove.
81161         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
81162
81163 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81164
81165         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81166         to avoid collisions with libcurses and libreadline.
81167
81168         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
81169         * lib/getstr.h, getstr.c: Remove.
81170         * lib/getline.c: Include "getline.h", to check interface.
81171         Move body of old getstr.c here: this defines MIN_CHUNK and
81172         declares getdelim2, which is renamed from getstr.
81173         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
81174
81175         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
81176         All uses changed.
81177         * lib/linebuffer.h: Likewise.
81178         (readline): Remove backward-compatibility macro.
81179
81180 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81181
81182         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81183         to avoid collisions with libcurses and libreadline.
81184         * getstr: Remove.
81185         * MODULES.html.sh: Remove getstr.
81186         * modules/getline: Depend on unlocked-io, not getstr.
81187
81188 2003-01-12  Jim Meyering  <jim@meyering.net>
81189
81190         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
81191
81192 2003-01-10  Bruno Haible  <bruno@clisp.org>
81193
81194         * modules/alloca: Change Makefile.am requirements. Simplify Include
81195         requirements. Add lib/alloca_.h to file list.
81196
81197 2003-01-10  Bruno Haible  <bruno@clisp.org>
81198
81199         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
81200
81201 2003-01-10  Bruno Haible  <bruno@clisp.org>
81202
81203         * lib/alloca_.h: New file.
81204         * lib/getdate.y: Unconditionally include alloca.h.
81205         * lib/makepath.c: Likewise.
81206         * lib/setenv.c: Likewise.
81207         * lib/userspec.c: Likewise.
81208
81209 2003-01-09  Karl Berry  <karl@gnu.org>
81210
81211         * MODULES.html.sh: include `dirname $0` in PATH, to find
81212         gnulib-tool.
81213
81214 2003-01-09  Bruno Haible  <bruno@clisp.org>
81215
81216         * modules/stdbool: Change configure.ac, Makefile.am requirements.
81217         Simplify Include requirements. Add lib/stdbool.h.in to file list.
81218
81219 2003-01-09  Bruno Haible  <bruno@clisp.org>
81220
81221         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
81222
81223 2003-01-09  Bruno Haible  <bruno@clisp.org>
81224
81225         * lib/stdbool.h.in: New file.
81226
81227 2003-01-09  Bruno Haible  <bruno@clisp.org>
81228
81229         * gnulib-tool (func_all_modules): Ignore files ending in ~.
81230         * MODULES.html.sh: Likewise.
81231
81232 2003-01-08  Jim Meyering  <jim@meyering.net>
81233
81234         * lib/full-write.c: Undefine and define-away `const' after inclusion
81235         of errno.h, not before.  Suggestion from Bruno Haible.
81236
81237 2003-01-08  Bruno Haible  <bruno@clisp.org>
81238
81239         * modules/full-read: Depend on full-write.
81240
81241 2003-01-08  Bruno Haible  <bruno@clisp.org>
81242
81243         * lib/safe-read.c: Include specification header first, to ensure its
81244         selfcontainedness.
81245         * lib/full-write.c: Likewise.
81246
81247 2003-01-07  Jim Meyering  <jim@meyering.net>
81248
81249         * lib/full-write.c: Rework so that it may serve to define full_read,
81250         too.
81251         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
81252
81253 2003-01-07  Bruno Haible  <bruno@clisp.org>
81254
81255         * lib/strtoimax.c: Include <stdint.h> as an alternative to
81256         <inttypes.h>.
81257         * lib/xstrtol.h: Likewise.
81258         * lib/xstrtoimax.c: Likewise.
81259         * lib/xstrtoumax.c: Likewise.
81260         * lib/human.h: Likewise.
81261
81262         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
81263         on systems that have <inttypes.h> but not <stdint.h>.
81264
81265 2003-01-07  Bruno Haible  <bruno@clisp.org>
81266
81267         * MODULES.html.sh: Add copyright notice.
81268         (missed_files): Omit CVS directory entries.
81269         (func_module): Make it work with sed-3.02.
81270         * MODULES.txt: Remove file.
81271
81272 2003-01-06  Jim Meyering  <jim@meyering.net>
81273
81274         * lib/version-etc.c: Update year in translatable copyright string.
81275
81276 2003-01-03  Karl Berry  <karl@gnu.org>
81277
81278         * config/config.{guess,sub}: update from prep.
81279
81280 2003-01-02  Karl Berry  <karl@gnu.org>
81281
81282         * doc/COPYING.DOC: belatedly updated to 1.2.
81283
81284 2003-01-01  Karl Berry  <karl@gnu.org>
81285
81286         * gnulib-tool (func_verify_module): report module name $module in
81287         error message, not $1.
81288         * gnulib-tool (create-testdir): don't complain if destdir couldn't
81289         be created, only if it doesn't exist.
81290         * gnulib-tool (last_checkin_date): don't expand the $Date here.
81291
81292 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81293
81294         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
81295
81296 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81297
81298         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
81299         memcmp if strcoll doesn't work.
81300
81301 2002-12-31  Bruno Haible  <bruno@clisp.org>
81302
81303         * lib/utime.c (utime_null): No need to call ftruncate if the file was
81304         nonempty.
81305
81306 2002-12-31  Bruno Haible  <bruno@clisp.org>
81307
81308         * lib/memcoll.c (STRCOLL): New macro.
81309         (memcoll): Use it.
81310
81311 2002-12-31  Bruno Haible  <bruno@clisp.org>
81312
81313         * lib/localcharset.h: New file.
81314         * lib/localcharset.c: Include it.
81315         * lib/unicodeio.c: Likewise.
81316
81317 2002-12-31  Bruno Haible  <bruno@clisp.org>
81318
81319         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
81320         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
81321
81322 2002-12-31  Bruno Haible  <bruno@clisp.org>
81323
81324         * lib/getline.h: Include <stddef.h>, for size_t.
81325
81326         * lib/unicodeio.h: Include <stddef.h>, for size_t.
81327         * lib/unicodeio.c: Don't include <stddef.h>.
81328
81329 2002-12-31  Bruno Haible  <bruno@clisp.org>
81330
81331         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
81332         HAVE_TM_ZONE.
81333
81334 2002-12-24  Karl Berry  <karl@gnu.org>
81335
81336         * config/config.guess: update from prep.
81337
81338 2002-12-24  Bruno Haible  <bruno@clisp.org>
81339
81340         General infrasructure.
81341         * m4/README: Rewritten.
81342         * m4/onceonly.m4: New file.
81343         * m4/onceonly_2_57.m4: New file.
81344
81345         Module atexit.
81346         * m4/atexit.m4: New file.
81347
81348         Module strtod.
81349         * m4/strtod.m4: New file.
81350
81351         Module strtol.
81352         * m4/strtol.m4: New file.
81353
81354         Module strtoul.
81355         * m4/strtoul.m4: New file.
81356
81357         Module memchr.
81358         * m4/memchr.m4: New file.
81359
81360         Module memcmp.
81361         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
81362         (jm_FUNC_MEMCMP): Invoke it.
81363
81364         Module memcpy.
81365         * m4/memcpy.m4: New file.
81366
81367         Module memmove.
81368         * m4/memmove.m4: New file.
81369
81370         Module memset.
81371         * m4/memset.m4: New file.
81372
81373         Module strcspn.
81374         * m4/strcspn.m4: New file.
81375
81376         Module strpbrk.
81377         * m4/strpbrk.m4: New file.
81378
81379         Module strstr.
81380         * m4/strstr.m4: New file.
81381
81382         Module strerror.
81383         * m4/strerror.m4: New file.
81384
81385         Module mktime.
81386         * m4/mktime.m4: Renamed from jm-mktime.m4.
81387         (gl_PREREQ_MKTIME): New macro.
81388         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
81389
81390         Module malloc.
81391         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
81392         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
81393         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
81394
81395         Module realloc.
81396         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
81397         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
81398         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
81399
81400         Module strftime.
81401         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
81402         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
81403         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
81404         gl_TM_GMTOFF.
81405         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
81406
81407         Module xalloc.
81408         * m4/xalloc.m4: New file.
81409
81410         Module alloca.
81411         * m4/alloca.m4: New file.
81412
81413         Module putenv.
81414         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
81415         (jm_FUNC_PUTENV): Invoke it.
81416
81417         Module setenv.
81418         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
81419         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
81420         when invoked twice.
81421         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
81422         gt_FUNC_SETENV.
81423
81424         Module memrchr.
81425         * m4/memrchr.m4: New file.
81426
81427         Module stpcpy.
81428         * m4/stpcpy.m4: New file.
81429
81430         Module strcase.
81431         * m4/strcase.m4: New file.
81432
81433         Module strdup.
81434         * m4/strdup.m4: New file.
81435
81436         Module strnlen.
81437         * m4/strnlen.m4: New file.
81438
81439         Module strndup.
81440         * m4/strndup.m4: New file.
81441
81442         Module xstrtod.
81443         * m4/xstrtod.m4: New file.
81444
81445         Module xstrtol.
81446         * m4/xstrtol.m4: New file.
81447
81448         Module getdate.
81449         * m4/getdate.m4: New file.
81450
81451         Module unlocked-io.
81452         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
81453         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
81454         * m4/jm-glibc-io.m4n: Remove file.
81455
81456         Module long-options.
81457         * m4/long-options.m4: New file.
81458
81459         Module md5.
81460         * m4/md5.m4: New file.
81461
81462         Module sha.
81463         * m4/sha.m4: New file.
81464
81465         Module getstr.
81466         * m4/getstr.m4: New file.
81467
81468         Module getline.
81469         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
81470         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
81471         <sys/types.h>, for size_t. Use the function name gnu_getline, not
81472         simply getline. Infoke gl_PREREQ_GETLINE.
81473
81474         Module obstack.
81475         * m4/obstack.m4: New file.
81476
81477         Module hash.
81478         * m4/hash.m4: New file.
81479
81480         Module readtokens.
81481         * m4/readtokens.m4: New file.
81482
81483         Module strverscmp.
81484         * m4/strverscmp.m4: New file.
81485
81486         Module stdbool.
81487         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
81488         OSF/1.
81489
81490         Module strtoll.
81491         * m4/strtoll.m4: New file.
81492
81493         Module strtoull.
81494         * m4/strtoull.m4: New file.
81495
81496         Module strtoimax.
81497         * m4/strtoimax.m4: New file.
81498
81499         Module strtoumax.
81500         * m4/strtoumax.m4: New file.
81501
81502         Module xstrtoimax.
81503         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
81504         jm_AC_PREREQ_XSTRTOIMAX.
81505         Moved the strtol prerequisites to strtol.m4.
81506         Moved the strtoll prerequisites to strtoll.m4.
81507         Moved the strtoimax prerequisites to strtoimax.m4.
81508
81509         Module xstrtoumax.
81510         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
81511         jm_AC_PREREQ_XSTRTOUMAX.
81512         Moved the strtoul prerequisites to strtoul.m4.
81513         Moved the strtoull prerequisites to strtoull.m4.
81514         Moved the strtoumax prerequisites to strtoumax.m4.
81515
81516         Module chown.
81517         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
81518         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
81519
81520         Module dup2.
81521         * m4/dup2.m4: New file.
81522
81523         Module ftruncate.
81524         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
81525         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
81526
81527         Module getgroups.
81528         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
81529         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
81530
81531         Module gettimeofday.
81532         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
81533         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
81534         gl_PREREQ_GETTIMEOFDAY.
81535
81536         Module mkdir.
81537         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
81538         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
81539
81540         Module mkstemp.
81541         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
81542         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
81543         jm_AC_TYPE_UINTMAX_T.
81544         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
81545
81546         Module stat.
81547         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
81548         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
81549
81550         Module lstat.
81551         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
81552         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
81553
81554         Module timespec.
81555         * m4/timespec.m4 (gl_TIMESPEC): New macro.
81556         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
81557         * m4/st_mtim.m4: Indentation.
81558
81559         Module nanosleep.
81560         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
81561         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
81562         gl_PREREQ_NANOSLEEP.
81563
81564         Module regex.
81565         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
81566         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
81567         (gl_REGEX): New macro.
81568
81569         Module rename.
81570         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
81571         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
81572
81573         Module rmdir.
81574         * m4/rmdir.m4: New file.
81575
81576         Module utime.
81577         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
81578         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
81579         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
81580
81581         Module dirname.
81582         * m4/dirname.m4: New file.
81583
81584         Module getopt.
81585         * m4/getopt.m4: New file.
81586
81587         Module unistd-safer.
81588         * m4/unistd-safer.m4: New file.
81589
81590         Module fnmatch.
81591         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
81592         declaration.
81593         (gl_PREREQ_FNMATCH_EXTRA): New macro.
81594         (gl_FUNC_FNMATCH_POSIX): New macro.
81595         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
81596         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
81597         simply fnmatch.
81598
81599         Module exclude.
81600         * m4/exclude.m4: New file.
81601
81602         Module human.
81603         * m4/human.m4: New file.
81604
81605         Module acl.
81606         * m4/acl.m4: Nop.
81607
81608         Module backupfile.
81609         * m4/backupfile.m4: New file.
81610         * m4/d-ino.m4: Indentation.
81611
81612         Module fsusage.
81613         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
81614         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
81615         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
81616
81617         Module dirfd.
81618         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
81619         requirements.
81620
81621         Module euidaccess.
81622         * m4/euidaccess.m4: New file.
81623
81624         Module file-type.
81625         * m4/file-type.m4: New file.
81626
81627         Module fileblocks.
81628         * m4/fileblocks.m4: New file.
81629
81630         Module filemode.
81631         * m4/filemode.m4: New file.
81632
81633         Module isdir.
81634         * m4/isdir.m4: New file.
81635
81636         Module lchown.
81637         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
81638         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
81639
81640         Module makepath.
81641         * m4/makepath.m4: New file.
81642
81643         Module modechange.
81644         * m4/modechange.m4: New file.
81645
81646         Module mountlist.
81647         * m4/mountlist.m4: New file.
81648         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
81649         Indentation.
81650
81651         Module path-concat.
81652         * m4/path-concat.m4: New file.
81653
81654         Module pathmax.
81655         * m4/pathmax.m4: New file.
81656
81657         Module same.
81658         * m4/same.m4: New file.
81659
81660         Module save-cwd.
81661         * m4/save-cwd.m4: New file.
81662
81663         Module savedir.
81664         * m4/savedir.m4: New file.
81665
81666         Module xgetcwd.
81667         * m4/xgetcwd.m4: New file.
81668         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
81669
81670         Module xreadlink.
81671         * m4/xreadlink.m4: New file.
81672
81673         Module safe-read.
81674         * m4/safe-read.m4: New file.
81675
81676         Module safe-write.
81677         * m4/safe-write.m4: New file.
81678
81679         Module closeout.
81680         * m4/closeout.m4: New file.
81681
81682         Module stdio-safer.
81683         * m4/stdio-safer.m4: New file.
81684
81685         Module getpass.
81686         * m4/getpass.m4: New file.
81687
81688         Module getugroups.
81689         * m4/getugroups.m4: New file.
81690
81691         Module group-member.
81692         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
81693         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
81694
81695         Module idcache.
81696         * m4/idcache.m4: New file.
81697
81698         Module userspec.
81699         * m4/userspec.m4: New file.
81700
81701         Module gettime.
81702         * m4/clock_time.m4: New file.
81703         * m4/gettime.m4: New file.
81704
81705         Module settime.
81706         * m4/settime.m4: New file.
81707
81708         Module posixtm.
81709         * m4/posixtm.m4: New file.
81710
81711         Module gethostname.
81712         * m4/gethostname.m4: New file.
81713
81714         Module canon-host.
81715         * m4/canon-host.m4: New file.
81716
81717         Module gettext.
81718         * m4/codeset.m4: New file, from gettext-0.11.5.
81719         * m4/gettext.m4: New file, from gettext-0.11.5.
81720         * m4/glibc21.m4: New file, from gettext-0.11.5.
81721         * m4/iconv.m4: New file, from gettext-0.11.5.
81722         * m4/intdiv0.m4: New file, from gettext-0.11.5.
81723         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
81724         * m4/inttypes.m4: New file, from gettext-0.11.5.
81725         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
81726         * m4/isc-posix.m4: New file, from gettext-0.11.5.
81727         * m4/lcmessage.m4: New file, from gettext-0.11.5.
81728         * m4/lib-ld.m4: New file, from gettext-0.11.5.
81729         * m4/lib-link.m4: New file, from gettext-0.11.5.
81730         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
81731         * m4/progtest.m4: New file, from gettext-0.11.5.
81732         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
81733         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
81734         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
81735
81736         Module localcharset.
81737         * m4/localcharset.m4: New file.
81738
81739         Module hard-locale.
81740         * m4/hard-locale.m4: New file.
81741
81742         Module mbswidth.
81743         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
81744         onceonly macros.
81745         * m4/mbrtowc.m4: Add comment.
81746
81747         Module memcasecmp.
81748         * m4/memcasecmp.m4: New file.
81749
81750         Module memcoll.
81751         * m4/memcoll.m4: New file.
81752
81753         Module unicodeio.
81754         * m4/unicodeio.m4: New file.
81755
81756         Module rpmatch.
81757         * m4/rpmatch.m4: New file.
81758
81759         Module yesno.
81760         * m4/yesno.m4: New file.
81761
81762         Module exitfail.
81763         * m4/exitfail.m4: New file.
81764
81765         Module c-stack.
81766         * m4/c-stack.m4 (gl_C_STACK): New macro.
81767         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
81768
81769         Module error.
81770         * m4/error.m4 (gl_ERROR): New macro.
81771         (jm_PREREQ_ERROR): Use onceonly macros.
81772
81773         Module fatal.
81774         * m4/fatal.m4: New file.
81775
81776         Module getloadavg.
81777         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
81778         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
81779
81780         Module getpagesize.
81781         * m4/getpagesize.m4: New file.
81782
81783         Module getusershell.
81784         * m4/getusershell.m4: New file.
81785
81786         Module physmem.
81787         * m4/physmem.m4: New file.
81788
81789         Module posixver.
81790         * m4/posixver.m4: New file.
81791
81792         Module quotearg.
81793         * m4/quotearg.m4: New file.
81794
81795         Module quote.
81796         * m4/quote.m4: New file.
81797
81798         Module readutmp.
81799         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
81800
81801         Module sig2str.
81802         * m4/sig2str.m4: New file.
81803
81804         Other.
81805         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
81806         ulonglong.m4.
81807         * m4/intmax_t.m4: New file.
81808         * m4/d-type.m4: Indentation.
81809         * m4/jm-macros.m4: Update.
81810         * m4/prereq.m4 (jm_PREREQ): Update.
81811         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
81812         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
81813         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
81814         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
81815         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
81816         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
81817         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
81818         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
81819         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
81820         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
81821         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
81822         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
81823         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
81824         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
81825         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
81826         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
81827         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
81828         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
81829         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
81830
81831 2002-12-24  Bruno Haible  <bruno@clisp.org>
81832
81833         * MODULES.txt: Update according to m4/ changes.
81834
81835         Module gettext.
81836         * config.rpath: New file, from gettext-0.11.5.
81837
81838         * modules/*: New module descriptions.
81839         * gnulib-tool: New file.
81840         * MODULES.html.sh: New file.
81841
81842 2002-12-21  Karl Berry  <karl@gnu.org>
81843
81844         * doc/fdl.texi: update to version 1.2.
81845
81846 2002-12-19  Karl Berry  <karl@gnu.org>
81847
81848         * config/config.guess: update from prep.
81849
81850 2002-12-18  Bruno Haible  <bruno@clisp.org>
81851
81852         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
81853         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
81854
81855 2002-12-17  Bruno Haible  <bruno@clisp.org>
81856
81857         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
81858         stdlib.h, string.h.
81859
81860 2002-12-17  Bruno Haible  <bruno@clisp.org>
81861
81862         * lib/canon-host.c (strdup): Remove unused declaration.
81863
81864         * lib/fsusage.c: Include full_read.h.
81865         (get_fs_usage): Use full_read instead of safe_read.
81866
81867         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
81868
81869 2002-12-12  Karl Berry  <karl@gnu.org>
81870
81871         * config/config.guess: update from prep.
81872
81873 2002-12-11  Bruno Haible  <bruno@clisp.org>
81874
81875         * m4/setenv.m4: New file, from gettext-0.11.5.
81876
81877 2002-12-11  Bruno Haible  <bruno@clisp.org>
81878
81879         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
81880         not unsetenv().
81881         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
81882         modifications:
81883
81884         2002-12-11  Bruno Haible  <bruno@clisp.org>
81885
81886                 * setenv.c (alloca): Fall back to malloc.
81887                 (freea): New macro.
81888                 (setenv): Use freea() to free memory allocated with alloca().
81889
81890         2002-11-13  Bruno Haible  <bruno@clisp.org>
81891
81892                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
81893                 function declarations.
81894                 * unsetenv.c (unsetenv): Likewise.
81895
81896         2002-03-04  Bruno Haible  <bruno@clisp.org>
81897
81898                 Portability to AIX 4.3.3.
81899                 * unsetenv.c: New file, extracted from setenv.c.
81900                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81901
81902         2001-12-20  Bruno Haible  <bruno@clisp.org>
81903
81904                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81905                 use malloc instead. For SunOS 4.
81906
81907         2001-12-11  Bruno Haible  <bruno@clisp.org>
81908
81909                 * setenv.c: Declare alloca.
81910                 (compar_fn_t): New typedef.
81911                 (KNOWN_VALUE, STORE_VALUE): Use it.
81912
81913         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81914         setenv.h.
81915
81916 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81917
81918         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81919         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81920         Choose values that are less likely to collide with system fnmatch
81921         options.
81922         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81923         defined (e.g., a pure POSIX system).
81924         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81925         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81926
81927 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81928
81929         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81930         a pain in practice to deal with generated m4 files.  This change
81931         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81932
81933         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81934         and jm-glibc-io.m4, as they are no longer a special case.
81935         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81936         kludge and the auto-generation stuff.  Check only whether the
81937         functions are declared, not whether they exist, since older hosts
81938         that don't declare the functions can't use the optimization anyway.
81939
81940 2002-12-06  Jim Meyering  <jim@meyering.net>
81941
81942         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81943
81944         Merge in changes from libc's misc/error.c, in preparation
81945         for the merge of gnulib's changes back into libc.
81946
81947         * lib/error.c (_): Define only if not already defined.
81948         Move definition to follow all #include directives.
81949         Include unlocked-io.h only if !_LIBC.
81950         [_LIBC]: Include <libio/libioP.h>.
81951         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81952         (fflush): Tweak definition to use INTUSE.
81953         (putc): Define.
81954
81955 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81956
81957         * lib/alloca.c [defined emacs]: Include "lisp.h".
81958         (xalloc_die) [defined emacs]: New macro.
81959         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81960         [! defined emacs]: Include <xalloc.h>.
81961         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81962         (pointer): Typedef to POINTER_TYPE *.
81963         (malloc): Remove decl; we now always use xmalloc.
81964         (alloca): Use old-style definition, since Emacs needs this.
81965         Check for arithmetic overflow when computing combined size.
81966
81967 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81968
81969         Do not generate unlocked-io.h automatically, since it's easier to
81970         maintain it by hand.
81971
81972         * lib/unlocked-io.h: New file, from GNU diffutils,
81973         but with proper copyright notice and attribution.
81974         * lib/gen-uio: Remove.
81975         * lib/Makefile.am: Add copyright notice.
81976         (libfetish_a_SOURCES): Add unlocked-io.h.
81977         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81978         (DISTCLEANFILES, io_functions): Remove macros.
81979         (EXTRA_DIST): Remove gen_uio.
81980         (unlocked-io.h): Remove rule.
81981
81982 2002-12-04  Jim Meyering  <jim@meyering.net>
81983
81984         Reflect the fact that stat.c and lstat.c are no longer generated.
81985         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81986         (DISTCLEANFILES): Likewise.
81987         (EXTRA_DIST): Likewise.
81988         (all_local): Don't depend on stat.c or lstat.c.
81989         (stat.c, lstat.c): Remove rules.
81990         (EXTRA_DIST): Remove xstat.in.
81991
81992         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81993         * lib/stat.c: New file.  Contents mostly from xstat.in.
81994         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81995         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81996
81997         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81998         too.
81999         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
82000
82001 2002-12-03  Jim Meyering  <jim@meyering.net>
82002
82003         * lib/safe-read.c, safe-write.c: Change variable names and comments,
82004         but not semantics, to minimize the differences between these two files.
82005         (safe_read): Change comment to mention SAFE_READ_ERROR.
82006
82007         * lib/safe-read.c (IS_EINTR): Define.
82008         (safe_read): Use IS_EINTR in place of in-function cpp directives.
82009
82010 2002-12-02  Jim Meyering  <jim@meyering.net>
82011
82012         * lib/safe-read.c (EINTR): Define.
82013         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82014         (INT_MAX): Provide fallback.
82015         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
82016
82017         * lib/safe-read.h (SAFE_READ_ERROR): Define.
82018
82019 2002-12-02  Bruno Haible  <bruno@clisp.org>
82020
82021         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
82022         Define, taken from safe-read.c.
82023         (INT_MAX): Provide fallback.
82024         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
82025         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
82026
82027         * lib/safe-read.c (EINTR): Remove definition.
82028         (safe_read): Don't use EINTR if it is absent.
82029
82030 2002-12-01  Jim Meyering  <jim@meyering.net>
82031
82032         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
82033         zero.
82034         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
82035
82036 2002-11-27  Paul Eggert  <eggert@twinsun.com>
82037
82038         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
82039         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
82040         with `if (! (value < limit)) abort ();', for readability.
82041
82042 2002-11-26  Karl Berry  <karl@gnu.org>
82043
82044         * lib/strdup.c: copy from libc again, with jim's ok.
82045         * lib/.cppi-disable: re-add strdup.c
82046
82047 2002-11-25  Karl Berry  <karl@gnu.org>
82048
82049         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
82050         instead of "strtol.c".
82051
82052 2002-11-25  Karl Berry  <karl@gnu.org>
82053
82054         * config/install-sh: update from automake for variable quoting, $0 in
82055         error msgs, etc.
82056
82057         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
82058         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
82059         entry.
82060
82061 2002-11-25  Jim Meyering  <jim@meyering.net>
82062
82063         * lib/mktime.c: Sync from libc, now that it has the latest fix.
82064
82065 2002-11-24  Karl Berry  <karl@gnu.org>
82066
82067         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
82068         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
82069
82070 2002-11-24  Jim Meyering  <jim@meyering.net>
82071
82072         Update from coreutils:
82073
82074         * lib/mktime.c: Merge in changes from libc.
82075
82076         Avoid a link-time failure on some Linux systems.
82077         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
82078         (otherwise).
82079         (__mon_yday): Declare with the STATIC attribute.
82080         (__mktime_internal): Likewise.
82081         Based on a report from Greg Schafer.
82082
82083 2002-11-23  Jim Meyering  <jim@meyering.net>
82084
82085         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
82086         Use `unsigned', not `int', as type of index.
82087
82088         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
82089
82090         * lib/fsusage.c: Remove unneeded parentheses around operands of
82091         `defined'.
82092
82093 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82094
82095         * lib/quotearg.h: Allow multiple inclusion by surrounding with
82096         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
82097         so that we can be included first.
82098         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
82099         * lib/quotearg.c: Include quotearg.h immediately after config.h.
82100         No need to include stddef.h or sys/types.h any more.
82101         Surround local include files with "", not "<>".
82102         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
82103         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
82104         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
82105         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
82106         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
82107         (ISPRINT): Remove; no longer needed now that we assume C89.
82108
82109         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
82110         Preserve errno.
82111
82112         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
82113         quotearg_char): Use SIZE_MAX rather than
82114         (size_t) -1 when we are talking about "infinity".
82115
82116         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
82117
82118 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82119
82120         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
82121         hint that one should use `if (! x) abort ();' rather than `assert
82122         (x);', and anyway it's one less thing to worry about configuring.
82123         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
82124         hash_rehash, hash_insert): Use abort rather than assert.
82125
82126 2002-11-22  Bruno Haible  <bruno@clisp.org>
82127
82128         * lib/safe-read.h: Assume C89. Add comments.
82129         (safe_read): Change return type to size_t.
82130         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
82131         byte counts > SSIZE_MAX correctly.
82132         * lib/safe-write.h: New file.
82133         * lib/safe-write.c: New file.
82134         * lib/full-read.h: New file.
82135         * lib/full-read.c: New file.
82136         * lib/full-write.h: Assume C89. Add comments.
82137         * lib/full-write.c: Include safe-write.h.
82138         (full_write): Rewritten to use safe_write.
82139         Suggested by Jim Meyering and Paul Eggert.
82140
82141 2002-11-21  Jim Meyering  <jim@meyering.net>
82142
82143         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
82144
82145         Merge in changes from the coreutils.
82146
82147         2002-09-25  Paul Eggert  <eggert@twinsun.com>
82148         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
82149         <stdint.h>.
82150         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
82151         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
82152         int.  Work more efficiently if X is the same width as uintmax_t.
82153         Do not compare X to -1, to avoid bogus compiler warning.
82154         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
82155         Don't assume that f_frsize and f_bsize are the same type.
82156
82157         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
82158         warning on FreeBSD.
82159
82160         * lib/makepath.c (make_path): Restore umask *before* creating the final
82161         component.
82162         (make_path): Minor reformatting.
82163
82164         * lib/xmalloc.c: Adjust to work with new autoconf macros,
82165         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
82166         HAVE_MALLOC/HAVE_REALLOC.
82167
82168         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
82169         dummy ones.  At least on GNU/Linux systems, `auto' means something
82170         else.
82171         From Michael Stone.
82172
82173 2002-11-21  Bruno Haible  <bruno@clisp.org>
82174
82175         Remove case insensitive option matching.
82176         * lib/argmatch.h (argcasematch): Remove declaration.
82177         (ARGCASEMATCH): Remove macro.
82178         (__xargmatch_internal): Remove case_sensitive argument.
82179         (XARGMATCH): Update.
82180         (XARGCASEMATCH): Remove macro.
82181         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
82182         case_sensitive argument.
82183         (argcasematch): Remove function.
82184         (__xargmatch_internal): Remove case_sensitive argument.
82185         (main): Use XARGMATCH instead of XARGCASEMATCH.
82186
82187         * lib/xmalloc.c: Change compile-time error message. Add comment about
82188         required autoconf version.
82189
82190 2002-11-20  Paul Eggert  <eggert@twinsun.com>
82191
82192         Merge argmatch cleanups from Bison.  Assume C89.
82193
82194         * lib/argmatch.c: Include config.h here, not in argmatch.h.
82195         Include stdlib.h, for EXIT_FAILURE.
82196         Always include <string.h>, since we assume C89.
82197         (EXIT_FAILURE): Remove pre-C89 bug workaround.
82198         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
82199         Include <stddef.h> instead, since it's all we need for size_t.
82200         (PARAMS): Remove.  All uses removed.
82201         (ARRAY_CARDINALITY): Do not bother to #undef.
82202         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
82203         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82204         Remove unnecessary parentheses.
82205         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82206         Insert necessary parentheses.
82207         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
82208         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
82209
82210 2002-11-19  Bruno Haible  <bruno@clisp.org>
82211
82212         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
82213         * lib/mbswidth.h: Include <stddef.h>, for size_t.
82214
82215         * lib/mbswidth.h (PARAMS): Remove macro.
82216         (mbswidth, mbsnwidth): Use ANSI C function declarations.
82217         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
82218
82219         * lib/gcd.h (PARAMS): Remove macro.
82220         (gcd): Use ANSI C function declarations.
82221         * lib/gcd.c (gcd): Likewise.
82222
82223 2002-11-15  Bruno Haible  <bruno@clisp.org>
82224
82225         * lib/strcspn.c: Include <stddef.h>.
82226         (strcspn): Use ANSI C function declaration. Change return type to
82227         size_t. Use NULL.
82228         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
82229         (strpbrk): Use NULL.
82230         * lib/strpbrk.h (PARAMS): Remove macro.
82231         (strpbrk): Use ANSI C function declaration.
82232         * lib/strstr.c: Don't include <sys/types.h>.
82233         * lib/strstr.h (PARAMS): Remove macro.
82234         (strstr): Use ANSI C function declarations.
82235
82236 2002-11-14  Karl Berry  <karl@gnu.org>
82237
82238         * config/mkinstalldirs: `do' on separate line, instead of
82239         `for var; do'.
82240
82241 2002-11-06  Bruno Haible  <bruno@clisp.org>
82242
82243         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
82244         * lib/gcd.c (gcd): Likewise.
82245
82246 2002-11-05  Bruno Haible  <bruno@clisp.org>
82247
82248         * lib/gcd.h: New file, from gettext-0.11.5.
82249         * lib/gcd.c: New file, from gettext-0.11.5.
82250
82251 2002-11-05  Bruno Haible  <bruno@clisp.org>
82252
82253         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82254         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82255         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82256         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82257
82258         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
82259         <libintl.h>.
82260         * lib/makepath.c: Include gettext.h instead of <locale.h> and
82261         <libintl.h>.
82262
82263         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
82264         * lib/human.c: Include gettext.h instead of <libintl.h>.
82265         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
82266         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
82267         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
82268         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
82269         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
82270         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
82271         (textdomain): Remove definition.
82272         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
82273
82274         * lib/long-options.c: Remove include of <libintl.h> and definition of
82275         _.
82276         * lib/same.c: Remove include of <libintl.h> and definition of _.
82277
82278 2002-11-04  Owen Taylor  <otaylor@redhat.com>
82279
82280         * lib/config.charset: A few additions for Solaris.
82281
82282 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82283
82284         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
82285         * lib/localcharset.c (locale_charset): Declare as extern "C".
82286
82287 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82288
82289         * lib/config.charset: msdos in uk_UA uses CP1125.
82290
82291 2002-11-04  Bruno Haible  <bruno@clisp.org>
82292
82293         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
82294         * lib/strcase.h: New file, from GNU gettext-0.11.5.
82295         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
82296         * lib/strstr.h: New file, from GNU gettext-0.11.5.
82297         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
82298
82299 2002-11-04  Bruno Haible  <bruno@clisp.org>
82300
82301         * lib/localcharset.c (locale_charset): Don't return an empty string.
82302
82303 2002-11-04  Bruno Haible  <bruno@clisp.org>
82304
82305         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
82306         aliases.
82307
82308 2002-11-04  Bruno Haible  <bruno@clisp.org>
82309
82310         * lib/config.charset: Update for newest glibc. Add canonical names
82311         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
82312
82313 2002-11-04  Bruno Haible  <bruno@clisp.org>
82314
82315         * lib/config.charset: Add support for NetBSD.
82316
82317 2002-11-04  Bruno Haible  <bruno@clisp.org>
82318
82319         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
82320
82321 2002-11-01  Bruno Haible  <bruno@clisp.org>
82322
82323         * configure.in: Add AC_CONFIG_AUX_DIR call.
82324         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
82325         test/Makefile.
82326         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
82327
82328 2002-09-28  Karl Berry  <karl@gnu.org>
82329
82330         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
82331         installed automake until the next release, since changes have been
82332         made.
82333
82334 2002-09-25  Karl Berry  <karl@gnu.org>
82335
82336         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
82337         * lib/getopt*: copy from libc/posix.
82338         * lib/gettext.h: copy from gettext.
82339         * lib/.cppi-disable: add strdup.c, gettext.h.
82340
82341 2002-09-25  Karl Berry  <karl@gnu.org>
82342
82343         * config/srclist.txt: enable gettext.h check.
82344         * config/config.{guess,sub}: update from prep.
82345         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
82346                 from automake 1.6.3.
82347         See srclist*.
82348
82349 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
82350
82351         * regex.c (PATFETCH): Remove the translating fetch.
82352         (PATFETCH_RAW): Rename to PATFETCH.
82353         (set_image_of_range): New fun.
82354         (SET_RANGE_TABLE_WORK_AREA): Use it.
82355         (regex_compile): Don't translate the pattern chars so eagerly.
82356         Only do it when inserting an `exactn' bytecode or when handling
82357         a char-range.
82358         (mutually_exclusive_p): Avoid empty statement.
82359
82360 2002-07-06  Jim Meyering  <meyering@lucent.com>
82361
82362         * m4/README: Don't mention Makefile.am.in.
82363         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
82364
82365 2002-07-01  Jim Meyering  <meyering@lucent.com>
82366
82367         * lib/c-stack.c: Include sys/time.h.
82368         From Volker Borchert.
82369
82370 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82371
82372         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
82373
82374 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82375
82376         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
82377         New macro.  Use it uniformly instead of
82378         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
82379         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
82380         reported by Vin Shelton.
82381
82382 2002-06-22  Paul Eggert  <eggert@twinsun.com>
82383
82384         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
82385         Do not assume SA_SIGINFO behavior.
82386         Bug reported by Jim Meyering on NetBSD 1.5.2.
82387
82388 2002-06-22  Jim Meyering  <meyering@lucent.com>
82389
82390         * m4/c-stack.m4: New file, from diffutils-2.8.2.
82391         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
82392
82393         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
82394         now that configure.ac uses AC_GNU_SOURCE.
82395         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
82396         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
82397
82398         Update to latest tools.  Suggestions from Paul Eggert.
82399         * m4/stdbool.m4: New file, from diffutils-2.8.2.
82400         * m4/gnu-source.m4: Update from diffutils-2.8.2.
82401         * m4/fnmatch.m4: Likewise.
82402         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
82403         to AC_HEADER_STDBOOL
82404
82405 2002-06-22  Jim Meyering  <meyering@lucent.com>
82406
82407         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
82408         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
82409
82410 2002-06-22  Jim Meyering  <meyering@lucent.com>
82411
82412         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
82413
82414         * lib/exitfail.c, exitfail.h: Likewise.
82415         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
82416
82417         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
82418         of fnmatch.h.
82419         (EXTRA_DIST): Add fnmatch_loop.c.
82420         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
82421
82422         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
82423         * lib/fnmatch.c: Update from diffutils-2.8.2.
82424         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
82425         * lib/fnmatch.h: Remove file.
82426
82427 2002-06-21  Jim Meyering  <meyering@lucent.com>
82428
82429         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
82430         * m4/mbrtowc.m4: Likewise.
82431
82432         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
82433         * m4/mbswidth.m4: Reflect name change:
82434         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
82435         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82436
82437         * m4/lib-link.m4: Update from gettext-0.11.2.
82438         * m4/gettext.m4: Likewise.
82439
82440         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
82441         From Alfred M. Szmidt.
82442
82443 2002-06-18  Paul Eggert  <eggert@twinsun.com>
82444
82445         * lib/file-type.h: Report an error if neither S_ISREG nor
82446         S_IFREG is defined, instead of using a test specific to glibc
82447         2.2.  This should be safe, since POSIX requires S_ISREG and
82448         Unix Version 7 had S_IFREG.  We don't need to check for
82449         <sys/types.h> since we don't use any symbols that it defines.
82450
82451 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
82452
82453         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
82454         $@-t, so that each temporary file name is unique and valid in the first
82455         8 characters, for operation under DOS.
82456
82457 2002-06-15  Paul Eggert  <eggert@twinsun.com>
82458
82459         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
82460
82461 2002-06-15  Jim Meyering  <meyering@lucent.com>
82462
82463         Work even with DJGPP 2.03, which lacks support for symlinks.
82464         From Richard Dawe.
82465         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
82466         is defined.
82467         * lib/lchown.c (S_ISLNK): Likewise.
82468
82469 2002-06-15  Jim Meyering  <meyering@lucent.com>
82470
82471         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
82472         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
82473         have been included before this file.
82474
82475 2002-06-14  Jim Meyering  <meyering@lucent.com>
82476
82477         * lib/file-type.h: Use the version from diffutils-2.8.2.
82478         * lib/file-type.c: Likewise.
82479
82480 2002-06-07  Jim Meyering  <meyering@lucent.com>
82481
82482         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
82483         They're needed at least for NetBSD 1.5.2.
82484         ($statxfs_includes): Include those same headers.
82485         ($statxfs_includes): Include sys/vfs.h if available.
82486         ($statxfs_includes): Likewise for sys/statvfs.h.
82487         Check for the following members in both structs statfs and statvfs:
82488         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
82489
82490 2002-06-01  Jim Meyering  <meyering@lucent.com>
82491
82492         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
82493         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
82494
82495 2002-05-28  Jim Meyering  <meyering@lucent.com>
82496
82497         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
82498         Reported by Volker Borchert.
82499
82500 2002-05-27  Jim Meyering  <meyering@lucent.com>
82501
82502         Fix a problem seen only on nonconforming systems whereby ls.c's
82503         use of localtime, and then of gettimeofday would cause trouble:
82504         the localtime call used to initialize rpl_gettimeofday's save
82505         mechanism would clobber ls's current local time information so
82506         that in any long listing the first file would always be listed
82507         with date 1970-01-01.  Analysis by Volker Borchert.
82508
82509         * lib/gettimeofday.c (localtime): Undefine.
82510         (rpl_localtime): New function.
82511
82512 2002-05-27  Jim Meyering  <meyering@lucent.com>
82513
82514         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
82515         localtime.
82516
82517         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
82518         use the replacement function; it wouldn't resolve at link time.
82519         Reported by Volker Borchert.
82520
82521 2002-05-22  Jim Meyering  <meyering@lucent.com>
82522
82523         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
82524         file-type.h.
82525         * lib/file-type.h: New file.
82526         * lib/file-type.c (file_type): New file/function.  Extracted from
82527         diffutils.
82528
82529 2002-04-30  Jim Meyering  <meyering@lucent.com>
82530
82531         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
82532
82533 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82534
82535         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
82536
82537 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82538
82539         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
82540         Do not check for alloca.h (no longer used) or stdbool.h (was never
82541         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
82542
82543 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82544
82545         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
82546
82547 2002-04-29  Jim Meyering  <meyering@lucent.com>
82548
82549         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
82550         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
82551         Use AC_FUNC_STRNLEN here instead.
82552
82553         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
82554         With autoconf-2.53a, it's part of AC_PROG_CC.
82555
82556 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82557
82558         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
82559         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
82560
82561 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82562
82563         * lib/sig2str.h, lib/sig2str.c: New files.
82564         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
82565
82566 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82567
82568         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
82569         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
82570         of 127, since 64 is the largest conceivable number for ancient
82571         nonstandard hosts.
82572         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
82573
82574 2002-04-28  Jim Meyering  <meyering@lucent.com>
82575
82576         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
82577
82578 2002-04-24  Jim Meyering  <meyering@lucent.com>
82579
82580         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
82581         (jm_PREREQ): Use it.
82582
82583         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
82584         mach/mach.h fcntl.h.
82585         Check for this function: setlocale.
82586
82587 2002-04-24  Jim Meyering  <meyering@lucent.com>
82588
82589         * lib/gettext.h: New file, from Gettext.
82590         * lib/Makefile.am (INCLUDES): Remove -I../intl.
82591         (libfetish_a_SOURCES): Add gettext.h.
82592
82593 2002-04-16  Jim Meyering  <meyering@lucent.com>
82594
82595         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
82596         ut_pid, ut_id, ut_exit.
82597
82598 2002-04-16  Jim Meyering  <meyering@lucent.com>
82599
82600         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
82601         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
82602         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
82603
82604 2002-04-12  Jim Meyering  <meyering@lucent.com>
82605
82606         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
82607         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
82608         existence of the getmntinfo function.  Needed for Darwin 5.3.
82609
82610         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
82611         This is necessary at least on Darwin 5.3.
82612
82613         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
82614         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
82615         strnlen.o in the library, and that makes some versions of ranlib
82616         object.
82617
82618 2002-04-12  Jim Meyering  <meyering@lucent.com>
82619
82620         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
82621
82622 2002-04-09  Jim Meyering  <meyering@lucent.com>
82623
82624         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
82625         to be more precise.  Rather than saying we're checking whether the
82626         function `works', say what we're testing.
82627         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
82628         Reported by Bruno Haible.
82629
82630 2002-03-10  Jim Meyering  <meyering@lucent.com>
82631
82632         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
82633         Suggestion from Santiago Vila.
82634
82635 2002-03-08  Jim Meyering  <meyering@lucent.com>
82636
82637         * lib/rename.c: Mention that this wrapper is needed also on
82638         mips-dec-ultrix4.4 systems.
82639
82640 2002-03-02  Jim Meyering  <meyering@lucent.com>
82641
82642         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
82643         not HAVE_CLOCK_SETTIME.
82644
82645 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82646
82647         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
82648         Check for clock_settime.
82649
82650 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82651
82652         * lib/nanosleep.h: Rename to....
82653         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
82654
82655         * lib/gettime.c: New file.
82656         * lib/settime.c: New file.
82657         * lib/stime.c: Remove.
82658
82659         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
82660         timespec.h.  Remove nanosleep.h.
82661
82662 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82663
82664         * m4/acl.m4: New file.
82665         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
82666         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
82667
82668 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82669
82670         * lib/acl.c, lib/acl.h: New files.
82671         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
82672
82673 2002-02-24  Jim Meyering  <meyering@lucent.com>
82674
82675         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
82676         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
82677         cause trouble.  Reported by Nelson Beebe.
82678
82679 2002-02-23  Paul Eggert  <eggert@twinsun.com>
82680
82681         * lib/path-concat.c (xpath_concat): Reorder code to pacify
82682         compilers that don't know that xalloc_die never returns.
82683
82684 2002-02-20  Jim Meyering  <meyering@lucent.com>
82685
82686         * lib/getdate.c: Regenerate using bison-1.33.
82687
82688 2002-02-17  Jim Meyering  <meyering@lucent.com>
82689
82690         * config/config.guess (main): Don't use `head -1'; it's no longer
82691         portable. Use `sed 1q' instead.
82692
82693 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
82694
82695         * m4/codeset.m4: Upgrade to gettext-0.11.
82696         * m4/gettext.m4: Upgrade to gettext-0.11.
82697         * m4/glibc21.m4: Upgrade to gettext-0.11.
82698         * m4/iconv.m4: Upgrade to gettext-0.11.
82699         * m4/isc-posix.m4: Upgrade to gettext-0.11.
82700         * m4/lcmessage.m4: Upgrade to gettext-0.11.
82701         * m4/lib-ld.m4: New file, from gettext-0.11.
82702         * m4/lib-link.m4: New file, from gettext-0.11.
82703         * m4/lib-prefix.m4: New file, from gettext-0.11.
82704         * m4/progtest.m4: Upgrade to gettext-0.11.
82705
82706 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82707
82708         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
82709         (jm_PREREQ): Use it.
82710
82711 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82712
82713         * lib/posixver.c, lib/posixver.h: New files.
82714         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82715
82716 2002-02-02  Paul Eggert  <eggert@twinsun.com>
82717             Bruno Haible  <bruno@clisp.org>
82718
82719         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
82720         (fwrite_success_callback): New declaration.
82721         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
82722         print_unicode_char. Call failure callback instead of error.
82723         (fwrite_success_callback): New function.
82724         (exit_failure_callback): New function.
82725         (fallback_failure_callback): New function.
82726         (print_unicode_char): Call unicode_to_mb.
82727
82728 2002-01-26  Jim Meyering  <meyering@lucent.com>
82729
82730         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
82731         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
82732
82733 2002-01-26  Jim Meyering  <meyering@lucent.com>
82734
82735         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
82736
82737 2002-01-22  Paul Eggert  <eggert@twinsun.com>
82738
82739         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
82740
82741 2002-01-22  Jim Meyering  <meyering@lucent.com>
82742
82743         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
82744         Otherwise, some versions of automake would omit the rule that makes
82745         Makefile from Makefile.in.
82746
82747 2002-01-21  Paul Eggert  <eggert@twinsun.com>
82748
82749         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
82750         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82751         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
82752         (memcoll): Set errno to zero if there is no error.
82753
82754         * lib/quotearg.c (quotearg_buffer_restyled):
82755         Fix bug with quoting buffers containing NUL when backslashing escapes.
82756         This bug was exposed by the other changes in this patch.
82757         (quotearg_n_options): New arg ARGSIZE.
82758         All callers changed.
82759         (quoting_options_from_style): New function.
82760         (quotearg_n_style): Use it.
82761         (quotearg_n_style_mem): New function.
82762
82763         * lib/quotearg.h (quotearg_n_style_mem): New function.
82764
82765 2002-01-19  Jim Meyering  <meyering@lucent.com>
82766
82767         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
82768         Remove useless quotes: DF_PROG="df".
82769         * m4/strnlen.m4: New file.
82770
82771 2002-01-16  Paul Eggert  <eggert@twinsun.com>
82772
82773         * lib/backupfile.c (ISDIGIT): Comment fix.
82774         * lib/getdate.y (ISDIGIT): Likewise.
82775         * lib/posixtm.c (ISDIGIT, year): Likewise.
82776         * lib/strverscmp.c (ISDIGIT): Likewise.
82777         * lib/userspec.c (ISDIGIT): Likewise.
82778
82779 2002-01-16  Jim Meyering  <meyering@lucent.com>
82780
82781         * lib/getdate.y: Add three semicolons, each just before a closing
82782         brace. Bison (as of version 1.31) no longer papers over that mistake.
82783
82784 2002-01-05  Jim Meyering  <meyering@lucent.com>
82785
82786         * lib/version-etc.c (version_etc_copyright): Update copyright year.
82787
82788 2001-12-19  Paul Eggert  <eggert@twinsun.com>
82789
82790         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
82791         not silently exit merely because the output buffer happens to
82792         have nothing pending.
82793
82794 2001-12-18  Paul Eggert  <eggert@twinsun.com>
82795
82796         See the big note in ../ChangeLog.
82797         * lib/human.c (suffixes): Prefer K to k for 1024.
82798         (generate_suffix_backwards): New function.
82799         (human_readable_inexact): Use it.
82800         * lib/xstrtol.c (__xstrtol): If there is no number but there
82801         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
82802         Accept 'K' as well as 'k'.
82803
82804 2001-12-15  Jim Meyering  <meyering@lucent.com>
82805
82806         * lib/regex.h (__restrict_arr): Update from libc.
82807
82808         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
82809         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
82810         (STREQ): Define.
82811
82812 2001-12-14  Jim Meyering  <meyering@lucent.com>
82813
82814         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
82815         Suggestion from Bruno Haible.
82816
82817 2001-12-10  Jim Meyering  <meyering@lucent.com>
82818
82819         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
82820         xrealloc, Instead, include "xalloc.h".
82821         (initbuffer): Don't cast xmalloc return value to char*.
82822         (readline): Reword comment.
82823         Don't cast xrealloc return value to char*
82824         Return NULL, not 0.
82825
82826 2001-12-09  Jim Meyering  <meyering@lucent.com>
82827
82828         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
82829         about `signed and unsigned type in conditional expression'.
82830         * lib/posixtm.c (posix_time_parse): Likewise.
82831
82832         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
82833
82834         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
82835         to avoid a pedantic warning.
82836
82837         * lib/getstr.c: Don't include assert.h.
82838         (getstr): Remove warning-evoking assertions.
82839         Return -1 if offset parameter is out of bounds.
82840         Change the type of a local from int to size_t.
82841
82842         * lib/strftime.c (my_strftime_localtime_r): Include this function
82843         definition in the `#if ! HAVE_TM_GMTOFF' block.
82844
82845         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
82846         Include xalloc.h instead.
82847
82848 2001-12-02  Jim Meyering  <meyering@lucent.com>
82849
82850         * lib/tempname.c: Don't declare getenv, thus reverting the change of
82851         2001-11-18.  It's no longer necessary, now that stdlib.h is always
82852         included.
82853
82854         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
82855         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
82856
82857 2001-11-30  Akim Demaille  <akim@epita.fr>
82858
82859         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
82860         before being defined.
82861
82862 2001-11-27  Paul Eggert  <eggert@twinsun.com>
82863
82864         * lib/quotearg.h (quotearg_n, quotearg_n_style):
82865         First arg is int, not unsigned.
82866         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
82867         (SIZE_MAX, UINT_MAX): New macros.
82868         (quotearg_n_options): Abort if N is negative.
82869         Avoid overflow check on hosts where size_t is 64 bits and int
82870         is 32 bits, as overflow is impossible there.
82871         Fix off-by-one typo that caused unnecessary reallocation.
82872
82873 2001-11-27  Jim Meyering  <meyering@lucent.com>
82874
82875         * lib/tempname.c: Merge with version from libc.
82876         * lib/regex.c: Likewise.
82877
82878         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
82879         systems for which STDC_HEADERS is 0, it was not included, resulting in
82880         a warning about an integer-to-pointer conversion problem with getenv.
82881         Reported by Volker Borchert.
82882
82883 2001-11-26  Jim Meyering  <meyering@lucent.com>
82884
82885         * lib/gtod.h: Remove file.
82886         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
82887         * lib/gettimeofday.c: Don't include gtod.h.
82888         (GTOD_init): Remove function.
82889         (rpl_gettimeofday): Do its job here instead, rather than aborting.
82890         Suggestion from Volker Borchert.
82891
82892 2001-11-23  Jim Meyering  <meyering@lucent.com>
82893
82894         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
82895         it.
82896         * lib/hash.c (struct hash_table): Define it here instead.
82897
82898 2001-11-22  Jim Meyering  <meyering@lucent.com>
82899
82900         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82901
82902 2001-11-20  Jim Meyering  <meyering@lucent.com>
82903
82904         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82905         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82906
82907 2001-11-19  Jim Meyering  <meyering@lucent.com>
82908
82909         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82910         directory.  Use "conftestXXXXXX" as the template.
82911         Suggestion from Paul Eggert.
82912
82913         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82914         immediately, so the test doesn't mistakenly hit the max-open-files
82915         limit.
82916
82917 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82918
82919         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82920         (TEMPORARIES): New macro.
82921         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82922         removes an artificial limitation (e.g. HP-UX 10.20, where
82923         TMP_MAX is 17576).
82924
82925 2001-11-18  Jim Meyering  <meyering@lucent.com>
82926
82927         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82928
82929 2001-11-18  Jim Meyering  <meyering@lucent.com>
82930
82931         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82932         on SunOS 4.
82933
82934         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82935         files will be created before anything else.
82936
82937 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82938
82939         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82940         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82941
82942 2001-11-17  Jim Meyering  <meyering@lucent.com>
82943
82944         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82945         Prompted by a report from Bob Proulx.
82946
82947         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82948         Instead, require UTILS_FUNC_MKSTEMP.
82949
82950 2001-11-17  Jim Meyering  <meyering@lucent.com>
82951
82952         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82953         Now, that's done as part of AC_FUNC_STRTOD.
82954
82955 2001-11-17  Jim Meyering  <meyering@lucent.com>
82956
82957         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82958         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82959         rather than group writable.  Patch by Juan F. Codagnone.
82960
82961         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82962         xrealloc, Instead, include "xalloc.h".
82963
82964         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82965         Remove explicit declarations of xmalloc, xrealloc,
82966         and xstrdup.  Instead, include "xalloc.h".
82967
82968         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82969         unlocked-io.h.
82970         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82971         Likewise.
82972         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82973
82974         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82975         Reported by Padraig Brady.
82976
82977         * lib/mkstemp.c: #undef mkstemp.
82978         Include config.h.
82979         (rpl_mkstemp): Rename from mkstemp.
82980         Protoize.
82981
82982 2001-11-16  Jim Meyering  <meyering@lucent.com>
82983
82984         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82985         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82986         determine the amount of total physical memory, use pstat_getstatic.
82987         HPUX-11 doesn't define _SC_PHYS_PAGES.
82988         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82989         If sysconf couldn't be used to determine the amount of available
82990         physical memory, use both pstat_getstatic and pstat_getdynamic.
82991         Based on a patch from Bob Proulx.
82992
82993 2001-11-10  Jim Meyering  <meyering@lucent.com>
82994
82995         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82996         (jm_PREREQ): Use it.
82997
82998 2001-11-09  Jim Meyering  <meyering@lucent.com>
82999
83000         * m4/jm-macros.m4: Require autoconf-2.52f.
83001         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
83002         Use these AC_-prefixed names, not the AM_-prefixed ones.
83003
83004         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
83005
83006 2001-11-05  Jim Meyering  <meyering@lucent.com>
83007
83008         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
83009
83010 2001-11-04  Jim Meyering  <meyering@lucent.com>
83011
83012         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
83013         $DEFS.
83014
83015 2001-11-03  Jim Meyering  <meyering@lucent.com>
83016
83017         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
83018         of AC_DEFUN.
83019
83020         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
83021         know the name of the variable in the macro definition.
83022
83023 2001-11-03  Jim Meyering  <meyering@lucent.com>
83024
83025         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
83026         in argmatch_to_argument call.
83027
83028         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
83029         argument.
83030
83031         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
83032         e.g., a fault due to an attempt to free a NULL pointer.
83033
83034 2001-11-01  Jim Meyering  <meyering@lucent.com>
83035
83036         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
83037         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
83038
83039 2001-11-01  Jim Meyering  <meyering@lucent.com>
83040
83041         * lib/dirfd.c, lib/dirfd.h: New files.
83042         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
83043
83044         * lib/hash.c (hash_print) [TESTING]: Clean up.
83045
83046 2001-10-22  Paul Eggert  <eggert@twinsun.com>
83047
83048         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
83049         to avoid a warning if -Wall.
83050
83051 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
83052
83053         * README: New file
83054         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
83055         (per RMS's instructions, this is now the canonical source)
83056         * lgpl/, gpl/: New directories.
83057
83058 2001-10-21  Paul Eggert  <eggert@twinsun.com>
83059
83060         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
83061
83062 2001-10-21  Jim Meyering  <meyering@lucent.com>
83063
83064         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
83065         this code would end up calling gettext even in packages built
83066         with --disable-nls.
83067         * lib/getopt.c (_): Likewise.
83068         * lib/regex.c (_): Likewise.
83069
83070 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83071
83072         * m4/error.m4 (jm_PREREQ_ERROR):
83073         Do not invoke AC_CHECK_FUNCS with strerror_r, as
83074         AC_FUNC_STRERROR_R does that.
83075         Check for strerror declaration.
83076
83077         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
83078         are supposed to have them these days.
83079         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
83080         Merge changes from latest Autoconf CVS.
83081         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
83082         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
83083         POSIX decided to standardize on the int flavor of strerror_r.
83084
83085 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83086
83087         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
83088         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
83089         Use strerror_r that is only a macro, even if it is not a function.
83090         (strerror): Check for HAVE_DECL_STRERROR before declaring.
83091         (private_strerror): Use prototypes, not old-style function definition.
83092         (print_errno_message): New function.
83093         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
83094         char*-flavored one.
83095         (error_tail, error, error_at_line): Use it.
83096
83097 2001-10-11  Jim Meyering  <meyering@lucent.com>
83098
83099         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
83100         and quote_n (1, ... to avoid clobbering a buffer.
83101
83102 2001-10-05  Jim Meyering  <meyering@lucent.com>
83103
83104         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
83105         hash-pjw.h.
83106         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
83107         * lib/hash-pjw.h: New file.
83108
83109 2001-09-30  Jim Meyering  <meyering@lucent.com>
83110
83111         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
83112         `struct fsstat' has the `f_fstypename' member.
83113         Use that to define FS_TYPE, which is now used to make
83114         the getfsstat link test tighter.
83115
83116 2001-09-30  Jim Meyering  <meyering@lucent.com>
83117
83118         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
83119         Include <sys/ucred.h>, for Apple Darwin.
83120         Include sys/mount.h and sys/fs_types.h only if available.
83121         (FS_TYPE): Define.
83122         (read_filesystem_list): Use FS_TYPE.
83123
83124 2001-09-29  Paul Eggert  <eggert@twinsun.com>
83125
83126         * lib/exclude.c (excluded_filename): 0 -> false, since it's
83127         a boolean context.
83128
83129 2001-09-29  Jim Meyering  <meyering@lucent.com>
83130
83131         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83132         [one-argument getmntent function]): Include stdio.h before mntent.h.
83133         SunOS 4.1.x needs it for the declaration of `FILE'.
83134         Patch by Volker Borchert.
83135
83136         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83137         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
83138         sys/fs_types.h, and make the link-test for getfsstat guard #include
83139         directives with appropriate #if HAVE_*_H tests so that we can
83140         detect getfsstat on Apple Darwin1.3.7 systems.
83141         Reported by Nelson Beebe.
83142         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
83143
83144 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83145
83146         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83147         #defines strtoimax.  Also treat the other strto* functions
83148         like strtoimax.
83149
83150         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83151         Check for strtoul and strtoumax,
83152         as those declarations are made even in the signed case.
83153         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
83154         Likewise, for strtol and strtoimax.
83155
83156 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83157
83158         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83159         #defines strtoimax.  Also treat the other strto* functions
83160         like strtoimax.
83161
83162         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
83163         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
83164         (strtoimax, strtoumax): Do not declare if already defined as a macro.
83165
83166 2001-09-26  Jim Meyering  <meyering@lucent.com>
83167
83168         Most macros in unlocked-io.h had the wrong number of arguments.
83169         * lib/gen-uio: New script.
83170         (USE_UNLOCKED_IO): Define to 1 if not already defined.
83171         * lib/unlocked-io.hin: Remove file.
83172         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
83173         rather than trying to embed it here.
83174         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
83175         Reported by Padraig Brady.
83176
83177 2001-09-25  Volker Borchert  <bt@teknon.de>
83178
83179         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
83180         `result'.
83181
83182 2001-09-24  Jim Meyering  <meyering@lucent.com>
83183
83184         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
83185
83186 2001-09-23  Jim Meyering  <meyering@lucent.com>
83187
83188         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
83189         instead of the mere test for existence of mntent.h.  The latter
83190         would get a false-positive on AIX 3.4 systems.
83191         In the outer getmntent if-block, don't die if neither of the getmntent
83192         tests succeeds.  Instead, just fall through and continue with the
83193         remaining tests.
83194
83195 2001-09-23  Jim Meyering  <meyering@lucent.com>
83196
83197         * lib/mountlist.c: Remove useless parentheses in #if directives.
83198         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
83199         the deprecated MOUNTED symbol is no longer defined in mntent.h.
83200
83201 2001-09-22  Jim Meyering  <meyering@lucent.com>
83202
83203         * m4/gettext.m4: New file.  From gettext.
83204         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
83205         * m4/progtest.m4: Likewise
83206         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
83207         * m4/glibc21.m4: Likewise.
83208
83209         * m4/libintl.m4: Remove.  No longer used.
83210
83211 2001-09-22  Jim Meyering  <meyering@lucent.com>
83212
83213         * lib/localcharset.c: Update from latest gettext.
83214         * lib/config.charset: Likewise.
83215
83216 2001-09-20  Jim Meyering  <meyering@lucent.com>
83217
83218         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
83219         strtoimax.
83220         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
83221         strtoumax.
83222
83223 2001-09-20  Jim Meyering  <meyering@lucent.com>
83224
83225         * lib/xstrtol.c (strtoimax): Guard declaration with
83226         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
83227         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
83228         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
83229         (strtoumax): Likewise, for completeness (it wasn't necessary).
83230
83231 2001-09-17  Paul Eggert  <eggert@twinsun.com>
83232
83233         * lib/strtoimax.c (HAVE_LONG_LONG):
83234         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
83235         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
83236         to work around bug in IBM C compiler.
83237
83238 2001-09-17  Jim Meyering  <meyering@lucent.com>
83239
83240         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
83241         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
83242         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
83243         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
83244         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
83245         whenever the right hand side need not be expanded by the shell.
83246
83247 2001-09-16  Paul Eggert  <eggert@twinsun.com>
83248
83249         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
83250         library.  It's not correct, as some older glibcs are buggy.
83251         fnmatch wasn't fixed until glibc 2.2.
83252
83253         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
83254         special shell magic here.
83255
83256 2001-09-16  Jim Meyering  <meyering@lucent.com>
83257
83258         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
83259         * m4/jm-macros.m4: Require it.
83260
83261 2001-09-16  Jim Meyering  <meyering@lucent.com>
83262
83263         * lib/mkdir.c: New file.
83264
83265 2001-09-15  Jim Meyering  <meyering@lucent.com>
83266
83267         * m4/jm-macros.m4: Check for help2man.
83268
83269 2001-09-11  Jim Meyering  <meyering@lucent.com>
83270
83271         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
83272         The body, by Paul Eggert, was moved here from configure.in.
83273         * m4/jm-macros.m4: Require UTILS_HOST_OS.
83274
83275 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83276
83277         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
83278         (jm_PREREQ): Use it.
83279
83280 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83281
83282         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
83283         Use ssize_t, not int, to store result of readlink.
83284         Check for ssize_t overflow as well as size_t overflow,
83285         as POSIX says the result of readlink is implementation-defined
83286         when ssize_t overflows.
83287         Remove unnecessary cast to char*.
83288         Use free+malloc instead of realloc, as the storage doesn't need
83289         to be preserved and it's clearer and can be more efficient that way.
83290         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
83291         * lib/xreadlink.h (xreadlink): Update prototype.
83292
83293 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83294
83295         * lib/xgetcwd.c: Revert some of the previous change; intead,
83296         fix the HAVE_GETCWD_NULL code to behave more like the
83297         !HAVE_GETCWD_NULL code used to.
83298
83299         Include "xalloc.h".
83300         (xgetcwd): Do not return NULL when memory is exhausted; instead,
83301         invoke xalloc_die.
83302
83303 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83304
83305         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
83306         sys/param.h, as pathmax.h includes them.
83307
83308 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83309
83310         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
83311         (jm_PREREQ_XGETCWD): New macro.
83312
83313         * m4/getcwd.m4: New file.
83314
83315 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83316
83317         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
83318         like the HAVE_GETCWD_NULL code.
83319         Include pathmax.h if not HAVE_GETCWD.
83320         Do not include xalloc.h.
83321         (INITIAL_BUFFER_SIZE): New symbol.
83322         Do not use xmalloc / xrealloc, since the caller is responsible for
83323         handling errors.  Preserve errno around `free' during failure.
83324         Do not overrun buffer when using getwd.
83325
83326 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83327
83328         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
83329         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
83330         getcwd (NULL, 0).
83331
83332 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83333
83334         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
83335         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
83336         spotted by Jim Meyering.
83337
83338 2001-09-03  Jim Meyering  <meyering@lucent.com>
83339
83340         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
83341         failure.
83342
83343 2001-09-02  Jim Meyering  <meyering@lucent.com>
83344
83345         * lib/error.c: Update from GNU libc.
83346
83347 2001-09-01  Jim Meyering  <meyering@lucent.com>
83348
83349         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
83350         Used by df.
83351
83352 2001-09-01  Jim Meyering  <meyering@lucent.com>
83353
83354         * lib/xreadlink.c: New file.
83355         * lib/xreadlink.h: New file.
83356         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
83357         xreadlink.h.
83358
83359         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
83360         doesn't conflict with sparc Solaris 7's definition in
83361         /usr/include/sys/int_types.h.
83362
83363         * lib/exclude.c: Use `""', not `<>' to #include non-system header
83364         files.
83365         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
83366         and strncasecmp as r-values.  Unixware didn't have declarations.
83367
83368 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83369
83370         * lib/xstrtol.h: Add copyright notice.
83371         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
83372         LONGINT_INVALID_SUFFIX_CHAR.
83373
83374 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83375
83376         * lib/xstrtol.c (strtoimax): New decl.
83377
83378 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83379
83380         * lib/xgetcwd.c: Don't include pathmax.h.
83381         Include stdlib.h and unistd.h if available.
83382         Include xalloc.h.
83383         (xmalloc, xstrdup, free): Remove decls.
83384         (xgetcwd): Don't assume sizes fit in unsigned.
83385         Check for overflow when computing sizes.
83386         Simplify reallocation code.
83387
83388 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83389
83390         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
83391         a directory's st_size can have an arbitrary value, so the old
83392         usage could waste an arbitrary amount of memory.  All uses
83393         changed.
83394         * lib/savedir.h: Update prototype.
83395
83396 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83397
83398         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
83399
83400         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
83401         old strtoimax.c.
83402
83403         Also, make the following further changes to make this file's
83404         configuration more similar to that of strtol.c:
83405         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
83406         (strtoumax, uintmax_t, strtoull, strtol): Remove.
83407         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
83408         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
83409         changed to signed values.
83410
83411         And make the following changes as well:
83412         Fix copyright notice, as 1999 was missing.
83413         (verify): New macro.
83414         (strtoimax): Check sizes at compile-time, not run-time.
83415         Prefer strtol to strtoll if both work.
83416         (main): Remove; it was not that useful and was a pain to maintain.
83417
83418         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
83419
83420 2001-08-31  Jim Meyering  <meyering@lucent.com>
83421
83422         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
83423         Use an initial, malloc'd, buffer of length 128 rather than
83424         a statically allocated one of length 1024.
83425
83426 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83427
83428         Simplify code, partly by assuming autoconf 2.52 semantics.
83429
83430         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
83431
83432         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
83433         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
83434         All uses removed.
83435         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
83436         Move AC_REQUIRE to next-to-top level, to avoid confusion.
83437         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
83438         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
83439         jm_AC_HEADER_INTTYPES_H.
83440         * m4/jm-macros.m4 (jm_MACROS): Likewise.
83441
83442         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
83443
83444         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83445         Quote first arg of AC_DEFUN.
83446         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
83447         since they are needed to parse the include file even if we need
83448         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
83449         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
83450         but with opposite signedness.
83451
83452 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83453
83454         Merge 'exclude' changes from tar 1.13.22.
83455         This fixes one or two unlikely storage allocation overflow bugs,
83456         but doesn't change user-visible behavior otherwise.
83457
83458 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83459
83460         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
83461         (jm_PREREQ_EXCLUDE): New macro.
83462
83463 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83464
83465         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
83466         tm to be declared.
83467
83468 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83469
83470         * lib/hash.c: Remove '2001' from copyright notice.
83471
83472 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83473
83474         * lib/full-write.h: New file.
83475         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
83476         * lib/full-write.c: Correct credits, as cccp.c no longer
83477         exists and anyway it was so heavily changed from the old cccp
83478         code as to be unrecognizable.  Include full-write.h.
83479         (full_write): Return size_t, with short writes meaning failure.
83480         All callers changed.  This fixes a bug with large buffers
83481         on 64-bit hosts.
83482         * lib/utime.c: Include full-write.h.
83483
83484 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83485
83486         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
83487         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
83488         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
83489         Include if available.
83490         (<xalloc.h>): Include
83491         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
83492         (verify): New macro.  Use it to verify that EXCLUDE macros do not
83493         collide with FNM macros.
83494         (struct patopts): New struct.
83495         (struct exclude): Use it, as exclude patterns now come with options.
83496         (new_exclude): Support above changes.
83497         (new_exclude, add_exclude_file):
83498         Initial size must now be a power of two to simplify overflow checking.
83499         (free_exclude, fnmatch_no_wildcards): New function.
83500         (excluded_filename): No longer requires options arg, as the options
83501         are determined by add_exclude.  Now returns bool, not int.
83502         (excluded_filename, add_exclude):
83503         Add support for the fancy new exclusion options.
83504         (add_exclude, add_exclude_file): Now takes int options arg.
83505         Check for arithmetic overflow when computing sizes.
83506         (add_exclude_file): xrealloc might modify errno, so don't
83507         realloc until after errno might be used.
83508
83509         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
83510         New macros.
83511         (free_exclude): New decl.
83512         (add_exclude, add_exclude_file): Now takes int options arg.
83513         (excluded_filename): No longer requires options arg, as the options
83514         are determined by add_exclude.  Now returns bool, not int.
83515
83516 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83517
83518         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
83519
83520 2001-08-27  Jim Meyering  <meyering@lucent.com>
83521
83522         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
83523
83524         * lib/version-etc.c (N_): Remove definition.
83525         Revert most of last change.
83526         Instead, simply don't mark the `Copyright...' string for translation.
83527         Based on advice from Paul Eggert.
83528
83529         * lib/strtoxmax.c: Tweak comment.
83530
83531 2001-08-26  Jim Meyering  <meyering@lucent.com>
83532
83533         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
83534
83535         * m4/xstrtoimax.m4: New file.
83536         * m4/xstrtoumax.m4: Add comments explaining why we
83537         AC_REPLACE_FUNCS(strtol).
83538
83539 2001-08-26  Jim Meyering  <meyering@lucent.com>
83540
83541         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
83542         of copyright with `%s' so translators don't get an untranslated
83543         message in 2002.
83544         (COPYRIGHT_YEAR): Define.
83545         (version_etc): Use fprintf rather than fputs.
83546         Suggestion from Ulrich Drepper.
83547
83548         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
83549
83550         * lib/strtoll.c: New file, from GNU libc.
83551         * lib/xstrtoimax.c: New file.
83552
83553         * lib/xstrtol.h: Add xstrtoimax.
83554         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
83555         * lib/strtoimax.c: New file.  Likewise, but first define
83556         STRTOUXMAX_SIGNED.
83557
83558         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
83559         ...
83560         * lib/strtoxmax.c: ... then renamed to this.
83561
83562 2001-08-18  Paul Eggert  <eggert@twinsun.com>
83563
83564         * m4/inttypes.m4: Add AC_PREREQ(2.13).
83565         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
83566         (jm_AC_TYPE_INTMAX_T): New macro.
83567         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
83568
83569         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
83570
83571         * m4/longlong.m4: Renamed from ulonglong.m4.
83572         * m4/inttypes.m4: Renamed from inttypes_h.m4.
83573         * m4/uintmax_t.m4: Removed.
83574
83575 2001-08-13  Paul Eggert  <eggert@twinsun.com>
83576
83577         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
83578         Port to Solaris 8, where 'sed' requires a space after the 'r'
83579         command, and where sh dislikes "$/".  Clean up the spacing a bit.
83580         Redirect output to $tmp just once.
83581
83582 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
83583
83584         * lib/addext.c (<errno.h>): Include.
83585         (errno): Declare if not defined.
83586         (addext): Work correctly when pathconf returns -1 and leaves
83587         errno alone because there is no limit.  Also, work even if
83588         pathconf returns a value greater than SIZE_MAX.
83589
83590 2001-08-12  Jim Meyering  <meyering@lucent.com>
83591
83592         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
83593         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
83594         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
83595         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
83596         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
83597         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
83598         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
83599         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
83600         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
83601         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
83602         utime.m4, utimes.m4, xstrtoumax.m4:
83603         Quote the first argument in each use of AC_DEFUN.
83604
83605 2001-08-12  Jim Meyering  <meyering@lucent.com>
83606
83607         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
83608         Simply `return getcwd (NULL, 0);'.
83609         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
83610         Use 1300 as initial value for length, not PATH_MAX.
83611
83612         * lib/pathmax.h: Clean up cpp syntax.
83613
83614 2001-08-12  Jim Meyering  <meyering@lucent.com>
83615
83616         * lib/gettimeofday.c: New file.
83617         * lib/gtod.h: New file.
83618         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
83619
83620 2001-08-05  Jim Meyering  <meyering@lucent.com>
83621
83622         * m4/jm-macros.m4: Require autoconf-2.52.
83623
83624 2001-08-04  Jim Meyering  <meyering@lucent.com>
83625
83626         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
83627         stmt, to get in sync with glibc.
83628
83629 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83630
83631         The following changes are from gettext 0.10.39 as maintained by
83632         Bruno Haible.
83633
83634         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
83635         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
83636         with inverted sense.  All uses changed.
83637
83638         * lib/mbswidth.c: Don't include <limits.h>.
83639         Include <stdlib.h> and <string.h> unconditionally.
83640         (iswcntrl, mbsinit, ISCNTRL): New macros.
83641         (mbsnwidth): Use K&R style function declarations.
83642         Don't bother checking for MB_LEN_MAX == 1, since the compiler
83643         can optimize it when MB_CUR_MAX == 1.
83644         The width of control characters is zero, not 1.
83645
83646 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83647
83648         The following changes are from gettext 0.10.39 as maintained by
83649         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
83650
83651         * m4/codeset.m4: Upgrade to serial AM1.
83652         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
83653         all uses changed.  Quote first arg of AC_DEFUN.
83654         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
83655
83656         * m4/iconv.m4: Upgrade to serial AM2.
83657         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
83658         Add --with-libconv-prefix.
83659         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
83660         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
83661         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
83662         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
83663         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
83664
83665         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
83666         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
83667         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
83668         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
83669         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
83670         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
83671         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83672         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
83673         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
83674
83675         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
83676         string.h any more.
83677
83678         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
83679         not the default value.
83680
83681         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
83682         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
83683         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
83684         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
83685         Also check for iswcntrl, used for wcwidth fallback.
83686         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
83687         to Autoconf 2.13.
83688
83689 2001-08-03  Jim Meyering  <meyering@lucent.com>
83690
83691         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
83692         as it was in the original.  Reported by Paul Eggert.
83693
83694 2001-07-16  Jim Meyering  <meyering@lucent.com>
83695
83696         * m4/gettimeofday.m4: New file.
83697         Prompted by a report from Bernhard Baehr.
83698
83699 2001-07-15  Jim Meyering  <meyering@lucent.com>
83700
83701         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
83702         stuff. Now it's in ../Makefile.cfg.
83703
83704 2001-07-15  Jim Meyering  <meyering@lucent.com>
83705
83706         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
83707         (BUILT_SOURCES): Add unlocked-io.h.
83708         (io_functions): Define.
83709         (unlocked-io.h): New rule.
83710         (DISTCLEANFILES): Add unlocked-io.h.
83711         (all-local): Depend on unlocked-io.h, to ensure it is created.
83712
83713         * lib/unlocked-io.hin: New file
83714
83715         * lib/regex.c: Update from glibc.
83716
83717 2001-07-05  Jim Meyering  <meyering@lucent.com>
83718
83719         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
83720         recommendation.
83721         (libfetish_a_SOURCES): Put all .h files here instead.
83722         Remove a thus-exposed (better checks in automake) duplicate and
83723         two unnecessary .h files.
83724
83725 2001-07-04  Jim Meyering  <meyering@lucent.com>
83726
83727         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
83728         that generates jm-glibc-io.m4 so that it doesn't trigger any make
83729         distcheck failure.
83730
83731 2001-07-02  Jim Meyering  <meyering@lucent.com>
83732
83733         The following changes were prompted by suggestions from Bruno Haible.
83734
83735         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
83736         is now generated.
83737         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
83738         definition of EXTRA_DIST.
83739         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
83740         ensure that the generated file is created/updated whenever the list
83741         of $(unlocked_functions) is changed.
83742         (jm-glibc-io.m4): New rule.
83743         (unlocked-io.h): New rule -- currently unused.
83744
83745 2001-06-24  Jim Meyering  <meyering@lucent.com>
83746
83747         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
83748         unmatched right bracket, rather than kludging it with an extra,
83749         falsely-matching quote in a comment.  Patch by Akim Demaille.
83750
83751 2001-06-11  Jim Meyering  <meyering@lucent.com>
83752
83753         * lib/regex.c: Update from GNU libc.
83754
83755 2001-05-27  Jim Meyering  <meyering@lucent.com>
83756
83757         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
83758         Check for ut_type in struct utmp.
83759
83760 2001-05-27  Jim Meyering  <meyering@lucent.com>
83761
83762         * lib/readutmp.h (UT_TYPE): Define.
83763
83764 2001-05-24  Jim Meyering  <meyering@lucent.com>
83765
83766         * lib/argmatch.c: Include "quote.h".
83767         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
83768         quote function.  Reported by Göran Uddeborg.
83769
83770 2001-05-22  Jim Meyering  <meyering@lucent.com>
83771
83772         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
83773         now that we use the package-supplied version unconditionally.
83774         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
83775
83776 2001-05-21  Jim Meyering  <meyering@lucent.com>
83777
83778         * m4/regex.m4: Change a couple backticks to single quotes to avoid
83779         shell syntax errors.
83780
83781 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83782
83783         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
83784
83785 2001-05-20  Paul Eggert  <eggert@twinsun.com>
83786
83787         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
83788         Don't bother to check library strftime, since
83789         we'll be using our own my_strftime function anyway.
83790         Define my_strftime instead of strftime.
83791
83792 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
83793
83794         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
83795         which is not yet declared.
83796
83797 2001-05-15  Jim Meyering  <meyering@lucent.com>
83798
83799         * m4/regex.m4: Use proper quoting so brackets appear in the test
83800         program.
83801         Reported by, and with help from, Bruno Haible.
83802
83803 2001-05-13  Jim Meyering  <meyering@lucent.com>
83804
83805         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
83806         undefined.
83807
83808 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83809
83810         dirname code cleanup.  base_name now behaves more compatibly
83811         with POSIX basename when given file names that have trailing
83812         slashes, and similarly for dir_name.  Add new primitives
83813         base_len and dir_len.  Put the directory-name-related decls
83814         into dirname.h.
83815
83816         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
83817         * lib/backupfile.c (base_name): Likewise.
83818         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
83819         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
83820         * lib/makepath.c (strip_trailing_slashes): Likewise.
83821         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
83822         ISSLASH): Likewise.
83823         * lib/rename.c (strip_trailing_slashes): Likewise.
83824         * lib/same.c (base_name): Likewise.
83825         * lib/stripslash.c (ISSLASH): Likewise.
83826
83827         * lib/addext.c: Include <dirname.h> after size_t is defined.
83828         * lib/backupfile.c: Likewise.
83829
83830         * lib/addext.c (addext): Use base_len to trim redundant
83831         trailing slashes instead of doing it ourselves.
83832         But do not trim the last slash if it is not redundant.
83833
83834         * lib/backupfile.c (find_backup_file_name,
83835         max_backup_version): Use base_len instead of rolling it ourselves.
83836         Handle the case of "" and (on DOS) "C:" correctly.
83837
83838         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
83839         needed. Include <string.h>, <dirname.h>.
83840         (base_name): Allow file names ending in slashes, other than names
83841         that are all slashes.  In this case, return the basename followed
83842         by the slashes.  This is more general, and can be used in places
83843         where the original base_name purposely had an assertion failure.
83844         (base_len): New function.
83845
83846         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
83847         Do not include <assert.h>; no longer needed.
83848         Include xalloc.h.
83849         (memrchr): Remove decl.
83850         (dir_name_r): Remove.
83851         (dir_len): Renamed from dirlen.  All callers changed.
83852         Rewrite in terms of base_name, for simplicity and consistency.
83853         (dir_name): Never return NULL.  All callers changed.
83854         Do not include <stdlib.h> in test program; no longer needed.
83855         return 0; is fine for test program.
83856
83857         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
83858         New macros.
83859         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
83860
83861         * lib/path-concat.c (path_concat): Use base_len to compute
83862         base length, not strlen; this means we cannot rely on memcpy
83863         to null-terminate.
83864
83865         * lib/same.c (STREQ): Remove.
83866         (same_name): Handle the case where the basename ends in trailing '/'.
83867
83868         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
83869         a slash was stripped.  Do not strip the last slash after a
83870         file system prefix.
83871
83872 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83873
83874         * lib/Makefile.am (libfetish_a_SOURCES):
83875         Add strftime.c, since we now compile it on all hosts.
83876
83877         * lib/strftime.c (my_strftime):
83878         Define to nstrftime if emacs, but only if my_strftime is not defined.
83879         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
83880         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
83881         Add one more extra argument: a nanoseconds value.
83882         All uses changed.
83883         (ns): New macro.
83884         (my_strftime function): Add %N format.
83885         (emacs_strftimeu): Renamed from emacs_strftime,
83886         with extra ut argument.
83887
83888 2001-05-09  Paul Eggert  <eggert@twinsun.com>
83889
83890         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
83891
83892 2001-04-21  Jim Meyering  <meyering@lucent.com>
83893
83894         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
83895         doesn't interfere.
83896
83897 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83898
83899         * m4/ftruncate.m4: Check for chsize.
83900         Link with ftruncate.o unconditionally if ftruncate is missing.
83901         This was required when cross-compiling to i586-mingw32msvc.
83902
83903 2001-04-08  Jim Meyering  <meyering@lucent.com>
83904
83905         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83906         recomputed; that's necessary when the offset spans a DST transition.
83907         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83908
83909 2001-04-02  Jim Meyering  <meyering@lucent.com>
83910
83911         * lib/regex.h, regex.c: Update from GNU libc.
83912
83913 2001-03-24  Jim Meyering  <meyering@lucent.com>
83914
83915         * m4/jm-macros.m4: Require autoconf-2.49d.
83916
83917 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83918
83919         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83920
83921 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83922
83923         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83924
83925 2001-03-17  Jim Meyering  <meyering@lucent.com>
83926
83927         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83928         now that the version in autoconf is equivalent.
83929         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83930
83931         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83932         Suggestion from Akim Demaille.
83933
83934         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83935         (jm_PREREQ_TEMPNAME): New function.
83936
83937 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83938
83939         * lib/tempname.c (uint64_t): Define to uintmax_t if
83940         not defined, and if UINT64_MAX is not defined.
83941         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83942         Reported by John David Anglin.
83943
83944 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83945
83946         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83947         resolve alias if codeset is empty.
83948         * lib/config.charset (BeOS): Use wildcard syntax.
83949
83950 2001-03-13  Jim Meyering  <meyering@lucent.com>
83951
83952         * lib/path-concat.c (path_concat)
83953         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83954         concatenating e.g., `C:' and `foo'.
83955         From Bruno Haible.
83956
83957 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83958
83959         * lib/localcharset.c (locale_charset): Don't use
83960         setlocale(LC_CTYPE,NULL). Don't return NULL.
83961         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83962
83963 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83964
83965         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83966         support for DOS/DJGPP.
83967
83968 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83969
83970         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83971         lacks mkstemp.  Compile our own tempname.c if we compile our own
83972         mkstemp.c, as mkstemp relies on tempname.
83973
83974 2001-03-01  Jim Meyering  <meyering@lucent.com>
83975
83976         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83977         AH_VERBATIM really does output its argument verbatim.
83978
83979 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83980
83981         * lib/Makefile.am (libfetish_a_SOURCES):
83982         Add dup-safer.c, fopen-safer.c.
83983         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83984
83985         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83986         * lib/unistd-safer.h: New files.
83987
83988 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83989
83990         The mkstemp replacement is taken from glibc 2.2.2, with some
83991         portability fixes for use outside glibc, as follows:
83992
83993         * lib/tempname.c (struct_stat64): New macro.
83994         (direxists, __gen_tempname): Use it.
83995         This avoids a portability problem with Solaris 8.
83996
83997         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83998         (<stddef.h>, <stdint.h>, <string.h>):
83999         Include only if STDC_HEADERS || _LIBC.
84000         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
84001         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
84002         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
84003         (__set_errno): Define this macro if <errno.h> doesn't.
84004         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
84005         Define these macros if <stdio.h> doesn't.
84006         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
84007         Define these macros if <sys/stat.h>
84008         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
84009         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
84010         __xstat64): Define if not _LIBC.
84011         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
84012         (__gen_tempname): Invoke gettimeofday only if
84013         HAVE_GETTIMEOFDAY || _LIBC;
84014         otherwise, fall back on plain "time".
84015         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
84016
84017         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
84018
84019         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
84020
84021 2001-02-18  Paul Eggert  <eggert@twinsun.com>
84022
84023         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
84024
84025 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84026
84027         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
84028         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
84029         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
84030         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84031
84032 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84033
84034         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
84035         Remove workaround macros for hosts that have mbrtowc but not
84036         mbstate_t, as we now insist on proper declarations for both
84037         before using mbrtowc.
84038
84039 2001-02-17  Jim Meyering  <meyering@lucent.com>
84040
84041         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
84042         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
84043         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
84044         UnixWare 7.1.1.
84045
84046         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
84047         rather than AC_CACHE_VAL.
84048
84049 2001-02-17  Jim Meyering  <meyering@lucent.com>
84050
84051         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
84052         around included file name.
84053
84054         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
84055
84056         * lib/strftime.c: Update from GNU libc (the only changes were to
84057         comments).
84058
84059 2001-02-17  Jim Meyering  <meyering@lucent.com>
84060
84061         * lib/regex.c: Update from libc.
84062
84063 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
84064
84065         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
84066         clash.
84067
84068 2001-02-16  Paul Eggert  <eggert@twinsun.com>
84069
84070         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
84071         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
84072         Reported by Mark Hounschell via Paul Eggert.
84073
84074 2001-02-07  Jim Meyering  <meyering@lucent.com>
84075
84076         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
84077
84078 2001-02-05  Jim Meyering  <meyering@lucent.com>
84079
84080         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
84081         it includes the patch required for `large file' support with at least
84082         HP-UX's 10.20 /bin/cc.
84083
84084 2001-02-03  Jim Meyering  <meyering@lucent.com>
84085
84086         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
84087         AS_IF, now that it works once again (mysteriously).
84088         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84089
84090 2001-01-30  Jim Meyering  <meyering@lucent.com>
84091
84092         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
84093         * m4/chown.m4: Rename conftestchown to conftest.chown.
84094         * m4/rename.m4: s/conftestdir/conftest.d1/ and
84095         s/conftestdir2/conftest.d2/.
84096         * m4/utimes.m4: s/conftestdata/conftest.data/
84097         Inspired by Pavel Roskin's change in autoconf.
84098
84099 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
84100
84101         * lib/config.charset: Update for FreeBSD 4.2.
84102
84103 2001-01-27  Jim Meyering  <meyering@lucent.com>
84104
84105         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
84106         a use of AS_IF.
84107         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84108
84109 2001-01-26  Jim Meyering  <meyering@lucent.com>
84110
84111         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
84112         quotearg.c includes it.
84113
84114 2001-01-26  Jim Meyering  <meyering@lucent.com>
84115
84116         * lib/quotearg.c: Include stddef.h.
84117         * lib/quote.c: Include stddef.h.
84118         Reported by Axel Kittenberger.
84119
84120         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
84121         line in double quotes so that it evokes a better diagnostic.
84122         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
84123         Reported by Axel Kittenberger.
84124
84125 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
84126
84127         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
84128         as if it was a `charset'.
84129
84130 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84131
84132         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
84133         has const.
84134
84135 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84136
84137         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
84138         to avoid a warning.  Add back 'const' to inptr.
84139
84140 2001-01-20  Jim Meyering  <meyering@lucent.com>
84141
84142         Be sure that headers are checked before used in code compiled
84143         for the type checks.
84144         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
84145         In place of that, invoke jm_CHECK_ALL_TYPES.
84146         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
84147         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
84148         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
84149         The check for ssize_t was mistakenly run before the test for unistd.h.
84150
84151         The configure-time check for stdbool.h was missing.
84152         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
84153         (jm_PREREQ_HASH): New function.
84154
84155 2001-01-17  Jim Meyering  <meyering@lucent.com>
84156
84157         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
84158         for autoconf-2.49c.
84159         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
84160
84161 2001-01-16  Jim Meyering  <meyering@lucent.com>
84162
84163         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
84164         From Bruno Haible.
84165
84166 2001-01-14  Jim Meyering  <meyering@lucent.com>
84167
84168         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
84169         foo and bar.  Create conftestdir/ in the script, not in the C code.
84170         Remove directories in the script, not in the C code.
84171         Remove conftestdir{,2} before trying to create the directory.
84172         Make the entire configure script fail if the mkdir fails.
84173
84174 2001-01-14  Jim Meyering  <meyering@lucent.com>
84175
84176         * lib/rename.c: New file.  From Volker Borchert.
84177         Include stdlib.h, string.h or strings.h, and xalloc.h.
84178         Use strip_trailing_slashes rather than open-coding it.
84179
84180 2001-01-03  Paul Eggert  <eggert@twinsun.com>
84181
84182         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
84183
84184 2001-01-03  Jim Meyering  <meyering@lucent.com>
84185
84186         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
84187         of local `inptr' to avoid warning with some system declarations of
84188         iconv.
84189
84190 2001-01-02  Volker Borchert  <bt@teknon.de>
84191
84192         * m4/rename.m4: New file.
84193         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
84194
84195 2001-01-01  Jim Meyering  <meyering@lucent.com>
84196
84197         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
84198         even on systems with utmpx.h.  It's necessary for the declaration of
84199         utmp's ut_user member.  Reported by Andreas Jaeger.
84200
84201         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
84202         available. They are required for the declarations of getgrgid and
84203         getpwuid resp.
84204         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
84205         Reported by Andreas Jaeger.
84206
84207 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
84208
84209         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
84210         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
84211         so `make install' also works in VPATH builds.
84212
84213 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
84214
84215         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
84216         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
84217         can be used in subdirectories.
84218
84219 2000-12-29  Paul Eggert  <eggert@twinsun.com>
84220
84221         * lib/modechange.c: Do not assume that mode_t uses the
84222         traditional octal encoding.  E.g. "chmod 1 FOO" should set
84223         the other-execute bit of FOO even if S_IXOTH != 1.
84224
84225         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
84226         WOTH, XOTH, ALLM): New macros.
84227         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
84228          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
84229         Use them.
84230         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
84231         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
84232         (mode_compile):
84233         No need to use uintmax_t; unsigned long is long enough.
84234         Don't bother to get suffix since we don't use it.
84235
84236 2000-12-26  Jim Meyering  <meyering@lucent.com>
84237
84238         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
84239         better with autoheader.
84240
84241 2000-12-24  Jim Meyering  <meyering@lucent.com>
84242
84243         * lib/hash.c (is_prime): Return explicit boolean values.
84244         (hash_get_first): Return NULL to appease Irix5.6's 89.
84245         Reported by Nelson Beebe.
84246
84247 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
84248
84249         * lib/localcharset.c (locale_charset): Add support for Win32.
84250
84251 2000-12-18  Paul Eggert  <eggert@twinsun.com>
84252
84253         * lib/physmem.h, lib/physmem.c: New files.
84254
84255         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
84256         (noinst_HEADERS): Add physmem.h.
84257
84258         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
84259         't' for compatibility with Solaris 8 sort.
84260
84261 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
84262
84263         * lib/config.charset: Add support for BeOS.
84264
84265 2000-12-17  Jim Meyering  <meyering@lucent.com>
84266
84267         * m4/dos.m4 (jm_AC_DOS): New file and macro.
84268         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
84269
84270 2000-12-16  Jim Meyering  <meyering@lucent.com>
84271
84272         This bug had a serious impact on chown: `chown N:M FILE' (for integer
84273         N and M) would have treated it like `chown N:N FILE'.
84274
84275         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
84276
84277 2000-12-16  Jim Meyering  <meyering@lucent.com>
84278
84279         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
84280         SHELLS_FILE to a file name that's useful on djgpp systems.
84281         Include stdlib.h.
84282         (ADDITIONAL_DEFAULT_SHELLS): Define.
84283         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
84284         Based mostly on a patch from Prashant TR.
84285
84286 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
84287
84288         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
84289         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
84290         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
84291
84292 2000-12-08  Andreas Schwab  <schwab@suse.de>
84293
84294         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
84295         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
84296
84297 2000-12-07  Jim Meyering  <meyering@lucent.com>
84298
84299         * lib/stripslash.c (ISSLASH): Define.
84300         (strip_trailing_slashes): Use ISSLASH rather than comparing against
84301         `/'.
84302         From Prashant TR.
84303
84304         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
84305         (dir_name_r): Declare this function as static.
84306         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
84307         manifest itself on a name containing a mix of slashes and
84308         backslashes.
84309         Make this function work with names starting with a DOS-style
84310         drive letter and colon prefix.
84311         (dir_name): Append `.' if necessary.
84312         Based mostly on patches from Prashant TR and Eli Zaretskii.
84313
84314         * lib/dirname.h (dir_name_r): Remove prototype.
84315
84316 2000-12-06  Paul Eggert  <eggert@twinsun.com>
84317
84318         * m4/off_t-format.m4: Remove this file.
84319         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
84320
84321 2000-12-06  Jim Meyering  <meyering@lucent.com>
84322
84323         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
84324         replacement strtoull, we may well need the replacement strtoul, too.
84325         Check for declarations of strtoul and strtoull.
84326         Check for strtol.  Mainly as a cue to cause automake to include
84327         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
84328         Check for limits.h -- strtol.c needs it.
84329
84330 2000-12-05  Jim Meyering  <meyering@lucent.com>
84331
84332         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
84333
84334 2000-12-04  Jim Meyering  <meyering@lucent.com>
84335
84336         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
84337         Also include memory.h, stdlib.h, unistd.h if appropriate.
84338         Reported by Andreas Jaeger (conflicting declaration of malloc).
84339
84340 2000-12-02  Jim Meyering  <meyering@lucent.com>
84341
84342         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
84343         * m4/jm-macros.m4 (jm_MACROS): require it.
84344
84345 2000-12-02  Jim Meyering  <meyering@lucent.com>
84346
84347         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
84348
84349 2000-12-01  Paul Eggert  <eggert@twinsun.com>
84350
84351         * lib/memrchr.c: Include <config.h> before any system include file.
84352
84353 2000-11-30  Jim Meyering  <meyering@lucent.com>
84354
84355         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
84356
84357 2000-11-30  Jim Meyering  <meyering@lucent.com>
84358
84359         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
84360
84361 2000-11-29  Paul Eggert  <eggert@twinsun.com>
84362
84363         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
84364
84365 2000-11-26  Jim Meyering  <meyering@lucent.com>
84366
84367         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
84368
84369 2000-11-22  Paul Eggert  <eggert@twinsun.com>
84370
84371         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
84372         size of (size_t) -1; it's not portable.
84373
84374 2000-11-17  Jim Meyering  <meyering@lucent.com>
84375
84376         * lib/strstr.c: Update from GNU libc.
84377
84378 2000-11-17  Akim Demaille  <akim@epita.fr>
84379
84380         * lib/obstack.h: Formatting changes.
84381         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
84382         prevent type checking.
84383         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
84384         cast the value to (void *): assigning a `foo *' to a `void *'
84385         variable is valid.
84386         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
84387
84388 2000-11-16  Jim Meyering  <meyering@lucent.com>
84389
84390         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
84391
84392 2000-11-11  Jim Meyering  <meyering@lucent.com>
84393
84394         * lib/error.c: Add a couple #includes, merging from GNU libc version.
84395
84396 2000-11-10  Jim Meyering  <meyering@lucent.com>
84397
84398         * lib/obstack.h: Update from GNU libc.
84399         * lib/obstack.c: Likewise.
84400
84401 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
84402
84403         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
84404
84405 2000-11-06  Paul Eggert  <eggert@twinsun.com>
84406
84407         * lib/getusershell.c (setusershell): Use rewind rather than
84408         fseek/fseeko, to avoid configuration hassles with fseeko.
84409         Don't bother opening SHELLS_FILE if shellstream is NULL;
84410         it's not necessary.
84411
84412 2000-11-05  Jim Meyering  <meyering@lucent.com>
84413
84414         * lib/makepath.h (make_dir): Declare.
84415         * lib/makepath.c (make_dir): Remove `static' attribute.
84416         Tweak a comment.
84417
84418 2000-11-04  Jim Meyering  <meyering@lucent.com>
84419
84420         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
84421
84422 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
84423
84424         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
84425         last one in a bucket, advance to the next bucket.
84426
84427 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
84428
84429         * lib/fnmatch.c: Do not comment out all the code if we are using
84430         the GNU C library, because in some cases we are replacing buggy
84431         code in the GNU C library itself.
84432
84433 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
84434
84435         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
84436         (regex_compile): Catch bogus \(\1\).
84437
84438 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84439
84440         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
84441         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
84442         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
84443
84444 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84445
84446         * lib/error.h, getline.h, modechange.h:
84447         Remove "2000" from Copyright line, as the file hasn't been
84448         changed this year other than in the copyright notice.
84449
84450         * lib/xalloc.h: Add "2000" to Copyright line, as this file
84451         was changed this year.
84452
84453 2000-10-29  Jim Meyering  <meyering@lucent.com>
84454
84455         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
84456         renaming.
84457         * m4/ls-mntd-fs.m4: Likewise
84458
84459 2000-10-29  Jim Meyering  <meyering@lucent.com>
84460
84461         * lib/xstat.in: Fix grammar in comment.
84462
84463 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
84464
84465         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
84466         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
84467         doesn't define __restrict_arr.
84468
84469 2000-10-28  Jim Meyering  <meyering@lucent.com>
84470
84471         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
84472         (jm_PREREQ_MEMCHR): New function.
84473
84474 2000-10-28  Jim Meyering  <meyering@lucent.com>
84475
84476         * lib/memchr.c: Update from libc.
84477         Adjust for portability:
84478         [HAVE_STDLIB_H]: Include stdlib.h.
84479         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
84480         Undef __memchr, too.
84481         [!weak_alias]: Define __memchr to memchr.
84482
84483         * lib/regex.c: Update from libc.
84484         * lib/regex.h: Likewise.
84485         * lib/getopt1.c: Likewise.
84486         * lib/memcmp.c: Likewise.
84487
84488         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
84489         Avoid using fseek, when possible -- it's broken by design.
84490         Patch by Ulrich Drepper.
84491
84492 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
84493
84494         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
84495         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
84496         Giving in to popular pressure to shut up the compiler with casts.
84497
84498 2000-10-26  Jim Meyering  <meyering@lucent.com>
84499
84500         * lib/strftime.c: Update from libc.
84501
84502 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
84503
84504         * regex.c: More `unsigned char' -> `re_char' changes.
84505         Also change several `int' into `re_wchar_t'.
84506         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
84507         (PUSH_FAILURE_POINTER): Don't cast any more.
84508         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
84509         We want GCC to complain, since this piece of code makes
84510         re_match non-reentrant, which *should* be fixed.
84511         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
84512         (EXTEND_BUFFER): Use RETALLOC.
84513         (SET_LIST_BIT): Don't cast.
84514         (re_wchar_t): New type.
84515         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
84516         that those two functions will always properly return.
84517         (IMMEDIATE_QUIT_CHECK): Cast to void.
84518         (analyse_first): Use recursion rather than an explicit stack.
84519         (re_compile_fastmap): Can't fail anymore.
84520         (re_search_2): Don't check re_compile_fastmap for failure.
84521         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
84522         Now also sets the new value (passed in a new argument).
84523         (re_match_2_internal): Use it.
84524         Also, use a new var `reg' of type size_t when looping through regs
84525         rather than reuse the inappropriate `mcnt'.
84526
84527 2000-10-25  Jim Meyering  <meyering@lucent.com>
84528
84529         * lib/obstack.c: Update from libc.
84530
84531 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
84532
84533         * regex.c (regex_compile): Change the way of handling a range from
84534         a char less than 256 to a char not less than 256.
84535
84536 2000-10-24  Andrew Innes  <andrewi@gnu.org>
84537
84538         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
84539         NT-Emacs only.
84540         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
84541         so that re_search functions only quit when callers expect them to.
84542
84543 2000-10-23  Jim Meyering  <meyering@lucent.com>
84544
84545         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
84546         wrong.  That set_locale call must not have any side effects.
84547         From Paul Eggert.
84548
84549 2000-10-22  Jim Meyering  <meyering@lucent.com>
84550
84551         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
84552         [CYCLIC]: Remove now-unused definition.
84553
84554         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
84555         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
84556         Suggestion from Ulrich Drepper.
84557
84558 2000-10-21  Jim Meyering  <meyering@lucent.com>
84559
84560         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
84561         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
84562         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
84563
84564 2000-10-21  Jim Meyering  <meyering@lucent.com>
84565
84566         * lib/dirname.c (memrchr): Declare if necessary.
84567         (dir_name): Remove the restriction that there be no
84568         trailing slashes.  Now, this code skips past them, effectively
84569         ignoring them.
84570         [TEST_DIRNAME] (main): New unit tests.
84571
84572         * lib/memrchr.c: New file from GNU libc.
84573         Undef __memrchr, too.
84574         [!weak_alias]: Define __memrchr to memrchr.
84575         Guard weak_alias use with `#ifdef weak_alias'.
84576
84577 2000-10-21  Jim Meyering  <meyering@lucent.com>
84578
84579         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
84580         (dir_name): Use dir_name_r.
84581         * lib/dirname.h (dir_name_r): Declare it.
84582
84583 2000-10-17  Jim Meyering  <meyering@lucent.com>
84584
84585         * lib/quote.h (PARAMS): Define and use.
84586         Reported by Akim Demaille.
84587
84588         * lib/getopt.c: Update from libc.
84589
84590 2000-10-16  Jim Meyering  <meyering@lucent.com>
84591
84592         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
84593         setlocale.
84594         From Jan Fedak.
84595
84596 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
84597
84598         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
84599
84600 2000-09-25  Jim Meyering  <meyering@lucent.com>
84601
84602         * lib/md5.h (rol): Define (from GnuPG).
84603
84604         * lib/sha.c: Give credit (GnuPG) where due.
84605         (M): Use rol rather than open-coding it.
84606         Add a FIXME comment.
84607
84608 2000-09-21  Jim Meyering  <meyering@lucent.com>
84609
84610         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
84611         Reported by Michael Stone.
84612
84613 2000-09-20  Jim Meyering  <meyering@lucent.com>
84614
84615         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
84616         (noinst_HEADERS): Add sha.h.
84617         Based on code from Scott G. Miller and from GnuPG.
84618
84619 2000-09-18  Jim Meyering  <meyering@lucent.com>
84620
84621         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
84622         LIBS. Otherwise, everyone ends up linking with -lelf for some
84623         configurations.
84624         Reported by Mike Stone.
84625
84626 2000-09-15  Jim Meyering  <meyering@lucent.com>
84627
84628         * lib/regex.c: Update from libc.
84629
84630 2000-09-10  Jim Meyering  <meyering@lucent.com>
84631
84632         * lib/getopt.c (_getopt_internal): Update from glibc.
84633
84634 2000-09-09  Jim Meyering  <meyering@lucent.com>
84635
84636         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
84637         think it should be used as a general replacement for isascii.
84638         * lib/fnmatch.c: Likewise.
84639         * lib/mbswidth.c: Likewise
84640         * lib/regex.c: Likewise.
84641
84642         Don't use atoi.
84643         * lib/userspec.c: Include sys/param.h and limits.h.
84644         Include xstrtol.h.
84645         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84646         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
84647         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
84648         UID, GID.  Check range.
84649
84650 2000-09-06  Jim Meyering  <meyering@lucent.com>
84651
84652         * lib/getopt.c (_getopt_internal): Update from glibc.
84653
84654 2000-08-30  Jim Meyering  <meyering@lucent.com>
84655
84656         * lib/strftime.c: Merge in changes from GNU libc.
84657
84658 2000-08-26  Jim Meyering  <meyering@lucent.com>
84659
84660         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
84661         * m4/fpending.m4: New file.
84662
84663 2000-08-26  Jim Meyering  <meyering@lucent.com>
84664
84665         * lib/closeout.c: Include "__fpending.h".
84666         (close_stdout_status): Return right away if there's nothing to flush.
84667
84668         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
84669         * lib/__fpending.c: New file.
84670         * lib/__fpending.h: New file.
84671
84672 2000-08-20  Jim Meyering  <meyering@lucent.com>
84673
84674         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
84675         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
84676         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
84677
84678 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
84679
84680         Improve fileutils installation on systems where running
84681         programs (like install) can't be unlinked.
84682         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
84683         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
84684
84685 2000-08-07  Paul Eggert  <eggert@twinsun.com>
84686
84687         Standardize on "memory exhausted" instead of "Memory exhausted"
84688         or "virtual memory exhausted".
84689         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
84690         "virtual memory exhausted".
84691         * lib/same.c (same_name): Invoke xalloc_die instead of printing
84692         our own message.
84693         * lib/userspec.c (parse_user_spec): Likewise.
84694         * lib/bumpalloc.h: comment fix
84695         * lib/same.c, userspec.c: Include xalloc.h.
84696
84697         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
84698         not char *const and pointing to a constant array.
84699         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
84700         (xrealloc): Comment fix.
84701
84702         * lib/userspec.c (parse_user_spec):
84703         Don't translate a message until just before returning,
84704         to avoid unnecessary translation.
84705
84706 2000-08-07  Jim Meyering  <meyering@lucent.com>
84707
84708         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
84709         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
84710         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
84711         getgroups.c, gethostname.c, getopt.h, group-member.c,
84712         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
84713         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
84714         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
84715         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
84716         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
84717         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
84718         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
84719         yesno.c: Back out Copyright date changes for each file with no change
84720         this year.  This eases coordination with other programs using the same
84721         source code modules.  From Paul Eggert.
84722
84723 2000-08-06  Paul Eggert  <eggert@twinsun.com>
84724
84725         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
84726         not char, for compatibility with glibc 2.1.3 strftime.c.
84727
84728 2000-08-03  Greg McGary  <greg@mcgary.org>
84729
84730         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
84731         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
84732         (EXTEND_BUFFER): Use them.
84733
84734 2000-08-01  Jim Meyering  <meyering@lucent.com>
84735
84736         * lib/dirname.c (ISSLASH): Define.
84737         (BACKSLASH_IS_PATH_SEPARATOR): Define.
84738         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
84739         both `\' and `/' may be use as path separators.
84740         Based on a patch from Prashant TR.
84741
84742 2000-07-31  Paul Eggert  <eggert@twinsun.com>
84743
84744         * lib/quotearg.c (quotearg_n_options): Don't make the initial
84745         slot vector a constant, since it might get modified.
84746
84747 2000-07-31  Jim Meyering  <meyering@lucent.com>
84748
84749         * lib/xmalloc.c: Use `virtual memory exhausted', not
84750         `Memory exhausted'.
84751         * lib/obstack.c (print_and_abort): Likewise.
84752
84753 2000-07-30  Paul Eggert  <eggert@twinsun.com>
84754
84755         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
84756         buffer, so that the caller can always quote one small
84757         component of a "memory exhausted" message in slot 0.
84758         From a suggestion by Jim Meyering.
84759
84760 2000-07-30  Jim Meyering  <meyering@lucent.com>
84761
84762         * lib/makepath.c (make_path): Quote the other instance, too.
84763
84764         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
84765         (STATIC_BUF_SIZE): Define.
84766         (quotearg_n_options): Use only statically allocated storage when
84767         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
84768         than STATIC_BUF_SIZE.
84769
84770 2000-07-29  Jim Meyering  <meyering@lucent.com>
84771
84772         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
84773         * lib/dirname.c (dir_name): Likewise.
84774
84775         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
84776         `/'.
84777
84778         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
84779         (dir_name): Assert that there are no trailing slashes.
84780
84781 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
84782
84783         * lib/mbswidth.h (mbswidth): Add a flags argument.
84784         (mbswidth): New declaration.
84785         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
84786         * lib/mbswidth.c (mbswidth): Add a flags argument.
84787         (mbsnwidth): New function.
84788
84789 2000-07-24  Jim Meyering  <meyering@lucent.com>
84790
84791         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
84792
84793 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84794
84795         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
84796
84797 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84798
84799         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
84800         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
84801         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
84802         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
84803         invoke multibyte primitives.
84804
84805 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84806
84807         * lib/quotearg.c:
84808         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
84809         so that mbstate_t is always defined.
84810
84811         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
84812         be 1 in at least one GCC installation, and this configuration
84813         error is likely to be common.  Ignoring MB_LEN_MAX hurts
84814         performance on hosts that have mbrtowc but have only unibyte
84815         locales, but I assume these hosts are rare.
84816
84817 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84818
84819         * lib/mbswidth.c (_XOPEN_SOURCE):
84820         Don't define; this causes problems on Solaris 7.
84821         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
84822
84823 2000-07-23  Jim Meyering  <meyering@lucent.com>
84824
84825         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
84826         too: getgrgid, getpwuid, getuid.
84827
84828 2000-07-23  Jim Meyering  <meyering@lucent.com>
84829
84830         * lib/basename.c (base_name): Add an assertion.
84831
84832 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
84833
84834         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
84835         shadow its mbsinit function.
84836
84837 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84838
84839         * lib/mbswidth.h: New file.
84840         * lib/mbswidth.c: New file.
84841         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
84842         (noinst_HEADERS): Add mbswidth.h.
84843
84844 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84845
84846         * lib/config.charset: Add support for FreeBSD. Improve support for
84847         HP-UX and IRIX 6.
84848
84849 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
84850
84851         * m4/mbswidth.m4: New file.
84852         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
84853
84854 2000-07-15  Jim Meyering  <meyering@lucent.com>
84855
84856         * lib/makepath.c: Include quote.h.
84857         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
84858         corresponding argument in a `quote (...)' call.
84859         Give better diagnostics.
84860
84861         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
84862         (noinst_HEADERS): Add quote.h.
84863
84864         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
84865         from tar's src/misc.c.
84866         * lib/quote.h: New file.  Prototypes for same.
84867
84868 2000-07-14  Paul Eggert  <eggert@twinsun.com>
84869
84870         From a suggestion by Bruno Haible.
84871         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
84872         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
84873         to decide whether to define the BeOS workaround macro;
84874         this adjusts to the change to AC_MBSTATE_T.
84875
84876 2000-07-14  Jim Meyering  <meyering@lucent.com>
84877
84878         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
84879         jm_AC_TYPE_UINTMAX_T.
84880
84881 2000-07-13  Paul Eggert  <eggert@twinsun.com>
84882
84883         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
84884
84885         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
84886         quotearg_buffer_restyled): Add support for
84887         clocale_quoting_style.  Undo previous change to
84888         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
84889         and "{RIGHT QUOTATION MARK}" msgids.
84890
84891 2000-07-10  Paul Eggert  <eggert@twinsun.com>
84892
84893         From a suggestion by Bruno Haible.
84894         * m4/mbstate_t.m4 (AC_MBSTATE_T):
84895         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
84896         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
84897         and mbstate_t, to a single-part test that simply defines mbstate_t.
84898         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
84899         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
84900
84901 2000-07-10  Jim Meyering  <meyering@lucent.com>
84902
84903         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84904
84905         * m4/gnu-source.m4: Output to confdefs.h directly.
84906         Suggestion from Akim Demaille.
84907
84908 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84909
84910         The old behavior of quoting `like this' doesn't look good with
84911         newer, ISO-style fonts.  See:
84912         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84913
84914         Instead, quote "like this" by default.  Let the translator
84915         tailor the locale-specific quoting behavior by providing
84916         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84917
84918         * lib/quotearg.c (N_): New macro.
84919         (gettext_default): New function.
84920         (quotearg_buffer_restyled): Use
84921         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84922         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84923
84924 2000-07-09  Jim Meyering  <meyering@lucent.com>
84925
84926         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84927         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84928
84929         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84930         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84931
84932 2000-07-09  Jim Meyering  <meyering@lucent.com>
84933
84934         * lib/Most files: Update copyright dates to include 2000.
84935
84936 2000-07-08  Jim Meyering  <meyering@lucent.com>
84937
84938         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84939         if not defined.
84940         (xgethostname): Remove now-unnecessary #ifdef.
84941         Move declaration of `err' into loop where it's used.
84942
84943 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84944         and Bruno Haible  <haible@clisp.cons.org>
84945
84946         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84947         only if the test for an object-type mbstate_t fails.  This
84948         prevents us from mistakenly reporting that mbstate_t is a
84949         system object type after we "#define mbstate_t int" to work
84950         around its lack.
84951
84952 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84953         and Bruno Haible  <haible@clisp.cons.org>
84954
84955         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84956
84957 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84958
84959         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84960         to strerror_r.
84961         Include <ctype.h> for use of isalpha.
84962
84963 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84964
84965         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84966         by allocating a larger buffer. Test the gethostname return value for
84967         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84968         returns an error and ENAMETOOLONG isn't defined.
84969
84970 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84971
84972         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84973         dimension.
84974
84975 2000-07-04  Jim Meyering  <meyering@lucent.com>
84976
84977         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84978         of the deprecated AC_CHECKING.
84979
84980 2000-07-04  Jim Meyering  <meyering@lucent.com>
84981
84982         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84983         Reported by Bruno Haible.
84984
84985 2000-07-04  Jim Meyering  <meyering@lucent.com>
84986
84987         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84988         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84989         lacks mbrtowc.
84990
84991 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84992
84993         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84994         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84995
84996 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84997         and Bruno Haible  <haible@clisp.cons.org>
84998
84999         * lib/quotearg.c (mbrtowc):
85000         Assign to *pwc, and return 1 only if result is nonzero.
85001         (iswprint): Use ISPRINT when substituting our own mbrtowc.
85002
85003 2000-07-03  Jim Meyering  <meyering@lucent.com>
85004
85005         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
85006
85007 2000-07-03  Jim Meyering  <meyering@lucent.com>
85008
85009         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
85010         This is necessary to get a definition of e.g., UTMP_FILE on
85011         HP-UX 10.20.
85012         From Bob Proulx.
85013
85014 2000-07-02  Jim Meyering  <meyering@lucent.com>
85015
85016         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
85017
85018         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
85019         AC_LIBOBJ(function_name).
85020         * m4/chown.m4: Likewise.
85021         * m4/fnmatch.m4: Likewise.
85022         * m4/ftruncate.m4: Likewise.
85023         * m4/getgroups.m4: Likewise.
85024         * m4/getline.m4: Likewise.
85025         * m4/group-member.m4: Likewise.
85026         * m4/jm-macros.m4: Likewise.
85027         * m4/lstat.m4: Likewise.
85028         * m4/malloc.m4: Likewise.
85029         * m4/memcmp.m4: Likewise.
85030         * m4/nanosleep.m4: Likewise.
85031         * m4/putenv.m4: Likewise.
85032         * m4/realloc.m4: Likewise.
85033         * m4/regex.m4: Likewise.
85034         * m4/stat.m4: Likewise.
85035         * m4/strftime.m4: Likewise.
85036
85037 2000-07-02  Jim Meyering  <meyering@lucent.com>
85038
85039         * lib/quotearg.c (mbstate_t): Don't define here.
85040
85041 2000-07-02  Jim Meyering  <meyering@lucent.com>
85042
85043         * lib/nanosleep.c (SIGCONT): Define if not already defined.
85044
85045 2000-07-01  Jim Meyering  <meyering@lucent.com>
85046
85047         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
85048
85049 2000-07-01  Jim Meyering  <meyering@lucent.com>
85050
85051         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
85052         problem.
85053
85054 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85055
85056         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
85057         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
85058
85059 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85060
85061         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
85062         per change in ../m4/ls-mntd-fs.m4.
85063         (read_filesystem_list): Ignore symbolic links.
85064
85065 2000-06-29  Jim Meyering  <meyering@lucent.com>
85066
85067         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
85068         for declaration of strcmp.
85069
85070         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
85071
85072         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
85073         Avoid warning by casting result to `char *' to remove `const'.
85074
85075 2000-06-28  Jim Meyering  <meyering@lucent.com>
85076
85077         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
85078         included by quotearg.c, for which we perform this test.  From
85079         Bruno Haible.
85080
85081 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85082
85083         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
85084         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
85085         <utmpx.h> exists, put readutmp.o into LIBOBJS.
85086
85087 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85088
85089         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
85090
85091 2000-06-26  Paul Eggert  <eggert@twinsun.com>
85092
85093         savedir now sets errno on failure and invokes xmalloc to get memory.
85094         Fix a couple of other minor bugs while we're at it.
85095
85096         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
85097         (NAMLEN): Remove macro.
85098         (malloc, realloc): Remove decls.
85099         (stpcpy): Likewise.
85100         ("xalloc.h"): Include.
85101         (NAME_SIZE_DEFAULT): New macro.
85102         (savedir): Use xmalloc / xrealloc to allocate memory.
85103         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
85104         Skip "" directory entries.
85105         Use strlen to calculate directory entry length, since the old method
85106         is rarely used these days and isn't worth supporting.
85107         Don't use a pointer after freeing it.
85108         Check for integer overflow when calculating allocation size.
85109         Use memcpy to copy entries, instead of stpcpy.
85110         Set errno properly when returning NULL.
85111         Check for readdir error.
85112
85113 2000-06-26  Jim Meyering  <meyering@lucent.com>
85114
85115         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
85116
85117 2000-06-25  Jim Meyering  <meyering@lucent.com>
85118
85119         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
85120         Linux header bug when _XOPEN_SOURCE is defined to 500.
85121
85122 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85123
85124         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
85125         deficiency.
85126
85127 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85128
85129         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
85130         Include xalloc.h.
85131         Don't include <stdlib.h>.  Don't declare malloc, realloc.
85132
85133 2000-06-24  Jim Meyering  <meyering@lucent.com>
85134
85135         * m4/strerror_r.m4: Revive this file -- to try out an experimental
85136         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
85137         for which strerror does return char*, but which lacks a conveniently
85138         accessible declaration of the function.  If the compile-test says
85139         strerror_r doesn't work, then resort to a `run'-test that works on
85140         BeOS and segfaults on DEC Unix.
85141
85142 2000-06-24  Jim Meyering  <meyering@lucent.com>
85143
85144         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
85145
85146 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85147
85148         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
85149         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
85150
85151 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85152
85153         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
85154         (mbrtowc, mbstate_t): Define substitutes if
85155         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
85156         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
85157         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
85158
85159 2000-06-23  Jim Meyering  <meyering@lucent.com>
85160
85161         * m4/afs.m4: Add missing AC_MSG_RESULT.
85162         Reported by Bruno Haible.
85163
85164         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
85165         Suggestion from Bruno Haible.
85166
85167 2000-06-23  Jim Meyering  <meyering@lucent.com>
85168
85169         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
85170
85171 2000-06-21  Jim Meyering  <meyering@lucent.com>
85172
85173         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
85174
85175 2000-06-21  Jim Meyering  <meyering@lucent.com>
85176
85177         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
85178         (noinst_HEADERS): Add getstr.h.
85179
85180         * lib/getline.c (getstr): Move into a separate file.
85181         * lib/getstr.c (getstr): New file, extracted from getline.c, with
85182         the following changes: new parameter, delim2; both delim[12]
85183         parameters have type `int', not `char'.  The latter would lose
85184         with 8-bit delimiters.
85185         * lib/getstr.h: New file.
85186
85187 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85188
85189         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
85190         than 1024, return a memory chunk of least possible size, instead
85191         of size PATH_MAX + 2. In the loop, increment the size proportionally.
85192         Use free/xmalloc instead of xrealloc to avoid copying for very long
85193         paths.
85194
85195 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85196
85197         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
85198         the empty string.
85199
85200 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85201
85202         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
85203         address, not strdup.  Include <stdlib.h> and don't declare free().
85204
85205 2000-06-19  Jim Meyering  <meyering@lucent.com>
85206
85207         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
85208
85209 2000-06-18  Jim Meyering  <meyering@lucent.com>
85210
85211         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
85212
85213         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
85214         `checking whether...' message to be consistent with that of the
85215         lstat test.
85216
85217 2000-06-18  Jim Meyering  <meyering@lucent.com>
85218
85219         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
85220         Besides, these days every porting target provides a mkdir function.
85221
85222         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
85223         needed. (this snippet comes from src/system.h).
85224
85225 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
85226
85227         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
85228
85229 2000-06-15  Paul Eggert  <eggert@twinsun.com>
85230
85231         * lib/human.c (adjust_value): New function.
85232         (human_readable_inexact): Apply rounding style even when
85233         printing approximate values.
85234
85235 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85236
85237         * lib/human.c (human_readable_inexact): Allow an input block
85238         size that is not a multiple of the output block size, and vice versa.
85239         Reported by Piergiorgio Sartor.
85240
85241 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85242
85243         * lib/getdate.y (get_date): Apply relative times after time
85244         zone indicator, not before.  Reported by Todd A. Jacobs.
85245
85246 2000-06-13  Jim Meyering  <meyering@lucent.com>
85247
85248         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
85249
85250         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
85251
85252 2000-06-12  Paul Eggert  <eggert@twinsun.com>
85253
85254         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
85255
85256 2000-06-12  Jim Meyering  <meyering@lucent.com>
85257
85258         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
85259         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
85260         optional argument.
85261         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
85262         the optional argument, `lib'.
85263
85264 2000-06-08  Jim Meyering  <meyering@lucent.com>
85265
85266         * m4/largefile.m4: Remove file (now that it's part of autoconf).
85267
85268 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85269
85270         Rewrite largefile configuration so that we don't need to run
85271         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
85272         AC_CANONICAL_HOST in configure.in -- jmm]
85273
85274         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
85275         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
85276         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
85277         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
85278         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
85279         All uses changed.
85280         Instead of inspecting the output of getconf, try to compile the
85281         test program without and with the macro definition.
85282         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
85283         for getconf.  Instead, check for the needed flags by compiling
85284         test programs.
85285
85286 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85287
85288         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
85289
85290 2000-06-04  Jim Meyering  <meyering@lucent.com>
85291
85292         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
85293         SunOS 4.1.4 for which gid_t is an unsigned type.
85294
85295 2000-06-03  Jim Meyering  <meyering@lucent.com>
85296
85297         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
85298         now that autoconf requires that.
85299
85300         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
85301         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
85302         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
85303
85304 2000-06-03  Jim Meyering  <meyering@lucent.com>
85305
85306         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
85307
85308 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85309
85310         * m4/glibc21.m4: New file.
85311         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
85312
85313 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85314
85315         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
85316         newer, don't install charset.alias.
85317         * lib/config.charset: Change the Linux/glibc rules so they become empty
85318         on glibc-2.1 or newer.
85319
85320 2000-06-02  Jim Meyering  <meyering@lucent.com>
85321
85322         * lib/mountlist.c: Back out last change.  Instead, do this...
85323         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
85324         me_dummy member using the same `ignore'-testing code.
85325         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
85326         fs_type strings.
85327         From Mark D. Roth.
85328
85329 2000-05-29  Jim Meyering  <meyering@lucent.com>
85330
85331         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
85332         mounts with the `ignore' attribute.  Based on a patch from
85333         Mark D. Roth.
85334
85335 2000-05-28  Jim Meyering  <meyering@lucent.com>
85336
85337         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
85338         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85339         * m4/stat.m4: Likewise.
85340         * m4/lstat.m4: Likewise.
85341         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
85342
85343         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
85344         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
85345
85346 2000-05-26  Jim Meyering  <meyering@lucent.com>
85347
85348         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
85349
85350 2000-05-24  Jim Meyering  <meyering@lucent.com>
85351
85352         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
85353         autoconf requires that.
85354         * m4/lib-check.m4: Likewise.
85355         * m4/jm-macros.m4: Likewise.
85356         * m4/strftime.m4: Likewise.
85357
85358         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
85359         AC_CHECK_DECLS, now that autoconf requires that.
85360
85361 2000-05-22  Jim Meyering  <meyering@lucent.com>
85362
85363         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85364         * m4/lstat.m4: Likewise.
85365
85366 2000-05-22  Jim Meyering  <meyering@lucent.com>
85367
85368         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
85369
85370 2000-05-20  Jim Meyering  <meyering@lucent.com>
85371
85372         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
85373         (jm_PREREQ): Use it.
85374
85375 2000-05-18  Jim Meyering  <meyering@lucent.com>
85376
85377         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
85378         back, too, since it may have been modified by allocate_entry.
85379         (hash_delete): Rewrite to use neither the assignment operator
85380         nor the comma operator in an if-expression.
85381
85382 2000-05-15  Paul Eggert  <eggert@twinsun.com>
85383
85384         * lib/closeout.c:
85385         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
85386         Remove; no longer needed.
85387         "quotearg.h": Add include.
85388         (file_name): Do not bother to explicitly initialize to NULL; it's less
85389         efficient on some hosts.
85390         (close_stdout_status): Remove test as to whether stdout was already
85391         closed; it breaks for the case "echo x | sort >&-".
85392         Quote file name colons.
85393         Do not assume that _("write error") lacks format strings.
85394
85395 2000-05-15  Jim Meyering  <meyering@lucent.com>
85396
85397         * lib/version-etc.c (version_etc_copyright): Update the copyright
85398         string used in all --version output.
85399
85400 2000-05-14  Jim Meyering  <meyering@lucent.com>
85401
85402         * lib/closeout.c (close_stdout_set_file_name): New function.
85403         (close_stdout_status): Use new file-scoped global.
85404         Return right away if fstat says the stdout file descriptor is invalid.
85405         * lib/closeout.h (close_stdout_set_file_name): Declare.
85406
85407 2000-05-10  Jim Meyering  <meyering@lucent.com>
85408
85409         * lib/closeout.c [default_exit_status]: New file-scoped variable.
85410         (close_stdout_set_status): New function.
85411         * lib/closeout.h (close_stdout_set_status): Declare.
85412
85413 2000-05-09  Jim Meyering  <meyering@lucent.com>
85414
85415         * m4/gettext.m4: Rename this...
85416         * m4/libintl.m4: ...to this.
85417
85418 2000-05-08  Jim Meyering  <meyering@lucent.com>
85419
85420         * lib/long-options.c: Don't include closeout.h.
85421         (parse_long_options): Don't call close_stdout for --version.
85422
85423 2000-05-06  Paul Eggert  <eggert@twinsun.com>
85424
85425         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
85426         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
85427         2.1.3 bug.  This avoids a clash when files like regex.c define
85428         _GNU_SOURCE.
85429
85430 2000-05-06  Jim Meyering  <meyering@lucent.com>
85431
85432         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
85433         (AC_REPLACE_FUNCS): Add strnlen.
85434
85435         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
85436         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
85437
85438         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
85439         AC_SEARCH_LIBS call for nanosleep.
85440         (LIB_NANOSLEEP): Set and AC_SUBST.
85441
85442 2000-05-06  Jim Meyering  <meyering@lucent.com>
85443
85444         * lib/strnlen.c: Undefine __strnlen and strnlen.
85445         [!weak_alias]: Define __strnlen to strnlen.
85446
85447         * lib/atexit.c: New file, from libiberty.
85448
85449 2000-05-06  Jim Meyering  <meyering@lucent.com>
85450
85451         * lib/closeout.c (close_stdout_status): Also check for errors on the
85452         stderr stream.
85453
85454 2000-05-05  Jim Meyering  <meyering@lucent.com>
85455
85456         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
85457         AC_SEARCH_LIBS call for clock_gettime.
85458         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
85459
85460         * m4/search-libs.m4: Update from autoconf.
85461
85462         su doesn't work on Solaris 2.6.
85463         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
85464         <shadow.h>.  Reported by Dragos Harabor.
85465
85466 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
85467
85468         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
85469         memcpy instead of xmalloc, xrealloc, path_concat.
85470         (locale_charset): Treat empty environment variables as absent.
85471         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
85472
85473 2000-05-04  Jim Meyering  <meyering@lucent.com>
85474
85475         * lib/getopt.c: Update from glibc.
85476         * lib/obstack.c: Likewise.
85477         * lib/obstack.h: Likewise.
85478         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
85479         file
85480
85481         * lib/regex.h: Likewise.
85482         * lib/strndup.c: Likewise.
85483         * lib/strnlen.c: New file, from glibc.
85484
85485 2000-05-03  Jim Meyering  <meyering@lucent.com>
85486
85487         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
85488
85489 2000-05-02  Paul Eggert  <eggert@twinsun.com>
85490
85491         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
85492         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
85493         compile-time test, rather than inspecting host and OS, to
85494         decide whether to define _LARGEFILE_SOURCE.
85495
85496 2000-05-01  Jim Meyering  <meyering@lucent.com>
85497
85498         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
85499
85500         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
85501         Based on a patch from Bruno Haible.
85502
85503 2000-05-01  Jim Meyering  <meyering@lucent.com>
85504
85505         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
85506
85507 2000-04-29  Jim Meyering  <meyering@lucent.com>
85508
85509         * lib/path-concat.c: Declare strdup only if it's not defined.
85510         * lib/canon-host.c: Likewise.
85511
85512 2000-04-28  Jim Meyering  <meyering@lucent.com>
85513
85514         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
85515         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
85516         is included first, then limits.h is included by locale.h by libintl.h.
85517         From John David Anglin.
85518
85519 2000-04-25  Jim Meyering  <meyering@lucent.com>
85520
85521         * lib/makepath.c (S_IRWXUGO): Define.
85522         (make_path): Always perform explicit chmod if MODE specifies any
85523         of the `special' permission bits.  Prompted by a bug report against
85524         install from Mate Wierdl and Joost van Baal.
85525
85526 2000-04-18  Jim Meyering  <meyering@lucent.com>
85527
85528         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
85529         (jm_PREREQ): Use it.
85530
85531 2000-04-18  Jim Meyering  <meyering@lucent.com>
85532
85533         * lib/README: New file.
85534
85535         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
85536         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
85537
85538 2000-04-17  Jim Meyering  <meyering@lucent.com>
85539
85540         Get it right :-)
85541         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
85542         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
85543         Suggestion from Akim Demaille.
85544
85545 2000-04-17  Jim Meyering  <meyering@lucent.com>
85546
85547         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
85548         the definition of it to rpl_strftime also defined-away the system's
85549         declaration.
85550
85551 2000-04-15  Jim Meyering  <meyering@lucent.com>
85552
85553         Use `C' to denote so-called `contiguous' files, the same way
85554         that tar does.
85555         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
85556         (ftypelet): Use S_ISCTG.
85557         From Michael Deutschmann.
85558
85559 2000-04-14  Jim Meyering  <meyering@lucent.com>
85560
85561         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
85562         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
85563         clobbered.
85564
85565 2000-04-14  Jim Meyering  <meyering@lucent.com>
85566
85567         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
85568
85569 2000-04-13  Jim Meyering  <meyering@lucent.com>
85570
85571         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
85572         AH_VERBATIM to insert required #ifndef into config.h.in.
85573         Suggestion from Akim Demaille.
85574
85575 2000-04-12  Jim Meyering  <meyering@lucent.com>
85576
85577         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
85578         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
85579         Christian Krackowizer.
85580
85581         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
85582         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
85583         (AC_SYS_LARGEFILE): Require.
85584         (AM_C_PROTOTYPES): Require.
85585
85586 2000-04-08  Jim Meyering  <meyering@lucent.com>
85587
85588         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
85589         names don't conflict.  Reported by Eli Zaretskii.
85590
85591 2000-04-07  Jim Meyering  <meyering@lucent.com>
85592
85593         * lib/putenv.c: Move inclusion of errno.h so it follows that of
85594         sys/types.h, to work around system header problems on AIX 3.2.5.
85595         From Bruno Haible.
85596
85597 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
85598
85599         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
85600         bug.  Deal with the different error behavior of Irix iconv.
85601
85602 2000-04-05  Paul Eggert  <eggert@twinsun.com>
85603
85604         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
85605         IRIX if the installer said otherwise.
85606
85607 2000-04-05  Jim Meyering  <meyering@lucent.com>
85608
85609         Portability tweaks required for ultrix4.3.
85610         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
85611         (jm_CHECK_DECLS): Add getutent to the list of functions.
85612         (_jm_DECL_HEADERS): Add utmpx.h.
85613         From John David Anglin.
85614
85615         * m4/strftime.m4: Back out the 2000-04-02 change.
85616         Instead of that change, simply undefine putenv in the test program.
85617
85618 2000-04-05  Jim Meyering  <meyering@lucent.com>
85619
85620         Portability tweaks required for ultrix4.3.
85621         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
85622         getutent.
85623         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
85624         * lib/canon-host.c: Declare strdup.
85625         * lib/path-concat.c: Likewise.
85626         From John David Anglin.
85627
85628 2000-04-04  Jim Meyering  <meyering@lucent.com>
85629
85630         Be more DOS 8.3-friendly.
85631         * lib/ref-add.sin: Renamed from ref-add.sed.in.
85632         * lib/ref-del.sin: Renamed from ref-del.sed.in.
85633         * lib/Makefile.am: Reflect renaming.
85634         Reported by Eli Zaretskii.
85635
85636         Use a temporary file name that won't clash with `charset.alias'
85637         in the DOS 8.3 name space.
85638         * lib/Makefile.am (charset_tmp): Define.
85639         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
85640         (uninstall-local): Likewise.
85641         Reported by Eli Zaretskii.
85642
85643 2000-04-03  Jim Meyering  <meyering@lucent.com>
85644
85645         * m4/gettext.m4: Fix typo in comment.
85646
85647         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
85648         textutils/configure.in).  Suggestion from Paul Eggert.
85649         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
85650
85651 2000-04-02  Paul Eggert  <eggert@twinsun.com>
85652
85653         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
85654         variable in the shell rather than using putenv, which isn't
85655         portable.  This avoids the configure-time inter-test dependency
85656         on the potentially-renamed putenv function.
85657
85658 2000-03-30  Paul Eggert  <eggert@twinsun.com>
85659
85660         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
85661         before checking struct stat.st_blksize, so that
85662         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
85663
85664 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85665
85666         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
85667         since strftime.c uses HAVE_STRFTIME to decide whether to use
85668         the underlying strftime.
85669
85670 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85671
85672         * lib/time/strftime.c (my_strftime): Make sure we call the system
85673         strftime, not ourselves, when invoking the underlying strftime.
85674
85675 2000-03-24  Jim Meyering  <meyering@lucent.com>
85676
85677         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
85678         (charset_alias): Define.
85679         (install-exec-local): Factor out common code.
85680         (uninstall-local): Split lines longer than 80.
85681         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
85682         (SUFFIXES): Define.
85683         (.sed.in.sed): New rule.  Don't redirect directly to $@.
85684         (CLEANFILES): Add ref-add.sed and ref-del.sed.
85685
85686 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
85687
85688         * lib/config.charset: Output a line containing "Packages using this
85689         file".
85690         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
85691         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
85692         ref-del.sed): New rules.
85693
85694 2000-03-17  Jim Meyering  <meyering@lucent.com>
85695
85696         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
85697         Otherwise, include <strings.h>
85698
85699 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
85700
85701         * lib/unicodeio.c (utf8_wctomb): New function.
85702         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
85703         format instead of in UCS-4 with platform dependent endianness.
85704
85705 2000-03-10  Jim Meyering  <meyering@lucent.com>
85706
85707         * m4/lib-check.m4: Look for getspnam in -lgen, too.
85708         From Marco Franzen.
85709
85710 2000-03-07  Paul Eggert  <eggert@twinsun.com>
85711
85712         * lib/savedir.c (savedir): Work even if directory size is
85713         negative; this can happen with some screwy NFS configurations.
85714
85715 2000-03-06  Jim Meyering  <meyering@lucent.com>
85716
85717         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
85718         if it's NULL (because we ran out of memory).  From Bruno Haible.
85719
85720 2000-03-05  Jim Meyering  <meyering@lucent.com>
85721
85722         * lib/localcharset.c ("path-concat.h"): Include.
85723         (get_charset_aliases): Use path_concat instead of ANSI string
85724         concatenation.
85725
85726         * lib/unicodeio.h (PARAMS): Define.
85727         Use it to guard prototype.
85728
85729 2000-03-04  Jim Meyering  <meyering@lucent.com>
85730
85731         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
85732         for lib/localcharset.c.
85733
85734 2000-03-04  Jim Meyering  <meyering@lucent.com>
85735
85736         * lib/Makefile.am (install-exec-local): Create $(libdir) before
85737         installing into it.
85738         (uninstall-local): Uncomment this rule so `make distcheck' works
85739         once again.
85740
85741         * lib/unicodeio.c (<errno.h>): Include it.
85742         (errno): Declare if not defined.
85743
85744         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
85745
85746         * lib/config.charset: New version, incorporating remarks from a linux
85747         i18n mailing list.  From Bruno Haible.
85748
85749 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
85750
85751         * m4/codeset.m4: New file.
85752         * m4/iconv.m4: New file.
85753         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
85754
85755 2000-03-03  Jim Meyering  <meyering@lucent.com>
85756
85757         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
85758
85759 2000-03-02  Jim Meyering  <meyering@lucent.com>
85760
85761         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
85762         the messages come out on separate lines.
85763
85764         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
85765         rather than jm_CHECK_DECLARATIONS.
85766         * m4/decl.m4: Remove now-unused file.
85767
85768         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
85769         geteuid.
85770
85771 2000-03-02  Jim Meyering  <meyering@lucent.com>
85772
85773         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
85774
85775 2000-03-01  Jim Meyering  <meyering@lucent.com>
85776
85777         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
85778         * lib/unicodeio.c: Likewise.
85779
85780 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
85781
85782         * lib/config.charset: New file.
85783         * lib/localcharset.c: New file.
85784         * lib/unicodeio.h, lib/unicodeio.c: New files.
85785         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
85786         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
85787         (noinst_HEADERS): Add unicodeio.h.
85788         (all-local, install-exec-local, charset.alias): New targets.
85789
85790 2000-02-28  Paul Eggert  <eggert@twinsun.com>
85791
85792         * lib/quotearg.c (ALERT_CHAR): New macro.
85793         (quotearg_buffer_restyled): Use it.
85794
85795 2000-02-27  Jim Meyering  <meyering@lucent.com>
85796
85797         * m4/check-decl.m4: Add getenv to the list.
85798
85799 2000-02-27  Jim Meyering  <meyering@lucent.com>
85800
85801         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
85802         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
85803
85804         * lib/backupfile.c: Guard inclusion of stdlib.h with
85805         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
85806         Declare malloc if needed.
85807
85808         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
85809         `#ifndef HAVE_DECL..'
85810         now that autoconf always defines the HAVE_DECL_ symbols.
85811         * lib/human.c: Likewise.
85812         * lib/same.c: Likewise.
85813         * lib/strtoumax.c: Likewise.
85814
85815         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
85816         declaration check was not run.
85817         * lib/hash.c: Likewise.
85818         * lib/human.c: Likewise.
85819         * lib/same.c: Likewise.
85820         * lib/strtoumax.c: Likewise.
85821
85822         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
85823         `.', then first look up the entire `.'-containing string as a login
85824         name.
85825
85826 2000-02-23  Jim Meyering  <meyering@lucent.com>
85827
85828         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
85829         in place of my hack.
85830
85831 2000-02-18  Paul Eggert  <eggert@twinsun.com>
85832
85833         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
85834         (textint): New typedef.
85835         (parser_control): Member year changed from int to textint.
85836         All uses changed.
85837         (YYSTYPE): Removed; replaced by %union with int and textint members.
85838         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
85839         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
85840         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
85841         (tSNUMBER, tUNUMBER): Now of type <textintval>.
85842         (date, number, to_year): Use width of number in digits, not its value,
85843         to determine whether it's a 2-digit year, or a 2-digit time.
85844         (yylex): Store number of digits of numeric tokens.
85845         Reported by John Kendall.
85846
85847         (parser_control): Changed from struct parser_control to typedef (for
85848         consistency).  All uses changed.
85849
85850         (tID): Removed; not used.
85851         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
85852
85853 2000-02-14  Paul Eggert  <eggert@twinsun.com>
85854
85855         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
85856         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
85857
85858 2000-02-12  Jim Meyering  <meyering@lucent.com>
85859
85860         * lib/userspec.c (ISDIGIT): Define it.
85861         (isdigit): Remove definition.
85862         (is_number): Use ISDIGIT, not isdigit.
85863         <libintl.h>: Include.
85864         (_ and N_): Define.
85865         (parse_user_spec): Mark translatable strings.
85866
85867 2000-02-10  Jim Meyering  <meyering@lucent.com>
85868
85869         With these changes, nanosleep.[ch] are finally enough like the other
85870         lib/* replacement files to compile on a few more losing systems.
85871
85872         * lib/nanosleep.h: Don't include config.h.
85873         Remove prototype from declaration of nanosleep.
85874         (PARAMS): Remove now-unneeded definition.
85875         * lib/nanosleep.c: #undef nanosleep.
85876         (rpl_nanosleep): Rename from nanosleep.
85877
85878 2000-02-10  Jim Meyering  <meyering@lucent.com>
85879
85880         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
85881         gnu_nanosleep to rpl_nanosleep.
85882
85883 2000-02-09  Jim Meyering  <meyering@lucent.com>
85884
85885         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
85886         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
85887
85888 2000-02-08  Akim Demaille  <akim@epita.fr>
85889
85890         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
85891         `[' and `]' and remove uses of `changequote'.
85892         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
85893         (AC_SYS_LARGEFILE): Likewise.
85894         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85895         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
85896         of changequote.
85897         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
85898         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
85899         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
85900         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85901
85902 2000-02-05  Jim Meyering  <meyering@lucent.com>
85903
85904         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85905         Remove explicit use of AC_HEADER_TIME.  It is required by
85906         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85907         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85908         in autoconf whereby the expansion of the latter ended up preceding
85909         the expansion of its prerequisite, AC_HEADER_TIME.
85910         Reported by Volker Borchert.
85911
85912 2000-02-03  Jim Meyering  <meyering@lucent.com>
85913
85914         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85915
85916 2000-02-03  Jim Meyering  <meyering@lucent.com>
85917
85918         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85919         rather than with `#if HAVE_UTMPNAME'.
85920
85921 2000-02-02  Jim Meyering  <meyering@lucent.com>
85922
85923         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85924         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85925         Reported by Eli Zaretskii.
85926
85927 2000-02-01  Jim Meyering  <meyering@lucent.com>
85928
85929         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85930
85931 2000-01-31  Jim Meyering  <meyering@lucent.com>
85932
85933         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85934         functions.  Add the time.h and sys/time.h headers along with the
85935         AC_REQUIRE'ment of AC_HEADER_TIME.
85936
85937 2000-01-31  Jim Meyering  <meyering@lucent.com>
85938
85939         * lib/nanosleep.h (nanosleep): Guard declaration with
85940         `#if ! HAVE_DECL_NANOSLEEP'.
85941         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85942         the declaration in that vendor's sys/timers.h.
85943         Reported by Christian Krackowizer.
85944
85945         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85946         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85947         (ISPRINT): Likewise.
85948         Reported by Tom Tromey.
85949
85950 2000-01-30  Jim Meyering  <meyering@lucent.com>
85951
85952         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85953
85954         * m4/prereq.m4 (utmp_includes): Define.
85955         Check for ut_user and ut_name members in both struct utmpx
85956         and struct utmp.
85957
85958 2000-01-30  Jim Meyering  <meyering@lucent.com>
85959
85960         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85961         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85962         header files where only utmpx.ut_user is declared.
85963
85964         * lib/readutmp.h (UT_USER): Define.
85965
85966 2000-01-29  Jim Meyering  <meyering@lucent.com>
85967
85968         * m4/lib-check.m4: New file containing library-related checks from
85969         fileutils and sh-utils (textutils had none).
85970
85971 2000-01-28  Jim Meyering  <meyering@lucent.com>
85972
85973         * m4/perl.m4: Change format of warning message to look more like that
85974         from the missing script.  Suggestion from François Pinard.
85975
85976 2000-01-25  Jim Meyering  <meyering@lucent.com>
85977
85978         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85979         well as time.h in the compile check.
85980         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85981         Fix typo in cross-compiling case: s/yes/no/.
85982
85983 2000-01-23  Jim Meyering  <meyering@lucent.com>
85984
85985         * m4/jm-macros.m4: Move df-related tests here from
85986         fileutils/configure.in
85987
85988         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85989         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85990
85991         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85992         s/space/ac_fsusage_space/.
85993         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85994
85995         * m4/ftruncate.m4: New file (derived from part of
85996         fileutils/configure.in).
85997         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85998         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85999
86000         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
86001         AC_SUBST these here, rather than just in sh-util/configure.in, so
86002         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
86003         all the same.
86004         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
86005         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
86006         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
86007         (AC_SUBST(POW_LIBM)): Likewise.
86008         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
86009
86010 2000-01-23  Jim Meyering  <meyering@lucent.com>
86011
86012         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
86013         obstack.c.
86014
86015 2000-01-22  Jim Meyering  <meyering@lucent.com>
86016
86017         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
86018
86019         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
86020
86021         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
86022         configure.in
86023         (AC_CHECK_HEADERS): Likewise for sh-utils.
86024         (AC_CHECK_HEADERS): Likewise for textutils.
86025         Merge the three lists of headers.
86026
86027         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
86028         from fileutils' configure.in.
86029
86030         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
86031         code. Moved tests into their own function (_jm_DECL_HEADERS) in
86032         check-decl.m4.
86033
86034         * m4/check-decl.m4: Use #if rather than #ifdef.
86035         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
86036         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
86037         (_jm_DECL_HEADERS): Define new function.
86038         (jm_CHECK_DECLARATIONS): Require it.
86039
86040 2000-01-22  Jim Meyering  <meyering@lucent.com>
86041
86042         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
86043         [! HAVE_DECL_STRTOULL]: Declare strtoull.
86044         Required for some AIX systems.  Reported by Christian Krackowizer.
86045         [TESTING] (main): New function.
86046
86047         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
86048         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
86049         letters.
86050
86051         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
86052         iswprint.
86053
86054         * lib/strverscmp.c (ISDIGIT): Define.
86055         (strverscmp): Use ISDIGIT, not isdigit.
86056
86057 2000-01-19  Jim Meyering  <meyering@lucent.com>
86058
86059         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
86060         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
86061         defines `struct timespec' in <sys/time.h>
86062
86063         * m4/c-bs-a.m4: Remove uses of changequote altogether.
86064         Thanks to Akim for explaining.
86065
86066 2000-01-17  Paul Eggert  <eggert@twinsun.com>
86067
86068         * lib/nanosleep.c (nanosleep):
86069         Don't use SA_INTERRUPT to decide whether to call sigaction, as
86070         POSIX.1 doesn't require SA_INTERRUPT and some systems
86071         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
86072         it's been part of POSIX.1 since day 1 (in 1988).
86073
86074 2000-01-17  Jim Meyering  <meyering@lucent.com>
86075
86076         * lib/interlock: Remove unused file.  Reported by François Pinard.
86077
86078 2000-01-16  Paul Eggert  <eggert@twinsun.com>
86079
86080         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
86081         alert, backslash, formfeed, and vertical tab unnecessarily in
86082         shell quoting style.
86083
86084 2000-01-16  Jim Meyering  <meyering@lucent.com>
86085
86086         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
86087         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
86088         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
86089         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
86090
86091 2000-01-16  Jim Meyering  <meyering@lucent.com>
86092
86093         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
86094         because the latter didn't work.
86095
86096 2000-01-15  Jim Meyering  <meyering@lucent.com>
86097
86098         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
86099         (AC_REPLACE_FUNCS): Add memcpy and memset.
86100         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
86101         Add strpbrk.
86102         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
86103
86104 2000-01-12  Jim Meyering  <meyering@lucent.com>
86105
86106         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
86107         (jm_PREREQ): Use it.
86108         (jm_PREREQ_READUTMP): New macro.
86109         (jm_PREREQ): Use it.
86110
86111 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86112
86113         Quote multibyte characters correctly.
86114         * m4/c-bs-a.m4: New file.
86115         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
86116         (jm_PREREQ): Use it.
86117
86118 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86119
86120         * m4/uintmax_t.m4: Port to autoconf 2.13.
86121
86122 2000-01-08  Jim Meyering  <meyering@ascend.com>
86123
86124         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
86125         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
86126
86127 2000-01-04  Jim Meyering  <meyering@ascend.com>
86128
86129         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
86130         jm_STRUCT_DIRENT_D_TYPE.
86131         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
86132         jm_STRUCT_DIRENT_D_INO.
86133         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
86134         jm_STRUCT_UTIMBUF.
86135         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
86136         renamings.
86137         * m4/utime.m4: Likewise.
86138
86139         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
86140         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
86141
86142 2000-01-03  Paul Eggert  <eggert@twinsun.com>
86143
86144         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
86145         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
86146
86147 2000-01-02  Jim Meyering  <meyering@ascend.com>
86148
86149         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
86150         remember if this is necessary.
86151
86152 1999-12-26  Jim Meyering  <meyering@ascend.com>
86153
86154         * m4/jm-macros.m4: Use it here.
86155         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
86156
86157 1999-12-23  Jim Meyering  <meyering@ascend.com>
86158
86159         * m4/jm-macros.m4: Check for clock_gettime (moved from
86160         fileutils/configure.in)
86161         Check for gettimeofday.
86162
86163 1999-12-20  Jim Meyering  <meyering@ascend.com>
86164
86165         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
86166         autoconf-2.14a-1999-12-20.
86167
86168 1999-12-19  Jim Meyering  <meyering@ascend.com>
86169
86170         * m4/lstat-slash.m4: New file.
86171         * m4/jm-macros.m4: Use the new macro:
86172         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86173
86174 1999-12-07  Jim Meyering  <meyering@ascend.com>
86175
86176         * m4/perl.m4: Require that File::Compare be available, too.
86177         Too many systems seem to lack it.
86178
86179         * m4/strftime.m4: Add checks for most of the cpp macros tested in
86180         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
86181
86182 1999-11-18  Paul Eggert  <eggert@twinsun.com>
86183
86184         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
86185         problem with the QNX 4.25 shell, which doesn't propagate exit
86186         status of failed commands inside shell assignments.
86187
86188 1999-11-17  Jim Meyering  <meyering@ascend.com>
86189
86190         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
86191
86192 1999-11-07  Jim Meyering  <meyering@ascend.com>
86193
86194         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
86195
86196 1999-11-06  Jim Meyering  <meyering@ascend.com>
86197
86198         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
86199         * m4/jm-macros.m4 (jm_MACROS): Use it here.
86200
86201 1999-11-05  Jim Meyering  <meyering@ascend.com>
86202
86203         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
86204         configure.in of textutils, fileutils, and sh-utils into this one
86205         (shared between those packages) file.
86206         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
86207         AC_STRUCT_ST_BLKSIZE.
86208
86209 1999-11-03  Jim Meyering  <meyering@ascend.com>
86210
86211         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
86212         of AC_CHECK_TYPE checks includes unistd.h.
86213         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
86214         Suggestion from Akim Demaille.
86215
86216 1999-10-30  Jim Meyering  <meyering@ascend.com>
86217
86218         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
86219         m4-quoted string.
86220         * m4/ls-mntd-fs.m4: Likewise.
86221         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
86222         * m4/jm-winsz1.m4: Likewise.
86223
86224         * m4/const.m4: Remove file, since the fix made it into the experimental
86225         version of autoconf.
86226         * m4/mktime.m4: Likewise.
86227
86228         * m4/check-type.m4: Remove file, now that the latest version of
86229         AC_CHECK_TYPE takes a third arg to specify additional #includes.
86230
86231         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
86232         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
86233         AC_CHECK_TYPE.
86234
86235 1999-10-04  Jim Meyering  <meyering@ascend.com>
86236
86237         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
86238
86239 1999-09-22  Paul Eggert  <eggert@twinsun.com>
86240
86241         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
86242         2.95.1 bug with HP-UX 10.20.
86243
86244 1999-09-17  Jim Meyering  <meyering@ascend.com>
86245
86246         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
86247         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
86248         due to missing strdup (against sh-utils-2.0).
86249
86250 1999-08-29  Jim Meyering  <meyering@ascend.com>
86251
86252         * m4/jm-macros.m4: Require jm_BISON.
86253         * m4/bison.m4: New file.
86254
86255 1999-08-17  Paul Eggert  <eggert@twinsun.com>
86256
86257         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
86258         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
86259
86260 1999-08-05  Jim Meyering  <meyering@ascend.com>
86261
86262         * m4/getline.m4: Rename test file from conftestdata to conftest.data
86263         to avoid conflicts with `conftest' on 8+3 filesystems.
86264         Suggestion from Eli Zaretskii.
86265
86266 1999-08-04  Jim Meyering  <meyering@ascend.com>
86267
86268         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
86269         fileutils and sh-utils (textutils's getline test was inadequate).
86270         (AM_FUNC_GETLINE): Run this test.
86271         (AC_CHECK_FUNCS): Check for getdelim.
86272         Reported by Bob Proulx.
86273
86274 1999-08-02  Jim Meyering  <meyering@ascend.com>
86275
86276         * m4/jm-macros.m4: Add a comment.
86277
86278 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86279
86280         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
86281         <inttypes.h> defines strtoumax as a macro (and not as a
86282         function).
86283
86284 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86285
86286         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
86287         that we can shift, multiply and divide unsigned long long
86288         values; Ultrix cc can't do it.
86289
86290 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86291
86292         * m4/mktime.m4: New file, which is a preview of what should appear
86293         in the next public autoconf release.
86294
86295 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86296
86297         * m4/lfs.m4: Remove this file.
86298         * m4/largefile.m4: New file.  It contains the old contents of
86299         lfs.m4, except that all names with prefix AC_LFS have been
86300         changed to use the prefix AC_SYS_LARGEFILE instead, to be
86301         compatible with future autoconf versions.  Also, some minor m4
86302         quoting problems have been fixed.
86303
86304 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86305
86306         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
86307         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
86308         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
86309         and simplify the shell code.
86310
86311 1999-08-01  Jim Meyering  <meyering@ascend.com>
86312
86313         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
86314         m4.
86315
86316 1999-07-20  Jim Meyering  <meyering@ascend.com>
86317
86318         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
86319
86320 1999-07-15  Jim Meyering  <meyering@ascend.com>
86321
86322         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
86323
86324 1999-05-22  Jim Meyering  <meyering@ascend.com>
86325
86326         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
86327
86328 1999-05-20  Jim Meyering  <meyering@ascend.com>
86329
86330         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
86331         Add a colon after each `then' in case $4 is empty.
86332
86333 1999-05-16  Jim Meyering  <meyering@ascend.com>
86334
86335         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
86336
86337 1999-05-10  Jim Meyering  <meyering@ascend.com>
86338
86339         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
86340
86341         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
86342         AC_FUNC_MKTIME.
86343
86344 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
86345
86346         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
86347
86348 1999-05-04  Paul Eggert  <eggert@twinsun.com>
86349
86350         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
86351         not CPPFLAGS, so that linking works correctly in IRIX.
86352
86353 1999-04-30  Paul Eggert  <eggert@twinsun.com>
86354
86355         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
86356
86357 1999-04-20  Paul Eggert  <eggert@twinsun.com>
86358
86359         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
86360         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
86361         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
86362         jm_AC_TYPE_UNSIGNED_LONG_LONG.
86363         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
86364
86365         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
86366
86367 1999-04-20  Jim Meyering  <meyering@ascend.com>
86368
86369         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
86370         AC_REPLACE xstroull if necessary.  From Paul Eggert.
86371         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
86372
86373 1999-04-18  Jim Meyering  <meyering@ascend.com>
86374
86375         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
86376         * m4/jm-macros.m4: Use it.
86377
86378 1999-04-06  Jim Meyering  <meyering@ascend.com>
86379
86380         * m4/strftime.m4: Remove test for %f.
86381
86382 1999-03-29  Jim Meyering  <meyering@ascend.com>
86383
86384         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
86385         superset of the AC_TYPE_* checks in the textutils, fileutils,
86386         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
86387         AC_TYPE_PID_T.
86388
86389 1999-03-28  Jim Meyering  <meyering@ascend.com>
86390
86391         * m4/jm-macros.m4: Define GNU_PACKAGE here.
86392         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
86393         replaced e.g., in the *.sh files of the sh-utils.
86394
86395 1999-03-20  Jim Meyering  <meyering@ascend.com>
86396
86397         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
86398         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
86399         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
86400
86401 1999-03-19  Jim Meyering  <meyering@ascend.com>
86402
86403         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
86404
86405 1999-03-12  Jim Meyering  <meyering@ascend.com>
86406
86407         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
86408
86409 1999-03-07  Jim Meyering  <meyering@ascend.com>
86410
86411         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
86412         declared.
86413
86414 1999-02-17  Jim Meyering  <meyering@ascend.com>
86415
86416         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
86417         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
86418
86419 1999-02-07  Jim Meyering  <meyering@ascend.com>
86420
86421         * m4/group-member.m4: New file -- extracted from sh-utils'
86422         configure.in.
86423
86424         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
86425         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
86426
86427 1999-02-06  Jim Meyering  <meyering@ascend.com>
86428
86429         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
86430         * m4/fnmatch.m4: Likewise.
86431         * m4/getgroups.m4: Likewise.
86432         * m4/lstat.m4: Likewise.
86433         * m4/malloc.m4: Likewise.
86434         * m4/putenv.m4: Likewise.
86435         * m4/realloc.m4: Likewise.
86436         * m4/regex.m4: Likewise.
86437         * m4/stat.m4: Likewise.
86438         * m4/strftime.m4: Likewise.
86439         Suggestion from Alain Magloire.
86440
86441         * m4/chown.m4: Use `.$ac_objext', not `.o'.
86442         * m4/fnmatch.m4: Likewise.
86443         * m4/getgroups.m4: Likewise.
86444         * m4/getline.m4: Likewise.
86445         * m4/lstat.m4: Likewise.
86446         * m4/malloc.m4: Likewise.
86447         * m4/memcmp.m4: Likewise.
86448         * m4/putenv.m4: Likewise.
86449         * m4/realloc.m4: Likewise.
86450         * m4/regex.m4: Likewise.
86451         * m4/stat.m4: Likewise.
86452         * m4/strftime.m4: Likewise.
86453         Suggestion from Alain Magloire.
86454
86455         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
86456         an argument.
86457
86458         * m4/regex.m4: Add a run-time Test for proper operation of
86459         re_compile_pattern.
86460
86461 1999-01-31  Jim Meyering  <meyering@ascend.com>
86462
86463         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
86464
86465 1999-01-30  Jim Meyering  <meyering@ascend.com>
86466
86467         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
86468
86469         * m4/jm-mktime.m4: Make this a wrapper around the official
86470         AM_FUNC_MKTIME rather than my private copy, now that the official one
86471         is up to date.
86472         * m4/mktime.m4: Remove file.
86473
86474         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
86475         * m4/uptime.m4: Likewise.
86476         * m4/uintmax_t.m4: Likewise.
86477
86478 1999-01-28  Jim Meyering  <meyering@ascend.com>
86479
86480         * m4/jm-macros.m4: Use jm_AFS.
86481         * m4/afs.m4: New file (from fileutils' configure.in).
86482
86483         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
86484         * m4/chown.m4: Likewise.
86485         * m4/d-ino.m4: Likewise.
86486         * m4/d-type.m4: Likewise.
86487         * m4/fnmatch.m4: Likewise.
86488         * m4/getgroups.m4: Likewise.
86489         * m4/gettext.m4: Likewise.
86490         * m4/jm-mktime.m4: Likewise.
86491         * m4/jm-winsz2.m4: Likewise.
86492         * m4/lcmessage.m4: Likewise.
86493         * m4/ls-mntd-fs.m4: Likewise.
86494         * m4/malloc.m4: Likewise.
86495         * m4/memcmp.m4: Likewise.
86496         * m4/putenv.m4: Likewise.
86497         * m4/realloc.m4: Likewise.
86498         * m4/st_mtim.m4: Likewise.
86499         * m4/strftime.m4: Likewise.
86500
86501 1999-01-16  Jim Meyering  <meyering@ascend.com>
86502
86503         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
86504         (ARGMATCH_DIE_DECL): Define.
86505
86506 1999-01-12  Jim Meyering  <meyering@ascend.com>
86507
86508         * m4/Makefile.am.in: Rewrite to avoid using fmt.
86509         Reported by Lars Hecking.
86510
86511 1999-01-10  Jim Meyering  <meyering@ascend.com>
86512
86513         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
86514         gross kludge.
86515         * m4/inttypes_h.m4: Likewise.
86516         * m4/lstat.m4: Likewise.
86517         * m4/malloc.m4: Likewise.
86518         * m4/readdir.m4: Likewise.
86519         * m4/realloc.m4: Likewise.
86520         * m4/st_dm_mode.m4: Likewise.
86521         * m4/stat.m4: Likewise.
86522         * m4/utimbuf.m4: Likewise.
86523         * m4/utimes.m4: Likewise.
86524
86525         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
86526         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
86527         comments in config.h.in are meaningful.
86528
86529         * m4/jm-macros.m4: Require autoconf-2.13 here.
86530
86531         * m4/regex.m4: By default, don't use the included regex.c on systems
86532         with glibc 2.  Suggestion from Uli Drepper.
86533
86534 1999-01-02  Jim Meyering  <meyering@ascend.com>
86535
86536         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
86537
86538 1998-12-18  Jim Meyering  <meyering@ascend.com>
86539
86540         * m4/Makefile.am.in (Makefile.am): Simplify rule.
86541         Based on a suggestion from Lars Hecking.
86542
86543 1998-11-16  Paul Eggert  <eggert@twinsun.com>
86544
86545         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
86546
86547 1998-11-16  Jim Meyering  <meyering@ascend.com>
86548
86549         * m4/lfs.m4: Double-quote the `uname...` expression.
86550
86551 1998-11-14  Jim Meyering  <meyering@ascend.com>
86552
86553         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
86554         * m4/stat.m4: Likewise.
86555
86556 1998-11-03  Jim Meyering  <meyering@ascend.com>
86557
86558         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
86559         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
86560
86561 1998-10-18  Jim Meyering  <meyering@ascend.com>
86562
86563         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
86564
86565 1998-10-17  Jim Meyering  <meyering@ascend.com>
86566
86567         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
86568         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
86569         calls for those previously hard-coded headers.  Instead, take a new
86570         parameter.
86571         (jm_CHECK_DECLARATIONS): Reflect interface change.
86572         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
86573         (jm_CHECK_DECL_LOCALTIME_R): New macro.
86574
86575         * m4/mktime.m4: Test for spring-forward gap before long-running test.
86576
86577 1998-10-14  Jim Meyering  <meyering@ascend.com>
86578
86579         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
86580         instead of "TZ=America/Vancouver".  From Paul Eggert.
86581
86582 1998-10-11  Jim Meyering  <meyering@ascend.com>
86583
86584         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
86585         This adds a test for a recently added compatibility fix for mktime.c.
86586         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
86587
86588 1998-09-27  Jim Meyering  <meyering@ascend.com>
86589
86590         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
86591
86592         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
86593         ../configure.in, including a change from Gordon Matzigkeit to allow
86594         cross-compiling for the Hurd.
86595
86596         * m4/glibc.m4: New file/macro to test for the GNU C Library
86597         versions 1 and 2.  From Gordon Matzigkeit.
86598         Indent.
86599
86600 1998-09-21  Jim Meyering  <meyering@ascend.com>
86601
86602         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
86603
86604 1998-08-18  Paul Eggert  <eggert@twinsun.com>
86605
86606         Port nanosecond-resolution times to UnixWare 2.1.2 and
86607         pedantic Solaris 2.6.
86608
86609         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
86610         AC_STRUCT_ST_MTIM.
86611         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
86612         Generate name of ns member, instead of just 1 or undef.
86613         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
86614
86615 1998-08-15  Jim Meyering  <meyering@ascend.com>
86616
86617         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
86618         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
86619         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
86620         instead of jm_TYPE_SSIZE_T.
86621
86622 1998-08-12  Jim Meyering  <meyering@ascend.com>
86623
86624         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
86625
86626 1998-08-02  Jim Meyering  <meyering@ascend.com>
86627
86628         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
86629         in acconfig.h manually.
86630
86631 1998-07-31  Paul Eggert  <eggert@twinsun.com>
86632
86633         * m4/st_mtim.m4: New file.
86634
86635 1998-07-28  Jim Meyering  <meyering@ascend.com>
86636
86637         * m4/utimes.m4: Undef stat.
86638
86639 1998-07-25  Jim Meyering  <meyering@ascend.com>
86640
86641         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
86642         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
86643
86644 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
86645
86646         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
86647         uid and gid actually remain unchanged.
86648
86649 1998-07-07  Jim Meyering  <meyering@ascend.com>
86650
86651         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
86652
86653 1998-07-04  Jim Meyering  <meyering@ascend.com>
86654
86655         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
86656         to prove that this macro can be used in packages without regex.c.
86657
86658 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
86659
86660         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
86661         is to be used.
86662
86663 1998-07-03  Jim Meyering  <meyering@ascend.com>
86664
86665         * m4/gettext.m4: Add -lintl if it's found to be necessary.
86666
86667         * m4/gettext.m4: New file -- from gettext-0.10.35.
86668         * m4/lcmessage.m4: Likewise.
86669         * m4/progtest.m4: Likewise.
86670
86671         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
86672         * m4/jm-macros.m4: Require the new macro.
86673
86674 1998-06-29  Jim Meyering  <meyering@ascend.com>
86675
86676         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
86677         for the definition of NGROUPS (used in a system header included
86678         by sys/mount.h).
86679
86680 1998-06-28  Jim Meyering  <meyering@ascend.com>
86681
86682         * m4/ls-mntd-fs.m4: New file.
86683         * m4/fstypename.m4: New file.
86684
86685         * m4/jm-macros.m4: Require the new macro.
86686         * m4/jm-glibc-io.m4: New file.
86687
86688 1998-05-19  Jim Meyering  <meyering@ascend.com>
86689
86690         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
86691         * m4/lchown.m4: New file.
86692
86693         * m4/Makefile.am.in: New file.
86694         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
86695
86696 1998-05-14  Jim Meyering  <meyering@ascend.com>
86697
86698         * m4/Makefile.am (EXTRA_DIST): Add them.
86699         * m4/jm-macros.m4: New file.
86700         * m4/utimbuf.m4: New file.
86701
86702 1998-05-12  Jim Meyering  <meyering@ascend.com>
86703
86704         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
86705
86706 1998-05-11  Jim Meyering  <meyering@ascend.com>
86707
86708         * m4/isc-posix.m4: New file.
86709
86710 1998-05-10  Jim Meyering  <meyering@ascend.com>
86711
86712         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
86713
86714 1998-05-09  Jim Meyering  <meyering@ascend.com>
86715
86716         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
86717         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
86718         with automake.
86719
86720         * m4/ssize_t.m4: New file.
86721         * m4/mktime.m4: Remove file -- the new automake has this now.
86722
86723 1998-04-26  Jim Meyering  <meyering@ascend.com>
86724
86725         * m4/assert.m4: New file.
86726         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
86727
86728 1998-04-05  Jim Meyering  <meyering@ascend.com>
86729
86730         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
86731         (jm_PREREQ): Use it here.
86732
86733 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
86734
86735         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
86736         in acconfig.h.
86737
86738 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
86739
86740         * m4/prereq.m4: New file.
86741         * m4/error.m4: New file.
86742         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
86743
86744 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
86745
86746         * m4/getline.m4: Don't set am_cv_func_working_getline before the
86747         cache-check for the same variable -- that defeated the purpose of
86748         the test; the test program was never run.  This was a problem only
86749         on systems with losing getline functions -- HP-UX 10.20 is one.
86750         Reported by Bjorn Helgaas.
86751
86752 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
86753
86754         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
86755
86756 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
86757
86758         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
86759
86760         * m4/const.m4: New file.  Use an initializer in this declaration
86761         typedef int charset[2]; const charset x;
86762         Reported by Bob Glickstein.
86763
86764 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
86765
86766         * m4/chown.m4: Fix reversed types on -1 args to chown.
86767         From Kaveh Ghazi.
86768
86769 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
86770
86771         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
86772         Add lseek and memchr.
86773
86774         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
86775         T.E.Dickey <dickey@clark.net> said that some older preprocessors
86776         have a 20-character limit on names.
86777
86778 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
86779
86780         * m4/inttypes_h.m4: New file.
86781         * m4/uintmax_t.m4: New file.
86782         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
86783
86784
86785         -----
86786
86787         Local Variables:
86788         coding: utf-8
86789         End:
86790
86791         Copyright (C) 1997-2011 Free Software Foundation, Inc.
86792
86793         Copying and distribution of this file, with or without
86794         modification, are permitted provided the copyright notice
86795         and this notice are preserved.