Restore the gl_GETOPT_SUBSTITUTE macro, under a new name.
[gnulib.git] / ChangeLog
1 2009-08-12  Bruno Haible  <bruno@clisp.org>
2
3         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
4         gl_GETOPT_SUBSTITUTE before.
5         (gl_GETOPT): Use it.
6         * m4/argp.m4 (gl_ARGP): Update.
7         Reported by Sergey Poznyakoff.
8
9         * m4/getopt.m4: Reorder macros.
10         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
11         (gl_GETOPT_SUBSTITUTE): Remove macro.
12
13 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
14
15         Minor improvement in gitlog-to-changelog
16
17         * build-aux/gitlog-to-changelog: New option `--format' makes
18         output format string configurable.
19
20 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21
22         Optimize exclude: use hash tables for non-wildcard patterns.
23
24         * lib/exclude.c: Include hash.h and mbuiter.h
25         (struct exclude_pattern, exclude_segment): New data types.
26         (struct exclude): Rewrite.
27         (fnmatch_pattern_has_wildcards): New function.
28         (new_exclude_segment, free_exclude_segment): New functions.
29         (excluded_file_pattern_p, excluded_file_name_p): New functions.
30         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
31         * lib/exclude.h (is_fnmatch_pattern): New prototype.
32         * modules/exclude: Depend on hash and mbuiter.
33
34         * modules/exclude-tests: New file.
35         * tests/test-exclude.c: New file.
36         * tests/test-exclude1.sh: New file.
37         * tests/test-exclude2.sh: New file.
38         * tests/test-exclude3.sh: New file.
39         * tests/test-exclude4.sh: New file.
40         * tests/test-exclude5.sh: New file.
41         * tests/test-exclude6.sh: New file.
42         * tests/test-exclude7.sh: New file.
43
44 2009-08-12  Bruno Haible  <bruno@clisp.org>
45
46         Ensure that getopt() gets declared by <unistd.h>.
47         * lib/unistd.in.h: Conditionally include getopt.h.
48         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
49         Set GNULIB_UNISTD_H_GETOPT.
50         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51         GNULIB_UNISTD_H_GETOPT.
52         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
53
54 2009-08-12  Bruno Haible  <bruno@clisp.org>
55
56         Clarify logic.
57         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
58         gl_replace_getopt instead of GETOPT_H.
59
60 2009-08-12  Bruno Haible  <bruno@clisp.org>
61
62         * m4/getopt.m4: Add comments.
63
64 2009-08-12  Bruno Haible  <bruno@clisp.org>
65
66         Disable multithread support by default on Cygwin 1.5.x.
67         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
68         set gl_use_threads=no if not specified otherwise.
69
70 2009-08-11  Bruno Haible  <bruno@clisp.org>
71
72         Avoid compilation error on NetBSD 5.0.
73         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
74         * tests/test-stdio.c: Likewise.
75         * tests/test-stdlib.c: Likewise.
76         * tests/test-string.c: Likewise.
77         * tests/test-unistd.c: Likewise.
78         Reported by Greg Troxel <gdt@ir.bbn.com>
79         at <https://savannah.gnu.org/support/?106973>.
80
81 2009-08-11  Bruno Haible  <bruno@clisp.org>
82
83         * modules/dup2-tests (Depends-on): Remove close.
84
85         Undo 2009-07-19 commit.
86         * modules/acl-tests (Depends-on): Remove close.
87         * modules/binary-io-tests (Depends-on): Likewise.
88         * modules/closein-tests (Depends-on): Likewise.
89         * modules/flock-tests (Depends-on): Likewise.
90         * modules/fsync-tests (Depends-on): Likewise.
91         * modules/lseek-tests (Depends-on): Likewise.
92         * modules/pipe-tests (Depends-on): Likewise.
93         * modules/posix_spawn-tests (Depends-on): Likewise.
94         * modules/posix_spawnp-tests (Depends-on): Likewise.
95         * modules/stat-time-tests (Depends-on): Likewise.
96         * modules/yesno-tests (Depends-on): Likewise.
97
98 2009-08-10  Bruno Haible  <bruno@clisp.org>
99
100         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
101
102 2009-08-10  Bruno Haible  <bruno@clisp.org>
103
104         Fix a gcc warning.
105         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
106
107 2009-08-10  Bruno Haible  <bruno@clisp.org>
108
109         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
110         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
111         not only the first time.
112         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
113         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
114         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
115         is 1, not only the the first time.
116
117 2009-08-10  Bruno Haible  <bruno@clisp.org>
118
119         Make it possible to use module 'gethostname' without module 'close'.
120         * lib/unistd.in.h (close): Evoke a link error only if
121         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
123         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
124         * modules/unistd (Makefile.am): Substitute
125         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
126         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
127         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
128         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
129         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
130         * modules/sys_ioctl (Makefile.am): Substitute
131         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
132         * modules/socket (configure.ac): On native Windows, set
133         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
134         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
135         Reported by Sam Steingold <sds@gnu.org>.
136
137 2009-08-10  Bruno Haible  <bruno@clisp.org>
138
139         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
140         * modules/ioctl (configure.ac): Likewise.
141
142 2009-08-10  Bruno Haible  <bruno@clisp.org>
143
144         Avoid collision between gnulib wrapper and libintl wrapper.
145         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
146         already defined in intl/printf.c.
147         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
148         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
149
150 2009-08-09  Bruno Haible  <bruno@clisp.org>
151
152         Make <sys/select.h> really self-contained, also on Solaris 10.
153         * lib/sys_select.in.h: Include <string.h>.
154         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
155         Solaris 10 problem.
156         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
157         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
158         Reported by Jim Meyering.
159
160 2009-08-09  Bruno Haible  <bruno@clisp.org>
161
162         Avoid warnings from 'aclocal' that are due to a use of macro name
163         AM_XGETTEXT_OPTION that is not defined in automake.
164         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
165         automake.
166         * modules/error (configure.ac): Likewise.
167         * modules/propername (configure.ac): Likewise.
168         * modules/vasprintf (configure.ac): Likewise.
169         * modules/verror (configure.ac): Likewise.
170         * modules/xprintf (configure.ac): Likewise.
171         * modules/xvasprintf (configure.ac): Likewise.
172
173 2009-08-08  Bruno Haible  <bruno@clisp.org>
174
175         Avoid compilation error in C++ mode.
176         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
177         Reported by Sam Steingold <sds@gnu.org>.
178
179 2009-08-08  Bruno Haible  <bruno@clisp.org>
180
181         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
182         for the various Unix platforms.
183         * doc/posix-headers/limits.texi: Update platforms list regarding
184         HOST_NAME_MAX.
185         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
186
187 2009-08-07  Jim Meyering  <meyering@redhat.com>
188
189         selinux-at: fix typo in a comment
190         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
191         Spotted by Paolo Bonzini.
192
193         selinux-at: remove redundant m4 code, add documentation
194         * modules/selinux-at (configure.ac): Remove redundant code.
195         LIB_SELINUX is already set via the dependent module, selinux-h.
196         (Include): Add quotes around selinux-at.h.
197         * lib/selinux-at.h: Add documentation.
198         Reported by Bruno Haible in
199         http://marc.info/?l=gnulib-bug&m=124958988300749
200
201 2009-08-07  Bruno Haible  <bruno@clisp.org>
202
203         Avoid link error on MacOS X 10.3 and 10.4.
204         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
205         on non-ELF systems.
206         * lib/argp-pv.c (argp_program_version): Likewise.
207         Reported by Simon Josefsson.
208
209 2009-08-07  Simon Josefsson  <simon@josefsson.org>
210
211         * tests/test-version-etc.sh: Use $EXEEXT.
212
213 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
214
215         update-copyright: update documentation to point to maint.mk
216         * build-aux/update-copyright: Here.
217
218 2009-08-06  Jim Meyering  <meyering@redhat.com>
219
220         maint.mk: support update-copyright-local
221         * top/maint.mk (update-copyright-local): Define place-holder.
222         (update-copyright): Depend on $(update-copyright-local).
223
224 2009-08-06  Jim Meyering  <meyering@redhat.com>
225
226         selinux-at: new module
227         Initially written for coreutils, this module will soon be
228         used by findutils, too.
229         * MODULES.html.sh [Misc]: Add selinux-at.
230         * lib/selinux-at.h: New file, from coreutils.
231         * lib/selinux-at.c: Likewise.
232         * modules/selinux-at: Likewise.
233         (License): Change from LGPL to GPL, since it depends
234         on the GPL'd openat module.
235
236         doc: update README
237         * README: Remove references to cogito.
238         Remove cvs-repo-updating instructions from 2007.
239         Don't imply that CVS is better if you have limited disk space.
240
241 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
242
243         update-copyright: support C-style comments
244         * build-aux/update-copyright: Implement and document.
245         * tests/test-update-copyright.sh: Test.
246
247 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
248
249         update-copyright: support omitted "(C)"
250         * build-aux/update-copyright: Implement and document.  Also,
251         allow variable whitespace before "(C)".
252         * tests/test-update-copyright.sh: Test.
253
254 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
255
256         update-copyright: don't trip on non-FSF copyright statements
257         * build-aux/update-copyright: Fix so that the first correctly
258         formatted FSF copyright statement is recognized no matter what
259         appears before it.  Update documentation.
260         * tests/test-update-copyright.sh: Test that.
261
262 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
263
264         update-copyright: clean up code a little
265         * build-aux/update-copyright: Append "_re" to the name of any
266         variable holding a regular expression.
267         Replace "old" and "new" with "stmt" in variable names.
268         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
269         handled correctly.
270         Format code more consistently.
271
272 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
273
274         update-copyright-tests: improve portability
275         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
276         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
277
278 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
279
280         update-copyright: support @copyright{} and &copy;
281         * build-aux/update-copyright: Implement and document.
282         * tests/test-update-copyright.sh: Test.
283
284 2009-08-04  Jim Meyering  <meyering@redhat.com>
285
286         update-copyright-tests: correctly test EOL=\r\n handling
287         * tests/test-update-copyright.sh: Put \r at the end of some lines
288         for the dos-eol tests.  Based on a patch by Joel E. Denny.
289
290         maint.mk: make update-copyright exclusion list more configurable
291         * top/maint.mk (update-copyright): Default to excluding COPYING,
292         but allow an override, in case someone does want to update that file.
293
294         maint.mk: don't update copyright date in COPYING
295         * top/maint.mk (update-copyright): Exclude COPYING.
296
297         maint.mk: add a copyright-updating rule
298         * top/maint.mk (update-copyright): New rule.
299         Derived from coreutils/Makefile.am.
300
301         update-copyright: rename some variables
302         * build-aux/update-copyright: Rename a few variables for clarity.
303         Tweak syntax.  List Joel E. Denny as coauthor.
304
305 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
306
307         update-copyright: fix bug for 2-digit last year and add tests
308         * build-aux/update-copyright: Fix bug.
309         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
310         specified.
311         * modules/update-copyright-tests: New
312         * tests/test-update-copyright.sh: New.
313
314 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
315
316         update-copyright: handle leading tabs in line prefix
317         * build-aux/update-copyright: Count leading tabs as 8 spaces
318         when computing margin.  This helps with the formatting of
319         ChangeLogs, for example.
320         Fix documentation a little.
321
322 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
323
324         update-copyright: support EOL=\r\n
325         * build-aux/update-copyright: Implement that.
326
327 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
328
329         update-copyright: automatically format copyright statements
330         * build-aux/update-copyright: Implement that.
331         Also, be a little more predictable and safer by always failing
332         when the full copyright format is not perfectly recognized as an
333         unbroken whole.  Discussed at
334         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
335         Rewrite documentation.
336
337 2009-08-03  Bruno Haible  <bruno@clisp.org>
338
339         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
340
341 2009-08-02  Bruno Haible  <bruno@clisp.org>
342
343         Tests for module 'uname'.
344         * modules/uname-tests: New file.
345         * tests/test-uname.c: New file.
346
347         New module 'uname'.
348         * lib/uname.c: New file.
349         * m4/uname.m4: New file.
350         * modules/uname: New file.
351         * doc/posix-functions/uname.texi: Mention the new module.
352
353 2009-08-02  Bruno Haible  <bruno@clisp.org>
354
355         Tests for module 'sys_utsname'.
356         * modules/sys_utsname-tests: New file.
357         * tests/test-sys_utsname.c: New file.
358
359         New module 'sys_utsname'.
360         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
361         * m4/sys_utsname_h.m4: New file.
362         * modules/sys_utsname: New file.
363         * doc/posix-headers/sys_utsname.texi: Mention the new module.
364
365 2009-08-02  Bruno Haible  <bruno@clisp.org>
366
367         Implicitly initialize the sockets library.
368         * lib/gethostname.c: Include sockets.h.
369         (rpl_gethostname): Invoke gl_sockets_startup.
370         * lib/socket.c: Include sockets.h.
371         (rpl_socket): Invoke gl_sockets_startup.
372         * modules/gethostname (Depends-on): Add sockets.
373         * modules/socket (Depends-on): Likewise.
374         * tests/test-poll.c: Don't include sockets.h.
375         (main): Don't invoke gl_sockets_startup.
376         * tests/test-select.c: Don't include sockets.h.
377         (main): Don't invoke gl_sockets_startup.
378
379 2009-08-02  Bruno Haible  <bruno@clisp.org>
380
381         Allow multiple calls to gl_sockets_startup.
382         * lib/sockets.c (initialized_sockets_version): New variable.
383         (gl_sockets_startup): Do nothing if already called for this or a higher
384         version.
385         (gl_sockets_cleanup): Reset initialized_sockets_version.
386
387 2009-08-03  Simon Josefsson  <simon@josefsson.org>
388
389         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
390         different project/version.
391
392 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
393             Bruno Haible  <bruno@clisp.org>
394
395         Tests for module 'pipe-filter-gi'.
396         * modules/pipe-filter-gi-tests: New file.
397         * tests/test-pipe-filter-gi1.sh: New file.
398         * tests/test-pipe-filter-gi1.c: New file.
399         * tests/test-pipe-filter-gi2.sh: New file.
400         * tests/test-pipe-filter-gi2-main.c: New file.
401         * tests/test-pipe-filter-gi2-child.c: New file.
402
403         New module 'pipe-filter-gi'.
404         * lib/pipe-filter-gi.c: New file.
405         * modules/pipe-filter-gi: New file.
406
407 2009-08-02  Bruno Haible  <bruno@clisp.org>
408             Paolo Bonzini  <bonzini@gnu.org>
409
410         Tests for module 'pipe-filter-ii'.
411         * modules/pipe-filter-ii-tests: New file.
412         * tests/test-pipe-filter-ii1.sh: New file.
413         * tests/test-pipe-filter-ii1.c: New file.
414         * tests/test-pipe-filter-ii2.sh: New file.
415         * tests/test-pipe-filter-ii2-main.c: New file.
416         * tests/test-pipe-filter-ii2-child.c: New file.
417
418         New module 'pipe-filter-ii'.
419         * lib/pipe-filter.h: New file.
420         * lib/pipe-filter-ii.c: New file.
421         * lib/pipe-filter-aux.h: New file.
422         * modules/pipe-filter-ii: New file.
423
424 2009-08-02  Simon Josefsson  <simon@josefsson.org>
425
426         * lib/gc-libgcrypt.c: Change copyright to FSF.
427         * lib/gc-gnulib.c: Likewise.
428
429 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
430
431         * lib/gethostname.c: Include limits.h.
432
433 2009-08-02  Simon Josefsson  <simon@josefsson.org>
434             Bruno Haible  <bruno@clisp.org>
435
436         Ensure HOST_NAME_MAX as part of the gethostname module.
437         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
438         define also HOST_NAME_MAX.
439         * tests/test-gethostname.c: Include <limits.h>.
440         (main): Check also HOST_NAME_MAX.
441         * doc/posix-headers/limits.texi: Document the mingw problem.
442
443 2009-08-02  Bruno Haible  <bruno@clisp.org>
444
445         * lib/gethostname.c (gethostname): Fix handling of large len argument.
446         Add comments.
447
448 2009-03-31  Simon Josefsson  <simon@josefsson.org>
449
450         * lib/gethostname.c: Add Windows wrapper.
451         * m4/gethostname.m4: Look for gethostname in -lws2_32.
452         * modules/gethostname: Depend on sys_socket & errno, for also
453         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
454         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
455
456 2009-07-31  Jim Meyering  <meyering@redhat.com>
457
458         getloadavg: fix symbol name in comment
459         * lib/getloadavg.c: Correct a typo I introduced when adding
460         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
461         Matt Kraai spotted the problem.
462
463 2009-07-29  Matt Kraai  <mkraai@beckman.com>
464
465         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
466         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
467         code also if ! defined N_NAME_POINTER.
468         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
469         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
470         but the n_name member is a 12-byte array.
471
472 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
473
474         update-copyright: generalize comment handling
475         * build-aux/update-copyright: Handle copyright statements
476         within more comment styles.
477         Document usage.
478         Report any file with an external copyright holder or parse failure.
479
480 2009-07-29  Jim Meyering  <meyering@redhat.com>
481
482         mktime: correct setting of REPLACE_MKTIME
483         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
484
485         update-copyright: new module
486         * modules/update-copyright: New file.
487         * build-aux/update-copyright: New file.
488         * MODULES.html.sh (maint+release support): Add update-copyright.
489
490 2009-07-27  Bruno Haible  <bruno@clisp.org>
491
492         Fix compilation error when <ctime> is used and mktime is replaced.
493         * lib/time.in.h (mktime): New declaration.
494         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
495         REPLACE_MKTIME instead of defining mktime in config.h.
496         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
497         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
498         Reported by Ross McFarland <rwmcfa1@neces.com>.
499
500 2009-07-27  Bruno Haible  <bruno@clisp.org>
501
502         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
503         Reported by Matt Kraai <mkraai@beckman.com>.
504
505 2009-07-25  Jim Meyering  <meyering@redhat.com>
506
507         maint.mk: avoid warnings about missing files
508         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
509         diagnostic when .prev-version does not exist.
510         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
511         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
512         nonexistent cfg.mk.
513         Suggestions from Simon Josefsson.
514
515 2009-07-25  Bruno Haible  <bruno@clisp.org>
516
517         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
518         defined as macros. Needed on QNX 6.4.1.
519         Reported by Matt Kraai <mkraai@beckman.com>.
520
521 2009-07-23  Jim Meyering  <meyering@redhat.com>
522
523         maint.mk: invoke "make dist" with a working value of XZ_OPT
524         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
525
526 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
527
528         Make fseeko.c compile on QNX.
529         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
530
531 2009-07-22  Peter Simons  <simons@cryp.to>
532
533         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
534         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
535         * lib/md4.h: Likewise.
536         * lib/md5.h: Likewise.
537         * lib/sha1.h: Likewise.
538         * lib/sha256.h: Likewise.
539         * lib/sha512.h: Likewise.
540
541         tests-sha1: don't assign literal string to 'char *' variable
542         * tests/test-sha1.c (main): Declare locals with "const" to match
543         attributes of the right hand side.
544
545 2009-07-21  Eric Blake  <ebb9@byu.net>
546
547         dup2: fix more mingw problems
548         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
549         fd to itself.
550         * doc/posix-functions/dup2.texi (dup2): Document the bug.
551         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
552         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
553         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
554         care of mingw bugs.
555
556 2009-07-21  Jim Meyering  <meyering@redhat.com>
557
558         vc-list-files: avoid failure when /bin/sh is dash
559         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
560         On some Debian based systems, /bin/sh is a symlink to dash, and running
561         this command would omit the "/" following each 'tests' prefix:
562           dash -x build-aux/vc-list-files -C . tests
563         That is because bash and dash work differently:
564           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
565           bash ok
566           dash odd
567
568 2009-07-21  Eric Blake  <ebb9@byu.net>
569
570         dup2-tests: test previous patch
571         * modules/dup2-tests: New file.
572         * tests/test-dup2.c: Likewise.
573         * tests/test-open.c (main): Avoid unspecified behavior.
574         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
575         test.
576
577         dup2: work around mingw and cygwin 1.5 bug
578         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
580         * modules/unistd (Makefile.am): Substitute it.
581         * lib/unistd.in.h (dup2): Declare the replacement.
582         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
583         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
584         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
585         * modules/execute (Depends-on): Add dup2.
586         * modules/fseterr (Depends-on): Likewise.
587         * modules/pipe (Depends-on): Likewise.
588         * modules/posix_spawn-internal (Depends-on): Likewise.
589
590 2009-07-21  Bruno Haible  <bruno@clisp.org>
591
592         * modules/.gitattributes: New file.
593
594 2009-07-20  Bruno Haible  <bruno@clisp.org>
595
596         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
597         (main): Use it.
598
599 2009-07-20  Eric Blake  <ebb9@byu.net>
600
601         test-pipe: make a bit more robust.
602         * tests/test-pipe.c (myerr): Allow error messages regardless of
603         what we do to stderr.
604         (test_pipe): Rearrange to avoid deadlock.
605         (child_main): Try a larger read, to ensure we avoided deadlock.
606         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
607         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
608         if misused.
609
610 2009-07-19  Jim Meyering  <meyering@redhat.com>
611
612         fts: avoid false-positive cycle-detection
613         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
614         for each new command line argument.
615
616 2009-07-19  Bruno Haible  <bruno@clisp.org>
617
618         Fix build error on mingw with the modules sys_select and unistd.
619         * modules/acl-tests (Depends-on): Add close.
620         * modules/binary-io-tests (Depends-on): Likewise.
621         * modules/closein-tests (Depends-on): Likewise.
622         * modules/flock-tests (Depends-on): Likewise.
623         * modules/fsync-tests (Depends-on): Likewise.
624         * modules/lseek-tests (Depends-on): Likewise.
625         * modules/pipe-tests (Depends-on): Likewise.
626         * modules/posix_spawn-tests (Depends-on): Likewise.
627         * modules/posix_spawnp-tests (Depends-on): Likewise.
628         * modules/stat-time-tests (Depends-on): Likewise.
629         * modules/yesno-tests (Depends-on): Likewise.
630
631 2009-07-19  Bruno Haible  <bruno@clisp.org>
632
633         Unify conditionals.
634         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
635         macros, not at the compiler macros.
636         * lib/pipe.c: Likewise.
637         * lib/execute.c: Likewise.
638         * lib/spawni.c: Likewise.
639
640 2009-07-19  Bruno Haible  <bruno@clisp.org>
641
642         Fix handling of closed stdin/stdout/stderr on mingw.
643         * lib/w32spawn.h: Include unistd.h.
644         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
645         file descriptor with O_NOINHERIT flag.
646         (fd_safer_noinherit): New function, based on fd-safer.c.
647         (dup_safer_noinherit): New function, based on dup-safer.c.
648         (undup_safer_noinherit): New function.
649         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
650         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
651         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
652         instead of fd_safer.
653         * tests/test-pipe.c: Include <windows.h>.
654         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
655
656         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
657         from main.
658         (test_pipe): Pass an extra argument for disambiguation.
659         (main): Invoke parent_main or child_main.
660
661         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
662         consistently.
663
664 2009-07-18  Eric Blake  <ebb9@byu.net>
665
666         test-pipe: fix mingw build
667         * tests/test-pipe.c (main): Avoid fcntl on mingw.
668
669 2009-07-18  Bruno Haible  <bruno@clisp.org>
670
671         * modules/pipe-tests (Makefile.am): Fix typo.
672
673 2009-07-18  Eric Blake  <ebb9@byu.net>
674
675         error: fix mingw build
676         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
677         Reported by Bruno Haible.
678
679         error: avoid undefined use of stdout
680         * lib/error.c (error, error_at_line): Check that fd 1 is open
681         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
682         is handling faults and the close_stdout module wants to report the
683         detection of closed stdout as an error.
684
685 2009-07-17  Eric Blake  <ebb9@byu.net>
686
687         pipe: be robust in face of closed fds
688         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
689         should cause child to misbehave.
690         * modules/pipe-tests: New module.
691         * tests/test-pipe.c: New file.
692         * tests/test-pipe.sh: New file.
693         Reported by Akim Demaille.
694
695 2009-07-14  Bruno Haible  <bruno@clisp.org>
696
697         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
698         Reported by anonymous kc.
699
700 2009-07-07  Jim Meyering  <meyering@redhat.com>
701
702         maint.mk: don't look for translatable strings in *.m4 or *.mk
703         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
704         when searching for translatable strings.
705
706 2009-07-05  Jim Meyering  <meyering@redhat.com>
707
708         remove superfluous parentheses in STREQ definition
709         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
710         * lib/getugroups.c (STREQ): Likewise.
711         * lib/fnmatch.c (STREQ): Likewise.
712         Spotted by Bruno Haible.
713
714 2009-07-04  Jim Meyering  <meyering@redhat.com>
715
716         argv-iter: new module
717         * MODULES.html.sh: Add argv-iter.
718         * lib/argv-iter.c, lib/argv-iter.h: New files.
719         * modules/argv-iter: New file.
720         * modules/argv-iter-tests: New file.
721         * tests/test-argv-iter.c: Test it.
722
723 2009-07-04  Bruno Haible  <bruno@clisp.org>
724
725         Fix assertion.
726         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
727         contains more exact copies of a given entry than file2, leave the extra
728         copies unpaired rather than aborting.
729         Reported by Eric Blake.
730
731 2009-07-02  Bruno Haible  <bruno@clisp.org>
732
733         Speedup git-merge-changelog for git cherry-pick.
734         * lib/git-merge-changelog.c (struct entries_mapping): New type.
735         (entries_mapping_get): New function, extracted from compute_mapping.
736         (entries_mapping_reverse_get): New function.
737         (compute_mapping): Add a 'full' argument. Return the result in a
738         'struct entries_mapping'.
739         (main): Update. Access the mappings through entries_mapping_get.
740         Reported by Eric Blake.
741
742 2009-07-02  Bruno Haible  <bruno@clisp.org>
743
744         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
745         best_i.
746
747 2009-07-02  Bruno Haible  <bruno@clisp.org>
748
749         Speed up approximate search for matching ChangeLog entries.
750         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
751         argument. Call fstrcmp_bounded instead of fstrcmp.
752         (compute_mapping, try_split_merged_entry, main): Update callers.
753
754 2009-07-02  Bruno Haible  <bruno@clisp.org>
755
756         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
757
758 2009-06-30  Bruno Haible  <bruno@clisp.org>
759
760         Reduce the number of uc_is_cased calls.
761         * lib/unicase.h (casing_suffix_context_t): Add
762         'first_char_except_ignorable' field.
763         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
764         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
765         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
766         Update initializer.
767         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
768         case-ignorable characters.
769         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
770         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
771         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
772         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
773         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
774
775 2009-06-30  Bruno Haible  <bruno@clisp.org>
776
777         Tests for module 'unicase/ignorable'.
778         * modules/unicase/ignorable-tests: New file.
779         * tests/unicase/test-ignorable.c: New file, generated by
780         gen-uni-tables.
781
782         Tests for module 'unicase/cased'.
783         * modules/unicase/cased-tests: New file.
784         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
785         * tests/unicase/test-predicate-part1.h: New file, derived from
786         tests/unictype/test-predicate-part1.h.
787         * tests/unicase/test-predicate-part2.h: New file, same as
788         tests/unictype/test-predicate-part2.h.
789
790         Fix evaluation of "Before C" condition of FINAL_SIGMA.
791         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
792         (output_casing_properties): New function.
793         (main): Call it.
794         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
795         * lib/unicase/cased.c: Include unictype/bitmap.h.
796         (uc_is_cased): Define through a bitmap lookup.
797         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
798         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
799         (uc_is_case_ignorable): Define through a bitmap lookup.
800         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
801         lib/unictype/bitmap.h.
802         (Depends-on): Add inline. Clean up.
803         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
804         lib/unictype/bitmap.h.
805         (Depends-on): Add inline. Clean up.
806         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
807         recognition.
808         * tests/unicase/test-u16-tolower.c (main): Likewise.
809         * tests/unicase/test-u32-tolower.c (main): Likewise.
810
811 2009-06-30  Bruno Haible  <bruno@clisp.org>
812
813         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
814         * lib/unicase/u16-casemap.c: Likewise.
815         * lib/unicase/u32-casemap.c: Likewise.
816
817 2009-06-29  Bruno Haible  <bruno@clisp.org>
818
819         Define u32_casefold as a wrapper around u32_ct_casefold.
820         * lib/unicase/u32-casefold.c: Update.
821         * modules/unicase/u32-casefold (Depends-on): Add
822         unicase/u32-ct-casefold, unicase/empty-prefix-context,
823         unicase/empty-suffix-context. Clean up.
824
825         Define u16_casefold as a wrapper around u16_ct_casefold.
826         * lib/unicase/u16-casefold.c: Update.
827         * modules/unicase/u16-casefold (Depends-on): Add
828         unicase/u16-ct-casefold, unicase/empty-prefix-context,
829         unicase/empty-suffix-context. Clean up.
830
831         Define u8_casefold as a wrapper around u8_ct_casefold.
832         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
833         * lib/unicase/u8-casefold.c: Update.
834         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
835         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
836
837         Define u32_totitle as a wrapper around u32_ct_totitle.
838         * lib/unicase/u32-totitle.c: Update.
839         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
840         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
841
842         Define u16_totitle as a wrapper around u16_ct_totitle.
843         * lib/unicase/u16-totitle.c: Update.
844         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
845         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
846
847         Define u8_totitle as a wrapper around u8_ct_totitle.
848         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
849         functions.
850         (FUNC): Delegate to U_CT_TOTITLE.
851         * lib/unicase/u8-totitle.c: Update.
852         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
853         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
854
855         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
856         invocation.
857         * modules/unicase/u32-tolower (Depends-on): Add
858         unicase/empty-prefix-context, unicase/empty-suffix-context.
859
860         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
861         invocation.
862         * modules/unicase/u16-tolower (Depends-on): Add
863         unicase/empty-prefix-context, unicase/empty-suffix-context.
864
865         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
866         * modules/unicase/u8-tolower (Depends-on): Add
867         unicase/empty-prefix-context, unicase/empty-suffix-context.
868
869         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
870         invocation.
871         * modules/unicase/u32-toupper (Depends-on): Add
872         unicase/empty-prefix-context, unicase/empty-suffix-context.
873
874         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
875         invocation.
876         * modules/unicase/u16-toupper (Depends-on): Add
877         unicase/empty-prefix-context, unicase/empty-suffix-context.
878
879         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
880         * modules/unicase/u8-toupper (Depends-on): Add
881         unicase/empty-prefix-context, unicase/empty-suffix-context.
882
883         New module 'unicase/u32-ct-casefold'.
884         * lib/unicase/u32-ct-casefold.c: New file.
885         * modules/unicase/u32-ct-casefold: New file.
886
887         New module 'unicase/u16-ct-casefold'.
888         * lib/unicase/u16-ct-casefold.c: New file.
889         * modules/unicase/u16-ct-casefold: New file.
890
891         New module 'unicase/u8-ct-casefold'.
892         * lib/unicase/u8-ct-casefold.c: New file.
893         * lib/unicase/u-ct-casefold.h: New file, derived from
894         lib/unicase/u-casefold.h.
895         * modules/unicase/u8-ct-casefold: New file.
896
897         New module 'unicase/u32-ct-totitle'.
898         * lib/unicase/u32-ct-totitle.c: New file.
899         * modules/unicase/u32-ct-totitle: New file.
900
901         New module 'unicase/u16-ct-totitle'.
902         * lib/unicase/u16-ct-totitle.c: New file.
903         * modules/unicase/u16-ct-totitle: New file.
904
905         New module 'unicase/u8-ct-totitle'.
906         * lib/unicase/u8-ct-totitle.c: New file.
907         * lib/unicase/u-ct-totitle.h: New file, derived from
908         lib/unicase/u-totitle.h.
909         * modules/unicase/u8-ct-totitle: New file.
910
911         New module 'unicase/u32-ct-tolower'.
912         * lib/unicase/u32-ct-tolower.c: New file.
913         * modules/unicase/u32-ct-tolower: New file.
914
915         New module 'unicase/u16-ct-tolower'.
916         * lib/unicase/u16-ct-tolower.c: New file.
917         * modules/unicase/u16-ct-tolower: New file.
918
919         New module 'unicase/u8-ct-tolower'.
920         * lib/unicase/u8-ct-tolower.c: New file.
921         * modules/unicase/u8-ct-tolower: New file.
922
923         New module 'unicase/u32-ct-toupper'.
924         * lib/unicase/u32-ct-toupper.c: New file.
925         * modules/unicase/u32-ct-toupper: New file.
926
927         New module 'unicase/u16-ct-toupper'.
928         * lib/unicase/u16-ct-toupper.c: New file.
929         * modules/unicase/u16-ct-toupper: New file.
930
931         New module 'unicase/u8-ct-toupper'.
932         * lib/unicase/u8-ct-toupper.c: New file.
933         * modules/unicase/u8-ct-toupper: New file.
934
935         Add context arguments to u*_casemap functions.
936         * lib/unicase/unicasemap.h: Include unicase.h.
937         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
938         suffix_context arguments.
939         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
940         functions.
941         (FUNC): Add prefix_context and suffix_context arguments. Use
942         uc_is_cased and uc_is_case_ignorable.
943         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
944         * lib/unicase/u16-casemap.c: Likewise.
945         * lib/unicase/u32-casemap.c: Likewise.
946         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
947         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
948         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
949         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
950         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
951         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
952
953         New module 'unicase/u32-suffix-context'.
954         * lib/unicase/u32-suffix-context.c: New file.
955         * modules/unicase/u32-suffix-context: New file.
956
957         New module 'unicase/u16-suffix-context'.
958         * lib/unicase/u16-suffix-context.c: New file.
959         * modules/unicase/u16-suffix-context: New file.
960
961         New module 'unicase/u8-suffix-context'.
962         * lib/unicase/u8-suffix-context.c: New file.
963         * lib/unicase/u-suffix-context.h: New file.
964         * modules/unicase/u8-suffix-context: New file.
965
966         New module 'unicase/empty-suffix-context'.
967         * lib/unicase/empty-suffix-context.c: New file.
968         * modules/unicase/empty-suffix-context: New file.
969
970         New module 'unicase/u32-prefix-context'.
971         * lib/unicase/u32-prefix-context.c: New file.
972         * modules/unicase/u32-prefix-context: New file.
973
974         New module 'unicase/u16-prefix-context'.
975         * lib/unicase/u16-prefix-context.c: New file.
976         * modules/unicase/u16-prefix-context: New file.
977
978         New module 'unicase/u8-prefix-context'.
979         * lib/unicase/u8-prefix-context.c: New file.
980         * lib/unicase/u-prefix-context.h: New file.
981         * lib/unicase/context.h: New file.
982         * modules/unicase/u8-prefix-context: New file.
983
984         New module 'unicase/empty-prefix-context'.
985         * lib/unicase/empty-prefix-context.c: New file.
986         * modules/unicase/empty-prefix-context: New file.
987
988         New module 'unicase/ignorable'.
989         * lib/unicase/ignorable.c: New file.
990         * modules/unicase/ignorable: New file.
991
992         New module 'unicase/cased'.
993         * lib/unicase/caseprop.h: New file.
994         * lib/unicase/cased.c: New file.
995         * modules/unicase/cased: New file.
996
997         New functions for case mapping of substrings.
998         * lib/unicase.h (casing_prefix_context_t): New type.
999         (unicase_empty_prefix_context): New variable.
1000         (u8_casing_prefix_context, u16_casing_prefix_context,
1001         u32_casing_prefix_context, u8_casing_prefixes_context,
1002         u16_casing_prefixes_context, u32_casing_prefixes_context): New
1003         declarations.
1004         (casing_suffix_context_t): New type.
1005         (unicase_empty_suffix_context): New variable.
1006         (u8_casing_suffix_context, u16_casing_suffix_context,
1007         u32_casing_suffix_context, u8_casing_suffixes_context,
1008         u16_casing_suffixes_context, u32_casing_suffixes_context,
1009         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
1010         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
1011         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
1012         declarations.
1013
1014 2009-06-28  Jim Meyering  <meyering@redhat.com>
1015
1016         boostrap: indent only with spaces
1017         * build-aux/bootstrap: Indent only with spaces, never TABs.
1018
1019         bootstrap: split long lines
1020         * build-aux/bootstrap: Keep line length < 80.
1021
1022         bootstrap: sync from coreutils
1023         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
1024         just as autoreconf does.  Verify a list of prerequisite
1025         package-name,version-number pairs if defined in bootstrap.conf.
1026         Refer to README-prereq, if prerequisites are not satisfied.
1027
1028 2009-06-27  Eric Blake  <ebb9@byu.net>
1029
1030         tests: add test for bogus NULL definition
1031         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
1032         * tests/test-stdlib.c: Likewise.
1033         * tests/test-string.c: Likewise.
1034         * tests/test-locale.c: Likewise.
1035         * tests/test-unistd.c: Likewise.
1036         * modules/stdio-tests (Depends-on): Add verify.
1037         * modules/stdlib-tests (Depends-on): Likewise.
1038         * modules/string-tests (Depends-on): Likewise.
1039         * modules/locale-tests (Depends-on): Likewise.
1040         * modules/unistd-tests (Depends-on): Likewise.
1041
1042 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
1043
1044         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
1045         self-explaining comment.
1046         * m4/selinux-selinux-h: Update serial.
1047         (gl_LIBSELINUX): New macro, adding a warning for missing development
1048         packages to code extracted from...
1049         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
1050         Add warning for missing development packages here, too.
1051
1052 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
1053
1054         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
1055
1056 2009-06-25  Eric Blake  <ebb9@byu.net>
1057
1058         version-etc: fix regression
1059         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
1060         gcc.
1061         (version_etc): Use it, to catch bugs with trailing NULL.
1062         * lib/version-etc.c (version_etc_arn): Delete unused argument.
1063         (version_etc_va): Fix logic bug.
1064         * modules/version-etc-tests: Add test.
1065         * tests/test-version-etc.c: New file.
1066         * tests/test-version-etc.sh: Likewise.
1067
1068 2009-06-25  Sam Steingold  <sds@gnu.org>
1069
1070         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
1071         mbtowc declaration.
1072
1073 2009-06-25  Eric Blake  <ebb9@byu.net>
1074
1075         fpurge: migrate into <stdio.h>
1076         * lib/fpurge.h: Delete...
1077         * lib/stdio.in.h (fpurge): ...and declare here, instead.
1078         * lib/fpurge.c (fpurge): Change declaring header.
1079         * modules/fpurge (Files): Drop deleted file.
1080         (Depends-on): Add stdio.
1081         (configure.ac): Set witness.
1082         * modules/stdio (Makefile.am): Support fpurge macros.
1083         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1084         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
1085         * lib/fflush.c: Update client.
1086         * tests/test-fpurge.c: Likewise.
1087         * NEWS: Mention the change.
1088
1089 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
1090
1091        * lib/argp-version-etc.c (program_authors): Add const
1092        qualifier.
1093        * lib/version-etc.c: Fix typos in the comments.
1094        * modules/argp-version-etc: Depends on version-etc.
1095
1096 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
1097
1098         argp-version-etc: new module.
1099
1100         * lib/argp-version-etc.c: New file.
1101         * lib/argp-version-etc.h: New file.
1102         * modules/argp-version-etc: New file.
1103         * modules/argp-version-etc-tests: New file.
1104         * tests/test-argp-version-etc.c: New test.
1105         * tests/test-argp-version-etc-1.sh: New test.
1106
1107 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
1108
1109         Provide additional interfaces and documentation for version-etc
1110         module.
1111
1112         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
1113         interfaces.
1114         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
1115         prototypes.
1116
1117 2009-06-24  Bruno Haible  <bruno@clisp.org>
1118
1119         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
1120         HAVE_LIB${NAME} macro.
1121         Reported by Sam Steingold <sds@gnu.org>.
1122
1123 2009-06-23  Simon Josefsson  <simon@josefsson.org>
1124
1125         * modules/hash-tests (test_hash_LDADD): Link to libintl when
1126         needed.
1127
1128 2009-06-21  Bruno Haible  <bruno@clisp.org>
1129
1130         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
1131         work.
1132         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
1133         together with LIB${NAME}, LTLIB${NAME}.
1134         Reported by Sam Steingold <sds@gnu.org>.
1135
1136 2009-06-20  Jim Meyering  <meyering@redhat.com>
1137
1138         tests: make sc_require_test_exit_idiom more generic
1139         * top/maint.mk (Exit_witness_file): New overridable variable.
1140         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
1141         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
1142
1143 2009-06-19  Jim Meyering  <meyering@redhat.com>
1144
1145         hash: reverse order of src/dst parameters in an internal interface
1146         * lib/hash.c (transfer_entries): Reverse order of parameters to
1147         put DST before SRC.  Adjust callers.
1148
1149         tests: test-hash: avoid wholesale duplication
1150         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
1151         Instead, use a loop and add a single conditional.
1152
1153         tests: test-hash: allow seed selection via a command line argument
1154         * tests/test-hash.c (get_seed): New function.
1155         (main): Use it.
1156
1157 2009-06-19  Eric Blake  <ebb9@byu.net>
1158
1159         hash: avoid memory leak on allocation failure
1160         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
1161         failure.  Factor repeated algorithm...
1162         (transfer_entries): ...into new helper routine.
1163         (hash_delete): React to hash_rehash return value.
1164
1165         hash: reduce memory pressure in hash_rehash no-op case
1166         * lib/hash.c (next_prime): Avoid overflow.
1167         (hash_initialize): Factor bucket size computation...
1168         (compute_bucket_size): ...into new helper function.
1169         (hash_rehash): Use new function and open coding to reduce memory
1170         pressure, and avoid a memory leak in USE_OBSTACK code.
1171         Reported by Jim Meyering.
1172
1173 2009-06-18  Eric Blake  <ebb9@byu.net>
1174
1175         hash: make rotation more obvious
1176         * modules/hash (Depends-on): Add bitrotate and stdint.
1177         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
1178         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
1179         (SIZE_MAX): Rely on headers for definition.
1180         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
1181         (raw_hasher): Use rotr_sz.
1182         Suggested by Jim Meyering.
1183
1184         hash: fix memory leak in last patch
1185         * lib/hash.c (hash_rehash): Avoid memory leak.
1186
1187         hash: avoid no-op rehashing
1188         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
1189
1190         hash: provide default callback functions
1191         * lib/hash.c (raw_hasher, raw_comparator): New functions.
1192         (hash_initialize): Use them as defaults.
1193         * tests/test-hash.c (main): Test this.
1194
1195         hash: minor optimization
1196         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
1197         when possible.
1198         (hash_initialize): Document this promise.
1199         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
1200         * tests/test-hash.c (hash_compare_strings): Test this.
1201
1202 2009-06-18  Bruno Haible  <bruno@clisp.org>
1203
1204         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
1205         going to be replaced anyway.
1206
1207 2009-06-18  Bruno Haible  <bruno@clisp.org>
1208
1209         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
1210         in one place.
1211         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
1212         be replaced anyway.
1213
1214 2009-06-18  Eric Blake  <ebb9@byu.net>
1215
1216         hash: check for resize before insertion
1217         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
1218         threshold before insertion, so that a pathological hash_rehash
1219         that fills every bucket can still trigger another rehash.
1220
1221 2009-06-18  Jim Meyering  <meyering@redhat.com>
1222
1223         hash-tests: add a loop around the small tests
1224         * tests/test-hash.c (main): Repeat small tests with selected
1225         small initial table sizes.
1226
1227 2009-06-17  Eric Blake  <ebb9@byu.net>
1228
1229         hash: minor cleanups
1230         * lib/hash.h (hash_entry): Make opaque, by moving...
1231         * lib/hash.c (hash_entry): ...here.
1232         (hash_insert): Clarify restrictions on what can be inserted.
1233         (hash_get_next): Clarify when it is safe to remove an element
1234         during traversal.
1235         (check_tuning): Skip verification when tuning is known safe.
1236         (hash_initialize): Clarify restrictions on tuning.
1237
1238 2009-06-17  Jim Meyering  <jim@meyering.net>
1239         and Eric Blake  <ebb9@byu.net>
1240
1241         hash-tests: new module
1242         * modules/hash-tests: New file.
1243         * tests/test-hash.c: New file.
1244
1245 2009-06-17  Eric Blake  <ebb9@byu.net>
1246
1247         strstr-simple: document new module
1248         * MODULES.html.sh: Document new module.
1249
1250         strstr, strcasestr: replace on platforms with broken memchr
1251         * modules/strstr: Split into...
1252         * modules/strstr-simple: ...new module that does not care about
1253         performance, but does care about glibc bug.
1254         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
1255         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
1256         if platform memchr is broken, per Debian bug 521737.
1257         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
1258         memchr.
1259         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
1260         * doc/posix-functions/strstr.texi (strstr): Document the fix.
1261         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
1262         * modules/mountlist (Depends-on): Add strstr-simple.
1263         * modules/gen-uni-tables (Depends-on): Likewise.
1264         * modules/argz (Depends-on): Add strstr.
1265
1266 2009-06-17  Bruno Haible  <bruno@clisp.org>
1267
1268         * modules/posix_spawn-internal (Depends-on): Add errno.
1269
1270 2009-06-17  Bruno Haible  <bruno@clisp.org>
1271
1272         Define missing ESTALE on Interix 3.5.
1273         * lib/errno.in.h (ESTALE): Assign a value if missing.
1274         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
1275         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
1276         missing.
1277         * doc/posix-headers/errno.texi: Mention the Interix bug.
1278         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
1279
1280 2009-06-15  Eric Blake  <ebb9@byu.net>
1281
1282         memchr, memchr2: add valgrind exception
1283         * lib/memchr.valgrind: New file.
1284         * lib/memchr2.valgrind: New file.
1285         * modules/memchr (Files): Distribute valgrind file.
1286         * modules/memchr2 (Files): Likewise.
1287
1288         docs: memchr is no longer obsolete
1289         * MODULES.html.sh: Move memchr from obsolete to string.h section.
1290         * lib/string.in.h (memchr): Simplify logic.
1291
1292 2009-06-14  Jim Meyering  <meyering@redhat.com>
1293
1294         link-follow: fix the "checking..." message to not mention trailing slash
1295         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
1296         never considered trailing slashes.
1297
1298 2009-06-14  Bruno Haible  <bruno@clisp.org>
1299
1300         * m4/memchr.m4: Mention also the bug on IA-64.
1301         * doc/posix-functions/memchr.texi: Likewise.
1302
1303 2009-06-12  Eric Blake  <ebb9@byu.net>
1304
1305         memchr: detect broken x86_64 and alpha implementations
1306         * modules/memchr-tests (Depends-on): Move mmap detection...
1307         * modules/memchr (Depends-on): ...here.
1308         (configure.ac): Set indicator.
1309         * lib/string.in.h (memchr): Declare replacement.
1310         * modules/string (Makefile.am): Trigger replacement.
1311         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
1312         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
1313         bugs.
1314         * doc/posix-functions/memchr.texi (memchr): Document the bug.
1315         * modules/getpagesize (License): Relax license.
1316
1317 2009-06-11  Bruno Haible  <bruno@clisp.org>
1318
1319         * lib/idpriv.h: Add more references.
1320
1321 2009-06-08  Bruno Haible  <bruno@clisp.org>
1322
1323         Tests for module 'idpriv-droptemp'.
1324         * modules/idpriv-droptemp-tests: New file.
1325         * tests/test-idpriv-droptemp.sh: New file.
1326         * tests/test-idpriv-droptemp.su.sh: New file.
1327         * tests/test-idpriv-droptemp.c: New file.
1328
1329         New module 'idpriv-droptemp'.
1330         * lib/idpriv-droptemp.c: New file.
1331         * modules/idpriv-droptemp: New file.
1332
1333 2009-06-08  Bruno Haible  <bruno@clisp.org>
1334
1335         Tests for module 'idpriv-drop'.
1336         * modules/idpriv-drop-tests: New file.
1337         * tests/test-idpriv-drop.sh: New file.
1338         * tests/test-idpriv-drop.su.sh: New file.
1339         * tests/test-idpriv-drop.c: New file.
1340
1341         New module 'idpriv-drop'.
1342         * lib/idpriv.h: New file.
1343         * lib-idpriv-drop.c: New file.
1344         * m4/idpriv.m4: New file.
1345         * modules/idpriv-drop: New file.
1346
1347 2009-06-08  Bruno Haible  <bruno@clisp.org>
1348
1349         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
1350         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1351         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1352         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1353         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1354         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1355         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1356
1357 2009-06-08  Eric Blake  <ebb9@byu.net>
1358
1359         test-strstr: use memory fence, when possible
1360         * tests/test-strstr.c (main): Use memory fence, in order to be
1361         more likely to trigger Debian bug 521737.
1362         * modules/strstr-tests (Files): Pull in additional files.
1363
1364         memchr: no longer obsolete, for wider field testing
1365         * modules/memchr (Status, Notice): Delete, this module is no
1366         longer obsolete.
1367         * modules/vasnprintf (Depends-on): Add memchr.
1368
1369 2009-06-07  Jim Meyering  <meyering@redhat.com>
1370
1371         hash: declare some functions with the warn_unused_result attribute
1372         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
1373
1374 2009-06-07  Bruno Haible  <bruno@clisp.org>
1375
1376         * tests/test-alignof.c: Don't test int64_t if it does not exist.
1377         Reported by Eric Blake.
1378
1379 2009-06-06  Eric Blake  <ebb9@byu.net>
1380
1381         test-alignof: fix typo with long double
1382         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
1383         compiler error.
1384
1385 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
1386
1387         Escape non-texinfo { and }s.
1388         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
1389         markup error.
1390
1391 2009-06-04  Jim Meyering  <meyering@redhat.com>
1392
1393         gitlog-to-changelog: don't infloop on an empty commit log
1394         * build-aux/gitlog-to-changelog: Warn about an empty log message.
1395         Reported by Boris Petersen <transacid@centerim.org>.
1396
1397 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
1398
1399         version-etc: extend for packagers
1400         Add three new configure options, intended for packagers:
1401           --with-packager="packager name"
1402           --with-packager-version="packager-specific version"
1403           --with-packager-bug-reports="packager bug reporting"
1404         An example with coreutils:
1405           $ ./configure \
1406             --with-packager=Gentoo \
1407             --with-packager-bug-report=http://bugs.gentoo.org/ \
1408             --with-packager-version="patchset 1.6"
1409           $ ./src/ls --version | head -n3
1410           ls (GNU coreutils) 7.1-dirty
1411           Packaged by Gentoo (patchset 1.6)
1412           Copyright (C) 2009 Free Software Foundation, Inc.
1413         Note that the bug reporting info via --help doesn't show up because
1414         coreutils uses its own custom emit_bug_reporting_address() implementation
1415         in src/system.h.  If it didn't, it'd look like:
1416           $ ./src/ls --help | tail -n4
1417           Report bugs to <bug-coreutils@gnu.org>.
1418           Report Gentoo bugs to <http://bugs.gentoo.org/>.
1419           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
1420           General help using GNU software: <http://www.gnu.org/gethelp/>.
1421         * lib/version-etc.c: Print new information, if provided.
1422         * m4/version-etc.m4: New file.
1423         * modules/version-etc (Files): Add m4/version-etc.m4.
1424         (configure.ac): Add gl_VERSION_ETC.
1425
1426 2009-05-31  Bruno Haible  <bruno@clisp.org>
1427
1428         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
1429         and 'int64_t'.
1430         * modules/alignof-tests (Dependencies): Add stdint.
1431         Reported by Eric Blake.
1432
1433 2009-05-31  Bruno Haible  <bruno@clisp.org>
1434
1435         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
1436         restriction due to compiler bugs.
1437         Reported by Eric Blake.
1438
1439 2009-05-31  Simon Josefsson  <simon@josefsson.org>
1440             Bruno Haible  <bruno@clisp.org>
1441
1442         Fix test-alignof failure.
1443         * lib/alignof.h (alignof_slot): New macro.
1444         (alignof_type): New macro, with the same semantics as the previous
1445         'alignof'.
1446         (alignof): Alias to alignof_slot.
1447         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
1448         check that the results are usable as constant expressions.
1449
1450 2009-05-31  Bruno Haible  <bruno@clisp.org>
1451
1452         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
1453         * tests/test-memchr.c (main): Check that memchr does not read past the
1454         first occurrence of the byte.
1455         * tests/test-strstr.c (main): Update comment.
1456         Suggested by Eric Blake.
1457
1458 2009-05-30  Bruno Haible  <bruno@clisp.org>
1459
1460         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
1461         detail how to use dumpbin.
1462         Reported by David Byron <dbyron@dbyron.com>.
1463
1464 2009-06-02  Simon Josefsson  <simon@josefsson.org>
1465
1466         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
1467
1468 2009-06-02  Simon Josefsson  <simon@josefsson.org>
1469
1470         * m4/manywarnings.m4: Add GCC 4.4 warnings.
1471
1472 2009-05-28  Bruno Haible  <bruno@clisp.org>
1473
1474         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
1475         build-aux/ files.
1476
1477 2009-05-28  Simon Josefsson  <simon@josefsson.org>
1478
1479         * gnulib-tool (func_import): Transform license on build-aux/ files too.
1480
1481 2009-05-27  Simon Josefsson  <simon@josefsson.org>
1482
1483         * gnulib-tool (sed_transform_main_lib_file)
1484         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
1485         regexps.
1486
1487 2009-05-26  Simon Josefsson  <simon@josefsson.org>
1488
1489         * tests/test-strstr.c: Add another self-test.
1490         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
1491         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
1492
1493 2009-05-23  Bruno Haible  <bruno@clisp.org>
1494
1495         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
1496         change.
1497
1498 2009-05-21  Bruno Haible  <bruno@clisp.org>
1499
1500         Simplify use of mode_t varargs.
1501         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
1502         uses 'mode_t' or 'int'.
1503         * lib/openat.c (openat): Likewise.
1504         * lib/open-safer.c (open_safer): Likewise.
1505         * m4/mode_t.m4: New file.
1506         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
1507         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
1508         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
1509         * modules/open (Files): Add m4/mode_t.m4.
1510         * modules/openat (Files): Likewise.
1511         * modules/fcntl-safer (Files): Likewise.
1512         Suggested by Eric Blake.
1513
1514 2009-05-21  Pádraig Brady  <P@draigbrady.com>
1515
1516         * doc/glibc-functions/fallocate.texi: New file.
1517         * doc/gnulib.texi: Include it.
1518
1519 2009-05-21  Eric Blake  <ebb9@byu.net>
1520             Bruno Haible  <bruno@clisp.org>
1521
1522         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
1523         invocations.
1524         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
1525
1526 2009-05-21  Eric Blake  <ebb9@byu.net>
1527             Bruno Haible  <bruno@clisp.org>
1528
1529         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
1530         include_next. Fix of 2008-11-20 commit.
1531         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
1532         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
1533         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
1534         NEXT_MATH_H.
1535         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
1536         instead of NEXT_MATH_H.
1537
1538 2009-05-21  Bruno Haible  <bruno@clisp.org>
1539
1540         Avoid redefinition warnings for SIZE_MAX.
1541         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
1542         Reported by Simon Josefsson.
1543
1544 2009-05-21  Bruno Haible  <bruno@clisp.org>
1545
1546         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
1547         AC_CACHE_VAL.
1548
1549 2009-05-20  Bruno Haible  <bruno@clisp.org>
1550
1551         Make zeroptr.h work on mingw.
1552         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
1553         mprotect.
1554         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
1555         * modules/memchr2-tests (configure.ac): Likewise.
1556         * modules/memcmp-tests (configure.ac): Likewise.
1557         * modules/memmem-tests (configure.ac): Likewise.
1558         * modules/memrchr-tests (configure.ac): Likewise.
1559         Reported by Simon Josefsson.
1560
1561 2009-05-20  Simon Josefsson  <simon@josefsson.org>
1562
1563         * tests/test-glob.c: Include string.h for strcmp prototype.
1564
1565 2009-05-20  Simon Josefsson  <simon@josefsson.org>
1566
1567         * modules/getdelim (Depends-on): Add explicit stdint, although it
1568         was implicitly already pulled in via realloc-posix.
1569         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
1570
1571 2009-05-20  Simon Josefsson  <simon@josefsson.org>
1572
1573         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
1574         G. Christensen" <tgc@jupiterrise.com>.
1575         * m4/sys_socket_h.m4: Check for sa_family_t.
1576         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
1577         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
1578         * tests/test-sys_socket.c: Check that sa_family_t works.
1579
1580 2009-05-18  Eric Blake  <ebb9@byu.net>
1581
1582         maint.mk: allow gnulib_dir in VPATH build
1583         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
1584
1585 2009-05-15  Jim Meyering  <meyering@redhat.com>
1586
1587         maint.mk: Give gnulib_dir a default definition.
1588         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
1589         Thus, most packages no longer need to specify this variable in cfg.mk
1590
1591 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
1592
1593         rename.m4: fix typos that would make non-mingw cross-configure fail
1594         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
1595
1596 2009-05-13  Eric Blake  <ebb9@byu.net>
1597
1598         mmap-anon: avoid out-of-order autoconf expansion
1599         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
1600         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
1601         * modules/memchr-tests (Depends-on): Add extensions.
1602         * modules/memchr2-tests (Depends-on): Add extensions.
1603         * modules/memcmp-tests (Depends-on): Add extensions.
1604         * modules/memmem-tests (Depends-on): Add extensions.
1605         * modules/memrchr-tests (Depends-on): Add extensions.
1606
1607 2009-05-13  Bruno Haible  <bruno@clisp.org>
1608
1609         Make some tests ISO C 99 compliant.
1610         * tests/zerosize-ptr.h: New file.
1611         * tests/test-memchr.c: Include zerosize-ptr.h.
1612         (main): Use a zero-size object pointer instead of NULL.
1613         * tests/test-memchr2.c: Include zerosize-ptr.h.
1614         (main): Use a zero-size object pointer instead of NULL.
1615         * tests/test-memcmp.c: Include zerosize-ptr.h.
1616         (main): Use a zero-size object pointer instead of NULL.
1617         * tests/test-memmem.c: Include zerosize-ptr.h.
1618         (main): Use a zero-size object pointer instead of NULL.
1619         * tests/test-memrchr.c: Include zerosize-ptr.h.
1620         (main): Use a zero-size object pointer instead of NULL.
1621         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
1622         m4/mmap-anon.m4.
1623         (Depends-on): Add getpagesize.
1624         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
1625         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
1626         m4/mmap-anon.m4.
1627         (Depends-on): Add getpagesize.
1628         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
1629         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
1630         m4/mmap-anon.m4.
1631         (Depends-on): Add getpagesize.
1632         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
1633         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
1634         m4/mmap-anon.m4.
1635         (Depends-on): Add getpagesize.
1636         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
1637         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
1638         m4/mmap-anon.m4.
1639         (Depends-on): Add getpagesize.
1640         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
1641
1642 2009-05-12  Bruno Haible  <bruno@clisp.org>
1643
1644         Tests for module 'alignof'.
1645         * modules/alignof-tests: New file.
1646         * tests/test-alignof.c: New file.
1647
1648 2009-05-12  Bruno Haible  <bruno@clisp.org>
1649
1650         Fix alignof macro.
1651         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
1652         vendor compilers that are always correct.
1653
1654 2009-05-12  Bruno Haible  <bruno@clisp.org>
1655
1656         Make the MAP_ANONYMOUS detection work on HP-UX 11.
1657         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
1658         not whether its fully works.
1659
1660 2009-05-12  Bruno Haible  <bruno@clisp.org>
1661
1662         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
1663
1664 2009-05-12  Jim Meyering  <meyering@redhat.com>
1665
1666         * top/maint.mk: Adjust backslash alignment.
1667
1668 2009-05-11  Simon Josefsson  <simon@josefsson.org>
1669
1670         * top/maint.mk: Make $(srcdir)/build-aux configurable.
1671
1672 2009-05-11  Eric Blake  <ebb9@byu.net>
1673
1674         argp: avoid undefined behavior
1675         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
1676         macros.
1677
1678 2009-05-08  Simon Josefsson  <simon@josefsson.org>
1679
1680         * tests/test-vc-list-files-git.sh: Do git config of user.email and
1681         user.name to prevent git commit from complaining.
1682
1683 2009-05-10  Bruno Haible  <bruno@clisp.org>
1684
1685         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
1686         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
1687         it rewrites every file name only once.
1688         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
1689
1690 2009-05-08  Bruno Haible  <bruno@clisp.org>
1691
1692         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
1693         instead of 'max'.
1694
1695 2009-05-08  Simon Josefsson  <simon@josefsson.org>
1696
1697         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
1698         sockaddr_storage test.
1699
1700 2009-05-07  Simon Josefsson  <simon@josefsson.org>
1701
1702         * modules/sys_socket (Makefile.am): Substitute
1703         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
1704         * m4/sys_socket_h.m4: Check for sockaddr_storage.
1705         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
1706         * tests/test-sys_socket.c: Check sockaddr_storage.
1707
1708 2009-05-08  Bruno Haible  <bruno@clisp.org>
1709
1710         New module 'alignof'.
1711         * lib/alignof.h: New file.
1712         * modules/alignof: New file.
1713
1714 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
1715             Bruno Haible  <bruno@clisp.org>
1716
1717         Fix test-file-has-acl on FreeBSD.
1718         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
1719         mask is implicitly added.
1720         * tests/test-file-has-acl.c: Include <signal.h>.
1721         (main): Terminate the test after 5 seconds.
1722         * modules/acl-tests (configure.ac): Check for alarm function.
1723
1724 2009-05-04  Bruno Haible  <bruno@clisp.org>
1725
1726         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
1727         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
1728         * modules/errno (configure.ac): Drop AC_REQUIRE.
1729         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
1730         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
1731
1732 2009-05-04  Simon Josefsson  <simon@josefsson.org>
1733
1734         * modules/glob-tests: New module.
1735         * tests/test-glob.c: Add.
1736
1737 2009-05-04  Simon Josefsson  <simon@josefsson.org>
1738
1739         * modules/fnmatch-tests: New module.
1740         * tests/test-fnmatch.c: Add.
1741
1742 2009-05-04  Eric Blake  <ebb9@byu.net>
1743
1744         maint: make the new no-submodule-changes rule VPATH-safe
1745         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
1746
1747 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
1748             Bruno Haible  <bruno@clisp.org>
1749
1750         acl: Fix infinite loop on FreeBSD.
1751         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
1752         of return value from acl_get_entry.
1753         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
1754         Likewise.
1755
1756 2009-05-03  Bruno Haible  <bruno@clisp.org>
1757
1758         * lib/acl-internal.h (acl_entries): Clarify return value.
1759         * lib/acl_entries.c (acl_entries): Likewise.
1760
1761 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
1762
1763         Bug fix in acl module.
1764         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
1765
1766 2009-05-03  Bruno Haible  <bruno@clisp.org>
1767
1768         Create gperf-generated file in the source dir, not in the build dir.
1769         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
1770         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
1771         * modules/unicase/locale-language (unicase/locale-languages.h):
1772         Likewise.
1773         * modules/unicase/special-casing (unicase/special-casing-table.h):
1774         Likewise.
1775         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
1776         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
1777         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
1778         Reported by Ralf Wildenhues.
1779
1780 2009-05-03  Bruno Haible  <bruno@clisp.org>
1781
1782         * modules/fnmatch (Description, configure.ac): Taken from
1783         fnmatch-posix.
1784         * modules/fnmatch-posix: Turn into a symbolic reference to the
1785         'fnmatch' module, and deprecate.
1786         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
1787
1788 2009-05-03  Bruno Haible  <bruno@clisp.org>
1789
1790         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
1791         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
1792         Reported by Ralf Wildenhues.
1793
1794 2009-05-04  Simon Josefsson  <simon@josefsson.org>
1795
1796         * m4/fnmatch.m4: Fix fnmatch re-define.
1797
1798 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
1799
1800         priv-set: new module and tests; adapt write-any-file
1801         * lib/priv-set.c: New file.
1802         * lib/priv-set.h: New file.
1803         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
1804         * lib/write-any-file.c: Simplify by using priv-set module.
1805         * m4/priv-set.m4: New file.
1806         * modules/priv-set: New file.
1807         * modules/unlinkdir: Add dependency on priv-set module.
1808         * modules/write-any-file: Likewise.
1809
1810         Tests for module 'priv-set'.
1811         * modules/priv-set-tests: New file.
1812         * tests/test-priv-set.c: New file.
1813
1814 2009-05-03  Jim Meyering  <meyering@redhat.com>
1815             Bruno Haible  <bruno@clisp.org>
1816
1817         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
1818         use the converted UTF-8 variant of the name instead.
1819
1820 2009-05-03  Jim Meyering  <meyering@redhat.com>
1821
1822         tests: tighten some getdate tests
1823         * tests/test-getdate.c (main): Tighten tests: require equality,
1824         not just greater than.  Set TZ envvar to UTC0.
1825
1826 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
1827
1828         getdate: correctly interpret "next monday" when run on a Monday
1829         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
1830         that e.g., "next tues" (when run on a tuesday) results in a date
1831         that is one week in the future, and not today's date.
1832         I.e., add a week when the wday is the same as the current one.
1833         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
1834         and earlier by Martin Bernreuther and Jan Minář.
1835         * tests/test-getdate.c (main): Check that "next DAY" is always in
1836         the future and that "last DAY" is always in the past.
1837
1838 2009-05-02  Jim Meyering  <meyering@redhat.com>
1839
1840         build: ensure that a release build fails when a submodule is unclean
1841         * top/maint.mk (no-submodule-changes): New rule.
1842         (alpha beta major): Depend on it.
1843
1844 2009-05-02  Bruno Haible  <bruno@clisp.org>
1845
1846         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
1847         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
1848         shell variable gl_fnmatch_required to detect which variant is
1849         requested.
1850         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
1851         gl_FUNC_FNMATCH_POSIX.
1852         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
1853         exclude fnmatch-posix.
1854
1855 2009-05-02  Bruno Haible  <bruno@clisp.org>
1856
1857         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
1858         * modules/mbsrtowcs (License): Change to LGPLv2+.
1859         * modules/strnlen1 (License): Likewise.
1860         Reported by Simon Josefsson.
1861
1862 2009-05-02  Bruno Haible  <bruno@clisp.org>
1863
1864         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
1865         "cross".
1866         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
1867         gnulib-tool was called with option --source-base=lib.
1868
1869 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1870
1871         Use automake *-local hooks without commands, for extensibility.
1872         * modules/localcharset (Makefile.am): Rename install-exec-local
1873         rule to install-exec-localcharset, and make it a prerequisite of
1874         install-exec-local.  Likewise, rename the uninstall-local rule to
1875         uninstall-localcharset, and make it a prerequisite of the former.
1876
1877 2009-05-01  Bruno Haible  <bruno@clisp.org>
1878
1879         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
1880         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
1881         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
1882         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
1883         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
1884         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
1885         m4/locale-zh.m4, m4/codeset.m4.
1886
1887         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
1888         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
1889         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
1890         m4/locale-zh.m4.
1891
1892         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
1893         REPLACE_WCRTOMB if mbstate_t must be replaced.
1894         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
1895         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
1896
1897 2009-05-01  Bruno Haible  <bruno@clisp.org>
1898
1899         Avoid compiler warnings when redefining macros defined by <libintl.h>.
1900         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
1901         dngettext, dcngettext, textdomain, bindtextdomain,
1902         bind_textdomain_codeset): Undefine before redefining.
1903
1904 2009-04-30  Bruno Haible  <bruno@clisp.org>
1905
1906         Fix bug introduced on 2009-04-25.
1907         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
1908         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
1909         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
1910         is defined.
1911         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
1912         is defined.
1913         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
1914         is defined.
1915         Reported by Elbert_Pol <elbert.pol@gmail.com>.
1916
1917 2009-04-28  Bruno Haible  <bruno@clisp.org>
1918
1919         Comment tweaks.
1920         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
1921         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
1922         * lib/unicase.h (u*_casexfrm): Likewise.
1923         Reported by Paolo Bonzini.
1924
1925 2009-04-28  Bruno Haible  <bruno@clisp.org>
1926
1927         Fix a compilation error.
1928         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
1929         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
1930         Reported by Jim Meyering.
1931
1932 2009-04-27  Bruno Haible  <bruno@clisp.org>
1933
1934         New module 'libunistring'.
1935         * modules/libunistring: New file.
1936         * m4/libunistring.m4: New file.
1937         * MODULES.html.sh (Unicode string functions): Add it.
1938
1939 2009-04-27  Eric Blake  <ebb9@byu.net>
1940
1941         maint.mk: allow package-specific header to provide <config.h>
1942         * top/maint.mk (sc_require_config_h): New variable.
1943         (sc_require_config_h, sc_require_config_h_first): Use it.
1944
1945 2009-04-27  Simon Josefsson  <simon@josefsson.org>
1946
1947         * top/maint.mk (sc_avoid_if_before_free): Except
1948         useless-if-before-free script.
1949
1950 2009-04-27  Eric Blake  <ebb9@byu.net>
1951
1952         maintainer-makefile: depend on all required helper scripts
1953         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
1954         useless-if-before-free.
1955         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
1956         version, rather than assuming gnulib checkout is available.
1957         Reported by Simen Josefsson.
1958
1959 2009-04-26  Bruno Haible  <bruno@clisp.org>
1960
1961         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
1962         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
1963         "../" or "..".
1964
1965 2009-04-26  Bruno Haible  <bruno@clisp.org>
1966
1967         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
1968         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
1969         AC_LIB_HAVE_LINKFLAGS.
1970
1971 2009-04-26  Bruno Haible  <bruno@clisp.org>
1972
1973         Simplify calling convention of u*_conv_from_encoding.
1974         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
1975         u32_conv_from_encoding): Expect a resultbuf argument and return the
1976         result directly as a pointer.
1977         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
1978         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
1979         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
1980         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
1981         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
1982         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
1983         Update.
1984         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
1985         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
1986         * lib/vasnprintf.c (VASNPRINTF): Update.
1987         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
1988         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
1989         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
1990         * NEWS: Mention the change.
1991
1992 2009-04-26  Bruno Haible  <bruno@clisp.org>
1993
1994         Simplify calling convention of u*_conv_to_encoding.
1995         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
1996         u32_conv_to_encoding): Expect a resultbuf argument and return the
1997         result directly as a pointer.
1998         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
1999         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
2000         freeing scaled_offsets if mem_iconveha failed.
2001         * lib/unicase/u-casexfrm.h (FUNC): Update.
2002         * lib/uninorm/u-normxfrm.h (FUNC): Update.
2003         * lib/vasnprintf.c (VASNPRINTF): Update.
2004         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
2005         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
2006         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
2007         * NEWS: Mention the change.
2008
2009 2009-04-26  Bruno Haible  <bruno@clisp.org>
2010
2011         Avoid test failures on AIX and OSF/1.
2012         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
2013         malloc(0).
2014         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
2015         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
2016         Likewise.
2017         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
2018         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
2019         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
2020         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
2021         * doc/posix-functions/malloc.texi: Document the portability problem
2022         related to malloc(0).
2023
2024 2009-04-26  Bruno Haible  <bruno@clisp.org>
2025
2026         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
2027         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
2028         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
2029
2030 2009-04-25  Bruno Haible  <bruno@clisp.org>
2031
2032         Avoid link error when creating a namespace clean library.
2033         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
2034         as macro with arguments if already defined as an alias.
2035         * lib/signbitf.c (gl_signbitf): Don't undefine.
2036         * lib/signbitd.c (gl_signbitd): Don't undefine.
2037         * lib/signbitl.c (gl_signbitl): Don't undefine.
2038
2039 2009-04-25  Jim Meyering  <meyering@redhat.com>
2040
2041         vc-list-files: fix another quoting bug
2042         * build-aux/vc-list-files: Avoid sed backslash expansion
2043         of pathological directory names.
2044
2045 2009-04-25  Eric Blake  <ebb9@byu.net>
2046
2047         vc-list-files: fix shell quoting error
2048         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
2049         timestamp.
2050
2051 2009-04-25  Jim Meyering  <meyering@redhat.com>
2052
2053         vc-list-files: restore lost functionality with subdir argument
2054         * build-aux/vc-list-files: When given a non-"." sub-directory
2055         argument, substitute the $dir/ prefix back onto each resulting name.
2056         Otherwise, coreutils' root_tests check would fail.
2057
2058 2009-04-24  Eric Blake  <ebb9@byu.net>
2059
2060         vc-list-files: ignore git symlinks
2061         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
2062         than ls-files, to ignore git symlinks.
2063
2064         maint.mk: import improvements from m4
2065         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
2066         (move_if_change): Delete unused macro.
2067         (news-date-check, vc-diff-check): Support VPATH builds.
2068         (announcement): Likewise.  Split --bootstrap-tools list...
2069         (boostrap-tools): ...into separate list, which can be overridden
2070         in cfg.mk.
2071         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
2072         requiring dependency on useless-if-before-free module.
2073         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
2074         Support VPATH builds.
2075
2076 2009-04-24  Jim Meyering  <meyering@redhat.com>
2077
2078         maint.mk: remove coreutils-specific rules and variables
2079         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
2080         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
2081         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
2082
2083         maint.mk: remove obsolete rule
2084         * top/maint.mk (rel-check): Remove rule.
2085         (WGET, WGETFLAGS): Remove now-unused variables.
2086
2087 2009-04-24  Simon Josefsson  <simon@josefsson.org>
2088
2089         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
2090         consistency.
2091
2092         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
2093         '$(PATH_SEPARATOR)' instead of ':'.
2094
2095 2009-04-24  Simon Josefsson  <simon@josefsson.org>
2096
2097         * lib/getopt1.c (main): Use 'const' for static array.
2098
2099 2009-04-24  Simon Josefsson  <simon@josefsson.org>
2100
2101         * top/maint.mk: Sync with coreutils.
2102         * NEWS: Explain incompatibilities.
2103
2104 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2105             Bruno Haible  <bruno@clisp.org>
2106
2107         Fix cross-compilation results.
2108         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
2109         statement, as third argument of AC_TRY_RUN.
2110         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
2111         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
2112         Likewise.
2113         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2114         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
2115         Likewise.
2116         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2117         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
2118         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
2119
2120 2009-04-20  Bruno Haible  <bruno@clisp.org>
2121
2122         Avoid test failure on mingw.
2123         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
2124
2125 2009-04-20  Bruno Haible  <bruno@clisp.org>
2126
2127         Avoid compilation error on mingw.
2128         * modules/localename-tests (Depends-on): Add locale.
2129
2130 2009-04-19  Bruno Haible  <bruno@clisp.org>
2131
2132         Support for building a shared library on Windows platforms.
2133         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
2134         (main): Test the presence of UNINORM_NFC here.
2135         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
2136         (main): Test the presence of UNINORM_NFD here.
2137         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
2138         (main): Test the presence of UNINORM_NFKC here.
2139         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
2140         (main): Test the presence of UNINORM_NFKD here.
2141
2142 2009-04-19  Bruno Haible  <bruno@clisp.org>
2143
2144         Avoid a compiler warning.
2145         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
2146         Change type of variable 'sequence'.
2147
2148 2009-04-19  Bruno Haible  <bruno@clisp.org>
2149
2150         * modules/configmake (Makefile.am): When the contents of configmake.h
2151         does not change, arrange to preserve its modification time.
2152
2153 2009-04-17  Simon Josefsson  <simon@josefsson.org>
2154
2155         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
2156         gettext domain.
2157
2158 2009-04-16  Jim Meyering  <meyering@redhat.com>
2159
2160         useless-if-before-free: improve conversion code
2161         * build-aux/useless-if-before-free: Adjust code-in-comment to match
2162         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
2163
2164 2009-04-14  Bruno Haible  <bruno@clisp.org>
2165
2166         * modules/fcntl (Depends-on): Add extensions.
2167         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
2168
2169 2009-04-12  Ben Pfaff  <blp@gnu.org>
2170
2171         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
2172         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
2173
2174 2009-03-20  Ben Pfaff  <blp@gnu.org>
2175
2176         Make rename replace existing destinations on Windows.
2177         * m4/rename.m4: Add test for Mingw.
2178         * lib/rename.c: Add rename replacement that uses MoveFileEx with
2179         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
2180         * doc/posix-functions/rename.texi: Document.
2181
2182 2009-04-10  Bruno Haible  <bruno@clisp.org>
2183
2184         New include file "iconveh.h".
2185         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
2186         * lib/striconveh.h: Include it.
2187         (enum iconv_ilseq_handler): Remove definition.
2188         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
2189         striconveh.h.
2190         * lib/striconveha.c: Include striconveh.h.
2191         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
2192         * modules/striconveh (Files): Add lib/iconveh.h.
2193         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
2194         lib/striconveh.h.
2195
2196 2009-04-10  Bruno Haible  <bruno@clisp.org>
2197
2198         * lib/uniconv.h: Update comment.
2199
2200 2009-04-10  Bruno Haible  <bruno@clisp.org>
2201
2202         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
2203         always.
2204         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
2205         * lib/unistr/u16-mbtouc-aux.c: Likewise.
2206         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
2207         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
2208         "unistring-notinline.h", so that the function gets defined always.
2209         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
2210         * lib/unistr/u8-uctomb.c: Likewise.
2211         * lib/unistr/u16-mbtouc.c: Likewise.
2212         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
2213         * lib/unistr/u16-uctomb.c: Likewise.
2214         * lib/unistr/u32-mbtouc.c: Likewise.
2215         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
2216         * lib/unistr/u32-uctomb.c: Likewise.
2217
2218 2009-04-10  Bruno Haible  <bruno@clisp.org>
2219
2220         Mark 'utime' obsolete.
2221         * modules/utime (Status, Notice): New sections.
2222         Suggested by Jim Meyering.
2223
2224         Fix cross-compile guess for utime test.
2225         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
2226         autoconf.
2227         * doc/posix-functions/utime.texi: Give more precisions.
2228         Reported by Jan <ipif@ymail.com>.
2229
2230 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
2231
2232         filevercmp: correct today's change
2233         * lib/filevercmp.c: Also handle coreutils' test inputs.
2234         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
2235
2236         Fix regression in 'filevercmp' module. Thanks Sven Joachim
2237         for reporting it.
2238         * lib/filevercmp.c: Special handle for "", "." and "..".
2239         * tests/test-filevercmp.c: Enlarge the set suite.
2240
2241 2009-04-07  Jim Meyering  <meyering@redhat.com>
2242
2243         useless-if-before-free: show how to remove braced useless free, too
2244         * build-aux/useless-if-before-free: still only in a comment, though.
2245
2246 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
2247
2248         maint.mk: import changes to syntax-check macros from coreutils
2249         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
2250         Use them in the relevant macros.
2251
2252 2009-04-06  Bruno Haible  <bruno@clisp.org>
2253
2254         Fix unportable use of bit-fields.
2255         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
2256         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
2257         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
2258
2259 2009-04-06  Bruno Haible  <bruno@clisp.org>
2260
2261         Avoid test failures on AIX and OSF/1.
2262         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
2263         that malloc(0) = NULL.
2264         * tests/unicase/test-u8-tolower.c (check): Likewise.
2265         * tests/unicase/test-u8-totitle.c (check): Likewise.
2266         * tests/unicase/test-u8-toupper.c (check): Likewise.
2267         * tests/unicase/test-u16-casefold.c (check): Likewise.
2268         * tests/unicase/test-u16-tolower.c (check): Likewise.
2269         * tests/unicase/test-u16-totitle.c (check): Likewise.
2270         * tests/unicase/test-u16-toupper.c (check): Likewise.
2271         * tests/unicase/test-u32-casefold.c (check): Likewise.
2272         * tests/unicase/test-u32-tolower.c (check): Likewise.
2273         * tests/unicase/test-u32-totitle.c (check): Likewise.
2274         * tests/unicase/test-u32-toupper.c (check): Likewise.
2275         * tests/uninorm/test-u8-nfc.c (check): Likewise.
2276         * tests/uninorm/test-u8-nfd.c (check): Likewise.
2277         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
2278         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
2279         * tests/uninorm/test-u16-nfc.c (check): Likewise.
2280         * tests/uninorm/test-u16-nfd.c (check): Likewise.
2281         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
2282         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
2283         * tests/uninorm/test-u32-nfc.c (check): Likewise.
2284         * tests/uninorm/test-u32-nfd.c (check): Likewise.
2285         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
2286         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
2287
2288 2009-04-05  Bruno Haible  <bruno@clisp.org>
2289
2290         Work around an autoconf limitation.
2291         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
2292         comment line if it would be longer than 3 KB.
2293
2294 2009-04-05  Bruno Haible  <bruno@clisp.org>
2295
2296         Avoid test failure with libiconv-1.13.
2297         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
2298         of the expected test results.
2299
2300 2009-04-05  Bruno Haible  <bruno@clisp.org>
2301
2302         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
2303         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
2304         that it should be installed.
2305
2306 2009-04-05  Bruno Haible  <bruno@clisp.org>
2307
2308         * gnulib-tool: New option --copy-file.
2309         (func_usage): Document it.
2310         (func_dest_tmpfilename): Moved out of func_import.
2311         (func_add_file, func_update_file): New functions, extracted from
2312         func_import.
2313         (func_import): Update.
2314
2315 2009-04-05  Karl Berry  <karl@gnu.org>
2316
2317         * README: prominently mention gnulib-tool.
2318         Rearrange sections so getting the code is near the top.
2319
2320 2009-04-05  Bruno Haible  <bruno@clisp.org>
2321
2322         * lib/unicase.h: Mention u*_cmp2.
2323         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
2324         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
2325         * lib/unicase/ulc-casecmp.c: Likewise.
2326         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
2327         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
2328         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
2329         unistr/u8-cmp.
2330         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
2331         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
2332         unistr/u16-cmp.
2333         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
2334         unistr/u32-cmp.
2335
2336         * lib/uninorm.h: Mention u*_cmp2.
2337         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
2338         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
2339         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
2340         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
2341         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
2342         unistr/u8-cmp.
2343         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
2344         unistr/u16-cmp.
2345         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
2346         unistr/u32-cmp.
2347
2348         New module 'unistr/u32-cmp2'.
2349         * lib/unistr/u32-cmp2.c: New file.
2350         * modules/unistr/u32-cmp2: New file.
2351
2352         New module 'unistr/u16-cmp2'.
2353         * lib/unistr/u16-cmp2.c: New file.
2354         * modules/unistr/u16-cmp2: New file.
2355
2356         New module 'unistr/u8-cmp2'.
2357         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
2358         * lib/unistr/u8-cmp2.c: New file.
2359         * lib/unistr/u-cmp2.h: New file.
2360         * modules/unistr/u8-cmp2: New file.
2361
2362 2009-04-05  Bruno Haible  <bruno@clisp.org>
2363
2364         * lib/unictype.h (uc_property_is_valid): New macro.
2365         * tests/unictype/test-pr_byname.c (main): Use it.
2366
2367         * lib/unistr.h: Doc fixes.
2368         * lib/uniconv.h: Doc fixes.
2369         * lib/unictype.h: Doc fixes.
2370
2371 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
2372
2373         Port coreutils 7.2 to Solaris 8.
2374
2375         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
2376         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
2377         for Solaris 8.  This is a bit of a hack, as it means it's the
2378         caller's responsibility to add -lnsl if needed, but most likely it
2379         won't be needed since only getaddrinfo uses this and getaddrinfo
2380         isn't needed on Solaris 8.
2381
2382         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
2383         problem to Solaris 8 encountered with coreutils 7.2, which
2384         resulted in a message "fnmatch.c:292: warning: passing argument 4
2385         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
2386         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
2387
2388 2009-04-03  Simon Josefsson  <simon@josefsson.org>
2389
2390         * m4/ld-version-script.m4: Add FIXME comment.
2391
2392 2009-04-02  Simon Josefsson  <simon@josefsson.org>
2393
2394         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
2395         SOVERSION variable.
2396
2397 2009-04-02  Bruno Haible  <bruno@clisp.org>
2398
2399         * Makefile (info, html, dvi, pdf): Combine the rules.
2400         Suggested by Jim Meyering.
2401
2402 2009-04-01  Bruno Haible  <bruno@clisp.org>
2403
2404         * Makefile (info, html, dvi, pdf): New targets.
2405         Reported by Reuben Thomas <rrt@sc3d.org>.
2406
2407 2009-04-01  Bruno Haible  <bruno@clisp.org>
2408
2409         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
2410         can be put into PATH.
2411         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
2412
2413 2009-04-01  Bruno Haible  <bruno@clisp.org>
2414
2415         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
2416
2417 2009-04-01  Bruno Haible  <bruno@clisp.org>
2418
2419         Rename module 'visibility'.
2420         * modules/lib-symbol-visibility: Renamed from modules/visibility.
2421         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
2422         * doc/gnulib.texi: Update.
2423         * MODULES.html.sh (Misc): Update.
2424         * NEWS: Mention the change.
2425
2426 2009-04-01  Simon Josefsson  <simon@josefsson.org>
2427
2428         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
2429         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
2430         Eric Blake <ebb9@byu.net> for review.
2431         * MODULES.html.sh: Add lib-msvc-compat.
2432         * doc/gnulib.texi: Link to new section.
2433         * m4/ld-output-def.m4: New file.
2434         * doc/ld-output-def.texi: New file.
2435
2436 2009-04-01  Simon Josefsson  <simon@josefsson.org>
2437
2438         Rename ld-version-script to lib-symbol-versions.  Suggested by
2439         Bruno Haible <bruno@clisp.org>.
2440         * modules/ld-version-script: Renamed to lib-symbol-versions.
2441         * doc/ld-version-script.texi: Fix module name.
2442         * MODULES.html.sh: Add lib-symbol-versions.
2443
2444 2009-03-31  Simon Josefsson  <simon@josefsson.org>
2445
2446         * modules/u64-tests: New file.
2447         * tests/test-u64.c: New file.
2448
2449 2009-03-04  Simon Josefsson  <simon@josefsson.org>
2450
2451         * MODULES.html.sh: Mention u64.
2452         * modules/u64: New module.
2453         * modules/crypto/sha512: Depend on u64 module instead of providing
2454         u64.h.
2455
2456 2009-03-27  Eric Blake  <ebb9@byu.net>
2457
2458         test-strerror: make debugging EAI_SYSTEM easier
2459         * modules/getaddrinfo-tests (Depends-on): Add strerror.
2460         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
2461         failure was EAI_SYSTEM.
2462
2463 2009-03-25  Bruno Haible  <bruno@clisp.org>
2464
2465         Fix a problem with --enable-relocatable on Solaris 7.
2466         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
2467         since 2008-02-24.
2468
2469 2009-03-25  Eric Blake  <ebb9@byu.net>
2470
2471         test-sockets: avoid gcc warning
2472         * tests/test-sockets.c (main): Silence compiler warning.
2473
2474 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
2475
2476         New modules nproc, pthread, contributed by Glen Lenker.
2477
2478         * MODULES.html.sh: Add pthread, nproc.
2479         * lib/nproc.c: New file.
2480         * lib/nproc.h: New file.
2481         * lib/pthread.in.h: New file.
2482         * m4/pthread.m4: New file.
2483         * modules/nproc: New file.
2484         * modules/pthread: New file.
2485
2486 2009-03-24  Simon Josefsson  <simon@josefsson.org>
2487
2488         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
2489         New variable.
2490
2491 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
2492
2493         filevercmp: handle simple~ and numbered.~3~ backup suffixes
2494         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
2495         * tests/test-filevercmp.c: Add tests for backup suffixes.
2496
2497 2009-03-24  Simon Josefsson  <simon@josefsson.org>
2498
2499         * modules/stdlib (Depends-on): Add stdint, needed when defining
2500         struct random_data on, for example, HP-UX 10.20.  Reported by
2501         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2502
2503 2009-03-24  Simon Josefsson  <simon@josefsson.org>
2504
2505         * lib/readline.c (readline): Call fflush on stdout after printing
2506         prompt.
2507
2508 2009-03-20  Bruno Haible  <bruno@clisp.org>
2509
2510         Remove dependency from 'close' module to -lws2_32 on native Windows.
2511         * lib/close-hook.h: New file.
2512         * lib/close-hook.c: New file.
2513         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
2514         w32sock.h.
2515         (_gl_close_fd_maybe_socket): Remove function.
2516         (rpl_close): Invoke execute_all_close_hooks instead of
2517         _gl_close_fd_maybe_socket.
2518         * lib/sockets.c: Include close-hook.h, w32sock.h.
2519         (close_fd_maybe_socket): New function, essentially from lib/close.c.
2520         (close_sockets_hook): New variable.
2521         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
2522         (gl_sockets_cleanup): Unregister it.
2523         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
2524         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
2525         * modules/close-hook: New file.
2526         * modules/close (Files): Remove lib/w32sock.h.
2527         (Depends-on): Add close-hook.
2528         (Link): Remove section.
2529         * modules/sockets (Files): Add lib/w32sock.h.
2530         (Depends-on): Add close-hook.
2531         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
2532         invocation.
2533         * NEWS: Mention that LIB_CLOSE is gone.
2534
2535 2009-03-23  Eric Blake  <ebb9@byu.net>
2536
2537         signal-tests: test previous patch
2538         * tests/test-signal.c: New file.
2539         * modules/signal-tests: Likewise.
2540
2541         signal.h: always support 'volatile sig_atomic_t'
2542         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
2543         (gl_SIGNAL_H_DEFAULTS): Add a default.
2544         * modules/signal (Makefile.am): Substitute if needed.
2545         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
2546         users can blindly add volatile.
2547         * doc/posix-headers/signal.texi (signal.h): Document it.
2548         Reported by Matthew Woehlke.
2549
2550 2009-03-23  Jim Meyering  <meyering@redhat.com>
2551
2552         pathmax: PATH_MAX: use pathconf only when available
2553         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
2554         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
2555         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
2556         This avoids a link failure in a PSP cross-compilation environment
2557         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
2558
2559         * lib/vasnprintf.c (divide): Fix typo in comment.
2560
2561 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2562
2563         * gnulib-tool (func_filter_filelist): Fix comment.
2564
2565 2009-03-20  Bruno Haible  <bruno@clisp.org>
2566
2567         Make sockets.h self-contained.
2568         * lib/sockets.c: Include sockets.h first.
2569         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
2570
2571 2009-03-19  Eric Blake  <ebb9@byu.net>
2572
2573         doc: mention more functions added in cygwin 1.7.0
2574         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
2575         addition.
2576         * doc/posix-functions/log2f.texi: Likewise.
2577
2578 2009-03-19  Jim Meyering  <meyering@redhat.com>
2579
2580         fsusage: avoid syntax error due to statement-before-declaration
2581         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
2582         after all declarations.  Reported by Matthew Woehlke in
2583         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
2584
2585 2009-03-18  Eric Blake  <ebb9@byu.net>
2586
2587         build-aux/compile: sync from automake
2588         * build-aux/compile: New file, from automake.
2589         * config/srclist.txt: Mention build-aux/compile.
2590
2591 2009-03-17  Bruno Haible  <bruno@clisp.org>
2592
2593         * lib/git-merge-changelog.c: Fix typo in comment.
2594         Reported by Reuben Thomas <rrt@sc3d.org>.
2595
2596 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
2597
2598         * m4/regex.m4: update and improve help for
2599         --without-included-regex.
2600
2601 2009-03-17  Simon Josefsson  <simon@josefsson.org>
2602
2603         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
2604         failure on missing include files.
2605
2606 2009-03-17  Eric Blake  <ebb9@byu.net>
2607
2608         doc: mention more functions added in cygwin 1.7.0
2609         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
2610         addition.
2611         * doc/posix-functions/fwscanf.texi: Likewise.
2612         * doc/posix-functions/swprintf.texi: Likewise.
2613         * doc/posix-functions/swscanf.texi: Likewise.
2614         * doc/posix-functions/vfwprintf.texi: Likewise.
2615         * doc/posix-functions/vfwscanf.texi: Likewise.
2616         * doc/posix-functions/vswprintf.texi: Likewise.
2617         * doc/posix-functions/vswscanf.texi: Likewise.
2618         * doc/posix-functions/vwprintf.texi: Likewise.
2619         * doc/posix-functions/vwscanf.texi: Likewise.
2620         * doc/posix-functions/wcscasecmp.texi: Likewise.
2621         * doc/posix-functions/wcsdup.texi: Likewise.
2622         * doc/posix-functions/wcsftime.texi: Likewise.
2623         * doc/posix-functions/wcsncasecmp.texi: Likewise.
2624         * doc/posix-functions/wprintf.texi: Likewise.
2625         * doc/posix-functions/wscanf.texi: Likewise.
2626         * doc/glibc-functions/gethostbyname2.texi: Likewise.
2627
2628 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2629
2630         maint.mk: really add $(AM_MAKEFLAGS)
2631         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
2632         was inadvertently omitted in the last commit.
2633         Spotted by Bruno Haible.
2634
2635         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
2636         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
2637         $(AM_MAKEFLAGS)' rather than plain `make'.
2638
2639         gnulib-tool: execute $MAKE not make
2640         * gnulib-tool: Default $MAKE to 'make'.
2641         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
2642         than make.  Initialize $MAKE in the do-autobuild script.
2643
2644         gnulib-tool: use $MAKE not make in generated files
2645         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
2646         make, in generated files.  Initialize $MAKE in the do-autobuild
2647         script.
2648
2649         * top/GNUmakefile (_have-git-version-gen): Fix typo.
2650
2651         GNUmakefile: disable parallelism only for multiple, recursive targets
2652         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
2653         additions in the Makefile.
2654         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
2655         by Automake.
2656         (.NOTPARALLEL): Only disable parallel builds if multiple targets
2657         are listed on the command line and at least one of them is
2658         listed in $(ALL_RECURSIVE_TARGETS).
2659
2660 2009-03-14  Bruno Haible  <bruno@clisp.org>
2661
2662         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
2663         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
2664         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
2665         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
2666         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
2667         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
2668         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
2669         unistr/u8-uctomb.
2670         * modules/unistr/u8-strchr (Depends-on): Likewise.
2671         * modules/unistr/u8-strrchr (Depends-on): Likewise.
2672         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
2673         unistr/u16-uctomb.
2674         * modules/unistr/u16-strchr (Depends-on): Likewise.
2675         * modules/unistr/u16-strrchr (Depends-on): Likewise.
2676
2677 2009-03-12  Bruno Haible  <bruno@clisp.org>
2678
2679         Work around select() bug on Interix 3.5.
2680         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
2681         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
2682         * m4/select.m4: New file.
2683         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
2684         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
2685         * modules/select (Files): Add m4/select.m4.
2686         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
2687         * modules/nanosleep (Depends-on): Add select.
2688         * modules/poll (Depends-on): Likewise.
2689         * doc/posix-functions/select.texi: Mention the Interix bug.
2690         Reported by Markus Duft <mduft@gentoo.org>.
2691
2692         * lib/select.c: Renamed from lib/winsock-select.c.
2693         * modules/select (Files): Add lib/select.c, remove
2694         lib/winsock-select.c.
2695         (configure.ac): Update.
2696
2697 2009-03-12  Jim Meyering  <meyering@redhat.com>
2698
2699         avoid gcc warnings about unused macro definitions
2700         * lib/readtokens.c (STREQ): Remove unused definition.
2701         * lib/xmalloc.c (SIZE_MAX): Likewise.
2702         * lib/openat-die.c (N_): Likewise.
2703         * lib/mountlist.c (SIZE_MAX): Remove definition.
2704         Instead, include <stdint.h>.
2705         * lib/readutmp.c: Likewise.
2706         * modules/readutmp (Depends-on): Add stdint.
2707         * modules/mountlist (Depends-on): Add stdint.
2708         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
2709
2710 2009-03-10  Bruno Haible  <bruno@clisp.org>
2711
2712         Tests for module 'mbmemcasecoll'.
2713         * modules/mbmemcasecoll-tests: New file.
2714         * tests/test-mbmemcasecoll1.sh: New file.
2715         * tests/test-mbmemcasecoll2.sh: New file.
2716         * tests/test-mbmemcasecoll3.sh: New file.
2717         * tests/test-mbmemcasecoll.c: New file.
2718
2719         New module 'mbmemcasecoll'.
2720         * lib/mbmemcasecoll.h: New file.
2721         * lib/mbmemcasecoll.c: New file.
2722         * modules/mbmemcasecoll: New file.
2723
2724         * tests/test-mbmemcasecmp.h: New file, extracted from
2725         tests/test-mbmemcasecmp.c.
2726         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
2727         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
2728         (main): Update.
2729         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
2730
2731 2009-03-09  Bruno Haible  <bruno@clisp.org>
2732
2733         Tests for module 'mbmemcasecmp'.
2734         * modules/mbmemcasecmp-tests: New file.
2735         * tests/test-mbmemcasecmp1.sh: New file.
2736         * tests/test-mbmemcasecmp2.sh: New file.
2737         * tests/test-mbmemcasecmp3.sh: New file.
2738         * tests/test-mbmemcasecmp.c: New file.
2739
2740         New module 'mbmemcasecmp'.
2741         * lib/mbmemcasecmp.h: New file.
2742         * lib/mbmemcasecmp.c: New file.
2743         * modules/mbmemcasecmp: New file.
2744
2745 2009-03-09  Bruno Haible  <bruno@clisp.org>
2746
2747         Tests for module 'unicase/ulc-casecoll'.
2748         * modules/unicase/ulc-casecoll-tests: New file.
2749         * tests/unicase/test-ulc-casecoll1.sh: New file.
2750         * tests/unicase/test-ulc-casecoll2.sh: New file.
2751         * tests/unicase/test-ulc-casecoll.c: New file.
2752
2753         New module 'unicase/ulc-casecoll'.
2754         * lib/unicase.h (ulc_casecoll): New declaration.
2755         * lib/unicase/ulc-casecoll.c: New file.
2756         * modules/unicase/ulc-casecoll: New file.
2757
2758         New module 'unicase/ulc-casexfrm'.
2759         * lib/unicase.h (ulc_casexfrm): New declaration.
2760         * lib/unicase/ulc-casexfrm.c: New file.
2761         * modules/unicase/ulc-casexfrm: New file.
2762
2763 2009-03-09  Bruno Haible  <bruno@clisp.org>
2764
2765         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
2766         invocations.
2767
2768         * m4/mbscasecmp.m4: Remove file.
2769         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
2770         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
2771
2772         * m4/mbscasestr.m4: Remove file.
2773         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
2774         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
2775
2776         * m4/mbschr.m4: Remove file.
2777         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
2778         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
2779
2780         * m4/mbscspn.m4: Remove file.
2781         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
2782         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
2783
2784         * m4/mbslen.m4: Remove file.
2785         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
2786         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
2787
2788         * m4/mbsncasecmp.m4: Remove file.
2789         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
2790         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
2791
2792         * m4/mbsnlen.m4: Remove file.
2793         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
2794         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
2795
2796         * m4/mbspbrk.m4: Remove file.
2797         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
2798         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
2799
2800         * m4/mbspcasecmp.m4: Remove file.
2801         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
2802         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
2803
2804         * m4/mbsrchr.m4: Remove file.
2805         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
2806         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
2807
2808         * m4/mbssep.m4: Remove file.
2809         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
2810         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
2811
2812         * m4/mbsspn.m4: Remove file.
2813         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
2814         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
2815
2816         * m4/mbsstr.m4: Remove file.
2817         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
2818         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
2819
2820         * m4/mbstok_r.m4: Remove file.
2821         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
2822         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
2823
2824         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
2825
2826         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
2827         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
2828
2829         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
2830
2831 2009-03-08  Bruno Haible  <bruno@clisp.org>
2832
2833         Tests for module 'unicase/ulc-casecmp'.
2834         * modules/unicase/ulc-casecmp-tests: New file.
2835         * tests/unicase/test-ulc-casecmp1.sh: New file.
2836         * tests/unicase/test-ulc-casecmp2.sh: New file.
2837         * tests/unicase/test-ulc-casecmp.c: New file.
2838
2839         New module 'unicase/ulc-casecmp'.
2840         * lib/unicase.h (ulc_casecmp): New declaration.
2841         * lib/unicase/ulc-casecmp.c: New file.
2842         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
2843         'const SRC_UNIT *'.
2844         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
2845         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
2846         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
2847         * modules/unicase/ulc-casecmp: New file.
2848
2849         Tests for module 'unicase/u32-is-cased'.
2850         * modules/unicase/u32-is-cased-tests: New file.
2851         * tests/unicase/test-u32-is-cased.c: New file.
2852
2853         Tests for module 'unicase/u16-is-cased'.
2854         * modules/unicase/u16-is-cased-tests: New file.
2855         * tests/unicase/test-u16-is-cased.c: New file.
2856
2857         Tests for module 'unicase/u8-is-cased'.
2858         * modules/unicase/u8-is-cased-tests: New file.
2859         * tests/unicase/test-u8-is-cased.c: New file.
2860         * tests/unicase/test-is-cased.h: New file.
2861
2862         New module 'unicase/u32-is-cased'.
2863         * lib/unicase/u32-is-cased.c: New file.
2864         * modules/unicase/u32-is-cased: New file.
2865
2866         New module 'unicase/u16-is-cased'.
2867         * lib/unicase/u16-is-cased.c: New file.
2868         * modules/unicase/u16-is-cased: New file.
2869
2870         New module 'unicase/u8-is-cased'.
2871         * lib/unicase/u8-is-cased.c: New file.
2872         * lib/unicase/u-is-cased.h: New file.
2873         * modules/unicase/u8-is-cased: New file.
2874
2875         Tests for module 'unicase/u32-is-casefolded'.
2876         * modules/unicase/u32-is-casefolded-tests: New file.
2877         * tests/unicase/test-u32-is-casefolded.c: New file.
2878
2879         Tests for module 'unicase/u16-is-casefolded'.
2880         * modules/unicase/u16-is-casefolded-tests: New file.
2881         * tests/unicase/test-u16-is-casefolded.c: New file.
2882
2883         Tests for module 'unicase/u8-is-casefolded'.
2884         * modules/unicase/u8-is-casefolded-tests: New file.
2885         * tests/unicase/test-u8-is-casefolded.c: New file.
2886         * tests/unicase/test-is-casefolded.h: New file.
2887
2888         New module 'unicase/u32-is-casefolded'.
2889         * lib/unicase/u32-is-casefolded.c: New file.
2890         * modules/unicase/u32-is-casefolded: New file.
2891
2892         New module 'unicase/u16-is-casefolded'.
2893         * lib/unicase/u16-is-casefolded.c: New file.
2894         * modules/unicase/u16-is-casefolded: New file.
2895
2896         New module 'unicase/u8-is-casefolded'.
2897         * lib/unicase/u8-is-casefolded.c: New file.
2898         * modules/unicase/u8-is-casefolded: New file.
2899
2900         Tests for module 'unicase/u32-is-titlecase'.
2901         * modules/unicase/u32-is-titlecase-tests: New file.
2902         * tests/unicase/test-u32-is-titlecase.c: New file.
2903
2904         Tests for module 'unicase/u16-is-titlecase'.
2905         * modules/unicase/u16-is-titlecase-tests: New file.
2906         * tests/unicase/test-u16-is-titlecase.c: New file.
2907
2908         Tests for module 'unicase/u8-is-titlecase'.
2909         * modules/unicase/u8-is-titlecase-tests: New file.
2910         * tests/unicase/test-u8-is-titlecase.c: New file.
2911         * tests/unicase/test-is-titlecase.h: New file.
2912
2913         New module 'unicase/u32-is-titlecase'.
2914         * lib/unicase/u32-is-titlecase.c: New file.
2915         * modules/unicase/u32-is-titlecase: New file.
2916
2917         New module 'unicase/u16-is-titlecase'.
2918         * lib/unicase/u16-is-titlecase.c: New file.
2919         * modules/unicase/u16-is-titlecase: New file.
2920
2921         New module 'unicase/u8-is-titlecase'.
2922         * lib/unicase/u8-is-titlecase.c: New file.
2923         * modules/unicase/u8-is-titlecase: New file.
2924
2925         Tests for module 'unicase/u32-is-lowercase'.
2926         * modules/unicase/u32-is-lowercase-tests: New file.
2927         * tests/unicase/test-u32-is-lowercase.c: New file.
2928
2929         Tests for module 'unicase/u16-is-lowercase'.
2930         * modules/unicase/u16-is-lowercase-tests: New file.
2931         * tests/unicase/test-u16-is-lowercase.c: New file.
2932
2933         Tests for module 'unicase/u8-is-lowercase'.
2934         * modules/unicase/u8-is-lowercase-tests: New file.
2935         * tests/unicase/test-u8-is-lowercase.c: New file.
2936         * tests/unicase/test-is-lowercase.h: New file.
2937
2938         New module 'unicase/u32-is-lowercase'.
2939         * lib/unicase/u32-is-lowercase.c: New file.
2940         * modules/unicase/u32-is-lowercase: New file.
2941
2942         New module 'unicase/u16-is-lowercase'.
2943         * lib/unicase/u16-is-lowercase.c: New file.
2944         * modules/unicase/u16-is-lowercase: New file.
2945
2946         New module 'unicase/u8-is-lowercase'.
2947         * lib/unicase/u8-is-lowercase.c: New file.
2948         * modules/unicase/u8-is-lowercase: New file.
2949
2950         Tests for module 'unicase/u32-is-uppercase'.
2951         * modules/unicase/u32-is-uppercase-tests: New file.
2952         * tests/unicase/test-u32-is-uppercase.c: New file.
2953
2954         Tests for module 'unicase/u16-is-uppercase'.
2955         * modules/unicase/u16-is-uppercase-tests: New file.
2956         * tests/unicase/test-u16-is-uppercase.c: New file.
2957
2958         Tests for module 'unicase/u8-is-uppercase'.
2959         * modules/unicase/u8-is-uppercase-tests: New file.
2960         * tests/unicase/test-u8-is-uppercase.c: New file.
2961         * tests/unicase/test-is-uppercase.h: New file.
2962
2963         New module 'unicase/u32-is-uppercase'.
2964         * lib/unicase/u32-is-uppercase.c: New file.
2965         * modules/unicase/u32-is-uppercase: New file.
2966
2967         New module 'unicase/u16-is-uppercase'.
2968         * lib/unicase/u16-is-uppercase.c: New file.
2969         * modules/unicase/u16-is-uppercase: New file.
2970
2971         New module 'unicase/u8-is-uppercase'.
2972         * lib/unicase/u8-is-uppercase.c: New file.
2973         * modules/unicase/u8-is-uppercase: New file.
2974
2975         New module 'unicase/u32-is-invariant'.
2976         * lib/unicase/u32-is-invariant.c: New file.
2977         * modules/unicase/u32-is-invariant: New file.
2978
2979         New module 'unicase/u16-is-invariant'.
2980         * lib/unicase/u16-is-invariant.c: New file.
2981         * modules/unicase/u16-is-invariant: New file.
2982
2983         New module 'unicase/u8-is-invariant'.
2984         * lib/unicase/u8-is-invariant.c: New file.
2985         * lib/unicase/invariant.h: New file.
2986         * lib/unicase/u-is-invariant.h: New file.
2987         * modules/unicase/u8-is-invariant: New file.
2988
2989         Tests for module 'unicase/u32-casecoll'.
2990         * modules/unicase/u32-casecoll-tests: New file.
2991         * tests/unicase/test-u32-casecoll.c: New file.
2992
2993         Tests for module 'unicase/u16-casecoll'.
2994         * modules/unicase/u16-casecoll-tests: New file.
2995         * tests/unicase/test-u16-casecoll.c: New file.
2996
2997         Tests for module 'unicase/u8-casecoll'.
2998         * modules/unicase/u8-casecoll-tests: New file.
2999         * tests/unicase/test-u8-casecoll.c: New file.
3000
3001         New module 'unicase/u32-casecoll'.
3002         * lib/unicase/u32-casecoll.c: New file.
3003         * modules/unicase/u32-casecoll: New file.
3004
3005         New module 'unicase/u16-casecoll'.
3006         * lib/unicase/u16-casecoll.c: New file.
3007         * modules/unicase/u16-casecoll: New file.
3008
3009         New module 'unicase/u8-casecoll'.
3010         * lib/unicase/u8-casecoll.c: New file.
3011         * lib/unicase/u-casecoll.h: New file.
3012         * modules/unicase/u8-casecoll: New file.
3013
3014         New module 'unicase/u32-casexfrm'.
3015         * lib/unicase/u32-casexfrm.c: New file.
3016         * modules/unicase/u32-casexfrm: New file.
3017
3018         New module 'unicase/u16-casexfrm'.
3019         * lib/unicase/u16-casexfrm.c: New file.
3020         * modules/unicase/u16-casexfrm: New file.
3021
3022         New module 'unicase/u8-casexfrm'.
3023         * lib/unicase/u8-casexfrm.c: New file.
3024         * lib/unicase/u-casexfrm.h: New file.
3025         * modules/unicase/u8-casexfrm: New file.
3026
3027         Tests for module 'unicase/u32-casecmp'.
3028         * modules/unicase/u32-casecmp-tests: New file.
3029         * tests/unicase/test-u32-casecmp.c: New file.
3030
3031         Tests for module 'unicase/u16-casecmp'.
3032         * modules/unicase/u16-casecmp-tests: New file.
3033         * tests/unicase/test-u16-casecmp.c: New file.
3034
3035         Tests for module 'unicase/u8-casecmp'.
3036         * modules/unicase/u8-casecmp-tests: New file.
3037         * tests/unicase/test-u8-casecmp.c: New file.
3038         * tests/unicase/test-casecmp.h: New file.
3039
3040         New module 'unicase/u32-casecmp'.
3041         * lib/unicase/u32-casecmp.c: New file.
3042         * modules/unicase/u32-casecmp: New file.
3043
3044         New module 'unicase/u16-casecmp'.
3045         * lib/unicase/u16-casecmp.c: New file.
3046         * modules/unicase/u16-casecmp: New file.
3047
3048         New module 'unicase/u8-casecmp'.
3049         * lib/unicase/u8-casecmp.c: New file.
3050         * lib/unicase/u-casecmp.h: New file.
3051         * modules/unicase/u8-casecmp: New file.
3052
3053         Tests for module 'unicase/u32-casefold'.
3054         * modules/unicase/u32-casefold-tests: New file.
3055         * tests/unicase/test-u32-casefold.c: New file.
3056
3057         Tests for module 'unicase/u16-casefold'.
3058         * modules/unicase/u16-casefold-tests: New file.
3059         * tests/unicase/test-u16-casefold.c: New file.
3060
3061         Tests for module 'unicase/u8-casefold'.
3062         * modules/unicase/u8-casefold-tests: New file.
3063         * tests/unicase/test-u8-casefold.c: New file.
3064
3065         New module 'unicase/u32-casefold'.
3066         * lib/unicase/u32-casefold.c: New file.
3067         * modules/unicase/u32-casefold: New file.
3068
3069         New module 'unicase/u16-casefold'.
3070         * lib/unicase/u16-casefold.c: New file.
3071         * modules/unicase/u16-casefold: New file.
3072
3073         New module 'unicase/u8-casefold'.
3074         * lib/unicase/u8-casefold.c: New file.
3075         * lib/unicase/u-casefold.h: New file.
3076         * modules/unicase/u8-casefold: New file.
3077
3078         New module 'unicase/tocasefold'.
3079         * lib/unicase/casefold.h: New file.
3080         * lib/unicase/tocasefold.c: New file.
3081         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
3082         * modules/unicase/tocasefold: New file.
3083
3084         Tests for module 'unicase/u32-totitle'.
3085         * modules/unicase/u32-totitle-tests: New file.
3086         * tests/unicase/test-u32-totitle.c: New file.
3087
3088         Tests for module 'unicase/u16-totitle'.
3089         * modules/unicase/u16-totitle-tests: New file.
3090         * tests/unicase/test-u16-totitle.c: New file.
3091
3092         Tests for module 'unicase/u8-totitle'.
3093         * modules/unicase/u8-totitle-tests: New file.
3094         * tests/unicase/test-u8-totitle.c: New file.
3095
3096         New module 'unicase/u32-totitle'.
3097         * lib/unicase/u32-totitle.c: New file.
3098         * modules/unicase/u32-totitle: New file.
3099
3100         New module 'unicase/u16-totitle'.
3101         * lib/unicase/u16-totitle.c: New file.
3102         * modules/unicase/u16-totitle: New file.
3103
3104         New module 'unicase/u8-totitle'.
3105         * lib/unicase/u8-totitle.c: New file.
3106         * lib/unicase/u-totitle.h: New file.
3107         * modules/unicase/u8-totitle: New file.
3108
3109         Tests for module 'unicase/u32-tolower'.
3110         * modules/unicase/u32-tolower-tests: New file.
3111         * tests/unicase/test-u32-tolower.c: New file.
3112
3113         Tests for module 'unicase/u16-tolower'.
3114         * modules/unicase/u16-tolower-tests: New file.
3115         * tests/unicase/test-u16-tolower.c: New file.
3116
3117         Tests for module 'unicase/u8-tolower'.
3118         * modules/unicase/u8-tolower-tests: New file.
3119         * tests/unicase/test-u8-tolower.c: New file.
3120
3121         New module 'unicase/u32-tolower'.
3122         * lib/unicase/u32-tolower.c: New file.
3123         * modules/unicase/u32-tolower: New file.
3124
3125         New module 'unicase/u16-tolower'.
3126         * lib/unicase/u16-tolower.c: New file.
3127         * modules/unicase/u16-tolower: New file.
3128
3129         New module 'unicase/u8-tolower'.
3130         * lib/unicase/u8-tolower.c: New file.
3131         * modules/unicase/u8-tolower: New file.
3132
3133         Tests for module 'unicase/u32-toupper'.
3134         * modules/unicase/u32-toupper-tests: New file.
3135         * tests/unicase/test-u32-toupper.c: New file.
3136
3137         Tests for module 'unicase/u16-toupper'.
3138         * modules/unicase/u16-toupper-tests: New file.
3139         * tests/unicase/test-u16-toupper.c: New file.
3140
3141         Tests for module 'unicase/u8-toupper'.
3142         * modules/unicase/u8-toupper-tests: New file.
3143         * tests/unicase/test-u8-toupper.c: New file.
3144
3145         New module 'unicase/u32-toupper'.
3146         * lib/unicase/u32-toupper.c: New file.
3147         * modules/unicase/u32-toupper: New file.
3148
3149         New module 'unicase/u16-toupper'.
3150         * lib/unicase/u16-toupper.c: New file.
3151         * modules/unicase/u16-toupper: New file.
3152
3153         New module 'unicase/u8-toupper'.
3154         * lib/unicase/u8-toupper.c: New file.
3155         * modules/unicase/u8-toupper: New file.
3156
3157         New module 'unicase/u32-casemap'.
3158         * lib/unicase/u32-casemap.c: New file.
3159         * modules/unicase/u32-casemap: New file.
3160
3161         New module 'unicase/u16-casemap'.
3162         * lib/unicase/u16-casemap.c: New file.
3163         * modules/unicase/u16-casemap: New file.
3164
3165         New module 'unicase/u8-casemap'.
3166         * lib/unicase/unicasemap.h: New file.
3167         * lib/unicase/u8-casemap.c: New file.
3168         * lib/unicase/u-casemap.h: New file.
3169         * modules/unicase/u8-casemap: New file.
3170
3171         New module 'unicase/special-casing'.
3172         * lib/unicase/special-casing.h: New file.
3173         * lib/unicase/special-casing.c: New file.
3174         * lib/unicase/special-casing-table.gperf: New file, generated by
3175         gen-uni-tables.c.
3176         * modules/unicase/special-casing: New file.
3177
3178         Tests for module 'unicase/locale-language'.
3179         * modules/unicase/locale-language-tests: New file.
3180         * tests/unicase/test-locale-language.sh: New file.
3181         * tests/unicase/test-locale-language.c: New file.
3182
3183         New module 'unicase/locale-language'.
3184         * lib/unicase/locale-language.c: New file.
3185         * lib/unicase/locale-languages.gperf: New file.
3186         * modules/unicase/locale-language: New file.
3187
3188         Generate more tables for case conversion and case folding.
3189         * lib/gen-uni-tables.c (SCC_*): New enum items.
3190         (struct special_casing_rule): New type.
3191         (casing_rules, num_casing_rules, allocated_casing_rules): New
3192         variables.
3193         (add_casing_rule, fill_casing_rules): New functions.
3194         (struct casefold_rule): New type.
3195         (casefolding_rules, num_casefolding_rules,
3196         allocated_casefolding_rules): New variables.
3197         (fill_casefolding_rules): New function.
3198         (unicode_casefold): New variable.
3199         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
3200         sort_casing_rules, output_casing_rules): New functions.
3201         (main): Accept to more arguments: SpecialCasing.txt and
3202         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
3203         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
3204         Output mapping for casefolding.
3205
3206         * lib/unicase.h: Include stdbool.h, uninorm.h.
3207         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
3208         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
3209         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
3210         arguments.
3211         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
3212         resultp arguments.
3213         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
3214         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
3215         resultp arguments.
3216         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
3217         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
3218         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
3219         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
3220         declarations.
3221         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
3222
3223 2009-03-08  Bruno Haible  <bruno@clisp.org>
3224
3225         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
3226         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
3227         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
3228         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
3229
3230 2009-03-07  Bruno Haible  <bruno@clisp.org>
3231
3232         Adjust u*_normcmp, u*_normcoll API.
3233         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
3234         u16_normcoll, u32_normcoll): Change failure conventions.
3235         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
3236         errno and return -1.
3237         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
3238
3239 2009-03-07  Bruno Haible  <bruno@clisp.org>
3240
3241         Tests for module 'uninorm/u32-normcoll'.
3242         * modules/uninorm/u32-normcoll-tests: New file.
3243         * tests/uninorm/test-u32-normcoll.c: New file.
3244
3245         Tests for module 'uninorm/u16-normcoll'.
3246         * modules/uninorm/u16-normcoll-tests: New file.
3247         * tests/uninorm/test-u16-normcoll.c: New file.
3248
3249         Tests for module 'uninorm/u8-normcoll'.
3250         * modules/uninorm/u8-normcoll-tests: New file.
3251         * tests/uninorm/test-u8-normcoll.c: New file.
3252
3253 2009-03-07  Bruno Haible  <bruno@clisp.org>
3254
3255         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
3256         tests/uninorm/test-u32-normcmp.c.
3257         * tests/uninorm/test-u32-normcmp.c: Include it.
3258         (test_nonascii): New function, extracted from main. Add some more
3259         tests.
3260         (main): Invoke test_ascii and test_nonascii.
3261         * modules/uninorm/u32-normcmp-tests (Files): Add
3262         tests/uninorm/test-u32-normcmp.h.
3263         (Depends-on): Remove uninorm/u32-normcmp.
3264
3265         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
3266         tests/uninorm/test-u16-normcmp.c.
3267         * tests/uninorm/test-u16-normcmp.c: Include it.
3268         (test_nonascii): New function, extracted from main. Add some more
3269         tests.
3270         (main): Invoke test_ascii and test_nonascii.
3271         * modules/uninorm/u16-normcmp-tests (Files): Add
3272         tests/uninorm/test-u16-normcmp.h.
3273         (Depends-on): Remove uninorm/u16-normcmp.
3274
3275         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
3276         tests/uninorm/test-u8-normcmp.c.
3277         * tests/uninorm/test-u8-normcmp.c: Include it.
3278         (test_nonascii): New function, extracted from main. Add some more
3279         tests.
3280         (main): Invoke test_ascii and test_nonascii.
3281         * modules/uninorm/u8-normcmp-tests (Files): Add
3282         tests/uninorm/test-u8-normcmp.h.
3283         (Depends-on): Remove uninorm/u8-normcmp.
3284
3285 2009-03-07  Bruno Haible  <bruno@clisp.org>
3286
3287         New module 'uninorm/u32-normcoll'.
3288         * lib/uninorm/u32-normcoll.c: New file.
3289         * modules/uninorm/u32-normcoll: New file.
3290
3291         New module 'uninorm/u16-normcoll'.
3292         * lib/uninorm/u16-normcoll.c: New file.
3293         * modules/uninorm/u16-normcoll: New file.
3294
3295         New module 'uninorm/u8-normcoll'.
3296         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
3297         declarations.
3298         * lib/uninorm/u8-normcoll.c: New file.
3299         * lib/uninorm/u-normcoll.h: New file.
3300         * modules/uninorm/u8-normcoll: New file.
3301
3302         New module 'uninorm/u32-normxfrm'.
3303         * lib/uninorm/u32-normxfrm.c: New file.
3304         * modules/uninorm/u32-normxfrm: New file.
3305
3306         New module 'uninorm/u16-normxfrm'.
3307         * lib/uninorm/u16-normxfrm.c: New file.
3308         * modules/uninorm/u16-normxfrm: New file.
3309
3310         New module 'uninorm/u8-normxfrm'.
3311         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
3312         declarations.
3313         * lib/uninorm/u8-normxfrm.c: New file.
3314         * lib/uninorm/u-normxfrm.h: New file.
3315         * modules/uninorm/u8-normxfrm: New file.
3316
3317 2009-03-07  Bruno Haible  <bruno@clisp.org>
3318
3319         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
3320         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
3321         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
3322
3323 2009-03-07  Bruno Haible  <bruno@clisp.org>
3324
3325         New module 'memxfrm'.
3326         * lib/memxfrm.h: New file.
3327         * lib/memxfrm.c: New file.
3328         * modules/memxfrm: New file.
3329
3330 2009-03-07  Bruno Haible  <bruno@clisp.org>
3331
3332         New module 'memcmp2'.
3333         * lib/memcmp2.h: New file.
3334         * lib/memcmp2.c: New file.
3335         * modules/memcmp2: New file.
3336
3337 2009-03-07  Bruno Haible  <bruno@clisp.org>
3338
3339         Tests for module 'uninorm/decomposing-form'.
3340         * modules/uninorm/decomposing-form-tests: New file.
3341         * tests/uninorm/test-decomposing-form.c: New file.
3342
3343         New module 'uninorm/decomposing-form'.
3344         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
3345         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
3346         Add 'decomposing_variant' field.
3347         * lib/uninorm/decomposing-form.c: New file.
3348         * lib/uninorm/nfc.c (uninorm_nfc): Update.
3349         * lib/uninorm/nfd.c (uninorm_nfd): Update.
3350         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
3351         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
3352         * modules/uninorm/decomposing-form: New file.
3353         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
3354         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
3355
3356 2009-03-07  Bruno Haible  <bruno@clisp.org>
3357
3358         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
3359         strings.
3360
3361 2009-03-06  Bruno Haible  <bruno@clisp.org>
3362
3363         Tests for module 'uninorm/u32-normcmp'.
3364         * tests/uninorm/test-u32-normcmp.c: New file.
3365         * modules/uninorm/u32-normcmp-tests: New file.
3366
3367         Tests for module 'uninorm/u16-normcmp'.
3368         * tests/uninorm/test-u16-normcmp.c: New file.
3369         * modules/uninorm/u16-normcmp-tests: New file.
3370
3371         Tests for module 'uninorm/u8-normcmp'.
3372         * tests/uninorm/test-u8-normcmp.c: New file.
3373         * modules/uninorm/u8-normcmp-tests: New file.
3374
3375         New module 'uninorm/u32-normcmp'.
3376         * lib/uninorm/u32-normcmp.c: New file.
3377         * modules/uninorm/u32-normcmp: New file.
3378
3379         New module 'uninorm/u16-normcmp'.
3380         * lib/uninorm/u16-normcmp.c: New file.
3381         * modules/uninorm/u16-normcmp: New file.
3382
3383         New module 'uninorm/u8-normcmp'.
3384         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
3385         declarations.
3386         * lib/uninorm/u8-normcmp.c: New file.
3387         * lib/uninorm/u-normcmp.h: New file.
3388         * modules/uninorm/u8-normcmp: New file.
3389
3390 2009-03-06  Bruno Haible  <bruno@clisp.org>
3391
3392         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
3393         Reported by Eric Blake.
3394
3395 2009-03-06  Eric Blake  <ebb9@byu.net>
3396             Bruno Haible  <bruno@clisp.org>
3397
3398         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
3399         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
3400         condition.
3401         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
3402         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
3403         condition.
3404         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
3405
3406 2009-03-06  Eric Blake  <ebb9@byu.net>
3407
3408         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
3409         to avoid compiler warnings.
3410         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
3411
3412 2009-03-05  Bruno Haible  <bruno@clisp.org>
3413
3414         * tests/test-ftell.c (main): Disable test beyond end of file on
3415         FreeMiNT.
3416         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
3417
3418 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
3419
3420         * lib/filevercmp.c: Move hidden files up in ordering.
3421         * tests/test-filevercmp.c: Add tests for hidden files.
3422
3423 2009-03-04  Bruno Haible  <bruno@clisp.org>
3424
3425         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
3426         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
3427         AM_CFLAGS.
3428         Reported by Simon Josefsson.
3429
3430 2009-03-03  Bruno Haible  <bruno@clisp.org>
3431
3432         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
3433         Reported by Simon Josefsson.
3434
3435         * doc/ld-version-script.texi: Update node reference.
3436
3437 2009-03-03  Bruno Haible  <bruno@clisp.org>
3438
3439         * modules/visibility (License): Change to 'unlimited'.
3440         Suggested by Simon Josefsson.
3441
3442 2009-03-03  Jim Meyering  <meyering@redhat.com>
3443
3444         unlinkdir: cannot_unlink_dir may modify process state
3445         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
3446         it's neither thread-safe nor appropriate for use in a library.
3447
3448 2009-03-03  Eric Blake  <ebb9@byu.net>
3449
3450         test-closein: silence test under Darwin
3451         * tests/test-closein.sh: Ignore stderr from cat, since we don't
3452         care if it dies from EPIPE or EBADF.
3453
3454 2009-03-03  Bruno Haible  <bruno@clisp.org>
3455
3456         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
3457         earlier.
3458         * doc/visibility.texi: Fix @node and @section.
3459
3460 2009-03-03  Simon Josefsson  <simon@josefsson.org>
3461
3462         * doc/gnulib.texi: Link to sections for ld version script and
3463         visibility.
3464         * doc/visibility.texi: Add @node and @section.
3465         * modules/ld-version-script: New module.
3466         * m4/ld-version-script.m4: New file.
3467         * doc/ld-version-script.texi: New file.
3468
3469 2009-03-02  David Lutterkort  <lutter@redhat.com>
3470
3471         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
3472         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3473
3474 2009-03-02  Bruno Haible  <bruno@clisp.org>
3475
3476         * doc/visibility.texi: Mention libtool's -export-symbols option.
3477
3478 2009-03-02  Jim Meyering  <meyering@redhat.com>
3479
3480         announce-gen: new option: --no-print-checksums
3481         * build-aux/announce-gen (usage): Describe it.
3482         (print_checksums): Print a newline here, not in the [*] footnote.
3483         (main): Honor it.
3484
3485 2009-03-01  Bruno Haible  <bruno@clisp.org>
3486
3487         Use socklen_t in the native Windows replacements prototypes.
3488         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
3489         instead of 'int'.
3490         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3491         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3492         * modules/getsockopt (Depends-on): Add socklen.
3493         * modules/setsockopt (Depends-on): Add socklen.
3494
3495 2009-03-01  Bruno Haible  <bruno@clisp.org>
3496
3497         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
3498         least 4.2.
3499
3500 2009-03-01  Eric Blake  <ebb9@byu.net>
3501             Bruno Haible  <bruno@clisp.org>
3502
3503         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
3504         error messages.
3505         * lib/wait-process.c (wait_subprocess): Omit error message about
3506         deadly signal sent to the child of termsigp != NULL.
3507
3508 2009-03-01  Eric Blake  <ebb9@byu.net>
3509
3510         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
3511
3512 2009-03-01  Bruno Haible  <bruno@clisp.org>
3513
3514         Avoid a gcc warning.
3515         * tests/test-sched.c (b): Make global.
3516         Reported by Eric Blake.
3517
3518 2009-01-19  Martin Lambers  <marlam@marlam.de>
3519
3520         Provide POSIX semantics for socket timeout options on W32.
3521         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
3522         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
3523         * modules/setsockopt: Depend on sys_time module for struct timeval.
3524         * modules/getsockopt: Depend on sys_time module for struct timeval.
3525
3526 2009-03-01  Simon Josefsson  <simon@josefsson.org>
3527
3528         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
3529         __USE_GNU, for consistency with netdb.in.h.
3530         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
3531
3532 2009-03-01  Bruno Haible  <bruno@clisp.org>
3533
3534         More support for FreeMiNT.
3535         * lib/fseeko.c (rpl_fseeko): Complete last commit.
3536         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
3537
3538 2009-03-01  Bruno Haible  <bruno@clisp.org>
3539
3540         More support for FreeMiNT.
3541         * lib/fpurge.c (fpurge): Correct last commit.
3542         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
3543
3544 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3545
3546         Fix unportable awk script in vc-list-files.
3547         * build-aux/vc-list-files: In the replacement awk script, use
3548         substr with a second argument of 1, not zero.
3549         Report by Simon Josefsson.
3550
3551 2009-02-28  Bruno Haible  <bruno@clisp.org>
3552
3553         More support for FreeMiNT.
3554         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
3555         to FreeMiNT today.
3556         * lib/fwriting.c (fwriting): Likewise.
3557         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
3558
3559 2009-02-28  Bruno Haible  <bruno@clisp.org>
3560
3561         * tests/test-freadseek.c (main): Disable test beyond end of file on
3562         FreeMiNT.
3563         * tests/test-ftello.c (main): Likewise.
3564         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
3565
3566 2009-02-28  Bruno Haible  <bruno@clisp.org>
3567
3568         Add tentative support for FreeMiNT.
3569         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
3570         * lib/fpurge.c (fpurge): Likewise.
3571         * lib/freadable.c (freadable): Likewise.
3572         * lib/freading.c (freading): Likewise.
3573         * lib/freadptr.c (freadptr): Likewise.
3574         * lib/freadseek.c (freadptrinc): Likewise.
3575         * lib/fseeko.c (rpl_fseeko): Likewise.
3576         * lib/fseterr.c (fseterr): Likewise.
3577         * lib/fwritable.c (fwritable): Likewise.
3578         * lib/fwriting.c (fwriting): Likewise.
3579         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
3580         Hourihane.
3581         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
3582
3583 2009-02-28  Bruno Haible  <bruno@clisp.org>
3584
3585         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
3586         SIGCHLD.
3587         Reported by Jim Meyering.
3588
3589 2009-02-28  Bruno Haible  <bruno@clisp.org>
3590
3591         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
3592         Mention the results of these tests on various platforms.
3593         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
3594         order.
3595         * doc/posix-functions/printf.texi: Likewise.
3596         * doc/posix-functions/snprintf.texi: Likewise.
3597         * doc/posix-functions/sprintf.texi: Likewise.
3598         * doc/posix-functions/vfprintf.texi: Likewise.
3599         * doc/posix-functions/vprintf.texi: Likewise.
3600         * doc/posix-functions/vsnprintf.texi: Likewise.
3601         * doc/posix-functions/vsprintf.texi: Likewise.
3602         * doc/glibc-functions/obstack_printf.texi: Likewise.
3603         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3604
3605 2009-02-28  Bruno Haible  <bruno@clisp.org>
3606
3607         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
3608         Reported by Loïc Minier <lool@dooz.org>.
3609
3610 2009-02-27  Bruno Haible  <bruno@clisp.org>
3611
3612         * gnulib-tool (func_import): Make the sed expression used to create the
3613         sed script for updating the .gitignore file POSIX compliant.
3614         Reported by Eric Blake.
3615
3616 2009-02-27  Bruno Haible  <bruno@clisp.org>
3617
3618         * gnulib-tool (sed): Don't alias as "sed --posix".
3619         Reported by Eric Blake.
3620
3621 2009-02-27  Bruno Haible  <bruno@clisp.org>
3622
3623         Avoid test link errors.
3624         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
3625         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
3626         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
3627         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
3628         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3629
3630 2009-02-27  Bruno Haible  <bruno@clisp.org>
3631
3632         Avoid spurious "(cached)" in configure output.
3633         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
3634         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
3635         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
3636         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
3637         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
3638         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
3639         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
3640         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
3641         Reported by Eric Blake.
3642
3643 2009-02-27  Eric Blake  <ebb9@byu.net>
3644
3645         printf: fix regression in previous patch
3646         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
3647
3648 2009-02-27  Bruno Haible  <bruno@clisp.org>
3649
3650         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
3651         value.
3652         * lib/stdint.in.h: Likewise.
3653         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
3654
3655 2009-02-27  Eric Blake  <ebb9@byu.net>
3656
3657         doc: mention more functions added in cygwin 1.7.0
3658         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
3659         addition.
3660         * doc/posix-functions/open_wmemstream.texi: Likewise.
3661         * doc/posix-functions/wcsnlen.texi: Likewise.
3662         * doc/posix-functions/wcsnrtombs.texi: Likewise.
3663         * doc/posix-functions/wcstod.texi: Likewise.
3664         * doc/posix-functions/wcstof.texi: Likewise.
3665         * doc/posix-functions/wcstoimax.texi: Likewise.
3666         * doc/posix-functions/wcstok.texi: Likewise.
3667         * doc/posix-functions/wcstoumax.texi: Likewise.
3668
3669         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
3670         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
3671         * doc/posix-functions/fprintf.texi: Update.
3672         * doc/posix-functions/printf.texi: Update.
3673         * doc/posix-functions/snprintf.texi: Update.
3674         * doc/posix-functions/sprintf.texi: Update.
3675         * doc/posix-functions/vfprintf.texi: Update.
3676         * doc/posix-functions/vprintf.texi: Update.
3677         * doc/posix-functions/vsnprintf.texi: Update.
3678         * doc/posix-functions/vsprintf.texi: Update.
3679         * doc/glibc-functions/obstack_printf.texi: Update.
3680         * doc/glibc-functions/obstack_vprintf.texi: Update.
3681
3682 2009-02-26  Eric Blake  <ebb9@byu.net>
3683
3684         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
3685         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
3686         compilation bug by using runtime conversion.
3687         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3688         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
3689         * modules/ceill-tests (Files): Use nan.h.
3690         * modules/floorl-tests (Files): Likewise.
3691         * modules/frexpl-tests (Files): Likewise.
3692         * modules/isnanl-tests (Files): Likewise.
3693         * modules/ldexpl-tests (Files): Likewise.
3694         * modules/roundl-tests (Files): Likewise.
3695         * modules/truncl-tests (Files): Likewise.
3696         * tests/test-ceill.c (main): Use a working NaN.
3697         * tests/test-floorl.c (main): Likewise.
3698         * tests/test-frexpl.c (main): Likewise.
3699         * tests/test-isnan.c (test_long_double): Likewise.
3700         * tests/test-isnanl.h (main): Likewise.
3701         * tests/test-ldexpl.h (main): Likewise.
3702         * tests/test-roundl.h (main): Likewise.
3703         * tests/test-truncl.h (main): Likewise.
3704         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
3705
3706 2009-02-26  Eric Blake  <ebb9@byu.net>
3707             Bruno Haible  <bruno@clisp.org>
3708
3709         Work around a *printf bug with %ls on Solaris.
3710         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
3711         precision is specified, sprintf stops converting the wide string
3712         argument when the number of bytes that have been produced by this
3713         conversion equals or exceeds the precision.
3714         * doc/posix-functions/fprintf.texi: Update.
3715         * doc/posix-functions/printf.texi: Update.
3716         * doc/posix-functions/snprintf.texi: Update.
3717         * doc/posix-functions/sprintf.texi: Update.
3718         * doc/posix-functions/vfprintf.texi: Update.
3719         * doc/posix-functions/vprintf.texi: Update.
3720         * doc/posix-functions/vsnprintf.texi: Update.
3721         * doc/posix-functions/vsprintf.texi: Update.
3722         * doc/glibc-functions/obstack_printf.texi: Update.
3723         * doc/glibc-functions/obstack_vprintf.texi: Update.
3724
3725 2009-02-26  Eric Blake  <ebb9@byu.net>
3726
3727         stdlib: favor compiler check of random.h
3728         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
3729         to avoid an ObjC random.h installed by Swarm.
3730
3731 2009-02-26  Bruno Haible  <bruno@clisp.org>
3732
3733         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
3734         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
3735         Reported by Gary V. Vaughan <gary@gnu.org>.
3736
3737 2009-02-26  Bruno Haible  <bruno@clisp.org>
3738
3739         Fix *printf behaviour regarding the %ls directive.
3740         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
3741         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
3742         NEED_PRINTF_DIRECTIVE_LS.
3743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
3744         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
3745         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3746         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
3747         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
3748         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
3749         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
3750         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3751         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3752         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3753         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3754         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
3755         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3756         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3757         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3758         * doc/posix-functions/fprintf.texi: Update.
3759         * doc/posix-functions/printf.texi: Update.
3760         * doc/posix-functions/snprintf.texi: Update.
3761         * doc/posix-functions/sprintf.texi: Update.
3762         * doc/posix-functions/vfprintf.texi: Update.
3763         * doc/posix-functions/vprintf.texi: Update.
3764         * doc/posix-functions/vsnprintf.texi: Update.
3765         * doc/posix-functions/vsprintf.texi: Update.
3766         * doc/glibc-functions/obstack_printf.texi: Update.
3767         * doc/glibc-functions/obstack_vprintf.texi: Update.
3768         Reported by Eric Blake.
3769
3770 2009-02-25  Bruno Haible  <bruno@clisp.org>
3771
3772         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
3773         with known value.
3774         Reported by Gary V. Vaughan <gary@gnu.org>.
3775
3776 2009-02-25  Bruno Haible  <bruno@clisp.org>
3777
3778         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
3779         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
3780         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
3781         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
3782         Reported by Gary V. Vaughan <gary@gnu.org>.
3783
3784 2009-02-25  Bruno Haible  <bruno@clisp.org>
3785
3786         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
3787         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
3788         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
3789         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
3790         Reported by Gary V. Vaughan <gary@gnu.org>.
3791
3792 2009-02-25  Eric Blake  <ebb9@byu.net>
3793
3794         tests: skip fseek/ftell tests if ungetc is broken
3795         * m4/ungetc.m4: New file.
3796         * modules/fseek-tests: Split test, so ungetc dependency is
3797         separate from rest of test.
3798         * modules/fseeko-tests: Likewise.
3799         * modules/ftell-tests: Likewise.
3800         * modules/ftello-tests: Likewise.
3801         * tests/test-fseek.c (main): Isolate ungetc dependency.
3802         * tests/test-fseeko.c (main): Likewise.
3803         * tests/test-ftell.c (main): Likewise.
3804         * tests/test-ftello.c (main): Likewise.
3805         * tests/test-fseek2.sh: New file.
3806         * tests/test-fseeko2.sh: Likewise.
3807         * tests/test-ftell2.sh: Likewise.
3808         * tests/test-ftello2.sh: Likewise.
3809
3810 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
3811
3812         test-getaddrinfo: fix usage of skip return code 77
3813         * tests/test-gettaddrinfo.c: Return skip code 77 only
3814         for first occurance of skip (4x77 is not 77)
3815
3816 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
3817
3818         strtod: avoid C99 decl-after-statement
3819         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
3820
3821 2009-02-24  Eric Blake  <ebb9@byu.net>
3822
3823         strtod: detect HP-UX 11.31 bug
3824         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
3825         Reported by Gary V. Vaughan.
3826
3827 2009-02-23  Bruno Haible  <bruno@clisp.org>
3828
3829         Fix invalid read past end of memory block.
3830         * lib/vasnprintf.c (DCHAR_SET): Define.
3831         (local_wcslen): Define only when needed.
3832         (local_strnlen, local_wcsnlen): New functions.
3833         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
3834         directives that involve a conversion ourselves.
3835         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
3836         wcsnlen, mbrtowc, wcrtomb.
3837         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
3838         * tests/test-vasprintf-posix.c (test_function): Likewise.
3839         * tests/test-snprintf-posix.h (test_function): Likewise.
3840         * tests/test-sprintf-posix.h (test_function): Likewise.
3841         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3842
3843 2009-02-22  Bruno Haible  <bruno@clisp.org>
3844
3845         Implement new clarified decomposition of Hangul syllables.
3846         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
3847         of type LTV, return only a pairwise decomposition.
3848         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
3849         Likewise.
3850         * tests/uninorm/test-decomposition.c (main): Updated expected result.
3851         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
3852         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
3853
3854 2009-02-22  Bruno Haible  <bruno@clisp.org>
3855
3856         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
3857         zero-length results and shrink excess allocated memory.
3858         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
3859         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
3860         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
3861         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
3862         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
3863         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
3864         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
3865         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
3866         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
3867         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
3868         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
3869         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
3870
3871 2009-02-21  Bruno Haible  <bruno@clisp.org>
3872
3873         * doc/gnulib.texi: Include safe-alloc.texi earlier.
3874         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
3875         spaces after a period. Put a space between a macro name and its
3876         argument list. Trivial rewordings.
3877         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
3878         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
3879         (main): Return 0 explicitly.
3880
3881 2009-02-21  Bruno Haible  <bruno@clisp.org>
3882
3883         Tests for module 'uninorm/filter'.
3884         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
3885         * modules/uninorm/filter-tests: New file.
3886
3887         New module 'uninorm/filter'.
3888         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
3889         uninorm_filter_flush, uninorm_filter_free): New declarations.
3890         * lib/uninorm/uninorm-filter.c: New file.
3891         * modules/uninorm/filter: New file.
3892
3893 2009-02-21  Bruno Haible  <bruno@clisp.org>
3894
3895         Tests for module 'uninorm/nfkc'.
3896         * tests/uninorm/test-nfkc.c: New file.
3897         * tests/uninorm/test-u8-nfkc.c: New file.
3898         * tests/uninorm/test-u16-nfkc.c: New file.
3899         * tests/uninorm/test-u32-nfkc.c: New file.
3900         * tests/uninorm/test-u32-nfkc-big.sh: New file.
3901         * tests/uninorm/test-u32-nfkc-big.c: New file.
3902         * modules/uninorm/nfkc-tests: New file.
3903
3904         New module 'uninorm/nfkc'.
3905         * lib/uninorm/nfkc.c: New file.
3906         * modules/uninorm/nfkc: New file.
3907
3908         Tests for module 'uninorm/nfkd'.
3909         * tests/uninorm/test-nfkd.c: New file.
3910         * tests/uninorm/test-u8-nfkd.c: New file.
3911         * tests/uninorm/test-u16-nfkd.c: New file.
3912         * tests/uninorm/test-u32-nfkd.c: New file.
3913         * tests/uninorm/test-u32-nfkd-big.sh: New file.
3914         * tests/uninorm/test-u32-nfkd-big.c: New file.
3915         * modules/uninorm/nfkd-tests: New file.
3916
3917         New module 'uninorm/nfkd'.
3918         * lib/uninorm/nfkd.c: New file.
3919         * modules/uninorm/nfkd: New file.
3920
3921         Tests for module 'uninorm/nfc'.
3922         * tests/uninorm/test-nfc.c: New file.
3923         * tests/uninorm/test-u8-nfc.c: New file.
3924         * tests/uninorm/test-u16-nfc.c: New file.
3925         * tests/uninorm/test-u32-nfc.c: New file.
3926         * tests/uninorm/test-u32-nfc-big.sh: New file.
3927         * tests/uninorm/test-u32-nfc-big.c: New file.
3928         * modules/uninorm/nfc-tests: New file.
3929
3930         New module 'uninorm/nfc'.
3931         * lib/uninorm/nfc.c: New file.
3932         * modules/uninorm/nfc: New file.
3933
3934         Tests for module 'uninorm/nfd'.
3935         * tests/uninorm/test-nfd.c: New file.
3936         * tests/uninorm/test-u8-nfd.c: New file.
3937         * tests/uninorm/test-u16-nfd.c: New file.
3938         * tests/uninorm/test-u32-nfd.c: New file.
3939         * tests/uninorm/test-u32-nfd-big.sh: New file.
3940         * tests/uninorm/test-u32-nfd-big.c: New file.
3941         * tests/uninorm/test-u32-normalize-big.h: New file.
3942         * tests/uninorm/test-u32-normalize-big.c: New file.
3943         * tests/uninorm/NormalizationTest.txt: New file, created from
3944         Unicode 5.1.0 NormalizationTest.txt.
3945         * modules/uninorm/nfd-tests: New file.
3946
3947         New module 'uninorm/nfd'.
3948         * lib/uninorm/nfd.c: New file.
3949         * modules/uninorm/nfd: New file.
3950
3951         New module 'uninorm/u32-normalize'.
3952         * lib/uninorm/u32-normalize.c: New file.
3953         * modules/uninorm/u32-normalize: New file.
3954
3955         New module 'uninorm/u16-normalize'.
3956         * lib/uninorm/u16-normalize.c: New file.
3957         * modules/uninorm/u16-normalize: New file.
3958
3959         New module 'uninorm/u8-normalize'.
3960         * lib/uninorm/u8-normalize.c: New file.
3961         * lib/uninorm/normalize-internal.h: New file.
3962         * lib/uninorm/u-normalize-internal.h: New file.
3963         * modules/uninorm/u8-normalize: New file.
3964
3965         New module 'uninorm/decompose-internal'.
3966         * lib/uninorm/decompose-internal.c: New file.
3967         * modules/uninorm/decompose-internal: New file.
3968
3969         Tests for module 'uninorm/composition'.
3970         * tests/uninorm/test-composition.c: New file.
3971         * modules/uninorm/composition-tests: New file.
3972
3973         New module 'uninorm/composition'.
3974         * lib/uninorm/composition.c: New file.
3975         * lib/uninorm/composition-table.gperf: New file, generated by
3976         gen-uni-tables.
3977         * modules/uninorm/composition: New file.
3978
3979         Tests for module 'uninorm/compat-decomposition'.
3980         * tests/uninorm/test-compat-decomposition.c: New file.
3981         * modules/uninorm/compat-decomposition-tests: New file.
3982
3983         New module 'uninorm/compat-decomposition'.
3984         * lib/uninorm/decompose-internal.h: New file.
3985         * lib/uninorm/compat-decomposition.c: New file.
3986         * modules/uninorm/compat-decomposition: New file.
3987
3988         Tests for module 'uninorm/canonical-decomposition'.
3989         * tests/uninorm/test-canonical-decomposition.c: New file.
3990         * modules/uninorm/canonical-decomposition-tests: New file.
3991
3992         New module 'uninorm/canonical-decomposition'.
3993         * lib/uninorm/canonical-decomposition.c: New file.
3994         * modules/uninorm/canonical-decomposition: New file.
3995
3996         Tests for module 'uninorm/decomposition'.
3997         * tests/uninorm/test-decomposition.c: New file.
3998         * modules/uninorm/decomposition-tests: New file.
3999
4000         New module 'uninorm/decomposition'.
4001         * lib/uninorm/decomposition.c: New file.
4002         * modules/uninorm/decomposition: New file.
4003
4004         New module 'uninorm/decomposition-table'.
4005         * lib/uninorm/decomposition-table.h: New file.
4006         * lib/uninorm/decomposition-table.c: New file.
4007         * lib/uninorm/decomposition-table1.h: New file, generated by
4008         gen-uni-tables.
4009         * lib/uninorm/decomposition-table2.h: New file, generated by
4010         gen-uni-tables.
4011         * modules/uninorm/decomposition-table: New file.
4012
4013         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
4014         (UC_DECOMP_*): New enumeration items.
4015         (get_decomposition): New function.
4016         (struct decomp_table): New type.
4017         (output_decomposition, output_decomposition_tables): New functions.
4018         (unicode_composition_exclusions): New variable.
4019         (fill_composition_exclusions, debug_output_composition_tables): New
4020         functions.
4021         (main): Accept one more argument. Invoke fill_composition_exclusions.
4022         Output decomposition and composition tables.
4023
4024         New module 'uninorm/base'.
4025         * lib/uninorm.h: New file.
4026         * lib/unictype.h: Update comment.
4027         * modules/uninorm/base: New file.
4028
4029 2009-02-21  David Lutterkort  <lutter@redhat.com>
4030
4031         Tests for module 'safe-alloc'.
4032         * tests/test-safe-alloc.c: New file.
4033         * modules/safe-alloc-tests: New file.
4034
4035         New module 'safe-alloc'.
4036         * lib/safe-alloc.h: New file.
4037         * lib/safe-alloc.c: New file.
4038         * m4/safe-alloc.m4: New file.
4039         * modules/safe-alloc: New file.
4040         * doc/safe-alloc.texi: New file.
4041         * doc/gnulib.texi: Include it.
4042         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
4043         safe-alloc.
4044
4045 2009-02-18  Bruno Haible  <bruno@clisp.org>
4046
4047         Fix link error on non-glibc systems.
4048         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
4049         variable.
4050         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4051
4052 2009-02-18  Jim Meyering  <meyering@redhat.com>
4053
4054         fts: avoid used-uninitialized error due to recent change
4055         * lib/fts.c (fts_read): Guard uses of the new member,
4056         parent->fts_n_dirs_remaining, since it's not relevant for
4057         the parent of a directory specified on the command-line.
4058
4059 2009-02-17  James Youngman  <jay@gnu.org>
4060             Bruno Haible  <bruno@clisp.org>
4061
4062         * m4/include_next.m4: Reformulate comment.
4063
4064 2009-02-16  Jim Meyering  <meyering@redhat.com>
4065
4066         fts: add #if guards so that the fts_lgpl module still builds
4067         * lib/fts.c: Guard just-added hash-table-using parts with
4068         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
4069         Reported by Simon Josefsson.
4070
4071 2009-02-15  Bruno Haible  <bruno@clisp.org>
4072
4073         * modules/array-mergesort-tests: New file.
4074         * tests/test-array-mergesort.c: New file.
4075
4076         New module 'array-mergesort'.
4077         * modules/array-mergesort: New file.
4078         * lib/array-mergesort.h: New file.
4079
4080 2009-02-15  Bruno Haible  <bruno@clisp.org>
4081
4082         Fix 2009-02-07 commit.
4083         * lib/gen-uni-tables.c (output_predicate, output_category,
4084         output_combclass, output_bidi_category, output_decimal_digit,
4085         output_digit, output_numeric, output_mirror, output_scripts,
4086         output_ident_category, output_simple_mapping): Fix format directives.
4087         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
4088
4089 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
4090
4091         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
4092         fixes are available from IBM.
4093
4094 2009-02-13  Jim Meyering  <meyering@redhat.com>
4095
4096         fts: arrange not to stat non-directories in more cases
4097         This makes GNU find (when it doesn't need to stat each file)
4098         *much* more efficient at traversing reiserfs file systems.
4099         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
4100         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
4101         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
4102         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
4103         (leaf_optimization_applies): New function.
4104         (LCO_hash, LCO_compare): New helper functions.
4105         (link_count_optimize_ok): New function.
4106         (fts_stat): Initialize new member (if dir).
4107         (fts_read): Decrement parent's fts_n_dirs_remaining count if
4108         we've just stat'ed a directory.  Skip the stat call when possible.
4109         ---
4110         Note this AFS-related exchange:
4111         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
4112         and note find's pioctl call in find/fstype.c.
4113         But that is necessary only if you want to enable the
4114         optimization for AFS, and for now, I don't.
4115
4116         fts: move a function definition "up" (no semantic change)
4117         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
4118         "up" to precede upcoming use of a related function.
4119
4120 2009-02-11  Jim Meyering  <meyering@redhat.com>
4121
4122         fts: correct internal computation of nlinks (optimization-related)
4123         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
4124         whether the current entry is a directory, so don't test it.
4125
4126 2009-02-10  Bruno Haible  <bruno@clisp.org>
4127
4128         Tests for module 'uniwbrk/ulc-wordbreaks'.
4129         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
4130         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
4131         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
4132
4133         Tests for module 'uniwbrk/u32-wordbreaks'.
4134         * modules/uniwbrk/u32-wordbreaks-tests: New file.
4135         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
4136
4137         Tests for module 'uniwbrk/u16-wordbreaks'.
4138         * modules/uniwbrk/u16-wordbreaks-tests: New file.
4139         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
4140
4141         Tests for module 'uniwbrk/u8-wordbreaks'.
4142         * modules/uniwbrk/u8-wordbreaks-tests: New file.
4143         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
4144
4145 2009-02-10  Bruno Haible  <bruno@clisp.org>
4146
4147         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
4148         property.
4149         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
4150         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
4151         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
4152
4153 2009-02-10  Simon Josefsson  <simon@josefsson.org>
4154
4155         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
4156         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
4157
4158 2009-02-10  Bruno Haible  <bruno@clisp.org>
4159
4160         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
4161         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
4162         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
4163         * lib/unilbrk/u8-possible-linebreaks.c: Update.
4164         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
4165         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
4166
4167 2009-02-09  Simon Josefsson  <simon@josefsson.org>
4168
4169         * lib/sockets.h (gl_fd_to_handle): New function.
4170
4171         * tests/test-sockets.c: Call gl_fd_to_handle.
4172
4173 2009-02-09  Bruno Haible  <bruno@clisp.org>
4174
4175         * doc/havelib.texi: Document the conventions on bi-arch systems.
4176
4177 2009-02-08  Bruno Haible  <bruno@clisp.org>
4178
4179         Document the AC_LIB_LINKFLAGS macro.
4180         * doc/havelib.texi: New file, mostly written on 2005-05-24.
4181         * doc/gnulib.texi: Include it.
4182
4183 2009-02-08  Bruno Haible  <bruno@clisp.org>
4184
4185         Fix wrong order of sections, compared to TOC.
4186         * doc/gnulib.texi: Include relocatable-maint.texi after the
4187         "Regular expressions" node, not before.
4188
4189 2009-02-08  Bruno Haible  <bruno@clisp.org>
4190
4191         Tests for module 'unicase/totitle'.
4192         * modules/unicase/totitle-tests: New file.
4193
4194         Tests for module 'unicase/tolower'.
4195         * modules/unicase/tolower-tests: New file.
4196
4197         Tests for module 'unicase/toupper'.
4198         * modules/unicase/toupper-tests: New file.
4199         * tests/unicase/test-mapping-part1.h: New file.
4200         * tests/unicase/test-mapping-part2.h: New file.
4201
4202         New module 'unicase/totitle'.
4203         * modules/unicase/totitle: New file.
4204         * lib/unicase/totitle.c: New file.
4205
4206         New module 'unicase/tolower'.
4207         * modules/unicase/tolower: New file.
4208         * lib/unicase/tolower.c: New file.
4209
4210         New module 'unicase/toupper'.
4211         * modules/unicase/toupper: New file.
4212         * lib/unicase/toupper.c: New file.
4213         * lib/unicase/simple-mapping.h: New file.
4214
4215         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
4216         (mapping_table): New structure.
4217         (output_simple_mapping): New function.
4218         (main): Invoke output_simple_mapping_test and output_simple_mapping.
4219         * modules/gen-uni-tables (Description): Update.
4220         * lib/unicase/toupper.h: New file, automatically generated by
4221         gen-uni-tables.
4222         * lib/unicase/tolower.h: New file, automatically generated by
4223         gen-uni-tables.
4224         * lib/unicase/totitle.h: New file, automatically generated by
4225         gen-uni-tables.
4226         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
4227         gen-uni-tables.
4228         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
4229         gen-uni-tables.
4230         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
4231         gen-uni-tables.
4232
4233         New module 'unicase/base'.
4234         * modules/unicase/base: New file.
4235         * lib/unicase.h: New file.
4236
4237 2009-02-08  Bruno Haible  <bruno@clisp.org>
4238
4239         New module 'uniwbrk/ulc-wordbreaks'.
4240         * modules/uniwbrk/ulc-wordbreaks: New file.
4241         * lib/uniwbrk/ulc-wordbreaks.c: New file.
4242
4243         New module 'uniwbrk/u32-wordbreaks'.
4244         * modules/uniwbrk/u32-wordbreaks: New file.
4245         * lib/uniwbrk/u32-wordbreaks.c: New file.
4246
4247         New module 'uniwbrk/u16-wordbreaks'.
4248         * modules/uniwbrk/u16-wordbreaks: New file.
4249         * lib/uniwbrk/u16-wordbreaks.c: New file.
4250
4251         New module 'uniwbrk/u8-wordbreaks'.
4252         * modules/uniwbrk/u8-wordbreaks: New file.
4253         * lib/uniwbrk/u8-wordbreaks.c: New file.
4254         * lib/uniwbrk/u-wordbreaks.h: New file.
4255
4256         New module 'uniwbrk/table'.
4257         * modules/uniwbrk/table: New file.
4258         * lib/uniwbrk/wbrktable.h: New file.
4259         * lib/uniwbrk/wbrktable.c: New file.
4260
4261         New module 'uniwbrk/wordbreak-property'.
4262         * modules/uniwbrk/wordbreak-property: New file.
4263         * lib/uniwbrk/wordbreak-property.c: New file.
4264
4265         * lib/gen-uni-tables.c (WBP_*): New enum items.
4266         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
4267         (unicode_org_wbp): New variable.
4268         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
4269         New functions.
4270         (wbp_table): New structure.
4271         (output_wbp, output_wbrk_tables): New functions.
4272         (main): Accept additional argument. Invoke fill_org_wbp,
4273         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
4274         output_wbrk_tables.
4275         * modules/gen-uni-tables (Description): Update.
4276         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
4277         gen-uni-tables.
4278
4279         New module 'uniwbrk/base'.
4280         * modules/uniwbrk/base: New file.
4281         * lib/uniwbrk.h: New file.
4282
4283 2009-02-08  Bruno Haible  <bruno@clisp.org>
4284
4285         Update to Unicode 5.1.0.
4286         * lib/gen-uni-tables.c (is_property_alphabetic): Include
4287         U+2185..U+2188.
4288         (is_property_default_ignorable_code_point): Don't include characters
4289         of category Cc or Cs and not-a-characters.
4290         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
4291         U+0D79, U+109E, U+109F, U+A60C.
4292         * lib/unictype/bidi_of.h: Regenerated.
4293         * lib/unictype/blocks.h: Regenerated.
4294         * lib/unictype/categ_C.h: Regenerated.
4295         * lib/unictype/categ_Cf.h: Regenerated.
4296         * lib/unictype/categ_Cn.h: Regenerated.
4297         * lib/unictype/categ_L.h: Regenerated.
4298         * lib/unictype/categ_Ll.h: Regenerated.
4299         * lib/unictype/categ_Lm.h: Regenerated.
4300         * lib/unictype/categ_Lo.h: Regenerated.
4301         * lib/unictype/categ_Lu.h: Regenerated.
4302         * lib/unictype/categ_M.h: Regenerated.
4303         * lib/unictype/categ_Mc.h: Regenerated.
4304         * lib/unictype/categ_Me.h: Regenerated.
4305         * lib/unictype/categ_Mn.h: Regenerated.
4306         * lib/unictype/categ_N.h: Regenerated.
4307         * lib/unictype/categ_Nd.h: Regenerated.
4308         * lib/unictype/categ_Nl.h: Regenerated.
4309         * lib/unictype/categ_No.h: Regenerated.
4310         * lib/unictype/categ_P.h: Regenerated.
4311         * lib/unictype/categ_Pd.h: Regenerated.
4312         * lib/unictype/categ_Pe.h: Regenerated.
4313         * lib/unictype/categ_Pf.h: Regenerated.
4314         * lib/unictype/categ_Pi.h: Regenerated.
4315         * lib/unictype/categ_Po.h: Regenerated.
4316         * lib/unictype/categ_Ps.h: Regenerated.
4317         * lib/unictype/categ_S.h: Regenerated.
4318         * lib/unictype/categ_Sk.h: Regenerated.
4319         * lib/unictype/categ_Sm.h: Regenerated.
4320         * lib/unictype/categ_So.h: Regenerated.
4321         * lib/unictype/categ_of.h: Regenerated.
4322         * lib/unictype/combining.h: Regenerated.
4323         * lib/unictype/ctype_alnum.h: Regenerated.
4324         * lib/unictype/ctype_alpha.h: Regenerated.
4325         * lib/unictype/ctype_graph.h: Regenerated.
4326         * lib/unictype/ctype_lower.h: Regenerated.
4327         * lib/unictype/ctype_print.h: Regenerated.
4328         * lib/unictype/ctype_punct.h: Regenerated.
4329         * lib/unictype/ctype_upper.h: Regenerated.
4330         * lib/unictype/decdigit.h: Regenerated.
4331         * lib/unictype/digit.h: Regenerated.
4332         * lib/unictype/mirror.h: Regenerated.
4333         * lib/unictype/numeric.h: Regenerated.
4334         * lib/unictype/pr_alphabetic.h: Regenerated.
4335         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
4336         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
4337         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
4338         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
4339         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
4340         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
4341         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
4342         * lib/unictype/pr_combining.h: Regenerated.
4343         * lib/unictype/pr_dash.h: Regenerated.
4344         * lib/unictype/pr_decimal_digit.h: Regenerated.
4345         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
4346         * lib/unictype/pr_deprecated.h: Regenerated.
4347         * lib/unictype/pr_diacritic.h: Regenerated.
4348         * lib/unictype/pr_extender.h: Regenerated.
4349         * lib/unictype/pr_format_control.h: Regenerated.
4350         * lib/unictype/pr_grapheme_base.h: Regenerated.
4351         * lib/unictype/pr_grapheme_extend.h: Regenerated.
4352         * lib/unictype/pr_grapheme_link.h: Regenerated.
4353         * lib/unictype/pr_id_continue.h: Regenerated.
4354         * lib/unictype/pr_id_start.h: Regenerated.
4355         * lib/unictype/pr_ideographic.h: Regenerated.
4356         * lib/unictype/pr_ignorable_control.h: Regenerated.
4357         * lib/unictype/pr_lowercase.h: Regenerated.
4358         * lib/unictype/pr_math.h: Regenerated.
4359         * lib/unictype/pr_numeric.h: Regenerated.
4360         * lib/unictype/pr_other_alphabetic.h: Regenerated.
4361         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
4362         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
4363         * lib/unictype/pr_other_id_continue.h: Regenerated.
4364         * lib/unictype/pr_other_lowercase.h: Regenerated.
4365         * lib/unictype/pr_other_math.h: Regenerated.
4366         * lib/unictype/pr_punctuation.h: Regenerated.
4367         * lib/unictype/pr_sentence_terminal.h: Regenerated.
4368         * lib/unictype/pr_soft_dotted.h: Regenerated.
4369         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
4370         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
4371         * lib/unictype/pr_unified_ideograph.h: Regenerated.
4372         * lib/unictype/pr_uppercase.h: Regenerated.
4373         * lib/unictype/pr_xid_continue.h: Regenerated.
4374         * lib/unictype/pr_xid_start.h: Regenerated.
4375         * lib/unictype/pr_zero_width.h: Regenerated.
4376         * lib/unictype/scripts.h: Regenerated.
4377         * lib/unictype/scripts_byname.gperf: Regenerated.
4378         * lib/unictype/sy_java_ident.h: Regenerated.
4379         * lib/unilbrk/lbrkprop1.h: Regenerated.
4380         * lib/unilbrk/lbrkprop2.h: Regenerated.
4381         * tests/unictype/test-categ_C.c: Regenerated.
4382         * tests/unictype/test-categ_Cf.c: Regenerated.
4383         * tests/unictype/test-categ_Cn.c: Regenerated.
4384         * tests/unictype/test-categ_L.c: Regenerated.
4385         * tests/unictype/test-categ_Ll.c: Regenerated.
4386         * tests/unictype/test-categ_Lm.c: Regenerated.
4387         * tests/unictype/test-categ_Lo.c: Regenerated.
4388         * tests/unictype/test-categ_Lu.c: Regenerated.
4389         * tests/unictype/test-categ_M.c: Regenerated.
4390         * tests/unictype/test-categ_Mc.c: Regenerated.
4391         * tests/unictype/test-categ_Me.c: Regenerated.
4392         * tests/unictype/test-categ_Mn.c: Regenerated.
4393         * tests/unictype/test-categ_N.c: Regenerated.
4394         * tests/unictype/test-categ_Nd.c: Regenerated.
4395         * tests/unictype/test-categ_Nl.c: Regenerated.
4396         * tests/unictype/test-categ_No.c: Regenerated.
4397         * tests/unictype/test-categ_P.c: Regenerated.
4398         * tests/unictype/test-categ_Pd.c: Regenerated.
4399         * tests/unictype/test-categ_Pe.c: Regenerated.
4400         * tests/unictype/test-categ_Pf.c: Regenerated.
4401         * tests/unictype/test-categ_Pi.c: Regenerated.
4402         * tests/unictype/test-categ_Po.c: Regenerated.
4403         * tests/unictype/test-categ_Ps.c: Regenerated.
4404         * tests/unictype/test-categ_S.c: Regenerated.
4405         * tests/unictype/test-categ_Sk.c: Regenerated.
4406         * tests/unictype/test-categ_Sm.c: Regenerated.
4407         * tests/unictype/test-categ_So.c: Regenerated.
4408         * tests/unictype/test-ctype_alnum.c: Regenerated.
4409         * tests/unictype/test-ctype_alpha.c: Regenerated.
4410         * tests/unictype/test-ctype_graph.c: Regenerated.
4411         * tests/unictype/test-ctype_lower.c: Regenerated.
4412         * tests/unictype/test-ctype_print.c: Regenerated.
4413         * tests/unictype/test-ctype_punct.c: Regenerated.
4414         * tests/unictype/test-ctype_upper.c: Regenerated.
4415         * tests/unictype/test-decdigit.h: Regenerated.
4416         * tests/unictype/test-digit.h: Regenerated.
4417         * tests/unictype/test-numeric.h: Regenerated.
4418         * tests/unictype/test-pr_alphabetic.c: Regenerated.
4419         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
4420         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
4421         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
4422         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
4423         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
4424         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
4425         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
4426         * tests/unictype/test-pr_combining.c: Regenerated.
4427         * tests/unictype/test-pr_dash.c: Regenerated.
4428         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
4429         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
4430         * tests/unictype/test-pr_deprecated.c: Regenerated.
4431         * tests/unictype/test-pr_diacritic.c: Regenerated.
4432         * tests/unictype/test-pr_extender.c: Regenerated.
4433         * tests/unictype/test-pr_format_control.c: Regenerated.
4434         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
4435         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
4436         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
4437         * tests/unictype/test-pr_id_continue.c: Regenerated.
4438         * tests/unictype/test-pr_id_start.c: Regenerated.
4439         * tests/unictype/test-pr_ideographic.c: Regenerated.
4440         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
4441         * tests/unictype/test-pr_lowercase.c: Regenerated.
4442         * tests/unictype/test-pr_math.c: Regenerated.
4443         * tests/unictype/test-pr_numeric.c: Regenerated.
4444         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
4445         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
4446         Regenerated.
4447         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
4448         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
4449         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
4450         * tests/unictype/test-pr_other_math.c: Regenerated.
4451         * tests/unictype/test-pr_punctuation.c: Regenerated.
4452         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
4453         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
4454         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
4455         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
4456         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
4457         * tests/unictype/test-pr_uppercase.c: Regenerated.
4458         * tests/unictype/test-pr_xid_continue.c: Regenerated.
4459         * tests/unictype/test-pr_xid_start.c: Regenerated.
4460         * tests/unictype/test-pr_zero_width.c: Regenerated.
4461
4462         Update to Unicode 5.1.0.
4463         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
4464         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
4465         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
4466         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
4467         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
4468         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
4469         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
4470         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
4471         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
4472         (nonspacing_table_ind): Update.
4473         * tests/uniwidth/test-uc_width2.sh: Update expected result.
4474
4475         Update to Unicode 5.1.0.
4476         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
4477         code transform.
4478         * lib/uniname/uniname.c (unicode_character_name,
4479         unicode_name_character): Add the range 0x1Fxxx to the code transform.
4480         * lib/uniname/uninames.h: Regenerated.
4481         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
4482
4483 2009-02-07  Bruno Haible  <bruno@clisp.org>
4484
4485         Merge gen-ctype and gen-lbrk into a single program.
4486         * lib/gen-uni-tables.c: New file, incorporating
4487         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
4488         Add directory prefixes to the names of the generated files.
4489         * lib/unictype/gen-ctype.c: Remove file.
4490         * lib/unilbrk/gen-lbrk.c: Remove file.
4491         * modules/gen-uni-tables: New file.
4492         * modules/unictype/gen-ctype: Remove file.
4493         * modules/unilbrk/gen-lbrk: Remove file.
4494
4495 2009-02-07  Bruno Haible  <bruno@clisp.org>
4496
4497         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
4498
4499         New module 'unistr/u32-strcoll'.
4500         * modules/unistr/u32-strcoll: New file.
4501         * lib/unistr/u32-strcoll.c: New file.
4502
4503         New module 'unistr/u16-strcoll'.
4504         * modules/unistr/u16-strcoll: New file.
4505         * lib/unistr/u16-strcoll.c: New file.
4506
4507         New module 'unistr/u8-strcoll'.
4508         * modules/unistr/u8-strcoll: New file.
4509         * lib/unistr/u8-strcoll.c: New file.
4510         * lib/unistr/u-strcoll.h: New file.
4511
4512 2009-02-07  Bruno Haible  <bruno@clisp.org>
4513
4514         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
4515         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
4516         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
4517         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
4518         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
4519         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
4520
4521 2009-02-07  Bruno Haible  <bruno@clisp.org>
4522
4523         Make 64-bit clean.
4524         * lib/unictype/gen-ctype.c (output_predicate, output_category,
4525         output_combclass, output_bidi_category, output_decimal_digit,
4526         output_digit, output_numeric, output_mirror, output_scripts,
4527         output_ident_category): Use proper width specifier in format strings.
4528
4529 2009-02-07  Bruno Haible  <bruno@clisp.org>
4530
4531         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
4532         failure behaviour.
4533
4534 2009-02-07  Jim Meyering  <meyering@redhat.com>
4535
4536         regex: avoid compilation failure with upcoming gcc-4.4
4537         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
4538         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
4539         "... error: integer overflow in preprocessor expression".
4540
4541 2009-02-05  Ben Pfaff  <blp@gnu.org>
4542
4543         Fix link errors on Windows when close module is used.
4544         * modules/close: Add $(LIB_CLOSE) to Link section.
4545         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
4546         $(LIB_CLOSE) on Windows.
4547
4548 2009-02-05  Jim Meyering  <meyering@redhat.com>
4549
4550         still avoid unused-parameter warnings, but do it cleanly
4551         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
4552         (get_fs_usage): Cast to void instead.
4553         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
4554         (dev_from_mount_options, read_file_system_list): Cast to void.
4555         Prompted by Bruno Haible.
4556
4557 2009-02-04  Jim Meyering  <meyering@redhat.com>
4558
4559         fsusage.c: correct copyright year
4560         * lib/fsusage.c: Reflect year in which the change is pushed into
4561
4562         avoid misc. warnings
4563         * lib/fsusage.c (UNUSED_PARAM): Define.
4564         (get_fs_usage): Mark parameter "disk" as unused.
4565         * lib/getugroups.c (getgrent): Use "void" in prototype.
4566         * lib/mountlist.c: Mark unused parameters.
4567         (read_file_system_list): Declare a local with "const".
4568         * lib/nanosleep.c (getnow): Declare static.
4569         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
4570
4571         dirfd: set errno upon failure
4572         * lib/dirfd.c: Include <errno.h>.
4573         Set errno to ENOTSUP when returning -1.
4574         * modules/dirfd (Depends-on): Add errno.
4575         Suggested by John Kodis <kodis@comcast.net>.
4576
4577 2009-02-01  Bruno Haible  <bruno@clisp.org>
4578
4579         Don't assume sizeof (long) >= sizeof (void *).
4580         * lib/memcmp.c: Include stdint.h.
4581         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
4582         srcp2 to 'const byte *'.
4583         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
4584         types to uintptr_t.
4585         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
4586         * modules/memcmp (Depends-on): Add stdint.
4587         Reported by Ozkan Sezer <sezeroz@gmail.com>.
4588
4589 2009-01-30  Eric Blake  <ebb9@byu.net>
4590
4591         fix more require-before-expand issues
4592         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
4593         expand, AC_PROG_AWK.
4594         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
4595
4596 2009-01-28  Eric Blake  <ebb9@byu.net>
4597
4598         version-etc: use consistent URL formatting
4599         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
4600         Improve formatting.  Use fputs for string without %.
4601
4602 2009-01-28  Jim Meyering  <meyering@redhat.com>
4603
4604         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
4605         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
4606         "underquoted definition of NAME" from autoconf-2.59.
4607
4608 2009-01-28  Bruno Haible  <bruno@clisp.org>
4609
4610         * doc/gnulib.texi: Add "Obsolete modules" to index.
4611
4612 2009-01-28  Jim Meyering  <meyering@redhat.com>
4613
4614         useless-if-before-free: recognize more variants
4615         * build-aux/useless-if-before-free: Also recognize e.g.,
4616         if (NULL != p) free (p);
4617
4618 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
4619
4620         test-getaddrinfo: skip (don't fail) this test when there's no network
4621         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
4622         on the presumption that it means you lack network access.
4623
4624 2009-01-26  Jim Meyering  <meyering@redhat.com>
4625
4626         fflush: avoid warnings on modern systems
4627         * lib/fflush.c (rpl_fflush): Move declarations of locals,
4628         pos and result, into scopes where they're used.
4629
4630 2009-01-26  Eric Blake  <ebb9@byu.net>
4631
4632         Silence warning reintroduced by recent extensions patch.
4633         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
4634         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
4635         autoconf.
4636
4637         Backport improved autoconf semantics of AC_DEFUN_ONCE.
4638         * m4/00gnulib.m4: New file.
4639         * gnulib-tool (func_get_filelist): Always use it.
4640         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
4641         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
4642
4643 2009-01-25  Bruno Haible  <bruno@clisp.org>
4644
4645         Make test-quotearg work on MacOS X and AIX.
4646         * tests/test-quotearg.sh: New file.
4647         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
4648         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
4649         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
4650         include <libintl.h>.
4651         (fake_locale): Remove variable.
4652         (gettext, dgettext, dcgettext): Remove functions.
4653         (main): Instead of setting a fake locale, set a real locale. Call
4654         textdomain and bindtextdomain.
4655         * modules/quotearg-tests (Files): Add the new files.
4656         (Depends-on): Add gettext, setenv, unsetenv.
4657         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
4658         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
4659         Augment TESTS_ENVIRONMENT.
4660
4661 2009-01-25  Bruno Haible  <bruno@clisp.org>
4662
4663         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
4664         fr_FR.ISO8859-1 locale on MacOS X.
4665         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
4666         ja_JP.eucJP locale on MacOS X.
4667         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
4668         zh_CN.GB18030 locale on MacOS X.
4669
4670 2009-01-25  Bruno Haible  <bruno@clisp.org>
4671
4672         Avoid link errors on MacOS X 10.3.
4673         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
4674         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
4675
4676 2009-01-25  Bruno Haible  <bruno@clisp.org>
4677
4678         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
4679         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
4680         * modules/pipe (Files): Remove m4/posix_spawn.m4.
4681         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
4682         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
4683         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
4684         posix_spawnattr_init, posix_spawnattr_setsigmask,
4685         posix_spawnattr_setflags, posix_spawnattr_destroy.
4686
4687         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
4688         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
4689         * modules/execute (Files): Remove m4/posix_spawn.m4.
4690         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
4691         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
4692         posix_spawnattr_init, posix_spawnattr_setsigmask,
4693         posix_spawnattr_setflags, posix_spawnattr_destroy.
4694
4695 2009-01-25  Bruno Haible  <bruno@clisp.org>
4696
4697         * lib/glthread/threadlib.c: Include <stdlib.h>.
4698
4699 2009-01-25  Bruno Haible  <bruno@clisp.org>
4700
4701         * lib/glthread/threadlib.c (dummy): New declaration.
4702
4703 2009-01-25  Bruno Haible  <bruno@clisp.org>
4704
4705         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
4706         multibyte characters also for the GB18030 encoding. Don't crash when
4707         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
4708
4709 2009-01-25  Bruno Haible  <bruno@clisp.org>
4710
4711         Avoid redefining 'struct random_data' on OSF/1 5.1.
4712         * lib/stdlib.in.h: Include <random.h> if it exists.
4713         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
4714         HAVE_RANDOM_H. Include <random.h> when testing whether
4715         'struct random_data' exists.
4716         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
4717
4718 2009-01-25  Bruno Haible  <bruno@clisp.org>
4719
4720         Don't install charset.alias on MacOS X >= 10.3.
4721         * lib/localcharset.c (DARWIN7): New macro.
4722         (get_charset_aliases): Hardcode the result for Darwin7.
4723         * modules/localcharset (install-exec-local): Don't install
4724         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
4725
4726 2009-01-25  Bruno Haible  <bruno@clisp.org>
4727
4728         Don't install charset.alias on mingw and Cygwin.
4729         * modules/localcharset (install-exec-local): Don't install
4730         charset.alias on mingw and Cygwin, if the file does not yet exist.
4731         The result for these platforms is hardcoded in localcharset.c.
4732
4733 2009-01-25  Bruno Haible  <bruno@clisp.org>
4734
4735         Make it possible again to use AC_GNU_SOURCE together with gnulib.
4736         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
4737         before requiring AC_USE_SYSTEM_EXTENSIONS.
4738
4739 2009-01-25  Jim Meyering  <meyering@redhat.com>
4740
4741         c-strtod: avoid warnings
4742         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
4743         "assignment discards qualifiers from pointer target type" warnings.
4744
4745 2009-01-24  Bruno Haible  <bruno@clisp.org>
4746
4747         Add support for non-UTF-8 locales on MacOS X.
4748         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
4749         canonical encodings. For Darwin 7 and newer, don't map traditional
4750         encodings to UTF-8.
4751         Reported by Vincent Lefevre <vincent@vinc17.org>
4752         at <http://savannah.gnu.org/bugs/?25235>.
4753
4754 2009-01-24  Bruno Haible  <bruno@clisp.org>
4755
4756         * doc/gnulib.texi (Obsolete modules): New section.
4757         Reported by Mike Frysinger <vapier@gentoo.org>.
4758
4759 2009-01-24  Bruno Haible  <bruno@clisp.org>
4760
4761         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
4762         (%.dvi): New rule.
4763
4764 2009-01-24  Bruno Haible  <bruno@clisp.org>
4765
4766         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
4767         Reported by Eric Blake.
4768
4769 2009-01-24  Bruno Haible  <bruno@clisp.org>
4770
4771         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
4772         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
4773         Reported by Gary V. Vaughan <gary@gnu.org>.
4774
4775 2009-01-24  Bruno Haible  <bruno@clisp.org>
4776
4777         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
4778
4779 2009-01-23  Bruno Haible  <bruno@clisp.org>
4780
4781         Make c-strtod, c-strtold usable in libraries.
4782         * lib/c-strtod.c: Include string.h instead of xalloc.h.
4783         (C_STRTOD): Call strdup instead of xstrdup.
4784         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
4785         * modules/c-strtold (Depends-on): Likewise.
4786         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
4787         * NEWS: Mention the change.
4788         Reported by Michael Gold <mgold@ncf.ca>.
4789
4790 2009-01-23  Jim Meyering  <meyering@redhat.com>
4791
4792         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
4793         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
4794         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
4795
4796 2009-01-23  Simon Josefsson  <simon@josefsson.org>
4797
4798         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
4799         GNU CoreUtils.
4800         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
4801         * modules/version-etc (Description): Update.
4802
4803 2009-01-22  Bruno Haible  <bruno@clisp.org>
4804
4805         Cache the C locale object.
4806         * lib/c-strtod.c (c_locale_cache): New variable.
4807         (c_locale): New function.
4808         (C_STRTOD): Use it, and don't call freelocale.
4809         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
4810         Suggested by Paolo Bonzini.
4811
4812 2009-01-21  Bruno Haible  <bruno@clisp.org>
4813
4814         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
4815         conditions other than overflow.
4816
4817 2009-01-21  Bruno Haible  <bruno@clisp.org>
4818
4819         * lib/c-strtod.c: Include errno.h.
4820         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
4821         value from STRTOD_L and STRTOD.
4822
4823 2009-01-21  Bruno Haible  <bruno@clisp.org>
4824         and Jim Meyering  <meyering@redhat.com>
4825
4826         nanosleep: skip configure test (fail it) for apple universal builds
4827         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
4828         universal builds, assume that nanosleep does not work.
4829         * modules/nanosleep (Depends-on): Add multiarch.
4830
4831         mktime: skip configure test (fail it) for apple universal builds
4832         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
4833         universal builds, assume that mktime does not work.
4834         * modules/mktime (Depends-on): Add multiarch.
4835
4836 2009-01-21  Eric Blake  <ebb9@byu.net>
4837
4838         multiarch: avoid expand-before-require warning
4839         * modules/multiarch (configure.ac): Require, rather than expand,
4840         gl_MULTIARCH.
4841         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
4842         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
4843         enforce that all clients require it.  Partial reversion of
4844         2008-12-29 patch.
4845
4846         error: avoid expand-before-require warning
4847         * modules/errno (configure.ac): Require, rather than expand,
4848         gl_HEADER_ERRNO_H.
4849         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
4850         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
4851         enforce that all clients require it.
4852
4853         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
4854         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
4855         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
4856         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
4857
4858 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
4859
4860         Revert:
4861         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
4862
4863         regex: do not depend on obsolete modules.
4864         * modules/regex: Remove memcmp and memmove.
4865
4866 2009-01-20  Bruno Haible  <bruno@clisp.org>
4867
4868         Make the 'link' module link on Windows NT 4.
4869         * lib/link.c (_WIN32_WINNT): Don't define.
4870         (CreateHardLinkFuncType): New type.
4871         (CreateHardLinkFunc, initialized): New variables.
4872         (initialize): New function.
4873         (link): Invoke CreateHardLink indirectly through the function pointer.
4874
4875 2009-01-20  Bruno Haible  <bruno@clisp.org>
4876
4877         Fix compilation failure on mingw.
4878         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
4879
4880 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
4881
4882         * doc/c-strtod.texi: Mention a couple of restrictions.
4883
4884 2009-01-20  Jim Meyering  <meyering@redhat.com>
4885
4886         gettimeofday: move more declarations out of functions
4887         * lib/gettimeofday.c: Move extern declarations of tzset and
4888         gmtime out of containing functions.  Prompted by Bruno Haible.
4889
4890 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
4891
4892         regex: do not depend on obsolete modules.
4893         * modules/regex: Remove memcmp and memmove.
4894
4895 2009-01-19  Bruno Haible  <bruno@clisp.org>
4896
4897         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
4898         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
4899         gl_BIGENDIAN, not AC_C_BIGENDIAN.
4900         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
4901         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
4902
4903 2009-01-19  Bruno Haible  <bruno@clisp.org>
4904
4905         * tests/test-link.c: Include <errno.h>.
4906         (main): Exit with code 77 when a hard link cannot be created due to
4907         the file system.
4908         * tests/test-link.sh: Skip test when a hard link cannot be created due
4909         to the file system.
4910         Suggested by Eric Blake.
4911
4912 2009-01-19  Martin Lambers  <marlam@marlam.de>
4913
4914         * modules/link-tests: New file.
4915         * tests/test-link.sh: New file.
4916         * tests/test-link.c: New file.
4917
4918 2009-01-19  Eric Blake  <ebb9@byu.net>
4919
4920         doc: mention another function added in cygwin 1.7.0
4921         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
4922         Another new function in cygwin 1.7.
4923
4924 2009-01-19  Bruno Haible  <bruno@clisp.org>
4925
4926         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
4927         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
4928         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
4929         gl_BIGENDIAN, not AC_C_BIGENDIAN.
4930         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
4931         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
4932         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
4933         * m4/md4.m4 (gl_MD4): Likewise.
4934         * m4/md5.m4 (gl_MD5): Likewise.
4935         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
4936         * m4/sha1.m4 (gl_SHA1): Likewise.
4937         * m4/sha256.m4 (gl_SHA256): Likewise.
4938         * m4/sha512.m4 (gl_SHA512): Likewise.
4939
4940 2009-01-19  Bruno Haible  <bruno@clisp.org>
4941
4942         * modules/uniname/uniname-tests (Depends-on): Add progname.
4943         * tests/uniname/test-uninames.c: Include progname.h.
4944         (main): Call set_program_name.
4945
4946         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
4947         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
4948         (main): Call set_program_name.
4949
4950         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
4951         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
4952         (main): Call set_program_name.
4953
4954         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
4955         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
4956         (main): Call set_program_name.
4957
4958         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
4959         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
4960         (main): Call set_program_name.
4961
4962         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
4963         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
4964         (main): Call set_program_name.
4965
4966         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
4967         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
4968         (main): Call set_program_name.
4969
4970         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
4971         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
4972         (main): Call set_program_name.
4973
4974         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
4975         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
4976         (main): Call set_program_name.
4977
4978 2009-01-19  Eric Blake  <ebb9@byu.net>
4979
4980         test-unistd: test previous patch
4981         * tests/test-unistd.c: Test *_FILENO macros.
4982
4983         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
4984         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
4985         Guarantee a definition.
4986         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
4987         * modules/unistd-safer (Depends-on): Add dependency on unistd.
4988         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
4989         * lib/dup-safer.c (STDERR_FILENO): Likewise.
4990         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
4991         Likewise.
4992         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
4993         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
4994         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
4995         Likewise.
4996         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
4997         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
4998         (STDERR_FILENO): Likewise.
4999         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
5000         (STDERR_FILENO): Likewise.
5001         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
5002         (STDERR_FILENO): Likewise.
5003         Reported by Elbert Pol.
5004
5005 2009-01-19  Eric Blake  <ebb9@byu.net>
5006
5007         doc: mention more functions added in cygwin 1.7.0
5008         * doc/posix-functions/abort.texi (abort): Update wording related
5009         to cygwin.
5010         * doc/posix-functions/daylight.texi (daylight): Likewise.
5011         * doc/posix-functions/optarg.texi (optarg): Likewise.
5012         * doc/posix-functions/optarg.texi (opterr): Likewise.
5013         * doc/posix-functions/optarg.texi (optind): Likewise.
5014         * doc/posix-functions/optarg.texi (optopt): Likewise.
5015         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
5016         worked in 1.5.x, and was withdrawn in 1.7.
5017         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5018         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
5019         cygwin versions.
5020         * doc/posix-functions/perror.texi (perror): Likewise.
5021         * doc/posix-functions/printf.texi (printf): Likewise.
5022         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
5023         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
5024         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5025         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5026         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5027         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
5028         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
5029         Likewise.
5030         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
5031         Likewise.
5032         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
5033         this function.
5034         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
5035         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
5036         Likewise.
5037         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
5038         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
5039         * doc/posix-functions/confstr.texi (confstr): Likewise.
5040         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
5041         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
5042         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
5043         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
5044         * doc/posix-functions/fputws.texi (fputws): Likewise.
5045         * doc/posix-functions/fwide.texi (fwide): Likewise.
5046         * doc/posix-functions/getwc.texi (getwc): Likewise.
5047         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
5048         * doc/posix-functions/putwc.texi (putwc): Likewise.
5049         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
5050         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
5051         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
5052         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
5053         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
5054         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
5055         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
5056         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
5057         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
5058         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
5059         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
5060
5061 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
5062
5063         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
5064         * lib/ioctl.c: Include <sys/ioctl.h>.
5065
5066 2009-01-19  Simon Josefsson  <simon@josefsson.org>
5067
5068         * modules/getdate-tests (Depends-on): Add progname.
5069         * tests/test-getdate.c: Use progname module, to avoid link errors
5070         on non-glibc systems.
5071
5072 2009-01-18  Simon Josefsson  <simon@josefsson.org>
5073
5074         * modules/filenamecat-tests (Depends-on): Add progname.
5075         * modules/fstrcmp-tests (Depends-on): Likewise.
5076
5077         * tests/test-filenamecat.c: Use progname module, to avoid link
5078         errors on non-glibc systems.
5079         * tests/test-fstrcmp.c: Likewise.
5080
5081 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
5082
5083         gettimeofday: avoid warning: nested extern declaration of 'localtime'
5084         * lib/gettimeofday.c: Move extern declaration out of function.
5085
5086 2009-01-18  Bruno Haible  <bruno@clisp.org>
5087
5088         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
5089         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
5090         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
5091
5092 2009-01-18  Bruno Haible  <bruno@clisp.org>
5093
5094         * lib/strftime.c (MEMPCPY): Remove unused macro.
5095         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
5096
5097 2009-01-18  Martin Lambers  <marlam@marlam.de>
5098
5099         New module 'link'.
5100         * lib/unistd.in.h (link): New declaration.
5101         * lib/link.c: New file.
5102         * m4/link.m4: New file.
5103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
5104         HAVE_LINK.
5105         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
5106         * modules/link: New file.
5107         * doc/posix-functions/link.texi: Mention the new module.
5108
5109 2009-01-18  Bruno Haible  <bruno@clisp.org>
5110
5111         * tests/test-avltree_list.c (main): Call set_program_name.
5112         * tests/test-avltree_oset.c (main): Likewise.
5113         * tests/test-obstack-printf.c: Include progname.h.
5114         (main): Call set_program_name.
5115         * tests/test-quotearg.c: Include progname.h.
5116         (main): Call set_program_name.
5117         * tests/test-xmemdup0.c: Include progname.h.
5118         (main): Call set_program_name.
5119
5120 2009-01-18  Bruno Haible  <bruno@clisp.org>
5121
5122         New module 'alphasort'.
5123         * lib/dirent.in.h (alphasort): New declaration.
5124         * lib/alphasort.c: New file, from glibc with modifications.
5125         * m4/alphasort.m4: New file.
5126         * modules/alphasort: New file.
5127         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
5128         HAVE_ALPHASORT.
5129         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
5130         HAVE_ALPHASORT.
5131         * doc/posix-functions/alphasort.texi: Mention the new module and the
5132         portability problems.
5133
5134 2009-01-18  Bruno Haible  <bruno@clisp.org>
5135
5136         New module 'scandir'.
5137         * lib/dirent.in.h (scandir): New declaration.
5138         * lib/scandir.c: New file, from glibc with modifications.
5139         * m4/scandir.m4: New file.
5140         * modules/scandir: New file.
5141         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
5142         HAVE_SCANDIR.
5143         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
5144         HAVE_SCANDIR.
5145         * doc/posix-functions/scandir.texi: Mention the new module and the
5146         portability problems.
5147
5148 2009-01-17  Bruno Haible  <bruno@clisp.org>
5149
5150         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
5151         Update documentation.
5152         (func_remove_suffix): Escape all dots in the suffix. Update
5153         documentation.
5154         (func_filter_filelist): Update documentation.
5155         Reported by Ralf Wildenhues.
5156
5157 2009-01-17  Bruno Haible  <bruno@clisp.org>
5158
5159         * modules/dprintf-posix-tests: New file.
5160         * tests/test-dprintf-posix.sh: New file.
5161         * tests/test-dprintf-posix.c: New file.
5162
5163         New modules 'dprintf', 'dprintf-posix'.
5164         * lib/stdio.in.h (dprintf): New declaration.
5165         * lib/dprintf.c: New file.
5166         * m4/dprintf.m4: New file.
5167         * m4/dprintf-posix.m4: New file.
5168         * modules/dprintf: New file.
5169         * modules/dprintf-posix: New file.
5170         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
5171         HAVE_DPRINTF, REPLACE_DPRINTF.
5172         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
5173         HAVE_DPRINTF, REPLACE_DPRINTF.
5174         * doc/posix-functions/dprintf.texi: Mention the new modules.
5175
5176 2009-01-17  Bruno Haible  <bruno@clisp.org>
5177
5178         * modules/vdprintf-posix-tests: New file.
5179         * tests/test-vdprintf-posix.sh: New file.
5180         * tests/test-vdprintf-posix.c: New file.
5181
5182         New modules 'vdprintf', 'vdprintf-posix'.
5183         * lib/stdio.in.h (vdprintf): New declaration.
5184         * lib/vdprintf.c: New file.
5185         * m4/vdprintf.m4: New file.
5186         * m4/vdprintf-posix.m4: New file.
5187         * modules/vdprintf: New file.
5188         * modules/vdprintf-posix: New file.
5189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
5190         HAVE_VDPRINTF, REPLACE_VDPRINTF.
5191         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
5192         HAVE_VDPRINTF, REPLACE_VDPRINTF.
5193         * doc/posix-functions/vdprintf.texi: Mention the new modules.
5194
5195 2009-01-17  Bruno Haible  <bruno@clisp.org>
5196
5197         Fix replacement of fopen on mingw.
5198         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
5199         mingw.
5200
5201 2009-01-17  Bruno Haible  <bruno@clisp.org>
5202
5203         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
5204         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
5205
5206 2009-01-17  Bruno Haible  <bruno@clisp.org>
5207
5208         Avoid test-fflush2.sh failure on mingw.
5209         * tests/test-fflush2.c: Include binary-io.h.
5210         (main): Put standard input into binary mode.
5211         * modules/fflush-tests (Depends-on): Add binary-io.
5212
5213 2009-01-17  Bruno Haible  <bruno@clisp.org>
5214
5215         * lib/wchar.in.h: In another particular situation, include only the
5216         system's <wchar.h> file.
5217         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
5218         Reported by Albert Chin-A-Young <china@thewrittenword.com>
5219         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
5220
5221 2009-01-17  Bruno Haible  <bruno@clisp.org>
5222
5223         Support for stripping executables in --enable-relocatable.
5224         * build-aux/install-reloc: Expect one more argument, or an environment
5225         variable RELOC_STRIP_PROG. If set, strip the destination program and
5226         its wrapper.
5227         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
5228         RELOC_STRIP_PROG.
5229         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
5230         to set RELOCATABLE_STRIP.
5231         * NEWS: Mention the new Makefile requirement.
5232
5233 2009-01-17  Bruno Haible  <bruno@clisp.org>
5234
5235         * build-aux/install-reloc: Remove debugging information left over by
5236         C compiler on MacOS X.
5237
5238 2009-01-17  Bruno Haible  <bruno@clisp.org>
5239
5240         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
5241         * lib/progreloc.c (find_executable): Fix type of pointer passed to
5242         _NSGetExecutablePath.
5243
5244 2009-01-16  Jim Meyering  <meyering@redhat.com>
5245
5246         strerror: avoid warnings about discarding "const"
5247         * lib/strerror.c (rpl_strerror): Instead of returning a const
5248         string from each and every "case", use a variable, and add a single
5249         cast after the switch.
5250
5251 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
5252
5253         * lib/arpa_inet.in.h: Add extern "C" block for C++.
5254
5255 2009-01-16  Bruno Haible  <bruno@clisp.org>
5256
5257         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
5258         array initializer syntax that also works in C++ mode.
5259         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5260
5261 2009-01-16  Jim Meyering  <meyering@redhat.com>
5262
5263         poll: suppress a warning
5264         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
5265         to ignore "...unsigned expression < 0 is always false" warnings.
5266
5267 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
5268
5269         poll: remove declarations of unused variables
5270         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
5271         sockbuf and optlen.
5272
5273 2009-01-15  Bruno Haible  <bruno@clisp.org>
5274
5275         Make fflush-after-ungetc POSIX compliant on BSD systems.
5276         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
5277         (clear_ungetc_buffer): Implement also for other systems.
5278         (rpl_fflush): On glibc systems, invoke
5279         clear_ungetc_buffer_preserving_position. Otherwise, invoke
5280         clear_ungetc_buffer after fetching the stream's position, not before.
5281
5282 2009-01-15  Bruno Haible  <bruno@clisp.org>
5283
5284         Make fflush-after-ungetc POSIX compliant on glibc systems.
5285         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
5286         after ungetc.
5287         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
5288         (rpl_fflush): On glibc systems, simply call the system's fflush
5289         function after clearing the ungetc buffer.
5290         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
5291         Instead, lseek only to the end of file, then use the system's fseeko
5292         for the rest. On glibc systems, reset the EOF indicator bit.
5293
5294 2009-01-15  Jim Meyering  <meyering@redhat.com>
5295
5296         openmp.m4: revert quote-adding change, for portability to older autoconf
5297         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
5298         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
5299         Simon Josefsson noticed the problem when using autoconf-2.61.
5300
5301 2009-01-15  Bruno Haible  <bruno@clisp.org>
5302
5303         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
5304         * tests/test-fflush2.c (ASSERT): Always fail.
5305         (main): Add two tests for fflush() after ungetc(), taking into account
5306         the Austin Group's clarification.
5307         Suggested by Eric Blake.
5308
5309 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
5310
5311         mktime.m4: remove K&R-style function prototypes
5312         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
5313         for the Sun C++ compiler.
5314
5315 2009-01-14  Bruno Haible  <bruno@clisp.org>
5316
5317         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
5318         while including <wchar.h>.
5319         * lib/wchar.in.h: In two particular situations on HP-UX, include only
5320         the system's <wchar.h> file.
5321         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5322
5323 2009-01-14  Bruno Haible  <bruno@clisp.org>
5324
5325         * m4/csharp.m4: Don't mention gettext on the serial number line.
5326         * m4/csharpexec.m4: Likewise.
5327         * m4/eaccess.m4: Likewise.
5328         * m4/javaexec.m4: Likewise.
5329         * m4/sig_atomic_t.m4: Likewise.
5330         * m4/tmpdir.m4: Likewise.
5331         * m4/intldir.m4: Bump gettext version.
5332         * m4/lib-ld.m4: Likewise.
5333
5334 2009-01-14  Bruno Haible  <bruno@clisp.org>
5335
5336         * lib/progname.c (set_program_name): Add more comments.
5337         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
5338
5339 2009-01-14  Simon Josefsson  <simon@josefsson.org>
5340
5341         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
5342         were sys/stat.h does not define it.
5343
5344 2009-01-14  Jim Meyering  <meyering@redhat.com>
5345
5346         many *.m4 files: improve m4 quoting
5347         99% of this change was performed by running the following commands:
5348         git ls-files | grep '\.m4$' | xargs perl -pi \
5349           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
5350           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
5351           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
5352           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
5353         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
5354         The remainder were to add Copyright dates, increment serial numbers,
5355         undo some changes in comments, exclude m4/intl.m4, and add quotes
5356         around the "1" in ",1" where the unusual spacing prohibited the
5357         above regexps from doing the job.  For more details, see
5358         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
5359         * m4/acl.m4: Modified.
5360         * m4/afs.m4: Likewise.
5361         * m4/alloca.m4: Likewise.
5362         * m4/argp.m4: Likewise.
5363         * m4/argz.m4: Likewise.
5364         * m4/atexit.m4: Likewise.
5365         * m4/bison-i18n.m4: Likewise.
5366         * m4/bison.m4: Likewise.
5367         * m4/byteswap.m4: Likewise.
5368         * m4/c-stack.m4: Likewise.
5369         * m4/c-strtod.m4: Likewise.
5370         * m4/calloc.m4: Likewise.
5371         * m4/canonicalize-lgpl.m4: Likewise.
5372         * m4/chown.m4: Likewise.
5373         * m4/clock_time.m4: Likewise.
5374         * m4/codeset.m4: Likewise.
5375         * m4/copy-file.m4: Likewise.
5376         * m4/csharp.m4: Likewise.
5377         * m4/csharpcomp.m4: Likewise.
5378         * m4/csharpexec.m4: Likewise.
5379         * m4/d-ino.m4: Likewise.
5380         * m4/d-type.m4: Likewise.
5381         * m4/dirfd.m4: Likewise.
5382         * m4/double-slash-root.m4: Likewise.
5383         * m4/eaccess.m4: Likewise.
5384         * m4/eealloc.m4: Likewise.
5385         * m4/environ.m4: Likewise.
5386         * m4/errno_h.m4: Likewise.
5387         * m4/euidaccess.m4: Likewise.
5388         * m4/execute.m4: Likewise.
5389         * m4/fatal-signal.m4: Likewise.
5390         * m4/fchdir.m4: Likewise.
5391         * m4/fcntl_h.m4: Likewise.
5392         * m4/fileblocks.m4: Likewise.
5393         * m4/filenamecat.m4: Likewise.
5394         * m4/findprog.m4: Likewise.
5395         * m4/flexmember.m4: Likewise.
5396         * m4/fnmatch.m4: Likewise.
5397         * m4/fopen.m4: Likewise.
5398         * m4/fpending.m4: Likewise.
5399         * m4/fprintf-posix.m4: Likewise.
5400         * m4/free.m4: Likewise.
5401         * m4/frexp.m4: Likewise.
5402         * m4/frexpl.m4: Likewise.
5403         * m4/fsusage.m4: Likewise.
5404         * m4/ftruncate.m4: Likewise.
5405         * m4/gc-camellia.m4: Likewise.
5406         * m4/gc-random.m4: Likewise.
5407         * m4/gc.m4: Likewise.
5408         * m4/getaddrinfo.m4: Likewise.
5409         * m4/getcwd-abort-bug.m4: Likewise.
5410         * m4/getcwd-path-max.m4: Likewise.
5411         * m4/getdate.m4: Likewise.
5412         * m4/getdomainname.m4: Likewise.
5413         * m4/getgroups.m4: Likewise.
5414         * m4/gethostname.m4: Likewise.
5415         * m4/gethrxtime.m4: Likewise.
5416         * m4/getline.m4: Likewise.
5417         * m4/getloadavg.m4: Likewise.
5418         * m4/getndelim2.m4: Likewise.
5419         * m4/getpass.m4: Likewise.
5420         * m4/gettext.m4: Likewise.
5421         * m4/gettime.m4: Likewise.
5422         * m4/gettimeofday.m4: Likewise.
5423         * m4/gnulib-common.m4: Likewise.
5424         * m4/group-member.m4: Likewise.
5425         * m4/host-os.m4: Likewise.
5426         * m4/iconv.m4: Likewise.
5427         * m4/iconv_open.m4: Likewise.
5428         * m4/inet_ntop.m4: Likewise.
5429         * m4/inet_pton.m4: Likewise.
5430         * m4/inline.m4: Likewise.
5431         * m4/intldir.m4: Likewise.
5432         * m4/intlmacosx.m4: Likewise.
5433         * m4/intmax.m4: Likewise.
5434         * m4/intmax_t.m4: Likewise.
5435         * m4/inttypes.m4: Likewise.
5436         * m4/inttypes_h.m4: Likewise.
5437         * m4/inttypes-pri.m4: Likewise.
5438         * m4/isapipe.m4: Likewise.
5439         * m4/isnand.m4: Likewise.
5440         * m4/isnanf.m4: Likewise.
5441         * m4/isnanl.m4: Likewise.
5442         * m4/javacomp.m4: Likewise.
5443         * m4/javaexec.m4: Likewise.
5444         * m4/jm-winsz1.m4: Likewise.
5445         * m4/jm-winsz2.m4: Likewise.
5446         * m4/lchown.m4: Likewise.
5447         * m4/lcmessage.m4: Likewise.
5448         * m4/ldexpl.m4: Likewise.
5449         * m4/lib-ld.m4: Likewise.
5450         * m4/lib-link.m4: Likewise.
5451         * m4/libsigsegv.m4: Likewise.
5452         * m4/link-follow.m4: Likewise.
5453         * m4/localcharset.m4: Likewise.
5454         * m4/locale-fr.m4: Likewise.
5455         * m4/locale-ja.m4: Likewise.
5456         * m4/locale-tr.m4: Likewise.
5457         * m4/locale-zh.m4: Likewise.
5458         * m4/lock.m4: Likewise.
5459         * m4/longlong.m4: Likewise.
5460         * m4/ls-mntd-fs.m4: Likewise.
5461         * m4/lstat.m4: Likewise.
5462         * m4/malloc.m4: Likewise.
5463         * m4/mathl.m4: Likewise.
5464         * m4/mbrtowc.m4: Likewise.
5465         * m4/mbstate_t.m4: Likewise.
5466         * m4/mbswidth.m4: Likewise.
5467         * m4/memchr.m4: Likewise.
5468         * m4/memcmp.m4: Likewise.
5469         * m4/memcpy.m4: Likewise.
5470         * m4/memmem.m4: Likewise.
5471         * m4/memmove.m4: Likewise.
5472         * m4/mempcpy.m4: Likewise.
5473         * m4/memrchr.m4: Likewise.
5474         * m4/memset.m4: Likewise.
5475         * m4/minmax.m4: Likewise.
5476         * m4/mkdir-slash.m4: Likewise.
5477         * m4/mkdtemp.m4: Likewise.
5478         * m4/mktime.m4: Likewise.
5479         * m4/mmap-anon.m4: Likewise.
5480         * m4/mountlist.m4: Likewise.
5481         * m4/nanosleep.m4: Likewise.
5482         * m4/nls.m4: Likewise.
5483         * m4/nocrash.m4: Likewise.
5484         * m4/open.m4: Likewise.
5485         * m4/openat.m4: Likewise.
5486         * m4/openmp.m4: Likewise.
5487         * m4/pathmax.m4: Likewise.
5488         * m4/perl.m4: Likewise.
5489         * m4/physmem.m4: Likewise.
5490         * m4/pipe.m4: Likewise.
5491         * m4/po.m4: Likewise.
5492         * m4/poll.m4: Likewise.
5493         * m4/posixtm.m4: Likewise.
5494         * m4/posixver.m4: Likewise.
5495         * m4/printf-frexp.m4: Likewise.
5496         * m4/printf-frexpl.m4: Likewise.
5497         * m4/printf-posix.m4: Likewise.
5498         * m4/printf-posix-rpl.m4: Likewise.
5499         * m4/printf.m4: Likewise.
5500         * m4/progtest.m4: Likewise.
5501         * m4/putenv.m4: Likewise.
5502         * m4/readline.m4: Likewise.
5503         * m4/readlink.m4: Likewise.
5504         * m4/readutmp.m4: Likewise.
5505         * m4/realloc.m4: Likewise.
5506         * m4/regex.m4: Likewise.
5507         * m4/relocatable.m4: Likewise.
5508         * m4/relocatable-lib.m4: Likewise.
5509         * m4/rename-dest-slash.m4: Likewise.
5510         * m4/rename.m4: Likewise.
5511         * m4/rmdir-errno.m4: Likewise.
5512         * m4/rmdir.m4: Likewise.
5513         * m4/roundf.m4: Likewise.
5514         * m4/roundl.m4: Likewise.
5515         * m4/rpmatch.m4: Likewise.
5516         * m4/save-cwd.m4: Likewise.
5517         * m4/selinux-selinux-h.m4: Likewise.
5518         * m4/setenv.m4: Likewise.
5519         * m4/settime.m4: Likewise.
5520         * m4/sig2str.m4: Likewise.
5521         * m4/sig_atomic_t.m4: Likewise.
5522         * m4/signalblocking.m4: Likewise.
5523         * m4/signbit.m4: Likewise.
5524         * m4/sigpipe.m4: Likewise.
5525         * m4/sockets.m4: Likewise.
5526         * m4/sockpfaf.m4: Likewise.
5527         * m4/st_dm_mode.m4: Likewise.
5528         * m4/stat-time.m4: Likewise.
5529         * m4/stdbool.m4: Likewise.
5530         * m4/stdint.m4: Likewise.
5531         * m4/stdint_h.m4: Likewise.
5532         * m4/stpcpy.m4: Likewise.
5533         * m4/stpncpy.m4: Likewise.
5534         * m4/strcase.m4: Likewise.
5535         * m4/strchrnul.m4: Likewise.
5536         * m4/strcspn.m4: Likewise.
5537         * m4/strdup.m4: Likewise.
5538         * m4/strftime.m4: Likewise.
5539         * m4/strndup.m4: Likewise.
5540         * m4/strnlen.m4: Likewise.
5541         * m4/strpbrk.m4: Likewise.
5542         * m4/strptime.m4: Likewise.
5543         * m4/strsep.m4: Likewise.
5544         * m4/strtod.m4: Likewise.
5545         * m4/strtoimax.m4: Likewise.
5546         * m4/strtok_r.m4: Likewise.
5547         * m4/strtol.m4: Likewise.
5548         * m4/strtoll.m4: Likewise.
5549         * m4/strtoul.m4: Likewise.
5550         * m4/strtoull.m4: Likewise.
5551         * m4/strtoumax.m4: Likewise.
5552         * m4/strverscmp.m4: Likewise.
5553         * m4/threadlib.m4: Likewise.
5554         * m4/timegm.m4: Likewise.
5555         * m4/tm_gmtoff.m4: Likewise.
5556         * m4/tmpdir.m4: Likewise.
5557         * m4/tmpfile.m4: Likewise.
5558         * m4/tzset.m4: Likewise.
5559         * m4/uintmax_t.m4: Likewise.
5560         * m4/unlinkdir.m4: Likewise.
5561         * m4/unlocked-io.m4: Likewise.
5562         * m4/uptime.m4: Likewise.
5563         * m4/userspec.m4: Likewise.
5564         * m4/utimbuf.m4: Likewise.
5565         * m4/utime.m4: Likewise.
5566         * m4/utimes-null.m4: Likewise.
5567         * m4/utimes.m4: Likewise.
5568         * m4/vararrays.m4: Likewise.
5569         * m4/vasnprintf.m4: Likewise.
5570         * m4/vfprintf-posix.m4: Likewise.
5571         * m4/vprintf-posix.m4: Likewise.
5572         * m4/wait-process.m4: Likewise.
5573         * m4/wchar_t.m4: Likewise.
5574         * m4/wint_t.m4: Likewise.
5575         * m4/write-any-file.m4: Likewise.
5576         * m4/yield.m4: Likewise.
5577
5578 2009-01-13  Bruno Haible  <bruno@clisp.org>
5579
5580         Avoid test-copy-file.sh failures when ACL support insufficient.
5581         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
5582         TESTS_ENVIRONMENT.
5583         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
5584         Reported by Jim Meyering.
5585
5586 2009-01-13  Bruno Haible  <bruno@clisp.org>
5587
5588         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
5589         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
5590         * modules/unistdio/u8-printf-parse (Files): Likewise.
5591         * modules/unistdio/u32-printf-parse (Files): Likewise.
5592         * modules/unistdio/ulc-printf-parse (Files): Likewise.
5593
5594 2009-01-13  Simon Josefsson  <simon@josefsson.org>
5595
5596         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
5597         and m4/inttypes_h.m4 too.
5598
5599 2009-01-12  Eric Blake  <ebb9@byu.net>
5600
5601         tests: IRIX 6.2 cc can't compile -0.0 into .data
5602         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
5603         rather than at compile-time.
5604         * tests/test-floorl.c (minus_zero): Likewise.
5605         * tests/test-frexpl.c (minus_zero): Likewise.
5606         * tests/test-isnan.c (minus_zerol): Likewise.
5607         * tests/test-isnanl.h (minus_zero): Likewise.
5608         * tests/test-ldexpl.c (minus_zero): Likewise.
5609         * tests/test-roundl.c (minus_zero): Likewise.
5610         * tests/test-signbit.c (minus_zerol): Likewise.
5611         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
5612         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
5613         * tests/test-truncl.c (minus_zero): Likewise.
5614         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
5615         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
5616         Reported by Tom G. Christensen and Nelson H. F. Beebe.
5617
5618 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
5619
5620         regex: fix glibc bug 9697
5621         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
5622         handling.
5623
5624 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
5625
5626         regex: fix glibc bug 697
5627         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
5628         being NULL also if there are no backreferences.
5629
5630 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
5631
5632         regex: merge glibc changes
5633         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
5634         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
5635         re_string_skip_chars, re_string_reconstruct): Likewise.
5636         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
5637
5638 2009-01-07  Jim Meyering  <meyering@redhat.com>
5639
5640         poll: filter through cppi
5641         * lib/poll.c: Indent cpp directives to reflect nesting.
5642
5643 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
5644
5645         poll: don't return uninitialized
5646         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
5647
5648 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
5649
5650         avoid compile failure on AIX 6.1
5651         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
5652         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
5653
5654 2009-01-04  Jim Meyering  <meyering@redhat.com>
5655
5656         remove duplicate inclusion of <stdio.h>
5657         * tests/test-fprintf-posix.c: Likewise.
5658         * tests/test-printf-posix.c: Likewise.
5659         * tests/test-snprintf-posix.c: Likewise.
5660         * tests/test-sprintf-posix.c: Likewise.
5661         * tests/test-vasprintf-posix.c: Likewise.
5662         * tests/test-vfprintf-posix.c: Likewise.
5663         * tests/test-vprintf-posix.c: Likewise.
5664         * tests/test-vsnprintf-posix.c: Likewise.
5665         * tests/test-vsprintf-posix.c: Likewise.
5666
5667 2009-01-03  Jim Meyering  <meyering@redhat.com>
5668
5669         gnulib-tool: fix sed-based filtering
5670         * gnulib-tool (func_filter_filelist): Remove extra backslash
5671         in sed_fff_filter definition.
5672
5673 2009-01-02  Jim Meyering  <meyering@redhat.com>
5674
5675         strftime: avoid compilation failure on Solaris 2.6
5676         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
5677         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
5678         Don't #define mbrlen or mbsinit, since now they're guaranteed to
5679         be available.  Reported by Tom G. Christensen.  Details in
5680         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
5681
5682 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5683             Bruno Haible  <bruno@clisp.org>
5684
5685         Speed up gnulib-tool by doing more string processing through shell
5686         built-ins.
5687         * gnulib-tool (fast_func_append): New variable.
5688         (func_remove_prefix, func_remove_suffix): New functions.
5689         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
5690         (func_filter_filelist): New function.
5691         (func_get_dependencies): Use func_remove_suffix instead of sed.
5692         (func_get_automake_snippet): Use func_filter_filelist instead of a
5693         subshell and sed invocation.
5694
5695 2009-01-01  Bruno Haible  <bruno@clisp.org>
5696
5697         Fix a security bug.
5698         * gnulib-tool (func_import, import, update): Don't allow the characters
5699         '"', '$', '`', '\' in macro arguments that become part of commands that
5700         are evaluated.
5701
5702 2009-01-01  Bruno Haible  <bruno@clisp.org>
5703
5704         * gnulib-tool (func_reset_sigpipe): Add more comments.
5705
5706 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5707
5708         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
5709         func_emit_tests_Makefile_am, func_import): Abort loops early if we
5710         already know the answer.
5711
5712 2009-01-01  Jim Meyering  <meyering@redhat.com>
5713
5714         * lib/version-etc.c (version_etc_va): Update copyright year.
5715
5716 2008-12-30  Bruno Haible  <bruno@clisp.org>
5717
5718         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
5719         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
5720         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
5721
5722 2008-12-29  Eric Blake  <ebb9@byu.net>
5723
5724         multiarch: avoid autoconf AC_REQUIRE bug
5725         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
5726         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
5727         2.63 and older.
5728         Reported by Bruno Haible, and analyzed in
5729         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
5730
5731 2008-12-29  Bruno Haible  <bruno@clisp.org>
5732
5733         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
5734         files in subdirectories correctly.
5735         Reported by Ralf Wildenhues.
5736
5737 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5738
5739         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
5740         rather than 'join FILE -', for Solaris join.
5741
5742 2008-12-29  Bruno Haible  <bruno@clisp.org>
5743
5744         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
5745         quoting.
5746         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
5747         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
5748         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
5749         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
5750         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
5751         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
5752         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
5753         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
5754         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5755         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
5756         * m4/nls.m4 (AM_NLS): Likewise.
5757         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
5758         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
5759         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
5760         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
5761         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
5762         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5763         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
5764         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
5765         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
5766         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
5767         * m4/xsize.m4 (gl_XSIZE): Likewise.
5768         Suggested by Jim Meyering.
5769
5770 2008-11-17  Bruce Korb  <bkorb@gnu.org>
5771
5772         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
5773         * lib/parse-duration.c: use a switch instead of cascading if's.
5774
5775 2008-12-29  Eric Blake  <ebb9@byu.net>
5776
5777         wchar.h: supply WEOF on Irix 5.3
5778         * lib/wchar.in.h (wint_t): Also supply WEOF.
5779         * lib/wctype.in.h (wint_t): Likewise.
5780         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
5781         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
5782         Reported by Tom G. Christensen.
5783
5784 2008-12-26  Bruno Haible  <bruno@clisp.org>
5785
5786         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
5787         i486, i586, i686.
5788
5789 2008-12-26  Bruno Haible  <bruno@clisp.org>
5790
5791         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
5792
5793 2008-12-26  Bruno Haible  <bruno@clisp.org>
5794
5795         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
5796         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
5797         not __STDC_CONSTANT_MACROS.
5798         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
5799
5800 2008-12-25  Bruno Haible  <bruno@clisp.org>
5801
5802         Add support for universal builds to vasnprintf.
5803         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
5804         universal builds, guess no.
5805         * modules/vasnprintf-posix (Depends-on): Add multiarch.
5806         * modules/vasprintf-posix (Depends-on): Likewise.
5807         * modules/fprintf-posix (Depends-on): Likewise.
5808         * modules/vfprintf-posix (Depends-on): Likewise.
5809         * modules/snprintf-posix (Depends-on): Likewise.
5810         * modules/vsnprintf-posix (Depends-on): Likewise.
5811         * modules/sprintf-posix (Depends-on): Likewise.
5812         * modules/vsprintf-posix (Depends-on): Likewise.
5813         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5814         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5815         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5816         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5817         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5818         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5819         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5820
5821         Add support for universal builds to <inttypes.h>.
5822         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
5823         _SCNu64_PREFIX): In Apple
5824         universal builds, define directly, using _LP64.
5825         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
5826         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
5827         * modules/inttypes (Depends-on): Add multiarch.
5828         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
5829
5830         Add support for universal builds to <stdint.h>.
5831         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
5832         universal builds, define directly, using _LP64.
5833         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
5834         Apple universal builds, don't test for the size and suffix of ptrdiff_t
5835         and size_t.
5836         * modules/stdint (Depends-on): Add multiarch.
5837         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
5838
5839         New module 'multiarch'.
5840         * modules/multiarch: New file.
5841         * m4/multiarch.m4: New file.
5842
5843 2008-12-25  Bruno Haible  <bruno@clisp.org>
5844
5845         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
5846
5847 2008-12-25  Bruno Haible  <bruno@clisp.org>
5848
5849         * modules/btowc (License): Relicense under LGPLv2+.
5850         * modules/mbsinit (License): Likewise.
5851         * modules/mbrtowc (License): Likewise.
5852         * modules/wcrtomb (License): Likewise.
5853         * modules/streq (License): Likewise.
5854         Reported by David Lutterkort <lutter@redhat.com>.
5855
5856 2008-12-23  Bruno Haible  <bruno@clisp.org>
5857
5858         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
5859
5860 2008-12-23  Bruno Haible  <bruno@clisp.org>
5861
5862         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
5863         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
5864         GETADDRINFO_LIB, not in LIBS.
5865         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
5866         * modules/canon-host (Link): Likewise.
5867         * NEWS: Mention the change.
5868         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
5869         GETADDRINFO_LIB.
5870
5871 2008-12-22  Bruno Haible  <bruno@clisp.org>
5872
5873         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
5874         * doc/posix-functions/iswalpha_l.texi: Likewise.
5875         * doc/posix-functions/iswblank_l.texi: Likewise.
5876         * doc/posix-functions/iswcntrl_l.texi: Likewise.
5877         * doc/posix-functions/iswctype_l.texi: Likewise.
5878         * doc/posix-functions/iswdigit_l.texi: Likewise.
5879         * doc/posix-functions/iswgraph_l.texi: Likewise.
5880         * doc/posix-functions/iswlower_l.texi: Likewise.
5881         * doc/posix-functions/iswprint_l.texi: Likewise.
5882         * doc/posix-functions/iswpunct_l.texi: Likewise.
5883         * doc/posix-functions/iswspace_l.texi: Likewise.
5884         * doc/posix-functions/iswupper_l.texi: Likewise.
5885         * doc/posix-functions/iswxdigit_l.texi: Likewise.
5886         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
5887         * doc/posix-functions/open_wmemstream.texi: Likewise.
5888         * doc/posix-functions/swscanf.texi: Likewise.
5889         * doc/posix-functions/towctrans_l.texi: Likewise.
5890         * doc/posix-functions/towlower.texi: Likewise.
5891         * doc/posix-functions/towlower_l.texi: Likewise.
5892         * doc/posix-functions/towupper.texi: Likewise.
5893         * doc/posix-functions/towupper_l.texi: Likewise.
5894         * doc/posix-functions/vfwprintf.texi: Likewise.
5895         * doc/posix-functions/vfwscanf.texi: Likewise.
5896         * doc/posix-functions/vswscanf.texi: Likewise.
5897         * doc/posix-functions/vwprintf.texi: Likewise.
5898         * doc/posix-functions/vwscanf.texi: Likewise.
5899         * doc/posix-functions/wcpcpy.texi: Likewise.
5900         * doc/posix-functions/wcpncpy.texi: Likewise.
5901         * doc/posix-functions/wcscasecmp.texi: Likewise.
5902         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
5903         * doc/posix-functions/wcscoll_l.texi: Likewise.
5904         * doc/posix-functions/wcsdup.texi: Likewise.
5905         * doc/posix-functions/wcsncasecmp.texi: Likewise.
5906         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
5907         * doc/posix-functions/wcsnlen.texi: Likewise.
5908         * doc/posix-functions/wcsnrtombs.texi: Likewise.
5909         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
5910         * doc/posix-functions/wctrans_l.texi: Likewise.
5911         * doc/posix-functions/wctype_l.texi: Likewise.
5912         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
5913         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
5914         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
5915         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
5916         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
5917         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
5918         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
5919         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
5920         * doc/glibc-functions/wcschrnul.texi: Likewise.
5921         * doc/glibc-functions/wcsftime_l.texi: Likewise.
5922         * doc/glibc-functions/wcstod_l.texi: Likewise.
5923         * doc/glibc-functions/wcstof_l.texi: Likewise.
5924         * doc/glibc-functions/wcstol_l.texi: Likewise.
5925         * doc/glibc-functions/wcstold_l.texi: Likewise.
5926         * doc/glibc-functions/wcstoll_l.texi: Likewise.
5927         * doc/glibc-functions/wcstoq.texi: Likewise.
5928         * doc/glibc-functions/wcstoul_l.texi: Likewise.
5929         * doc/glibc-functions/wcstoull_l.texi: Likewise.
5930         * doc/glibc-functions/wcstouq.texi: Likewise.
5931         * doc/glibc-functions/wmempcpy.texi: Likewise.
5932
5933 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
5934             Eric Blake  <ebb9@byu.net>
5935             Paolo Bonzini  <bonzini@gnu.org>
5936             Bruno Haible  <bruno@clisp.org>
5937
5938         Make c-stack work on Haiku.
5939         * lib/c-stack.c (SA_ONSTACK): Define fallback.
5940         (c_stack_action): Use SA_ONSTACK flag.
5941
5942 2008-12-22  Bruno Haible  <bruno@clisp.org>
5943
5944         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
5945
5946 2008-12-22  Bruno Haible  <bruno@clisp.org>
5947
5948         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
5949         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
5950         being overridden.
5951         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
5952         New macros.
5953         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
5954         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
5955         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
5956         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
5957
5958 2008-12-22  Bruno Haible  <bruno@clisp.org>
5959
5960         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
5961         from test code.
5962
5963 2008-12-22  Eric Blake  <ebb9@byu.net>
5964
5965         Avoid gcc warnings on cygwin.
5966         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
5967         Avoid unused variable.
5968         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
5969         Likewise.
5970
5971 2008-12-22  Bruno Haible  <bruno@clisp.org>
5972
5973         Remove HAVE_MBRTOWC conditionals.
5974         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
5975         (mbscasecmp): Assume mbrtowc function.
5976         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
5977         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
5978         * lib/mbschr.c: Include mbuiter.h unconditionally.
5979         (mbschr): Assume mbrtowc function.
5980         * lib/mbscspn.c: Include mbuiter.h unconditionally.
5981         (mbscspn): Assume mbrtowc function.
5982         * lib/mbslen.c: Include mbuiter.h unconditionally.
5983         (mbslen): Assume mbrtowc function.
5984         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
5985         (mbsncasecmp): Assume mbrtowc function.
5986         * lib/mbsnlen.c: Include mbiter.h unconditionally.
5987         (mbsnlen): Assume mbrtowc function.
5988         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
5989         (mbspbrk): Assume mbrtowc function.
5990         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
5991         (mbspcasecmp): Assume mbrtowc function.
5992         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
5993         (mbsrchr): Assume mbrtowc function.
5994         * lib/mbssep.c: Include mbuiter.h unconditionally.
5995         (mbssep): Assume mbrtowc function.
5996         * lib/mbsspn.c: Include mbuiter.h unconditionally.
5997         (mbsspn): Assume mbrtowc function.
5998         * lib/mbsstr.c: Include mbuiter.h unconditionally.
5999         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
6000         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
6001         (mbstok_r): Assume mbrtowc function.
6002         * lib/propername.c: Include mbuiter.h unconditionally.
6003         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
6004         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
6005         (trim2): Assume mbrtowc function.
6006         * lib/mbswidth.c (mbsinit): Remove fallback definition.
6007         (mbsnwidth): Assume mbrtowc function.
6008         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
6009         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
6010         fallback definitions.
6011         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
6012
6013 2008-12-22  Bruno Haible  <bruno@clisp.org>
6014
6015         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
6016
6017 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
6018
6019         * modules/regex: Request emulations for the mb*/wc* functions we need.
6020         * m4/regex.m4: Don't look for those functions here.
6021         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
6022
6023 2008-12-22  Bruno Haible  <bruno@clisp.org>
6024
6025         * modules/fnmatch (Depends-on): Remove duplicated dependency.
6026
6027 2008-12-21  Bruno Haible  <bruno@clisp.org>
6028
6029         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
6030         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
6031         (Include): Remove conditionalization.
6032         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
6033         (Include): Remove conditionalization.
6034         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
6035         (Include): Remove conditionalization.
6036         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
6037         * m4/mbfile.m4 (gl_MBFILE): Likewise.
6038         * NEWS: Mention the change.
6039         Reported by Alan Hourihane <alanh@fairlite.co.uk>
6040         via Sergey Poznyakoff <gray@gnu.org.ua>.
6041
6042 2008-12-21  Bruno Haible  <bruno@clisp.org>
6043
6044         * MODULES.html.sh (Extended multibyte and wide character utilities
6045         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
6046         wcrtomb, wcsrtombs.
6047         (Support for systems lacking POSIX:2008): Add accept, bind, close,
6048         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
6049         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
6050         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
6051
6052 2008-12-21  Bruno Haible  <bruno@clisp.org>
6053
6054         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
6055
6056 2008-12-21  Bruno Haible  <bruno@clisp.org>
6057
6058         * modules/wcsnrtombs-tests: New file.
6059         * tests/test-wcsnrtombs1.sh: New file.
6060         * tests/test-wcsnrtombs2.sh: New file.
6061         * tests/test-wcsnrtombs3.sh: New file.
6062         * tests/test-wcsnrtombs4.sh: New file.
6063         * tests/test-wcsnrtombs.c: New file.
6064
6065         New module 'wcsnrtombs'.
6066         * lib/wchar.in.h (wcsnrtombs): New declaration.
6067         * lib/wcsnrtombs.c: New file.
6068         * lib/wcsrtombs-state.c: New file.
6069         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
6070         (internal_state): Remove variable.
6071         * m4/wcsnrtombs.m4: New file.
6072         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
6073         compilation units.
6074         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
6075         HAVE_WCSNRTOMBS.
6076         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
6077         HAVE_WCSNRTOMBS.
6078         * modules/wcsnrtombs: New file.
6079         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
6080         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
6081
6082 2008-12-21  Bruno Haible  <bruno@clisp.org>
6083
6084         * modules/wcsrtombs-tests: New file.
6085         * tests/test-wcsrtombs1.sh: New file.
6086         * tests/test-wcsrtombs2.sh: New file.
6087         * tests/test-wcsrtombs3.sh: New file.
6088         * tests/test-wcsrtombs4.sh: New file.
6089         * tests/test-wcsrtombs.c: New file.
6090
6091         New module 'wcsrtombs'.
6092         * lib/wchar.in.h (wcsrtombs): New declaration.
6093         * lib/wcsrtombs.c: New file.
6094         * m4/wcsrtombs.m4: New file.
6095         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
6096         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
6097         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
6098         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
6099         * modules/wcsrtombs: New file.
6100         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
6101         bugs.
6102
6103 2008-12-21  Bruno Haible  <bruno@clisp.org>
6104
6105         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
6106         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
6107         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
6108         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
6109         if not correct.
6110         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
6111         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
6112         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
6113         m4/locale-zh.m4, m4/codeset.m4.
6114         * doc/posix-functions/wcrtomb.texi: Document the bug.
6115
6116 2008-12-21  Bruno Haible  <bruno@clisp.org>
6117
6118         Work around a btowc() bug on IRIX 6.5.
6119         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
6120         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
6121         REPLACE_WTOBC if not.
6122         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
6123         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
6124         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
6125
6126 2008-12-21  Bruno Haible  <bruno@clisp.org>
6127
6128         * modules/wcrtomb-tests: New file.
6129         * tests/test-wcrtomb.sh: New file.
6130         * tests/test-wcrtomb.c: New file.
6131
6132         New module 'wcrtomb'.
6133         * lib/wchar.in.h (wcrtomb): New declaration.
6134         * lib/wcrtomb.c: New file.
6135         * m4/wcrtomb.m4: New file.
6136         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
6137         HAVE_WCRTOMB.
6138         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
6139         HAVE_WCRTOMB.
6140         * modules/wcrtomb: New file.
6141         * doc/posix-functions/wcrtomb.texi: Mention the new module.
6142
6143 2008-12-21  Bruno Haible  <bruno@clisp.org>
6144
6145         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
6146         * modules/mbsrtowcs (Files): Likewise.
6147         * modules/wctob (Files): Likewise.
6148         * modules/c-strcase-tests (Files): Likewise.
6149         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
6150         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
6151         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
6152         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
6153         * modules/vasnprintf-posix-tests (Files): Likewise.
6154
6155 2008-12-21  William Pursell  <bill.pursell@gmail.com>
6156
6157         gitlog-to-changelog: pass all command-line arguments to git-log
6158         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
6159         it is sometimes convenient to filter the commits in various ways.
6160         gitlog-to-changelog only allows --since to specify a start date,
6161         but git-log itself supports many other filtering mechanisms.
6162         At the moment, I want to filter by branch name.  Rather than
6163         adding a --branch option to gitlog-to-changelog, it seems more
6164         flexible to simply pass all options directly to git-log and let
6165         git do the work.  Notice that this effectively makes --since a
6166         redundant option for gitlog-to-changelog, but removing it would
6167         require current usage to change since calls would then require
6168         an additional '--'.
6169
6170 2008-12-21  Bruno Haible  <bruno@clisp.org>
6171
6172         * modules/mbsnrtowcs-tests: New file.
6173         * tests/test-mbsnrtowcs1.sh: New file.
6174         * tests/test-mbsnrtowcs2.sh: New file.
6175         * tests/test-mbsnrtowcs3.sh: New file.
6176         * tests/test-mbsnrtowcs4.sh: New file.
6177         * tests/test-mbsnrtowcs.c: New file.
6178
6179         New module 'mbsnrtowcs'.
6180         * lib/wchar.in.h (mbsnrtowcs): New declaration.
6181         * lib/mbsnrtowcs.c: New file.
6182         * lib/mbsrtowcs-state.c: New file.
6183         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
6184         (internal_state): Remove variable.
6185         * m4/mbsnrtowcs.m4: New file.
6186         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
6187         compilation units.
6188         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
6189         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
6190         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
6191         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
6192         * modules/mbsnrtowcs: New file.
6193         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
6194         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
6195         portability problem.
6196
6197 2008-12-21  Bruno Haible  <bruno@clisp.org>
6198
6199         Work around mbsrtowcs bug.
6200         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
6201         (gl_FUNC_MBSRTOWCS): Invoke it.
6202         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
6203         m4/locale-zh.m4.
6204         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
6205
6206 2008-12-21  Bruno Haible  <bruno@clisp.org>
6207
6208         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
6209
6210 2008-12-21  Bruno Haible  <bruno@clisp.org>
6211
6212         Update doc for AIX.
6213         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
6214         16-bit wchar_t type.
6215         * doc/posix-functions/btowc.texi: Likewise.
6216         * doc/posix-functions/fgetwc.texi: Likewise.
6217         * doc/posix-functions/fgetws.texi: Likewise.
6218         * doc/posix-functions/fputwc.texi: Likewise.
6219         * doc/posix-functions/fputws.texi: Likewise.
6220         * doc/posix-functions/fwide.texi: Likewise.
6221         * doc/posix-functions/fwprintf.texi: Likewise.
6222         * doc/posix-functions/fwscanf.texi: Likewise.
6223         * doc/posix-functions/getwchar.texi: Likewise.
6224         * doc/posix-functions/getwc.texi: Likewise.
6225         * doc/posix-functions/iswalnum.texi: Likewise.
6226         * doc/posix-functions/iswalpha.texi: Likewise.
6227         * doc/posix-functions/iswblank.texi: Likewise.
6228         * doc/posix-functions/iswcntrl.texi: Likewise.
6229         * doc/posix-functions/iswctype.texi: Likewise.
6230         * doc/posix-functions/iswdigit.texi: Likewise.
6231         * doc/posix-functions/iswgraph.texi: Likewise.
6232         * doc/posix-functions/iswlower.texi: Likewise.
6233         * doc/posix-functions/iswprint.texi: Likewise.
6234         * doc/posix-functions/iswpunct.texi: Likewise.
6235         * doc/posix-functions/iswspace.texi: Likewise.
6236         * doc/posix-functions/iswupper.texi: Likewise.
6237         * doc/posix-functions/iswxdigit.texi: Likewise.
6238         * doc/posix-functions/mbrtowc.texi: Likewise.
6239         * doc/posix-functions/mbsrtowcs.texi: Likewise.
6240         * doc/posix-functions/mbstowcs.texi: Likewise.
6241         * doc/posix-functions/mbtowc.texi: Likewise.
6242         * doc/posix-functions/putwchar.texi: Likewise.
6243         * doc/posix-functions/putwc.texi: Likewise.
6244         * doc/posix-functions/swprintf.texi: Likewise.
6245         * doc/posix-functions/tolower.texi: Likewise.
6246         * doc/posix-functions/toupper.texi: Likewise.
6247         * doc/posix-functions/towctrans.texi: Likewise.
6248         * doc/posix-functions/ungetwc.texi: Likewise.
6249         * doc/posix-functions/vswprintf.texi: Likewise.
6250         * doc/posix-functions/wcrtomb.texi: Likewise.
6251         * doc/posix-functions/wcscat.texi: Likewise.
6252         * doc/posix-functions/wcschr.texi: Likewise.
6253         * doc/posix-functions/wcscmp.texi: Likewise.
6254         * doc/posix-functions/wcscoll.texi: Likewise.
6255         * doc/posix-functions/wcscpy.texi: Likewise.
6256         * doc/posix-functions/wcscspn.texi: Likewise.
6257         * doc/posix-functions/wcsftime.texi: Likewise.
6258         * doc/posix-functions/wcslen.texi: Likewise.
6259         * doc/posix-functions/wcsncat.texi: Likewise.
6260         * doc/posix-functions/wcsncmp.texi: Likewise.
6261         * doc/posix-functions/wcsncpy.texi: Likewise.
6262         * doc/posix-functions/wcspbrk.texi: Likewise.
6263         * doc/posix-functions/wcsrchr.texi: Likewise.
6264         * doc/posix-functions/wcsrtombs.texi: Likewise.
6265         * doc/posix-functions/wcsspn.texi: Likewise.
6266         * doc/posix-functions/wcsstr.texi: Likewise.
6267         * doc/posix-functions/wcstod.texi: Likewise.
6268         * doc/posix-functions/wcstof.texi: Likewise.
6269         * doc/posix-functions/wcstoimax.texi: Likewise.
6270         * doc/posix-functions/wcstok.texi: Likewise.
6271         * doc/posix-functions/wcstold.texi: Likewise.
6272         * doc/posix-functions/wcstoll.texi: Likewise.
6273         * doc/posix-functions/wcstol.texi: Likewise.
6274         * doc/posix-functions/wcstombs.texi: Likewise.
6275         * doc/posix-functions/wcstoull.texi: Likewise.
6276         * doc/posix-functions/wcstoul.texi: Likewise.
6277         * doc/posix-functions/wcstoumax.texi: Likewise.
6278         * doc/posix-functions/wcswidth.texi: Likewise.
6279         * doc/posix-functions/wcsxfrm.texi: Likewise.
6280         * doc/posix-functions/wctob.texi: Likewise.
6281         * doc/posix-functions/wctomb.texi: Likewise.
6282         * doc/posix-functions/wctrans.texi: Likewise.
6283         * doc/posix-functions/wctype.texi: Likewise.
6284         * doc/posix-functions/wcwidth.texi: Likewise.
6285         * doc/posix-functions/wmemchr.texi: Likewise.
6286         * doc/posix-functions/wmemcmp.texi: Likewise.
6287         * doc/posix-functions/wmemcpy.texi: Likewise.
6288         * doc/posix-functions/wmemmove.texi: Likewise.
6289         * doc/posix-functions/wmemset.texi: Likewise.
6290         * doc/posix-functions/wprintf.texi: Likewise.
6291         * doc/posix-functions/wscanf.texi: Likewise.
6292
6293 2008-12-21  Bruno Haible  <bruno@clisp.org>
6294
6295         Update doc for HP-UX 11.11.
6296         * doc/posix-functions/btowc.texi: Clarify that the function is missing
6297         in HP-UX version 11.00, not in all versions of HP-UX 11.
6298         * doc/posix-functions/fwide.texi: Likewise.
6299         * doc/posix-functions/fwprintf.texi: Likewise.
6300         * doc/posix-functions/fwscanf.texi: Likewise.
6301         * doc/posix-functions/inet_ntop.texi: Likewise.
6302         * doc/posix-functions/inet_pton.texi: Likewise.
6303         * doc/posix-functions/mbrlen.texi: Likewise.
6304         * doc/posix-functions/mbrtowc.texi: Likewise.
6305         * doc/posix-functions/mbsinit.texi: Likewise.
6306         * doc/posix-functions/mbsrtowcs.texi: Likewise.
6307         * doc/posix-functions/swprintf.texi: Likewise.
6308         * doc/posix-functions/swscanf.texi: Likewise.
6309         * doc/posix-functions/towctrans.texi: Likewise.
6310         * doc/posix-functions/vfwprintf.texi: Likewise.
6311         * doc/posix-functions/vswprintf.texi: Likewise.
6312         * doc/posix-functions/vwprintf.texi: Likewise.
6313         * doc/posix-functions/wcrtomb.texi: Likewise.
6314         * doc/posix-functions/wcsrtombs.texi: Likewise.
6315         * doc/posix-functions/wcsstr.texi: Likewise.
6316         * doc/posix-functions/wctob.texi: Likewise.
6317         * doc/posix-functions/wctrans.texi: Likewise.
6318         * doc/posix-functions/wmemchr.texi: Likewise.
6319         * doc/posix-functions/wmemcmp.texi: Likewise.
6320         * doc/posix-functions/wmemcpy.texi: Likewise.
6321         * doc/posix-functions/wmemmove.texi: Likewise.
6322         * doc/posix-functions/wmemset.texi: Likewise.
6323         * doc/posix-functions/wprintf.texi: Likewise.
6324         * doc/posix-functions/wscanf.texi: Likewise.
6325
6326 2008-12-21  Bruno Haible  <bruno@clisp.org>
6327
6328         Work around a portability problem.
6329         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
6330         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
6331
6332 2008-12-20  Bruno Haible  <bruno@clisp.org>
6333
6334         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
6335         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
6336         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
6337         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
6338         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
6339
6340         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
6341         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
6342         set.
6343         (GNULIB_defined_mbstate_t): New macro.
6344         (mbsinit): Redefine if REPLACE_MBSINIT is set.
6345         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
6346         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
6347         reuses the system's mbrtowc function but works around the bugs.
6348         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
6349         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
6350         macros.
6351         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
6352         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
6353         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
6354         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
6355         REPLACE_MBSINIT if mbsinit needs to be overridden.
6356         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
6357         REPLACE_MBSINIT, REPLACE_MBRTOWC.
6358         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
6359         REPLACE_MBSINIT, REPLACE_MBRTOWC.
6360         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
6361         m4/locale-zh.m4.
6362         (Depends): Add mbsinit.
6363         * modules/mbsinit (Depends): Add mbrtowc.
6364         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
6365
6366 2008-12-20  Bruno Haible  <bruno@clisp.org>
6367
6368         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
6369         so that there are no conversion errors on AIX.
6370         * tests/test-mbsrtowcs.c (main): LIkewise.
6371
6372 2008-12-20  Bruno Haible  <bruno@clisp.org>
6373
6374         Work around wctob bug on Solaris <= 9.
6375         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
6376         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
6377         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
6378         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
6379         * modules/wctob (Files): Add m4/locale-fr.m4.
6380         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
6381
6382 2008-12-20  Bruno Haible  <bruno@clisp.org>
6383
6384         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
6385         /dev/null.
6386         * tests/test-select-in.sh: Likewise.
6387         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6388
6389 2008-12-20  Bruno Haible  <bruno@clisp.org>
6390
6391         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
6392         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
6393         Cygwin 1.5.x.
6394
6395 2008-12-20  Bruno Haible  <bruno@clisp.org>
6396
6397         Ensure mbstate_t is defined on HP-UX 11.11.
6398         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
6399         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
6400         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
6401         AC_USE_SYSTEM_EXTENSIONS.
6402         * modules/fnmatch (Depends-on): Add extensions.
6403         * modules/mbrlen (Depends-on): Likewise.
6404         * modules/mbrtowc (Depends-on): Likewise.
6405         * modules/mbsinit (Depends-on): Likewise.
6406         * modules/mbsrtowcs (Depends-on): Likewise.
6407         * modules/mbswidth (Depends-on): Likewise.
6408         * modules/quotearg (Depends-on): Likewise.
6409         * modules/strftime (Depends-on): Likewise.
6410
6411 2008-12-20  Bruno Haible  <bruno@clisp.org>
6412
6413         Ensure wctob is declared on IRIX 6.5.
6414         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
6415         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
6416         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
6417         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
6418         of HAVE_WCTOB.
6419         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
6420         HAVE_WCTOB.
6421         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
6422
6423 2008-12-19  Bruno Haible  <bruno@clisp.org>
6424
6425         * modules/mbsrtowcs-tests: New file.
6426         * tests/test-mbsrtowcs1.sh: New file.
6427         * tests/test-mbsrtowcs2.sh: New file.
6428         * tests/test-mbsrtowcs3.sh: New file.
6429         * tests/test-mbsrtowcs4.sh: New file.
6430         * tests/test-mbsrtowcs.c: New file.
6431
6432         New module 'mbsrtowcs'.
6433         * lib/wchar.in.h (mbsrtowcs): New declaration.
6434         * lib/mbsrtowcs.c: New file.
6435         * m4/mbsrtowcs.m4: New file.
6436         * modules/mbsrtowcs: New file.
6437         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
6438         HAVE_MBSRTOWCS.
6439         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
6440         HAVE_MBSRTOWCS.
6441         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
6442
6443 2008-12-19  Bruno Haible  <bruno@clisp.org>
6444
6445         New module 'mbrlen'.
6446         * lib/wchar.in.h (mbrlen): New declaration.
6447         * lib/mbrlen.c: New file.
6448         * m4/mbrlen.m4: New file.
6449         * modules/mbrlen: New file.
6450         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
6451         HAVE_MBRLEN.
6452         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
6453         HAVE_MBRLEN.
6454         * doc/posix-functions/mbrlen.texi: Document the new module.
6455
6456 2008-12-19  Bruno Haible  <bruno@clisp.org>
6457
6458         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
6459         * modules/mbrtowc (Depends-on): Add verify.
6460         Suggested by Paul Eggert.
6461
6462 2008-12-18  Bruno Haible  <bruno@clisp.org>
6463
6464         * modules/mbsinit-tests: New file.
6465         * tests/test-mbsinit.sh: New file.
6466         * tests/test-mbsinit.c: New file.
6467
6468 2008-12-18  Bruno Haible  <bruno@clisp.org>
6469
6470         * modules/mbrtowc-tests: New file.
6471         * tests/test-mbrtowc1.sh: New file.
6472         * tests/test-mbrtowc2.sh: New file.
6473         * tests/test-mbrtowc3.sh: New file.
6474         * tests/test-mbrtowc4.sh: New file.
6475         * tests/test-mbrtowc.c: New file.
6476
6477         New module 'mbrtowc'.
6478         * lib/wchar.in.h (mbstate_t): Override when the system does not have
6479         mbsinit and mbrtowc.
6480         (mbrtowc): New declaration.
6481         * lib/mbrtowc.c: New file.
6482         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
6483         * modules/mbrtowc: New file.
6484         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
6485         HAVE_MBRTOWC.
6486         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
6487         HAVE_MBRTOWC.
6488         * doc/posix-functions/mbrtowc.texi: Document the new module.
6489
6490 2008-12-18  Bruno Haible  <bruno@clisp.org>
6491
6492         New module 'wctob'.
6493         * lib/wchar.in.h (wctob): New declaration.
6494         * lib/wctob.c: New file.
6495         * m4/wctob.m4: New file.
6496         * modules/wctob: New file.
6497         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
6498         HAVE_WCTOB.
6499         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
6500         * doc/posix-functions/wctob.texi: Document the new module.
6501
6502 2008-12-18  Bruno Haible  <bruno@clisp.org>
6503
6504         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
6505         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
6506
6507 2008-12-18  Simon Josefsson  <simon@josefsson.org>
6508
6509         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
6510         G. Christensen" <tgc@jupiterrise.com>.
6511
6512         * lib/flock.c: Need to include errno.h.  Reported by "Tom
6513         G. Christensen" <tgc@jupiterrise.com>.
6514
6515         * lib/flock.c: Need to include string.h.  Reported by "Tom
6516         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
6517         <ebb9@byu.net>.
6518
6519 2008-12-18  Bruno Haible  <bruno@clisp.org>
6520
6521         * m4/locale-ja.m4: New file, from GNU gettext.
6522
6523 2008-12-17  Bruno Haible  <bruno@clisp.org>
6524
6525         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
6526         Suggested by Eric Blake.
6527
6528 2008-12-17  Bruno Haible  <bruno@clisp.org>
6529
6530         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
6531
6532 2008-12-17  Bruno Haible  <bruno@clisp.org>
6533
6534         * lib/mbsinit.c: Include verify.h. Verify an assumption.
6535         * modules/mbsinit (Depends-on): Add verify.
6536         Suggested by Paul Eggert.
6537
6538 2008-12-17  Bruno Haible  <bruno@clisp.org>
6539
6540         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
6541         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
6542         gl_FUNC_MBRTOWC.
6543         * m4/mbiter.m4 (gl_MBITER): LIkewise.
6544         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
6545         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
6546         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
6547         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
6548         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
6549         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
6550         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
6551         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
6552         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
6553         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
6554         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
6555         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
6556         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
6557         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
6558         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
6559         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
6560         * modules/trim (configure.ac): Likewise.
6561
6562 2008-12-17  Bruno Haible  <bruno@clisp.org>
6563
6564         * modules/btowc-tests: New file.
6565         * tests/test-btowc1.sh: New file.
6566         * tests/test-btowc2.sh: New file.
6567         * tests/test-btowc.c: New file.
6568
6569         New module 'btowc'.
6570         * lib/wchar.in.h (btowc): New declaration.
6571         * lib/btowc.c: New file.
6572         * m4/btowc.m4: New file.
6573         * modules/btowc: New file.
6574         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
6575         HAVE_BTOWC.
6576         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
6577         * doc/posix-functions/btowc.texi: Document the new module.
6578
6579 2008-12-17  Bruno Haible  <bruno@clisp.org>
6580
6581         New module 'mbsinit'.
6582         * lib/wchar.in.h (mbsinit): New declaration.
6583         * lib/mbsinit.c: New file.
6584         * m4/mbsinit.m4: New file.
6585         * modules/mbsinit: New file.
6586         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
6587         HAVE_MBSINIT.
6588         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
6589         HAVE_MBSINIT.
6590         * doc/posix-functions/mbsinit.texi: Document the new module.
6591
6592 2008-12-16  Bruno Haible  <bruno@clisp.org>
6593
6594         * lib/unistd.in.h: Add comment.
6595         * tests/test-environ.c: Don't include <stdlib.h>.
6596
6597 2008-12-16  Bruno Haible  <bruno@clisp.org>
6598
6599         * lib/parse-duration.h (parse_duration): Document return value
6600         convention.
6601         * lib/parse-duration.c: Include specification header first. Add
6602         comments.
6603         (_): Remove macro.
6604         (parse_year_month_day, parse_hour_minute_second): Move side effects
6605         outside of strchr call.
6606         (parse_non_iso8601): Move side effects outside of isspace call.
6607         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
6608         call.
6609
6610 2008-12-16  Bruno Haible  <bruno@clisp.org>
6611
6612         * tests/test-parse-duration.sh: Produce no output when the test
6613         succeeds.
6614
6615 2008-12-16  Bruno Haible  <bruno@clisp.org>
6616
6617         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
6618         expressions.
6619
6620 2008-12-15  Bruno Haible  <bruno@clisp.org>
6621
6622         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
6623         * doc/glibc-functions/flistxattr.texi: Likewise.
6624         * doc/glibc-functions/fopencookie.texi: Likewise.
6625         * doc/glibc-functions/fremovexattr.texi: Likewise.
6626         * doc/glibc-functions/fsetxattr.texi: Likewise.
6627         * doc/glibc-functions/getxattr.texi: Likewise.
6628         * doc/glibc-functions/lgetxattr.texi: Likewise.
6629         * doc/glibc-functions/listxattr.texi: Likewise.
6630         * doc/glibc-functions/llistxattr.texi: Likewise.
6631         * doc/glibc-functions/lremovexattr.texi: Likewise.
6632         * doc/glibc-functions/lsetxattr.texi: Likewise.
6633         * doc/glibc-functions/removexattr.texi: Likewise.
6634         * doc/glibc-functions/setxattr.texi: Likewise.
6635         * doc/posix-functions/open_memstream.texi: Likewise.
6636
6637 2008-12-15  Eric Blake  <ebb9@byu.net>
6638
6639         Update doc for cygwin 1.7.
6640         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
6641         functions.
6642         * doc/posix-functions/fchmodat.texi: Likewise.
6643         * doc/posix-functions/fchownat.texi: Likewise.
6644         * doc/posix-functions/fdopendir.texi: Likewise.
6645         * doc/posix-functions/fmemopen.texi: Likewise.
6646         * doc/posix-functions/freeaddrinfo.texi: Likewise.
6647         * doc/posix-functions/fstatat.texi: Likewise.
6648         * doc/posix-functions/futimens.texi: Likewise.
6649         * doc/posix-functions/gai_strerror.texi: Likewise.
6650         * doc/posix-functions/getaddrinfo.texi: Likewise.
6651         * doc/posix-functions/getnameinfo.texi: Likewise.
6652         * doc/posix-functions/if_freenameindex.texi: Likewise.
6653         * doc/posix-functions/if_indextoname.texi: Likewise.
6654         * doc/posix-functions/if_nameindex.texi: Likewise.
6655         * doc/posix-functions/if_nametoindex.texi: Likewise.
6656         * doc/posix-functions/insque.texi: Likewise.
6657         * doc/posix-functions/linkat.texi: Likewise.
6658         * doc/posix-functions/llrint.texi: Likewise.
6659         * doc/posix-functions/llrintf.texi: Likewise.
6660         * doc/posix-functions/llrintl.texi: Likewise.
6661         * doc/posix-functions/lockf.texi: Likewise.
6662         * doc/posix-functions/lrintl.texi: Likewise.
6663         * doc/posix-functions/mkdirat.texi: Likewise.
6664         * doc/posix-functions/mkfifoat.texi: Likewise.
6665         * doc/posix-functions/mknodat.texi: Likewise.
6666         * doc/posix-functions/mq_close.texi: Likewise.
6667         * doc/posix-functions/mq_getattr.texi: Likewise.
6668         * doc/posix-functions/mq_notify.texi: Likewise.
6669         * doc/posix-functions/mq_open.texi: Likewise.
6670         * doc/posix-functions/mq_receive.texi: Likewise.
6671         * doc/posix-functions/mq_send.texi: Likewise.
6672         * doc/posix-functions/mq_setattr.texi: Likewise.
6673         * doc/posix-functions/mq_timedreceive.texi: Likewise.
6674         * doc/posix-functions/mq_timedsend.texi: Likewise.
6675         * doc/posix-functions/mq_unlink.texi: Likewise.
6676         * doc/posix-functions/open_memstream.texi: Likewise.
6677         * doc/posix-functions/openat.texi: Likewise.
6678         * doc/posix-functions/posix_fadvise.texi: Likewise.
6679         * doc/posix-functions/posix_fallocate.texi: Likewise.
6680         * doc/posix-functions/posix_madvise.texi: Likewise.
6681         * doc/posix-functions/posix_memalign.texi: Likewise.
6682         * doc/posix-functions/posix_openpt.texi: Likewise.
6683         * doc/posix-functions/readlinkat.texi: Likewise.
6684         * doc/posix-functions/remque.texi: Likewise.
6685         * doc/posix-functions/renameat.texi: Likewise.
6686         * doc/posix-functions/rintl.texi: Likewise.
6687         * doc/posix-functions/sem_unlink.texi: Likewise.
6688         * doc/posix-functions/shm_open.texi: Likewise.
6689         * doc/posix-functions/shm_unlink.texi: Likewise.
6690         * doc/posix-functions/signgam.texi: Likewise.
6691         * doc/posix-functions/sigset.texi: Likewise.
6692         * doc/posix-functions/stpcpy.texi: Likewise.
6693         * doc/posix-functions/stpncpy.texi: Likewise.
6694         * doc/posix-functions/strerror.texi: Likewise.
6695         * doc/posix-functions/strtod.texi: Likewise.
6696         * doc/posix-functions/symlinkat.texi: Likewise.
6697         * doc/posix-functions/unlinkat.texi: Likewise.
6698         * doc/posix-functions/utimensat.texi: Likewise.
6699         * doc/glibc-functions/bindresvport.texi: Likewise.
6700         * doc/glibc-functions/dn_expand.texi: Likewise.
6701         * doc/glibc-functions/exp10.texi: Likewise.
6702         * doc/glibc-functions/exp10f.texi: Likewise.
6703         * doc/glibc-functions/fgetxattr.texi: Likewise.
6704         * doc/glibc-functions/flistxattr.texi: Likewise.
6705         * doc/glibc-functions/fopencookie.texi: Likewise.
6706         * doc/glibc-functions/freeifaddrs.texi: Likewise.
6707         * doc/glibc-functions/fremovexattr.texi: Likewise.
6708         * doc/glibc-functions/fsetxattr.texi: Likewise.
6709         * doc/glibc-functions/getifaddrs.texi: Likewise.
6710         * doc/glibc-functions/getxattr.texi: Likewise.
6711         * doc/glibc-functions/lgetxattr.texi: Likewise.
6712         * doc/glibc-functions/listxattr.texi: Likewise.
6713         * doc/glibc-functions/llistxattr.texi: Likewise.
6714         * doc/glibc-functions/lremovexattr.texi: Likewise.
6715         * doc/glibc-functions/lsetxattr.texi: Likewise.
6716         * doc/glibc-functions/pow10.texi: Likewise.
6717         * doc/glibc-functions/pow10f.texi: Likewise.
6718         * doc/glibc-functions/rcmd_af.texi: Likewise.
6719         * doc/glibc-functions/removexattr.texi: Likewise.
6720         * doc/glibc-functions/res_init.texi: Likewise.
6721         * doc/glibc-functions/res_mkquery.texi: Likewise.
6722         * doc/glibc-functions/res_query.texi: Likewise.
6723         * doc/glibc-functions/res_querydomain.texi: Likewise.
6724         * doc/glibc-functions/res_send.texi: Likewise.
6725         * doc/glibc-functions/rresvport_af.texi: Likewise.
6726         * doc/glibc-functions/setxattr.texi: Likewise.
6727         * doc/glibc-functions/strcasestr.texi: Likewise.
6728
6729 2008-12-15  Bruno Haible  <bruno@clisp.org>
6730
6731         Fix compilation error on OSF/1 4.0.
6732         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
6733         <sys/time.h>, simply delegate to the system header.
6734         Reported by Daniel Richard G. <oss@teragram.com>.
6735
6736 2008-12-15  Bruno Haible  <bruno@clisp.org>
6737
6738         * doc/posix-functions/openat.texi: Mention the 'openat' module.
6739         * doc/posix-functions/fchmodat.texi: Likewise.
6740         * doc/posix-functions/fchownat.texi: Likewise.
6741         * doc/posix-functions/fdopendir.texi: Likewise.
6742         * doc/posix-functions/fstatat.texi: Likewise.
6743         * doc/posix-functions/mkdirat.texi: Likewise.
6744         * doc/posix-functions/unlinkat.texi: Likewise.
6745
6746 2008-12-14  Bruno Haible  <bruno@clisp.org>
6747
6748         Update doc for POSIX:2008.
6749         * doc/posix-functions/faccessat.texi: New file.
6750         * doc/posix-functions/fchmodat.texi: New file.
6751         * doc/posix-functions/fchownat.texi: New file.
6752         * doc/posix-functions/fdopendir.texi: New file.
6753         * doc/posix-functions/fstatat.texi: New file.
6754         * doc/posix-functions/futimens.texi: New file.
6755         * doc/posix-functions/linkat.texi: New file.
6756         * doc/posix-functions/mkdirat.texi: New file.
6757         * doc/posix-functions/mkfifoat.texi: New file.
6758         * doc/posix-functions/mknodat.texi: New file.
6759         * doc/posix-functions/open_wmemstream.texi: New file.
6760         * doc/posix-functions/openat.texi: New file.
6761         * doc/posix-functions/psiginfo.texi: New file.
6762         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
6763         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
6764         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
6765         * doc/posix-functions/readlinkat.texi: New file.
6766         * doc/posix-functions/renameat.texi: New file.
6767         * doc/posix-functions/strerror_l.texi: New file.
6768         * doc/posix-functions/symlinkat.texi: New file.
6769         * doc/posix-functions/unlinkat.texi: New file.
6770         * doc/posix-functions/utimensat.texi: New file.
6771         * doc/gnulib.texi (Function Substitutes): Add these subsections.
6772
6773 2008-12-14  Bruno Haible  <bruno@clisp.org>
6774
6775         Update doc for POSIX:2008.
6776         * doc/posix-functions/alphasort.texi: Renamed from
6777         doc/glibc-functions/alphasort.texi.
6778         * doc/posix-functions/dirfd.texi: Renamed from
6779         doc/glibc-functions/dirfd.texi.
6780         * doc/posix-functions/dprintf.texi: Renamed from
6781         doc/glibc-functions/dprintf.texi.
6782         * doc/posix-functions/duplocale.texi: Renamed from
6783         doc/glibc-functions/duplocale.texi.
6784         * doc/posix-functions/fexecve.texi: Renamed from
6785         doc/glibc-functions/fexecve.texi.
6786         * doc/posix-functions/fmemopen.texi: Renamed from
6787         doc/glibc-functions/fmemopen.texi.
6788         * doc/posix-functions/freelocale.texi: Renamed from
6789         doc/glibc-functions/freelocale.texi.
6790         * doc/posix-functions/getdate_err.texi: Renamed from
6791         doc/glibc-functions/getdate_err.texi.
6792         * doc/posix-functions/isalnum_l.texi: Renamed from
6793         doc/glibc-functions/isalnum_l.texi.
6794         * doc/posix-functions/isalpha_l.texi: Renamed from
6795         doc/glibc-functions/isalpha_l.texi.
6796         * doc/posix-functions/isblank_l.texi: Renamed from
6797         doc/glibc-functions/isblank_l.texi.
6798         * doc/posix-functions/iscntrl_l.texi: Renamed from
6799         doc/glibc-functions/iscntrl_l.texi.
6800         * doc/posix-functions/isdigit_l.texi: Renamed from
6801         doc/glibc-functions/isdigit_l.texi.
6802         * doc/posix-functions/isgraph_l.texi: Renamed from
6803         doc/glibc-functions/isgraph_l.texi.
6804         * doc/posix-functions/islower_l.texi: Renamed from
6805         doc/glibc-functions/islower_l.texi.
6806         * doc/posix-functions/isprint_l.texi: Renamed from
6807         doc/glibc-functions/isprint_l.texi.
6808         * doc/posix-functions/ispunct_l.texi: Renamed from
6809         doc/glibc-functions/ispunct_l.texi.
6810         * doc/posix-functions/isspace_l.texi: Renamed from
6811         doc/glibc-functions/isspace_l.texi.
6812         * doc/posix-functions/isupper_l.texi: Renamed from
6813         doc/glibc-functions/isupper_l.texi.
6814         * doc/posix-functions/iswalnum_l.texi: Renamed from
6815         doc/glibc-functions/iswalnum_l.texi.
6816         * doc/posix-functions/iswalpha_l.texi: Renamed from
6817         doc/glibc-functions/iswalpha_l.texi.
6818         * doc/posix-functions/iswblank_l.texi: Renamed from
6819         doc/glibc-functions/iswblank_l.texi.
6820         * doc/posix-functions/iswcntrl_l.texi: Renamed from
6821         doc/glibc-functions/iswcntrl_l.texi.
6822         * doc/posix-functions/iswctype_l.texi: Renamed from
6823         doc/glibc-functions/iswctype_l.texi.
6824         * doc/posix-functions/iswdigit_l.texi: Renamed from
6825         doc/glibc-functions/iswdigit_l.texi.
6826         * doc/posix-functions/iswgraph_l.texi: Renamed from
6827         doc/glibc-functions/iswgraph_l.texi.
6828         * doc/posix-functions/iswlower_l.texi: Renamed from
6829         doc/glibc-functions/iswlower_l.texi.
6830         * doc/posix-functions/iswprint_l.texi: Renamed from
6831         doc/glibc-functions/iswprint_l.texi.
6832         * doc/posix-functions/iswpunct_l.texi: Renamed from
6833         doc/glibc-functions/iswpunct_l.texi.
6834         * doc/posix-functions/iswspace_l.texi: Renamed from
6835         doc/glibc-functions/iswspace_l.texi.
6836         * doc/posix-functions/iswupper_l.texi: Renamed from
6837         doc/glibc-functions/iswupper_l.texi.
6838         * doc/posix-functions/iswxdigit_l.texi: Renamed from
6839         doc/glibc-functions/iswxdigit_l.texi.
6840         * doc/posix-functions/isxdigit_l.texi: Renamed from
6841         doc/glibc-functions/isxdigit_l.texi.
6842         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
6843         doc/glibc-functions/mbsnrtowcs.texi.
6844         * doc/posix-functions/mkdtemp.texi: Renamed from
6845         doc/glibc-functions/mkdtemp.texi.
6846         * doc/posix-functions/newlocale.texi: Renamed from
6847         doc/glibc-functions/newlocale.texi.
6848         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
6849         doc/glibc-functions/nl_langinfo_l.texi.
6850         * doc/posix-functions/open_memstream.texi: Renamed from
6851         doc/glibc-functions/open_memstream.texi.
6852         * doc/posix-functions/opterr.texi: Renamed from
6853         doc/glibc-functions/opterr.texi.
6854         * doc/posix-functions/optind.texi: Renamed from
6855         doc/glibc-functions/optind.texi.
6856         * doc/posix-functions/optopt.texi: Renamed from
6857         doc/glibc-functions/optopt.texi.
6858         * doc/posix-functions/psignal.texi: Renamed from
6859         doc/glibc-functions/psignal.texi.
6860         * doc/posix-functions/scandir.texi: Renamed from
6861         doc/glibc-functions/scandir.texi.
6862         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
6863         doc/glibc-functions/sched_get_priority_min.texi.
6864         * doc/posix-functions/signgam.texi: Renamed from
6865         doc/glibc-functions/signgam.texi.
6866         * doc/posix-functions/stpcpy.texi: Renamed from
6867         doc/glibc-functions/stpcpy.texi.
6868         * doc/posix-functions/stpncpy.texi: Renamed from
6869         doc/glibc-functions/stpncpy.texi.
6870         * doc/posix-functions/strcasecmp_l.texi: Renamed from
6871         doc/glibc-functions/strcasecmp_l.texi.
6872         * doc/posix-functions/strcoll_l.texi: Renamed from
6873         doc/glibc-functions/strcoll_l.texi.
6874         * doc/posix-functions/strfmon_l.texi: Renamed from
6875         doc/glibc-functions/strfmon_l.texi.
6876         * doc/posix-functions/strftime_l.texi: Renamed from
6877         doc/glibc-functions/strftime_l.texi.
6878         * doc/posix-functions/strncasecmp_l.texi: Renamed from
6879         doc/glibc-functions/strncasecmp_l.texi.
6880         * doc/posix-functions/strndup.texi: Renamed from
6881         doc/glibc-functions/strndup.texi.
6882         * doc/posix-functions/strnlen.texi: Renamed from
6883         doc/glibc-functions/strnlen.texi.
6884         * doc/posix-functions/strsignal.texi: Renamed from
6885         doc/glibc-functions/strsignal.texi.
6886         * doc/posix-functions/strxfrm_l.texi: Renamed from
6887         doc/glibc-functions/strxfrm_l.texi.
6888         * doc/posix-functions/timer_gettime.texi: Renamed from
6889         doc/glibc-functions/timer_gettime.texi.
6890         * doc/posix-functions/tolower_l.texi: Renamed from
6891         doc/glibc-functions/tolower_l.texi.
6892         * doc/posix-functions/toupper_l.texi: Renamed from
6893         doc/glibc-functions/toupper_l.texi.
6894         * doc/posix-functions/towctrans_l.texi: Renamed from
6895         doc/glibc-functions/towctrans_l.texi.
6896         * doc/posix-functions/towlower_l.texi: Renamed from
6897         doc/glibc-functions/towlower_l.texi.
6898         * doc/posix-functions/towupper_l.texi: Renamed from
6899         doc/glibc-functions/towupper_l.texi.
6900         * doc/posix-functions/uselocale.texi: Renamed from
6901         doc/glibc-functions/uselocale.texi.
6902         * doc/posix-functions/vdprintf.texi: Renamed from
6903         doc/glibc-functions/vdprintf.texi.
6904         * doc/posix-functions/wcpcpy.texi:
6905         Renamed from doc/glibc-functions/wcpcpy.texi.
6906         * doc/posix-functions/wcpncpy.texi: Renamed from
6907         doc/glibc-functions/wcpncpy.texi.
6908         * doc/posix-functions/wcscasecmp.texi: Renamed from
6909         doc/glibc-functions/wcscasecmp.texi.
6910         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
6911         doc/glibc-functions/wcscasecmp_l.texi.
6912         * doc/posix-functions/wcscoll_l.texi: Renamed from
6913         doc/glibc-functions/wcscoll_l.texi.
6914         * doc/posix-functions/wcsdup.texi: Renamed from
6915         doc/glibc-functions/wcsdup.texi.
6916         * doc/posix-functions/wcsncasecmp.texi: Renamed from
6917         doc/glibc-functions/wcsncasecmp.texi.
6918         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
6919         doc/glibc-functions/wcsncasecmp_l.texi.
6920         * doc/posix-functions/wcsnlen.texi: Renamed from
6921         doc/glibc-functions/wcsnlen.texi.
6922         * doc/posix-functions/wcsnrtombs.texi: Renamed from
6923         doc/glibc-functions/wcsnrtombs.texi.
6924         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
6925         doc/glibc-functions/wcsxfrm_l.texi.
6926         * doc/posix-functions/wctrans_l.texi: Renamed from
6927         doc/glibc-functions/wctrans_l.texi.
6928         * doc/posix-functions/wctype_l.texi: Renamed from
6929         doc/glibc-functions/wctype_l.texi.
6930         * doc/gnulib.texi (Function Substitutes): Add these subsections.
6931         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
6932         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
6933         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
6934         these subsections.
6935         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
6936         Remove sections.
6937
6938 2008-12-14  Bruno Haible  <bruno@clisp.org>
6939
6940         Update doc for POSIX:2008.
6941         * doc/posix-functions/*.texi: Update URL of POSIX specification.
6942
6943 2008-12-14  Bruno Haible  <bruno@clisp.org>
6944
6945         Update doc for POSIX:2008.
6946         * doc/pastposix-functions/bcmp.texi: Renamed from
6947         doc/posix-functions/bcmp.texi.
6948         * doc/pastposix-functions/bcopy.texi: Renamed from
6949         doc/posix-functions/bcopy.texi.
6950         * doc/pastposix-functions/bsd_signal.texi: Renamed from
6951         doc/posix-functions/bsd_signal.texi.
6952         * doc/pastposix-functions/bzero.texi: Renamed from
6953         doc/posix-functions/bzero.texi.
6954         * doc/pastposix-functions/ecvt.texi: Renamed from
6955         doc/posix-functions/ecvt.texi.
6956         * doc/pastposix-functions/fcvt.texi: Renamed from
6957         doc/posix-functions/fcvt.texi.
6958         * doc/pastposix-functions/ftime.texi: Renamed from
6959         doc/posix-functions/ftime.texi.
6960         * doc/pastposix-functions/gcvt.texi: Renamed from
6961         doc/posix-functions/gcvt.texi.
6962         * doc/pastposix-functions/getcontext.texi: Renamed from
6963         doc/posix-functions/getcontext.texi.
6964         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
6965         doc/posix-functions/gethostbyaddr.texi.
6966         * doc/pastposix-functions/gethostbyname.texi: Renamed from
6967         doc/posix-functions/gethostbyname.texi.
6968         * doc/pastposix-functions/getwd.texi: Renamed from
6969         doc/posix-functions/getwd.texi.
6970         * doc/pastposix-functions/h_errno.texi: Renamed from
6971         doc/posix-functions/h_errno.texi.
6972         * doc/pastposix-functions/index.texi: Renamed from
6973         doc/posix-functions/index.texi.
6974         * doc/pastposix-functions/makecontext.texi: Renamed from
6975         doc/posix-functions/makecontext.texi.
6976         * doc/pastposix-functions/mktemp.texi: Renamed from
6977         doc/posix-functions/mktemp.texi.
6978         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
6979         doc/posix-functions/pthread_attr_getstackaddr.texi.
6980         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
6981         doc/posix-functions/pthread_attr_setstackaddr.texi.
6982         * doc/pastposix-functions/rindex.texi: Renamed from
6983         doc/posix-functions/rindex.texi.
6984         * doc/pastposix-functions/scalb.texi: Renamed from
6985         doc/posix-functions/scalb.texi.
6986         * doc/pastposix-functions/setcontext.texi: Renamed from
6987         doc/posix-functions/setcontext.texi.
6988         * doc/pastposix-functions/swapcontext.texi: Renamed from
6989         doc/posix-functions/swapcontext.texi.
6990         * doc/pastposix-functions/ualarm.texi: Renamed from
6991         doc/posix-functions/ualarm.texi.
6992         * doc/pastposix-functions/usleep.texi: Renamed from
6993         doc/posix-functions/usleep.texi.
6994         * doc/pastposix-functions/vfork.texi: Renamed from
6995         doc/posix-functions/vfork.texi.
6996         * doc/pastposix-functions/wcswcs.texi: Renamed from
6997         doc/posix-functions/wcswcs.texi.
6998         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
6999         (Function Substitutes): Update.
7000
7001 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7002
7003         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
7004         m4/strerror.m4.
7005
7006 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7007             Bruno Haible  <bruno@clisp.org>
7008
7009         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
7010
7011 2008-12-13  Bruno Haible  <bruno@clisp.org>
7012
7013         * modules/strtoull (Depends-on): Remove unistd.
7014
7015 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7016
7017         * modules/strtoull (Depends-on): Add stdlib.
7018
7019 2008-12-11  Simon Josefsson  <simon@josefsson.org>
7020
7021         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
7022
7023 2008-12-10  Jim Meyering  <meyering@redhat.com>
7024
7025         gl_ASSERT: don't say assertions are disabled when they're not
7026         * m4/assert.m4 (gl_ASSERT): Do not make configure report
7027         "checking whether to enable assertions... no", when they are in
7028         fact enabled.  This is solely a bug in the output of configure.
7029         In spite of saying "no", NDEBUG was not defined in that case.
7030         Also, as noted by Eric Blake, leave assertions enabled upon
7031         --enable-assert=INVALID.
7032
7033 2008-12-10  Bruno Haible  <bruno@clisp.org>
7034
7035         Change MODULES.html to refer to POSIX:2008 where possible.
7036         * MODULES.html.sh (POSIX2008_URL): New variable.
7037         (posix_headers): Remove sys/timeb, ucontext.
7038         (posix2001_headers): New variable.
7039         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
7040         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
7041         index, makecontext, mktemp, pthread_attr_getstackaddr,
7042         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
7043         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
7044         (posix2001_functions): New variable.
7045         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
7046         otherwise.
7047
7048 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7049
7050         add missing include to parse-duration.c
7051         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
7052         * modules/parse-duration (Depends-on): Add xalloc.
7053
7054         fix sed script reading maint.mk
7055         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
7056         (syntax-check-rules): Use it.
7057
7058 2008-12-09  Bruno Haible  <bruno@clisp.org>
7059
7060         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
7061         MacOS X 10.4/PowerPC.
7062         Reported by Simon Josefsson.
7063
7064 2008-12-08  Jim Meyering  <meyering@redhat.com>
7065
7066         work around mingw's lack of some S_IF definitions
7067         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
7068         Reported by Simon Josefsson.
7069
7070 2008-12-08  Bruno Haible  <bruno@clisp.org>
7071
7072         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
7073         applied to variables. Needed on MacOS X 10.4/PowerPC.
7074         Reported by Simon Josefsson.
7075
7076 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
7077         and Eric Blake  <ebb9@byu.net>
7078
7079         assert: honor --enable-assert
7080         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
7081         order to honor --enable-assert, rather than treating it as a
7082         synonym for --disable-assert.
7083
7084 2008-12-08  Jim Meyering  <meyering@redhat.com>
7085
7086         * lib/posixtm.c: Remove now-useless declaration of mktime.
7087
7088         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
7089
7090 2008-12-07  Bruno Haible  <bruno@clisp.org>
7091
7092         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
7093         test_once): Mark functions as static.
7094         * tests/test-tls.c (test_tls): Likewise.
7095
7096 2008-12-07  Bruno Haible  <bruno@clisp.org>
7097
7098         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
7099         iconv_register_autodetect.
7100
7101 2008-12-07  Jim Meyering  <meyering@redhat.com>
7102
7103         posixtm.c: avoid a warning
7104         * lib/posixtm.c (posixtime): Don't initialize tm0.
7105         It's no longer needed to placate gcc4's -Wuninitialized,
7106         and the attempt to placate would elicit a new warning.
7107
7108         unicodeio.c: mark unused parameters
7109         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
7110         (fallback_failure_callback): Likewise.
7111
7112 2008-12-07  Bruno Haible  <bruno@clisp.org>
7113
7114         * gnulib-tool (func_create_testdir): When building the tests
7115         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
7116         Reported by Simon Josefsson.
7117
7118 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7119
7120         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
7121
7122 2008-12-06  Bruno Haible  <bruno@clisp.org>
7123
7124         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
7125         Suggested by Eric Blake.
7126
7127 2008-12-06  Bruno Haible  <bruno@clisp.org>
7128
7129         Fix a c-stack test failure on MacOS X.
7130         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
7131         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
7132         handler for SIGBUS as well.
7133         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
7134         install a signal handler for SIGBUS as well.
7135         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
7136
7137 2008-12-06  Bruno Haible  <bruno@clisp.org>
7138
7139         Advocacy documentation.
7140         * doc/gnulib-intro.texi (Benefits): New section.
7141         * doc/gnulib.texi: Update.
7142
7143 2008-12-06  Bruno Haible  <bruno@clisp.org>
7144
7145         Document the 'manywarnings' module.
7146         * doc/manywarnings.texi: New file.
7147         * doc/gnulib.texi: Include it.
7148
7149 2008-12-05  Eric Blake  <ebb9@byu.net>
7150
7151         tests: silence some gcc warnings
7152         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
7153         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
7154         type mismatches.
7155
7156 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7157             Bruno Haible  <bruno@clisp.org>
7158
7159         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
7160
7161 2008-11-29  Jim Meyering  <meyering@redhat.com>
7162
7163         unicodeio.c: mark unused parameters
7164         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
7165         (fallback_failure_callback): Likewise.
7166
7167         fts: fix a thinko
7168         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
7169         (set_stat_type): Return S_IF*-valued "type" directly.
7170         Prompted by James Youngman's spotting a related bug.
7171         Confirmed by further testing through find.
7172
7173         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
7174         * lib/fts.c (D_TYPE): Define.
7175         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
7176         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
7177         (s_ifmt_shift_bits): New function.
7178         (set_stat_type): New function.
7179         (fts_build): When not calling fts_stat, call set_stat_type
7180         to propagate dirent.d_type info to fts_read caller.
7181         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
7182         fts_statp->st_mode type information may be valid.
7183
7184 2008-11-28  Simon Josefsson  <simon@josefsson.org>
7185
7186         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
7187         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
7188         <sds@gnu.org>.
7189
7190 2008-11-20  Bruno Haible  <bruno@clisp.org>
7191
7192         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
7193         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
7194         INCLUDE_NEXT.
7195         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
7196         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
7197         * modules/math (Makefile.am): Substitute
7198         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
7199         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7200
7201 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
7202             Bruno Haible  <bruno@clisp.org>
7203
7204         * lib/stdint.in.h: Define all type macros so that their expansion is
7205         a single typedef'ed token. Fixes a compilation failure in Boost which
7206         does "using ::int8_t;".
7207
7208 2008-11-18  Simon Josefsson  <simon@josefsson.org>
7209
7210         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
7211         gl_MANYWARN_ALL_GCC.
7212         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
7213         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
7214         * modules/manywarnings: New file.
7215         * MODULES.html.sh: Mention manywarnings module.
7216
7217 2008-11-18  Bruno Haible  <bruno@clisp.org>
7218
7219         * doc/gnulib-tool.texi (Unit tests): New section.
7220
7221 2008-11-18  Simon Josefsson  <simon@josefsson.org>
7222
7223         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
7224         paths like 'lib/po/foo.po'.
7225
7226 2008-11-17  Simon Josefsson  <simon@josefsson.org>
7227
7228         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
7229         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
7230
7231 2008-11-17  Simon Josefsson  <simon@josefsson.org>
7232
7233         * m4/warnings.m4: Use CPPFLAGS to really check whether the
7234         parameter works.
7235
7236 2008-11-17  Simon Josefsson  <simon@josefsson.org>
7237
7238         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
7239
7240 2008-11-17  Bruce Korb  <bkorb@gnu.org>
7241
7242         * modules/parse-duration-tests: New file.
7243         * tests/test-parse-duration.sh: New file.
7244         * tests/test-parse-duration.c: New file.
7245
7246         New module 'parse-duration'.
7247         * lib/parse-duration.h: New file.
7248         * lib/parse-duration.c: New file.
7249         * modules/parse-duration: New file.
7250
7251 2008-11-17  Bruno Haible  <bruno@clisp.org>
7252
7253         * tests/test-select-out.sh: Comment out the first pipe test.
7254         Reported by Simon Josefsson.
7255
7256 2008-11-17  Bruno Haible  <bruno@clisp.org>
7257
7258         * modules/getaddrinfo (Depends-on): Add servent, hostent.
7259         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
7260         gl_HOSTENT.
7261
7262 2008-11-17  Bruno Haible  <bruno@clisp.org>
7263
7264         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
7265         -lnetwork and -lnet. Needed for Haiku and BeOS.
7266
7267 2008-11-16  Bruno Haible  <bruno@clisp.org>
7268
7269         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
7270
7271 2008-11-16  Bruno Haible  <bruno@clisp.org>
7272
7273         Avoid test failure on Haiku.
7274         * tests/test-fsync.c: Include <errno.h>.
7275         (main): Don't require that fsync (0) fails.
7276
7277 2008-11-15  Bruno Haible  <bruno@clisp.org>
7278
7279         New module 'hostent'.
7280         * modules/hostent: New file.
7281         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
7282
7283 2008-11-15  Bruno Haible  <bruno@clisp.org>
7284
7285         New module 'servent'.
7286         * modules/servent: New file.
7287         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
7288
7289 2008-11-15  Bruno Haible  <bruno@clisp.org>
7290
7291         Avoid generating same test program with two different rules.
7292         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
7293         test-frexp to test-frexp-nolibm.
7294         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
7295         test-frexpl to test-frexpl-nolibm.
7296
7297 2008-11-15  Bruno Haible  <bruno@clisp.org>
7298
7299         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
7300         $(FREXPL_LIBM).
7301
7302 2008-11-15  Bruno Haible  <bruno@clisp.org>
7303
7304         * lib/netdb.in.h: Activate the definitions also when the system's
7305         <netdb.h> has 'struct addrinfo'.
7306         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
7307         EAI_OVERFLOW or AI_NUMERICSERV.
7308         * doc/posix-headers/netdb.texi: Document the problem.
7309
7310 2008-11-15  Bruno Haible  <bruno@clisp.org>
7311
7312         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
7313
7314         Make the 'sched' module work on platforms where <sched.h> exists but
7315         is incomplete (such as Haiku).
7316         * lib/sched.in.h; Include the system's <sched.h> if it exists.
7317         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
7318         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
7319         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
7320         HAVE_STRUCT_SCHED_PARAM.
7321         * modules/sched (Depends-on): Add include_next.
7322         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
7323         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
7324         * doc/posix-headers/sched.texi: Document the issue.
7325
7326 2008-11-13  Jim Meyering  <meyering@redhat.com>
7327
7328         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
7329         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
7330         test would fail due to the difference in the Report bugs to ...
7331         line.  The expected address is empty, "<>", while the actual
7332         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
7333
7334 2008-11-12  Bruno Haible  <bruno@clisp.org>
7335
7336         lstat: don't compile lstat.c on systems lacking lstat
7337         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
7338         which don't have lstat; this is handled by lib/sys_stat.in.h already.
7339         Reported by Daniel P. Berrange via Jim Meyering.
7340
7341 2008-11-12  Jim Meyering  <meyering@redhat.com>
7342
7343         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
7344
7345 2008-11-12  Simon Josefsson  <simon@josefsson.org>
7346
7347         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
7348         instead.
7349
7350 2008-11-12  Bruno Haible  <bruno@clisp.org>
7351
7352         * lib/unicodeio.c: Include unistr.h.
7353         (utf8_wctomb): Remove function.
7354         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
7355
7356 2008-11-12  Simon Josefsson  <simon@josefsson.org>
7357
7358         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
7359         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
7360         <bruno@clisp.org>.
7361         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
7362
7363 2008-11-12  Simon Josefsson  <simon@josefsson.org>
7364
7365         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
7366         * doc/gnulib.texi: Add section for warnings.
7367
7368 2008-11-11  Bruno Haible  <bruno@clisp.org>
7369
7370         * lib/sockets.h: Add a comment.
7371
7372 2008-11-11  Karl Berry  <karl@gnu.org>
7373
7374         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
7375
7376 2008-11-11  Eric Blake  <ebb9@byu.net>
7377
7378         fdl.texi: avoid git symlinks
7379         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
7380
7381 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
7382
7383         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
7384
7385 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
7386
7387         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
7388         (gl_WARN_ADD): Substitute $2 if literal.
7389
7390 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
7391
7392         * m4/warning.m4: Remove.
7393
7394 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
7395
7396         * m4/warnings.m4: Almost complete rewrite. :-)
7397
7398 2008-11-10  Simon Josefsson  <simon@josefsson.org>
7399
7400         * modules/warnings: New module.
7401         * m4/warnings.m4: New file.
7402         * MODULES.html.sh: Mention warnings module.
7403         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
7404         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7405
7406 2008-11-10  Eric Blake  <ebb9@byu.net>
7407
7408         fdl.texi: make a symlink to the latest version
7409         * doc/standards.texi: Revert today's earlier change.
7410         * doc/fdl-1.2.texi: Rename from old fdl.texi...
7411         * doc/fdl.texi: ...and replace this with a symlink to the newer
7412         fdl-1.3.texi.
7413
7414 2008-11-10  Bruno Haible  <bruno@clisp.org>
7415
7416         * tests/test-select-fd.c (main): Accept the result file name as fourth
7417         argument.
7418         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
7419         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
7420
7421 2008-11-10  Bruno Haible  <bruno@clisp.org>
7422
7423         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
7424         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
7425         as autoconf-substituted macros.
7426         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
7427         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
7428         gl_NETDB_H_DEFAULTS. Set these variables.
7429         * modules/netdb (Makefile.am): Substitute these variables.
7430
7431 2008-11-10  Eric Blake  <ebb9@byu.net>
7432
7433         standards.texi: include correct file for FDL 1.3
7434         * doc/standards.texi (GNU Free Documentation License): Change
7435         include file to pull in FDL 1.3, not 1.2.
7436
7437         fdl.texi: revert accidental change to license
7438         * doc/fdl.texi: This is FDL 1.2, not 1.3.
7439
7440 2008-11-10  Bruno Haible  <bruno@clisp.org>
7441
7442         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
7443         cross-compiling guesses also when the native compile gives no result.
7444
7445 2008-11-10  Bruno Haible  <bruno@clisp.org>
7446
7447         * lib/spawni.c (__spawni): Force variable into the stack.
7448
7449 2008-11-10  Bruno Haible  <bruno@clisp.org>
7450
7451         Add support for Haiku.
7452         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
7453         glibc and BeOS, but also on Haiku.
7454         * lib/fpurge.c (fpurge): Likewise.
7455         * lib/freadable.c (freadable): Likewise.
7456         * lib/freadahead.c (freadahead): Likewise.
7457         * lib/freading.c (freading): Likewise.
7458         * lib/freadptr.c (freadptr): Likewise.
7459         * lib/freadseek.c (freadptrinc): Likewise.
7460         * lib/fseeko.c (rpl_fseeko): Likewise.
7461         * lib/fseterr.c (fseterr): Likewise.
7462         * lib/fwritable.c (fwritable): Likewise.
7463         * lib/fwriting.c (fwriting): Likewise.
7464         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
7465
7466 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
7467
7468         * lib/config.charset: Treat Haiku like BeOS.
7469
7470 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
7471
7472         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
7473         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
7474
7475 2008-11-08  Bruno Haible  <bruno@clisp.org>
7476
7477         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
7478         AC_CACHE_CHECK.
7479
7480 2008-11-08  Bruno Haible  <bruno@clisp.org>
7481
7482         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
7483
7484 2008-11-08  Bruno Haible  <bruno@clisp.org>
7485
7486         * tests/test-select-fd.c: New file.
7487         * tests/test-select-in.sh: New file.
7488         * tests/test-select-out.sh: New file.
7489         * tests/test-select-stdin.c: New file.
7490         * modules/select-tests (Files): Add the new files.
7491         (Depends-on): Add gettimeofday.
7492         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
7493         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
7494         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
7495
7496 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
7497             Bruno Haible  <bruno@clisp.org>
7498
7499         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
7500
7501 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
7502
7503         * build-aux/pmccabe2html: Added support for C++ source files.
7504
7505 2008-11-05  Ben Pfaff  <blp@gnu.org>
7506
7507         Fix lib/close.c build on Windows.
7508         * modules/close (Files): Add lib/w32sock.h.
7509
7510 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
7511
7512         Accept Bison's NEWS format.
7513         * build-aux/announce-gen (print_news_deltas): Tweak
7514         $re_prefix.
7515
7516 2008-11-04  Bruno Haible  <bruno@clisp.org>
7517
7518         * modules/random_r (Maintainer): Add glibc.
7519
7520 2008-11-04  Simon Josefsson  <simon@josefsson.org>
7521
7522         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
7523         by karl@freefriends.org (Karl Berry).
7524         * doc/alloca.texi: Likewise.
7525         * doc/c-ctype.texi: Likewise.
7526         * doc/c-strcase.texi: Likewise.
7527         * doc/c-strcaseeq.texi: Likewise.
7528         * doc/c-strcasestr.texi: Likewise.
7529         * doc/c-strstr.texi: Likewise.
7530         * doc/c-strtod.texi: Likewise.
7531         * doc/c-strtold.texi: Likewise.
7532         * doc/ctime.texi: Likewise.
7533         * doc/error.texi: Likewise.
7534         * doc/fdl.texi: Likewise.
7535         * doc/gcd.texi: Likewise.
7536         * doc/getdate.texi: Likewise.
7537         * doc/gnulib-intro.texi: Likewise.
7538         * doc/gnulib-tool.texi: Likewise.
7539         * doc/gnulib.texi: Likewise.
7540         * doc/inet_ntoa.texi: Likewise.
7541         * doc/maintain.texi: Likewise.
7542         * doc/make-stds.texi: Likewise.
7543         * doc/quote.texi: Likewise.
7544         * doc/regexprops-generic.texi: Likewise.
7545         * doc/standards.texi: Likewise.
7546         * doc/verify.texi: Likewise.
7547         * doc/visibility.texi: Likewise.
7548         * doc/gnulib.texi (GNU Free Documentation License): Include
7549         fdl-1.3.texi instead of fdl.texi.
7550
7551 2008-11-04  Simon Josefsson  <simon@josefsson.org>
7552
7553         * doc/fdl-1.3.texi: New file, from
7554         <http://www.gnu.org/licenses/fdl-1.3.texi>.
7555         * modules/fdl-1.3: Add.
7556         * MODULES.html.sh: Add fdl-1.3.
7557
7558 2008-11-03  Bruno Haible  <bruno@clisp.org>
7559
7560         Make determination of absolute name of header file work with AIX xlc.
7561         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
7562         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
7563         preprocessing.
7564         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
7565         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
7566
7567 2008-11-03  Simon Josefsson  <simon@josefsson.org>
7568
7569         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
7570         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
7571         <ludo@gnu.org>.
7572
7573 2008-11-02  Bruno Haible  <bruno@clisp.org>
7574
7575         Mark 'strpbrk' obsolete.
7576         * modules/strpbrk (Status, Notice): New sections.
7577         * modules/strtok_r (Depends-on): Add strpbrk.
7578
7579 2008-11-02  Bruno Haible  <bruno@clisp.org>
7580
7581         Mark 'strdup' obsolete.
7582         * modules/strdup (Status, Notice): New sections.
7583         * modules/findprog (Depends-on): Add strdup.
7584         * modules/getaddrinfo (Depends-on): Likewise.
7585         * modules/localename (Depends-on): Likewise.
7586         * modules/relocatable-lib (Depends-on): Likewise.
7587         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
7588         * modules/relocatable-prog (Depends-on): Likewise.
7589         * modules/trim (Depends-on): Likewise.
7590         * modules/unictype/gen-ctype (Depends-on): Likewise.
7591         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
7592
7593 2008-11-02  Bruno Haible  <bruno@clisp.org>
7594
7595         Mark 'strcspn' obsolete.
7596         * modules/strcspn (Status, Notice): New sections.
7597
7598 2008-11-02  Bruno Haible  <bruno@clisp.org>
7599
7600         Mark 'rmdir' obsolete.
7601         * modules/rmdir (Status, Notice): New sections.
7602         * modules/clean-temp (Depends-on): Add rmdir.
7603         * modules/openat (Depends-on): Likewise.
7604
7605 2008-11-02  Bruno Haible  <bruno@clisp.org>
7606
7607         Mark 'raise' obsolete.
7608         * modules/raise (Status, Notice): New sections.
7609         (Include): Specify <signal.h>.
7610         * modules/stdio (Depends-on): Add raise.
7611         * modules/write (Depends-on): Likewise.
7612
7613 2008-11-02  Bruno Haible  <bruno@clisp.org>
7614
7615         Mark 'memset' obsolete.
7616         * modules/memset (Status, Notice): New sections.
7617
7618 2008-11-02  Bruno Haible  <bruno@clisp.org>
7619
7620         Mark 'memmove' obsolete.
7621         * modules/memmove (Status, Notice): New sections.
7622         * modules/argp (Depends-on): Add memmove.
7623         * modules/argz (Depends-on): Likewise.
7624         * modules/canonicalize (Depends-on): Likewise.
7625         * modules/canonicalize-lgpl (Depends-on): Likewise.
7626         * modules/fts (Depends-on): Likewise.
7627         * modules/getcwd (Depends-on): Likewise.
7628         * modules/human (Depends-on): Likewise.
7629         * modules/regex (Depends-on): Likewise.
7630         * modules/striconveh (Depends-on): Likewise.
7631         * modules/trim (Depends-on): Likewise.
7632         * modules/unistr/u8-move (Depends-on): Likewise.
7633         * modules/unistr/u16-move (Depends-on): Likewise.
7634         * modules/unistr/u32-move (Depends-on): Likewise.
7635
7636 2008-11-02  Bruno Haible  <bruno@clisp.org>
7637
7638         Mark 'memcpy' obsolete.
7639         * modules/memcpy (Status, Notice): New sections.
7640
7641 2008-11-02  Bruno Haible  <bruno@clisp.org>
7642
7643         Mark 'memcmp' obsolete.
7644         * modules/memcmp (Status, Notice): New sections.
7645         * modules/argmatch (Depends-on): Add memchr.
7646         * modules/backupfile (Depends-on): Likewise.
7647         * modules/c-strcasestr (Depends-on): Likewise.
7648         * modules/crypto/des (Depends-on): Likewise.
7649         * modules/csharpcomp (Depends-on): Likewise.
7650         * modules/fnmatch (Depends-on): Likewise.
7651         * modules/git-merge-changelog (Depends-on): Likewise.
7652         * modules/isnand (Depends-on): Likewise.
7653         * modules/isnand-nolibm (Depends-on): Likewise.
7654         * modules/isnanf (Depends-on): Likewise.
7655         * modules/isnanf-nolibm (Depends-on): Likewise.
7656         * modules/isnanl (Depends-on): Likewise.
7657         * modules/isnanl-nolibm (Depends-on): Likewise.
7658         * modules/mbchar (Depends-on): Likewise.
7659         * modules/memcoll (Depends-on): Likewise.
7660         * modules/quotearg (Depends-on): Likewise.
7661         * modules/regex (Depends-on): Likewise.
7662         * modules/relocatable-prog (Depends-on): Likewise.
7663         * modules/same (Depends-on): Likewise.
7664         * modules/signbit (Depends-on): Likewise.
7665         * modules/strcasestr-simple (Depends-on): Likewise.
7666         * modules/unictype/gen-ctype (Depends-on): Likewise.
7667         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
7668         * modules/uniname/uniname (Depends-on): Likewise.
7669         * modules/unistr/u8-cmp (Depends-on): Likewise.
7670
7671 2008-11-02  Bruno Haible  <bruno@clisp.org>
7672
7673         Mark 'memchr' obsolete.
7674         * modules/memchr (Status, Notice): New sections.
7675         * modules/argp (Depends-on): Add memchr.
7676         * modules/base64 (Depends-on): Likewise.
7677         * modules/c-strcasestr (Depends-on): Likewise.
7678         * modules/chdir-long (Depends-on): Likewise.
7679         * modules/fnmatch (Depends-on): Likewise.
7680         * modules/getsubopt (Depends-on): Likewise.
7681         * modules/git-merge-changelog (Depends-on): Likewise.
7682         * modules/glob (Depends-on): Likewise.
7683         * modules/strcasestr-simple (Depends-on): Likewise.
7684         * modules/strnlen (Depends-on): Likewise.
7685
7686 2008-11-02  Bruno Haible  <bruno@clisp.org>
7687
7688         Mark 'atexit' obsolete.
7689         * modules/atexit (Status, Notice): New sections.
7690         * modules/chdir-long (Depends-on): Add atexit.
7691         * modules/wait-process (Depends-on): Likewise.
7692
7693 2008-11-02  Bruno Haible  <bruno@clisp.org>
7694
7695         * gnulib-tool: New option --with-obsolete.
7696         (func_usage): Document it.
7697         (func_modules_transitive_closure): Drop obsolete dependencies if
7698         incobsolete is not true.
7699         (func_import): Read and save the incobsolete variable to the cache.
7700
7701 2008-11-02  Bruno Haible  <bruno@clisp.org>
7702
7703         * modules/TEMPLATE-EXTENDED: New field 'Status'.
7704         * gnulib-tool: New option --extract-status.
7705         (func_usage): Document it.
7706         (sed_extract_prog): Recognize it.
7707         (func_get_status): New function.
7708
7709 2008-10-30  Simon Josefsson  <simon@josefsson.org>
7710
7711         * modules/sockets (License): Change from LGPL to LGPLv2+.
7712
7713 2008-10-28  Simon Josefsson  <simon@josefsson.org>
7714
7715         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
7716
7717 2008-10-28  Simon Josefsson  <simon@josefsson.org>
7718
7719         * MODULES.html.sh (Support for systems lacking POSIX:2001):
7720         Mention times and sys_times.
7721         * modules/sys_times, modules/sys_times-tests: New modules.
7722         * modules/times, modules/times-tests: Likewise
7723         * m4/sys_times_h.m4: New file.
7724         * lib/sys_times.in.h: Likewise
7725         * lib/times.c: Likewise.
7726         * tests/test-sys_times.c: Likewise.
7727         * tests/test-times.c: Likewise.
7728         * doc/posix-headers/sys_times.texi: Update.
7729         * doc/posix-functions/times.texi: Update.
7730
7731 2008-10-28  Jim Meyering  <meyering@redhat.com>
7732
7733         * modules/tempname (Depends-on): Add lstat.
7734
7735         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
7736
7737 2008-10-28  Simon Josefsson  <simon@josefsson.org>
7738
7739         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
7740         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
7741         using idiom used elsewhere in gnulib.
7742
7743 2008-10-27  Jim Meyering  <meyering@redhat.com>
7744
7745         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
7746
7747 2008-10-27  Simon Josefsson  <simon@josefsson.org>
7748
7749         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
7750         TESTS_ENVIRONMENT, for shell scripts that needs to call built
7751         programs.
7752         * tests/test-argp-2.sh: Use $EXEEXT when needed.
7753
7754 2008-10-27  Simon Josefsson  <simon@josefsson.org>
7755
7756         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
7757
7758 2008-10-27  Bruno Haible  <bruno@clisp.org>
7759
7760         * tests/test-lstat.c: Include <stdio.h>.
7761
7762 2008-10-27  Simon Josefsson  <simon@josefsson.org>
7763
7764         * modules/lstat-tests: New module.
7765         * tests/test-lstat.c: New file.
7766
7767 2008-10-26  Jim Meyering  <meyering@redhat.com>
7768
7769         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
7770
7771 2008-10-26  Simon Josefsson  <simon@josefsson.org>
7772             Bruno Haible  <bruno@clisp.org>
7773
7774         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
7775         * modules/configmake (Include): Add a note that the include must come
7776         after all system headers.
7777         * lib/javaversion.c: Include configmake.h after all other includes.
7778
7779 2008-10-26  Bruno Haible  <bruno@clisp.org>
7780
7781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
7782         HAVE_STRUCT_RANDOM_DATA to 1.
7783         (gl_STDLIB_H): Simplify.
7784
7785 2008-10-26  Simon Josefsson  <simon@josefsson.org>
7786
7787         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
7788         substitute HAVE_STRUCT_RANDOM_DATA.
7789         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
7790         random_data.
7791         * modules/stdlib (Makefile.am): Substitute
7792         HAVE_STRUCT_RANDOM_DATA.
7793
7794 2008-10-26  Simon Josefsson  <simon@josefsson.org>
7795
7796         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
7797         * doc/gnulib-intro.texi (Copyright): Likewise.
7798
7799 2008-10-26  Simon Josefsson  <simon@josefsson.org>
7800
7801         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
7802         findings.
7803
7804 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
7805             Bruno Haible  <bruno@clisp.org>
7806
7807         * lib/unistd.in.h: Include <winsock2.h>.
7808         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
7809         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
7810         Provide dummy declarations.
7811         (gethostname): Override.
7812         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
7813         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
7814         gl_PREREQ_SYS_H_WINSOCK2.
7815         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
7816         * doc/posix-functions/gethostname.texi: More details.
7817
7818 2008-10-25  Bruno Haible  <bruno@clisp.org>
7819
7820         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
7821         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
7822         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
7823
7824         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
7825         here ...
7826         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
7827         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
7828         gl_UNISTD_H_DEFAULTS.
7829
7830 2008-10-25  Eric Blake  <ebb9@byu.net>
7831
7832         signbit: avoid spurious compiler failure
7833         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
7834         declarations inside function.
7835
7836 2008-10-24  Simon Josefsson  <simon@josefsson.org>
7837             Bruno Haible  <bruno@clisp.org>
7838
7839         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
7840         * modules/random_r (Depends-on): Add stdint.
7841
7842 2008-10-24  Bruno Haible  <bruno@clisp.org>
7843
7844         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
7845         Eggert.
7846         * modules/strerror (License): Likewise.
7847
7848 2008-10-24  Jim Meyering  <meyering@redhat.com>
7849
7850         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
7851         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
7852
7853 2008-10-24  Eric Blake  <ebb9@byu.net>
7854
7855         getgroups: fix compilation when getgroups is available
7856         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
7857         but with <config.h> override of getgroups disabled.
7858
7859 2008-10-24  Simon Josefsson  <simon@josefsson.org>
7860
7861         * doc/gnulib.texi (Header files): Add note about C++ problems.
7862         Explained by Bruno Haible <bruno@clisp.org>.
7863
7864 2008-10-23  Bruno Haible  <bruno@clisp.org>
7865
7866         Define a dummy SA_NODEFER macro on Interix.
7867         * lib/signal.in.h (SA_NODEFER): Define fallback.
7868         Reported by Aleksey Cheusov <cheusov@tut.by> via
7869         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
7870
7871 2008-10-23  Bruno Haible  <bruno@clisp.org>
7872
7873         * modules/freadahead (License): Change to LGPLv2+.
7874         Suggested by Simon Josefsson.
7875
7876 2008-10-23  Jim Meyering  <meyering@redhat.com>
7877
7878         random_r: new module
7879         * modules/random_r: New file.
7880         * m4/random_r.m4: New file.
7881         * lib/random_r.c: New file, from glibc.
7882         * modules/random_r-tests: New file.
7883         * tests/test-random_r.c: New file.
7884         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
7885          Declare.
7886         (RAND_MAX): Define.
7887         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
7888         * modules/stdlib: Substitute them, too.
7889         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
7890         * doc/glibc-functions/initstate_r.texi: Mention the new module.
7891         * doc/glibc-functions/random_r.texi: Likewise.
7892         * doc/glibc-functions/setstate_r.texi: Likewise.
7893         * doc/glibc-functions/srandom_r.texi: Likewise.
7894         * config/srclist.txt: Mention it.
7895
7896 2008-10-23  David Lutterkort  <lutter@redhat.com>
7897
7898         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
7899         link requirement
7900
7901 2008-10-23  Jim Meyering  <meyering@redhat.com>
7902
7903         selinux-h: mark parameters of stub functions as intentionally unused
7904         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
7905         * lib/se-context.in.h: Likewise.
7906
7907 2008-10-22  Simon Josefsson  <simon@josefsson.org>
7908
7909         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
7910
7911 2008-10-22  Simon Josefsson  <simon@josefsson.org>
7912
7913         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
7914
7915 2008-10-22  Eric Blake  <ebb9@byu.net>
7916
7917         glthread/thread: avoid compiler warning
7918         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
7919         Add unreachable abort to silence compiler.
7920
7921 2008-10-22  Eric Blake  <ebb9@byu.net>
7922
7923         netdb: also supply struct addrinfo for cygwin 1.5.x
7924         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
7925         older cygwin.
7926         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
7927         cygwin.
7928         * doc/posix-headers/netdb.texi (netdb.h): Document this.
7929
7930 2008-10-22  Bruno Haible  <bruno@clisp.org>
7931
7932         * users.txt: Update entry about pspp.
7933
7934 2008-10-21  Bruno Haible  <bruno@clisp.org>
7935
7936         Simplification.
7937         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
7938         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
7939
7940         Simplification.
7941         * lib/ioctl.c (ioctl): Don't undefine.
7942         * lib/socket.c (socket): Don't undefine.
7943
7944         Remove unused module indicator macros.
7945         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
7946         GNULIB_$1 as a C macro.
7947
7948         * doc/posix-functions/close.texi: Undo last change.
7949         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
7950         Windows platforms.
7951
7952 2008-10-21  Bruno Haible  <bruno@clisp.org>
7953
7954         Add gethostname() declaration to <unistd.h>.
7955         * lib/unistd.in.h (gethostname): New declaration.
7956         * lib/gethostname.c: Include <unistd.h>.
7957         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
7958         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
7959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
7960         and HAVE_GETHOSTNAME.
7961         * modules/gethostname (Depends-on): Add unistd.
7962         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7963         (Include): Specify <unistd.h>.
7964         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
7965         HAVE_GETHOSTNAME.
7966         * tests/test-gethostname.c: Include <unistd.h> first.
7967
7968 2008-10-21  Bruno Haible  <bruno@clisp.org>
7969
7970         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
7971         * modules/select-tests (Depends-on): Likewise.
7972         Reported by Simon Josefsson.
7973
7974 2008-10-21  Simon Josefsson  <simon@josefsson.org>
7975
7976         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
7977         * lib/accept.c: New file, based on winsock.c.
7978         * lib/bind.c: New file, based on winsock.c.
7979         * lib/connect.c: New file, based on winsock.c.
7980         * lib/getpeername.c: New file, based on winsock.c.
7981         * lib/getsockname.c: New file, based on winsock.c.
7982         * lib/getsockopt.c: New file, based on winsock.c.
7983         * lib/ioctl.c: New file, based on winsock.c.
7984         * lib/listen.c: New file, based on winsock.c.
7985         * lib/recv.c: New file, based on winsock.c.
7986         * lib/recvfrom.c: New file, based on winsock.c.
7987         * lib/send.c: New file, based on winsock.c.
7988         * lib/sendto.c: New file, based on winsock.c.
7989         * lib/setsockopt.c: New file, based on winsock.c.
7990         * lib/shutdown.c: New file, based on winsock.c.
7991         * lib/socket.c: New file, based on winsock.c.
7992         * lib/w32sock.h: New file, based on winsock.c.
7993         * lib/winsock.c: Remove file.
7994         * modules/accept: Likewise.
7995         * modules/bind: Likewise.
7996         * modules/connect: Likewise.
7997         * modules/getpeername: Likewise.
7998         * modules/getsockname: Likewise.
7999         * modules/getsockopt: Likewise.
8000         * modules/ioctl: Likewise.
8001         * modules/listen: Likewise.
8002         * modules/recv: Likewise.
8003         * modules/recvfrom: Likewise.
8004         * modules/send: Likewise.
8005         * modules/sendto: Likewise.
8006         * modules/setsockopt: Likewise.
8007         * modules/shutdown: Likewise.
8008         * modules/socket: Use socket.c instead of winsock.c.
8009         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
8010         * doc/posix-functions/accept.texi: Doc fix.
8011         * doc/posix-functions/bind.texi: Doc fix.
8012         * doc/posix-functions/close.texi: Doc fix.
8013         * doc/posix-functions/connect.texi: Doc fix.
8014         * doc/posix-functions/getpeername.texi: Doc fix.
8015         * doc/posix-functions/getsockname.texi: Doc fix.
8016         * doc/posix-functions/getsockopt.texi: Doc fix.
8017         * doc/posix-functions/ioctl.texi: Doc fix.
8018         * doc/posix-functions/listen.texi: Doc fix.
8019         * doc/posix-functions/recv.texi: Doc fix.
8020         * doc/posix-functions/recvfrom.texi: Doc fix.
8021         * doc/posix-functions/send.texi: Doc fix.
8022         * doc/posix-functions/sendto.texi: Doc fix.
8023         * doc/posix-functions/setsockopt.texi: Doc fix.
8024         * doc/posix-functions/shutdown.texi: Doc fix.
8025         * doc/posix-functions/socket.texi: Doc fix.
8026
8027 2008-10-20  Bruno Haible  <bruno@clisp.org>
8028
8029         Take into account the role of SIGABRT_COMPAT on Windows 2008.
8030         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
8031         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
8032         as an alias for SIGABRT.
8033         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
8034         (sigaction): Map it to SIGABRT.
8035         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
8036
8037 2008-10-20  Bruno Haible  <bruno@clisp.org>
8038
8039         * lib/fts.c: Don't include lstat.h.
8040         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
8041
8042         Move the lstat() declaration to <sys/stat.h>.
8043         * lib/lstat.h: Remove file.
8044         * lib/sys_stat.in.h: Add special invocation convention.
8045         (lstat): New declaration.
8046         * lib/lstat.c (orig_lstat): New function.
8047         (rpl_lstat): Use orig_lstat instead of lstat.
8048         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
8049         AC_C_INLINE. Set REPLACE_LSTAT.
8050         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
8051         and REPLACE_LSTAT.
8052         * modules/lstat (Files): Remove lib/lstat.h.
8053         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
8054         (Include): Specify <sys/stat.h> instead of lstat.h.
8055         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
8056         REPLACE_LSTAT.
8057         * NEWS: Mention the change.
8058
8059 2008-10-20  Bruno Haible  <bruno@clisp.org>
8060
8061         * modules/posix_spawn-tests: New file.
8062         * tests/test-posix_spawn3.c: New file.
8063
8064 2008-10-20  Bruno Haible  <bruno@clisp.org>
8065
8066         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
8067         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
8068         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
8069         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
8070         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
8071
8072 2008-10-20  Bruno Haible  <bruno@clisp.org>
8073
8074         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
8075         of posix_spawn on AIX 5.3.
8076
8077 2008-10-20  Bruno Haible  <bruno@clisp.org>
8078
8079         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
8080
8081 2008-10-20  Bruno Haible  <bruno@clisp.org>
8082
8083         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
8084         of AC_LANG_PROGRAM.
8085
8086 2008-10-20  Simon Josefsson  <simon@josefsson.org>
8087
8088         * lib/netdb.in.h: Don't define GNU specific constants until they
8089         are supported or needed.  Reported by Bruno Haible
8090         <bruno@clisp.org>.
8091
8092 2008-10-20  Simon Josefsson  <simon@josefsson.org>
8093
8094         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
8095
8096 2008-10-20  Simon Josefsson  <simon@josefsson.org>
8097
8098         * lib/getaddrinfo.h: Remove file.
8099         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
8100         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
8101         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
8102         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
8103         * modules/netdb: Substitute GNULIB_GETADDRINFO.
8104         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
8105         * tests/test-getaddrinfo.c: Likewise.
8106         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
8107         * NEWS: Mention change.
8108
8109 2008-10-19  Bruno Haible  <bruno@clisp.org>
8110
8111         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
8112
8113 2008-10-19  Bruno Haible  <bruno@clisp.org>
8114
8115         * lib/wait-process.c: Include simply <sys/wait.h>.
8116         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
8117         WIFSTOPPED): Remove fallback definitions.
8118         * modules/wait-process (Depends-on): Add sys_wait.
8119
8120         New module 'sys_wait'.
8121         * modules/sys_wait: New file.
8122         * lib/sys_wait.in.h: New file, partially copied from
8123         lib/wait-process.c.
8124         * m4/sys_wait_h.m4: New file.
8125         * doc/posix-headers/sys_wait.texi: Mention the new module.
8126
8127 2008-10-19  Bruno Haible  <bruno@clisp.org>
8128
8129         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
8130
8131 2008-10-19  Bruno Haible  <bruno@clisp.org>
8132
8133         Assume that waitpid() fills an 'int' status, not a 'union wait'.
8134         * lib/wait-process.c (WAIT_T): Remove type.
8135         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
8136         (wait_subprocess): Update.
8137
8138 2008-10-19  Bruno Haible  <bruno@clisp.org>
8139
8140         New module 'atoll'.
8141         * modules/atoll: New file.
8142         * lib/stdlib.in.h (atoll): New declaration.
8143         * lib/atoll.c: New file, from glibc with modifications.
8144         * m4/atoll.m4: New file.
8145         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
8146         HAVE_ATOLL.
8147         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
8148         * doc/posix-functions/atoll.texi: Mention the new module.
8149
8150 2008-10-19  Bruno Haible  <bruno@clisp.org>
8151
8152         Add strtoull() declaration to <stdlib.h>.
8153         * lib/stdlib.in.h (strtoull): New declaration.
8154         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
8155         Set HAVE_STRTOULL.
8156         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
8157         HAVE_STRTOULL.
8158         * modules/strtoull (Depends-on): Add stdlib.
8159         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
8160         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
8161         HAVE_STRTOULL.
8162
8163 2008-10-19  Bruno Haible  <bruno@clisp.org>
8164
8165         Add strtoll() declaration to <stdlib.h>.
8166         * lib/stdlib.in.h (strtoll): New declaration.
8167         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
8168         Set HAVE_STRTOLL.
8169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
8170         HAVE_STRTOLL.
8171         * modules/strtoll (Depends-on): Add stdlib.
8172         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
8173         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
8174
8175 2008-10-19  Bruno Haible  <bruno@clisp.org>
8176
8177         * modules/bcopy (Depends-on): Add strings.
8178         (Include): Specify <strings.h>.
8179
8180 2008-10-19  Bruno Haible  <bruno@clisp.org>
8181
8182         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
8183
8184 2008-10-19  Bruno Haible  <bruno@clisp.org>
8185
8186         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
8187         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
8188         mingw.
8189
8190 2008-10-19  Bruno Haible  <bruno@clisp.org>
8191
8192         * lib/atanl.c: Don't include isnanl.h.
8193         * lib/cosl.c: Likewise.
8194         * lib/ldexpl.c: Likewise.
8195         * lib/logl.c: Likewise.
8196         * lib/sinl.c: Likewise.
8197         * lib/sqrtl.c: Likewise.
8198         * lib/tanl.c: Likewise.
8199
8200         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
8201         * lib/isnanf.h: Remove file.
8202         * lib/isnand.h: Remove file.
8203         * lib/isnanl.h: Remove file.
8204         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
8205         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
8206         macros.
8207         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
8208         HAVE_ISNANF, don't define it as a C macro.
8209         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
8210         HAVE_ISNAND, don't define it as a C macro.
8211         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
8212         HAVE_ISNANL, don't define it as a C macro.
8213         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
8214         HAVE_ISNAN[FDL].
8215         * modules/isnanf (Files): Remove lib/isnanf.h.
8216         (Depends-on): Add math.
8217         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8218         (Include): Specify <math.h> instead of isnanf.h.
8219         * modules/isnand (Files): Remove lib/isnand.h.
8220         (Depends-on): Add math.
8221         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8222         (Include): Specify <math.h> instead of isnand.h.
8223         * modules/isnanl (Files): Remove lib/isnanl.h.
8224         (Depends-on): Add math.
8225         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8226         (Include): Specify <math.h> instead of isnanl.h.
8227         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
8228         HAVE_ISNAN[FDL].
8229         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
8230         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
8231         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
8232         * NEWS: Mention the change.
8233
8234 2008-10-18  Bruno Haible  <bruno@clisp.org>
8235
8236         Add getusershell(), setusershell(), endusershell() declarations to
8237         <unistd.h>.
8238         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
8239         declarations.
8240         * lib/getusershell.c: Include unistd.h.
8241         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
8242         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
8243         HAVE_GETUSERSHELL.
8244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
8245         and HAVE_GETUSERSHELL.
8246         * modules/getusershell (Depends-on): Add unistd, extensions.
8247         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8248         (Include): Specify <unistd.h>.
8249         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
8250         HAVE_GETUSERSHELL.
8251
8252 2008-10-18  Bruno Haible  <bruno@clisp.org>
8253
8254         Add a getloadavg() declaration to <stdlib.h>.
8255         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
8256         getloadavg declaration.
8257         (getloadavg): New declaration.
8258         * lib/getloadavg.c: Include <stdlib.h> first.
8259         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
8260         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
8261         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
8262         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
8263         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
8264         * modules/getloadavg (Depends-on): Add stdlib, extensions.
8265         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
8266         (Include): Specify <stdlib.h>.
8267         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
8268         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
8269
8270 2008-10-18  Bruno Haible  <bruno@clisp.org>
8271
8272         * lib/dirchownmod.c: Don't include lchmod.h.
8273
8274         Move the lchmod() declaration to <sys/stat.h>.
8275         * lib/lchmod.h: Remove file.
8276         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
8277         (lchmod): New declaration, moved here from lib/lchown.h.
8278         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
8279         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
8280         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
8281         and HAVE_LCHMOD.
8282         * modules/lchmod (Files): Remove lib/lchmod.h.
8283         (Depends-on): Add sys_stat, extensions.
8284         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
8285         (Include): Specify <sys/stat.h> instead of lchmod.h.
8286         * modules/sys_stat (Depends-on): Add link-warning.
8287         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
8288         definition of GL_LINK_WARNING.
8289         * NEWS: Mention the change.
8290
8291 2008-10-18  Bruno Haible  <bruno@clisp.org>
8292
8293         * lib/fchdir.c: Don't include dirfd.h.
8294         * lib/fts.c: Likewise.
8295         * lib/getcwd.c: Likewise.
8296         * lib/glob.c: Likewise.
8297
8298         Move the dirfd() declaration to <dirent.h>.
8299         * lib/dirfd.h: Remove file.
8300         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
8301         (dirfd): New declaration.
8302         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
8303         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
8304         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
8305         HAVE_DECL_DIRFD.
8306         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
8307         HAVE_DECL_DIRFD.
8308         * modules/dirfd (Files): Remove lib/dirfd.h.
8309         (Depends-on): Add dirent, extensions.
8310         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
8311         (Include): Specify <dirent.h> instead of dirfd.h.
8312         * modules/dirent (Depends-on): Add link-warning.
8313         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
8314         definition of GL_LINK_WARNING.
8315         * NEWS: Mention the change.
8316
8317 2008-10-18  Bruno Haible  <bruno@clisp.org>
8318
8319         Move the euidaccess() declaration to <unistd.h>.
8320         * lib/euidaccess.h: Remove file.
8321         * lib/unistd.in.h (euidaccess): New declaration.
8322         * lib/euidaccess.c: Don't include euidaccess.h.
8323         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
8324         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
8325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
8326         and HAVE_EUIDACCESS.
8327         * modules/euidaccess (Files): Remove lib/euidaccess.h.
8328         (Depends-on): Add unistd.
8329         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8330         (Include): Specify <unistd.h> instead of euidaccess.h.
8331         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
8332         HAVE_EUIDACCESS.
8333         * NEWS: Mention the change.
8334
8335 2008-10-18  Bruno Haible  <bruno@clisp.org>
8336
8337         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
8338
8339         Move the getdomainname() declaration to <unistd.h>.
8340         * lib/getdomainname.h: Remove file.
8341         * lib/unistd.in.h (getdomainname): New declaration.
8342         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
8343         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
8344         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
8345         HAVE_GETDOMAINNAME.
8346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8347         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
8348         * modules/getdomainname (Files): Remove lib/getdomainname.h.
8349         (Depends-on): Add unistd, extensions.
8350         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8351         (Includes): Specify <unistd.h> instead of getdomainname.h.
8352         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
8353         HAVE_GETDOMAINNAME.
8354         * NEWS: Mention the change.
8355
8356 2008-10-18  Bruno Haible  <bruno@clisp.org>
8357
8358         * modules/dirent: New file.
8359         * m4/dirent_h.m4: New file.
8360         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
8361         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
8362         * modules/fchdir (Files): Remove lib/dirent.in.h.
8363         (Depends-on): Add dirent.
8364         (Makefile.am): Move rules to modules/dirent.
8365         * doc/posix-headers/dirent.texi: Mention the new module.
8366
8367 2008-10-18  Bruno Haible  <bruno@clisp.org>
8368
8369         Avoid -Wunused-parameter warnings in public gnulib header files.
8370         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
8371         macro.
8372         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
8373
8374 2008-10-18  Bruno Haible  <bruno@clisp.org>
8375
8376         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
8377         * doc/glibc-functions/error.texi: Mention the module 'error'.
8378         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
8379         * doc/glibc-functions/getdomainname.texi: Mention the module
8380         'getdomainname'.
8381         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
8382         * doc/glibc-functions/getpagesize.texi: Mention the module
8383         'getpagesize'.
8384         * doc/glibc-functions/getusershell.texi: Mention the module
8385         'getusershell'.
8386         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
8387         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
8388         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
8389         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
8390         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
8391         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
8392         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
8393         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
8394         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
8395         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
8396         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
8397         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
8398         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
8399         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
8400
8401 2008-10-17  Bruno Haible  <bruno@clisp.org>
8402
8403         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
8404         HP-UX and IRIX, use -0.0L.
8405         * tests/test-ceill.c (minus_zero): Likewise.
8406         * tests/test-floorl.c (minus_zero): Likewise.
8407         * tests/test-frexpl.c (minus_zero): Likewise.
8408         * tests/test-isnan.c (minus_zerol): Likewise.
8409         * tests/test-isnanl.h (minus_zero): Likewise.
8410         * tests/test-ldexpl.c (minus_zero): Likewise.
8411         * tests/test-roundl.c (minus_zero): Likewise.
8412         * tests/test-signbit.c (minus_zerol): Likewise.
8413         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
8414         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
8415         * tests/test-truncl.c (minus_zero): Likewise.
8416         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
8417         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
8418         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
8419         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
8420
8421 2008-10-17  Bruno Haible  <bruno@clisp.org>
8422
8423         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
8424         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
8425         that it gets activated only for gcc >= 3.0.
8426         * lib/dirent.in.h: Likewise.
8427         * lib/errno.in.h: Likewise.
8428         * lib/fcntl.in.h: Likewise.
8429         * lib/float.in.h: Likewise.
8430         * lib/iconv.in.h: Likewise.
8431         * lib/inttypes.in.h: Likewise.
8432         * lib/locale.in.h: Likewise.
8433         * lib/math.in.h: Likewise.
8434         * lib/netdb.in.h: Likewise.
8435         * lib/netinet_in.in.h: Likewise.
8436         * lib/search.in.h: Likewise.
8437         * lib/signal.in.h: Likewise.
8438         * lib/spawn.in.h: Likewise.
8439         * lib/stdarg.in.h: Likewise.
8440         * lib/stdint.in.h: Likewise.
8441         * lib/stdio.in.h: Likewise.
8442         * lib/stdlib.in.h: Likewise.
8443         * lib/string.in.h: Likewise.
8444         * lib/strings.in.h: Likewise.
8445         * lib/sys_file.in.h: Likewise.
8446         * lib/sys_ioctl.in.h: Likewise.
8447         * lib/sys_select.in.h: Likewise.
8448         * lib/sys_socket.in.h: Likewise.
8449         * lib/sys_stat.in.h: Likewise.
8450         * lib/sys_time.in.h: Likewise.
8451         * lib/sysexits.in.h: Likewise.
8452         * lib/time.in.h: Likewise.
8453         * lib/unistd.in.h: Likewise.
8454         * lib/wchar.in.h: Likewise.
8455         * lib/wctype.in.h: Likewise.
8456         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8457
8458 2008-10-17  Jim Meyering  <meyering@redhat.com>
8459
8460         ignore-value: don't depend on inline module
8461         * modules/ignore-value (Depends-on): Remove 'inline'.
8462         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
8463         Suggestion from Bruno Haible.
8464
8465 2008-10-17  Bruno Haible  <bruno@clisp.org>
8466
8467         New implementation of condition variables for Win32.
8468         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
8469         (gl_linked_waitqueue_t): New type.
8470         (gl_cond_t): Use it.
8471         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
8472         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
8473         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
8474         (glthread_cond_init_func, glthread_cond_wait_func,
8475         glthread_cond_timedwait_func, glthread_cond_signal_func,
8476         glthread_cond_broadcast_func, glthread_cond_destroy_func):
8477         Reimplemented on the basis of gl_linked_waitqueue_t.
8478         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
8479         gl_waitqueue_t.
8480         (gl_rwlock_t): Update.
8481         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
8482
8483 2008-10-17  Simon Josefsson  <simon@josefsson.org>
8484
8485         * modules/recvfrom (Depends-on): Add dependency on getpeername.
8486         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
8487
8488 2008-10-17  Jim Meyering  <meyering@redhat.com>
8489
8490         ignore-value: new module
8491         * modules/ignore-value: New file.
8492         * lib/ignore-value.h: New file.
8493         * MODULES.html.sh (Compiler warning management): New section,
8494         just for this module.  More to come.
8495
8496 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8497
8498         open-safer.c: avoid 'signed and unsigned in conditional...' warning
8499         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
8500         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
8501
8502 2008-10-16  Jim Meyering  <meyering@redhat.com>
8503
8504         openat-die.c: avoid 'no previous prototype' warning
8505         * lib/openat-die.c: Include "openat.h".
8506         Reported by Reuben Thomas <rrt@sc3d.org>.
8507
8508 2008-10-16  Simon Josefsson  <simon@josefsson.org>
8509
8510         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
8511         * lib/netdb.in.h: Fix typo.
8512         Reported by Bruno Haible  <bruno@clisp.org>
8513
8514         * lib/netdb.in.h: Include sys/socket.h for platforms without
8515         netdb.h, to get structures like hostent on MinGW.
8516         * modules/netdb (Depends-on): Add sys_socket.
8517
8518 2008-10-15  Simon Josefsson  <simon@josefsson.org>
8519
8520         * modules/netdb, modules/netdb-tests: New file.
8521         * m4/netdb_h.m4: New file.
8522         * lib/netdb.in.h: Add, currently just an empty file pending
8523         definitions.
8524         * tests/test-netdb.c: New file.
8525         * doc/posix-headers/netdb.texi: Mention that we replace it if
8526         needed.
8527         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
8528         netdb.
8529
8530 2008-10-15  Simon Josefsson  <simon@josefsson.org>
8531
8532         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
8533         with code.
8534
8535 2008-10-13  Bruno Haible  <bruno@clisp.org>
8536
8537         * lib/glthread/cond.c (glthread_cond_wait_func,
8538         glthread_cond_timedwait_func): Add a comment.
8539
8540 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
8541
8542         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
8543         * tests/test-select.c: Likewise,
8544
8545 2008-10-13  Bruno Haible  <bruno@clisp.org>
8546
8547         * lib/glthread/cond.c (glthread_cond_wait_func,
8548         glthread_cond_timedwait_func): Fix variable name.
8549         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
8550
8551 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
8552
8553         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
8554         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
8555         struct sockaddr.sa_len.
8556         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
8557
8558 2008-10-13  Simon Josefsson  <simon@josefsson.org>
8559
8560         * build-aux/pmccabe2html: Add css and css_url parameters.
8561
8562 2008-10-12  Bruno Haible  <bruno@clisp.org>
8563
8564         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
8565         calling aclx_get.
8566         Reported by Rainer Tammer <tammer@tammer.net>.
8567
8568 2008-10-12  Bruno Haible  <bruno@clisp.org>
8569
8570         Use msvcrt aware primitives for creation/termination of Win32 threads.
8571         * lib/glthread/thread.c: Include <process.h>.
8572         (glthread_create_func): Use _beginthreadex instead of CreateThread.
8573         (wrapper_func): Update signature.
8574         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
8575
8576 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
8577             Bruno Haible  <bruno@clisp.org>
8578
8579         Provide a Win32 implementation of the 'cond' module.
8580         * lib/glthread/cond.h [USE_WIN32]: New implementation.
8581         * lib/glthread/cond.c (glthread_cond_init_func,
8582         glthread_cond_wait_func, glthread_cond_timedwait_func,
8583         glthread_cond_signal_func, glthread_cond_broadcast_func,
8584         glthread_cond_destroy_func) [USE_WIN32]: New functions.
8585         * modules/cond (Dependencies): Add gettimeofday.
8586
8587 2008-10-11  Bruno Haible  <bruno@clisp.org>
8588
8589         Make sleep work on older versions of mingw.
8590         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
8591         only whether it exists.
8592         * doc/posix-functions/sleep.texi: Mention the problem with older
8593         versions of mingw.
8594
8595 2008-10-11  Bruno Haible  <bruno@clisp.org>
8596
8597         New module 'shutdown'.
8598         * modules/shutdown: New file.
8599         * lib/sys_socket.in.h (shutdown): New declaration.
8600         * lib/winsock.c (shutdown): New function.
8601         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
8602         GNULIB_SHUTDOWN.
8603         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
8604         * doc/posix-functions/shutdown.texi: Document the new module.
8605
8606 2008-10-11  Jim Meyering  <meyering@redhat.com>
8607
8608         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
8609
8610 2008-10-11  Bruno Haible  <bruno@clisp.org>
8611
8612         New module 'fclose'.
8613         * modules/fclose: New file.
8614         * lib/stdio.in.h (fclose): New declaration.
8615         * lib/fclose.c: New file.
8616         * m4/fclose.m4: New file.
8617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
8618         REPLACE_FCLOSE.
8619         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
8620         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
8621         REPLACE_FCLOSE.
8622         * modules/close (Depends-on): fclose.
8623         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
8624
8625 2008-10-11  Bruno Haible  <bruno@clisp.org>
8626
8627         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
8628         set errno and don't call _close.
8629
8630 2008-10-10  Bruno Haible  <bruno@clisp.org>
8631
8632         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
8633         ACL, not afterwards. Fixes test failure on Cygwin.
8634
8635 2008-10-09  Ben Pfaff  <blp@gnu.org>
8636
8637         * build-aux/announce-gen: Fix gnulib version related part of usage
8638         message.  Die with a useful error message if no tarballs are
8639         found.
8640
8641 2008-10-10  Jim Meyering  <meyering@redhat.com>
8642
8643         bootstrap: use git's --depth=N option only if it's supported
8644         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
8645         recognize the --depth option.  Reported by Pádraig Brady.
8646
8647 2008-10-09  Bruno Haible  <bruno@clisp.org>
8648
8649         New module 'ioctl'.
8650         * modules/ioctl: New file.
8651         * lib/sys_socket.in.h (ioctl): Remove declaration.
8652         * lib/winsock.c: Include <sys/ioctl.h>.
8653         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
8654         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
8655         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
8656         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
8657         * doc/posix-functions/ioctl.texi: Mention the new module.
8658
8659 2008-10-09  Bruno Haible  <bruno@clisp.org>
8660
8661         New module 'sys_ioctl'.
8662         * lib/sys_ioctl.in.h: New file.
8663         * m4/sys_ioctl_h.m4: New file.
8664         * modules/sys_ioctl: New file.
8665         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
8666
8667 2008-10-09  Bruno Haible  <bruno@clisp.org>
8668
8669         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
8670         * lib/winsock.c: Include <stdarg.h>.
8671         (rpl_ioctl): Change to second argument 'int' and then varargs.
8672
8673 2008-10-09  Bruno Haible  <bruno@clisp.org>
8674
8675         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
8676         when the sys_socket module is present and the system has <winsock2.h>.
8677
8678 2008-10-09  Bruno Haible  <bruno@clisp.org>
8679
8680         * doc/posix-functions/close.texi: Mention module 'close' instead of
8681         module 'sys_socket'.
8682
8683 2008-10-09  Bruno Haible  <bruno@clisp.org>
8684
8685         * doc/glibc-headers/sys_ioctl.texi: New file.
8686         * doc/gnulib.texi: Include it.
8687
8688 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
8689             Bruno Haible  <bruno@clisp.org>
8690
8691         Combine the two replacements of 'close'.
8692         * lib/sys_socket.in.h (close): Define to a reminder to include
8693         <unistd.h>.
8694         (_gl_close_fd_maybe_socket): New declaration.
8695         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
8696         * lib/winsock.c (close): Remove undefinition.
8697         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
8698         needed for the gnulib module 'close'.
8699         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
8700         define to an error symbol or to a warning, if suitable.
8701         * lib/close.c: Include <sys/socket.h>.
8702         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
8703         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
8704         UNISTD_H_HAVE_WINSOCK2_H.
8705         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
8706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8707         UNISTD_H_HAVE_WINSOCK2_H.
8708         * modules/sys_socket (Files): Add m4/unistd_h.m4.
8709         (configure.ac): Set a module indicator.
8710         (Makefile.am): Substitute GNULIB_CLOSE.
8711         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
8712         * modules/poll-tests (Depends-on): Add close.
8713         * modules/select-tests (Depends-on): Likewise.
8714
8715 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
8716             Bruno Haible  <bruno@clisp.org>
8717
8718         New module 'close'.
8719         * modules/close: New file.
8720         * lib/unistd.in.h (close): Move declaration out of the
8721         FCHDIR_REPLACEMENT scope.
8722         (_gl_unregister_fd): New declaration.
8723         * lib/close.c: New file.
8724         * lib/fchdir.c (rpl_close): Remove function.
8725         * m4/close.m4: New file.
8726         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
8727         close.
8728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
8729         REPLACE_CLOSE.
8730         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
8731         REPLACE_CLOSE.
8732         * modules/fchdir (Depends-on): Add close.
8733
8734 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
8735             Bruno Haible  <bruno@clisp.org>
8736
8737         * lib/fcntl.in.h (open): Simplify conditionals.
8738         (_gl_register_fd): New declaration.
8739         * lib/fchdir.c (rpl_open): Remove function.
8740         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
8741         also.
8742         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
8743         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
8744         open.
8745
8746 2008-10-09  Jim Meyering  <meyering@redhat.com>
8747
8748         GNUmakefile: use the more name-space-friendly "_version"
8749         * top/GNUmakefile (_dummy): Update.
8750         (_version): Rename from "version".
8751
8752 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
8753             Bruno Haible  <bruno@clisp.org>
8754
8755         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
8756         rpl_close.
8757         (_gl_register_fd): New function, extracted from rpl_open.
8758         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
8759         (rpl_open, rpl_opendir): Use _gl_register_fd.
8760
8761 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
8762
8763         Fix organization of 'open' replacement.
8764         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
8765         (gl_FUNC_OPEN): Use it.
8766         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
8767
8768 2008-10-08  Bruno Haible  <bruno@clisp.org>
8769
8770         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
8771
8772 2008-10-08  Simon Josefsson  <simon@josefsson.org>
8773
8774         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
8775         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
8776         listen).
8777
8778 2008-10-08  Eric Blake  <ebb9@byu.net>
8779
8780         GNUmakefile: add 'make version' target
8781         * top/GNUmakefile (_curr-ver): Split version update rules...
8782         (version): ...into a target.
8783
8784 2008-10-07  Bruno Haible  <bruno@clisp.org>
8785
8786         Use a more portable replacement expression for -0.0L.
8787         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
8788         instead of -0.0L. Fix m4 quotation.
8789
8790         * tests/test-signbit.c: Include <float.h>.
8791         (minus_zero): New variable.
8792         (test_signbitl): Use minus_zero instead of -zero.
8793         * modules/signbit-tests (Depends-on): Add float.
8794
8795         * tests/test-ceill.c: Include <float.h>.
8796         (zero): Remove variable.
8797         (minus_zero): New variable.
8798         (main): Use minus_zero instead of -zero.
8799         * modules/ceill-tests (Depends-on): Add float.
8800
8801         * tests/test-floorl.c: Include <float.h>.
8802         (zero): Remove variable.
8803         (minus_zero): New variable.
8804         (main): Use minus_zero instead of -zero.
8805         * modules/floorl-tests (Depends-on): Add float.
8806
8807         * tests/test-roundl.c: Include <float.h>.
8808         (zero): Remove variable.
8809         (minus_zero): New variable.
8810         (main): Use minus_zero instead of -zero.
8811         * modules/roundl-tests (Depends-on): Add float.
8812
8813         * tests/test-truncl.c: Include <float.h>.
8814         (zero): Remove variable.
8815         (minus_zero): New variable.
8816         (main): Use minus_zero instead of -zero.
8817         * modules/truncl-tests (Depends-on): Add float.
8818
8819         * tests/test-frexpl.c (zero): Remove variable.
8820         (minus_zero): New variable.
8821         (main): Use minus_zero instead of -zero.
8822         * modules/frexpl-tests (Depends-on): Add float.
8823
8824         * tests/test-isnan.c (zerol): Remove variable.
8825         (minus_zerol): New variable.
8826         (test_long_double): Use minus_zerol instead of -zerol.
8827         * modules/isnan-tests (Depends-on): Add float.
8828
8829         * tests/test-isnanl.h (zero): Remove variable.
8830         (minus_zero): New variable.
8831         (main): Use minus_zero instead of -zero.
8832         * modules/isnanl-nolibm-tests (Depends-on): Add float.
8833         * modules/isnanl-tests (Depends-on): Add float.
8834
8835         * tests/test-ldexpl.c (zero): Remove variable.
8836         (minus_zero): New variable.
8837         (main): Use minus_zero instead of -zero.
8838         * modules/ldexpl-tests (Depends-on): Add float.
8839
8840         * tests/test-snprintf-posix.h (zerol): Remove variable.
8841         (minus_zerol): New variable.
8842         (test_function): Use minus_zerol instead of -zerol.
8843         * modules/snprintf-posix-tests (Depends-on): Add float.
8844         * modules/vsnprintf-posix-tests (Depends-on): Add float.
8845
8846         * tests/test-sprintf-posix.h (zerol): Remove variable.
8847         (minus_zerol): New variable.
8848         (test_function): Use minus_zerol instead of -zerol.
8849         * modules/sprintf-posix-tests (Depends-on): Add float.
8850         * modules/vsprintf-posix-tests (Depends-on): Add float.
8851
8852         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
8853         (minus_zerol): New variable.
8854         (test_function): Use minus_zerol instead of -zerol.
8855         * modules/vasnprintf-posix-tests (Depends-on): Add float.
8856
8857         * tests/test-vasprintf-posix.c (zerol): Remove variable.
8858         (minus_zerol): New variable.
8859         (test_function): Use minus_zerol instead of -zerol.
8860         * modules/vasprintf-posix-tests (Depends-on): Add float.
8861
8862 2008-10-07  Simon Josefsson  <simon@josefsson.org>
8863
8864         * MODULES.html.sh (Support for building documentation): Mention
8865         pmccabe2html.  Sort entries.
8866
8867         Add pmccabe2html module, from gnupdf.
8868         * build-aux/pmccabe.css: New file.
8869         * build-aux/pmccabe2html: New file.
8870         * m4/pmccabe2html.m4: New file.
8871         * modules/pmccabe2html: New file.
8872
8873 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
8874
8875         flock: new module
8876         * MODULES.html.sh: Add to list of modules.
8877         * lib/flock.c: flock implementation for Windows and Unix systems
8878         which have fcntl.
8879         * doc/glibc-functions/flock.texi: Update documentation.
8880         * lib/sys_file.in.h: <sys/file.h> header file.
8881         * m4/flock.m4: M4 macros.
8882         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
8883         * modules/flock: flock module.
8884         * modules/flock-tests: flock tests module.
8885         * modules/sys_file: sys/file.h module.
8886         * tests/test-flock.c: test suite for flock.
8887
8888 2008-10-06  Jim Meyering  <meyering@redhat.com>
8889
8890         bootstrap: check for LT_INIT more portably still ;-)
8891         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
8892         Spotted by Bruno Haible.
8893
8894 2008-10-06  Eric Blake  <ebb9@byu.net>
8895
8896         test-signbit: avoid tripping Irix cc bug on -0.0L
8897         * tests/test-signbit.c (minus_zerol): Delete, and replace with
8898         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
8899         entire testsuite consistent and avoids an Irix 6.2 bug.
8900
8901 2008-10-05  Bruno Haible  <bruno@clisp.org>
8902             Jim Meyering  <jim@meyering.net>
8903
8904         Add an option for ignoring EPIPE during close_stdout.
8905         * lib/closeout.h: Include <stdbool.h>.
8906         (close_stdout_set_ignore_EPIPE): New declaration.
8907         * lib/closeout.c: Include <stdbool.h>.
8908         (ignore_EPIPE): New variable.
8909         (close_stdout_set_ignore_EPIPE): New function.
8910         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
8911         * lib/close-stream.c (close_stream): Mention the possible EPIPE
8912         failure.
8913         * modules/closeout (Depends-on): Add stdbool.
8914
8915 2008-10-05  Bruno Haible  <bruno@clisp.org>
8916
8917         * modules/accept: New file.
8918         * modules/bind: New file.
8919         * modules/connect: New file.
8920         * modules/getpeername: New file.
8921         * modules/getsockname: New file.
8922         * modules/getsockopt: New file.
8923         * modules/listen: New file.
8924         * modules/recv: New file.
8925         * modules/recvfrom: New file.
8926         * modules/send: New file.
8927         * modules/sendto: New file.
8928         * modules/setsockopt: New file.
8929         * modules/socket: New file.
8930         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
8931         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8932         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
8933         the particular module is requested. Add a link warning when the
8934         particular module is not requested.
8935         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
8936         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
8937         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
8938         the particular module is requested.
8939         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
8940         gl_SYS_SOCKET_H_DEFAULTS): New macros.
8941         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
8942         * modules/sys_socket (Depends-on): Add link-warning.
8943         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
8944         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
8945         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
8946         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
8947         GL_LINK_WARNING.
8948         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
8949         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
8950         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
8951         * doc/posix-functions/getpeername.texi: Mention the new module
8952         'getpeername'.
8953         * doc/posix-functions/getsockname.texi: Mention the new module
8954         'getsockname'.
8955         * doc/posix-functions/getsockopt.texi: Mention the new module
8956         'getsockopt'.
8957         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
8958         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
8959         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
8960         * doc/posix-functions/send.texi: Mention the new module 'send'.
8961         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
8962         * doc/posix-functions/setsockopt.texi: Mention the new module
8963         'setsockopt'.
8964         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
8965         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
8966         listen, connect, accept.
8967         * modules/select-tests (Depends-on): Likewise.
8968
8969 2008-10-05  Bruno Haible  <bruno@clisp.org>
8970
8971         * lib/winsock.c (strerror): Remove unused #undef.
8972         (rpl_close): Remove unused local variable.
8973
8974         * modules/sys_socket (Depends-on); Add errno.
8975
8976 2008-10-05  Bruno Haible  <bruno@clisp.org>
8977
8978         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
8979         (select): Add a link warning when the 'select' module is not used.
8980         * modules/sys_select (Depends-on): Add link-warning.
8981         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
8982         Suggested by Paolo Bonzini.
8983
8984 2008-10-05  Jim Meyering  <meyering@redhat.com>
8985
8986         bootstrap: check for LT_INIT more portably
8987         * build-aux/bootstrap: Avoid using grep -E, since it's not
8988         portable enough.  Suggestion from Bruno Haible.
8989
8990 2008-10-05  Bruno Haible  <bruno@clisp.org>
8991
8992         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
8993         as being fixed by gnulib.
8994
8995 2008-10-05  Bruno Haible  <bruno@clisp.org>
8996
8997         * modules/select-tests: New file, mostly copied from
8998         modules/sys_select-tests.
8999         * tests/test-select.c: New file, mostly copied from
9000         tests/test-sys_select.c.
9001         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
9002         * modules/sys_select-tests (Depends-on): Remove all dependencies.
9003         (Makefile.am): Remove test_sys_select_LDADD.
9004
9005         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
9006         to an undefined symbol, for an error message.
9007         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
9008         (gl_SYS_SELECT_H_DEFAULTS): New macro.
9009         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
9010         winsock-select.c here.
9011         * modules/sys_select (Files): Remove lib/winsock-select.c.
9012         (Depends-on): Remove alloca.
9013         (Makefile.am): Substitute GNULIB_SELECT.
9014         * modules/select: New file.
9015         * doc/posix-functions/select.texi: Update.
9016
9017 2008-10-05  Bruno Haible  <bruno@clisp.org>
9018
9019         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
9020         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
9021         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
9022         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
9023         getdtablesize.
9024         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
9025         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
9026
9027 2008-10-05  Bruno Haible  <bruno@clisp.org>
9028
9029         * modules/getdtablesize-tests: New file.
9030         * tests/test-getdtablesize.c: New file.
9031
9032         New module 'getdtablesize'.
9033         * lib/unistd.in.h (getdtablesize): New declaration.
9034         * lib/getdtablesize.c: New file.
9035         * m4/getdtablesize.m4: New file.
9036         * modules/getdtablesize: New file.
9037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9038         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
9039         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
9040         HAVE_GETDTABLESIZE.
9041         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
9042
9043 2008-10-05  Bruno Haible  <bruno@clisp.org>
9044
9045         * modules/sched (Makefile.am): Fix typo.
9046         Reported by Simon Josefsson.
9047
9048 2008-10-05  Jim Meyering  <meyering@redhat.com>
9049
9050         bootstrap: check for LT_INIT, too
9051         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
9052         are deprecated.  Suggestion from Ralf Wildenhues.
9053
9054 2008-10-05  Bruno Haible  <bruno@clisp.org>
9055
9056         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
9057         overriding them by ours.
9058         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
9059
9060 2008-10-05  Jim Meyering  <meyering@redhat.com>
9061
9062         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
9063         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
9064         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
9065
9066 2008-10-04  Bruno Haible  <bruno@clisp.org>
9067
9068         * modules/dup2 (License): Change to LGPLv2+.
9069         * modules/sleep (License): Likewise.
9070         * modules/perror (License): Likewise.
9071         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
9072         Blake.
9073         * modules/signal (License): Likewise.
9074         * modules/sigprocmask (License): Likewise.
9075         * modules/raise (License): Change to LGPLv2+, with approval by Jim
9076         Meyering.
9077
9078 2008-10-04  Bruno Haible  <bruno@clisp.org>
9079
9080         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
9081         Reported by Rainer Tammer <tammer@tammer.net>.
9082
9083 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
9084             Bruno Haible  <bruno@clisp.org>
9085
9086         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
9087         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
9088         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
9089
9090 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
9091
9092         filevercmp: new module
9093         * lib/filevercmp.h: New function filevercmp comparing version strings.
9094         * lib/filevercmp.c: Implementation of filevercmp function.
9095         * modules/filevercmp: Module metadata.
9096         * tests/test-filevercmp.c: Unit test for new module.
9097         * modules/filevercmp-tests: Unit test metadata.
9098         * MODULES.html.sh: Add filevercmp module.
9099
9100 2008-10-03  Bruno Haible  <bruno@clisp.org>
9101
9102         * lib/c-ctype.h: Add comment.
9103         Reported by Jim Meyering.
9104
9105 2008-10-02  Bruno Haible  <bruno@clisp.org>
9106
9107         * modules/posix_spawn-internal (Depends-on): Add 'open'.
9108
9109 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
9110
9111         * build-aux/bootstrap: Allow renaming bootstrap, and change the
9112         name of bootstrap.conf accordingly.
9113
9114 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
9115
9116         * build-aux/bootstrap: Install git-merge-changelog configuration
9117         items into .gitconfig if needed.
9118
9119 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
9120
9121         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
9122         git repository, and initialize/update it accordingly.
9123
9124 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
9125
9126         * modules/fsync-tests: New file.
9127         * tests/test-fsync.c: New file.
9128
9129         New module 'fsync'.
9130         * lib/fsync.c: New file.
9131         * m4/fsync.m4: New file.
9132         * modules/fsync: New file.
9133         * lib/unistd.in.h (fsync): New declaration.
9134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
9135         GNULIB_FSYNC and HAVE_FSYNC.
9136         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
9137         * MODULES.html.sh (posix_functions): Add fsync.
9138         * doc/posix-functions/fsync.texi: Mention the new module.
9139
9140 2008-10-02  Jim Meyering  <meyering@redhat.com>
9141
9142         fts.c: sync with similar code from coreutils' remove.c
9143         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
9144         Guard also with "#if defined __linux__", since for now at least,
9145         this code is Linux-kernel-specific.
9146
9147 2008-10-02  Jim Meyering  <meyering@redhat.com>
9148
9149         fts: bug fixes
9150         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
9151         Include <sys/vfs.h>, not <sys/statfs.h>.
9152
9153         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
9154         Include <sys/vfs.h>, not <sys/statfs.h>.
9155
9156 2008-10-01  Bruno Haible  <bruno@clisp.org>
9157
9158         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
9159         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
9160         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
9161         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
9162         * doc/posix-functions/posix_spawnp.texi: Likewise.
9163         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
9164         whether posix_spawn actually works.
9165         * m4/pipe.m4 (gl_PIPE): Likewise.
9166         * modules/execute (Files): Add m4/posix_spawn.m4.
9167         * modules/pipe (Files): Add m4/posix_spawn.m4.
9168         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
9169
9170 2008-10-01  Jim Meyering  <meyering@redhat.com>
9171
9172         remove trailing spaces
9173         * NEWS: Likewise.
9174         * lib/poll.c (poll): Likewise.
9175         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
9176         * lib/winsock.c (rpl_close): Likewise.
9177         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
9178         * modules/yield: Likewise.
9179         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
9180         * tests/test-sys_select.c (connect_to_socket): Likewise.
9181
9182         fts.c: adjust a new interface to be more generally useful
9183         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
9184         (fts_build): Adjust caller.
9185
9186 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9187
9188         * modules/cond-tests: New file.
9189         * tests/test-cond.c: New file.
9190
9191 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9192             Bruno Haible  <bruno@clisp.org>
9193
9194         * modules/cond (Dependencies): Add errno, time.
9195         * lib/glthread/cond.h: Include <time.h>.
9196         (gl_cond_define, gl_cond_define_initialized): Use the same definition
9197         across platforms.
9198
9199 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9200             Bruno Haible  <bruno@clisp.org>
9201
9202         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
9203
9204 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9205             Bruno Haible  <bruno@clisp.org>
9206
9207         * modules/tls-tests (Depends-on): Add thread, yield.
9208         (configure.ac): Remove all checks.
9209         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
9210         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
9211         gl_thread_self): Remove definitions. Include glthread/thread.h and
9212         glthread/yield.h instead.
9213         (test_tls): Pass an additional NULL argument to gl_thread_join.
9214
9215 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9216             Bruno Haible  <bruno@clisp.org>
9217
9218         * modules/lock-tests (Depends-on): Add thread, yield.
9219         (configure.ac): Remove all checks.
9220         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
9221         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
9222         gl_thread_self): Remove definitions. Include glthread/thread.h and
9223         glthread/yield.h instead.
9224         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
9225         additional NULL argument to gl_thread_join.
9226
9227 2008-09-30  Bruno Haible  <bruno@clisp.org>
9228
9229         Fix the Win32 implementation of the 'thread' module.
9230         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
9231         pointer type.
9232         (gl_thread_self): Invoke gl_thread_self_func.
9233         (gl_thread_self_func): New declaration.
9234         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
9235         (do_init_self_key, init_self_key): New functions.
9236         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
9237         Remove some fields.
9238         (running_threads, running_lock): Remove variables.
9239         (get_current_thread_handle): New function.
9240         (gl_thread_self_func, wrapper_func, glthread_create_func,
9241         glthread_join_func, gl_thread_exit_func): Largely rewritten and
9242         simplified.
9243
9244 2008-09-30  Bruno Haible  <bruno@clisp.org>
9245
9246         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
9247         files.
9248
9249 2008-09-30  Jim Meyering  <meyering@redhat.com>
9250
9251         fts.m4: correct the test for statfs.f_type
9252         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
9253         when checking for statfs.f_type.
9254
9255 2008-09-15  Simon Josefsson  <simon@josefsson.org>
9256
9257         tests: avoid some compiler warnings
9258         * tests/test-memchr.c (main): Pass NULL indirectly.
9259         * tests/test-getdate.c (main): Remove unused variable 'ret'.
9260
9261 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
9262
9263         getdate.y: disallow countable dayshifts like "4 yesterday ago"
9264         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
9265         exactly specified dayshifts.
9266         (dayshift): New rule.
9267         (rel): Add dayshift.
9268         (relative_time_table) [tomorrow, yesterday, today, now]:
9269         Use tDAY_SHIFT in place of tDAY_UNIT.
9270         * tests/test-getdate.c: Add tests for now-disallowed countable
9271         dayshifts, e.g., "4 yesterday ago".
9272
9273 2008-09-29  Bruno Haible  <bruno@clisp.org>
9274
9275         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
9276         * tests/test-posix_spawn1.in.sh: Renamed from
9277         tests/test-posix_spawn.in.sh.
9278         * tests/test-posix_spawn2.c: New file.
9279         * tests/test-posix_spawn2.in.sh: New file.
9280         * modules/posix_spawnp-tests (Files): Update.
9281         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
9282
9283 2008-09-29  Bruno Haible  <bruno@clisp.org>
9284
9285         Propagate effects of putenv/setenv/unsetenv to child processes.
9286         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
9287         * lib/pipe.c (create_pipe): Likewise.
9288
9289 2008-09-29  Bruno Haible  <bruno@clisp.org>
9290
9291         Enable use of shell scripts as executables in mingw.
9292         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
9293         run the program as a shell script.
9294         * lib/pipe.c (create_pipe): Likewise.
9295         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
9296         resulting array.
9297
9298 2008-09-29  Eric Blake  <ebb9@byu.net>
9299
9300         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
9301
9302 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
9303
9304         * doc/posix-functions/accept.texi: Update mingw problems.
9305         * doc/posix-functions/bind.texi: Update mingw problems.
9306         * doc/posix-functions/close.texi: Update mingw problems.
9307         * doc/posix-functions/connect.texi: Update mingw problems.
9308         * doc/posix-functions/getpeername.texi: Update mingw problems.
9309         * doc/posix-functions/getsockname.texi: Update mingw problems.
9310         * doc/posix-functions/getsockopt.texi: Update mingw problems.
9311         * doc/posix-functions/ioctl.texi: Update mingw problems.
9312         * doc/posix-functions/listen.texi: Update mingw problems.
9313         * doc/posix-functions/recv.texi: Update mingw problems.
9314         * doc/posix-functions/recvfrom.texi: Update mingw problems.
9315         * doc/posix-functions/select.texi: Update mingw problems.
9316         * doc/posix-functions/send.texi: Update mingw problems.
9317         * doc/posix-functions/sendto.texi: Update mingw problems.
9318         * doc/posix-functions/setsockopt.texi: Update mingw problems.
9319         * doc/posix-functions/socket.texi: Update mingw problems.
9320
9321 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
9322             Bruno Haible  <bruno@clisp.org>
9323
9324         * lib/sys_select.in.h: Include sys/time.h.
9325         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
9326         * modules/sys_select: Depend on sys_time.
9327         * tests/test-sys_select.c: Test that sys/select.h defines struct
9328         timeval fully.
9329
9330 2008-09-29  Bruno Haible  <bruno@clisp.org>
9331
9332         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
9333         * lib/sys_select.in.h: Likewise.
9334
9335 2008-09-29  Bruno Haible  <bruno@clisp.org>
9336
9337         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
9338
9339 2008-09-29  Bruno Haible  <bruno@clisp.org>
9340
9341         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
9342         Set LIBSOCKET instead of augmenting LIBS.
9343         * modules/sockets (Link): New section.
9344         * modules/sockets-tests (test_sockets_LDADD): New variable.
9345         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
9346         * modules/poll-tests (test_poll_LDADD): New variable.
9347         * NEWS: Document the change.
9348
9349 2008-09-29  Bruno Haible  <bruno@clisp.org>
9350
9351         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
9352         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
9353         ARPA_INET_H directly.
9354         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9355
9356 2008-09-28  Bruno Haible  <bruno@clisp.org>
9357
9358         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
9359         from gl_HEADER_SYS_SOCKET.
9360         (gl_HEADER_SYS_SOCKET): Invoke it.
9361         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9362
9363 2008-09-28  Bruno Haible  <bruno@clisp.org>
9364
9365         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
9366         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
9367         Needed on OSF/1 4.0.
9368
9369 2008-09-28  Bruno Haible  <bruno@clisp.org>
9370
9371         Override open more carefully.
9372         * lib/open.c (orig_open): New function.
9373         (rpl_open): Use orig_open instead of open.
9374         * lib/fcntl.in.h: Add special invocation convention.
9375         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
9376         (gl_FUNC_OPEN): Invoke it.
9377
9378         Override freopen more carefully.
9379         * lib/freopen.c (orig_freopen): New function.
9380         (rpl_freopen): Use orig_freopen instead of freopen.
9381         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
9382         (gl_FUNC_FREOPEN): Invoke it.
9383
9384         Override fopen more carefully.
9385         * lib/fopen.c (orig_fopen): New function.
9386         (rpl_fopen): Use orig_fopen instead of fopen.
9387         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
9388         (gl_FUNC_FOPEN): Invoke it.
9389         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
9390
9391 2008-09-28  Bruno Haible  <bruno@clisp.org>
9392
9393         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
9394         SIGPIPE.
9395
9396 2008-09-28  Bruno Haible  <bruno@clisp.org>
9397
9398         * tests/test-sigaction.c (handler, main): Disable the check whether
9399         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
9400         glibc systems with LinuxThreads.
9401
9402 2008-09-28  Bruno Haible  <bruno@clisp.org>
9403
9404         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
9405
9406         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
9407         with AIX xlc.
9408         * lib/fcntl.in.h (open): Likewise.
9409         Reported by Rainer Tammer <tammer@tammer.net>.
9410
9411 2008-09-28  Bruno Haible  <bruno@clisp.org>
9412
9413         * modules/posix_spawnp-tests: New file.
9414         * tests/test-posix_spawn.c: New file.
9415         * tests/test-posix_spawn.in.sh: New file.
9416
9417         New module 'posix_spawnp'.
9418         * modules/posix_spawnp: New file.
9419         * lib/spawnp.c: New file, from GNU libc with modifications.
9420         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
9421
9422         New module 'posix_spawn'.
9423         * modules/posix_spawn: New file.
9424         * lib/spawn.c: New file, from GNU libc with modifications.
9425         * doc/posix-functions/posix_spawn.texi: Mention the new module.
9426
9427         New module 'posix_spawnattr_destroy'.
9428         * modules/posix_spawnattr_destroy: New file.
9429         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
9430         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
9431         module.
9432
9433         New module 'posix_spawnattr_setsigmask'.
9434         * modules/posix_spawnattr_setsigmask: New file.
9435         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
9436         modifications.
9437         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
9438         new module.
9439
9440         New module 'posix_spawnattr_getsigmask'.
9441         * modules/posix_spawnattr_getsigmask: New file.
9442         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
9443         modifications.
9444         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
9445         new module.
9446
9447         New module 'posix_spawnattr_setsigdefault'.
9448         * modules/posix_spawnattr_setsigdefault: New file.
9449         * lib/spawnattr_setdefault.c: New file, from GNU libc with
9450         modifications.
9451         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
9452         new module.
9453
9454         New module 'posix_spawnattr_getsigdefault'.
9455         * modules/posix_spawnattr_getsigdefault: New file.
9456         * lib/spawnattr_getdefault.c: New file, from GNU libc with
9457         modifications.
9458         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
9459         new module.
9460
9461         New module 'posix_spawnattr_setschedpolicy'.
9462         * modules/posix_spawnattr_setschedpolicy: New file.
9463         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
9464         modifications.
9465         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
9466         new module.
9467
9468         New module 'posix_spawnattr_getschedpolicy'.
9469         * modules/posix_spawnattr_getschedpolicy: New file.
9470         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
9471         modifications.
9472         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
9473         new module.
9474
9475         New module 'posix_spawnattr_setschedparam'.
9476         * modules/posix_spawnattr_setschedparam: New file.
9477         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
9478         modifications.
9479         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
9480         new module.
9481
9482         New module 'posix_spawnattr_getschedparam'.
9483         * modules/posix_spawnattr_getschedparam: New file.
9484         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
9485         modifications.
9486         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
9487         new module.
9488
9489         New module 'posix_spawnattr_setpgroup'.
9490         * modules/posix_spawnattr_setpgroup: New file.
9491         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
9492         modifications.
9493         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
9494         module.
9495
9496         New module 'posix_spawnattr_getpgroup'.
9497         * modules/posix_spawnattr_getpgroup: New file.
9498         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
9499         modifications.
9500         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
9501         module.
9502
9503         New module 'posix_spawnattr_setflags'.
9504         * modules/posix_spawnattr_setflags: New file.
9505         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
9506         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
9507         module.
9508
9509         New module 'posix_spawnattr_getflags'.
9510         * modules/posix_spawnattr_getflags: New file.
9511         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
9512         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
9513         module.
9514
9515         New module 'posix_spawnattr_init'.
9516         * modules/posix_spawnattr_init: New file.
9517         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
9518         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
9519         module.
9520
9521         New module 'posix_spawn_file_actions_destroy'.
9522         * modules/posix_spawn_file_actions_destroy: New file.
9523         * lib/spawn_faction_destroy.c: New file, from GNU libc with
9524         modifications.
9525         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
9526         the new module.
9527
9528         New module 'posix_spawn_file_actions_addopen'.
9529         * modules/posix_spawn_file_actions_addopen: New file.
9530         * lib/spawn_faction_addopen.c: New file, from GNU libc with
9531         modifications.
9532         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
9533         the new module.
9534
9535         New module 'posix_spawn_file_actions_adddup2'.
9536         * modules/posix_spawn_file_actions_adddup2: New file.
9537         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
9538         modifications.
9539         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
9540         the new module.
9541
9542         New module 'posix_spawn_file_actions_addclose'.
9543         * modules/posix_spawn_file_actions_addclose: New file.
9544         * lib/spawn_faction_addclose.c: New file, from GNU libc with
9545         modifications.
9546         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
9547         the new module.
9548
9549         New module 'posix_spawn_file_actions_init'.
9550         * modules/posix_spawn_file_actions_init: New file.
9551         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
9552         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
9553         new module.
9554
9555         New module 'posix_spawn-internal'.
9556         * modules/posix_spawn-internal: New file.
9557         * lib/spawn_int.h: New file, from GNU libc with modifications.
9558         * lib/spawni.c: New file, from GNU libc with modifications.
9559         * m4/posix_spawn.m4: New file.
9560
9561         New module 'spawn'.
9562         * modules/spawn: New file.
9563         * lib/spawn.in.h: New file, from GNU libc with modifications.
9564         * m4/spawn_h.m4: New file.
9565         * doc/posix-headers/spawn.texi: Mention the new module.
9566
9567 2008-09-28  Bruno Haible  <bruno@clisp.org>
9568
9569         * modules/sched-tests: New file.
9570         * tests/test-sched.c: New file.
9571
9572         New module 'sched'.
9573         * modules/sched: New file.
9574         * lib/sched.in.h: New file.
9575         * m4/sched_h.m4: New file.
9576         * doc/posix-headers/sched.texi: Mention the new module.
9577
9578 2008-09-27  Eric Blake  <ebb9@byu.net>
9579
9580         Fix previous patch, and tweak references to $0.
9581         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
9582         (func_version, func_gnulib_dir): Don't call this program
9583         gnulib-tool.
9584         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
9585         with using $0 in function.
9586         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
9587         (func_fatal_error): Reuse the name the user invoked us with.
9588
9589 2008-09-27  Bruno Haible  <bruno@clisp.org>
9590
9591         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
9592         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
9593         (gl_ICONV_H): Not here.
9594         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
9595         instead of assigning ICONV_H directly.
9596
9597         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
9598         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
9599         WCHAR_H directly.
9600
9601 2008-09-27  Bruno Haible  <bruno@clisp.org>
9602
9603         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
9604         * modules/arpa_inet (Depends-on): Add link-warning.
9605         (Makefile.am): Insert the definition of GL_LINK-WARNING.
9606         * modules/unistd (Makefile.am): Likewise.
9607
9608 2008-09-26  Bruno Haible  <bruno@clisp.org>
9609
9610         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
9611         variables.
9612         (func_version): Essentially copied from gnulib-tool.
9613         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
9614         func_readlink): Copied from gnulib-tool.
9615
9616 2008-09-26  Bruno Haible  <bruno@clisp.org>
9617
9618         * gnulib-tool (func_version): Change directory to $gnulib_dir before
9619         invoking git-version-gen.
9620
9621 2008-09-26  Bruno Haible  <bruno@clisp.org>
9622
9623         * posix-modules: Update to directory names changed on 2008-01-19.
9624         Remove commas in output before splitting into words. No more need to
9625         avoid 'ftruncate' since 2007-02-19.
9626
9627 2008-09-26  Bruno Haible  <bruno@clisp.org>
9628
9629         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
9630
9631 2008-09-26  Bruno Haible  <bruno@clisp.org>
9632
9633         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
9634         * modules/fwriteerror (Depends-on): Add errno.
9635
9636 2008-09-26  Bruno Haible  <bruno@clisp.org>
9637
9638         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
9639         * tests/test-vc-list-files-cvs.sh: Likewise.
9640
9641 2008-09-26  Bruno Haible  <bruno@clisp.org>
9642
9643         * doc/posix-headers/sys_resource.texi: Reorder items.
9644
9645 2008-09-26  Jim Meyering  <meyering@redhat.com>
9646
9647         fts: tweak inode comparison function
9648         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
9649         inode numbers, as documented.
9650
9651         fts: sort dirent entries on inode number before traversing
9652         This avoids a quadratic, seek-related performance penalty when
9653         operating on a directory containing many entries (measurable at 10k;
9654         3.5 hours at 2 million entries with a cold cache) on certain types
9655         of file systems, including ext3 and ext4, but not tmpfs.
9656         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
9657         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
9658         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
9659         (fs_handles_readdir_ordered_dirents_efficiently): New function.
9660         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
9661         (fts_build): Set the stat.st_ino member from D_INO.
9662         If it is likely to be useful, sort dirent entries on inode number.
9663
9664         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
9665         and the struct statfs.f_type member.
9666         * modules/fts (Depends-on): Add d-ino.
9667
9668 2008-09-26  Bruno Haible  <bruno@clisp.org>
9669
9670         * modules/sigpipe-die (Depends-on): Add sigpipe.
9671
9672         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
9673         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
9674         and GNULIB_STDIO_H_SIGPIPE are set.
9675         * lib/stdio-write.c: New file.
9676         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
9677         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
9678         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
9679         REPLACE_STDIO_WRITE_FUNCS.
9680         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
9681         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
9682         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
9683         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
9684         * modules/stdio (Files): Add lib/stdio-write.c.
9685         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
9686         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
9687         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
9688         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
9689         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
9690         REPLACE_FPRINTF_POSIX.
9691         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
9692         REPLACE_PRINTF_POSIX.
9693         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
9694         REPLACE_VFPRINTF_POSIX.
9695         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
9696         REPLACE_VPRINTF_POSIX.
9697         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
9698         SIGPIPE issue.
9699         * doc/posix-functions/fputc.texi: Likewise.
9700         * doc/posix-functions/fputs.texi: Likewise.
9701         * doc/posix-functions/fwrite.texi: Likewise.
9702         * doc/posix-functions/printf.texi: Likewise.
9703         * doc/posix-functions/putc.texi: Likewise.
9704         * doc/posix-functions/putchar.texi: Likewise.
9705         * doc/posix-functions/puts.texi: Likewise.
9706         * doc/posix-functions/vfprintf.texi: Likewise.
9707         * doc/posix-functions/vprintf.texi: Likewise.
9708
9709         * modules/safe-write (Depends-on): Add write.
9710
9711         * modules/sigpipe-tests: New file.
9712         * tests/test-sigpipe.c: New file.
9713         * tests/test-sigpipe.sh: New file.
9714
9715         * modules/write: New file.
9716         * lib/unistd.in.h: Include <sys/types.h>.
9717         (write): New declaration.
9718         * lib/write.c: New file.
9719         * m4/write.m4: New file.
9720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9721         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
9722         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
9723         GNULIB_WRITE, REPLACE_WRITE.
9724         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
9725         and the SIGPIPE issue.
9726
9727         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
9728         (raise): New declaration.
9729         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
9730         (ext_signal): New function.
9731         (rpl_raise): New function.
9732         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
9733         GNULIB_SIGNAL_H_SIGPIPE.
9734         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
9735         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
9736
9737         * modules/sigpipe: New file.
9738         * m4/sigpipe.m4: New file.
9739
9740 2008-09-25  Derek Price  <derek@ximbiot.com>
9741             Bruno Haible  <bruno@clisp.org>
9742
9743         * gnulib-tool (func_import): Report all license incompatibilities, not
9744         just the first one.
9745
9746 2008-09-25  Bruno Haible  <bruno@clisp.org>
9747
9748         * gnulib-tool (func_import): When computing the edits, consider not
9749         only the Makefile.ams that exist but also those that will be generated.
9750
9751 2008-09-25  Simon Josefsson  <simon@josefsson.org>
9752
9753         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
9754         fixes gnulib-tool --test warning about duplicate dependency.
9755
9756 2008-09-25  Bruno Haible  <bruno@clisp.org>
9757
9758         * gnulib-tool: Don't ask the user to perform edits in the generated
9759         Makefile.ams.
9760         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
9761         apply to the Makefile.am being generated.
9762         (func_emit_tests_Makefile_am): Execute edits that apply to the
9763         Makefile.am being generated.
9764         (func_import): Setup list of Makefile.am edits before emitting the
9765         Makefile.ams, not at the end.
9766         (func_create_testdir): Update.
9767         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
9768
9769 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9770
9771         * gnulib-tool (func_import): Store the --tests-base option in the
9772         comment in gnulib-cache.m4.
9773
9774 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
9775
9776         * NEWS: Document increased portability that sys_select now provides.
9777
9778         * lib/sys_select.in.h: Install select wrapper.
9779         * lib/sys_socket.in.h: Use more descriptive name when there is no
9780         select wrapper.
9781         * lib/winsock-select.c: New.
9782         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
9783         Require gl_HEADER_SYS_SOCKET.
9784         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
9785         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
9786         * tests/test-sys_select.c: Add functional tests.
9787
9788 2008-09-24  Eric Blake  <ebb9@byu.net>
9789
9790         open, fopen: close fd leak in last patch
9791         * lib/open.c (rpl_open): Close fd before returning error.
9792         * lib/fopen.c (rpl_fopen): Close fd before returning error.
9793         * doc/posix-functions/open.texi (open): Document that Irix also
9794         has the bug.
9795         * doc/posix-functions/fopen.texi (fopen): Likewise.
9796         Reported by Paolo Bonzini.
9797
9798 2008-09-24  Bruno Haible  <bruno@clisp.org>
9799
9800         Ensure that a filename ending in a slash cannot be used to access a
9801         non-directory.
9802         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
9803         to check whether it's really a directory.
9804         * lib/fopen.c: Include fcntl.h, unistd.h.
9805         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
9806         and fdopen().
9807         * modules/fopen (Depends-on): Add unistd.
9808         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
9809         * tests/test-fopen.c (main): Likewise.
9810         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
9811         * doc/posix-functions/fopen.texi: Likewise.
9812         Reported by Eric Blake.
9813
9814 2008-09-23  Eric Blake  <ebb9@byu.net>
9815
9816         c-stack: avoid compiler optimizations when provoking overflow
9817         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
9818         recursion harder to optimize, to ensure a stack overflow occurs.
9819         * tests/test-c-stack.c (recurse): Likewise.
9820         Borrowed from libsigsegv.
9821
9822         c-stack: work around Irix sigaltstack bug
9823         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
9824         whether sigaltstack uses wrong end of stack_t (copied in part from
9825         libsigsegv).
9826         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
9827         Irix bug, without requiring an over-allocation.
9828         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
9829         bug.
9830
9831         fopen: document mingw bug on directories
9832         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
9833         not allowing a stream visiting a directory, even though reading
9834         from such a stream is not portable.
9835
9836 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
9837
9838         * lib/poll.c: Rewrite.
9839         * modules/poll: Depend on alloca.
9840
9841 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
9842
9843         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
9844         instead define prototypes for a full set of wrappers.  Ensure
9845         that Cygwin does not use the compatibility code, which is only
9846         for MinGW.
9847         * lib/winsock.c: New.
9848         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
9849         * modules/sys_socket: Add lib/winsock.c.
9850
9851         * modules/poll-tests: Add errno and perror.
9852         * tests/test-poll.c: Use ioctl, not ioctlsocket.
9853
9854 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
9855
9856         * tests/test-poll.c: Downgrade minimum needed Winsock version.
9857
9858 2008-09-23  Bruno Haible  <bruno@clisp.org>
9859
9860         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
9861         * doc/glibc-functions/*: Likewise.
9862
9863 2008-09-23  Simon Josefsson  <simon@josefsson.org>
9864
9865         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
9866         success.
9867
9868 2008-09-22  Eric Blake  <ebb9@byu.net>
9869             Bruno Haible  <bruno@clisp.org>
9870
9871         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
9872         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
9873         supply %A but mishandle pseudo-NaN.
9874         Reported by Simon Josefsson.
9875
9876 2008-09-21  Bruno Haible  <bruno@clisp.org>
9877
9878         * tests/test-lock.c (main): Tweak skip message.
9879         * tests/test-tls.c (main): Likewise.
9880
9881 2008-09-21  Bruno Haible  <bruno@clisp.org>
9882
9883         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
9884         whether 'struct sigaction' has sa_sigaction here...
9885         (gl_PREREQ_SIG_HANDLER_H): ... not here.
9886         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
9887
9888 2008-09-21  Bruno Haible  <bruno@clisp.org>
9889
9890         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
9891         section.
9892         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
9893         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
9894         the new section.
9895         (Support for obsolete systems lacking POSIX:2001): New section.
9896         (String handling <string.h>): Move strdup to the new section.
9897         Suggested by Simon Josefsson and Paolo Bonzini.
9898
9899 2008-09-21  Bruno Haible  <bruno@clisp.org>
9900
9901         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
9902         exponents in %e and %g results on 'long double'. Needed for mingw's
9903         improved *printf functions.
9904         * tests/test-vasprintf-posix.c (test_function): Likewise.
9905         * tests/test-snprintf-posix.h (test_function): Likewise.
9906         * tests/test-sprintf-posix.h (test_function): Likewise.
9907         Reported by Eric Blake.
9908
9909 2008-09-21  Bruno Haible  <bruno@clisp.org>
9910
9911         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
9912         * tests/test-sprintf-posix.h (test_function): Likewise.
9913
9914 2008-09-21  Bruno Haible  <bruno@clisp.org>
9915
9916         * modules/getpass (Depends-on): Add strdup-posix.
9917
9918         New module 'strdup-posix'.
9919         * modules/strdup-posix: New file.
9920         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
9921         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
9922         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9923         REPLACE_STRDUP.
9924         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
9925         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
9926         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9927         strdup-posix.
9928
9929         * modules/strdup (Depends-on): Remove malloc-posix.
9930
9931 2008-09-20  Bruno Haible  <bruno@clisp.org>
9932
9933         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
9934         Wildenhues.
9935
9936 2008-09-20  Bruno Haible  <bruno@clisp.org>
9937
9938         Ensure that wint_t gets defined on IRIX 5.3.
9939         * lib/wchar.in.h (wint_t): Define if not defined by the system.
9940         * lib/wctype.in.h (wint_t): Likewise.
9941         (__wctype_wint_t): Remove type.
9942         (isw*): Use wint_t instead of __wctype_wint_t.
9943         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
9944         * modules/wchar (Files): Add m4/wint_t.m4.
9945         (Makefile.am): Substitute HAVE_WINT_T.
9946         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
9947         * tests/test-wctype.c: Check that wint_t is defined.
9948         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
9949         * doc/posix-headers/wctype.texi: Likewise.
9950         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9951
9952 2008-09-18  Bruno Haible  <bruno@clisp.org>
9953
9954         * gnulib-tool (func_exit): Update comment.
9955
9956 2008-09-18  Simon Josefsson  <simon@josefsson.org>
9957
9958         * modules/getaddrinfo (Depends-on): Remove strdup, this module
9959         assumes strdup exists and does not depend on strdup to return
9960         ENOMEM on out of memory conditions.
9961
9962 2008-09-18  Bruno Haible  <bruno@clisp.org>
9963
9964         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
9965         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
9966         digits for the exponent.
9967
9968 2008-09-18  Jim Meyering  <meyering@redhat.com>
9969             Bruno Haible  <bruno@clisp.org>
9970
9971         * lib/vasnprintf.c (decimal_point_char): Define also if
9972         NEED_PRINTF_INFINITE_LONG_DOUBLE.
9973
9974 2008-09-16  Bruno Haible  <bruno@clisp.org>
9975         and Eric Blake  <ebb9@byu.net>
9976
9977         vasnprintf: support Irix 5.3
9978         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
9979         that mishandle long double infinity.
9980         Reported by Tom G. Christensen.
9981
9982 2008-09-16  Bruno Haible  <bruno@clisp.org>
9983
9984         * doc/glibc-functions/scandir.texi: Mention the function is missing on
9985         Solaris 9.
9986         * doc/glibc-functions/alphasort.texi: Likewise.
9987         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
9988
9989 2008-09-16  Jim Meyering  <meyering@redhat.com>
9990
9991         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
9992         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
9993         a umask modification leak out of a subshell.  Otherwise, the
9994         opensolaris /bin/sh would be accepted and thus cause unwarranted
9995         failures in the coreutils test suite.
9996
9997 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
9998
9999         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
10000         to succeed.
10001
10002 2008-09-16  Jim Meyering  <meyering@redhat.com>
10003
10004         avoid spurious test failure when library is built without ACL support
10005         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
10006         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
10007         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
10008         * tests/test-copy-acl.sh: Likewise.
10009
10010 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10011
10012         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
10013         based on character occurrence counts.
10014
10015 2008-09-15  Eric Blake  <ebb9@byu.net>
10016
10017         tests: avoid some compiler warnings
10018         * tests/test-memchr.c (main): Pass NULL indirectly.
10019         * tests/test-closein.c (main): Avoid unused variable.
10020
10021 2008-09-15  Bruno Haible  <bruno@clisp.org>
10022
10023         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
10024         are missing on OpenBSD 4.0 individually.
10025         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10026
10027 2008-09-15  Bruno Haible  <bruno@clisp.org>
10028
10029         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
10030         * doc/posix-functions/strerror.texi: Mention also Cygwin.
10031         * doc/posix-functions/perror.texi: Likewise.
10032         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
10033         is missing.
10034         Reported by Eric Blake.
10035
10036         * lib/errno.in.h: Use replacement values >= 2000.
10037         Reported by Eric Blake.
10038
10039 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10040
10041         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
10042         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
10043         limit.
10044         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
10045         compareseq was aborted.
10046
10047 2008-09-14  Bruno Haible  <bruno@clisp.org>
10048
10049         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
10050         yvec_edit_count.
10051         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
10052         (fstrcmp_bounded): Simplify result computation accordingly.
10053
10054 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10055
10056         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
10057         (fstrcmp): Define in terms of fstrcmp_bounded.
10058         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
10059         lower_bound argument.
10060         Return quickly if the result is certainly < lower_bound.
10061         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
10062
10063 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10064
10065         * lib/diffseq.h (EARLY_ABORT): New macro.
10066         (compareseq): Change return type to bool. Return true when EARLY_ABORT
10067         evaluates to true.
10068
10069 2008-09-14  Bruno Haible  <bruno@clisp.org>
10070
10071         * modules/perror-tests: New file.
10072         * tests/test-perror.sh: New file.
10073         * tests/test-perror.c: New file.
10074
10075         New module 'perror'.
10076         * lib/stdio.in.h (perror): New declaration.
10077         * lib/perror.c: New file.
10078         * m4/perror.m4: New file.
10079         * modules/perror: New file.
10080         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
10081         * doc/posix-functions/perror.texi: Mention the perror module.
10082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
10083         REPLACE_PERROR.
10084         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
10085         REPLACE_PERROR.
10086
10087 2008-09-14  Bruno Haible  <bruno@clisp.org>
10088
10089         * modules/stdio (Makefile.am): Reorder to match the order in
10090         lib/stdio.in.h.
10091         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10092
10093 2008-09-13  Bruno Haible  <bruno@clisp.org>
10094
10095         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
10096
10097 2008-09-13  Bruno Haible  <bruno@clisp.org>
10098
10099         Extend strerror to cover the added errno values.
10100         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
10101         (rpl_strerror): Provide error messages for the added errno values and
10102         for the WSA* values.
10103         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
10104         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
10105         strerror.
10106         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
10107         * modules/strerror (Depends-on): Add errno.
10108         * doc/posix-functions/strerror.texi: Document the change.
10109         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
10110         and EOVERFLOW.
10111
10112 2008-09-13  Bruno Haible  <bruno@clisp.org>
10113
10114         * modules/EOVERFLOW: Remove file.
10115         * m4/eoverflow.m4: Remove file.
10116         * modules/EOVERFLOW-tests: Remove file.
10117         * tests/test-EOVERFLOW.c: Remove file.
10118         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
10119         * modules/ftell (Depends-on): Likewise.
10120         * modules/getdelim (Depends-on): Likewise.
10121         * modules/getugroups (Depends-on): Likewise.
10122         * modules/poll (Depends-on): Likewise.
10123         * modules/snprintf (Depends-on): Likewise.
10124         * modules/sprintf-posix (Depends-on): Likewise.
10125         * modules/vasnprintf (Depends-on): Likewise.
10126         * modules/vasprintf (Depends-on): Likewise.
10127         * modules/vfprintf-posix (Depends-on): Likewise.
10128         * modules/vsnprintf (Depends-on): Likewise.
10129         * modules/vsprintf-posix (Depends-on): Likewise.
10130         * modules/xvasprintf (Depends-on): Likewise.
10131         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10132         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
10133         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
10134         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
10135         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10136         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
10137         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
10138         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
10139         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10140         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
10141         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
10142         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
10143         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10144         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
10145         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
10146         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
10147         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10148         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
10149         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
10150         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
10151         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10152         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
10153         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
10154         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
10155         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
10156         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10157         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
10158         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
10159         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
10160         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
10161         * MODULES.html.sh: Remove EOVERFLOW.
10162         * NEWS: Mention the change.
10163
10164 2008-09-13  Bruno Haible  <bruno@clisp.org>
10165
10166         * modules/errno-tests: New file.
10167         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
10168
10169         * lib/errno.in.h: New file.
10170         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
10171         * modules/errno: New file.
10172         * doc/posix-headers/errno.texi: Update documentation.
10173         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
10174
10175 2008-09-13  Bruno Haible  <bruno@clisp.org>
10176
10177         * tests/test-poll.c: Use #if for native Windows, rather than testing
10178         __MSVCRT__.
10179
10180 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10181             Bruno Haible  <bruno@clisp.org>
10182
10183         * lib/glob.c: Don't include <pwd.h> on native Windows.
10184         (WINDOWS32): New macro.
10185         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
10186
10187 2008-09-13  Bruno Haible  <bruno@clisp.org>
10188
10189         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
10190         (ETIMEDOUT): Remove macro.
10191         (glthread_cond_timedwait_multithreaded): New declaration.
10192         (glthread_cond_timedwait): Use it.
10193         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
10194         (glthread_cond_timedwait_multithreaded): New function.
10195
10196 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
10197
10198         * modules/poll-tests: Do not check for io.h.
10199         * tests/test-poll.c: Check for __MSVCRT__ instead.
10200
10201 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
10202
10203         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
10204         * modules/poll-tests: Add inet_pton, stdbool, sockets.
10205         * tests/test-poll.c: Use them.  Use _pipe on Windows.
10206
10207 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
10208
10209         * modules/poll-tests: New.
10210         * tests/test-poll.c: New.
10211
10212 2008-09-12  Eric Blake  <ebb9@byu.net>
10213
10214         frexp: test for NetBSD failure on -0.0
10215         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
10216         not all, bugs from NetBSD 3.0 have been fixed.
10217         * doc/posix-functions/frexp.texi (frexp): Document bug.
10218         Reported by Thomas Klausner.
10219
10220         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
10221         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
10222         literal -0.0.
10223         Reported by Jonathan C. Patschke <jp@centtech.com>.
10224
10225 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10226
10227         * lib/glthread/cond.h: Use dummy implementation also if
10228         USE_WIN32_THREADS.
10229
10230 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10231
10232         * modules/fnmatch-posix (License): Change to LGPLv2+.
10233         * modules/fnmatch-gnu (License): Likewise.
10234
10235 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10236
10237         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
10238
10239 2008-09-11  Jim Meyering  <meyering@redhat.com>
10240
10241         * users.txt: Add gtk-vnc.
10242
10243 2008-09-08  Simon Josefsson  <simon@josefsson.org>
10244
10245         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
10246         rotate amounts.
10247
10248         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
10249         required for 16-bit and 8-bit rotates.
10250         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
10251         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
10252         UINT8_MAX instead of hard-coded constants.
10253         Suggested by Paul Eggert.
10254
10255 2008-09-07  Bruno Haible  <bruno@clisp.org>
10256
10257         * tests/test-striconveh.c (main): Check behaviour when converting from
10258         UTF-7.
10259
10260         Make striconveh work better with stateful encodings.
10261         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
10262         that iconv does not increment the inptr when returning -1/EINVAL.
10263
10264 2008-09-07  Bruno Haible  <bruno@clisp.org>
10265
10266         * build-aux/config.rpath: Update according to libtool-2.2.6.
10267         * build-aux/config.libpath: Likewise.
10268
10269 2008-09-06  Bruno Haible  <bruno@clisp.org>
10270
10271         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
10272         * lib/freadptr.c (freadptr): Likewise.
10273         * lib/freadseek.c (freadptrinc): Likewise.
10274         Reported by Simon Josefsson.
10275
10276 2008-09-06  Bruno Haible  <bruno@clisp.org>
10277
10278         * modules/freadptr (License): Change to LGPLv2+.
10279         * modules/freadseek (License): Likewise.
10280         Suggested by Eric Blake.
10281
10282         * modules/memchr2 (License): Change to LGPLv2+.
10283         Approved by Eric Blake.
10284
10285 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10286             Bruno Haible  <bruno@clisp.org>
10287
10288         Make gnulib-tool work with native 'sed' on AIX.
10289         * gnulib-tool (sed_noop): New variable.
10290         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
10291         func_add_or_update, func_create_testdir): Use it to initialize sed
10292         script variables.
10293         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10294
10295 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
10296             Bruno Haible  <bruno@clisp.org>
10297
10298         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
10299         also works after #include directives.
10300
10301 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
10302
10303         getdate.y: reject an out-of-range timezone value
10304         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
10305         the range [-24...+24].  When specified with only one or two digits,
10306         * tests/test-getdate.c: Tests for the fix.
10307         * doc/getdate.texi: Document this change.
10308
10309 2008-09-03  Bruno Haible  <bruno@clisp.org>
10310
10311         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
10312
10313 2008-09-02  Simon Josefsson  <simon@josefsson.org>
10314
10315         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
10316         <bruce.korb@gmail.com> with ideas from Ben Pfaff
10317         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
10318         Blake <ebb9@byu.net>.
10319
10320         * tests/test-bitrotate.c: Add more test vectors.
10321
10322 2008-09-02  Eric Blake  <ebb9@byu.net>
10323
10324         vasnprintf-posix: handle large precision via %.*d
10325         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
10326         when handling it ourselves.
10327         * tests/test-vasnprintf-posix.c (test_function): Add test.
10328         * tests/test-snprintf-posix.h (test_function): Likewise.
10329         * tests/test-sprintf-posix.h (test_function): Likewise.
10330         * tests/test-vasprintf-posix.c (test_function): Likewise.
10331         Reported by Alain Guibert.
10332
10333 2008-09-01  Eric Blake  <ebb9@byu.net>
10334
10335         c-stack: make configure-time check more robust
10336         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
10337         successful sigaction call.
10338         Reported by Tom G. Christensen.
10339
10340 2008-09-01  Bruno Haible  <bruno@clisp.org>
10341
10342         New module 'findprog-lgpl'.
10343         * modules/findprog-lgpl: New file.
10344         * lib/findprog-lgpl.c: New file.
10345         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
10346         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
10347         to decide whether to use strdup or xstrdup, concatenated_filename or
10348         xconcatenated_filename.
10349
10350 2008-09-01  Bruno Haible  <bruno@clisp.org>
10351
10352         Split module 'concat-filename' into 'concat-filename' (LGPL) and
10353         'xconcat-filename' (GPL).
10354         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
10355         (License): Change to LGPLv2+.
10356         * modules/xconcat-filename: New file.
10357         * lib/concat-filename.h (concatenated_filename): Change specification.
10358         (xconcatenated_filename): New declaration.
10359         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
10360         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
10361         memory situations.
10362         * lib/xconcat-filename.c: New file.
10363         * NEWS: Mention the change.
10364         * lib/findprog.c: Include concat-filename.h, not filename.h.
10365         (find_in_path): Use xconcatenated_filename instead of
10366         concatenated_filename.
10367         * lib/javacomp.c: Include concat-filename.h, not filename.h.
10368         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
10369         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
10370         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
10371         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
10372         instead of concatenated_filename.
10373         * lib/javaexec.c: Include concat-filename.h, not filename.h.
10374         (execute_java_class): Use xconcatenated_filename instead of
10375         concatenated_filename.
10376         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
10377         * modules/javacomp (Depends-on): Likewise.
10378         * modules/javaexec (Depends-on): Likewise.
10379
10380 2008-09-01  Bruno Haible  <bruno@clisp.org>
10381
10382         Split module 'filename' into 'filename' and 'concat-filename'.
10383         * modules/filename: Keep only lib/filename.h.
10384         (License): Change to LGPLv2+.
10385         * modules/concat-filename: New file, extracted from modules/filename.
10386         * lib/filename.h (concatenated_filename): Remove declaration.
10387         * lib/concat-filename.h: New file, extracted from lib/filename.h.
10388         * lib/concat-filename.c: Include concat-filename.h.
10389         * NEWS: Mention the change.
10390
10391 2008-09-01  Simon Josefsson  <simon@josefsson.org>
10392
10393         * lib/bitrotate.h (rotl8, rotr8): Add.
10394
10395         * modules/bitrotate (configure.ac): Need
10396         AC_REQUIRE([AC_C_INLINE]).
10397         (Description): Mention stdint.h.  Reported by Bruno Haible
10398         <bruno@clisp.org>.
10399
10400         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
10401         Paolo Bonzini <bonzini@gnu.org>.
10402
10403 2008-08-31  Bruno Haible  <bruno@clisp.org>
10404
10405         Assume Solaris specific bi-arch conventions on Solaris systems.
10406         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
10407         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
10408         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
10409         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
10410         like acl_libdirstem.
10411         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
10412         acl_libdirstem.
10413         * NEWS: Mention the change.
10414         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
10415
10416 2008-08-31  Jim Meyering  <meyering@redhat.com>
10417
10418         * lib/strftime.h: Add comments describing the two added arguments.
10419
10420         remove duplicate #include directives
10421         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
10422         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
10423
10424 2008-08-31  Bruno Haible  <bruno@clisp.org>
10425
10426         New module 'sigpipe-die'.
10427         * modules/sigpipe-die: New file.
10428         * lib/sigpipe-die.h: New file.
10429         * lib/sigpipe-die.c: New file.
10430         * MODULES.html.sh (Signal handling): Add sigpipe-die.
10431
10432 2008-08-31  Bruno Haible  <bruno@clisp.org>
10433
10434         Don't override previously installed signal handlers.
10435         * lib/fatal-signal.c (saved_sigactions): New variable.
10436         (uninstall_handlers): Reset the signal to the saved handler, not
10437         to SIG_DFL (except when ignored).
10438         (install_handlers): Save the previous handlers.
10439
10440 2008-08-30  Bruno Haible  <bruno@clisp.org>
10441
10442         * gnulib-tool (func_reset_sigpipe): New function.
10443         (func_get_automake_snippet, func_modules_transitive_closure,
10444         func_import): Invoke it before a join command that reads from stdin,
10445         to avoid "echo: write error: Broken pipe" error messages on stderr.
10446         Reported by Sam Steingold <sds@gnu.org>.
10447
10448 2008-08-30  Bruno Haible  <bruno@clisp.org>
10449
10450         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
10451         Code copied from m4/open.m4.
10452         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
10453         access and the filename ends in a slash. Code copied from lib/open.c.
10454         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
10455         * tests/test-fopen.c (main): Check against bug with trailing slash.
10456
10457 2008-08-29  Bruno Haible  <bruno@clisp.org>
10458
10459         Avoid some "gcc -pedantic" warnings.
10460         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
10461         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
10462         * lib/dirent.in.h: Likewise.
10463         * lib/fcntl.in.h: Likewise.
10464         * lib/float.in.h: Likewise.
10465         * lib/iconv.in.h: Likewise.
10466         * lib/inttypes.in.h: Likewise.
10467         * lib/locale.in.h: Likewise.
10468         * lib/math.in.h: Likewise.
10469         * lib/netinet_in.in.h: Likewise.
10470         * lib/search.in.h: Likewise.
10471         * lib/signal.in.h: Likewise.
10472         * lib/stdarg.in.h: Likewise.
10473         * lib/stdint.in.h: Likewise.
10474         * lib/stdio.in.h: Likewise.
10475         * lib/stdlib.in.h: Likewise.
10476         * lib/string.in.h: Likewise.
10477         * lib/strings.in.h: Likewise.
10478         * lib/sys_select.in.h: Likewise.
10479         * lib/sys_socket.in.h: Likewise.
10480         * lib/sys_stat.in.h: Likewise.
10481         * lib/sys_time.in.h: Likewise.
10482         * lib/sysexits.in.h: Likewise.
10483         * lib/time.in.h: Likewise.
10484         * lib/unistd.in.h: Likewise.
10485         * lib/wchar.in.h: Likewise.
10486         * lib/wctype.in.h: Likewise.
10487         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
10488         * modules/fchdir (Makefile.am): Likewise.
10489         * modules/fcntl (Makefile.am): Likewise.
10490         * modules/float (Makefile.am): Likewise.
10491         * modules/iconv_open (Makefile.am): Likewise.
10492         * modules/inttypes (Makefile.am): Likewise.
10493         * modules/locale (Makefile.am): Likewise.
10494         * modules/math (Makefile.am): Likewise.
10495         * modules/netinet_in (Makefile.am): Likewise.
10496         * modules/search (Makefile.am): Likewise.
10497         * modules/signal (Makefile.am): Likewise.
10498         * modules/stdarg (Makefile.am): Likewise.
10499         * modules/stdint (Makefile.am): Likewise.
10500         * modules/stdio (Makefile.am): Likewise.
10501         * modules/stdlib (Makefile.am): Likewise.
10502         * modules/string (Makefile.am): Likewise.
10503         * modules/strings (Makefile.am): Likewise.
10504         * modules/sys_select (Makefile.am): Likewise.
10505         * modules/sys_socket (Makefile.am): Likewise.
10506         * modules/sys_stat (Makefile.am): Likewise.
10507         * modules/sys_time (Makefile.am): Likewise.
10508         * modules/sysexits (Makefile.am): Likewise.
10509         * modules/time (Makefile.am): Likewise.
10510         * modules/unistd (Makefile.am): Likewise.
10511         * modules/wchar (Makefile.am): Likewise.
10512         * modules/wctype (Makefile.am): Likewise.
10513         Reported by Reuben Thomas <rrt@sc3d.org>.
10514
10515 2008-08-29  Bruno Haible  <bruno@clisp.org>
10516
10517         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
10518         any more.
10519
10520 2008-08-29  Simon Josefsson  <simon@josefsson.org>
10521
10522         * MODULES.html.sh (Misc): Add bitrotate.
10523
10524         * modules/bitrotate: New file.
10525
10526         * lib/bitrotate.h: New file.
10527
10528         * modules/bitrotate-tests: New file.
10529
10530         * tests/test-bitrotate.c: New file.
10531
10532         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
10533         on the bitrotate module.
10534
10535         * lib/arctwo.c: Use new bitrotate module.
10536
10537 2008-08-29  Jim Meyering  <meyering@redhat.com>
10538
10539         bootstrap: merge changes from coreutils
10540         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
10541         of copied files.  Remove a kludge, now that this is fixed.
10542         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
10543         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
10544         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
10545
10546 2008-08-29  Bruno Haible  <bruno@clisp.org>
10547
10548         * MODULES.html.sh: Remove --cvs-urls option.
10549
10550 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
10551
10552         maint.mk: adjust to file name change
10553         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
10554
10555 2008-08-28  Jim Meyering  <meyering@redhat.com>
10556
10557         * modules/getndelim2 (License): Relicense to LGPLv2+.
10558         Approved by Richard Stallman for the version of 1995, and by
10559         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
10560
10561 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
10562
10563         * lib/getdelim.c (flockfile, funlockfile): Make all of them
10564         dummy if one is not available.  Do not touch them if
10565         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
10566         (getc_maybe_unlocked): New.
10567         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
10568
10569 2008-08-26  Eric Blake  <ebb9@byu.net>
10570
10571         doc/INSTALL: resync from autoconf
10572         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
10573         (INSTALL_PRELUDE): Delete; this is done more efficiently by
10574         moving...
10575         * install.texi [!autoconf]: ...here.  Resync from autoconf.
10576         * INSTALL: Regenerate.
10577         * INSTALL.ISO: New file.
10578         * INSTALL.UTF-8: Likewise.
10579
10580 2008-08-26  Jim Meyering  <meyering@redhat.com>
10581
10582         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
10583         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
10584         these definitions conditional, so that they may be overridden, too.
10585
10586 2008-08-26  Bruno Haible  <bruno@clisp.org>
10587
10588         Generate INSTALL file variants with prettier quotes.
10589         * doc/Makefile (INSTALL_PRELUDE): New macro.
10590         (INSTALL): Use it.
10591         (INSTALL.ISO, INSTALL.UTF-8): New rules.
10592
10593 2008-08-26  Bruno Haible  <bruno@clisp.org>
10594
10595         Run makeinfo in an English locale.
10596         * doc/Makefile (MAKEINFO): New variable.
10597
10598 2008-08-26  Bruno Haible  <bruno@clisp.org>
10599
10600         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
10601         Suggested by Eric Blake.
10602
10603 2008-08-25  Bruno Haible  <bruno@clisp.org>
10604
10605         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
10606
10607 2008-08-25  Eric Blake  <ebb9@byu.net>
10608
10609         c-stack: test that stack overflow can be caught
10610         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
10611         that platform allows handling stack overflow; at least OS/2 EMX
10612         has sigaltstack, but crashes before transferring control to
10613         handler on stack overflow.
10614         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
10615         check for HAVE_STACK_OVERFLOW_HANDLING.
10616         Reported by Elbert Pol.
10617
10618 2008-08-25  Bruno Haible  <bruno@clisp.org>
10619
10620         * doc/posix-functions/strftime.texi: Fix description of strftime
10621         module.
10622
10623 2008-08-24  Bruno Haible  <bruno@clisp.org>
10624
10625         * tests/uniwidth/test-uc_width2.c: New file.
10626         * tests/uniwidth/test-uc_width2.sh: New file.
10627         * modules/uniwidth/width-tests (Files): Add the new files.
10628         (TESTS): Add uniwidth/test-uc_width2.sh.
10629         (TESTS_ENVIRONMENT): New variable.
10630         (check_PROGRAMS): Add test-uc_width2.
10631         (test_uc_width2_SOURCES): New variable.
10632
10633         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
10634         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
10635         not 0x00AB.
10636         Reported by Alexander V. Lukyanov <lav@netis.ru>.
10637
10638 2008-08-22  Eric Blake  <ebb9@byu.net>
10639
10640         test-lock, test-tls: mention why a test is skipped
10641         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
10642         skipped.
10643         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
10644
10645         count-one-bits: relax license
10646         * modules/count-one-bits (License): Relicense to LGPLv2+.
10647         Suggested by Ludovic Courtès, approved by Ben Pfaff.
10648
10649 2008-08-22  Andreas Schwab  <schwab@suse.de>
10650
10651         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
10652         Remove spurious space in assignment.
10653
10654 2008-08-21  Simon Josefsson  <simon@josefsson.org>
10655
10656         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
10657         Paul Eggert <eggert@CS.UCLA.EDU>.
10658
10659 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
10660
10661         * modules/gettext: Add m4/threadlib.m4.
10662
10663 2008-08-19  Eric Blake  <ebb9@byu.net>
10664
10665         test-c-stack: fix compilation failure on FreeBSD 5.0
10666         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
10667         headers before <sys/resource.h>.
10668         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
10669         the bug.
10670         Reported by Nelson H. F. Beebe.
10671
10672         strverscmp: migrate from "strverscmp.h" to <string.h>
10673         * modules/string (Makefile.am): Add new hooks.
10674         * modules/strverscmp (Files): Remove strverscmp.h.
10675         (Depends-on): Add string.
10676         (configure.ac): Add indicator.
10677         (Include): Mention new header.
10678         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
10679         defaults.
10680         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
10681         results.
10682         * lib/strverscmp.h: Delete.
10683         * lib/string.in.h (strverscmp): Provide declaration, when needed.
10684         * tests/test-strverscmp.c (includes): Adjust client.
10685         * lib/check-version.c (includes): Likewise.
10686         * NEWS: Document the change.
10687
10688         strverscmp: add unit test
10689         * modules/strverscmp-tests: New file.
10690         * tests/test-strverscmp.c: Likewise.
10691
10692 2008-08-19  Simon Josefsson  <simon@josefsson.org>
10693
10694         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
10695         regarding Windows crypto stuff, from Mono.
10696
10697 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
10698
10699         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
10700         if present, for intel RND.  Return error on failures.
10701
10702 2008-08-18  Ben Pfaff  <blp@gnu.org>
10703
10704         gitlog-to-changelog: give better diagnostic for failed pipe-open
10705         * build-aux/gitlog-to-changelog: Improve error message: suggest
10706         that the version of Git may be too old.
10707
10708 2008-08-18  Simon Josefsson  <simon@josefsson.org>
10709
10710         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
10711         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
10712
10713 2008-08-18  Bruno Haible  <bruno@clisp.org>
10714
10715         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
10716         pthread_in_use().
10717
10718 2008-08-18  Bruno Haible  <bruno@clisp.org>
10719
10720         * lib/glthread/threadlib.c: Include <pthread.h>.
10721
10722 2008-08-18  Bruno Haible  <bruno@clisp.org>
10723
10724         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
10725         glthread_recursive_lock_* macros.
10726         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
10727         Fix syntax error.
10728
10729 2008-08-18  Bruno Haible  <bruno@clisp.org>
10730
10731         * lib/glthread/thread.c: Avoid forcing a context switch right after
10732         thread creation.
10733
10734 2008-08-17  Bruno Haible  <bruno@clisp.org>
10735
10736         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
10737         * lib/glthread/thread.h: Provide Win32 specific implementation.
10738         * modules/thread (Files): Add lib/glthread/thread.c.
10739         (Depends-on): Add lock.
10740         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
10741
10742 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10743
10744         New module 'yield'.
10745         * modules/yield: New file.
10746         * lib/glthread/yield.h: New file.
10747         * m4/yield.m4: New file.
10748         * MODULES.html.sh (Multithreading): Add yield.
10749
10750 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10751
10752         New module 'thread'.
10753         * modules/thread: New file.
10754         * lib/glthread/thread.h: New file.
10755         * m4/thread.m4: New file.
10756         * MODULES.html.sh (Multithreading): Add thread.
10757
10758 2008-08-17  Bruno Haible  <bruno@clisp.org>
10759
10760         * lib/glthread/lock.h: Include <stdlib.h> always.
10761         * lib/glthread/tls.h: Likewise.
10762         * lib/glthread/cond.h: Likewise.
10763
10764 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10765
10766         New module 'cond'.
10767         * modules/cond: New file.
10768         * lib/glthread/cond.h: New file.
10769         * lib/glthread/cond.c: New file.
10770         * m4/cond.m4: New file.
10771         * MODULES.html.sh (Multithreading): Add cond.
10772
10773 2008-08-16  Eric Blake  <ebb9@byu.net>
10774
10775         c-stack: fix regression on Irix 5.3 from 2008-06-21
10776         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
10777         sa_sigaction...
10778         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
10779         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
10780         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
10781         * modules/signal (Makefile.am): Use the value.
10782         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
10783         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
10784         * doc/posix-headers/signal.texi (signal.h): Document this
10785         portability issue.
10786         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
10787         Reported by Tom G. Christensen.
10788
10789 2008-08-17  Bruno Haible  <bruno@clisp.org>
10790
10791         New module 'threadlib'.
10792         * modules/threadlib: New file.
10793         * lib/glthread/threadlib.c: New file, extracted from
10794         lib/glthread/lock.c.
10795         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
10796         functions.
10797         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
10798         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
10799         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
10800         macros.
10801         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
10802         (gl_DISABLE_THREADS): Remove macro.
10803         * modules/lock (Files): Remove build-aux/config.rpath.
10804         (Depends-on): Remove havelib. Add threadlib.
10805         (configure.ac-early): Remove section.
10806         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
10807         * modules/tls (Depends-on): Remove lock. Add threadlib.
10808         (Link): New section, copied from threadlib.
10809         * MODULES.html.sh (Multithreading): Add threadlib.
10810
10811 2008-08-14  Bruno Haible  <bruno@clisp.org>
10812
10813         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
10814         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
10815         glthread_rwlock_unlock, glthread_rwlock_destroy,
10816         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
10817         glthread_recursive_lock_destroy): Define as macros always.
10818         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
10819         glthread_lock_lock.
10820         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
10821         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
10822         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
10823         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
10824         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
10825         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
10826         (glthread_recursive_lock_lock_func): Renamed from
10827         glthread_recursive_lock_lock.
10828         (glthread_recursive_lock_unlock_func): Renamed from
10829         glthread_recursive_lock_unlock.
10830         (glthread_recursive_lock_destroy_func): Renamed from
10831         glthread_recursive_lock_destroy.
10832
10833 2008-08-14  Bruno Haible  <bruno@clisp.org>
10834
10835         * lib/glthread/lock.h: Renamed from lib/lock.h.
10836         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
10837         * lib/glthread/tls.h: Renamed from lib/tls.h.
10838         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
10839         * lib/fstrcmp.c: Update includes.
10840         * lib/strsignal.c: Update includes.
10841         * modules/lock (Files, Makefile.am): Update.
10842         (Include): Change to "glthread/lock.h".
10843         * modules/tls (Files, Makefile.am): Update.
10844         (Include): Change to "glthread/tls.h".
10845         * tests/test-lock.c: Update includes.
10846         * tests/test-tls.c: Update includes.
10847         * NEWS: Mention the renamed header files.
10848
10849 2008-08-11  Jim Meyering  <meyering@redhat.com>
10850
10851         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
10852
10853 2008-08-11  Eric Blake  <ebb9@byu.net>
10854
10855         test-c-stack: avoid C99-ism
10856         * tests/test-c-stack.c (main): Fix whitespace, move declaration
10857         before statement.
10858         Reported by Alain Guibert.
10859
10860 2008-08-10  Jim Meyering  <meyering@redhat.com>
10861
10862         ensure that return value of uinttostr et al are not ignored
10863         * lib/inttostr.h (__GNUC_PREREQ): Define.
10864         (__attribute_warn_unused_result__): Define.
10865         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
10866
10867 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
10868
10869         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
10870         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
10871
10872 2008-08-07  Jim Meyering  <meyering@redhat.com>
10873
10874         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
10875
10876         * modules/mkstemp (License): Relicense under LGPLv2+.
10877         * modules/tempname (License): Likewise.
10878
10879 2008-08-06  Bruno Haible  <bruno@clisp.org>
10880
10881         * lib/poll.c (poll): Further micro-optimization.
10882
10883 2008-08-06  Jim Meyering  <meyering@redhat.com>
10884
10885         inet_pton.c: use locale-independent tolower
10886         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
10887         (inet_pton6): Use c_tolower rather than tolower.
10888         * modules/inet_pton (Depends-on): Add c-ctype.
10889
10890 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
10891
10892         * lib/poll.c (poll): Avoid division when timeout is 0, cache
10893         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
10894
10895 2008-08-06  Jim Meyering  <meyering@redhat.com>
10896
10897         * modules/inet_pton (License): Relicense under LGPLv2+.
10898
10899 2008-08-03  Bruno Haible  <bruno@clisp.org>
10900
10901         Additional non-aborting API for lock and tls.
10902         * lib/lock.h: Include <errno.h>.
10903         (glthread_lock_init): New macro/function.
10904         (gl_lock_init): Define as wrapper around glthread_lock_init.
10905         (glthread_lock_lock): New macro/function.
10906         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
10907         (glthread_lock_unlock): New macro/function.
10908         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
10909         (glthread_lock_destroy): New macro/function.
10910         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
10911         (glthread_rwlock_init): New macro/function.
10912         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
10913         (glthread_rwlock_rdlock): New macro/function.
10914         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
10915         (glthread_rwlock_wrlock): New macro/function.
10916         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
10917         (glthread_rwlock_unlock): New macro/function.
10918         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
10919         (glthread_rwlock_destroy): New macro/function.
10920         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
10921         (glthread_recursive_lock_init): New macro/function.
10922         (gl_recursive_lock_init): Define as wrapper around
10923         glthread_recursive_lock_init.
10924         (glthread_recursive_lock_lock): New macro/function.
10925         (gl_recursive_lock_lock): Define as wrapper around
10926         glthread_recursive_lock_lock.
10927         (glthread_recursive_lock_unlock): New macro/function.
10928         (gl_recursive_lock_unlock): Define as wrapper around
10929         glthread_recursive_lock_unlock.
10930         (glthread_recursive_lock_destroy): New macro/function.
10931         (gl_recursive_lock_destroy): Define as wrapper around
10932         glthread_recursive_lock_destroy.
10933         (glthread_once): New macro/function.
10934         (gl_once): Define as wrapper around glthread_once.
10935         Update function declarations.
10936         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
10937         glthread_rwlock_init. Return error code.
10938         (glthread_rwlock_rdlock_multithreaded): Renamed from
10939         glthread_rwlock_rdlock. Return error code.
10940         (glthread_rwlock_wrlock_multithreaded): Renamed from
10941         glthread_rwlock_wrlock. Return error code.
10942         (glthread_rwlock_unlock_multithreaded): Renamed from
10943         glthread_rwlock_unlock. Return error code.
10944         (glthread_rwlock_destroy_multithreaded): Renamed from
10945         glthread_rwlock_destroy. Return error code.
10946         (glthread_recursive_lock_init_multithreaded): Renamed from
10947         glthread_recursive_lock_init. Return error code.
10948         (glthread_recursive_lock_lock_multithreaded): Renamed from
10949         glthread_recursive_lock_lock. Return error code.
10950         (glthread_recursive_lock_unlock_multithreaded): Renamed from
10951         glthread_recursive_lock_unlock. Return error code.
10952         (glthread_recursive_lock_destroy_multithreaded): Renamed from
10953         glthread_recursive_lock_destroy. Return error code.
10954         (glthread_once_call): Make static.
10955         (glthread_once_multithreaded): Renamed from glthread_once.
10956         * lib/tls.h: Include <errno.h>.
10957         (glthread_tls_key_init): New macro/function.
10958         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
10959         (glthread_tls_set): New macro/function.
10960         (gl_tls_set): Define as wrapper around glthread_tls_set.
10961         (glthread_tls_key_destroy): New macro/function.
10962         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
10963         Update function declarations.
10964         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
10965         glthread_tls_get.
10966         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
10967
10968 2008-08-04  Eric Blake  <ebb9@byu.net>
10969
10970         gnumakefile: use space, not TAB, outside of targets
10971         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
10972
10973 2008-08-02  Jim Meyering  <meyering@redhat.com>
10974
10975         getdate.y: avoid locale-dependent date parsing failure
10976         In Turkish locales, getdate would fail to recognize keywords
10977         containing a lowercase "i".  The solution is not to rely on
10978         locale-sensitive case-conversion.
10979         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
10980         (lookup_word): Use c_toupper in place of toupper.
10981         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
10982         Reported by Vefa Bicakci <bicave@superonline.com> in
10983         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
10984         * modules/getdate (Depends-on): Add c-ctype.
10985
10986 2008-08-02  Bruno Haible  <bruno@clisp.org>
10987
10988         * gnulib-tool (func_import): When updating or creating a .gitignore
10989         file, prepend each added line with a slash, and ignore leading slashes
10990         from the existing lines.
10991         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
10992
10993 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10994
10995         Portability fix for GNU make 3.79.1.
10996         * top/GNUmakefile: Avoid 'else COND', which older GNU make
10997         versions do not understand.
10998
10999 2008-08-01  Bruno Haible  <bruno@clisp.org>
11000
11001         Work around bug of HP-UX 10.20 cc with -0.0 literal.
11002         * tests/test-isnanf.h (zero): New variable.
11003         (main): Avoid literal -0.0f.
11004         * tests/test-isnand.h (zero): New variable.
11005         (main): Avoid literal -0.0.
11006         * tests/test-isnanl.h (zero): New variable.
11007         (main): Avoid literal -0.0L.
11008         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
11009         (test_float, test_double, test_long_double): Avoid literals -0.0f,
11010         -0.0, -0.0L.
11011         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
11012         (test_signbitd): Avoid literal -0.0.
11013         (test_signbitl): Avoid literal -0.0L.
11014         * tests/test-ceilf1.c (zero): New variable.
11015         (main): Avoid literal -0.0f.
11016         * tests/test-ceill.c (zero): New variable.
11017         (main): Avoid literal -0.0L.
11018         * tests/test-floorf1.c (zero): New variable.
11019         (main): Avoid literal -0.0f.
11020         * tests/test-floorl.c (zero): New variable.
11021         (main): Avoid literal -0.0L.
11022         * tests/test-roundf1.c (zero): New variable.
11023         (main): Avoid literal -0.0f.
11024         * tests/test-round1.c (zero): New variable.
11025         (main): Avoid literal -0.0.
11026         * tests/test-roundl.c (zero): New variable.
11027         (main): Avoid literal -0.0L.
11028         * tests/test-truncf1.c (zero): New variable.
11029         (main): Avoid literal -0.0f.
11030         * tests/test-trunc1.c (zero): New variable.
11031         (main): Avoid literal -0.0.
11032         * tests/test-truncl.c (zero): New variable.
11033         (main): Avoid literal -0.0L.
11034         * tests/test-frexp.c (zero): New variable.
11035         (main): Avoid literal -0.0.
11036         * tests/test-frexpl.c (zero): New variable.
11037         (main): Avoid literal -0.0L.
11038         * tests/test-ldexpl.c (zero): New variable.
11039         (main): Avoid literal -0.0L.
11040         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
11041         (zerod, zerol): New variables.
11042         (test_function): Avoid literals -0.0, -0.0L.
11043         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
11044         (zerod, zerol): New variables.
11045         (test_function): Avoid literals -0.0, -0.0L.
11046         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
11047         (zerod, zerol): New variables.
11048         (test_function): Avoid literals -0.0, -0.0L.
11049         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
11050         (zerod, zerol): New variables.
11051         (test_function): Avoid literals -0.0, -0.0L.
11052         * tests/test-strtod.c (zero): New variable.
11053         (main): Avoid literal -0.0.
11054         Reported by Jonathan C. Patschke <jp@centtech.com>.
11055
11056 2008-07-31  Jim Meyering  <meyering@redhat.com>
11057
11058         sha256.h: correct definition of SHA224_DIGEST_SIZE
11059         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
11060         Reported by Paulie Pena IV <paulie4@gmail.com>.
11061         Define as 224 / 8, rather than as a literal.
11062         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
11063         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
11064         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
11065
11066 2008-07-31  Bruno Haible  <bruno@clisp.org>
11067
11068         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
11069         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
11070         Reported by Jonathan Patschke <jp@centtech.com>.
11071
11072 2008-07-31  Bruno Haible  <bruno@clisp.org>
11073
11074         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
11075         Reported by Paolo Bonzini <bonzini@gnu.org>.
11076
11077 2008-07-30  Eric Blake  <ebb9@byu.net>
11078
11079         test-strtod: allow compilation without -lm
11080         * tests/test-strtod.c (main): Avoid link dependence on fabs.
11081         Reported by Dennis Clarke <blastwave@gmail.com>.
11082
11083 2008-07-28  Jim Meyering  <meyering@redhat.com>
11084
11085         bootstrap: work also when there are no .po files in po/
11086         * build-aux/bootstrap (update_po_files): Complete the change
11087         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
11088
11089 2008-07-27  Jim Meyering  <meyering@redhat.com>
11090
11091         * users.txt: Add zile.
11092
11093 2008-07-26  Ben Pfaff  <blp@gnu.org>
11094
11095         Add missing dependencies on new m4/exponent[fdl].m4 files.
11096         * modules/isnanf-nolibm: Add m4/exponentf.m4.
11097         * modules/isnand-nolibm: Add m4/exponentd.m4.
11098         * modules/isnanl-nolibm: Add m4/exponentl.m4.
11099         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
11100         m4/isnan[fdl].m4, because the macros actually used moved.
11101         Reported by Jim Meyering.
11102
11103 2008-07-14  Ben Pfaff  <blp@gnu.org>
11104
11105         Add isinf module.
11106         * lib/isinf.c: New file.
11107         * lib/math.in.h: Define isinf macro if we have decided to replace
11108         it.
11109         * m4/isinf.m4: New file.
11110         * m4/math_h.m4: Initialize and substitute variables for isinf
11111         module.
11112         * modules/isinf: New file.
11113         * modules/isinf-tests: New file.
11114         * modules/math: Add substitutions for new module.
11115         * tests/test-isinf.c: New file.
11116         * doc/posix-functions/isinf.texi: Mention new module.
11117         * MODULES.html.sh: Mention new module.
11118
11119 2008-07-14  Ben Pfaff  <blp@gnu.org>
11120
11121         Factor out some macros for use by additional modules.
11122         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
11123         exponentf.m4.
11124         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
11125         exponentd.m4.
11126         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
11127         file exponentl.m4.
11128         * m4/exponentf.m4: New file.
11129         * m4/exponentd.m4: New file.
11130         * m4/exponentl.m4: New file.
11131         * modules/isnanf: Use new file m4/exponentf.m4.
11132         * modules/isnand: Use new file m4/exponentd.m4.
11133         * modules/isnanl: Use new file m4/exponentl.m4.
11134
11135 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
11136
11137         mktime.c: normalize tp->tm_isdst value to -1/0/1.
11138         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
11139         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
11140         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
11141
11142         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
11143         readlink on platforms without PATH_MAX.
11144
11145 2008-07-21  Eric Blake  <ebb9@byu.net>
11146
11147         Warn, not fail, on stale version.
11148         * top/GNUmakefile (_curr-ver): Tone down previous patch.
11149
11150         Don't allow installation with stale devel version number.
11151         * top/GNUmakefile (_is-install-target): New macro.
11152         (_curr-ver): Forbid installation with stale version number.
11153
11154 2008-07-20  Bruno Haible  <bruno@clisp.org>
11155
11156         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
11157         TESTS_ENVIRONMENT.
11158         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
11159
11160 2008-07-20  Bruno Haible  <bruno@clisp.org>
11161
11162         * lib/c-stack.h (c_stack_action): Add documentation.
11163         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
11164
11165 2008-07-20  Bruno Haible  <bruno@clisp.org>
11166
11167         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
11168         * modules/readlink (License): Likewise.
11169
11170 2008-07-17  Eric Blake  <ebb9@byu.net>
11171
11172         * modules/c-stack (Link): Fix typo.
11173
11174         Make c-stack use libsigsegv, when available.
11175         * modules/c-stack (Depends-on): Add libsigsegv.
11176         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
11177         needed.
11178         * lib/c-stack.c (SIGSTKSZ): Define fallback.
11179         (segv_handler, overflow_handler, c_stack_action)
11180         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
11181         implementation when libsigsegv is available, but only when using
11182         the library is necessary.
11183         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
11184         comment, explaining why XSI check fails on Linux.
11185         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
11186         * tests/test-c-stack2.sh: Tweak skip message.
11187         * NEWS: Document new link-time requirements.
11188
11189 2008-07-16  Eric Blake  <ebb9@byu.net>
11190
11191         c-stack: Expose false positives when not using libsigsegv.
11192         * modules/c-stack-tests (Files): Expand test.
11193         * tests/test-c-stack.c (main): Add means to conditionally trigger
11194         non-overflow SIGSEGV.
11195         * tests/test-c-stack2.sh: New file.
11196
11197 2008-07-14  Bruno Haible  <bruno@clisp.org>
11198
11199         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
11200         Reported by Eric Blake.
11201
11202 2008-07-14  Sam Steingold  <sds@gnu.org>
11203             Bruno Haible  <bruno@clisp.org>
11204
11205         New module libsigsegv.
11206         * modules/libsigsegv: New file.
11207         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
11208         modifications.
11209         * MODULES.html.sh (Signal handling): New section.
11210
11211 2008-07-14  Bruno Haible  <bruno@clisp.org>
11212
11213         * modules/unictype/ctype-* (Description): Add the word "function".
11214         Improves the resulting doc in MODULES.html.
11215
11216 2008-07-12  Ben Pfaff  <blp@gnu.org>
11217
11218         Add longlong module.
11219         * modules/longlong: New file.
11220
11221 2008-07-12  Bruno Haible  <bruno@clisp.org>
11222
11223         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
11224         to empty.
11225
11226 2008-07-10  Ben Pfaff  <blp@gnu.org>
11227
11228         Add isnan module.
11229         * doc/posix-functions/isnan.texi: Mention new module.
11230         * lib/math.in.h: Define isnan macro if we have decided to replace
11231         it.
11232         * m4/isnan.m4: New file.
11233         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
11234         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
11235         also.
11236         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
11237         redundancy.
11238         * m4/math_h.m4: Initialize and substitute variables for isnan
11239         module.
11240         * modules/isnan: New file.
11241         * modules/isnan-tests: New file.
11242         * modules/math: Add substitutions for new module.
11243         * tests/test-isnan.c: New file.
11244         * MODULES.html.sh: Mention new module.
11245
11246 2008-07-10  Ben Pfaff  <blp@gnu.org>
11247
11248         Add isnanf module.
11249         * lib/isnanf.m4: New file.
11250         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
11251         (gl_HAVE_ISNANF_IN_LIBM): New macro.
11252         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
11253         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
11254         * modules/isnanf: New file.
11255         * modules/isnanf-tests: New file.
11256         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
11257         files.
11258         * tests/test-isnanf-nolibm.c: factored most of its contents into
11259         new file tests/test-isnanf.h.
11260         * tests/test-isnanf.h: New file.
11261         * tests/test-isnanf.c: New file.
11262         * MODULES.html.sh: Mention new module.
11263         * doc/glibc-functions/isnanf.texi: Mention new module.
11264
11265 2008-07-10  Ben Pfaff  <blp@gnu.org>
11266
11267         Add isnand module.
11268         * lib/isnand.h: New file.
11269         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
11270         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
11271         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
11272         functionality also.
11273         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
11274         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
11275         (gl_HAVE_ISNAND_IN_LIBM): New macro.
11276         * modules/isnand: New file.
11277         * modules/isnand-tests: New file.
11278         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
11279         files.
11280         * tests/test-isnand-nolibm.c: factored most of its contents into
11281         new file tests/test-isnand.h.
11282         * tests/test-isnand.h: New file.
11283         * tests/test-isnand.c: New file.
11284         * MODULES.html.sh: Mention new module.
11285
11286 2008-07-10  Ben Pfaff  <blp@gnu.org>
11287
11288         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
11289         * lib/isnand.h: Rename lib/isnand-nolibm.h.
11290         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
11291         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
11292         * modules/isnanf-nolibm: Update references to renamed files.
11293         * modules/isnand-nolibm: Likewise.
11294         * modules/isnanf-nolibm-tests: Likewise.
11295         * modules/isnand-nolibm-tests: Likewise.
11296         * lib/frexp.c: Likewise.
11297         * lib/isfinite.c: Likewise.
11298         * lib/signbitd.c: Likewise.
11299         * lib/signbitf.c: Likewise.
11300         * lib/vasnprintf.c: Likewise.
11301         * tests/test-ceilf1.c: Likewise.
11302         * tests/test-ceilf2.c: Likewise.
11303         * tests/test-floorf1.c: Likewise.
11304         * tests/test-floorf2.c: Likewise.
11305         * tests/test-frexp.c: Likewise.
11306         * tests/test-round1.c: Likewise.
11307         * tests/test-round2.c: Likewise.
11308         * tests/test-roundf1.c: Likewise.
11309         * tests/test-strtod.c: Likewise.
11310         * tests/test-trunc1.c: Likewise.
11311         * tests/test-trunc2.c: Likewise.
11312         * tests/test-truncf1.c: Likewise.
11313         * tests/test-truncf2.c: Likewise.
11314         * NEWS: Mention the renamed header files.
11315
11316 2008-07-11  Jim Meyering  <meyering@redhat.com>
11317
11318         vc-list-files: make the last-resort awk code more portable
11319         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
11320         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
11321         does not support it.
11322
11323 2008-07-10  Eric Blake  <ebb9@byu.net>
11324
11325         Work with tar's bootstrap.
11326         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
11327         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
11328         an m4 comment.
11329
11330 2008-07-09  Jim Meyering  <meyering@redhat.com>
11331
11332         posix-shell.m4: fix typo that made this test malfunction
11333         * m4/posix-shell.m4: Remove capitalization in variable name.
11334
11335 2008-07-08  Bruno Haible  <bruno@clisp.org>
11336
11337         * m4/onceonly.m4: Update comments.
11338         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11339
11340 2008-07-04  Jim Meyering  <meyering@redhat.com>
11341
11342         * users.txt: Add vc-dwim.
11343         (bison, coreutils): Use the gitweb URL.
11344
11345 2008-07-03  Jim Meyering  <meyering@redhat.com>
11346
11347         * users.txt: Add libffcall.  From Sam Steingold.
11348
11349 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
11350
11351         getdate.y: do not ignore TZ with relative day, month or year offset
11352         * lib/getdate.y (get_date): Move the tz-handling block to follow the
11353         relative-date-handling, since otherwise, the latter would clobber the
11354         sole output (an updated Start value) of the tz-handling block.
11355         * tests/test-getdate.c: Tests for the fix
11356
11357 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11358
11359         Recognize 'foo_LIBRARIES += libgnu.a'.
11360         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
11361         makefile snippet has already specified an installation location,
11362         also using '+='.
11363
11364 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
11365
11366         getdate.y: factor out common actions
11367         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
11368         Use them in place of open-coded actions.
11369
11370 2008-07-01  Simon Josefsson  <simon@josefsson.org>
11371
11372         Add self-test for getdate module.
11373         * modules/getdate-tests: New file.
11374         * tests/test-getdate.c: New file.
11375
11376 2008-06-29  Bruno Haible  <bruno@clisp.org>
11377
11378         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
11379         .gitignore.
11380         Reported by Sylvain Beucler <beuc@beuc.net>.
11381
11382 2008-06-29  Bruno Haible  <bruno@clisp.org>
11383
11384         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
11385         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
11386
11387 2008-06-29  Bruno Haible  <bruno@clisp.org>
11388
11389         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
11390         EXTRA_DIST.
11391         Reported by Sylvain Beucler <beuc@beuc.net>.
11392
11393 2008-06-26  Jim Meyering  <meyering@redhat.com>
11394
11395         make several modules depend on the "open" module
11396         This provides slightly increased consistency when opening-for-write
11397         the name of a non-directory spelled with a trailing slash.
11398         * modules/chdir-safer: Likewise.
11399         * modules/chown: Likewise.
11400         * modules/clean-temp: Likewise.
11401         * modules/copy-file: Likewise.
11402         * modules/fchdir: Likewise.
11403         * modules/fcntl-safer: Likewise.
11404         * modules/pipe: Likewise.
11405         * modules/utime: Likewise.
11406         Prompted by Eric Blake and Bruno Haible.
11407
11408 2008-06-24  Andreas Schwab  <schwab@suse.de>
11409
11410         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
11411         literals can be used as initializers for global variables.
11412
11413 2008-06-23  Eric Blake  <ebb9@byu.net>
11414
11415         Make gnulib-cache.m4 easier to diff.
11416         * gnulib-tool (func_import): Allow newlines when reading cached
11417         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
11418
11419 2008-06-23  Bruno Haible  <bruno@clisp.org>
11420
11421         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
11422         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
11423         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
11424         m4/signalblocking.m4.
11425         (gl_PREREQ_SIGACTION): Don't invoke it.
11426         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
11427         gl_PREREQ_SIG_HANDLER_H.
11428         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
11429         Don't check for sigaction here.
11430
11431 2008-06-23  Bruno Haible  <bruno@clisp.org>
11432
11433         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
11434         (install_handlers): Don't set the SA_RESETHAND flag.
11435
11436 2008-06-23  Bruno Haible  <bruno@clisp.org>
11437
11438         * m4/sigaction.m4: Comment fixes.
11439         * lib/signal.in.h: Likewise.
11440
11441 2008-06-23  Eric Blake  <ebb9@byu.net>
11442
11443         Fix typo.
11444         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
11445
11446         Avoid SA_ namespace.
11447         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
11448         Reported by Ralf Wildenhues.
11449
11450         Avoid test failure due to SA_RESTORER.
11451         * tests/test-sigaction.c (SA_MASK): New macro.
11452         (main): Avoid failing due to extension flags being set.
11453         Reported by Jim Meyering.
11454
11455         Revert use of sig-handler.h in sigprocmask.c.
11456         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
11457         it requires the existence of struct sigaction.
11458         * lib/sigprocmask.c (handler_t): Restore typedef.
11459         (rpl_signal, old_handlers): Use local type.
11460
11461 2008-06-22  Bruno Haible  <bruno@clisp.org>
11462
11463         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
11464         conditionally.
11465         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11466
11467 2008-06-22  Bruno Haible  <bruno@clisp.org>
11468
11469         * doc/posix-functions/siginterrupt.texi: Move note.
11470
11471         * lib/signal.in.h (SA_RESTART): New macro.
11472         * lib/sigaction.c: Update comment.
11473
11474         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
11475
11476         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
11477         (gl_PREREQ_SIGPROCMASK): Invoke it.
11478         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
11479
11480         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
11481
11482         * lib/sigprocmask.c: Update a comment.
11483
11484 2008-06-21  Eric Blake  <ebb9@byu.net>
11485
11486         Use sigaction module rather than signal().
11487         * modules/c-stack (Depends-on): Add sigaction.
11488         * modules/fatal-signal (Depends-on): Likewise.
11489         * modules/nanosleep (Depends-on): Likewise.
11490         * modules/sigprocmask (Files): Add sig-handler.h.
11491         * modules/sigaction (Files): Likewise.
11492         * lib/sig-handler.h (get_handler): New file, suggested by Paul
11493         Eggert.
11494         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
11495         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
11496         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
11497         (init_fatal_signals): Likewise.
11498         * lib/nanosleep.c (rpl_nanosleep): Likewise.
11499         (siginterrupt): Delete fallback.
11500         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
11501         instead.
11502         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
11503         siginterrupt.
11504
11505         New module sigaction, for mingw.
11506         * modules/sigaction: New module...
11507         * modules/sigaction-tests: ...and its test.
11508         * m4/sigaction.m4: New file.
11509         * lib/sigaction.c: Likewise.
11510         * tests/test-sigaction.c: Likewise.
11511         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
11512         * modules/signal (Makefile.am): Likewise.
11513         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
11514         needed.
11515         * doc/posix-headers/signal.texi (signal.h): Mention provided
11516         types.
11517         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
11518         that sigaction is preferable.
11519         * doc/posix-functions/sigaction.texi (sigaction): Mention new
11520         module.
11521         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11522         sigaction.
11523
11524         Improve robustness of sigprocmask by overriding signal.
11525         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
11526         is in use.
11527         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
11528         (SIGKILL, SIGSTOP): Provide fallbacks.
11529         (rpl_signal): Implement.
11530         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
11531         signal can be called inside handlers.
11532
11533         Fix nanosleep module on mingw.
11534         * modules/nanosleep (Depends-on): Add sys_select.
11535         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
11536
11537         Fix licensing of sigprocmask.
11538         * modules/raise (License): Relicense as LGPL.
11539
11540 2008-06-21  Bruno Haible  <bruno@clisp.org>
11541
11542         * lib/propername.c (proper_name_utf8): Don't use the transliterated
11543         result if it contains question marks.
11544         Reported by Michael Geng <linux@michaelgeng.de>.
11545
11546 2008-06-19  Bruno Haible  <bruno@clisp.org>
11547
11548         Fix CVS-ism.
11549         * doc/gnulib.texi: Include updated-stamp.texi.
11550         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
11551         (updated-stamp.texi): New rule.
11552         (gnulib.info): Depend on it.
11553         * doc/.gitignore: Add updated-stamp.texi.
11554         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
11555
11556 2008-06-19  Bruno Haible  <bruno@clisp.org>
11557
11558         * doc/Makefile (gnulib.info): Update and simplify dependencies.
11559         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11560
11561 2008-06-19  Eric Blake  <ebb9@byu.net>
11562
11563         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
11564         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
11565         Reported by Stepan Kasal.
11566
11567 2008-06-18  Bruno Haible  <bruno@clisp.org>
11568
11569         * lib/fatal-signal.c (init_fatal_signals): Add comment.
11570         Reported by Eric Blake.
11571
11572 2008-06-18  Eric Blake  <ebb9@byu.net>
11573
11574         Work around cygwin 1.5.25 strsignal bug.
11575         * tests/test-strsignal.c: Allow for const char *.
11576         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
11577
11578 2008-06-18  Simon Josefsson  <simon@josefsson.org>
11579
11580         * users.txt: Update URL to article and add author/date
11581         information.
11582
11583 2008-06-17  Bruno Haible  <bruno@clisp.org>
11584
11585         New macro gl_DISABLE_THREADS.
11586         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
11587         if the user did not pass --enable-threads or --disable-threads option.
11588         (gl_DISABLE_THREADS): New macro.
11589         Reported by Eric Blake <ebb9@byu.net>.
11590
11591 2008-06-17  Bruno Haible  <bruno@clisp.org>
11592
11593         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
11594         when the macro ignores it.
11595         Based on a patch by Eric Blake <ebb9@byu.net>.
11596
11597 2008-06-17  Bruno Haible  <bruno@clisp.org>
11598
11599         * modules/tls (License): Change to LGPLv2+.
11600         Reported by Eric Blake.
11601
11602 2008-06-17  Eric Blake  <ebb9@byu.net>
11603
11604         Simplify c-stack prerequisites.
11605         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
11606         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
11607         no longer requires <ucontext.h> to exist.  Optimize setrlimit
11608         check.
11609         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
11610         <sys/resource.h>.
11611
11612         Move c-stack test into testsuite.
11613         * modules/c-stack-tests: New file.
11614         * lib/c-stack.c [DEBUG]: Move test program...
11615         * tests/test-c-stack.c: ...into this new file.  Skip rather than
11616         fail test if sigaltstack is lacking.
11617         * tests/test-c-stack.sh: New driver file.
11618
11619 2008-06-16  Eric Blake  <ebb9@byu.net>
11620
11621         Use raise module consistently.
11622         * modules/fatal-signal (Depends-on): Add raise.
11623         * modules/sigprocmask (Depends-on): Likewise.
11624         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
11625         * lib/sigprocmask.c (sigprocmask): Likewise.
11626         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
11627         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
11628
11629         Fix compliance bug in sigpending.
11630         * lib/sigprocmask.c (sigpending): Return pending array via
11631         parameter, not return value.
11632
11633 2008-06-14  Eric Blake  <ebb9@byu.net>
11634
11635         Improve obstack-printf test code.
11636         * tests/test-obstack-printf.c (test_function): Fix comment, and
11637         simplify usage of obstack_* in macros.  Add a test for coverage.
11638         Reported by Bruno Haible.
11639
11640 2008-06-14  Bruno Haible  <bruno@clisp.org>
11641
11642         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
11643         array size as a constant, not as a const variable.
11644         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
11645         AC_USE_SYSTEM_EXTENSIONS.
11646         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
11647         Test whether the obstack_printf function actually exists.
11648         * modules/obstack-printf (Depends-on): Add extensions.
11649         (Include): Remove obstack.h.
11650         * modules/obstack-printf-posix (Depends-on): Add extensions.
11651         (Include): Remove obstack.h.
11652
11653 2008-06-13  Eric Blake  <ebb9@byu.net>
11654
11655         Add obstack-printf and obstack-printf-posix modules.
11656         * modules/obstack-printf: New file.
11657         * modules/obstack-printf-posix: Likewise.
11658         * MODULES.html.sh (Misc): Mention them.
11659         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
11660         Likewise.
11661         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
11662         Likewise.
11663         * modules/stdio (Makefile.am): Accomodate new modules.
11664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11665         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
11666         Declare.
11667         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
11668         functions.
11669         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
11670         (gl_REPLACE_OBSTACK_PRINTF): New macros
11671         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
11672         * tests/test-obstack-printf.c: New file.
11673         * modules/obstack-printf-tests: Likewise.
11674         * modules/obstack-printf-posix-tests: Likewise.
11675
11676 2008-06-11  Bruno Haible  <bruno@clisp.org>
11677
11678         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
11679         * lib/open.c: Include errno.h.
11680         (open): Fail when attempting to write to a file that has a trailing
11681         slash.
11682         * tests/test-open.c (main): Test against trailing slash bug.
11683         * doc/posix-functions/open.texi: Mention the trailing slash bug.
11684
11685 2008-06-10  Bruno Haible  <bruno@clisp.org>
11686
11687         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
11688         for $? to work inside the trap command, with various /bin/sh-s.
11689         * tests/test-vc-list-files-cvs.sh: Likewise.
11690
11691 2008-06-10  Bruno Haible  <bruno@clisp.org>
11692
11693         * lib/acl-internal.h: Don't include gettext.h here.
11694         * lib/set-mode-acl.c: Include gettext.h here.
11695         * lib/copy-acl.c: Likewise.
11696
11697 2008-06-10  Bruno Haible  <bruno@clisp.org>
11698
11699         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
11700         * lib/wait-process.c (wait_subprocess): Likewise.
11701         * lib/execute.h (execute): Add termsigp argument.
11702         * lib/execute.c (execute): Likewise.
11703         * lib/csharpcomp.c (compile_csharp_using_pnet,
11704         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
11705         * lib/csharpexec.c (execute_csharp_using_pnet,
11706         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
11707         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
11708         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
11709         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
11710         is_jikes_present): Update.
11711         * lib/javaexec.c (execute_java_class): Update.
11712         * lib/javaversion.c (execute_and_read_line): Update.
11713         * NEWS: Document the changes.
11714         Reported by Eric Blake.
11715
11716 2008-06-10  Eric Blake  <ebb9@byu.net>
11717
11718         Add missing include.
11719         * tests/test-strstr.c (includes): Add <signal.h>.
11720         * tests/test-strcasestr.c (includes): Likewise.
11721         * tests/test-memmem.c (includes): Likewise.
11722
11723 2008-06-10  Bruno Haible  <bruno@clisp.org>
11724
11725         * lib/wait-process.c (wait_subprocess): Add an assertion.
11726
11727 2008-06-10  Bruno Haible  <bruno@clisp.org>
11728
11729         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
11730
11731 2008-06-10  Bruno Haible  <bruno@clisp.org>
11732
11733         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
11734         using alarm().
11735         * tests/test-strcasestr.c (main): Likewise.
11736         * tests/test-strstr.c (main): Likewise.
11737
11738 2008-06-09  Bruno Haible  <bruno@clisp.org>
11739
11740         Work around the Solaris 10 ACE ACLs ABI change.
11741         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
11742         declare if ACL_NO_TRIVIAL is present.
11743         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
11744         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
11745         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
11746         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
11747         define if ACL_NO_TRIVIAL is present.
11748         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
11749         and use the current ABI.
11750         (file_has_acl): Use same #if condition as elsewhere.
11751         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
11752         in use, and use the current ABI.
11753         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
11754         Reported by Jim Meyering.
11755
11756 2008-06-09  Eric Blake  <ebb9@byu.net>
11757
11758         Work around environments that (stupidly) ignore SIGALRM.
11759         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
11760         before using alarm().
11761         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11762         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11763         Reported by Ian Beckwith <ianb@erislabs.net>.
11764
11765         Produce autobuild blurb earlier in log.
11766         * modules/autobuild (configure.ac-early): Move AB_INIT here.
11767
11768 2008-06-09  Jim Meyering  <meyering@redhat.com>
11769         and OndÅ™ej Vašík  <ovasik@redhat.com>
11770
11771         utimens.c: correct kernel bug work-around
11772         OndÅ™ej Vašík found that the invalid return value of 280 indicates
11773         failure, not success, and the kernel bug we're trying to work
11774         around affects not just the utimensat call, but also the fallback
11775         futimens call.
11776         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
11777         not success.
11778         [HAVE_FUTIMENS]: Use the same work-around, here.
11779
11780 2008-06-09  Jim Meyering  <meyering@redhat.com>
11781
11782         add more guards around definition of ACE_-related code
11783         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
11784         ALLOW and ACE_OWNER are also defined.
11785
11786 2008-06-08  Bruno Haible  <bruno@clisp.org>
11787
11788         * lib/acl-internal.h: Add me as co-author.
11789         * lib/file-has-acl.c: Likewise.
11790         * lib/set-mode-acl.c: Likewise.
11791         * lib/copy-acl.c: Likewise.
11792
11793 2008-06-08  Bruno Haible  <bruno@clisp.org>
11794
11795         Add support for AIX ACLs.
11796         * lib/acl-internal.h (acl_nontrivial): New declaration.
11797         * lib/file-has-acl.c (acl_nontrivial): New function.
11798         (file_has_acl): Add implementation using AIX 4 ACL API.
11799         * lib/set-mode-acl.c (qset_acl): Likewise.
11800         * lib/copy-acl.c (qcopy_acl): Likewise.
11801
11802 2008-06-08  Bruno Haible  <bruno@clisp.org>
11803
11804         Add support for HP-UX ACLs.
11805         * lib/acl-internal.h (acl_nontrivial): New declaration.
11806         * lib/file-has-acl.c (acl_nontrivial): New function.
11807         (file_has_acl): Add implementation using HP-UX 11 ACL API.
11808         * lib/set-mode-acl.c (qset_acl): Likewise.
11809         * lib/copy-acl.c (qcopy_acl): Likewise.
11810
11811 2008-06-08  Bruno Haible  <bruno@clisp.org>
11812
11813         Add support for Cygwin ACLs.
11814         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
11815         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
11816         the chmod_or_fchmod call.
11817         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
11818
11819 2008-06-08  Bruno Haible  <bruno@clisp.org>
11820
11821         Fix bug with setuid modes in Solaris 10+ code.
11822         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
11823         succeeded, when the mode contains some special bits.
11824
11825 2008-06-08  Bruno Haible  <bruno@clisp.org>
11826
11827         Add support for Solaris 7..10 ACLs.
11828         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
11829         declarations.
11830         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
11831         functions.
11832         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
11833         * lib/set-mode-acl.c (qset_acl): Likewise.
11834         * lib/copy-acl.c (qcopy_acl): Likewise.
11835
11836 2008-06-08  Bruno Haible  <bruno@clisp.org>
11837
11838         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
11839         declaration.
11840         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
11841         (acl_access_nontrivial): Remove MacOS X case.
11842         (file_has_acl): Use acl_extended_nontrivial.
11843         * lib/copy-acl.c (qcopy_acl): Likewise.
11844
11845 2008-06-08  Bruno Haible  <bruno@clisp.org>
11846
11847         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
11848
11849 2008-06-08  Jim Meyering  <meyering@redhat.com>
11850
11851         * modules/acl (Maintainer): Add Bruno Haible.
11852
11853 2008-06-07  Bruno Haible  <bruno@clisp.org>
11854
11855         Improve support for Tru64 ACLs.
11856         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
11857         ACL on OSF/1.
11858
11859 2008-06-07  Bruno Haible  <bruno@clisp.org>
11860
11861         Add support for MacOS X ACLs.
11862         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
11863         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
11864         * lib/set-mode-acl.c (qset_acl): Likewise.
11865         * lib/copy-acl.c (qcopy_acl): Likewise.
11866
11867 2008-06-07  Bruno Haible  <bruno@clisp.org>
11868
11869         Fix memory leak introduced on 2008-05-22.
11870         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
11871         use.
11872
11873 2008-06-07  Bruno Haible  <bruno@clisp.org>
11874
11875         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
11876         to construct an empty ACL.
11877
11878 2008-06-07  Bruno Haible  <bruno@clisp.org>
11879
11880         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
11881         precisely.
11882         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
11883
11884 2008-06-07  Bruno Haible  <bruno@clisp.org>
11885
11886         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
11887         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
11888
11889 2008-06-07  Bruno Haible  <bruno@clisp.org>
11890
11891         * doc/posix-functions/_setjmp.texi: Explain the use of this function
11892         regardless of POSIX.
11893         * doc/posix-functions/_longjmp.texi: Likewise.
11894         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
11895         SystemV platform in this case.
11896
11897 2008-06-06  Eric Blake  <ebb9@byu.net>
11898
11899         Document abort() bugs.
11900         * doc/posix-functions/abort.texi (abort): Mention anomalies.
11901
11902         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
11903         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
11904         sigsetjmp.
11905         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
11906         siglongjmp, but only as a macro.
11907         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
11908         is obsolete.
11909         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
11910
11911         Tweak documentation to cover cygwin argz bugs.
11912         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
11913         argz bug fix; no code change needed since no cygwin releases
11914         occurred between the last fix and the bug being tested.
11915         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
11916         module and recently fixed cygwin bugs.
11917         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
11918         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
11919         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
11920         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
11921         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
11922         Likewise.
11923         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
11924         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
11925         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
11926         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
11927         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
11928         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
11929         Likewise.
11930
11931         Avoid gcc warning on cygwin.
11932         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
11933         !ACL_NO_TRIVIAL]: Avoid unused variable.
11934
11935 2008-06-05  Eric Blake  <ebb9@byu.net>
11936
11937         Be tolerant of UNKNOWN version in gnulib-tool test dir.
11938         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
11939         git-version-gen fails to come up with a version.
11940         Reported by Simon Josefsson.
11941
11942 2008-06-05  Jim Meyering  <meyering@redhat.com>
11943             Paul Eggert  <eggert@cs.ucla.edu>
11944
11945         utimens.c: work around a probable Linux kernel bug
11946         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
11947         appears to be a kernel bug that causes utimensat to return 280
11948         instead of 0, indicating success.
11949
11950 2008-06-04  Bruno Haible  <bruno@clisp.org>
11951
11952         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
11953         2008-06-01 commit.
11954
11955 2008-06-04  Bruno Haible  <bruno@clisp.org>
11956
11957         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
11958         * lib/file-has-acl.c (acl_access_nontrivial): New function.
11959         (file_has_acl): Use it. Save errno afterwards.
11960         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
11961
11962 2008-06-03  Bruno Haible  <bruno@clisp.org>
11963
11964         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
11965         draft code. Simplify #ifs.
11966         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
11967         Put Solaris code after POSIX-draft code. Fix comments regarding
11968         Solaris 10, HP-UX. Mention Cygwin.
11969         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
11970
11971 2008-06-03  Eric Blake  <ebb9@byu.net>
11972
11973         Provide fallback for older kernels.
11974         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
11975         Provide runtime fallback if kernel lacks support.
11976         Reported by Mike Frysinger.
11977
11978 2008-06-02  Bruno Haible  <bruno@clisp.org>
11979
11980         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
11981         it exists.
11982
11983 2008-06-02  Bruno Haible  <bruno@clisp.org>
11984
11985         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
11986         * lib/copy-acl.c (qcopy_acl): Update comment.
11987
11988 2008-06-02  Bruno Haible  <bruno@clisp.org>
11989
11990         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
11991         like ACL APIs.
11992
11993 2008-06-02  Bruno Haible  <bruno@clisp.org>
11994
11995         * tests/test-file-has-acl.sh: Use different code for Cygwin.
11996         * tests/test-set-mode-acl.sh: Likewise.
11997         * tests/test-copy-acl.sh: Likewise.
11998         * tests/test-copy-file.sh: Likewise.
11999
12000 2008-06-02  Bruno Haible  <bruno@clisp.org>
12001
12002         * tests/test-file-has-acl.sh: Remove unused code.
12003
12004 2008-06-01  Bruno Haible  <bruno@clisp.org>
12005
12006         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
12007         (copy_acl): Just a wrapper around qcopy_acl that emits the error
12008         messages.
12009         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
12010
12011 2008-06-01  Bruno Haible  <bruno@clisp.org>
12012
12013         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
12014         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
12015         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
12016         APIs.
12017         * modules/acl-tests (configure.ac): Remove tests now contained in
12018         m4/acl.m4.
12019
12020 2008-06-02  Jim Meyering  <meyering@redhat.com>
12021
12022         announce-gen: use a better key-server host name
12023         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
12024         it may be more consistently reliable.  Suggested by Werner Koch
12025         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
12026
12027 2008-06-01  Bruno Haible  <bruno@clisp.org>
12028
12029         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
12030         Reported by Voroskoi Andras <voroskoi@gmail.com>.
12031
12032 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
12033
12034         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
12035
12036 2008-06-01  Bruno Haible  <bruno@clisp.org>
12037
12038         New ACL tests.
12039         * tests/test-file-has-acl.sh: New file.
12040         * tests/test-file-has-acl.c: New file.
12041         * tests/test-set-mode-acl.sh: New file.
12042         * tests/test-set-mode-acl.c: New file.
12043         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
12044         * tests/test-copy-acl.c: New file.
12045         * modules/acl-tests: New file, based on modules/copy-file-tests.
12046         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
12047         (Depends-on): Add acl-tests.
12048         (configure.ac): Remove checks.
12049         (Makefile.am): Don't create test-sameacls program here any more.
12050
12051 2008-06-01  Bruno Haible  <bruno@clisp.org>
12052
12053         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
12054         * tests/test-sameacls.c: Include progname.h.
12055         (main): Invoke set_program_name. Portability fixes for MacOS X,
12056         Solaris, HP-UX.
12057
12058 2008-06-01  Bruno Haible  <bruno@clisp.org>
12059
12060         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
12061         function.
12062         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
12063
12064 2008-06-01  Bruno Haible  <bruno@clisp.org>
12065
12066         * modules/rpmatch (Depends-on): Add strdup.
12067
12068 2008-06-01  Bruno Haible  <bruno@clisp.org>
12069
12070         * lib/pipe.c: Include unistd-safer.h.
12071         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
12072         * modules/pipe (Depends-on): Add unistd-safer.
12073
12074 2008-05-30  Simon Josefsson  <simon@josefsson.org>
12075
12076         * modules/autobuild (configure.ac): Call AB_INIT.
12077
12078 2008-05-30  Simon Josefsson  <simon@josefsson.org>
12079
12080         * tests/test-getaddrinfo.c: Don't print debug messages by default.
12081         Suggested by Bruno Haible <bruno@clisp.org>.
12082
12083 2008-05-30  Simon Josefsson  <simon@josefsson.org>
12084
12085         * tests/test-base64.c: Cast size_t to unsigned long when invoking
12086         printf.  Use %lu instead of %d.  Reported by Bruno Haible
12087         <bruno@clisp.org>.
12088
12089 2008-05-29  Eric Blake  <ebb9@byu.net>
12090
12091         Prefer new POSIX 200x interfaces over futimesat.
12092         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
12093         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
12094         when available.
12095         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
12096
12097 2008-05-28  Bruno Haible  <bruno@clisp.org>
12098
12099         * modules/stpcpy (License): Change to LGPLv2+.
12100         Requested by David Lutterkort <dlutter@redhat.com>.
12101
12102 2008-05-27  Bruno Haible  <bruno@clisp.org>
12103
12104         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
12105         current mingw.
12106         Reported by Jose E. Marchesi <jemarch@gnu.org>.
12107
12108 2008-05-27  Bruno Haible  <bruno@clisp.org>
12109
12110         * modules/iconv_open (Link): New section, from module 'iconv'.
12111         * modules/striconv (Link): Likewise.
12112         * modules/striconveh (Link): Likewise.
12113         * modules/xstriconv (Link): Likewise.
12114         * modules/unicodeio (Link): Likewise.
12115         * modules/propername (Link): Likewise.
12116         Reported by Jim Meyering.
12117
12118 2008-05-26  Jim Meyering  <meyering@redhat.com>
12119
12120         sha256: do not artificially restrict buffer length to be < 2^32
12121         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
12122         uint32_t to size_t.
12123         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
12124         to match.
12125
12126         avoid unaligned access errors, e.g., on sparc
12127         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
12128         direct access through a possibly-unaligned uint64* pointer.
12129         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
12130         direct access through a possibly-unaligned uint32* pointer.
12131         Prompted by this patch from Tom "spot" Callaway:
12132         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
12133
12134         sha512.c: fix typo in comment
12135         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
12136
12137 2008-05-25  Bruno Haible  <bruno@clisp.org>
12138
12139         * lib/set-mode-acl.c: Renamed from lib/acl.c.
12140         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
12141         (Makefile.am): Update lib_SOURCES.
12142
12143 2008-05-25  Bruno Haible  <bruno@clisp.org>
12144
12145         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
12146
12147 2008-05-25  Jim Meyering  <meyering@redhat.com>
12148
12149         useless-if-before-free: freed expr may have white-space differences
12150         * build-aux/useless-if-before-free: Recognize cases in which the
12151         freed expression differs from the tested one in embedded white
12152         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
12153         $1 was used, so we can't make any regexp shy.  Improved tests now
12154         detect this.
12155
12156         useless-if-before-free: accept white space in the expression.
12157         * build-aux/useless-if-before-free: For now, any white space
12158         in the expression must be identical in the free argument.
12159
12160         useless-if-before-free: efficiency tweak
12161         * build-aux/useless-if-before-free: Make the expression-matching
12162         regexp "shy".
12163         Make the *outer* regexp shy, not the expr-matching one.
12164
12165         update code-in-comment to accept cast of free arg
12166         * build-aux/useless-if-before-free: Update regexp.
12167
12168 2008-05-25  Bruno Haible  <bruno@clisp.org>
12169
12170         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
12171         * modules/copy-file-tests (Files, Makefile.am): Update.
12172         * tests/test-copy-file.c (func_test_copy): Update.
12173
12174 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
12175
12176         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
12177
12178 2008-05-23  Bruno Haible  <bruno@clisp.org>
12179
12180         Improve support for ACLs on OSF/1.
12181         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
12182         Remove fallback for unknown flavors of ACLs.
12183
12184 2008-05-22  Bruno Haible  <bruno@clisp.org>
12185
12186         Add support for ACLs on OSF/1.
12187         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
12188         replacements.
12189         (acl_free_text): New macro fallback.
12190         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
12191         acl_free.
12192         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
12193         acl_free_text function. Require AC_C_INLINE.
12194
12195 2008-05-22  Bruno Haible  <bruno@clisp.org>
12196
12197         Make copy_acl work on MacOS X 10.5.
12198         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
12199         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
12200         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
12201         If MODE_INSIDE_ACL, don't assume that every system has the same text
12202         representation for ACLs as FreeBSD.
12203         * lib/copy-acl.c (copy_acl): Add support for platforms with
12204         !MODE_INSIDE_ACL.
12205         * lib/file-has-acl.c (file_has_acl): Likewise.
12206         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
12207         FreeBSD, MacOS X, or IRIX, respectively.
12208
12209 2008-05-22  Bruno Haible  <bruno@clisp.org>
12210
12211         * lib/acl.h: Don't include <sys/acl.h>.
12212         (GETACLCNT): Move fallback to lib/acl-internal.h.
12213         * lib/acl-internal.h: Include <sys/acl.h> here.
12214         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
12215
12216 2008-05-22  Bruno Haible  <bruno@clisp.org>
12217
12218         Split off copy_acl function to separate file.
12219         * lib/copy-acl.c: New file, extracted from lib/acl.c.
12220         * lib/acl.c (copy_acl): Moved function to separate file.
12221         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
12222         * modules/acl (Files): Add lib/copy-acl.c.
12223         (Makefiles.am): Augment lib_SOURCES.
12224
12225 2008-05-22  Bruno Haible  <bruno@clisp.org>
12226
12227         * modules/copy-file-tests: New file.
12228         * tests/test-copy-file.sh: New file.
12229         * tests/test-copy-file.c: New file.
12230         * tests/test-copy-file-sameacls.c: New file.
12231
12232 2008-05-22  Eric Blake  <ebb9@byu.net>
12233
12234         Avoid gcc warning.
12235         * tests/test-memcmp.c (main): Pass NULL indirectly.
12236
12237 2008-05-21  Bruno Haible  <bruno@clisp.org>
12238
12239         Add reference doc about ACLs.
12240         * doc/acl-resources.txt: New file.
12241         * doc/acl-cygwin.txt: New file.
12242
12243 2008-05-21  Bruno Haible  <bruno@clisp.org>
12244
12245         Avoid one more warning from gcc.
12246         * lib/vasnprintf.c (IF_LINT): Update comments.
12247         (VASNPRINTF): Use it also for the 'prefix' array initializer.
12248
12249 2008-05-21  Jim Meyering  <meyering@redhat.com>
12250
12251         avoid a warning from gcc
12252         * lib/vasnprintf.c (IF_LINT): Define.
12253         (scale10_round_decimal_long_double):
12254         Use it to avoid a "may be used uninitialized" warning.
12255         (scale10_round_decimal_double): Likewise.
12256
12257 2008-05-21  Simon Josefsson  <simon@josefsson.org>
12258
12259         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
12260         declared.
12261
12262 2008-05-20  Bruno Haible  <bruno@clisp.org>
12263
12264         * tests/test-memcmp.c (main): Test also the sign of the result. Test
12265         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
12266
12267 2008-05-20  Simon Josefsson  <simon@josefsson.org>
12268
12269         * modules/memcmp-tests: New file.
12270         * tests/test-memcmp.c: New file.
12271
12272 2008-05-19  Bruno Haible  <bruno@clisp.org>
12273
12274         * modules/propername (Notice, configure.ac): Put quoted "..." into
12275         --keyword option.
12276         * lib/propername.h: Update comments accordingly.
12277         Reported by Eric Blake.
12278
12279 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
12280
12281         * modules/getpass-gnu (Depends-on): Add fseeko.
12282
12283 2008-05-19  Simon Josefsson  <simon@josefsson.org>
12284
12285         * modules/base64-tests: New file.
12286
12287 2008-05-19  Bo Borgerson <gigabo@gmail.com>
12288
12289         * lib/base64.c (base64_decode_ctx): If a decode context structure
12290         was passed in use it to ignore newlines.  If a context structure
12291         was _not_ passed in, continue to treat newlines as garbage (this
12292         is the historical behavior).  Formerly base64_decode.
12293         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
12294         takes a decode context structure.
12295         * lib/base64.h (base64_decode): Macro for four-argument calls.
12296         (base64_decode_alloc): Likewise.
12297         * lib/base64.c (base64_decode_ctx): If a decode context structure
12298         was passed in use it to ignore newlines.  If a context structure
12299         was _not_ passed in, continue to treat newlines as garbage (this
12300         is the historical behavior).  Formerly base64_decode.
12301         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
12302         takes a decode context structure.
12303         * lib/base64.h (base64_decode): Macro for four-argument calls.
12304         (base64_decode_alloc): Likewise.
12305
12306 2008-05-19  Jim Meyering  <meyering@redhat.com>
12307
12308         avoid a warning from gcc
12309         * lib/trim.c (IF_LINT): Define.
12310         (trim2): Use it to avoid a "may be used uninitialized" warning.
12311
12312         Fix doc typo.
12313         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
12314
12315 2008-05-19  Bruno Haible  <bruno@clisp.org>
12316
12317         * doc/glibc-functions/getpass.texi: Document limits of other
12318         implementations.
12319
12320 2008-05-19  Simon Josefsson  <simon@josefsson.org>
12321             Bruno Haible <bruno@clisp.org>
12322
12323         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
12324
12325 2008-05-18  Bruno Haible  <bruno@clisp.org>
12326
12327         * modules/propername: New file, from GNU gettext.
12328         * lib/propername.h: New file, from GNU gettext.
12329         * lib/propername.c: New file, from GNU gettext.
12330         * MODULES.html.sh (Internationalization functions): Add propername.
12331
12332 2008-05-16  Jim Meyering  <meyering@redhat.com>
12333             Bruno Haible  <bruno@clisp.org>
12334
12335         Avoid some warnings from "gcc -Wshadow".
12336         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
12337
12338 2008-05-15  Eric Blake  <ebb9@byu.net>
12339
12340         Extend previous patch to cygwin 1.7.0.
12341         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
12342         fast implementation in cygwin >= 1.7.0.
12343         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12344         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12345
12346 2008-05-15  Bruno Haible  <bruno@clisp.org>
12347
12348         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
12349         implementation in glibc >= 2.9.
12350         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12351         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12352
12353 2008-05-15  Bruno Haible  <bruno@clisp.org>
12354
12355         * MODULES.html.sh (Internationalization functions): Remove linebreak.
12356         (Unicode string functions): Add unilbrk/*.
12357         Reported by Karl Berry.
12358
12359 2008-05-15  Eric Blake  <ebb9@byu.net>
12360
12361         Fix violation of <stdbool.h> replacement in regex.
12362         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
12363         * lib/regexec.c (re_search_internal): Likewise.
12364         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
12365
12366 2008-05-15  Jim Meyering  <meyering@redhat.com>
12367
12368         avoid distracting test output when git or cvs is not found
12369         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
12370         * tests/test-vc-list-files-git.sh: Likewise.
12371
12372 2008-05-15  Eric Blake  <ebb9@byu.net>
12373
12374         Glibc finally accepted the memmem speedup code, bugzilla #5514.
12375         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
12376         glibc version.
12377         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12378         * doc/posix-functions/strstr.texi (strstr): Likewise.
12379         * lib/str-two-way.h (MAX): Sychronize with glibc.
12380
12381 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
12382
12383         * lib/regcomp.c (optimize_utf8): Add a note on why we test
12384         opr.ctx_type.
12385         (calc_first): Initialize constraint field.
12386         (duplicate_node_closure): Use it instead of special casing ANCHORS.
12387         Fix grammar.
12388         (duplicate_node): Merge constraint field for all node types.
12389         (calc_eclosure_iter): Look at constraint field for all node types.
12390         * lib/regex_internal.c (create_cd_newstate): Don't look at
12391         opr.ctx_type.
12392
12393 2008-05-14  Bruno Haible  <bruno@clisp.org>
12394
12395         Help GCC to do better code generation.
12396         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
12397         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
12398         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
12399         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
12400         Declare with attribute 'malloc' if supported.
12401
12402 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
12403
12404         use "echo STR|wc -c" rather than unportable "expr length STR"
12405         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
12406         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
12407
12408 2008-05-14  Jim Meyering  <meyering@redhat.com>
12409
12410         use dd ibs=$n count=1 ... rather than less-portable head -c$n
12411         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
12412         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
12413         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
12414         via Collin Lasse.
12415
12416 2008-05-14  Eric Blake  <ebb9@byu.net>
12417
12418         Avoid quadratic growth in gl_LIBSOURCES.
12419         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
12420         Suggested by Bruno Haible.
12421
12422         Test xmemdup0.
12423         * modules/xmemdup0-tests: New file.
12424         * tests/test-xmemdup0.c: Likewise.
12425
12426 2008-05-13  Eric Blake  <ebb9@byu.net>
12427
12428         Split xmemdup0 into its own module.
12429         * modules/xmemdup0: New file.
12430         * lib/xmemdup0.h: Likewise.
12431         * lib/xmemdup0.c: Likewise.
12432         * MODULES.html.sh (Memory management functions): Add xmemdup0.
12433         * lib/xalloc.h (xmemdup0): Remove.
12434         * lib/xmalloc.c (xmemdup0): Likewise.
12435
12436 2008-05-13  Eric Blake  <ebb9@byu.net>
12437             Bruno Haible  <bruno@clisp.org>
12438
12439         Reduce number of forks required during autoconf.
12440         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
12441         and gl_LIBSOURCES_DIR.
12442         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
12443         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
12444         m4_syscmd per file.
12445         <m4_foreach_w>: Move...
12446         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
12447
12448 2008-05-13  Eric Blake  <ebb9@byu.net>
12449
12450         * gnulib-tool: Fix various comment typos.
12451
12452 2008-05-12  Bruno Haible  <bruno@clisp.org>
12453
12454         Tailor the linebreaking algorithm.
12455         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
12456
12457 2008-05-12  Bruno Haible  <bruno@clisp.org>
12458
12459         Update to Unicode 5.0.0.
12460         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
12461         LBP_JV, LBP_JT. Redistribute values.
12462         (unilbrk_table): Change size.
12463         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
12464         Unicode TR#14 rev. 22.
12465         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
12466         LBP_JV, LBP_JT. Redistribute values.
12467         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
12468         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
12469         Update.
12470         * lib/unilbrk/lbrkprop1.h: Regenerated.
12471         * lib/unilbrk/lbrkprop2.h: Regenerated.
12472         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
12473         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
12474         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
12475         Likewise.
12476         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
12477         Likewise.
12478         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
12479         result.
12480         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12481         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12482         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12483         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
12484         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
12485         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
12486
12487 2008-05-11  Bruno Haible  <bruno@clisp.org>
12488
12489         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
12490
12491 2008-05-11  Bruno Haible  <bruno@clisp.org>
12492
12493         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
12494         * modules/unilbrk/gen-lbrk: New file.
12495
12496 2008-05-11  Bruno Haible  <bruno@clisp.org>
12497
12498         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
12499         * m4/sha512.m4 (gl_SHA512): Likewise.
12500
12501 2008-05-11  Jim Meyering  <meyering@redhat.com>
12502
12503         New modules: crypto/sha256, crypto/sha512 (from coreutils)
12504         * modules/crypto/sha256: New file.
12505         * modules/crypto/sha512: Likewise.
12506         * lib/sha256.c: Likewise.
12507         * lib/sha256.h: Likewise.
12508         * lib/sha512.c: Likewise.
12509         * lib/sha512.h: Likewise.
12510         * lib/u64.h: Likewise.
12511         * m4/sha256.m4: Likewise.
12512         * m4/sha512.m4: Likewise.
12513         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
12514
12515 2008-05-10  Bruno Haible  <bruno@clisp.org>
12516
12517         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
12518         (Input/Output <stdio.h>): Add xprintf.
12519         (Signal handling <signal.h>): Add strsignal.
12520         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
12521         (Core language properties): Add func.
12522         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
12523         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
12524         strings.
12525         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
12526         (Input/output): New section.
12527         (File system functions): Add openat-die, stat-macros.
12528         (Networking functions): Add sockets.
12529         (Unicode string functions): Add unictype/*.
12530         (Support for building libraries and executables): Add gperf.
12531         (Support for building documentation): Add agpl-3.0.
12532         (Misc): Add nocrash.
12533
12534 2008-05-10  Bruno Haible  <bruno@clisp.org>
12535
12536         * modules/unictype/gen-ctype: New file.
12537
12538 2008-05-10  Jim Meyering  <meyering@redhat.com>
12539
12540         Make chdir-safer.c more efficient on a system with no symlinks.
12541         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
12542         also if ELOOP is zero.  Suggested by Bruno Haible.
12543
12544         Make chdir-safer.c slightly safer.
12545         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
12546         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
12547
12548         Avoid compile failure on systems without ELOOP (like mingw).
12549         * lib/chdir-safer.c (ELOOP): Define if not already defined.
12550         Reported by Bruno Haible.
12551
12552 2008-05-10  Bruno Haible  <bruno@clisp.org>
12553
12554         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
12555         (is_utf8_encoding): Use a case-insensitive comparison.
12556         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
12557         streq.
12558
12559 2008-05-10  Bruno Haible  <bruno@clisp.org>
12560
12561         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
12562         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
12563         * lib/unilbrk/ulc-common.h (iconv_string_length,
12564         iconv_string_keeping_offsets): Remove declarations.
12565         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
12566         Don't include <iconv.h>, streq.h, xsize.h.
12567         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
12568         conversion.
12569         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
12570         <iconv.h>, streq.h, xsize.h.
12571         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
12572         conversion.
12573         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
12574         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
12575         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
12576         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
12577
12578 2008-05-10  Bruno Haible  <bruno@clisp.org>
12579
12580         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
12581         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
12582
12583         * modules/unilbrk/u32-width-linebreaks-tests: New file.
12584         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
12585
12586         * modules/unilbrk/u16-width-linebreaks-tests: New file.
12587         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
12588
12589         * modules/unilbrk/u8-width-linebreaks-tests: New file.
12590         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
12591
12592         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
12593         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
12594
12595         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
12596         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
12597
12598         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
12599         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
12600
12601         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
12602         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
12603
12604 2008-05-10  Bruno Haible  <bruno@clisp.org>
12605
12606         Split up 'linebreak' module.
12607         * lib/unilbrk.h: New file, based on lib/linebreak.h.
12608         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
12609         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
12610         modifications.
12611         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
12612         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
12613         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
12614         lib/linebreak.c.
12615         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
12616         lib/linebreak.c.
12617         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
12618         lib/linebreak.c.
12619         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
12620         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
12621         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
12622         lib/linebreak.c.
12623         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
12624         lib/linebreak.c.
12625         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
12626         lib/linebreak.c.
12627         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
12628         lib/linebreak.c.
12629         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
12630         lib/linebreak.c.
12631         * modules/unilbrk/base: New file.
12632         * modules/unilbrk/tables: New file.
12633         * modules/unilbrk/u8-possible-linebreaks: New file.
12634         * modules/unilbrk/u16-possible-linebreaks: New file.
12635         * modules/unilbrk/u32-possible-linebreaks: New file.
12636         * modules/unilbrk/ulc-common: New file.
12637         * modules/unilbrk/ulc-possible-linebreaks: New file.
12638         * modules/unilbrk/u8-width-linebreaks: New file.
12639         * modules/unilbrk/u16-width-linebreaks: New file.
12640         * modules/unilbrk/u32-width-linebreaks: New file.
12641         * modules/unilbrk/ulc-width-linebreaks: New file.
12642         * lib/linebreak.h: Remove file.
12643         * lib/linebreak.c: Remove file.
12644         * m4/linebreak.m4: Remove file.
12645         * modules/linebreak: Remove file.
12646         * NEWS: Mention the changes.
12647
12648 2008-05-09  Eric Blake  <ebb9@byu.net>
12649
12650         Add xmemdup0.
12651         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
12652         implementation.
12653         * lib/xmalloc.c (xmemdup0): New C implementation.
12654
12655 2008-05-08  Bruno Haible  <bruno@clisp.org>
12656
12657         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
12658
12659 2008-05-07  Eric Blake  <ebb9@byu.net>
12660
12661         Support cross-compilation of <wctype.h>.
12662         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
12663         AC_CACHE_CHECK.
12664
12665 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
12666
12667         * build-aux/vc-list-files: Add support for bzr.
12668
12669 2008-05-03  Jim Meyering  <meyering@redhat.com>
12670
12671         avoid failed assertion with tight malloc
12672         * tests/test-getndelim2.c: Correct an off-by-one assertion.
12673
12674 2008-05-03  Simon Josefsson  <simon@josefsson.org>
12675
12676         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
12677         are needed from arpa/inet.h.
12678         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
12679         Reported by Bruno Haible.
12680
12681 2008-05-02  Jim Meyering  <meyering@redhat.com>
12682
12683         avoid compilation error on FreeBSD 6
12684         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
12685
12686 2008-05-01  Jim Meyering  <meyering@redhat.com>
12687
12688         useless-if-before-free: correct --help's exit status description
12689         * build-aux/useless-if-before-free (usage): Like grep, exit 0
12690         for one or more matches, etc.  Reported by Bruno Haible.
12691
12692         vc-list-files: make the stand-alone gnulib test work
12693         * modules/vc-list-files-tests (configure.ac):
12694         Define and AC_SUBST abs_aux_dir.
12695         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
12696         $(abs_top_srcdir) to each script and having each of them
12697         duplicate the work of setting PATH, set PATH here, using
12698         the new variable, abs_aux_dir instead.
12699         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
12700         * tests/test-vc-list-files-git.sh: Likewise.
12701         Reported by Bruno Haible.
12702
12703 2008-05-01  Bruno Haible  <bruno@clisp.org>
12704
12705         * lib/getndelim2.c (getndelim2): Fix newsize computation during
12706         reallocation. Rename 'done' to 'found_delimiter'.
12707
12708 2008-05-01  Jim Meyering  <meyering@redhat.com>
12709
12710         vc-list-files: accommodate /bin/sh like the one from Solaris 10
12711         * build-aux/vc-list-files: Use `...`, not $(...).
12712
12713 2008-04-30  Jim Meyering  <meyering@redhat.com>
12714
12715         add tests for vc-list-files
12716         * modules/vc-list-files-tests: New module.
12717         * tests/test-vc-list-files-cvs.sh: New file.
12718         * tests/test-vc-list-files-git.sh: New file.
12719
12720         avoid a warning from gcc
12721         * lib/getndelim2.c (IF_LINT): Define.
12722         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
12723
12724         vc-list-files: work properly with build-aux/cvsu, too
12725         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
12726         to all cvs-based clauses.
12727
12728         vc-list-files: work properly in the CVS+awk case, too
12729         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
12730
12731         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
12732         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
12733         take more than one file argument, so .  Add quotes, just in case $dir
12734         ever contains a shell meta-character.  Prompted by Soren Hansen in
12735         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
12736
12737 2008-04-29  Eric Blake  <ebb9@byu.net>
12738
12739         Optimize getndelim2 to use block operations when possible.
12740         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
12741         freadseek, and memchr2.
12742         * lib/getndelim2.c (getndelim2): Use them for block reads.
12743
12744 2008-04-29  Bruno Haible  <bruno@clisp.org>
12745
12746         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
12747         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12748         * modules/inet_ntop (Depends-on): Add extensions.
12749         * modules/inet_pton (Depends-on): Likewise.
12750         Reported by Simon Josefsson.
12751
12752 2008-04-29  Jim Meyering  <meyering@redhat.com>
12753
12754         When the is more than one match in a block, match all of them.
12755         * build-aux/useless-if-before-free: Iterate through each block
12756         until there are no more matches.
12757
12758         Fix broken useless-if-before-free script.
12759         * build-aux/useless-if-before-free: Fix typo: missing "?" after
12760         the expression to match cast of argument to free-like function.
12761
12762 2008-04-29  Eric Blake  <ebb9@byu.net>
12763
12764         Use new header.
12765         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
12766
12767 2008-04-29  Jim Meyering  <meyering@redhat.com>
12768
12769         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
12770         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
12771         by gnulib to exist and to declare e.g., inet_ntop.
12772         Don't include "inet_ntop.h", now removed.
12773
12774         * m4/arpa_inet_h.m4: Remove trailing blanks.
12775
12776 2008-04-29  Eric Blake  <ebb9@byu.net>
12777
12778         Silence valgrind on safe reads beyond potential array bounds.
12779         * lib/rawmemchr.valgrind: New file.
12780         * lib/strchrnul.valgrind: Likewise.
12781         * modules/rawmemchr (Files): Distribute new file.
12782         * modules/strchrnul (Files): Likewise.
12783         Suggested by Bruno Haible.
12784
12785 2008-04-29  Bruno Haible  <bruno@clisp.org>
12786
12787         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
12788         (inet_ntop, inet_pton): Change portability warning's wording.
12789         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
12790         Invoke gl_CHECK_NEXT_HEADERS.
12791         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
12792         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
12793         set ARPA_INET_H.
12794         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12795         * modules/arpa_inet (Description): No longer only for systems that
12796         lack it.
12797         (Depends-on): Add include_next.
12798         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
12799         HAVE_ARPA_INET_H.
12800
12801 2008-04-29  Jim Meyering  <meyering@redhat.com>
12802
12803         * modules/mkdir (License): Re-license as LGPLv2+.
12804
12805 2008-04-29  Bruno Haible  <bruno@clisp.org>
12806
12807         * modules/rawmemchr (Maintainer): Set to Eric.
12808         * modules/strchrnul (Maintainer): Likewise.
12809
12810 2008-04-29  Simon Josefsson  <simon@josefsson.org>
12811
12812         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
12813         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
12814
12815         * modules/arpa_inet (arpa/inet.h): Use them.
12816
12817 2008-04-28  Eric Blake  <ebb9@byu.net>
12818
12819         Test getndelim2.
12820         * modules/getndelim2-tests: New file.
12821         * tests/test-getndelim2.c: Likewise.
12822         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
12823         stream.
12824         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
12825
12826         * MODULES.html.sh: Document new module.
12827
12828 2008-04-20  Bruno Haible  <bruno@clisp.org>
12829
12830         * lib/c-stack.c (die): Use raise.
12831         * modules/c-stack (Depends-on): Add raise.
12832
12833 2008-04-28  Bruno Haible  <bruno@clisp.org>
12834
12835         Expect rpmatch to be declared.
12836         * lib/yesno.c (rpmatch): Remove declaration.
12837
12838         Declare rpmatch.
12839         * lib/stdlib.in.h (rpmatch): New declaration.
12840         * lib/rpmatch.c: Include <stdlib.h> first.
12841         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
12842         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
12843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
12844         HAVE_RPMATCH.
12845         * modules/rpmatch (Depends-on): Add stdlib, extensions.
12846         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12847         (Include): Set to <stdlib.h>.
12848         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
12849         HAVE_RPMATCH.
12850         * NEWS: Document the change.
12851
12852 2008-04-28  Bruno Haible  <bruno@clisp.org>
12853
12854         Change rpmatch to use nl_langinfo when appropriate.
12855         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
12856         (N_): New macro.
12857         (localized_pattern): New function/macro.
12858         (try): Remove match, nomatch arguments. Copy the pattern into safe
12859         memory before caching it.
12860         (rpmatch): Use localized_pattern. Add translator comments.
12861         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
12862         Suggested by Eric Blake.
12863         * modules/rpmatch (Depends-on): Add stdbool.
12864
12865 2008-04-28  Eric Blake  <ebb9@byu.net>
12866
12867         Add rawmemchr module, matching glibc.
12868         * modules/string (Makefile.am): New indicator.
12869         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
12870         * lib/string.in.h (rawmemchr): Declare when appropriate.
12871         * modules/rawmemchr: New file.
12872         * m4/rawmemchr.m4: Likewise.
12873         * lib/rawmemchr.c: Likewise.
12874         * modules/rawmemchr-tests: Likewise.
12875         * tests/test-rawmemchr.c: Likewise.
12876         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
12877         module.
12878         * modules/strchrnul (Depends-on): Add rawmemchr.
12879         * lib/strchrnul.c (strchrnul): Optimize a corner case.
12880
12881         Whitespace cleanup.
12882         * tests/test-strchrnul.c: Reindent.
12883         * lib/strchrnul.c: Likewise.
12884
12885         Optimize and test strchrnul.
12886         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
12887         * modules/strchrnul-tests: New file.
12888         * tests/test-strchrnul.c: Likewise.
12889
12890         Remove intprops dependency.
12891         * modules/memchr (Depends-on): Remove intprops.
12892         * modules/memrchr (Depends-on): Likewise.
12893         * modules/memchr2 (Depends-on): Likewise.
12894         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
12895         * lib/memrchr.c (__memrchr): Likewise.
12896         * lib/memrchr2.c (memchr2): Likewise.
12897         Reported by Simon Josefsson.
12898
12899 2008-04-28  Simon Josefsson  <simon@josefsson.org>
12900
12901         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
12902         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12903
12904 2008-04-28  Simon Josefsson  <simon@josefsson.org>
12905
12906         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
12907
12908         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
12909
12910         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
12911
12912         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
12913         declarations.
12914         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
12915
12916         * m4/inet_pton.m4: Don't check for header files.
12917
12918         * m4/inet_ntop.m4: Don't check for header files.
12919
12920 2008-04-28  Simon Josefsson  <simon@josefsson.org>
12921
12922         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
12923         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
12924         trigger for cygwin).
12925         Reported by Bruno Haible  <bruno@clisp.org>.
12926
12927 2008-04-28  Bruno Haible  <bruno@clisp.org>
12928
12929         * doc/posix-functions/strdup.texi: Mention mingw problem.
12930
12931 2008-04-27  Bruno Haible  <bruno@clisp.org>
12932
12933         * modules/stat-time-tests (Depends-on): Add sleep.
12934         * tests/test-stat-time.c (force_unlink): New function.
12935         (cleanup): Use it.
12936         (test_mtime): Remove the ctime related tests.
12937         (test_ctime): New function, containing the ctime related tests.
12938         (main): Call test_ctime, except on native Windows platforms.
12939
12940 2008-04-27  Bruno Haible  <bruno@clisp.org>
12941
12942         * lib/rpmatch.c (rpmatch): Add some comments.
12943         Reported by James Youngman <jay@gnu.org>.
12944
12945 2008-04-27  Bruno Haible  <bruno@clisp.org>
12946
12947         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
12948         quiet NaNs.
12949
12950 2008-04-27  Bruno Haible  <bruno@clisp.org>
12951
12952         Make test-yesno.sh work on mingw.
12953         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
12954         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
12955         (main): Set stdin to binary mode.
12956         * modules/yesno-tests (Depends-on): Add binary-io.
12957
12958 2008-04-27  Bruno Haible  <bruno@clisp.org>
12959
12960         Fix 'isfinite' on x86, x86_64, ia64 platforms.
12961         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
12962         argument that lie outside the IEEE 854 domain.
12963         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
12964         (gl_ISFINITE): Use it.
12965         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
12966
12967 2008-04-27  Bruno Haible  <bruno@clisp.org>
12968
12969         Allow local renaming in config.h.
12970         * lib/memrchr.c (memrchr): Don't undefine outside libc.
12971
12972 2008-04-27  Bruno Haible  <bruno@clisp.org>
12973
12974         * lib/memchr.c (__memchr): Change type of 'i'.
12975         * lib/memchr2.c (memchr2): Likewise.
12976
12977 2008-04-26  Eric Blake  <ebb9@byu.net>
12978         and Bruno Haible  <bruno@clisp.org>
12979
12980         Optimize and test memrchr.
12981         * modules/memrchr (Depends-on): Add intprops.
12982         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
12983         * modules/memrchr-tests: New file.
12984         * tests/test-memrchr.c: New file.
12985
12986 2008-04-26  Bruno Haible  <bruno@clisp.org>
12987
12988         Add tentative support for DragonFly BSD.
12989         * lib/stdio-impl.h: Add macros for DragonFly BSD.
12990         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
12991         fp.
12992         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
12993         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
12994         * lib/fpurge.c (fpurge): Likewise.
12995         * lib/freadable.c (freaadable): Likewise.
12996         * lib/freadahead.c (freadahead): Likewise.
12997         * lib/freading.c (freading): Likewise.
12998         * lib/freadptr.c (freadptr): Likewise.
12999         * lib/freadseek.c (freadptrinc): Likewise.
13000         * lib/fseeko.c (fseeko): Likewise.
13001         * lib/fseterr.c (fseterr): Likewise.
13002         * lib/fwritable.c (fwritable): Likewise.
13003         * lib/fwriting.c (fwriting): Likewise.
13004
13005 2008-04-26  Bruno Haible  <bruno@clisp.org>
13006
13007         * lib/stdio-impl.h: New file.
13008         * lib/fbufmode.c: Include stdio-impl.h.
13009         (fbufmode): Use fp_, remove redundant #defines.
13010         * lib/fflush.c: Include stdio-impl.h.
13011         (clear_ungetc_buffer): Remove redundant #defines.
13012         * lib/fpurge.c: Include stdio-impl.h.
13013         (fpurge): Remove redundant #defines.
13014         * lib/freadable.c: Include stdio-impl.h.
13015         (freadable): Remove redundant #defines.
13016         * lib/freadahead.c: Include stdio-impl.h.
13017         (freadahead): Remove redundant #defines.
13018         * lib/freading.c: Include stdio-impl.h.
13019         (freading): Remove redundant #defines.
13020         * lib/freadptr.c: Include stdio-impl.h.
13021         (freadptr): Remove redundant #defines.
13022         * lib/freadseek.c: Include stdio-impl.h.
13023         (freadptrinc): Remove redundant #defines.
13024         * lib/fseeko.c: Include stdio-impl.h.
13025         (rpl_fseeko): Remove redundant #defines.
13026         * lib/fseterr.c: Include stdio-impl.h.
13027         (fseterr): Remove redundant #defines.
13028         * lib/fwritable.c: Include stdio-impl.h.
13029         (fwritable: Remove redundant #defines.
13030         * lib/fwriting.c: Include stdio-impl.h.
13031         (fwriting): Remove redundant #defines.
13032         * modules/fbufmode (Files): Add lib/stdio-impl.h.
13033         * modules/fflush (Files): Likewise.
13034         * modules/fpurge (Files): Likewise.
13035         * modules/freadable (Files): Likewise.
13036         * modules/freadahead (Files): Likewise.
13037         * modules/freading (Files): Likewise.
13038         * modules/freadptr (Files): Likewise.
13039         * modules/freadseek (Files): Likewise.
13040         * modules/fseeko (Files): Likewise.
13041         * modules/fseterr (Files): Likewise.
13042         * modules/fwritable (Files): Likewise.
13043         * modules/fwriting (Files): Likewise.
13044
13045 2008-04-26  Bruno Haible  <bruno@clisp.org>
13046
13047         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
13048         restore_seek_optimization, update_fpos_cache): New functions, extracted
13049         from rpl_fflush.
13050         (rpl_fflush): Use them.
13051         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
13052         (gl_REPLACE_FFLUSH): Use it.
13053
13054 2008-04-26  Bruno Haible  <bruno@clisp.org>
13055
13056         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
13057         on Solaris.
13058         * tests/test-xstrtoimax.sh: Likewise.
13059         * tests/test-xstrtoumax.sh: Likewise.
13060         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13061
13062 2008-04-26  Bruno Haible  <bruno@clisp.org>
13063
13064         * modules/memchr-tests: New file.
13065         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
13066
13067 2008-04-26  Eric Blake  <ebb9@byu.net>
13068             Bruno Haible  <bruno@clisp.org>
13069
13070         * lib/memchr.c: Include intprops.h.
13071         (__memchr): Optimize parallel detection of matching bytes. Rename local
13072         variables. Add explanatory comments.
13073
13074 2008-04-26  Bruno Haible  <bruno@clisp.org>
13075
13076         Fix module 'memchr', broken since 2000-10-28.
13077         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
13078
13079 2008-04-26  Bruno Haible  <bruno@clisp.org>
13080
13081         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
13082         comments.
13083
13084 2008-04-25  Eric Blake  <ebb9@byu.net>
13085
13086         Use native fstatat on cygwin 1.7.0.
13087         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
13088         first.
13089
13090 2008-04-23  Eric Blake  <ebb9@byu.net>
13091
13092         Improve memchr2 performance.
13093         * lib/memchr2.c (memchr2): Further optimize parallel detection of
13094         NUL bytes.
13095         * modules/memchr2 (Depends-on): Use intprops.h.
13096
13097 2008-04-23  Simon Josefsson  <simon@josefsson.org>
13098
13099         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
13100         an inline function instead of a CPP macro.  Patch by Ben Pfaff
13101         <blp@cs.stanford.edu>.
13102
13103 2008-04-23  Simon Josefsson  <simon@josefsson.org>
13104
13105         * lib/arpa_inet.in.h: New file.
13106
13107         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
13108         (Makefile.am): Sed in substitute header file.
13109
13110         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
13111         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
13112
13113         * modules/inet_ntop (configure.ac): Use
13114         gl_ARPA_INET_MODULE_INDICATOR.
13115
13116         * modules/inet_pton (configure.ac): Use
13117         gl_ARPA_INET_MODULE_INDICATOR.
13118
13119 2008-04-22  Jim Meyering  <meyering@redhat.com>
13120
13121         * modules/verify (License): Re-license as LGPLv2+.
13122
13123 2008-04-22  Simon Josefsson  <simon@josefsson.org>
13124
13125         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
13126         parameter to void* as per POSIX standard (MinGW uses char*).
13127
13128 2008-04-21  Bruno Haible  <bruno@clisp.org>
13129
13130         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13131         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
13132         Define to replacements if REPLACE_ISWCNTRL is 1.
13133         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
13134         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
13135         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
13136         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
13137         what it fixes.
13138         * doc/posix-functions/iswalpha.texi: Likewise.
13139         * doc/posix-functions/iswblank.texi: Likewise.
13140         * doc/posix-functions/iswcntrl.texi: Likewise.
13141         * doc/posix-functions/iswdigit.texi: Likewise.
13142         * doc/posix-functions/iswgraph.texi: Likewise.
13143         * doc/posix-functions/iswlower.texi: Likewise.
13144         * doc/posix-functions/iswprint.texi: Likewise.
13145         * doc/posix-functions/iswpunct.texi: Likewise.
13146         * doc/posix-functions/iswspace.texi: Likewise.
13147         * doc/posix-functions/iswupper.texi: Likewise.
13148         * doc/posix-functions/iswxdigit.texi: Likewise.
13149         Reported by Alain Guibert.
13150
13151 2008-04-21  Bruno Haible  <bruno@clisp.org>
13152
13153         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
13154         Patch by Alain Guibert.
13155
13156 2008-04-21  Bruno Haible  <bruno@clisp.org>
13157
13158         Fix test failures on mingw.
13159         * tests/test-xstrtol.c (print_no_progname): New function.
13160         (main): Install it in error_print_progname hook.
13161         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
13162         * tests/test-xstrtoimax.sh: Likewise.
13163         * tests/test-xstrtoumax.sh: Likewise.
13164
13165 2008-04-21  Bruno Haible  <bruno@clisp.org>
13166
13167         Fix test failure on mingw.
13168         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
13169
13170 2008-04-21  Bruno Haible  <bruno@clisp.org>
13171
13172         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
13173         Actually assign a value.
13174
13175 2008-04-20  Bruno Haible  <bruno@clisp.org>
13176
13177         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
13178         take 2.
13179         * lib/canonicalize.c (canonicalize_file_name): Elide if the
13180         'canonicalize-lgpl' module is also used.
13181         * lib/canonicalize-lgpl.c: Undo last change.
13182         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
13183
13184 2008-04-20  Bruno Haible  <bruno@clisp.org>
13185
13186         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
13187         config.h. Provide _mkdir based fallback for mingw.
13188         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
13189         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
13190         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
13191         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
13192         rather than defining mkdir in config.h.
13193         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
13194         (gl_SYS_STAT_H_DEFAULTS): New macro.
13195         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
13196         HAVE_IO_H any more.
13197         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
13198         HAVE_DECL_MKDIR and HAVE_IO_H.
13199
13200 2008-04-20  Bruno Haible  <bruno@clisp.org>
13201
13202         * lib/isapipe.c: Port to native Windows platforms.
13203
13204 2008-04-20  Bruno Haible  <bruno@clisp.org>
13205
13206         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
13207
13208 2008-04-21  Eric Blake  <ebb9@byu.net>
13209
13210         Work around preprocessors that don't handle UINTMAX_MAX.
13211         * lib/memchr2.c (memchr2): Avoid embedded #if.
13212         Reported by Alain Guibert, fix suggested by Bruno Haible.
13213
13214 2008-04-21  Simon Josefsson  <simon@josefsson.org>
13215
13216         * doc/posix-functions/strftime.texi (strftime): Explain better
13217         Windows incompatibility.  Suggested by Micah Cowan
13218         <micah@cowan.name>.
13219
13220 2008-04-20  Bruno Haible  <bruno@clisp.org>
13221
13222         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
13223         unistr/u8-mblen.
13224
13225 2008-04-20  Bruno Haible  <bruno@clisp.org>
13226
13227         Fix test failure on platforms with non-GNU iconv.
13228         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
13229         (U_TO_U8): Use it, rather than u16_to_u8.
13230         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
13231         units at the end of the input string.
13232         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
13233
13234 2008-04-20  Bruno Haible  <bruno@clisp.org>
13235
13236         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
13237         when the resulting length is 0.
13238         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
13239
13240 2008-04-20  Bruno Haible  <bruno@clisp.org>
13241
13242         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
13243         works.
13244         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
13245
13246 2008-04-20  Bruno Haible  <bruno@clisp.org>
13247
13248         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
13249         * modules/tsearch-tests (configure.ac): Test for initstate function.
13250
13251 2008-04-20  Bruno Haible  <bruno@clisp.org>
13252
13253         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
13254         for nlink_t if missing.
13255         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
13256
13257 2008-04-19  Bruno Haible  <bruno@clisp.org>
13258
13259         Work around snprintf bug on Linux libc5.
13260         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
13261         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13262         gl_SNPRINTF_SIZE1.
13263         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13264         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
13265         that test failed.
13266         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
13267         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
13268         * modules/snprintf (Files): Add m4/printf.m4.
13269         * modules/vsnprintf (Files): Likewise.
13270         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
13271         * doc/posix-functions/vsnprintf.texi: Likewise.
13272
13273 2008-04-19  Bruno Haible  <bruno@clisp.org>
13274
13275         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
13276         from 0.0058 to less than 10^-7.
13277
13278 2008-04-19  Bruno Haible  <bruno@clisp.org>
13279
13280         Fix rounding when a precision is given.
13281         * lib/vasnprintf.c (is_borderline): New function.
13282         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
13283         9...9x.
13284         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
13285         %e, %g.
13286         * tests/test-vasprintf-posix.c (test_function): Likewise.
13287         * tests/test-snprintf-posix.h (test_function): Likewise.
13288         * tests/test-sprintf-posix.h (test_function): Likewise.
13289         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
13290         * tests/test-printf-posix.h (test_function): Likewise.
13291         * tests/test-printf-posix.output: Update.
13292         Reported by John Darrington <john@darrington.wattle.id.au> via
13293         Ben Pfaff <blp@cs.stanford.edu>.
13294
13295 2008-04-18  Simon Josefsson  <simon@josefsson.org>
13296
13297         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
13298         Suggested by Bruno Haible <bruno@clisp.org>.
13299
13300 2008-04-17  Bruno Haible  <bruno@clisp.org>
13301
13302         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
13303         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
13304         implementation.
13305         Patch by Bruce Merry <bmerry@gmail.com>.
13306
13307 2008-04-17  Simon Josefsson  <simon@josefsson.org>
13308
13309         * doc/posix-functions/strftime.texi (strftime): Mention that %e
13310         doesn't work under Windows.
13311
13312 2008-04-16  Bruno Haible  <bruno@clisp.org>
13313
13314         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
13315         New macros.
13316         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
13317         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
13318         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
13319         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
13320         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
13321         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
13322         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
13323         macros.
13324         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
13325         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
13326         Northern Sotho, Uighur.
13327
13328 2008-04-16  Bruno Haible  <bruno@clisp.org>
13329
13330         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
13331         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
13332         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
13333         Reported by Daniel Bergström <daniel@octocode.com>.
13334
13335 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
13336             Bruno Haible  <bruno@clisp.org>
13337
13338         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
13339         function.
13340         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
13341         New functions, mostly extracted from gl_locale_name_default.
13342         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
13343
13344 2008-04-16  Eric Blake  <ebb9@byu.net>
13345
13346         Adjust strtod detection to catch glibc 2.7 bug.
13347         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
13348         Reported by John Gatewood Ham.
13349
13350 2008-04-16  Bruno Haible  <bruno@clisp.org>
13351
13352         Add tentative support for Linux libc5.
13353         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
13354         * lib/fpurge.c (fpurge): Likewise.
13355         * lib/freadable.c (freadable): Likewise.
13356         * lib/freadahead.c (freadahead): Likewise.
13357         * lib/freading.c (freading): Likewise.
13358         * lib/freadptr.c (freadptr): Likewise.
13359         * lib/freadseek.c (freadptrinc): Likewise.
13360         * lib/fseeko.c (rpl_fseeko): Likewise.
13361         * lib/fseterr.c (fseterr): Likewise.
13362         * lib/fwritable.c (fwritable): Likewise.
13363         * lib/fwriting.c (fwriting): Likewise.
13364         Reported by Alain Guibert <alguibert+bts@free.fr>.
13365
13366 2008-04-15  Bruno Haible  <bruno@clisp.org>
13367
13368         * modules/mathl (configure.ac): Define module indicator.
13369
13370 2008-04-15  Bruno Haible  <bruno@clisp.org>
13371
13372         * lib/logl.c (logl): Remove unused variables.
13373
13374 2008-04-15  Bruno Haible  <bruno@clisp.org>
13375
13376         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
13377         fails.
13378
13379 2008-04-15  Bruno Haible  <bruno@clisp.org>
13380
13381         * lib/trim.c (trim2): Fix argument of isspace() macro.
13382
13383 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
13384
13385         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
13386         to 0.
13387         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
13388
13389 2008-04-14  Bruno Haible  <bruno@clisp.org>
13390
13391         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
13392         AC_LANG_PROGRAM argument.
13393         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
13394         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
13395         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
13396         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13397         * m4/math_h.m4 (gl_MATH_H): Likewise.
13398         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13399         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13400         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
13401         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
13402         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13403         * m4/regex.m4 (gl_REGEX): Likewise.
13404         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
13405         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
13406         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13407         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
13408         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
13409         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13410         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13411         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13412
13413 2008-04-14  Jim Meyering  <meyering@redhat.com>
13414
13415         test-strtod: fix typos: s/abs/fabs/
13416         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
13417
13418 2008-04-13  Bruno Haible  <bruno@clisp.org>
13419
13420         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
13421         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
13422         module is also used and while not building the reloc-wrapper.
13423
13424 2008-04-13  Bruno Haible  <bruno@clisp.org>
13425
13426         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
13427
13428 2008-04-13  Bruno Haible  <bruno@clisp.org>
13429
13430         Fix AIX compilation failure introduced on 2008-04-02.
13431         * tests/test-frexp.c (exp): Undefine before redefining.
13432         * tests/test-frexpl.c (exp): Likewise.
13433
13434 2008-04-13  Bruno Haible  <bruno@clisp.org>
13435
13436         Work around a HP-UX stdio bug.
13437         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
13438         * tests/test-ftello.c (main): Likewise.
13439         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
13440         * doc/posix-functions/ftello.texi: Likewise.
13441
13442 2008-04-13  Bruno Haible  <bruno@clisp.org>
13443
13444         Make test-signbit pass on HP-UX/hppa.
13445         * tests/test-signbit.c (minus_zerol): New variable.
13446         (test_signbitl): Use it.
13447
13448 2008-04-13  Bruno Haible  <bruno@clisp.org>
13449
13450         Make truncl work on OSF/1 4.0.
13451         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
13452         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
13453         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
13454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
13455         HAVE_DECL_TRUNCL.
13456         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
13457         HAVE_DECL_TRUNCL.
13458         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
13459
13460 2008-04-13  Bruno Haible  <bruno@clisp.org>
13461
13462         * lib/unictype.h: Remove trailing comma from enumeration definitions.
13463
13464 2008-04-13  Bruno Haible  <bruno@clisp.org>
13465
13466         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
13467         expression, so as to avoid HP-UX 11 cc compiler bug.
13468
13469 2008-04-13  Bruno Haible  <bruno@clisp.org>
13470
13471         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
13472
13473 2008-04-13  Bruno Haible  <bruno@clisp.org>
13474
13475         * lib/git-merge-changelog.c: Remove empty declaration outside of
13476         functions.
13477
13478 2008-04-13  Bruno Haible  <bruno@clisp.org>
13479
13480         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
13481
13482 2008-04-13  Bruno Haible  <bruno@clisp.org>
13483
13484         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
13485         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
13486         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
13487         also if it exists but lacks definitions of the SHUT_* macros.
13488         * modules/sys_socket (Description): Update.
13489         Reported by Elbert Pol <e.pol@chello.nl>.
13490
13491 2008-04-13  Bruno Haible  <bruno@clisp.org>
13492
13493         * lib/localcharset.c (OS2): Don't redefine if already defined.
13494         Reported by Elbert Pol <e.pol@chello.nl>.
13495
13496 2008-04-13  Bruno Haible  <bruno@clisp.org>
13497
13498         * lib/binary-io.h [__EMX__]: Include <io.h>.
13499         Reported by Elbert Pol <e.pol@chello.nl>.
13500
13501 2008-04-12  Bruno Haible  <bruno@clisp.org>
13502
13503         * lib/fpucw.h: Enable the definitions also for x86_64.
13504         Needed for NetBSD/x86_64.
13505         Reported by Thomas Klausner <tk@giga.or.at>.
13506
13507 2008-04-12  Bruno Haible  <bruno@clisp.org>
13508
13509         * tests/test-strtod.c: Include isnand.h.
13510         (main): Use isnand instead of isnan.
13511         Reported by Jim Meyering.
13512
13513 2008-04-12  Bruno Haible  <bruno@clisp.org>
13514
13515         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
13516         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
13517
13518 2008-04-12  Jim Meyering  <meyering@redhat.com>
13519
13520         * m4/math_h.m4 (gl_MATH_H): Fix typos.
13521
13522 2008-04-12  Bruno Haible  <bruno@clisp.org>
13523
13524         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
13525         Reported by Elbert Pol <e.pol@chello.nl>.
13526
13527 2008-04-12  Eric Blake  <ebb9@byu.net>
13528
13529         Work around Solaris 10 math.h bug.
13530         * m4/math_h.m4 (gl_MATH_H): Check for bug.
13531         (gl_MATH_H_DEFAULTS): Set up default.
13532         * modules/math (Makefile.am): Replace new indicators.
13533         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
13534         * tests/test-math.c (main): Test this.
13535         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
13536         * doc/posix-headers/math.texi (math.h): Mention bug.
13537         Reported by Nelson H. F. Beebe and Jim Meyering.
13538
13539 2008-04-11  Bruno Haible  <bruno@clisp.org>
13540
13541         Adapt to future versions of Apple GCC.
13542         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
13543         Reported by Peter O'Gorman <peter@pogma.com>.
13544
13545 2008-04-11  Bruno Haible  <bruno@clisp.org>
13546
13547         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
13548
13549 2008-04-11  Bruno Haible  <bruno@clisp.org>
13550
13551         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
13552
13553         * modules/getaddrinfo-tests (Makefile.am): Define
13554         test_getaddrinfo_LDADD.
13555
13556 2008-04-11  Bruno Haible  <bruno@clisp.org>
13557
13558         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
13559         (init): Fix syntax error.
13560         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
13561         is declared.
13562
13563 2008-04-11  Bruno Haible  <bruno@clisp.org>
13564
13565         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
13566         * modules/glob (Depends-on): Add stdbool.
13567
13568 2008-04-11  Bruno Haible  <bruno@clisp.org>
13569
13570         * lib/trim.c: Include <string.h>.
13571
13572 2008-04-11  Eric Blake  <ebb9@byu.net>
13573
13574         Avoid compile failure on OS/2.
13575         * lib/regex_internal.h (internal_function): Disable optimization
13576         on OS/2 (__EMX__), where it caused compiler error.
13577         Reported by Elbert Pol.
13578
13579 2008-04-11  Bruno Haible  <bruno@clisp.org>
13580
13581         Flush the standard error stream before aborting. Needed on mingw.
13582         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
13583         * tests/test-array_list.c (ASSERT): Likewise.
13584         * tests/test-array_oset.c (ASSERT): Likewise.
13585         * tests/test-avltree_list.c (ASSERT): Likewise.
13586         * tests/test-avltree_oset.c (ASSERT): Likewise.
13587         * tests/test-avltreehash_list.c (ASSERT): Likewise.
13588         * tests/test-binary-io.c (ASSERT): Likewise.
13589         * tests/test-byteswap.c (ASSERT): Likewise.
13590         * tests/test-c-ctype.c (ASSERT): Likewise.
13591         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
13592         * tests/test-c-strcasestr.c (ASSERT): Likewise.
13593         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
13594         * tests/test-c-strstr.c (ASSERT): Likewise.
13595         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
13596         * tests/test-canonicalize.c (ASSERT): Likewise.
13597         * tests/test-carray_list.c (ASSERT): Likewise.
13598         * tests/test-ceilf1.c (ASSERT): Likewise.
13599         * tests/test-ceilf2.c (ASSERT): Likewise.
13600         * tests/test-ceill.c (ASSERT): Likewise.
13601         * tests/test-count-one-bits.c (ASSERT): Likewise.
13602         * tests/test-fbufmode.c (ASSERT): Likewise.
13603         * tests/test-fflush2.c (ASSERT): Likewise.
13604         * tests/test-floorf1.c (ASSERT): Likewise.
13605         * tests/test-floorf2.c (ASSERT): Likewise.
13606         * tests/test-floorl.c (ASSERT): Likewise.
13607         * tests/test-fopen.c (ASSERT): Likewise.
13608         * tests/test-fpending.c (ASSERT): Likewise.
13609         * tests/test-fprintf-posix.c (ASSERT): Likewise.
13610         * tests/test-fpurge.c (ASSERT): Likewise.
13611         * tests/test-freadable.c (ASSERT): Likewise.
13612         * tests/test-freadahead.c (ASSERT): Likewise.
13613         * tests/test-freading.c (ASSERT): Likewise.
13614         * tests/test-freadptr.c (ASSERT): Likewise.
13615         * tests/test-freadptr2.c (ASSERT): Likewise.
13616         * tests/test-freadseek.c (ASSERT): Likewise.
13617         * tests/test-freopen.c (ASSERT): Likewise.
13618         * tests/test-frexp.c (ASSERT): Likewise.
13619         * tests/test-frexpl.c (ASSERT): Likewise.
13620         * tests/test-fseek.c (ASSERT): Likewise.
13621         * tests/test-fseeko.c (ASSERT): Likewise.
13622         * tests/test-fstrcmp.c (ASSERT): Likewise.
13623         * tests/test-ftell.c (ASSERT): Likewise.
13624         * tests/test-ftello.c (ASSERT): Likewise.
13625         * tests/test-func.c (ASSERT): Likewise.
13626         * tests/test-fwritable.c (ASSERT): Likewise.
13627         * tests/test-fwriting.c (ASSERT): Likewise.
13628         * tests/test-getdelim.c (ASSERT): Likewise.
13629         * tests/test-getline.c (ASSERT): Likewise.
13630         * tests/test-i-ring.c (ASSERT): Likewise.
13631         * tests/test-iconv-utf.c (ASSERT): Likewise.
13632         * tests/test-iconv.c (ASSERT): Likewise.
13633         * tests/test-isfinite.c (ASSERT): Likewise.
13634         * tests/test-isnand.c (ASSERT): Likewise.
13635         * tests/test-isnanf.c (ASSERT): Likewise.
13636         * tests/test-isnanl.h (ASSERT): Likewise.
13637         * tests/test-ldexpl.c (ASSERT): Likewise.
13638         * tests/test-linked_list.c (ASSERT): Likewise.
13639         * tests/test-linkedhash_list.c (ASSERT): Likewise.
13640         * tests/test-localename.c (ASSERT): Likewise.
13641         * tests/test-lseek.c (ASSERT): Likewise.
13642         * tests/test-mbscasecmp.c (ASSERT): Likewise.
13643         * tests/test-mbscasestr1.c (ASSERT): Likewise.
13644         * tests/test-mbscasestr2.c (ASSERT): Likewise.
13645         * tests/test-mbscasestr3.c (ASSERT): Likewise.
13646         * tests/test-mbscasestr4.c (ASSERT): Likewise.
13647         * tests/test-mbschr.c (ASSERT): Likewise.
13648         * tests/test-mbscspn.c (ASSERT): Likewise.
13649         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
13650         * tests/test-mbspbrk.c (ASSERT): Likewise.
13651         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
13652         * tests/test-mbsrchr.c (ASSERT): Likewise.
13653         * tests/test-mbsspn.c (ASSERT): Likewise.
13654         * tests/test-mbsstr1.c (ASSERT): Likewise.
13655         * tests/test-mbsstr2.c (ASSERT): Likewise.
13656         * tests/test-mbsstr3.c (ASSERT): Likewise.
13657         * tests/test-memchr2.c (ASSERT): Likewise.
13658         * tests/test-memmem.c (ASSERT): Likewise.
13659         * tests/test-open.c (ASSERT): Likewise.
13660         * tests/test-printf-frexp.c (ASSERT): Likewise.
13661         * tests/test-printf-frexpl.c (ASSERT): Likewise.
13662         * tests/test-printf-posix.c (ASSERT): Likewise.
13663         * tests/test-quotearg.c (ASSERT): Likewise.
13664         * tests/test-rbtree_list.c (ASSERT): Likewise.
13665         * tests/test-rbtree_oset.c (ASSERT): Likewise.
13666         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
13667         * tests/test-round1.c (ASSERT): Likewise.
13668         * tests/test-roundf1.c (ASSERT): Likewise.
13669         * tests/test-roundl.c (ASSERT): Likewise.
13670         * tests/test-signbit.c (ASSERT): Likewise.
13671         * tests/test-sleep.c (ASSERT): Likewise.
13672         * tests/test-snprintf-posix.c (ASSERT): Likewise.
13673         * tests/test-snprintf.c (ASSERT): Likewise.
13674         * tests/test-sprintf-posix.c (ASSERT): Likewise.
13675         * tests/test-stat-time.c (ASSERT): Likewise.
13676         * tests/test-strcasestr.c (ASSERT): Likewise.
13677         * tests/test-strerror.c (ASSERT): Likewise.
13678         * tests/test-striconv.c (ASSERT): Likewise.
13679         * tests/test-striconveh.c (ASSERT): Likewise.
13680         * tests/test-striconveha.c (ASSERT): Likewise.
13681         * tests/test-strsignal.c (ASSERT): Likewise.
13682         * tests/test-strstr.c (ASSERT): Likewise.
13683         * tests/test-strtod.c (ASSERT): Likewise.
13684         * tests/test-trunc1.c (ASSERT): Likewise.
13685         * tests/test-trunc2.c (ASSERT): Likewise.
13686         * tests/test-truncf1.c (ASSERT): Likewise.
13687         * tests/test-truncf2.c (ASSERT): Likewise.
13688         * tests/test-truncl.c (ASSERT): Likewise.
13689         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
13690         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
13691         * tests/test-vasnprintf.c (ASSERT): Likewise.
13692         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
13693         * tests/test-vasprintf.c (ASSERT): Likewise.
13694         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
13695         * tests/test-vprintf-posix.c (ASSERT): Likewise.
13696         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
13697         * tests/test-vsnprintf.c (ASSERT): Likewise.
13698         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
13699         * tests/test-wcwidth.c (ASSERT): Likewise.
13700         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
13701         * tests/test-xprintf-posix.c (ASSERT): Likewise.
13702         * tests/test-xvasprintf.c (ASSERT): Likewise.
13703         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
13704         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
13705         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
13706         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
13707         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
13708         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
13709         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
13710         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
13711         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
13712         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
13713         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
13714         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
13715         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
13716         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
13717         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
13718         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
13719         * tests/unictype/test-block_list.c (ASSERT): Likewise.
13720         * tests/unictype/test-block_of.c (ASSERT): Likewise.
13721         * tests/unictype/test-block_test.c (ASSERT): Likewise.
13722         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
13723         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
13724         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
13725         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
13726         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
13727         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
13728         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
13729         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
13730         * tests/unictype/test-combining.c (ASSERT): Likewise.
13731         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
13732         * tests/unictype/test-digit.c (ASSERT): Likewise.
13733         * tests/unictype/test-mirror.c (ASSERT): Likewise.
13734         * tests/unictype/test-numeric.c (ASSERT): Likewise.
13735         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
13736         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
13737         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
13738         * tests/unictype/test-scripts.c (ASSERT): Likewise.
13739         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
13740         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
13741         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
13742         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
13743         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
13744         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
13745         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
13746         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
13747         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
13748         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
13749         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
13750         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
13751         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
13752         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
13753         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
13754         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
13755         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
13756         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
13757         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
13758         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
13759         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
13760         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
13761         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
13762         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
13763         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
13764         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
13765         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
13766         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
13767         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
13768         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
13769         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
13770         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
13771         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
13772         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
13773         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
13774         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
13775         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
13776         Reported by Eric Blake.
13777
13778 2008-04-11  Bruno Haible  <bruno@clisp.org>
13779
13780         * lib/wchar.in.h: Tweak comment.
13781
13782 2008-04-11  Bruno Haible  <bruno@clisp.org>
13783
13784         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
13785         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
13786         gl_COMMON.
13787         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
13788
13789 2008-04-11  Bruno Haible  <bruno@clisp.org>
13790
13791         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
13792
13793 2008-04-11  Simon Josefsson  <simon@josefsson.org>
13794
13795         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
13796         of attempting to use non-existing /dev/*random.  Based on patch
13797         from Adam Strzelecki <ono@java.pl> in
13798         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
13799
13800 2008-04-08  Bruno Haible  <bruno@clisp.org>
13801
13802         Add tentative support for emx+gcc.
13803         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
13804         * lib/fpurge.c (fpurge): Likewise.
13805         * lib/freadable.c (freadable): Likewise.
13806         * lib/freadahead.c (freadahead): Likewise.
13807         * lib/freading.c (freading): Likewise.
13808         * lib/freadptr.c (freadptr): Likewise.
13809         * lib/freadseek.c (freadptrinc): Likewise.
13810         * lib/fseeko.c (rpl_fseeko): Likewise.
13811         * lib/fseterr.c (fseterr): Likewise.
13812         * lib/fwritable.c (fwritable): Likewise.
13813         * lib/fwriting.c (fwriting): Likewise.
13814         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
13815
13816 2008-04-09  Eric Blake  <ebb9@byu.net>
13817
13818         Avoid some autoconf warnings.
13819         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
13820         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
13821         * m4/afs.m4 (gl_AFS): Likewise.
13822         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
13823         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
13824         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13825         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
13826         (gl_INTEGER_TYPE_SUFFIX): Likewise.
13827         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
13828         (AC_CHECK_DECLS_ONCE): Likewise.
13829         Rename file...
13830         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
13831         gnulib-tool requires autoconf 2.59 or better.
13832         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
13833
13834 2008-04-08  Eric Blake  <ebb9@byu.net>
13835
13836         Use 'git describe --match' if present (added in git 1.5.5).
13837         * build-aux/git-version-gen: Limit result to tags that match 'v*'
13838         if possible.
13839
13840 2008-04-08  Bruno Haible  <bruno@clisp.org>
13841
13842         Add tentative support for OpenServer.
13843         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
13844         _ptr, _cnt.
13845         * lib/fpurge.c (fpurge): Likewise.
13846         * lib/freadable.c (freadable): Likewise.
13847         * lib/freadahead.c (freadahead): Likewise.
13848         * lib/freading.c (freading): Likewise.
13849         * lib/freadptr.c (freadptr): Likewise.
13850         * lib/freadseek.c (freadptrinc): Likewise.
13851         * lib/fseeko.c (rpl_fseeko): Likewise.
13852         * lib/fseterr.c (fseterr): Likewise.
13853         * lib/fwritable.c (fwritable): Likewise.
13854         * lib/fwriting.c (fwriting): Likewise.
13855         Reported by Roger Cornelius <rac@tenzing.org> and
13856         Brian K. White <brian@aljex.com>.
13857
13858 2008-04-06  Jim Meyering  <meyering@redhat.com>
13859
13860         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
13861
13862 2008-04-06  Bruno Haible  <bruno@clisp.org>
13863
13864         Avoid possible error with non-ASCII bytes in UTF-8 locales.
13865         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
13866         * tests/test-printf-posix.sh: Likewise.
13867         * tests/test-vfprintf-posix.sh: Likewise.
13868         * tests/test-vprintf-posix.sh: Likewise.
13869         * tests/test-xprintf-posix.sh: Likewise.
13870
13871 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13872
13873         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
13874         hide error from 'ls', needed on OS/2.
13875         Report by Elbert Pol <elbert.pol@gmail.com>.
13876
13877 2008-04-04  Eric Blake  <ebb9@byu.net>
13878
13879         Make test-fseeko.c failures meaningful.
13880         * tests/test-fseeko.c: Print line number on failure.
13881         * tests/test-fseek.c: Likewise.
13882         Reported by Nelson H. F. Beebe.
13883
13884         Improve strtod bug detection check.
13885         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
13886         required for Solaris 10.
13887         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
13888
13889 2008-04-04  Bruno Haible  <bruno@clisp.org>
13890
13891         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
13892         by m4/setenv.m4.
13893
13894 2008-04-03  Eric Blake  <ebb9@byu.net>
13895
13896         Ensure sane .version contents.
13897         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
13898         version string.
13899         * build-aux/git-version-gen: Improve documentation.
13900
13901         Make GNU make output nicer.
13902         * top/GNUmakefile [!_have-Makefile]: Add dependency on
13903         MAKECMDGOALS to enforce message for all command line targets.  Set
13904         srcdir for use in maint.mk.
13905
13906         Another maintainer tweak.
13907         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
13908         a target that regenerates version.
13909
13910 2008-04-03  Jim Meyering  <meyering@redhat.com>
13911
13912         vc-list-files: don't cause coreutils "make po-check" failure
13913         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
13914
13915 2008-04-03  Eric Blake  <ebb9@byu.net>
13916
13917         Allow VPATH usage of vc-list-files.
13918         * build-aux/vc-list-files (scriptversion): Add timestamp.
13919         (options): Add --help, --version, -C.
13920         (CVS): Support installed cvsu.
13921
13922 2008-04-02  Bruno Haible  <bruno@clisp.org>
13923
13924         Avoid some "statement with no effect" warnings from gcc.
13925         * tests/test-wctype.c (main): Explicitly ignore unused values.
13926         Reported by Jim Meyering.
13927
13928 2008-04-02  Jim Meyering  <meyering@redhat.com>
13929
13930         Avoid some warnings from "gcc -Wshadow".
13931         * tests/test-frexp.c (exp): Define to a different identifier.
13932         * tests/test-frexpl.c (exp): Likewise.
13933
13934 2008-04-03  Jim Meyering  <meyering@redhat.com>
13935
13936         bootstrap: remove dangling *.[ch] symlinks from lib
13937         * build-aux/bootstrap [dangling symlink removal]: Move find's
13938         -depth option to precede all others, to avoid a warning.
13939         Remove *.[ch] files too, and from "$source_base" (usually lib/).
13940
13941 2008-04-02  Bruno Haible  <bruno@clisp.org>
13942
13943         Avoid some warnings from "gcc -Wshadow".
13944         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
13945         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
13946         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
13947         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
13948         Reported by Jim Meyering.
13949
13950 2008-04-01  Bruno Haible  <bruno@clisp.org>
13951
13952         Fix test to work on IRIX 6.5 with cc.
13953         * tests/test-math.c (numeric_equal): New function.
13954         (main): Use it.
13955
13956 2008-04-01  Bruno Haible  <bruno@clisp.org>
13957
13958         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
13959
13960 2008-04-01  Bruno Haible  <bruno@clisp.org>
13961
13962         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
13963         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
13964         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
13965         (Depends-on): Remove math.
13966
13967         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
13968         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
13969         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
13970         (Depends-on): Remove math.
13971
13972         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
13973         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
13974         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
13975         (Depends-on): Remove math.
13976         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
13977         (Depends-on): Remove math.
13978
13979         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
13980         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
13981         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
13982         (Depends-on): Remove math.
13983         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
13984         (Depends-on): Remove math.
13985
13986         * tests/test-round1.c: Include nan.h.
13987         (main): Use NaNd instead of NAN.
13988         * modules/round-tests (Files): Add tests/nan.h.
13989
13990         * tests/test-trunc1.c: Include nan.h.
13991         (main): Use NaNd instead of NAN.
13992         * modules/trunc-tests (Files): Add tests/nan.h.
13993
13994         * tests/test-roundf1.c: Include nan.h.
13995         (main): Use NaNf instead of NAN.
13996         * modules/roundf-tests (Files): Add tests/nan.h.
13997
13998         * tests/test-truncf1.c: Include nan.h.
13999         (main): Use NaNf instead of NAN.
14000         * modules/truncf-tests (Files): Add tests/nan.h.
14001
14002         * tests/test-ceilf1.c: Include nan.h.
14003         (main): Use NaNf instead of NAN.
14004         * modules/ceilf-tests (Files): Add tests/nan.h.
14005
14006         * tests/test-floorf1.c: Include nan.h.
14007         (main): Use NaNf instead of NAN.
14008         * modules/floorf-tests (Files): Add tests/nan.h.
14009
14010         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
14011         (main): Use NaNf instead of NAN.
14012         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
14013
14014         * tests/test-isnand.c: Include nan.h instead of <math.h>.
14015         (main): Use NaNd instead of NAN.
14016         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
14017
14018         * tests/test-frexp.c: Include nan.h.
14019         (main): Use NaNd instead of NAN.
14020         * modules/frexp-tests (Files): Add tests/nan.h.
14021
14022         * lib/isnan.c: Don't include <math.h>.
14023         (FUNC): Don't use NAN macro.
14024         * modules/isnand-nolibm (Depends-on): Remove math.
14025         * modules/isnanf-nolibm (Depends-on): Remove math.
14026         * modules/isnanl (Depends-on): Remove math.
14027         * modules/isnanl-nolibm (Depends-on): Remove math.
14028
14029         * tests/nan.h: New file.
14030
14031 2008-04-01  Eric Blake  <ebb9@byu.net>
14032
14033         Fix typos.
14034         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
14035         values to be the right type.
14036
14037         For now, cater to gnulib strtod inaccuracies.
14038         * tests/test-strtod.c (main): Allow 1-ulp error on expected
14039         fractional results.  While not as nice from a QoI perspective, it
14040         is a quicker patch than correctly implementing decimal to binary
14041         rounding.
14042
14043 2008-03-31  Eric Blake  <ebb9@byu.net>
14044
14045         Guarantee a definition of NAN.
14046         * lib/math.in.h (NAN): Define if missing.
14047         * tests/test-math.c (main): Test it.
14048         * doc/posix-headers/math.texi (math.h): Document this.
14049         * lib/isnan.c (rpl_isnand): Use it.
14050         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
14051         * tests/test-floorf1.c (NaN): Likewise.
14052         * tests/test-frexp.c (NaN): Likewise.
14053         * tests/test-isnand.c (NaN): Likewise.
14054         * tests/test-isnanf.c (NaN): Likewise.
14055         * tests/test-round1.c (NaN): Likewise.
14056         * tests/test-roundf1.c (NaN): Likewise.
14057         * tests/test-snprintf-posix.h (NaN): Likewise.
14058         * tests/test-sprintf-posix.h (NaN): Likewise.
14059         * tests/test-trunc1.c (NaN): Likewise.
14060         * tests/test-truncf1.c (NaN): Likewise.
14061         * tests/test-vasnprintf-posix.c (NaN): Likewise.
14062         * tests/test-vasprintf-posix.c (NaN): Likewise.
14063         * modules/isnand-nolibm (Depends-on): Add math.
14064         * modules/isnanf-nolibm (Depends-on): Likewise.
14065         * modules/isnanl (Depends-on): Likewise.
14066         * modules/isnanl-nolibm (Depends-on): Likewise.
14067         * modules/snprintf-posix-tests (Depends-on): Likewise.
14068         * modules/sprintf-posix-tests (Depends-on): Likewise.
14069         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
14070         * modules/vsprintf-posix-tests (Depends-on): Likewise.
14071         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
14072         * modules/vasprintf-posix-tests (Depends-on): Likewise.
14073
14074 2008-03-31  Bruno Haible  <bruno@clisp.org>
14075
14076         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
14077         * doc/posix-functions/strtod.texi: Likewise.
14078
14079 2008-03-31  Bruno Haible  <bruno@clisp.org>
14080
14081         * tests/test-strtod.c (main): Don't use C99 syntax.
14082
14083 2008-03-31  Bruno Haible  <bruno@clisp.org>
14084
14085         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
14086         Reported by Eric Blake.
14087
14088 2008-03-31  Jim Meyering  <meyering@redhat.com>
14089
14090         Don't compare actual signbit return values.
14091         * tests/test-strtod.c (main): Rather, compare only their
14092         zero/non-zero nature.
14093
14094 2008-03-31  Eric Blake  <ebb9@byu.net>
14095
14096         More strtod documentation.
14097         * doc/posix-functions/strtod.texi (strtod): Interpret more test
14098         failures as distinct bugs.
14099
14100 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
14101
14102         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
14103         Problem reported by Erik Benada in
14104         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
14105
14106 2008-03-30  Bruno Haible  <bruno@clisp.org>
14107
14108         * tests/test-strtod.c: Add comments about which assertion fails on which
14109         platform.
14110         * doc/posix-functions/strtod.texi: Add info about many more platforms.
14111
14112 2008-03-30  Eric Blake  <ebb9@byu.net>
14113
14114         Test signbit behavior on zeros.
14115         * tests/test-signbit.c (test_signbitf): Add tests for zero.
14116         (test_signbitd, test_signbitl): Likewise.
14117
14118         More strtod touchups.
14119         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
14120         sign of negative underflow, for now.  Use .5, not .1.
14121         * doc/posix-functions/strtod.texi (strtod): Mention these
14122         limitations.
14123         Reported by Jim Meyering.
14124
14125 2008-03-30  Bruno Haible  <bruno@clisp.org>
14126
14127         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
14128         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
14129
14130 2008-03-30  Bruno Haible  <bruno@clisp.org>
14131
14132         Avoid failure when attempting to return empty iconv results on some
14133         platforms.
14134         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
14135         allocation, don't report ENOMEM when the resulting string is empty.
14136
14137 2008-03-30  Bruno Haible  <bruno@clisp.org>
14138
14139         Fix buffer overrun.
14140         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
14141         Don't consider the width for tmp_length. Check count against tmp_length
14142         before doing the padding. Ensure enough allocation during padding.
14143
14144 2008-03-30  Eric Blake  <ebb9@byu.net>
14145
14146         strtod touchups.
14147         * lib/strtod.c (strtod): Avoid compiler warnings.
14148         Reported by Jim Meyering.
14149
14150 2008-03-30  Bruno Haible  <bruno@clisp.org>
14151
14152         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
14153         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
14154         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
14155         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
14156         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
14157         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
14158         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
14159         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
14160
14161         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
14162         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
14163         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
14164         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
14165         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
14166         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
14167         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
14168         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
14169
14170         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
14171         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
14172         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
14173         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
14174         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
14175         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
14176         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
14177         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
14178
14179         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
14180         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
14181
14182         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
14183         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
14184
14185         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
14186         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
14187
14188         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
14189         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
14190         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
14191
14192         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
14193         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
14194         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
14195
14196         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
14197         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
14198         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
14199
14200         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
14201         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
14202         * modules/vasprintf (Depends-on): Add EOVERFLOW.
14203
14204         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
14205         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
14206         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
14207         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
14208         (Depends-on): Add EOVERFLOW.
14209         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
14210         (Depends-on): Add EOVERFLOW.
14211         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
14212         (Depends-on): Add EOVERFLOW.
14213         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
14214         (Depends-on): Add EOVERFLOW.
14215         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
14216         (Depends-on): Add EOVERFLOW.
14217         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
14218         (Depends-on): Add EOVERFLOW.
14219         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
14220         (Depends-on): Add EOVERFLOW.
14221         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
14222         (Depends-on): Add EOVERFLOW.
14223
14224         * lib/sprintf.c (EOVERFLOW): Remove fallback.
14225         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
14226         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
14227
14228         * lib/snprintf.c (EOVERFLOW): Remove fallback.
14229         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
14230         * modules/snprintf (Depends-on): Add EOVERFLOW.
14231
14232         * lib/poll.c (EOVERFLOW): Remove fallback.
14233         * modules/poll (Depends-on): Add EOVERFLOW.
14234
14235         * lib/getugroups.c (EOVERFLOW): Remove fallback.
14236         * modules/getugroups (Depends-on): Add EOVERFLOW.
14237
14238         * lib/getdelim.c (EOVERFLOW): Remove fallback.
14239         * modules/getdelim (Depends-on): Add EOVERFLOW.
14240
14241         * lib/ftell.c (EOVERFLOW): Remove fallback.
14242         * modules/ftell (Depends-on): Add EOVERFLOW.
14243
14244         * lib/fprintf.c (EOVERFLOW): Remove fallback.
14245         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
14246         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
14247
14248         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
14249
14250         * modules/EOVERFLOW-tests: New file.
14251         * tests/test-EOVERFLOW.c: New file.
14252
14253         * modules/EOVERFLOW: New file.
14254         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
14255
14256 2008-03-30  Bruno Haible  <bruno@clisp.org>
14257
14258         Fix bug introduced on 2007-06-10.
14259         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
14260         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
14261
14262 2008-03-30  Bruno Haible  <bruno@clisp.org>
14263
14264         Improve freadseek's efficiency after ungetc.
14265         * lib/freadseek.c: Include freadahead.h.
14266         (freadptrinc): New function, extracted from freadseek.
14267         (freadseek): Use it in a loop. Use freadahead to determine the number
14268         of loop iterations.
14269         * modules/freadseek (Depends-on): Add freadahead.
14270         (configure.ac): Require AC_C_INLINE.
14271
14272 2008-03-30  Bruno Haible  <bruno@clisp.org>
14273
14274         * lib/freadseek.c (freadseek): Don't ignore the return value of
14275         freadptr.
14276
14277 2008-03-29  Eric Blake  <ebb9@byu.net>
14278
14279         Add hex float support.
14280         * modules/strtod (Depends-on): Add c-ctype.
14281         (Link): Mention POW_LIB.
14282         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
14283         whitespace between 'e' and exponent.
14284         * tests/test-strtod.c (main): Enable hex float tests.
14285         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
14286         now provides.
14287
14288         Document various strtod bugs, with some fixes.
14289         * doc/posix-functions/strtod.texi (strtod): Document bugs with
14290         "-0x", "inf", "nan", and hex constants.
14291         * doc/posix-functions/atof.texi (atof): Likewise.
14292         * modules/stdlib (Makefile.am): Support strtod.
14293         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
14294         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
14295         detect additional strtod bugs.
14296         * lib/stdlib.in.h (rpl_strtod): Add declarations.
14297         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
14298         bool where appropriate.  Parse 'inf' and 'nan'.
14299         * tests/test-strtod.c: New file.
14300         * modules/strtod (Depends-on): Add stdbool, stdlib.
14301         (configure.ac): Turn on module indicator.
14302         * modules/strtod-tests: New module.
14303
14304 2008-03-29  Eric Blake  <ebb9@byu.net>
14305
14306         Fix ftell on mingw.
14307         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
14308         * modules/ftell-tests (Depends-on): Add binary-io.
14309         * modules/ftello-tests (Depends-on): Likewise.
14310         * tests/test-ftell.c (main): Enhance test to cover behavior after
14311         ungetc.  Enforce binary mode.
14312         * tests/test-ftello.c (main): Likewise.
14313
14314         Pass test-freadseek on cygwin.
14315         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
14316         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
14317         ungetc buffer.
14318
14319         * tests/test-fflush2.c (main): Fix typo.
14320
14321 2008-03-29  Bruno Haible  <bruno@clisp.org>
14322
14323         * tests/test-fflush2.c (main): Temporarily disable the contents of
14324         this test.
14325         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
14326         Reported by Eric Blake.
14327
14328 2008-03-28  Simon Josefsson  <simon@josefsson.org>
14329
14330         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
14331         (GC_SHA224_DIGEST_SIZE): Add.
14332
14333         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
14334         (gc_hash_digest_length): Likewise.
14335         (gc_hash_buffer): Likewise.
14336
14337 2008-03-25  Bruno Haible  <bruno@clisp.org>
14338
14339         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
14340         detail which gettext release to use.
14341         Reported by Simon Josefsson.
14342
14343 2008-03-26  Jim Meyering  <meyering@redhat.com>
14344
14345         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
14346         * modules/gnumakefile (clean-GNUmakefile): Also, use
14347         test ... && ... || : syntax rather than if-then ... fi.
14348
14349         gnumakefile: Don't double-quote-expand $(VPATH) value.
14350         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
14351
14352 2008-03-24  Eric Blake  <ebb9@byu.net>
14353
14354         Alter GNUmakefile to install into top directory.
14355         * modules/maintainer-makefile: Split, and add dependency...
14356         * modules/gnumakefile: to this new module.
14357         * build-aux/GNUmakefile: Move...
14358         * top/GNUmakefile: ...here.
14359         * build-aux/maint.mk: Move...
14360         * top/maint.mk: ...here.
14361         * MODULES.html.sh (Support for maintaining...): Document new
14362         module.
14363
14364 2008-03-23  Bruno Haible  <bruno@clisp.org>
14365
14366         * gnulib-tool: New options --vc-files, --no-vc-files.
14367         (func_usage): Document them.
14368         (vc_files): New variable.
14369         (func_import): Consider vc_files.
14370         (func_create_testdir): Set vc_files to empty.
14371         Suggested by Jim Meyering and Karl Berry.
14372
14373 2008-03-23  Bruno Haible  <bruno@clisp.org>
14374
14375         Fix regex compilation error on HP-UX 11.
14376         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
14377         * modules/regex (Files): Add m4/mbstate_t.m4.
14378         Reported by Ton Voon <ton.voon@altinity.com>.
14379
14380 2008-03-23  Bruno Haible  <bruno@clisp.org>
14381
14382         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
14383
14384 2008-03-23  Eric Blake  <ebb9@byu.net>
14385             Bruno Haible  <bruno@clisp.org>
14386
14387         Install files from top/ in the destination directory.
14388         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
14389         augmentation also for the files from top/.
14390         (func_import, func_create_testdir): Rewrite file names:
14391         top/filename -> filename.
14392
14393 2008-03-23  Bruno Haible  <bruno@clisp.org>
14394
14395         Tweak "gnulib --version" output.
14396         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
14397
14398 2008-03-23  Bruno Haible  <bruno@clisp.org>
14399
14400         Tweak "gnulib --version" output.
14401         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
14402         rather than contents of ChangeLog, when possible.
14403
14404 2008-03-21  Eric Blake  <ebb9@byu.net>
14405
14406         More --version tweaks.
14407         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
14408         date of last ChangeLog entry.
14409
14410 2008-03-21  Jim Meyering  <meyering@redhat.com>
14411
14412         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
14413
14414 2008-03-20  Eric Blake  <ebb9@byu.net>
14415
14416         VPATH fix.
14417         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
14418
14419 2008-03-20  Simon Josefsson  <simon@josefsson.org>
14420
14421         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
14422         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
14423
14424 2008-03-20  Eric Blake  <ebb9@byu.net>
14425
14426         Sync GNUmakefile with coreutils.
14427         * build-aux/GNUmakefile (have-Makefile): Rename...
14428         (_have-Makefile): ...to this, for namespace consideration.
14429         (GNUmakefile.cfg): Include, if present.
14430         (_autoreconf): Define a default.
14431         (_is-dist-target): New rule for rebuilds to pick up intra-release
14432         version.
14433         (maint-cfg.mk): Rename...
14434         (cfg.mk): ...to this.
14435
14436 2008-03-18  Jim Meyering  <meyering@redhat.com>
14437
14438         New script and module: mktempd
14439         * MODULES.html.sh (maint+release support): Add mktempd.
14440         * build-aux/mktempd: New file.
14441         * modules/mktempd: New file.
14442
14443 2008-03-15  Jim Meyering  <meyering@redhat.com>
14444
14445         Undo last change.
14446         * lib/sha1.c, lib/md5.c: 63 != ~63.
14447         Reported by Andreas Schwab.
14448
14449         sha1.c, md5.c: Hoist a redundant expression.
14450         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
14451         "ctx->buflen" only once, before calling *_process_block.
14452         * lib/md5.c (md5_process_bytes): Likewise.
14453
14454 2008-03-14  Eric Blake  <ebb9@byu.net>
14455
14456         Bump copyright year in files generated by gnulib-tool.
14457         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
14458         gnulib-tool, rather than hard-coding it.
14459
14460         Fix 'gnulib-tool --version' output to work with git.
14461         * gnulib-tool (func_gnulib_dir): New function, extracted from...
14462         (startup): ...here.
14463         (func_version): Use it to invoke git-version-gen, rather than
14464         relying on CVS keyword expansion.  Modernize wording.
14465         (cvsdatestamp, last_checkin_date, version): Kill unused
14466         variables.
14467
14468 2008-03-12  Jim Meyering  <meyering@redhat.com>
14469
14470         Recognize optional cast of the argument to free.
14471         * build-aux/useless-if-before-free: Update regexps.
14472
14473         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
14474
14475 2008-03-11  Bruno Haible  <bruno@clisp.org>
14476
14477         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
14478         by a single package.
14479         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
14480         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
14481         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
14482         Reported by Sam Steingold <sds@gnu.org>.
14483
14484 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
14485
14486         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
14487         repositories.
14488
14489 2008-03-11  Bruno Haible  <bruno@clisp.org>
14490
14491         Avoid conflicts between local macro definitions.
14492         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
14493         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
14494
14495 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
14496             Bruno Haible  <bruno@clisp.org>
14497
14498         Make va_copy work with some version of xlc on AIX 5.1.
14499         * lib/stdarg.in.h: New file.
14500         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
14501         On AIX, use a <stdarg.h> file substitute.
14502         * modules/stdarg (Files): Add lib/stdarg.in.h.
14503         (Depends-on): Add include_next.
14504         (Makefile.am): Build a stdarg.h substitute if requested.
14505         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
14506
14507 2008-03-10  Bruno Haible  <bruno@clisp.org>
14508
14509         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
14510         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
14511         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
14512
14513 2008-03-10  Bruno Haible  <bruno@clisp.org>
14514
14515         * modules/stdlib (Depends-on): Add include_next, remove
14516         absolute-header.
14517
14518 2008-03-09  Bruno Haible  <bruno@clisp.org>
14519
14520         * lib/freadahead.h (freadahead): Document more precisely.
14521         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
14522         the sum of both buffer sizes.
14523         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
14524         * NEWS: Document the change.
14525
14526 2008-03-09  Bruno Haible  <bruno@clisp.org>
14527
14528         Extend freadptr to return also the buffer size.
14529         * lib/freadptr.h (freadptr): Add sizep argument.
14530         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
14531         (freadptr): Add sizep argument. Determine buffer size like freadahead
14532         does.
14533         * tests/test-freadptr.c: Don't include freadahead.h.
14534         (main): Adapt for new calling convention of freadptr.
14535         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
14536         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
14537         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
14538         tests/test-freadptr2.sh.
14539         (Depends): Remove freadahead.
14540         (TESTS): Add test-freadptr2.sh.
14541         (check_PROGRAMS): Add test-freadptr2.
14542
14543 2008-03-09  Bruno Haible  <bruno@clisp.org>
14544
14545         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
14546         Report and solution by Simon Josefsson.
14547
14548 2008-03-06  Bruno Haible  <bruno@clisp.org>
14549
14550         Make fflush after ungetc work on BSD platforms.
14551         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
14552         * tests/test-fflush2.c: New file.
14553         * tests/test-fflush2.sh: New file.
14554         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
14555         tests/test-fflush2.c.
14556         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
14557         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
14558
14559 2008-03-06  Eric Blake  <ebb9@byu.net>
14560
14561         Likewise for ftello.
14562         * modules/ftello (Dependencies): Add extensions.
14563         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
14564
14565 2008-03-06  Bruno Haible  <bruno@clisp.org>
14566
14567         * modules/fseeko (Dependencies): Add extensions.
14568         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
14569         Needed on glibc systems.
14570
14571 2008-03-06  Bruno Haible  <bruno@clisp.org>
14572
14573         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
14574         email address.
14575         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14576
14577 2008-03-06  Bruno Haible  <bruno@clisp.org>
14578
14579         * users.txt: Add libgnupdf.
14580
14581 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14582
14583         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
14584         (Header File Substitutes, Function Substitutes,
14585         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
14586         (Build robot for gnulib): Fix typo.
14587
14588 2008-03-06  Bruno Haible  <bruno@clisp.org>
14589
14590         * doc/gnulib-tool.texi (VCS Issues): Small updates.
14591         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14592
14593 2008-03-06  Bruno Haible  <bruno@clisp.org>
14594
14595         * doc/func.texi: New file, extracted from doc/gnulib.texi.
14596         * doc/gnulib.texi: Include it.
14597
14598 2008-03-06  Simon Josefsson  <simon@josefsson.org>
14599
14600         * modules/func (License): Change license to unlimited; there was
14601         no LGPL parts in the module anyway.
14602
14603 2008-03-06  Simon Josefsson  <simon@josefsson.org>
14604
14605         * modules/__func__: Renamed to modules/func.
14606         * modules/__func__-tests: Renamed to modules/func-tests.
14607         * tests/test-__func__.c: Renamed to tests/test-func.c.
14608         * m4/__func__.m4: Renamed to m4/func.m4.
14609         * doc/gnulib.texi (__func__): Section renamed to func.
14610         Suggested by Eric Blake <ebb9@byu.net>.
14611
14612 2008-03-06  Simon Josefsson  <simon@josefsson.org>
14613
14614         * doc/gnulib.texi (__func__): Use C99 terminology when talking
14615         about __func__.  Make example self-contained.  Suggested by Eric
14616         Blake <ebb9@byu.net>.
14617
14618         * tests/test-__func__.c (main): Avoid extraneous () around __func.
14619         Suggested by Eric Blake <ebb9@byu.net>.
14620
14621 2008-03-06  Simon Josefsson  <simon@josefsson.org>
14622
14623         * modules/__func__: New file.
14624         * modules/__func__-tests: New file.
14625         * tests/test-__func__.c: New file.
14626         * m4/__func__.m4: New file.
14627         * doc/gnulib.texi (__func__): Document __func__ module.
14628
14629 2008-03-05  Simon Josefsson  <simon@josefsson.org>
14630
14631         * modules/byteswap (License): Re-license as LGPLv2+.
14632
14633 2008-03-05  Simon Josefsson  <simon@josefsson.org>
14634
14635         * doc/Makefile: Add pdf target.
14636
14637 2008-03-05  Simon Josefsson  <simon@josefsson.org>
14638
14639         * modules/inline (License): Use 'unlimited', since there are only
14640         *.m4 files in this module.
14641
14642 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
14643             Bruno Haible  <bruno@clisp.org>
14644
14645         Add support for HP C 7.1 on OpenVMS 8.3.
14646         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
14647
14648 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
14649
14650         Update VMS specifics.
14651         * lib/getopt.c [VMS]: Remove include of unixlib.h.
14652
14653 2008-03-02  Jim Meyering  <meyering@redhat.com>
14654
14655         Remove the last dependency on the "free" module.
14656         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
14657         Reported by Bob Proulx.
14658
14659         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
14660
14661         Remove useless "if" tests before free.  Deprecate "free" module.
14662         * doc/posix-functions/free.texi: Mention that this
14663         module is no longer useful.
14664         * modules/free (Notice): Say this module is obsolete.
14665         * modules/readutmp (Depends-on): Remove free.
14666         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
14667         * lib/putenv.c (putenv): Likewise.
14668         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
14669         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
14670         * tests/test-c-strcasestr.c (main): Likewise.
14671         * tests/test-c-strstr.c (main): Likewise.
14672         * tests/test-mbscasestr1.c (main): Likewise.
14673         * tests/test-mbscasestr2.c (main): Likewise.
14674         * tests/test-mbsstr1.c (main): Likewise.
14675         * tests/test-mbsstr2.c (main): Likewise.
14676         * tests/test-memmem.c (main): Likewise.
14677         * tests/test-strcasestr.c (main): Likewise.
14678         * tests/test-striconv.c (main): Likewise.
14679         * tests/test-striconveh.c (main): Likewise.
14680         * tests/test-striconveha.c (main): Likewise.
14681         * tests/test-strstr.c (main): Likewise.
14682
14683         * build-aux/git-version-gen: Adjust a comment and the Usage string.
14684
14685         bootstrap: sync from coreutils again
14686         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
14687
14688 2008-03-01  Jim Meyering  <meyering@redhat.com>
14689
14690         bootstrap: sync from coreutils
14691         * build-aux/bootstrap (update_po_files): Copy a .po file into place
14692         also when the target doesn't exist.
14693
14694 2008-03-01  Eric Blake  <ebb9@byu.net>
14695
14696         Fix bugs in last patch.
14697         * lib/memchr2.c (memchr2): Fix typo.
14698         * tests/test-memchr2.c: Test previous bug, and don't use GNU
14699         extension.
14700         Reported by Bruce Korb.
14701
14702         New module 'memchr2'.
14703         * modules/memchr2: New file.
14704         * modules/memchr2-tests: Likewise.
14705         * lib/memchr2.h: Likewise.
14706         * lib/memchr2.c: Likewise, based on memchr.c.
14707         * tests/test-memchr2.c: New test.
14708         * MODULES.html.sh (String handling): Add memchr2.
14709
14710 2008-02-29  Bruno Haible  <bruno@clisp.org>
14711
14712         * modules/freadseek-tests: New file.
14713         * tests/test-freadseek.sh: New file.
14714         * tests/test-freadseek.c: New file.
14715
14716         New module 'freadseek'.
14717         * modules/freadseek: New file.
14718         * lib/freadseek.h: New file.
14719         * lib/freadseek.c: New file.
14720         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
14721
14722 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
14723
14724         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
14725         wydawca.
14726
14727         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
14728         program_invocation_name and program_invocation_short_name are
14729         present.
14730
14731 2008-02-28  Bruno Haible  <bruno@clisp.org>
14732
14733         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
14734         * tests/test-freadptr.sh: Also test non-seekable stdin.
14735
14736 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
14737
14738         * build-aux/bootstrap (source_base, m4_base)
14739         (doc_base, tests_base): New variables.
14740         (gnulib_tool_options): Do not hardcode base directories, use
14741         the above variables instead.
14742
14743 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
14744
14745         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
14746
14747 2008-02-28  Bruno Haible  <bruno@clisp.org>
14748
14749         * modules/freadptr-tests: New file.
14750         * tests/test-freadptr.sh: New file.
14751         * tests/test-freadptr.c: New file.
14752
14753         New module 'freadptr'.
14754         * modules/freadptr: New file.
14755         * lib/freadptr.h: New file.
14756         * lib/freadptr.c: New file.
14757         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
14758
14759 2008-02-26  Karl Berry  <karl@freefriends.org>
14760
14761         Sync from Libtool:
14762         * libltdl/argz.c (argz_add, argz_count): New functions.
14763         * libltdl/argz.in.h: Declare them.
14764         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
14765
14766 2008-02-22  Bruno Haible  <bruno@clisp.org>
14767
14768         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
14769         is a pointer type.  Needed for HP-UX 10.
14770         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
14771         * doc/posix-functions/gmtime_r.texi: Likewise.
14772         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
14773
14774 2008-02-24  Bruno Haible  <bruno@clisp.org>
14775
14776         * modules/environ-tests: New file.
14777         * tests/test-environ.c: New file.
14778
14779         New module 'environ'.
14780         * modules/environ: New file.
14781         * lib/unistd.in.h (environ): New declaration.
14782         * m4/environ.m4: New file.
14783         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
14784         after use.
14785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
14786         HAVE_DECL_ENVIRON.
14787         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
14788         HAVE_DECL_ENVIRON.
14789         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
14790         wrong claim that 'environ' is missing on some systems.
14791         * modules/execute (Depends-on): Add environ.
14792         * lib/execute.c (environ): Remove fallback declaration.
14793         * modules/pipe (Depends-on): Add environ.
14794         * lib/pipe.c (environ): Remove fallback declaration.
14795         * modules/setenv (Depends-on): Add environ.
14796         * lib/setenv.c (environ): Remove fallback declaration.
14797         * modules/unsetenv (Depends-on): Add environ.
14798         * lib/unsetenv.c (environ): Remove fallback declaration.
14799         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
14800         m4/environ.m4.
14801         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
14802         (gl_PREREQ_UNSETENV): Likewise.
14803
14804 2008-02-24  Bruno Haible  <bruno@clisp.org>
14805
14806         * doc/posix-functions/environ.texi: Document the MacOS X problem.
14807
14808 2008-02-20  Bob Proulx  <bob@proulx.com>
14809
14810         Enable use of older two part flavor 'git describe'.
14811         * build-aux/git-version-gen: If using the older two part flavor of
14812         git version then recreate the third part now present in the
14813         newer three part flavor of git describe.
14814
14815 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
14816
14817         * lib/fts.c (fts_build): Typo correction to comment.
14818
14819 2008-02-17  Bruno Haible  <bruno@clisp.org>
14820
14821         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
14822         generating no-op conflicts.
14823
14824 2008-02-17  Bruno Haible  <bruno@clisp.org>
14825
14826         Speed up by 10%.
14827         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
14828         result_entries, rather than an index-based loop.
14829
14830 2008-02-17  Bruno Haible  <bruno@clisp.org>
14831
14832         Speed up by 25%.
14833         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
14834         'hashcode_cached'.
14835         (entry_create): New function.
14836         (entry_hashcode): Use the cached hashcode if possible.
14837         (read_changelog_file, try_split_merged_entry): Use entry_create.
14838
14839 2008-02-17  Bruno Haible  <bruno@clisp.org>
14840
14841         Speed up from O(n^2) to O(n) for long ChangeLog files.
14842         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
14843         (read_changelog_file): Change implementation of entries_reversed list
14844         to rbtreehash.
14845         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
14846
14847 2008-02-17  Bruno Haible  <bruno@clisp.org>
14848
14849         New option --split-merged-entry.
14850         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
14851         (find_paragraph_end, try_split_merged_entry): New functions.
14852         (long_options): Add option --split-merged-entry.
14853         (usage): Document option --split-merged-entry.
14854         (main): Implement option --split-merged-entry.
14855         Reported by Eric Blake.
14856
14857 2008-02-17  Bruno Haible  <bruno@clisp.org>
14858
14859         * lib/git-merge-changelog.c: Include c-strstr.h.
14860         (main): Support the "git pull --rebase" situation.
14861         * modules/git-merge-changelog (Depends-on): Add c-strstr.
14862         Reported by Eric Blake.
14863
14864 2008-02-16  Eric Blake  <ebb9@byu.net>
14865
14866         Avoid doubling \ in common case of "c-maybe" quoting style.
14867         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
14868         eliding outer quotes.
14869         * lib/quotearg.h: Document this.
14870         * tests/test-quotearg.c (result_strings, inputs, results_g)
14871         (flag_results, locale_results): Test it by adding a new string to
14872         each test group.
14873         (compare_strings): Test new string.
14874
14875 2008-02-13  Eric Blake  <ebb9@byu.net>
14876
14877         Avoid trigraph quoting in default output.
14878         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
14879         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
14880         unless explicitly requested.
14881         * tests/test-quotearg.c (flag_results, main): Add additional tests.
14882
14883 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
14884
14885         Don't rely on signed integer overflowing to negative value.
14886         * lib/getugroups.c (getugroups): Include <limits.h>.
14887         Instead, compare against INT_MAX, and increment only if the test passes.
14888
14889 2008-02-13  Jim Meyering  <meyering@redhat.com>
14890         and Eric Blake  <ebb9@byu.net>
14891
14892         Avoid shadowing warning and compile errors on Linux.
14893         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
14894         forwarding macros on Linux.
14895         (dcgettext): Define a stub, for Linux.
14896         (results_g, main): Avoid warnings.
14897
14898 2008-02-12  Eric Blake  <ebb9@byu.net>
14899
14900         Silence warning in last patch.
14901         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
14902
14903         Quotearg part 4: add tests, fix c-maybe colon quoting.
14904         * lib/quotearg.h: Improve documentation.
14905         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
14906         escapes when adding outer quotes.  When quoting trigraphs, use
14907         valid C notation.  When quoting NUL, omit extra characters if next
14908         character is not digit.  Alter prototype.
14909         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
14910         callers.
14911         * modules/quotearg-tests: New module.
14912         * tests/test-quotearg.c: New test.
14913
14914 2008-02-07  Eric Blake  <ebb9@byu.net>
14915
14916         Quotearg part 3: add flag to control outer quote elision.
14917         * lib/quotearg.h (c_maybe_quoting_style): New style.
14918         (enum quoting_flags): Better documentation of flags.
14919         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
14920         c-maybe style.
14921         (quotearg_buffer_restyled): Handle new flag to elide outer
14922         quotes.
14923
14924         Quotearg part 2: add flag that can control NUL elision.
14925         * lib/quotearg.h (set_quoting_flags): New prototype.
14926         * lib/quotearg.c (struct quoting_options): Add flag field.
14927         (set_quoting_flags): New function.
14928         (quotearg_buffer_restyled): Add flags parameter.
14929         (quotearg_alloc_mem): Set the flag if length cannot be returned.
14930         (quotearg_n_options): Set the flag, since length cannot be
14931         returned.
14932         (quoting_options_from_style): Default flags correctly.
14933
14934         Quotearg part 1: more wrappers, restore quotearg_char state.
14935         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
14936         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
14937         (quotearg_colon_mem): New wrappers.
14938         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
14939         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
14940         functions.
14941         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
14942         (quotearg_colon_mem): New functions.
14943
14944 2008-02-11  Bruno Haible  <bruno@clisp.org>
14945
14946         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
14947         library in the current directory: it does not work with parallel make.
14948         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14949
14950 2008-02-11  Bruno Haible  <bruno@clisp.org>
14951
14952         * .gitattributes: New file.
14953
14954 2008-02-11  Jim Meyering  <meyering@redhat.com>
14955
14956         useless-if-before-free: Fix reversed exit values.
14957         * build-aux/useless-if-before-free: Use correct values
14958         for EXIT_MATCH and EXIT_NO_MATCH.
14959
14960         * build-aux/useless-if-before-free: Close stdout carefully.
14961
14962 2008-02-10  Bruno Haible  <bruno@clisp.org>
14963
14964         New module 'git-merge-changelog'.
14965         * modules/git-merge-changelog: New file.
14966         * lib/git-merge-changelog.c: New file.
14967
14968 2008-02-10  Jim Meyering  <meyering@redhat.com>
14969
14970         useless-if-before-free: New option: --list (-l).
14971
14972         useless-if-before-free: Don't exit immediately upon open failure.
14973         * build-aux/useless-if-before-free: Exit 2 for errors.
14974         Upon failure to open a file, don't exit immediately.
14975         Rather, just warn and continue with any remaining files.
14976
14977 2008-02-10  Bruno Haible  <bruno@clisp.org>
14978
14979         New abstract list operation 'node_set_value'.
14980         * lib/gl_list.h (gl_list_node_set_value): New function.
14981         (struct gl_list_implementation): New field node_set_value.
14982         * lib/gl_list.c (gl_list_node_set_value): New function.
14983         * lib/gl_array_list.c (gl_array_node_set_value): New function.
14984         (gl_array_list_implementation): Update.
14985         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
14986         (gl_carray_list_implementation): Update.
14987         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
14988         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
14989         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
14990         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
14991         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
14992         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
14993         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
14994         Update.
14995         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
14996         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
14997         (gl_sublist_list_implementation): Update.
14998
14999 2008-02-10  Bruno Haible  <bruno@clisp.org>
15000
15001         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
15002         Needed when ELEMENT is #defined to 'some_type *'.
15003
15004 2008-02-10  Jim Meyering  <meyering@redhat.com>
15005
15006         New script and module: useless-if-before-free
15007         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
15008         * build-aux/useless-if-before-free: New file.
15009         * modules/useless-if-before-free: New file.
15010
15011         * build-aux/gitlog-to-changelog: Use committer date, not author date.
15012
15013         xstrtol_error: Fix typo.
15014         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
15015         s/exit_failure/exit_status/.
15016
15017 2008-02-09  Jim Meyering  <meyering@redhat.com>
15018
15019         New script and module: gitlog-to-changelog
15020         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
15021         * modules/gitlog-to-changelog: New file.
15022         * build-aux/gitlog-to-changelog: New file.
15023
15024 2008-02-08  Jim Meyering  <meyering@redhat.com>
15025
15026         Avoid two "parameter unused" warnings.
15027         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
15028         Mark "st" as used.
15029
15030         Use "git COMMAND", not "git-COMMAND".
15031         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
15032         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
15033         * build-aux/git-version-gen: Use "git status", not "git-status".
15034
15035 2008-02-07  Bruno Haible  <bruno@clisp.org>
15036
15037         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
15038         Avoids a crash on Windows Vista.
15039         Reported by Adam Strzelecki <ono@java.pl> via
15040         Simon Josefsson <simon@josefsson.org>.
15041
15042 2008-02-06  Bruno Haible  <bruno@clisp.org>
15043
15044         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
15045         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
15046         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
15047         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
15048         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15049         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15050         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
15051         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
15052         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15053         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15054         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15055         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15056         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15057         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15058         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15059         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
15060         left-adjust flag.
15061         * tests/test-snprintf-posix.h (test_function): Likewise.
15062         * tests/test-sprintf-posix.h (test_function): Likewise.
15063         * tests/test-vasprintf-posix.c (test_function): Likewise.
15064         * doc/posix-functions/fprintf.texi: Update.
15065         * doc/posix-functions/printf.texi: Update.
15066         * doc/posix-functions/snprintf.texi: Update.
15067         * doc/posix-functions/sprintf.texi: Update.
15068         * doc/posix-functions/vfprintf.texi: Update.
15069         * doc/posix-functions/vprintf.texi: Update.
15070         * doc/posix-functions/vsnprintf.texi: Update.
15071         * doc/posix-functions/vsprintf.texi: Update.
15072         Reported by Peter Fales <psfales@alcatel-lucent.com>.
15073
15074 2008-02-06  Bruno Haible  <bruno@clisp.org>
15075
15076         Fix bug introduced on 2008-01-26.
15077         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
15078
15079 2008-02-06  Bruno Haible  <bruno@clisp.org>
15080
15081         Fix bug introduced on 2007-06-10.
15082         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
15083         !NEED_PRINTF_FLAG_ZERO.
15084
15085 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
15086
15087         getloadavg: use libperfstat on AIX5
15088         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
15089
15090 2008-02-03  Bruno Haible  <bruno@clisp.org>
15091
15092         * lib/diffseq.h: Add comments about required #includes.
15093         Reported by Michael Biggs <gnulib@doubleplum.net>.
15094
15095 2008-02-01  Bruno Haible  <bruno@clisp.org>
15096
15097         * users.txt: Add gnuit.
15098
15099 2008-01-31  Bruno Haible  <bruno@clisp.org>
15100
15101         * lib/md4.c (set_uint32): Mark as inline.
15102         * lib/md5.c (set_uint32): Likewise.
15103         * lib/sha1.c (set_uint32): Likewise.
15104         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
15105         * m4/md5.m4 (gl_MD5): Likewise.
15106         * m4/sha1.m4 (gl_SHA1): Likewise.
15107
15108 2008-01-31  Jim Meyering  <meyering@redhat.com>
15109
15110         Use "sizeof VAR", rather than a literal "4".
15111         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
15112         * lib/md4.c (md4_read_ctx): Likewise.
15113         * lib/sha1.c (sha1_read_ctx): Likewise.
15114
15115 2008-01-31  Simon Josefsson  <simon@josefsson.org>
15116
15117         * tests/test-sha1.c: New file, based on test-md5.c.
15118
15119         * modules/crypto/sha1-tests: New file.
15120
15121 2008-01-31  Simon Josefsson  <simon@josefsson.org>
15122
15123         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
15124
15125 2008-01-31  Jim Meyering  <meyering@redhat.com>
15126
15127         Prefer "sizeof v" over the equivalent "4".
15128         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
15129         * lib/md5.c (set_uint32): Likewise.
15130         * lib/sha1.c (set_uint32): Likewise.
15131
15132 2008-01-31  Simon Josefsson  <simon@josefsson.org>
15133
15134         * lib/sha1.c (set_uint32): Mark function as static.
15135
15136 2008-01-31  Simon Josefsson  <simon@josefsson.org>
15137
15138         md2: clarify comments to say that alignment is not required.
15139         * lib/md2.h: Remove warning about alignment in comment.
15140         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
15141         never been required.
15142
15143 2008-01-31  Simon Josefsson  <simon@josefsson.org>
15144
15145         md4: adapt alignment constraint fix from sha1.
15146         * lib/md4.c (set_uint32): New function, from sha1.c
15147         (md4_read_ctx): Use it.
15148         (md4_finish_ctx): Doc fix.
15149         * lib/md4.h: Doc fix.
15150
15151 2008-01-31  Simon Josefsson  <simon@josefsson.org>
15152
15153         md5: adapt alignment constraint fix from sha1.
15154         * lib/md5.c (set_uint32): New function, from sha1.c
15155         (md5_read_ctx): Use it.
15156         (md5_finish_ctx): Doc fix.
15157         * lib/md5.h: Doc fix.
15158
15159 2008-01-30  Peter Palfrader  <weasel@debian.org>
15160
15161         sha1: remove the result buffer alignment constraint
15162         * lib/sha1.c (set_uint32): New function.
15163         (sha1_read_ctx): Rewrite to remove the result buffer alignment
15164         constraint.
15165         (sha1_finish_ctx): Remove comment warning about alignment constraint.
15166         * lib/sha1.h: Likewise.
15167
15168 2008-01-30  Andreas Schwab  <schwab@suse.de>
15169             Bruno Haible  <bruno@clisp.org>
15170
15171         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
15172         correct definition of LDBL_MIN_EXP.
15173
15174 2008-01-30  Karl Berry  <karl@gnu.org>
15175
15176         * config/srclist-update: try to preserve x bit on updates.
15177         * config/srclistvars.sh: update for karl.
15178
15179 2008-01-29  Jim Meyering  <meyering@redhat.com>
15180
15181         vasnprintf.c: Avoid warning about unused label
15182         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
15183         "overflow" label definition and associated code with the
15184         same cpp condition that guards the sole use of that label.
15185
15186 2008-01-26  Bruno Haible  <bruno@clisp.org>
15187
15188         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
15189         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
15190         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
15191         * lib/isnanl-nolibm.h (isnanl): Likewise.
15192         Reported by Paul Eggert <eggert@cs.ucla.edu>.
15193
15194 2008-01-26  Bruno Haible  <bruno@clisp.org>
15195
15196         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
15197         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
15198
15199 2008-01-26  Bruno Haible  <bruno@clisp.org>
15200
15201         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
15202         GCC >= 4.0 built-in.
15203         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
15204
15205 2008-01-26  Bruno Haible  <bruno@clisp.org>
15206
15207         Rename isnan, applicable to 'double' only, to isnand.
15208         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
15209         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
15210         (configure.ac): Update.
15211         (Include): Replace "isnan.h" with "isnand.h".
15212         * m4/isnand.m4: Renamed from m4/isnan.m4.
15213         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
15214         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
15215         instead of isnan.c.
15216         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
15217         instead of HAVE_ISNAN_IN_LIBC.
15218         (isnand): Renamed from isnan.
15219         * lib/isnand.c: New file.
15220         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
15221         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
15222         (Makefile.am): Update.
15223         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
15224         Include isnand.h instead of isnan.h.
15225         (main): Test isnand instead of isnan.
15226         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
15227         isnan-nolibm.
15228         * modules/frexp (Depends-on): Likewise.
15229         * modules/frexp-tests (Depends-on): Likewise.
15230         * modules/frexp-nolibm (Depends-on): Likewise.
15231         * modules/frexp-nolibm-tests (Depends-on): Likewise.
15232         * modules/isfinite (Depends-on): Likewise.
15233         * modules/round-tests (Depends-on): Likewise.
15234         * modules/signbit (Depends-on): Likewise.
15235         * modules/signbit-tests (Depends-on): Likewise.
15236         * modules/snprintf-posix (Depends-on): Likewise.
15237         * modules/sprintf-posix (Depends-on): Likewise.
15238         * modules/trunc-tests (Depends-on): Likewise.
15239         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15240         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15241         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15242         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15243         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15244         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15245         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15246         * modules/vasnprintf-posix (Depends-on): Likewise.
15247         * modules/vasprintf-posix (Depends-on): Likewise.
15248         * modules/vfprintf-posix (Depends-on): Likewise.
15249         * modules/vsnprintf-posix (Depends-on): Likewise.
15250         * modules/vsprintf-posix (Depends-on): Likewise.
15251         * lib/frexp.c: Include isnand.h instead of isnan.h.
15252         (ISNAN): Set to isnand instead of isnan.
15253         * lib/isfinite.c: Include isnand.h instead of isnan.h.
15254         (gl_isfinited): Use isnand instead of isnan.
15255         * lib/signbitd.c: Include isnand.h instead of isnan.h.
15256         (gl_signbitd): Use isnand instead of isnan.
15257         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
15258         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
15259         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
15260         (main): Use isnand instead of isnan.
15261         * tests/test-round1.c: Include isnand.h.
15262         (main): Use isnand instead of isnan.
15263         * tests/test-round2.c: Include isnand.h instead of isnan.h.
15264         (ISNAN): Set to isnand instead of isnan.
15265         * tests/test-trunc1.c: Include isnand.h.
15266         (main): Use isnand instead of isnan.
15267         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
15268         (equal): Use isnand instead of isnan.
15269         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
15270         isnand-nolibm.
15271         * NEWS: Mention the change.
15272
15273 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
15274             Bruno Haible  <bruno@clisp.org>
15275
15276         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
15277         the GCC builtins for signbits are present and set
15278         REPLACE_SIGNBIT_USING_GCC if so.
15279         * lib/math.in.h (signbit): Define using GCC builtins if
15280         REPLACE_SIGNBIT_USING_GCC is set.
15281         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
15282         REPLACE_SIGNBIT_USING_GCC.
15283         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
15284
15285 2008-01-25  Jim Meyering  <meyering@redhat.com>
15286
15287         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
15288         * lib/poll.c: Include <config.h>, not "config.h".
15289         * tests/test-getaddrinfo.c: Likewise.
15290
15291 2008-01-25  Simon Josefsson  <simon@josefsson.org>
15292
15293         * modules/sockets-tests: New file.
15294
15295 2008-01-24  Simon Josefsson  <simon@josefsson.org>
15296
15297         * modules/sockets: New module, can be used to call WSA_Startup and
15298         WSA_Cleanup when needed.
15299
15300         * lib/sockets.h, lib/sockets.c: New files.
15301
15302         * m4/sockets.m4: New file.
15303
15304         * tests/test-sockets.c: New file.
15305
15306 2008-01-19  Bruno Haible  <bruno@clisp.org>
15307
15308         * doc/posix-headers: Renamed from doc/headers.
15309         * doc/posix-functions: Renamed from doc/functions.
15310         * doc/gnulib.texi: Update.
15311
15312 2008-01-19  Bruno Haible  <bruno@clisp.org>
15313
15314         * doc/glibc-functions/strcasestr.texi: Include contents of
15315         doc/functions/strcasestr.texi, fixing the list of platforms.
15316         * doc/functions/strcasestr.texi: Remove file.
15317
15318 2008-01-19  Bruno Haible  <bruno@clisp.org>
15319
15320         * doc/glibc-functions/memmem.texi: Include contents of
15321         doc/functions/memmem.texi.
15322         * doc/functions/memmem.texi: Remove file.
15323
15324 2008-01-18  Bruno Haible  <bruno@clisp.org>
15325
15326         * doc/glibc-functions/*.texi: New files.
15327         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
15328         to use the new files.
15329
15330 2008-01-17  Bruno Haible  <bruno@clisp.org>
15331
15332         * tests/test-gethostname.c (main): Fix printf statement.
15333
15334 2008-01-17  Simon Josefsson  <simon@josefsson.org>
15335
15336         * modules/gethostname-tests: New file.
15337
15338         * tests/test-gethostname.c: New file.
15339
15340 2008-01-17  Simon Josefsson  <simon@josefsson.org>
15341
15342         * lib/gethostname.c: Include string.h unconditionally, strncpy is
15343         used by the UNAME case.  Reported by Bruno Haible
15344         <bruno@clisp.org>.
15345
15346 2008-01-17  Eric Blake  <ebb9@byu.net>
15347
15348         Convert c-strcasestr to be more efficient.
15349         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
15350         (Depends-on): Add c-strcase, remove malloca, strnlen.
15351         * tests/test-c-strcasestr.c (main): Enhance test.
15352         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
15353
15354 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
15355
15356         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
15357         Use it in creating po/Makevars.
15358
15359 2008-01-15  Simon Josefsson  <simon@josefsson.org>
15360
15361         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
15362         Applications that requires it should initialize libgcrypt
15363         manually.
15364
15365 2008-01-16  Simon Josefsson  <simon@josefsson.org>
15366
15367         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
15368
15369 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
15370
15371         Fix problem with getdate on mingw32 reported by Simon Josefsson
15372         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
15373         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
15374         tzname", when deciding whether to declare tzname.
15375         * lib/strftime.c (tzname): Likewise.
15376
15377 2008-01-15  Bruno Haible  <bruno@clisp.org>
15378
15379         Work around a MacOS X 10.5 bug in frexpl().
15380         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
15381         * doc/functions/frexpl.texi: Document the bug.
15382         Reported by Elias Pipping <pipping@gentoo.org>.
15383
15384 2008-01-14  Eric Blake  <ebb9@byu.net>
15385
15386         Touch up previous patch.
15387         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
15388         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
15389
15390         Convert strcasestr module to use Two-Way algorithm.
15391         * modules/strcasestr-simple: New module, based on the old
15392         strcasestr, but with Two-Way rather than KMP.
15393         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
15394         * lib/string.in.h (rpl_strcasestr): Declare.
15395         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
15396         performance.
15397         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
15398         * modules/string (Makefile.am): Support strcasestr.
15399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
15400         * modules/strcasestr-tests (Depends-on): Check for alarm.
15401         * tests/test-strcasestr.c: Augment test.
15402         * lib/str-two-way.h: Clean up stray macro.
15403         * NEWS: Document new module.
15404         * MODULES.html.sh (string handling): Likewise.
15405         * doc/functions/strcasestr.texi: New file.
15406         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
15407         here, since it is not a POSIX function.
15408
15409 2008-01-14  Colin Watson  <cjwatson@debian.org>
15410             Bruno Haible  <bruno@clisp.org>
15411
15412         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
15413         works fine; if not, set REPLACE_STRSIGNAL.
15414         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
15415         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15416         REPLACE_STRSIGNAL.
15417         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
15418         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
15419         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
15420
15421 2008-01-14  Bruno Haible  <bruno@clisp.org>
15422
15423         * modules/strsignal (Include): Change to <string.h>.
15424
15425 2008-01-14  Colin Watson  <cjwatson@debian.org>
15426
15427         * modules/argp (Notice): Add a notice recommending to change
15428         XGETTEXT_OPTIONS.
15429         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
15430
15431 2008-01-13  Colin Watson  <cjwatson@debian.org>
15432
15433         * modules/strsignal-tests: New file.
15434         * tests/test-strsignal.c: New file.
15435
15436         * lib/strsignal.c: New file, from glibc with modifications.
15437         * lib/siglist.h: New file, from glibc with modifications.
15438         * lib/string.in.h (strsignal): New declaration.
15439         * m4/strsignal.m4: New file.
15440         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15441         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
15442         * modules/strsignal: New file.
15443         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
15444         HAVE_DECL_STRSIGNAL.
15445
15446 2008-01-13  Bruno Haible  <bruno@clisp.org>
15447
15448         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
15449         locale encoding is not ASCII. Needed for OpenBSD 4.0.
15450         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15451         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15452
15453 2008-01-13  Bruno Haible  <bruno@clisp.org>
15454
15455         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
15456         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
15457         * lib/argp.h (__attribute__): Likewise.
15458         * lib/c-stack.c (__attribute__): Likewise.
15459         * lib/error.h (__attribute__): Likewise.
15460         * lib/fts.c (__attribute__): Likewise.
15461         * lib/openat.h (__attribute__): Likewise.
15462         * lib/stdio.in.h (__attribute__): Likewise.
15463         * lib/string.in.h (__attribute__): Likewise.
15464         * lib/utimens.c (__attribute__): Likewise.
15465         * lib/vasnprintf.h (__attribute__): Likewise.
15466         * lib/xalloc.h (__attribute__): Likewise.
15467         * lib/xprintf.h (__attribute__): Likewise.
15468         * lib/xstrtol.h (__attribute__): Likewise.
15469         * lib/xvasprintf.h (__attribute__): Likewise.
15470
15471 2008-01-12  Bruno Haible  <bruno@clisp.org>
15472
15473         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
15474         * doc/glibc-headers/a.out.texi: New file.
15475         * doc/glibc-headers/aliases.texi: New file.
15476         * doc/glibc-headers/alloca.texi: New file.
15477         * doc/glibc-headers/ar.texi: New file.
15478         * doc/glibc-headers/argp.texi: New file.
15479         * doc/glibc-headers/argz.texi: New file.
15480         * doc/glibc-headers/byteswap.texi: New file.
15481         * doc/glibc-headers/crypt.texi: New file.
15482         * doc/glibc-headers/endian.texi: New file.
15483         * doc/glibc-headers/envz.texi: New file.
15484         * doc/glibc-headers/err.texi: New file.
15485         * doc/glibc-headers/error.texi: New file.
15486         * doc/glibc-headers/execinfo.texi: New file.
15487         * doc/glibc-headers/fpu_control.texi: New file.
15488         * doc/glibc-headers/fstab.texi: New file.
15489         * doc/glibc-headers/fts.texi: New file.
15490         * doc/glibc-headers/getopt.texi: New file.
15491         * doc/glibc-headers/ieee754.texi: New file.
15492         * doc/glibc-headers/ifaddrs.texi: New file.
15493         * doc/glibc-headers/libintl.texi: New file.
15494         * doc/glibc-headers/mcheck.texi: New file.
15495         * doc/glibc-headers/mntent.texi: New file.
15496         * doc/glibc-headers/obstack.texi: New file.
15497         * doc/glibc-headers/paths.texi: New file.
15498         * doc/glibc-headers/printf.texi: New file.
15499         * doc/glibc-headers/pty.texi: New file.
15500         * doc/glibc-headers/resolv.texi: New file.
15501         * doc/glibc-headers/shadow.texi: New file.
15502         * doc/glibc-headers/sysexits.texi: New file.
15503         * doc/glibc-headers/ttyent.texi: New file.
15504
15505 2008-01-12  Jim Meyering  <meyering@redhat.com>
15506
15507         announce-gen: emit Gnulib's git-based version string.
15508         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
15509         New option --gnulib-version=V, where V is expected to be
15510         the output of running git describe in the gnulib directory.
15511         (get_tool_versions): Request feedback on xdelta.  I suspect it's
15512         not useful, and plan to stop publishing an xdelta file with each
15513         coreutils release.
15514
15515         * build-aux/announce-gen: Also check for lzma-compressed files.
15516
15517 2008-01-11  Bruno Haible  <bruno@clisp.org>
15518
15519         * tests/test-memmem.c (main): Increase maximum allowed time.
15520         * tests/test-strstr.c (main): Likewise.
15521
15522 2008-01-11  Bruno Haible  <bruno@clisp.org>
15523
15524         * doc/functions/memmem.texi: Add more precisions about platforms.
15525         * doc/functions/strstr.texi: Likewise.
15526
15527 2008-01-10  Eric Blake  <ebb9@byu.net>
15528
15529         * m4/strstr.m4: Delete cruft from copy-n-paste.
15530         Reported by Bruno Haible.
15531
15532 2008-01-10  Bruno Haible  <bruno@clisp.org>
15533
15534         Make c-strstr rely on strstr.
15535         * lib/c-strstr.c: Don't include str-kmp.h.
15536         (c_strstr): Define in terms of strstr.
15537         * modules/c-strstr (Files): Remove lib/str-kmp.h.
15538         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
15539
15540 2008-01-10  Bruno Haible  <bruno@clisp.org>
15541
15542         * doc/gnulib.texi (String Functions in C Locale): New section.
15543         * doc/c-ctype.texi: New file.
15544         * doc/c-strcase.texi: New file.
15545         * doc/c-strcaseeq.texi: New file.
15546         * doc/c-strcasestr.texi: New file.
15547         * doc/c-strstr.texi: New file.
15548         * doc/c-strtod.texi: New file.
15549         * doc/c-strtold.texi: New file.
15550
15551 2008-01-10  Eric Blake  <ebb9@byu.net>
15552
15553         * lib/relocatable.h: Fix a comment.
15554
15555 2008-01-10  Eric Blake  <ebb9@byu.net>
15556
15557         Share two-way algorithm.
15558         * lib/str-two-way.h: New file, merged from...
15559         * lib/memmem.c: ...here...
15560         * lib/strstr.c: ...and here.
15561         * modules/memmem (Files): Use it.
15562         * modules/strstr (Files): Likewise.
15563
15564         Avoid quadratic strstr implementations.
15565         * lib/strstr.c: New file.
15566         * m4/strstr.m4: Likewise.
15567         * modules/strstr: Likewise.
15568         * modules/strstr-tests: Likewise.
15569         * tests/test-strstr.c: Likewise.
15570         * lib/string.in.h (rpl_strstr): Declare.
15571         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
15572         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
15573         * modules/string (Makefile.am): Likewise.
15574         * MODULES.html.sh (string handling): Mention new module.
15575         * doc/functions/strstr.texi (strstr): Document the bug.
15576
15577 2008-01-10  Bruno Haible  <bruno@clisp.org>
15578
15579         * lib/relocatable.h (relocate): State whether result is freshly
15580         allocated or not.
15581         * lib/relocatable.c (relocate): Return a freshly allocated string
15582         instead of a pointer to a privately held string.
15583         Reported by Sylvain Beucler <beuc@gnu.org>.
15584
15585 2008-01-10  Colin Watson  <cjwatson@debian.org>
15586
15587         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
15588         s/S_ISNLK/S_ISLNK/.
15589
15590 2008-01-09  Bruno Haible  <bruno@clisp.org>
15591
15592         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
15593         and other files.
15594         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
15595         if it's only a guess.
15596         * modules/memmem: Simplify by depending on memmem-simple.
15597
15598 2008-01-09  Bruno Haible  <bruno@clisp.org>
15599
15600         Work around OpenBSD 4.0 tdelete() bug.
15601         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
15602         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
15603         macros and don't redefine the enum values.
15604         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
15605         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
15606         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
15607
15608 2008-01-09  Bruno Haible  <bruno@clisp.org>
15609
15610         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
15611         (main): Don't perform the tests if setlocale did not install a UTF-8
15612         locale. Needed on OpenBSD 4.0.
15613         * modules/wcwidth-tests (Depends-on): Add localcharset.
15614
15615 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
15616
15617         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
15618         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
15619         * NEWS: announce this.
15620         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
15621
15622 2008-01-09  Simon Josefsson  <simon@josefsson.org>
15623         and Eric Blake  <ebb9@byu.net>
15624
15625         Add memmem-simple module.
15626         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
15627         (gl_FUNC_MEMMEM): Separate performance from presence checks.
15628         * modules/memmem-simple: New file.
15629         * modules/memmem (Description): Tweak.
15630         * MODULES.html.sh (string handling): Mention new module.
15631         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
15632         addressed by memmem-simple.
15633         * NEWS: Document the difference.
15634
15635 2008-01-09  Eric Blake  <ebb9@byu.net>
15636
15637         Give gcc some memmem optimization hints.
15638         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
15639         (strcasestr): Declare as pure.
15640         * modules/memmem (Maintainer): Claim my implementation.
15641
15642 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15643
15644         Support AIX 6.1 and higher.
15645         * build-aux/config.libpath: Likewise.
15646         * build-aux/config.rpath: Likewise.
15647
15648 2008-01-08  Jim Meyering  <meyering@redhat.com>
15649             Bruno Haible  <bruno@clisp.org>
15650
15651         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
15652         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
15653         Reported by Peter Fales in
15654         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
15655
15656 2008-01-08  Bruno Haible  <bruno@clisp.org>
15657
15658         * modules/unictype/category-of (Depends-on): Add
15659         unictype/category-none.
15660         * modules/unictype/category-and-tests (Depends-on): Add
15661         unictype/category-{L,N,Lu,Nd}.
15662         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
15663         * modules/unictype/category-or-tests (Depends-on): Add
15664         unictype/category-{L,N}.
15665         * modules/unictype/category-name-tests (Depends-on): Add
15666         unictype/category-{Z,Nl}.
15667         Reported by Simon Josefsson.
15668
15669 2008-01-08  Bruno Haible  <bruno@clisp.org>
15670
15671         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
15672         convention better.
15673         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
15674         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
15675         Reported by Peter Miller <millerp@canb.auug.org.au>.
15676
15677 2008-01-08  Eric Blake  <ebb9@byu.net>
15678
15679         Rewrite memmem to guarantee linear complexity without malloc.
15680         * lib/memmem.c (memmem): Use Two-Way rather than
15681         Knuth-Morris-Pratt, to allow O(1) space usage.
15682         (critical_factorization, two_way_short_needle)
15683         (two_way_long_needle): New functions.
15684         (knuth_morris_pratt): Delete.
15685         * modules/memmem (Depends-on): No longer need malloca or stdbool.
15686         Add stdint.
15687         * tests/test-memmem.c (main): Add tests for periodic needle and
15688         sublinear performance.
15689         * doc/functions/memmem.texi (memmem): Document other deficiencies
15690         in cygwin and older glibc.
15691
15692 2008-01-08  Bruno Haible  <bruno@clisp.org>
15693
15694         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
15695         augmentation.
15696
15697 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
15698
15699         Add a configure time option: --disable-acl.
15700         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
15701         AC_ARG_ENABLE(acl).
15702
15703 2008-01-06  Simon Josefsson  <simon@josefsson.org>
15704
15705         * tests/test-localename.c: Don't include obsolete "setenv.h".
15706
15707         * modules/localename-tests (Depends-on): Need unsetenv.
15708
15709 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15710
15711         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
15712
15713 2008-01-06  Colin Watson  <cjwatson@debian.org>
15714
15715         * users.txt: Add man-db.
15716
15717 2008-01-07  Bruno Haible  <bruno@clisp.org>
15718
15719         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
15720         previous section name.
15721
15722 2008-01-07  Bruno Haible  <bruno@clisp.org>
15723
15724         * lib/progname.c (set_program_name): Don't strip off a leading
15725         "lt-" prefix outside a .libs directory.
15726         Suggested by Paul Eggert.
15727
15728 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
15729             Bruno Haible  <bruno@clisp.org>
15730
15731         Improve memory cleanup in 'relocatable' module.
15732         * lib/relocatable.h (compute_curr_prefix): Change return type to
15733         'char *'.
15734         * lib/relocatable.c (compute_curr_prefix): Change return type to
15735         'char *'. Free curr_installdir after use.
15736         (relocate): Free curr_prefix_better after use.
15737         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
15738
15739 2008-01-01  Bruno Haible  <bruno@clisp.org>
15740
15741         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
15742         failure on older glibc systems.
15743         Reported by Peter Fales <psfales@alcatel-lucent.com>.
15744
15745 2008-01-05  Eric Blake  <ebb9@byu.net>
15746
15747         Avoid quadratic system memmem.
15748         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
15749         Reported by Ralf Wildenhues.
15750
15751         Fix memmem test for mingw.
15752         * modules/memmem-tests (configure.ac): Check for alarm.
15753         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
15754         it.
15755         * doc/functions/memmem.texi: New file.
15756         * doc/gnulib.texi (Function Substitutes): Add memmem.
15757         Reported by Bruno Haible.
15758
15759 2008-01-04  Bruno Haible  <bruno@clisp.org>
15760
15761         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
15762         Require gl_HEADER_STRINGS_H_DEFAULTS, not
15763         gl_HEADER_STRING_H_DEFAULTS.
15764
15765 2008-01-04  Eric Blake  <ebb9@byu.net>
15766
15767         Shorten duration of memmem test.
15768         * tests/test-memmem.c (main): Use alarm to declare failure if test
15769         is taking too long.
15770         Reported by Ralf Wildenhues.
15771
15772 2007-12-21  Simon Josefsson  <simon@josefsson.org>
15773
15774         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
15775         string, needed by strerror.
15776
15777 2008-01-03  Colin Watson  <cjwatson@debian.org>
15778             Bruno Haible  <bruno@clisp.org>
15779
15780         * doc/gnulib-tool.texi (Localization): New section.
15781
15782 2008-01-02  Bruno Haible  <bruno@clisp.org>
15783
15784         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
15785         variables to 'unsigned char *' type.
15786         Reported by Paul Eggert.
15787
15788 2008-01-02  Jim Meyering  <jim@meyering.net>
15789
15790         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
15791
15792 2007-12-31  Jim Meyering  <jim@meyering.net>
15793
15794         Avoid use of private FTS type name.
15795         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
15796
15797 2007-12-30  Karl Berry  <karl@gnu.org>
15798
15799         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
15800         work around defect in Texinfo and/or the standalone Info browser.
15801
15802 2007-12-30  Bruno Haible  <bruno@clisp.org>
15803
15804         Unify 5 copies of the KMP code.
15805         * lib/str-kmp.h: New file.
15806         * lib/c-strcasestr.c: Include str-kmp.h.
15807         (knuth_morris_pratt): Remove function.
15808         (c_strcasestr): Update.
15809         * lib/c-strstr.c: Include str-kmp.h.
15810         (knuth_morris_pratt): Remove function.
15811         (c_strcasestr): Update.
15812         * lib/mbscasestr.c: Include str-kmp.h.
15813         (knuth_morris_pratt_unibyte): Remove function.
15814         * lib/mbsstr.c: Include str-kmp.h.
15815         (knuth_morris_pratt_unibyte): Remove function.
15816         * lib/strcasestr.c: Include str-kmp.h.
15817         (knuth_morris_pratt): Remove function.
15818         (strcasestr): Update.
15819         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
15820         * modules/c-strstr (Files): Likewise.
15821         * modules/mbscasestr (Files): Likewise.
15822         * modules/mbsstr (Files): Likewise.
15823         * modules/strcasestr (Files): Likewise.
15824         Suggested by Paul Eggert.
15825
15826 2007-12-30  Bruno Haible  <bruno@clisp.org>
15827
15828         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
15829         defined.
15830
15831 2007-12-30  Bruno Haible  <bruno@clisp.org>
15832
15833         * lib/xmalloca.h: Include xalloc.h.
15834         (xnmalloca): New macro.
15835
15836 2007-12-30  Bruno Haible  <bruno@clisp.org>
15837
15838         * lib/malloca.h (nmalloca): New macro.
15839         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
15840         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
15841         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
15842         knuth_morris_pratt_multibyte): Likewise.
15843         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
15844         knuth_morris_pratt_multibyte): Likewise.
15845         * lib/memmem.c (knuth_morris_pratt): Likewise.
15846         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
15847
15848 2007-12-25  Bruno Haible  <bruno@clisp.org>
15849
15850         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
15851         * lib/glob.c: Don't include openat.h.
15852         (link_exists2_p): Add back the code that deals with the
15853         !GLOB_ALTDIRFUNC case.
15854         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
15855         let it do the filename concatenation.
15856         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
15857         * modules/glob (Depends-on): Remove openat.
15858
15859 2007-12-31  Bruno Haible  <bruno@clisp.org>
15860
15861         * modules/dirfd (License): Change to LGPLv2+.
15862         Approved by Jim Meyering.
15863
15864 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15865
15866         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
15867         when multiplying M by sizeof (size_t).
15868
15869 2007-12-10  Martin Lambers  <marlam@marlam.de>
15870
15871         Override getpagesize on mingw.
15872         * lib/getpagesize.c: New file.
15873         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
15874         * modules/getpagesize (Files): Add lib/getpagesize.c.
15875         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
15876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15877         REPLACE_GETPAGESIZE.
15878         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
15879
15880 2007-12-25  Bruno Haible  <bruno@clisp.org>
15881
15882         * modules/localcharset (Notice): New field.
15883         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
15884         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
15885
15886 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15887             Bruno Haible  <bruno@clisp.org>
15888
15889         Avoid using the syntax symbol() in formatted documentation.
15890         * MODULES.html.sh (func_module): When replacing symbol() with a
15891         hyperlink, remove the parentheses. Show an error if some remain.
15892         Recognize and render the '...' syntax.
15893         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
15894         Rework. Add paragraph about GCC's inlining.
15895         * doc/alloca.texi: Likewise.
15896         * doc/error.texi: Remove parentheses from symbol reference.
15897         * doc/gnulib-intro.texi: Likewise.
15898         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
15899         * modules/fnmatch (Description): Reword to say "the ... function".
15900         * modules/full-read (Description): Likewise.
15901         * modules/full-write (Description): Likewise.
15902         * modules/safe-read (Description): Likewise.
15903         * modules/safe-write (Description): Likewise.
15904         * modules/strchrnul (Description): Likewise.
15905         * modules/trim (Description): Likewise.
15906         * modules/error (Description): Remove parentheses from symbol
15907         references.
15908         * modules/verror (Description): Likewise.
15909         Reported by Karl Berry.
15910
15911 2007-12-25  Bruno Haible  <bruno@clisp.org>
15912
15913         Fixup after 2007-10-16 commit.
15914         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
15915
15916 2007-12-24  Bruno Haible  <bruno@clisp.org>
15917
15918         Make --enable-relocatable work with DESTDIR.
15919         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
15920         to compute installdir from destprog.
15921         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
15922         also set the RELOC_DESTDIR variable.
15923         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
15924
15925 2007-12-24  Bruno Haible  <bruno@clisp.org>
15926
15927         Fix link error due to xalloc_die().
15928         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
15929         of xreadlink.
15930         * lib/relocwrapper.c: Update comments.
15931         * build-aux/install-reloc: Remove xreadlink.c from file list.
15932         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
15933         xreadlink.c.
15934         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
15935
15936 2007-12-24  Bruno Haible  <bruno@clisp.org>
15937
15938         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
15939         * lib/setenv.h: Remove file.
15940         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
15941         lib/setenv.h.
15942         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
15943         (Depends-on): Add stdlib.
15944         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
15945         gl_FUNC_UNSETENV.
15946         (Include): Replace setenv.h with <stdlib.h>.
15947         * modules/unsetenv: New file.
15948         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
15949         * lib/unsetenv.c: Include <stdlib.h> first.
15950         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
15951         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
15952         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
15953         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
15954         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
15955         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
15956         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
15957         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
15958         * doc/functions/unsetenv.texi: Update.
15959         * modules/xsetenv (Depends-on): Add unsetenv.
15960         * modules/getdate (Depends-on): Likewise.
15961         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
15962         * lib/xsetenv.c: Don't include setenv.h.
15963         * lib/getdate.y: Likewise.
15964         * lib/relocwrapper.c: Likewise.
15965         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
15966         (Depends-on): Add stdlib.
15967         * NEWS: Mention the changes.
15968         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
15969
15970 2007-12-23  Bruno Haible  <bruno@clisp.org>
15971
15972         * lib/memmem.c (memmem): Use lowercase variable names. Tab
15973         indentation.
15974
15975 2007-12-23  Bruno Haible  <bruno@clisp.org>
15976
15977         * lib/c-strcasestr.c: Add more comments.
15978         * lib/c-strstr.c: Likewise.
15979         * lib/mbscasestr.c: Likewise.
15980         * lib/mbsstr.c: Likewise.
15981         * lib/strcasestr.c: Likewise.
15982         * lib/memmem.c: Likewise.
15983
15984 2007-12-23  Bruno Haible  <bruno@clisp.org>
15985
15986         * tests/test-memmem.c: Include <string.h> first.
15987
15988 2007-12-22  Bruno Haible  <bruno@clisp.org>
15989
15990         * gnulib-tool (func_create_testdir): Change $auxdir while generating
15991         the contents of $testsbase.
15992         Reported by Ralf Wildenhues.
15993
15994 2007-12-22  Bruno Haible  <bruno@clisp.org>
15995
15996         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
15997         two variables local_ldadd_before, local_ldadd_last.
15998
15999 2007-12-20  Eric Blake  <ebb9@byu.net>
16000
16001         Work around circular library issue when cross-compiling.
16002         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
16003         that progname.o does not need to pull in rpl_memcmp.
16004
16005 2007-12-19  Eric Blake  <ebb9@byu.net>
16006
16007         Fix memmem to avoid O(n^2) worst-case complexity.
16008         * lib/memmem.c (knuth_morris_pratt): New function.
16009         (memmem): Use it if first few naive iterations fail.
16010         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
16011         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
16012         * modules/memchr (License): Likewise.
16013         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
16014         malloca.
16015         * tests/test-memmem.c: Rewrite, borrowing ideas from
16016         test-mbsstr1.c; the old version wouldn't even compile!
16017         * modules/memmem-tests: New file.
16018         * lib/string.in.h (rpl_memmem): Add declaration.
16019         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
16020         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
16021         REPLACE_MEMMEM.
16022
16023 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16024
16025         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
16026         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
16027         before any system include files, and undef after them all.  This
16028         should fix a problem on VMS reported by John E. Malmberg in
16029         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
16030
16031 2007-12-17  Eric Blake  <ebb9@byu.net>
16032
16033         Revert addition of verify, for BSD/OS.
16034         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
16035         can't handle large files, for the sake of obsolete platforms.
16036         * modules/fseeko (Depends-on): Remove verify.
16037         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
16038         * doc/functions/ftello.texi (ftello): Likewise.
16039         * doc/functions/fgetpos.texi (fgetpos): Likewise.
16040         Reported by Larry Jones.
16041
16042 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
16043
16044         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
16045         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
16046
16047 2007-12-17  Jim Meyering  <meyering@redhat.com>
16048
16049         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
16050         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
16051         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
16052         * modules/getcwd (Depends-on): Add openat.
16053         Reported by Petr Salinger.
16054
16055 2007-12-17  Bruno Haible  <bruno@clisp.org>
16056
16057         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
16058         avoid a segmentation fault of the configure test on x86_64 systems.
16059
16060 2007-12-15  Jim Meyering  <meyering@redhat.com>
16061
16062         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
16063
16064 2007-12-13  Eric Blake  <ebb9@byu.net>
16065
16066         Another fseek test.
16067         * tests/test-fseek.c (main): Also test ungetc handling.
16068         * tests/test-fseeko.c (main): Likewise.
16069         * modules/fseeko (Depends-on): Add verify.
16070         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
16071         large.
16072         Reported by Larry Jones.
16073
16074         Fix fseeko on mingw.
16075         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
16076         seek.
16077
16078         Beef up fseek tests.
16079         * tests/test-fseek.c (main): Also test eof handling.
16080         * tests/test-fseeko.c (main): Likewise.
16081         Reported by Larry Jones.
16082
16083 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
16084
16085         Fix fseeko on BSD-based platforms.
16086         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
16087         successful seek.
16088
16089 2007-12-12  Eric Blake  <ebb9@byu.net>
16090
16091         Allow circular dependency of separate libtests.a
16092         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
16093         when use_libtests.
16094
16095 2007-12-11  Eric Blake  <ebb9@byu.net>
16096
16097         Fix bug with -0.0L in previous patch.
16098         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
16099         * tests/test-isnan.c (main): Also test on zeroes.
16100         * tests/test-isnanf.c (main): Likewise.
16101         * tests/test-isnanl.h (main): Likewise.
16102
16103         Detect pseudo-denormals on x86 even when cross-compiling.
16104         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
16105         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
16106         invalid bit patterns that happen to satisfy ==.
16107
16108         Avoid link failures with separate libtests.a.
16109         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
16110         last, to satisfy circular dependencies.
16111
16112 2007-12-11  Eric Blake  <ebb9@byu.net>
16113         and Bruno Haible  <bruno@clisp.org>
16114
16115         Fix OpenBSD 4.0 <float.h> handling of long double.
16116         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
16117         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
16118         * doc/headers/float.texi (float.h): Document OpenBSD bug.
16119
16120 2007-12-11  Jim Meyering  <meyering@redhat.com>
16121
16122         * users.txt: Add libvirt.
16123
16124         Support versions of autoconf prior to 2.59c.
16125         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
16126         if it is not already defined.
16127
16128 2007-12-09  Bruno Haible  <bruno@clisp.org>
16129
16130         Let 'gnulib-tool --import' collect sources needed for the tests in
16131         tests/ rather than in lib/.
16132         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
16133         argument. If true, add rules to generate libtests.a, and put libtests.a
16134         into $(LDADD). Consider source files in subdirectories and set
16135         uses_subdirs.
16136         (func_emit_initmacro_start, func_emit_initmacro_end,
16137         func_emit_initmacro_done): Pass all arguments explicitly.
16138         (func_import): Determine two module lists main_modules,
16139         testsrelated_modules. Determine use_libtests. Determine two variables
16140         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
16141         instead of just sed_transform_lib_file. Determine two variables
16142         main_files and testsrelated_files. Compute 'files' as the union of
16143         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
16144         func_add_or_update. In the generated gnulib-comp.m4, collect the
16145         object files for tests/ in different variables than those for lib/.
16146         Substitute LIBTESTS_LIBDEPS.
16147         (func_create_testdir): Combine the uses_subdirs results from
16148         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
16149
16150 2007-12-09  Bruno Haible  <bruno@clisp.org>
16151
16152         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
16153         the build-aux directory.
16154
16155 2007-12-09  Bruno Haible  <bruno@clisp.org>
16156
16157         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
16158         introduced on 2006-09-09.
16159
16160 2007-12-07  Jim Meyering  <meyering@redhat.com>
16161
16162         Let these macros work also with autoconf-2.59.
16163         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
16164         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
16165         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16166
16167 2007-12-06  Jim Meyering  <meyering@redhat.com>
16168
16169         Avoid a configure-time syntax error in gl_FUNC_ACL.
16170         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
16171         function in each branch, before testing the cache variable.
16172
16173 2007-12-04  Eric Blake  <ebb9@byu.net>
16174
16175         Make scripts executable.
16176         * build-aux/config.guess: Add execute permissions.
16177         * build-aux/config.sub: Likewise.
16178         * build-aux/gendocs.sh: Likewise.
16179
16180         Fix frexp on mingw.
16181         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
16182         cross-compiling.
16183         * doc/functions/frexp.texi (frexp): Document the bug.
16184
16185         Make cygwin fseeko check more reliable.
16186         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
16187         version numbers, rather than unrelated feature check.
16188         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
16189         * doc/functions/ftello.texi (ftello): Likewise.
16190         Reported by Bruno Haible.
16191
16192         * m4/strerror.m4: Bump version number.
16193
16194 2007-12-03  Bruno Haible  <bruno@clisp.org>
16195
16196         * doc/functions/mprotect.texi: Mention the mingw problem.
16197
16198 2007-12-03  Eric Blake  <ebb9@byu.net>
16199
16200         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
16201         REPLACE_STRERROR is initialized before this macro.
16202
16203 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
16204
16205         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
16206         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
16207         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
16208         put -lsec in even for programs other than 'ls'.  This fixes a problem
16209         for gettext reported by Bruno Haible in
16210         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
16211         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
16212         Add support for Solaris 10.  This isn't efficient, but should get the
16213         job done for now.
16214
16215 2007-12-03  James Youngman  <jay@gnu.org>
16216
16217         * doc/regexprops-generic.texi: change "an close-group" to "a
16218         close-group" and "illegal" to "not allowed".
16219
16220 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16221
16222         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
16223         pr_byname.h. Needed for the rare case when the maintainer has done
16224         "make maintainer-clean" in the source directory and then attempts a
16225         build outside the source directory.
16226         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
16227         scripts_byname.h.
16228
16229 2007-12-02  Martin Lambers <marlam@marlam.de>
16230             Bruno Haible  <bruno@clisp.org>
16231
16232         * lib/getpagesize.h: Remove file.
16233         * lib/unistd.in.h: Include declaration of getpagesize here.
16234         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
16235         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
16236         HAVE_SYS_PARAM_H.
16237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
16238         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
16239         * modules/getpagesize (Files): Remove lib/getpagesize.h.
16240         (Depends-on): Add unistd.
16241         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16242         (Include): Use <unistd.h> instead of getpagesize.h.
16243         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
16244         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
16245         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
16246         gl_GETPAGESIZE invocation, already handled by module dependency.
16247         * lib/pagealign_alloc.c: Don't include getpagesize.h.
16248
16249 2007-12-02  Bruno Haible  <bruno@clisp.org>
16250
16251         * modules/strings-tests: New file.
16252         * tests/test-strings.c: New file.
16253
16254         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
16255         * lib/strings.in.h: New file.
16256         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
16257         * m4/strings_h.m4: New file.
16258         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
16259         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
16260         * modules/strings: New file.
16261         * modules/string (Makefile.am): Update.
16262         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
16263         Reported by Karl Berry.
16264
16265 2007-12-01  Eric Blake  <ebb9@byu.net>
16266
16267         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
16268         accomodate fix in cygwin 1.5.25.
16269
16270 2007-12-01  Jim Meyering  <meyering@redhat.com>
16271
16272         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
16273         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
16274         that would inhibit utf8-optimization of a regexp containing line-
16275         or buffer-anchors, e.g., `^', `$'.
16276
16277 2007-11-30  Bruno Haible  <bruno@clisp.org>
16278
16279         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
16280         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
16281         glthread_recursive_lock_init.
16282         * lib/lock.c (glthread_recursive_lock_init)
16283         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
16284         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
16285
16286 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16287
16288         New function qset_acl, like set_acl but with syscall semantics.
16289         * lib/acl.h (qset_acl): New decl.
16290         * lib/acl.c (qset_acl): New function.
16291         (set_acl): Use new function.  Use more-consistent diagnostics.
16292
16293 2007-11-28  Jim Meyering  <meyering@redhat.com>
16294
16295         * modules/physmem (License): Change from GPL to LGPLv2+.
16296
16297 2007-11-26  Bruno Haible  <bruno@clisp.org>
16298
16299         * lib/vasnprintf.c (decode_long_double): Don't abort if the
16300         'long double' type has excess precision.
16301         Reported by Jim Meyering in
16302         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
16303
16304 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16305
16306         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
16307         Sync from <http://gnu.org/licenses>.
16308         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
16309         with license text from same location.
16310         * doc/maintain.texi, doc/standards.texi:  Sync from
16311         <http://savannah.gnu.org/projects/gnustandards>.
16312
16313 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
16314         and Jim Meyering  <meyering@redhat.com>
16315
16316         Adjust getdate' grammar to accept a slightly more regular language.
16317         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
16318         Before, the former was rejected.
16319         * lib/getdate.y (digits_to_date_time): New function, factored
16320         out of ...
16321         (number): ...here.  Just call digits_to_date_time.
16322         (hybrid): New non-terminal to handle an <unsigned number,
16323         signed relative offset> sequence consistently.
16324
16325 2007-11-18  Jim Meyering  <meyering@redhat.com>
16326
16327         Pull my changes from coreutils:
16328         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
16329         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
16330         use of $gnulib_tool_option_extras, so that it's separated from the
16331         preceding argument.
16332
16333         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
16334         * build-aux/bootstrap (cp_mark_as_generated): Create any required
16335         parent destination directories before copying a file into place.
16336
16337 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
16338
16339         bootstrap: work also with 4-argument variant of AC_INIT
16340         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
16341
16342 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
16343
16344         Port test-getaddrinfo to Solaris.
16345         Problem reported by Bruno Haible in
16346         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
16347         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
16348         explanation of setting 'hints'.
16349         Don't reject an implementation merely because it returns EAI_SERVICE.
16350         (EAI_SERVICE): Define to 0 if not defined.
16351
16352 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
16353
16354         The license of gnu-make and posix-shell is now "GPLed build tool".
16355         * modules/gnu-make (License): Likewise.
16356         * modules/posix-shell (License): Likewise.
16357
16358         New module posix-shell, for determining a POSIX shell
16359         or perhaps something that is close enough to a POSIX shell.
16360         * m4/posix-shell.m4: New file.
16361         * modules/posix-shell: New file.
16362
16363         * MODULES.html.sh: Mention new module.
16364
16365         New module gnu-make, for determining whether we're using GNU Make.
16366         * m4/gnu-make.m4: New file.
16367         * modules/gnu-make: New file.
16368         * MODULES.html.sh: Mention new module.
16369
16370 2007-11-14  Jim Meyering  <meyering@redhat.com>
16371
16372         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
16373         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
16374         use this macro to create a function _definition_.
16375         Remove useless "#undef ARGMATCH_DIE".
16376
16377 2007-11-14  Bruno Haible  <bruno@clisp.org>
16378
16379         * lib/config.charset: Update for OpenBSD 4.1.
16380         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
16381
16382 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
16383
16384         Document 64-bit #if problems in stdint.texi.
16385         * doc/headers/stdint.texi (stdint.h): Mention problems with
16386         64-bit-#if, and how to work around them.
16387
16388         Don't insist on 'long long int' support in the preprocessor.  It
16389         breaks too many things.  For example, PRIdMAX still uses a 'long
16390         long int' format with the latest Sun compiler, even though
16391         HAVE_LONG_LONG_INT isn't defined due to that compiler's
16392         preprocessor problem.  This causes the latest coreutils to dump
16393         core on Solaris 10 sparc with the Sun C compiler.
16394         Instead, fix the 2007-10-16 problem in a different way, by evaluating
16395         the troublesome expressions at configure-time, not at #if-time.
16396         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
16397         preprocessor.
16398         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
16399         compile-time C checks, done at 'configure'-time.
16400         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
16401         * modules/inttypes (Makefile): Substitute the new symbols that
16402         gl_INTTYPES_H now generates.
16403         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
16404
16405 2007-11-12  Bruno Haible  <bruno@clisp.org>
16406
16407         Tests for Unicode character classification functions.
16408
16409         * modules/unictype/bidicategory-byname-tests: New file.
16410         * modules/unictype/bidicategory-name-tests: New file.
16411         * modules/unictype/bidicategory-of-tests: New file.
16412         * modules/unictype/bidicategory-test-tests: New file.
16413         * modules/unictype/block-list-tests: New file.
16414         * modules/unictype/block-of-tests: New file.
16415         * modules/unictype/block-test-tests: New file.
16416         * modules/unictype/category-C-tests: New file.
16417         * modules/unictype/category-Cc-tests: New file.
16418         * modules/unictype/category-Cf-tests: New file.
16419         * modules/unictype/category-Cn-tests: New file.
16420         * modules/unictype/category-Co-tests: New file.
16421         * modules/unictype/category-Cs-tests: New file.
16422         * modules/unictype/category-L-tests: New file.
16423         * modules/unictype/category-Ll-tests: New file.
16424         * modules/unictype/category-Lm-tests: New file.
16425         * modules/unictype/category-Lo-tests: New file.
16426         * modules/unictype/category-Lt-tests: New file.
16427         * modules/unictype/category-Lu-tests: New file.
16428         * modules/unictype/category-M-tests: New file.
16429         * modules/unictype/category-Mc-tests: New file.
16430         * modules/unictype/category-Me-tests: New file.
16431         * modules/unictype/category-Mn-tests: New file.
16432         * modules/unictype/category-N-tests: New file.
16433         * modules/unictype/category-Nd-tests: New file.
16434         * modules/unictype/category-Nl-tests: New file.
16435         * modules/unictype/category-No-tests: New file.
16436         * modules/unictype/category-P-tests: New file.
16437         * modules/unictype/category-Pc-tests: New file.
16438         * modules/unictype/category-Pd-tests: New file.
16439         * modules/unictype/category-Pe-tests: New file.
16440         * modules/unictype/category-Pf-tests: New file.
16441         * modules/unictype/category-Pi-tests: New file.
16442         * modules/unictype/category-Po-tests: New file.
16443         * modules/unictype/category-Ps-tests: New file.
16444         * modules/unictype/category-S-tests: New file.
16445         * modules/unictype/category-Sc-tests: New file.
16446         * modules/unictype/category-Sk-tests: New file.
16447         * modules/unictype/category-Sm-tests: New file.
16448         * modules/unictype/category-So-tests: New file.
16449         * modules/unictype/category-Z-tests: New file.
16450         * modules/unictype/category-Zl-tests: New file.
16451         * modules/unictype/category-Zp-tests: New file.
16452         * modules/unictype/category-Zs-tests: New file.
16453         * modules/unictype/category-and-not-tests: New file.
16454         * modules/unictype/category-and-tests: New file.
16455         * modules/unictype/category-byname-tests: New file.
16456         * modules/unictype/category-name-tests: New file.
16457         * modules/unictype/category-none-tests: New file.
16458         * modules/unictype/category-of-tests: New file.
16459         * modules/unictype/category-or-tests: New file.
16460         * modules/unictype/category-test-withtable-tests: New file.
16461         * modules/unictype/combining-class-tests: New file.
16462         * modules/unictype/ctype-alnum-tests: New file.
16463         * modules/unictype/ctype-alpha-tests: New file.
16464         * modules/unictype/ctype-blank-tests: New file.
16465         * modules/unictype/ctype-cntrl-tests: New file.
16466         * modules/unictype/ctype-digit-tests: New file.
16467         * modules/unictype/ctype-graph-tests: New file.
16468         * modules/unictype/ctype-lower-tests: New file.
16469         * modules/unictype/ctype-print-tests: New file.
16470         * modules/unictype/ctype-punct-tests: New file.
16471         * modules/unictype/ctype-space-tests: New file.
16472         * modules/unictype/ctype-upper-tests: New file.
16473         * modules/unictype/ctype-xdigit-tests: New file.
16474         * modules/unictype/decimal-digit-tests: New file.
16475         * modules/unictype/digit-tests: New file.
16476         * modules/unictype/mirror-tests: New file.
16477         * modules/unictype/numeric-tests: New file.
16478         * modules/unictype/property-alphabetic-tests: New file.
16479         * modules/unictype/property-ascii-hex-digit-tests: New file.
16480         * modules/unictype/property-bidi-arabic-digit-tests: New file.
16481         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
16482         * modules/unictype/property-bidi-block-separator-tests: New file.
16483         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
16484         * modules/unictype/property-bidi-common-separator-tests: New file.
16485         * modules/unictype/property-bidi-control-tests: New file.
16486         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
16487         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
16488         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
16489         * modules/unictype/property-bidi-european-digit-tests: New file.
16490         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
16491         * modules/unictype/property-bidi-left-to-right-tests: New file.
16492         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
16493         * modules/unictype/property-bidi-other-neutral-tests: New file.
16494         * modules/unictype/property-bidi-pdf-tests: New file.
16495         * modules/unictype/property-bidi-segment-separator-tests: New file.
16496         * modules/unictype/property-bidi-whitespace-tests: New file.
16497         * modules/unictype/property-byname-tests: New file.
16498         * modules/unictype/property-combining-tests: New file.
16499         * modules/unictype/property-composite-tests: New file.
16500         * modules/unictype/property-currency-symbol-tests: New file.
16501         * modules/unictype/property-dash-tests: New file.
16502         * modules/unictype/property-decimal-digit-tests: New file.
16503         * modules/unictype/property-default-ignorable-code-point-tests: New file.
16504         * modules/unictype/property-deprecated-tests: New file.
16505         * modules/unictype/property-diacritic-tests: New file.
16506         * modules/unictype/property-extender-tests: New file.
16507         * modules/unictype/property-format-control-tests: New file.
16508         * modules/unictype/property-grapheme-base-tests: New file.
16509         * modules/unictype/property-grapheme-extend-tests: New file.
16510         * modules/unictype/property-grapheme-link-tests: New file.
16511         * modules/unictype/property-hex-digit-tests: New file.
16512         * modules/unictype/property-hyphen-tests: New file.
16513         * modules/unictype/property-id-continue-tests: New file.
16514         * modules/unictype/property-id-start-tests: New file.
16515         * modules/unictype/property-ideographic-tests: New file.
16516         * modules/unictype/property-ids-binary-operator-tests: New file.
16517         * modules/unictype/property-ids-trinary-operator-tests: New file.
16518         * modules/unictype/property-ignorable-control-tests: New file.
16519         * modules/unictype/property-iso-control-tests: New file.
16520         * modules/unictype/property-join-control-tests: New file.
16521         * modules/unictype/property-left-of-pair-tests: New file.
16522         * modules/unictype/property-line-separator-tests: New file.
16523         * modules/unictype/property-logical-order-exception-tests: New file.
16524         * modules/unictype/property-lowercase-tests: New file.
16525         * modules/unictype/property-math-tests: New file.
16526         * modules/unictype/property-non-break-tests: New file.
16527         * modules/unictype/property-not-a-character-tests: New file.
16528         * modules/unictype/property-numeric-tests: New file.
16529         * modules/unictype/property-other-alphabetic-tests: New file.
16530         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
16531         * modules/unictype/property-other-grapheme-extend-tests: New file.
16532         * modules/unictype/property-other-id-continue-tests: New file.
16533         * modules/unictype/property-other-id-start-tests: New file.
16534         * modules/unictype/property-other-lowercase-tests: New file.
16535         * modules/unictype/property-other-math-tests: New file.
16536         * modules/unictype/property-other-uppercase-tests: New file.
16537         * modules/unictype/property-paired-punctuation-tests: New file.
16538         * modules/unictype/property-paragraph-separator-tests: New file.
16539         * modules/unictype/property-pattern-syntax-tests: New file.
16540         * modules/unictype/property-pattern-white-space-tests: New file.
16541         * modules/unictype/property-private-use-tests: New file.
16542         * modules/unictype/property-punctuation-tests: New file.
16543         * modules/unictype/property-quotation-mark-tests: New file.
16544         * modules/unictype/property-radical-tests: New file.
16545         * modules/unictype/property-sentence-terminal-tests: New file.
16546         * modules/unictype/property-soft-dotted-tests: New file.
16547         * modules/unictype/property-space-tests: New file.
16548         * modules/unictype/property-terminal-punctuation-tests: New file.
16549         * modules/unictype/property-test-tests: New file.
16550         * modules/unictype/property-titlecase-tests: New file.
16551         * modules/unictype/property-unassigned-code-value-tests: New file.
16552         * modules/unictype/property-unified-ideograph-tests: New file.
16553         * modules/unictype/property-uppercase-tests: New file.
16554         * modules/unictype/property-variation-selector-tests: New file.
16555         * modules/unictype/property-white-space-tests: New file.
16556         * modules/unictype/property-xid-continue-tests: New file.
16557         * modules/unictype/property-xid-start-tests: New file.
16558         * modules/unictype/property-zero-width-tests: New file.
16559         * modules/unictype/scripts-tests: New file.
16560         * modules/unictype/syntax-c-ident-tests: New file.
16561         * modules/unictype/syntax-c-whitespace-tests: New file.
16562         * modules/unictype/syntax-java-ident-tests: New file.
16563         * modules/unictype/syntax-java-whitespace-tests: New file.
16564         * tests/unictype/test-bidi_byname.c: New file.
16565         * tests/unictype/test-bidi_name.c: New file.
16566         * tests/unictype/test-bidi_of.c: New file.
16567         * tests/unictype/test-bidi_test.c: New file.
16568         * tests/unictype/test-block_list.c: New file.
16569         * tests/unictype/test-block_of.c: New file.
16570         * tests/unictype/test-block_test.c: New file.
16571         * tests/unictype/test-categ_and.c: New file.
16572         * tests/unictype/test-categ_and_not.c: New file.
16573         * tests/unictype/test-categ_byname.c: New file.
16574         * tests/unictype/test-categ_name.c: New file.
16575         * tests/unictype/test-categ_none.c: New file.
16576         * tests/unictype/test-categ_of.c: New file.
16577         * tests/unictype/test-categ_or.c: New file.
16578         * tests/unictype/test-categ_test_withtable.c: New file.
16579         * tests/unictype/test-combining.c: New file.
16580         * tests/unictype/test-decdigit.c: New file.
16581         * tests/unictype/test-digit.c: New file.
16582         * tests/unictype/test-mirror.c: New file.
16583         * tests/unictype/test-numeric.c: New file.
16584         * tests/unictype/test-pr_byname.c: New file.
16585         * tests/unictype/test-pr_test.c: New file.
16586         * tests/unictype/test-predicate-part1.h: New file.
16587         * tests/unictype/test-predicate-part2.h: New file.
16588         * tests/unictype/test-scripts.c: New file.
16589         * tests/unictype/test-sy_c_ident.c: New file.
16590         * tests/unictype/test-sy_java_ident.c: New file.
16591
16592         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
16593         for Unicode 5.0.0.
16594         * tests/unictype/test-categ_Cc.c: Likewise.
16595         * tests/unictype/test-categ_Cf.c: Likewise.
16596         * tests/unictype/test-categ_Cn.c: Likewise.
16597         * tests/unictype/test-categ_Co.c: Likewise.
16598         * tests/unictype/test-categ_Cs.c: Likewise.
16599         * tests/unictype/test-categ_L.c: Likewise.
16600         * tests/unictype/test-categ_Ll.c: Likewise.
16601         * tests/unictype/test-categ_Lm.c: Likewise.
16602         * tests/unictype/test-categ_Lo.c: Likewise.
16603         * tests/unictype/test-categ_Lt.c: Likewise.
16604         * tests/unictype/test-categ_Lu.c: Likewise.
16605         * tests/unictype/test-categ_M.c: Likewise.
16606         * tests/unictype/test-categ_Mc.c: Likewise.
16607         * tests/unictype/test-categ_Me.c: Likewise.
16608         * tests/unictype/test-categ_Mn.c: Likewise.
16609         * tests/unictype/test-categ_N.c: Likewise.
16610         * tests/unictype/test-categ_Nd.c: Likewise.
16611         * tests/unictype/test-categ_Nl.c: Likewise.
16612         * tests/unictype/test-categ_No.c: Likewise.
16613         * tests/unictype/test-categ_P.c: Likewise.
16614         * tests/unictype/test-categ_Pc.c: Likewise.
16615         * tests/unictype/test-categ_Pd.c: Likewise.
16616         * tests/unictype/test-categ_Pe.c: Likewise.
16617         * tests/unictype/test-categ_Pf.c: Likewise.
16618         * tests/unictype/test-categ_Pi.c: Likewise.
16619         * tests/unictype/test-categ_Po.c: Likewise.
16620         * tests/unictype/test-categ_Ps.c: Likewise.
16621         * tests/unictype/test-categ_S.c: Likewise.
16622         * tests/unictype/test-categ_Sc.c: Likewise.
16623         * tests/unictype/test-categ_Sk.c: Likewise.
16624         * tests/unictype/test-categ_Sm.c: Likewise.
16625         * tests/unictype/test-categ_So.c: Likewise.
16626         * tests/unictype/test-categ_Z.c: Likewise.
16627         * tests/unictype/test-categ_Zl.c: Likewise.
16628         * tests/unictype/test-categ_Zp.c: Likewise.
16629         * tests/unictype/test-categ_Zs.c: Likewise.
16630         * tests/unictype/test-ctype_alnum.c: Likewise.
16631         * tests/unictype/test-ctype_alpha.c: Likewise.
16632         * tests/unictype/test-ctype_blank.c: Likewise.
16633         * tests/unictype/test-ctype_cntrl.c: Likewise.
16634         * tests/unictype/test-ctype_digit.c: Likewise.
16635         * tests/unictype/test-ctype_graph.c: Likewise.
16636         * tests/unictype/test-ctype_lower.c: Likewise.
16637         * tests/unictype/test-ctype_print.c: Likewise.
16638         * tests/unictype/test-ctype_punct.c: Likewise.
16639         * tests/unictype/test-ctype_space.c: Likewise.
16640         * tests/unictype/test-ctype_upper.c: Likewise.
16641         * tests/unictype/test-ctype_xdigit.c: Likewise.
16642         * tests/unictype/test-decdigit.h: Likewise.
16643         * tests/unictype/test-digit.h: Likewise.
16644         * tests/unictype/test-numeric.h: Likewise.
16645         * tests/unictype/test-pr_alphabetic.c: Likewise.
16646         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
16647         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16648         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16649         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
16650         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16651         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
16652         * tests/unictype/test-pr_bidi_control.c: Likewise.
16653         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
16654         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
16655         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16656         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16657         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16658         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16659         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16660         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16661         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
16662         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
16663         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
16664         * tests/unictype/test-pr_combining.c: Likewise.
16665         * tests/unictype/test-pr_composite.c: Likewise.
16666         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16667         * tests/unictype/test-pr_dash.c: Likewise.
16668         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16669         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
16670         * tests/unictype/test-pr_deprecated.c: Likewise.
16671         * tests/unictype/test-pr_diacritic.c: Likewise.
16672         * tests/unictype/test-pr_extender.c: Likewise.
16673         * tests/unictype/test-pr_format_control.c: Likewise.
16674         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16675         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16676         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16677         * tests/unictype/test-pr_hex_digit.c: Likewise.
16678         * tests/unictype/test-pr_hyphen.c: Likewise.
16679         * tests/unictype/test-pr_id_continue.c: Likewise.
16680         * tests/unictype/test-pr_id_start.c: Likewise.
16681         * tests/unictype/test-pr_ideographic.c: Likewise.
16682         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
16683         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
16684         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16685         * tests/unictype/test-pr_iso_control.c: Likewise.
16686         * tests/unictype/test-pr_join_control.c: Likewise.
16687         * tests/unictype/test-pr_left_of_pair.c: Likewise.
16688         * tests/unictype/test-pr_line_separator.c: Likewise.
16689         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16690         * tests/unictype/test-pr_lowercase.c: Likewise.
16691         * tests/unictype/test-pr_math.c: Likewise.
16692         * tests/unictype/test-pr_non_break.c: Likewise.
16693         * tests/unictype/test-pr_not_a_character.c: Likewise.
16694         * tests/unictype/test-pr_numeric.c: Likewise.
16695         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16696         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
16697         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
16698         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16699         * tests/unictype/test-pr_other_id_start.c: Likewise.
16700         * tests/unictype/test-pr_other_lowercase.c: Likewise.
16701         * tests/unictype/test-pr_other_math.c: Likewise.
16702         * tests/unictype/test-pr_other_uppercase.c: Likewise.
16703         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
16704         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
16705         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
16706         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
16707         * tests/unictype/test-pr_private_use.c: Likewise.
16708         * tests/unictype/test-pr_punctuation.c: Likewise.
16709         * tests/unictype/test-pr_quotation_mark.c: Likewise.
16710         * tests/unictype/test-pr_radical.c: Likewise.
16711         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16712         * tests/unictype/test-pr_soft_dotted.c: Likewise.
16713         * tests/unictype/test-pr_space.c: Likewise.
16714         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16715         * tests/unictype/test-pr_titlecase.c: Likewise.
16716         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16717         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16718         * tests/unictype/test-pr_uppercase.c: Likewise.
16719         * tests/unictype/test-pr_variation_selector.c: Likewise.
16720         * tests/unictype/test-pr_white_space.c: Likewise.
16721         * tests/unictype/test-pr_xid_continue.c: Likewise.
16722         * tests/unictype/test-pr_xid_start.c: Likewise.
16723         * tests/unictype/test-pr_zero_width.c: Likewise.
16724         * tests/unictype/test-sy_c_whitespace.c: Likewise.
16725         * tests/unictype/test-sy_java_whitespace.c: Likewise.
16726
16727 2007-11-12  Bruno Haible  <bruno@clisp.org>
16728
16729         Unicode character classification functions.
16730         * lib/unictype.h: New file.
16731         * modules/unictype/base: New file.
16732         * modules/unictype/category-L: New file.
16733         * modules/unictype/category-Lu: New file.
16734         * modules/unictype/category-Ll: New file.
16735         * modules/unictype/category-Lt: New file.
16736         * modules/unictype/category-Lm: New file.
16737         * modules/unictype/category-Lo: New file.
16738         * modules/unictype/category-M: New file.
16739         * modules/unictype/category-Mn: New file.
16740         * modules/unictype/category-Mc: New file.
16741         * modules/unictype/category-Me: New file.
16742         * modules/unictype/category-N: New file.
16743         * modules/unictype/category-Nd: New file.
16744         * modules/unictype/category-Nl: New file.
16745         * modules/unictype/category-No: New file.
16746         * modules/unictype/category-P: New file.
16747         * modules/unictype/category-Pc: New file.
16748         * modules/unictype/category-Pd: New file.
16749         * modules/unictype/category-Ps: New file.
16750         * modules/unictype/category-Pe: New file.
16751         * modules/unictype/category-Pi: New file.
16752         * modules/unictype/category-Pf: New file.
16753         * modules/unictype/category-Po: New file.
16754         * modules/unictype/category-S: New file.
16755         * modules/unictype/category-Sm: New file.
16756         * modules/unictype/category-Sc: New file.
16757         * modules/unictype/category-Sk: New file.
16758         * modules/unictype/category-So: New file.
16759         * modules/unictype/category-Z: New file.
16760         * modules/unictype/category-Zs: New file.
16761         * modules/unictype/category-Zl: New file.
16762         * modules/unictype/category-Zp: New file.
16763         * modules/unictype/category-C: New file.
16764         * modules/unictype/category-Cc: New file.
16765         * modules/unictype/category-Cf: New file.
16766         * modules/unictype/category-Cs: New file.
16767         * modules/unictype/category-Co: New file.
16768         * modules/unictype/category-Cn: New file.
16769         * modules/unictype/category-or: New file.
16770         * modules/unictype/category-of: New file.
16771         * modules/unictype/category-test: New file.
16772         * modules/unictype/category-test-withtable: New file.
16773         * modules/unictype/category-byname: New file.
16774         * modules/unictype/category-none: New file.
16775         * modules/unictype/category-and: New file.
16776         * modules/unictype/category-and-not: New file.
16777         * modules/unictype/category-name: New file.
16778         * modules/unictype/combining-class: New file.
16779         * modules/unictype/category-all: New file.
16780         * modules/unictype/bidicategory-all: New file.
16781         * modules/unictype/bidicategory-byname: New file.
16782         * modules/unictype/bidicategory-name: New file.
16783         * modules/unictype/bidicategory-of: New file.
16784         * modules/unictype/bidicategory-test: New file.
16785         * modules/unictype/decimal-digit: New file.
16786         * modules/unictype/digit: New file.
16787         * modules/unictype/numeric: New file.
16788         * modules/unictype/mirror: New file.
16789         * modules/unictype/property-white-space: New file.
16790         * modules/unictype/property-alphabetic: New file.
16791         * modules/unictype/property-other-alphabetic: New file.
16792         * modules/unictype/property-not-a-character: New file.
16793         * modules/unictype/property-default-ignorable-code-point: New file.
16794         * modules/unictype/property-other-default-ignorable-code-point: New
16795         file.
16796         * modules/unictype/property-deprecated: New file.
16797         * modules/unictype/property-logical-order-exception: New file.
16798         * modules/unictype/property-variation-selector: New file.
16799         * modules/unictype/property-private-use: New file.
16800         * modules/unictype/property-unassigned-code-value: New file.
16801         * modules/unictype/property-uppercase: New file.
16802         * modules/unictype/property-other-uppercase: New file.
16803         * modules/unictype/property-lowercase: New file.
16804         * modules/unictype/property-other-lowercase: New file.
16805         * modules/unictype/property-titlecase: New file.
16806         * modules/unictype/property-soft-dotted: New file.
16807         * modules/unictype/property-id-start: New file.
16808         * modules/unictype/property-other-id-start: New file.
16809         * modules/unictype/property-id-continue: New file.
16810         * modules/unictype/property-other-id-continue: New file.
16811         * modules/unictype/property-xid-start: New file.
16812         * modules/unictype/property-xid-continue: New file.
16813         * modules/unictype/property-pattern-white-space: New file.
16814         * modules/unictype/property-pattern-syntax: New file.
16815         * modules/unictype/property-join-control: New file.
16816         * modules/unictype/property-grapheme-base: New file.
16817         * modules/unictype/property-grapheme-extend: New file.
16818         * modules/unictype/property-other-grapheme-extend: New file.
16819         * modules/unictype/property-grapheme-link: New file.
16820         * modules/unictype/property-bidi-control: New file.
16821         * modules/unictype/property-bidi-left-to-right: New file.
16822         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
16823         * modules/unictype/property-bidi-arabic-right-to-left: New file.
16824         * modules/unictype/property-bidi-european-digit: New file.
16825         * modules/unictype/property-bidi-eur-num-separator: New file.
16826         * modules/unictype/property-bidi-eur-num-terminator: New file.
16827         * modules/unictype/property-bidi-arabic-digit: New file.
16828         * modules/unictype/property-bidi-common-separator: New file.
16829         * modules/unictype/property-bidi-block-separator: New file.
16830         * modules/unictype/property-bidi-segment-separator: New file.
16831         * modules/unictype/property-bidi-whitespace: New file.
16832         * modules/unictype/property-bidi-non-spacing-mark: New file.
16833         * modules/unictype/property-bidi-boundary-neutral: New file.
16834         * modules/unictype/property-bidi-pdf: New file.
16835         * modules/unictype/property-bidi-embedding-or-override: New file.
16836         * modules/unictype/property-bidi-other-neutral: New file.
16837         * modules/unictype/property-hex-digit: New file.
16838         * modules/unictype/property-ascii-hex-digit: New file.
16839         * modules/unictype/property-ideographic: New file.
16840         * modules/unictype/property-unified-ideograph: New file.
16841         * modules/unictype/property-radical: New file.
16842         * modules/unictype/property-ids-binary-operator: New file.
16843         * modules/unictype/property-ids-trinary-operator: New file.
16844         * modules/unictype/property-zero-width: New file.
16845         * modules/unictype/property-space: New file.
16846         * modules/unictype/property-non-break: New file.
16847         * modules/unictype/property-iso-control: New file.
16848         * modules/unictype/property-format-control: New file.
16849         * modules/unictype/property-dash: New file.
16850         * modules/unictype/property-hyphen: New file.
16851         * modules/unictype/property-punctuation: New file.
16852         * modules/unictype/property-line-separator: New file.
16853         * modules/unictype/property-paragraph-separator: New file.
16854         * modules/unictype/property-quotation-mark: New file.
16855         * modules/unictype/property-sentence-terminal: New file.
16856         * modules/unictype/property-terminal-punctuation: New file.
16857         * modules/unictype/property-currency-symbol: New file.
16858         * modules/unictype/property-math: New file.
16859         * modules/unictype/property-other-math: New file.
16860         * modules/unictype/property-paired-punctuation: New file.
16861         * modules/unictype/property-left-of-pair: New file.
16862         * modules/unictype/property-combining: New file.
16863         * modules/unictype/property-composite: New file.
16864         * modules/unictype/property-decimal-digit: New file.
16865         * modules/unictype/property-numeric: New file.
16866         * modules/unictype/property-diacritic: New file.
16867         * modules/unictype/property-extender: New file.
16868         * modules/unictype/property-ignorable-control: New file.
16869         * modules/unictype/property-test: New file.
16870         * modules/unictype/property-byname: New file.
16871         * modules/unictype/property-all: New file.
16872         * modules/unictype/scripts: New file.
16873         * modules/unictype/scripts-all: New file.
16874         * modules/unictype/block-of: New file.
16875         * modules/unictype/block-test: New file.
16876         * modules/unictype/block-list: New file.
16877         * modules/unictype/block-all: New file.
16878         * modules/unictype/syntax-c-whitespace: New file.
16879         * modules/unictype/syntax-java-whitespace: New file.
16880         * modules/unictype/syntax-c-ident: New file.
16881         * modules/unictype/syntax-java-ident: New file.
16882         * modules/unictype/ctype-alnum: New file.
16883         * modules/unictype/ctype-alpha: New file.
16884         * modules/unictype/ctype-cntrl: New file.
16885         * modules/unictype/ctype-digit: New file.
16886         * modules/unictype/ctype-graph: New file.
16887         * modules/unictype/ctype-lower: New file.
16888         * modules/unictype/ctype-print: New file.
16889         * modules/unictype/ctype-punct: New file.
16890         * modules/unictype/ctype-space: New file.
16891         * modules/unictype/ctype-upper: New file.
16892         * modules/unictype/ctype-xdigit: New file.
16893         * modules/unictype/ctype-blank: New file.
16894         * lib/unictype/bidi_byname.c: New file.
16895         * lib/unictype/bidi_name.c: New file.
16896         * lib/unictype/bidi_of.c: New file.
16897         * lib/unictype/bidi_test.c: New file.
16898         * lib/unictype/bitmap.h: New file.
16899         * lib/unictype/block_test.c: New file.
16900         * lib/unictype/blocks.c: New file.
16901         * lib/unictype/categ_C.c: New file.
16902         * lib/unictype/categ_Cc.c: New file.
16903         * lib/unictype/categ_Cf.c: New file.
16904         * lib/unictype/categ_Cn.c: New file.
16905         * lib/unictype/categ_Co.c: New file.
16906         * lib/unictype/categ_Cs.c: New file.
16907         * lib/unictype/categ_L.c: New file.
16908         * lib/unictype/categ_Ll.c: New file.
16909         * lib/unictype/categ_Lm.c: New file.
16910         * lib/unictype/categ_Lo.c: New file.
16911         * lib/unictype/categ_Lt.c: New file.
16912         * lib/unictype/categ_Lu.c: New file.
16913         * lib/unictype/categ_M.c: New file.
16914         * lib/unictype/categ_Mc.c: New file.
16915         * lib/unictype/categ_Me.c: New file.
16916         * lib/unictype/categ_Mn.c: New file.
16917         * lib/unictype/categ_N.c: New file.
16918         * lib/unictype/categ_Nd.c: New file.
16919         * lib/unictype/categ_Nl.c: New file.
16920         * lib/unictype/categ_No.c: New file.
16921         * lib/unictype/categ_P.c: New file.
16922         * lib/unictype/categ_Pc.c: New file.
16923         * lib/unictype/categ_Pd.c: New file.
16924         * lib/unictype/categ_Pe.c: New file.
16925         * lib/unictype/categ_Pf.c: New file.
16926         * lib/unictype/categ_Pi.c: New file.
16927         * lib/unictype/categ_Po.c: New file.
16928         * lib/unictype/categ_Ps.c: New file.
16929         * lib/unictype/categ_S.c: New file.
16930         * lib/unictype/categ_Sc.c: New file.
16931         * lib/unictype/categ_Sk.c: New file.
16932         * lib/unictype/categ_Sm.c: New file.
16933         * lib/unictype/categ_So.c: New file.
16934         * lib/unictype/categ_Z.c: New file.
16935         * lib/unictype/categ_Zl.c: New file.
16936         * lib/unictype/categ_Zp.c: New file.
16937         * lib/unictype/categ_Zs.c: New file.
16938         * lib/unictype/categ_and.c: New file.
16939         * lib/unictype/categ_and_not.c: New file.
16940         * lib/unictype/categ_byname.c: New file.
16941         * lib/unictype/categ_name.c: New file.
16942         * lib/unictype/categ_none.c: New file.
16943         * lib/unictype/categ_of.c: New file.
16944         * lib/unictype/categ_or.c: New file.
16945         * lib/unictype/categ_test.c: New file.
16946         * lib/unictype/combining.c: New file.
16947         * lib/unictype/ctype_alnum.c: New file.
16948         * lib/unictype/ctype_alpha.c: New file.
16949         * lib/unictype/ctype_blank.c: New file.
16950         * lib/unictype/ctype_cntrl.c: New file.
16951         * lib/unictype/ctype_digit.c: New file.
16952         * lib/unictype/ctype_graph.c: New file.
16953         * lib/unictype/ctype_lower.c: New file.
16954         * lib/unictype/ctype_print.c: New file.
16955         * lib/unictype/ctype_punct.c: New file.
16956         * lib/unictype/ctype_space.c: New file.
16957         * lib/unictype/ctype_upper.c: New file.
16958         * lib/unictype/ctype_xdigit.c: New file.
16959         * lib/unictype/decdigit.c: New file.
16960         * lib/unictype/digit.c: New file.
16961         * lib/unictype/identsyntaxmap.h: New file.
16962         * lib/unictype/mirror.c: New file.
16963         * lib/unictype/numeric.c: New file.
16964         * lib/unictype/pr_alphabetic.c: New file.
16965         * lib/unictype/pr_ascii_hex_digit.c: New file.
16966         * lib/unictype/pr_bidi_arabic_digit.c: New file.
16967         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
16968         * lib/unictype/pr_bidi_block_separator.c: New file.
16969         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
16970         * lib/unictype/pr_bidi_common_separator.c: New file.
16971         * lib/unictype/pr_bidi_control.c: New file.
16972         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
16973         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
16974         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
16975         * lib/unictype/pr_bidi_european_digit.c: New file.
16976         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
16977         * lib/unictype/pr_bidi_left_to_right.c: New file.
16978         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
16979         * lib/unictype/pr_bidi_other_neutral.c: New file.
16980         * lib/unictype/pr_bidi_pdf.c: New file.
16981         * lib/unictype/pr_bidi_segment_separator.c: New file.
16982         * lib/unictype/pr_bidi_whitespace.c: New file.
16983         * lib/unictype/pr_byname.c: New file.
16984         * lib/unictype/pr_byname.gperf: New file.
16985         * lib/unictype/pr_combining.c: New file.
16986         * lib/unictype/pr_composite.c: New file.
16987         * lib/unictype/pr_currency_symbol.c: New file.
16988         * lib/unictype/pr_dash.c: New file.
16989         * lib/unictype/pr_decimal_digit.c: New file.
16990         * lib/unictype/pr_default_ignorable_code_point.c: New file.
16991         * lib/unictype/pr_deprecated.c: New file.
16992         * lib/unictype/pr_diacritic.c: New file.
16993         * lib/unictype/pr_extender.c: New file.
16994         * lib/unictype/pr_format_control.c: New file.
16995         * lib/unictype/pr_grapheme_base.c: New file.
16996         * lib/unictype/pr_grapheme_extend.c: New file.
16997         * lib/unictype/pr_grapheme_link.c: New file.
16998         * lib/unictype/pr_hex_digit.c: New file.
16999         * lib/unictype/pr_hyphen.c: New file.
17000         * lib/unictype/pr_id_continue.c: New file.
17001         * lib/unictype/pr_id_start.c: New file.
17002         * lib/unictype/pr_ideographic.c: New file.
17003         * lib/unictype/pr_ids_binary_operator.c: New file.
17004         * lib/unictype/pr_ids_trinary_operator.c: New file.
17005         * lib/unictype/pr_ignorable_control.c: New file.
17006         * lib/unictype/pr_iso_control.c: New file.
17007         * lib/unictype/pr_join_control.c: New file.
17008         * lib/unictype/pr_left_of_pair.c: New file.
17009         * lib/unictype/pr_line_separator.c: New file.
17010         * lib/unictype/pr_logical_order_exception.c: New file.
17011         * lib/unictype/pr_lowercase.c: New file.
17012         * lib/unictype/pr_math.c: New file.
17013         * lib/unictype/pr_non_break.c: New file.
17014         * lib/unictype/pr_not_a_character.c: New file.
17015         * lib/unictype/pr_numeric.c: New file.
17016         * lib/unictype/pr_other_alphabetic.c: New file.
17017         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
17018         * lib/unictype/pr_other_grapheme_extend.c: New file.
17019         * lib/unictype/pr_other_id_continue.c: New file.
17020         * lib/unictype/pr_other_id_start.c: New file.
17021         * lib/unictype/pr_other_lowercase.c: New file.
17022         * lib/unictype/pr_other_math.c: New file.
17023         * lib/unictype/pr_other_uppercase.c: New file.
17024         * lib/unictype/pr_paired_punctuation.c: New file.
17025         * lib/unictype/pr_paragraph_separator.c: New file.
17026         * lib/unictype/pr_pattern_syntax.c: New file.
17027         * lib/unictype/pr_pattern_white_space.c: New file.
17028         * lib/unictype/pr_private_use.c: New file.
17029         * lib/unictype/pr_punctuation.c: New file.
17030         * lib/unictype/pr_quotation_mark.c: New file.
17031         * lib/unictype/pr_radical.c: New file.
17032         * lib/unictype/pr_sentence_terminal.c: New file.
17033         * lib/unictype/pr_soft_dotted.c: New file.
17034         * lib/unictype/pr_space.c: New file.
17035         * lib/unictype/pr_terminal_punctuation.c: New file.
17036         * lib/unictype/pr_test.c: New file.
17037         * lib/unictype/pr_titlecase.c: New file.
17038         * lib/unictype/pr_unassigned_code_value.c: New file.
17039         * lib/unictype/pr_unified_ideograph.c: New file.
17040         * lib/unictype/pr_uppercase.c: New file.
17041         * lib/unictype/pr_variation_selector.c: New file.
17042         * lib/unictype/pr_white_space.c: New file.
17043         * lib/unictype/pr_xid_continue.c: New file.
17044         * lib/unictype/pr_xid_start.c: New file.
17045         * lib/unictype/pr_zero_width.c: New file.
17046         * lib/unictype/scripts.c: New file.
17047         * lib/unictype/sy_c_ident.c: New file.
17048         * lib/unictype/sy_c_whitespace.c: New file.
17049         * lib/unictype/sy_java_ident.c: New file.
17050         * lib/unictype/sy_java_whitespace.c: New file.
17051
17052         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
17053         Unicode 5.0.0.
17054         * lib/unictype/blocks.h: Likewise.
17055         * lib/unictype/categ_C.h: Likewise.
17056         * lib/unictype/categ_Cc.h: Likewise.
17057         * lib/unictype/categ_Cf.h: Likewise.
17058         * lib/unictype/categ_Cn.h: Likewise.
17059         * lib/unictype/categ_Co.h: Likewise.
17060         * lib/unictype/categ_Cs.h: Likewise.
17061         * lib/unictype/categ_L.h: Likewise.
17062         * lib/unictype/categ_Ll.h: Likewise.
17063         * lib/unictype/categ_Lm.h: Likewise.
17064         * lib/unictype/categ_Lo.h: Likewise.
17065         * lib/unictype/categ_Lt.h: Likewise.
17066         * lib/unictype/categ_Lu.h: Likewise.
17067         * lib/unictype/categ_M.h: Likewise.
17068         * lib/unictype/categ_Mc.h: Likewise.
17069         * lib/unictype/categ_Me.h: Likewise.
17070         * lib/unictype/categ_Mn.h: Likewise.
17071         * lib/unictype/categ_N.h: Likewise.
17072         * lib/unictype/categ_Nd.h: Likewise.
17073         * lib/unictype/categ_Nl.h: Likewise.
17074         * lib/unictype/categ_No.h: Likewise.
17075         * lib/unictype/categ_P.h: Likewise.
17076         * lib/unictype/categ_Pc.h: Likewise.
17077         * lib/unictype/categ_Pd.h: Likewise.
17078         * lib/unictype/categ_Pe.h: Likewise.
17079         * lib/unictype/categ_Pf.h: Likewise.
17080         * lib/unictype/categ_Pi.h: Likewise.
17081         * lib/unictype/categ_Po.h: Likewise.
17082         * lib/unictype/categ_Ps.h: Likewise.
17083         * lib/unictype/categ_S.h: Likewise.
17084         * lib/unictype/categ_Sc.h: Likewise.
17085         * lib/unictype/categ_Sk.h: Likewise.
17086         * lib/unictype/categ_Sm.h: Likewise.
17087         * lib/unictype/categ_So.h: Likewise.
17088         * lib/unictype/categ_Z.h: Likewise.
17089         * lib/unictype/categ_Zl.h: Likewise.
17090         * lib/unictype/categ_Zp.h: Likewise.
17091         * lib/unictype/categ_Zs.h: Likewise.
17092         * lib/unictype/categ_of.h: Likewise.
17093         * lib/unictype/combining.h: Likewise.
17094         * lib/unictype/ctype_alnum.h: Likewise.
17095         * lib/unictype/ctype_alpha.h: Likewise.
17096         * lib/unictype/ctype_blank.h: Likewise.
17097         * lib/unictype/ctype_cntrl.h: Likewise.
17098         * lib/unictype/ctype_digit.h: Likewise.
17099         * lib/unictype/ctype_graph.h: Likewise.
17100         * lib/unictype/ctype_lower.h: Likewise.
17101         * lib/unictype/ctype_print.h: Likewise.
17102         * lib/unictype/ctype_punct.h: Likewise.
17103         * lib/unictype/ctype_space.h: Likewise.
17104         * lib/unictype/ctype_upper.h: Likewise.
17105         * lib/unictype/ctype_xdigit.h: Likewise.
17106         * lib/unictype/decdigit.h: Likewise.
17107         * lib/unictype/digit.h: Likewise.
17108         * lib/unictype/mirror.h: Likewise.
17109         * lib/unictype/numeric.h: Likewise.
17110         * lib/unictype/pr_alphabetic.h: Likewise.
17111         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17112         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17113         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17114         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17115         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17116         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17117         * lib/unictype/pr_bidi_control.h: Likewise.
17118         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17119         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17120         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17121         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17122         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17123         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17124         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17125         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17126         * lib/unictype/pr_bidi_pdf.h: Likewise.
17127         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17128         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17129         * lib/unictype/pr_combining.h: Likewise.
17130         * lib/unictype/pr_composite.h: Likewise.
17131         * lib/unictype/pr_currency_symbol.h: Likewise.
17132         * lib/unictype/pr_dash.h: Likewise.
17133         * lib/unictype/pr_decimal_digit.h: Likewise.
17134         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17135         * lib/unictype/pr_deprecated.h: Likewise.
17136         * lib/unictype/pr_diacritic.h: Likewise.
17137         * lib/unictype/pr_extender.h: Likewise.
17138         * lib/unictype/pr_format_control.h: Likewise.
17139         * lib/unictype/pr_grapheme_base.h: Likewise.
17140         * lib/unictype/pr_grapheme_extend.h: Likewise.
17141         * lib/unictype/pr_grapheme_link.h: Likewise.
17142         * lib/unictype/pr_hex_digit.h: Likewise.
17143         * lib/unictype/pr_hyphen.h: Likewise.
17144         * lib/unictype/pr_id_continue.h: Likewise.
17145         * lib/unictype/pr_id_start.h: Likewise.
17146         * lib/unictype/pr_ideographic.h: Likewise.
17147         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17148         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17149         * lib/unictype/pr_ignorable_control.h: Likewise.
17150         * lib/unictype/pr_iso_control.h: Likewise.
17151         * lib/unictype/pr_join_control.h: Likewise.
17152         * lib/unictype/pr_left_of_pair.h: Likewise.
17153         * lib/unictype/pr_line_separator.h: Likewise.
17154         * lib/unictype/pr_logical_order_exception.h: Likewise.
17155         * lib/unictype/pr_lowercase.h: Likewise.
17156         * lib/unictype/pr_math.h: Likewise.
17157         * lib/unictype/pr_non_break.h: Likewise.
17158         * lib/unictype/pr_not_a_character.h: Likewise.
17159         * lib/unictype/pr_numeric.h: Likewise.
17160         * lib/unictype/pr_other_alphabetic.h: Likewise.
17161         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17162         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17163         * lib/unictype/pr_other_id_continue.h: Likewise.
17164         * lib/unictype/pr_other_id_start.h: Likewise.
17165         * lib/unictype/pr_other_lowercase.h: Likewise.
17166         * lib/unictype/pr_other_math.h: Likewise.
17167         * lib/unictype/pr_other_uppercase.h: Likewise.
17168         * lib/unictype/pr_paired_punctuation.h: Likewise.
17169         * lib/unictype/pr_paragraph_separator.h: Likewise.
17170         * lib/unictype/pr_pattern_syntax.h: Likewise.
17171         * lib/unictype/pr_pattern_white_space.h: Likewise.
17172         * lib/unictype/pr_private_use.h: Likewise.
17173         * lib/unictype/pr_punctuation.h: Likewise.
17174         * lib/unictype/pr_quotation_mark.h: Likewise.
17175         * lib/unictype/pr_radical.h: Likewise.
17176         * lib/unictype/pr_sentence_terminal.h: Likewise.
17177         * lib/unictype/pr_soft_dotted.h: Likewise.
17178         * lib/unictype/pr_space.h: Likewise.
17179         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17180         * lib/unictype/pr_titlecase.h: Likewise.
17181         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17182         * lib/unictype/pr_unified_ideograph.h: Likewise.
17183         * lib/unictype/pr_uppercase.h: Likewise.
17184         * lib/unictype/pr_variation_selector.h: Likewise.
17185         * lib/unictype/pr_white_space.h: Likewise.
17186         * lib/unictype/pr_xid_continue.h: Likewise.
17187         * lib/unictype/pr_xid_start.h: Likewise.
17188         * lib/unictype/pr_zero_width.h: Likewise.
17189         * lib/unictype/scripts.h: Likewise.
17190         * lib/unictype/scripts_byname.gperf: Likewise.
17191         * lib/unictype/sy_c_ident.h: Likewise.
17192         * lib/unictype/sy_c_whitespace.h: Likewise.
17193         * lib/unictype/sy_java_ident.h: Likewise.
17194         * lib/unictype/sy_java_whitespace.h: Likewise.
17195
17196         * lib/unictype/Makefile: New file.
17197         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
17198         glibc.
17199         * lib/unictype/3level.h: New file, copied from glibc.
17200         * lib/unictype/3levelbit.h: New file.
17201
17202 2007-11-11  Bruno Haible  <bruno@clisp.org>
17203
17204         * modules/gperf: New file.
17205         * modules/iconv_open (Depends-on): Add it.
17206         (Makefile.am): Remove the GPERF definition.
17207
17208 2007-11-11  Bruno Haible  <bruno@clisp.org>
17209
17210         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
17211         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
17212
17213 2007-11-11  Bruno Haible  <bruno@clisp.org>
17214
17215         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
17216         (usage): Remove function.
17217
17218 2007-11-11  Bruno Haible  <bruno@clisp.org>
17219
17220         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
17221         gl_FUNC_CEILF_LIBS.
17222         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
17223         gl_FUNC_CEIL_LIBS.
17224         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
17225         gl_FUNC_CEILL_LIBS.
17226         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
17227         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
17228         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
17229
17230 2007-11-11  Bruno Haible  <bruno@clisp.org>
17231
17232         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
17233         roundf were declared but do not exist on functions.
17234         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
17235         roundl were declared but do not exist on functions.
17236         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
17237         HAVE_FLOORL_AND_CEILL, respectively.
17238         Needed for Sun C on Solaris 10.
17239
17240 2007-11-11  Bruno Haible  <bruno@clisp.org>
17241
17242         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
17243         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
17244         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
17245         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
17246         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
17247         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
17248         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
17249         HAVE_DECL_ROUNDF.
17250         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
17251         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
17252         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
17253         of HAVE_DECL_ROUND*.
17254         * modules/math (Makefile.am): Update.
17255
17256 2007-11-10  Bruno Haible  <bruno@clisp.org>
17257
17258         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
17259         ptrdiff_t as m4/intl.m4.
17260
17261 2007-11-10  Jim Meyering  <meyering@redhat.com>
17262
17263         Avoid link failure for the argmatch test.
17264         * tests/test-argmatch.c (usage): Define function to avoid a link
17265         failure: argmatch_die requires a usage function.
17266
17267 2007-11-09  Bruno Haible  <bruno@clisp.org>
17268
17269         * doc/functions/snprintf.texi: Mention BeOS deficiency.
17270         * doc/functions/vsnprintf.texi: Likewise.
17271         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
17272         with a size argument < 2.
17273
17274 2007-11-09  Bruno Haible  <bruno@clisp.org>
17275
17276         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
17277         buffer. Fixes an inefficiency introduced on 2007-11-03.
17278
17279 2007-11-09  Bruno Haible  <bruno@clisp.org>
17280
17281         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
17282         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
17283
17284 2007-11-08  Jim Meyering  <meyering@redhat.com>
17285
17286         Change cache variable name prefix "jm_" to "gl_" everywhere.
17287         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
17288         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
17289         * m4/uptime.m4: s/gl_/jm_/
17290
17291 2007-11-07  Bruno Haible  <bruno@clisp.org>
17292
17293         Update to GNU gettext 0.17.
17294         * m4/intl.m4: Update to GNU gettext 0.17.
17295         * m4/po.m4: Likewise.
17296         * modules/gettext (Files): Remove m4/ulonglong.m4.
17297         (configure.ac): Require gettext infrastructure from version 0.17.
17298
17299 2007-11-06  Bruno Haible  <bruno@clisp.org>
17300
17301         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
17302         symbolic values are not defined in a public header.
17303         * lib/freadable.c (freadable) [QNX]: Likewise.
17304         * lib/freadahead.c (freadahead) [QNX]: Likewise.
17305         * lib/freading.c (freading) [QNX]: Likewise.
17306         * lib/fseterr.c (fseterr) [QNX]: Likewise.
17307         * lib/fwritable.c (fwritable) [QNX]: Likewise.
17308         * lib/fwriting.c (fwriting) [QNX]: Likewise.
17309         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
17310         Reported by Alain Magloire.
17311
17312         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
17313
17314 2007-11-05  Bruno Haible  <bruno@clisp.org>
17315
17316         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
17317         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
17318         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
17319         Reported by Eric Blake.
17320
17321 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17322             Bruno Haible  <bruno@clisp.org>
17323
17324         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
17325         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
17326         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
17327         (malloc): Undefine also before including <stdlib.h>.
17328         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
17329         Needed on OSF/1 4.0.
17330
17331 2007-11-05  Jim Meyering  <meyering@redhat.com>
17332
17333         git-version-gen: sync from coreutils.
17334         * build-aux/git-version-gen: Add comments.
17335         Change the first '-' to '.' in the snapshot version string,
17336         e.g., 6.9-377-08144 -> 6.9.377-08144
17337         Remove first parameter.
17338         Don't declare a version "-dirty" merely because a time
17339         stamp has changed.
17340
17341 2007-11-04  Bruno Haible  <bruno@clisp.org>
17342
17343         * lib/lock.h: Protect all macro definitions containing an 'if'
17344         statement through a "do { ... } while (0)".
17345         * lib/tls.h: Likewise.
17346
17347 2007-11-04  Bruno Haible  <bruno@clisp.org>
17348
17349         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
17350
17351 2007-11-04  Bruno Haible  <bruno@clisp.org>
17352
17353         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
17354         * modules/fprintf-posix (Depends-on): Add nocrash.
17355         * modules/snprintf-posix (Depends-on): Likewise.
17356         * modules/sprintf-posix (Depends-on): Likewise.
17357         * modules/vasnprintf-posix (Depends-on): Likewise.
17358         * modules/vasprintf-posix (Depends-on): Likewise.
17359         * modules/vfprintf-posix (Depends-on): Likewise.
17360         * modules/vsnprintf-posix (Depends-on): Likewise.
17361         * modules/vsprintf-posix (Depends-on): Likewise.
17362         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17363         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17364         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17365         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17366         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17367         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17368         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17369
17370 2007-11-04  Bruno Haible  <bruno@clisp.org>
17371
17372         * modules/nocrash: New file.
17373         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
17374         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
17375
17376 2007-11-04  Bruno Haible  <bruno@clisp.org>
17377
17378         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
17379         precision handling.
17380         * tests/test-vasprintf-posix.c (test_function): Likewise.
17381         * tests/test-snprintf-posix.h (test_function): Likewise.
17382         * tests/test-sprintf-posix.h (test_function): Likewise.
17383
17384         Fix *printf behaviour for large precisions on mingw and BeOS.
17385         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
17386         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
17387         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
17388         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
17389         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
17390         gl_PRINTF_PRECISION and test its result. Invoke
17391         gl_PREREQ_VASNPRINTF_PRECISION.
17392         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
17393         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17394         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17395         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17396         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
17397         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17398         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17399         * doc/functions/fprintf.texi: Update.
17400         * doc/functions/printf.texi: Update.
17401         * doc/functions/snprintf.texi: Update.
17402         * doc/functions/sprintf.texi: Update.
17403         * doc/functions/vfprintf.texi: Update.
17404         * doc/functions/vprintf.texi: Update.
17405         * doc/functions/vsnprintf.texi: Update.
17406         * doc/functions/vsprintf.texi: Update.
17407
17408 2007-11-04  Bruno Haible  <bruno@clisp.org>
17409
17410         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
17411
17412 2007-11-04  Bruno Haible  <bruno@clisp.org>
17413
17414         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
17415         Reported by Sylvain Beucler <beuc@gnu.org>.
17416
17417 2007-11-03  Bruno Haible  <bruno@clisp.org>
17418
17419         * tests/test-fprintf-posix2.sh: New file.
17420         * tests/test-fprintf-posix2.c: New file.
17421         * modules/fprintf-posix-tests (Files): Add them.
17422         (TESTS): Add test-fprintf-posix2.sh.
17423         (configure.ac): Check for getrlimit and setrlimit.
17424         (check_PROGRAMS): Add test-fprintf-posix2.
17425
17426         * tests/test-printf-posix2.sh: New file.
17427         * tests/test-printf-posix2.c: New file.
17428         * modules/printf-posix-tests (Files): Add them.
17429         (TESTS): Add test-printf-posix2.sh.
17430         (configure.ac): Check for getrlimit and setrlimit.
17431         (check_PROGRAMS): Add test-printf-posix2.
17432
17433         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
17434         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
17435         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
17436         (decode_double): New function, copied from decode_long_double.
17437         (scale10_round_decimal_decoded): New function, extracted from
17438         scale10_round_decimal_long_double.
17439         (scale10_round_decimal_long_double): Use it.
17440         (scale10_round_decimal_double): New function.
17441         (floorlog10): New function.
17442         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
17443         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
17444         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
17445         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
17446         gl_PRINTF_ENOMEM and test its result. Invoke
17447         gl_PREREQ_VASNPRINTF_ENOMEM.
17448         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
17449         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17450         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17451         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17452         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
17453         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17454         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17455         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
17456         * modules/snprintf-posix (Depends-on): Likewise.
17457         * modules/sprintf-posix (Depends-on): Likewise.
17458         * modules/vasnprintf-posix (Depends-on): Likewise.
17459         * modules/vasprintf-posix (Depends-on): Likewise.
17460         * modules/vfprintf-posix (Depends-on): Likewise.
17461         * modules/vsnprintf-posix (Depends-on): Likewise.
17462         * modules/vsprintf-posix (Depends-on): Likewise.
17463         * doc/functions/fprintf.texi: Update.
17464         * doc/functions/printf.texi: Update.
17465         * doc/functions/snprintf.texi: Update.
17466         * doc/functions/sprintf.texi: Update.
17467         * doc/functions/vfprintf.texi: Update.
17468         * doc/functions/vprintf.texi: Update.
17469         * doc/functions/vsnprintf.texi: Update.
17470         * doc/functions/vsprintf.texi: Update.
17471
17472 2007-11-03  Bruno Haible  <bruno@clisp.org>
17473
17474         * modules/frexp-nolibm-tests: New file.
17475
17476         * modules/frexp-nolibm: New file.
17477         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
17478
17479 2007-11-03  Bruno Haible  <bruno@clisp.org>
17480
17481         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
17482         value is C99 compliant.
17483         Needed for OSF/1 5.1.
17484
17485 2007-11-03  Bruno Haible  <bruno@clisp.org>
17486
17487         Fix out-of-memory handling of vasnprintf.
17488         * lib/printf-parse.c: Include <errno.h>.
17489         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
17490         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
17491         is already set.
17492
17493 2007-11-02  Eric Blake  <ebb9@byu.net>
17494
17495         Fix tests on cygwin.
17496         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
17497
17498 2007-11-01  Bruno Haible  <bruno@clisp.org>
17499
17500         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
17501         warning.
17502         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
17503         needed for POSIX compatibility.
17504
17505 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
17506
17507         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
17508         for compatibility with GNU.
17509
17510 2007-11-01  Bruno Haible  <bruno@clisp.org>
17511
17512         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
17513         (putenv): Renamed from rpl_putenv. Change argument type from
17514         'const char *' to 'char *'.
17515         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
17516         of defining putenv in config.h, just set REPLACE_PUTENV.
17517         * modules/putenv (Depends-on): Add stdlib.
17518         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17519         (Include): Use <stdlib.h>.
17520         * lib/stdlib.in.h (putenv): New declaration.
17521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
17522         REPLACE_PUTENV.
17523         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
17524         REPLACE_PUTENV.
17525         Needed for MacOS X 10.5.0.
17526         Reported by Peter O'Gorman <peter@pogma.com>.
17527
17528 2007-11-01  Jim Meyering  <meyering@redhat.com>
17529
17530         Treat an empty date string exactly like "0".
17531         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
17532         if the remaining date string (to be parsed) is empty, use "0".
17533         Reported by Mischa Molhoek and discussed in this thread:
17534         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
17535
17536 2007-10-31  Bruno Haible  <bruno@clisp.org>
17537
17538         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
17539         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
17540         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
17541         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
17542         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
17543         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
17544
17545 2007-10-31  Bruno Haible  <bruno@clisp.org>
17546
17547         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
17548         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
17549         (AC_TYPE_LONG_LONG_INT): Use it.
17550         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
17551         it as well.
17552         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
17553         to m4/longlong.m4.
17554         * modules/stdint (Files): Remove m4/ulonglong.m4.
17555         * modules/strtoull (Files): Use m4/longlong.m4 instead of
17556         m4/ulonglong.m4.
17557         * modules/strtoumax (Files): Likewise.
17558
17559 2007-10-30  Bruno Haible  <bruno@clisp.org>
17560
17561         * modules/xvasprintf-posix: New file.
17562         Suggested by Eric Blake.
17563
17564 2007-10-30  Bruno Haible  <bruno@clisp.org>
17565
17566         * modules/xprintf-posix-tests: New file.
17567         * tests/test-xprintf-posix.sh: New file.
17568         * tests/test-xprintf-posix.c: New file.
17569         * tests/test-xfprintf-posix.c: New file.
17570
17571         * modules/xprintf-posix: New file.
17572
17573 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17574
17575         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
17576         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
17577         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
17578
17579 2007-10-29  Bruno Haible  <bruno@clisp.org>
17580
17581         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
17582         contain the special marker '_cv_'.
17583         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17584         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17585         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17586         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
17587         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17588         Reported by Ralf Wildenhues.
17589
17590 2007-10-29  Bruno Haible  <bruno@clisp.org>
17591
17592         * gnulib-tool (func_import): When --lgpl is not specified, set
17593         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
17594         GPLv3.
17595         Reported by Simon Josefsson.
17596
17597 2007-10-28  Bruno Haible  <bruno@clisp.org>
17598
17599         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
17600         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
17601         HAVE_DECL_ISFINITE.
17602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
17603         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
17604         HAVE_DECL_ISFINITE.
17605
17606 2007-10-28  Bruno Haible  <bruno@clisp.org>
17607
17608         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
17609         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
17610
17611 2007-10-28  Bruno Haible  <bruno@clisp.org>
17612
17613         Fix link errors with Sun C 5.0 on Solaris 10.
17614         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
17615         function is declared but not present in the compiler's libm.
17616         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
17617         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
17618         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
17619         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
17620         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
17621         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
17622         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
17623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
17624         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
17625         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
17626         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
17627         HAVE_DECL_FLOORL.
17628
17629 2007-10-28  Bruno Haible  <bruno@clisp.org>
17630
17631         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
17632         gl_FUNC_FLOORL. Cache the result.
17633         (gl_FUNC_FLOORL): Use it.
17634         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
17635         gl_FUNC_CEILL. Cache the result.
17636         (gl_FUNC_CEILL): Use it.
17637
17638         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
17639         gl_FUNC_FLOOR. Cache the result.
17640         (gl_FUNC_FLOOR): Use it.
17641         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
17642         gl_FUNC_CEIL. Cache the result.
17643         (gl_FUNC_CEIL): Use it.
17644
17645         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
17646         gl_FUNC_FLOORF. Cache the result.
17647         (gl_FUNC_FLOORF): Use it.
17648         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
17649         gl_FUNC_CEILF. Cache the result.
17650         (gl_FUNC_CEILF): Use it.
17651
17652 2007-10-28  Bruno Haible  <bruno@clisp.org>
17653
17654         * gnulib-tool: Allow specifying the LGPL version number through
17655         --lgpl=2 or --lgpl=3.
17656         (func_usage): Document --lgpl with argument.
17657         Handle --lgpl=... arguments.
17658         (func_import): Recognize also gl_LGPL calls with an argument. When
17659         --lgpl=2 is used and the module's license is just LGPL, report an
17660         error. Set sed_transform_lib_file according to the lgpl variable. In
17661         the generated files, use --lgpl or gl_LGPL invocations with argument,
17662         if necessary.
17663         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
17664         an LGPv2+ license.
17665         * doc/gnulib-tool.texi (Modified imports): Update explanation of
17666         gl_LGPL macro.
17667
17668 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17669             Bruno Haible  <bruno@clisp.org>
17670
17671         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
17672         (u16_uctomb_aux): Likewise.
17673         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
17674         !HAVE_INLINE.
17675         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
17676
17677 2007-10-28  Bruno Haible  <bruno@clisp.org>
17678
17679         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
17680         Invoke AM_GETTEXT_OPTION if it exists.
17681         * modules/vasprintf: Likewise.
17682         * modules/verror: Likewise.
17683         * modules/xprintf: Likewise.
17684         * modules/xvasprintf: Likewise.
17685
17686 2007-10-27  Ben Pfaff  <blp@gnu.org>
17687
17688         * lib/math.in.h: Define isfinite macro and prototypes for
17689         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
17690         implementations.
17691         * m4/math_h.m4: New substitutions for isfinite module.
17692         * lib/isfinite.c: New file.
17693         * m4/isfinite.m4: New file.
17694         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
17695         * modules/isfinite: New file.
17696         * modules/isfinite-tests: New file.
17697         * tests/tests-isfinite.c: New file.
17698         * doc/functions/isfinite.texi: Mention isfinite module.
17699         * MODULES.html.sh: Mention new module.
17700
17701 2007-10-27  Ben Pfaff  <blp@gnu.org>
17702
17703         Ralf Wildenhues reported that Tru64 4.0D declares the round
17704         functions but does not have definitions.
17705         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
17706         cannot be found in any library, set the output variable to
17707         "missing" instead of "".
17708         * m4/round.m4: Also use our substitute if we cannot find round in
17709         any library, even if it is declared.
17710         * m4/roundf.m4: Likewise for roundf.
17711         * m4/roundl.m4: Likewise for roundl.
17712         * lib/math.in.h: Undefine roundf, round, roundl before defining
17713         their replacements, to allow for hypothetical systems where these
17714         may be defined as macros but not available in libraries.
17715
17716 2007-10-27  Bruno Haible  <bruno@clisp.org>
17717
17718         * doc/gnulib.texi: Invoke @firstparagraphindent.
17719         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
17720         changes in gnulib.
17721         (Source changes): New section.
17722
17723 2007-10-26  Bruno Haible  <bruno@clisp.org>
17724
17725         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
17726         borrowed from autoconf.
17727
17728 2007-10-26  Bruno Haible  <bruno@clisp.org>
17729
17730         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
17731         strerror returned the empty string. Needed on HP-UX 11.00.
17732
17733 2007-10-24  Micah Cowan  <micah@cowan.name>
17734
17735         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
17736         * build-aux/bootstrap: Remove support for now-unnecessary option,
17737         --cvs-user, and envvars CVS_USER, CVS_RSH.
17738
17739 2007-10-24  Jim Meyering  <meyering@redhat.com>
17740
17741         Avoid diagnostics from sha1sum when there is no cached checksum.
17742         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
17743         if the po.s1 file hasn't been created yet.
17744
17745         * build-aux/bootstrap: Sync from coreutils:
17746         2007-10-24  Jim Meyering  <meyering@redhat.com>
17747         Get gnulib from the git repository, not from an obsolete cvs one.
17748         * build-aux/bootstrap: Suggestion from Micah Cowan.
17749         2007-10-04  Jim Meyering  <jim@meyering.net>
17750         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
17751         (update_po_files): Work also when there are no .po files in po/.
17752
17753 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17754
17755         * README: Append ".git" to git and cg examples.
17756         Problem reported by Benoit Sigoure.
17757
17758 2007-10-23  Micah Cowan  <micah@cowan.name>
17759
17760         * users.txt: Add wget.
17761
17762 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17763
17764         Fix linking of some unistdio tests on FreeBSD.
17765         * modules/unistdio/u16-vsnprintf-tests
17766         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
17767         * modules/unistdio/u16-vsprintf-tests
17768         (test_u16_vsnprintf1_LDADD): Likewise.
17769         * modules/unistdio/u32-vsnprintf-tests
17770         (test_u32_vsnprintf1_LDADD): Likewise.
17771         * modules/unistdio/u32-vsprintf-tests
17772         (test_u32_vsprintf1_LDADD): Likewise.
17773         * modules/unistdio/u8-vsnprintf-tests
17774         (test_u8_vsnprintf1_LDADD): Likewise.
17775         * modules/unistdio/u8-vsprintf-tests
17776         (test_u8_vsprintf1_LDADD): Likewise.
17777         * modules/unistdio/ulc-vsnprintf-tests
17778         (test_ulc_vsnprintf1_LDADD): Likewise.
17779         * modules/unistdio/ulc-vsprintf-tests
17780         (test_ulc_vsprintf1_LDADD): Likewise.
17781
17782         Fix linking of some uniconv tests on FreeBSD.
17783         * modules/uniconv/u16-conv-from-enc-tests
17784         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
17785         * modules/uniconv/u16-conv-to-enc-tests
17786         (test_u16_conv_to_enc_LDADD): Likewise.
17787         * modules/uniconv/u16-strconv-from-enc-tests
17788         (test_u16_strconv_from_enc_LDADD): Likewise.
17789         * modules/uniconv/u16-strconv-to-enc-tests
17790         (test_u16_strconv_to_enc_LDADD): Likewise.
17791         * modules/uniconv/u32-conv-from-enc-tests
17792         (test_u32_conv_from_enc_LDADD): Likewise.
17793         * modules/uniconv/u32-conv-to-enc-tests
17794         (test_u32_conv_to_enc_LDADD): Likewise.
17795         * modules/uniconv/u32-strconv-from-enc-tests
17796         (test_u32_strconv_from_enc_LDADD): Likewise.
17797         * modules/uniconv/u32-strconv-to-enc-tests
17798         (test_u32_strconv_to_enc_LDADD): Likewise.
17799         * modules/uniconv/u8-conv-from-enc-tests
17800         (test_u8_conv_from_enc_LDADD): Likewise.
17801         * modules/uniconv/u8-conv-to-enc-tests
17802         (test_u8_conv_to_enc_LDADD): Likewise.
17803         * modules/uniconv/u8-strconv-from-enc-tests
17804         (test_u8_strconv_from_enc_LDADD): Likewise.
17805         * modules/uniconv/u8-strconv-to-enc-tests
17806         (test_u8_strconv_to_enc_LDADD): Likewise.
17807
17808 2007-10-22  Bruno Haible  <bruno@clisp.org>
17809
17810         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
17811         size.
17812
17813 2007-10-22  Eric Blake  <ebb9@byu.net>
17814
17815         Tweak x*printf documentation.
17816         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
17817         variable name and comments.
17818         Suggested by Bruno Haible.
17819
17820 2007-10-22  Bruno Haible  <bruno@clisp.org>
17821
17822         * lib/acl.c (copy_acl): Fix file name in comment.
17823
17824 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
17825
17826         Fix Tru64 problem with stdbool.h.
17827         * lib/stdbool.in.h (false, true):
17828         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
17829         Don't declare as an enum in this situation; it runs afoul of Tru64.
17830         Problem reported by Steven M. Schweda in
17831         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
17832
17833 2007-10-22  Eric Blake  <ebb9@byu.net>
17834
17835         Also wrap vf?printf.
17836         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
17837         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
17838         (xvprintf, xvfprintf): New functions.
17839
17840 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17841
17842         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
17843         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
17844
17845         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
17846         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
17847
17848 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
17849
17850         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
17851         by Bruno Haible.
17852
17853 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17854
17855         * lib/getloadavg.c
17856         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
17857         Undef `sys' after including sys/table.h, for Tru64 4.0D.
17858
17859         * tests/test-i-ring.c: Work for C89.
17860
17861 2007-10-22  Bruno Haible  <bruno@clisp.org>
17862
17863         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
17864         -1u, in preprocessor expression, so that we don't test for the bug
17865         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
17866         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
17867
17868 2007-10-22  Eric Blake  <ebb9@byu.net>
17869
17870         * tests/test-yesno.sh: Silence stderr during test.
17871
17872 2007-10-22  Simon Josefsson  <simon@josefsson.org>
17873
17874         * modules/crypto/gc-camellia: New file.
17875
17876         * m4/gc-camellia.m4: New file.
17877
17878         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
17879
17880         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
17881
17882 2007-10-22  Simon Josefsson  <simon@josefsson.org>
17883
17884         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
17885         --help to stdout.  Reported by sms@antinode.org (Steven
17886         M. Schweda).
17887
17888 2007-10-22  Simon Josefsson  <simon@josefsson.org>
17889
17890         * users.txt: Fix link to libksba.
17891
17892 2007-10-21  Ben Pfaff  <blp@gnu.org>
17893
17894         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
17895         round.c roundf implementation that depends on floorf and ceilf to
17896         be tested unconditionally.
17897
17898 2007-10-21  Ben Pfaff  <blp@gnu.org>
17899
17900         * m4/check-libm-func.m4: Removed.
17901         * m4/check-math-lib.m4: New file.
17902         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
17903         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
17904         definition and lack of AC_LIBOBJ([roundf]).
17905         * m4/roundl.m4: Ditto, and similarly for roundl.
17906         * modules/round: Reference new m4 file.
17907         * modules/roundf: Ditto.
17908         * modules/roundl: Ditto.
17909         * tests/test-round2.c (main): Use ROUND instead of round.
17910         Bug report from Bruno Haible.
17911
17912 2007-10-21  Bruno Haible  <bruno@clisp.org>
17913
17914         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
17915         context.
17916
17917 2007-10-21  Bruno Haible  <bruno@clisp.org>
17918
17919         * tests/test-wcwidth.c (main): Allow negative result for some control
17920         characters.
17921
17922         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
17923         Needed on OSF/1 5.1.
17924
17925 2007-10-21  Bruno Haible  <bruno@clisp.org>
17926
17927         * tests/test-floorf1.c: Include isnanf.h.
17928         (main): Use isnanf() instead of isnan().
17929         * tests/test-ceilf1.c: Include isnanf.h.
17930         (main): Use isnanf() instead of isnan().
17931         * tests/test-truncf1.c: Include isnanf.h.
17932         (main): Use isnanf() instead of isnan().
17933         * tests/test-roundf1.c: Include isnanf.h.
17934         (main): Use isnanf() instead of isnan().
17935
17936 2007-10-21  Eric Blake  <ebb9@byu.net>
17937
17938         * users.txt: Update URL for m4.
17939
17940 2007-10-21  Bruno Haible  <bruno@clisp.org>
17941
17942         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
17943
17944 2007-10-21  Bruno Haible  <bruno@clisp.org>
17945
17946         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
17947         Git's management files if the CVS files are not present.
17948
17949 2007-10-20  Bruno Haible  <bruno@clisp.org>
17950
17951         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
17952         gcc-3.4.x.
17953
17954 2007-10-20  Ben Pfaff  <blp@gnu.org>
17955
17956         * lib/math.in.h: Declare round, roundf, roundl if we are providing
17957         implementations.
17958         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
17959         * lib/round.c: New file.
17960         * lib/roundf.c: New file.
17961         * lib/roundl.c: New file.
17962         * m4/round.m4: New file.
17963         * m4/roundf.m4: New file.
17964         * m4/roundl.m4: New file.
17965         * m4/check-libm-func-m4: New file.
17966         * modules/math: Replace round, roundf, roundl related @VARS@ in
17967         math.in.h.
17968         * modules/round: New file.
17969         * modules/round-tests: New file.
17970         * modules/roundf: New file.
17971         * modules/roundf-tests: New file.
17972         * modules/roundl: New file.
17973         * modules/roundl-tests: New file.
17974         * tests/test-round1.c: New file.
17975         * tests/test-round2.c: New file.
17976         * tests/test-roundf1.c: New file.
17977         * tests/test-roundf2.c: New file.
17978         * tests/test-roundl.c: New file.
17979         * doc/functions/round.texi: Mention round module.
17980         * doc/functions/roundf.texi: Mention roundf module.
17981         * doc/functions/roundl.texi: Mention roundl module.
17982         * MODULES.html.sh: Mention new modules.
17983         Thanks to Bruno Haible for suggestions.
17984
17985 2007-10-20  Jim Meyering  <meyering@redhat.com>
17986
17987         * lib/xprintf.c: Include <config.h> unconditionally.
17988
17989         Change xprintf's license to GPL.
17990         * modules/xprintf (License): s/LGPL/GPL/, since this module
17991         depends on modules (exit and exitfail) which are GPL.
17992         Suggestion from Bruno Haible.
17993
17994         xprintf fixes.
17995         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
17996         Use a clearer diagnostic.
17997         Patch from Bruno Haible.
17998
17999 2007-10-20  Bruno Haible  <bruno@clisp.org>
18000
18001         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
18002         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
18003         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18004
18005 2007-10-20  Bruno Haible  <bruno@clisp.org>
18006
18007         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
18008         precision in the comparison result > x - 1 or similar.
18009         * tests/test-ceilf2.c (correct_result_p): Likewise.
18010         * tests/test-truncf2.c (correct_result_p): Likewise.
18011         * tests/test-trunc2.c (correct_result_p): Likewise.
18012         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18013
18014 2007-10-20  Bruno Haible  <bruno@clisp.org>
18015
18016         * modules/ceil: New file.
18017         * m4/ceil.m4: New file.
18018         * doc/functions/ceil.texi: Mention the 'ceil' module.
18019
18020 2007-10-20  Bruno Haible  <bruno@clisp.org>
18021
18022         * modules/floor: New file.
18023         * m4/floor.m4: New file.
18024         * doc/functions/floor.texi: Mention the 'floor' module.
18025
18026 2007-10-20  Bruno Haible  <bruno@clisp.org>
18027
18028         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
18029         of %a.
18030         * modules/floorf-tests (Depends-on): Likewise.
18031         * modules/truncf-tests (Depends-on): Likewise.
18032         * modules/trunc-tests (Depends-on): Likewise.
18033         Reported by Ben Pfaff.
18034
18035 2007-10-19  Jim Meyering  <meyering@redhat.com>
18036
18037         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
18038         Don't bother testing specific errno values.  Just test ferror.
18039
18040         New module: xprintf
18041         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
18042
18043 2007-10-19  Bruno Haible  <bruno@clisp.org>
18044
18045         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
18046         syntax.
18047         * modules/javaexec (Makefile.am): Likewise.
18048         * modules/relocatable-prog (Makefile.am): Likewise.
18049         Suggested by Jim Meyering.
18050
18051 2007-10-18  Bruno Haible  <bruno@clisp.org>
18052
18053         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
18054         Reported by Jim Meyering.
18055
18056 2007-10-18  Eric Blake  <ebb9@byu.net>
18057
18058         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
18059
18060 2007-10-18  Bruno Haible  <bruno@clisp.org>
18061
18062         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
18063         the format string into writable memory. Needed in Fortify conditions.
18064
18065 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
18066             Bruno Haible  <bruno@clisp.org>
18067
18068         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
18069         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
18070         * modules/trim (Depends-on): Add mbchar.
18071         (configure.ac): Add gl_FUNC_MBRTOWC.
18072         (Makefile.am): Augment lib_SOURCES.
18073
18074 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
18075
18076         Modify glob.c to use fstatat and dirfd, to simplify it.
18077         Suggested by Eric Blake.
18078         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
18079         Don't include <stdbool.h>; not used.
18080         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
18081         (link_exists_p): Simplify implementation, since we can now assume
18082         dirfd and fstatat.
18083         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
18084
18085 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18086
18087         * gnulib-tool (func_get_dependencies): Fix sed script to
18088         match only tests.
18089
18090 2007-10-17  Bruno Haible  <bruno@clisp.org>
18091
18092         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
18093         allow locale names without encoding suffix.
18094         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
18095         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18096
18097 2007-10-16  Bruno Haible  <bruno@clisp.org>
18098
18099         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
18100         * lib/getgroups.c (getgroups): Likewise.
18101         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
18102
18103 2007-10-16  Bruno Haible  <bruno@clisp.org>
18104
18105         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
18106         * modules/malloc-posix (License): Likewise.
18107         * modules/realloc-posix (License): Likewise.
18108         * modules/calloc-posix (License): Likewise.
18109         * modules/intprops (License): Change from GPL to LGPL, with
18110         Paul Eggert's approval.
18111
18112 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18113
18114         Merge glibc changes into lib/glob.c.
18115
18116         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
18117         2007-10-15 04:59:03 UTC.  Here are the changes:
18118
18119         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
18120
18121         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
18122
18123         * lib/glob.c: Add some branch prediction throughout.
18124
18125         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
18126
18127         [BZ #5103]
18128         * lib/glob.c (glob): Recognize patterns starting \/.
18129
18130         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
18131
18132         [BZ #3996]
18133         * lib/glob.c (attribute_hidden): Define if not defined.
18134         (glob): Unescape dirname, filename or username when needed and not
18135         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
18136         is NULL.  Handle unescaped [ in pattern without closing ].
18137         Don't pass GLOB_CHECK down to recursive glob for directories.
18138         (__glob_pattern_type): New function.
18139         (__glob_pattern_p): Implement using __glob_pattern_type.
18140         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
18141         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
18142         Remove unreachable code.
18143
18144         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
18145
18146         * lib/glob.c (glob_in_dir): Add some comments and asserts to
18147         explain why there are no leaks.
18148
18149         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
18150
18151         [BZ #3253]
18152         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
18153         time, rather allocate increasingly bigger arrays of pointers, if
18154         possible with alloca, if too large with malloc.
18155
18156 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18157
18158         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
18159         Problem reported by H.Merijn Brand in
18160         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
18161         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
18162         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
18163
18164 2007-10-15  Bruno Haible  <bruno@clisp.org>
18165
18166         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
18167         with explicit rpl_ prefix.
18168         * lib/fopen.c (fopen): Likewise.
18169         * lib/freopen.c (freopen): Likewise.
18170         * lib/iconv.c (iconv): Likewise.
18171         * lib/iconv_close.c (iconv_close): Likewise.
18172
18173 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18174
18175         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
18176
18177 2007-10-15  Bruno Haible  <bruno@clisp.org>
18178
18179         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
18180         <stddef.h> instead of <stdlib.h> since we only need NULL.
18181         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18182
18183 2007-10-15  Bruno Haible  <bruno@clisp.org>
18184
18185         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
18186         Replace paragraph talking about LIBOBJS.
18187         Reported by Colin Watson <cjwatson@debian.org>.
18188
18189 2007-10-15  Bruno Haible  <bruno@clisp.org>
18190
18191         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
18192         <stdlib.h> before using NULL.
18193
18194 2007-10-15  Simon Josefsson  <simon@josefsson.org>
18195
18196         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
18197         Reported by Albert Chin <china@thewrittenword.com>.
18198
18199 2007-10-14  Bruno Haible  <bruno@clisp.org>
18200
18201         * modules/iconv_open-utf-tests: New file.
18202         * tests/test-iconv-utf.c: New file.
18203
18204         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
18205         * modules/iconv_open-utf: New file.
18206         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
18207         (iconv, iconv_close): New declarations.
18208         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
18209         be defined.
18210         (iconv_open): Add special handling of conversion between UTF-8 and
18211         UTF-{16,32}{BE,LE}.
18212         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
18213         * lib/iconv_close.c: New file.
18214         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
18215         gl_FUNC_ICONV_OPEN.
18216         (gl_FUNC_ICONV_OPEN): Use it.
18217         (gl_FUNC_ICONV_OPEN_UTF): New macro.
18218         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
18219         and REPLACE_ICONV_UTF.
18220         * modules/iconv_open (Depends-on): Add c-strcase.
18221         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
18222         ICONV_CONST.
18223         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
18224
18225 2007-10-13  Albert Chin  <china@thewrittenword.com>
18226             Bruno Haible  <bruno@clisp.org>
18227
18228         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
18229         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
18230
18231 2007-10-13  Bruno Haible  <bruno@clisp.org>
18232
18233         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
18234         defined, use the ISO C99 inline semantics.
18235         * lib/argp.h (ARGP_EI): Likewise.
18236
18237 2007-10-13  Bruno Haible  <bruno@clisp.org>
18238
18239         Handle 'inline' change in gcc 4.3.0.
18240         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
18241         argp_fmtstream_write, argp_fmtstream_set_lmargin,
18242         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
18243         argp_fmtstream_point): Disable 'extern' declaration if the function
18244         definition is going to be provided inline.
18245         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
18246         semantics, not the ISO C99 inline semantics.
18247         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
18248         'extern' declaration if the function definition is going to be provided
18249         inline.
18250         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
18251         the GNU C inline semantics, not the ISO C99 inline semantics. With
18252         GCC 4.2, avoid a warning.
18253
18254 2007-10-13  Bruno Haible  <bruno@clisp.org>
18255
18256         * lib/freading.h (freading): Enable the use of __freading for
18257         glibc >= 2.7.
18258         * lib/freading.c (freading): Likewise.
18259
18260 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18261
18262         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
18263         "warning: C99 inline functions are not supported; using GNU89".
18264
18265 2007-10-12  Bruno Haible  <bruno@clisp.org>
18266
18267         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
18268         of 2.
18269         * tests/test-ceilf2.c: New file.
18270         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
18271
18272         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
18273         * modules/ceilf-tests: Update.
18274
18275 2007-10-12  Bruno Haible  <bruno@clisp.org>
18276
18277         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
18278         of 2.
18279         * tests/test-floorf2.c: New file.
18280         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
18281
18282         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
18283         * modules/floorf-tests: Update.
18284
18285 2007-10-12  Bruno Haible  <bruno@clisp.org>
18286
18287         * tests/test-trunc2.c: New file.
18288         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
18289
18290         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
18291         * modules/trunc-tests: Update.
18292
18293 2007-10-12  Bruno Haible  <bruno@clisp.org>
18294
18295         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
18296         of 2.
18297         * tests/test-truncf2.c: New file.
18298         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
18299
18300         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
18301         * modules/truncf-tests: Update.
18302
18303 2007-10-11  Eric Blake  <ebb9@byu.net>
18304
18305         Don't claim strerror is broken on Interix.
18306         * doc/functions/strerror.texi (strerror): Known broken systems are
18307         now Solaris 8, and not Interix.
18308         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
18309         Interix on cross-compile.
18310         Reported by Martin Koeppe in
18311         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
18312
18313 2007-10-11  Bruno Haible  <bruno@clisp.org>
18314
18315         * modules/i-ring-tests: New file.
18316         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
18317         instead of assert.
18318
18319 2007-10-11  Bruno Haible  <bruno@clisp.org>
18320
18321         * modules/filenamecat-tests: New file.
18322         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
18323         * lib/filenamecat.c: Remove test code.
18324
18325 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18326
18327         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
18328
18329         * lib/strerror.c: Include <string.h> always, to test interface,
18330         and to remove the need for the dummy.
18331         Include intprops.h to compute width instead of doing it ourselves
18332         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
18333         (strerror): Define it to return NULL if there's no system strerror.
18334         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
18335         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
18336         ancient pre-strerror Unix systems well any more.  Saying "unknown
18337         system error" is enough.
18338         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
18339         simpler strerror.c implementation.
18340         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
18341         Simplify the tests to reflect the simpler strerror implementation.
18342         * modules/strerror (Depends-on): Add intprops.
18343
18344 2007-10-09  Eric Blake  <ebb9@byu.net>
18345
18346         Silence test-fpending.
18347         * modules/fpending-tests (Files): Add wrapper script.
18348         * tests/test-fpending.sh: New file.
18349
18350 2007-10-09  Bruno Haible  <bruno@clisp.org>
18351
18352         * MODULES.html.sh (func_module): Don't create a hyperlink for
18353         function names like 'printf_frexp'.
18354         (Misc): Add crc, memxor.
18355         (Characteristics of floating types): New section.
18356         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
18357         isnanf-nolibm, signbit, trunc, truncf, truncl.
18358         (Enhancements for ISO C 99 functions): New subsection Input/output.
18359         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
18360         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
18361         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
18362         (Compatibility checks for POSIX:2001 functions): Add clock-time.
18363         (Enhancements for POSIX:2001 functions): Add chdir-long.
18364         (File system functions): Add areadlink, chdir-safer, read-file.
18365         Remove cycle-check.
18366         (File system as inode set): New section.
18367         (Date and time): Add gethrxtime.
18368         (Multithreading): Add openmp.
18369         (Internationalization functions): Add localename.
18370         (Unicode string functions): Add unistr/u*-mbsnlen.
18371         (Support for maintaining and releasing projects): Add git-version-gen.
18372         (Lone files): Remove directories.
18373
18374 2007-10-08  Ben Pfaff  <blp@gnu.org>
18375
18376         * lib/xmalloca.h: Fix typo in comment.
18377
18378 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18379
18380         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
18381         when avoiding problems with integer overflow.  Use a portable test
18382         instead.
18383
18384 2007-10-08  Simon Josefsson  <simon@josefsson.org>
18385
18386         * modules/dummy (License): Change to LGPLv2+.
18387         * modules/float (License): Likewise
18388         * modules/realloc (License): Likewise
18389         * modules/stdlib (License): Likewise
18390
18391 2007-10-07  Bruno Haible  <bruno@clisp.org>
18392
18393         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
18394         * floor.c (TWO_MANT_DIG): Likewise.
18395         * ceil.c (TWO_MANT_DIG): Likewise.
18396         Reported by Ben Pfaff.
18397
18398 2007-10-07  Bruno Haible  <bruno@clisp.org>
18399
18400         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
18401         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
18402         * lib/frexp.c (FUNC): Likewise.
18403         * lib/printf-frexp.h (printf_frexp): Likewise.
18404         * lib/printf-frexpl.h (printf_frexpl): Likewise.
18405         * lib/printf-frexp.c (FUNC): Likewise.
18406         Suggested by Jim Meyering.
18407
18408 2007-10-07  Jim Meyering  <meyering@redhat.com>
18409
18410         Make xnanosleep's integer overflow test more robust.
18411         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
18412         so that gcc-4.3.0 doesn't optimize away this test for overflow.
18413
18414 2007-10-07  Bruno Haible  <bruno@clisp.org>
18415
18416         * NEWS: Mention the license change.
18417
18418         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
18419         abbreviations in the modules files.
18420
18421         Change copyright notice from GPLv2+ to GPLv3+.
18422         * README: Change copyright notice.
18423         * MODULES.html.sh: Likewise.
18424         * build-aux/bootstrap.conf: Likewise.
18425         * build-aux/config.libpath: Likewise.
18426         * build-aux/csharpcomp.sh.in: Likewise.
18427         * build-aux/csharpexec.sh.in: Likewise.
18428         * build-aux/install-reloc: Likewise.
18429         * build-aux/javacomp.sh.in: Likewise.
18430         * build-aux/javaexec.sh.in: Likewise.
18431         * build-aux/ldd.sh.in: Likewise.
18432         * build-aux/reloc-ldflags: Likewise.
18433         * build-aux/relocatable.sh.in: Likewise.
18434         * build-aux/x-to-1.in: Likewise.
18435         * check-module: Likewise.
18436         * config/srclistvars.sh: Likewise.
18437         * gnulib-tool: Likewise.
18438         * lib/acl-internal.h: Likewise.
18439         * lib/acl.c: Likewise.
18440         * lib/acl.h: Likewise.
18441         * lib/acl_entries.c: Likewise.
18442         * lib/areadlink-with-size.c: Likewise.
18443         * lib/areadlink.c: Likewise.
18444         * lib/areadlink.h: Likewise.
18445         * lib/argmatch.c: Likewise.
18446         * lib/argmatch.h: Likewise.
18447         * lib/argp-ba.c: Likewise.
18448         * lib/argp-eexst.c: Likewise.
18449         * lib/argp-fmtstream.c: Likewise.
18450         * lib/argp-fmtstream.h: Likewise.
18451         * lib/argp-fs-xinl.c: Likewise.
18452         * lib/argp-help.c: Likewise.
18453         * lib/argp-namefrob.h: Likewise.
18454         * lib/argp-parse.c: Likewise.
18455         * lib/argp-pin.c: Likewise.
18456         * lib/argp-pv.c: Likewise.
18457         * lib/argp-pvh.c: Likewise.
18458         * lib/argp-xinl.c: Likewise.
18459         * lib/argp.h: Likewise.
18460         * lib/at-func.c: Likewise.
18461         * lib/atanl.c: Likewise.
18462         * lib/backupfile.c: Likewise.
18463         * lib/backupfile.h: Likewise.
18464         * lib/basename.c: Likewise.
18465         * lib/binary-io.h: Likewise.
18466         * lib/byteswap.in.h: Likewise.
18467         * lib/c-stack.c: Likewise.
18468         * lib/c-stack.h: Likewise.
18469         * lib/c-strcasestr.c: Likewise.
18470         * lib/c-strcasestr.h: Likewise.
18471         * lib/c-strstr.c: Likewise.
18472         * lib/c-strstr.h: Likewise.
18473         * lib/c-strtod.c: Likewise.
18474         * lib/calloc.c: Likewise.
18475         * lib/canon-host.c: Likewise.
18476         * lib/canon-host.h: Likewise.
18477         * lib/canonicalize-lgpl.c: Likewise.
18478         * lib/canonicalize.c: Likewise.
18479         * lib/canonicalize.h: Likewise.
18480         * lib/ceil.c: Likewise.
18481         * lib/ceilf.c: Likewise.
18482         * lib/ceill.c: Likewise.
18483         * lib/chdir-long.c: Likewise.
18484         * lib/chdir-long.h: Likewise.
18485         * lib/chdir-safer.c: Likewise.
18486         * lib/chdir-safer.h: Likewise.
18487         * lib/chown.c: Likewise.
18488         * lib/classpath.c: Likewise.
18489         * lib/classpath.h: Likewise.
18490         * lib/clean-temp.c: Likewise.
18491         * lib/clean-temp.h: Likewise.
18492         * lib/cloexec.c: Likewise.
18493         * lib/close-stream.c: Likewise.
18494         * lib/closein.c: Likewise.
18495         * lib/closein.h: Likewise.
18496         * lib/closeout.c: Likewise.
18497         * lib/closeout.h: Likewise.
18498         * lib/concat-filename.c: Likewise.
18499         * lib/copy-file.c: Likewise.
18500         * lib/copy-file.h: Likewise.
18501         * lib/count-one-bits.h: Likewise.
18502         * lib/crc.c: Likewise.
18503         * lib/crc.h: Likewise.
18504         * lib/creat-safer.c: Likewise.
18505         * lib/csharpcomp.c: Likewise.
18506         * lib/csharpcomp.h: Likewise.
18507         * lib/csharpexec.c: Likewise.
18508         * lib/csharpexec.h: Likewise.
18509         * lib/cycle-check.c: Likewise.
18510         * lib/cycle-check.h: Likewise.
18511         * lib/diacrit.c: Likewise.
18512         * lib/diacrit.h: Likewise.
18513         * lib/diffseq.h: Likewise.
18514         * lib/dirchownmod.c: Likewise.
18515         * lib/dirent.in.h: Likewise.
18516         * lib/dirfd.c: Likewise.
18517         * lib/dirfd.h: Likewise.
18518         * lib/dirname.c: Likewise.
18519         * lib/dirname.h: Likewise.
18520         * lib/dummy.c: Likewise.
18521         * lib/dup-safer.c: Likewise.
18522         * lib/dup2.c: Likewise.
18523         * lib/eealloc.h: Likewise.
18524         * lib/error.c: Likewise.
18525         * lib/error.h: Likewise.
18526         * lib/euidaccess.c: Likewise.
18527         * lib/exclude.c: Likewise.
18528         * lib/exclude.h: Likewise.
18529         * lib/execute.c: Likewise.
18530         * lib/execute.h: Likewise.
18531         * lib/exitfail.c: Likewise.
18532         * lib/exitfail.h: Likewise.
18533         * lib/expl.c: Likewise.
18534         * lib/fatal-signal.c: Likewise.
18535         * lib/fatal-signal.h: Likewise.
18536         * lib/fbufmode.c: Likewise.
18537         * lib/fbufmode.h: Likewise.
18538         * lib/fchdir.c: Likewise.
18539         * lib/fchmodat.c: Likewise.
18540         * lib/fchownat.c: Likewise.
18541         * lib/fcntl--.h: Likewise.
18542         * lib/fcntl-safer.h: Likewise.
18543         * lib/fcntl.in.h: Likewise.
18544         * lib/fd-safer.c: Likewise.
18545         * lib/fflush.c: Likewise.
18546         * lib/file-has-acl.c: Likewise.
18547         * lib/file-set.c: Likewise.
18548         * lib/file-type.c: Likewise.
18549         * lib/file-type.h: Likewise.
18550         * lib/fileblocks.c: Likewise.
18551         * lib/filemode.c: Likewise.
18552         * lib/filemode.h: Likewise.
18553         * lib/filename.h: Likewise.
18554         * lib/filenamecat.c: Likewise.
18555         * lib/filenamecat.h: Likewise.
18556         * lib/findprog.c: Likewise.
18557         * lib/findprog.h: Likewise.
18558         * lib/float.in.h: Likewise.
18559         * lib/floor.c: Likewise.
18560         * lib/floorf.c: Likewise.
18561         * lib/floorl.c: Likewise.
18562         * lib/fopen-safer.c: Likewise.
18563         * lib/fopen.c: Likewise.
18564         * lib/fpending.c: Likewise.
18565         * lib/fpending.h: Likewise.
18566         * lib/fprintf.c: Likewise.
18567         * lib/fprintftime.h: Likewise.
18568         * lib/fpucw.h: Likewise.
18569         * lib/fpurge.c: Likewise.
18570         * lib/fpurge.h: Likewise.
18571         * lib/freadable.c: Likewise.
18572         * lib/freadable.h: Likewise.
18573         * lib/freadahead.c: Likewise.
18574         * lib/freadahead.h: Likewise.
18575         * lib/freading.c: Likewise.
18576         * lib/freading.h: Likewise.
18577         * lib/free.c: Likewise.
18578         * lib/freopen.c: Likewise.
18579         * lib/frexp.c: Likewise.
18580         * lib/frexpl.c: Likewise.
18581         * lib/fseek.c: Likewise.
18582         * lib/fseterr.c: Likewise.
18583         * lib/fseterr.h: Likewise.
18584         * lib/fstatat.c: Likewise.
18585         * lib/fstrcmp.c: Likewise.
18586         * lib/fstrcmp.h: Likewise.
18587         * lib/fsusage.c: Likewise.
18588         * lib/fsusage.h: Likewise.
18589         * lib/ftell.c: Likewise.
18590         * lib/ftello.c: Likewise.
18591         * lib/fts-cycle.c: Likewise.
18592         * lib/fts.c: Likewise.
18593         * lib/fts_.h: Likewise.
18594         * lib/full-read.c: Likewise.
18595         * lib/full-read.h: Likewise.
18596         * lib/full-write.c: Likewise.
18597         * lib/full-write.h: Likewise.
18598         * lib/fwritable.c: Likewise.
18599         * lib/fwritable.h: Likewise.
18600         * lib/fwriteerror.c: Likewise.
18601         * lib/fwriteerror.h: Likewise.
18602         * lib/fwriting.c: Likewise.
18603         * lib/fwriting.h: Likewise.
18604         * lib/gcd.c: Likewise.
18605         * lib/gcd.h: Likewise.
18606         * lib/getcwd.c: Likewise.
18607         * lib/getdate.h: Likewise.
18608         * lib/getdate.y: Likewise.
18609         * lib/getdomainname.c: Likewise.
18610         * lib/getdomainname.h: Likewise.
18611         * lib/getgroups.c: Likewise.
18612         * lib/gethostname.c: Likewise.
18613         * lib/gethrxtime.c: Likewise.
18614         * lib/gethrxtime.h: Likewise.
18615         * lib/getloadavg.c: Likewise.
18616         * lib/getndelim2.c: Likewise.
18617         * lib/getndelim2.h: Likewise.
18618         * lib/getnline.c: Likewise.
18619         * lib/getnline.h: Likewise.
18620         * lib/getopt.c: Likewise.
18621         * lib/getopt.in.h: Likewise.
18622         * lib/getopt1.c: Likewise.
18623         * lib/getopt_int.h: Likewise.
18624         * lib/getpagesize.h: Likewise.
18625         * lib/getsubopt.c: Likewise.
18626         * lib/gettime.c: Likewise.
18627         * lib/getugroups.c: Likewise.
18628         * lib/getugroups.h: Likewise.
18629         * lib/getusershell.c: Likewise.
18630         * lib/gl_anyavltree_list1.h: Likewise.
18631         * lib/gl_anyavltree_list2.h: Likewise.
18632         * lib/gl_anyhash_list1.h: Likewise.
18633         * lib/gl_anyhash_list2.h: Likewise.
18634         * lib/gl_anylinked_list1.h: Likewise.
18635         * lib/gl_anylinked_list2.h: Likewise.
18636         * lib/gl_anyrbtree_list1.h: Likewise.
18637         * lib/gl_anyrbtree_list2.h: Likewise.
18638         * lib/gl_anytree_list1.h: Likewise.
18639         * lib/gl_anytree_list2.h: Likewise.
18640         * lib/gl_anytree_oset.h: Likewise.
18641         * lib/gl_anytreehash_list1.h: Likewise.
18642         * lib/gl_anytreehash_list2.h: Likewise.
18643         * lib/gl_array_list.c: Likewise.
18644         * lib/gl_array_list.h: Likewise.
18645         * lib/gl_array_oset.c: Likewise.
18646         * lib/gl_array_oset.h: Likewise.
18647         * lib/gl_avltree_list.c: Likewise.
18648         * lib/gl_avltree_list.h: Likewise.
18649         * lib/gl_avltree_oset.c: Likewise.
18650         * lib/gl_avltree_oset.h: Likewise.
18651         * lib/gl_avltreehash_list.c: Likewise.
18652         * lib/gl_avltreehash_list.h: Likewise.
18653         * lib/gl_carray_list.c: Likewise.
18654         * lib/gl_carray_list.h: Likewise.
18655         * lib/gl_linked_list.c: Likewise.
18656         * lib/gl_linked_list.h: Likewise.
18657         * lib/gl_linkedhash_list.c: Likewise.
18658         * lib/gl_linkedhash_list.h: Likewise.
18659         * lib/gl_list.c: Likewise.
18660         * lib/gl_list.h: Likewise.
18661         * lib/gl_oset.c: Likewise.
18662         * lib/gl_oset.h: Likewise.
18663         * lib/gl_rbtree_list.c: Likewise.
18664         * lib/gl_rbtree_list.h: Likewise.
18665         * lib/gl_rbtree_oset.c: Likewise.
18666         * lib/gl_rbtree_oset.h: Likewise.
18667         * lib/gl_rbtreehash_list.c: Likewise.
18668         * lib/gl_rbtreehash_list.h: Likewise.
18669         * lib/gl_sublist.c: Likewise.
18670         * lib/gl_sublist.h: Likewise.
18671         * lib/group-member.c: Likewise.
18672         * lib/group-member.h: Likewise.
18673         * lib/hard-locale.c: Likewise.
18674         * lib/hard-locale.h: Likewise.
18675         * lib/hash-pjw.c: Likewise.
18676         * lib/hash-pjw.h: Likewise.
18677         * lib/hash-triple.c: Likewise.
18678         * lib/hash.c: Likewise.
18679         * lib/hash.h: Likewise.
18680         * lib/human.c: Likewise.
18681         * lib/human.h: Likewise.
18682         * lib/i-ring.c: Likewise.
18683         * lib/i-ring.h: Likewise.
18684         * lib/idcache.c: Likewise.
18685         * lib/imaxabs.c: Likewise.
18686         * lib/imaxdiv.c: Likewise.
18687         * lib/inet_pton.c: Likewise.
18688         * lib/inet_pton.h: Likewise.
18689         * lib/intprops.h: Likewise.
18690         * lib/inttostr.c: Likewise.
18691         * lib/inttostr.h: Likewise.
18692         * lib/inttypes.in.h: Likewise.
18693         * lib/isapipe.c: Likewise.
18694         * lib/isdir.c: Likewise.
18695         * lib/isnan.c: Likewise.
18696         * lib/isnan.h: Likewise.
18697         * lib/isnanf.c: Likewise.
18698         * lib/isnanf.h: Likewise.
18699         * lib/isnanl-nolibm.h: Likewise.
18700         * lib/isnanl.c: Likewise.
18701         * lib/isnanl.h: Likewise.
18702         * lib/javacomp.c: Likewise.
18703         * lib/javacomp.h: Likewise.
18704         * lib/javaexec.c: Likewise.
18705         * lib/javaexec.h: Likewise.
18706         * lib/javaversion.c: Likewise.
18707         * lib/javaversion.h: Likewise.
18708         * lib/javaversion.java: Likewise.
18709         * lib/lbrkprop.h: Likewise.
18710         * lib/lchmod.h: Likewise.
18711         * lib/lchown.c: Likewise.
18712         * lib/ldexpl.c: Likewise.
18713         * lib/linebreak.c: Likewise.
18714         * lib/linebreak.h: Likewise.
18715         * lib/linebuffer.c: Likewise.
18716         * lib/linebuffer.h: Likewise.
18717         * lib/locale.in.h: Likewise.
18718         * lib/logl.c: Likewise.
18719         * lib/long-options.c: Likewise.
18720         * lib/long-options.h: Likewise.
18721         * lib/lstat.c: Likewise.
18722         * lib/lstat.h: Likewise.
18723         * lib/math.in.h: Likewise.
18724         * lib/mbchar.c: Likewise.
18725         * lib/mbchar.h: Likewise.
18726         * lib/mbfile.h: Likewise.
18727         * lib/mbiter.h: Likewise.
18728         * lib/mbscasecmp.c: Likewise.
18729         * lib/mbscasestr.c: Likewise.
18730         * lib/mbschr.c: Likewise.
18731         * lib/mbscspn.c: Likewise.
18732         * lib/mbslen.c: Likewise.
18733         * lib/mbsncasecmp.c: Likewise.
18734         * lib/mbsnlen.c: Likewise.
18735         * lib/mbspbrk.c: Likewise.
18736         * lib/mbspcasecmp.c: Likewise.
18737         * lib/mbsrchr.c: Likewise.
18738         * lib/mbssep.c: Likewise.
18739         * lib/mbsspn.c: Likewise.
18740         * lib/mbsstr.c: Likewise.
18741         * lib/mbstok_r.c: Likewise.
18742         * lib/mbswidth.c: Likewise.
18743         * lib/mbswidth.h: Likewise.
18744         * lib/mbuiter.h: Likewise.
18745         * lib/memcasecmp.c: Likewise.
18746         * lib/memcasecmp.h: Likewise.
18747         * lib/memchr.c: Likewise.
18748         * lib/memcmp.c: Likewise.
18749         * lib/memcoll.c: Likewise.
18750         * lib/memcoll.h: Likewise.
18751         * lib/memcpy.c: Likewise.
18752         * lib/memrchr.c: Likewise.
18753         * lib/mkancesdirs.c: Likewise.
18754         * lib/mkdir-p.c: Likewise.
18755         * lib/mkdir-p.h: Likewise.
18756         * lib/mkdir.c: Likewise.
18757         * lib/mkdirat.c: Likewise.
18758         * lib/mkdtemp.c: Likewise.
18759         * lib/mkstemp-safer.c: Likewise.
18760         * lib/mkstemp.c: Likewise.
18761         * lib/modechange.c: Likewise.
18762         * lib/modechange.h: Likewise.
18763         * lib/mountlist.c: Likewise.
18764         * lib/mountlist.h: Likewise.
18765         * lib/mpsort.c: Likewise.
18766         * lib/nanosleep.c: Likewise.
18767         * lib/obstack.c: Likewise.
18768         * lib/obstack.h: Likewise.
18769         * lib/open-safer.c: Likewise.
18770         * lib/open.c: Likewise.
18771         * lib/openat-die.c: Likewise.
18772         * lib/openat-priv.h: Likewise.
18773         * lib/openat-proc.c: Likewise.
18774         * lib/openat.c: Likewise.
18775         * lib/openat.h: Likewise.
18776         * lib/pagealign_alloc.c: Likewise.
18777         * lib/pagealign_alloc.h: Likewise.
18778         * lib/physmem.c: Likewise.
18779         * lib/physmem.h: Likewise.
18780         * lib/pipe-safer.c: Likewise.
18781         * lib/pipe.c: Likewise.
18782         * lib/pipe.h: Likewise.
18783         * lib/posixtm.c: Likewise.
18784         * lib/posixtm.h: Likewise.
18785         * lib/posixver.c: Likewise.
18786         * lib/printf-frexp.c: Likewise.
18787         * lib/printf-frexp.h: Likewise.
18788         * lib/printf-frexpl.c: Likewise.
18789         * lib/printf-frexpl.h: Likewise.
18790         * lib/printf.c: Likewise.
18791         * lib/progname.c: Likewise.
18792         * lib/progname.h: Likewise.
18793         * lib/progreloc.c: Likewise.
18794         * lib/putenv.c: Likewise.
18795         * lib/quote.c: Likewise.
18796         * lib/quote.h: Likewise.
18797         * lib/quotearg.c: Likewise.
18798         * lib/quotearg.h: Likewise.
18799         * lib/raise.c: Likewise.
18800         * lib/readline.c: Likewise.
18801         * lib/readline.h: Likewise.
18802         * lib/readlink.c: Likewise.
18803         * lib/readtokens.c: Likewise.
18804         * lib/readtokens.h: Likewise.
18805         * lib/readtokens0.c: Likewise.
18806         * lib/readtokens0.h: Likewise.
18807         * lib/readutmp.c: Likewise.
18808         * lib/readutmp.h: Likewise.
18809         * lib/realloc.c: Likewise.
18810         * lib/relocwrapper.c: Likewise.
18811         * lib/rename-dest-slash.c: Likewise.
18812         * lib/rename.c: Likewise.
18813         * lib/rmdir.c: Likewise.
18814         * lib/rpmatch.c: Likewise.
18815         * lib/safe-read.c: Likewise.
18816         * lib/safe-read.h: Likewise.
18817         * lib/safe-write.c: Likewise.
18818         * lib/safe-write.h: Likewise.
18819         * lib/same-inode.h: Likewise.
18820         * lib/same.c: Likewise.
18821         * lib/same.h: Likewise.
18822         * lib/save-cwd.c: Likewise.
18823         * lib/save-cwd.h: Likewise.
18824         * lib/savedir.c: Likewise.
18825         * lib/savedir.h: Likewise.
18826         * lib/savewd.c: Likewise.
18827         * lib/savewd.h: Likewise.
18828         * lib/search.in.h: Likewise.
18829         * lib/setenv.c: Likewise.
18830         * lib/setenv.h: Likewise.
18831         * lib/settime.c: Likewise.
18832         * lib/sh-quote.c: Likewise.
18833         * lib/sh-quote.h: Likewise.
18834         * lib/sig2str.c: Likewise.
18835         * lib/sig2str.h: Likewise.
18836         * lib/signal.in.h: Likewise.
18837         * lib/signbitd.c: Likewise.
18838         * lib/signbitf.c: Likewise.
18839         * lib/signbitl.c: Likewise.
18840         * lib/sigprocmask.c: Likewise.
18841         * lib/sincosl.c: Likewise.
18842         * lib/sleep.c: Likewise.
18843         * lib/sprintf.c: Likewise.
18844         * lib/sqrtl.c: Likewise.
18845         * lib/stat-time.h: Likewise.
18846         * lib/stdio--.h: Likewise.
18847         * lib/stdio-safer.h: Likewise.
18848         * lib/stdlib--.h: Likewise.
18849         * lib/stdlib-safer.h: Likewise.
18850         * lib/stdlib.in.h: Likewise.
18851         * lib/stpcpy.c: Likewise.
18852         * lib/stpncpy.c: Likewise.
18853         * lib/strchrnul.c: Likewise.
18854         * lib/strcspn.c: Likewise.
18855         * lib/strerror.c: Likewise.
18856         * lib/strftime.c: Likewise.
18857         * lib/strftime.h: Likewise.
18858         * lib/striconveh.c: Likewise.
18859         * lib/striconveh.h: Likewise.
18860         * lib/striconveha.c: Likewise.
18861         * lib/striconveha.h: Likewise.
18862         * lib/stripslash.c: Likewise.
18863         * lib/strnlen1.c: Likewise.
18864         * lib/strnlen1.h: Likewise.
18865         * lib/strtod.c: Likewise.
18866         * lib/strtoimax.c: Likewise.
18867         * lib/strtok_r.c: Likewise.
18868         * lib/strtol.c: Likewise.
18869         * lib/strtoll.c: Likewise.
18870         * lib/strtoul.c: Likewise.
18871         * lib/strtoull.c: Likewise.
18872         * lib/sysexits.in.h: Likewise.
18873         * lib/tempname.c: Likewise.
18874         * lib/tempname.h: Likewise.
18875         * lib/timespec.h: Likewise.
18876         * lib/tls.c: Likewise.
18877         * lib/tls.h: Likewise.
18878         * lib/tmpdir.c: Likewise.
18879         * lib/tmpdir.h: Likewise.
18880         * lib/tmpfile-safer.c: Likewise.
18881         * lib/tmpfile.c: Likewise.
18882         * lib/trigl.c: Likewise.
18883         * lib/trigl.h: Likewise.
18884         * lib/trim.c: Likewise.
18885         * lib/trim.h: Likewise.
18886         * lib/trunc.c: Likewise.
18887         * lib/truncf.c: Likewise.
18888         * lib/truncl.c: Likewise.
18889         * lib/tsearch.c: Likewise.
18890         * lib/unicodeio.c: Likewise.
18891         * lib/unicodeio.h: Likewise.
18892         * lib/unistd--.h: Likewise.
18893         * lib/unistd-safer.h: Likewise.
18894         * lib/unistdio/ulc-fprintf.c: Likewise.
18895         * lib/unistdio/ulc-vfprintf.c: Likewise.
18896         * lib/unlinkdir.c: Likewise.
18897         * lib/unlinkdir.h: Likewise.
18898         * lib/unlocked-io.h: Likewise.
18899         * lib/unsetenv.c: Likewise.
18900         * lib/userspec.c: Likewise.
18901         * lib/utime.c: Likewise.
18902         * lib/utimecmp.c: Likewise.
18903         * lib/utimecmp.h: Likewise.
18904         * lib/utimens.c: Likewise.
18905         * lib/verify.h: Likewise.
18906         * lib/verror.c: Likewise.
18907         * lib/verror.h: Likewise.
18908         * lib/version-etc-fsf.c: Likewise.
18909         * lib/version-etc.c: Likewise.
18910         * lib/version-etc.h: Likewise.
18911         * lib/vfprintf.c: Likewise.
18912         * lib/vprintf.c: Likewise.
18913         * lib/vsprintf.c: Likewise.
18914         * lib/w32spawn.h: Likewise.
18915         * lib/wait-process.c: Likewise.
18916         * lib/wait-process.h: Likewise.
18917         * lib/wcwidth.c: Likewise.
18918         * lib/write-any-file.c: Likewise.
18919         * lib/xalloc-die.c: Likewise.
18920         * lib/xalloc.h: Likewise.
18921         * lib/xasprintf.c: Likewise.
18922         * lib/xgetcwd.c: Likewise.
18923         * lib/xgetcwd.h: Likewise.
18924         * lib/xgetdomainname.c: Likewise.
18925         * lib/xgetdomainname.h: Likewise.
18926         * lib/xgethostname.c: Likewise.
18927         * lib/xmalloc.c: Likewise.
18928         * lib/xmalloca.c: Likewise.
18929         * lib/xmalloca.h: Likewise.
18930         * lib/xmemcoll.c: Likewise.
18931         * lib/xnanosleep.c: Likewise.
18932         * lib/xreadlink.c: Likewise.
18933         * lib/xreadlink.h: Likewise.
18934         * lib/xsetenv.c: Likewise.
18935         * lib/xsetenv.h: Likewise.
18936         * lib/xstriconv.c: Likewise.
18937         * lib/xstriconv.h: Likewise.
18938         * lib/xstrndup.c: Likewise.
18939         * lib/xstrndup.h: Likewise.
18940         * lib/xstrtod.c: Likewise.
18941         * lib/xstrtod.h: Likewise.
18942         * lib/xstrtol-error.c: Likewise.
18943         * lib/xstrtol.c: Likewise.
18944         * lib/xstrtol.h: Likewise.
18945         * lib/xtime.h: Likewise.
18946         * lib/xvasprintf.c: Likewise.
18947         * lib/xvasprintf.h: Likewise.
18948         * lib/yesno.c: Likewise.
18949         * lib/yesno.h: Likewise.
18950         * posix-modules: Likewise.
18951         * tests/test-alloca-opt.c: Likewise.
18952         * tests/test-arcfour.c: Likewise.
18953         * tests/test-arctwo.c: Likewise.
18954         * tests/test-argmatch.c: Likewise.
18955         * tests/test-argp-2.sh: Likewise.
18956         * tests/test-argp.c: Likewise.
18957         * tests/test-arpa_inet.c: Likewise.
18958         * tests/test-array_list.c: Likewise.
18959         * tests/test-array_oset.c: Likewise.
18960         * tests/test-atexit.c: Likewise.
18961         * tests/test-avltree_list.c: Likewise.
18962         * tests/test-avltree_oset.c: Likewise.
18963         * tests/test-avltreehash_list.c: Likewise.
18964         * tests/test-base64.c: Likewise.
18965         * tests/test-binary-io.c: Likewise.
18966         * tests/test-byteswap.c: Likewise.
18967         * tests/test-c-ctype.c: Likewise.
18968         * tests/test-c-strcasecmp.c: Likewise.
18969         * tests/test-c-strcasestr.c: Likewise.
18970         * tests/test-c-strncasecmp.c: Likewise.
18971         * tests/test-c-strstr.c: Likewise.
18972         * tests/test-canonicalize-lgpl.c: Likewise.
18973         * tests/test-canonicalize.c: Likewise.
18974         * tests/test-carray_list.c: Likewise.
18975         * tests/test-ceilf.c: Likewise.
18976         * tests/test-ceill.c: Likewise.
18977         * tests/test-count-one-bits.c: Likewise.
18978         * tests/test-crc.c: Likewise.
18979         * tests/test-dirname.c: Likewise.
18980         * tests/test-fbufmode.c: Likewise.
18981         * tests/test-fcntl.c: Likewise.
18982         * tests/test-fflush.c: Likewise.
18983         * tests/test-floorf.c: Likewise.
18984         * tests/test-floorl.c: Likewise.
18985         * tests/test-fopen.c: Likewise.
18986         * tests/test-fprintf-posix.c: Likewise.
18987         * tests/test-fprintf-posix.h: Likewise.
18988         * tests/test-fpurge.c: Likewise.
18989         * tests/test-freadable.c: Likewise.
18990         * tests/test-freadahead.c: Likewise.
18991         * tests/test-freading.c: Likewise.
18992         * tests/test-freopen.c: Likewise.
18993         * tests/test-frexp.c: Likewise.
18994         * tests/test-frexpl.c: Likewise.
18995         * tests/test-fseek.c: Likewise.
18996         * tests/test-fseeko.c: Likewise.
18997         * tests/test-fseterr.c: Likewise.
18998         * tests/test-fstrcmp.c: Likewise.
18999         * tests/test-ftell.c: Likewise.
19000         * tests/test-ftello.c: Likewise.
19001         * tests/test-fwritable.c: Likewise.
19002         * tests/test-fwriting.c: Likewise.
19003         * tests/test-getaddrinfo.c: Likewise.
19004         * tests/test-getpass.c: Likewise.
19005         * tests/test-gettimeofday.c: Likewise.
19006         * tests/test-hmac-md5.c: Likewise.
19007         * tests/test-hmac-sha1.c: Likewise.
19008         * tests/test-iconv.c: Likewise.
19009         * tests/test-iconvme.c: Likewise.
19010         * tests/test-inttypes.c: Likewise.
19011         * tests/test-isnan.c: Likewise.
19012         * tests/test-isnanf.c: Likewise.
19013         * tests/test-isnanl-nolibm.c: Likewise.
19014         * tests/test-isnanl.c: Likewise.
19015         * tests/test-isnanl.h: Likewise.
19016         * tests/test-ldexpl.c: Likewise.
19017         * tests/test-linked_list.c: Likewise.
19018         * tests/test-linkedhash_list.c: Likewise.
19019         * tests/test-locale.c: Likewise.
19020         * tests/test-localename.c: Likewise.
19021         * tests/test-lock.c: Likewise.
19022         * tests/test-lseek.c: Likewise.
19023         * tests/test-malloca.c: Likewise.
19024         * tests/test-math.c: Likewise.
19025         * tests/test-mbscasecmp.c: Likewise.
19026         * tests/test-mbscasestr1.c: Likewise.
19027         * tests/test-mbscasestr2.c: Likewise.
19028         * tests/test-mbscasestr3.c: Likewise.
19029         * tests/test-mbscasestr4.c: Likewise.
19030         * tests/test-mbschr.c: Likewise.
19031         * tests/test-mbscspn.c: Likewise.
19032         * tests/test-mbsncasecmp.c: Likewise.
19033         * tests/test-mbspbrk.c: Likewise.
19034         * tests/test-mbspcasecmp.c: Likewise.
19035         * tests/test-mbsrchr.c: Likewise.
19036         * tests/test-mbsspn.c: Likewise.
19037         * tests/test-mbsstr1.c: Likewise.
19038         * tests/test-mbsstr2.c: Likewise.
19039         * tests/test-mbsstr3.c: Likewise.
19040         * tests/test-md5.c: Likewise.
19041         * tests/test-memmem.c: Likewise.
19042         * tests/test-netinet_in.c: Likewise.
19043         * tests/test-open.c: Likewise.
19044         * tests/test-printf-frexp.c: Likewise.
19045         * tests/test-printf-frexpl.c: Likewise.
19046         * tests/test-printf-posix.c: Likewise.
19047         * tests/test-printf-posix.h: Likewise.
19048         * tests/test-rbtree_list.c: Likewise.
19049         * tests/test-rbtree_oset.c: Likewise.
19050         * tests/test-rbtreehash_list.c: Likewise.
19051         * tests/test-read-file.c: Likewise.
19052         * tests/test-rijndael.c: Likewise.
19053         * tests/test-search.c: Likewise.
19054         * tests/test-signbit.c: Likewise.
19055         * tests/test-sleep.c: Likewise.
19056         * tests/test-snprintf-posix.c: Likewise.
19057         * tests/test-snprintf-posix.h: Likewise.
19058         * tests/test-snprintf.c: Likewise.
19059         * tests/test-sprintf-posix.c: Likewise.
19060         * tests/test-sprintf-posix.h: Likewise.
19061         * tests/test-stat-time.c: Likewise.
19062         * tests/test-stdbool.c: Likewise.
19063         * tests/test-stdint.c: Likewise.
19064         * tests/test-stdio.c: Likewise.
19065         * tests/test-stdlib.c: Likewise.
19066         * tests/test-stpncpy.c: Likewise.
19067         * tests/test-strcasestr.c: Likewise.
19068         * tests/test-striconv.c: Likewise.
19069         * tests/test-striconveh.c: Likewise.
19070         * tests/test-striconveha.c: Likewise.
19071         * tests/test-string.c: Likewise.
19072         * tests/test-sys_select.c: Likewise.
19073         * tests/test-sys_socket.c: Likewise.
19074         * tests/test-sys_stat.c: Likewise.
19075         * tests/test-sys_time.c: Likewise.
19076         * tests/test-sysexits.c: Likewise.
19077         * tests/test-time.c: Likewise.
19078         * tests/test-tls.c: Likewise.
19079         * tests/test-trunc.c: Likewise.
19080         * tests/test-truncf.c: Likewise.
19081         * tests/test-truncl.c: Likewise.
19082         * tests/test-unistd.c: Likewise.
19083         * tests/test-vasnprintf-posix.c: Likewise.
19084         * tests/test-vasnprintf-posix2.c: Likewise.
19085         * tests/test-vasnprintf.c: Likewise.
19086         * tests/test-vasprintf-posix.c: Likewise.
19087         * tests/test-vasprintf.c: Likewise.
19088         * tests/test-verify.c: Likewise.
19089         * tests/test-vfprintf-posix.c: Likewise.
19090         * tests/test-vprintf-posix.c: Likewise.
19091         * tests/test-vsnprintf-posix.c: Likewise.
19092         * tests/test-vsnprintf.c: Likewise.
19093         * tests/test-vsprintf-posix.c: Likewise.
19094         * tests/test-wchar.c: Likewise.
19095         * tests/test-wctype.c: Likewise.
19096         * tests/test-wcwidth.c: Likewise.
19097         * tests/test-xstrtol.c: Likewise.
19098         * tests/test-xvasprintf.c: Likewise.
19099         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
19100         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
19101         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19102         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19103         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19104         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
19105         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19106         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19107         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19108         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
19109         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19110         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19111         * tests/uniname/test-uninames.c: Likewise.
19112         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
19113         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
19114         * tests/unistdio/test-u16-printf1.h: Likewise.
19115         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
19116         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
19117         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
19118         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
19119         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
19120         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
19121         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
19122         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
19123         * tests/unistdio/test-u32-printf1.h: Likewise.
19124         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
19125         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
19126         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
19127         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
19128         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
19129         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
19130         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
19131         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
19132         * tests/unistdio/test-u8-printf1.h: Likewise.
19133         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
19134         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
19135         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
19136         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
19137         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
19138         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
19139         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
19140         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
19141         * tests/unistdio/test-ulc-printf1.h: Likewise.
19142         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
19143         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
19144         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
19145         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
19146         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
19147         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
19148         * tests/uniwidth/test-u16-strwidth.c: Likewise.
19149         * tests/uniwidth/test-u16-width.c: Likewise.
19150         * tests/uniwidth/test-u32-strwidth.c: Likewise.
19151         * tests/uniwidth/test-u32-width.c: Likewise.
19152         * tests/uniwidth/test-u8-strwidth.c: Likewise.
19153         * tests/uniwidth/test-u8-width.c: Likewise.
19154         * tests/uniwidth/test-uc_width.c: Likewise.
19155         * config/srclist-update: Likewise.
19156         (fixlicense): Update to GPLv3+.
19157
19158         Change copyright notice from LGPLv2.1+ to LGPLv3+.
19159         * tests/test-tsearch.c: Change copyright notice.
19160
19161         Change copyright notice from LGPLv2.0+ to LGPLv3+.
19162         * lib/c-strcaseeq.h: Change copyright notice.
19163         * lib/streq.h: Likewise.
19164         * lib/uniconv.h: Likewise.
19165         * lib/uniconv/u-conv-from-enc.h: Likewise.
19166         * lib/uniconv/u-conv-to-enc.h: Likewise.
19167         * lib/uniconv/u-strconv-from-enc.h: Likewise.
19168         * lib/uniconv/u-strconv-to-enc.h: Likewise.
19169         * lib/uniconv/u16-conv-from-enc.c: Likewise.
19170         * lib/uniconv/u16-conv-to-enc.c: Likewise.
19171         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
19172         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
19173         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
19174         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
19175         * lib/uniconv/u32-conv-from-enc.c: Likewise.
19176         * lib/uniconv/u32-conv-to-enc.c: Likewise.
19177         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
19178         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
19179         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
19180         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
19181         * lib/uniconv/u8-conv-from-enc.c: Likewise.
19182         * lib/uniconv/u8-conv-to-enc.c: Likewise.
19183         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
19184         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
19185         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
19186         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
19187         * lib/uniname.h: Likewise.
19188         * lib/uniname/uniname.c: Likewise.
19189         * lib/unistdio.h: Likewise.
19190         * lib/unistdio/u-asnprintf.h: Likewise.
19191         * lib/unistdio/u-asprintf.h: Likewise.
19192         * lib/unistdio/u-printf-args.c: Likewise.
19193         * lib/unistdio/u-printf-args.h: Likewise.
19194         * lib/unistdio/u-printf-parse.h: Likewise.
19195         * lib/unistdio/u-snprintf.h: Likewise.
19196         * lib/unistdio/u-sprintf.h: Likewise.
19197         * lib/unistdio/u-vasprintf.h: Likewise.
19198         * lib/unistdio/u-vsnprintf.h: Likewise.
19199         * lib/unistdio/u-vsprintf.h: Likewise.
19200         * lib/unistdio/u16-asnprintf.c: Likewise.
19201         * lib/unistdio/u16-asprintf.c: Likewise.
19202         * lib/unistdio/u16-printf-parse.c: Likewise.
19203         * lib/unistdio/u16-snprintf.c: Likewise.
19204         * lib/unistdio/u16-sprintf.c: Likewise.
19205         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
19206         * lib/unistdio/u16-u16-asprintf.c: Likewise.
19207         * lib/unistdio/u16-u16-snprintf.c: Likewise.
19208         * lib/unistdio/u16-u16-sprintf.c: Likewise.
19209         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
19210         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
19211         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
19212         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
19213         * lib/unistdio/u16-vasnprintf.c: Likewise.
19214         * lib/unistdio/u16-vasprintf.c: Likewise.
19215         * lib/unistdio/u16-vsnprintf.c: Likewise.
19216         * lib/unistdio/u16-vsprintf.c: Likewise.
19217         * lib/unistdio/u32-asnprintf.c: Likewise.
19218         * lib/unistdio/u32-asprintf.c: Likewise.
19219         * lib/unistdio/u32-printf-parse.c: Likewise.
19220         * lib/unistdio/u32-snprintf.c: Likewise.
19221         * lib/unistdio/u32-sprintf.c: Likewise.
19222         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
19223         * lib/unistdio/u32-u32-asprintf.c: Likewise.
19224         * lib/unistdio/u32-u32-snprintf.c: Likewise.
19225         * lib/unistdio/u32-u32-sprintf.c: Likewise.
19226         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
19227         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
19228         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
19229         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
19230         * lib/unistdio/u32-vasnprintf.c: Likewise.
19231         * lib/unistdio/u32-vasprintf.c: Likewise.
19232         * lib/unistdio/u32-vsnprintf.c: Likewise.
19233         * lib/unistdio/u32-vsprintf.c: Likewise.
19234         * lib/unistdio/u8-asnprintf.c: Likewise.
19235         * lib/unistdio/u8-asprintf.c: Likewise.
19236         * lib/unistdio/u8-printf-parse.c: Likewise.
19237         * lib/unistdio/u8-snprintf.c: Likewise.
19238         * lib/unistdio/u8-sprintf.c: Likewise.
19239         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
19240         * lib/unistdio/u8-u8-asprintf.c: Likewise.
19241         * lib/unistdio/u8-u8-snprintf.c: Likewise.
19242         * lib/unistdio/u8-u8-sprintf.c: Likewise.
19243         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
19244         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
19245         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
19246         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
19247         * lib/unistdio/u8-vasnprintf.c: Likewise.
19248         * lib/unistdio/u8-vasprintf.c: Likewise.
19249         * lib/unistdio/u8-vsnprintf.c: Likewise.
19250         * lib/unistdio/u8-vsprintf.c: Likewise.
19251         * lib/unistdio/ulc-asnprintf.c: Likewise.
19252         * lib/unistdio/ulc-asprintf.c: Likewise.
19253         * lib/unistdio/ulc-printf-parse.c: Likewise.
19254         * lib/unistdio/ulc-snprintf.c: Likewise.
19255         * lib/unistdio/ulc-sprintf.c: Likewise.
19256         * lib/unistdio/ulc-vasnprintf.c: Likewise.
19257         * lib/unistdio/ulc-vasprintf.c: Likewise.
19258         * lib/unistdio/ulc-vsnprintf.c: Likewise.
19259         * lib/unistdio/ulc-vsprintf.c: Likewise.
19260         * lib/unistr.h: Likewise.
19261         * lib/unistr/u-cpy-alloc.h: Likewise.
19262         * lib/unistr/u-cpy.h: Likewise.
19263         * lib/unistr/u-endswith.h: Likewise.
19264         * lib/unistr/u-move.h: Likewise.
19265         * lib/unistr/u-set.h: Likewise.
19266         * lib/unistr/u-startswith.h: Likewise.
19267         * lib/unistr/u-stpcpy.h: Likewise.
19268         * lib/unistr/u-stpncpy.h: Likewise.
19269         * lib/unistr/u-strcat.h: Likewise.
19270         * lib/unistr/u-strcpy.h: Likewise.
19271         * lib/unistr/u-strcspn.h: Likewise.
19272         * lib/unistr/u-strdup.h: Likewise.
19273         * lib/unistr/u-strlen.h: Likewise.
19274         * lib/unistr/u-strncat.h: Likewise.
19275         * lib/unistr/u-strncpy.h: Likewise.
19276         * lib/unistr/u-strnlen.h: Likewise.
19277         * lib/unistr/u-strpbrk.h: Likewise.
19278         * lib/unistr/u-strspn.h: Likewise.
19279         * lib/unistr/u-strstr.h: Likewise.
19280         * lib/unistr/u-strtok.h: Likewise.
19281         * lib/unistr/u16-check.c: Likewise.
19282         * lib/unistr/u16-chr.c: Likewise.
19283         * lib/unistr/u16-cmp.c: Likewise.
19284         * lib/unistr/u16-cpy-alloc.c: Likewise.
19285         * lib/unistr/u16-cpy.c: Likewise.
19286         * lib/unistr/u16-endswith.c: Likewise.
19287         * lib/unistr/u16-mblen.c: Likewise.
19288         * lib/unistr/u16-mbsnlen.c: Likewise.
19289         * lib/unistr/u16-mbtouc-aux.c: Likewise.
19290         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
19291         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
19292         * lib/unistr/u16-mbtouc.c: Likewise.
19293         * lib/unistr/u16-mbtoucr.c: Likewise.
19294         * lib/unistr/u16-move.c: Likewise.
19295         * lib/unistr/u16-next.c: Likewise.
19296         * lib/unistr/u16-prev.c: Likewise.
19297         * lib/unistr/u16-set.c: Likewise.
19298         * lib/unistr/u16-startswith.c: Likewise.
19299         * lib/unistr/u16-stpcpy.c: Likewise.
19300         * lib/unistr/u16-stpncpy.c: Likewise.
19301         * lib/unistr/u16-strcat.c: Likewise.
19302         * lib/unistr/u16-strchr.c: Likewise.
19303         * lib/unistr/u16-strcmp.c: Likewise.
19304         * lib/unistr/u16-strcpy.c: Likewise.
19305         * lib/unistr/u16-strcspn.c: Likewise.
19306         * lib/unistr/u16-strdup.c: Likewise.
19307         * lib/unistr/u16-strlen.c: Likewise.
19308         * lib/unistr/u16-strmblen.c: Likewise.
19309         * lib/unistr/u16-strmbtouc.c: Likewise.
19310         * lib/unistr/u16-strncat.c: Likewise.
19311         * lib/unistr/u16-strncmp.c: Likewise.
19312         * lib/unistr/u16-strncpy.c: Likewise.
19313         * lib/unistr/u16-strnlen.c: Likewise.
19314         * lib/unistr/u16-strpbrk.c: Likewise.
19315         * lib/unistr/u16-strrchr.c: Likewise.
19316         * lib/unistr/u16-strspn.c: Likewise.
19317         * lib/unistr/u16-strstr.c: Likewise.
19318         * lib/unistr/u16-strtok.c: Likewise.
19319         * lib/unistr/u16-to-u32.c: Likewise.
19320         * lib/unistr/u16-to-u8.c: Likewise.
19321         * lib/unistr/u16-uctomb-aux.c: Likewise.
19322         * lib/unistr/u16-uctomb.c: Likewise.
19323         * lib/unistr/u32-check.c: Likewise.
19324         * lib/unistr/u32-chr.c: Likewise.
19325         * lib/unistr/u32-cmp.c: Likewise.
19326         * lib/unistr/u32-cpy-alloc.c: Likewise.
19327         * lib/unistr/u32-cpy.c: Likewise.
19328         * lib/unistr/u32-endswith.c: Likewise.
19329         * lib/unistr/u32-mblen.c: Likewise.
19330         * lib/unistr/u32-mbsnlen.c: Likewise.
19331         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
19332         * lib/unistr/u32-mbtouc.c: Likewise.
19333         * lib/unistr/u32-mbtoucr.c: Likewise.
19334         * lib/unistr/u32-move.c: Likewise.
19335         * lib/unistr/u32-next.c: Likewise.
19336         * lib/unistr/u32-prev.c: Likewise.
19337         * lib/unistr/u32-set.c: Likewise.
19338         * lib/unistr/u32-startswith.c: Likewise.
19339         * lib/unistr/u32-stpcpy.c: Likewise.
19340         * lib/unistr/u32-stpncpy.c: Likewise.
19341         * lib/unistr/u32-strcat.c: Likewise.
19342         * lib/unistr/u32-strchr.c: Likewise.
19343         * lib/unistr/u32-strcmp.c: Likewise.
19344         * lib/unistr/u32-strcpy.c: Likewise.
19345         * lib/unistr/u32-strcspn.c: Likewise.
19346         * lib/unistr/u32-strdup.c: Likewise.
19347         * lib/unistr/u32-strlen.c: Likewise.
19348         * lib/unistr/u32-strmblen.c: Likewise.
19349         * lib/unistr/u32-strmbtouc.c: Likewise.
19350         * lib/unistr/u32-strncat.c: Likewise.
19351         * lib/unistr/u32-strncmp.c: Likewise.
19352         * lib/unistr/u32-strncpy.c: Likewise.
19353         * lib/unistr/u32-strnlen.c: Likewise.
19354         * lib/unistr/u32-strpbrk.c: Likewise.
19355         * lib/unistr/u32-strrchr.c: Likewise.
19356         * lib/unistr/u32-strspn.c: Likewise.
19357         * lib/unistr/u32-strstr.c: Likewise.
19358         * lib/unistr/u32-strtok.c: Likewise.
19359         * lib/unistr/u32-to-u16.c: Likewise.
19360         * lib/unistr/u32-to-u8.c: Likewise.
19361         * lib/unistr/u32-uctomb.c: Likewise.
19362         * lib/unistr/u8-check.c: Likewise.
19363         * lib/unistr/u8-chr.c: Likewise.
19364         * lib/unistr/u8-cmp.c: Likewise.
19365         * lib/unistr/u8-cpy-alloc.c: Likewise.
19366         * lib/unistr/u8-cpy.c: Likewise.
19367         * lib/unistr/u8-endswith.c: Likewise.
19368         * lib/unistr/u8-mblen.c: Likewise.
19369         * lib/unistr/u8-mbsnlen.c: Likewise.
19370         * lib/unistr/u8-mbtouc-aux.c: Likewise.
19371         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
19372         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
19373         * lib/unistr/u8-mbtouc.c: Likewise.
19374         * lib/unistr/u8-mbtoucr.c: Likewise.
19375         * lib/unistr/u8-move.c: Likewise.
19376         * lib/unistr/u8-next.c: Likewise.
19377         * lib/unistr/u8-prev.c: Likewise.
19378         * lib/unistr/u8-set.c: Likewise.
19379         * lib/unistr/u8-startswith.c: Likewise.
19380         * lib/unistr/u8-stpcpy.c: Likewise.
19381         * lib/unistr/u8-stpncpy.c: Likewise.
19382         * lib/unistr/u8-strcat.c: Likewise.
19383         * lib/unistr/u8-strchr.c: Likewise.
19384         * lib/unistr/u8-strcmp.c: Likewise.
19385         * lib/unistr/u8-strcpy.c: Likewise.
19386         * lib/unistr/u8-strcspn.c: Likewise.
19387         * lib/unistr/u8-strdup.c: Likewise.
19388         * lib/unistr/u8-strlen.c: Likewise.
19389         * lib/unistr/u8-strmblen.c: Likewise.
19390         * lib/unistr/u8-strmbtouc.c: Likewise.
19391         * lib/unistr/u8-strncat.c: Likewise.
19392         * lib/unistr/u8-strncmp.c: Likewise.
19393         * lib/unistr/u8-strncpy.c: Likewise.
19394         * lib/unistr/u8-strnlen.c: Likewise.
19395         * lib/unistr/u8-strpbrk.c: Likewise.
19396         * lib/unistr/u8-strrchr.c: Likewise.
19397         * lib/unistr/u8-strspn.c: Likewise.
19398         * lib/unistr/u8-strstr.c: Likewise.
19399         * lib/unistr/u8-strtok.c: Likewise.
19400         * lib/unistr/u8-to-u16.c: Likewise.
19401         * lib/unistr/u8-to-u32.c: Likewise.
19402         * lib/unistr/u8-uctomb-aux.c: Likewise.
19403         * lib/unistr/u8-uctomb.c: Likewise.
19404         * lib/unitypes.h: Likewise.
19405         * lib/uniwidth.h: Likewise.
19406         * lib/uniwidth/cjk.h: Likewise.
19407         * lib/uniwidth/u16-strwidth.c: Likewise.
19408         * lib/uniwidth/u16-width.c: Likewise.
19409         * lib/uniwidth/u32-strwidth.c: Likewise.
19410         * lib/uniwidth/u32-width.c: Likewise.
19411         * lib/uniwidth/u8-strwidth.c: Likewise.
19412         * lib/uniwidth/u8-width.c: Likewise.
19413         * lib/uniwidth/width.c: Likewise.
19414
19415 2007-10-07  Bruno Haible  <bruno@clisp.org>
19416
19417         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
19418         The file is still under LGPL (see modules/inttypes).
19419
19420 2007-10-06  Bruno Haible  <bruno@clisp.org>
19421
19422         * modules/trunc (Dependencies): Add 'extensions'.
19423         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
19424         Reported by Ben Pfaff <blp@gnu.org>.
19425
19426 2007-10-06  Bruno Haible  <bruno@clisp.org>
19427
19428         * modules/freopen-tests: New file.
19429         * tests/test-freopen.c: New file.
19430
19431         * modules/fopen-tests: New file.
19432         * tests/test-fopen.c: New file.
19433
19434         * modules/fopen: New file.
19435         * lib/fopen.c: New file.
19436         * m4/fopen.m4: New file.
19437         * modules/freopen: New file.
19438         * lib/freopen.c: New file.
19439         * m4/freopen.m4: New file.
19440         * lib/stdio.in.h (fopen, freopen): New declarations.
19441         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
19442         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
19443         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
19444         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
19445         * doc/functions/fopen.texi: Mention the 'fopen' module.
19446         * doc/functions/freopen.texi: Mention the 'freopen' module.
19447
19448 2007-10-06  Bruno Haible  <bruno@clisp.org>
19449
19450         * modules/open-tests: New file.
19451         * tests/test-open.c: New file.
19452
19453         * modules/open: New file.
19454         * lib/open.c: New file.
19455         * m4/open.m4: New file.
19456         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
19457         lib/open.c does.
19458         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
19459         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
19460         macros.
19461         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
19462         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
19463         REPLACE_OPEN.
19464         * doc/functions/open.texi: Mention the 'open' module.
19465
19466 2007-10-04  Bruno Haible  <bruno@clisp.org>
19467
19468         * modules/ceill-tests: New file.
19469         * tests/test-ceill.c: New file.
19470
19471         * modules/ceill: New file.
19472         * lib/ceill.c: Replace entire file.
19473         * m4/ceill.m4: New file.
19474         * lib/math.in.h (ceill): Replace declaration.
19475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
19476         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
19477         * doc/functions/ceill.texi: Mention the 'ceill' module.
19478         * modules/mathl (Files): Remove lib/ceill.c.
19479         (Depends-on): Add ceill.
19480
19481 2007-10-04  Bruno Haible  <bruno@clisp.org>
19482
19483         * modules/ceilf-tests: New file.
19484         * tests/test-ceilf.c: New file.
19485
19486         * modules/ceilf: New file.
19487         * lib/ceil.c: New file.
19488         * lib/ceilf.c: New file.
19489         * m4/ceilf.m4: New file.
19490         * lib/math.in.h (ceilf): New declaration.
19491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
19492         HAVE_DECL_CEILF.
19493         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
19494         HAVE_DECL_CEILF.
19495         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
19496
19497 2007-10-04  Bruno Haible  <bruno@clisp.org>
19498
19499         * modules/floorl-tests: New file.
19500         * tests/test-floorl.c: New file.
19501
19502         * modules/floorl: New file.
19503         * lib/floorl.c: Replace entire file.
19504         * m4/floorl.m4: New file.
19505         * lib/math.in.h (floorl): Replace declaration.
19506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
19507         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
19508         * doc/functions/floorl.texi: Mention the 'floorl' module.
19509         * modules/mathl (Files): Remove lib/floorl.c.
19510         (Depends-on): Add floorl.
19511
19512 2007-10-04  Bruno Haible  <bruno@clisp.org>
19513
19514         * modules/floorf-tests: New file.
19515         * tests/test-floorf.c: New file.
19516
19517         * modules/floorf: New file.
19518         * lib/floor.c: New file.
19519         * lib/floorf.c: New file.
19520         * m4/floorf.m4: New file.
19521         * lib/math.in.h (floorf): New declaration.
19522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
19523         HAVE_DECL_FLOORF.
19524         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
19525         HAVE_DECL_FLOORF.
19526         * doc/functions/floorf.texi: Mention the 'floorf' module.
19527
19528 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
19529             Bruno Haible  <bruno@clisp.org>
19530
19531         Advertise for the Git server instead of the CVS server.
19532         * doc/gnulib-intro.texi (Steady Development): Mention the Git
19533         repository instead of the CVS one.
19534         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
19535         about all VCS systems generically.
19536         * doc/gnulib.texi (Introduction): Capitalize `Git'.
19537
19538 2007-10-04  Bruno Haible  <bruno@clisp.org>
19539
19540         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
19541         means.
19542         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
19543
19544 2007-10-04  Bruno Haible  <bruno@clisp.org>
19545
19546         * modules/truncl-tests: New file.
19547         * tests/test-truncl.c: New file.
19548
19549         * modules/truncl: New file.
19550         * lib/truncl.c: New file.
19551         * m4/truncl.m4: New file.
19552         * lib/math.in.h (truncl): New declaration.
19553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
19554         HAVE_DECL_TRUNCL.
19555         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
19556         HAVE_DECL_TRUNCL.
19557         * doc/functions/truncl.texi: Mention the 'truncl' module.
19558
19559 2007-10-04  Bruno Haible  <bruno@clisp.org>
19560
19561         * modules/truncf-tests: New file.
19562         * tests/test-truncf.c: New file.
19563
19564         * modules/truncf: New file.
19565         * lib/trunc.c: Make paramerizable through USE_* macros.
19566         * lib/truncf.c: New file.
19567         * m4/truncf.m4: New file.
19568         * lib/math.in.h (truncf): New declaration.
19569         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
19570         HAVE_DECL_TRUNCF.
19571         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
19572         HAVE_DECL_TRUNCF.
19573         * doc/functions/truncf.texi: Mention the 'truncf' module.
19574
19575 2007-10-03  Bruno Haible  <bruno@clisp.org>
19576
19577         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
19578         augmentation also for tests modules.
19579         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
19580         * modules/atexit-tests (Makefile.am): Likewise.
19581         * modules/binary-io-tests (Makefile.am): Likewise.
19582         * modules/c-strcase-tests (Makefile.am): Likewise.
19583         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
19584         * modules/canonicalize-tests (Makefile.am): Likewise.
19585         * modules/closein-tests (Makefile.am): Likewise.
19586         * modules/fprintf-posix-tests (Makefile.am): Likewise.
19587         * modules/freadahead-tests (Makefile.am): Likewise.
19588         * modules/fseek-tests (Makefile.am): Likewise.
19589         * modules/fseeko-tests (Makefile.am): Likewise.
19590         * modules/ftell-tests (Makefile.am): Likewise.
19591         * modules/ftello-tests (Makefile.am): Likewise.
19592         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
19593         * modules/isnanl-tests (Makefile.am): Likewise.
19594         * modules/lseek-tests (Makefile.am): Likewise.
19595         * modules/mbscasecmp-tests (Makefile.am): Likewise.
19596         * modules/mbscasestr-tests (Makefile.am): Likewise.
19597         * modules/mbschr-tests (Makefile.am): Likewise.
19598         * modules/mbscspn-tests (Makefile.am): Likewise.
19599         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
19600         * modules/mbspbrk-tests (Makefile.am): Likewise.
19601         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
19602         * modules/mbsrchr-tests (Makefile.am): Likewise.
19603         * modules/mbsspn-tests (Makefile.am): Likewise.
19604         * modules/mbsstr-tests (Makefile.am): Likewise.
19605         * modules/printf-posix-tests (Makefile.am): Likewise.
19606         * modules/snprintf-posix-tests (Makefile.am): Likewise.
19607         * modules/sprintf-posix-tests (Makefile.am): Likewise.
19608         * modules/tsearch-tests (Makefile.am): Likewise.
19609         * modules/uniname/uniname-tests (Makefile.am): Likewise.
19610         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
19611         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
19612         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
19613         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
19614         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
19615         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
19616         * modules/vprintf-posix-tests (Makefile.am): Likewise.
19617         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
19618         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
19619         * modules/xstrtoimax-tests (Makefile.am): Likewise.
19620         * modules/xstrtol-tests (Makefile.am): Likewise.
19621         * modules/xstrtoumax-tests (Makefile.am): Likewise.
19622         * modules/yesno-tests (Makefile.am): Likewise.
19623
19624 2007-10-03  Bruno Haible  <bruno@clisp.org>
19625
19626         * modules/trunc-tests: New file.
19627         * tests/test-trunc.c: New file.
19628
19629         * modules/trunc: New file.
19630         * lib/trunc.c: New file.
19631         * m4/trunc.m4: New file.
19632         * lib/math.in.h (trunc): New declaration.
19633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
19634         HAVE_DECL_TRUNC.
19635         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
19636         HAVE_DECL_TRUNC.
19637         * doc/functions/trunc.texi: Mention the 'trunc' module.
19638
19639 2007-10-03  Bruno Haible  <bruno@clisp.org>
19640
19641         * tests/test-fpending.c: New file, mostly copied
19642         from coreutils/lib/t-fpending.c.
19643         * modules/fpending-tests: New file.
19644
19645 2007-10-03  Bruno Haible  <bruno@clisp.org>
19646
19647         Port the stdio extensions to QNX (untested).
19648         * lib/fseterr.c (fseterr): Add support for QNX.
19649         * lib/fbufmode.c (fbufmode): Likewise.
19650         * lib/freadable.c (freadable): Likewise.
19651         * lib/fwritable.c (fwritable): Likewise.
19652         * lib/freading.c (freading): Likewise.
19653         * lib/fwriting.c (fwriting): Likewise.
19654         * lib/freadahead.c (freadahed): Likewise.
19655         * lib/fpurge.c (fpurge): Likewise.
19656         * lib/fseeko.c (rpl_fseeko): Likewise.
19657
19658 2007-10-03  Bruno Haible  <bruno@clisp.org>
19659             Jim Meyering  <jim@meyering.net>
19660             Eric Blake  <ebb9@byu.net>
19661
19662         * doc/relocatable.texi: Use @command instead of @program.
19663
19664 2007-10-02  Jim Meyering  <jim@meyering.net>
19665
19666         Perform one more "_.h" -> ".in.h" substitution.
19667         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
19668         instead of unistd_.h here, too.
19669
19670 2007-10-01  Bruno Haible  <bruno@clisp.org>
19671
19672         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
19673         Needed for the alloca-opt module.
19674
19675 2007-09-30  Bruno Haible  <bruno@clisp.org>
19676
19677         * lib/alloca.in.h: Renamed from lib/alloca_.h.
19678         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
19679         alloca_.h.
19680         * lib/argz.in.h: Renamed from lib/argz_.h.
19681         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
19682         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
19683         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
19684         byteswap_.h.
19685         * lib/dirent.in.h: Renamed from lib/dirent_.h.
19686         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
19687         dirent_.h.
19688         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
19689         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
19690         fcntl_.h.
19691         * lib/float.in.h: Renamed from lib/float_.h.
19692         * modules/float (Files, Makefile.am): Use float.in.h instead of
19693         float_.h.
19694         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
19695         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
19696         fnmatch_.h.
19697         * lib/getopt.in.h: Renamed from lib/getopt_.h.
19698         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
19699         getopt_.h.
19700         * lib/glob.in.h: Renamed from lib/glob_.h.
19701         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
19702         * lib/iconv.in.h: Renamed from lib/iconv_.h.
19703         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
19704         iconv_.h.
19705         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
19706         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
19707         inttypes_.h.
19708         * lib/locale.in.h: Renamed from lib/locale_.h.
19709         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
19710         locale_.h.
19711         * lib/math.in.h: Renamed from lib/math_.h.
19712         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
19713         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
19714         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
19715         of netinet_in_.h. Add dependency.
19716         * lib/poll.in.h: Renamed from lib/poll_.h.
19717         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
19718         * lib/search.in.h: Renamed from lib/search_.h.
19719         * modules/search (Files, Makefile.am): Use search.in.h instead of
19720         search_.h.
19721         * lib/signal.in.h: Renamed from lib/signal_.h.
19722         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
19723         _signal.h.
19724         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
19725         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
19726         stdbool_.h.
19727         * lib/stdint.in.h: Renamed from lib/stdint_.h.
19728         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
19729         stdint_.h.
19730         * lib/stdio.in.h: Renamed from lib/stdio_.h.
19731         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
19732         stdio_.h.
19733         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
19734         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
19735         stdlib_.h.
19736         * lib/string.in.h: Renamed from lib/string_.h.
19737         * modules/string (Files, Makefile.am): Use string.in.h instead of
19738         string_.h.
19739         * doc/gnulib-tool.texi (Initial import): Update.
19740         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
19741         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
19742         of sys_select_.h. Add dependency.
19743         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
19744         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
19745         of sys_socket_.h.
19746         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
19747         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
19748         sys_stat_.h.
19749         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
19750         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
19751         sys_time_.h.
19752         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
19753         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
19754         sysexits_.h.
19755         * lib/time.in.h: Renamed from lib/time_.h.
19756         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
19757         * lib/unistd.in.h: Renamed from lib/unistd_.h.
19758         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
19759         unistd_.h.
19760         * lib/wchar.in.h: Renamed from lib/wchar_.h.
19761         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
19762         wchar_.h.
19763         * lib/wctype.in.h: Renamed from lib/wctype_.h.
19764         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
19765         wctype_.h.
19766         * build-aux/bootstrap (slurp): Update.
19767         * lib/.cppi-disable: Update.
19768
19769 2007-09-30  Bruno Haible  <bruno@clisp.org>
19770
19771         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
19772         Needed on BeOS.
19773
19774 2007-09-30  Bruno Haible  <bruno@clisp.org>
19775
19776         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
19777
19778 2007-09-29  Bruno Haible  <bruno@clisp.org>
19779
19780         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
19781
19782 2007-09-29  Bruno Haible  <bruno@clisp.org>
19783
19784         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
19785         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
19786         * build-aux/install-reloc: Compile also areadlink.c.
19787         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
19788
19789 2007-09-29  Bruno Haible  <bruno@clisp.org>
19790
19791         * gnulib-tool (func_emit_initmacro_done): Indentation.
19792
19793 2007-09-29  Bruno Haible  <bruno@clisp.org>
19794
19795         * README: Add CVS checkout update instructions.
19796         Info from Bob Proulx <bob@proulx.com>.
19797
19798 2007-09-28  Eric Blake  <ebb9@byu.net>
19799
19800         Provide move-if-change.
19801         * build-aux/move-if-change: New file, based on best practice
19802         rather than any canonical upstream location.
19803
19804 2007-09-28  Jim Meyering  <jim@meyering.net>
19805
19806         Fix canonicalize loop-detection corner case.
19807         Do not attempt to stat the symlink values stored via seen_triple.
19808         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
19809         on linux-2.6.18, (but not 2.6.22).
19810         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
19811         triple_compare.  The former compares dev,ino,filename, while the latter
19812         would actually stat dirname(filename) when dev and ino were equal.
19813         * lib/hash-triple.c: Install <string.h>.
19814         (STREQ): Define.
19815         (triple_compare_ino_str): New function.
19816         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
19817
19818 2007-09-28  Eric Blake  <ebb9@byu.net>
19819
19820         Enforce that AC_REPLACE_FUNCS files exist.
19821         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
19822         override check for typos.
19823
19824         Fix test-closein on Solaris 10.
19825         * tests/test-closein.c (main): Don't assume stdin can be inherited
19826         closed on all systems.
19827         * tests/test-closein.sh: Likewise.
19828         Reported by Piotr Tarnowski.
19829
19830 2007-09-28  Jim Meyering  <jim@meyering.net>
19831
19832         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
19833
19834 2007-09-27  Jim Meyering  <jim@meyering.net>
19835
19836         canonicalize: Avoid a false-positive cycle failure.
19837         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
19838         Sort.  Remove cycle-check.
19839         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
19840         not cycle-check.h.
19841         (seen_triple): New function.
19842         (canonicalize_filename_mode): Use it instead of cycle-check.
19843         * tests/test-canonicalize.c: Add a test for this bug.
19844         * tests/test-canonicalize.sh: Set up and run the test.
19845
19846         New module, file-set, from coreutils.
19847         * modules/file-set: Define it.
19848         * lib/file-set.c, lib/file-set.h: Implement.
19849
19850         New module, hash-triple, from coreutils.
19851         * modules/hash-triple: Define it.
19852         * lib/hash-triple.c, lib/hash-triple.h: Implement.
19853
19854 2007-09-25  Eric Blake  <ebb9@byu.net>
19855
19856         Fix strerror on Interix.
19857         * lib/string_.h (strerror): Declare replacement.
19858         * doc/functions/strerror.texi (strerror): Document the Interix
19859         shortcoming.
19860         * modules/string (Makefile.am): Support new hooks.
19861         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
19862         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
19863         gl_FUNC_STRERROR_SEPARATE.
19864         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
19865         * lib/strerror.c (rpl_strerror): Provide replacement.
19866         * modules/strerror (Depends-on): Add string.
19867         (configure.ac): Detect use of module.
19868         * tests/test-strerror.c: New file.
19869         * modules/strerror-tests: New test module.
19870         * modules/argp (Depends-on): Add strerror.
19871         * modules/error (Depends-on): Likewise.
19872         Reported by Martin Koeppe.
19873
19874 2007-09-24  Bruno Haible  <bruno@clisp.org>
19875
19876         * README: Update git instructions.
19877
19878 2007-09-24  Eric Blake  <ebb9@byu.net>
19879
19880         Revert fpending breakage from 2007-09-08.
19881         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
19882         __fpending.c.
19883
19884 2007-09-24  Jim Meyering  <jim@meyering.net>
19885
19886         filenamecat.c: Add a test.
19887         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
19888         showing how the function works when DIR is the empty string.
19889
19890 2007-09-21  Simon Josefsson  <simon@josefsson.org>
19891
19892         * tests/test-canonicalize.sh: Turn on executable bit.
19893
19894 2007-09-19  Eric Blake  <ebb9@byu.net>
19895
19896         * README: Update CVS instructions.
19897
19898 2007-09-18  Bruno Haible  <bruno@clisp.org>
19899
19900         * modules/areadlink: New file.
19901         * lib/areadlink.h (areadlink): New declaration.
19902         * lib/areadlink.c: New file, based on lib/xreadlink.c.
19903
19904 2007-09-17  Jim Meyering  <jim@meyering.net>
19905
19906         * lib/savewd.c (ESTALE) [!defined]: Define.
19907         Reported to be required on Interix by Martin Koeppe.
19908
19909 2007-09-17  Bruno Haible  <bruno@clisp.org>
19910
19911         * gnulib-tool (func_version): Use $version.
19912
19913 2007-09-16  Bruno Haible  <bruno@clisp.org>
19914
19915         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
19916         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
19917         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
19918         Reported by Greg Schafer <gschafer@zip.com.au>.
19919
19920 2007-09-15  Bruno Haible  <bruno@clisp.org>
19921
19922         * gnulib-tool (sed): Try a little harder to make bash understand the
19923         alias.
19924         Reported by Bruce Korb <bruce.korb@gmail.com>.
19925
19926 2007-09-13  Eric Blake  <ebb9@byu.net>
19927
19928         * ChangeLog: Remove conflict markers.
19929
19930 2007-09-13  Simon Josefsson  <simon@josefsson.org>
19931
19932         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
19933         Reported by Bruno Haible <bruno@clisp.org>.
19934
19935 2007-09-12  Bruno Haible  <bruno@clisp.org>
19936
19937         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
19938         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
19939         is not defined.
19940
19941 2007-09-12  Eric Blake  <ebb9@byu.net>
19942
19943         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
19944         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
19945         Autoconf definition.
19946         * modules/euidaccess (Depends-on): Add extensions, for
19947         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
19948         * modules/fnmatch (Depends-on): Likewise.
19949         * modules/getaddrinfo (Depends-on): Likewise.
19950         * modules/getdelim (Depends-on): Likewise.
19951         * modules/getline (Depends-on): Likewise.
19952         * modules/getsubopt (Depends-on): Likewise.
19953         * modules/gettext (Depends-on): Likewise.
19954         * modules/group-member (Depends-on): Likewise.
19955         * modules/mbchar (Depends-on): Likewise.
19956         * modules/memmem (Depends-on): Likewise.
19957         * modules/mempcpy (Depends-on): Likewise.
19958         * modules/memrchr (Depends-on): Likewise.
19959         * modules/pagealign_alloc (Depends-on): Likewise.
19960         * modules/readutmp (Depends-on): Likewise.
19961         * modules/stpcpy (Depends-on): Likewise.
19962         * modules/stpncpy (Depends-on): Likewise.
19963         * modules/strchrnul (Depends-on): Likewise.
19964         * modules/strndup (Depends-on): Likewise.
19965         * modules/strsep (Depends-on): Likewise.
19966         * modules/strverscmp (Depends-on): Likewise.
19967         * modules/vasprintf (Depends-on): Likewise.
19968         * modules/wcwidth (Depends-on): Likewise.
19969         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
19970         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
19971         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
19972         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
19973         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19974         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19975         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
19976         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
19977         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
19978         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
19979         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19980         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
19981         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
19982         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19983         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
19984         * m4/readutmp.m4 (gl_READUTMP): Likewise.
19985         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19986         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
19987         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19988         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
19989         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
19990         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
19991         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
19992         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
19993         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
19994         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19995         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
19996         so that lock.m4 can be used in gettext without extensions module.
19997
19998 2007-09-11  Bruno Haible  <bruno@clisp.org>
19999
20000         * m4/isc-posix.m4: Remove file.
20001         Suggested by Eric Blake.
20002
20003 2007-09-11  Eric Blake  <ebb9@byu.net>
20004
20005         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
20006
20007 2007-09-10  Bruno Haible  <bruno@clisp.org>
20008
20009         * posix-modules: Fix typo in error message.
20010         Reported by Matt <mkraai@beckman.com>.
20011
20012 2007-09-09  Bruno Haible  <bruno@clisp.org>
20013
20014         * doc/functions/getdelim.texi: Update list of platforms lacking the
20015         function.
20016         * doc/functions/getline.texi: Likewise.
20017
20018 2007-09-09  Jim Meyering  <jim@meyering.net>
20019
20020         * lib/hash.c (hash_initialize): Detect calloc failure.
20021         Reported by Bruno Haible.
20022
20023 2007-09-09  Bruno Haible  <bruno@clisp.org>
20024
20025         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
20026         malloc or realloc fails.
20027
20028 2007-09-09  Bruno Haible  <bruno@clisp.org>
20029
20030         * modules/getcwd (Depends-on): Add malloc-posix.
20031         * modules/glob (Depends-on): Likewise.
20032         * modules/putenv (Depends-on): Likewise.
20033         * modules/strdup (Depends-on): Likewise.
20034         * modules/getdelim (Depends-on): Add realloc-posix.
20035         * modules/read-file (Depends-on): Likewise.
20036
20037 2007-09-09  Bruno Haible  <bruno@clisp.org>
20038
20039         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
20040         (gl_FUNC_MALLOC_POSIX): Require it.
20041         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
20042         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
20043         * modules/realloc (Files): Add m4/malloc.m4.
20044         * modules/calloc (Files): Likewise.
20045
20046 2007-09-09  Bruno Haible  <bruno@clisp.org>
20047
20048         * modules/malloc-posix: New file.
20049         * modules/malloc (Depends-on): Add malloc-posix.
20050         * lib/malloc.c: Include errno.h.
20051         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
20052         and a POSIX-compatible malloc into a single function. Set ENOMEM
20053         when returning NULL.
20054         * m4/malloc.m4: New file.
20055         * doc/functions/malloc.texi: Mention the malloc-posix module.
20056         * lib/stdlib_.h (malloc): New declaration.
20057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20058         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
20059         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
20060         and HAVE_MALLOC_POSIX.
20061
20062 2007-09-09  Bruno Haible  <bruno@clisp.org>
20063
20064         * modules/realloc-posix: New file.
20065         * modules/realloc (Depends-on): Add realloc-posix.
20066         * lib/realloc.c: Include errno.h.
20067         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
20068         and a POSIX-compatible realloc into a single function. Set ENOMEM
20069         when returning NULL.
20070         * m4/realloc.m4: New file.
20071         * doc/functions/realloc.texi: Mention the realloc-posix module.
20072         * lib/stdlib_.h (realloc): New declaration.
20073         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20074         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
20075         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
20076         and HAVE_REALLOC_POSIX.
20077
20078 2007-09-09  Bruno Haible  <bruno@clisp.org>
20079
20080         * modules/calloc-posix: New file.
20081         * modules/calloc (Depends-on): Add calloc-posix.
20082         * lib/calloc.c: Include errno.h.
20083         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
20084         and a POSIX-compatible calloc into a single function. Set ENOMEM
20085         when returning NULL.
20086         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
20087         * doc/functions/calloc.texi: Mention the calloc-posix module.
20088         * lib/stdlib_.h (calloc): New declaration.
20089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20090         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
20091         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
20092         and HAVE_CALLOC_POSIX.
20093
20094 2007-09-09  Bruno Haible  <bruno@clisp.org>
20095
20096         Allow for modules to show an arbitrary notice.
20097         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
20098         * gnulib-tool: New option --extract-notice.
20099         (func_usage): Document it.
20100         (sed_extract_prog): Update.
20101         (func_get_notice): New function.
20102         (func_modules_notice): New function.
20103         (func_import, func_create_testdir): Invoke it.
20104         Suggested by Jim Meyering.
20105
20106 2007-09-09  Bruno Haible  <bruno@clisp.org>
20107
20108         * gnulib-tool: New options --verbose, --quiet.
20109         (func_usage): Document them.
20110         (verbose): New variable.
20111         (func_execute_command): New function.
20112         (func_import): Don't show the module list and the file list if
20113         $verbose < 0.
20114         (func_create_testdir): Likewise. Use func_execute_command.
20115         (func_create_megatestdir): Use func_execute_command.
20116
20117 2007-09-08  Bruno Haible  <bruno@clisp.org>
20118
20119         * gnulib-tool (func_import): Prefer rsync over wget when available,
20120         for fetching the PO files.
20121
20122 2007-09-08  Bruno Haible  <bruno@clisp.org>
20123
20124         * posix-modules: New file. Portions copied from gnulib-tool.
20125         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
20126
20127 2007-09-08  Jim Meyering  <jim@meyering.net>
20128
20129         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
20130         * lib/fpending.h: Rename from __fpending.h.
20131         * lib/fpending.c: Rename from __fpending.c.
20132         Include "fpending.h", not "__fpending.h".
20133         * lib/__fpending.h, lib/__fpending.c: Remove files.
20134         * modules/fpending (Files): Reflect new file names.
20135         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
20136
20137 2007-09-08  Bruno Haible  <bruno@clisp.org>
20138
20139         * m4/inttypes-h.m4: Remove stub file.
20140
20141 2007-09-07  Simon Josefsson  <simon@josefsson.org>
20142
20143         * doc/headers/stdint.texi: Discuss #include_next issue.
20144
20145 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
20146
20147         * build-aux/bootstrap: Remove obsolete comment about wget --help.
20148
20149 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20150
20151         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
20152         in variable name.
20153
20154 2007-09-03  Jim Meyering  <jim@meyering.net>
20155
20156         New module: git-version-gen.
20157         * modules/git-version-gen: New file.
20158
20159         Import changes from coreutils for bootstrap script.
20160
20161         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
20162
20163         bootstrap: uses rsync to download the .po files
20164         * build-aux/bootstrap (po_download_command_format): New global.
20165         (download_po_files): Use rsync.
20166         (update_po_files): Don't remove .po files after download,
20167         so future rsync runs can take advantage of the copies.
20168
20169         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
20170
20171         Solve the unnecessary-.po-file-regeneration problem once and for all.
20172         * build-aux/bootstrap (download_po_files): New function, renamed from
20173         get_translations.  Now, downloads, but doesn't update LINGUAS.
20174         (update_po_files): New function.
20175
20176         bootstrap: Ignore more.
20177         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
20178         uniwidth to e.g., lib/.gitignore.
20179         (slurp): Handle the sys_stat_.h -> sys mapping, too.
20180
20181         * build-aux/bootstrap: New setting: vc_ignore.
20182         (insert_sorted_if_absent): Create $file if absent.
20183         Adapt to new, possibly empty, list: $vc_ignore.
20184
20185         bootstrap: generate more ignorable names
20186         * build-aux/bootstrap (slurp): When generating ignorable names,
20187         also map .sin to .sed, .gperf to .c, and .y to .c.
20188
20189 2007-09-03  Jim Meyering  <jim@meyering.net>
20190
20191         * build-aux/git-version-gen: New file, from coreutils.  For details, see
20192         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
20193
20194 2007-09-02  Bruno Haible  <bruno@clisp.org>
20195
20196         Fix mis-recognition of 'mcs' on QNX 6.
20197         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
20198         output contains the string "Mono".
20199         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
20200         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
20201
20202 2007-09-01  Bruno Haible  <bruno@clisp.org>
20203
20204         Fix collision between uniwidth/* and linebreak modules.
20205         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
20206         u32_width): Remove declarations.
20207         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
20208         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
20209         streq3, streq2, streq1, streq0): Remove functions.
20210         (STREQ): Remove macro.
20211         (is_cjk_encoding): Remove function.
20212         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
20213         (uc_width, u8_width, u16_width, u32_width): Remove functions.
20214         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
20215         * NEWS: Document the change.
20216
20217 2007-09-01  Bruno Haible  <bruno@clisp.org>
20218
20219         * lib/streq.h: Add double-inclusion guard.
20220
20221 2007-09-01  Karl Berry  <karl@gnu.org>
20222
20223         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
20224
20225 2007-08-28  Jim Meyering  <jim@meyering.net>
20226
20227         Rename mreadlink_with_size to areadlink_with_size.
20228         * NEWS: Document the change.
20229         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
20230         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
20231         * lib/mreadlink.h: Rename this to...
20232         * lib/areadlink.h: ...this.
20233         * modules/mreadlink-with-size: Rename this to...
20234         * modules/areadlink-with-size: ...this.
20235         * lib/canonicalize.c: Reflect the renaming.
20236         * modules/canonicalize: Likewise.
20237
20238 2007-08-26  Bruno Haible  <bruno@clisp.org>
20239
20240         * gnulib-tool (func_import): When deciding which files to remove,
20241         consider also dangling symbolic links.
20242         Reported by Eric Blake.
20243
20244 2007-08-26  Bruno Haible  <bruno@clisp.org>
20245
20246         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
20247
20248 2007-08-23  Simon Josefsson  <simon@josefsson.org>
20249
20250         * lib/readline.c: Don't include getline.h, the prototype is now
20251         found in stdio.h.
20252
20253 2007-08-23  Jim Meyering  <jim@meyering.net>
20254
20255         Getdelim touchup.
20256         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
20257         around the funlockfile call, since funlockfile never sets errno.
20258         Don't set errno upon failed realloc.
20259
20260 2007-08-22  Eric Blake  <ebb9@byu.net>
20261
20262         Getline touchups.
20263         * lib/getdelim.c (getdelim): Revert regression that required *n to
20264         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
20265         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
20266         getdelim, rather than whether implementation is missing.
20267         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
20268         * lib/stdio_.h (getline): Also declare if replacement is
20269         required.
20270         * doc/functions/getdelim.texi: New file.
20271         * doc/functions/getline.texi: Likewise.
20272         * doc/gnulib.texi (Function Substitutes): Add new files.
20273         Reported by Bruno Haible.
20274
20275 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
20276
20277         * users.txt: Add Guile.
20278
20279 2007-08-22  Eric Blake  <ebb9@byu.net>
20280
20281         * tests/test-getdelim.c (main): Use remove, not unlink.
20282         * tests/test-getline.c (main): Likewise.
20283
20284         Move getline and getdelim into stdio.h, per POSIX 200x.
20285         * modules/getline (Files): Remove getline.h.
20286         (Depends-on): Add stdio.
20287         (configure.ac): Add module indicator.
20288         * modules/getdelim (Files): Remove getdelim.h.
20289         (Depends-on): Add stdio.
20290         (configure.ac): Add module indicator.
20291         * modules/stdio (Makefile.am): Work with new indicators.
20292         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
20293         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
20294         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20295         * lib/getdelim.h: Delete.
20296         * lib/getline.h: Delete.
20297         * lib/stdio_.h (getdelim, getline): Declare.
20298         * modules/getdelim-tests: New module.
20299         * modules/getline-tests: Likewise.
20300         * tests/test-getdelim.c: New file.
20301         * tests/test-getline.c: Likewise.
20302         * NEWS: Document the change.
20303         * lib/getline.c: Update choice of header.
20304         * lib/csharpcomp.c: Likewise.
20305         * lib/getpass.c: Likewise.
20306         * lib/javacomp.c: Likewise.
20307         * lib/javaversion.c: Likewise.
20308         * lib/yesno.c: Likewise.
20309         * lib/getdelim.c: Likewise.
20310         (getdelim): Set errno on failure, and avoid memory leak.
20311
20312 2007-08-19  Bruno Haible  <bruno@clisp.org>
20313
20314         * modules/closein (Depends-on): Add freadahead.
20315         * lib/closein.c: Include freadahead.h.
20316         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
20317         is zero.
20318
20319 2007-08-19  Bruno Haible  <bruno@clisp.org>
20320
20321         * modules/freadahead-tests: New file.
20322         * tests/test-freadahead.sh: New file.
20323         * tests/test-freadahead.c: New file.
20324
20325         * modules/freadahead: New file.
20326         * lib/freadahead.h: New file.
20327         * lib/freadahead.c: New file.
20328         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
20329         fbufmode, fpurge, freadable, fwritable.
20330
20331 2007-08-19  Eric Blake  <ebb9@byu.net>
20332
20333         Test yesno in combination with closein.
20334         * lib/yesno.c (yesno): Document use of stdin.
20335         * modules/yesno-tests (Files): New module.
20336         * tests/test-yesno.c (main): New file.
20337         * tests/test-yesno.sh: Likewise.
20338
20339 2007-08-19  Bruno Haible  <bruno@clisp.org>
20340
20341         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
20342         * lib/fseeko.c (rpl_fseeko): Likewise.
20343         * lib/fseterr.c (fseterr): Likewise.
20344
20345 2007-08-19  Bruno Haible  <bruno@clisp.org>
20346
20347         * tests/test-lseek.c (main): Disable a test for BeOS.
20348         * doc/functions/lseek.texi: Document the BeOS bug.
20349
20350 2007-08-19  Bruno Haible  <bruno@clisp.org>
20351             Eric Blake  <ebb9@byu.net>
20352
20353         * lib/lseek.c: Include <sys/stat.h>.
20354         (rpl_lseek): Add workaround code also for Unix platforms.
20355         Needed for BeOS.
20356         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
20357         * doc/functions/lseek.texi: Document BeOS definiency.
20358
20359 2007-08-18  Bruno Haible  <bruno@clisp.org>
20360
20361         * modules/fstrcmp-tests: New file.
20362         * tests/test-fstrcmp.c: New file.
20363
20364 2007-08-18  Bruno Haible  <bruno@clisp.org>
20365
20366         * modules/fstrcmp: New file, from GNU gettext with modifications.
20367         * lib/fstrcmp.h: New file, from GNU gettext.
20368         * lib/fstrcmp.c: New file, from GNU gettext.
20369         * MODULES.html.sh (String handling): Add fstrcmp.
20370
20371 2007-08-18  Bruno Haible  <bruno@clisp.org>
20372
20373         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
20374         'bool'.
20375         (diag, compareseq): Remove const from the ctxt argument.
20376         (USE_HEURISTIC): Undefine at the end.
20377
20378 2007-08-18  Jim Meyering  <jim@meyering.net>
20379
20380         New file: lib/idcache.h
20381         * NEWS: Mention the addition.
20382         * modules/idcache (Files): Add lib/idcache.h
20383         * lib/idcache.c: Include "idcache.h".
20384         Don't include <sys/types.h>.
20385         Add a FIXME comment.
20386         Move file-scoped "static" declarations to the top.
20387         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
20388
20389 2007-08-17  Bruno Haible  <bruno@clisp.org>
20390         and Paul Eggert  <eggert@cs.ucla.edu>
20391
20392         * MODULES.html.sh: Add diffseq.
20393         * modules/diffseq: New file.
20394         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
20395         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
20396
20397 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20398
20399         Import changes from coreutils for bootstrap script.
20400
20401         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
20402
20403         * build-aux/bootstrap (slurp): Work even in environments where
20404         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
20405         current code does not slurp files whose names start with ".", and
20406         this looks like it might be a troublesome area.
20407
20408         2007-07-11  Jim Meyering  <jim@meyering.net>
20409
20410         If there's a GPL vN copyright comment, require that N == 3.
20411
20412         2007-07-08  Jim Meyering  <jim@meyering.net>
20413
20414         Run the coreutils-specific code only if tests/Makefile.am.in exists.
20415         * build-aux/bootstrap (mam_template): Move definition out of loop.
20416
20417         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
20418
20419         * build-aux/bootstrap (symlink_to_dir): Rename function from
20420         symlink_to_gnulib.  Add a directory parameter.  Update all
20421         callers.
20422         (cp_mark_as_generated): Also check for -- and link to -- files in
20423         gl/.
20424
20425         2007-07-08  Jim Meyering  <jim@meyering.net>
20426
20427         Adapt to deeper hierarchy in gnulib.
20428         * build-aux/bootstrap (symlink_to_dir): If the destination
20429         directory doesn't exist, create it. This is required at least for
20430         "lib/uniwidth/cjk.h".
20431
20432         2007-05-15  Jim Meyering  <jim@meyering.net>
20433
20434         * build-aux/bootstrap: Now that generated Makefile.am files
20435         are no longer under version control, they must be created at
20436         bootstrap time.
20437
20438 2007-08-14  Ben Pfaff  <blp@gnu.org>
20439
20440         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
20441
20442 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20443
20444         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
20445         given the changes below.
20446         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
20447         even on hosts that have padding bits beyond the supported 64.
20448
20449 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20450
20451         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
20452         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
20453         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
20454         depends on it.
20455         (xstrtol_error): Remove.
20456         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
20457         but with a different signature.
20458         (ATTRIBUTE_NORETURN, __attribute__): New macros.
20459         * lib/xstrtol-error.c: Include exitfail.h.
20460         (xstrtol_fatal): New function, with a different signature from the
20461         old xstrtol_error, so that the caller need not worry about passing
20462         in an exit status, or about storage management of the option argument.
20463         (xstrtol_error): Now a static function.  Redo signature to
20464         implement xstrtol_fatal.  Output the correct number of hyphens in
20465         front of the option so that the caller need not worry about
20466         storage management.
20467         (N_): New macro.
20468         (_): Remove; not used now.
20469         * modules/xstrtol: Depend on getopt.
20470         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
20471         of old STRTOL_FATAL_ERROR macro.
20472         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
20473         of test program.
20474         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
20475         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
20476
20477 2007-08-08  Eric Blake  <ebb9@byu.net>
20478
20479         * lib/xstrtol-error.c: Add missing include.
20480
20481         Move xstrtol messages into gnulib domain, when --pobase is used.
20482         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
20483         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
20484         * modules/xstrtol (Files): Distribute new file.
20485         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
20486         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
20487         * tests/test-xstrtol.c: ...into new file.
20488         * tests/test-xstrtoul.c: Also test xstrtoul.
20489         * tests/test-xstrtoimax.c: Also test xstrtoimax.
20490         * tests/test-xstrtoumax.c: Also test xstrtoumax.
20491         * tests/test-xstrtol.sh: Drive the tests.
20492         * tests/test-xstrtoimax.sh: Likewise.
20493         * tests/test-xstrtoumax.sh: Likewise.
20494         * modules/xstrtol-tests: New module.
20495         * modules/xstrtoimax-tests: Likewise.
20496         * modules/xstrtoumax-tests: Likewise.
20497
20498 2007-08-08  Jim Meyering  <jim@meyering.net>
20499
20500         New function: mfile_name_concat.
20501         * lib/filenamecat.c (mfile_name_concat): New function, just like
20502         file_name_concat, but return NULL upon failure rather than exiting
20503         with a diagnostic.
20504         * lib/filenamecat.h: Declare it.
20505
20506 2007-08-07  Bruno Haible  <bruno@clisp.org>
20507
20508         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
20509         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
20510         warning from gcc.
20511         Reported by Eric Blake.
20512
20513 2007-08-07  Simon Josefsson  <simon@josefsson.org>
20514
20515         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
20516         * modules/crypto/arcfour (License): Likewise.
20517         * modules/crypto/des-tests (License): Likewise.
20518         * modules/crypto/gc-arctwo-tests (License): Likewise.
20519         * modules/crypto/gc-des-tests (License): Likewise.
20520         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
20521         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
20522         * modules/crypto/gc-md2-tests (License): Likewise.
20523         * modules/crypto/gc-md4-tests (License): Likewise.
20524         * modules/crypto/gc-md5-tests (License): Likewise.
20525         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
20526         * modules/crypto/gc-rijndael-tests (License): Likewise.
20527         * modules/crypto/gc-sha1-tests (License): Likewise.
20528         * modules/crypto/gc-tests (License): Likewise.
20529         * modules/crypto/hmac-md5 (License): Likewise.
20530         * modules/crypto/hmac-sha1 (License): Likewise.
20531         * modules/crypto/md2-tests (License): Likewise.
20532         * modules/crypto/md4-tests (License): Likewise.
20533         * modules/crypto/md5 (License): Likewise.
20534         * modules/crypto/rijndael (License): Likewise.
20535         * modules/crypto/sha1 (License): Likewise.
20536         * modules/memxor (License): Likewise.
20537
20538 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
20539         and Bruno Haible  <bruno@clisp.org>
20540
20541         * NEWS: Describe interface changes to human, xstrtol.
20542         * lib/human.h: Include <xstrtol.h>.
20543         (human_options): Return enum strtol_error, not int.  Remove
20544         bool arg; take int * instead.
20545         * lib/human.c: Don't include "gettext.h".
20546         (_): Remove; no longer used.
20547         Don't include <xstrtol.h>, since human.h does it.
20548         (human_options): Adjust to abovementioned interface changes.
20549         Do not report error to stderr; that's now the caller's
20550         responsibility.
20551         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
20552         interface change.
20553         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
20554         Str, Argument_type_string.  All uses changed.  Put " argument"
20555         in diagnostics to make them clearer.  Change wording of suffix
20556         message for clarity.
20557         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
20558         Argument_type_string.
20559         (STRTOL_FATAL_WARN): Remove; no longer used.
20560         * modules/human (Depends-on): Remove gettext-h.
20561
20562 2007-08-06  Simon Josefsson  <simon@josefsson.org>
20563
20564         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
20565
20566 2007-07-31  Bruno Haible  <bruno@clisp.org>
20567
20568         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
20569         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
20570         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
20571
20572 2007-07-31  Bruno Haible  <bruno@clisp.org>
20573
20574         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
20575         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
20576
20577 2007-07-30  Bruno Haible  <bruno@clisp.org>
20578
20579         * modules/base64 (License): Use the synonymous term "LGPLv2+".
20580         * modules/c-ctype (License): Likewise.
20581         * modules/c-strcase (License): Likewise.
20582         * modules/check-version (License): Likewise.
20583         * modules/iconv (License): Likewise.
20584         * modules/iconv_open (License): Likewise.
20585         * modules/read-file (License): Likewise.
20586         * modules/striconv (License): Likewise.
20587         * modules/strverscmp (License): Likewise.
20588         * modules/vasprintf (License): Likewise.
20589         * modules/crypto/des (License): Likewise.
20590         * modules/crypto/gc (License): Likewise.
20591         * modules/crypto/gc-arcfour (License): Likewise.
20592         * modules/crypto/gc-arctwo (License): Likewise.
20593         * modules/crypto/gc-des (License): Likewise.
20594         * modules/crypto/gc-hmac-md5 (License): Likewise.
20595         * modules/crypto/gc-hmac-sha1 (License): Likewise.
20596         * modules/crypto/gc-md2 (License): Likewise.
20597         * modules/crypto/gc-md4 (License): Likewise.
20598         * modules/crypto/gc-md5 (License): Likewise.
20599         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
20600         * modules/crypto/gc-random (License): Likewise.
20601         * modules/crypto/gc-rijndael (License): Likewise.
20602         * modules/crypto/gc-sha1 (License): Likewise.
20603         * modules/crypto/md2 (License): Likewise.
20604         * modules/crypto/md4 (License): Likewise.
20605
20606 2007-07-30  Jim Meyering  <jim@meyering.net>
20607
20608         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
20609         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
20610         it has valid stat data.  This bug would cause du not to count the
20611         sizes of inaccessible directories.
20612         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
20613         in <http://bugzilla.redhat.com/250077>.
20614
20615 2007-07-25  Peter O'Gorman  <peter@pogma.com>
20616             Bruno Haible  <bruno@clisp.org>
20617
20618         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
20619         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
20620         #include_next, gives a diagnostic about it, but reports no error in
20621         the exit code.
20622         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
20623
20624 2007-07-24  Ben Pfaff  <blp@gnu.org>
20625
20626         Improve name: "count-one-bits" is better than "popcount".
20627         * MODULES.html.sh: Update name.
20628         * lib/popcount.h: Renamed lib/count-one-bits.h.
20629         (popcount): Renamed count_one_bits.
20630         (popcountl): Renamed count_one_bits_l.
20631         (popcountll): Renamed count_one_bits_ll.
20632         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
20633         * modules/popcount: Renamed module/count-one-bits.
20634         * modules/popcount-tests: Renamed module/count-one-bits-tests.
20635         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
20636
20637 2007-07-23  Ben Pfaff  <blp@gnu.org>
20638
20639         * lib/popcount.h (popcount32): Reduce size of constants, to allow
20640         better code generation, and add U to large constants to avoid
20641         warnings, in non-GCC case.
20642         Suggested by Bruno Haible.
20643
20644 2007-07-23  Ben Pfaff  <blp@gnu.org>
20645
20646         * lib/popcount.h: Use verify_true instead of if...abort.
20647         * modules/popcount: Depend on verify module.
20648         Suggested by Jim Meyering.
20649
20650 2007-07-23  Bruno Haible  <bruno@clisp.org>
20651
20652         * gnulib-tool (func_import): Create a .cvsignore file also when the
20653         directory is not yet in CVS but the toplevel directory is. When
20654         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
20655         Reported by Karl Berry.
20656
20657 2007-07-22  Ben Pfaff  <blp@gnu.org>
20658
20659         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
20660         case.
20661         Suggested by Eric Blake.
20662
20663 2007-07-22  Ben Pfaff  <blp@gnu.org>
20664
20665         New module: popcount.
20666         * MODULES.html.sh: Add popcount.
20667         * modules/popcount: New file.
20668         * modules/popcount-tests: New file.
20669         * tests/test-popcount.c: New file.
20670         * lib/popcount.h: New file.
20671         * m4/popcount.m4: New file.
20672
20673 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
20674
20675         * build-aux/announce-gen: Update to GPLv3.
20676
20677         * build-aux/config.guess: Update from config.
20678
20679 2007-07-21  Bruno Haible  <bruno@clisp.org>
20680
20681         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
20682         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
20683
20684 2007-07-20  Jim Meyering  <jim@meyering.net>
20685
20686         * check-module: Diagnose a self-dependency.
20687
20688 2007-07-19  Bruno Haible  <bruno@clisp.org>
20689
20690         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
20691         empty.
20692         Reported by Eric Blake.
20693
20694 2007-07-18  Bruno Haible  <bruno@clisp.org>
20695
20696         * gnulib-tool: New options --po-base, --po-domain.
20697         (func_usage): Document them.
20698         (pobase, po_domain): New variables.
20699         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
20700         DEFAULT_TEXT_DOMAIN.
20701         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
20702         (func_import): Consider pobase and po_domain. Create a po/ directory.
20703         (func_create_testdir): Set pobase and po_domain to empty.
20704         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
20705         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
20706
20707 2007-07-18  Bruno Haible  <bruno@clisp.org>
20708
20709         * gnulib-tool (func_get_automake_snippet): Synthesize also an
20710         EXTRA_DIST augmentation for files in build-aux/.
20711
20712 2007-07-16  Bruno Haible  <bruno@clisp.org>
20713
20714         * modules/lseek (License): Use the synonymous term "LGPLv2+".
20715         * modules/getdelim (License): Likewise.
20716
20717 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20718
20719         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
20720         * modules/d-type (License): Likewise.
20721         * modules/extensions (License): Likewise.
20722         * modules/fnmatch (License): Likewise.
20723         * modules/fseeko (License): Likewise.
20724         * modules/getaddrinfo (License): Likewise.
20725         * modules/getline (License): Likewise.
20726         * modules/getlogin_r (License): Likewise.
20727         * modules/getpass (License): Likewise.
20728         * modules/gettimeofday (License): Likewise.
20729         * modules/glob (License): Likewise.
20730         * modules/inet_ntop (License): Likewise.
20731         * modules/malloc (License): Likewise.
20732         * modules/malloca (License): Likewise.
20733         * modules/memmem (License): Likewise.
20734         * modules/mempcpy (License): Likewise.
20735         * modules/memset (License): Likewise.
20736         * modules/minmax (License): Likewise.
20737         * modules/mktime (License): Likewise.
20738         * modules/netinet_in (License): Likewise.
20739         * modules/pathmax (License): Likewise.
20740         * modules/poll (License): Likewise.
20741         * modules/regex (License): Likewise.
20742         * modules/snprintf (License): Likewise.
20743         * modules/stdbool (License): Likewise.
20744         * modules/stdint (License): Likewise.
20745         * modules/stdio (License): Likewise.
20746         * modules/strcase (License): Likewise.
20747         * modules/strcasestr (License): Likewise.
20748         * modules/strdup (License): Likewise.
20749         * modules/string (License): Likewise.
20750         * modules/strndup (License): Likewise.
20751         * modules/strnlen (License): Likewise.
20752         * modules/strpbrk (License): Likewise.
20753         * modules/strptime (License): Likewise.
20754         * modules/strsep (License): Likewise.
20755         * modules/sys_select (License): Likewise.
20756         * modules/sys_socket (License): Likewise.
20757         * modules/sys_stat (License): Likewise.
20758         * modules/sys_time (License): Likewise.
20759         * modules/time (License): Likewise.
20760         * modules/time_r (License): Likewise.
20761         * modules/timegm (License): Likewise.
20762         * modules/unistd (License): Likewise.
20763         * modules/vsnprintf (License): Likewise.
20764         * modules/wctype (License): Likewise.
20765
20766 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20767
20768         * modules/argz (License): LGPLv2+.
20769
20770 2007-07-15  Karl Berry  <karl@gnu.org>
20771
20772         * doc/gnulib.texi: revise node structure per new fdl.texi.
20773
20774 2007-07-14  Bruno Haible  <bruno@clisp.org>
20775
20776         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
20777         the output file.
20778         * lib/uniname/uninames.h: Regenerated.
20779
20780 2007-07-14  Karl Berry  <karl@gnu.org>
20781
20782         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
20783         omitting sectioning and index commands.
20784
20785 2007-07-13  Bruno Haible  <bruno@clisp.org>
20786
20787         New gnulib-tool option --more-symlinks.
20788         * gnulib-tool (func_usage): Document --more-symlinks.
20789         (do_copyrights): New variable.
20790         Recognize option --more-symlinks.
20791         (func_import): Don't add a copyright notice transform to
20792         sed_transform_lib_file if do_copyrights is empty.
20793
20794 2007-07-13  Bruno Haible  <bruno@clisp.org>
20795
20796         * lib/vasnprintf.c (decimal_point_char): Define also if
20797         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
20798         && !NEED_PRINTF_DIRECTIVE_A.
20799         Reported by Clemens Koller <clemens.koller@anagramm.de> via
20800         Gary V. Vaughan <gary@gnu.org>.
20801
20802 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
20803
20804         * lib/inttypes_.h: Undo previous change, since it was fixed
20805         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
20806
20807 2007-07-13  Bruno Haible  <bruno@clisp.org>
20808
20809         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
20810         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
20811
20812 2007-07-13  Jim Meyering  <jim@meyering.net>
20813
20814         df: Don't fail for Tru64's "file-on-file mount".
20815         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
20816         so we fall through and use statfs instead.  Details here:
20817         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
20818         Reported by Albert Chin.
20819
20820 2007-07-13  Bruno Haible  <bruno@clisp.org>
20821
20822         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
20823         * modules/configmake (License): Likewise.
20824         * modules/gettext (License): Likewise.
20825         * modules/gettext-h (License): Likewise.
20826         * modules/include_next (License): Likewise.
20827         * modules/link-warning (License): Likewise.
20828         * modules/localcharset (License): Likewise.
20829         * modules/localename (License): Likewise.
20830         * modules/lock (License): Likewise.
20831         * modules/relocatable-lib-lgpl (License): Likewise.
20832         * modules/size_max (License): Likewise.
20833         * modules/vasnprintf (License): Likewise.
20834         * modules/wchar (License): Likewise.
20835         * modules/xsize (License): Likewise.
20836
20837 2007-07-13  Bruno Haible  <bruno@clisp.org>
20838
20839         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
20840         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
20841
20842 2007-07-12  Bruno Haible  <bruno@clisp.org>
20843
20844         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
20845         in the modules files.
20846
20847 2007-07-11  Karl Berry  <karl@gnu.org>
20848
20849         * MODULES.html.sh (func_module): use
20850          sed -e '\|^'"${includefile}"'$|d'
20851          instead of /.../d, to avoid errors on $includefile's containing /.
20852
20853 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
20854
20855         * gnulib-tool (func_import): Avoid duplication of --avoid
20856         statements
20857         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
20858         names to `_' in variable names.
20859
20860 2007-07-10  Eric Blake  <ebb9@byu.net>
20861
20862         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
20863         * NEWS: Document this change.
20864
20865 2007-07-08  Bruno Haible  <bruno@clisp.org>
20866
20867         Update to Unicode 5.0.
20868         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
20869         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
20870         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
20871         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
20872         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
20873         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
20874         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
20875         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
20876         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
20877         U+10A3F, U+1D242..U+1D244.
20878         (nonspacing_table_ind): Update.
20879         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
20880         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
20881
20882 2007-07-08  Bruno Haible  <bruno@clisp.org>
20883
20884         Update to Unicode 5.0.
20885         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
20886         code transform. Extend the name index field of unicode_name_to_code and
20887         unicode_code_to_name from 16 to 24 bits.
20888         * lib/uniname/uniname.c (unicode_character_name,
20889         unicode_name_character): Add the range 0x12xxx to the code transform.
20890         * lib/uniname/uninames.h: Regenerated.
20891         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
20892
20893 2007-07-07  Bruno Haible  <bruno@clisp.org>
20894
20895         * modules/wcwidth-tests: New file.
20896         * tests/test-wcwidth.c: New file.
20897
20898         Work around MacOS X wcwidth() bug.
20899         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
20900         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
20901         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
20902         original wcwidth in non-UTF-8 locales.
20903         * modules/wcwidth (Depends-on): Add localcharset, streq,
20904         uniwidth/width.
20905         * doc/functions/wcwidth.texi: Update.
20906
20907 2007-07-07  Bruno Haible  <bruno@clisp.org>
20908
20909         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
20910         (wcwidth): New declaration.
20911         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
20912         macros.
20913         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
20914         here. Prepare for creating <wchar.h> unconditionally.
20915         * modules/wchar (Depends-on): Add link-warning.
20916         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
20917         REPLACE_WCWIDTH, and GL_LINK_WARNING.
20918         * lib/wcwidth.h: Remove file.
20919         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
20920         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
20921         * modules/wcwidth (Files): Remove lib/wcwidth.h.
20922         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
20923         (Include): Replace wcwidth.h with <wchar.h>.
20924         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
20925         * lib/mbchar.h: Don't include wcwidth.h.
20926         * lib/mbswidth.c: Likewise.
20927         * NEWS: Mention the change.
20928
20929 2007-07-07  Bruno Haible  <bruno@clisp.org>
20930
20931         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
20932         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
20933         definition with an external declaration.
20934         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
20935         defined as a function. Remove AC_C_INLINE requirement.
20936         * modules/wcwidth (Files): Add lib/wcwidth.c.
20937         (Makefile.am): Remove redundant statement.
20938
20939 2007-07-07  Bruno Haible  <bruno@clisp.org>
20940
20941         * MODULES.html.sh (Unicode string functions): Add the new modules.
20942
20943         * tests/uniwidth/test-u32-strwidth.c: New file.
20944         * modules/uniwidth/u32-strwidth-tests: New file.
20945
20946         * lib/uniwidth/u32-strwidth.c: New file.
20947         * modules/uniwidth/u32-strwidth: New file.
20948
20949         * tests/uniwidth/test-u16-strwidth.c: New file.
20950         * modules/uniwidth/u16-strwidth-tests: New file.
20951
20952         * lib/uniwidth/u16-strwidth.c: New file.
20953         * modules/uniwidth/u16-strwidth: New file.
20954
20955         * tests/uniwidth/test-u8-strwidth.c: New file.
20956         * modules/uniwidth/u8-strwidth-tests: New file.
20957
20958         * lib/uniwidth/u8-strwidth.c: New file.
20959         * modules/uniwidth/u8-strwidth: New file.
20960
20961         * tests/uniwidth/test-u32-width.c: New file.
20962         * modules/uniwidth/u32-width-tests: New file.
20963
20964         * lib/uniwidth/u32-width.c: New file.
20965         * modules/uniwidth/u32-width: New file.
20966
20967         * tests/uniwidth/test-u16-width.c: New file.
20968         * modules/uniwidth/u16-width-tests: New file.
20969
20970         * lib/uniwidth/u16-width.c: New file.
20971         * modules/uniwidth/u16-width: New file.
20972
20973         * tests/uniwidth/test-u8-width.c: New file.
20974         * modules/uniwidth/u8-width-tests: New file.
20975
20976         * lib/uniwidth/u8-width.c: New file.
20977         * modules/uniwidth/u8-width: New file.
20978
20979         * tests/uniwidth/test-uc_width.c: New file.
20980         * modules/uniwidth/width-tests: New file.
20981
20982         * lib/uniwidth/width.c: New file, from GNU libiconv.
20983         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
20984         * modules/uniwidth/width: New file.
20985
20986         * lib/uniwidth.h: New file, from GNU libiconv.
20987         * modules/uniwidth/base: New file.
20988
20989 2007-07-07  Bruno Haible  <bruno@clisp.org>
20990
20991         * lib/uniname.h: New file, from GNU gettext.
20992         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
20993         * lib/uniname/uninames.h: New file, from GNU gettext.
20994         * lib/uniname/uniname.c: New file, from GNU gettext.
20995         * tests/uniname/test-uninames.sh: New file.
20996         * tests/uniname/test-uninames.c: New file, from GNU gettext.
20997         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
20998         * modules/uniname/base: New file.
20999         * modules/uniname/uniname: New file.
21000         * modules/uniname/uniname-tests: New file.
21001         * MODULES.html.sh (Unicode string functions): Add the new modules.
21002
21003 2007-07-06  Bruno Haible  <bruno@clisp.org>
21004
21005         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
21006
21007 2007-07-06  Bruno Haible  <bruno@clisp.org>
21008
21009         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
21010         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
21011         includes <cygwin/sys_time.h> which includes <sys/select.h> which
21012         include <sys/time.h>.
21013         Reported by Eric Blake.
21014
21015 2007-07-06  Eric Blake  <ebb9@byu.net>
21016
21017         Fix testing canonicalize on cygwin.
21018         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
21019         Revert patch from 2007-06-19.
21020         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
21021         canonicalize module is also in use.
21022         * tests/test-canonicalize.c: New file.
21023         * tests/test-canonicalize.sh: Likewise.
21024         * modules/canonicalize-tests: Likewise.
21025
21026 2007-07-06  Jim Meyering  <jim@meyering.net>
21027
21028         * lib/getugroups.c (getugroups): Detect getgrent failure.
21029         Adjust comment to reflect reality: this function may return -1.
21030
21031 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21032
21033         * build-aux/bootstrap (TP_URL,get_translations): Update to use
21034         the new TP address.
21035         (usage): Fix typo
21036         (gnulib_mk): New variable.
21037
21038 2007-07-05  Jim Meyering  <jim@meyering.net>
21039
21040         Don't let endgrent clobber errno, no matter how improbable.
21041         * lib/getugroups.c (getugroups): Save and restore errno around
21042         endgrent call.
21043
21044         Close the group DB even when failing with 2^31 or more members.
21045         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
21046
21047 2007-07-04  Jim Meyering  <jim@meyering.net>
21048
21049         * lib/getugroups.h: New file.
21050         * lib/getugroups.c: Include "getugroups.h".
21051         Remove uses of "register" keyword.
21052         Move local variable, "cp", down into scope where used.
21053         Give "username" parameter the "const" attribute.
21054         * modules/getugroups (Files): Add lib/getugroups.h
21055
21056 2007-07-04  Karl Berry  <karl@gnu.org>
21057
21058         * MODULES.html.sh (func_all_modules): Complete rename of
21059         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
21060
21061 2007-07-02  Bruno Haible  <bruno@clisp.org>
21062
21063         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
21064         mode, when inttypes.h comes from gnulib.
21065         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
21066
21067 2007-07-02  Simon Josefsson  <simon@josefsson.org>
21068
21069         * NEWS: Mention lgpl module name change.
21070
21071         * modules/lgpl-2.1: Renamed from lgpl.
21072
21073         * NEWS: Mention gpl module name change.
21074
21075         * modules/gpl-3.0: New file, based on gpl-2.0.
21076
21077         * modules/gpl-2.0: Renamed from gpl.
21078
21079         * modules/gpl: Fix filename, doc/gpl.texi is now found at
21080         doc/gpl-2.0.texi.
21081
21082 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
21083
21084         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
21085         #define __STDC_LIMIT_MACROS temporarily while including
21086         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
21087         Problem reported by Joel E. Denny in
21088         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
21089
21090 2007-07-01  Bruno Haible  <bruno@clisp.org>
21091
21092         * lib/unistdio.h: New file.
21093         * lib/unistdio/u-asnprintf.h: New file.
21094         * lib/unistdio/u-asprintf.h: New file.
21095         * lib/unistdio/u-printf-args.c: New file.
21096         * lib/unistdio/u-printf-args.h: New file.
21097         * lib/unistdio/u-printf-parse.h: New file.
21098         * lib/unistdio/u-snprintf.h: New file.
21099         * lib/unistdio/u-sprintf.h: New file.
21100         * lib/unistdio/u-vasprintf.h: New file.
21101         * lib/unistdio/u-vsnprintf.h: New file.
21102         * lib/unistdio/u-vsprintf.h: New file.
21103         * lib/unistdio/ulc-asnprintf.c: New file.
21104         * lib/unistdio/ulc-asprintf.c: New file.
21105         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
21106         * lib/unistdio/ulc-printf-parse.c: New file.
21107         * lib/unistdio/ulc-snprintf.c: New file.
21108         * lib/unistdio/ulc-sprintf.c: New file.
21109         * lib/unistdio/ulc-vasnprintf.c: New file.
21110         * lib/unistdio/ulc-vasprintf.c: New file.
21111         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
21112         * lib/unistdio/ulc-vsnprintf.c: New file.
21113         * lib/unistdio/ulc-vsprintf.c: New file.
21114         * lib/unistdio/u8-asnprintf.c: New file.
21115         * lib/unistdio/u8-asprintf.c: New file.
21116         * lib/unistdio/u8-printf-parse.c: New file.
21117         * lib/unistdio/u8-snprintf.c: New file.
21118         * lib/unistdio/u8-sprintf.c: New file.
21119         * lib/unistdio/u8-vasnprintf.c: New file.
21120         * lib/unistdio/u8-vasprintf.c: New file.
21121         * lib/unistdio/u8-vsnprintf.c: New file.
21122         * lib/unistdio/u8-vsprintf.c: New file.
21123         * lib/unistdio/u8-u8-asnprintf.c: New file.
21124         * lib/unistdio/u8-u8-asprintf.c: New file.
21125         * lib/unistdio/u8-u8-snprintf.c: New file.
21126         * lib/unistdio/u8-u8-sprintf.c: New file.
21127         * lib/unistdio/u8-u8-vasnprintf.c: New file.
21128         * lib/unistdio/u8-u8-vasprintf.c: New file.
21129         * lib/unistdio/u8-u8-vsnprintf.c: New file.
21130         * lib/unistdio/u8-u8-vsprintf.c: New file.
21131         * lib/unistdio/u16-asnprintf.c: New file.
21132         * lib/unistdio/u16-asprintf.c: New file.
21133         * lib/unistdio/u16-printf-parse.c: New file.
21134         * lib/unistdio/u16-snprintf.c: New file.
21135         * lib/unistdio/u16-sprintf.c: New file.
21136         * lib/unistdio/u16-vasnprintf.c: New file.
21137         * lib/unistdio/u16-vasprintf.c: New file.
21138         * lib/unistdio/u16-vsnprintf.c: New file.
21139         * lib/unistdio/u16-vsprintf.c: New file.
21140         * lib/unistdio/u16-u16-asnprintf.c: New file.
21141         * lib/unistdio/u16-u16-asprintf.c: New file.
21142         * lib/unistdio/u16-u16-snprintf.c: New file.
21143         * lib/unistdio/u16-u16-sprintf.c: New file.
21144         * lib/unistdio/u16-u16-vasnprintf.c: New file.
21145         * lib/unistdio/u16-u16-vasprintf.c: New file.
21146         * lib/unistdio/u16-u16-vsnprintf.c: New file.
21147         * lib/unistdio/u16-u16-vsprintf.c: New file.
21148         * lib/unistdio/u32-asnprintf.c: New file.
21149         * lib/unistdio/u32-asprintf.c: New file.
21150         * lib/unistdio/u32-printf-parse.c: New file.
21151         * lib/unistdio/u32-snprintf.c: New file.
21152         * lib/unistdio/u32-sprintf.c: New file.
21153         * lib/unistdio/u32-vasnprintf.c: New file.
21154         * lib/unistdio/u32-vasprintf.c: New file.
21155         * lib/unistdio/u32-vsnprintf.c: New file.
21156         * lib/unistdio/u32-vsprintf.c: New file.
21157         * lib/unistdio/u32-u32-asnprintf.c: New file.
21158         * lib/unistdio/u32-u32-asprintf.c: New file.
21159         * lib/unistdio/u32-u32-snprintf.c: New file.
21160         * lib/unistdio/u32-u32-sprintf.c: New file.
21161         * lib/unistdio/u32-u32-vasnprintf.c: New file.
21162         * lib/unistdio/u32-u32-vasprintf.c: New file.
21163         * lib/unistdio/u32-u32-vsnprintf.c: New file.
21164         * lib/unistdio/u32-u32-vsprintf.c: New file.
21165         * tests/unistdio/test-ulc-asnprintf1.c: New file.
21166         * tests/unistdio/test-ulc-asnprintf1.h: New file.
21167         * tests/unistdio/test-ulc-printf1.h: New file.
21168         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
21169         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
21170         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
21171         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
21172         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
21173         * tests/unistdio/test-ulc-vasprintf1.c: New file.
21174         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
21175         * tests/unistdio/test-ulc-vsprintf1.c: New file.
21176         * tests/unistdio/test-u8-asnprintf1.c: New file.
21177         * tests/unistdio/test-u8-asnprintf1.h: New file.
21178         * tests/unistdio/test-u8-printf1.h: New file.
21179         * tests/unistdio/test-u8-vasnprintf1.c: New file.
21180         * tests/unistdio/test-u8-vasnprintf2.c: New file.
21181         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
21182         * tests/unistdio/test-u8-vasnprintf3.c: New file.
21183         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
21184         * tests/unistdio/test-u8-vasprintf1.c: New file.
21185         * tests/unistdio/test-u8-vsnprintf1.c: New file.
21186         * tests/unistdio/test-u8-vsprintf1.c: New file.
21187         * tests/unistdio/test-u16-asnprintf1.c: New file.
21188         * tests/unistdio/test-u16-asnprintf1.h: New file.
21189         * tests/unistdio/test-u16-printf1.h: New file.
21190         * tests/unistdio/test-u16-vasnprintf1.c: New file.
21191         * tests/unistdio/test-u16-vasnprintf2.c: New file.
21192         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
21193         * tests/unistdio/test-u16-vasnprintf3.c: New file.
21194         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
21195         * tests/unistdio/test-u16-vasprintf1.c: New file.
21196         * tests/unistdio/test-u16-vsnprintf1.c: New file.
21197         * tests/unistdio/test-u16-vsprintf1.c: New file.
21198         * tests/unistdio/test-u32-asnprintf1.c: New file.
21199         * tests/unistdio/test-u32-asnprintf1.h: New file.
21200         * tests/unistdio/test-u32-printf1.h: New file.
21201         * tests/unistdio/test-u32-vasnprintf1.c: New file.
21202         * tests/unistdio/test-u32-vasnprintf2.c: New file.
21203         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
21204         * tests/unistdio/test-u32-vasnprintf3.c: New file.
21205         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
21206         * tests/unistdio/test-u32-vasprintf1.c: New file.
21207         * tests/unistdio/test-u32-vsnprintf1.c: New file.
21208         * tests/unistdio/test-u32-vsprintf1.c: New file.
21209         * modules/unistdio/base: New file.
21210         * modules/unistdio/u-printf-args: New file.
21211         * modules/unistdio/ulc-asnprintf: New file.
21212         * modules/unistdio/ulc-asprintf: New file.
21213         * modules/unistdio/ulc-fprintf: New file.
21214         * modules/unistdio/ulc-printf-parse: New file.
21215         * modules/unistdio/ulc-snprintf: New file.
21216         * modules/unistdio/ulc-sprintf: New file.
21217         * modules/unistdio/ulc-vasnprintf: New file.
21218         * modules/unistdio/ulc-vasprintf: New file.
21219         * modules/unistdio/ulc-vfprintf: New file.
21220         * modules/unistdio/ulc-vsnprintf: New file.
21221         * modules/unistdio/ulc-vsprintf: New file.
21222         * modules/unistdio/u8-asnprintf: New file.
21223         * modules/unistdio/u8-asprintf: New file.
21224         * modules/unistdio/u8-printf-parse: New file.
21225         * modules/unistdio/u8-snprintf: New file.
21226         * modules/unistdio/u8-sprintf: New file.
21227         * modules/unistdio/u8-vasnprintf: New file.
21228         * modules/unistdio/u8-vasprintf: New file.
21229         * modules/unistdio/u8-vsnprintf: New file.
21230         * modules/unistdio/u8-vsprintf: New file.
21231         * modules/unistdio/u8-u8-asnprintf: New file.
21232         * modules/unistdio/u8-u8-asprintf: New file.
21233         * modules/unistdio/u8-u8-snprintf: New file.
21234         * modules/unistdio/u8-u8-sprintf: New file.
21235         * modules/unistdio/u8-u8-vasnprintf: New file.
21236         * modules/unistdio/u8-u8-vasprintf: New file.
21237         * modules/unistdio/u8-u8-vsnprintf: New file.
21238         * modules/unistdio/u8-u8-vsprintf: New file.
21239         * modules/unistdio/u16-asnprintf: New file.
21240         * modules/unistdio/u16-asprintf: New file.
21241         * modules/unistdio/u16-printf-parse: New file.
21242         * modules/unistdio/u16-snprintf: New file.
21243         * modules/unistdio/u16-sprintf: New file.
21244         * modules/unistdio/u16-vasnprintf: New file.
21245         * modules/unistdio/u16-vasprintf: New file.
21246         * modules/unistdio/u16-vsnprintf: New file.
21247         * modules/unistdio/u16-vsprintf: New file.
21248         * modules/unistdio/u16-u16-asnprintf: New file.
21249         * modules/unistdio/u16-u16-asprintf: New file.
21250         * modules/unistdio/u16-u16-snprintf: New file.
21251         * modules/unistdio/u16-u16-sprintf: New file.
21252         * modules/unistdio/u16-u16-vasnprintf: New file.
21253         * modules/unistdio/u16-u16-vasprintf: New file.
21254         * modules/unistdio/u16-u16-vsnprintf: New file.
21255         * modules/unistdio/u16-u16-vsprintf: New file.
21256         * modules/unistdio/u32-asnprintf: New file.
21257         * modules/unistdio/u32-asprintf: New file.
21258         * modules/unistdio/u32-printf-parse: New file.
21259         * modules/unistdio/u32-snprintf: New file.
21260         * modules/unistdio/u32-sprintf: New file.
21261         * modules/unistdio/u32-vasnprintf: New file.
21262         * modules/unistdio/u32-vasprintf: New file.
21263         * modules/unistdio/u32-vsnprintf: New file.
21264         * modules/unistdio/u32-vsprintf: New file.
21265         * modules/unistdio/u32-u32-asnprintf: New file.
21266         * modules/unistdio/u32-u32-asprintf: New file.
21267         * modules/unistdio/u32-u32-snprintf: New file.
21268         * modules/unistdio/u32-u32-sprintf: New file.
21269         * modules/unistdio/u32-u32-vasnprintf: New file.
21270         * modules/unistdio/u32-u32-vasprintf: New file.
21271         * modules/unistdio/u32-u32-vsnprintf: New file.
21272         * modules/unistdio/u32-u32-vsprintf: New file.
21273         * modules/unistdio/ulc-asnprintf-tests: New file.
21274         * modules/unistdio/ulc-vasnprintf-tests: New file.
21275         * modules/unistdio/ulc-vasprintf-tests: New file.
21276         * modules/unistdio/ulc-vsnprintf-tests: New file.
21277         * modules/unistdio/ulc-vsprintf-tests: New file.
21278         * modules/unistdio/u8-asnprintf-tests: New file.
21279         * modules/unistdio/u8-vasnprintf-tests: New file.
21280         * modules/unistdio/u8-vasprintf-tests: New file.
21281         * modules/unistdio/u8-vsnprintf-tests: New file.
21282         * modules/unistdio/u8-vsprintf-tests: New file.
21283         * modules/unistdio/u16-asnprintf-tests: New file.
21284         * modules/unistdio/u16-vasnprintf-tests: New file.
21285         * modules/unistdio/u16-vasprintf-tests: New file.
21286         * modules/unistdio/u16-vsnprintf-tests: New file.
21287         * modules/unistdio/u16-vsprintf-tests: New file.
21288         * modules/unistdio/u32-asnprintf-tests: New file.
21289         * modules/unistdio/u32-vasnprintf-tests: New file.
21290         * modules/unistdio/u32-vasprintf-tests: New file.
21291         * modules/unistdio/u32-vsnprintf-tests: New file.
21292         * modules/unistdio/u32-vsprintf-tests: New file.
21293         * MODULES.html.sh (Unicode string functions): Add the new modules.
21294
21295 2007-07-01  Bruno Haible  <bruno@clisp.org>
21296
21297         * lib/sprintf.c (sprintf): Limit the available length estimation,
21298         to avoid address wraparound.
21299         * lib/vsprintf.c (vsprintf): Likewise.
21300         * modules/sprintf-posix (Dependencies): Add stdint.
21301         * modules/vsprintf-posix (Dependencies): Likewise.
21302
21303 2007-07-01  Bruno Haible  <bruno@clisp.org>
21304
21305         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
21306         Windows PATH as well. Conservative double-quoting. Comments.
21307
21308 2007-07-01  Bruno Haible  <bruno@clisp.org>
21309             Eric Blake  <ebb9@byu.net>
21310             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21311
21312         * gnulib-tool (self_abspathname): Fix algorithm to cope with
21313         empty components in $PATH, denoting '.'.
21314
21315 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21316
21317         * gnulib-tool: Fix indentation.
21318         (func_create_megatestdir): Likewise.
21319         Report by Bruno Haible.
21320
21321 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21322
21323         Sync from Automake.
21324         * build-aux/gnupload: Fix shell portability issues with for loops.
21325         Report by Karl Berry.
21326
21327 2007-06-29  Simon Josefsson  <simon@josefsson.org>
21328
21329         * build-aux/maint.mk (POURL): Use translationproject.org.
21330
21331 2007-06-27  Simon Josefsson  <simon@josefsson.org>
21332             Bruno Haible  <bruno@clisp.org>
21333
21334         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
21335         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
21336         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
21337         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
21338         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
21339
21340 2007-06-27  Bruno Haible  <bruno@clisp.org>
21341
21342         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
21343         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
21344
21345 2007-06-26  Karl Berry  <karl@gnu.org>
21346
21347         * MODULES.html.sh: remove xreadlink-with-size.
21348
21349 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
21350
21351         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
21352         method that I hope also handles the double-include problem noted
21353         by Bruno Haible in
21354         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
21355
21356 2007-06-23  Bruno Haible  <bruno@clisp.org>
21357
21358         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21359         Don't let the 'mostlyclean' target fail if the last subdirectory could
21360         not be removed.
21361         Reported by Karl Berry.
21362
21363 2007-06-23  Bruno Haible  <bruno@clisp.org>
21364
21365         * gnulib-tool (echo): Add a speedier workaround for ksh.
21366         * tests/test-echo.sh: Likewise.
21367
21368 2007-06-23  Bruno Haible  <bruno@clisp.org>
21369
21370         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
21371         * tests/test-echo.sh: Likewise.
21372
21373 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21374
21375         * gnulib-tool (IFS): Initialize early, so we don't set it to
21376         empty later.
21377         (self_abspathname): Rewrite algorithm to set it, reindent.
21378         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
21379         (func_create_megatestdir): Merge some sed scripts.
21380
21381 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
21382
21383         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
21384         exposed by Sun Studio 11 cc on Solaris 8.
21385
21386 2007-06-22  Bruno Haible  <bruno@clisp.org>
21387
21388         * gnulib-tool (echo): Ensure the echo primitive does not interpret
21389         backslashes.
21390         * tests/test-echo.sh: New file.
21391
21392 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21393
21394         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
21395         simplify `sed_replace_build_aux' scripts, they are portable but
21396         echoing them with `echo' is not.
21397         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
21398
21399 2007-06-21  Karl Berry  <karl@gnu.org>
21400
21401         * config/srclist.txt: guess we can't handle the licenses via
21402         srclist at the moment.
21403
21404 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
21405
21406         * MODULES.html.sh: Add include_next.
21407         * modules/include_next: New file.
21408
21409 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
21410
21411         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
21412         INCLUDE_NEXT.
21413         (gl_CHECK_NEXT_HEADERS): New macro.
21414         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
21415         the obsolescent gl_ABSOLUTE_HEADER.
21416         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
21417         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
21418         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
21419         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21420         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21421         * m4/math_h.m4 (gl_MATH_H): Likewise.
21422         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
21423         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21424         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
21425         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21426         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
21427         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
21428         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
21429         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21430         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21431         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
21432         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
21433         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
21434         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
21435         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21436         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21437         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
21438         * m4/inttypes.m4 (gl_INTTYPES_H): Define
21439         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
21440         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
21441         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
21442         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
21443         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
21444         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
21445         * lib/float_.h: Likewise.
21446         * lib/inttypes_.h: Likewise.
21447         * lib/math_.h: Likewise.
21448         * lib/search_.h: Likewise.
21449         * lib/signal_.h: Likewise.
21450         * lib/stdint_.h: Likewise.
21451         * lib/stdio_.h: Likewise.
21452         * lib/stdlib_.h: Likewise.
21453         * lib/string_.h: Likewise.
21454         * lib/sys_stat_.h: Likewise.
21455         * lib/sys_time_.h: Likewise.
21456         * lib/time_.h: Likewise.
21457         * lib/unistd_.h: Likewise.
21458         * lib/wchar_.h: Likewise.
21459         * lib/wctype_.h: Likewise.
21460         * lib/dirent_.h: Likewise.
21461         * lib/iconv_.h: Likewise.
21462         * lib/locale_.h: Likewise.
21463         * lib/netinet_in_.h: Likewise.
21464         * lib/sys_select_.h: Likewise.
21465         * lib/sys_socket_.h: Likewise.
21466         * lib/sysexits_.h: Likewise.
21467         * modules/fcntl (Depends-on): Depend on include_next, not
21468         absolute_header.
21469         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
21470         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
21471         * modules/fchdir: Likewise.
21472         * modules/float: Likewise.
21473         * modules/iconv_open: Likewise.
21474         * modules/inttypes: Likewise.
21475         * modules/locale: Likewise.
21476         * modules/math: Likewise.
21477         * modules/netinet_in: Likewise.
21478         * modules/search: Likewise.
21479         * modules/signal: Likewise.
21480         * modules/stdint: Likewise.
21481         * modules/stdio: Likewise.
21482         * modules/stdlib: Likewise.
21483         * modules/string: Likewise.
21484         * modules/sys_select: Likewise.
21485         * modules/sys_socket: Likewise.
21486         * modules/sys_stat: Likewise.
21487         * modules/sys_time: Likewise.
21488         * modules/sysexits: Likewise.
21489         * modules/time: Likewise.
21490         * modules/unistd: Likewise.
21491         * modules/wchar: Likewise.
21492         * modules/wctype: Likewise.
21493         * modules/sys_stat: Change maintainer to "all".
21494         * modules/unistd: Likewise.
21495
21496 2007-06-20  Karl Berry  <karl@gnu.org>
21497
21498         * config/srclist.txt: track www changes in license files.
21499
21500 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
21501
21502         * build-aux/bootstrap: Remove stray dot.
21503         Make sure build_aux settings are honored when linking
21504         gnulib_extra_files.
21505
21506 2007-06-19  Eric Blake  <ebb9@byu.net>
21507
21508         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
21509         Allow compilation on cygwin.
21510
21511 2007-06-19  Jim Meyering  <jim@meyering.net>
21512
21513         xreadlink-with-size: Remove module.  No longer used.
21514         Ex-callers now use xreadlink or mreadlink-with-size.
21515         * modules/xreadlink-with-size: Remove module.
21516         * lib/xreadlink-with-size.c: Remove file.
21517         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
21518         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
21519         just before the function definition *is* accurate.
21520
21521         Eliminate one way canonicalize_filename_mode could exit.
21522         * lib/canonicalize.c (canonicalize_filename_mode):
21523         Use mreadlink_with_size, not xreadlink_with_size.
21524
21525 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
21526
21527         Detect porting problems to FreeBSD/arm, which has time_t wider than
21528         long int.  Original problem reported for GNU diff by Xin Li in
21529         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
21530         * modules/getdate (Depends-on): Add intprops, verify.
21531         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
21532         is an integer type no wider than long int.
21533
21534 2007-06-18  Jim Meyering  <jim@meyering.net>
21535
21536         New module: mreadlink-with-size.
21537         * MODULES.html.sh: Add mreadlink-with-size.
21538         * modules/mreadlink-with-size: New module
21539         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
21540         not xreadlink-with-size.
21541         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
21542
21543 2007-06-16  Bruno Haible  <bruno@clisp.org>
21544
21545         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
21546         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
21547         Reported by Gary V. Vaughan <gary@gnu.org>.
21548
21549 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
21550
21551         Revamp lchown so that it lives in unistd.h where it belongs.
21552         * lib/lchown.h: Remove.
21553         * lib/dirchownmod.c: Don't include lib/lchown.h.
21554         * lib/fchownat.c: Likewise.
21555         * lib/openat.c: Likewise.
21556         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
21557         does not follow symlinks.
21558         (EOPNOTSUPP): Define if not defined.
21559         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
21560         is defined to 0.
21561         (lchown): New decl.
21562         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
21563         Do not check for lchown decl.
21564         Set REPLACE_LCHOWN.
21565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
21566         REPLACE_LCHOWN.
21567         * modules/chown: Make it clear it follows symlinks.
21568         * modules/lchown: Make it clear it doesn't follow symlinks.
21569         (Files): Remove lib/lchown.h
21570         (Depends-on): Add unistd.
21571         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
21572         (Include): Include <unistd.h>, not "lchown.h".
21573         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
21574         REPLACE_LCHOWN.
21575
21576 2007-06-15  Jim Meyering  <jim@meyering.net>
21577
21578         Change license (GPL to LGPL) of fsusage and dependents.
21579         * modules/fsusage (License): Change to LGPL.
21580         * modules/full-read (License): Likewise.
21581         * modules/full-write (License): Likewise.
21582         * modules/safe-read (License): Likewise.
21583         * modules/safe-write (License): Likewise.
21584
21585 2007-06-14  Ben Pfaff  <blp@gnu.org>
21586
21587         Missing part of allocsa -> malloca transition.
21588         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
21589         gl_MALLOCA.
21590
21591 2007-06-12  Bruno Haible  <bruno@clisp.org>
21592
21593         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
21594         to ia64, x86_64, i386.
21595         Reported by Eric Blake.
21596
21597 2007-06-12  Bruno Haible  <bruno@clisp.org>
21598
21599         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
21600         cross-compiling to x86_64.
21601
21602 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
21603
21604         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
21605         glitch reported by Ralf Wildenhues in
21606         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
21607
21608         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
21609         Vin Shelton.
21610
21611 2007-06-11  Bruno Haible  <bruno@clisp.org>
21612
21613         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
21614         replacement string.
21615         Reported by Eric Blake.
21616
21617 2007-06-10  Bruno Haible  <bruno@clisp.org>
21618
21619         Prepare vasnprintf code for use with Unicode strings.
21620         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
21621         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
21622         TYPE_U32_STRING.
21623         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
21624         a_u32_string variants.
21625         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
21626         * lib/printf-args.c: Don't include config.h and the specification
21627         header if PRINTF_FETCHARGS is already defined.
21628         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
21629         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
21630         TYPE_U16_STRING, TYPE_U32_STRING.
21631         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
21632         u16_directive, u16_directives, u32_directive, u32_directives): New
21633         types.
21634         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
21635         New declarations.
21636         * lib/printf-parse.c: Don't include config.h and the specification
21637         header if PRINTF_PARSE is already defined. Eliminate the set of
21638         parameters for WIDE_CHAR_VERSION; the user of this file must provide
21639         them now. Include c-ctype.h.
21640         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
21641         directive and CHAR_T_ONLY_ASCII.
21642         * lib/vasnprintf.c: Don't include config.h and the specification header
21643         if VASNPRINTF is already defined.
21644         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
21645         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
21646         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
21647         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
21648         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
21649         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
21650         code accordingly.
21651         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
21652         pad_ourselves also in this case, with the 'c' and 's' directives, and
21653         with a different notion of "width".
21654         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
21655
21656 2007-06-10  Bruno Haible  <bruno@clisp.org>
21657
21658         * modules/unistr/u32-mbsnlen: New file.
21659         * lib/unistr/u32-mbsnlen.c: New file.
21660
21661         * modules/unistr/u16-mbsnlen: New file.
21662         * lib/unistr/u16-mbsnlen.c: New file.
21663
21664         * modules/unistr/u8-mbsnlen: New file.
21665         * lib/unistr/u8-mbsnlen.c: New file.
21666
21667         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
21668         declarations.
21669
21670 2007-06-10  Bruno Haible  <bruno@clisp.org>
21671
21672         * lib/string_.h (mbsnlen): New declaration.
21673         * lib/mbsnlen.c: New file.
21674         * m4/mbsnlen.m4: New file.
21675         * modules/mbsnlen: New file.
21676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
21677         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
21678         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
21679
21680 2007-06-10  Bruno Haible  <bruno@clisp.org>
21681
21682         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
21683
21684 2007-06-10  Bruno Haible  <bruno@clisp.org>
21685
21686         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
21687         * lib/mbuiter.h: Likewise.
21688
21689 2007-06-10  Bruno Haible  <bruno@clisp.org>
21690
21691         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
21692         declaration.
21693
21694 2007-06-10  Karl Berry  <karl@gnu.org>
21695
21696         * config/srclist.txt: remove gettext entries, Bruno prefers
21697         to update individually.
21698
21699 2007-06-10  Bruno Haible  <bruno@clisp.org>
21700
21701         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
21702         'maxlen'. Ensure only length + width bytes are allocated, not
21703         length + 1 + width.
21704
21705 2007-06-09  Bruno Haible  <bruno@clisp.org>
21706
21707         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
21708         (CHAR_T): Remove macro.
21709         (VASNPRINTF): Update.
21710
21711 2007-06-09  Bruno Haible  <bruno@clisp.org>
21712
21713         * MODULES.html.sh (Unicode string functions): Add the new modules.
21714
21715         * modules/uniconv/u32-conv-to-enc: New file.
21716         * lib/uniconv/u32-conv-to-enc.c: New file.
21717         * modules/uniconv/u32-conv-to-enc-tests: New file.
21718         * tests/uniconv/test-u32-conv-to-enc.c: New file.
21719
21720         * modules/uniconv/u16-conv-to-enc: New file.
21721         * lib/uniconv/u16-conv-to-enc.c: New file.
21722         * lib/uniconv/u-conv-to-enc.h: New file.
21723         * modules/uniconv/u16-conv-to-enc-tests: New file.
21724         * tests/uniconv/test-u16-conv-to-enc.c: New file.
21725
21726         * modules/uniconv/u8-conv-to-enc: New file.
21727         * lib/uniconv/u8-conv-to-enc.c: New file.
21728         * modules/uniconv/u8-conv-to-enc-tests: New file.
21729         * tests/uniconv/test-u8-conv-to-enc.c: New file.
21730
21731         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
21732         u32_conv_to_encoding): New declarations.
21733
21734 2007-06-09  Bruno Haible  <bruno@clisp.org>
21735
21736         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
21737
21738 2007-06-09  Bruno Haible  <bruno@clisp.org>
21739
21740         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
21741         * modules/malloca: Renamed from modules/allocsa, updated.
21742         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
21743         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
21744         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
21745         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
21746         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
21747         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
21748         * modules/xmalloca: Renamed from modules/xallocsa, updated.
21749         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
21750         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
21751         * modules/c-strcasestr (Depends-on): Update.
21752         * lib/c-strcasestr.c: Update.
21753         * modules/c-strstr (Depends-on): Update.
21754         * lib/c-strstr.c: Update.
21755         * modules/canonicalize-lgpl (Depends-on): Update.
21756         * lib/canonicalize-lgpl.c: Update.
21757         * modules/clean-temp (Depends-on): Update.
21758         * lib/clean-temp.c: Update.
21759         * modules/csharpcomp (Depends-on): Update.
21760         * lib/csharpcomp.c: Update.
21761         * modules/csharpexec (Depends-on): Update.
21762         * lib/csharpexec.c: Update.
21763         * modules/javacomp (Depends-on): Update.
21764         * lib/javacomp.c: Update.
21765         * modules/javaexec (Depends-on): Update.
21766         * lib/javaexec.c: Update.
21767         * modules/mbscasestr (Depends-on): Update.
21768         * lib/mbscasestr.c: Update.
21769         * modules/mbsstr (Depends-on): Update.
21770         * lib/mbsstr.c: Update.
21771         * modules/setenv (Depends-on): Update.
21772         * lib/setenv.c: Update.
21773         * modules/strcasestr (Depends-on): Update.
21774         * lib/strcasestr.c: Update.
21775         * modules/striconveha (Depends-on): Update.
21776         * lib/striconveha.c: Update.
21777         * modules/relocatable-prog-wrapper (Files): Update.
21778         * lib/relocwrapper.c: Update.
21779         * build-aux/install-reloc: Update.
21780         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
21781
21782 2007-06-08  Bruno Haible  <bruno@clisp.org>
21783
21784         Port to uClibc.
21785         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
21786         * lib/fpurge.c (fpurge): Likewise.
21787         * lib/freading.c (freading): Likewise.
21788         * lib/fseeko.c (rpl_fseeko): Likewise.
21789         * lib/fseterr.c (fseterr): Likewise.
21790         * lib/fwriting.c (fwriting): Likewise.
21791         * tests/test-fflush.c (main): Avoid a failure on uClibc.
21792
21793 2007-06-08  Bruno Haible  <bruno@clisp.org>
21794
21795         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
21796         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
21797         * modules/gettext (Files): Add m4/intlmacosx.m4.
21798
21799 2007-06-07  Bruno Haible  <bruno@clisp.org>
21800
21801         * modules/localename-tests: New file.
21802         * tests/test-localename.c: New file.
21803
21804         New module 'localename'.
21805         * lib/localename.h: New file.
21806         * lib/localename.c: New file, from GNU gettext.
21807         * m4/localename.m4: New file.
21808         * modules/localename: New file.
21809
21810 2007-06-07  Bruno Haible  <bruno@clisp.org>
21811
21812         Work around the lack of <wchar.h> on some builds of uClibc.
21813         * doc/headers/wchar.texi: Update.
21814         * lib/wchar_.h: Include <wchar.h> only if it exists.
21815         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
21816         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
21817         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
21818         doesn't exist.
21819         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
21820         * modules/mbfile (Depends-on): Add wchar.
21821         * modules/mbiter (Depends-on): Likewise.
21822         * modules/mbuiter (Depends-on): Likewise.
21823         Reported by Simon Josefsson.
21824
21825 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
21826
21827         Work around problem reported by Steven M. Schweda in
21828         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
21829         Tru64 5.1B with the Compaq compiler environment installed declares
21830         an 'isblank' function but does not define it in the C library.
21831         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
21832         * lib/regex_internal.h (isblank): Likewise.
21833         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
21834         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21835
21836 2007-06-05  Bruno Haible  <bruno@clisp.org>
21837
21838         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
21839         ia64.
21840         * modules/printf-safe: New file.
21841         * modules/fprintf-posix (Depends-on): Add printf-safe.
21842         * modules/printf-posix (Depends-on): Likewise.
21843         * modules/snprintf-posix (Depends-on): Likewise.
21844         * modules/sprintf-posix (Depends-on): Likewise.
21845         * modules/vasnprintf-posix (Depends-on): Likewise.
21846         * modules/vasprintf-posix (Depends-on): Likewise.
21847         * modules/vfprintf-posix (Depends-on): Likewise.
21848         * modules/vprintf-posix (Depends-on): Likewise.
21849         * modules/vsnprintf-posix (Depends-on): Likewise.
21850         * modules/vsprintf-posix (Depends-on): Likewise.
21851         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
21852         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
21853         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
21854         "no" on i386, x86_64, ia64.
21855         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
21856         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
21857         on i386, x86_64, ia64.
21858         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
21859         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
21860         on i386, x86_64, ia64.
21861         * tests/test-vasnprintf-posix.c: Include float.h.
21862         (LDBL80_WORDS): New macro.
21863         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
21864         on i386, x86_64, ia64.
21865         * tests/test-vasprintf-posix.c: Include float.h.
21866         (LDBL80_WORDS): New macro.
21867         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
21868         on i386, x86_64, ia64.
21869         * tests/test-snprintf-posix.c: Include float.h.
21870         * tests/test-sprintf-posix.c: Likewise.
21871         * tests/test-vsnprintf-posix.c: Likewise.
21872         * tests/test-vsprintf-posix.c: Likewise.
21873
21874 2007-06-05  Bruno Haible  <bruno@clisp.org>
21875
21876         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
21877         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
21878         non-IEEE numbers on i386, x86_64, ia64.
21879         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
21880         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
21881         * tests/test-isnanl.h: Include float.h.
21882         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
21883
21884 2007-06-05  Bruno Haible  <bruno@clisp.org>
21885
21886         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
21887         also the %a / %A. Handle the %a / %A code before this extra handling.
21888
21889 2007-06-05  Bruno Haible  <bruno@clisp.org>
21890
21891         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
21892         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
21893
21894 2007-06-05  Bruno Haible  <bruno@clisp.org>
21895
21896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
21897         typo in variable name.
21898
21899 2007-06-05  Eric Blake  <ebb9@byu.net>
21900
21901         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
21902         Reported by Simon Josefsson.
21903
21904 2007-06-04  Bruno Haible  <bruno@clisp.org>
21905
21906         Avoid test failures on some PowerPC platforms.
21907         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
21908         Define differently for PowerPC.
21909         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
21910         Reported by Gary V. Vaughan <gary@gnu.org>.
21911
21912 2007-06-02  Bruno Haible  <bruno@clisp.org>
21913
21914         Fix test-stdint failure on FreeBSD/ia64.
21915         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
21916         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
21917         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
21918         * doc/headers/stdint.texi: Update.
21919
21920 2007-06-01  Bruno Haible  <bruno@clisp.org>
21921
21922         * tests/test-binary-io.c (main): Pass a third argument to open().
21923         Reported by Gary V. Vaughan <gary@gnu.org>.
21924
21925 2007-06-01  Bruno Haible  <bruno@clisp.org>
21926
21927         * doc/functions/frexpl.texi: Update for mingw.
21928
21929 2007-06-01  Bruno Haible  <bruno@clisp.org>
21930
21931         * tests/test-lseek.c (main): Disable test of errno for invalid third
21932         argument.
21933         * doc/functions/lseek.texi: Update.
21934         Reported by Gary V. Vaughan <gary@gnu.org>.
21935
21936 2007-05-28  Bruno Haible  <bruno@clisp.org>
21937
21938         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
21939
21940 2007-05-31  Eric Blake  <ebb9@byu.net>
21941
21942         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
21943         cross compiling.
21944
21945 2007-05-30  Eric Blake  <ebb9@byu.net>
21946         and Bruno Haible  <bruno@clisp.org>
21947
21948         Work around mingw test failures exposed by m4-1.4.9b.
21949         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
21950         * tests/test-unistd.c: Disable uid_t and git_t tests for the
21951         moment.
21952
21953 2007-05-30  Bruno Haible  <bruno@clisp.org>
21954
21955         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
21956         assuming that they are closed. Needed on HP-UX 11.
21957
21958 2007-05-29  Bruno Haible  <bruno@clisp.org>
21959
21960         Fix a problem with #include_next.
21961         * lib/dirent_.h: Split the double-inclusion guard.
21962         * lib/fcntl_.h: Likewise.
21963         * lib/float_.h: Likewise.
21964         * lib/iconv_.h: Likewise.
21965         * lib/inttypes_.h: Likewise.
21966         * lib/locale_.h: Likewise.
21967         * lib/math_.h: Likewise.
21968         * lib/netinet_in_.h: Likewise.
21969         * lib/search_.h: Likewise.
21970         * lib/signal_.h: Likewise.
21971         * lib/stdint_.h: Likewise.
21972         * lib/stdio_.h: Likewise.
21973         * lib/stdlib_.h: Likewise.
21974         * lib/string_.h: Likewise.
21975         * lib/sys_select_.h: Likewise.
21976         * lib/sys_socket_.h: Likewise.
21977         * lib/sys_stat_.h: Likewise.
21978         * lib/sys_time_.h: Likewise.
21979         * lib/sysexits_.h: Likewise.
21980         * lib/time_.h: Likewise.
21981         * lib/unistd_.h: Likewise.
21982         * lib/wchar_.h: Likewise.
21983         * lib/wctype_.h: Likewise.
21984
21985 2007-05-29  Bruno Haible  <bruno@clisp.org>
21986
21987         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
21988         for the moment.
21989
21990 2007-05-29  Bruno Haible  <bruno@clisp.org>
21991
21992         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
21993         invocation.
21994         Reported by Eric Blake.
21995
21996 2007-05-29  Bruno Haible  <bruno@clisp.org>
21997
21998         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
21999         compiling case.
22000
22001 2007-05-29  Eric Blake  <ebb9@byu.net>
22002             Bruno Haible  <bruno@clisp.org>
22003
22004         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
22005         cross compiles.
22006
22007 2007-05-28  Eric Blake  <ebb9@byu.net>
22008
22009         * modules/closein-tests (test_closein_LDADD): Support test on
22010         cygwin with libtool.
22011
22012 2007-05-28  Bruno Haible  <bruno@clisp.org>
22013
22014         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
22015         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
22016         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
22017         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
22018         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
22019         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
22020         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
22021         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
22022         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
22023
22024 2007-05-28  Eric Blake  <ebb9@byu.net>
22025
22026         Unconditionally include <config.h> in unit tests.
22027         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
22028         * tests/test-allocsa.c, tests/test-arcfour.c,
22029         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
22030         tests/test-array_list.c, tests/test-array_oset.c,
22031         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
22032         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
22033         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
22034         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
22035         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
22036         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
22037         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
22038         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
22039         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
22040         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
22041         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
22042         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
22043         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
22044         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
22045         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
22046         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
22047         test-md5.c, test-memmem.c, test-printf-posix.c,
22048         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
22049         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
22050         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
22051         test-strcasestr.c, test-striconv.c, test-striconveh.c,
22052         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
22053         test-vasnprintf-posix2.c, test-vasnprintf.c,
22054         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
22055         test-vfprintf-posix.c, test-vprintf-posix.c,
22056         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
22057         test-xvasprintf.c: Likewise.
22058
22059 2007-05-28  Bruno Haible  <bruno@clisp.org>
22060
22061         * gnulib-tool (func_import): Remember the --with-tests command-line
22062         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
22063         Reported by Eric Blake.
22064
22065 2007-05-28  Bruno Haible  <bruno@clisp.org>
22066
22067         * modules/ftell-tests: New file.
22068         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
22069         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
22070
22071         * lib/ftell.c: New file.
22072         * modules/ftell: New file.
22073         * m4/ftell.m4: New file.
22074         * doc/functions/ftell.texi: Update.
22075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
22076         REPLACE_FTELL.
22077         * lib/stdio_.h (rpl_ftell): New declaration.
22078         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
22079         REPLACE_FTELL.
22080
22081 2007-05-28  Eric Blake  <ebb9@byu.net>
22082
22083         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
22084
22085 2007-05-28  Bruno Haible  <bruno@clisp.org>
22086
22087         * modules/fseek-tests: New file.
22088         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
22089         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
22090
22091         * lib/fseek.c: New file.
22092         * modules/fseek: New file.
22093         * m4/fseek.m4: New file.
22094         * doc/functions/fseek.texi: Update.
22095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
22096         REPLACE_FSEEK.
22097         * lib/stdio_.h (rpl_fseek): New declaration.
22098         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
22099         REPLACE_FSEEK.
22100
22101 2007-05-28  Bruno Haible  <bruno@clisp.org>
22102
22103         * lib/stdio_.h (fflush): More comments.
22104
22105 2007-05-28  Bruno Haible  <bruno@clisp.org>
22106
22107         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
22108         runtime test.
22109
22110 2007-05-28  Eric Blake  <ebb9@byu.net>
22111
22112         Improve lseek module.
22113         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
22114         * lib/unistd_.h (lseek): Scale back link warning message.
22115         * tests/test-lseek.c: Beef up test.
22116         * tests/test-lseek.sh: Exercise more facets of lseek.
22117         Reported by Bruno Haible.
22118
22119 2007-05-28  Bruno Haible  <bruno@clisp.org>
22120
22121         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
22122         to define.
22123
22124 2007-05-27  Bruno Haible  <bruno@clisp.org>
22125
22126         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
22127
22128 2007-05-27  Bruno Haible  <bruno@clisp.org>
22129
22130         * modules/openmp: New file.
22131         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
22132         Noah Misch.
22133
22134 2007-05-26  Bruno Haible  <bruno@clisp.org>
22135
22136         * modules/chdir-long (Depends-on): Add fchdir.
22137         * modules/chdir-safer (Depends-on): Likewise.
22138         * modules/fts (Depends-on): Likewise.
22139         * modules/fts-lgpl (Depends-on): Likewise.
22140         * modules/openat (Depends-on): Likewise.
22141         * modules/savewd (Depends-on): Likewise.
22142
22143 2007-05-24  Eric Blake  <ebb9@byu.net>
22144
22145         Fix lseek on mingw.
22146         * modules/lseek: New module.
22147         * m4/lseek.m4: New file.
22148         * lib/lseek.c: New file.
22149         * modules/lseek-tests: New file.
22150         * tests/test-lseek.c: New file.
22151         * tests/test-lseek.sh: New file.
22152         * MODULES.html.sh: Document lseek module.
22153         * modules/fflush (Depends-on): Add lseek, fseeko.
22154         * modules/fseeko (Depends-on): Likewise.
22155         * modules/ftello (Depends-on): Likewise.
22156         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
22157         broken.
22158         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
22159         broken.
22160         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
22161         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
22162         * lib/ftello.c (rpl_ftello): Likewise.
22163         * tests/test-fseeko.c (main): Test this.
22164         * tests/test-fseeko.sh: Likewise.
22165         * tests/test-ftello.c (main): Likewise.
22166         * tests/test-ftello.sh: Likewise.
22167         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
22168         implies replacing fseek.
22169         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
22170         HAVE_FTELLO.
22171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
22172         * modules/unistd (Makefile.am): Likewise.
22173         * lib/unistd_.h (lseek): Declare a replacement.
22174         * doc/functions/lseek.texi (lseek): Document this fix.
22175         * doc/functions/fseek.texi (fseek): Likewise.
22176         * doc/functions/ftell.texi (ftell): Likewise.
22177
22178 2007-05-24  Bruno Haible  <bruno@clisp.org>
22179
22180         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
22181         in the printed representation of a NaN.
22182         * tests/test-vasprintf-posix.c (test_function): Likewise.
22183         * tests/test-snprintf-posix.h (test_function): Likewise.
22184         * tests/test-sprintf-posix.h (test_function): Likewise.
22185         Reported by Eric Blake.
22186
22187 2007-05-23  Eric Blake  <ebb9@byu.net>
22188
22189         Fix fseeko/ftello on cygwin 1.5.24.
22190         * doc/functions/fseeko.texi (fseeko): Document the fix.
22191         * doc/functions/ftello.texi (ftello): Document the fix.
22192         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
22193         * doc/functions/stdout.text (stdout): New file.
22194         * doc/functions/stderr.text (stderr): New file.
22195         * doc/gnulib.texi (Function Substitutes): Use new files.
22196         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
22197         prior to 1.7.0.
22198         * tests/test-ftello.c (main): Likewise for ftello.
22199         * tests/test-fseeko.sh: New file.
22200         * tests/test-ftello.sh: New file.
22201         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
22202         with seekable stdin.
22203         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
22204         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
22205         (gl_REPLACE_FSEEKO): New macro.
22206         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
22207         * modules/fseeko (Files): Distribute fseeko.c.
22208         * modules/ftello (Files): Distribute ftello.c.
22209         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
22210         mode.
22211         * lib/ftello.c (rpl_ftello): New file.
22212         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
22213         fseeko, ftello.
22214         (gl_STDIN_LARGE_OFFSET): New macro.
22215         * modules/stdio (Makefile.am): Perform the replacement.
22216         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
22217
22218 2007-05-23  Bruno Haible  <bruno@clisp.org>
22219
22220         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
22221         GNULIB_POSIXCHECK is defined.
22222
22223 2007-05-21  Bruno Haible  <bruno@clisp.org>
22224
22225         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
22226         Check also the output for NaN arguments. When cross-compiling, guess
22227         no on IRIX.
22228         * lib/vasnprintf.c: Update comments.
22229         * tests/test-vasnprintf-posix.c (strisnan): New function.
22230         (test_function): Use it.
22231         * tests/test-vasprintf-posix.c (strisnan): New function.
22232         (test_function): Use it.
22233         * tests/test-snprintf-posix.h (strisnan): New function.
22234         (test_function): Use it.
22235         * tests/test-sprintf-posix.h (strisnan): New function.
22236         (test_function): Use it.
22237         Reported by Eric Blake.
22238
22239 2007-05-20  Bruno Haible  <bruno@clisp.org>
22240
22241         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
22242         numbers that fails on BeOS.
22243         * doc/functions/frexpl.texi: Update.
22244
22245 2007-05-20  Jim Meyering  <jim@meyering.net>
22246
22247         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
22248         forced upon us by glibc-2.6.
22249
22250 2007-05-20  Bruno Haible  <bruno@clisp.org>
22251
22252         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
22253         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
22254         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
22255         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
22256         NEED_PRINTF_INFINITE.
22257         (is_infinitel): New function.
22258         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
22259         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
22260         gl_PREREQ_VASNPRINTF_INFINITE.
22261         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
22262         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22263         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
22264         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
22265         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
22266         gl_PREREQ_VASNPRINTF_INFINITE.
22267         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22268         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22269         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22270         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22271         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22272         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22273         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22274         * doc/functions/fprintf.texi: Update.
22275         * doc/functions/printf.texi: Update.
22276         * doc/functions/snprintf.texi: Update.
22277         * doc/functions/sprintf.texi: Update.
22278         * doc/functions/vfprintf.texi: Update.
22279         * doc/functions/vprintf.texi: Update.
22280         * doc/functions/vsnprintf.texi: Update.
22281         * doc/functions/vsprintf.texi: Update.
22282
22283 2007-05-20  Bruno Haible  <bruno@clisp.org>
22284
22285         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
22286         was not found in libc.
22287         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22288
22289 2007-05-20  Bruno Haible  <bruno@clisp.org>
22290
22291         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
22292         printed as "-nan" instead of "nan".
22293         * tests/test-vasprintf-posix.c (test_function): Likewise.
22294         * tests/test-snprintf-posix.h (test_function): Likewise.
22295         * tests/test-sprintf-posix.h (test_function): Likewise.
22296         Needed for HP-UX 11.
22297
22298 2007-05-20  Jim Meyering  <jim@meyering.net>
22299
22300         Fix buggy test for the fchownat-deref bug.
22301         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
22302         symlink required for the run-test.  Without it, this test would
22303         always declare that fchownat doesn't work, and client code would
22304         unnecessarily use the replacement function with fixed libc.
22305         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
22306         Reported by Greg Schafer.
22307
22308 2007-05-19  Bruno Haible  <bruno@clisp.org>
22309
22310         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
22311         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
22312         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
22313         Needed for IRIX 6.5 and Solaris 2.5.1.
22314
22315 2007-05-19  Bruno Haible  <bruno@clisp.org>
22316
22317         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
22318         (test_function): Skip tests involving -0.0 on platforms where
22319         -0.0 = 0.0.
22320         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
22321         (test_function): Skip tests involving -0.0 on platforms where
22322         -0.0 = 0.0.
22323         * tests/test-snprintf-posix.h (have_minus_zero): New function.
22324         (test_function): Skip tests involving -0.0 on platforms where
22325         -0.0 = 0.0.
22326         * tests/test-sprintf-posix.h (have_minus_zero): New function.
22327         (test_function): Skip tests involving -0.0 on platforms where
22328         -0.0 = 0.0.
22329         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
22330         tests.
22331         * tests/test-printf-posix.h (test_function): Likewise.
22332         * tests/test-printf-posix.output: Remove all -0.0 related results.
22333         Needed for IRIX 6.5.
22334
22335 2007-05-19  Bruno Haible  <bruno@clisp.org>
22336
22337         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
22338         printed as "nan0x7fffffff" instead of "nan".
22339         * tests/test-vasprintf-posix.c (test_function): Likewise.
22340         * tests/test-snprintf-posix.h (test_function): Likewise.
22341         * tests/test-sprintf-posix.h (test_function): Likewise.
22342         * tests/test-fprintf-posix.h (NaN): Remove macro.
22343         (test_function): Remove all NaN related tests.
22344         * tests/test-printf-posix.h (NaN): Remove macro.
22345         (test_function): Remove all NaN related tests.
22346         * tests/test-printf-posix.output: Remove all NaN related results.
22347         Needed for IRIX 6.5.
22348
22349 2007-05-19  Bruno Haible  <bruno@clisp.org>
22350
22351         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
22352         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22353
22354 2007-05-19  Bruno Haible  <bruno@clisp.org>
22355
22356         * lib/float_.h: New file.
22357         * m4/float_h.m4: New file.
22358         * modules/float: New file.
22359         * modules/isnanl (Dependencies): Add float.
22360         * modules/isnanl-nolibm (Dependencies): Likewise.
22361         * modules/mathl (Dependencies): Likewise.
22362         * modules/printf-frexpl (Dependencies): Likewise.
22363         * modules/signbit (Dependencies): Likewise.
22364         * modules/vasnprintf (Dependencies): Likewise.
22365         * doc/headers/float.texi: Update.
22366
22367 2007-05-19  Jim Meyering  <jim@meyering.net>
22368
22369         * lib/utimens.c (gl_futimens): Rename from futimens,
22370         now that glibc-2.6 declares futimens.
22371         * lib/utimens.h: Likewise.
22372
22373 2007-05-19  Bruno Haible  <bruno@clisp.org>
22374
22375         Avoid test failures on mingw.
22376         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
22377         * tests/test-printf-posix.sh: Likewise.
22378         * tests/test-vfprintf-posix.sh: Likewise.
22379         * tests/test-vprintf-posix.sh: Likewise.
22380
22381 2007-05-19  Bruno Haible  <bruno@clisp.org>
22382
22383         Fix *printf result for NaN, Inf, -0.0 on mingw.
22384         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
22385         * lib/vasnprintf.c: Include math.h and isnan.h.
22386         (is_infinite_or_zero): New function.
22387         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
22388         values in the %f, %F, %e, %E, %g, %G directives.
22389         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
22390         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22391         gl_PRINTF_INFINITE and test its result. Invoke
22392         gl_PREREQ_VASNPRINTF_INFINITE.
22393         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22394         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22395         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22396         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22397         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22398         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22399         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22400         * doc/functions/fprintf.texi: Update.
22401         * doc/functions/printf.texi: Update.
22402         * doc/functions/snprintf.texi: Update.
22403         * doc/functions/sprintf.texi: Update.
22404         * doc/functions/vfprintf.texi: Update.
22405         * doc/functions/vprintf.texi: Update.
22406         * doc/functions/vsnprintf.texi: Update.
22407         * doc/functions/vsprintf.texi: Update.
22408
22409 2007-05-19  Bruno Haible  <bruno@clisp.org>
22410
22411         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
22412         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
22413         Instead of multiplying with 10^k, set extra_zeroes to k.
22414         (scale10_round_long_double): Remove function.
22415
22416 2007-05-18  Bruno Haible  <bruno@clisp.org>
22417
22418         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
22419         introduced on 2007-05-06.
22420
22421 2007-05-18  Bruno Haible  <bruno@clisp.org>
22422
22423         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
22424         %g directives.
22425         * tests/test-vasprintf-posix.c (test_function): Likewise.
22426         * tests/test-snprintf-posix.h (test_function): Likewise.
22427         * tests/test-sprintf-posix.h (test_function): Likewise.
22428
22429 2007-05-18  Bruno Haible  <bruno@clisp.org>
22430
22431         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
22432         (strmatch): New function.
22433         (test_function): Test the %f directive on numbers of various exponents.
22434         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
22435         (strmatch): New function.
22436         (test_function): Test the %f directive on numbers of various exponents.
22437         * tests/test-snprintf-posix.h (strmatch): New function.
22438         (test_function): Test the %f directive on numbers of various exponents.
22439         * tests/test-sprintf-posix.h (strmatch): New function.
22440         (test_function): Test the %f directive on numbers of various exponents.
22441         * tests/test-snprintf-posix.c (SIZEOF): New macro.
22442         * tests/test-sprintf-posix.c (SIZEOF): New macro.
22443         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
22444         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
22445
22446 2007-05-18  Bruno Haible  <bruno@clisp.org>
22447
22448         Add support for 'long double' number output.
22449         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
22450         * lib/vasnprintf.c: Include math.h and float+.h.
22451         (mp_limb_t): New type.
22452         (GMP_LIMB_BITS): New macro.
22453         (mp_twolimb_t): New type.
22454         (GMP_TWOLIMB_BITS): New macro.
22455         (mpn_t): New type.
22456         (multiply, divide, convert_to_decimal, decode_long_double,
22457         scale10_round_long_double, scale10_round_decimal_long_double,
22458         floorlog10l): New functions.
22459         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
22460         for the %f, %F, %e, %E, %g, %G directives.
22461         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
22462         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22463         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
22464         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
22465         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22466         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22467         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22468         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22469         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22470         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22471         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22472         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
22473         * modules/snprintf-posix (Depends-on): Likewise.
22474         * modules/sprintf-posix (Depends-on): Likewise.
22475         * modules/vasnprintf-posix (Depends-on): Likewise.
22476         * modules/vasprintf-posix (Depends-on): Likewise.
22477         * modules/vfprintf-posix (Depends-on): Likewise.
22478         * modules/vsnprintf-posix (Depends-on): Likewise.
22479         * modules/vsprintf-posix (Depends-on): Likewise.
22480         * modules/vasnprintf (Files): Add lib/float+.h.
22481         * doc/functions/fprintf.texi: Update.
22482         * doc/functions/printf.texi: Update.
22483         * doc/functions/snprintf.texi: Update.
22484         * doc/functions/sprintf.texi: Update.
22485         * doc/functions/vfprintf.texi: Update.
22486         * doc/functions/vprintf.texi: Update.
22487         * doc/functions/vsnprintf.texi: Update.
22488         * doc/functions/vsprintf.texi: Update.
22489
22490 2007-05-18  Bruno Haible  <bruno@clisp.org>
22491
22492         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
22493
22494 2007-05-18  Bruno Haible  <bruno@clisp.org>
22495
22496         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
22497         for printing 64-bit integers. Needed for mingw.
22498
22499 2007-05-18  Bruno Haible  <bruno@clisp.org>
22500
22501         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
22502         gl_FUNC_FREXPL_WORKS.
22503         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
22504
22505 2007-05-18  Bruno Haible  <bruno@clisp.org>
22506
22507         * modules/frexpl-nolibm-tests: New file.
22508
22509         * modules/frexpl-nolibm: New file.
22510         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
22511
22512 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
22513
22514         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
22515         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
22516         GCC 4.2, which otherwise issues a lot of warnings.
22517         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
22518         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
22519         Likewise.
22520         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
22521         * modules/iconv_open (iconv.h): Likewise.
22522         * modules/locale (locale.h): Likewise.
22523         * modules/netinet_in (netinet/in.h): Likewise.
22524         * modules/sys_select (sys_select.h): Likewise.
22525         * modules/sys_socket (sys/socket.h): Likewise.
22526         * modules/sys_stat (sys/stat.h): Likewise.
22527         * modules/sysexits (sysexits.h): Likewise.
22528         * modules/unistd (unistd.h): Likewise.
22529
22530 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22531
22532         * modules/closein-tests (Makefile.am): Distribute
22533         `test-closein.sh'.
22534
22535 2007-05-17  Bruno Haible  <bruno@clisp.org>
22536
22537         * tests/test-printf-posix.output: Renamed from
22538         tests/test-fprintf-posix.out.
22539         * modules/fprintf-posix-tests: Update.
22540         * modules/printf-posix-tests: Update.
22541         * modules/vfprintf-posix-tests: Update.
22542         * modules/vprintf-posix-tests: Update.
22543         * tests/test-fprintf-posix.sh: Update.
22544         * tests/test-printf-posix.sh: Update.
22545         * tests/test-vfprintf-posix.sh: Update.
22546         * tests/test-vprintf-posix.sh: Update.
22547         Reported by Ralf Wildenhues.
22548
22549 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
22550
22551         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
22552         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
22553         GCC 4.2, which otherwise issues a lot of warnings.
22554         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
22555         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
22556         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
22557         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
22558         it should no longer be needed.
22559         * lib/string_.h: Likewise.
22560         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
22561         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
22562         * modules/inttypes (inttypes.h): Likewise.
22563         * modules/math (math.h): Likewise.
22564         * modules/search (search.h): Likewise.
22565         * modules/signal (signal.h): Likewise.
22566         * modules/stdint (stdint.h): Likewise.
22567         * modules/stdio (stdio.h): Likewise.
22568         * modules/stdlib (stdlib.h): Likewise.
22569         * modules/string (string.h): Likewise.
22570         * modules/sys_time (sys/time.h): Likewise.
22571         * modules/time (time.h): Likewise.
22572         * modules/wchar (wchar.h): Likewise.
22573         * modules/wctype (wtype.h): Likewise.
22574
22575 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22576
22577         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
22578
22579 2007-05-13  Bruno Haible  <bruno@clisp.org>
22580
22581         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
22582         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22583         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
22584         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
22585         (gl_PREREQ_STRTOK_R): Don't require it here.
22586
22587 2007-05-13  Bruno Haible  <bruno@clisp.org>
22588
22589         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
22590         when used in C++ mode.
22591
22592 2007-05-12  Bruno Haible  <bruno@clisp.org>
22593
22594         * lib/linebuffer.h: Tweak doc.
22595         * lib/linebuffer.c: Likewise.
22596
22597 2007-05-12  James Youngman  <jay@gnu.org>
22598
22599         * lib/linebuffer.c (readlinebuffer_delim): New function,
22600         like readlinebuffer, but use a caller-specified delimiter.
22601         (readlinebuffer): Just call readlinebuffer_delim with '\n'
22602         as the delimiter.
22603         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
22604
22605 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22606
22607         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
22608         * modules/openat (Files): Remove openat-die.c.
22609         (Depends-on): Add openat-die.
22610         * modules/openat-die: New module.
22611
22612 2007-05-06  Bruno Haible  <bruno@clisp.org>
22613
22614         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
22615         Update with info about Cygwin.
22616         * doc/functions/fprintf.texi: Update.
22617         * doc/functions/printf.texi: Update.
22618         * doc/functions/snprintf.texi: Update.
22619         * doc/functions/sprintf.texi: Update.
22620         * doc/functions/vfprintf.texi: Update.
22621         * doc/functions/vprintf.texi: Update.
22622         * doc/functions/vsnprintf.texi: Update.
22623         * doc/functions/vsprintf.texi: Update.
22624         Reported by Eric Blake.
22625
22626 2007-05-06  Bruno Haible  <bruno@clisp.org>
22627
22628         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
22629         padding ourselves for the floating-point directives.
22630         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
22631         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
22632         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
22633         gl_PRINTF_FLAG_ZERO and test its result. Invoke
22634         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
22635         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22636         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
22637         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22638         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22639         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22640         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22641         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22642         * tests/test-snprintf-posix.h (test_function): Also check the width
22643         and some flags in the %f directive.
22644         * tests/test-sprintf-posix.h (test_function): Likewise.
22645         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22646         * tests/test-vasprintf-posix.c (test_function): Likewise.
22647         * doc/functions/fprintf.texi: Update.
22648         * doc/functions/printf.texi: Update.
22649         * doc/functions/snprintf.texi: Update.
22650         * doc/functions/sprintf.texi: Update.
22651         * doc/functions/vfprintf.texi: Update.
22652         * doc/functions/vprintf.texi: Update.
22653         * doc/functions/vsnprintf.texi: Update.
22654         * doc/functions/vsprintf.texi: Update.
22655
22656 2007-05-06  Bruno Haible  <bruno@clisp.org>
22657
22658         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
22659         pass the ' flag character to sprintf or snprintf.
22660         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
22661         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
22662         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
22663         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
22664         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
22665         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22666         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
22667         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22668         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22669         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22670         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22671         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22672         * tests/test-snprintf-posix.h (test_function): Also check the grouping
22673         flag.
22674         * tests/test-sprintf-posix.h (test_function): Likewise.
22675         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22676         * tests/test-vasprintf-posix.c (test_function): Likewise.
22677         * doc/functions/fprintf.texi: Update.
22678         * doc/functions/printf.texi: Update.
22679         * doc/functions/snprintf.texi: Update.
22680         * doc/functions/sprintf.texi: Update.
22681         * doc/functions/vfprintf.texi: Update.
22682         * doc/functions/vprintf.texi: Update.
22683         * doc/functions/vsnprintf.texi: Update.
22684         * doc/functions/vsprintf.texi: Update.
22685
22686 2007-05-01  Bruno Haible  <bruno@clisp.org>
22687
22688         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
22689
22690 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
22691
22692         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
22693         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
22694
22695 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
22696
22697         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
22698         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
22699         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
22700
22701 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
22702
22703         * lib/argp-help.c (struct hol_entry): New member `ord'.
22704         (HOL_ENTRY_PTRCMP): Use ord for comparison
22705         (hol_sort): Initialize ord.
22706
22707 2007-05-01  Bruno Haible  <bruno@clisp.org>
22708
22709         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
22710         Reported by Eric Blake.
22711         * doc/gnulib.texi (Function Substitutes): Update.
22712
22713 2007-05-01  Bruno Haible  <bruno@clisp.org>
22714
22715         * doc/functions.texi: Remove file, now redundant through
22716         doc/functions/*.texi.
22717
22718 2007-05-01  Bruno Haible  <bruno@clisp.org>
22719
22720         * modules/argp (Depends-on): Add sleep.
22721
22722 2007-05-01  Bruno Haible  <bruno@clisp.org>
22723
22724         * modules/sleep-tests: New file.
22725         * tests/test-sleep.c: New file.
22726
22727         * modules/sleep: New file.
22728         * lib/sleep.c: New file.
22729         * m4/sleep.m4: New file.
22730         * lib/unistd_.h (sleep): New declaration.
22731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
22732         HAVE_SLEEP.
22733         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
22734         * doc/functions/sleep.texi: Document the sleep module.
22735
22736 2007-05-01  Bruno Haible  <bruno@clisp.org>
22737
22738         * lib/sigprocmask.h: Remove file.
22739         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
22740         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
22741         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
22742         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
22743         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
22744         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
22745         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
22746         HAVE_SIGSET_T as a shell variable.
22747         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
22748         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
22749         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
22750         (Depends-on): Add signal. Remove verify.
22751         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
22752         (Include): Mention <signal.h> instead of sigprocmask.h.
22753         * NEWS: Mention the change.
22754         * lib/fatal-signal.c: Don't include sigprocmask.h.
22755
22756 2007-05-01  Bruno Haible  <bruno@clisp.org>
22757
22758         * modules/signal: New file.
22759         * lib/signal_.h: New file.
22760         * m4/signal_h.m4: New file.
22761
22762 2007-05-01  Bruno Haible  <bruno@clisp.org>
22763
22764         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
22765         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
22766         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
22767         HAVE_WCTYPE_CTMP_BUG into wctype.h.
22768
22769 2007-05-01  Bruno Haible  <bruno@clisp.org>
22770
22771         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
22772         configure time.
22773         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
22774         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
22775         * modules/sys_stat (Makefile.am): Substitute their values into
22776         sys/stat.h.
22777
22778 2007-05-01  Bruno Haible  <bruno@clisp.org>
22779
22780         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
22781         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
22782         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
22783
22784 2007-05-01  Bruno Haible  <bruno@clisp.org>
22785
22786         * doc/header/assert.texi: Undo last change: don't mention the gnulib
22787         'assert' module here.
22788
22789 2007-05-01  Bruno Haible  <bruno@clisp.org>
22790
22791         * doc/functions/*.texi: New files.
22792         * doc/functions/google-ranking.txt: New file.
22793         * doc/gnulib.texi (Function Substitutes): New chapter.
22794         (ctime, inet_ntoa): Remove sections.
22795         * doc/ctime.texi: Remove file.
22796         * doc/inet_ntoa.texi: Remove file.
22797         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
22798         dependencies.
22799         (%.info): New rule, specifying a --reference-limit.
22800
22801 2007-05-01  Bruno Haible  <bruno@clisp.org>
22802
22803         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
22804
22805 2007-05-01  Bruno Haible  <bruno@clisp.org>
22806
22807         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
22808         the portability of 'mkdir' to mingw systems.
22809
22810 2007-05-01  Bruno Haible  <bruno@clisp.org>
22811
22812         * doc/headers/google-ranking.txt: New file.
22813
22814 2007-04-30  Eric Blake  <ebb9@byu.net>
22815
22816         Prefer fseeko to fseek.
22817         * modules/getpass (Depends-on): Add fseeko.
22818         * lib/getpass.c (getpass): Use fseeko, not fseek.
22819
22820 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
22821
22822         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
22823         assumes the sorting is stable, while most qsort implementations
22824         are not.  Use argument addresses to ensure they never compare as
22825         equal.
22826
22827         * tests/test-argp-2.sh (usage-indent test): Fix output
22828         (func_compare): Restore diff options
22829         * tests/test-argp.c: Restore #include "progname.h"
22830
22831 2007-04-29  Bruno Haible  <bruno@clisp.org>
22832
22833         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
22834         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
22835         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
22836         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22837         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
22838         (configure.ac): Define CHECK_SNPRINTF_POSIX.
22839         (TESTS, check_PROGRAMS): Add test-snprintf.
22840         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
22841         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
22842         (TESTS, check_PROGRAMS): Add test-vsnprintf.
22843         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
22844         assertions that fail on HP-UX, OSF/1, or IRIX.
22845         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
22846
22847 2007-04-29  Bruno Haible  <bruno@clisp.org>
22848
22849         * MODULES.html.sh (posix_functions): Remove 'contents'.
22850
22851 2007-04-29  Karl Berry  <karl@gnu.org>
22852
22853         * config/srclist.txt (gendocs_template_min): new entry.
22854
22855 2007-04-29  Bruno Haible  <bruno@clisp.org>
22856
22857         Work around fpurge bug on BSD systems.
22858         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
22859         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
22860         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
22861         fpurge to rpl_fpurge if the system already has this function.
22862         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
22863         the case where the system already has this function. Correct invariants
22864         on BSD systems.
22865         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
22866         BSD systems.
22867
22868 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
22869
22870         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
22871         proposed by Sven Verdoolaege.
22872
22873         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
22874         options.
22875         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
22876         (usage and help tests): Update
22877
22878 2007-04-29  Bruno Haible  <bruno@clisp.org>
22879
22880         * tests/test-fflush.c (main): Use a file of size 17, not 10.
22881         Print more information in case of failure. Disable a test on BeOS.
22882
22883 2007-04-29  Bruno Haible  <bruno@clisp.org>
22884
22885         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
22886         This helps debugging on systems on which no gdb is available.
22887
22888 2007-04-29  Bruno Haible  <bruno@clisp.org>
22889
22890         * lib/freading.h: Improve comments.
22891         * lib/fwriting.h: Likewise.
22892         * tests/test-freading.c (main): Don't check freading immediately after
22893         repositioning. Needed for glibc.
22894
22895 2007-04-29  Bruno Haible  <bruno@clisp.org>
22896
22897         * lib/freading.c (freading): Trivial simplification.
22898
22899 2007-04-28  Bruno Haible  <bruno@clisp.org>
22900
22901         * tests/test-fwriting.c (main): Also test the interaction between
22902         fflush and fwriting.
22903         * modules/fwriting-tests (Depends-on): Add fflush.
22904
22905         * tests/test-freading.c (main): Also test the interaction between
22906         fflush and freading.
22907         * modules/freading-tests (Depends-on): Add fflush.
22908
22909 2007-04-28  Bruno Haible  <bruno@clisp.org>
22910
22911         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
22912         fseeko and ftello.
22913         Suggested by Eric Blake.
22914
22915 2007-04-28  Jim Meyering  <jim@meyering.net>
22916
22917         Avoid false-negative in gl_STDINT_H's C99 conformance test.
22918         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
22919         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
22920
22921 2007-04-27  Eric Blake  <ebb9@byu.net>
22922
22923         * doc/headers/assert.texi (assert.h): Document assert module use.
22924
22925 2007-04-27  Bruno Haible  <bruno@clisp.org>
22926
22927         * doc/headers/*.texi: New files.
22928         * doc/gnulib.texi (Header File Substitutes): New chapter.
22929         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
22930         dependencies.
22931         (standards.info ,standards.html, standards.dvi): Update dependencies.
22932         (mostlyclean, clean): New targets.
22933
22934 2007-04-27  Bruno Haible  <bruno@clisp.org>
22935
22936         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
22937         * modules/sysexits (Files, Makefile.am): Update.
22938
22939         * lib/sys_socket_.h: Renamed from lib/socket_.h.
22940         * modules/sys_socket (Files, Makefile.am): Update.
22941
22942         * lib/sys_stat_.h: Renamed from lib/stat_.h.
22943         * modules/sys_stat (Files, Makefile.am): Update.
22944
22945 2007-04-27  Eric Blake  <ebb9@byu.net>
22946
22947         * lib/freading.h: Improve comments.
22948         * lib/fwriting.h: Likewise.
22949         * lib/fflush.c: Likewise.
22950
22951         Fix closein for mingw.
22952         * modules/closein-tests: Add tests for closein.
22953         * tests/test-closein.c: New file.
22954         * tests/test-closein.sh: Likewise.
22955         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
22956         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
22957
22958 2007-04-27  Bruno Haible  <bruno@clisp.org>
22959
22960         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
22961         version is < 6.
22962         * lib/math_.h [__DECC]: Likewise.
22963         * lib/stdio_.h [__DECC]: Likewise.
22964         * lib/stdlib_.h [__DECC]: Likewise.
22965         * lib/string_.h [__DECC]: Likewise.
22966         * lib/time_.h [__DECC]: Likewise.
22967         * lib/wchar_.h [__DECC]: Likewise.
22968         * lib/wctype_.h [__DECC]: Likewise.
22969
22970 2007-04-27  Bruno Haible  <bruno@clisp.org>
22971
22972         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
22973
22974 2007-04-27  Bruno Haible  <bruno@clisp.org>
22975
22976         * lib/fflush.c: Add comments.
22977         * modules/fpurge-tests (Depends-on): Add fflush.
22978         * modules/freadable-tests (Depends-on): Likewise.
22979         * modules/fwritable-tests (Depends-on): Likewise.
22980
22981 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
22982
22983         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
22984         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
22985         Report by Bruno Haible <bruno@clisp.org>.
22986
22987 2007-04-26  Eric Blake  <ebb9@byu.net>
22988
22989         Fix fflush on mingw.
22990         * modules/fflush (Depends-on): Add freading.
22991         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
22992         but unread data.
22993
22994 2007-04-26  Eric Blake  <ebb9@byu.net>
22995         and Bruno Haible  <bruno@clisp.org>
22996
22997         Implement freading and fwriting.
22998         * lib/freading.c: New file.
22999         * lib/freading.h: Likewise.
23000         * m4/freading.m4: Likewise.
23001         * modules/freading: Likewise.
23002         * modules/freading-tests: Likewise.
23003         * tests/test-freading.c: Likewise.
23004         * lib/fwriting.c: New file.
23005         * lib/fwriting.h: Likewise.
23006         * m4/fwriting.m4: Likewise.
23007         * modules/fwriting: Likewise.
23008         * modules/fwriting-tests: Likewise.
23009         * tests/test-fwriting.c: Likewise.
23010         * MODULES.html.sh (File stream based Input/Output): Mention them.
23011
23012 2007-04-26  Bruno Haible  <bruno@clisp.org>
23013
23014         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
23015         'long' when we assume it.
23016         Suggested by Eric Blake.
23017
23018 2007-04-26  Bruno Haible  <bruno@clisp.org>
23019
23020         Ensure fseeko, ftello are declared on glibc systems.
23021         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
23022         * modules/fseeko (configure.ac-early): Likewise.
23023         * modules/ftello (configure.ac-early): Likewise.
23024         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
23025         AC_FUNC_FSEEKO for this.
23026         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
23027         (gl_CHECK_FSEEKO): Remove macro.
23028
23029 2007-04-26  Bruno Haible  <bruno@clisp.org>
23030
23031         * tests/test-fflush.c (main): Also check the ftell result after
23032         fflush and fseek/fseeko.
23033         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
23034         file descriptor position cache in the stream.
23035         * lib/fseeko.c (rpl_fseeko): Likewise.
23036
23037 2007-04-26  Bruno Haible  <bruno@clisp.org>
23038
23039         * modules/fflush-tests (Depends-on): Add fseeko.
23040
23041 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
23042             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23043
23044         * lib/argz_.h: ensure error_t definition is obtained in same
23045         mechanism system argz.h would have.
23046         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
23047         argz facilities are known bad.  Err on the side of caution if
23048         cross-compiling.
23049
23050 2007-04-25  Eric Blake  <ebb9@byu.net>
23051
23052         * lib/fpurge.c (includes): Use stdlib.h for free.
23053         * tests/test-fflush.c (main): Also test fflush-fseeko.
23054
23055 2007-04-25  Bruno Haible  <bruno@clisp.org>
23056
23057         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
23058         * lib/fseeko.c: New file.
23059         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
23060         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
23061         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
23062         gl_FUNC_FSEEKO.
23063         (gl_FUNC_FSEEKO): Invoke it.
23064         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
23065         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
23066         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
23067
23068 2007-04-25  Bruno Haible  <bruno@clisp.org>
23069
23070         * modules/fflush (Depends-on): Add ftello.
23071
23072 2007-04-25  Bruno Haible  <bruno@clisp.org>
23073
23074         * modules/ftello-tests: New file.
23075         * tests/test-ftello.c: New file.
23076
23077         * modules/ftello: New file.
23078         * m4/ftello.m4: New file.
23079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
23080         HAVE_FTELLO.
23081         * lib/stdio_.h (ftello): New declaration.
23082         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
23083         HAVE_FTELLO.
23084
23085 2007-04-25  Bruno Haible  <bruno@clisp.org>
23086
23087         * modules/fseeko-tests: New file.
23088         * tests/test-fseeko.c: New file.
23089
23090         * modules/fseeko: New file.
23091         * m4/fseeko.m4: New file.
23092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
23093         HAVE_FSEEKO.
23094         * lib/stdio_.h (fseeko): New declaration.
23095         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
23096         HAVE_FSEEKO.
23097
23098 2007-04-25  Bruno Haible  <bruno@clisp.org>
23099
23100         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
23101
23102 2007-04-25  Bruno Haible  <bruno@clisp.org>
23103
23104         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
23105         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
23106         * tests/test-unistd.c: Likewise.
23107         * tests/test-fcntl.c: Likewise.
23108
23109 2007-04-23  Eric Blake  <ebb9@byu.net>
23110
23111         * lib/fflush.c: Fix missing include.
23112         Reported by Bruno Haible.
23113
23114 2007-04-23  Bruno Haible  <bruno@clisp.org>
23115
23116         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
23117         Reported by Eric Blake.
23118
23119 2007-04-23  Bruno Haible  <bruno@clisp.org>
23120
23121         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
23122
23123 2007-04-23  Bruno Haible  <bruno@clisp.org>
23124
23125         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
23126
23127 2007-04-23  Bruno Haible  <bruno@clisp.org>
23128
23129         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
23130         Needed on HP-UX 11.
23131
23132 2007-04-16  Eric Blake  <ebb9@byu.net>
23133
23134         Make fflush rely on fpurge.
23135         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
23136         open coding all variants.
23137         * modules/fflush (Depends-on): Add fpurge and unistd.
23138         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
23139         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
23140
23141         Fix --with-tests compilation on cygwin.
23142         * modules/argmatch-tests (Makefile.am): List gnulib library first
23143         in LDADD.
23144         * modules/argp-tests (Makefile.am): Likewise.
23145         * modules/array-list-tests (Makefile.am): Likewise.
23146         * modules/array-oset-tests (Makefile.am): Likewise.
23147         * modules/avltree-list-tests (Makefile.am): Likewise.
23148         * modules/avltree-oset-tests (Makefile.am): Likewise.
23149         * modules/avltreehash-list-tests (Makefile.am): Likewise.
23150         * modules/carray-list-tests (Makefile.am): Likewise.
23151         * modules/dirname-tests (Makefile.am): Likewise.
23152         * modules/frexp-tests (Makefile.am): Likewise.
23153         * modules/isnanl-tests (Makefile.am): Likewise.
23154         * modules/linked-list-tests (Makefile.am): Likewise.
23155         * modules/linkedhash-list-tests (Makefile.am): Likewise.
23156         * modules/lock-tests (Makefile.am): Likewise.
23157         * modules/rbtree-list-tests (Makefile.am): Likewise.
23158         * modules/rbtree-oset-tests (Makefile.am): Likewise.
23159         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
23160         * modules/tls-tests (Makefile.am): Likewise.
23161         * modules/tsearch-tests (Makefile.am): Likewise.
23162         * modules/xvasprintf-tests (Makefile.am): Likewise.
23163
23164         Fix fpurge for cygwin.
23165         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
23166         value.
23167         * modules/fpurge-tests (Depends-on): Clean up trash.
23168
23169 2007-04-16  Simon Josefsson  <simon@josefsson.org>
23170
23171         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
23172
23173         * m4/autobuild.m4: Re-indent.
23174
23175 2007-04-13  Bruno Haible  <bruno@clisp.org>
23176
23177         * modules/fpurge-tests: New file.
23178         * tests/test-fpurge.c: New file.
23179
23180         * modules/fpurge: New file.
23181         * lib/fpurge.h: New file.
23182         * lib/fpurge.c: New file.
23183         * m4/fpurge.m4: New file.
23184
23185 2007-04-13  Bruno Haible  <bruno@clisp.org>
23186
23187         * modules/fbufmode-tests: New file.
23188         * tests/test-fbufmode.c: New file.
23189
23190         * modules/fbufmode: New file.
23191         * lib/fbufmode.h: New file.
23192         * lib/fbufmode.c: New file.
23193         * m4/fbufmode.m4: New file.
23194
23195 2007-04-13  Bruno Haible  <bruno@clisp.org>
23196
23197         * modules/fwritable-tests: New file.
23198         * tests/test-fwritable.c: New file.
23199
23200         * modules/fwritable: New file.
23201         * lib/fwritable.h: New file.
23202         * lib/fwritable.c: New file.
23203         * m4/fwritable.m4: New file.
23204
23205 2007-04-13  Bruno Haible  <bruno@clisp.org>
23206
23207         * modules/freadable-tests: New file.
23208         * tests/test-freadable.c: New file.
23209
23210         * modules/freadable: New file.
23211         * lib/freadable.h: New file.
23212         * lib/freadable.c: New file.
23213         * m4/freadable.m4: New file.
23214
23215 2007-04-13  Bruno Haible  <bruno@clisp.org>
23216
23217         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
23218         MOSTLYCLEANFILES.
23219
23220 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
23221
23222         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
23223         gzip bootstrap.conf to avoid dragging in i18n machinery.
23224         (gnulib_tool_option): Use it.
23225
23226 2007-04-13  Bruno Haible  <bruno@clisp.org>
23227
23228         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
23229         %F directives.
23230         * tests/test-vasprintf-posix.c (test_function): Likewise.
23231         * tests/test-snprintf-posix.h (test_function): Likewise.
23232         * tests/test-sprintf-posix.h (test_function): Likewise.
23233         * tests/test-fprintf-posix.h (test_function): Likewise.
23234         * tests/test-printf-posix.h (test_function): Likewise.
23235         * tests/test-fprintf-posix.out: Likewise.
23236
23237 2007-04-13  Bruno Haible  <bruno@clisp.org>
23238
23239         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
23240         * modules/tls-tests (configure.ac): Likewise.
23241         Reported by Arto C. Nirkko <anirkko@insel.ch>.
23242
23243 2007-04-13  Bruno Haible  <bruno@clisp.org>
23244
23245         * lib/tls.c (glthread_tls_get): Fix return type.
23246         Patch by Arto C. Nirkko <anirkko@insel.ch>.
23247
23248 2007-04-12  Eric Blake  <ebb9@byu.net>
23249
23250         * modules/gettime (Depends-on): Remove gettime.
23251         Reported by Dmitry V. Levin.
23252
23253 2007-04-12  Bruno Haible  <bruno@clisp.org>
23254
23255         * modules/fflush (Include): Mention <stdio.h>.
23256         * modules/strtoimax (Include): Mention <inttypes.h>.
23257         * modules/strtoumax (Include): Likewise.
23258
23259 2007-04-12  Eric Blake  <ebb9@byu.net>
23260
23261         * .cvsignore: New file.
23262         * .gitignore: Likewise.
23263
23264 2007-04-12  Bruno Haible  <bruno@clisp.org>
23265
23266         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
23267         not before, since $(LDADD) often contains libgnu.a.
23268         * modules/striconv-tests (test_striconv_LDADD): Likewise.
23269         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
23270         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
23271         Needed on Cygwin.
23272
23273 2007-04-12  Eric Blake  <ebb9@byu.net>
23274
23275         Work around glibc's failure to flush stdin on fclose.
23276         * lib/closein.c (close_stdin): Flush stdin before closing.
23277
23278         Work around glibc's failure to reset seekable stdin on exit.
23279         * modules/closein: New module.
23280         * lib/closein.c: New file.
23281         * lib/closein.h: Likewise.
23282         * m4/closein.m4: Likewise.
23283         * MODULES.html.sh (File stream based Input/Output): Document it.
23284
23285 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23286
23287         * gnulib-tool: Rename generated 'autobuild' script to
23288         'do-autobuild' in --create-megatestdir output.
23289
23290         * doc/gnulib.texi (Build robot for gnulib): Fix.
23291
23292 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23293
23294         * modules/sysexits (Depends-on): Add absolute-header.
23295
23296 2007-04-12  Eric Blake  <ebb9@byu.net>
23297
23298         No need to preserve errno on success.
23299         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
23300         Reported by Bruno Haible.
23301
23302 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23303
23304         * MODULES.html.sh (Support for maintaining and releasing
23305         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
23306
23307 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23308
23309         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
23310
23311 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23312
23313         * modules/autobuild: New module.
23314
23315         * m4/autobuild.m4: New file.
23316
23317 2007-04-11  Bruno Haible  <bruno@clisp.org>
23318
23319         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
23320         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
23321         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
23322         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
23323         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23324         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23325         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23326         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23327         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23328         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23329         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
23330         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23331         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23332         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
23333         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23334         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23335         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
23336         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23337         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23338         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
23339         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23340         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23341         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
23342         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23343         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23344         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
23345         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23346         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23347         Reported by Eric Blake.
23348
23349 2007-04-11  Bruno Haible  <bruno@clisp.org>
23350
23351         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
23352
23353 2007-04-10  Bruno Haible  <bruno@clisp.org>
23354
23355         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
23356         for NaN and Infinity. Needed on FreeBSD 6.1.
23357         * tests/test-vasnprintf-posix.c (test_function): Undo last change
23358         regarding results for "%010a" of Infinity and NaN.
23359         * tests/test-vasprintf-posix.c (test_function): Likewise.
23360         * tests/test-snprintf-posix.h (test_function): Likewise.
23361         * tests/test-sprintf-posix.h (test_function): Likewise.
23362         * tests/test-fprintf-posix.h (test_function): Likewise.
23363         * tests/test-printf-posix.h (test_function): Likewise.
23364         * tests/test-fprintf-posix.out: Likewise.
23365
23366 2007-04-10  Bruno Haible  <bruno@clisp.org>
23367
23368         * modules/locale-tests: New file.
23369         * tests/test-locale.c: New file.
23370
23371         * modules/locale: New file.
23372         * lib/locale_.h: New file.
23373         * m4/locale_h.m4: New file.
23374
23375 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
23376             Bruno Haible  <bruno@clisp.org>
23377
23378         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
23379         be determined, test for availability of the copysignf, copysign,
23380         copysignl functions.
23381         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
23382         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
23383         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
23384
23385 2007-04-09  Eric Blake  <ebb9@byu.net>
23386
23387         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
23388         * modules/stdio (Makefile.am): Support fflush.
23389         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23390         * modules/fflush: New file.
23391         * lib/fflush.c: Likewise.
23392         * m4/fflush.m4: Likewise.
23393         * modules/fflush-tests: New test.
23394         * tests/test-fflush.c: Likewise.
23395         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
23396
23397 2007-04-06  Bruno Haible  <bruno@clisp.org>
23398
23399         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
23400         (VASNPRINTF): Use signbit for faster determination whether to print a
23401         minus sign.
23402         * modules/vasnprintf (Files): Remove lib/float+.h.
23403         * modules/fprintf-posix (Depends-on): Add signbit.
23404         * modules/snprintf-posix (Depends-on): Likewise.
23405         * modules/sprintf-posix (Depends-on): Likewise.
23406         * modules/vasnprintf-posix (Depends-on): Likewise.
23407         * modules/vasprintf-posix (Depends-on): Likewise.
23408         * modules/vfprintf-posix (Depends-on): Likewise.
23409         * modules/vsnprintf-posix (Depends-on): Likewise.
23410         * modules/vsprintf-posix (Depends-on): Likewise.
23411
23412 2007-04-06  Bruno Haible  <bruno@clisp.org>
23413
23414         * tests/test-frexp.c (main): Test also the sign bit of zero results.
23415         * tests/test-frexpl.c (main): Likewise.
23416         * tests/test-ldexpl.c (main): Likewise.
23417         * modules/frexp-tests (Depends-on): Add signbit.
23418         * modules/frexpl-tests (Depdends-on): Likewise.
23419         * modules/ldexpl-tests (Depdends-on): Likewise.
23420
23421 2007-04-06  Bruno Haible  <bruno@clisp.org>
23422
23423         * modules/signbit-tests: New file.
23424         * tests/test-signbit.c: New file.
23425
23426         * modules/signbit: New file.
23427         * lib/signbitf.c: New file.
23428         * lib/signbitd.c: New file.
23429         * lib/signbitl.c: New file.
23430         * m4/signbit.m4: New file.
23431         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
23432         (signbit): New macro.
23433         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
23434         REPLACE_SIGNBIT.
23435         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
23436         REPLACE_FREXPL into math.h.
23437
23438 2007-04-06  Bruno Haible  <bruno@clisp.org>
23439
23440         * modules/isnanf-nolibm-tests: New file.
23441         * tests/test-isnanf.c: New file.
23442
23443         * modules/isnanf-nolibm: New file.
23444         * lib/isnanf.h: New file.
23445         * lib/isnanf.c: New file.
23446         * lib/isnan.c: Consider the USE_FLOAT macro.
23447         * m4/isnanf.m4: New file.
23448
23449 2007-04-06  Bruno Haible  <bruno@clisp.org>
23450
23451         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
23452         (Link): New section.
23453
23454         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
23455
23456 2007-04-06  Bruno Haible  <bruno@clisp.org>
23457
23458         Assume the 'long double' type.
23459         * m4/longdouble.m4: Remove file.
23460         * config/srclist.txt: Don't mention longdouble.m4.
23461         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
23462         * lib/float+.h: Likewise.
23463         * lib/frexp.c: Likewise.
23464         * lib/printf-args.h: Likewise.
23465         * lib/printf-args.c: Likewise.
23466         * lib/printf-frexp.c: Likewise.
23467         * lib/printf-parse.c: Likewise.
23468         * lib/vasnprintf.c: Likewise.
23469         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
23470         * m4/intl.m4: Likewise.
23471         * m4/isnanl.m4: Likewise.
23472         * m4/printf.m4: Likewise.
23473         * m4/printf-frexpl.m4: Likewise.
23474         * m4/vasnprintf.m4: Likewise.
23475         * modules/allocsa (Files): Remove m4/longdouble.m4.
23476         * modules/gettext (Files): Likewise.
23477         * modules/relocatable-prog-wrapper (Files): Likewise.
23478         * modules/vasnprintf (Files): Likewise.
23479         * modules/isnanl (Files): Likewise.
23480         (Include): Simplify.
23481         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
23482         (Include): Simplify.
23483         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
23484         (Include): Simplify.
23485         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
23486         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23487         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
23488         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23489         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
23490         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23491         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
23492         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23493         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
23494         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23495         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
23496         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23497         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
23498         * tests/test-isnanl.c: Likewise.
23499         * tests/test-snprintf-posix.h: Likewise.
23500         * tests/test-sprintf-posix.h: Likewise.
23501         * tests/test-vasnprintf-posix.c: Likewise.
23502         * tests/test-vasnprintf-posix2.c: Likewise.
23503         * tests/test-vasprintf-posix.c: Likewise.
23504
23505 2007-04-06  Bruno Haible  <bruno@clisp.org>
23506
23507         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
23508         * lib/math_.h [__DECC]: Include the overridden include file through
23509         #include_next, outside the double-inclusion guard.
23510         * lib/stdio_.h [__DECC]: Likewise.
23511         * lib/stdlib_.h [__DECC]: Likewise.
23512         * lib/string_.h [__DECC]: Likewise.
23513         * lib/time_.h [__DECC]: Likewise.
23514         * lib/wchar_.h [__DECC]: Likewise.
23515         * lib/wctype_.h [__DECC]: Likewise.
23516         * lib/inttypes_.h [__DECC]: Likewise.
23517         Reported by Albert Chin <china@thewrittenword.com> in
23518         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
23519
23520 2007-04-04  Eric Blake  <ebb9@byu.net>
23521
23522         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
23523         1.5.x.
23524
23525 2007-04-04  Bruno Haible  <bruno@clisp.org>
23526
23527         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
23528         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
23529
23530 2007-04-04  Bruno Haible  <bruno@clisp.org>
23531
23532         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
23533         results for "%010a" of Infinity and NaN.
23534         * tests/test-vasprintf-posix.c (test_function): Likewise.
23535         * tests/test-snprintf-posix.h (test_function): Likewise.
23536         * tests/test-sprintf-posix.h (test_function): Likewise.
23537         * tests/test-fprintf-posix.h (test_function): Remove these tests.
23538         * tests/test-printf-posix.h (test_function): Likewise.
23539         * tests/test-fprintf-posix.out: Update.
23540         Needed for FreeBSD 6.1.
23541
23542 2007-04-04  Bruno Haible  <bruno@clisp.org>
23543
23544         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
23545         directly used by the gnulib modules nor by gnulib-tool.
23546
23547 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
23548
23549         * DEPENDENCIES: Give overall description of version dependency
23550         desirability.  Use more-typical names for apps.
23551         Add shell, coreutils, diffutils, grep, tar, gzip.
23552
23553 2007-04-04  Simon Josefsson  <simon@josefsson.org>
23554
23555         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
23556
23557 2007-04-04  Karl Berry  <karl@gnu.org>
23558
23559         * MODULES.html.sh (func_module): missing '.
23560
23561 2007-04-03  Bruno Haible  <bruno@clisp.org>
23562
23563         * modules/argmatch-tests (Makefile.am): New variable
23564         test_argmatch_LDADD.
23565         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
23566         * modules/array-list-tests (Makefile.am): New variable
23567         test_array_list_LDADD.
23568         * modules/array-oset-tests (Makefile.am): New variable
23569         test_array_oset_LDADD.
23570         * modules/avltree-list-tests (Makefile.am): New variable
23571         test_avltree_list_LDADD.
23572         * modules/avltree-oset-tests (Makefile.am): New variable
23573         test_avltree_oset_LDADD.
23574         * modules/avltreehash-list-tests (Makefile.am): New variable
23575         test_avltreehash_list_LDADD.
23576         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
23577         test_canonicalize_lgpl_LDADD.
23578         * modules/carray-list-tests (Makefile.am): New variable
23579         test_carray_list_LDADD.
23580         * modules/dirname-tests (Makefile.am): New variable
23581         test_dirname_LDADD.
23582         * modules/linked-list-tests (Makefile.am): New variable
23583         test_linked_list_LDADD.
23584         * modules/linkedhash-list-tests (Makefile.am): New variable
23585         test_linkedhash_list_LDADD.
23586         * modules/rbtree-list-tests (Makefile.am): New variable
23587         test_rbtree_list_LDADD.
23588         * modules/rbtree-oset-tests (Makefile.am): New variable
23589         test_rbtree_oset_LDADD.
23590         * modules/rbtreehash-list-tests (Makefile.am): New variable
23591         test_rbtreehash_list_LDADD.
23592         * modules/xvasprintf-tests (Makefile.am): New variable
23593         test_xvasprintf_LDADD.
23594         Reported by Eric Blake.
23595
23596 2007-04-03  Eric Blake  <ebb9@byu.net>
23597
23598         * DEPENDENCIES: Weaken m4 requirements.
23599
23600 2007-04-03  Bruno Haible  <bruno@clisp.org>
23601
23602         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
23603         * modules/isnanl-tests (configure.ac): Likewise.
23604
23605 2007-04-03  Ben Pfaff  <blp@gnu.org>
23606
23607         * modules/iconv_open: Add $(srcdir)/ to source directory
23608         references in Makefile fragments that call gperf, to fix VPATH
23609         builds.
23610
23611 2007-04-03  Bruno Haible  <bruno@clisp.org>
23612
23613         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
23614         * lib/ldexpl.c: Undo last change.
23615
23616 2007-04-03  Bruno Haible  <bruno@clisp.org>
23617
23618         * modules/printf-frexpl (Depends-on): Undo last change.
23619         (Files): Add m4/ldexpl.m4.
23620
23621 2007-04-03  Bruno Haible  <bruno@clisp.org>
23622
23623         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
23624         * modules/isnanl (Link): New section.
23625
23626         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
23627         * modules/frexp (Link): New section.
23628
23629         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
23630         * modules/frexpl (Link): New section.
23631
23632         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
23633         * modules/ldexpl (Link): New section.
23634
23635 2007-04-03  Bruno Haible  <bruno@clisp.org>
23636
23637         * modules/TEMPLATE-EXTENDED: New file.
23638         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
23639
23640 2007-04-03  Bruno Haible  <bruno@clisp.org>
23641
23642         * DEPENDENCIES: New file.
23643         Suggested by Simon Josefsson.
23644
23645 2007-04-03  Bruno Haible  <bruno@clisp.org>
23646
23647         * doc/gnulib.texi: Escape @.
23648
23649 2007-04-03  James Youngman  <jay@gnu.org>
23650         and Paul Eggert  <eggert@cs.ucla.edu>
23651
23652         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
23653         birthtime on all systems that have birthtime, not just those which
23654         use st_birthtimensec rather than st_birthtim.  Putting zero in
23655         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
23656         that the birth time is not available for files on an NFS mount.
23657
23658 2007-04-03  Simon Josefsson  <simon@josefsson.org>
23659
23660         * modules/memxor: Move back from crypto/, suggested by Bruno.
23661         * modules/crypto/hmac-sha1: Fix memxor dependency.
23662
23663         * modules/crypto/gc: Moved from ../.
23664
23665 2007-04-02  Eric Blake  <ebb9@byu.net>
23666
23667         * lib/ldexpl.c (includes): Avoid libm.
23668
23669         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
23670
23671 2007-04-02  Bruno Haible  <bruno@clisp.org>
23672
23673         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
23674         on IRIX.
23675
23676 2007-04-02  Bruno Haible  <bruno@clisp.org>
23677
23678         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
23679         x86 or x86_64 platforms running MacOS X.
23680         Reported by Ryan Schmidt <@ryandesign.com>.
23681
23682 2007-04-02  Bruno Haible  <bruno@clisp.org>
23683
23684         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
23685         i386.
23686
23687 2007-04-01  Simon Josefsson  <simon@josefsson.org>
23688
23689         * modules/crypto/arcfour: Moved from ../.
23690         * modules/crypto/arcfour-tests: Moved from ../.
23691         * modules/crypto/arctwo: Moved from ../.
23692         * modules/crypto/arctwo-tests: Moved from ../.
23693         * modules/crypto/des: Moved from ../.
23694         * modules/crypto/des-tests: Moved from ../.
23695         * modules/crypto/gc-arcfour: Moved from ../.
23696         * modules/crypto/gc-arcfour-tests: Moved from ../.
23697         * modules/crypto/gc-arctwo: Moved from ../.
23698         * modules/crypto/gc-arctwo-tests: Moved from ../.
23699         * modules/crypto/gc-des: Moved from ../.
23700         * modules/crypto/gc-des-tests: Moved from ../.
23701         * modules/crypto/gc-hmac-md5: Moved from ../.
23702         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
23703         * modules/crypto/gc-hmac-sha1: Moved from ../.
23704         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
23705         * modules/crypto/gc-md2: Moved from ../.
23706         * modules/crypto/gc-md2-tests: Moved from ../.
23707         * modules/crypto/gc-md4: Moved from ../.
23708         * modules/crypto/gc-md4-tests: Moved from ../.
23709         * modules/crypto/gc-md5: Moved from ../.
23710         * modules/crypto/gc-md5-tests: Moved from ../.
23711         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
23712         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
23713         * modules/crypto/gc-random: Moved from ../.
23714         * modules/crypto/gc-rijndael: Moved from ../.
23715         * modules/crypto/gc-rijndael-tests: Moved from ../.
23716         * modules/crypto/gc-sha1: Moved from ../.
23717         * modules/crypto/gc-sha1-tests: Moved from ../.
23718         * modules/crypto/gc-tests: Moved from ../.
23719         * modules/crypto/hmac-md5: Moved from ../.
23720         * modules/crypto/hmac-md5-tests: Moved from ../.
23721         * modules/crypto/hmac-sha1: Moved from ../.
23722         * modules/crypto/hmac-sha1-tests: Moved from ../.
23723         * modules/crypto/md2: Moved from ../.
23724         * modules/crypto/md2-tests: Moved from ../.
23725         * modules/crypto/md4: Moved from ../.
23726         * modules/crypto/md4-tests: Moved from ../.
23727         * modules/crypto/md5: Moved from ../.
23728         * modules/crypto/md5-tests: Moved from ../.
23729         * modules/crypto/memxor: Moved from ../.
23730         * modules/crypto/rijndael: Moved from ../.
23731         * modules/crypto/rijndael-tests: Moved from ../.
23732         * modules/crypto/sha1: Moved from ../.
23733
23734 2007-03-30  James Youngman  <jay@gnu.org>
23735
23736         * tests/test-stat-time.c (prepare_test): use chmod() rather than
23737         rename() to change the ctime of a file (because ctime is unaffected
23738         by rename on jfs2 on AIX 5.1).
23739         (main): Start by doing cleanup, in case a previous run failed leaving
23740         test files behind.
23741
23742 2007-03-31  Bruno Haible  <bruno@clisp.org>
23743
23744         Support old proprietary implementations of iconv.
23745         * modules/iconv_open: New file.
23746         * lib/iconv_.h: New file.
23747         * m4/iconv_h.m4: New file.
23748         * lib/iconv_open.c: New file.
23749         * lib/iconv_open-aix.gperf: New file.
23750         * lib/iconv_open-hpux.gperf: New file.
23751         * lib/iconv_open-irix.gperf: New file.
23752         * lib/iconv_open-osf.gperf: New file.
23753         * m4/iconv_open.m4: New file.
23754         * modules/linebreak (Depends-on): Add iconv_open.
23755         * modules/striconv (Depends-on): Likewise.
23756         * modules/striconveh (Depends-on): Likewise.
23757         * modules/unicodeio (Depends-on): Likewise.
23758         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
23759         (iconv_t)(-1).
23760         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
23761         conversion if cd is (iconv_t)(-1).
23762         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
23763         is not possible.
23764
23765 2007-03-31  Bruno Haible  <bruno@clisp.org>
23766
23767         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
23768         work on Solaris either. Protect also second use of "autodetect_jp".
23769
23770 2007-03-31  Bruno Haible  <bruno@clisp.org>
23771
23772         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
23773         the function is not present.
23774
23775 2007-03-31  Bruno Haible  <bruno@clisp.org>
23776
23777         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
23778         the function is not present.
23779
23780 2007-03-31  Bruno Haible  <bruno@clisp.org>
23781
23782         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
23783         a bug in HP-UX iconv_open().
23784
23785 2007-03-31  Bruno Haible  <bruno@clisp.org>
23786
23787         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
23788         (Mathematics <math.h>): New section, add fpieee.
23789         (Input/output <stdio.h>): Add fseterr.
23790         (Mathematics <math.h>): New section, add printf-frexp.
23791         (Container data structures): Add sublist.
23792         (Core language properties): Add fpucw, inline.
23793         (Functions for greatest-width integer types <inttypes.h>): Add
23794         imaxabs, imaxdiv, inttypes.
23795         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
23796         isnanl-nolibm, ldexp.
23797         (Mathematics <math.h>): New section, add printf-frexpl.
23798         (Support for systems lacking POSIX:2001): Add fprintf-posix,
23799         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
23800         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
23801         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
23802         (Unicode string functions): Add unistr/u*-mbtoucr.
23803         (Java): Add javacomp-script, javaexec-script.
23804         (C#): Add csharpcomp-script, csharpexec-script.
23805         (Support for building libraries and executables): Add havelib,
23806         relocatable-*.
23807         (Support for maintaining and releasing projects): Renamed from
23808         'Support for maintaining and release projects'. Add announce-gen.
23809
23810 2007-03-31  Bruno Haible  <bruno@clisp.org>
23811
23812         * README: Talk primarily about git.
23813         (git and CVS): Renamed from CVS.
23814         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
23815         gnulib is available through git.
23816         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
23817
23818 2007-03-30  Bruno Haible  <bruno@clisp.org>
23819
23820         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
23821         * lib/poll_.h: Likewise.
23822         * lib/stat_.h: Likewise.
23823         * lib/sys_time_.h: Likewise.
23824         * lib/sysexit_.h: Likewise.
23825         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
23826         * lib/stdbool_.h: Likewise.
23827         * lib/byteswap_.h: Add double-inclusion guard.
23828
23829 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
23830
23831         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
23832
23833 2007-03-30  Karl Berry  <karl@gnu.org>
23834
23835         * config/srclist-update: double space after USA in the license
23836         substitution, since that's how it's usually (?) written.
23837
23838 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
23839
23840         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
23841         reported by Bruno Haible.
23842
23843 2007-03-29  Bruno Haible  <bruno@clisp.org>
23844
23845         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
23846         a bug in AIX iconv().
23847
23848 2007-03-29  Bruno Haible  <bruno@clisp.org>
23849
23850         * modules/ldexpl-tests: New file.
23851         * tests/test-ldexpl.c: New file.
23852
23853 2007-03-29  Bruno Haible  <bruno@clisp.org>
23854
23855         * lib/ldexpl.c: Include fpucw.h.
23856         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
23857         multiplication.
23858         * modules/ldexpl (Depends-on): Add fpucw.
23859
23860 2007-03-29  Bruno Haible  <bruno@clisp.org>
23861
23862         * modules/ldexpl: New file.
23863         * m4/ldexpl.m4: New file.
23864         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
23865         set.
23866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
23867         REPLACE_LDEXPL.
23868         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
23869         REPLACE_LDEXPL.
23870         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
23871         gl_FUNC_LDEXPL_WORKS.
23872         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
23873         * modules/mathl (Files): Remove lib/ldexpl.c.
23874         (Depends-on): Add ldexpl.
23875
23876 2007-03-29  Bruno Haible  <bruno@clisp.org>
23877
23878         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
23879
23880 2007-03-29  Bruno Haible  <bruno@clisp.org>
23881
23882         * tests/test-striconveh.c (main): Don't assume that a direct conversion
23883         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
23884         and possibly also HP-UX.
23885         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
23886         work on AIX, IRIX, HP-UX, OSF/1.
23887         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
23888         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
23889         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
23890         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
23891         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
23892         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
23893
23894 2007-03-29  Bruno Haible  <bruno@clisp.org>
23895
23896         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
23897
23898 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
23899
23900         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
23901         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
23902
23903 2007-03-29  Eric Blake  <ebb9@byu.net>
23904
23905         * lib/acl-internal.h: Remove redundant include.
23906         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
23907         Cygwin when a file is locked.
23908
23909 2007-03-29  Bruno Haible  <bruno@clisp.org>
23910
23911         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
23912         file.
23913         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
23914
23915 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
23916
23917         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
23918         try to remove a parent directory if the child couldn't be removed
23919         (except for the first rmdir, which could fail because the child
23920         doesn't exist).  Problem reported by Jeff Blaine in
23921         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
23922
23923 2007-03-28  Bruno Haible  <bruno@clisp.org>
23924
23925         * lib/striconveh.c (utf8conv_carefully): New function.
23926         (mem_cd_iconveh_internal): Invoke it.
23927
23928 2007-03-28  Bruno Haible  <bruno@clisp.org>
23929
23930         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
23931         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
23932         input.
23933         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
23934         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
23935         unistr/u8-uctomb.
23936
23937 2007-03-28  Bruno Haible  <bruno@clisp.org>
23938
23939         * modules/unistr/u8-mbtoucr: New file.
23940         * lib/unistr/u8-mbtoucr.c: New file.
23941         * modules/unistr/u16-mbtoucr: New file.
23942         * lib/unistr/u16-mbtoucr.c: New file.
23943         * modules/unistr/u16-mbtoucr: New file.
23944         * lib/unistr/u16-mbtoucr.c: New file.
23945         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
23946
23947 2007-03-27  Simon Josefsson  <simon@josefsson.org>
23948             Bruno Haible  <bruno@clisp.org>
23949
23950         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
23951         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
23952         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
23953
23954         * m4/stdio_h.m4: Add stubs for vasprintf too.
23955
23956         * modules/stdio: Support vasprintf in sed command.
23957
23958         * modules/vasprintf: Depend on stdio for prototypes.  Remove
23959         vasprintf.h.  Add stdio module indicator.
23960
23961         * lib/stdio_.h: Declare asprintf and vasprintf, based on
23962         vasprintf.h.
23963
23964         * lib/vasprintf.h: File removed.
23965
23966         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
23967         * lib/vasprintf.c: Ditto.
23968         * lib/xvasprintf.c: Ditto.
23969         * tests/test-vasprintf-posix.c: Ditto.
23970         * tests/test-vasprintf.c: Ditto.
23971
23972 2007-03-27  Bruno Haible  <bruno@clisp.org>
23973
23974         Make vasnprintf multithread-safe.
23975         * lib/vasnprintf.c (decimal_point_char): New function.
23976         (VASNPRINTF): Use it.
23977         Suggested by Simon Josefsson.
23978
23979 2007-03-27  Eric Blake  <ebb9@byu.net>
23980
23981         Support sub-second birthtime on cygwin.
23982         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
23983         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
23984         (get_stat_birthtime): Also work with st_birthtim.
23985
23986 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
23987
23988         * lib/stat-time.h (USE_BIRTHTIME): Remove.
23989         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
23990         (get_stat_birthtime_ns): Do not try to use "spare" fields.
23991         (get_stat_birthtime_ns): Simplify compile-time tests.
23992         (get_stat_birthtime): Change the API to look like
23993         get_stat_mtime etc., except return a negative tv_nsec on error.
23994         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
23995         Don't check for "spare" fields.
23996         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
23997         or for struct stat.st_birthtime, as these tests aren't used.
23998         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
23999
24000 2007-03-27  Bruno Haible  <bruno@clisp.org>
24001
24002         * lib/stat-time.h: Include <sys/stat.h>.
24003
24004 2007-03-27  James Youngman  <jay@gnu.org>
24005
24006         * lib/stat-time.h (get_stat_birthtime): New function for
24007           retrieving st_birthtime as provided by UFS2 (hence *BSD).
24008         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
24009           and its variants.
24010         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
24011         * modules/stat-time-test: New file.
24012         * tests/test-stat-time.c: New test, devised by Bruno Haible.
24013
24014 2007-03-26  Bruno Haible  <bruno@clisp.org>
24015
24016         Better support of signalling NaNs.
24017         * lib/atanl.c: Include isnanl.h.
24018         (atanl): Perform test for NaN at the beginning of the function and
24019         through a call to isnanl.
24020         * lib/cosl.c: Include isnanl.h.
24021         (cosl): Perform test for NaN at the beginning of the function and
24022         through a call to isnanl.
24023         * lib/ldexpl.c: Include isnanl.h.
24024         (ldexpl): Perform test for NaN through a call to isnanl.
24025         * lib/logl.c: Include isnanl.h.
24026         (logl): Perform test for NaN at the beginning of the function and
24027         through a call to isnanl.
24028         * lib/sinl.c: Include isnanl.h.
24029         (sinl): Perform test for NaN at the beginning of the function and
24030         through a call to isnanl.
24031         * lib/sqrtl.c: Include isnanl.h.
24032         (sqrtl): Perform test for NaN at the beginning of the function and
24033         through a call to isnanl.
24034         * lib/tanl.c: Include isnanl.h.
24035         (tanl): Perform test for NaN at the beginning of the function and
24036         through a call to isnanl.
24037         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
24038         * modules/mathl (Depends-on): Add isnanl.
24039
24040 2007-03-26  Eric Blake  <ebb9@byu.net>
24041
24042         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
24043         regression in logic sense of previous patch.
24044
24045 2007-03-26  Bruno Haible  <bruno@clisp.org>
24046
24047         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
24048         unportable shell command "if ! ...".
24049         Reported by Ralf Wildenhues.
24050
24051 2007-03-25  Bruno Haible  <bruno@clisp.org>
24052
24053         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
24054         <sysexits.h> file, and only add EX_CONFIG.
24055         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
24056         absolute file name and whether it is sufficient. Substitute also
24057         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
24058         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
24059         ABSOLUTE_SYSEXITS_H into sysexits.h.
24060
24061 2007-03-25  Bruno Haible  <bruno@clisp.org>
24062
24063         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
24064         hints is NULL.
24065
24066 2007-03-25  Bruno Haible  <bruno@clisp.org>
24067
24068         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
24069         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
24070
24071 2007-03-25  Bruno Haible  <bruno@clisp.org>
24072
24073         * lib/vasnprintf.c: Include langinfo.h.
24074         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
24075         multithread-safe.
24076         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
24077         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
24078         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24079         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24080         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24081         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24082         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24083         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
24084         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24085         Reported by Simon Josefsson.
24086
24087 2007-03-25  Bruno Haible  <bruno@clisp.org>
24088
24089         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
24090         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
24091         * modules/vasnprintf (Depends-on): Add stdint.
24092
24093 2007-03-25  Bruno Haible  <bruno@clisp.org>
24094
24095         * modules/fpieee: New file.
24096         * m4/fpieee.m4: New file.
24097         * modules/isnan-nolibm (Depends-on): Add fpieee.
24098         * modules/isnanl-nolibm (Depends-on): Add fpieee.
24099         * modules/isnanl (Depends-on): Add fpieee.
24100
24101 2007-03-25  Bruno Haible  <bruno@clisp.org>
24102
24103         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
24104
24105 2007-03-25  Bruno Haible  <bruno@clisp.org>
24106
24107         Avoid test failures on IRIX 6.5.
24108         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
24109         (main): Use it.
24110         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
24111         macros.
24112         (main): Use them.
24113
24114 2007-03-25  Bruno Haible  <bruno@clisp.org>
24115
24116         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
24117         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
24118         exists but doesn't work.
24119         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
24120         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
24121         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
24122         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
24123
24124 2007-03-25  Bruno Haible  <bruno@clisp.org>
24125
24126         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
24127         returns inf. Needed on IRIX 6.5.
24128
24129 2007-03-25  Bruno Haible  <bruno@clisp.org>
24130
24131         * tests/test-frexpl.c: Include isnanl-nolibm.h.
24132         (main): Use isnanl instead of x != x idiom.
24133         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
24134
24135         * tests/test-frexp.c: Include isnan.h.
24136         (main): Use isnan instead of x != x idiom.
24137         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
24138
24139 2007-03-25  Bruno Haible  <bruno@clisp.org>
24140
24141         * tests/test-frexp.c (NaN): New function/macro.
24142         (main): Use it instead of 0.0 / 0.0.
24143         * tests/test-isnan.c (NaN): New function/macro.
24144         (main): Use it instead of 0.0 / 0.0.
24145         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
24146         (test_function): Use it instead of 0.0 / 0.0.
24147         * tests/test-vasprintf-posix.c (NaN): New function/macro.
24148         (test_function): Use it instead of 0.0 / 0.0.
24149         * tests/test-snprintf-posix.h (NaN): New function/macro.
24150         (test_function): Use it instead of 0.0 / 0.0.
24151         * tests/test-sprintf-posix.h (NaN): New function/macro.
24152         (test_function): Use it instead of 0.0 / 0.0.
24153         * tests/test-fprintf-posix.h (NaN): New function/macro.
24154         (test_function): Use it instead of 0.0 / 0.0.
24155         * tests/test-printf-posix.h (NaN): New function/macro.
24156         (test_function): Use it instead of 0.0 / 0.0.
24157
24158         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
24159
24160 2007-03-25  Bruno Haible  <bruno@clisp.org>
24161
24162         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
24163
24164 2007-03-25  Bruno Haible  <bruno@clisp.org>
24165
24166         * lib/regexec.c (merge_state_with_log): Make static.
24167
24168 2007-03-25  Bruno Haible  <bruno@clisp.org>
24169
24170         * lib/trigl.c (kernel_rem_pio2): Make static.
24171
24172 2007-03-25  Bruno Haible  <bruno@clisp.org>
24173
24174         * lib/sincosl.c (sincosl_table): Make static.
24175
24176 2007-03-25  Bruno Haible  <bruno@clisp.org>
24177
24178         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
24179         if the compiler does not support C99.
24180
24181 2007-03-25  Bruno Haible  <bruno@clisp.org>
24182
24183         * modules/time (Makefile.am): Ensure all rule action lines start with a
24184         tab.
24185
24186 2007-03-24  Bruno Haible  <bruno@clisp.org>
24187
24188         * modules/tsearch-tests: New file.
24189         * tests/test-tsearch.sh: New file.
24190         * tests/test-tsearch.c: New file, mostly copied from glibc.
24191
24192         * modules/search-tests: New file.
24193         * tests/test-search.c: New file.
24194
24195         * modules/search: New file.
24196         * lib/search_.h: New file, incorporating lib/tsearch.h.
24197         * m4/search_h.m4: New file.
24198         * lib/tsearch.h: Remove file.
24199         * lib/tsearch.c: Include search.h instead of tsearch.h.
24200         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
24201         HAVE_TSEARCH.
24202         * modules/tsearch (Files): Remove lib/tsearch.h.
24203         (Depends-on): Add search.
24204         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
24205         (Include): Change tsearch.h into search.h.
24206
24207 2007-03-24  Bruno Haible  <bruno@clisp.org>
24208
24209         * modules/fpucw: New file.
24210         * lib/fpucw.h: New file.
24211         * lib/frexp.c: Include fpucw.h.
24212         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
24213         (FUNC): Use them.
24214         * lib/printf-frexp.c: Include fpucw.h.
24215         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
24216         (FUNC): Use them.
24217         * lib/vasnprintf.c: Include fpucw.h.
24218         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
24219         'long double' calculations.
24220         * tests/test-frexpl.c: Include fpucw.h.
24221         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
24222         * tests/test-printf-frexpl.c: Include fpucw.h.
24223         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
24224         * modules/frexpl (Depends-on): Add fpucw.
24225         * modules/printf-frexpl (Depends-on): Likewise.
24226         * modules/fprintf-posix (Depends-on): Likewise.
24227         * modules/snprintf-posix (Depends-on): Likewise.
24228         * modules/sprintf-posix (Depends-on): Likewise.
24229         * modules/vasnprintf-posix (Depends-on): Likewise.
24230         * modules/vasprintf-posix (Depends-on): Likewise.
24231         * modules/vfprintf-posix (Depends-on): Likewise.
24232         * modules/vsnprintf-posix (Depends-on): Likewise.
24233         * modules/vsprintf-posix (Depends-on): Likewise.
24234         * modules/frexpl-tests (Depends-on): Likewise.
24235         * modules/printf-frexpl-tests (Depends-on): Likewise.
24236
24237 2007-03-24  Bruno Haible  <bruno@clisp.org>
24238
24239         * lib/float+.h: New file.
24240         * lib/isnan.c: Include float+.h.
24241         (SIZE): New macro.
24242         (FUNC): Compare only SIZE bytes of the value.
24243         * lib/vasnprintf.c: Include float+.h.
24244         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
24245         SIZEOF_LDBL or SIZEOF_DBL bytes.
24246         * modules/isnan-nolibm (Files): Add lib/float+.h.
24247         * modules/isnanl-nolibm (Files): Add lib/float+.h.
24248         * modules/isnanl (Files): Add lib/float+.h.
24249         * modules/vasnprintf (Files): Add lib/float+.h.
24250
24251 2007-03-24  Bruno Haible  <bruno@clisp.org>
24252
24253         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
24254         include isnanl-nolibm.h.
24255
24256 2007-03-24  Bruno Haible  <bruno@clisp.org>
24257
24258         * tests/test-read-file.c (main): Don't produce spurious output for
24259         expected situations. Make the test fail if it encountered unexpected
24260         results.
24261
24262 2007-03-24  Bruno Haible  <bruno@clisp.org>
24263
24264         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
24265         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
24266
24267 2007-03-24  Bruno Haible  <bruno@clisp.org>
24268
24269         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
24270
24271 2007-03-24  Bruno Haible  <bruno@clisp.org>
24272
24273         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
24274         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
24275
24276         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
24277         * modules/utf8-ucs4: Turn into a symbolic link to module
24278         unistr/u8-mbtouc.
24279
24280         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
24281         utf8-ucs4-unsafe.
24282         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
24283         unistr/u8-mbtouc-unsafe.
24284
24285         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
24286         * modules/utf16-ucs4: Turn into a symbolic link to module
24287         unistr/u16-mbtouc.
24288
24289         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
24290         utf16-ucs4-unsafe.
24291         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
24292         unistr/u16-mbtouc-unsafe.
24293
24294         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
24295         * modules/ucs4-utf8: Turn into a symbolic link to module
24296         unistr/u8-ubtomb.
24297
24298         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
24299         * modules/ucs4-utf16: Turn into a symbolic link to module
24300         unistr/u16-ubtomb.
24301
24302 2007-03-24  Bruno Haible  <bruno@clisp.org>
24303
24304         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
24305         Enable the function only if HAVE_INLINE.
24306         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
24307         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
24308         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
24309         Enable the function only if HAVE_INLINE.
24310         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
24311         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
24312         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
24313         Enable the function only if HAVE_INLINE.
24314         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
24315         Enable the function only if HAVE_INLINE.
24316         * modules/utf8-ucs4: Update.
24317         * modules/utf8-ucs4-unsafe: Update.
24318         * modules/utf16-ucs4: Update.
24319         * modules/utf16-ucs4-unsafe: Update.
24320         * modules/ucs4-utf8: Update.
24321         * modules/ucs4-utf16: Update.
24322
24323 2007-03-24  Bruno Haible  <bruno@clisp.org>
24324
24325         * lib/utf8-ucs4.h: Remove file.
24326         * lib/utf8-ucs4-unsafe.h: Remove file.
24327         * lib/utf16-ucs4.h: Remove file.
24328         * lib/utf16-ucs4-unsafe.h: Remove file.
24329         * lib/ucs4-utf8.h: Remove file.
24330         * lib/ucs4-utf16.h: Remove file.
24331         * lib/unistr.h: Include their previous contents.
24332         * m4/utf-ucs4.m4: Remove file.
24333         * m4/ucs4-utf.m4: Remove file.
24334         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
24335         (Depends-on): Add unistr/base.
24336         (configure.ac): Remove gl_UTF_UCS4.
24337         (Makefile.am): Update.
24338         (Include): Change to unistr.h.
24339         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
24340         (Depends-on): Add unistr/base.
24341         (configure.ac): Remove gl_UTF_UCS4.
24342         (Makefile.am): Update.
24343         (Include): Change to unistr.h.
24344         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
24345         (Depends-on): Add unistr/base.
24346         (configure.ac): Remove gl_UTF_UCS4.
24347         (Makefile.am): Update.
24348         (Include): Change to unistr.h.
24349         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
24350         (Depends-on): Add unistr/base.
24351         (configure.ac): Remove gl_UTF_UCS4.
24352         (Makefile.am): Update.
24353         (Include): Change to unistr.h.
24354         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
24355         (Depends-on): Add unistr/base.
24356         (configure.ac): Remove gl_UCS4_UTF.
24357         (Makefile.am): Update.
24358         (Include): Change to unistr.h.
24359         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
24360         (Depends-on): Add unistr/base.
24361         (configure.ac): Remove gl_UCS4_UTF.
24362         (Makefile.am): Update.
24363         (Include): Change to unistr.h.
24364         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
24365         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
24366         utf8-ucs4-unsafe.h.
24367         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
24368         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
24369         utf16-ucs4-unsafe.h.
24370         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
24371         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
24372         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
24373         * lib/unistr/u8-strchr.c: Likewise.
24374         * lib/unistr/u8-strrchr.c: Likewise.
24375         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
24376         * lib/unistr/u16-strchr.c: Likewise.
24377         * lib/unistr/u16-strrchr.c: Likewise.
24378         * lib/striconveh.c: Update.
24379         * lib/linebreak.c: Update.
24380
24381 2007-03-24  Bruno Haible  <bruno@clisp.org>
24382
24383         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
24384         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
24385
24386 2007-03-22  Bruno Haible  <bruno@clisp.org>
24387
24388         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
24389
24390 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
24391
24392         * MODULES.html.sh (File system functions): New module write-any-file.
24393         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
24394         * m4/write-any-file.m4: New files.
24395
24396 2007-03-23  Eric Blake  <ebb9@byu.net>
24397
24398         * gnulib-tool: Rearrange space-tab sequences, since some editors
24399         like to eat them.
24400
24401 2007-03-23  Eric Blake  <ebb9@byu.net>
24402
24403         * lib/version-etc.c (version_etc_va): Update license wording to
24404         be more concise.  Recommended by Richard Stallman.
24405
24406 2007-03-22  Bruno Haible  <bruno@clisp.org>
24407
24408         * lib/poll.c (MSG_PEEK): New fallback definition.
24409
24410 2007-03-22  Bruno Haible  <bruno@clisp.org>
24411
24412         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
24413         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
24414         (main): Update.
24415         Fixes a compilation error on BeOS.
24416
24417 2007-03-22  Bruno Haible  <bruno@clisp.org>
24418
24419         * modules/frexpl-tests: New file.
24420         * tests/test-frexpl.c: New file.
24421
24422         * modules/frexpl: New file.
24423         * m4/frexpl.m4: New file.
24424         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
24425         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
24426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
24427         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
24428         (Depends-on): Add frexpl. Remove isnanl-nolibm.
24429         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
24430
24431 2007-03-22  Bruno Haible  <bruno@clisp.org>
24432
24433         * lib/frexpl.c: Share code with lib/frexp.c.
24434         * modules/mathl (Files): Add lib/frexp.c.
24435         (Depends-on): Add isnanl-nolibm.
24436
24437 2007-03-22  Bruno Haible  <bruno@clisp.org>
24438
24439         * modules/printf-frexp (Files): Add m4/frexp.m4.
24440         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
24441         only if the found frexp function actually works.
24442
24443 2007-03-22  Bruno Haible  <bruno@clisp.org>
24444
24445         * lib/frexp.c: Remove older implementation that uses divisions.
24446
24447 2007-03-21  Bruno Haible  <bruno@clisp.org>
24448
24449         * modules/frexp-tests: New file.
24450         * tests/test-frexp.c: New file.
24451
24452         * modules/frexp: New file.
24453         * lib/frexp.c: New file.
24454         * m4/frexp.m4: New file.
24455         * lib/math_.h (frexp): New declaration.
24456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
24457         REPLACE_FREXP.
24458         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
24459
24460 2007-03-21  Bruno Haible  <bruno@clisp.org>
24461
24462         * modules/isnanl-tests: New file.
24463         * tests/test-isnanl.c: New file.
24464
24465         * modules/isnanl: New file.
24466         * lib/isnanl.h: New file.
24467         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
24468         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
24469         gl_FUNC_ISNANL_WORKS.
24470         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
24471         New macros.
24472
24473 2007-03-21  Bruno Haible  <bruno@clisp.org>
24474
24475         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
24476         lib/isnanl.h.
24477         (Include): Update.
24478         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
24479         * lib/vasnprintf.c: Update.
24480         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
24481         tests/test-isnanl.h, remove tests/test-isnanl.c.
24482         (Makefile.am): Update.
24483         * tests/test-isnanl-nolibm.c: New file.
24484         * tests/test-isnanl.h: New file.
24485         * tests/test-isnanl.c: Remove file.
24486
24487 2007-03-21  Jim Meyering  <jim@meyering.net>
24488
24489         When trying to open ".", treat ESTALE like EACCES.
24490         * lib/savewd.c (savewd_save): Resort to forking not just upon
24491         failure with EACCES, but also when errno is ESTALE.
24492
24493 2007-03-20  Bruno Haible  <bruno@clisp.org>
24494
24495         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
24496         Needed on AIX 5.1. Reported by Matthew Woehlke.
24497
24498 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24499
24500         Suggestions by Bruno Haible:
24501         * lib/acl-internal.h: Include "gettext.h" rather than rolling
24502         our own.
24503         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
24504         * modules/acl (Depends-on): Add gettext.
24505
24506 2007-03-19  Bruno Haible  <bruno@clisp.org>
24507
24508         * modules/iconvme: Remove file.
24509         * lib/iconvme.h: Remove file.
24510         * lib/iconvme.c: Remove file.
24511         * m4/iconvme.m4: Remove file.
24512
24513 2007-03-19  Bruno Haible  <bruno@clisp.org>
24514
24515         * doc/relocatable-maint.texi: Break long shell script line.
24516         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
24517
24518 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24519
24520         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
24521         handle file_has_acl.
24522         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
24523         * lib/acl.c: Move header inclusions and related macro defns into
24524         lib/acl-internal.h.
24525         (S_ISLNK): Remove defn, since that's now done for us.
24526         (file_has_acl): Move to lib/file-has-acl.c.
24527         Call acl_trivial if available.  This is the crucial part of the fix.
24528         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
24529         shared within the library.  Rewrite a bit, partly to make it compatible
24530         with the GNU coding style.
24531         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
24532         Remove unnecessary double-quotes.
24533         Don't test for acl_to_text; the build will catch that.
24534         Replace acl_entries if it doesn't exist and it is needed.
24535         Check for -lsec and acl_trivial (as used on Solaris 10).
24536         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
24537         lib/file-has-acl.c.
24538         (Depends-on): Add sys_stat, for S_ISLNK.
24539
24540 2007-03-19  Ben Pfaff  <blp@gnu.org>
24541
24542         * doc/gnulib.texi: Fix typos.
24543         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
24544
24545 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24546
24547         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
24548         If size is zero here, buf must be zero.
24549
24550 2007-03-19  Simon Josefsson  <simon@josefsson.org>
24551
24552         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
24553         <bruno@clisp.org>.
24554
24555 2007-03-18  Bruno Haible  <bruno@clisp.org>
24556
24557         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
24558         Suggested by Eric Blake.
24559
24560 2007-03-18  Ben Pfaff  <blp@gnu.org>
24561
24562         * doc/relocatable.texi: Recommend using as prefix a directory
24563         that does not exist and will never be created.  Based on
24564         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
24565         and others.
24566
24567 2007-03-17  Bruno Haible  <bruno@clisp.org>
24568
24569         * lib/fchownat.c: Include lchown.h.
24570
24571 2007-03-17  Bruno Haible  <bruno@clisp.org>
24572
24573         Fix endless loop when the given allocated size was > INT_MAX.
24574         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
24575         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
24576         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
24577         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
24578         * lib/sprintf.c (sprintf): Likewise.
24579
24580 2007-03-17  Bruno Haible  <bruno@clisp.org>
24581
24582         * tests/test-argp-2.sh (func_compare): Output a context diff.
24583
24584 2007-03-17  Bruno Haible  <bruno@clisp.org>
24585
24586         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
24587         locale's decimal-point character.
24588
24589 2007-03-17  Bruno Haible  <bruno@clisp.org>
24590
24591         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
24592         before comparing it. Needed because on some platforms (e.g. x86) a
24593         'long double' occupies less bytes than sizeof (long double).
24594
24595 2007-03-17  Bruno Haible  <bruno@clisp.org>
24596
24597         * tests/test-crc.c (main): Make printf statements 64-bit clean.
24598         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
24599         * tests/test-getaddrinfo.c (simple): Likewise.
24600         * tests/test-read-file.c (main): Likewise.
24601
24602 2007-03-17  Bruno Haible  <bruno@clisp.org>
24603
24604         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
24605
24606 2007-03-17  Bruno Haible  <bruno@clisp.org>
24607
24608         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
24609         unused variable.
24610
24611 2007-03-17  Bruno Haible  <bruno@clisp.org>
24612
24613         * tests/test-c-strcasecmp.c: Include c-strcase.h.
24614         * tests/test-c-strncasecmp.c: Likewise.
24615
24616 2007-03-17  Bruno Haible  <bruno@clisp.org>
24617
24618         * modules/stdlib (Depends-on): Add unistd.
24619         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
24620         Needed for MacOS X 10.3.
24621
24622 2007-03-17  Bruno Haible  <bruno@clisp.org>
24623
24624         * lib/unistr/u-strdup.h: Include <stdlib.h>.
24625
24626 2007-03-17  Bruno Haible  <bruno@clisp.org>
24627
24628         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
24629
24630 2007-03-17  Bruno Haible  <bruno@clisp.org>
24631
24632         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
24633         to reflect files copied from gnulib (with or without modifications).
24634         Suggested by Jim Meyering.
24635
24636 2007-03-17  Eric Blake  <ebb9@byu.net>
24637
24638         * NEWS: Document stdlib change from 2007-02-18.
24639
24640 2007-03-17  Jim Meyering  <jim@meyering.net>
24641
24642         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
24643         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
24644         someone uses a name containing shell meta-characters.
24645         Reported by Alfred M. Szmidt.
24646
24647         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
24648
24649 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
24650
24651         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
24652         and copy gettext configuration files only if configure.ac contains
24653         a use of AM_GNU_GETTEXT_VERSION.
24654
24655 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
24656
24657         * build-aux/bootstrap (gnulib_name): New variable.
24658         (gnulib_tool_options): Use it.
24659
24660 2007-03-13  Simon Josefsson  <simon@josefsson.org>
24661
24662         * tests/test-des.c: Use new namespace.
24663
24664 2007-03-15  Bruno Haible  <bruno@clisp.org>
24665
24666         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
24667         Reported by James Youngman <jay@gnu.org>.
24668
24669 2007-03-15  Bruno Haible  <bruno@clisp.org>
24670
24671         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
24672         declared prototype. Needed with cc on OSF/1 5.1.
24673
24674 2007-03-15  Bruno Haible  <bruno@clisp.org>
24675
24676         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
24677         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
24678         (struct gl_list_implementation): Add dispose_fn argument to the
24679         'create_empty', 'create' methods.
24680         (struct gl_list_impl_base): Add field 'dispose_fn'.
24681         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
24682         argument.
24683         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
24684         dispose_fn argument.
24685         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
24686         dispose_fn on the dropped values.
24687         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
24688         dispose_fn argument.
24689         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
24690         dropped values.
24691         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
24692         (gl_tree_remove_node): Call dispose_fn on the dropped value.
24693         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
24694         (gl_tree_remove_node): Call dispose_fn on the dropped value.
24695         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
24696         argument.
24697         (gl_tree_list_free): Call dispose_fn on the dropped values.
24698         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
24699         the dropped values.
24700         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
24701         Add dispose_fn argument.
24702         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
24703         Call dispose_fn on the dropped values.
24704         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
24705         Add dispose_fn argument.
24706         (gl_sublist_create): Initialize the 'dispose_fn' field.
24707         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
24708         * tests/test-array_list.c (main): Update.
24709         * tests/test-carray_list.c (main): Update.
24710         * tests/test-avltree_list.c (main): Update.
24711         * tests/test-rbtree_list.c (main): Update.
24712         * tests/test-avltreehash_list.c (main): Update.
24713         * tests/test-rbtreehash_list.c (main): Update.
24714         * tests/test-linked_list.c (main): Update.
24715         * tests/test-linkedhash_list.c (main): Update.
24716         * tests/test-array_oset.c (main): Update.
24717
24718 2007-03-15  Bruno Haible  <bruno@clisp.org>
24719
24720         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
24721         (gl_oset_create_empty): Add dispose_fn argument.
24722         (struct gl_oset_implementation): Add dispose_fn argument to
24723         'create_empty' method.
24724         (struct gl_oset_impl_base): Add dispose_fn field.
24725         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
24726         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
24727         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
24728         values.
24729         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
24730         (gl_tree_oset_free): Call dispose_fn on the dropped values.
24731         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
24732         dropped value.
24733         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
24734         dropped value.
24735         * tests/test-array_oset.c (main): Update.
24736         * tests/test-avltree_oset.c (main): Update.
24737         * tests/test-rbtree_oset.c (main): Update.
24738         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
24739
24740 2007-03-13  Bruno Haible  <bruno@clisp.org>
24741
24742         * tests/test-stdbool.c (i): Update after last patch.
24743
24744 2007-03-12  Bruno Haible  <bruno@clisp.org>
24745
24746         * lib/quotearg.c: Include <wctype.h> early, before the definition of
24747         the iswprint macro. Needed on Solaris 2.5.1.
24748
24749 2007-03-12  Bruno Haible  <bruno@clisp.org>
24750
24751         * tests/test-printf-frexp.c (main): Declare x as volatile.
24752
24753 2007-03-12  Simon Josefsson  <simon@josefsson.org>
24754
24755         * doc/gnulib.texi (Build robot for gnulib): New section.
24756
24757 2007-03-12  Jim Meyering  <jim@meyering.net>
24758
24759         * build-aux/bootstrap: New file.
24760         * build-aux/bootstrap.conf: New file, from coreutils.
24761
24762 2007-03-11  Bruno Haible  <bruno@clisp.org>
24763
24764         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
24765
24766 2007-03-12  Simon Josefsson  <simon@josefsson.org>
24767
24768         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
24769         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
24770         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
24771
24772 2007-03-11  Bruno Haible  <bruno@clisp.org>
24773
24774         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
24775         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
24776
24777 2007-03-11  Bruno Haible  <bruno@clisp.org>
24778
24779         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
24780         formula. Needed for SunPRO C 5.0.
24781
24782 2007-03-11  Bruno Haible  <bruno@clisp.org>
24783
24784         * modules/long-options (Depends-on): Add getopt.
24785
24786 2007-03-11  Bruno Haible  <bruno@clisp.org>
24787
24788         * modules/modechange (Depends-on): Add stdbool.
24789
24790 2007-03-11  Bruno Haible  <bruno@clisp.org>
24791
24792         * modules/i-ring (Depends-on): Add stdbool.
24793
24794 2007-03-11  Bruno Haible  <bruno@clisp.org>
24795
24796         * modules/gc-des (Depends-on): Add stdbool.
24797
24798 2007-03-11  Bruno Haible  <bruno@clisp.org>
24799
24800         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
24801
24802 2007-03-11  Bruno Haible  <bruno@clisp.org>
24803
24804         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
24805
24806 2007-03-11  Bruno Haible  <bruno@clisp.org>
24807
24808         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
24809
24810 2007-03-11  Bruno Haible  <bruno@clisp.org>
24811
24812         * lib/vasnprintf.c (sprintf): Undefine.
24813
24814 2007-03-11  Bruno Haible  <bruno@clisp.org>
24815
24816         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
24817         initializers in SunPRO C and Compaq C compilers.
24818
24819 2007-03-11  Bruno Haible  <bruno@clisp.org>
24820
24821         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
24822         decrementing code ANSI C compliant.
24823
24824 2007-03-11  Bruno Haible  <bruno@clisp.org>
24825
24826         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
24827         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
24828
24829 2007-03-11  Bruno Haible  <bruno@clisp.org>
24830
24831         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
24832         <stdbool.h> substitute doesn't pass.
24833
24834 2007-03-11  Bruno Haible  <bruno@clisp.org>
24835
24836         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
24837
24838 2007-03-11  Bruno Haible  <bruno@clisp.org>
24839
24840         * gnulib-tool (func_create_megatestdir): Create also an autobuild
24841         script, for submission to autobuild.josefsson.org.
24842
24843 2007-03-10  Bruno Haible  <bruno@clisp.org>
24844
24845         * modules/canonicalize-lgpl-tests: New file.
24846         * tests/test-canonicalize-lgpl.sh: New file.
24847         * tests/test-canonicalize-lgpl.c: New file.
24848
24849         * modules/c-strcase-tests: New file.
24850         * tests/test-c-strcase.sh: New file.
24851         * tests/test-c-strcasecmp.c: New file.
24852         * tests/test-c-strncasecmp.c: New file.
24853
24854         * modules/atexit-tests: New file.
24855         * tests/test-atexit.sh: New file.
24856         * tests/test-atexit.c: New file.
24857
24858 2007-03-10  Bruno Haible  <bruno@clisp.org>
24859
24860         * tests/test-binary-io.sh: Use temporary filenames that are not so
24861         likely to clash with those of other tests (in a parallel make).
24862         * tests/test-binary-io.c: Likewise.
24863
24864 2007-03-10  Bruno Haible  <bruno@clisp.org>
24865
24866         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
24867         fallback; use #error instead.
24868         Suggested by Simon Josefsson.
24869
24870 2007-03-10  Bruno Haible  <bruno@clisp.org>
24871
24872         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
24873         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
24874         first and the last.
24875
24876 2007-03-10  Bruno Haible  <bruno@clisp.org>
24877
24878         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
24879
24880 2007-03-10  Bruno Haible  <bruno@clisp.org>
24881
24882         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
24883         "make distcheck".
24884         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
24885         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
24886         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
24887
24888 2007-03-10  Bruno Haible  <bruno@clisp.org>
24889
24890         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
24891         variable.
24892         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
24893         variable.
24894
24895 2007-03-09  Eric Blake  <ebb9@byu.net>
24896         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
24897
24898         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
24899         types are not being provided by gnulib.
24900         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
24901         types are supported.
24902
24903 2007-03-10  Bruno Haible  <bruno@clisp.org>
24904
24905         * lib/stdio_.h (__attribute__): New macro.
24906         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
24907         vsprintf): Specify __attribute__ __format__ for GCC.
24908         Suggested by Eric Blake.
24909
24910 2007-03-09  Bruno Haible  <bruno@clisp.org>
24911
24912         * modules/printf-posix-tests: New file.
24913         * tests/test-printf-posix.sh: New file.
24914         * tests/test-printf-posix.c: New file.
24915
24916         * modules/printf-posix: New file.
24917         * lib/printf.c: New file.
24918         * m4/printf-posix-rpl.m4: New file.
24919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
24920         REPLACE_PRINTF.
24921         * lib/stdio_.h (printf): New declaration.
24922         (format, __format__, ____printf____, ____scanf____, ____strftime____,
24923         ____strfmon____): New macros.
24924         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
24925         REPLACE_PRINTF.
24926
24927 2007-03-09  Bruno Haible  <bruno@clisp.org>
24928
24929         * tests/test-vasnprintf-posix2.sh: New file.
24930         * tests/test-vasnprintf-posix2.c: New file.
24931         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
24932         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
24933         (Makefile.am): Activate test-vasnprintf-posix2.sh.
24934
24935         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
24936         a locale dependent decimal point, rather than always '.'.
24937
24938 2007-03-09  Eric Blake  <ebb9@byu.net>
24939
24940         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
24941         spite of platforms like Tandem/NSK that define it to -1.
24942
24943 2007-03-08  Bruno Haible  <bruno@clisp.org>
24944
24945         * modules/vprintf-posix-tests: New file.
24946         * tests/test-vprintf-posix.sh: New file.
24947         * tests/test-vprintf-posix.c: New file.
24948         * tests/test-printf-posix.h: New file.
24949
24950         * modules/vprintf-posix: New file.
24951         * lib/vprintf.c: New file.
24952         * m4/vprintf-posix.m4: New file.
24953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
24954         REPLACE_VPRINTF.
24955         * lib/stdio_.h (vprintf): New declaration.
24956         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
24957         REPLACE_VPRINTF.
24958
24959 2007-03-08  Bruno Haible  <bruno@clisp.org>
24960
24961         * modules/fprintf-posix-tests: New file.
24962         * tests/test-fprintf-posix.sh: New file.
24963         * tests/test-fprintf-posix.c: New file.
24964
24965         * modules/fprintf-posix: New file.
24966         * lib/fprintf.c: New file.
24967         * m4/fprintf-posix.m4: New file.
24968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
24969         REPLACE_FPRINTF.
24970         * lib/stdio_.h (fprintf): New declaration.
24971         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
24972         REPLACE_FPRINTF.
24973
24974 2007-03-08  Bruno Haible  <bruno@clisp.org>
24975
24976         * modules/vfprintf-posix-tests: New file.
24977         * tests/test-vfprintf-posix.sh: New file.
24978         * tests/test-vfprintf-posix.c: New file.
24979         * tests/test-fprintf-posix.h: New file.
24980         * tests/test-fprintf-posix.out: New file.
24981
24982         * modules/vfprintf-posix: New file.
24983         * lib/vfprintf.c: New file.
24984         * m4/vfprintf-posix.m4: New file.
24985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
24986         REPLACE_VFPRINTF.
24987         * lib/stdio_.h (vfprintf): New declaration.
24988         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
24989         REPLACE_VFPRINTF.
24990
24991 2007-03-08  Bruno Haible  <bruno@clisp.org>
24992
24993         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
24994
24995 2007-03-08  Bruno Haible  <bruno@clisp.org>
24996
24997         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
24998         instead of 'expr' invocations.
24999         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25000         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25001         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25002         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25003         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25004         Suggested by Paul Eggert.
25005
25006 2007-03-08  Bruno Haible  <bruno@clisp.org>
25007
25008         * modules/fseterr-tests: New file.
25009         * tests/test-fseterr.c: New file.
25010
25011         * modules/fseterr: New file.
25012         * lib/fseterr.h: New file.
25013         * lib/fseterr.c: New file.
25014
25015 2007-03-08  Bruno Haible  <bruno@clisp.org>
25016
25017         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
25018         * lib/getopt_.h: Likewise.
25019         * lib/mbswidth.h: Likewise.
25020         * lib/setenv.h: Likewise.
25021         * lib/vasnprintf.h: Likewise.
25022         * lib/vasprintf.h: Likewise.
25023         * lib/verror.h: Likewise.
25024         * lib/xsetenv.h: Likewise.
25025         * lib/xvasprintf.h: Likewise.
25026
25027 2007-03-08  Jim Meyering  <jim@meyering.net>
25028
25029         * users.txt: Add parted.
25030
25031         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
25032
25033 2007-03-07  Bruno Haible  <bruno@clisp.org>
25034
25035         * m4/printf.m4: Make the shell script snippets copy&pastable.
25036
25037 2007-03-02  Bruno Haible  <bruno@clisp.org>
25038
25039         * lib/netinet_in_.h: New file.
25040         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
25041         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
25042         * modules/netinet_in (Files): Add lib/netinet_in_.h.
25043         (Depends-on): Add absolute-header.
25044         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
25045         into netinet/in.h.
25046
25047 2007-03-03  Bruno Haible  <bruno@clisp.org>
25048
25049         * lib/sys_select_.h: New file.
25050         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
25051         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
25052         * modules/sys_select (Files): Add lib/sys_select_.h.
25053         (Depends-on): Add absolute-header.
25054         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
25055         into sys/select.h.
25056
25057 2007-03-02  Bruno Haible  <bruno@clisp.org>
25058
25059         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
25060         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
25061         values.
25062         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
25063         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
25064         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
25065         * modules/sys_socket (Depends-on): Add absolute-header.
25066         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
25067         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
25068         (Include): Remove requirement of inclusion of <sys/types.h>.
25069
25070 2007-03-02  Bruno Haible  <bruno@clisp.org>
25071
25072         * lib/byteswap_.h (bswap_32): Fix formula.
25073
25074 2007-03-06  Bruno Haible  <bruno@clisp.org>
25075
25076         * modules/sprintf-posix-tests: New file.
25077         * tests/test-sprintf-posix.c: New file.
25078
25079         * modules/sprintf-posix: New file.
25080         * lib/sprintf.c: New file.
25081         * m4/sprintf-posix.m4: New file.
25082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
25083         REPLACE_SPRINTF.
25084         * lib/stdio_.h (sprintf): New declaration.
25085         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
25086         REPLACE_SPRINTF.
25087
25088 2007-03-06  Bruno Haible  <bruno@clisp.org>
25089
25090         * modules/vsprintf-posix-tests: New file.
25091         * tests/test-vsprintf-posix.c: New file.
25092         * tests/test-sprintf-posix.h: New file.
25093
25094         * modules/vsprintf-posix: New file.
25095         * lib/vsprintf.c: New file.
25096         * m4/vsprintf-posix.m4: New file.
25097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
25098         REPLACE_VSPRINTF.
25099         * lib/stdio_.h (vsprintf): New declaration.
25100         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
25101         REPLACE_VSPRINTF.
25102
25103 2007-03-06  Bruno Haible  <bruno@clisp.org>
25104
25105         * modules/vsnprintf (Depend-on): Remove minmax.
25106
25107 2007-03-06  Bruno Haible  <bruno@clisp.org>
25108
25109         * modules/snprintf-posix-tests: New file.
25110         * tests/test-snprintf-posix.c: New file.
25111
25112         * modules/snprintf-posix: New file.
25113         * m4/snprintf-posix.m4: New file.
25114         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
25115         gl_FUNC_SNPRINTF.
25116         (gl_FUNC_SNPRINTF): Invoke it.
25117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
25118         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
25119         is set.
25120         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
25121
25122 2007-03-06  Bruno Haible  <bruno@clisp.org>
25123
25124         * modules/vsnprintf-posix-tests: New file.
25125         * tests/test-vsnprintf-posix.c: New file.
25126         * tests/test-snprintf-posix.h: New file.
25127
25128         * modules/vsnprintf-posix: New file.
25129         * m4/vsnprintf-posix.m4: New file.
25130         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
25131         gl_FUNC_VSNPRINTF.
25132         (gl_FUNC_VSNPRINTF): Invoke it.
25133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
25134         * lib/stdio_.h (vsnprintf): Define as a replacement if
25135         REPLACE_VSNPRINTF is set.
25136         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
25137
25138 2007-03-06  Bruno Haible  <bruno@clisp.org>
25139
25140         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
25141         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
25142
25143 2007-03-06  Bruno Haible  <bruno@clisp.org>
25144
25145         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
25146         (asinl): Declare also if HAVE_DECL_ASINL is set.
25147         (atanl): Declare also if HAVE_DECL_ATANL is set.
25148         (ceill): Declare also if HAVE_DECL_CEILL is set.
25149         (cosl): Declare also if HAVE_DECL_COSL is set.
25150         (expl): Declare also if HAVE_DECL_EXPL is set.
25151         (floorl): Declare also if HAVE_DECL_FLOORL is set.
25152         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
25153         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
25154         (logl): Declare also if HAVE_DECL_LOGL is set.
25155         (sinl): Declare also if HAVE_DECL_SINL is set.
25156         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
25157         (tanl): Declare also if HAVE_DECL_TANL is set.
25158         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
25159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
25160         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
25161         declaration of frexpl, ldexpl.
25162         * modules/printf-frexpl (Depends-on): Add math.
25163         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
25164
25165 2007-03-05  Bruno Haible  <bruno@clisp.org>
25166
25167         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
25168         frexpl and ldexpl are declared.
25169         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
25170
25171 2007-03-05  Bruno Haible  <bruno@clisp.org>
25172
25173         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
25174         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
25175
25176 2007-03-05  Bruno Haible  <bruno@clisp.org>
25177
25178         * lib/stdio_.h: Include <stddef.h>.
25179
25180 2007-03-05  Bruno Haible  <bruno@clisp.org>
25181
25182         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
25183
25184 2007-03-05  Bruno Haible  <bruno@clisp.org>
25185
25186         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
25187         NetBSD 4, from Ralf Wildenhues.
25188
25189 2007-03-04  Bruno Haible  <bruno@clisp.org>
25190
25191         * lib/vasprintf.h: Update #if logic for the case when the functions
25192         exist but are overridden.
25193
25194 2007-03-04  Bruno Haible  <bruno@clisp.org>
25195
25196         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
25197         implementations: glibc-2.4 and MacOS X 10.3.
25198         * tests/test-vasnprintf-posix.c (test_function): Test also the case
25199         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
25200         * tests/test-vasprintf-posix.c (test_function): Likewise.
25201
25202 2007-03-04  Bruno Haible  <bruno@clisp.org>
25203
25204         * modules/vasprintf-posix-tests: New file.
25205         * tests/test-vasprintf-posix.c: New file.
25206
25207         * modules/vasprintf-posix: New file.
25208         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
25209         defined.
25210         * m4/vasprintf-posix.m4: New file.
25211         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
25212         gl_FUNC_VASPRINTF.
25213         (gl_FUNC_VASPRINTF): Invoke it.
25214         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
25215         here.
25216         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
25217
25218 2007-03-04  Bruno Haible  <bruno@clisp.org>
25219
25220         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
25221         REPLACE_GETTIMEOFDAY.
25222         * modules/sys_time (Makefile.am): Likewise.
25223         * m4/sys_time_h.m4: Likewise.
25224         * m4/gettimeofday.m4: Likewise.
25225
25226 2007-03-04  Bruno Haible  <bruno@clisp.org>
25227
25228         * modules/vasnprintf-posix-tests: New file.
25229         * tests/test-vasnprintf-posix.c: New file.
25230
25231         * modules/vasnprintf-posix: New file.
25232         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
25233         printf-frexpl.h.
25234         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
25235         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
25236         REPLACE_VASNPRINTF is defined.
25237         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
25238         gl_FUNC_VASNPRINTF.
25239         (gl_FUNC_VASNPRINTF): Invoke it.
25240         * m4/vasnprintf-posix.m4: New file.
25241         * m4/printf.m4: New file.
25242
25243 2007-03-04  Bruno Haible  <bruno@clisp.org>
25244
25245         Compile progreloc.c only if --enable-relocatable is specified.
25246         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
25247         if --enable-relocatable was specified.
25248         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
25249         lib_SOURCES.
25250
25251 2007-03-04  Jim Meyering  <jim@meyering.net>
25252
25253         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
25254         Use it consistently, rather than enumerating errno constants.
25255
25256 2007-03-04  Bruno Haible  <bruno@clisp.org>
25257
25258         * modules/xvasprintf-tests: New file.
25259         * tests/test-xvasprintf.c: New file.
25260
25261         * modules/vasprintf-tests: New file.
25262         * tests/test-vasprintf.c: New file.
25263
25264         * modules/vasnprintf-tests: New file.
25265         * tests/test-vasnprintf.c: New file.
25266
25267         * modules/vsnprintf-tests: New file.
25268         * tests/test-vsnprintf.c: New file.
25269
25270         * modules/snprintf-tests: New file.
25271         * tests/test-snprintf.c: New file.
25272
25273 2007-03-04  Bruno Haible  <bruno@clisp.org>
25274
25275         Compile relocatable.c only if --enable-relocatable is specified.
25276         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
25277         gl_RELOCATABLE_LIBRARY.
25278         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
25279         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
25280         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
25281         gl_RELOCATABLE_LIBRARY.
25282         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
25283         (Makefile.am): Remove lib_SOURCES.
25284         * modules/relocatable-lib-lgpl (configure.ac): Invoke
25285         gl_RELOCATABLE_LIBRARY.
25286         (Makefile.am): Remove lib_SOURCES.
25287         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
25288         always.
25289         * modules/relocatable-prog-wrapper (configure.ac): Invoke
25290         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
25291
25292 2007-03-04  Bruno Haible  <bruno@clisp.org>
25293
25294         * modules/argmatch-tests: New file.
25295         * tests/test-argmatch.c: New file.
25296
25297         * tests/test-allocsa.c (main): Halve the number of loop runs.
25298
25299         * modules/alloca-opt-tests: New file.
25300         * tests/test-alloca-opt.c: New file.
25301
25302 2007-03-04  Jim Meyering  <jim@meyering.net>
25303
25304         Work around difference between Linux ACLs and Solaris 10 ZFS.
25305         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
25306         for EINVAL.
25307
25308 2007-03-03  Bruno Haible  <bruno@clisp.org>
25309
25310         * modules/relocatable-prog (Depends-on): Add back progreloc's
25311         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
25312
25313 2007-03-03  Bruno Haible  <bruno@clisp.org>
25314
25315         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
25316         * modules/relocatable-lib: New file.
25317
25318 2007-03-03  Bruno Haible  <bruno@clisp.org>
25319
25320         * modules/relocatable-prog: Renamed from modules/relocatable.
25321         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
25322
25323 2007-03-03  Bruno Haible  <bruno@clisp.org>
25324
25325         * modules/relocatable-script (Files): Add doc/relocatable.texi,
25326         m4/relocatable-lib.m4.
25327         (Depends-on): Remove 'relocatable'.
25328         (configure.ac): Add gl_RELOCATABLE_NOP.
25329
25330 2007-03-03  Bruno Haible  <bruno@clisp.org>
25331
25332         * modules/relocatable-prog-wrapper: New file.
25333         * modules/relocatable (Depends-on): Add it. Remove all other
25334         dependencies except progname.
25335         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
25336
25337         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
25338         (gl_FUNC_STRERROR): Nop.
25339         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
25340
25341         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
25342         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
25343
25344         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
25345         (gl_FUNC_READLINK): Update.
25346
25347         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
25348
25349 2007-03-03  Bruno Haible  <bruno@clisp.org>
25350
25351         * lib/xreadlink.c: Include <unistd.h> unconditionally.
25352         * modules/xreadlink (Depends-on): Add unistd.
25353         * modules/xreadlink-with-size (Depends-on): Likewise.
25354
25355 2007-03-03  Bruno Haible  <bruno@clisp.org>
25356
25357         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
25358         extracted from gt_FUNC_SETENV.
25359         (gt_FUNC_SETENV): Remove macro.
25360         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
25361         remove gt_FUNC_SETENV.
25362
25363 2007-03-03  Bruno Haible  <bruno@clisp.org>
25364
25365         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
25366         ENABLE_RELOCATABLE here.
25367         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
25368
25369 2007-03-03  Bruno Haible  <bruno@clisp.org>
25370
25371         * modules/rbtreehash-list-tests (Depends-on): Add progname.
25372         * tests/test-rbtreehash_list.c: Include progname.h.
25373         (main): Call set_program_name.
25374
25375         * modules/rbtree-oset-tests (Depends-on): Add progname.
25376         * tests/test-rbtree_oset.c: Include progname.h.
25377         (main): Call set_program_name.
25378
25379         * modules/rbtree-list-tests (Depends-on): Add progname.
25380         * tests/test-rbtree_list.c: Include progname.h.
25381         (main): Call set_program_name.
25382
25383         * modules/linked-list-tests (Depends-on): Add progname.
25384         * tests/test-linked_list.c: Include progname.h.
25385         (main): Call set_program_name.
25386
25387 2007-03-03  Bruno Haible  <bruno@clisp.org>
25388
25389         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
25390         All uses of __restrict changed to _Restrict_.
25391         * lib/glob_.h (__restrict): Remove macro.
25392
25393 2007-03-02  Bruno Haible  <bruno@clisp.org>
25394
25395         * modules/gettext (configure.ac): Require gettext infrastructure
25396         from version 0.16.1.
25397
25398 2007-03-02  Bruno Haible  <bruno@clisp.org>
25399
25400         * modules/linkedhash-list-tests (Depends-on): Add progname.
25401         * tests/test-linkedhash_list.c: Include progname.h.
25402         (main): Call set_program_name.
25403
25404         * modules/carray-list-tests (Depends-on): Add progname.
25405         * tests/test-carray_list.c: Include progname.h.
25406         (main): Call set_program_name.
25407
25408         * modules/avltreehash-list-tests (Depends-on): Add progname.
25409         * tests/test-avltreehash_list.c: Include progname.h.
25410         (main): Call set_program_name.
25411
25412         * modules/avltree-oset-tests (Depends-on): Add progname.
25413         * tests/test-avltree_oset.c: Include progname.h.
25414         (main): Call set_program_name.
25415
25416         * modules/avltree-list-tests (Depends-on): Add progname.
25417         * tests/test-avltree_list.c: Include progname.h.
25418         (main): Call set_program_name.
25419
25420         * modules/array-oset-tests (Depends-on): Add progname.
25421         * tests/test-array_oset.c: Include progname.h.
25422         (main): Call set_program_name.
25423
25424         * modules/array-list-tests (Depends-on): Add progname.
25425         * tests/test-array_list.c: Include progname.h.
25426         (main): Call set_program_name.
25427
25428         * modules/argp-tests (Depends-on): Add progname.
25429         * tests/test-argp.c: Include argp.h first. Include progname.h.
25430         (main): Call set_program_name.
25431
25432 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
25433
25434         * doc/gnulib-tool.texi (Initial import): Reword description of
25435         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
25436         limited effect even if defined after the first system include.
25437
25438 2007-03-01  Bruno Haible  <bruno@clisp.org>
25439
25440         * build-aux/config.libpath: Update to libtool-1.5.22.
25441         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25442
25443 2007-03-01  Bruno Haible  <bruno@clisp.org>
25444
25445         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
25446         foo_CFLAGS.
25447         Reported by Ralf Wildenhues.
25448
25449 2007-03-01  Bruno Haible  <bruno@clisp.org>
25450
25451         * build-aux/install-reloc: Remove object files left over by some
25452         compilers.
25453         Reported by Ralf Wildenhues.
25454
25455 2007-03-01  Bruno Haible  <bruno@clisp.org>
25456
25457         * build-aux/install-reloc: Break long lines.
25458
25459 2007-03-01  Bruno Haible  <bruno@clisp.org>
25460
25461         * doc/relocatable.texi: Document that it may not work on OpenBSD.
25462         Reported by Ralf Wildenhues.
25463
25464 2007-03-01  Bruno Haible  <bruno@clisp.org>
25465
25466         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
25467         include ordering constraints.
25468
25469 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25470
25471         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
25472         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
25473         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
25474         as another example.
25475         * lib/time_.h: Fix misspelling.
25476         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
25477         Require gl_HEADER_TIME_H_DEFAULTS.
25478         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
25479         * m4/time_r.m4 (gl_TIME_R): Likewise.
25480         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
25481
25482 2007-03-01  Bruno Haible  <bruno@clisp.org>
25483
25484         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
25485         * m4/utimens.m4 (gl_UTIMENS): Likewise.
25486
25487 2007-03-01  Jim Meyering  <jim@meyering.net>
25488
25489         * modules/xreadlink (Maintainer): Add my name.
25490         * modules/xreadlink-with-size (Depends-on): Alphabetize.
25491
25492 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
25493             Bruno Haible  <bruno@clisp.org>
25494
25495         * build-aux/install-reloc: Compile also c-ctype.c.
25496         * build-aux/relocatable.sh.in: New file.
25497         * doc/relocatable.texi: New file.
25498         * doc/relocatable-maint.texi: New file.
25499         * doc/gnulib.texi: Include relocatable-maint.texi.
25500         * lib/progreloc.c: Include unistd.h unconditionally.
25501         * lib/relocwrapper.c: Include unistd.h unconditionally.
25502         Include c-ctype.h.
25503         (add_dotbin): Use c_tolower.
25504         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
25505         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
25506         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
25507         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
25508         to m4/relocatable-lib.m4.
25509         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
25510         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
25511         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
25512         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
25513         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
25514         * modules/relocatable: New file.
25515         * modules/relocatable-lib: New file.
25516         * modules/relocatable-script: New file.
25517
25518 2007-02-28  Bruno Haible  <bruno@clisp.org>
25519
25520         Import --enable-relocatable infrastructure.
25521         * build-aux/config.libpath: New file, from GNU gettext.
25522         * build-aux/install-reloc: New file, from GNU gettext.
25523         * build-aux/reloc-ldflags: New file, from GNU gettext.
25524         * lib/relocatable.h: New file, from GNU gettext.
25525         * lib/relocatable.c: New file, from GNU gettext.
25526         * lib/relocwrapper.c: New file, from GNU gettext.
25527         * m4/relocatable.m4: New file, from GNU gettext.
25528
25529 2007-02-28  Bruno Haible  <bruno@clisp.org>
25530
25531         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
25532
25533         * modules/xreadlink: New file, from GNU gettext with modifications.
25534         * lib/xreadlink.c: New file, from GNU gettext.
25535         * lib/xreadlink.h: Add comments.
25536         (xreadlink): New declaration.
25537
25538         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
25539         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
25540         lib/xreadlink-with-size.c.
25541         (configure.ac): Remove gl_XREADLINK invocation.
25542         (Makefile.am): Augment lib_SOURCES.
25543         * m4/xreadlink.m4: Remove file.
25544         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
25545         (xreadlink_with_size): Renamed from xreadink.
25546         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
25547         * modules/canonicalize (Depends-on): Replace xreadlink with
25548         xreadlink-with-size.
25549         * lib/canonicalize.c (canonicalize_filename_mode): Update.
25550
25551 2007-02-25  Jim Meyering  <jim@meyering.net>
25552
25553         * build-aux/announce-gen: When complaining about excess arguments,
25554         list them.
25555
25556 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
25557
25558         * README: Document signed integer overflow situation more
25559         accurately.
25560
25561 2007-02-25  Bruno Haible  <bruno@clisp.org>
25562
25563         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
25564         'a' or 'A' conversion.
25565
25566 2007-02-25  Bruno Haible  <bruno@clisp.org>
25567
25568         * modules/filename: Renamed from modules/pathname.
25569         (Files): Replace lib/pathname.h with lib/filename.h. Replace
25570         lib/concatpath.c with lib/concat-filename.c.
25571         (Makefile.am): Update.
25572         (Include): Replace pathname.h with filename.h.
25573         * lib/filename.h: Renamed from lib/pathname.h.
25574         (concatenated_filename): Renamed from concatenated_pathname.
25575         * lib/concat-filename.c: Renamed from lib/concatpath.c.
25576         (concatenated_filename): Renamed from concatenated_pathname.
25577         * lib/findprog.c: Include filename.h instead of pathname.h.
25578         (find_in_path): Update.
25579         * lib/javacomp.c: Include filename.h instead of pathname.h.
25580         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
25581         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
25582         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
25583         is_oldgcj_14_13_usable, is_javac_usable): Update.
25584         * lib/javaexec.c: Include filename.h instead of pathname.h.
25585         (execute_java_class): Update.
25586         * modules/findprog: Update.
25587         * modules/javacomp: Update.
25588         * modules/javaexec: Update.
25589         * MODULES.html.sh (File system functions): Add 'filename', remove
25590         'pathname'.
25591
25592 2007-02-25  Bruno Haible  <bruno@clisp.org>
25593
25594         * modules/printf-frexpl-tests: New file.
25595         * tests/test-printf-frexpl.c: New file.
25596
25597         * modules/printf-frexpl: New file.
25598         * lib/printf-frexpl.h: New file.
25599         * lib/printf-frexpl.c: New file.
25600         * m4/printf-frexpl.m4: New file.
25601
25602 2007-02-25  Bruno Haible  <bruno@clisp.org>
25603
25604         * modules/printf-frexp-tests: New file.
25605         * tests/test-printf-frexp.c: New file.
25606
25607         * modules/printf-frexp: New file.
25608         * lib/printf-frexp.h: New file.
25609         * lib/printf-frexp.c: New file.
25610         * m4/printf-frexp.m4: New file.
25611
25612 2007-02-25  Bruno Haible  <bruno@clisp.org>
25613
25614         Assume automake >= 1.10 for the tests.
25615         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
25616         * modules/arctwo-tests: Likewise.
25617         * modules/argp-tests: Likewise.
25618         * modules/avltree-list-tests: Likewise.
25619         * modules/avltree-oset-tests: Likewise.
25620         * modules/avltreehash-list-tests: Likewise.
25621         * modules/carray-list-tests: Likewise.
25622         * modules/crc-tests: Likewise.
25623         * modules/des-tests: Likewise.
25624         * modules/gc-arcfour-tests: Likewise.
25625         * modules/gc-arctwo-tests: Likewise.
25626         * modules/gc-des-tests: Likewise.
25627         * modules/gc-hmac-md5-tests: Likewise.
25628         * modules/gc-hmac-sha1-tests: Likewise.
25629         * modules/gc-md2-tests: Likewise.
25630         * modules/gc-md4-tests: Likewise.
25631         * modules/gc-md5-tests: Likewise.
25632         * modules/gc-pbkdf2-sha1-tests: Likewise.
25633         * modules/gc-rijndael-tests: Likewise.
25634         * modules/gc-sha1-tests: Likewise.
25635         * modules/gc-tests: Likewise.
25636         * modules/getaddrinfo-tests: Likewise.
25637         * modules/hmac-md5-tests: Likewise.
25638         * modules/hmac-sha1-tests: Likewise.
25639         * modules/linked-list-tests: Likewise.
25640         * modules/linkedhash-list-tests: Likewise.
25641         * modules/lock-tests: Likewise.
25642         * modules/md2-tests: Likewise.
25643         * modules/md4-tests: Likewise.
25644         * modules/md5-tests: Likewise.
25645         * modules/rbtree-list-tests: Likewise.
25646         * modules/rbtree-oset-tests: Likewise.
25647         * modules/rbtreehash-list-tests: Likewise.
25648         * modules/read-file-tests: Likewise.
25649         * modules/rijndael-tests: Likewise.
25650         * modules/stdint-tests: Likewise.
25651         * modules/tls-tests: Likewise.
25652
25653 2007-02-24  Bruno Haible  <bruno@clisp.org>
25654
25655         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
25656         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
25657         function; instead check whether isnan with a double argument links.
25658         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
25659         function; instead check whether isnan with a 'long double' argument
25660         links.
25661         Reported by Eric Blake <ebb9@byu.net>.
25662
25663 2007-02-24  Bruno Haible  <bruno@clisp.org>
25664
25665         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
25666         defined.
25667         * lib/isnanl.c: Remove all code. Just include isnan.c.
25668         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
25669
25670 2007-02-25  Jim Meyering  <jim@meyering.net>
25671
25672         Avoid conflicting types for 'unsetenv' on FreeBSD.
25673         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
25674         conflicting with FreeBSD's (5.0 and 6.1) function declaration
25675         in stdlib.h.
25676
25677 2007-02-24  Bruno Haible  <bruno@clisp.org>
25678
25679         * modules/isnanl-nolibm-tests: New file.
25680         * tests/test-isnanl.c: New file.
25681
25682         * modules/isnanl-nolibm: New file.
25683         * lib/isnanl.h: New file.
25684         * lib/isnanl.c: New file.
25685         * m4/isnanl.m4: New file.
25686
25687 2007-02-24  Bruno Haible  <bruno@clisp.org>
25688
25689         * modules/isnan-nolibm-tests: New file.
25690         * tests/test-isnan.c: New file.
25691
25692         * modules/isnan-nolibm: New file.
25693         * lib/isnan.h: New file.
25694         * lib/isnan.c: New file.
25695         * m4/isnan.m4: New file.
25696
25697 2007-02-24  Bruno Haible  <bruno@clisp.org>
25698
25699         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
25700         assume that an exponent fits in 20 bits.
25701
25702 2007-02-24  Jim Meyering  <jim@meyering.net>
25703
25704         * m4/regex.m4: Update the description of the configure-time option,
25705         --without-included-regex, to state accurately what the defaults are,
25706         and perhaps to give people an idea why using this option is risky.
25707
25708 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
25709
25710         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
25711         loops on small arguments.  This attempts to avoid the problem
25712         Bruno Haible reported for AIX 4.3.2 in
25713         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
25714
25715 2007-02-23  Bruno Haible  <bruno@clisp.org>
25716
25717         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
25718         Needed for help2man.
25719
25720 2007-02-23  Karl Berry  <karl@gnu.org>
25721
25722         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
25723         exists, foo.h should be cvs-ignored, not committed.
25724
25725 2007-02-23  Eric Blake  <ebb9@byu.net>
25726
25727         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
25728         * lib/stat-time.h (includes): Likewise.
25729         * lib/utimecmp.c (includes): Likewise.
25730         * lib/utimens.h (includes): Likewise.
25731         * lib/getdate.y (includes): Also include "timespec.h" for use
25732         internal to the module.
25733         * modules/utimens (Depends-on): Revert yesterday's patch.
25734         * modules/nanosleep (Depends-on): Add missing dependency.
25735
25736 2007-02-22  Bruno Haible  <bruno@clisp.org>
25737
25738         * lib/glob.c: Don't include getlogin_r.h.
25739
25740 2007-02-22  Jim Meyering  <jim@meyering.net>
25741
25742         * modules/utimens (Depends-on): Add timespec, required for
25743         utimens.h's inclusion of timespec.h.
25744
25745 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
25746
25747         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
25748         long unreadable paths in GNU/Linux.  Problem reported by Andreas
25749         Schwab in
25750         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
25751         I'll try to think of a better way to fix the Solaris problem.
25752
25753         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
25754         like glibc; on Solaris 10, it fails with errno == EINVAL.
25755         POSIX says the behavior is unspecified if the first argument is NULL,
25756         so play it safe and never pass NULL to the system getcwd.
25757
25758 2007-02-21  Jim Meyering  <jim@meyering.net>
25759
25760         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
25761         of gettimeofday.  It would conflict with the one now always
25762         provided via sys_time_.h.  Reported by Matthew Woehlke, as
25763         an IRIX 6.5 build failure.
25764
25765 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25766
25767         Minor fixups to port to Solaris 10 with Sun C 5.8.
25768         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
25769         * modules/getcwd (Depends-on): Add dirfd.
25770         * lib/putenv.c (putenv): #undef it.
25771         (rpl_putenv): New decl.
25772         (malloc, free): Include <stdlib.h> rather than prototyping separately.
25773
25774 2007-02-20  Bruno Haible  <bruno@clisp.org>
25775
25776         * modules/stdio-tests: New file.
25777         * tests/test-stdio.c: New file.
25778
25779         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
25780         (Depends-on): Add stdio.
25781         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25782         (Include): Use <stdio.h> instead of vsnprintf.h.
25783         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
25784         HAVE_DECL_VSNPRINTF.
25785         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
25786
25787         * modules/snprintf (Files): Remove lib/snprintf.h.
25788         (Depends-on): Add stdio.
25789         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25790         (Include): Use <stdio.h> instead of snprintf.h.
25791         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
25792         HAVE_DECL_SNPRINTF.
25793         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
25794         * lib/getaddrinfo.c: Likewise.
25795
25796         * modules/stdio: New file.
25797         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
25798         * lib/snprintf.h: Remove file.
25799         * lib/vsnprintf.h: Remove file.
25800         * lib/.cppi-disable: Remove snprintf.h.
25801         * m4/stdio_h.m4: New file.
25802         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
25803
25804 2007-02-20  Jim Meyering  <jim@meyering.net>
25805
25806         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
25807         used by e.g., mingw.  From Bruno Haible.
25808
25809 2007-02-19  Bruno Haible  <bruno@clisp.org>
25810
25811         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
25812         warnings.
25813         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25814
25815 2007-02-19  Bruno Haible  <bruno@clisp.org>
25816
25817         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
25818         from mingw users.
25819
25820 2007-02-19  Bruno Haible  <bruno@clisp.org>
25821
25822         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
25823         warnings.
25824         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
25825
25826 2007-02-19  Jim Meyering  <jim@meyering.net>
25827
25828         Don't use FD after a successful "fdopendir (fd)".
25829         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
25830         Reset it by calling dirfd on the just-obtained DIR*.
25831
25832         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
25833         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
25834
25835 2007-02-18  Bruno Haible  <bruno@clisp.org>
25836
25837         * lib/readlink.c: Include <unistd.h>.
25838         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
25839         HAVE_READLINK.
25840         * modules/readlink (Depends-on): Add unistd.
25841         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25842         (Include): Add <unistd.h>.
25843
25844         * lib/getlogin_r.h: Remove file.
25845         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
25846         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
25847         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
25848         HAVE_DECL_GETLOGIN_R.
25849         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
25850         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25851         (Include): Use <unistd.h> instead of getlogin_r.h.
25852
25853         * lib/getcwd.h: Remove file.
25854         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
25855         * lib/xgetcwd.c: Likewise.
25856         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
25857         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
25858         * modules/getcwd (Files): Remove lib/getcwd.h.
25859         (Depends-on): Add unistd.
25860         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25861         (Include): Use <unistd.h> instad of getcwd.h.
25862
25863         * lib/ftruncate.c: Include <unistd.h> first.
25864         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
25865         Set HAVE_FTRUNCATE.
25866         * modules/ftruncate (Depends-on): Add unistd.
25867         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25868
25869         * lib/fchdir.c: Include <unistd.h> first.
25870         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
25871         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
25872         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
25873         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25874         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
25875
25876         * lib/dup2.c: Include <unistd.h> first.
25877         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
25878         HAVE_DUP2.
25879         * modules/dup2 (Depends-on): Add unistd.
25880         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25881
25882         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
25883         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
25884         REPLACE_CHOWN. Don't define chown as a macro here.
25885         * modules/chown (Depends-on): Add unistd.
25886         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25887
25888         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
25889         Add definition for GL_LINK_WARNING.
25890         (chown, dup2): New declarations.
25891         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
25892         link warning.
25893         (ftruncate): New declaration.
25894         (getcwd): New declaration, taken from old getcwd.h.
25895         (getlogin_r): New declaration, taken from old getlogin_r.h.
25896         (readlink): New declaration.
25897         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
25898         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
25899         (gl_PREREQ_UNISTD): Remove macro.
25900         (gl_UNISTD_MODULE_INDICATOR): New macro.
25901         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
25902         many new variables. Don't set UNISTD_H.
25903         * modules/unistd (Description): Change.
25904         (Depends-on): Add link-warning.
25905         (configure.ac): Update.
25906         (Makefile.am): Create unistd.h always. Substitute many new variables
25907         into it.
25908
25909 2007-02-18  Bruno Haible  <bruno@clisp.org>
25910
25911         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
25912         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
25913         HAVE_GETSUBOPT.
25914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
25915         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
25916         * lib/getsubopt.h: Remove file.
25917         * modules/getsubopt (Files): Remove lib/getsubopt.h.
25918         (Depends-on): Add stdlib.
25919         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25920         (Includes): Use <stdlib.h> instead of getsubopt.h.
25921         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
25922         Set HAVE_GETSUBOPT.
25923         * lib/getsubopt.c: Don't include getsubopt.h.
25924
25925 2007-02-18  Bruno Haible  <bruno@clisp.org>
25926
25927         * modules/fchdir (Depends-on): Add dup2.
25928
25929 2007-02-18  Bruno Haible  <bruno@clisp.org>
25930
25931         * lib/stdlib_.h: Handle glibc's special invocation convention
25932         specially.
25933
25934 2007-02-18  Bruno Haible  <bruno@clisp.org>
25935
25936         * modules/stdlib-tests: New file.
25937         * tests/test-stdlib.c: New file.
25938
25939         * modules/mkstemp (Files): Remove lib/mkstemp.h.
25940         (Depends-on): Add stdlib.
25941         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25942         (Includes): Use <stdlib.h> instead of mkstemp.h.
25943         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
25944         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
25945         * lib/mkstemp.c: Don't include mkstemp.h.
25946         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
25947         * lib/stdlib--.h: Don't include mkstemp.h.
25948
25949         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
25950         (Depends-on): Add stdlib.
25951         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25952         (Includes): Use <stdlib.h> instead of mkdtemp.h.
25953         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
25954         HAVE_MKDTEMP.
25955         * lib/mkdtemp.c: Don't include mkdtemp.h.
25956         * lib/clean-temp.c: Don't include mkdtemp.h.
25957
25958         * modules/exit (Files): Remove lib/exit.h.
25959         (Depends-on): Add stdlib.
25960         (Makefile.am): Remove lib_SOURCES.
25961         (Include): Use <stdlib.h> instead of exit.h.
25962         * lib/argmatch.c: Don't include exit.h.
25963         * lib/execute.c: Likewise.
25964         * lib/pagealign_alloc.c: Likewise.
25965         * lib/pipe.c: Likewise.
25966         * lib/wait-process.c: Likewise.
25967         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
25968         * lib/exitfail.c: Likewise.
25969         * lib/savewd.c: Likewise.
25970         * lib/xsetenv.c: Likewise.
25971
25972         * modules/stdlib: New file.
25973         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
25974         and extra comments about mkstemp().
25975         * lib/exit.h: Remove file.
25976         * lib/mkdtemp.h: Remove file.
25977         * lib/mkstemp.h: Remove file.
25978         * m4/stdlib_h.m4: New file.
25979         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
25980
25981 2007-02-18  Bruno Haible  <bruno@clisp.org>
25982
25983         * modules/math-tests: New file.
25984         * tests/test-math.c: New file.
25985
25986         * modules/math: New file.
25987         * modules/mathl (Files): Remove lib/mathl.h.
25988         (Depends-on): Add math.
25989         (Makefile.am): Don't mention mathl.h.
25990         (Include): Use <math.h> instead of mathl.h.
25991         * lib/math_.h: New file.
25992         * lib/mathl.h: Remove file.
25993         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
25994         mathl.h.
25995         * lib/asinl.c: Likewise.
25996         * lib/atanl.c: Likewise.
25997         * lib/ceill.c: Likewise.
25998         * lib/cosl.c: Likewise.
25999         * lib/expl.c: Likewise.
26000         * lib/floorl.c: Likewise.
26001         * lib/frexpl.c: Likewise.
26002         * lib/ldexpl.c: Likewise.
26003         * lib/logl.c: Likewise.
26004         * lib/sincosl.c: Likewise.
26005         * lib/sinl.c: Likewise.
26006         * lib/sqrtl.c: Likewise.
26007         * lib/tanl.c: Likewise.
26008         * lib/trigl.c: Likewise.
26009         * m4/math_h.m4: New file.
26010         * MODULES.html.sh (Mathematics): Add math.
26011
26012 2007-02-17  Bruno Haible  <bruno@clisp.org>
26013
26014         * modules/wctype-tests: New file.
26015         * tests/test-wctype.c: New file.
26016
26017         * modules/wchar-tests: New file.
26018         * tests/test-wchar.c: New file.
26019
26020         * modules/unistd-tests: New file.
26021         * tests/test-unistd.c: New file.
26022
26023         * modules/time-tests: New file.
26024         * tests/test-time.c: New file.
26025
26026         * modules/sysexits-tests: New file.
26027         * tests/test-sysexits.c: New file.
26028
26029         * modules/sys_time-tests: New file.
26030         * tests/test-sys_time.c: New file.
26031
26032         * modules/sys_stat-tests: New file.
26033         * tests/test-sys_stat.c: New file.
26034
26035         * modules/sys_socket-tests: New file.
26036         * tests/test-sys_socket.c: New file.
26037
26038         * modules/sys_select-tests: New file.
26039         * tests/test-sys_select.c: New file.
26040
26041         * modules/string-tests: New file.
26042         * tests/test-string.c: New file.
26043
26044         * modules/stdbool-tests: New file.
26045         * tests/test-stdbool.c: New file.
26046
26047         * modules/netinet_in-tests: New file.
26048         * tests/test-netinet_in.c: New file.
26049
26050         * modules/inttypes-tests: New file.
26051         * tests/test-inttypes.c: New file.
26052
26053         * modules/fcntl-tests: New file.
26054         * tests/test-fcntl.c: New file.
26055
26056         * modules/byteswap-tests: New file.
26057         * tests/test-byteswap.c: New file.
26058
26059         * modules/arpa_inet-tests: New file.
26060         * tests/test-arpa_inet.c: New file.
26061
26062 2007-02-17  Bruno Haible  <bruno@clisp.org>
26063
26064         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
26065         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
26066         if the corresponding module is not enabled. Emit link warnings if
26067         the function is used nevertheless.
26068         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
26069         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
26070         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
26071         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
26072         * modules/inttypes (Depends-on): Add link-warning.
26073         (Makefile.am): Copy the contents of build-aux/link-warning.h into
26074         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
26075         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
26076         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
26077         * modules/imaxdiv (configure.ac): Likewise.
26078         * modules/strtoimax (configure.ac): Likewise.
26079         * modules/strtoumax (configure.ac): Likewise.
26080
26081 2007-02-17  Bruno Haible  <bruno@clisp.org>
26082
26083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
26084         gl_STRING_MODULE_INDICATOR_DEFAULTS.
26085         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
26086         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
26087
26088 2007-02-17  Bruno Haible  <bruno@clisp.org>
26089
26090         * modules/link-warning: New file.
26091         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
26092         * lib/string_.h (GL_LINK_WARNING): Remove definition.
26093         * modules/string (Depends-on): Add link-warning.
26094         (Makefile.am): Copy the contents of build-aux/link-warning.h into
26095         string.h.
26096         * MODULES.html.sh (Support for building libraries and executables): Add
26097         link-warning.
26098
26099 2007-02-17  Bruno Haible  <bruno@clisp.org>
26100
26101         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
26102         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
26103         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
26104         long lines.
26105
26106 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
26107             Bruno Haible  <bruno@clisp.org>
26108
26109         * modules/tmpfile: New file.
26110         * lib/tmpfile.c: New file.
26111         * m4/tmpfile.m4: New file.
26112         * MODULES.html.sh (func_all_modules): New section "Input/output".
26113
26114 2007-02-15  Bruno Haible  <bruno@clisp.org>
26115
26116         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
26117         (supports_delete_on_close): New function.
26118         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
26119
26120 2007-02-14  Bruno Haible  <bruno@clisp.org>
26121
26122         * modules/mbspcasecmp-tests: New file.
26123         * tests/test-mbspcasecmp.sh: New file.
26124         * tests/test-mbspcasecmp.c: New file.
26125
26126         New module mbspcasecmp.
26127         * modules/mbspcasecmp: New file.
26128         * lib/mbspcasecmp.c: New file.
26129         * lib/string_.h (strncasecmp): Change warning message.
26130         (mbspcasecmp): New declaration.
26131         * m4/mbspcasecmp.m4: New file.
26132         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26133         GNULIB_MBSPCASECMP.
26134         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
26135         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
26136
26137 2007-02-14  Bruno Haible  <bruno@clisp.org>
26138
26139         * modules/mbsncasecmp-tests: New file.
26140         * tests/test-mbsncasecmp.sh: New file.
26141         * tests/test-mbsncasecmp.c: New file.
26142
26143         New module mbsncasecmp.
26144         * modules/mbsncasecmp: New file.
26145         * lib/mbsncasecmp.c: New file.
26146         * lib/string_.h (mbsncasecmp): New declaration.
26147         * m4/mbsncasecmp.m4: New file.
26148         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26149         GNULIB_MBSNCASECMP.
26150         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
26151         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
26152
26153 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
26154
26155         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
26156         Verify that it doesn't overlap with our flags.
26157         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
26158         do not have the desired effect in multibyte locales; instead, use
26159         mbscasecmp.
26160         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
26161         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
26162         we don't require GNU fnmatch ourselves (if our users require it, they
26163         should do so explicitly).
26164
26165         Fix regex code so it doesn't rely on strcasecmp.
26166         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
26167         Otherwise, include gnulib's langinfo.h.
26168         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
26169         undesirable behavior in non-C locales.  Instead, rely on localecharset.
26170         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
26171         * modules/regex (FILES): Remove m4/codeset.m4.
26172         (Depends-on): Add localcharset.  Remove strcase.
26173
26174 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26175
26176         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
26177         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
26178
26179 2007-02-13  Bruno Haible  <bruno@clisp.org>
26180
26181         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
26182         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26183
26184 2007-02-12  Bruno Haible  <bruno@clisp.org>
26185
26186         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
26187         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
26188         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
26189         time warning rather than a link error.
26190
26191 2007-02-12  Bruno Haible  <bruno@clisp.org>
26192
26193         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
26194         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26195         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26196
26197 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
26198
26199         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
26200         args, not 2.
26201
26202 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
26203
26204         New module 'time', so that apps can include <time.h> as per
26205         POSIX and GNU instead of separate include files like time_r.h
26206         and timegm.h.  This implementation tries out a simpler approach
26207         for replacing decls in standard include files (as compared to
26208         the string module), somewhat as an experiment.
26209
26210         * config/srclist.txt: Comment out mktime.c for now.
26211         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
26212         since it doesn't apply any more.  Use generic wording instead.
26213         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
26214         'time'.
26215         * lib/time_.h, m4/time_h.m4, modules/time: New files.
26216         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
26217         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
26218         Don't include <sys/types.h>; no longer needed since we assume C89.
26219         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
26220         * lib/strftime.c: Likewise.
26221         * lib/time_r.c: Likewise.
26222         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
26223         * lib/nanosleep.c: Include <time.h> first, to check interface.
26224         * lib/strptime.c: Likewise.
26225         * lib/time_r.c: Likewise.
26226         * lib/timegm.c: Likewise.
26227         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
26228         needed.
26229         * lib/timegm.c: Don't include timegm.h; no longer needed.
26230         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
26231         time.h now handles any problems in that area.
26232         (struct timespec, nanosleep): Remove; time.h now arranges for these.
26233         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
26234         that time.h defines struct timespec.
26235         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
26236         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
26237         handles that.
26238         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
26239         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
26240         needed.  Set REPLACE_LOCALTIME.
26241         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
26242         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
26243         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
26244         nanosleep; time_h.m4 now does that.  Don't require
26245         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
26246         module handles this now.
26247         * modules/getdate (Depends-on): Remove timespec.  Add time.
26248         * modules/nanosleep (Depends-on): Likewise.
26249         * modules/stat-time (Depends-on): Likewise.
26250         * modules/nanosleep (Include): Include time.h, not timespec.h.
26251         * modules/strptime (Files): Remove lib/strptime.h.
26252         (Depends-on): Add extensions, time.
26253         (Include): Include time.h, not strptime.h.
26254         * modules/time_r (Files): Remove lib/time_r.h.
26255         (Depends-on): Add time.
26256         (Include): Include time.h, not time_r.h.
26257         * modules/timegm: Likewise.
26258         * modules/timespec (Description): Now does timespec-related decls
26259         of our own, instead of struct timespec itself.
26260         (Depends-on): Add time; remove extensions.
26261         (Maintainer): Add self.
26262         * modules/utimecmp (Depends-on): Add time; remove timespec.
26263         * modules/utimens (Depends-on): Likewise.
26264         * modules/xnanosleep (Depends-on): Likewise.
26265
26266 2007-02-11  Bruno Haible  <bruno@clisp.org>
26267
26268         * lib/c-strstr.c: Include allocsa.h.
26269         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
26270         * lib/c-strcasestr.c: Include allocsa.h.
26271         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
26272         * lib/strcasestr.c: Include allocsa.h.
26273         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
26274         * lib/mbsstr.c: Include allocsa.h.
26275         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
26276         allocsa/freesa instead of malloc/free.
26277         * lib/mbscasestr.c: Include allocsa.h.
26278         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
26279         allocsa/freesa instead of malloc/free.
26280         * modules/c-strstr (Depends-on): Add allocsa.
26281         * modules/c-strcasestr (Depends-on): Likewise.
26282         * modules/strcasestr (Depends-on): Likewise.
26283         * modules/mbsstr (Depends-on): Likewise.
26284         * modules/mbscasestr (Depends-on): Likewise.
26285
26286 2007-02-11  Bruno Haible  <bruno@clisp.org>
26287
26288         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
26289
26290         * modules/mbsspn-tests: New file.
26291         * tests/test-mbsspn.sh: New file.
26292         * tests/test-mbsspn.c: New file.
26293
26294 2007-02-11  Bruno Haible  <bruno@clisp.org>
26295
26296         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
26297
26298         * modules/mbspbrk-tests: New file.
26299         * tests/test-mbspbrk.sh: New file.
26300         * tests/test-mbspbrk.c: New file.
26301
26302 2007-02-11  Bruno Haible  <bruno@clisp.org>
26303
26304         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
26305         unneeded cast.
26306
26307         * modules/mbscspn-tests: New file.
26308         * tests/test-mbscspn.sh: New file.
26309         * tests/test-mbscspn.c: New file.
26310
26311 2007-02-11  Bruno Haible  <bruno@clisp.org>
26312
26313         * modules/mbscasecmp-tests: New file.
26314         * tests/test-mbscasecmp.sh: New file.
26315         * tests/test-mbscasecmp.c: New file.
26316
26317 2007-02-11  Bruno Haible  <bruno@clisp.org>
26318
26319         Ensure O(n) worst-case complexity of mbscasestr.
26320         * lib/mbscasestr.c: Include stdbool.h.
26321         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
26322         functions.
26323         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
26324         the bookkeeping indicates that it's worth it.
26325         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
26326
26327         * modules/mbscasestr-tests: New file.
26328         * tests/test-mbscasestr1.c: New file.
26329         * tests/test-mbscasestr2.sh: New file.
26330         * tests/test-mbscasestr2.c: New file.
26331         * tests/test-mbscasestr3.sh: New file.
26332         * tests/test-mbscasestr3.c: New file.
26333         * tests/test-mbscasestr4.sh: New file.
26334         * tests/test-mbscasestr4.c: New file.
26335         * m4/locale-tr.m4: New file.
26336
26337 2007-02-11  Bruno Haible  <bruno@clisp.org>
26338
26339         Ensure O(n) worst-case complexity of mbsstr.
26340         * lib/mbsstr.c: Include stdbool.h.
26341         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
26342         functions.
26343         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
26344         bookkeeping indicates that it's worth it.
26345         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
26346
26347         * modules/mbsstr-tests: New file.
26348         * tests/test-mbsstr1.c: New file.
26349         * tests/test-mbsstr2.sh: New file.
26350         * tests/test-mbsstr2.c: New file.
26351         * tests/test-mbsstr3.sh: New file.
26352         * tests/test-mbsstr3.c: New file.
26353         * m4/locale-fr.m4: New file.
26354
26355 2007-02-11  Bruno Haible  <bruno@clisp.org>
26356
26357         * lib/mbsrchr.c (mbsrchr): Fix bug.
26358
26359         * modules/mbsrchr-tests: New file.
26360         * tests/test-mbsrchr.sh: New file.
26361         * tests/test-mbsrchr.c: New file.
26362
26363 2007-02-11  Bruno Haible  <bruno@clisp.org>
26364
26365         * lib/mbschr.c (mbschr): Fix bug.
26366
26367         * modules/mbschr-tests: New file.
26368         * tests/test-mbschr.sh: New file.
26369         * tests/test-mbschr.c: New file.
26370         * m4/locale-zh.m4: New file.
26371
26372 2007-02-11  Bruno Haible  <bruno@clisp.org>
26373
26374         Support for copying multibyte string iterators.
26375         * lib/mbiter.h: Include <string.h>.
26376         (mbiter_multi_copy): New function.
26377         (mbi_copy): New macro.
26378         * lib/mbuiter.h: Include <string.h>.
26379         (mbuiter_multi_copy): New function.
26380         (mbui_copy): New macro.
26381
26382 2007-02-11  Bruno Haible  <bruno@clisp.org>
26383
26384         New module mbslen.
26385         * modules/mbslen: New file.
26386         * lib/mbslen.c: New file.
26387         * lib/string_.h (mbslen): New declaration.
26388         * m4/mbslen.m4: New file.
26389         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26390         GNULIB_MBSLEN.
26391         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
26392         * MODULES.html.sh (Internationalization functions): Add mbslen.
26393
26394 2007-02-11  Bruno Haible  <bruno@clisp.org>
26395
26396         Ensure O(n) worst-case complexity of strcasestr substitute.
26397         * lib/strcasestr.c: Include stdbool.h.
26398         (knuth_morris_pratt): New function.
26399         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
26400         bookkeeping indicates that it's worth it.
26401         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
26402
26403         * modules/strcasestr-tests: New file.
26404         * tests/test-strcasestr.c: New file.
26405
26406 2007-02-11  Bruno Haible  <bruno@clisp.org>
26407
26408         Ensure O(n) worst-case complexity of c_strcasestr.
26409         * lib/c-strcasestr.c: Include stdbool.h, string.h.
26410         (knuth_morris_pratt): New function.
26411         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
26412         the bookkeeping indicates that it's worth it.
26413         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
26414
26415         * modules/c-strcasestr-tests: New file.
26416         * tests/test-c-strcasestr.c: New file.
26417
26418 2007-02-11  Bruno Haible  <bruno@clisp.org>
26419
26420         Ensure O(n) worst-case complexity of c_strstr.
26421         * lib/c-strstr.c: Include stdbool.h, string.h.
26422         (knuth_morris_pratt): New function.
26423         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
26424         bookkeeping indicates that it's worth it.
26425         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
26426
26427         * lib/c-strstr.c: Complete rewrite for maintainability.
26428
26429         * modules/c-strstr-tests: New file.
26430         * tests/test-c-strstr.c: New file.
26431
26432 2007-02-11  Bruno Haible  <bruno@clisp.org>
26433
26434         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
26435         5.2.1 and earlier, whereby \055 was treated just like the range
26436         delimiter '-'.
26437         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
26438
26439 2007-02-08  Bruno Haible  <bruno@clisp.org>
26440
26441         * modules/regex (Depends-on): Add stdbool.
26442         Reported by Dalibor Topic <robilad@kaffe.org>.
26443
26444 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
26445
26446         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
26447         Prefer returning from main to exiting from it.
26448         Remove unnecessary parens after sizeof.
26449
26450 2007-02-05  Bruno Haible  <bruno@clisp.org>
26451
26452         New module mbssep.
26453         * modules/mbssep: New file.
26454         * lib/mbssep.c: New file.
26455         * lib/string_.h (strsep): Add a conditional link warning.
26456         (mbssep): New declaration.
26457         * m4/mbssep.m4: New file.
26458         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26459         GNULIB_MBSSEP.
26460         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
26461         * MODULES.html.sh (Internationalization functions): Add mbssep.
26462
26463 2007-02-05  Bruno Haible  <bruno@clisp.org>
26464
26465         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
26466         Optimize search in case of 1 delimiter.
26467
26468 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
26469
26470         * lib/acl.h: Include sys/types.h before sys/acl.h.
26471
26472 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
26473
26474         Merge upstream fix for glibc bugzilla #3957:
26475
26476         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
26477
26478         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
26479         bit for RE_HAT_LISTS_NOT_NEWLINE.
26480         (build_charclass_op): Remove bogus comment.
26481
26482 2007-02-05  Simon Josefsson  <simon@josefsson.org>
26483
26484         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
26485
26486 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
26487
26488         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
26489         * lib/memmem.c [!defined _LIBC]: Include config.h.
26490
26491 2007-02-04  Bruno Haible  <bruno@clisp.org>
26492
26493         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
26494         warning message.
26495
26496 2007-02-04  Bruno Haible  <bruno@clisp.org>
26497
26498         New module mbstok_r.
26499         * modules/mbstok_r: New file.
26500         * lib/mbstok_r.c: New file.
26501         * lib/string_.h (strtok_r): Change argument names to match the
26502         comments. Add a conditional link warning.
26503         (mbstok_r): New declaration.
26504         * m4/mbstok_r.m4: New file.
26505         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26506         GNULIB_MBSTOK_R.
26507         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
26508         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
26509
26510 2007-02-04  Bruno Haible  <bruno@clisp.org>
26511
26512         New module mbsspn.
26513         * modules/mbsspn: New file.
26514         * lib/mbsspn.c: New file.
26515         * lib/string_.h (strspn): Add a conditional link warning.
26516         (mbsspn): New declaration.
26517         * m4/mbsspn.m4: New file.
26518         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26519         GNULIB_MBSSPN.
26520         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
26521         * MODULES.html.sh (Internationalization functions): Add mbsspn.
26522
26523 2007-02-04  Bruno Haible  <bruno@clisp.org>
26524
26525         New module mbspbrk.
26526         * modules/mbspbrk: New file.
26527         * lib/mbspbrk.c: New file.
26528         * lib/string_.h (strpbrk): Add a conditional link warning.
26529         (mbspbrk): New declaration.
26530         * m4/mbspbrk.m4: New file.
26531         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26532         GNULIB_MBSPBRK.
26533         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
26534         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
26535
26536 2007-02-04  Bruno Haible  <bruno@clisp.org>
26537
26538         New module mbscspn.
26539         * modules/mbscspn: New file.
26540         * lib/mbscspn.c: New file.
26541         * lib/string_.h (strcspn): Add a conditional link warning.
26542         (mbscspn): New declaration.
26543         * m4/mbscspn.m4: New file.
26544         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26545         GNULIB_MBSCSPN.
26546         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
26547         * MODULES.html.sh (Internationalization functions): Add mbscspn.
26548
26549 2007-02-04  Bruno Haible  <bruno@clisp.org>
26550
26551         New module mbscasestr, reduced goal of strcasestr.
26552         * modules/mbscasestr: New file.
26553         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
26554         (mbscasestr): Renamed from strcasestr.
26555         * lib/strcasestr.c: Don't include mbuiter.h.
26556         (strcasestr): Remove support for multibyte locales.
26557         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
26558         Change the conditional link warning.
26559         (mbscasestr): New declaration.
26560         * m4/mbscasestr.m4: New file.
26561         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
26562         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
26563         REPLACE_STRCASESTR.
26564         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
26565         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26566         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
26567         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
26568         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
26569         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
26570         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
26571         (Depends-on): Remove mbuiter.
26572         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
26573
26574 2007-02-04  Bruno Haible  <bruno@clisp.org>
26575
26576         Simplify handling of strncasecmp.
26577         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
26578         the conditional link warning.
26579         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26580         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
26581         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
26582         * modules/strcase (configure.ac): Don't invoke
26583         gl_STRING_MODULE_INDICATOR.
26584         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
26585
26586 2007-02-04  Bruno Haible  <bruno@clisp.org>
26587
26588         New module mbscasecmp, reduced goal of strcasecmp.
26589         * modules/mbscasecmp: New file.
26590         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
26591         (mbscasecmp): Renamed from strcasecmp.
26592         * lib/strcasecmp.c: Don't include mbuiter.h.
26593         (strcasecmp): Remove support for multibyte locales.
26594         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
26595         Change the conditional link warning.
26596         (mbscasecmp): New declaration.
26597         * m4/mbscasecmp.m4: New file.
26598         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
26599         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
26600         REPLACE_STRCASECMP.
26601         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
26602         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26603         GNULIB_MBSCASECMP.
26604         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
26605         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
26606         * modules/strcase (Files): Remove m4/mbrtowc.m4.
26607         (Depends-on): Remove mbuiter.
26608         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
26609
26610 2007-02-04  Bruno Haible  <bruno@clisp.org>
26611
26612         New module mbsstr. Remove module strstr.
26613         * modules/mbsstr: New file.
26614         * modules/strstr: Remove file.
26615         * lib/mbsstr.c: Renamed from lib/strstr.c.
26616         (mbsstr): Renamed from strstr.
26617         * lib/string_.h (strstr): Remove declaration. Change the conditional
26618         link warning.
26619         (mbsstr): New declaration.
26620         * m4/mbsstr.m4: New file.
26621         * m4/strstr.m4: Remove file.
26622         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
26623         REPLACE_STRSTR.
26624         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
26625         Don't initialize GNULIB_STRSTR.
26626         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
26627         substitute GNULIB_STRSTR and REPLACE_STRSTR.
26628         * MODULES.html.sh (Internationalization functions): Add mbsstr.
26629         (Support for systems lacking ANSI C 89): Remove strstr.
26630
26631 2007-02-04  Bruno Haible  <bruno@clisp.org>
26632
26633         New module mbsrchr.
26634         * modules/mbsrchr: New file.
26635         * lib/mbsrchr.c: New file.
26636         * lib/string_.h (strrchr): Add a conditional link warning.
26637         (mbsrchr): New declaration.
26638         * m4/mbsrchr.m4: New file.
26639         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26640         GNULIB_MBSRCHR.
26641         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
26642         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
26643
26644 2007-02-04  Bruno Haible  <bruno@clisp.org>
26645
26646         New module mbschr.
26647         * modules/mbschr: New file.
26648         * lib/mbschr.c: New file.
26649         * lib/string_.h (strchr): Add a conditional link warning.
26650         (mbschr): New declaration.
26651         * m4/mbschr.m4: New file.
26652         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26653         GNULIB_MBSCHR.
26654         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
26655         * MODULES.html.sh (Internationalization functions): Add mbschr.
26656
26657 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
26658
26659         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
26660
26661         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
26662
26663 2007-02-04  Bruno Haible  <bruno@clisp.org>
26664
26665         New module description section 'configure.ac-early'.
26666         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
26667         (func_get_autoconf_early_snippet): New function.
26668         (func_import, func_create_testdir): Use it. Remove special cases for
26669         modules 'extensions' and 'lock'.
26670         * modules/extensions (configure.ac-early): Require
26671         gl_USE_SYSTEM_EXTENSIONS.
26672         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
26673
26674 2007-02-04  Bruno Haible  <bruno@clisp.org>
26675
26676         Make use of gcj-4.3's -fsource and -ftarget option.
26677         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
26678         and if so try the options -fsource and -ftarget.
26679         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
26680         source_version, ftarget_option, target_version arguments.
26681         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
26682         (is_envjavac_oldgcj_14_14_usable): Renamed from
26683         is_envjavac_gcj_14_14_usable.
26684         (is_envjavac_oldgcj_14_13_usable): Renamed from
26685         is_envjavac_gcj_14_13_usable.
26686         (is_gcj_present): Update.
26687         (is_gcj_43, is_gcj43_usable): New functions.
26688         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
26689         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
26690         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
26691         try the options -fsource and -ftarget.
26692
26693 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
26694
26695         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
26696         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
26697         larger value.
26698
26699 2007-02-03  Jim Meyering  <jim@meyering.net>
26700
26701         Give tools a better chance to allocate space for very large buffers.
26702         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
26703
26704         Make pwd and readlink work also when run with an unreadable parent dir
26705         on systems with openat support.
26706         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
26707         provided getcwd function, even when we have openat support.
26708         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
26709
26710 2007-02-02  Bruno Haible  <bruno@clisp.org>
26711
26712         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
26713         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
26714         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
26715         portability problems if one of these functions is only used on specific
26716         platforms.
26717         Reported by Paul Eggert.
26718
26719 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
26720
26721         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
26722         is causing more trouble than it's curing.
26723         * lib/regex_internal.h (__mempcpy): Remove.
26724         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
26725         (and make the code a tad smaller to boot).
26726         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
26727
26728 2007-02-02  Jim Meyering  <jim@meyering.net>
26729
26730         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
26731         section, not in the Makefile.am: one.
26732
26733 2007-02-02  Eric Blake  <ebb9@byu.net>
26734
26735         * lib/strchrnul.c: Always include config.h first.
26736
26737         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
26738         gnulib strstr is not necessary here.
26739
26740 2007-02-02  Simon Josefsson  <simon@josefsson.org>
26741
26742         * m4/socklen.m4: Fix typo.
26743
26744 2007-02-02  Eric Blake  <ebb9@byu.net>
26745
26746         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
26747         * modules/netinet_in (Makefile.am): Likewise.
26748
26749 2007-02-01  Bruno Haible  <bruno@clisp.org>
26750
26751         * lib/string_.h (GL_LINK_WARNING): New macro.
26752         (strcasecmp, strstr, strcasestr): If provided by the system,
26753         conditionally define as a macro that leads to a warning instead of to
26754         an error.
26755         (strncasecmp): Conditionally define as a macro that leads to a warning.
26756
26757 2007-02-01  Karl Berry  <karl@gnu.org>
26758
26759         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
26760
26761 2007-02-01  Bruno Haible  <bruno@clisp.org>
26762
26763         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
26764         renamings.
26765
26766 2007-02-01  Eric Blake  <ebb9@byu.net>
26767
26768         * modules/regex (Depends-on): Revert dependence on mempcpy.
26769         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
26770         module's definition of mempcpy.
26771         Reported by Paul Eggert.
26772
26773 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
26774
26775         * lib/string_.h: If the gnulib module XYZ is not present, undefine
26776         the symbol XYZ before redefining it.  This fixes a problem with
26777         programs that don't use XYZ, when compiled on systems that define
26778         XYZ to something else.
26779
26780 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
26781
26782         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
26783         occurs when "mkdir -m foo" creates a setgid directory that is (1)
26784         writeable to group or other and (2) is intended to have a special
26785         mode bit that is set or cleared.  In such a case, the directory
26786         should be neither group- nor other-writeable until the special
26787         mode bits are right.
26788
26789 2007-01-31  Eric Blake  <ebb9@byu.net>
26790
26791         * modules/mountlist (Depends-on): Add strstr.
26792
26793         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
26794         bug.
26795         * modules/string (Makefile.am): Remove redundant replacement.
26796         * modules/regex (Depends-on): Add mempcpy.
26797
26798 2007-01-31  Bruno Haible  <bruno@clisp.org>
26799
26800         New module description field 'Link'.
26801         * gnulib-tool (func_usage): Document --extract-link-directive.
26802         (sed_extract_prog): Recognize 'Link' directive.
26803         (func_get_link_directive): New function.
26804         (func_import): Show summary of link directives.
26805         Handle --extract-link-directive option.
26806         * modules/acl (Link): New section.
26807         * modules/clock-time (Link): New section.
26808         * modules/euidaccess (Link): New section.
26809         * modules/gettext (Link): New section.
26810         * modules/iconv (Link): New section.
26811         * modules/lock (Link): New section.
26812         * modules/nanosleep (Link): New section.
26813         * modules/readline (Link): New section.
26814
26815 2007-01-27  Bruno Haible  <bruno@clisp.org>
26816
26817         Enforce the use of gnulib modules for unportable <string.h> functions.
26818         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
26819         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
26820         (gl_HEADER_STRING_H_BODY): Require it.
26821         * lib/string_.h: If the gnulib module XYZ is not present, redefine
26822         the symbol XYZ to one that gives a link error.
26823         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
26824         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
26825         * modules/mempcpy (configure.ac): Likewise.
26826         * modules/memrchr (configure.ac): Likewise.
26827         * modules/stpcpy (configure.ac): Likewise.
26828         * modules/stpncpy (configure.ac): Likewise.
26829         * modules/strcase (configure.ac): Likewise.
26830         * modules/strcasestr (configure.ac): Likewise.
26831         * modules/strchrnul (configure.ac): Likewise.
26832         * modules/strdup (configure.ac): Likewise.
26833         * modules/strndup (configure.ac): Likewise.
26834         * modules/strnlen (configure.ac): Likewise.
26835         * modules/strpbrk (configure.ac): Likewise.
26836         * modules/strsep (configure.ac): Likewise.
26837         * modules/strstr (configure.ac): Likewise.
26838         * modules/strtok_r (configure.ac): Likewise.
26839
26840 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
26841
26842         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
26843
26844 2007-01-30  Jim Meyering  <jim@meyering.net>
26845
26846         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
26847
26848 2007-01-29  Bruno Haible  <bruno@clisp.org>
26849
26850         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
26851         * lib/execute.c: Likewise.
26852         * lib/pipe.c: Likewise.
26853         * lib/printf-args.h: Likewise.
26854         * lib/printf-args.c: Likewise.
26855         * lib/printf-parse.c: Likewise.
26856         * lib/vasnprintf.c: Likewise.
26857
26858 2007-01-29  Eric Blake  <ebb9@byu.net>
26859
26860         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
26861         declaration.
26862
26863 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
26864
26865         * lib/strptime.h (strptime): Use 'restrict' for args where
26866         POSIX requires this.
26867         * lib/strptime.c (strptime): Likewise.
26868         Change license notice from LGPL to GPL, since gnulib-tool will
26869         change this as needed.
26870         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
26871         defined.
26872         Include "strptime.h" first, to check interface.
26873         Do not #undef _LIBC and _NL_CURRENT.
26874         Do not include <stdlib.h>; no longer needed.
26875         Include "time_r.h" and declare ptime_locale_status
26876         only if _LIBC is not defined.
26877         (__P): Remove unused macro.
26878         (match_string): Bring back glibc version, but use it only if _LIBC
26879         is defined.
26880         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
26881         Remove unnecessary assertion and abort() call.
26882         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
26883         * m4/strptime.m4: Fix serial number comment.
26884         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
26885         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
26886         (Depends-on): Add time_r.
26887
26888 2007-01-29  Bruno Haible  <bruno@clisp.org>
26889
26890         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26891         strptime.
26892         * modules/strptime (Depends-on): Add stdbool.
26893         * lib/strptime.h: Include <time.h> always. Add comments.
26894
26895 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26896
26897         * modules/strptime: New file.
26898         * lib/strptime.h: New file.
26899         * lib/strptime.c: New file.
26900         * m4/strptime.m4: New file.
26901
26902 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
26903
26904         * MODULES.html.sh: New module mpsort.
26905         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
26906
26907         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
26908         a circularity problem with HP-UX ia64 reported by Bob Proulx in
26909         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
26910         All uses changed.
26911         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
26912         All uses changed.
26913         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
26914         to _Restrict_.
26915         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
26916         the parameter matches the prototype.
26917
26918 2007-01-28  Jim Meyering  <jim@meyering.net>
26919
26920         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
26921         sys/time.h here, reverting that part of the previous patch:
26922         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
26923
26924 2007-01-28  Bruno Haible  <bruno@clisp.org>
26925
26926         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
26927         value of $(SYS_TIME_H).
26928         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
26929         remove it conditionally, too. [added by Jim Meyering]
26930         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
26931         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
26932         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
26933         GETTIMEOFDAY_REPLACEMENT to 1.
26934
26935 2007-01-28  Bruno Haible  <bruno@clisp.org>
26936
26937         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
26938         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
26939         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
26940         Set UNISTD_H instead of UNISTD_H2.
26941         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
26942
26943 2007-01-28  Bruno Haible  <bruno@clisp.org>
26944
26945         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
26946         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
26947
26948 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26949
26950         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
26951         (func_create_testdir): Ensure C locale for `grep' and `tr'
26952         character ranges.
26953         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
26954         ACLOCAL_AMFLAGS parsing state machine.
26955
26956 2007-01-27  Bruno Haible  <bruno@clisp.org>
26957
26958         * modules/unistr/base: Update.
26959
26960 2007-01-27  Bruno Haible  <bruno@clisp.org>
26961
26962         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
26963         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
26964         * modules/unistr/u32-mbtouc-unsafe: Renamed from
26965         modules/unistr/u32-mbtouc.
26966         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
26967         * lib/unistr.h: Update.
26968         * lib/linebreak.c: Update.
26969         * modules/unistr/u32-mbtouc: Renamed from
26970         modules/unistr/u32-mbtouc-safe.
26971         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
26972         * lib/unistr.h: Update.
26973         * lib/unistr/u32-to-u8.c: Update.
26974         * lib/unistr/u32-to-u16.c: Update.
26975
26976 2007-01-27  Bruno Haible  <bruno@clisp.org>
26977
26978         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
26979         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
26980         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
26981         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
26982         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
26983         * modules/unistr/u16-mbtouc-unsafe: Renamed from
26984         modules/unistr/u16-mbtouc.
26985         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
26986         * lib/unistr.h: Update.
26987         * lib/linebreak.c: Update.
26988         * modules/linebreak: Update.
26989         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
26990         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
26991         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
26992         * modules/unistr/u16-mbtouc: Renamed from
26993         modules/unistr/u16-mbtouc-safe.
26994         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
26995         * lib/unistr.h: Update.
26996         * lib/unistr/u16-to-u8.c: Update.
26997         * modules/unistr/u16-to-u8: Update.
26998         * lib/unistr/u16-to-u32.c: Update.
26999         * modules/unistr/u16-to-u32: Update.
27000
27001 2007-01-27  Bruno Haible  <bruno@clisp.org>
27002
27003         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
27004         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
27005         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
27006         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
27007         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
27008         * modules/unistr/u8-mbtouc-unsafe: Renamed from
27009         modules/unistr/u8-mbtouc.
27010         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
27011         * lib/unistr.h: Update.
27012         * lib/striconveh.c: Update.
27013         * modules/striconveh: Update.
27014         * lib/linebreak.c: Update.
27015         * modules/linebreak: Update.
27016         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
27017         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
27018         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
27019         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
27020         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
27021         * lib/unistr.h: Update.
27022         * lib/striconveh.c: Update.
27023         * modules/striconveh: Update.
27024         * lib/unistr/u8-to-u16.c: Update.
27025         * modules/unistr/u8-to-u16: Update.
27026         * lib/unistr/u8-to-u32.c: Update.
27027         * modules/unistr/u8-to-u32: Update.
27028
27029 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27030
27031         Sync from Libtool.
27032         * lib/argz.c: Do not include strings.h nor memory.h, include
27033         string.h unconditionally.  Patch by Simon Josefsson.
27034
27035 2007-01-27  Bruno Haible  <bruno@clisp.org>
27036
27037         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
27038         from gl_HEADER_STRING_H_BODY.
27039         (gl_HEADER_STRING_H_BODY): Require it.
27040         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
27041         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
27042         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
27043         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
27044         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27045         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
27046         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27047         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
27048         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
27049         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
27050         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
27051         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
27052         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
27053         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27054         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
27055
27056 2007-01-27  Bruno Haible  <bruno@clisp.org>
27057
27058         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
27059         check_PROGRAMS into noinst_PROGRAMS.
27060         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
27061         check_PROGRAMS in this case.
27062         (func_import): Set for_test to false.
27063         (func_create_testdir): Set for_test to true.
27064
27065 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
27066             Bruno Haible  <bruno@clisp.org>
27067
27068         * modules/strcasestr (Files): Remove lib/strcasestr.h.
27069         (Depends-on): Add string.
27070         (Includes): Use <string.h> instead of strcasestr.h.
27071         * modules/string (Makefile.am): Also substitute the value of
27072         REPLACE_STRCASESTR.
27073         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
27074         assume strcasestr is declared in <string.h> not <strings.h>. Also
27075         set REPLACE_STRCASESTR.
27076         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
27077         REPLACE_STRCASESTR.
27078         * lib/strcasestr.h: Remove file.
27079         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
27080         * lib/string_.h (strcasestr): New declaration.
27081
27082 2007-01-27  Bruno Haible  <bruno@clisp.org>
27083
27084         * lib/string_.h: Use 'extern'.
27085
27086 2007-01-27  Jim Meyering  <jim@meyering.net>
27087
27088         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
27089         of set-but-not-used local, "q".
27090
27091         * lib/mempcpy.c: Include <config.h> before <string.h>.
27092         This fixes a compilation error on HP-UX, due to the system's
27093         "restrict"-using mempcpy prototype.
27094
27095 2007-01-26  Bruno Haible  <bruno@clisp.org>
27096
27097         Small optimization.
27098         * lib/javacomp.c: Include c-strstr.h.
27099          (is_envjavac_gcj): Use c_strstr instead of strstr.
27100         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
27101
27102 2007-01-26  Bruno Haible  <bruno@clisp.org>
27103
27104         * MODULES.html.sh (Unicode string functions): Add the new modules.
27105
27106         * modules/uniconv/u32-strconv-to-locale: New file.
27107         * lib/uniconv/u32-strconv-to-locale.c: New file.
27108
27109         * modules/uniconv/u16-strconv-to-locale: New file.
27110         * lib/uniconv/u16-strconv-to-locale.c: New file.
27111
27112         * modules/uniconv/u8-strconv-to-locale: New file.
27113         * lib/uniconv/u8-strconv-to-locale.c: New file.
27114
27115         * modules/uniconv/u32-strconv-from-locale: New file.
27116         * lib/uniconv/u32-strconv-from-locale.c: New file.
27117
27118         * modules/uniconv/u16-strconv-from-locale: New file.
27119         * lib/uniconv/u16-strconv-from-locale.c: New file.
27120
27121         * modules/uniconv/u8-strconv-from-locale: New file.
27122         * lib/uniconv/u8-strconv-from-locale.c: New file.
27123
27124         * modules/uniconv/u32-strconv-to-enc: New file.
27125         * lib/uniconv/u32-strconv-to-enc.c: New file.
27126         * modules/uniconv/u32-strconv-to-enc-tests: New file.
27127         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
27128
27129         * modules/uniconv/u16-strconv-to-enc: New file.
27130         * lib/uniconv/u16-strconv-to-enc.c: New file.
27131         * lib/uniconv/u-strconv-to-enc.h: New file.
27132         * modules/uniconv/u16-strconv-to-enc-tests: New file.
27133         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
27134
27135         * modules/uniconv/u8-strconv-to-enc: New file.
27136         * lib/uniconv/u8-strconv-to-enc.c: New file.
27137         * modules/uniconv/u8-strconv-to-enc-tests: New file.
27138         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
27139
27140         * modules/uniconv/u32-strconv-from-enc: New file.
27141         * lib/uniconv/u32-strconv-from-enc.c: New file.
27142         * modules/uniconv/u32-strconv-from-enc-tests: New file.
27143         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
27144
27145         * modules/uniconv/u16-strconv-from-enc: New file.
27146         * lib/uniconv/u16-strconv-from-enc.c: New file.
27147         * modules/uniconv/u16-strconv-from-enc-tests: New file.
27148         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
27149
27150         * modules/uniconv/u8-strconv-from-enc: New file.
27151         * lib/uniconv/u8-strconv-from-enc.c: New file.
27152         * lib/uniconv/u-strconv-from-enc.h: New file.
27153         * modules/uniconv/u8-strconv-from-enc-tests: New file.
27154         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
27155
27156         * modules/uniconv/u32-conv-from-enc: New file.
27157         * lib/uniconv/u32-conv-from-enc.c: New file.
27158         * modules/uniconv/u32-conv-from-enc-tests: New file.
27159         * tests/uniconv/test-u32-conv-from-enc.c: New file.
27160
27161         * modules/uniconv/u16-conv-from-enc: New file.
27162         * lib/uniconv/u16-conv-from-enc.c: New file.
27163         * lib/uniconv/u-conv-from-enc.h: New file.
27164         * modules/uniconv/u16-conv-from-enc-tests: New file.
27165         * tests/uniconv/test-u16-conv-from-enc.c: New file.
27166
27167         * modules/uniconv/u8-conv-from-enc: New file.
27168         * lib/uniconv/u8-conv-from-enc.c: New file.
27169         * modules/uniconv/u8-conv-from-enc-tests: New file.
27170         * tests/uniconv/test-u8-conv-from-enc.c: New file.
27171
27172         * modules/uniconv/base: New file.
27173         * lib/uniconv.h: New file.
27174
27175 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
27176
27177         * doc/gnulib-tool.texi (Initial import): Update to match current
27178         behavior with strdup module.
27179         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
27180         * lib/memmem.h: Remove; all uses removed.  This is now done
27181         by <string.h>.
27182         * lib/mempcpy.h: Likewise.
27183         * lib/memrchr.h: Likewise.
27184         * lib/stpcpy.h: Likewise.
27185         * lib/stpncpy.h: Likewise.
27186         * lib/strcase.h: Likewise.
27187         * lib/strchrnul.h: Likewise.
27188         * lib/strdup.h: Likewise.
27189         * lib/strndup.h: Likewise.
27190         * lib/strnlen.h: Likewise.
27191         * lib/strpbrk.h: Likewise.
27192         * lib/strsep.h: Likewise.
27193         * lib/strstr.h: Likewise.
27194         * lib/strtok_r.h: Likewise.
27195         * lib/string_.h: New file.
27196         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
27197         Rely on <string.h> instead.
27198         * lib/canon-host.c: Likewise.
27199         * lib/chdir-long.c: Likewise.
27200         * lib/concatpath.c: Likewise.
27201         * lib/exclude.c: Likewise.
27202         * lib/fchdir.c: Likewise.
27203         * lib/getaddrinfo.c: Likewise.
27204         * lib/getcwd.c: Likewise.
27205         * lib/getsubopt.c: Likewise.
27206         * lib/glob.c: Likewise.
27207         * lib/hard-locale.c: Likewise.
27208         * lib/iconvme.c: Likewise.
27209         * lib/javacomp.c: Likewise.
27210         * lib/mempcpy.c: Likewise.
27211         * lib/memrchr.c: Likewise.
27212         * lib/regex_internal.h: Likewise.
27213         * lib/stpncpy.c: Likewise.
27214         * lib/strcasecmp.c: Likewise.
27215         * lib/strchrnul.c: Likewise.
27216         * lib/strdup.c: Likewise.
27217         * lib/striconv.c: Likewise.
27218         * lib/striconveh.c: Likewise.
27219         * lib/striconveha.c: Likewise.
27220         * lib/strncasecmp.c: Likewise.
27221         * lib/strndup.c: Likewise.
27222         * lib/strnlen.c: Likewise.
27223         * lib/strsep.c: Likewise.
27224         * lib/strstr.c: Likewise.
27225         * lib/strtok_r.c: Likewise.
27226         * lib/userspec.c: Likewise.
27227         * lib/w32spawn.h: Likewise.
27228         * lib/xstrndup.c: Likewise.
27229         * lib/mountlist.c (strstr): Remove decl.
27230         * m4/string_h.m4: New file.
27231         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
27232         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
27233         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
27234         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
27235         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
27236         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
27237         Set REPLACE_STRCASECMP if necessary.
27238         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
27239         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
27240         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
27241         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
27242         HAVE_DECL_STRDUP if necessary.
27243         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
27244         since gl_FUNC_STRNDUP does that now.
27245         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
27246         Check for decl here...
27247         (gl_PREREQ_STRNLEN): ... not here.
27248         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
27249         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
27250         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
27251         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
27252         necessary.
27253         * modules/string: New file.
27254         * modules/memmem (Files): Remove special-purpose include file.
27255         (Depends-on): Add string.
27256         (Include): Include <string.h>, not the removed file.
27257         * modules/mempcpy: Likewise.
27258         * modules/memrchr: Likewise.
27259         * modules/stpcpy: Likewise.
27260         * modules/stpncpy: Likewise.
27261         * modules/strcase: Likewise.
27262         * modules/strchrnul: Likewise.
27263         * modules/strdup: Likewise.
27264         * modules/strndup: Likewise.
27265         * modules/strnlen: Likewise.
27266         * modules/strpbrk: Likewise.
27267         * modules/strsep: Likewise.
27268         * modules/strstr: Likewise.
27269         * modules/strtok_r: Likewise.
27270         * tests/test-dirname.c: Don't include "strdup.h", since
27271         <string.h> now suffices.
27272         * tests/test-memmem.c: Don't include "memmem.h", since
27273         <string.h> now suffices.
27274
27275 2007-01-25  Bruno Haible  <bruno@clisp.org>
27276
27277         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
27278         *resultp is 0.
27279
27280         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
27281         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
27282         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
27283         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
27284
27285         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
27286         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
27287         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
27288         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
27289         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
27290         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
27291
27292 2007-01-24  Bruno Haible  <bruno@clisp.org>
27293
27294         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
27295         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
27296         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
27297         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
27298         gl_FUNC_FTS_CORE.
27299         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
27300         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
27301         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
27302         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
27303         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
27304         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
27305         gl_FUNC_FCHOWNAT.
27306         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
27307         gl_FUNC_STRFTIME.
27308         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
27309         Reported by Ralf Wildenhues.
27310
27311 2007-01-24  Bruno Haible  <bruno@clisp.org>
27312
27313         Drop AC_REQUIRE calls that are redundant with the module dependencies.
27314         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
27315         gl_GETADDRINFO.
27316         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
27317         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
27318         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
27319
27320 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
27321
27322         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
27323         Don't use 'exit'; just return from 'main'.
27324         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
27325
27326         * lib/fnmatch_.h: Readjust white space and comments to match
27327         glibc, to avoid spurious diffs.
27328
27329 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27330
27331         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
27332         2004-12-01 change by Jakub Jelinek, since this code won't compile
27333         if !LIBC.  Problem reported by Bob Proulx.
27334
27335 2007-01-23  Bruno Haible  <bruno@clisp.org>
27336
27337         * lib/striconveh.c: Include c-strcaseeq.h.
27338         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
27339         * modules/striconveh (Depends-on): Add c-strcaseeq.
27340
27341 2007-01-23  Bruno Haible  <bruno@clisp.org>
27342
27343         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
27344
27345         * modules/c-strcaseeq: New file.
27346         * lib/c-strcaseeq.h: New file.
27347
27348         * modules/streq: New file.
27349         * lib/streq.h: New file.
27350
27351 2007-01-23  Bruno Haible  <bruno@clisp.org>
27352
27353         * modules/striconveha-tests: New file.
27354         * tests/test-striconveha.c: New file.
27355
27356         * lib/striconveha.h: Include <stdbool.h>.
27357         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
27358         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
27359         (mem_iconveha_notranslit): Renamed from mem_iconveha.
27360         (mem_iconveha): New function.
27361         (str_iconveha_notranslit): Renamed from str_iconveha.
27362         (str_iconveha): New function.
27363         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
27364         c-strcase.
27365
27366 2007-01-23  Bruno Haible  <bruno@clisp.org>
27367
27368         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
27369         encodings without forgiving before trying any encoding with handler.
27370         (str_iconveha): Try all encodings without forgiving before trying any
27371         encoding with handler.
27372
27373 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27374
27375         Import the following changes from libc.
27376
27377         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
27378
27379         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
27380
27381         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
27382
27383         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
27384         normal_bracket label.
27385
27386         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
27387
27388         [BZ #361]
27389         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
27390         to normal_bracket after fetching the next character.
27391
27392 2007-01-22  Bruno Haible  <bruno@clisp.org>
27393
27394         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
27395         argument.
27396         * lib/striconveh.c (iconv_carefully_1): New function.
27397         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
27398         argument.
27399         (str_cd_iconveh): Update.
27400         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
27401         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
27402         * tests/test-striconveh.c (MAGIC): New macro.
27403         (new_offsets): New function.
27404         (main): Test call with and without offsets.
27405
27406 2007-01-22  Bruno Haible  <bruno@clisp.org>
27407
27408         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
27409         * modules/sys_select (Makefile.am): Likewise.
27410         * modules/sys_socket (Makefile.am): Likewise.
27411         * modules/sys_time (Makefile.am): Likewise.
27412
27413 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
27414
27415         * modules/gettimeofday (License): Change from GPL to LGPL, since
27416         gettimeofday is a library function.
27417
27418 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27419
27420         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
27421
27422 2007-01-21  Bruno Haible  <bruno@clisp.org>
27423
27424         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
27425
27426 2007-01-21  Bruno Haible  <bruno@clisp.org>
27427
27428         * modules/striconveha: New file.
27429         * lib/striconveha.h: New file.
27430         * lib/striconveha.c: New file.
27431         * MODULES.html.sh (Internationalization functions): Add striconveha.
27432         * lib/striconv.c (str_iconv): Optimize the case of an empty input
27433         string.
27434         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
27435
27436 2007-01-21  Bruno Haible  <bruno@clisp.org>
27437
27438         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
27439         * lib/striconveh.c (str_iconveh): Likewise.
27440
27441 2007-01-21  Bruno Haible  <bruno@clisp.org>
27442
27443         * lib/striconveh.h (mem_iconveh): New declaration.
27444         * lib/striconveh.c (mem_iconveh): New function.
27445         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
27446
27447 2007-01-21  Bruno Haible  <bruno@clisp.org>
27448
27449         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
27450
27451         * lib/striconveh.h (mem_cd_iconveh): Change specification.
27452         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
27453         original result buffer.
27454         (str_cd_iconveh): Update.
27455         * tests/test-striconveh.c (main): Update.
27456
27457         * lib/striconv.h (mem_cd_iconv): Change specification.
27458         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
27459         result buffer.
27460         (str_cd_iconv): Update.
27461         * tests/test-striconv.c (main): Update.
27462
27463 2007-01-21  Bruno Haible  <bruno@clisp.org>
27464
27465         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
27466
27467 2007-01-20  Jim Meyering  <jim@meyering.net>
27468
27469         * lib/userspec.c (parse_with_separator): If a user or group string
27470         starts with "+", skip the corresponding name-to-ID look-up, since
27471         such a look-up must fail: user and group names may not include "+".
27472
27473 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
27474
27475         * lib/poll.c: Include sys/time.h and time.h unconditionally,
27476         since we now assume the sys_time module.
27477         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
27478         check for sys/time.h; no longer needed.
27479         * modules/poll (Depends-on): Depend on sys_time.
27480
27481 2007-01-18  Bruno Haible  <bruno@clisp.org>
27482
27483         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
27484         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
27485
27486         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
27487         gettimeofday.
27488
27489         * tests/test-gettimeofday.c: Include <time.h>.
27490         (dummy): Remove variable.
27491
27492         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
27493         gl_HEADER_SYS_TIME_H.
27494         (gl_HEADER_SYS_TIME_H): New macro.
27495
27496         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
27497         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27498         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
27499         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
27500         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27501         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
27502         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
27503         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27504         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
27505         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
27506         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27507
27508         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
27509         last change; it caused a compilation error when cross-compiling to
27510         Cygwin.
27511
27512 2007-01-18  Jim Meyering  <jim@meyering.net>
27513
27514         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
27515         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
27516         than the race-prone "test -d sys || mkdir sys".
27517         (configure.ac): Use AC_PROG_MKDIR_P.
27518         * modules/sys_select: Likewise.
27519         * modules/sys_socket: Likewise.
27520         * modules/sys_time: Likewise.
27521
27522 2007-01-18  Eric Blake  <ebb9@byu.net>
27523
27524         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
27525         replace gettimeofday.
27526         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
27527         name, to avoid infinite recursion.
27528
27529 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
27530
27531         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
27532         module sys_time.
27533         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
27534         assume timespec.h defines struct timeval.
27535         * lib/settime.c: Likewise.
27536         * lib/utimens.c: Likewise.
27537         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
27538         since we now assume the gettimeofday module.
27539         * lib/tempname.c (__gen_tempname): Likewise.
27540         * lib/gettimeofday.h: Remove.
27541         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
27542         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
27543         Include <time.h>, for 'time()'.
27544         (localtime_buffer_addr): Also use this workaround if
27545         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
27546         to simplify the uses.  All uses changed.
27547         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
27548         that #undef is inside {}, and 'const' follows type name consistently.
27549         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
27550         (gettimeofday): Do not use the maximum possible value for
27551         tv->tv_usec, since that might break usages other than ls.c.
27552         Instead, we'll leave ls.c alone.  This undoes today's patch
27553         by Bruno.  Add a compile-time warning for 1s-clock resolution;
27554         we've never observed the problem but might as well keep the
27555         canary.
27556         * lib/nanosleep.c: Include timespec.h first, for interface check.
27557         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
27558         now assume the sys_time module.
27559         * lib/tempname.c: Likewise.
27560         * lib/timespec.h: Likewise.
27561         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
27562         needed.
27563         * lib/strftime.c: Likewise.
27564         * lib/timespec.h: Likewise.
27565         * lib/posixtm.c: Include posixtm.h first, for interface check.
27566         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
27567         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
27568         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
27569         * lib/sys_time_.h: New file.
27570         * lib/timespec.h (struct timespec): Use long int, not long.
27571         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
27572         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
27573         Remove obsolescent call to AC_HEADER_TIME.
27574         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
27575         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27576         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
27577         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
27578         Likewise.
27579         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
27580         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
27581         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
27582         into the sys_time module.  Check for gettimeofday just once.
27583         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
27584         for gettimeofday signature to just check the signature.  Merely
27585         compile it, since linking doesn't test signature.  Improve test for
27586         whether gettimeofday.o is actually needed.
27587         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
27588         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
27589         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
27590         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27591         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
27592         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
27593         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
27594         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
27595         than worrying about sys/time.h.
27596         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
27597         Don't bother worrying about TIME_WITH_SYS_TIME.
27598         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
27599         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
27600         * m4/sys_time_h.m4: New file.
27601         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
27602         Don't include sys/time.h.  Return from main rather than exiting.
27603         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
27604         all uses changed.
27605         * modules/gethrxtime (Depends-on): Add sys_time.
27606         * modules/gettime (Depends-on): Likewise.
27607         * modules/gettimeofday (Depends-on): Likewise.
27608         * modules/nanosleep (Depends-on): Likewise.
27609         * modules/settime (Depends-on): Likewise.
27610         * modules/tempname (Depends-on): Likewise.
27611         * modules/utimens (Depends-on): Likewise.
27612         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
27613         (Include:) Change back to <sys/time.h>.
27614         (Maintainer:) Add self.
27615         * modules/sys_time: New file.
27616         * modules/tempname (Depends-on): Add gettimeofday.
27617         * tests/test-gettimeofday.c: Include <sys/time.h>
27618         rather than gettimeofday.h.
27619
27620 2007-01-17  Bruno Haible  <bruno@clisp.org>
27621
27622         * gnulib-tool (func_get_license): Revert last patch. Instead, let
27623         the license default to GPL.
27624         (func_create_testdir): Don't complain if a module is LGPL and its
27625         tests module depends on GPLed modules.
27626
27627 2007-01-17  Bruno Haible  <bruno@clisp.org>
27628
27629         * lib/gettimeofday.c (gettimeofday): Add code for the case
27630         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
27631         maximum possible value for tv->tv_usec, rather than the minimum one.
27632
27633 2005-10-08  Martin Lambers  <marlam@marlam.de>
27634 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27635 2007-01-16  Bruno Haible  <bruno@clisp.org>
27636
27637         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
27638         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
27639         gl_FUNC_GETTIMEOFDAY.
27640         (Include): Add gettimeofday.h.
27641         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
27642         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
27643         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
27644         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
27645         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
27646         * lib/gettimeofday.h: New file.
27647         * lib/gettimeofday.c: Include <sys/timeb.h>.
27648         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
27649         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27650         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
27651         fall back on time().
27652
27653         * tests/test-gettimeofday.c: New file.
27654         * modules/gettimeofday-tests: New file.
27655
27656 2007-01-16  Eric Blake  <ebb9@byu.net>
27657
27658         * modules/fnmatch (Depends-on): Depend on wchar.
27659         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
27660         * m4/fnmatch.m4: Likewise.
27661         * modules/mbchar (Makefile.am): Assume <wchar.h>.
27662         * m4/mbchar.m4: Likewise.
27663         * modules/mbswidth (Depends-on): Depend on wchar.
27664         * lib/mbswidth.c: Assume <wchar.h>.
27665         * m4/mbswidth.m4: Likewise.
27666         * modules/quotearg (Depends-on): Depend on wchar.
27667         * lib/quotearg.c: Assume <wchar.h>.
27668         * m4/quotearg.m4: Likewise.
27669         * modules/regex (Depends-on): Depend on wchar.
27670         * lib/regex_internal.h: Assume <wchar.h>.
27671         * m4/regex.m4: Likewise.
27672         * modules/stdint (Depends-on): Depend on wchar.
27673         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
27674         * m4/stdint.m4: Likewise.
27675         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
27676         * modules/strftime (Depends-on): Depend on wchar.
27677         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
27678         * modules/strtol (Depends-on): Depend on wchar.
27679         * lib/strtol.c: Assume <wchar.h>.
27680         * modules/wcwidth (Depends-on): Depend on wchar.
27681         * lib/wcwidth.h: Assume <wchar.h>.
27682         * m4/wcwidth.m4: Likewise.
27683
27684 2007-01-16  Bruno Haible  <bruno@clisp.org>
27685
27686         * modules/csharpexec-script: New, created from...
27687         * modules/csharpexec: ... this.
27688
27689 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
27690
27691         * modules/javaexec-script: New, created from...
27692         * modules/javaexec: ... this.
27693
27694 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27695
27696         * modules/poll (Dependencies): Add sys_select.
27697
27698 2007-01-15  Jim Meyering  <jim@meyering.net>
27699
27700         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
27701         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
27702         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
27703         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
27704
27705 2007-01-15  Bruno Haible  <bruno@clisp.org>
27706
27707         * modules/striconveh: New file.
27708         * lib/striconveh.h: New file.
27709         * lib/striconveh.c: New file.
27710         * MODULES.html.sh (Internationalization functions): Add striconveh.
27711
27712         * modules/striconveh-tests: New file.
27713         * tests/test-striconveh.c: New file.
27714
27715 2007-01-15  Bruno Haible  <bruno@clisp.org>
27716
27717         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
27718         not from GNU libiconv or GNU libc.
27719
27720 2007-01-15  Bruno Haible  <bruno@clisp.org>
27721
27722         * doc/gnulib-intro.texi (Copyright): Explain the different license
27723         terms for module descriptions, autoconf macros, tests, documentation.
27724
27725 2007-01-14  Bruno Haible  <bruno@clisp.org>
27726
27727         * modules/striconv-tests: New file.
27728         * tests/test-striconv.c: New file.
27729
27730 2007-01-14  Bruno Haible  <bruno@clisp.org>
27731
27732         * modules/iconv-tests: New file.
27733         * tests/test-iconv.c: New file.
27734
27735 2007-01-14  Bruno Haible  <bruno@clisp.org>
27736
27737         * gnulib-tool (func_get_license): For test modules, use the license of
27738         the main module.
27739
27740 2007-01-14  Bruno Haible  <bruno@clisp.org>
27741
27742         * modules/iconv (Include): Clarify that <iconv.h> can only be included
27743         if iconv is found to exist.
27744
27745 2007-01-14  Bruno Haible  <bruno@clisp.org>
27746
27747         * modules/c-ctype-tests: New file.
27748         * tests/test-c-ctype.c: New file.
27749
27750 2007-01-14  Bruno Haible  <bruno@clisp.org>
27751
27752         * modules/binary-io-tests: New file.
27753         * tests/test-binary-io.sh: New file.
27754         * tests/test-binary-io.c: New file.
27755
27756 2007-01-14  Bruno Haible  <bruno@clisp.org>
27757
27758         * modules/array-oset-tests: New file.
27759         * tests/test-array_oset.c: New file.
27760
27761 2007-01-14  Bruno Haible  <bruno@clisp.org>
27762
27763         * modules/array-list-tests: New file.
27764         * tests/test-array_list.c: New file.
27765
27766 2007-01-14  Bruno Haible  <bruno@clisp.org>
27767
27768         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
27769         and make.
27770         Reported by Simon Josefsson in
27771         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
27772
27773 2007-01-14  Bruno Haible  <bruno@clisp.org>
27774
27775         * modules/allocsa-tests: New file.
27776         * tests/test-allocsa.c: New file.
27777
27778 2007-01-14  Bruno Haible  <bruno@clisp.org>
27779
27780         * modules/fchdir (Depends-on): Add absolute-header.
27781         * modules/unistd (Depends-on): Likewise.
27782
27783 2006-12-30  Bruno Haible  <bruno@clisp.org>
27784
27785         * modules/fchdir: New file.
27786         * modules/unistd (Files): Add lib/unistd_.h.
27787         (Makefile.am): Generate unistd.h from unistd_.h.
27788         * lib/fchdir.c: New file.
27789         * lib/dirent_.h: New file.
27790         * lib/unistd_.h: New file.
27791         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
27792         * m4/fchdir.m4: New file.
27793         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
27794         (gl_HEADER_UNISTD): Invoke it.
27795         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
27796         function.
27797         * lib/backupfile.c (opendir, closedir): Undefine.
27798         * lib/chown.c (open, close): Undefine.
27799         * lib/clean-temp.c (open, close): Undefine.
27800         * lib/copy-file.c (open, close): Undefine.
27801         * lib/execute.c (open, close): Undefine.
27802         * lib/fsusage.c (open, close): Undefine.
27803         * lib/gc-gnulib.c (open, close): Undefine.
27804         * lib/getcwd.c (opendir, closedir): Undefine.
27805         * lib/glob.c (opendir, closedir): Undefine.
27806         * lib/javacomp.c (open, close): Undefine.
27807         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
27808         * lib/openat-proc.c (open, close): Undefine.
27809         * lib/pagealign_alloc.c (open, close): Undefine.
27810         * lib/pipe.c (open, close): Undefine.
27811         * lib/progreloc.c (open, close): Undefine.
27812         * lib/savedir.c (opendir, closedir): Undefine.
27813         * lib/utime.c (open, close): Undefine.
27814         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
27815
27816 2007-01-10  Bruno Haible  <bruno@clisp.org>
27817
27818         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
27819
27820 2007-01-12  Eric Blake  <ebb9@byu.net>
27821
27822         Provide a robust <wchar.h>.  Further simplifications are now
27823         possible in other modules, but not included here.
27824         * modules/wchar: New module.
27825         * m4/wchar.m4: New file.
27826         * lib/wchar_.h: Likewise.
27827         * modules/mbchar (Depends-on): Depend on wchar, as the first use
27828         of the new module.
27829         * MODULES.html.sh (Extended multibyte and wide character utilities):
27830         New section.
27831
27832 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
27833
27834         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
27835         to a reasonable default for memory allocation.
27836         (xreadlink): Don't allocate a huge buffer, to work around a buggy
27837         file system that reports garbage st_size values for symlinks.
27838         Problem reported by Liyang Hu.
27839
27840 2007-01-11  Simon Josefsson  <simon@josefsson.org>
27841
27842         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
27843         Emacs .#* auto-save files).
27844
27845 2007-01-11  Bruno Haible  <bruno@clisp.org>
27846
27847         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
27848         directory.
27849
27850 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
27851
27852         Use @...@ consistently in lib/wctype_.h.
27853         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
27854         on it being set to 1 or 0.
27855         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
27856         go back to AC_SUBSTing it.
27857         * modules/wctype (Makefile.am): Undo previous change.
27858
27859 2007-01-10  Eric Blake  <ebb9@byu.net>
27860
27861         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
27862         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
27863         * modules/wctype (Makefile.am): Likewise.
27864         Reported by Chris McGuire.
27865
27866 2007-01-10  Jim Meyering  <jim@meyering.net>
27867
27868         fts.c: a small readability/maintainability improvement
27869         * lib/fts.c (fts_read): Make this code slightly more readable and
27870         maintainable by hoisting the "sp->fts_cur = p" assignments to
27871         immediately follow the statements that set P.  Derived from
27872         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
27873
27874 2007-01-10  Eric Blake  <ebb9@byu.net>
27875
27876         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
27877         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
27878         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27879         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27880         Reported by Chris McGuire.
27881
27882 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27883
27884         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
27885         in sed script.
27886
27887 2007-01-09  Bruno Haible  <bruno@clisp.org>
27888
27889         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
27890         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
27891         variables.
27892         (func_module): Use them.
27893
27894 2007-01-09  Bruno Haible  <bruno@clisp.org>
27895
27896         * modules/unistr/base: New file.
27897         * lib/unistr.h: New file.
27898
27899         * modules/unistr/u8-to-u16: New file.
27900         * lib/unistr/u8-to-u16.c: New file.
27901
27902         * modules/unistr/u8-to-u32: New file.
27903         * lib/unistr/u8-to-u32.c: New file.
27904
27905         * modules/unistr/u16-to-u8: New file.
27906         * lib/unistr/u16-to-u8.c: New file.
27907
27908         * modules/unistr/u16-to-u32: New file.
27909         * lib/unistr/u16-to-u32.c: New file.
27910
27911         * modules/unistr/u32-to-u8: New file.
27912         * lib/unistr/u32-to-u8.c: New file.
27913
27914         * modules/unistr/u32-to-u16: New file.
27915         * lib/unistr/u32-to-u16.c: New file.
27916
27917         * modules/unistr/u8-check: New file.
27918         * modules/unistr/u16-check: New file.
27919         * modules/unistr/u32-check: New file.
27920         * lib/unistr/u8-check.c: New file.
27921         * lib/unistr/u16-check.c: New file.
27922         * lib/unistr/u32-check.c: New file.
27923
27924         * modules/unistr/u8-chr: New file.
27925         * modules/unistr/u16-chr: New file.
27926         * modules/unistr/u32-chr: New file.
27927         * lib/unistr/u8-chr.c: New file.
27928         * lib/unistr/u16-chr.c: New file.
27929         * lib/unistr/u32-chr.c: New file.
27930
27931         * modules/unistr/u8-cmp: New file.
27932         * modules/unistr/u16-cmp: New file.
27933         * modules/unistr/u32-cmp: New file.
27934         * lib/unistr/u8-cmp.c: New file.
27935         * lib/unistr/u16-cmp.c: New file.
27936         * lib/unistr/u32-cmp.c: New file.
27937
27938         * modules/unistr/u8-cpy: New file.
27939         * modules/unistr/u16-cpy: New file.
27940         * modules/unistr/u32-cpy: New file.
27941         * lib/unistr/u8-cpy.c: New file.
27942         * lib/unistr/u16-cpy.c: New file.
27943         * lib/unistr/u32-cpy.c: New file.
27944         * lib/unistr/u-cpy.h: New file.
27945
27946         * modules/unistr/u8-cpy-alloc: New file.
27947         * modules/unistr/u16-cpy-alloc: New file.
27948         * modules/unistr/u32-cpy-alloc: New file.
27949         * lib/unistr/u8-cpy-alloc.c: New file.
27950         * lib/unistr/u16-cpy-alloc.c: New file.
27951         * lib/unistr/u32-cpy-alloc.c: New file.
27952         * lib/unistr/u-cpy-alloc.h: New file.
27953
27954         * modules/unistr/u8-endswith: New file.
27955         * modules/unistr/u16-endswith: New file.
27956         * modules/unistr/u32-endswith: New file.
27957         * lib/unistr/u8-endswith.c: New file.
27958         * lib/unistr/u16-endswith.c: New file.
27959         * lib/unistr/u32-endswith.c: New file.
27960         * lib/unistr/u-endswith.h: New file.
27961
27962         * modules/unistr/u8-mblen: New file.
27963         * modules/unistr/u16-mblen: New file.
27964         * modules/unistr/u32-mblen: New file.
27965         * lib/unistr/u8-mblen.c: New file.
27966         * lib/unistr/u16-mblen.c: New file.
27967         * lib/unistr/u32-mblen.c: New file.
27968
27969         * modules/unistr/u8-mbtouc: New file.
27970         * modules/unistr/u16-mbtouc: New file.
27971         * modules/unistr/u32-mbtouc: New file.
27972         * lib/unistr/u8-mbtouc.c: New file.
27973         * lib/unistr/u16-mbtouc.c: New file.
27974         * lib/unistr/u32-mbtouc.c: New file.
27975
27976         * modules/unistr/u8-mbtouc-safe: New file.
27977         * modules/unistr/u16-mbtouc-safe: New file.
27978         * modules/unistr/u32-mbtouc-safe: New file.
27979         * lib/unistr/u8-mbtouc-safe.c: New file.
27980         * lib/unistr/u16-mbtouc-safe.c: New file.
27981         * lib/unistr/u32-mbtouc-safe.c: New file.
27982
27983         * modules/unistr/u8-move: New file.
27984         * modules/unistr/u16-move: New file.
27985         * modules/unistr/u32-move: New file.
27986         * lib/unistr/u8-move.c: New file.
27987         * lib/unistr/u16-move.c: New file.
27988         * lib/unistr/u32-move.c: New file.
27989         * lib/unistr/u-move.h: New file.
27990
27991         * modules/unistr/u8-next: New file.
27992         * modules/unistr/u16-next: New file.
27993         * modules/unistr/u32-next: New file.
27994         * lib/unistr/u8-next.c: New file.
27995         * lib/unistr/u16-next.c: New file.
27996         * lib/unistr/u32-next.c: New file.
27997
27998         * modules/unistr/u8-prev: New file.
27999         * modules/unistr/u16-prev: New file.
28000         * modules/unistr/u32-prev: New file.
28001         * lib/unistr/u8-prev.c: New file.
28002         * lib/unistr/u16-prev.c: New file.
28003         * lib/unistr/u32-prev.c: New file.
28004
28005         * modules/unistr/u8-set: New file.
28006         * modules/unistr/u16-set: New file.
28007         * modules/unistr/u32-set: New file.
28008         * lib/unistr/u8-set.c: New file.
28009         * lib/unistr/u16-set.c: New file.
28010         * lib/unistr/u32-set.c: New file.
28011         * lib/unistr/u-set.h: New file.
28012
28013         * modules/unistr/u8-startswith: New file.
28014         * modules/unistr/u16-startswith: New file.
28015         * modules/unistr/u32-startswith: New file.
28016         * lib/unistr/u8-startswith.c: New file.
28017         * lib/unistr/u16-startswith.c: New file.
28018         * lib/unistr/u32-startswith.c: New file.
28019         * lib/unistr/u-startswith.h: New file.
28020
28021         * modules/unistr/u8-stpcpy: New file.
28022         * modules/unistr/u16-stpcpy: New file.
28023         * modules/unistr/u32-stpcpy: New file.
28024         * lib/unistr/u8-stpcpy.c: New file.
28025         * lib/unistr/u16-stpcpy.c: New file.
28026         * lib/unistr/u32-stpcpy.c: New file.
28027         * lib/unistr/u-stpcpy.h: New file.
28028
28029         * modules/unistr/u8-stpncpy: New file.
28030         * modules/unistr/u16-stpncpy: New file.
28031         * modules/unistr/u32-stpncpy: New file.
28032         * lib/unistr/u8-stpncpy.c: New file.
28033         * lib/unistr/u16-stpncpy.c: New file.
28034         * lib/unistr/u32-stpncpy.c: New file.
28035         * lib/unistr/u-stpncpy.h: New file.
28036
28037         * modules/unistr/u8-strcat: New file.
28038         * modules/unistr/u16-strcat: New file.
28039         * modules/unistr/u32-strcat: New file.
28040         * lib/unistr/u8-strcat.c: New file.
28041         * lib/unistr/u16-strcat.c: New file.
28042         * lib/unistr/u32-strcat.c: New file.
28043         * lib/unistr/u-strcat.h: New file.
28044
28045         * modules/unistr/u8-strchr: New file.
28046         * modules/unistr/u16-strchr: New file.
28047         * modules/unistr/u32-strchr: New file.
28048         * lib/unistr/u8-strchr.c: New file.
28049         * lib/unistr/u16-strchr.c: New file.
28050         * lib/unistr/u32-strchr.c: New file.
28051
28052         * modules/unistr/u8-strcmp: New file.
28053         * modules/unistr/u16-strcmp: New file.
28054         * modules/unistr/u32-strcmp: New file.
28055         * lib/unistr/u8-strcmp.c: New file.
28056         * lib/unistr/u16-strcmp.c: New file.
28057         * lib/unistr/u32-strcmp.c: New file.
28058
28059         * modules/unistr/u8-strcpy: New file.
28060         * modules/unistr/u16-strcpy: New file.
28061         * modules/unistr/u32-strcpy: New file.
28062         * lib/unistr/u8-strcpy.c: New file.
28063         * lib/unistr/u16-strcpy.c: New file.
28064         * lib/unistr/u32-strcpy.c: New file.
28065         * lib/unistr/u-strcpy.h: New file.
28066
28067         * modules/unistr/u8-strcspn: New file.
28068         * modules/unistr/u16-strcspn: New file.
28069         * modules/unistr/u32-strcspn: New file.
28070         * lib/unistr/u8-strcspn.c: New file.
28071         * lib/unistr/u16-strcspn.c: New file.
28072         * lib/unistr/u32-strcspn.c: New file.
28073         * lib/unistr/u-strcspn.h: New file.
28074
28075         * modules/unistr/u8-strdup: New file.
28076         * modules/unistr/u16-strdup: New file.
28077         * modules/unistr/u32-strdup: New file.
28078         * lib/unistr/u8-strdup.c: New file.
28079         * lib/unistr/u16-strdup.c: New file.
28080         * lib/unistr/u32-strdup.c: New file.
28081         * lib/unistr/u-strdup.h: New file.
28082
28083         * modules/unistr/u8-strlen: New file.
28084         * modules/unistr/u16-strlen: New file.
28085         * modules/unistr/u32-strlen: New file.
28086         * lib/unistr/u8-strlen.c: New file.
28087         * lib/unistr/u16-strlen.c: New file.
28088         * lib/unistr/u32-strlen.c: New file.
28089         * lib/unistr/u-strlen.h: New file.
28090
28091         * modules/unistr/u8-strmblen: New file.
28092         * modules/unistr/u16-strmblen: New file.
28093         * modules/unistr/u32-strmblen: New file.
28094         * lib/unistr/u8-strmblen.c: New file.
28095         * lib/unistr/u16-strmblen.c: New file.
28096         * lib/unistr/u32-strmblen.c: New file.
28097
28098         * modules/unistr/u8-strmbtouc: New file.
28099         * modules/unistr/u16-strmbtouc: New file.
28100         * modules/unistr/u32-strmbtouc: New file.
28101         * lib/unistr/u8-strmbtouc.c: New file.
28102         * lib/unistr/u16-strmbtouc.c: New file.
28103         * lib/unistr/u32-strmbtouc.c: New file.
28104
28105         * modules/unistr/u8-strncat: New file.
28106         * modules/unistr/u16-strncat: New file.
28107         * modules/unistr/u32-strncat: New file.
28108         * lib/unistr/u8-strncat.c: New file.
28109         * lib/unistr/u16-strncat.c: New file.
28110         * lib/unistr/u32-strncat.c: New file.
28111         * lib/unistr/u-strncat.h: New file.
28112
28113         * modules/unistr/u8-strncmp: New file.
28114         * modules/unistr/u16-strncmp: New file.
28115         * modules/unistr/u32-strncmp: New file.
28116         * lib/unistr/u8-strncmp.c: New file.
28117         * lib/unistr/u16-strncmp.c: New file.
28118         * lib/unistr/u32-strncmp.c: New file.
28119
28120         * modules/unistr/u8-strncpy: New file.
28121         * modules/unistr/u16-strncpy: New file.
28122         * modules/unistr/u32-strncpy: New file.
28123         * lib/unistr/u8-strncpy.c: New file.
28124         * lib/unistr/u16-strncpy.c: New file.
28125         * lib/unistr/u32-strncpy.c: New file.
28126         * lib/unistr/u-strncpy.h: New file.
28127
28128         * modules/unistr/u8-strnlen: New file.
28129         * modules/unistr/u16-strnlen: New file.
28130         * modules/unistr/u32-strnlen: New file.
28131         * lib/unistr/u8-strnlen.c: New file.
28132         * lib/unistr/u16-strnlen.c: New file.
28133         * lib/unistr/u32-strnlen.c: New file.
28134         * lib/unistr/u-strnlen.h: New file.
28135
28136         * modules/unistr/u8-strpbrk: New file.
28137         * modules/unistr/u16-strpbrk: New file.
28138         * modules/unistr/u32-strpbrk: New file.
28139         * lib/unistr/u8-strpbrk.c: New file.
28140         * lib/unistr/u16-strpbrk.c: New file.
28141         * lib/unistr/u32-strpbrk.c: New file.
28142         * lib/unistr/u-strpbrk.h: New file.
28143
28144         * modules/unistr/u8-strrchr: New file.
28145         * modules/unistr/u16-strrchr: New file.
28146         * modules/unistr/u32-strrchr: New file.
28147         * lib/unistr/u8-strrchr.c: New file.
28148         * lib/unistr/u16-strrchr.c: New file.
28149         * lib/unistr/u32-strrchr.c: New file.
28150
28151         * modules/unistr/u8-strspn: New file.
28152         * modules/unistr/u16-strspn: New file.
28153         * modules/unistr/u32-strspn: New file.
28154         * lib/unistr/u8-strspn.c: New file.
28155         * lib/unistr/u16-strspn.c: New file.
28156         * lib/unistr/u32-strspn.c: New file.
28157         * lib/unistr/u-strspn.h: New file.
28158
28159         * modules/unistr/u8-strstr: New file.
28160         * modules/unistr/u16-strstr: New file.
28161         * modules/unistr/u32-strstr: New file.
28162         * lib/unistr/u8-strstr.c: New file.
28163         * lib/unistr/u16-strstr.c: New file.
28164         * lib/unistr/u32-strstr.c: New file.
28165         * lib/unistr/u-strstr.h: New file.
28166
28167         * modules/unistr/u8-strtok: New file.
28168         * modules/unistr/u16-strtok: New file.
28169         * modules/unistr/u32-strtok: New file.
28170         * lib/unistr/u8-strtok.c: New file.
28171         * lib/unistr/u16-strtok.c: New file.
28172         * lib/unistr/u32-strtok.c: New file.
28173         * lib/unistr/u-strtok.h: New file.
28174
28175         * modules/unistr/u8-uctomb: New file.
28176         * modules/unistr/u16-uctomb: New file.
28177         * modules/unistr/u32-uctomb: New file.
28178         * lib/unistr/u8-uctomb.c: New file.
28179         * lib/unistr/u16-uctomb.c: New file.
28180         * lib/unistr/u32-uctomb.c: New file.
28181
28182         * MODULES.html.sh (Unicode string functions): Add the new modules.
28183
28184 2007-01-08  Bruno Haible  <bruno@clisp.org>
28185
28186         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
28187         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
28188         subdirectories.
28189
28190 2007-01-08  Karl Berry  <karl@gnu.org>
28191
28192         * doc/error.texi: mention that main() fns must set program_name
28193         when progname is used.
28194
28195 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
28196
28197         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
28198         WCTYPE_H is empty, for the benefit of builds from non-distclean
28199         directories.  Problem reported by Eric Blake in
28200         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
28201
28202 2007-01-08  Bruno Haible  <bruno@clisp.org>
28203
28204         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
28205         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
28206         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
28207         PROVIDE_CANONICALIZE_FILENAME_MODE.
28208         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
28209
28210 2007-01-08  Bruno Haible  <bruno@clisp.org>
28211
28212         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
28213         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
28214         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
28215         * lib/fts.c: Likewise.
28216         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
28217
28218 2006-12-25  Bruno Haible  <bruno@clisp.org>
28219
28220         * modules/utf8-ucs4-safe: New file.
28221         * lib/utf8-ucs4-safe.h: New file.
28222         * lib/unistr/utf8-ucs4-safe.c: New file.
28223
28224         * modules/utf16-ucs4-safe: New file.
28225         * lib/utf16-ucs4-safe.h: New file.
28226         * lib/unistr/utf16-ucs4-safe.c: New file.
28227
28228         * MODULES.html.sh (Unicode string functions): Add the new modules.
28229
28230 2007-01-08  Bruno Haible  <bruno@clisp.org>
28231
28232         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
28233         (Depends-on): Add unitypes.
28234         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
28235         (u8_mbtouc_aux): Move out to separate file.
28236         (u8_mbtouc): Use ucs4_t, uint8_t types.
28237         * lib/unistr/utf8-ucs4.c: New file.
28238
28239         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
28240         (Depends-on): Add unitypes.
28241         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
28242         (u16_mbtouc_aux): Move out to separate file.
28243         (u16_mbtouc): Use ucs4_t, uint16_t types.
28244         * lib/unistr/utf16-ucs4.c: New file.
28245
28246         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
28247         (Depends-on): Add unitypes.
28248         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
28249         (u8_uctomb_aux): Move out to separate file.
28250         (u8_uctomb): Use ucs4_t, uint8_t types.
28251         * lib/unistr/ucs4-utf8.c: New file.
28252
28253         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
28254         (Depends-on): Add unitypes.
28255         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
28256         (u16_uctomb_aux): Move out to separate file.
28257         (u16_uctomb): Use ucs4_t, uint16_t types.
28258         * lib/unistr/ucs4-utf16.c: New file.
28259
28260 2006-12-25  Bruno Haible  <bruno@clisp.org>
28261
28262         * modules/unitypes: New file.
28263         * lib/unitypes.h: New file.
28264         * MODULES.html.sh (func_all_modules): New section "Unicode string
28265         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
28266         this section. Add unitypes.
28267
28268 2007-01-08  Bruno Haible  <bruno@clisp.org>
28269
28270         Avoid variable names that conflict with those from libtool.
28271         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
28272         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
28273         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
28274         library_names_spec to acl_library_names_spec, hardcode_* to
28275         acl_hardcode_*.
28276         Reported by Ralf Wildenhues.
28277
28278 2007-01-08  Bruno Haible  <bruno@clisp.org>
28279
28280         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
28281         definition.
28282         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
28283         definition.
28284         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
28285         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
28286         definition.
28287         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
28288         definition.
28289         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
28290         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
28291         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
28292         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
28293         definition.
28294         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
28295         definition.
28296         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
28297         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
28298         GC_USE_<algorithm>.
28299         * lib/gc-libgcrypt.c: Likewise.
28300         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
28301         * modules/gc-arctwo (configure.ac): Likewise.
28302         * modules/gc-des (configure.ac): Likewise.
28303         * modules/gc-hmac-md5 (configure.ac): Likewise.
28304         * modules/gc-hmac-sha1 (configure.ac): Likewise.
28305         * modules/gc-md2 (configure.ac): Likewise.
28306         * modules/gc-md4 (configure.ac): Likewise.
28307         * modules/gc-md5 (configure.ac): Likewise.
28308         * modules/gc-random (configure.ac): Likewise.
28309         * modules/gc-rijndael (configure.ac): Likewise.
28310         * modules/gc-sha1 (configure.ac): Likewise.
28311
28312 2007-01-08  Bruno Haible  <bruno@clisp.org>
28313
28314         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
28315         macro definition.
28316         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
28317         definition.
28318         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
28319         definition.
28320         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
28321         * modules/fcntl-safer (configure.ac): Likewise.
28322         * modules/fopen-safer (configure.ac): Likewise.
28323         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
28324         GNULIB_FWRITEERROR macro definition.
28325
28326 2007-01-08  Bruno Haible  <bruno@clisp.org>
28327
28328         * m4/gnulib-common.m4: New file.
28329         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
28330         (func_get_filelist): Add m4/gnulib-common.m4.
28331
28332 2007-01-08  Bruno Haible  <bruno@clisp.org>
28333
28334         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
28335         command.
28336
28337 2007-01-08  Jim Meyering  <jim@meyering.net>
28338
28339         Use a more robust test for a "can't happen" condition.
28340         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
28341         narrowed the st_size value.  Presuming the "can't happen" condition
28342         is true, that narrowing could conceivably convert an invalid st_size
28343         value into a valid one.  Instead, use a change based on Matthew
28344         Woehlke's original patch.
28345
28346         Slight readability improvement: use an assert-like macro
28347         in place of literal "abort ()" uses.
28348         * lib/fts.c (fts_assert): Define.
28349         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
28350         Use this macro instead of a bare 'abort'.
28351
28352 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
28353
28354         Don't worry about using IRIX 5.3's wctype.h broken definitions;
28355         simply work around them.
28356         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
28357         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
28358         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
28359         declaring.
28360         Don't bother to define as macros, since the standard doesn't require it.
28361         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
28362         longer worry about IRIX 5.3.
28363         (HAVE_WCTYPE_CTMP_BUG): Remove.
28364
28365 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28366
28367         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
28368         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
28369         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
28370         Problems reported by Georg Schwarz for IRIX 5.3.
28371
28372         * gnulib-tool (autoconf_minversion): Take the maximum version number
28373         found, not the minimum.  Problem reported by James Youngman.
28374
28375 2007-01-03  Karl Berry  <karl@gnu.org>
28376
28377         * doc/error.texi: new file, explaining interaction with progname.
28378         * doc/gnulib.texi: include it.  Update copyright.
28379
28380 2007-01-03  Simon Josefsson  <simon@josefsson.org>
28381
28382         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
28383         AC_CANONICAL_HOST, to improve autobuild outputs.
28384
28385 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
28386             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
28387
28388         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
28389         sockets, server sockets, and other file descriptors.  Count errors
28390         to compute the return value.  Reorder the code a bit to be easier
28391         to follow.  Don't set event bits that were not requested (except
28392         POLLERR and POLLHUP).
28393
28394 2007-01-01  Bruno Haible  <bruno@clisp.org>
28395
28396         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
28397
28398 2007-01-03  Jim Meyering  <jim@meyering.net>
28399
28400         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
28401
28402 2007-01-02  Bruno Haible  <bruno@clisp.org>
28403
28404         * modules/settime (Include): Require timespec.h.
28405         * modules/nanosleep (Include): Likewise.
28406
28407 2007-01-01  Bruno Haible  <bruno@clisp.org>
28408
28409         * gnulib-tool (func_emit_copyright_notice): Bump year.
28410         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
28411
28412 2007-01-01  Bruno Haible  <bruno@clisp.org>
28413
28414         Improve support for OpenBSD.
28415         * build-aux/config.rpath (libname_spec): Export.
28416         (library_names_spec): New variable. Export.
28417         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
28418         library_names_spec from the config.rpath output. Locate shared library
28419         through the name pattern in library_names_spec.
28420
28421 2007-01-01  Eric Blake  <ebb9@byu.net>
28422
28423         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
28424
28425 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
28426
28427         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
28428         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
28429         assume the C locale, and avoid an "eval" that could cause trouble.
28430         Problem with SORT reported by Bob Proulx.
28431
28432         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
28433         Define.  Trivial patch from Henning Nielsen Lund, originally
28434         sent to bug-grep@gnu.org today.
28435
28436 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28437
28438         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
28439         struct stat.  Problem reported by Henning Nielsen Lund.
28440         * lib/acl.c: Include acl.h first, to check interface.  Don't
28441         bother to include sys/types.h and sys/stat.h again.
28442
28443 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28444
28445         Import the following change from libc; problem reported by
28446         Sven Verdoolaege.
28447
28448         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
28449
28450         [BZ #1373]
28451         * lib/argp.h: Remove __NTH for __argp_usage inline function.
28452
28453 2006-12-28  Jim Meyering  <jim@meyering.net>
28454
28455         * build-aux/announce-gen: Do not assume that the package
28456         builds any of tar.gz, tar.bz2, and .xdelta files.
28457         Suggestion from Simon Josefsson.
28458
28459 2006-12-28  Simon Josefsson  <simon@josefsson.org>
28460
28461         * modules/announce-gen: New file.
28462
28463 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28464
28465         * lib/mbchar.h: Just include <wctype.h>; the wctype module
28466         handles its gotchas now.
28467         * lib/mbswidth.c: Likewise.
28468         * lib/wcwidth.h: Likewise.
28469         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
28470         and iswcntrl; the wctype module does this stuff now.
28471         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28473         * modules/mbchar (Depends-on): Add wctype.
28474         * modules/mbswidth (Depends-on): Likewise.
28475         * modules/wcwidth (Depends-on): Likewise.
28476
28477 2006-12-27  Eric Blake  <ebb9@byu.net>
28478
28479         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
28480         module uses more than what <wctype.h> is required to provide.
28481
28482 2006-12-26  Eric Blake  <ebb9@byu.net>
28483
28484         * gnulib-tool (sed_extract_prog): Avoid space-tab.
28485
28486 2006-12-26  Eric Blake  <ebb9@byu.net>
28487
28488         * modules/absolute-header: New module.
28489         * modules/fcntl (Depends-on): Depend on it.
28490         * modules/inttypes (Depends-on): Likewise.
28491         * modules/stdint (Depends-on): Likewise.
28492         * modules/sys_stat (Depends-on): Likewise.
28493         * modules/wctype (Depends-on): Likewise.
28494         * MODULES.html.sh (Support for building libraries and
28495         executables): Document it.
28496
28497 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28498
28499         * gnulib-tool (SED): Remove, undoing previous change.
28500         The problem was that it broke coreutils on Solaris, because
28501         "sed --posix" leaked into a makefile.
28502         (sed): New alias, if 'alias' and GNU sed.
28503
28504 2006-12-24  Jim Meyering  <jim@meyering.net>
28505
28506         Work around an fchownat bug in glibc-2.4:
28507         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
28508         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
28509         in spite of the -P option.
28510         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
28511         New macros.
28512         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
28513         * modules/openat (Files): Add lib/fchownat.c.
28514         * lib/openat.c (fchownat): Don't define here.  Move to...
28515         * lib/fchownat.c: ...this new file.
28516
28517 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28518
28519         Fix bug reported by Bruno Haible in
28520         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
28521         where quotearg.c didn't compile on Mac OS X 10.2 because it
28522         lacks <wchar.h> and wint_t.
28523         * lib/wctype_.h (__wctype_wint_t): New type.
28524         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
28525         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
28526         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
28527         Arg is now of type __wctype_wint_t, not wint_t.
28528         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
28529         substitute HAVE_WINT_T.
28530         * modules/wctype (Files): Add m4/wint_t.m4.
28531         (wctype.h): Substitute HAVE_WINT_T.
28532
28533 2006-12-23  Bruno Haible  <bruno@clisp.org>
28534
28535         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
28536
28537 2006-12-23  Bruno Haible  <bruno@clisp.org>
28538
28539         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
28540         S_ISLNK.
28541         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
28542         mingw.
28543
28544 2006-12-22  Bruno Haible  <bruno@clisp.org>
28545
28546         * lib/copy-file.c: Include acl.h.
28547         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
28548         Close the file descriptors only after being done with copy_acl.
28549         * modules/copy-file (Depends-on): Add acl.
28550
28551 2006-12-22  Bruno Haible  <bruno@clisp.org>
28552
28553         * gnulib-tool (SED): New variable.
28554         Use $SED instead of sed everywhere.
28555
28556 2006-12-22  Bruno Haible  <bruno@clisp.org>
28557
28558         * modules/no-c++: New file.
28559         * m4/no-c++.m4: New file.
28560         * MODULES.html.sh (Support for building libraries and executables):
28561         Add no-c++.
28562
28563 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28564
28565         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
28566         Include <limits.h>, and use its INT_MAX to rewrite the
28567         j loop so that it does not overflow 'int'.  Problem reported by
28568         Ralf Wildenhues in
28569         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
28570         Play it safe by shifting left by 1 rather than multiplying by 2,
28571         as GCC is less likely to optimize this away when the value
28572         is signed (when it assumes overflow leads to undefined behavior).
28573         Also, don't assume time_t uses two's complement.
28574
28575 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28576
28577         * MODULES.html.sh: New module wctype.
28578         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
28579         * lib/fnmatch.c: Don't bother to include <wchar.h> before
28580         <wctype.h>, since the new wctype module should fix this.
28581         * lib/quotearg.c: Include <wctype.h> unconditionally, since
28582         the wctype module should arrange for it.
28583         * lib/regex_internal.h: Likewise.
28584         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
28585         since the wctype module should handle this now.
28586         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
28587         * modules/fnmatch (Depends-on): Add wctype.
28588         * modules/quotearg (Depends-on): Likewise.
28589         * modules/regex (Depends-on): Likewise.
28590
28591 2006-12-19  Bruno Haible  <bruno@clisp.org>
28592
28593         * lib/strdup.h [C++]: Wrap definitions in extern "C".
28594         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
28595
28596 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28597
28598         * modules/savewd (Depends-on): Fix dependency on fcntl.
28599
28600 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28601
28602         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
28603         conforms to C99, rather than relying on the user's environment
28604         setting of STDINT_H.
28605
28606 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28607         and Eric Blake  <ebb9@byu.net>
28608
28609         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
28610         This is more consistent with the other defines here.
28611         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
28612         Port to z/OS.  Problem reported by Paul Gilmartin.
28613         Change local vars to use gl_ prefix rather than ac_.
28614         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
28615         with other defines.
28616         * modules/double-slash-root: New module.
28617         * modules/dirname (Files): Remove m4/double-slash-root.m4.
28618         (Depends-on): Add double-slash-root.
28619         * MODULES.html.sh (File system functions): Mention new module.
28620
28621 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
28622
28623         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
28624         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
28625         This is for the benefit of gzip, which doesn't do i18n.
28626
28627 2006-12-12  Jim Meyering  <jim@meyering.net>
28628
28629         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
28630         Reported by Andreas Schwab <schwab@suse.de>.
28631
28632 2006-12-12  Bruno Haible  <bruno@clisp.org>
28633
28634         Merge these changes.
28635         2006-09-05  Bruno Haible  <bruno@clisp.org>
28636         * lib/iconvme.c (iconv_string): No need to save and restore errno when
28637         iconv_alloc succeeded.
28638         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
28639         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
28640         test for " && dest " at the end - dest is always != NULL there. Call
28641         iconv with 4xNULL arguments initially, to reset the state. Call iconv
28642         with 2xNULL arguments, also to flush the state storage. Handle the
28643         IRIX iconv behaviour. Realloc the final result, to throw away unused
28644         memory.
28645
28646 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
28647
28648         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
28649         and fchmodat unconditionally, since glibc 2.4 has them.
28650         Problem reported by Arkadiusz Miskiewicz.
28651
28652 2006-12-10  Bruno Haible  <bruno@clisp.org>
28653
28654         * gnulib-tool (func_import): Show the include files only for those
28655         modules that are copied and specified.
28656         Reported by Karl Berry.
28657
28658 2006-12-08  Jim Meyering  <jim@meyering.net>
28659
28660         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
28661         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
28662
28663         * build-aux/announce-gen: Add two new options, both optional:
28664         --bootstrap-tools=TOOL_LIST
28665               a comma-separated list of tools, e.g.,
28666               autoconf,automake,bison,gnulib
28667         --gnulib-snapshot-date=DATE
28668               if gnulib is in the bootstrap tool list,
28669               then report this as the snapshot date.
28670               If not specified, use the current date/time.
28671               If you specify a date here, be sure it's UTC.
28672
28673 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28674
28675         * tests/test-argp-2.sh: Fix test to match actual output.
28676         (func_compare): Fix sed script to be portable.
28677
28678 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
28679
28680         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
28681         workaround for this case.  It is not autoconfigured now; offhand
28682         it's hard to see how to autoconfigure it.
28683
28684 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
28685
28686         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
28687         a directory that is about to be chowned.  Such a directory's
28688         initial file permissions should permit the owner only and this
28689         should not be changed until after the chown, since the group and
28690         other bits would be incorrect if they granted permission before
28691         the chown.
28692
28693         Fix porting problem for iswctype reported by Georg Schwarz in:
28694         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
28695         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
28696         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
28697         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
28698         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28699
28700 2006-12-03  Jim Meyering  <jim@meyering.net>
28701
28702         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
28703         p->fts_statp may not yet be defined.
28704         (fts_read): Instead, set it in the caller, once p->fts_statp is
28705         sure to be defined, and corresponds to a top-level directory.
28706         This bug made du -x fail.  Here's the coreutils test case:
28707         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
28708         Reported by Mike Frysinger.
28709
28710 2006-12-01  Jim Meyering  <jim@meyering.net>
28711
28712         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
28713         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
28714         Reported by Simon Josefsson.
28715
28716 2006-11-30  Jim Meyering  <jim@meyering.net>
28717
28718         * m4/warning.m4: Use the all-permissive copyright notice
28719         recommended by RMS (rather than LGPL).
28720         * m4/vararrays.m4: Likewise.
28721         * m4/flexmember.m4: Likewise.
28722
28723 2006-11-29  Bruno Haible  <bruno@clisp.org>
28724
28725         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
28726         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
28727         using +=.
28728         Reported by Simon Josefsson <simon@josefsson.org>.
28729
28730 2006-11-28  James Youngman <jay@gnu.org>
28731
28732         * README: Advise users that they might find the bug-gnulib@gnu.org
28733         and autotools-announce@gnu.org mailing lists useful.
28734
28735 2006-11-28  Bruno Haible  <bruno@clisp.org>
28736
28737         * m4/ptrdiff_max.m4: Remove file.
28738
28739 2006-11-21  Bruno Haible  <bruno@clisp.org>
28740
28741         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
28742         _AC_COMPUTE_INT.
28743         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
28744         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
28745         _AC_COMPUTE_INT.
28746         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
28747         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
28748         _AC_COMPUTE_INT.
28749         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
28750
28751 2006-11-28  Jim Meyering  <jim@meyering.net>
28752
28753         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
28754         warning from "gcc -Wshadow" about shadowing the builtin.
28755
28756 2006-11-27  Bruno Haible  <bruno@clisp.org>
28757
28758         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
28759         _AC_COMPUTE_INT.
28760         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
28761
28762 2006-11-27  Bruno Haible  <bruno@clisp.org>
28763             Paul Eggert  <eggert@cs.ucla.edu>
28764
28765         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
28766
28767 2006-11-26  Bruno Haible  <bruno@clisp.org>
28768
28769         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
28770         noinst_LTLIBRARIES.
28771
28772 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
28773             Bruno Haible  <bruno@clisp.org>
28774
28775         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
28776         if compiling with "gcc -ansi".
28777
28778 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
28779
28780         Fix some incompatibilities with gcc -ansi -pedantic.
28781         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
28782         if compiling pedantically with GCC, unless it's C99 or later.
28783         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
28784         it mishandles gcc -ansi -pedantic as well.
28785         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
28786         if gcc -pedantic.
28787         * lib/regexec.c (check_node_accept_bytes): Don't use auto
28788         initializers for struct if -pedantic, unless it's C99 or later.
28789
28790 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
28791
28792         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
28793         Don't close an fd more than once. Identical atimes indicate
28794         success, not failure.
28795
28796 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
28797
28798         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
28799
28800 2006-11-23  Jim Meyering  <jim@meyering.net>
28801
28802         * build-aux/announce-gen: New file.  From coreutils.
28803
28804 2006-11-22  Jim Meyering  <jim@meyering.net>
28805
28806         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
28807         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
28808         (fts_read): Use a temporary to narrow the overused st_size member
28809         before using it in a switch statement.  Reported by Matthew Woehlke.
28810
28811         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
28812         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28813
28814 2006-11-20  Bruno Haible  <bruno@clisp.org>
28815
28816         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
28817         changequote instead of pairs of brackets.
28818         Reported by Andreas Schwab <schwab@suse.de>.
28819
28820 2006-11-21  Jim Meyering  <jim@meyering.net>
28821
28822         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
28823         so as to remain compatible with older compilers.
28824         Patch from Michael Deutschmann.
28825
28826 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
28827
28828         * MODULES.html.sh (File system functions): Add openat.
28829
28830         * lib/openat.h (rpl_fstatat): New macro, if
28831         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
28832         (fstatat): Define to rpl_fstatat under the same conditions,
28833         unless COMPILING_FSTATAT.
28834         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
28835         seems to have the bug.
28836         * lib/fstatat.c: New file.
28837         * modules/openat (Files): Add it.
28838
28839 2006-11-20  Bruno Haible  <bruno@clisp.org>
28840
28841         * Makefile: New file.
28842
28843 2006-11-20  Jim Meyering  <jim@meyering.net>
28844
28845         The beginnings of syntax-related checks for gnulib.
28846         * lib/Makefile: New file.
28847         * lib/t-idcache: New script.  Ensure that the two halves of
28848         idcache.c stay in sync.
28849
28850         * lib/idcache.c: Adjust comments in user- and group- portions to
28851         be more accurate, and to be consistent with one another.
28852
28853 2006-11-20  Jim Meyering  <jim@meyering.net>
28854
28855         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
28856         continue using the flexible array member (thus, this module performs
28857         half as many malloc calls), with the addition that...
28858         (getgroup, getuser): Consistently record a non-match via an empty
28859         "name" string, and map an empty string match to a NULL return value.
28860         * modules/idcache (Depends-on): Re-add flexmember.
28861
28862         * lib/idcache.c (getuser): Remove all uses of the register keyword.
28863         (getuidbyname, getgroup, getgidbyname): Likewise.
28864
28865         Use cleaner syntax: NULL rather than 0.
28866         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
28867
28868 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
28869
28870         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
28871         It mishandled the case where the group was missing.
28872         Problem reported by Greg Schafer.
28873         * modules/idcache: Likewise.
28874
28875 2006-11-18  Jim Meyering  <jim@meyering.net>
28876
28877         * check-module (%exempt_header): Add exception for some
28878         conditionally-included headers.
28879
28880         * modules/i-ring (Depends-on): Add verify.
28881         (License): Change to LGPL.
28882
28883 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28884
28885         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
28886         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
28887         and inttostr.h.  Use snprintf rather than uinttostr, so that
28888         LGPLed code doesn't depend on GPLed.
28889
28890 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28891
28892         * modules/inline (License): Change from GPL to LGPL.
28893
28894 2006-11-17  Jim Meyering  <jim@meyering.net>
28895
28896         * modules/d-type (License): Switch to LGPL.
28897
28898 2006-11-15  Bruno Haible  <bruno@clisp.org>
28899
28900         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
28901
28902 2006-11-15  Eric Blake  <ebb9@byu.net>
28903
28904         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
28905         the module dependency.
28906
28907 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28908             Bruno Haible  <bruno@clisp.org>
28909
28910         * gnulib-tool (func_create_testdir): Add license consistency check.
28911
28912 2006-11-15  Eric Blake  <ebb9@byu.net>
28913
28914         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
28915         random "(cached)" in configure output.
28916
28917 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28918
28919         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
28920         test for conforming inttypes.h is both announced and cached.
28921
28922         * MODULES.html.sh (seen_modules, seen_files): New variables.
28923         (func_module): Rewrite to use a few less gnulib-tool and sed
28924         invocations.  Avoid a couple of quadratic algorithms for ...
28925         (missed_modules, missed_files): ... these, with ...
28926         (func_append, func_tmpdir): ... these new functions, from
28927         gnulib-tool.  Analogously, install traps for cleanup.
28928
28929         * tests/test-gc.c (main): Remove unused variables.
28930         * tests/test-read-file.c: Include stdlib.h, for 'free'.
28931
28932 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
28933
28934         * modules/inttostr (License): Change to LGPL.
28935
28936 2006-11-14  Eric Blake  <ebb9@byu.net>
28937
28938         * modules/tempname (License): Change to LGPL.
28939
28940 2006-11-14  Eric Blake  <ebb9@byu.net>
28941
28942         * doc/functions.texi (Function Portability): *printf functions on
28943         Cygwin now understand all POSIX size specifiers.
28944
28945 2006-11-14  Bruno Haible  <bruno@clisp.org>
28946
28947         * modules/c-ctype (License): Change to LGPL.
28948
28949 2006-11-12  Bruno Haible  <bruno@clisp.org>
28950
28951         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
28952         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
28953         for GNOME libraries, for which the include files are installed in
28954         subdirectories of $prefix/include.
28955
28956 2006-11-12  Bruno Haible  <bruno@clisp.org>
28957
28958         * m4/lib-link.m4: Require at least autoconf-2.54.
28959         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
28960         name to underscores for the --with option.
28961
28962 2006-11-13  Bruno Haible  <bruno@clisp.org>
28963
28964         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
28965         the tests directory.
28966         Reported by Ralf Wildenhues.
28967
28968 2006-11-13  Bruno Haible  <bruno@clisp.org>
28969
28970         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
28971         (func_emit_initmacro_end): Undo the override here.
28972         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
28973         Works around the famous automake error in coreutils.
28974
28975 2006-11-13  Eric Blake  <ebb9@byu.net>
28976
28977         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
28978         element, not its node.
28979
28980 2006-11-12  Bruno Haible  <bruno@clisp.org>
28981
28982         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
28983         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
28984
28985 2006-11-12  Bruno Haible  <bruno@clisp.org>
28986
28987         * gnulib-tool: New option --local-symlink.
28988         (func_usage): Document it.
28989         (lsymbolic): New variable.
28990         (func_import, func_create_testdir): If --symlink was not specified,
28991         test whether --local-symlink was specified and the file comes from
28992         the local_gnulib_dir.
28993
28994 2006-11-12  Bruno Haible  <bruno@clisp.org>
28995
28996         * gnulib-tool (func_ln): New function.
28997         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
28998
28999 2006-11-12  Bruno Haible  <bruno@clisp.org>
29000
29001         Finish support for source files in subdirectories.
29002         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
29003         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
29004         AUTOMAKE_OPTIONS.
29005         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
29006
29007 2006-11-12  Bruno Haible  <bruno@clisp.org>
29008
29009         * gnulib-tool (func_get_automake_snippet): Synthesize also an
29010         EXTRA_lib_SOURCES augmentation.
29011         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
29012
29013 2006-11-12  Jim Meyering  <jim@meyering.net>
29014
29015         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
29016         file descriptors.  This also averts a failure on systems with
29017         native openat support when a traversed directory lacks "x" access.
29018         * lib/fts_.h: Include "i-ring.h"
29019         (struct FTS) [fts_fd_ring]: New member.
29020         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
29021         (FCHDIR): Add parentheses.
29022         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
29023         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
29024         When descending, rather than simply closing the previous
29025         fts_cwd_fd value, push that file descriptor onto the ring.
29026         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
29027         (fts_open): Initialize the new fd_ring member.
29028         (fts_close): Clear the ring.
29029         (fts_safe_changedir): When possible, use our new fd_ring to skip
29030         the diropen and fstat and dev/ino comparison that would normally
29031         accompany a virtual `chdir ("..")'.
29032
29033         * modules/fts (Depends-on): Add i-ring.
29034         * modules/i-ring: New module.
29035         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
29036         * m4/i-ring.m4: New file.
29037
29038 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29039
29040         * gnulib-tool (func_create_testdir): Fix replacement of
29041         `build-aux' in configure.ac.  Run autotools in gltests
29042         subdirectory.
29043         (func_create_testdir, func_create_megatestdir, test): There is
29044         no need for '--force' in most autotool invocations in a new
29045         tree.  Actually fail the whole test if any of the tools, or the
29046         configure or make stages fail.
29047
29048         Sync from Automake.
29049         * build-aux/gnupload: Revert last change.  Add pointer to upload
29050         instructions of the GNU Maintenance Instructions.
29051         Suggestion by Karl Berry.
29052
29053 2006-11-10  Jim Meyering  <jim@meyering.net>
29054
29055         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
29056
29057 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
29058
29059         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
29060         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
29061         (bind_textdomain_codeset) [! ENABLE_NLS]:
29062         Evaluate all the arguments.  That way, callers get compatible behavior
29063         if the arguments have side effects.  Also, it avoids some GCC
29064         diagnostics in some cases; Joel E. Denny reported problems when Bison
29065         was configured with --enable-gcc-warnigs.
29066
29067 2006-11-10  Jim Meyering  <jim@meyering.net>
29068
29069         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
29070         relevant options in CFLAGS (like -O, -fno-inline) are taken into
29071         account.
29072
29073 2006-11-10  Jim Meyering  <jim@meyering.net>
29074
29075         * modules/inline: New file/module.
29076         * modules/xalloc (Files): Remove m4/inline.m4.
29077         (Depends-on): Add inline, instead.
29078         * modules/oset: Likewise.
29079         * modules/list: Likewise.
29080
29081 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
29082
29083         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
29084         Problem reported by Matthew Woehlke.
29085
29086 2006-11-09  Bruno Haible  <bruno@clisp.org>
29087
29088         * lib/tempname.c (gen_tempname): Remove variant that invokes
29089         __gen_tempname.
29090         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
29091         __gen_tempname.
29092
29093 2006-11-08  Bruno Haible  <bruno@clisp.org>
29094
29095         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
29096         to 'yes' instead of 'cross-compiling'.
29097
29098 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
29099
29100         * lib/quotearg.h (quotearg_free): New decl.
29101         * lib/quotearg.c (quotearg_free): New function.
29102         (slot0, nslots, slotvec0, slotvec):
29103         Now file-scope so that quotearg_free can get at them.
29104
29105 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29106
29107         Sync from Automake.
29108         * build-aux/gnupload: Add missing 'gnu' to example URL.
29109         Report by Karl Berry.
29110
29111 2006-11-08  Bruno Haible  <bruno@clisp.org>
29112
29113         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
29114         Suggested by Paul Eggert.
29115
29116 2006-11-08  Jim Meyering  <jim@meyering.net>
29117
29118         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
29119         It's already included if !_LIBC.
29120         (fts_safe_changedir): Add a comment.
29121
29122 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29123
29124         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
29125         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
29126         Matthew Woehlke.
29127
29128         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
29129         definitions up, to avoid colliding with change below.
29130         (static_inline) [HAVE_INLINE]: New macro.
29131         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
29132         Provide extern decls when !HAVE_INLINE.  Do not define unless
29133         static_inline is defined, either by us or by xmalloc.c.  Use
29134         static_inline rather than static inline.
29135         (XCALLOC): Optimize sizeof(T) = 1 case.
29136         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
29137
29138 2006-11-07  Bruno Haible  <bruno@clisp.org>
29139
29140         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
29141         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
29142         AC_C_INLINE.
29143         * modules/xalloc (Files): Add m4/inline.m4.
29144
29145 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29146
29147         * README: Fix typo.
29148         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
29149         (Miscellanous Notes): ...from this.
29150
29151 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29152
29153         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
29154         Mention that offsetof should be used instead of sizeof.
29155         From Bruno Haible.
29156
29157 2006-11-07  Bruno Haible  <bruno@clisp.org>
29158
29159         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
29160
29161 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
29162
29163         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
29164         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
29165         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
29166         (gl_tree_add_before, gl_tree_add_after):
29167         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
29168         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
29169         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
29170         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
29171         (gl_linked_add_after, gl_linked_add_at): Likewise.
29172         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
29173         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
29174         (gl_tree_add_before, gl_tree_add_after): Likewise.
29175         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
29176         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
29177         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
29178
29179 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29180
29181         * lib/gl_oset.h: Use C comment style, not C++ comment style.
29182
29183 2006-11-06  Bruno Haible  <bruno@clisp.org>
29184
29185         * m4/inline.m4: New file.
29186         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
29187         * modules/list (Files): Add m4/inline.m4.
29188         * modules/oset (Files): Likewise.
29189
29190 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
29191
29192         * lib/idcache.c: Include <stddef.h>, for offsetof.
29193         (struct userid.name): Change from char * to a flexible array member.
29194         All uses changed.
29195         * modules/idcache (Depends-on): Add flexmember.
29196
29197         * MODULES.html.sh (Core language properties): New module flexmember.
29198         * modules/flexmember, m4/flexmember.m4: New files.
29199
29200         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
29201         inline functions that are identical with the old xnmalloc_inline,
29202         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
29203         that we can avoid some unnecessary integer multiplications and
29204         divisions in the common case where the element size is known at
29205         compile time.
29206         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
29207         needed.
29208         (xnboundedmalloc): Remove.
29209         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
29210         arguments, for consistency with rest of this header.
29211         (xcharalloc): Rewrite using XNMALLOC.
29212         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
29213         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
29214         versions have been moved to lib/xalloc.h and renamed to be the
29215         non-*_inline versions.
29216         (xmalloc, xrealloc): Implement without reference to the xnmalloc
29217         and xnrealloc functions, since those functions are now inline and
29218         now call us.
29219         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
29220         renaming described above.
29221         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
29222         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
29223         captures the dependency in AC_C_INLINE.
29224
29225         New module canonicalize-lgpl, proposed by Charles Wilson in
29226         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
29227         with a few small changes afterwards.
29228         * MODULES.html.sh (File system functions): New module
29229         canonicalize-lgpl.
29230         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
29231         and canonicalize_file_name.
29232         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
29233         * modules/canonicalize-lgpl: New files.
29234
29235 2006-11-05  Bruno Haible  <bruno@clisp.org>
29236
29237         * gnulib-tool (func_import, func_create_testdir): Create directories
29238         also for files in subdirectories of lib/.
29239
29240 2006-11-05  Bruno Haible  <bruno@clisp.org>
29241
29242         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
29243         ANSI C compliant.
29244
29245 2006-11-03  Bruno Haible  <bruno@clisp.org>
29246
29247         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
29248         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
29249         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
29250         (xnboundedmalloc): New inline function.
29251         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
29252         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
29253         xmalloc.
29254         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
29255         xmalloc.
29256         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
29257         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
29258         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
29259         xmalloc.
29260         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
29261         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
29262         xmalloc.
29263         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
29264         gl_tree_add_after): Use XMALLOC instead of xmalloc.
29265         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
29266         xmalloc.
29267         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
29268         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
29269         gl_tree_add_after): Use XMALLOC instead of xmalloc.
29270         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
29271         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
29272         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
29273         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
29274
29275 2006-11-03  Bruno Haible  <bruno@clisp.org>
29276
29277         * lib/c-ctype.h [C++]: Define functions without name mangling.
29278         * lib/fwriteerror.h [C++]: Likewise.
29279         * lib/gcd.h [C++]: Likewise.
29280         * lib/linebreak.h [C++]: Likewise.
29281
29282 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
29283
29284         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
29285         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
29286         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
29287         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
29288         Check for functions and headers just once.
29289         Check for declaration of canonicalize_file_name.
29290         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
29291
29292 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
29293
29294         * gnulib-tool (func_import): Fix typo in actioncmd.
29295
29296 2006-11-02  Bruno Haible  <bruno@clisp.org>
29297
29298         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
29299         newline sequence in the Makefile.am snippet as a space, like "make"
29300         does.
29301         Reported by Roger Persson <perrog@gmail.com>.
29302
29303 2006-11-01  Bruno Haible  <bruno@clisp.org>
29304
29305         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
29306         already declared in <string.h>.
29307         * lib/strcase.h (strncasecmp): Don't declare it if yes.
29308
29309 2006-11-01  Bruno Haible  <bruno@clisp.org>
29310
29311         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
29312         * lib/strcase.h: Include <string.h>.
29313         (strcasecmp): Define to rpl_strcasecmp here.
29314
29315 2006-11-01  Bruno Haible  <bruno@clisp.org>
29316
29317         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
29318
29319 2006-11-01  Eric Blake  <ebb9@byu.net>
29320
29321         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
29322
29323         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
29324
29325 2006-10-29  Bruno Haible  <bruno@clisp.org>
29326
29327         Make it compile in C++ mode.
29328         * lib/full-write.c (full_rw): Add a cast.
29329
29330 2006-11-01  Bruno Haible  <bruno@clisp.org>
29331
29332         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
29333         be POSIX compliant.
29334         Reported by Roger Persson <perrog@gmail.com>.
29335
29336 2006-11-01  Eric Blake  <ebb9@byu.net>
29337
29338         * lib/getopt_.h: Fix comments.
29339
29340 2006-10-31  Eric Blake  <ebb9@byu.net>
29341
29342         * modules/tmpdir (Depends-on): Add sys_stat.
29343         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
29344         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
29345         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
29346         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
29347         tempname.
29348
29349 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
29350
29351         Avoid some C++ diagnostics reported by Bruno Haible.
29352         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
29353         xmalloc.
29354         (quotearg_alloc): Use xcharalloc rather than xmalloc.
29355         (struct slotvec): Move to top level.
29356         (quotearg_n_options): Rewrite to avoid xmalloc.
29357         * lib/xalloc.h (xcharalloc): New function.
29358         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
29359         [defined __cplusplus]: Add function template that provides result
29360         type propagation.  This part of the change is from Bruno Haible.
29361
29362 2006-10-29  Bruno Haible  <bruno@clisp.org>
29363
29364         Make it compile in C++ mode.
29365         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
29366         * lib/strnlen1.c (strnlen1): Cast memchr result.
29367         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
29368         * lib/clean-temp.c (string_equals, string_hash): Add casts.
29369         (create_temp_dir): Rename local variable 'template'.
29370         (compile_csharp_using_sscli): Add cast.
29371         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
29372         * lib/findprog.c (find_in_path): Likewise.
29373         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
29374         * lib/wait-process.c (register_slave_subprocess): Likewise.
29375
29376 2006-10-22  Bruno Haible  <bruno@clisp.org>
29377
29378         * modules/tsearch: New file.
29379         * lib/tsearch.h: New file.
29380         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
29381         * m4/tsearch.m4: New file.
29382         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
29383
29384 2006-10-29  Eric Blake  <ebb9@byu.net>
29385
29386         * lib/arcfour.c: Assume config.h.
29387         * lib/arctwo.c: Likewise.
29388         * lib/base64.c: Likewise.
29389         * lib/check-version.c: Likewise.
29390         * lib/crc.c: Likewise.
29391         * lib/des.c: Likewise.
29392         * lib/gc-gnulib.c: Likewise.
29393         * lib/gc-libgcrypt.c: Likewise.
29394         * lib/gc-pbkdf2-sha1.c: Likewise.
29395         * lib/getaddrinfo.c: Likewise.
29396         * lib/getdelim.c: Likewise.
29397         * lib/getline.c: Likewise.
29398         * lib/hmac-md5.c: Likewise.
29399         * lib/hmac-sha1.c: Likewise.
29400         * lib/iconvme.c: Likewise.
29401         * lib/md2.c: Likewise.
29402         * lib/md4.c: Likewise.
29403         * lib/memxor.c: Likewise.
29404         * lib/read-file.c: Likewise.
29405         * lib/readline.c: Likewise.
29406         * lib/rijndael-alg-fst.c: Likewise.
29407         * lib/rijndael-api-fst.c: Likewise.
29408         * lib/xgetdomainname.c: Likewise.
29409
29410 2006-10-28  Eric Blake  <ebb9@byu.net>
29411
29412         * lib/xstrndup.c: Assume config.h.
29413
29414 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
29415
29416         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
29417         stat-macros.h is now for our own macros, whereas stat_h is for
29418         macros in the <sys/stat.h> name space.
29419         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
29420         (STAT_MACROS_H): Remove.
29421         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
29422         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
29423         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
29424         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
29425         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
29426         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
29427         Move these macros to ...
29428         * lib/stat_.h: here.  Don't include stat-macros.h.
29429         * lib/canonicalize.c: Don't include stat-macros.h.
29430         * lib/chown.c: Likewise.
29431         * lib/euidaccess.c: Likewise.
29432         * lib/file-type.c: Likewise.
29433         * lib/filemode.c: Likewise.
29434         * lib/glob.c: Likewise.
29435         * lib/isapipe.c: Likewise.
29436         * lib/lchown.c: Likewise.
29437         * lib/lstat.c: Likewise.
29438         * lib/mkdir-p.c: Likewise.
29439         * lib/rmdir.c: Likewise.
29440         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
29441         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
29442         unless mkdir isn't declared, to speed up 'configure'.
29443         Always create sys/stat.h, since it's unlikely any real sys/stat.h
29444         would define all the S_* symbols.
29445         * modules/canonicalize (Depends-on):
29446         Depend on sys_stat, not stat-macros.
29447         * modules/chown: Likewise.
29448         * modules/euidaccess: Likewise.
29449         * modules/filemode: Likewise.
29450         * modules/file-type: Likewise.
29451         * modules/glob: Likewise.
29452         * modules/isapipe: Likewise.
29453         * modules/lchown: Likewise.
29454         * modules/lstat: Likewise.
29455         * modules/mkancesdirs: Likewise.
29456         * modules/rmdir: Likewise.
29457         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
29458         * modules/modechange: Likewise.
29459         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
29460         (configure.ac): Remove gl_STAT_MACROS.
29461         * modules/sys_stat (Depends-on): Remove stat-macros.
29462
29463 2006-10-27  Bruno Haible  <bruno@clisp.org>
29464
29465         * m4/signed.m4: Remove file.
29466         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
29467         invocation.
29468         * modules/vasnprintf (Files): Remove m4/signed.m4.
29469
29470 2006-10-27  Bruno Haible  <bruno@clisp.org>
29471
29472         Update to GNU gettext 0.16.
29473         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
29474         m4/inttypes-h.m4, m4/signed.m4.
29475         * m4/gettext.m4: Update to GNU gettext 0.16.
29476         * m4/intl.m4: New file, from GNU gettext.
29477         * m4/intldir.m4: New file, from GNU gettext.
29478         * config/srclist.txt: Update
29479
29480 2006-10-27  Eric Blake  <ebb9@byu.net>
29481
29482         * MODULES.html.sh: Document tempname.
29483         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
29484         dependencies.
29485         (Files): Move lib/tempname.c...
29486         * modules/tempname: ...to this new module.
29487         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
29488         (gl_PREREQ_TEMPNAME): Move...
29489         * m4/tempname.m4: ...to this new file.
29490         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
29491         * modules/sys_stat (Depends-on): Add stat-macros.
29492         * lib/stat_.h (includes): Pick up stat macros.
29493         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
29494         if stat macros are broken.
29495         * lib/tempname.c (includes): No need to include "stat-macros.h".
29496         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
29497         (direxists, __path_search) [!_LIBC]: Don't compile these in
29498         gnulib; the tmpdir module covers that.
29499         * lib/tempname.h: New file.
29500
29501 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
29502
29503         * COPYING: Explain how gnulib-tool converts licence headers.
29504         Almost all wording by Eric Blake.
29505
29506 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
29507
29508         * lib/mbchar.h (is_basic_table): Make read-only.
29509         * lib/mbchar.c (is_basic_table): Likewise.
29510         Reported by John Darrington.
29511
29512 2006-10-25  Bruno Haible  <bruno@clisp.org>
29513
29514         * lib/progname.h (set_program_name): Undefine before defining.
29515
29516 2006-10-25  Bruno Haible  <bruno@clisp.org>
29517
29518         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
29519         false for non-gcc C++ compilers.
29520         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29521
29522 2006-10-24  Bruno Haible  <bruno@clisp.org>
29523
29524         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
29525         iconv implementations like Irix iconv.
29526
29527 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29528
29529         * modules/vararrays: New file.
29530         * m4/vararrays.m4: New file, taken from diffutils.
29531         * MODULES.html.sh: New module vararrays.
29532
29533 2006-10-24  Karl Berry  <karl@gnu.org>
29534
29535         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
29536         Don't call GNU Unix.
29537
29538 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29539
29540         * users.txt: Add Libtool.
29541
29542         Sync from Libtool:
29543
29544         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29545
29546         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
29547         to gnulib's policy of including config.h unconditionally.
29548
29549 2006-10-24  Bruno Haible  <bruno@clisp.org>
29550
29551         * modules/wcwidth (Files): Add m4/wint_t.m4.
29552         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
29553         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
29554
29555 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29556
29557         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
29558         to pacify GCC with some -W flags enabled.  Problem reported by
29559         Bruno Haible.
29560
29561 2006-10-24  Jim Meyering  <jim@meyering.net>
29562
29563         * MODULES.html.sh: Remove uinttostr.  It's not a module.
29564         Reported by Karl Berry.
29565
29566 2006-10-23  Bruno Haible  <bruno@clisp.org>
29567
29568         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
29569
29570 2006-10-24  Bruno Haible  <bruno@clisp.org>
29571
29572         * lib/gl_list.h: Use C comment style, not C++ comment style.
29573
29574 2006-10-23  Eric Blake  <ebb9@byu.net>
29575
29576         * lib/getaddrinfo.c (includes): Add missing include.
29577
29578 2006-10-23  Bruno Haible  <bruno@clisp.org>
29579             Paul Eggert  <eggert@cs.ucla.edu>
29580
29581         Ability to rename obstack_free.
29582         * lib/obstack.h (__obstack_free): New macro. Declare instead of
29583         obstack_free.
29584         (obstack_free): Invoke the __obstack_free macro.
29585         * lib/obstack.c (obstack_free): Use __obstack_free macro.
29586
29587 2006-10-23  Bruno Haible  <bruno@clisp.org>
29588             Paul Eggert  <eggert@cs.ucla.edu>
29589
29590         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
29591         __argc, __argv from the declaration. (They are defined as macros on
29592         mingw.)
29593
29594 2006-10-22  Bruno Haible  <bruno@clisp.org>
29595
29596         * doc/gnulib-intro.texi: New file.
29597         * doc/gnulib.texi: Include it.
29598
29599 2006-10-21  Bruno Haible  <bruno@clisp.org>
29600
29601         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
29602         "Introduction", "Miscellanous Notes", "Particular Modules".
29603
29604 2006-10-21  Bruno Haible  <bruno@clisp.org>
29605
29606         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29607         Change mostlyclean-local rule to avoid sh syntax error from bash
29608         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
29609
29610 2006-10-23  Jim Meyering  <jim@meyering.net>
29611
29612         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
29613         in place of snprintf.
29614
29615         * modules/inttostr (Files): Add lib/uinttostr.c.
29616         * lib/uinttostr.c (inttostr): New file/function.
29617         * lib/inttostr.h (uinttostr): Declare.
29618         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
29619         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
29620         Add uinttostr.
29621         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
29622
29623 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
29624
29625         * lib/canonicalize.c (ELOOP): Define if not already defined.
29626         Problem reported by Bruno Haible in
29627         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
29628
29629 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
29630
29631         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
29632         Problem reported by Perry Smith and Ville Laurikari.
29633
29634         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
29635         uses.
29636
29637 2006-10-19  Bruno Haible  <bruno@clisp.org>
29638
29639         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
29640         for mingw.
29641
29642 2006-10-19  Bruno Haible  <bruno@clisp.org>
29643
29644         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
29645         Needed for mingw.
29646
29647 2006-10-19  Bruno Haible  <bruno@clisp.org>
29648
29649         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
29650
29651 2006-10-19  Bruno Haible  <bruno@clisp.org>
29652
29653         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
29654         it.
29655
29656 2006-10-19  Bruno Haible  <bruno@clisp.org>
29657
29658         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
29659         invocation.
29660
29661 2006-10-19  Bruno Haible  <bruno@clisp.org>
29662
29663         * gnulib-tool (func_create_testdir): Don't include ftruncate and
29664         mountlist by default.
29665
29666 2006-10-16  Bruno Haible  <bruno@clisp.org>
29667
29668         * lib/c-strstr.c: Include c-strstr.h.
29669
29670 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
29671
29672         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
29673         in a slash.
29674
29675 2006-10-18  Bruno Haible  <bruno@clisp.org>
29676
29677         * lib/lock.h [C++]: Wrap definitions in extern "C".
29678
29679 2006-10-18  Bruno Haible  <bruno@clisp.org>
29680
29681         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
29682         gl_LIBOBJS list.
29683
29684 2006-10-18  Bruno Haible  <bruno@clisp.org>
29685
29686         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
29687
29688 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
29689
29690         * lib/xstrtol.h: Include gettext.h.
29691         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
29692         Problem reported by Eric Blake.
29693         * modules/xstrtol (Depends-on): Add gettext-h.
29694
29695 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
29696
29697         * lib/strftime.c (advance): New macro.
29698         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
29699         incomplete type, so you can't add 0 to it.  Problem and patch
29700         reported by Eelco Dolstra for dietlibc.
29701
29702 2006-10-18  Jim Meyering  <jim@meyering.net>
29703
29704         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
29705         type for a local, and rename it: s/up/user_proc/.
29706
29707 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
29708
29709         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
29710         READ_UTMP_USER_PROCESS.
29711         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
29712
29713 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
29714
29715         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
29716         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
29717
29718 2006-10-17  Eric Blake  <ebb9@byu.net>
29719
29720         * lib/sigprocmask.c (sigprocmask): Fix typo.
29721
29722         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
29723
29724         * modules/clean-temp (Makefile.am): Don't add to make output...
29725         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
29726         config.h.
29727
29728 2006-10-17  Bruno Haible  <bruno@clisp.org>
29729
29730         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
29731         differently if DEFAULT_TEXT_DOMAIN is set.
29732
29733 2006-10-16  Bruno Haible  <bruno@clisp.org>
29734
29735         * lib/clean-temp.c: Include fwriteerror.h.
29736
29737 2006-10-16  Bruno Haible  <bruno@clisp.org>
29738
29739         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
29740
29741 2006-10-16  Bruno Haible  <bruno@clisp.org>
29742
29743         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
29744         * lib/sigprocmask.h: Include <sys/types.h>.
29745         (sigset_t): Use the system's definition if present.
29746
29747 2006-10-17  Eric Blake  <ebb9@byu.net>
29748
29749         * lib/xvasprintf.c (includes): Assume config.h.
29750         * lib/xasprintf.c (includes): Likewise.
29751
29752 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29753
29754         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
29755         at least as wide as intmax_t.
29756
29757 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
29758
29759         (Imported from Automake.)
29760         * build-aux/gnupload: Update to version 1.1 of directive file.
29761
29762 2006-10-16  Eric Blake  <ebb9@byu.net>
29763
29764         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
29765         match Automake 1.10a.
29766
29767 2006-10-14  Bruno Haible  <bruno@clisp.org>
29768
29769         * modules/sigprocmask: New file.
29770         * lib/sigprocmask.h: New file.
29771         * lib/sigprocmask.c: New file.
29772         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
29773         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
29774         request sigprocmask.o.
29775         (gl_PREREQ_SIGPROCMASK): New macro.
29776         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
29777         (Depends-on): Add sigprocmask.
29778         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
29779         gt_SIGNALBLOCKING. Test for 'raise' only once.
29780         * lib/fatal-signal.c: Include sigprocmask.h.
29781         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
29782         unblock_fatal_signals): Define always.
29783         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29784         sigprocmask.
29785
29786 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
29787
29788         Sync from Automake.
29789         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
29790         which incorrectly sets the mode of an existing destination
29791         directory.  In some cases the unpatched install-sh could do the
29792         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
29793         system.  We hope this is rare in practice, but it's clearly worth
29794         fixing.  Problem reported by Alex Unleashed in
29795         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
29796         Also, don't bother to check for -m bugs unless we're using -m;
29797         suggested by Stepan Kasal.
29798
29799 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29800
29801         Sync from Automake.
29802         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
29803         `-c' flag, so they appear at the same position as in %FASTDEP%
29804         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
29805         which ignores unknown options only after the first non-option.
29806         Bug report against M4 by Nelson H. F. Beebe.
29807
29808 2006-10-13  Jim Meyering  <jim@meyering.net>
29809
29810         Fix a bug in yesterday's change.
29811         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
29812         p->fts_statp->st_dev would be used uninitialized.
29813         Ensures that we always call fts_stat on the very first entry.
29814         Miklos Szeredi reported that find -xdev stopped working.
29815
29816 2006-10-12  Bruno Haible  <bruno@clisp.org>
29817
29818         * gnulib-tool (func_get_automake_snippet): Append an automatically
29819         computed EXTRA_DIST augmentation.
29820         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
29821         * modules/alloca-opt (Makefile.am): Likewise.
29822         * modules/allocsa (Makefile.am): Likewise.
29823         * modules/arcfour (Makefile.am): Likewise.
29824         * modules/arctwo (Makefile.am): Likewise.
29825         * modules/argmatch (Makefile.am): Likewise.
29826         * modules/argz (Makefile.am): Likewise.
29827         * modules/atexit (Makefile.am): Likewise.
29828         * modules/backupfile (Makefile.am): Likewise.
29829         * modules/byteswap (Makefile.am): Likewise.
29830         * modules/c-strtod (Makefile.am): Likewise.
29831         * modules/c-strtold (Makefile.am): Likewise.
29832         * modules/calloc (Makefile.am): Likewise.
29833         * modules/canon-host (Makefile.am): Likewise.
29834         * modules/canonicalize (Makefile.am): Likewise.
29835         * modules/chdir-long (Makefile.am): Likewise.
29836         * modules/chdir-safer (Makefile.am): Likewise.
29837         * modules/check-version (Makefile.am): Likewise.
29838         * modules/chown (Makefile.am): Likewise.
29839         * modules/cloexec (Makefile.am): Likewise.
29840         * modules/close-stream (Makefile.am): Likewise.
29841         * modules/closeout (Makefile.am): Likewise.
29842         * modules/crc (Makefile.am): Likewise.
29843         * modules/csharpexec (Makefile.am): Likewise.
29844         * modules/cycle-check (Makefile.am): Likewise.
29845         * modules/des (Makefile.am): Likewise.
29846         * modules/dev-ino (Makefile.am): Likewise.
29847         * modules/dirfd (Makefile.am): Likewise.
29848         * modules/dirname (Makefile.am): Likewise.
29849         * modules/dup2 (Makefile.am): Likewise.
29850         * modules/eealloc (Makefile.am): Likewise.
29851         * modules/error (Makefile.am): Likewise.
29852         * modules/euidaccess (Makefile.am): Likewise.
29853         * modules/exclude (Makefile.am): Likewise.
29854         * modules/exitfail (Makefile.am): Likewise.
29855         * modules/fcntl-safer (Makefile.am): Likewise.
29856         * modules/fcntl (Makefile.am): Likewise.
29857         * modules/file-type (Makefile.am): Likewise.
29858         * modules/fileblocks (Makefile.am): Likewise.
29859         * modules/filemode (Makefile.am): Likewise.
29860         * modules/filenamecat (Makefile.am): Likewise.
29861         * modules/fnmatch (Makefile.am): Likewise.
29862         * modules/fopen-safer (Makefile.am): Likewise.
29863         * modules/fpending (Makefile.am): Likewise.
29864         * modules/fprintftime (Makefile.am): Likewise.
29865         * modules/free (Makefile.am): Likewise.
29866         * modules/fsusage (Makefile.am): Likewise.
29867         * modules/ftruncate (Makefile.am): Likewise.
29868         * modules/fts (Makefile.am): Likewise.
29869         * modules/gc-arcfour (Makefile.am): Likewise.
29870         * modules/gc-des (Makefile.am): Likewise.
29871         * modules/gc-hmac-md5 (Makefile.am): Likewise.
29872         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
29873         * modules/gc-md4 (Makefile.am): Likewise.
29874         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
29875         * modules/gc-sha1 (Makefile.am): Likewise.
29876         * modules/gc (Makefile.am): Likewise.
29877         * modules/getaddrinfo (Makefile.am): Likewise.
29878         * modules/getcwd (Makefile.am): Likewise.
29879         * modules/getdelim (Makefile.am): Likewise.
29880         * modules/getdomainname (Makefile.am): Likewise.
29881         * modules/getgroups (Makefile.am): Likewise.
29882         * modules/gethostname (Makefile.am): Likewise.
29883         * modules/gethrxtime (Makefile.am): Likewise.
29884         * modules/getline (Makefile.am): Likewise.
29885         * modules/getloadavg (Makefile.am): Likewise.
29886         * modules/getlogin_r (Makefile.am): Likewise.
29887         * modules/getndelim2 (Makefile.am): Likewise.
29888         * modules/getopt (Makefile.am): Likewise.
29889         * modules/getpagesize (Makefile.am): Likewise.
29890         * modules/getpass-gnu (Makefile.am): Likewise.
29891         * modules/getpass (Makefile.am): Likewise.
29892         * modules/getsubopt (Makefile.am): Likewise.
29893         * modules/gettime (Makefile.am): Likewise.
29894         * modules/gettimeofday (Makefile.am): Likewise.
29895         * modules/getugroups (Makefile.am): Likewise.
29896         * modules/getusershell (Makefile.am): Likewise.
29897         * modules/glob (Makefile.am): Likewise.
29898         * modules/group-member (Makefile.am): Likewise.
29899         * modules/hard-locale (Makefile.am): Likewise.
29900         * modules/hash (Makefile.am): Likewise.
29901         * modules/hmac-md5 (Makefile.am): Likewise.
29902         * modules/hmac-sha1 (Makefile.am): Likewise.
29903         * modules/human (Makefile.am): Likewise.
29904         * modules/idcache (Makefile.am): Likewise.
29905         * modules/imaxabs (Makefile.am): Likewise.
29906         * modules/imaxdiv (Makefile.am): Likewise.
29907         * modules/inet_ntop (Makefile.am): Likewise.
29908         * modules/inet_pton (Makefile.am): Likewise.
29909         * modules/intprops (Makefile.am): Likewise.
29910         * modules/inttostr (Makefile.am): Likewise.
29911         * modules/inttypes (Makefile.am): Likewise.
29912         * modules/isapipe (Makefile.am): Likewise.
29913         * modules/javaversion (Makefile.am): Likewise.
29914         * modules/lchmod (Makefile.am): Likewise.
29915         * modules/lchown (Makefile.am): Likewise.
29916         * modules/localcharset (Makefile.am): Likewise.
29917         * modules/long-options (Makefile.am): Likewise.
29918         * modules/lstat (Makefile.am): Likewise.
29919         * modules/malloc (Makefile.am): Likewise.
29920         * modules/mathl (Makefile.am): Likewise.
29921         * modules/mbchar (Makefile.am): Likewise.
29922         * modules/md2 (Makefile.am): Likewise.
29923         * modules/md4 (Makefile.am): Likewise.
29924         * modules/md5 (Makefile.am): Likewise.
29925         * modules/memcasecmp (Makefile.am): Likewise.
29926         * modules/memchr (Makefile.am): Likewise.
29927         * modules/memcmp (Makefile.am): Likewise.
29928         * modules/memcoll (Makefile.am): Likewise.
29929         * modules/memcpy (Makefile.am): Likewise.
29930         * modules/memmem (Makefile.am): Likewise.
29931         * modules/memmove (Makefile.am): Likewise.
29932         * modules/mempcpy (Makefile.am): Likewise.
29933         * modules/memrchr (Makefile.am): Likewise.
29934         * modules/memset (Makefile.am): Likewise.
29935         * modules/memxor (Makefile.am): Likewise.
29936         * modules/mkancesdirs (Makefile.am): Likewise.
29937         * modules/mkdir-p (Makefile.am): Likewise.
29938         * modules/mkdir (Makefile.am): Likewise.
29939         * modules/mkdtemp (Makefile.am): Likewise.
29940         * modules/mkstemp (Makefile.am): Likewise.
29941         * modules/mktime (Makefile.am): Likewise.
29942         * modules/modechange (Makefile.am): Likewise.
29943         * modules/mountlist (Makefile.am): Likewise.
29944         * modules/nanosleep (Makefile.am): Likewise.
29945         * modules/obstack (Makefile.am): Likewise.
29946         * modules/openat (Makefile.am): Likewise.
29947         * modules/pagealign_alloc (Makefile.am): Likewise.
29948         * modules/pathmax (Makefile.am): Likewise.
29949         * modules/physmem (Makefile.am): Likewise.
29950         * modules/poll (Makefile.am): Likewise.
29951         * modules/posixtm (Makefile.am): Likewise.
29952         * modules/posixver (Makefile.am): Likewise.
29953         * modules/putenv (Makefile.am): Likewise.
29954         * modules/quote (Makefile.am): Likewise.
29955         * modules/quotearg (Makefile.am): Likewise.
29956         * modules/raise (Makefile.am): Likewise.
29957         * modules/read-file (Makefile.am): Likewise.
29958         * modules/readline (Makefile.am): Likewise.
29959         * modules/readlink (Makefile.am): Likewise.
29960         * modules/readtokens (Makefile.am): Likewise.
29961         * modules/readutmp (Makefile.am): Likewise.
29962         * modules/realloc (Makefile.am): Likewise.
29963         * modules/regex (Makefile.am): Likewise.
29964         * modules/rename-dest-slash (Makefile.am): Likewise.
29965         * modules/rename (Makefile.am): Likewise.
29966         * modules/rijndael (Makefile.am): Likewise.
29967         * modules/rmdir (Makefile.am): Likewise.
29968         * modules/rpmatch (Makefile.am): Likewise.
29969         * modules/safe-read (Makefile.am): Likewise.
29970         * modules/safe-write (Makefile.am): Likewise.
29971         * modules/same-inode (Makefile.am): Likewise.
29972         * modules/same (Makefile.am): Likewise.
29973         * modules/save-cwd (Makefile.am): Likewise.
29974         * modules/savedir (Makefile.am): Likewise.
29975         * modules/setenv (Makefile.am): Likewise.
29976         * modules/settime (Makefile.am): Likewise.
29977         * modules/sha1 (Makefile.am): Likewise.
29978         * modules/sig2str (Makefile.am): Likewise.
29979         * modules/snprintf (Makefile.am): Likewise.
29980         * modules/stat-macros (Makefile.am): Likewise.
29981         * modules/stat-time (Makefile.am): Likewise.
29982         * modules/stdbool (Makefile.am): Likewise.
29983         * modules/stdint (Makefile.am): Likewise.
29984         * modules/stdlib-safer (Makefile.am): Likewise.
29985         * modules/stpcpy (Makefile.am): Likewise.
29986         * modules/stpncpy (Makefile.am): Likewise.
29987         * modules/strcase (Makefile.am): Likewise.
29988         * modules/strcasestr (Makefile.am): Likewise.
29989         * modules/strchrnul (Makefile.am): Likewise.
29990         * modules/strcspn (Makefile.am): Likewise.
29991         * modules/strdup (Makefile.am): Likewise.
29992         * modules/strerror (Makefile.am): Likewise.
29993         * modules/strftime (Makefile.am): Likewise.
29994         * modules/strndup (Makefile.am): Likewise.
29995         * modules/strnlen (Makefile.am): Likewise.
29996         * modules/strpbrk (Makefile.am): Likewise.
29997         * modules/strsep (Makefile.am): Likewise.
29998         * modules/strstr (Makefile.am): Likewise.
29999         * modules/strtod (Makefile.am): Likewise.
30000         * modules/strtoimax (Makefile.am): Likewise.
30001         * modules/strtok_r (Makefile.am): Likewise.
30002         * modules/strtol (Makefile.am): Likewise.
30003         * modules/strtoll (Makefile.am): Likewise.
30004         * modules/strtoul (Makefile.am): Likewise.
30005         * modules/strtoull (Makefile.am): Likewise.
30006         * modules/strtoumax (Makefile.am): Likewise.
30007         * modules/strverscmp (Makefile.am): Likewise.
30008         * modules/sys_socket (Makefile.am): Likewise.
30009         * modules/sys_stat (Makefile.am): Likewise.
30010         * modules/sysexits (Makefile.am): Likewise.
30011         * modules/time_r (Makefile.am): Likewise.
30012         * modules/timegm (Makefile.am): Likewise.
30013         * modules/timespec (Makefile.am): Likewise.
30014         * modules/tmpfile-safer (Makefile.am): Likewise.
30015         * modules/trim (Makefile.am): Likewise.
30016         * modules/unistd-safer (Makefile.am): Likewise.
30017         * modules/unlinkdir (Makefile.am): Likewise.
30018         * modules/unlocked-io (Makefile.am): Likewise.
30019         * modules/userspec (Makefile.am): Likewise.
30020         * modules/utime (Makefile.am): Likewise.
30021         * modules/utimecmp (Makefile.am): Likewise.
30022         * modules/utimens (Makefile.am): Likewise.
30023         * modules/vasnprintf (Makefile.am): Likewise.
30024         * modules/vasprintf (Makefile.am): Likewise.
30025         * modules/vsnprintf (Makefile.am): Likewise.
30026         * modules/xalloc (Makefile.am): Likewise.
30027         * modules/xgetcwd (Makefile.am): Likewise.
30028         * modules/xnanosleep (Makefile.am): Likewise.
30029         * modules/xreadlink (Makefile.am): Likewise.
30030         * modules/xstrtod (Makefile.am): Likewise.
30031         * modules/xstrtol (Makefile.am): Likewise.
30032         * modules/xstrtold (Makefile.am): Likewise.
30033         * modules/yesno (Makefile.am): Likewise.
30034         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
30035
30036 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30037
30038         * modules/error (Makefile.am): Distribute files through
30039         EXTRA_DIST, not lib_SOURCES.
30040
30041 2006-10-12  Eric Blake  <ebb9@byu.net>
30042
30043         * modules/error (Makefile.am): Distribute files in /lib.
30044         * modules/obstack (Makefile.am): Likewise.
30045
30046 2006-10-12  Bruno Haible  <bruno@clisp.org>
30047
30048         * modules/acl (Makefile.am): Distribute all files in lib/ through
30049         EXTRA_DIST.
30050         * modules/arcfour (Makefile.am): Likewise.
30051         * modules/arctwo (Makefile.am): Likewise.
30052         * modules/argmatch (Makefile.am): Likewise.
30053         * modules/argz (Makefile.am): Likewise.
30054         * modules/atexit (Makefile.am): Likewise.
30055         * modules/backupfile (Makefile.am): Likewise.
30056         * modules/c-strtod (Makefile.am): Likewise.
30057         * modules/c-strtold (Makefile.am): Likewise.
30058         * modules/calloc (Makefile.am): Likewise.
30059         * modules/canon-host (Makefile.am): Likewise.
30060         * modules/canonicalize (Makefile.am): Likewise.
30061         * modules/chdir-long (Makefile.am): Likewise.
30062         * modules/chdir-safer (Makefile.am): Likewise.
30063         * modules/check-version (Makefile.am): Likewise.
30064         * modules/chown (Makefile.am): Likewise.
30065         * modules/cloexec (Makefile.am): Likewise.
30066         * modules/close-stream (Makefile.am): Likewise.
30067         * modules/closeout (Makefile.am): Likewise.
30068         * modules/crc (Makefile.am): Likewise.
30069         * modules/cycle-check (Makefile.am): Likewise.
30070         * modules/des (Makefile.am): Likewise.
30071         * modules/dirfd (Makefile.am): Likewise.
30072         * modules/dirname (Makefile.am): Likewise.
30073         * modules/dup2 (Makefile.am): Likewise.
30074         * modules/euidaccess (Makefile.am): Likewise.
30075         * modules/exclude (Makefile.am): Likewise.
30076         * modules/exitfail (Makefile.am): Likewise.
30077         * modules/fcntl-safer (Makefile.am): Likewise.
30078         * modules/file-type (Makefile.am): Likewise.
30079         * modules/fileblocks (Makefile.am): Likewise.
30080         * modules/filemode (Makefile.am): Likewise.
30081         * modules/filenamecat (Makefile.am): Likewise.
30082         * modules/fnmatch (Makefile.am): Likewise.
30083         * modules/fopen-safer (Makefile.am): Likewise.
30084         * modules/fpending (Makefile.am): Likewise.
30085         * modules/fprintftime (Makefile.am): Likewise.
30086         * modules/free (Makefile.am): Likewise.
30087         * modules/fsusage (Makefile.am): Likewise.
30088         * modules/ftruncate (Makefile.am): Likewise.
30089         * modules/fts (Makefile.am): Likewise.
30090         * modules/gc (Makefile.am): Likewise.
30091         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
30092         * modules/getaddrinfo (Makefile.am): Likewise.
30093         * modules/getcwd (Makefile.am): Likewise.
30094         * modules/getdelim (Makefile.am): Likewise.
30095         * modules/getdomainname (Makefile.am): Likewise.
30096         * modules/getgroups (Makefile.am): Likewise.
30097         * modules/gethostname (Makefile.am): Likewise.
30098         * modules/gethrxtime (Makefile.am): Likewise.
30099         * modules/getline (Makefile.am): Likewise.
30100         * modules/getloadavg (Makefile.am): Likewise.
30101         * modules/getlogin_r (Makefile.am): Likewise.
30102         * modules/getopt (Makefile.am): Likewise.
30103         * modules/getpass (Makefile.am): Likewise.
30104         * modules/getpass-gnu (Makefile.am): Likewise.
30105         * modules/getsubopt (Makefile.am): Likewise.
30106         * modules/gettime (Makefile.am): Likewise.
30107         * modules/gettimeofday (Makefile.am): Likewise.
30108         * modules/getugroups (Makefile.am): Likewise.
30109         * modules/getusershell (Makefile.am): Likewise.
30110         * modules/glob (Makefile.am): Likewise.
30111         * modules/group-member (Makefile.am): Likewise.
30112         * modules/hard-locale (Makefile.am): Likewise.
30113         * modules/hash (Makefile.am): Likewise.
30114         * modules/hmac-md5 (Makefile.am): Likewise.
30115         * modules/hmac-sha1 (Makefile.am): Likewise.
30116         * modules/human (Makefile.am): Likewise.
30117         * modules/idcache (Makefile.am): Likewise.
30118         * modules/imaxabs (Makefile.am): Likewise.
30119         * modules/imaxdiv (Makefile.am): Likewise.
30120         * modules/inet_ntop (Makefile.am): Likewise.
30121         * modules/inet_pton (Makefile.am): Likewise.
30122         * modules/inttostr (Makefile.am): Likewise.
30123         * modules/isapipe (Makefile.am): Likewise.
30124         * modules/lchown (Makefile.am): Likewise.
30125         * modules/long-options (Makefile.am): Likewise.
30126         * modules/lstat (Makefile.am): Likewise.
30127         * modules/malloc (Makefile.am): Likewise.
30128         * modules/mathl (Makefile.am): Likewise.
30129         * modules/mbchar (Makefile.am): Likewise.
30130         * modules/md2 (Makefile.am): Likewise.
30131         * modules/md4 (Makefile.am): Likewise.
30132         * modules/md5 (Makefile.am): Likewise.
30133         * modules/memcasecmp (Makefile.am): Likewise.
30134         * modules/memchr (Makefile.am): Likewise.
30135         * modules/memcmp (Makefile.am): Likewise.
30136         * modules/memcoll (Makefile.am): Likewise.
30137         * modules/memcpy (Makefile.am): Likewise.
30138         * modules/memmem (Makefile.am): Likewise.
30139         * modules/memmove (Makefile.am): Likewise.
30140         * modules/mempcpy (Makefile.am): Likewise.
30141         * modules/memrchr (Makefile.am): Likewise.
30142         * modules/memset (Makefile.am): Likewise.
30143         * modules/memxor (Makefile.am): Likewise.
30144         * modules/mkancesdirs (Makefile.am): Likewise.
30145         * modules/mkdir (Makefile.am): Likewise.
30146         * modules/mkdir-p (Makefile.am): Likewise.
30147         * modules/mkdtemp (Makefile.am): Likewise.
30148         * modules/mkstemp (Makefile.am): Likewise.
30149         * modules/mktime (Makefile.am): Likewise.
30150         * modules/modechange (Makefile.am): Likewise.
30151         * modules/mountlist (Makefile.am): Likewise.
30152         * modules/nanosleep (Makefile.am): Likewise.
30153         * modules/openat (Makefile.am): Likewise.
30154         * modules/pagealign_alloc (Makefile.am): Likewise.
30155         * modules/physmem (Makefile.am): Likewise.
30156         * modules/poll (Makefile.am): Likewise.
30157         * modules/posixtm (Makefile.am): Likewise.
30158         * modules/posixver (Makefile.am): Likewise.
30159         * modules/putenv (Makefile.am): Likewise.
30160         * modules/quote (Makefile.am): Likewise.
30161         * modules/quotearg (Makefile.am): Likewise.
30162         * modules/raise (Makefile.am): Likewise.
30163         * modules/read-file (Makefile.am): Likewise.
30164         * modules/readline (Makefile.am): Likewise.
30165         * modules/readlink (Makefile.am): Likewise.
30166         * modules/readtokens (Makefile.am): Likewise.
30167         * modules/readutmp (Makefile.am): Likewise.
30168         * modules/realloc (Makefile.am): Likewise.
30169         * modules/regex (Makefile.am): Likewise.
30170         * modules/rename (Makefile.am): Likewise.
30171         * modules/rename-dest-slash (Makefile.am): Likewise.
30172         * modules/rijndael (Makefile.am): Likewise.
30173         * modules/rmdir (Makefile.am): Likewise.
30174         * modules/rpmatch (Makefile.am): Likewise.
30175         * modules/safe-read (Makefile.am): Likewise.
30176         * modules/safe-write (Makefile.am): Likewise.
30177         * modules/same (Makefile.am): Likewise.
30178         * modules/save-cwd (Makefile.am): Likewise.
30179         * modules/savedir (Makefile.am): Likewise.
30180         * modules/setenv (Makefile.am): Likewise.
30181         * modules/settime (Makefile.am): Likewise.
30182         * modules/sha1 (Makefile.am): Likewise.
30183         * modules/sig2str (Makefile.am): Likewise.
30184         * modules/snprintf (Makefile.am): Likewise.
30185         * modules/stdlib-safer (Makefile.am): Likewise.
30186         * modules/stpcpy (Makefile.am): Likewise.
30187         * modules/stpncpy (Makefile.am): Likewise.
30188         * modules/strcase (Makefile.am): Likewise.
30189         * modules/strcasestr (Makefile.am): Likewise.
30190         * modules/strchrnul (Makefile.am): Likewise.
30191         * modules/strcspn (Makefile.am): Likewise.
30192         * modules/strdup (Makefile.am): Likewise.
30193         * modules/strerror (Makefile.am): Likewise.
30194         * modules/strftime (Makefile.am): Likewise.
30195         * modules/strndup (Makefile.am): Likewise.
30196         * modules/strnlen (Makefile.am): Likewise.
30197         * modules/strpbrk (Makefile.am): Likewise.
30198         * modules/strsep (Makefile.am): Likewise.
30199         * modules/strstr (Makefile.am): Likewise.
30200         * modules/strtod (Makefile.am): Likewise.
30201         * modules/strtoimax (Makefile.am): Likewise.
30202         * modules/strtok_r (Makefile.am): Likewise.
30203         * modules/strtol (Makefile.am): Likewise.
30204         * modules/strtoll (Makefile.am): Likewise.
30205         * modules/strtoul (Makefile.am): Likewise.
30206         * modules/strtoull (Makefile.am): Likewise.
30207         * modules/strtoumax (Makefile.am): Likewise.
30208         * modules/strverscmp (Makefile.am): Likewise.
30209         * modules/time_r (Makefile.am): Likewise.
30210         * modules/timegm (Makefile.am): Likewise.
30211         * modules/tmpfile-safer (Makefile.am): Likewise.
30212         * modules/unistd-safer (Makefile.am): Likewise.
30213         * modules/unlinkdir (Makefile.am): Likewise.
30214         * modules/userspec (Makefile.am): Likewise.
30215         * modules/utime (Makefile.am): Likewise.
30216         * modules/utimecmp (Makefile.am): Likewise.
30217         * modules/utimens (Makefile.am): Likewise.
30218         * modules/vasnprintf (Makefile.am): Likewise.
30219         * modules/vasprintf (Makefile.am): Likewise.
30220         * modules/vsnprintf (Makefile.am): Likewise.
30221         * modules/xalloc (Makefile.am): Likewise.
30222         * modules/xgetcwd (Makefile.am): Likewise.
30223         * modules/xnanosleep (Makefile.am): Likewise.
30224         * modules/xreadlink (Makefile.am): Likewise.
30225         * modules/xstrtod (Makefile.am): Likewise.
30226         * modules/xstrtol (Makefile.am): Likewise.
30227         * modules/xstrtold (Makefile.am): Likewise.
30228         * modules/yesno (Makefile.am): Likewise.
30229
30230 2006-10-12  Jim Meyering  <jim@meyering.net>
30231
30232         * m4/getloadavg.m4: Revert the change below.
30233
30234         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
30235         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
30236         fail with a symlink, which is what coreutils' ./bootstrap now
30237         creates by default.
30238
30239 2006-10-12  Bruno Haible  <bruno@clisp.org>
30240
30241         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
30242         mingw.
30243         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
30244         MSVC and mingw explicitly.
30245
30246 2006-10-11  Simon Josefsson  <jas@extundo.com>
30247             Bruno Haible  <bruno@clisp.org>
30248
30249         Add support for multiple gnulib-tool invocations in the scope of a
30250         single configure.ac file.
30251         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
30252         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
30253         with the same contents as the _LIBADD variable.
30254         (func_emit_initmacro_start, func_emit_initmacro_end,
30255         func_emit_initmacro_done): New functions.
30256         (func_import, func_create_testdir): Invoke them. Allow the identifiers
30257         gl_LIBOBJS and gl_LTLIBOBJS.
30258
30259 2006-10-11  Bruno Haible  <bruno@clisp.org>
30260
30261         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
30262         (func_create_testdir): Don't create po/Makefile.am, don't invoke
30263         autoreconf. Instead, invoke autopoint explicitly but move back the
30264         *.m4 files from gnulib.
30265
30266 2006-10-11  Bruno Haible  <bruno@clisp.org>
30267
30268         * gnulib-tool (func_usage): Make module names after --create-testdir
30269         optional.
30270         (func_create_testdir): If no module was specified, use nearly all
30271         modules.
30272
30273 2006-10-12  Jim Meyering  <jim@meyering.net>
30274
30275         Big performance improvement for fts-based tools that use FTS_NOSTAT.
30276         Avoid spurious inode-mismatch problems on non-POSIX file systems.
30277         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
30278         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
30279         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
30280         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
30281         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
30282         (fts_set_stat_required): New function.
30283         (fts_open): Defer the calls to fts_stat, if possible or requested.
30284         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
30285         into fts_stat itself.
30286         (fts_read): Perform any required (deferred) fts_stat call.
30287         (fts_build): Likewise, for the directory we're about to open and read.
30288         In the readdir loop, carefully decide whether each entry will require
30289         an eventual call to fts_stat, using dirent.d_type info if available.
30290         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
30291         a command line argument into this function.  Update all callers.
30292         Map a return value of FTS_DOT to FTS_D for a command line argument.
30293         * modules/fts (Depends-on): Add d-type.  Alphabetize.
30294         Thanks to Miklos Szeredi for his tenacity and for the initial
30295         bug report about "find" failing on a FUSE-based file system.
30296
30297         * lib/fts.c (fts_open): Use consistent indentation.
30298
30299 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30300
30301         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
30302         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
30303         reported by Jim Meyering.  All uses of cache variables renamed
30304         to match Autoconf's.
30305         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
30306         the other one.
30307
30308         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30309         Fix misspelling in diagnostic.
30310
30311 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30312
30313         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
30314         defined.  Problem reported by Matthew Woehlke.
30315
30316         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
30317         Add support for Tandem NonStop R series.
30318         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
30319         Use new macro.
30320
30321         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
30322         (has_trailing_slash): Omit size arg; all callers changed.
30323         Omit 'inline', since it doesn't help performance and we'd
30324         need to configure it.
30325         Don't count //, ///, etc. as having a trailing slash.
30326         As a side effect, this removes a C99ism reported by Matthew Woehlke.
30327         (rpl_rename_dest_slash): On failure, use rename's errno rather
30328         than (in some cases) an incorrect or junk errno.
30329         Simplify code by removing need to compute length; this does
30330         cause it to make two passes instead of one over the file name,
30331         but it's worth it.
30332
30333         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
30334         change, since Autoconf's version may no longer be appropriate now
30335         that we are using CVS Autoconf's version.  Add support for Tandem.
30336
30337 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30338             Bruno Haible  <bruno@clisp.org>
30339
30340         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
30341         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
30342         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
30343         gl_AC_TYPE_LONG_LONG.
30344
30345         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
30346         instead of HAVE_LONG_LONG.
30347         * lib/printf-args.c (printf_fetchargs): Likewise.
30348         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
30349         * lib/vasnprintf.c (VASNPRINTF): Likewise.
30350         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
30351         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
30352         gl_AC_TYPE_LONG_LONG.
30353
30354 2006-10-11  Bruno Haible  <bruno@clisp.org>
30355
30356         * m4/longlong.m4: Add comments.
30357         * m4/ulonglong.m4: Likewise.
30358
30359 2006-10-10  Bruno Haible  <bruno@clisp.org>
30360
30361         Make it possible to #define stpcpy, strdup to aliases.
30362         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
30363         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
30364
30365 2006-10-10  Bruno Haible  <bruno@clisp.org>
30366
30367         Make it possible to #define gcd to an alias.
30368         * lib/gcd.c: Include config.h.
30369
30370 2006-10-10  Bruno Haible  <bruno@clisp.org>
30371
30372         Make it possible to #define c_isascii to an alias.
30373         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
30374         defined. Undefine the macros before defining them, to avoid gcc
30375         warnings.
30376         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
30377         define NO_C_CTYPE_MACROS early.
30378
30379 2006-10-10  Bruno Haible  <bruno@clisp.org>
30380
30381         Make it possible to #define set_program_name to an alias.
30382         * lib/progname.c: Don't undefine set_program_name; instead, undefine
30383         ENABLE_RELOCATABLE early.
30384
30385 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30386
30387         Port to Tandem NSK OSS, which has 64-bit signed int but at most
30388         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
30389         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
30390         More generally, don't assume that 64-bit signed int is available
30391         if unsigned int is, and vice versa.
30392         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
30393         unsigned symbols, not on their signed counterparts.
30394         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
30395         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
30396         (UINT64_C, UINTMAX_C):
30397         Likewise.
30398         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
30399         unsigned counterparts.
30400         (Have_long_long, Unsigned): New macros.
30401         (Int): Renamed from INT.
30402         (strtoimax): Use the new macros.
30403         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
30404         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
30405         * modules/inttypes (inttypes.h): Substitute
30406         HAVE_UNSIGNED_LONG_LONG_INT.
30407         * modules/stdint (stdint.h): Likewise.
30408         (Files): Add m4/ulonglong.m4.
30409
30410 2006-10-10  Bruno Haible  <bruno@clisp.org>
30411
30412         Fix a gcc -Wshadow warning.
30413         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
30414         to 'bucket'.
30415         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
30416         gl_linked_indexof_from_to): Likewise.
30417         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
30418         Likewise.
30419         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
30420         Likewise.
30421         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
30422         Reported by Eric Blake.
30423
30424 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
30425
30426         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
30427         for NetBSD.  Problem reported by Bruno Haible.
30428
30429 2006-10-09  Jim Meyering  <jim@meyering.net>
30430
30431         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
30432         Patch from Bruno Haible.
30433
30434 2006-10-09  Jim Meyering  <jim@meyering.net>
30435
30436         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
30437         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
30438         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
30439
30440 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30441
30442         Don't include <config.h> twice; this doesn't work in some cases,
30443         e.g., when config.h has "#define intmax_t long long int" and
30444         we include <config.h>, <inttypes.h>, <config.h> in that order.
30445         Problem reported by Matthew Woehlke in:
30446         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
30447         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
30448         * lib/fts-cycle.c: Don't include config.h.
30449         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
30450         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
30451         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
30452         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
30453         inttypes.h.
30454         * lib/xstrtoumax.c: Likewise.
30455         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
30456         __strtol and the like, so that this module is more like its siblings.
30457         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
30458         Remove; no longer needed now that we assume gnulib inttypes.h.
30459
30460 2006-10-08  Bruno Haible  <bruno@clisp.org>
30461
30462         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
30463         option.
30464
30465 2006-10-07  Jim Meyering  <jim@meyering.net>
30466
30467         * modules/inttypes (inttypes.h): Revert what seems to have been
30468         an inadvertent part of today's change: use "|", not "/" in the
30469         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
30470
30471 2006-10-07  Bruno Haible  <bruno@clisp.org>
30472
30473         * modules/sublist: New file.
30474
30475 2006-10-07  Bruno Haible  <bruno@clisp.org>
30476
30477         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
30478         * modules/argz (argz.h): Likewise.
30479         * modules/arpa_inet (arpa/inet.h): Likewise.
30480         * modules/byteswap (byteswap.h): Likewise.
30481         * modules/configmake (configmake.h): Likewise.
30482         * modules/fcntl (fcntl.h): Likewise.
30483         * modules/fnmatch (fnmatch.h): Likewise.
30484         * modules/getopt (getopt.h): Likewise.
30485         * modules/glob (glob.h): Likewise.
30486         * modules/inttypes (inttypes.h): Likewise.
30487         * modules/netinet_in (netinet/in.h): Likewise.
30488         * modules/poll (poll.h): Likewise.
30489         * modules/stdbool (stdbool.h): Likewise.
30490         * modules/stdint (stdint.h): Likewise.
30491         * modules/sys_select (sys/select.h): Likewise.
30492         * modules/sys_socket (sys/socket.h): Likewise.
30493         * modules/sys_stat (sys/stat.h): Likewise.
30494         * modules/sysexits (sysexits.h): Likewise.
30495         * modules/unistd (unistd.h): Likewise.
30496         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30497         Add a "DO NOT EDIT" comment to the generated file.
30498         (func_import): Likewise for gnulib-comp.m4.
30499
30500 2006-10-07  Bruno Haible  <bruno@clisp.org>
30501
30502         * lib/gl_sublist.h: New file.
30503         * lib/gl_sublist.c: New file.
30504
30505 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30506
30507         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
30508         name (relative to the original working directory) and the file
30509         name component (relative to the temporary working directory).  All
30510         callers changed.
30511         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
30512         * lib/mkdir-p.c (make_dir_parents): Likewise.
30513         * lib/mkdir-p.h (make_dir_parents): Likewise.
30514
30515 2006-10-06  Eric Blake  <ebb9@byu.net>
30516
30517         Define several macros for use by the clean-temp module.
30518         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
30519         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
30520         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
30521
30522         * lib/clean-temp.h (close_stream_temp): New declaration.
30523         * lib/clean-temp.c (includes): Pull in headers according to what
30524         other modules are in use.
30525         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
30526
30527 2006-10-06  Bruno Haible  <bruno@clisp.org>
30528
30529         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
30530         instead of fopen, fwriteerror.
30531
30532 2006-10-06  Bruno Haible  <bruno@clisp.org>
30533
30534         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
30535         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
30536         int.
30537         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
30538         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
30539         Return an error indicator.
30540         Suggested by Eric Blake.
30541
30542 2006-10-06  Bruno Haible  <bruno@clisp.org>
30543
30544         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
30545         Reported by Eric Blake.
30546
30547 2006-10-06  Bruno Haible  <bruno@clisp.org>
30548
30549         * modules/closeout (Description): Mention stderr too.
30550
30551 2006-10-06  Bruno Haible  <bruno@clisp.org>
30552         and Paul Eggert  <eggert@cs.ucla.edu>
30553
30554         * lib/closeout.c (close_stdout): Also close stderr.
30555         * lib/closeout.h: Update comment.
30556
30557 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30558
30559         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
30560         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
30561         * lib/dirchownmod.c: Include lchown.h.
30562         * lib/lchown.c: Don't include files that lchown.h now includes.
30563         Don't declare chown, since lchown.h now does that.
30564         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
30565         (lchown): Define to rpl_chown if lchown is declared but
30566         does not exist.  Declare using a prototype if lchown is not
30567         declared.  Add a copyright notice.
30568         * lib/mkstemp.h: Include <unistd.h>.
30569         * lib/openat.c: Include lchown.h.
30570
30571         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
30572         we now test for that separately.
30573         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
30574         rather than O_NOFOLLOW, when testing whether it's possible to
30575         avoid a race condition reliably.
30576         * lib/savewd.c (savewd_chdir): Likewise.
30577
30578         Remove macros that are no longer needed now that stdint.h is
30579         reliable.
30580         * lib/fsusage.c (UINTMAX_MAX): Remove.
30581         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
30582         * lib/utimecmp.c (SIZE_MAX): Remove.
30583
30584         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
30585
30586         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
30587         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
30588         O_NOATIME works.
30589
30590 2006-10-05  Bruno Haible  <bruno@clisp.org>
30591
30592         * lib/gl_list.h (gl_sortedlist_search_from_to,
30593         gl_sortedlist_indexof_from_to): New declarations.
30594         (gl_list_implementation): New fields sortedlist_search_from_to,
30595         sortedlist_indexof_from_to.
30596         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
30597         inline functions.
30598         * lib/gl_list.c (gl_sortedlist_search_from_to,
30599         gl_sortedlist_indexof_from_to): New functions.
30600         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
30601         function.
30602         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
30603         (gl_array_sortedlist_search_from_to): New function.
30604         (gl_array_list_implementation): Update.
30605         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
30606         function.
30607         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
30608         (gl_carray_sortedlist_search_from_to): New function.
30609         (gl_carray_list_implementation): Update.
30610         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
30611         gl_linked_sortedlist_indexof_from_to): New functions.
30612         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
30613         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
30614         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
30615         gl_tree_sortedlist_indexof_from_to): New functions.
30616         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
30617         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
30618         Update.
30619         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
30620         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
30621         Update.
30622
30623 2006-10-05  Bruno Haible  <bruno@clisp.org>
30624
30625         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
30626         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
30627         (struct gl_list_implementation): Add fields search_from_to,
30628         indexof_from_to. Remove fields search, indexof.
30629         (gl_list_search): Use the search_from_to method.
30630         (gl_list_search_from, gl_list_search_from_to): New functions.
30631         (gl_list_indexof): Use the indexof_from_to method.
30632         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
30633         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
30634         (gl_list_search_from, gl_list_search_from_to): New functions.
30635         (gl_list_indexof): Use the indexof_from_to method.
30636         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
30637         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
30638         gl_array_indexof. Add start_index, end_index arguments.
30639         (gl_array_search_from_to): Renamed from gl_array_search. Add
30640         start_index, end_index arguments.
30641         (gl_array_remove, gl_array_list_implementation): Update.
30642         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
30643         gl_carray_indexof. Add start_index, end_index arguments.
30644         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
30645         start_index, end_index arguments.
30646         (gl_carray_remove, gl_carray_list_implementation): Update.
30647         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
30648         gl_linked_search. Add start_index, end_index arguments.
30649         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
30650         start_index, end_index arguments.
30651         (gl_linked_remove): Update.
30652         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
30653         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
30654         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
30655         field to 'size_t'.
30656         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
30657         gl_tree_search. Add start_index, end_index arguments.
30658         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
30659         start_index, end_index arguments.
30660         (gl_tree_remove): Update.
30661         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
30662         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
30663         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
30664         function.
30665         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
30666         gl_tree_search. Add start_index, end_index arguments.
30667         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
30668         start_index, end_index arguments.
30669         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
30670         Update.
30671         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
30672
30673 2006-10-05  Bruno Haible  <bruno@clisp.org>
30674
30675         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
30676
30677         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
30678         fwriteerror_temp): New declarations.
30679         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
30680         (descriptors): New variable.
30681         (cleanup): First, close the descriptors.
30682         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
30683         fclose_temp, fwriteerror_temp): New functions.
30684
30685 2006-10-04  Jim Meyering  <jim@meyering.net>
30686
30687         * lib/fts.c (fts_open): Tiny comment change.
30688
30689 2006-10-04  Bruno Haible  <bruno@clisp.org>
30690
30691         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
30692         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
30693         gl_LOCK_BODY.
30694         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
30695         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
30696         gl_LOCK_EARLY_BODY.
30697         (gl_LOCK): Require gl_LOCK_BODY.
30698
30699 2006-10-04  Bruno Haible  <bruno@clisp.org>
30700
30701         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
30702         (gl_oset_search_atleast): New declaration.
30703         (struct gl_oset_implementation): Add field 'search_atleast'.
30704         (gl_oset_search_atleast): New inline function.
30705         * lib/gl_oset.c (gl_oset_search_atleast): New function.
30706         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
30707         (gl_array_oset_implementation): Update.
30708         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
30709         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
30710         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
30711
30712 2006-10-04  Bruno Haible  <bruno@clisp.org>
30713
30714         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
30715
30716 2006-10-03  Bruno Haible  <bruno@clisp.org>
30717
30718         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
30719         from gl_avltreehash_list_implementation.
30720
30721 2006-10-03  Bruno Haible  <bruno@clisp.org>
30722
30723         * lib/gl_oset.c (gl_oset_add): Fix return type.
30724
30725 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
30726
30727         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
30728
30729 2006-10-02  Eric Blake  <ebb9@byu.net>
30730
30731         * modules/strnlen (Depends-on): Add extensions.
30732
30733 2006-10-02  Eric Blake  <ebb9@byu.net>
30734
30735         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
30736         definition in 2.60+.
30737
30738 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
30739
30740         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
30741         checks.
30742
30743 2006-10-02  Bruno Haible  <bruno@clisp.org>
30744
30745         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
30746         to the AUTOMAKE_OPTIONS.
30747         Reported by Jim Meyering.
30748
30749 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
30750
30751         Work around bug in Solaris 10 /proc file system:
30752         /proc/self/fd/NNN/.. isn't the parent directory of
30753         the directory whose file descriptor is NNN.  This needs to
30754         be worked around at run time, not compile time, since a
30755         program might be built on Solaris 8, where things work, and
30756         run on Solaris 10.
30757         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
30758         to use the following interface instead:
30759         (OPENAT_BUFFER_SIZE): New macro.
30760         (openat_proc_name): New function.
30761         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
30762         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
30763         Likewise.
30764         * lib/openat-proc.c: New file.
30765         * modules/openat (Files): Add lib/openat-proc.c.
30766         (Depends-on): Add same-inode, stdbool.
30767         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
30768
30769 2006-09-29  Bruno Haible  <bruno@clisp.org>
30770
30771         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
30772         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
30773         argument. Set stdout_closed before testing for ferror, not after.
30774         (fwriteerror, fwriteerror_no_ebadf): New functions.
30775
30776 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30777
30778         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
30779
30780 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
30781
30782         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
30783         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
30784
30785 2006-09-28  Jim Meyering  <jim@meyering.net>
30786
30787         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
30788         Include <unistd.h>.
30789
30790 2006-09-28  Bruno Haible  <bruno@clisp.org>
30791
30792         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
30793         * modules/linkedhash-list (Depends-on): Likewise.
30794         * modules/rbtreehash-list (Depends-on): Likewise.
30795
30796 2006-09-28  Bruno Haible  <bruno@clisp.org>
30797
30798         * lib/strndup.h: Simplify the redefinition of strndup.
30799         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
30800         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
30801
30802 2006-09-28  Bruno Haible  <bruno@clisp.org>
30803
30804         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
30805         * lib/gl_linkedhash_list.c: Likewise.
30806         * lib/gl_rbtreehash_list.c: Likewise.
30807
30808 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
30809
30810         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
30811         getaddrinfo.
30812
30813         * lib/__fpending.h: Don't include <stdio_ext.h> unless
30814         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
30815         it causes <stdio_ext.h> to cause a compile-time error.
30816         Problem reported by Nelson H. F. Beebe.
30817         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
30818         of HAVE_DECL___PENDING.
30819
30820         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
30821         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
30822         declaration.
30823
30824 2006-09-27  Jim Meyering  <jim@meyering.net>
30825
30826         This file could end up with a definition for a function
30827         named __strndup, rather than rpl_strndup on a system with
30828         incomplete weak_alias support.
30829         * lib/strndup.c (strndup): Rename from __strndup.
30830         Remove #defines that used to map __strndup to strndup.
30831         Don't use K&R prototypes.
30832         Remove LIBC-related code, since this file is not sync'd with glibc.
30833         * lib/strndup.h: Revamp, accordingly.
30834         * m4/strndup.m4: Modernize.
30835
30836 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
30837
30838         * modules/savewd (Depends-on): Add 'raise'.
30839         * lib/savewd.c: Include <signal.h>, for 'raise'.
30840
30841 2006-09-26  Jim Meyering  <jim@meyering.net>
30842
30843         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
30844         when we detect Darwin 8.7.0's acl_get_file bug.
30845         Rearrange to perform the new (below) run-test while $LIBS
30846         contains any acl-related library.  Set USE_ACL at the end.
30847         (gl_ACL_GET_FILE): New function.
30848
30849 2006-09-26  Eric Blake  <ebb9@byu.net>
30850
30851         * lib/verror.c: Include <config.h> unconditionally.
30852
30853 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
30854
30855         * modules/clock-time (Maintainer): Add self.
30856         * modules/getlogin_r (Depends-on): Add extensions.
30857
30858 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30859
30860         * modules/clock-time: New module.
30861         * modules/nanosleep (Depends-on): Add clock-time.
30862         * modules/gethrxtime (Depends-on): Likewise.
30863         * modules/gettime (Depends-on): Likewise.
30864         * modules/settime (Depends-on): Likewise.
30865
30866         * modules/fts-lgpl: Depend on openat.
30867         * modules/mkancesdirs: Depend on savewd.
30868         * modules/mkdir-p: Likewise.
30869
30870 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30871
30872         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
30873
30874         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
30875         `gl_have_arbitrary_file_name_length_limit' to
30876         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
30877         actually works between configure runs.
30878
30879 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30880             Bruno Haible  <bruno@clisp.org>
30881
30882         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
30883
30884 2006-09-25  Jim Meyering  <jim@meyering.net>
30885
30886         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
30887         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
30888
30889 2006-09-25  Eric Blake  <ebb9@byu.net>
30890
30891         * gnulib-tool (func_import, func_create_testdir): Fix typos in
30892         exec's in 2006-09-18 patch when shuffling fds.
30893
30894 2006-09-25  Bruno Haible  <bruno@clisp.org>
30895
30896         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
30897         Reported by Jim Meyering.
30898
30899 2006-09-24  Jim Meyering  <jim@meyering.net>
30900
30901         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
30902         compare a pointer against a literal "0".  That caused failures with
30903         at least HP-UX's hpcc.
30904
30905 2006-09-22  Simon Josefsson  <jas@extundo.com>
30906
30907         * modules/gc-sha1:
30908         * modules/gc-md4:
30909         * modules/gc-hmac-sha1:
30910         * modules/gc-hmac-md5:
30911         * modules/gc-des:
30912         * modules/gc-arcfour: Distribute more files.
30913
30914 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30915
30916         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
30917         (gl_linked_iterator_from_to): Initialize struct completely.
30918         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
30919         (gl_tree_iterator_from_to): Likewise
30920         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
30921         * lib/gl_array_list.c [lint] (gl_array_iterator)
30922         (gl_array_iterator_from_to): Likewise.
30923         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
30924         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
30925         (gl_carray_iterator_from_to): Likewise.
30926
30927         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
30928         * lib/md4.c (md4_process_block): Remove unused variable.
30929         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
30930         parentheses for clarity.
30931
30932 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30933
30934         * modules/bison-i18n (Depends-on): Add gettext.
30935
30936 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30937
30938         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
30939         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
30940         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
30941         also add missing comma that caused broken test.
30942         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
30943         stdlib.h, for `abort'.
30944         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
30945         variables.
30946         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
30947         include unistd.h if present, for `rmdir'.
30948         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
30949         variables.
30950         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
30951         in the process include standard headers for prototypes.
30952         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
30953         gets declared on GNU/Linux.
30954         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
30955         unistd.h, for `rmdir'.
30956         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
30957
30958         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
30959         always true.
30960         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
30961
30962         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
30963
30964 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30965
30966         * gnulib-tool (func_version): Create output all at once.  This
30967         may help avoid triggering unnecessary SIGPIPEs, and at any
30968         rate it doesn't hurt.
30969
30970 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30971             Bruno Haible  <bruno@clisp.org>
30972
30973         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
30974         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30975         * m4/signed.m4 (bh_C_SIGNED): Likewise.
30976
30977         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
30978         (gl_FUNC_VASPRINTF): Invoke it.
30979
30980 2006-09-22  Bruno Haible  <bruno@clisp.org>
30981
30982         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
30983         getloadavg.c as first argument.
30984
30985 2006-09-22  Bruno Haible  <bruno@clisp.org>
30986
30987         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
30988         at the beginning of the gl_INIT macro.
30989         * modules/getloadavg (configure.ac): Pass $gl_source_base to
30990         gl_GETLOADAVG.
30991
30992 2006-09-22  Bruno Haible  <bruno@clisp.org>
30993
30994         * gnulib-tool (func_create_megatestdir): Don't include the config-h
30995         module.
30996         Suggested by Ralf Wildenhues.
30997
30998 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30999
31000         Import this patch from libc:
31001
31002         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
31003
31004         * lib/regex_internal.c (re_string_reconstruct): Handle
31005         offset < pstr->valid_raw_len && pstr->offsets_needed case.
31006         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
31007         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
31008         re_string_context_at.
31009
31010         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
31011         now requires it.
31012         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
31013         gl_REGEX now does it for us.
31014         (gl_REGEX): Add test taken from
31015         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
31016
31017         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
31018         Check that large offsets work.  Modernize Autoconf usages.
31019         Prefer "yes" to mean a good thing rather than a bad.
31020         Don't put "#define mkstemp" in config.h, as this might interfere
31021         with standard system headers that "#define mkstemp mkstemp64".
31022
31023         * modules/mkstemp (Depends-on): Add extensions, so that
31024         mkstemp is visible on some platforms.
31025         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
31026         (Include): Change to "mkstemp.h" from <stdlib.h>.
31027         (Files): Add mkstemp.h.
31028
31029         * lib/mkstemp.h: New file, since some standard headers
31030         #define mkstemp.
31031         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
31032         Include "mkstemp.h".
31033         Make the _LIBC code resemble glibc original more,
31034         e.g., use K&R style.
31035         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
31036         (mkstemp): Remove, since mkstemp.h does this for us.
31037         * lib/stdlib--.h: Include mkstemp.h.
31038
31039         Import this patch from libc:
31040
31041         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
31042
31043         * lib/tempname.c (__gen_tempname): Change attempts_min
31044         into a macro.  Use preprocessor to decide how to initialize
31045         attempts [Coverity CID 67].
31046
31047 2006-09-20  Bruno Haible  <bruno@clisp.org>
31048
31049         * lib/mkdtemp.c: Import from libc.
31050         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
31051                 * sysdeps/posix/tempname.c (__gen_tempname): Change
31052                 attempts_min into a macro.  Use preprocessor to decide how to
31053                 initialize attempts [Coverity CID 67].
31054         2001-11-27  Paul Eggert  <eggert@twinsun.com>
31055                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
31056                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
31057
31058 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31059
31060         * gnulib-tool (func_exit): New function, to allow to pass the
31061         exit status portably through the trap.  Use everywhere.
31062         (--help, --version): Signal a write error.
31063         (trap): catch SIGPIPE, for write errors.
31064         Exit at the end of the trap, with the correct exit status.
31065
31066 2006-09-19  Karl Berry  <karl@gnu.org>
31067
31068         * doc/gnulib.texi: note about the license texinfo files.
31069
31070 2006-09-19  Eric Blake  <ebb9@byu.net>
31071
31072         * gnulib-tool: Avoid space-tab.
31073
31074 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
31075
31076         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
31077         that prevented coreutils 6.1 from building.  Problem reported
31078         by Petter Reinholdtsen.
31079
31080 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
31081
31082         * gnulib-tool (avoidlist): Fix typo that broke options like
31083         --avoid=lock that are used by coreutils bootstrap.
31084
31085 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
31086
31087         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
31088         more systematically.
31089
31090 2006-09-18  Jim Meyering  <jim@meyering.net>
31091
31092         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
31093
31094 2006-09-18  Bruno Haible  <bruno@clisp.org>
31095
31096         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
31097
31098 2006-09-18  Bruno Haible  <bruno@clisp.org>
31099
31100         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
31101         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
31102         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
31103         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
31104         * m4/gettext.m4: Require autoconf >= 2.52.
31105         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
31106         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
31107         of gl_cv_header_inttypes_h.
31108
31109 2006-09-18  Bruno Haible  <bruno@clisp.org>
31110
31111         * lib/javaversion.c: Include configmake.h.
31112
31113 2006-09-18  Bruno Haible  <bruno@clisp.org>
31114
31115         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
31116         avoid that the while loops be executed in a subshell.
31117
31118 2006-09-18  Bruno Haible  <bruno@clisp.org>
31119
31120         * MODULES.html.sh (func_module): Break long lines.
31121         Suggested by Bruce Korb <bkorb@gnu.org>.
31122
31123 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31124
31125         Speed up by a factor of 1.12.
31126         * gnulib-tool (nl): New variable.
31127         (func_import): Rewrite include directive extraction to only read each
31128         directive once.
31129
31130 2006-09-17  Bruno Haible  <bruno@clisp.org>
31131
31132         * modules/javaversion (Makefile.am): Remove DEFS setting.
31133         (Depends-on): Add configmake, for PKGDATADIR definition.
31134
31135 2006-09-17  Bruno Haible  <bruno@clisp.org>
31136
31137         * gnulib-tool (func_create_testdir): Rewrite all files at once.
31138
31139 2006-09-17  Bruno Haible  <bruno@clisp.org>
31140
31141         * gnulib-tool (func_append): New function, stolen from libtool.m4.
31142         (func_modules_transitive_closure, func_modules_add_dummy,
31143         func_modules_to_filelist, func_import, func_create_testdir,
31144         func_create_megatestdir, ...): Use it wherever possible.
31145         Suggested by Ralf Wildenhues.
31146
31147 2006-09-16  Karl Berry  <karl@gnu.org>
31148
31149         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
31150         to avoid sectioning errors.
31151         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
31152         [ifinfo]: blank line after @center-ed titles.
31153         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
31154         Spell FSF address consistently with others.
31155         (These changes approved by rms.)
31156
31157 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31158
31159         Speed up by a factor of 1.61.
31160         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
31161         already checked module names again.
31162
31163 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31164
31165         Speed up by a factor of 1.13.
31166         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
31167         for new_files, and the input to func_add_or_update.
31168
31169 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31170
31171         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
31172         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
31173
31174 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
31175
31176         * modules/mkancesdirs (Depends-on): Add fcntl.
31177         * modules/savewd: New file.
31178         * MODULES.html.sh (File system functions): Add savewd.
31179
31180         * modules/configmake (Makefile.am): Add support for the
31181         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
31182
31183 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
31184
31185         * m4/savewd.m4: New file.
31186
31187 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
31188
31189         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
31190         (dirchownmod): New arg FD.  All callers changed.
31191         Use FD rather than opening the directory ourself, as opening is
31192         now the caller's responsibility.
31193         * lib/dirchownmod.h: Likewise.
31194         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
31195         hosts that require <sys/types.h> before <sys/stat.h>.  Include
31196         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
31197         (test_dir): Remove.
31198         (mkancesdirs): Return length of prefix of FILE that has already
31199         been made, or -2 if there is a child doing the work.  Redo
31200         algorithm so that it is O(N) rather than O(N**2).  Optimize away
31201         ".", and treat ".." specially since it might stray back into
31202         already-created areas.  Use a subprocess if necessary.  New arg
31203         WD; all users changed.  MAKE_DIR function should now return 1
31204         if it creates a directory that is not readable.  Return -2 if
31205         a child process is spun off.
31206         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
31207         Adjust signature to match code.
31208         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
31209         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
31210         all users changed.
31211         * lib/savewd.c, lib/savewd.h: New files.
31212
31213 2006-09-15  Jim Meyering  <jim@meyering.net>
31214
31215         * modules/rename-dest-slash: New module.
31216         * MODULES.html.sh (posix_compat): Add it here.
31217
31218         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
31219
31220 2006-09-15  Jim Meyering  <jim@meyering.net>
31221
31222         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
31223         file.
31224
31225         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
31226
31227 2006-09-15  Jim Meyering  <jim@meyering.net>
31228
31229         * lib/rename-dest-slash.c (has_trailing_slash): Use
31230         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
31231         (rpl_rename_dest_slash): Perform the cheaper trailing slash
31232         test before testing whether SRC is a directory.
31233         Suggestions from Bruno Haible.
31234
31235         Avoid a warning about an unused variable.
31236         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
31237         into the #ifdef block where it's used.
31238
31239         * lib/rename-dest-slash.c: New file.
31240
31241 2006-09-14  Bruno Haible  <bruno@clisp.org>
31242
31243         * lib/allocsa.c: Include <config.h> unconditionally.
31244         * lib/asnprintf.c: Likewise.
31245         * lib/asprintf.c: Likewise.
31246         * lib/c-strcasecmp.c: Likewise.
31247         * lib/c-strcasestr.c: Likewise.
31248         * lib/c-strncasecmp.c: Likewise.
31249         * lib/c-strstr.c: Likewise.
31250         * lib/classpath.c: Likewise.
31251         * lib/clean-temp.c: Likewise.
31252         * lib/concatpath.c: Likewise.
31253         * lib/copy-file.c: Likewise.
31254         * lib/csharpcomp.c: Likewise.
31255         * lib/csharpexec.c: Likewise.
31256         * lib/execute.c: Likewise.
31257         * lib/fatal-signal.c: Likewise.
31258         * lib/findprog.c: Likewise.
31259         * lib/fwriteerror.c: Likewise.
31260         * lib/gl_array_list.c: Likewise.
31261         * lib/gl_array_oset.c: Likewise.
31262         * lib/gl_avltree_list.c: Likewise.
31263         * lib/gl_avltree_oset.c: Likewise.
31264         * lib/gl_avltreehash_list.c: Likewise.
31265         * lib/gl_carray_list.c: Likewise.
31266         * lib/gl_linked_list.c: Likewise.
31267         * lib/gl_linkedhash_list.c: Likewise.
31268         * lib/gl_list.c: Likewise.
31269         * lib/gl_oset.c: Likewise.
31270         * lib/gl_rbtree_list.c: Likewise.
31271         * lib/gl_rbtree_oset.c: Likewise.
31272         * lib/gl_rbtreehash_list.c: Likewise.
31273         * lib/imaxabs.c: Likewise.
31274         * lib/imaxdiv.c: Likewise.
31275         * lib/javacomp.c: Likewise.
31276         * lib/javaexec.c: Likewise.
31277         * lib/javaversion.c: Likewise.
31278         * lib/linebreak.c: Likewise.
31279         * lib/localcharset.c: Likewise.
31280         * lib/lock.c: Likewise.
31281         * lib/mbchar.c: Likewise.
31282         * lib/mbswidth.c: Likewise.
31283         * lib/mkdtemp.c: Likewise.
31284         * lib/pipe.c: Likewise.
31285         * lib/printf-args.c: Likewise.
31286         * lib/printf-parse.c: Likewise.
31287         * lib/progname.c: Likewise.
31288         * lib/progreloc.c: Likewise.
31289         * lib/readlink.c: Likewise.
31290         * lib/sh-quote.c: Likewise.
31291         * lib/stpcpy.c: Likewise.
31292         * lib/stpncpy.c: Likewise.
31293         * lib/strcasecmp.c: Likewise.
31294         * lib/strcasestr.c: Likewise.
31295         * lib/strcspn.c: Likewise.
31296         * lib/striconv.c: Likewise.
31297         * lib/strncasecmp.c: Likewise.
31298         * lib/strnlen1.c: Likewise.
31299         * lib/strstr.c: Likewise.
31300         * lib/strtok_r.c: Likewise.
31301         * lib/tls.c: Likewise.
31302         * lib/tmpdir.c: Likewise.
31303         * lib/unicodeio.c: Likewise.
31304         * lib/unsetenv.c: Likewise.
31305         * lib/vasnprintf.c: Likewise.
31306         * lib/vasprintf.c: Likewise.
31307         * lib/wait-process.c: Likewise.
31308         * lib/xallocsa.c: Likewise.
31309         * lib/xsetenv.c: Likewise.
31310         * lib/xstriconv.c: Likewise.
31311
31312 2006-09-13  Simon Josefsson  <jas@extundo.com>
31313
31314         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
31315         that internally, suggested by Ralf Wildenhues
31316         <Ralf.Wildenhues@gmx.de>.
31317
31318 2006-09-13  Simon Josefsson  <jas@extundo.com>
31319
31320         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
31321         @LIBOBJS@.
31322         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31323
31324 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31325
31326         * lib/_fpending.c: Include <config.h> unconditionally, since we no
31327         longer worry about uses that don't define HAVE_CONFIG_H.
31328         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
31329         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
31330         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
31331         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
31332         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
31333         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
31334         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
31335         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
31336         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
31337         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
31338         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
31339         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
31340         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
31341         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
31342         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
31343         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
31344         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
31345         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
31346         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
31347         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
31348         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
31349         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
31350         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
31351         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
31352         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
31353         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
31354         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
31355         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
31356         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
31357         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
31358         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
31359         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
31360         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
31361         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
31362         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
31363         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
31364         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
31365         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
31366         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
31367         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
31368         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
31369         Likewise.
31370
31371 2006-09-13  Eric Blake  <ebb9@byu.net>
31372
31373         * lib/getopt.c: Fix typo in last commit.
31374
31375 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31376
31377         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
31378         dgettext.
31379
31380 2006-09-12  Jim Meyering  <jim@meyering.net>
31381
31382         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
31383         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
31384         Reported by Nelson H. F. Beebe.
31385
31386 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
31387
31388         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
31389         program_invocation_name and program_invocation_short_name are
31390         initialized.
31391         * lib/argp-namefrob.h: Move declarations of program_invocation_name
31392         and program_invocation_short_name to argp.h, so they are visible
31393         to user programs.
31394         * lib/argp.h: Likewise
31395
31396 2006-09-10  Bruno Haible  <bruno@clisp.org>
31397
31398         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
31399         m4/inttypes_h.m4, m4/uintmax_t.m4.
31400
31401 2006-09-10  Bruno Haible  <bruno@clisp.org>
31402
31403         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
31404         gl_AC_TYPE_UINTMAX_T.
31405
31406 2006-09-10  Bruno Haible  <bruno@clisp.org>
31407
31408         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
31409
31410 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
31411
31412         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
31413         convention.  Text proposed by Bruno Haible.
31414         (struct argp_option): Document the use of N_() wrappers.
31415
31416         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
31417         '\v', and translate the two parts separately, instead of feeding
31418         the whole string to gettext.  This allows to exclude
31419         '\v' from the strings visible to the translator by writing doc
31420         strings as N_("..") "\v" N_("..").
31421
31422 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
31423
31424         * config/srclist.txt: Undo latest change; the bug was fixed.
31425
31426 2006-09-09  Bruno Haible  <bruno@clisp.org>
31427
31428         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
31429         assignments if building a library without libtool.
31430         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
31431         in func_emit_lib_Makefile_am.
31432         (func_import): When building a static library libfoo.a, arrange to
31433         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
31434         (func_create_testdir): Likewise.
31435         * modules/gc (configure.ac, Makefile.am): If building statically,
31436         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
31437         * modules/iconvme (configure.ac, Makefile.am): Likewise.
31438         * modules/striconv (configure.ac, Makefile.am): Likewise.
31439         Based on a suggestion by Ralf Wildenhues.
31440
31441 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
31442
31443         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
31444         Check for unistd.h too, since Autoconf doesn't assume POSIX.
31445         Also:
31446
31447         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
31448         Add year_2050_test to catch glibc bug 2821
31449         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
31450
31451         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31452         Prefer #ifdef to #if.
31453
31454         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
31455         Return from 'main' instead of calling 'exit'.
31456
31457 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
31458
31459         * lib/mktime.c (guess_time_tm): Fix bug where mktime
31460         returned the maximum time_t value rather than (time_t) -1.
31461         Problem originally reported by William Bardwell
31462         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
31463
31464         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
31465         Moved to here ...
31466         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
31467         ... from here.
31468
31469 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
31470
31471         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
31472         2821 is fixed.
31473
31474 2006-09-08  Jim Meyering  <jim@meyering.net>
31475
31476         Don't make generated files read-only.  That would bother too many
31477         people.  However, do retain the ability to work when targets are
31478         read-only: remove the destination and temporary files before writing
31479         them (when generated via sed or echo), or by using the -f option for
31480         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
31481         * modules/alloca-opt, modules/argz, modules/arpa_inet:
31482         * modules/byteswap, modules/configmake, modules/fcntl:
31483         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
31484         * modules/localcharset, modules/netinet_in, modules/poll:
31485         * modules/stdbool, modules/stdint, modules/sys_select:
31486         * modules/sys_socket, modules/sys_stat, modules/sysexits:
31487
31488 2006-09-08  Jim Meyering  <jim@meyering.net>
31489
31490         Avoid new build failure on FreeBSD 6.0.
31491         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
31492         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
31493         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
31494
31495 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31496
31497         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
31498
31499 2006-09-07  Jim Meyering  <jim@meyering.net>
31500
31501         Fix global typo in last change: use chmod u-w, not chmod u-x.
31502         Spotted by Paul Eggert and Bruce Korb.
31503         * modules/alloca-opt, modules/argz, modules/arpa_inet:
31504         * modules/byteswap, modules/configmake, modules/fcntl:
31505         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
31506         * modules/localcharset, modules/netinet_in, modules/poll:
31507         * modules/stdbool, modules/stdint, modules/sys_select:
31508         * modules/sys_socket, modules/sys_stat, modules/sysexits:
31509
31510 2006-09-06  Jim Meyering  <jim@meyering.net>
31511
31512         Make generated files be read-only.
31513         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
31514         Ensure that each generated file is now read-only.
31515         * modules/argz: Likewise.
31516         * modules/arpa_inet: Likewise.
31517         * modules/byteswap: Likewise.
31518         * modules/configmake: Likewise.
31519         * modules/fcntl: Likewise.
31520         * modules/fnmatch: Likewise.
31521         * modules/getopt: Likewise.
31522         * modules/glob: Likewise.
31523         * modules/inttypes: Likewise.
31524         * modules/netinet_in: Likewise.
31525         * modules/poll: Likewise.
31526         * modules/stdbool: Likewise.
31527         * modules/stdint: Likewise.
31528         * modules/sys_select: Likewise.
31529         * modules/sys_socket: Likewise.
31530         * modules/sys_stat: Likewise.
31531         * modules/sysexits: Likewise.
31532         * modules/localcharset: Same as above, but continue using temporary
31533         file named "t-$@" (why different?) rather than the "$@-t" used
31534         everywhere else.
31535
31536         * modules/sysexits (Makefile.am): Replace literal occurrences
31537         of "sysexit.h" more readable, and more consistent, "$@".
31538
31539 2006-09-06  Bruno Haible  <bruno@clisp.org>
31540
31541         * modules/striconv: New file.
31542         * modules/xstriconv: New file.
31543         * MODULES.html.sh (Internationalization functions): Add striconv,
31544         xstriconv.
31545
31546 2006-09-06  Bruno Haible  <bruno@clisp.org>
31547
31548         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
31549         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
31550         not using libtool correctly.
31551
31552 2006-09-06  Bruno Haible  <bruno@clisp.org>
31553
31554         * lib/striconv.h: New file.
31555         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
31556         iconvstring.c.
31557         * lib/xstriconv.h: New file.
31558         * lib/xstriconv.c: New file.
31559
31560 2006-09-06  Bruno Haible  <bruno@clisp.org>
31561
31562         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
31563         lib_..._LDFLAGS.
31564
31565 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31566
31567         * lib/argz_.h: Sync from Libtool.
31568
31569         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
31570                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31571
31572         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
31573
31574 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
31575
31576         * modules/trim: New file.
31577
31578 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
31579
31580         * lib/trim.h: New file.
31581         * lib/trim.c: New file.
31582
31583 2006-09-05  Bruno Haible  <bruno@clisp.org>
31584
31585         * MODULES.html.sh (String handling): Add trim.
31586
31587 2006-09-04  Karl Berry  <karl@gnu.org>
31588
31589         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
31590         until next release.
31591
31592 2006-09-03  Bruno Haible  <bruno@clisp.org>
31593
31594         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
31595         correctly.
31596
31597 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31598
31599         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
31600         not gl_GETLOADAVG.  Omit unneeded semicolons.
31601         Problems reported by Ralf Wildenhues in
31602         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
31603         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
31604         at the end, which is the usual gnulib style.
31605
31606         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
31607         of doing all the work ourselves.
31608         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
31609         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
31610
31611 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31612
31613         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
31614         Problem reported by Ralf Wildenhues in
31615         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
31616
31617         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
31618         HAVE_STRUCT_STATFS_F_FSTYPENAME.
31619
31620 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31621
31622         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
31623         yesterday's patch by changing test -n to test -z.
31624
31625 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31626
31627         * modules/getloadavg (Files): Add m4/getloadavg.m4.
31628         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
31629         the former is now obsolescent.
31630
31631         * modules/chdir-long (Depends-on): Add fcntl.
31632
31633 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31634
31635         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
31636         obsolescent, and programs should use gnulib instead.
31637         * m4/getloadavg.m4: New file, with contents taken from Autoconf
31638         but with prefixes changed.
31639
31640 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31641
31642         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
31643         or stdbool.h, because they might not exist while configuring.
31644
31645         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
31646         Don't include unistd.h or limits.h; not needed, since chdir-long.h
31647         does that for us.
31648         (O_DIRECTORY): Remove.
31649
31650 2006-08-31  Eric Blake  <ebb9@byu.net>
31651
31652         * gnulib-tool: Don't let emacs change spaces to TAB.
31653
31654 2006-08-31  Bruno Haible  <bruno@clisp.org>
31655
31656         * gnulib-tool: When calling func_import more than once, do it in a
31657         subshell.
31658         Reported by Eric Blake <ebb9@byu.net>.
31659
31660 2006-08-31  Bruno Haible  <bruno@clisp.org>
31661
31662         * gnulib-tool (nl): Remove variable.
31663         (sed_transform_lib_file): Use more robust test for config-h module.
31664         (func_import): Fix typo in 2006-08-25 patch.
31665
31666 2006-08-31  Bruno Haible  <bruno@clisp.org>
31667
31668         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
31669         specified, augment Makefile.am variables instead of assigning them.
31670
31671 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
31672
31673         Work around a bug in both the Linux and SunOS 64-bit kernels:
31674         nanosleep mishandles sleeps for longer than 2**31 seconds.
31675         Problem reported by Frank v Waveren in
31676         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
31677         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
31678         Check for nanosleep bug.
31679         (LIB_NANOSLEEP): Append clock_gettime library if needed.
31680
31681 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
31682
31683         Work around a bug in both the Linux and SunOS 64-bit kernels:
31684         nanosleep mishandles sleeps for longer than 2**31 seconds.
31685         Problem reported by Frank v Waveren in
31686         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
31687         * lib/nanosleep.c (BILLION): New constant.
31688         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
31689         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
31690         implementation.
31691
31692 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
31693
31694         * modules/nanosleep (Depends-on): Add gettime.
31695
31696 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
31697         and Simon Josefsson  <jas@extundo.com>
31698         and Oskar Liljeblad  <oskar@osk.mine.nu>
31699
31700         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
31701         * gnulib-tool (func_import): New license type 'unmodifiable license
31702         text'.
31703         * modules/fdl: Use it.  Longer description.
31704         * module/gpl, module/lgpl: New files.
31705
31706 2006-08-30  Jim Meyering  <jim@meyering.net>
31707
31708         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
31709         shadowing the parameter.
31710
31711 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31712
31713         Sync from Libtool:
31714
31715         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31716
31717         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
31718         sharing with gnulib.  Report by Eric Blake.
31719
31720 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31721
31722         * modules/isapipe: New file.
31723         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
31724
31725 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31726
31727         * modules/configmake (Makefile.am): Add a comment, and omit
31728         the CONFIGMAKE_ prefix from generated macro names.  Suggested
31729         by Bruno Haible.
31730
31731 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31732
31733         * m4/isapipe.m4: New file.
31734
31735 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31736
31737         * lib/isapipe.c, lib/isapipe.h: New files.
31738
31739 2006-08-29  Jim Meyering  <jim@meyering.net>
31740
31741         * modules/configmake (Makefile.am): Make configmake.h depend on
31742         Makefile.  Otherwise, a stale configmake.h could hang around.
31743
31744 2006-08-29  Eric Blake  <ebb9@byu.net>
31745
31746         * lib/error.c (error_at_line, print_errno_message): Match libc, after
31747         resolution of upstream bug 3044.
31748
31749 2006-08-29  Bruno Haible  <bruno@clisp.org>
31750
31751         * modules/localcharset (Depends-on): Add configmake.
31752         (Makefile.am): Remove setting of LIBDIR through DEFS.
31753
31754 2006-08-29  Bruno Haible  <bruno@clisp.org>
31755
31756         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
31757         defined.
31758
31759 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
31760
31761         * modules/fcntl: New file.
31762         * modules/chdir-safer (Depends-on): Add fcntl.
31763         * modules/fts: Likewise.
31764         * modules/mkdir-p: Likewise.
31765
31766         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
31767         This undoes the most recent change, since we're now addressing the
31768         problem in a different way.
31769
31770         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
31771         into output, since the output might be called Makefile.am even
31772         if $makefile_name is something different.
31773         (func_import): Use $makefile_am rather than
31774         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
31775         empty.
31776
31777         * modules/inttypes (Files): Add m4/inttypes-h.m4.
31778
31779 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
31780
31781         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
31782         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
31783         recent change to stdint.m4, since we're now addressing the problem in a
31784         different way.
31785
31786 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
31787
31788         * m4/fcntl_h.m4: New file.
31789
31790 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
31791
31792         * lib/fcntl_.h: New file.
31793         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
31794         the fcntl module.
31795         * lib/dirchownmod.c: Likewise.
31796         * lib/fts.c: Likewise.
31797
31798         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
31799         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
31800         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
31801         just before including <inttypes.h>, to avoid circular inclusion.
31802
31803 2006-08-28  Jim Meyering  <jim@meyering.net>
31804
31805         * doc/visibility.texi: Actually read and correct the grammar of the
31806         sentence affected by yesterday's change.
31807
31808 2006-08-28  Eric Blake  <ebb9@byu.net>
31809
31810         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
31811         needs wrapper.
31812
31813 2006-08-28  Eric Blake  <ebb9@byu.net>
31814
31815         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
31816
31817 2006-08-28  Eric Blake  <ebb9@byu.net>
31818
31819         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
31820
31821 2006-08-28  Bruno Haible  <bruno@clisp.org>
31822
31823         * modules/c-strstr: New file, from GNU gettext.
31824         * MODULES.html.sh (String handling): Add c-strstr.
31825
31826 2006-08-28  Bruno Haible  <bruno@clisp.org>
31827
31828         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
31829         macros.
31830         Reported by Eric Blake.
31831
31832 2006-08-28  Bruno Haible  <bruno@clisp.org>
31833
31834         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
31835         (VASNPRINTF): Return a string of length > INT_MAX without failing.
31836         * lib/vasprintf.c: Include errno.h, limits.h.
31837         (EOVERFLOW): New fallback definition.
31838         (vasprintf): Test here whether the string length is > INT_MAX.
31839         * lib/vsnprintf.c: Include errno.h, limits.h.
31840         (EOVERFLOW): New fallback definition.
31841         (vsnprintf): Fix bug when generated string was too long for the buffer.
31842         Test here whether the string length is > INT_MAX.
31843
31844 2006-08-28  Bruno Haible  <bruno@clisp.org>
31845
31846         * lib/inttypes_.h (SCNX*): Remove definitions.
31847         Reported by Eric Blake.
31848
31849 2006-08-28  Bruno Haible  <bruno@clisp.org>
31850
31851         * lib/c-strstr.h: New file, from GNU gettext.
31852         * lib/c-strstr.c: New file, from GNU gettext.
31853
31854 2006-08-28  Bruno Haible  <bruno@clisp.org>
31855
31856         * gnulib-tool: Reorder some statements.
31857
31858 2006-08-28  Bruno Haible  <bruno@clisp.org>
31859
31860         * gnulib-tool: New option --makefile-name.
31861         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
31862         $makefile_name.
31863         (func_import): Write $makefile_name to the cache file, and read it from
31864         there unless explicitly specified. Use $makefile_name as file name
31865         instead of Makefile.am. Adjust the recommendations accordingly.
31866
31867 2006-08-28  Bruno Haible  <bruno@clisp.org>
31868
31869         * gnulib-tool (func_verify_module): Check against misapplying patch.
31870
31871 2006-08-28  Bruno Haible  <bruno@clisp.org>
31872
31873         * gnulib-tool (func_relativize, func_relconcat): New functions.
31874         Give an error if --local-dir is given with --update.
31875         Remove trailing slashes from $local_gnulib_dir.
31876         (func_import): Store the relativized $local_gnulib_dir in
31877         gnulib-cache.m4, and read it from there if not specified explicitly.
31878
31879 2006-08-28  Bruno Haible  <bruno@clisp.org>
31880
31881         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
31882         is the current directory. Respect also $local_gnulib_dir.
31883
31884 2006-08-28  Bruno Haible  <bruno@clisp.org>
31885             Simon Josefsson  <jas@extundo.com>
31886
31887         BeOS portability.
31888         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
31889
31890 2006-08-27  Jim Meyering  <jim@meyering.net>
31891
31892         * doc/visibility.texi: Remove duplicate word: "pointer".
31893
31894 2006-08-26  Bruno Haible  <bruno@clisp.org>
31895
31896         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
31897         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
31898         (Makefile.am): Create inttypes.h from inttypes_.h.
31899         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
31900
31901         * modules/imaxabs: New file.
31902
31903         * modules/imaxdiv: New file.
31904
31905 2006-08-26  Bruno Haible  <bruno@clisp.org>
31906
31907         * m4/inttypes.m4: New file.
31908         * m4/_inttypes_h.m4: Remove file.
31909         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
31910         PRI_MACROS_BROKEN.
31911         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
31912
31913         * m4/imaxabs.m4: New file.
31914
31915         * m4/imaxdiv.m4: New file.
31916
31917 2006-08-26  Bruno Haible  <bruno@clisp.org>
31918
31919         * lib/inttypes_.h: New file.
31920         * lib/inttypes.h: Remove file.
31921         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
31922
31923         * lib/imaxabs.c: New file.
31924
31925         * lib/imaxdiv.c: New file.
31926
31927 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31928
31929         New config-h module, so that "make" output needn't be cluttered
31930         by -DHAVE_CONFIG_H.
31931         * MODULES.html.sh (Support for building libraries and executables):
31932         Add config-h.
31933         * modules/config-h: New file.
31934         * gnulib-tool (nl, sed_transform_lib_file): New vars.
31935         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
31936         the config-h module is used.
31937
31938         New configmake module, so that "make" output needn't be cluttered
31939         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
31940         * MODULES.html.sh (Support for building libraries and executables):
31941         Add configmake.
31942         * modules/configmake: New file.
31943
31944 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31945
31946         * m4/config-h.m4: New file.
31947
31948 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31949
31950         * config/srclist.txt: Add elisp-comp.
31951
31952 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31953
31954         * MODULES.html.sh (Support for building libraries and executables):
31955         Add elisp-comp.
31956         * build-aux/elisp-comp: New file.
31957         * modules/elisp-comp: New file.
31958
31959 2006-08-24  Bruno Haible  <bruno@clisp.org>
31960
31961         * gnulib-tool (func_create_testdir): Use non-default values of
31962         sourcebase and m4base.
31963
31964 2006-08-24  Bruno Haible  <bruno@clisp.org>
31965
31966         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
31967         HTML structure.
31968
31969 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31970
31971         * modules/openat (Depends-on): Add lchown.
31972
31973 2006-08-23  Bruno Haible  <bruno@clisp.org>
31974
31975         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
31976         of gl_LOCK_EARLY instead of gl_LOCK.
31977
31978 2006-08-23  Bruno Haible  <bruno@clisp.org>
31979
31980         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
31981         on OSF/1 to no.
31982         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
31983
31984 2006-08-23  Bruno Haible  <bruno@clisp.org>
31985
31986         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
31987         as unusable.
31988
31989         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
31990         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
31991         (gl_LOCK): New macro.
31992
31993 2006-08-22  Simon Josefsson  <jas@extundo.com>
31994
31995         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
31996         to md5 module.
31997
31998 2006-08-22  Simon Josefsson  <jas@extundo.com>
31999
32000         * MODULES.html.sh: Add "Support for maintaining and release
32001         projects".
32002
32003         * build-aux/gnupload: New file, from coreutils.
32004
32005 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
32006
32007         Avoid the need for AC_LIBSOURCES in m4 macros.
32008         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
32009         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
32010         * modules/check-version (EXTRA_DIST): Add check-version.h.
32011         * modules/crc (EXTRA_DIST): Add crc.h.
32012         * modules/des (EXTRA_DIST): Add des.h.
32013         * modules/gc (EXTRA_DIST): Add gc.h.
32014         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
32015         * modules/getline (EXTRA_DIST): Add getline.h.
32016         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
32017         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
32018         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
32019         * modules/md2 (EXTRA_DIST): Add md2.h.
32020         * modules/md4 (EXTRA_DIST): Add md4.h.
32021         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
32022         * modules/read-file (EXTRA_DIST): Add read-file.h.
32023         * modules/readline (EXTRA_DIST): Add readline.h.
32024         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
32025         rijndael-api-fst.h.
32026
32027 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
32028
32029         * m4/rijndael.m4 (gl_ARCFOUR):
32030         * m4/arctwo.m4 (gl_ARCTWO):
32031         * m4/check-version.m4 (gl_CHECK_VERSION):
32032         * m4/crc.m4 (gl_CRC):
32033         * m4/des.m4 (gl_DES):
32034         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
32035         * m4/gc.m4 (gl_GC):
32036         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
32037         * m4/getline.m4 (gl_FUNC_GETLINE):
32038         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
32039         * m4/hmac-md5.m4 (gl_HMAC_MD5):
32040         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
32041         * m4/md2.m4 (gl_MD2):
32042         * m4/md4.m4 (gl_MD4):
32043         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
32044         * m4/read-file.m4 (gl_FUNC_READ_FILE):
32045         * m4/readline.m4 (gl_FUNC_READLINE):
32046         * m4/rijndael.m4 (gl_RIJNDAEL):
32047         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
32048         to get the necessary .h files and whatnot.
32049
32050 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
32051
32052         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
32053         gnulib rather than the other way around.
32054         * config/srclistvars.sh (COREUTILS): Remove.
32055
32056 2006-08-22  Jim Meyering  <jim@meyering.net>
32057
32058         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
32059
32060         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
32061
32062 2006-08-22  Eric Blake  <ebb9@byu.net>
32063
32064         * modules/regexprops-generic: New file.
32065         * MODULES.html.sh (Support for building documentation): List it.
32066
32067 2006-08-22  Eric Blake  <ebb9@byu.net>
32068
32069         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
32070         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
32071         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
32072         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
32073
32074 2006-08-22  Bruno Haible  <bruno@clisp.org>
32075
32076         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
32077         and lib_LTLIBRARIES like the other lib_* variables.
32078
32079 2006-08-22  Bruno Haible  <bruno@clisp.org>
32080
32081         * build-aux/x-to-1.in: New file, from GNU gettext.
32082
32083 2006-08-22  Bruno Haible  <bruno@clisp.org>
32084
32085         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
32086         <utmpx.h> exists.
32087
32088 2006-08-22  Bruno Haible  <bruno@clisp.org>
32089
32090         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
32091         <utmpx.h> exists.
32092
32093 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
32094
32095         BeOS portability.
32096         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
32097         exist.
32098         Problem reported by Bruno Haible.
32099
32100 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
32101
32102         Avoid the need for AC_LIBSOURCES in m4 macros.
32103         * modules/acl (EXTRA_DIST): Add acl.h.
32104         * modules/argmatch (Files): Add m4/argmatch.m4.
32105         (configure.ac): Add gl_ARGMATCH.
32106         (EXTRA_DIST): Renamed from lib_SOURCES, for
32107         consistency with the other modules.  Remove argmatch.c.
32108         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
32109         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
32110         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
32111         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
32112         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
32113         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
32114         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
32115         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
32116         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
32117         * modules/closeout (EXTRA_DIST): Add closeout.h.
32118         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
32119         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
32120         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
32121         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
32122         dirname.h; remove basename.c and stripslash.c.
32123         * modules/exclude (EXTRA_DIST): Add exclude.h.
32124         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
32125         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
32126         * modules/file-type (EXTRA_DIST): Add file-type.h.
32127         * modules/filemode (EXTRA_DIST): Add filemode.h.
32128         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
32129         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
32130         * modules/fpending (EXTRA_DIST): Add __fpending.h.
32131         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
32132         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
32133         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
32134         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
32135         * modules/getdate (EXTRA_DIST): Add getdate.c.
32136         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
32137         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
32138         * modules/getpass (EXTRA_DIST): Add getpass.h.
32139         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
32140         * modules/group-member (EXTRA_DIST): Add group-member.h.
32141         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
32142         * modules/hash (EXTRA_DIST): Add hash.h.
32143         * modules/human (EXTRA_DIST): Add human.h.
32144         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
32145         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
32146         * modules/lchown (EXTRA_DIST): Add lchown.h.
32147         * modules/long-options (EXTRA_DIST): Add long-options.h.
32148         * modules/lstat (EXTRA_DIST): Add lstat.h.
32149         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
32150         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
32151         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
32152         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
32153         * modules/memxor (EXTRA_DIST): Add memxor.h.
32154         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
32155         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
32156         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
32157         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
32158         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
32159         * modules/physmem (EXTRA_DIST): Add physmem.h.
32160         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
32161         * modules/posixver (EXTRA_DIST): Add posixver.h.
32162         * modules/quote (EXTRA_DIST): Add quote.h.
32163         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
32164         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
32165         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
32166         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
32167         regex_internal.h regexec.c.
32168         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
32169         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
32170         * modules/same (EXTRA_DIST): Add same.h.
32171         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
32172         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
32173         * modules/savedir (EXTRA_DIST): Add savedir.h.
32174         * modules/sha1 (EXTRA_DIST): Add sha1.h.
32175         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
32176         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
32177         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
32178         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
32179         * modules/strdup (EXTRA_DIST): Add strdup.h.
32180         * modules/strftime (EXTRA_DIST): Add strftime.h.
32181         * modules/strndup (EXTRA_DIST): Add strndup.h.
32182         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
32183         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
32184         * modules/time_r (EXTRA_DIST): Add time_r.h.
32185         * modules/timespec (EXTRA_DIST): Add timespec.h.
32186         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
32187         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
32188         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
32189         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
32190         * modules/userspec (EXTRA_DIST): Add userspec.h.
32191         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
32192         * modules/utimens (EXTRA_DIST): Add utimens.h.
32193         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
32194         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
32195         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
32196         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
32197         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
32198         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
32199         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
32200         * modules/yesno (EXTRA_DIST): Add yesno.h.
32201
32202 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
32203
32204         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
32205
32206         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
32207         * m4/dev-ino.m4, same-inode.m4: Remove.
32208
32209         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
32210         * m4/acl.m4 (AC_FUNC_ACL):
32211         * m4/backupfile.m4 (gl_BACKUPFILE):
32212         * m4/c-strtod.m4 (gl_C99_STRTOLD):
32213         * m4/canon-host.m4 (gl_CANON_HOST):
32214         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
32215         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
32216         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
32217         * m4/cloexec.m4 (gl_CLOEXEC):
32218         * m4/close-stream.m4 (gl_CLOSE_STREAM):
32219         * m4/closeout.m4 (gl_CLOSEOUT):
32220         * m4/dirfd.m4 (gl_FUNC_DIRFD):
32221         * m4/dirname.m4 (gl_DIRNAME):
32222         * m4/exclude.m4 (gl_EXCLUDE):
32223         * m4/exitfail.m4 (gl_EXITFAIL):
32224         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
32225         * m4/file-type.m4 (gl_FILE_TYPE):
32226         * m4/filemode.m4 (gl_FILEMODE):
32227         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
32228         * m4/fpending.m4 (gl_FUNC_FPENDING):
32229         * m4/fprintftime.m4 (gl_FPRINTFTIME):
32230         * m4/fts.m4 (gl_FUNC_FTS):
32231         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
32232         * m4/getdate.m4 (gl_GETDATE):
32233         * m4/gethrxtime.m4 (gl_GETHRXTIME):
32234         * m4/getpagesize.m4 (gl_GETPAGESIZE):
32235         * m4/getpass.m4 (gl_FUNC_GETPASS):
32236         * m4/gettime.m4 (gl_GETTIME):
32237         * m4/getugroups.m4 (gl_GETUGROUPS):
32238         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
32239         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
32240         * m4/hard-locale.m4 (gl_HARD_LOCALE):
32241         * m4/hash.m4 (gl_HASH):
32242         * m4/idcache.m4 (gl_IDCACHE):
32243         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
32244         * m4/lchown.m4 (gl_FUNC_LCHOWN):
32245         * m4/long-options.m4 (gl_LONG_OPTIONS):
32246         * m4/lstat.m4 (gl_FUNC_LSTAT):
32247         * m4/md5.m4 (gl_MD5):
32248         * m4/memcasecmp.m4 (gl_MEMCASECMP):
32249         * m4/memcoll.m4 (gl_MEMCOLL):
32250         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
32251         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
32252         * m4/memxor.m4 (gl_MEMXOR):
32253         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
32254         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
32255         * m4/modechange.m4 (gl_MODECHANGE):
32256         * m4/mountlist.m4 (gl_MOUNTLIST):
32257         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
32258         * m4/openat.m4 (gl_FUNC_OPENAT):
32259         * m4/pathmax.m4 (gl_PATHMAX):
32260         * m4/physmem.m4 (gl_PHYSMEM):
32261         * m4/posixtm.m4 (gl_POSIXTM):
32262         * m4/posixver.m4 (gl_POSIXVER):
32263         * m4/quote.m4 (gl_QUOTE):
32264         * m4/quotearg.m4 (gl_QUOTEARG):
32265         * m4/readtokens.m4 (gl_READTOKENS):
32266         * m4/readutmp.m4 (gl_READUTMP):
32267         * m4/regex.m4 (gl_REGEX):
32268         * m4/safe-read.m4 (gl_SAFE_READ):
32269         * m4/safe-write.m4 (gl_SAFE_WRITE):
32270         * m4/same.m4 (gl_SAME):
32271         * m4/save-cwd.m4 (gl_SAVE_CWD):
32272         * m4/savedir.m4 (gl_SAVEDIR):
32273         * m4/settime.m4 (gl_SETTIME):
32274         * m4/sha1.m4 (gl_SHA1):
32275         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
32276         * m4/stat-macros.m4 (gl_STAT_MACROS):
32277         * m4/stat-time.m4 (gl_STAT_TIME):
32278         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
32279         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
32280         * m4/strdup.m4 (gl_FUNC_STRDUP):
32281         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
32282         * m4/strndup.m4 (gl_FUNC_STRNDUP):
32283         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
32284         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
32285         * m4/time_r.m4 (gl_TIME_R):
32286         * m4/timespec.m4 (gl_TIMESPEC):
32287         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
32288         * m4/unlinkdir.m4 (gl_UNLINKDIR):
32289         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
32290         * m4/userspec.m4 (gl_USERSPEC):
32291         * m4/utimecmp.m4 (gl_UTIMECMP):
32292         * m4/utimens.m4 (gl_UTIMENS):
32293         * m4/xalloc.m4 (gl_XALLOC):
32294         * m4/xgetcwd.m4 (gl_XGETCWD):
32295         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
32296         * m4/xreadlink.m4 (gl_XREADLINK):
32297         * m4/xstrtod.m4 (gl_XSTRTOD):
32298         * m4/yesno.m4 (gl_YESNO):
32299         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
32300         to get the necessary .h files and whatnot.
32301
32302 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
32303             Bruno Haible  <bruno@clisp.org>
32304
32305         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
32306         /bin/sh understanding of '!' conditional negation.
32307
32308 2006-08-21  Jim Meyering  <jim@meyering.net>
32309
32310         * modules/openat (Depends-on): Really alphabetize.
32311
32312         * modules/acl (Depends-on): Add error and quote.
32313
32314         * check-module (find_included_lib_files): Add at-func.c to the
32315         ok-to-include-more-than-once white list.
32316
32317         * modules/openat (Depends-on): Add lstat.  Alphabetize.
32318
32319 2006-08-21  Bruno Haible  <bruno@clisp.org>
32320
32321         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32322         Emit a pkgdata_DATA variable only if some snippets add contents to it.
32323         Reported by Martin Lambers <marlam@marlam.de>.
32324
32325 2006-08-21  Bruno Haible  <bruno@clisp.org>
32326
32327         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
32328         specify an installation location, don't emit a noinst_LIBRARIES or
32329         noinst_LTLIBRARIES assignment.
32330
32331 2006-08-21  Bruno Haible  <bruno@clisp.org>
32332
32333         BeOS portability.
32334         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
32335         BeOS has mbrtowc() but no <wctype.h>.
32336
32337 2006-08-21  Bruno Haible  <bruno@clisp.org>
32338
32339         BeOS portability.
32340         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
32341         exist.
32342
32343 2006-08-21  Bruno Haible  <bruno@clisp.org>
32344
32345         BeOS portability.
32346         * lib/mbchar.h: Include <wctype.h> only if it exists.
32347
32348 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
32349
32350         Remove files that are no longer needed by their respective modules.
32351         * m4/obstack.m4: Remove.
32352         * m4/strerror_r.m4: Remove.
32353         * m4/uint32_t.m4: Remove.
32354         * m4/uintptr_t.m4: Remove.
32355         * m4/ullong_max.m4: Remove.
32356         * m4/xstrtoimax.m4: Remove.
32357         * m4/xstrtoumax.m4: Remove.
32358
32359         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
32360         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
32361         dependencies now capture this.
32362
32363         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
32364         Do not use AC_LIBSOURCES, since gnulib modules now do this.
32365         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
32366         * m4/human.m4 (gl_HUMAN): Likewise.
32367         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
32368         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
32369
32370         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
32371
32372         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
32373         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
32374         stdint.
32375         * m4/human.m4 (gl_HUMAN): Likewise.
32376         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
32377         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
32378         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
32379         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
32380         * m4/xstrtol (gl_XSTRTOL): Likewise.
32381
32382         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
32383         AC_TYPE_LONG_LONG_INT.
32384         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
32385         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
32386         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
32387         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
32388
32389         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
32390         on stdbool.
32391
32392         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
32393         (gl_PREREQ_XSTRTOUL): Remove.
32394
32395         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
32396
32397         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
32398         mode.
32399
32400 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
32401
32402         Add and change modules to make it easier for coreutils to use
32403         gnulib-tool.
32404         * modules/backupfile (Files): Remove m4/d-ino.m4.
32405         (Depends-on): Add d-ino.
32406         * modules/cycle-check (Depends-on): Add stdint.
32407         (lib_SOURCES): Add cycle-check.h.
32408         * modules/d-ino: New module.
32409         * modules/d-type: New module.
32410         * modules/error (Files): Remove m4/strerror_r.m4.
32411         * modules/filemode (Files): Add m4/st_dm_mode.m4.
32412         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
32413         m4/inttypes_h.m4, m4/uintmax_t.m4.
32414         (Depends-on): Add stdint.
32415         (lib_SOURCES): Add fsusage.h.
32416         * modules/getcwd (Files): Remove d-ino.m4.
32417         (Depends-on): Add d-ino.
32418         * modules/getndelim2 (Depends-on): Add stdint.
32419         * modules/glob (Files): Remove m4/d-type.m4.
32420         (Depends-on): Add d-type.
32421         * modules/host-os: New module.
32422         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
32423         m4/inttypes_h.m4, m4/uintmax_t.m4.
32424         * Depends-on: Add stdint.
32425         (lib_SOURCES): Add human.h.
32426         * modules/inttostr (Files): Remove m4/intmax_t.m4,
32427         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
32428         m4/uintmax_t.m4, m4/ulonglong.m4.
32429         (Depends-on): Add stdint.
32430         (EXTRA_DIST): Add inttostr.h.
32431         * modules/lchmod: New module.
32432         * modules/link-follow: New module.
32433         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
32434         (Depends-on): Add lchmod.
32435         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
32436         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
32437         (Depends-on): Add stdint.
32438         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
32439         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
32440         (Depends-on): Add stdint.
32441         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
32442         * modules/perl: New module.
32443         * modules/regex (Depends-on): Add stdint.
32444         * modules/rmdir-errno: New module.
32445         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
32446         m4/intmax_t.m4.
32447         (Depends-on): Add stdint.
32448         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
32449         m4/uintmax_t.m4.
32450         (Depends-on): Add stdint.
32451         * modules/unlink-busy: New module.
32452         * modules/utimecmp (Depends-on): Add stdint.
32453         * modules/uptime: New module.
32454         * modules/winsz-ioctl: New module.
32455         * modules/winsz-termios: New module.
32456         * modules/xnanosleep (Depends-on): Add nanosleep.
32457         * modules/ullong_max: Remove.
32458         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
32459         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
32460         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
32461         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
32462         (Depends-on): Add inttypes.
32463         (lib_SOURCES): Add xstrtol.h.
32464         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
32465         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
32466         * MODULES.html.sh: Move 'assert' into the assert section.
32467         Move 'dummy' into the linking section.
32468         Remove ullong_max.
32469         Add section for compatibility checks for POSIX:2001 functions,
32470         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
32471         winsz-ioctl, and winsz-termios into it.
32472         Add lchmod.
32473         Add top-level Misc section and put host-os, perl, and uptime
32474         into it.
32475
32476 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
32477
32478         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
32479         now assume the stdint module.  Do not include inttypes.h.
32480         * lib/fsusage.h: Likewise.
32481         * lib/getndelim2.c: Likewise.
32482         * lib/human.h: Likewise.
32483         * lib/inttostr.h: Likewise.
32484         * lib/obstack.c: Likewise.
32485         * lib/regex_internal.h: Likewise.
32486         * lib/tempname.c: Likewise.
32487         * lib/utimecmp.c: Likewise.
32488         * lib/xstrtol.h: Likewise.
32489
32490         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
32491
32492         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
32493         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
32494         * lib/xtime.h: Likewise.
32495
32496 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32497
32498         * modules/openat (Files): Add lib/fchmodat.c.
32499         Fixes problem reported by Jay Youngman.
32500
32501 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32502
32503         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
32504         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
32505
32506 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
32507             Bruno Haible  <bruno@clisp.org>
32508
32509         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
32510         and is a script that invokes bison. Tighten the code. Add comments.
32511
32512 2006-08-18  Jim Meyering  <jim@meyering.net>
32513
32514         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
32515         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
32516         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
32517         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
32518
32519 2006-08-18  Bruno Haible  <bruno@clisp.org>
32520
32521         * modules/bison-i18n: New file.
32522         * MODULES.html.sh (Internationalization functions): Add it.
32523
32524 2006-08-18  Bruno Haible  <bruno@clisp.org>
32525
32526         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
32527         sys/statvfs.h. When getmntinfo was found, check its declaration and
32528         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
32529
32530 2006-08-18  Bruno Haible  <bruno@clisp.org>
32531
32532         * m4/bison-i18n.m4: New file, from bison.
32533
32534 2006-08-18  Bruno Haible  <bruno@clisp.org>
32535
32536         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
32537         (ME_DUMMY): Treat "kernfs" as a dummy.
32538         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
32539
32540 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
32541
32542         Update from coreutils.
32543
32544         2006-08-15  Jim Meyering  <jim@meyering.net>
32545
32546         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
32547
32548         2006-01-17  Jim Meyering  <jim@meyering.net>
32549
32550         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
32551
32552         2006-01-11  Jim Meyering  <jim@meyering.net>
32553
32554         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
32555         Check for the lchmod function.
32556
32557 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
32558
32559         Update from coreutils.
32560
32561         * lib/__fpending.h: Add copyright notice.
32562         * lib/fprintftime.h: Likewise.
32563         * lib/savedir.c: Use (C) in copyright notice.
32564         * lib/savedir.h: Likewise.
32565
32566         2006-08-15  Jim Meyering  <jim@meyering.net>
32567
32568         * lib/at-func.c: New file, with the logic of all emulated at-functions.
32569         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
32570         in support of the EXPECTED_ERRNO macro.
32571         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
32572         definitions.  Instead, define the appropriate symbols and include
32573         "at-func.c".
32574         * lib/mkdirat.c (mkdirat): Likewise.
32575         * lib/fchmodat.c (fchmodat): Likewise.
32576         (ENOSYS): Remove definition.
32577         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
32578         it.  Don't include "unistd--.h" -- it wasn't ever used.
32579
32580         2006-01-17  Jim Meyering  <jim@meyering.net>
32581
32582         Rewrite fts.c not to change the current working directory,
32583         by using openat, fstatat, fdopendir, etc..
32584
32585         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
32586         (HAVE_OPENAT_SUPPORT): Define.
32587         [_LIBC] (fchdir): Don't undef or define; no longer used.
32588         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
32589         Now, this `function' always succeeds, and consumes its file descriptor
32590         parameter -- so callers must not close such FDs.  Update callers.
32591         (diropen_fd, opendirat, cwd_advance_fd): New functions.
32592         (diropen): Add parameter, SP.  Adjust all callers.
32593         Implement using diropen_fd, rather than open.
32594         (fts_open): Initialize new member, fts_cwd_fd.
32595         Remove fts_rft-setting code.
32596         (fts_close): Close fts_cwd_fd, if necessary.
32597         (__opendir2): Define in terms of opendir or opendirat,
32598         depending on whether the FST_NOCHDIR flag is set.
32599         (fts_build): Since fts_safe_changedir consumes its FD, and since
32600         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
32601         and close the dup'd file descriptor upon failure.
32602         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
32603         (fts_safe_changedir): Tweak semantics to reflect that this function
32604         now calls cwd_advance_fd and hence consumes its FD argument.
32605         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
32606         [struct FTS] (fts_rft): Remove now-unused member.
32607         [struct FTS] (fts_cycle.state): Improve comment.
32608
32609         * lib/openat.c (openat_needs_fchdir): New function.
32610         * lib/openat.h (openat_needs_fchdir): Declare it.
32611
32612 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
32613
32614         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
32615         Problem and fix reported by Pádraig Brady in
32616         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
32617
32618 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32619
32620         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
32621
32622 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32623
32624         * lib/memcoll.c (memcoll): Optimize for the common case where the
32625         arguments are bytewise equal.
32626
32627 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32628
32629         * doc/regexprops-generic.texi: Add a copyright notice.
32630
32631 2006-08-15  Bruno Haible  <bruno@clisp.org>
32632
32633         * modules/tmpdir (License): Change to LGPL.
32634
32635 2006-08-15  Bruno Haible  <bruno@clisp.org>
32636
32637         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
32638         module.
32639
32640 2006-08-14  Simon Josefsson  <jas@extundo.com>
32641
32642         * config/srclist.txt: Add gnupload.
32643
32644 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32645
32646         Change copyright notice from LGPL 2 to GPL 2, since that's the
32647         standard form used in the gnulib repository.
32648         * tests/test-lock.c: Likewise.
32649         * tests/test-stdint.c: Likewise.
32650         * tests/test-tls.c: Likewise.
32651
32652         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
32653         prelude-manager.  User shorter URLs for GNU projects, without '?'.
32654         Add copyright notice.
32655
32656         * check-module: Add copyright notice.  Output a copyright
32657         notice if "--version" is specified.
32658         * modules/COPYING: New file.
32659         * tests/test-getaddrinfo.c: Add copyright notice.
32660         * tests/test-verify.c: Likewise.
32661
32662 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32663
32664         Change copyright notice from LGPL 2 to GPL 2, since that's the
32665         standard form used in the gnulib repository.
32666         * lib/lock.c: LGPL -> GPL.
32667         * lib/lock.h: Likewise.
32668         * lib/strnlen1.c: Likewise.
32669         * lib/strnlen1.h: Likewise.
32670         * lib/tls.c: Likewise.
32671         * lib/tls.h: Likewise.
32672         * lib/tmpdir.c: Likewise.
32673
32674         * lib/TODO: Remove; this belongs only in coreutils.
32675
32676 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32677
32678         Add copyright notices to long-enough files that lack them, since
32679         otherwise the files aren't clearly free.  Use the same notice that
32680         getdate.texi already uses.
32681         * doc/alloca-opt.texi: Add copyright notice.
32682         * doc/alloca.texi: Likewise.
32683         * doc/ctime.texi: Likewise.
32684         * doc/functions.texi: Likewise.
32685         * doc/gcd.texi: Likewise.
32686         * doc/gnulib-tool.texi: Likewise.
32687         * doc/inet_ntoa.texi: Likewise.
32688         * doc/visibility.texi: Likewise.
32689
32690         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
32691         * doc/quote.texi: Add copyright notice.
32692
32693         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
32694         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
32695         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
32696         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
32697         is now obsolete, and give a pointer to the Sun list.
32698         Add copyright notice.
32699
32700 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32701
32702         * config/srclistvars.sh: Add copyright notice.
32703
32704 2006-08-14  Eric Blake  <ebb9@byu.net>
32705
32706         Import the following change from libc:
32707
32708         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
32709
32710         Upstream bug 2997.
32711         * lib/misc/error.c: Add space between program name and message if file
32712         name is missing.
32713
32714 2006-08-12  Karl Berry  <karl@gnu.org>
32715
32716         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
32717         remove, these originate in gnulib now.
32718
32719 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32720
32721         * doc/Makefile (standards.info standards.html standards.dvi):
32722         Also depend on make-stds.texi.
32723
32724 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32725
32726         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
32727         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
32728
32729         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
32730         in wchar_t.  Problem reported by Eric Blake.
32731
32732         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
32733         LEN is smaller than SIZE.  Suggested by Bruno Haible.
32734         Also, help the compiler to keep LEN in a register.
32735
32736 2006-08-11  Eric Blake  <ebb9@byu.net>
32737
32738         * users.txt: Sort.  Add tar.
32739
32740 2006-08-11  Bruno Haible  <bruno@clisp.org>
32741
32742         * users.txt: New file.
32743
32744 2006-08-11  Bruno Haible  <bruno@clisp.org>
32745
32746         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
32747         before <wchar.h>. Needed for OSF/1 and BSD/OS.
32748
32749 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32750
32751         * modules/snprintf (Depends-on): Remove minmax.
32752         (Maintainer): Add self and Bruno.
32753
32754 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32755
32756         * lib/.cppi-disable: Add snprintf.h, socket_.h.
32757         * lib/snprintf.c: Include <errno.h> and <limits.h>.
32758         (EOVERFLOW): Define if the system does not.
32759         Do not include "minmax.h"; it wasn't used.
32760         (snprintf): Don't assume size_t promotes to an unsigned type.
32761         Fix bug when generated string was too long for the buffer: the
32762         buffer's contents are supposed to be the initial prefix of the
32763         output.  Don't assume vasnprintf returns EOVERFLOW if the size
32764         exceeds INT_MAX; do the check ourselves.
32765
32766         Import the following changes from libc:
32767
32768         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
32769
32770         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
32771         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
32772         set wc to the byte which couldn't be converted.
32773         (re_string_reconstruct): Don't clear valid_raw_len before calling
32774         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
32775         tip_context using re_string_context_at.
32776
32777         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
32778
32779         * lib/posix/regex.h: g++ still cannot handled [restrict].
32780
32781         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
32782
32783         * lib/posix/regex.h: Remove special handling for VMS.
32784
32785 2006-08-10  Jim Meyering  <jim@meyering.net>
32786
32787         * modules/same-inode: New module.
32788         * modules/dev-ino: New module.
32789         * modules/cycle-check: Depend on these modules, rather than simply
32790         including their .h files.
32791         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
32792         required via m4/cycle-check.m4.
32793         * modules/same: Depend on new same-inode module, rather than
32794         including same-inode.h.
32795         * modules/chdir-safer: New file.
32796
32797         * modules/chown (Depends-on): Add stat-macros.
32798
32799 2006-08-10  Jim Meyering  <jim@meyering.net>
32800
32801         * m4/cycle-check.m4: New file.
32802         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
32803         * m4/dev-ino.m4, m4/same-inode.m4: New files.
32804
32805 2006-08-10  Eric Blake  <ebb9@byu.net>
32806
32807         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
32808         in from original proposal.
32809
32810 2006-08-10  Eric Blake  <ebb9@byu.net>
32811         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32812
32813         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
32814         namespace.
32815
32816 2006-08-10  Bruno Haible  <bruno@clisp.org>
32817
32818         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
32819         as well.
32820
32821 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32822
32823         Sync from coreutils.
32824
32825         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
32826
32827         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
32828         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
32829
32830 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32831
32832         * modules/restrict: Remove; no longer needed now that we assume
32833         Autoconf 2.59 or later.
32834         * MODULES.html.sh: Remove 'restrict'.
32835         * modules/argp (Depends-on): Remove 'restrict'.
32836         * modules/base64 (Depends-on): Likewise.
32837         * modules/gc (Depends-on): Likewise.
32838         * modules/getaddrinfo (Depends-on): Likewise.
32839         * modules/glob (Depends-on): Likewise.
32840         * modules/inet_ntop (Depends-on): Likewise.
32841         * modules/inet_pton (Depends-on): Likewise.
32842         * modules/memxor (Depends-on): Likewise.
32843         * modules/regex (Depends-on): Likewise.
32844         * modules/strtok_r (Depends-on): Likewise.
32845         * modules/time_r (Depends-on): Likewise.
32846
32847 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32848
32849         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
32850         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
32851         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32852         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
32853         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
32854         * m4/memxor.m4 (gl_MEMXOR): Likewise.
32855         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
32856         gl_C_RESTRICT replaced by AC_C_RESTRICT.
32857
32858         Merge from coreutils.
32859         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
32860         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
32861         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
32862         * m4/time_r.m4 (gl_TIME_R): Likewise.
32863
32864 2006-08-09  Karl Berry  <karl@gnu.org>
32865
32866         * config/srclist.txt: no more gettext-tools, per Bruno.
32867
32868 2006-08-08  Eric Blake  <ebb9@byu.net>
32869
32870         * modules/verror: New module.
32871         * MODULES.html.sh: Document it.
32872
32873 2006-08-08  Eric Blake  <ebb9@byu.net>
32874
32875         * lib/verror.h, lib/verror.c: New files.
32876
32877 2006-08-08  Eric Blake  <ebb9@byu.net>
32878
32879         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
32880         verror_at_line output complies with GNU Coding Standards even when
32881         file is NULL.
32882
32883 2006-08-07  Bruno Haible  <bruno@clisp.org>
32884
32885         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
32886         versions of AIX.
32887         Reported by Ralf Wildenhues.
32888
32889 2006-08-07  Bruno Haible  <bruno@clisp.org>
32890
32891         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
32892         in an AC_DEFUN. Needed so that the autoconf snippets can use
32893         AC_REQUIRE.
32894
32895 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32896
32897         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32898         Initialize pkgdata_DATA.
32899         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
32900         overriding it.
32901
32902 2006-08-06  Eric Blake  <ebb9@byu.net>
32903
32904         * lib/error.h: Fold in some upstream changes from glibc.
32905         * lib/error.c: Likewise.
32906
32907 2006-08-04  Bruno Haible  <bruno@clisp.org>
32908
32909         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32910         Make the mostlyclean-local rule depend on mostlyclean-generic.
32911         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
32912
32913 2006-07-31  Bruno Haible  <bruno@clisp.org>
32914
32915         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
32916         <stdlib.h>, <string.h>.
32917
32918 2006-07-30  Bruno Haible  <bruno@clisp.org>
32919
32920         * modules/readlink (License): Change to LGPL.
32921
32922 2006-07-30  Bruno Haible  <bruno@clisp.org>
32923
32924         * modules/javaversion (Makefile.am): Distribute javaversion.java and
32925         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
32926         set PKGDATADIR to point to it.
32927
32928 2006-07-30  Bruno Haible  <bruno@clisp.org>
32929
32930         * modules/csharpexec (configure.ac): Comment out macro invocation.
32931         * modules/javaexec (configure.ac): Likewise.
32932         * modules/javacomp-script (configure.ac): Likewise.
32933
32934         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
32935
32936 2006-07-30  Bruno Haible  <bruno@clisp.org>
32937
32938         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
32939         linked-list.
32940
32941 2006-07-30  Bruno Haible  <bruno@clisp.org>
32942
32943         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
32944
32945 2006-07-30  Bruno Haible  <bruno@clisp.org>
32946
32947         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32948         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
32949         get removed.
32950
32951 2006-07-29  Bruno Haible  <bruno@clisp.org>
32952
32953         Make it possible for gnulib-tool to work with locally modified or
32954         augmented gnulib repositories.
32955         * gnulib-tool (func_usage): Document --local-dir option.
32956         (local_gnulib_dir): New variable.
32957         Handle --local-dir option.
32958         (func_lookup_file): New function.
32959         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
32960         (func_get_description, func_get_filelist, func_get_description,
32961         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
32962         func_get_automake_snippet, func_get_include_directive,
32963         func_get_license, func_get_maintainer): Use func_lookup_file.
32964         (func_import, func_create_testdir): Use func_lookup_file.
32965
32966 2006-07-29  Bruno Haible  <bruno@clisp.org>
32967
32968         * modules/setenv (Depends-on): Add unistd.
32969
32970 2006-07-29  Bruno Haible  <bruno@clisp.org>
32971
32972         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
32973
32974 2006-07-29  Bruno Haible  <bruno@clisp.org>
32975
32976         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
32977
32978 2006-07-29  Bruno Haible  <bruno@clisp.org>
32979
32980         * gnulib-tool (import, update): If there is no Makefile.am, look at
32981         aclocal.m4, instead of bailing out.
32982
32983 2006-07-29  Bruno Haible  <bruno@clisp.org>
32984
32985         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
32986         Categorize the options by when they are useful.
32987
32988 2006-07-29  Bruno Haible  <bruno@clisp.org>
32989
32990         * gnulib-tool (func_usage): Document option --no-libtool.
32991         Handle option --no-libtool.
32992         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
32993         for changed semantics of $libtool variable.
32994         (func_import): Likewise. If libtool is not used, show this through
32995         an option --no-libtool.
32996         (func_create_testdir): Update.
32997
32998 2006-07-29  Bruno Haible  <bruno@clisp.org>
32999
33000         * gnulib-tool (func_import): Extend error message about missing
33001         --doc-base.
33002
33003 2006-07-29  Bruno Haible  <bruno@clisp.org>
33004
33005         * gnulib-tool (func_import): Don't create the $docbase directory if
33006         there is no file to store there.
33007
33008 2006-07-29  Bruno Haible  <bruno@clisp.org>
33009
33010         * gnulib-tool (autoconf_minversion): If a --dir option is given and
33011         relevant, look for configure.ac there, not in the current directory.
33012         Also use a simple search for AC_PREREQ, not "autoconf --trace".
33013
33014 2006-07-29  Bruno Haible  <bruno@clisp.org>
33015
33016         * gnulib-tool (SORT): New variable.
33017         (func_usage): Undocument --assume-autoconf option.
33018         Remove --assume-autoconf option handling.
33019         (autoconf_minversion): Determine from the contents of configure.ac.
33020         (func_import): Remove autoconf_minversion handling.
33021         Suggested by Eric Blake.
33022
33023 2006-07-29  Bruno Haible  <bruno@clisp.org>
33024
33025         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
33026
33027 2006-07-29  Bruno Haible  <bruno@clisp.org>
33028
33029         * config/srclist.txt (*setenv.[ch]): Remove rules.
33030
33031 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33032
33033         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
33034
33035 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33036
33037         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
33038         arpa/inet.h.
33039
33040 2006-07-28  Simon Josefsson  <jas@extundo.com>
33041
33042         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
33043         * modules/inet_pton (Depends-on): Likewise.
33044
33045 2006-07-28  Simon Josefsson  <jas@extundo.com>
33046
33047         * m4/netinet_in_h.m4: New file.
33048
33049 2006-07-28  Simon Josefsson  <jas@extundo.com>
33050
33051         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
33052         #include's.
33053
33054 2006-07-28  Simon Josefsson  <jas@extundo.com>
33055
33056         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
33057         #include's.
33058
33059 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
33060
33061         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
33062         setgid on directories only if they set these bits.
33063         * lib/modechange.h: Remove obsolete comment about masks.
33064
33065 2006-07-28  Eric Blake  <ebb9@byu.net>
33066
33067         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
33068         macro expansion.
33069
33070 2006-07-28  Bruno Haible  <bruno@clisp.org>
33071
33072         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
33073
33074 2006-07-28  Bruno Haible  <bruno@clisp.org>
33075
33076         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
33077
33078 2006-07-28  Bruno Haible  <bruno@clisp.org>
33079
33080         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
33081         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
33082         Define fallbacks.
33083         Avoids link error on FreeBSD 4.x.
33084         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33085
33086         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
33087         encoding.
33088         * lib/mbswidth.c (iswcntrl): Likewise.
33089
33090 2006-07-27  Bruno Haible  <bruno@clisp.org>
33091
33092         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
33093         test.
33094
33095 2006-07-27  Bruno Haible  <bruno@clisp.org>
33096
33097         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
33098         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
33099         defined.
33100
33101 2006-07-26  Eric Blake  <ebb9@byu.net>
33102
33103         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
33104
33105 2006-07-26  Eric Blake  <ebb9@byu.net>
33106
33107         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
33108         like mingw that lack mkstemp.
33109         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
33110         avoid compilation warning on mingw.
33111
33112 2006-07-26  Bruno Haible  <bruno@clisp.org>
33113
33114         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
33115         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
33116         INT_FAST*_MIN, INTPTR_MIN.
33117
33118 2006-07-25  Bruno Haible  <bruno@clisp.org>
33119
33120         * modules/version-etc (Depends-on): Add stdarg.
33121
33122 2006-07-25  Bruno Haible  <bruno@clisp.org>
33123
33124         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
33125         complex commands.
33126
33127 2006-07-25  Bruno Haible  <bruno@clisp.org>
33128
33129         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
33130         defined in <stdarg.h> or config.h.
33131
33132 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
33133
33134         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
33135         (gl_STDIO_SAFER): Remove.
33136
33137 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
33138
33139         * MODULES.html.sh (File stream based Input/Output):
33140         Add fopen-safer, tmpfile-safer; remove stdio-safer.
33141         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
33142         * modules/fopen-safer, modules/tmpfile-safer: New files.
33143         * modules/stdio-safer: Remove.
33144
33145 2006-07-24  Bruno Haible  <bruno@clisp.org>
33146
33147         * modules/tmpdir: New file.
33148         * MODULES.html.sh (File system functions): Add it.
33149
33150 2006-07-24  Bruno Haible  <bruno@clisp.org>
33151
33152         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
33153         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
33154
33155 2006-07-24  Bruno Haible  <bruno@clisp.org>
33156
33157         * modules/clean-temp: New file.
33158
33159 2006-07-24  Bruno Haible  <bruno@clisp.org>
33160
33161         * m4/tmpdir.m4: New file, from GNU gettext.
33162
33163 2006-07-24  Bruno Haible  <bruno@clisp.org>
33164
33165         * lib/tmpdir.h: New file, from GNU gettext.
33166         * lib/tmpdir.c: New file, from GNU gettext.
33167
33168 2006-07-24  Bruno Haible  <bruno@clisp.org>
33169
33170         * lib/clean-temp.h: New file, from GNU gettext.
33171         * lib/clean-temp.c: New file, from GNU gettext.
33172
33173 2006-07-23  Eric Blake  <ebb9@byu.net>
33174
33175         * modules/stdio-safer (Files): Add tmpfile-safer.c.
33176         (Depends-on): Add binary-io.
33177
33178 2006-07-23  Eric Blake  <ebb9@byu.net>
33179
33180         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
33181
33182 2006-07-23  Eric Blake  <ebb9@byu.net>
33183
33184         * lib/tmpfile-safer.c: New file.
33185         * lib/stdio-safer.h (fopen_safer): Add prototype.
33186         * lib/stdio--.h (tmpfile): Make safer.
33187
33188 2006-07-23  Bruno Haible  <bruno@clisp.org>
33189
33190         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
33191         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
33192         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
33193         gl_linked_remove_at): Use it.
33194
33195 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33196         and Simon Josefsson <jas@extundo.com>
33197
33198         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
33199
33200         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
33201
33202 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33203
33204         * modules/close-stream: New file.
33205         * modules/closeout (Description): Make it clear that it exits
33206         with a diagnostic on error.
33207         (Depends-on): Add close-stream.  Remove fpending, stdbool.
33208         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
33209
33210 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33211
33212         * m4/close-stream.m4: New file.
33213
33214 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33215
33216         * lib/close-stream.c, lib/close-stream.h: New files.
33217
33218 2006-07-22  Bruno Haible  <bruno@clisp.org>
33219
33220         Merge from GNU gettext 0.15.
33221
33222         2006-05-01  Bruno Haible  <bruno@clisp.org>
33223
33224                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
33225
33226         2006-07-22  Bruno Haible  <bruno@clisp.org>
33227
33228                 * modules/javaversion: New file.
33229                 * MODULES.html.sh (Java): Add javaversion.
33230
33231         2006-03-12  Bruno Haible  <bruno@clisp.org>
33232
33233                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
33234
33235         2005-12-04  Bruno Haible  <bruno@clisp.org>
33236
33237                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
33238                 (untested).
33239
33240         2006-06-21  Bruno Haible  <bruno@clisp.org>
33241
33242                 Avoid warnings from recent versions of mcs.
33243                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
33244                 -o, -L, -r any more. Use options documented since mcs-1.0
33245                 instead. Similarly for -g.
33246
33247         2005-12-04  Bruno Haible  <bruno@clisp.org>
33248
33249                 * build-aux/csharpcomp.sh.in: Suffix for resources is
33250                 .resources, not .resource.
33251
33252         2005-07-09  Bruno Haible  <bruno@clisp.org>
33253
33254                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
33255                 add a .dll suffix.
33256                 Reported by Mark Junker <mjscod@gmx.de>.
33257
33258         2006-07-22  Bruno Haible  <bruno@clisp.org>
33259
33260                 * modules/gettext: Upgrade to gettext-0.15.
33261                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
33262                 m4/visibility.m4.
33263                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
33264
33265 2006-07-22  Bruno Haible  <bruno@clisp.org>
33266
33267         Merge from GNU gettext 0.15.
33268
33269         2006-03-25  Bruno Haible  <bruno@clisp.org>
33270
33271                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
33272
33273         2006-07-21  Bruno Haible  <bruno@clisp.org>
33274
33275                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
33276                 "1.1".
33277
33278         2006-05-09  Bruno Haible  <bruno@clisp.org>
33279
33280                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
33281                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
33282                 for the conftestver execution.
33283
33284         2006-05-01  Bruno Haible  <bruno@clisp.org>
33285
33286                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
33287                 optional target-version argument. Verify that the compiler
33288                 groks source of the specified source-version, or add -source
33289                 option as necessary. Verify that the compiler produces
33290                 bytecode in the specified target-version, or add -target and
33291                 -source options as necessary. Make the result of the test
33292                 available as variable CONF_JAVAC. Also log error output in
33293                 config.log.
33294
33295         2006-03-11  Bruno Haible  <bruno@clisp.org>
33296
33297                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
33298
33299         2006-05-09  Bruno Haible  <bruno@clisp.org>
33300
33301                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
33302                 CLASSPATH_SEPARATOR to a semicolon.
33303
33304         2006-03-12  Bruno Haible  <bruno@clisp.org>
33305
33306                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
33307                 available as variable CONF_JAVA, for subsequent autoconf
33308                 tests. Also log error output in config.log.
33309
33310         2006-07-19  Bruno Haible  <bruno@clisp.org>
33311
33312                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
33313                 that getline works on glibc2 systems. Needed to avoid trouble
33314                 in relocatable.c.
33315                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
33316
33317         2005-12-04  Bruno Haible  <bruno@clisp.org>
33318
33319                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
33320                 launcher (untested).
33321
33322         2005-12-04  Bruno Haible  <bruno@clisp.org>
33323
33324                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
33325
33326         2006-07-22  Bruno Haible  <bruno@clisp.org>
33327
33328                 * gettext.m4: Update from GNU gettext-0.15.
33329                 * nls.m4: Likewise.
33330                 * po.m4: Likewise.
33331                 * inttypes-pri.m4: Likewise.
33332                 * inttypes-h.m4: Renamed from inttypes.m4.
33333                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
33334
33335 2006-07-22  Bruno Haible  <bruno@clisp.org>
33336
33337         Merge from GNU gettext 0.15.
33338
33339         2005-07-05  Bruno Haible  <bruno@clisp.org>
33340
33341                 * printf-args.c (printf_fetchargs): Work around broken
33342                 definition of wint_t on mingw.
33343
33344         2005-02-12  Bruno Haible  <bruno@clisp.org>
33345
33346                 * xallocsa.h: Add extern "C" for C++.
33347
33348         2006-05-17  Bruno Haible  <bruno@clisp.org>
33349
33350                 Cygwin portability.
33351                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
33352
33353         2006-04-30  Bruno Haible  <bruno@clisp.org>
33354
33355                 * progreloc.c: Include <mach-o/dyld.h> if available.
33356                 (find_executable): Use _NSGetExecutablePath when possible.
33357
33358         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
33359
33360                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
33361                 function.
33362
33363         2005-12-29  Bruno Haible  <bruno@clisp.org>
33364
33365                 * progreloc.c (set_program_name_and_installdir): Fix
33366                 compilation error.
33367
33368         2005-12-04  Bruno Haible  <bruno@clisp.org>
33369
33370                 Cygwin portability.
33371                 * progreloc.c: Include <windows.h> also on Cygwin.
33372                 (find_executable): Add support for Cygwin.
33373                 (set_program_name_and_installdir): Handle also platforms with
33374                 nonempty EXEEXT.
33375
33376         2006-07-11  Bruno Haible  <bruno@clisp.org>
33377
33378                 * javacomp.c: Fix a comment.
33379                 Reported by Jim Meyering.
33380
33381         2006-04-30  Bruno Haible  <bruno@clisp.org>
33382
33383                 * javacomp.h (compile_java_class): Add source_version,
33384                 target_version arguments.
33385                 * javacomp.c: Rewritten to choose only a compiler that
33386                 respects the specified source_version and target_version.
33387
33388         2006-06-27  Bruno Haible  <bruno@clisp.org>
33389
33390                 Assume correct S_ISDIR macro.
33391                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
33392
33393         2006-07-22  Bruno Haible  <bruno@clisp.org>
33394
33395                 * javaversion.h: New file, from GNU gettext.
33396                 * javaversion.c: New file, from GNU gettext.
33397                 * javaversion.java: New file, from GNU gettext.
33398                 * javaversion.class: New file, from GNU gettext.
33399
33400         2006-05-17  Bruno Haible  <bruno@clisp.org>
33401
33402                 Cygwin portability.
33403                 * javaexec.c (execute_java_class): Test for jview program
33404                 also on Cygwin.
33405
33406         2006-04-09  Bruno Haible  <bruno@clisp.org>
33407
33408                 * fatal-signal.c: Don't include string.h.
33409                 (at_fatal_signal): Use a copying loop instead of memcpy.
33410
33411         2005-12-04  Bruno Haible  <bruno@clisp.org>
33412
33413                 * csharpexec.c: Add support for 'clix' launcher (untested).
33414                 (execute_csharp_using_sscli): New function.
33415                 (execute_csharp_program): Call it.
33416
33417         2006-06-21  Bruno Haible  <bruno@clisp.org>
33418
33419                 Avoid warnings from recent versions of mcs.
33420                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
33421                 -o, -L, -r any more. Use options documented since mcs-1.0
33422                 instead. Similarly for -g.
33423
33424         2005-07-09  Bruno Haible  <bruno@clisp.org>
33425
33426                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
33427                 add a .dll suffix.
33428                 Reported by Mark Junker <mjscod@gmx.de>.
33429
33430         2006-06-17  Bruno Haible  <bruno@clisp.org>
33431
33432                 * config.charset: Update for NetBSD 3.0.
33433
33434         2006-05-17  Bruno Haible  <bruno@clisp.org>
33435
33436                 Cygwin portability.
33437                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
33438
33439         2006-05-16  Bruno Haible  <bruno@clisp.org>
33440
33441                 * localcharset.c [CYGWIN]: Include <windows.h>.
33442                 (get_charset_aliases): For Cygwin, return the same CPxxx
33443                 aliases list as under WIN32.
33444                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
33445                 the environment variables. Fall back to GetACP().
33446
33447         2006-04-05  Bruno Haible  <bruno@clisp.org>
33448
33449                 * config.charset: Update Juan Manuel Guerrero's address.
33450
33451         2005-02-12  Bruno Haible  <bruno@clisp.org>
33452
33453                 * allocsa.h: Add extern "C" for C++.
33454
33455         2005-02-10  Bruno Haible  <bruno@clisp.org>
33456
33457                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
33458                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
33459
33460         2006-07-22  Bruno Haible  <bruno@clisp.org>
33461
33462                 * gettext.h: Update to GNU gettext-0.15.
33463
33464 2006-07-22  Bruno Haible  <bruno@clisp.org>
33465
33466         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
33467         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
33468         lib-prefix.m4, longdouble.m4, ssize_t.m4.
33469
33470 2006-07-21  Eric Blake  <ebb9@byu.net>
33471
33472         * modules/stdlib-safer: New file.
33473         * MODULES.html.sh (File stream based Input/Output): Add
33474         stdlib-safer.
33475
33476 2006-07-21  Eric Blake  <ebb9@byu.net>
33477
33478         * lib/stdlib-safer.h: New file from coreutils, required by
33479         stdlib--.h.
33480
33481 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
33482
33483         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
33484
33485 2006-07-20  Bruno Haible  <bruno@clisp.org>
33486
33487         * gnulib-tool: Recognize new option --assume-autoconf.
33488         (autoconf_minversion): New variable.
33489         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
33490
33491 2006-07-20  Bruno Haible  <bruno@clisp.org>
33492
33493         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
33494
33495 2006-07-19  Derek R. Price  <derek@ximbiot.com>
33496
33497         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
33498         Reindent and repaginate.
33499
33500 2006-07-19  Derek Price  <derek@ximbiot.com>
33501
33502         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
33503         Correct grammar.
33504
33505 2006-07-17  Bruno Haible  <bruno@clisp.org>
33506
33507         * modules/list: New file.
33508         * modules/array-list: New file.
33509         * modules/carray-list, modules/carray-list-tests: New files.
33510         * modules/linked-list, modules/linked-list-tests: New files.
33511         * modules/avltree-list, modules/avltree-list-tests: New files.
33512         * modules/rbtree-list, modules/rbtree-list-tests: New files.
33513         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
33514         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
33515         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
33516         * modules/oset: New file.
33517         * modules/array-oset: New file.
33518         * modules/avltree-oset, modules/avltree-oset-tests: New files.
33519         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
33520         * tests/test-carray_list.c: New file.
33521         * tests/test-linked_list.c: New file.
33522         * tests/test-avltree_list.c: New file.
33523         * tests/test-rbtree_list.c: New file.
33524         * tests/test-linkedhash_list.c: New file.
33525         * tests/test-avltreehash_list.c: New file.
33526         * tests/test-rbtreehash_list.c: New file.
33527         * tests/test-avltree_oset.c: New file.
33528         * tests/test-rbtree_oset.c: New file.
33529         * MODULES.html.sh (Container data structures): New section.
33530
33531 2006-07-17  Bruno Haible  <bruno@clisp.org>
33532
33533         * m4/gl_list.m4: New file.
33534
33535 2006-07-17  Bruno Haible  <bruno@clisp.org>
33536
33537         * lib/gl_list.h: New file.
33538         * lib/gl_list.c: New file.
33539         * lib/gl_array_list.h: New file.
33540         * lib/gl_array_list.c: New file.
33541         * lib/gl_carray_list.h: New file.
33542         * lib/gl_carray_list.c: New file.
33543         * lib/gl_linked_list.h: New file.
33544         * lib/gl_linked_list.c: New file.
33545         * lib/gl_anylinked_list1.h: New file.
33546         * lib/gl_anylinked_list2.h: New file.
33547         * lib/gl_avltree_list.h: New file.
33548         * lib/gl_avltree_list.c: New file.
33549         * lib/gl_anyavltree_list1.h: New file.
33550         * lib/gl_anyavltree_list2.h: New file.
33551         * lib/gl_rbtree_list.h: New file.
33552         * lib/gl_rbtree_list.c: New file.
33553         * lib/gl_anyrbtree_list1.h: New file.
33554         * lib/gl_anyrbtree_list2.h: New file.
33555         * lib/gl_anytree_list1.h: New file.
33556         * lib/gl_anytree_list2.h: New file.
33557         * lib/gl_linkedhash_list.h: New file.
33558         * lib/gl_linkedhash_list.c: New file.
33559         * lib/gl_anyhash_list1.h: New file.
33560         * lib/gl_anyhash_list2.h: New file.
33561         * lib/gl_avltreehash_list.h: New file.
33562         * lib/gl_avltreehash_list.c: New file.
33563         * lib/gl_rbtreehash_list.h: New file.
33564         * lib/gl_rbtreehash_list.c: New file.
33565         * lib/gl_anytreehash_list1.h: New file.
33566         * lib/gl_anytreehash_list2.h: New file.
33567
33568         * lib/gl_oset.h: New file.
33569         * lib/gl_oset.c: New file.
33570         * lib/gl_array_oset.h: New file.
33571         * lib/gl_array_oset.c: New file.
33572         * lib/gl_avltree_oset.h: New file.
33573         * lib/gl_avltree_oset.c: New file.
33574         * lib/gl_rbtree_oset.h: New file.
33575         * lib/gl_rbtree_oset.c: New file.
33576         * lib/gl_anytree_oset.h: New file.
33577
33578 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
33579
33580         * m4/mkancesdirs.m4: New file.
33581         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
33582         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
33583         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
33584         it.
33585
33586 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
33587
33588         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
33589         * lib/mkancesdirs.h: New files.
33590         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
33591         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
33592         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
33593         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
33594         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
33595         callers changed.  Revamp internals significantly, by not
33596         attempting to create directories that are temporarily more
33597         permissive than the final results.  Do not attempt to use
33598         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
33599         This removes some race conditions, fixes some bugs, and simplifies
33600         things.  Use new dirchownmod function to do owner and mode changes.
33601         * lib/mkdir-p.h: Likewise.
33602         * lib/modechange.c (octal_to_mode): New function.
33603         (struct mode_change): New member mentioned.
33604         (make_node_op_equals): New arg mentioned.  All callers changed.
33605         (mode_compile): Keep track of which mode bits the user has explicitly
33606         mentioned.
33607         (mode_adjust): New arg DIR, so that we implement the X op correctly.
33608         New arg PMODE_BITS, to keep track of which mode bits the user
33609         mentioned; it treats S_ISUID and S_ISGID speciall.
33610         All callers changed.
33611         * lib/modechange.h: Likewise.
33612
33613 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
33614
33615         * MODULES.html.sh: Add mkancestors.
33616         * modules/mkancesdirs: New module.
33617         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
33618         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
33619         The chdir-safer and afs files are now orphans; I'll remove them
33620         unless someone speaks up.
33621         Add lib/dirchownmod.c, lib/dirchownmod.h.
33622         (Depends-on): Remove alloca, chown, save-cwd, dirname.
33623         Add lchown, mkancesdirs.
33624         (Maintainer): Add self.
33625
33626 2006-07-15  Karl Berry  <karl@gnu.org>
33627
33628         * gnulib-tool: help message wording/arrangement.
33629
33630 2006-07-14  Simon Josefsson  <jas@extundo.com>
33631
33632         * doc/gnulib.texi (Libtool and Windows): New section.
33633
33634 2006-07-12  Simon Josefsson  <jas@extundo.com>
33635
33636         * modules/gendocs (License): Fix license, approved by Karl.
33637
33638 2006-07-12  Eric Blake  <ebb9@byu.net>
33639
33640         * MODULES.html.sh: Add gendocs.
33641
33642 2006-07-11  Eric Blake  <ebb9@byu.net>
33643
33644         * modules/fdl: New module, to install doc/fdl.texi.
33645         * MODULES.html.sh: Add new section for documentation modules.
33646         * gnulib-tool: Avoid space-tab.
33647         (--doc-base): New option, to manage files from doc.
33648
33649 2006-07-11  Eric Blake  <ebb9@byu.net>
33650
33651         * m4/absolute-header.m4: Fix comments to match recent change.
33652
33653 2006-07-11  Eric Blake  <ebb9@byu.net>
33654
33655         * gnulib-tool: List --doc-base before --tests-base.
33656
33657 2006-07-11  Derek R. Price  <derek@ximbiot.com>
33658
33659         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
33660
33661 2006-07-11  Bruno Haible  <bruno@clisp.org>
33662
33663         * README: Mention where to put documentation.
33664
33665 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33666
33667         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
33668
33669 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
33670
33671         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
33672         to stdint.m4.
33673
33674 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
33675
33676         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
33677         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
33678         "no/such/file/stdint.h" when there is no such file, so that
33679         the resulting C code can be parsed by dodgy compilers.
33680         Problems reported by Bob Proulx.
33681
33682 2006-07-10  Derek R. Price  <derek@ximbiot.com>
33683
33684         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
33685         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
33686         macros into the GNU _D_EXACT_NAMLEN.
33687         * lib/savedir.c:  Likewise.
33688         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
33689
33690 2006-07-10  Derek R. Price  <derek@ximbiot.com>
33691         and Paul Eggert  <eggert@cs.ucla.edu>
33692
33693         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
33694         * m4/savedir.m4:
33695         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
33696         macros into the GNU _D_EXACT_NAMLEN.
33697
33698 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33699
33700         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
33701         around the absolute name, to work around a problem with the HP-UX
33702         11.23 native C compiler, reported by Bob Proulx.
33703
33704 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33705
33706         * doc/maintain.texi, make-stds.texi: Sync from
33707         <http://savannah.gnu.org/projects/gnustandards>.
33708
33709 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33710
33711         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
33712
33713 2006-07-09  Jim Meyering  <jim@meyering.net>
33714
33715         * m4/glob.m4: Remove a doubled word in a comment.
33716
33717 2006-07-09  Jim Meyering  <jim@meyering.net>
33718
33719         * lib/argp-pv.c: Remove a doubled word in a comment.
33720         * lib/check-version.c (check_version): Likewise.
33721         * lib/javacomp.c (compile_java_class): Likewise.
33722
33723 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
33724
33725         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
33726         for the benefit of people using Autoconf 2.60.  If you want to
33727         support older Autoconf versions you can copy m4/onceonly_2_57.m4
33728         (or m4/onceonly.m4, if pre-2.57) manually.
33729
33730 2006-07-08  Jim Meyering  <jim@meyering.net>
33731
33732         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
33733         comment.
33734         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
33735         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
33736         comment.
33737
33738 2006-07-08  Jim Meyering  <jim@meyering.net>
33739
33740         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
33741
33742 2006-07-07  Simon Josefsson  <jas@extundo.com>
33743
33744         * tests/test-crc.c: Change expected crc value, the test vector
33745         were probably computed using the old broken crc.c?
33746
33747 2006-07-06  Simon Josefsson  <jas@extundo.com>
33748
33749         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
33750         now the canonical place for the M4 file).
33751
33752         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
33753         from the sys_socket dependency now.
33754
33755         * modules/inet_pton (Files): Ditto.
33756
33757         * modules/inet_ntop (Files): Ditto.
33758
33759 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
33760
33761         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
33762         not gl_PREREQ_GETUSERSHELL.
33763
33764 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33765
33766         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
33767         with only one argument, for Autoconf 2.60.
33768         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
33769         expand to nothing, so add a shell command to avoid syntax error.
33770         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
33771
33772 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33773
33774         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
33775
33776 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33777
33778         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
33779         no longer needed.  Check for isblank decl.
33780         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
33781         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
33782         of existence.
33783
33784 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33785
33786         * lib/getloadavg.c: Use __VMS, not VMS.
33787         * lib/getopt.c: Likewise.
33788         * lib/getpagesize.h: Likewise.
33789         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
33790         and probably does not work.
33791
33792 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33793
33794         * lib/.cppi-disable: Add wcwidth.
33795         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
33796         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
33797         (ISGRAPH): Remove.  All uses changed to isgraph.
33798         (FOLD) [!defined _LIBC]: Remove special case.
33799         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
33800         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
33801         HAVE_ISBLANK.
33802         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
33803         case.
33804
33805 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
33806
33807         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
33808         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
33809         brackets.  Other minor changes to suppress some compiler
33810         warnings.
33811
33812 2006-07-06  Derek R. Price  <derek@ximbiot.com>
33813         and Paul Eggert  <eggert@cs.ucla.edu>
33814
33815         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
33816         of invoking obsolescent AC_HEADER_DIRENT macro.
33817         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
33818         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
33819         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
33820         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
33821         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
33822         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
33823         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
33824         * m4/readdir.m4: Remove; no longer needed.
33825
33826 2006-07-06  Derek R. Price  <derek@ximbiot.com>
33827         and Paul Eggert  <eggert@cs.ucla.edu>
33828
33829         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
33830         Don't worry about this obsolete case any more.
33831         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
33832         directories.
33833         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
33834         worry about this obsolete case any more.
33835         * lib/fts.c: Likewise.
33836         * lib/getcwd.c: Likewise.
33837         * lib/glob.h: Likewise.
33838         * lib/savedir.c: Likewise.
33839
33840 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
33841
33842         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
33843         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
33844         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
33845         needed.
33846         All uses removed.
33847         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
33848         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
33849         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
33850         needed.
33851         * m4/getdate.m4 (gl_GETDATE): Likewise.
33852         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
33853         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
33854         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
33855         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
33856         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
33857         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
33858         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
33859         needed.
33860
33861 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
33862
33863         * lib/memcasecmp.c: Include <limits.h>.
33864         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
33865         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
33866         Don't assume isdigit succeeds only on '0' through '9'.
33867
33868 2006-07-05  Eric Blake  <ebb9@byu.net>
33869
33870         * modules/getaddrinfo (Depends-on): Add snprintf.
33871
33872 2006-07-05  Eric Blake  <ebb9@byu.net>
33873
33874         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
33875         to avoid 'header present but could not be compiled' on cygwin.
33876
33877 2006-07-05  Eric Blake  <ebb9@byu.net>
33878
33879         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
33880         missing from netdb.h.
33881         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
33882
33883 2006-07-05  Derek R. Price  <derek@ximbiot.com>
33884
33885         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
33886         no longer needed.
33887         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
33888         * m4/getdate.m4 (gl_GETDATE): Likewise.
33889         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
33890         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
33891         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
33892         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
33893         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
33894
33895 2006-07-05  Derek R. Price  <derek@ximbiot.com>
33896
33897         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
33898         All uses of is_space replaced by isspace.
33899         * lib/exit.h: Don't talk about STDC_HEADERS.
33900         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
33901         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
33902         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
33903         replaced by isprint etc.
33904         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
33905         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
33906         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
33907         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
33908         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
33909         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
33910
33911 2006-07-05  Bruno Haible  <bruno@clisp.org>
33912
33913         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
33914         the function exists, before testing against AIX.
33915         Reported by Martin Lambers <marlam@marlam.de>.
33916
33917 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
33918
33919         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
33920         From Mark D. Baushke.
33921
33922 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
33923
33924         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
33925         to the absolute name, not just one, to bypass Sun C 5.8's
33926         "warning: #include of /usr/include/... may be non-portable".
33927
33928 2006-07-04  Eric Blake  <ebb9@byu.net>
33929
33930         * modules/dirname-tests: New test module.
33931         * tests/test-dirname.c: New file, replacing dirname.c
33932         TEST_DIRNAME section that was recently deleted.
33933
33934 2006-07-04  Bruno Haible  <bruno@clisp.org>
33935
33936         Assume ANSI C header files and <ctype.h> functions.
33937         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
33938         (mbsnwidth): Use isprint, iscntrl instead.
33939
33940 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
33941
33942         Merge from coreutils.
33943         * MODULES.html.sh: Add xstrtold.
33944         * modules/xstrtold: New file.
33945         * modules/cycle-check (Files): Add lib/same-inode.h.
33946         * modules/dirname (Files): Add m4/double-slash-root.m4.
33947         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
33948         * modules/mkdir-p (Files): Add lib/same-inode.h.
33949         * modules/same (Files): Add lib/same-inode.h.
33950
33951 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
33952
33953         * m4/absolute-header.m4: Renamed from full-header-path.m4.
33954         This is to keep the terminology clean; POSIX talks about
33955         "absolute pathnames", not "full pathnames", but the GNU
33956         Coding Standards say to use "path" for something else;
33957         so use "absolute" to keep both sides happy.
33958         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
33959         Set gl_absolute_header, not gl_full_header_path.
33960         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
33961         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
33962         All uses changed.
33963
33964         Merge from coreutils.
33965
33966         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
33967
33968         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
33969         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
33970         want to require the building of c-strtod.o.
33971         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
33972         needs -lm directly.
33973         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
33974
33975         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
33976
33977         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
33978         --as-needed option if available.  Problem reported by Albert Chin in
33979         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
33980         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
33981         cc merely issues a bunch of annoying warnings for --as-needed
33982         (this problem was reported by Bob Proulx).  Also, try linking with
33983         -lm to detect a bug in binutils 2.16 (this problem was reported
33984         by Ralf Wildenhues).
33985
33986         2006-06-18  Jim Meyering  <jim@meyering.net>
33987
33988         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
33989         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
33990         macro.
33991         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
33992         also check for glibc-2.4's abort-inducing bug.
33993
33994         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
33995         Low-probability clean-up should be to use rmdir to get rid of
33996         the just-created directory, not unlink.
33997
33998         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
33999         configure fail, and request a bug report to inform us about it.
34000         Add a comment that, barring reports to the contrary, in 2007 we'll
34001         assume ftruncate is universally available.
34002
34003         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
34004
34005         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
34006
34007         2006-03-12  Jim Meyering  <jim@meyering.net>
34008
34009         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
34010         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
34011         * m4/same.m4 (gl_SAME): Likewise.
34012         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
34013
34014         2006-03-11  Eric Blake  <ebb9@byu.net>
34015
34016         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
34017         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
34018         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
34019         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
34020
34021 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
34022
34023         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
34024         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
34025         reported by Mark D. Baushke, one in
34026         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
34027
34028         Merge from coreutils.
34029
34030         * lib/.cppi-disable: Add stdint_.h.
34031         * lib/.cvsignore: Add stdint.h.
34032
34033         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
34034
34035         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
34036         both double and long double versions.
34037         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
34038         * lib/xstrtold.c: New file.
34039         * lib/xstrtod.h (xstrtold): New decl.
34040
34041         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
34042
34043         * lib/filemode.c (setst): Remove.
34044         (strmode): Rewrite to avoid setst.  This makes the code shorter,
34045         (arguably) clearer, and the generated code is a bit smaller on my
34046         Debian GNU/Linux stable x86 host.
34047
34048         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
34049
34050         * lib/filemode.c: Include "filemode.h" first, to test the interface.
34051         Assume that filemode.h includes sys/types.h and sys/stat.h.
34052         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
34053         (ftypelet): Reorder to put common cases first, for efficiency.
34054         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
34055         to do 'M'.
34056         (strmode): Renamed from mode_string, and now stores 12 bytes instead
34057         of 10, for compatibility with FreeBSD.  All callers changed.
34058         (filemodestring): Now stores 12 bytes instead of 10, and sets file
34059         types that can't be deduced solely from st_mode.  First arg is now a
34060         const pointer.
34061         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
34062         (strmode): Renamed from mode_string.
34063         (filemodestring): New decl.
34064         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
34065         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
34066         needed.
34067         (S_ISPORT, S_ISWHT): New macros, if not already defined.
34068
34069         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
34070
34071         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
34072         fsusage.h now does that.  Include fsusage.h first, to test interface.
34073         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
34074         at most one method (the old code could have generated decls that
34075         didn't conform to C89, not that this was ever exercised).
34076         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
34077
34078         2006-03-19  Jim Meyering  <jim@meyering.net>
34079
34080         Work even in a chroot where d_ino values for entries in "/"
34081         don't match the stat.st_ino values for the same names.
34082         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
34083         number, iterate through all entries again, using lstat instead.
34084         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
34085         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
34086
34087         * lib/getcwd.c (__getcwd): Clarify a comment.
34088         Use memcpy in place of a call to strcpy.
34089
34090         2006-03-12  Jim Meyering  <jim@meyering.net>
34091
34092         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
34093         matches that of the current directory (which we're about to chdir ".."
34094         out of), then save the dev-ino of the parent, instead.
34095
34096         * lib/same-inode.h (SAME_INODE): New file/macro.
34097         * lib/chdir-safer.c (SAME_INODE): Remove definition.
34098         Include "same-inode.h", instead.
34099         * lib/same.c: Likewise.
34100         * lib/cycle-check.h: Include "same-inode.h".
34101         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
34102         * lib/cycle-check.c (SAME_INODE): Remove definition.
34103         * lib/root-dev-ino.h: Include "same-inode.h".
34104
34105         2006-03-11  Eric Blake  <ebb9@byu.net>
34106
34107         * lib/same.c (same_name): s/base_name/last_component/
34108         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
34109         * lib/filenamecat.c (file_name_concat): Likewise.
34110
34111         2006-03-11  Eric Blake  <ebb9@byu.net>,
34112                     Paul Eggert  <eggert@cs.ucla.edu>
34113
34114         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
34115         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
34116         drive prefix.
34117         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
34118         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
34119         (last_component): New method.
34120         * lib/dirname.c (dir_len): Determine when drive letters need a
34121         subsequent slash.  Preserve // when it is special.
34122         (dir_name): Don't append dot when drive letter is absolute.
34123         [TEST_DIRNAME]: Move into a full-blown gnulib test.
34124         * lib/basename.c (base_name): New semantics - malloc the result.
34125         Preserve // when it is special.  Preserve relative files that look
34126         like drive letters.
34127         (base_len): Preserve // when it is special.
34128         (last_component): New method, similar to old base_name semantics.
34129         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
34130         base_name.  Strip redundant slashes from ///.
34131
34132 2006-07-03  Jim Meyering  <jim@meyering.net>
34133
34134         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
34135         macro is used before the first cycle_check call.
34136
34137 2006-07-03  Eric Blake  <ebb9@byu.net>
34138
34139         * modules/dirname (Depends-on): Add xstrndup.
34140
34141 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
34142
34143         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
34144         test cases, so that config.log is a bit easier to follow.
34145
34146 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
34147
34148         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
34149         both are 64 bits, since this seems to be the tradition, and this
34150         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
34151         we ever run into a host that prefers long long to long in this
34152         case, we'll need another configure-time test.  Problem reported by
34153         Jim Meyering.
34154
34155 2006-07-02  Eric Blake  <ebb9@byu.net>
34156
34157         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
34158
34159 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
34160
34161         * modules/inttypes (Depends-on): No longer depends on stdint.
34162         * modules/stdint (Description): Say more about assumptions.
34163         Say that the fast types might differ.  Say macros are used.
34164         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
34165         (Makefile.am): Revise list of substituted symbols to match
34166         new stdint.m4.
34167         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
34168         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
34169         * tests/test-stdint.c (verify_same_types)
34170         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
34171         the code conforms to C99/C89.
34172         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
34173         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
34174
34175 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
34176
34177         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
34178         but fix a bug, by requiring at least 64 bits.
34179         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
34180         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
34181         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
34182         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
34183
34184         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
34185         changes.  Make 2.59 a prerequisite.  Check and substitute for
34186         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
34187         inttypes.h.  Do not use special include files; just use the
34188         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
34189         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
34190         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
34191         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
34192         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
34193         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
34194         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
34195         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
34196         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
34197         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
34198         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
34199         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
34200         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
34201         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
34202         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
34203         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
34204         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
34205         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
34206         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
34207         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
34208         WINT_MAX.  Check for C99 conformance more strictly, by detecting
34209         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
34210         not check for things that C99 does not require, e.g., int8_t.  If
34211         a test isn't needed unless <stdint.h> isn't working, and is
34212         unlikely to be needed for any other reason, then don't do it
34213         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
34214         size_t, since we assume C89 freestanding at least.  Do not check
34215         for sig_atomic_t, wchar_t, or wint_t, since the code now does
34216         the right thing even if the types are not defined.  Instead use:
34217         (gl_STDINT_TYPE_PROPERTIES): New macro.
34218         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
34219         testing whether <sys/types.h> clashes, as Autoconf does this for
34220         us now.  All uses removed.
34221         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
34222         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
34223         (gl_CHECK_TYPE_SAME):
34224         Remove; no longer needed.
34225         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
34226         exists, since we'll return 0 anyway in that case.
34227         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
34228
34229 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
34230
34231         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
34232         possible collision with system files.
34233         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
34234         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
34235         WCHAR_MIN and WCHAR_MAX in this case.
34236         (<stddef.h>): Do not include; no longer needed.
34237         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
34238         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
34239         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
34240         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
34241         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
34242         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
34243         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
34244         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
34245         !defined(__c99))]: Include in this case too, since it's harmless
34246         now.
34247         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
34248         dangerous to do so.
34249         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
34250         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
34251         (_STDINT_MIN, _STDINT_MAX): New macros.
34252         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
34253         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
34254         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
34255         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
34256         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
34257         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
34258         macros, not typedefs; this simplifies things quite a bit.
34259         Use long int for all types narrower than int64_t.
34260         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
34261         Define in terms of long long int or int64_t or long int,
34262         not int64_t or int32_t.  This saves some compile-time testing.
34263         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
34264         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
34265         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
34266         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
34267         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
34268         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
34269         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
34270         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
34271         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
34272         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
34273         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
34274         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
34275         undef any previous version and define our own version, for
34276         simplicity and consistency with the new macros for types.
34277         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
34278         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
34279         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
34280         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
34281         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
34282         @WINT_T_SUFFIX@ to keep things simple here.
34283         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
34284         Simplify by assuming typical 8/16/32/64 host, since we're
34285         already doing that elsewhere anyway.
34286         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
34287         and assume long long int is 64 bits if available.  This
34288         speeds up 'configure'.
34289
34290 2006-07-01  Eric Blake  <ebb9@byu.net>
34291
34292         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
34293         Reported by Andreas Buening.
34294
34295 2006-07-01  Eric Blake  <ebb9@byu.net>
34296
34297         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
34298
34299 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
34300
34301         * lib/getaddrinfo.c: fixed typo
34302
34303 2006-06-29  Jim Meyering  <jim@meyering.net>
34304
34305         * modules/strftime (Maintainer): Add my name, since with the
34306         FPRINTFTIME changes strftime.c has forked from glibc.
34307
34308 2006-06-29  Eric Blake  <ebb9@byu.net>
34309
34310         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
34311
34312 2006-06-29  Eric Blake  <ebb9@byu.net>
34313
34314         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
34315
34316 2006-06-29  Eric Blake  <ebb9@byu.net>
34317
34318         * lib/stat_.h: New file.
34319
34320 2006-06-29  Eric Blake  <ebb9@byu.net>
34321
34322         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
34323         unused static function.
34324
34325 2006-06-29  Eric Blake  <ebb9@byu.net>
34326
34327         * doc/functions.texi (Function Portability): Document missing lstat
34328         on mingw.
34329
34330 2006-06-29  Eric Blake  <ebb9@byu.net>
34331
34332         * MODULES.html.sh: Add sys_stat.
34333         * modules/sys_stat: New module.
34334         * modules/mkstemp (Depends-on): Add sys_stat.
34335
34336 2006-06-29  Derek R. Price  <derek@ximbiot.com>
34337
34338         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
34339
34340 2006-06-29  Derek R. Price  <derek@ximbiot.com>
34341
34342         * m4/c-bs-a.m4: Removed.
34343
34344 2006-06-29  Derek R. Price  <derek@ximbiot.com>
34345
34346         * lib/strftime.c: Assume strftime() exists.
34347
34348 2006-06-29  Derek Price  <derek@ximbiot.com>
34349
34350         * modules/c-bs-a: Removed - \a is C89.
34351         * MODULES.html.sh: Remove c-bs-a.
34352
34353 2006-06-29  Bruno Haible  <bruno@clisp.org>
34354
34355         * modules/wcwidth (License): Change to LGPL.
34356
34357 2006-06-28  Simon Josefsson  <jas@extundo.com>
34358
34359         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
34360         on _WIN32.
34361
34362         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
34363         getnameinfo.
34364
34365 2006-06-28  Simon Josefsson  <jas@extundo.com>
34366
34367         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
34368
34369 2006-06-28  Simon Josefsson  <jas@extundo.com>
34370
34371         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
34372         functions there.  It will succeed on Windows XP, but on Windows
34373         2000 and (presumably) earlier, it will fail, and use the internal
34374         re-implementation.
34375         (use_win32_p): New function.
34376         (getaddrinfo): Use strtoul on servname, to support numeric ports.
34377         Support AI_NUMERICSERV to disable getservbyname.
34378         (getnameinfo): New function, only supports
34379         NI_NUMERICHOST|NI_NUMERICSERV for now.
34380
34381         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
34382         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
34383         getnameinfo.
34384
34385 2006-06-28  Eric Blake  <ebb9@byu.net>
34386
34387         * modules/wcwidth: New file.
34388         * modules/mbchar (Depends-on): Add wcwidth.
34389         * modules/mbswidth (Depends-on): Add wcwidth.
34390         * MODULES.html.sh: Add wcwidth.
34391
34392 2006-06-28  Eric Blake  <ebb9@byu.net>
34393
34394         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
34395         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
34396
34397 2006-06-28  Eric Blake  <ebb9@byu.net>
34398
34399         * lib/xvasprintf.h: Fix comments.
34400
34401 2006-06-28  Eric Blake  <ebb9@byu.net>
34402
34403         * lib/mbchar.h (wcwidth): Include wcwidth.h.
34404         * lib/mbswidth.c (wcwidth): Move from here...
34405         * lib/wcwidth.h: ...to this new file.
34406
34407 2006-06-28  Derek R. Price  <derek@ximbiot.com>
34408
34409         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
34410
34411         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
34412         it's obsolete.
34413         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
34414
34415 2006-06-28  Derek R. Price  <derek@ximbiot.com>
34416
34417         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
34418         Autoconf 2.60 says this stuff was obsolete.
34419
34420 2006-06-28  Bruno Haible  <bruno@clisp.org>
34421
34422         * modules/wcwidth (Files): Add m4/wchar_t.m4.
34423
34424 2006-06-28  Bruno Haible  <bruno@clisp.org>
34425
34426         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
34427         gt_TYPE_WCHAR_T.
34428
34429 2006-06-28  Bruno Haible  <bruno@clisp.org>
34430
34431         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
34432         declaration for wcwidth.
34433         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
34434
34435 2006-06-28  Bruno Haible  <bruno@clisp.org>
34436
34437         * lib/mkdtemp.c [MINGW]: Include <io.h>.
34438         (mkdir): Define using _mkdir.
34439
34440 2006-06-28  Bruno Haible  <bruno@clisp.org>
34441
34442         * lib/getaddrinfo.h: Fix POSIX URL.
34443         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
34444         _WIN32.
34445         (use_win32_p): Make static.
34446         (getaddrinfo): Reject service name if it is empty or does not consist
34447         solely of decimal digits, or if its value is > 65535.
34448         (getnameinfo): Remove useless casts.
34449
34450 2006-06-27  Simon Josefsson  <jas@extundo.com>
34451
34452         * modules/sys_select: New file, suggested by Bruno Haible, Paul
34453         Eggert and Martin Lambers.
34454
34455 2006-06-27  Simon Josefsson  <jas@extundo.com>
34456
34457         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
34458         Eggert and Martin Lambers.
34459
34460 2006-06-27  Bruno Haible  <bruno@clisp.org>
34461
34462         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
34463         result to 0, not to empty.
34464         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
34465
34466 2006-06-27  Bruno Haible  <bruno@clisp.org>
34467
34468         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
34469
34470 2006-06-26  Simon Josefsson  <jas@extundo.com>
34471
34472         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
34473         present.
34474
34475 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
34476
34477         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
34478         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
34479         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
34480
34481 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
34482
34483         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
34484
34485 2006-06-26  Bruno Haible  <bruno@clisp.org>
34486
34487         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
34488
34489 2006-06-26  Bruno Haible  <bruno@clisp.org>
34490
34491         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
34492
34493 2006-06-26  Bruno Haible  <bruno@clisp.org>
34494
34495         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
34496         SGI C compiler in pre-C99 mode.
34497         Suggested by Mark D. Baushke and Larry Jones.
34498
34499 2006-06-26  Bruno Haible  <bruno@clisp.org>
34500
34501         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
34502         WCHAR_MAX.
34503         Reported by Mark D. Baushke and Larry Jones.
34504
34505 2006-06-26  Bruno Haible  <bruno@clisp.org>
34506
34507         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
34508         in pre-C99 mode.
34509         Suggested by Mark D. Baushke and Larry Jones.
34510
34511 2006-06-23  Simon Josefsson  <jas@extundo.com>
34512             Bruno Haible  <bruno@clisp.org>
34513
34514         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
34515         Emit mostlyclean-local rule.
34516         (func_emit_tests_Makefile_am): Likewise.
34517         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
34518
34519 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
34520
34521         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
34522
34523 2006-06-23  Bruno Haible  <bruno@clisp.org>
34524
34525         * tests/test-stdint.c: Update to match ISO C 99 Technical
34526         Corrigendum 1.
34527
34528 2006-06-23  Bruno Haible  <bruno@clisp.org>
34529
34530         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
34531
34532 2006-06-23  Bruno Haible  <bruno@clisp.org>
34533
34534         * lib/stdint_.h: Treat IRIX like OpenBSD.
34535
34536 2006-06-23  Bruno Haible  <bruno@clisp.org>
34537
34538         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
34539         ISO C 99 Technical Corrigendum 1.
34540
34541 2006-06-22  Simon Josefsson  <jas@extundo.com>
34542
34543         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
34544         MinGW.
34545
34546 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34547
34548         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
34549         needed.  Some compiler complained about some of them.  Problem reported
34550         by Larry Jones in
34551         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
34552
34553 2006-06-21  Simon Josefsson  <jas@extundo.com>
34554
34555         * tests/test-getaddrinfo.c: New file.
34556
34557         * modules/getaddrinfo-tests: New file.
34558
34559         * MODULES.html.sh: Add inet_pton.
34560
34561         * modules/inet_pton: New file.
34562
34563 2006-06-21  Simon Josefsson  <jas@extundo.com>
34564
34565         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
34566         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
34567         of using the (limited) gnulib implementation on Windows XP.
34568
34569         * m4/inet_pton.m4: New file.
34570
34571 2006-06-21  Simon Josefsson  <jas@extundo.com>
34572
34573         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
34574         variable.
34575
34576         * lib/socket_.h: Don't define WINVER.
34577
34578         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
34579         slightly modified to work in gnulib.
34580
34581 2006-06-21  Simon Josefsson  <jas@extundo.com>
34582
34583         * doc/gnulib.texi (Windows sockets): Add.
34584
34585 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34586
34587         * lib/read-file.c (fread_file): Start with buffer allocation of
34588         0 bytes rather than 1 byte; this simplifies the code.
34589         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
34590         code to free buffer and save/restore errno.
34591         (internal_read_file): Remove unused local.
34592
34593 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34594
34595         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
34596         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
34597         Problem reported by Denis Excoffier in
34598         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
34599
34600 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34601
34602         * modules/sys_socket, modules/socklen: Include sys/types since
34603         FreeBSD 4.x's sys/socket.h needs it.
34604
34605 2006-06-19  Simon Josefsson  <jas@extundo.com>
34606
34607         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
34608
34609 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
34610
34611         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
34612
34613 2006-06-19  Bruno Haible  <bruno@clisp.org>
34614
34615         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
34616         and FULL_PATH_INTTYPES_H in angle brackets.
34617         Reported by Mark D. Baushke <mdb@gnu.org>.
34618
34619 2006-06-17  Eric Blake  <ebb9@byu.net>
34620
34621         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
34622         errno.
34623
34624 2006-06-17  Bruno Haible  <bruno@clisp.org>
34625
34626         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
34627         <sys/inttypes.h>.
34628
34629 2006-06-17  Bruno Haible  <bruno@clisp.org>
34630
34631         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
34632         whether errno is declared. Assume <errno.h> declares errno.
34633
34634 2006-06-17  Bruno Haible  <bruno@clisp.org>
34635
34636         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
34637
34638 2006-06-17  Bruno Haible  <bruno@clisp.org>
34639
34640         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
34641         problem on Solaris 2.5.1.
34642
34643 2006-06-16  Eric Blake  <ebb9@byu.net>
34644
34645         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
34646         * lib/unicodeio.c [!defined errno]: Likewise.
34647         * lib/strtol.c [!defined errno]: Likewise.
34648         * lib/strtod.c [!defined errno]: Likewise.
34649
34650 2006-06-15  Eric Blake  <ebb9@byu.net>
34651
34652         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
34653
34654 2006-06-15  Eric Blake  <ebb9@byu.net>
34655
34656         * config/srclist.txt (ssize_t.m4): Lose sync.
34657
34658 2006-06-15  Bruno Haible  <bruno@clisp.org>
34659
34660         * modules/stdint (Files): Include m4/full-header-path.m4,
34661         m4/size_max.m4, m4/wchar_t.m4.
34662         (Makefile.am): Many more substitutions.
34663         * modules/stdint-tests: New file.
34664         * tests/test-stdint.c: New file.
34665
34666 2006-06-15  Bruno Haible  <bruno@clisp.org>
34667
34668         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
34669         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
34670         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
34671         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
34672         gl_CHECK_TYPE_SAME): New macros.
34673
34674 2006-06-15  Bruno Haible  <bruno@clisp.org>
34675
34676         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
34677
34678 2006-06-15  Bruno Haible  <bruno@clisp.org>
34679
34680         * lib/stdint_.h: Rewritten to be fully auto-configured.
34681         Fixes bug on HP-UX/IA64.
34682
34683 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
34684
34685         * lib/getdate.y (__attribute__): Don't define if already defined.
34686         Problem reported by Larry Jones.
34687         * lib/utimens.c (__attribute__): Likewise.
34688
34689 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
34690
34691         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
34692         reported by Andreas Schwab.
34693
34694 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34695             Bruno Haible  <bruno@clisp.org>
34696
34697         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
34698         check for the declaration of strnlen and a run test that exposes the
34699         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
34700         rpl_strndup.
34701
34702 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34703             Bruno Haible  <bruno@clisp.org>
34704
34705         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
34706
34707 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34708
34709         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
34710         compile test, for Tru64 4.0D.
34711
34712 2006-05-28  Karl Berry  <karl@gnu.org>
34713
34714         * config/srclist.txt (printf-args.c): lose sync.
34715
34716 2006-05-26  Martin Lambers  <marlam@marlam.de>
34717
34718         * lib/getpass.c: Updates the test for the native W32 API, and adds
34719         missing includes, thus fixing compilation warnings.
34720
34721 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34722
34723         * lib/exclude.c (exclude_fnmatch): New function.
34724         (excluded_file_name): Call exclude_fnmatch.
34725         * lib/exclude.h (excluded_file_name): New prototype
34726
34727 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
34728
34729         * lib/tempname.c (small_open, large_open): New macros.
34730         (__open, __open64) [!_LIBC]: Remove.
34731         (__gen_tempname): Use small_open and large_open instead of __open
34732         and __open64.  This fixes a portability bug on HP-UX 11.11i
34733         reported by Simon Wing-Tang in
34734         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
34735
34736 2006-05-24  Bruno Haible  <bruno@clisp.org>
34737
34738         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
34739         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
34740         Reported by Thorsten Maerz <torte@netztorte.de> via
34741         Aaron Stone <aaron@serendipity.cx>.
34742
34743 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
34744
34745         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
34746         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
34747         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
34748         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
34749         not really conditional on the cache.
34750         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
34751
34752 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
34753
34754         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
34755         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
34756         (my_usleep): Don't mishandle maximum value.
34757
34758 2006-05-19  Jim Meyering  <jim@meyering.net>
34759
34760         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
34761
34762 2006-05-17  Bruno Haible  <bruno@clisp.org>
34763
34764         Cygwin portability.
34765         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
34766
34767 2006-05-17  Bruno Haible  <bruno@clisp.org>
34768
34769         * lib/stdint_.h: Fix recognition of Cygwin.
34770
34771 2006-05-15  Bruno Haible  <bruno@clisp.org>
34772
34773         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
34774         on libtool patch by Ralf Wildenhues.
34775
34776 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
34777
34778         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
34779         test for C99 conformance; (bool) 0.5 is an integer constant
34780         expression, but (bool) -0.5 is not.  Problem reported by Fedor
34781         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
34782
34783 2006-05-11  Simon Josefsson  <jas@extundo.com>
34784
34785         * m4/xvasprintf.m4: Fix obvious typo.
34786
34787 2006-05-11  Jim Meyering  <jim@meyering.net>
34788
34789         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
34790         James Lemley.
34791
34792 2006-05-10  Simon Josefsson  <jas@extundo.com>
34793
34794         * lib/md4.c: Typo fix, update copyright years.
34795         (K1, K2): Don't use L because it turn computations into 64-bit on
34796         64-bit platforms.
34797
34798 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
34799
34800         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
34801         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
34802         unwanted sign propagation, e.g., on hosts with 64-bit int.
34803         There still are some problems with reeelly weird theoretical hosts
34804         (e.g., 33-bit int) but it's not worth worrying about now.
34805         * lib/sha1.c (rol): Likewise.
34806         (K1, K2, K3, K4): Remove unnecessary L suffix.
34807
34808 2006-05-10  Bruno Haible  <bruno@clisp.org>
34809
34810         * lib/des.c: Cast to avoid warnings.
34811
34812 2006-05-09  Bruno Haible  <bruno@clisp.org>
34813
34814         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
34815         (Depends-on): Depend also on xsize, stdarg.
34816         (configure.ac): Add gl_XVASPRINTF.
34817
34818 2006-05-09  Bruno Haible  <bruno@clisp.org>
34819
34820         * m4/xvasprintf.m4: New file.
34821
34822 2006-05-09  Bruno Haible  <bruno@clisp.org>
34823
34824         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
34825         (EOVERFLOW): Define fallback value.
34826         (xstrcat): New function.
34827         (xvasprintf): Recognize the special case of a string concatenation.
34828
34829 2006-05-08  Eric Blake  <ebb9@byu.net>
34830
34831         * gnulib-tool (func_version): Base copyright year on CVS date.
34832         (func_emit_copyright_notice): New function.
34833         (func_emit_lib_Makefile_am): Use it.
34834         (func_emit_tests_Makefile_am): Likewise.
34835         (func_import): Likewise.
34836
34837 2006-05-08  Bruno Haible  <bruno@clisp.org>
34838
34839         * modules/stdarg: New file.
34840         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
34841
34842 2006-05-08  Bruno Haible  <bruno@clisp.org>
34843
34844         * m4/stdarg.m4: New file, from GNU gettext.
34845
34846 2006-05-08  Bruno Haible  <bruno@clisp.org>
34847
34848         * config/srclist.txt (build-aux/config.rpath): different from latest
34849         release.
34850
34851 2006-05-08  Bruno Haible  <bruno@clisp.org>
34852
34853         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
34854
34855 2006-05-05  Jim Meyering  <jim@meyering.net>
34856
34857         * m4/warning.m4: New file, derived from bison's file by the same name.
34858
34859 2006-05-03  Bruno Haible  <bruno@clisp.org>
34860
34861         * lib/stdint_.h: Shorter URL.
34862         * lib/inttypes.h: Likewise.
34863
34864 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34865
34866         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
34867
34868 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34869
34870         * lib/verify.h: Document the internals better.  Most of this change
34871         was written by Bruno Haible.
34872
34873 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34874
34875         * doc/verify.texi: New file, partly based on a proposal by
34876         Bruno Haible.
34877
34878 2006-05-02  Bruno Haible  <bruno@clisp.org>
34879
34880         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
34881         test from here...
34882         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
34883
34884 2006-04-29  Bruno Haible  <bruno@clisp.org>
34885
34886         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
34887         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
34888
34889 2006-04-29  Bruno Haible  <bruno@clisp.org>
34890
34891         * gnulib-tool: Make --update option actually work.
34892
34893 2006-04-29  Bruno Haible  <bruno@clisp.org>
34894
34895         * doc/gcd.texi: New file.
34896         * doc/gnulib.texi: Include it.
34897
34898 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
34899
34900         * lib/getdate.y (get_date): When adding relative date, start with the
34901         initial time, not with the result of the first mktime call.
34902
34903 2006-04-25  Bruno Haible  <bruno@clisp.org>
34904
34905         * gnulib-tool (func_import): Output the include directives in three
34906         blocks, sorted separately.
34907         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34908
34909 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
34910
34911         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
34912         to define main with arguments, for C++.  Reported by Eric Blake.
34913         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
34914         Prefer 'int main ()' to 'int main (void)', for C++.
34915         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
34916         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
34917         for 'main', for C99 and C++.
34918
34919 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
34920
34921         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
34922         Don't assume that exit status -1 is valid.
34923         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34924         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
34925         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
34926         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
34927         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
34928         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
34929         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
34930         functions can be used without declaring them, or that you can
34931         exit with status -1.
34932         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
34933
34934 2006-04-24  Karl Berry  <karl@gnu.org>
34935
34936         * config/srclist.txt (longdouble.m4): sync lost.
34937
34938 2006-04-24  Eric Blake  <ebb9@byu.net>
34939
34940         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
34941
34942 2006-04-24  Bruno Haible  <bruno@clisp.org>
34943
34944         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
34945         poll() implementation in AIX.
34946         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34947
34948 2006-04-24  Bruno Haible  <bruno@clisp.org>
34949
34950         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
34951         assigned exactly once.
34952
34953 2006-04-23  Claudio Fontana  <claudio@gnu.org>
34954             Bruno Haible  <bruno@clisp.org>
34955
34956         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
34957         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
34958         for AM_CPPFLAGS.
34959
34960 2006-04-23  Bruno Haible  <bruno@clisp.org>
34961
34962         * modules/copy-file: Depend on unistd.
34963         * modules/execute: Likewise.
34964         * modules/fatal-signal: Likewise.
34965         * modules/findprog: Likewise.
34966         * modules/mkdtemp : Likewise.
34967         * modules/pipe: Likewise.
34968         * modules/wait-process: Likewise.
34969
34970 2006-04-23  Bruno Haible  <bruno@clisp.org>
34971
34972         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
34973         condition was already detected.
34974         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34975
34976 2006-04-23  Bruno Haible  <bruno@clisp.org>
34977
34978         * lib/copy-file.c: Include <unistd.h> unconditionally.
34979         * lib/execute.c: Likewise.
34980         * lib/fatal-signal.c: Likewise.
34981         * lib/findprog.c: Likewise.
34982         * lib/mkdtemp.c: Likewise.
34983         * lib/pipe.h: Likewise.
34984         * lib/pipe.c: Likewise.
34985         * lib/wait-process.h: Likewise.
34986
34987 2006-04-23  Bruno Haible  <bruno@clisp.org>
34988
34989         * gnulib-tool (func_usage): Fix --import description. Document
34990         --update.
34991         (func_import): Create temporary file in a temporary directory, if
34992         --dry-run is specified. Silence errors from 'grep' when there are no
34993         m4 files in $m4dir.
34994         (func_create_testdir): Silence errors from 'grep' when there are no
34995         m4 files in $m4dir.
34996         Reported by Karl Berry <karl@freefriends.org>.
34997
34998 2006-04-20  Bruno Haible  <bruno@clisp.org>
34999
35000         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
35001         one argument, so that the code will be portable to Autoconf 2.60.
35002         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
35003         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
35004         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
35005
35006 2006-04-19  Derek Price  <derek@ximbiot.com>
35007             Eric Blake  <ebb9@byu.net>
35008
35009         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
35010         rather than "/full/path.h".  Update comment to match.  Shorten &
35011         generalize m4_translit call via AS_TR_CPP.
35012
35013 2006-04-19  Derek Price  <derek@ximbiot.com>
35014             Eric Blake  <ebb9@byu.net>
35015
35016         * lib/inttypes.h: Correct grammar in comment.
35017
35018 2006-04-18  Derek Price  <derek@ximbiot.com>
35019             Paul Eggert  <eggert@cs.ucla.edu>
35020
35021         * modules/inttypes: New file.
35022         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
35023
35024 2006-04-18  Derek Price  <derek@ximbiot.com>
35025             Paul Eggert  <eggert@cs.ucla.edu>
35026
35027         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
35028         New files.
35029
35030 2006-04-18  Derek Price  <derek@ximbiot.com>
35031             Paul Eggert  <eggert@cs.ucla.edu>
35032
35033         * lib/inttypes.h: New file.
35034         * lib/strtoimax.c: Assume <inttypes.h>.
35035
35036 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
35037
35038         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
35039         isn't mounted.  Problem reported by Kir Kolyshkin.
35040
35041 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
35042
35043         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
35044         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
35045         Derek R. Price.
35046         * lib/regex.h (RE_DUP_MAX): Update comment to match current
35047         implementation.
35048
35049 2006-04-12  Eric Blake  <ebb9@byu.net>
35050
35051         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
35052         is now done automatically by the corresponding Autoconf macro.
35053
35054 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
35055
35056         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
35057         time_r.h.
35058
35059 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
35060
35061         Merge regex changes from libc, removing some of our
35062         POSIX-conformance changes that were rejected and redoing them in a
35063         less-intrusive way.
35064
35065         * lib/regcomp.c (re_compile_internal, init_dfa):
35066         Length arg is now size_t, not Idx.  All uses changed.
35067         (peek_token): Forward decl now says internal_function.
35068         (__re_error_msgid, __re_error_msgid_idx):
35069         Now static rather than extern with attribute_hidden.
35070         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
35071         For some reason libc prefers K&R style defns for external functions.
35072         (regerror) [!defined _LIBC]: Likewise.
35073         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
35074         (seek_collating_symbol_entry, lookup_collation_sequence_value):
35075         (build_range_exp, build_collating_symbol):
35076         Use K&R-style defn.
35077         (re_compile_fastmap): Use '\0' to memset, not 0.
35078         (utf8_sb_map): Make the calculations more obvious.
35079         (init_dfa, parse_bracket_exp, build_charclass_op):
35080         Call calloc and cast result, as glibc does.
35081         (init_word_char, fetch_token, peek_token, peek_token_bracket):
35082         (build_range_exp, build_collating_symbol):
35083         Now internal functions.
35084
35085         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
35086
35087         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
35088         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
35089         Don't depend on VMS; depend on __VMS instead, for POSIX
35090         namespace cleanness.
35091         (regoff_t): Define to ssize_t, not long int.
35092
35093         Remove the REG_ macros named below.  Instead, make the old names
35094         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
35095         __USE_GNU_REGEX.
35096         (REG_BACKSLASH_ESCAPE_IN_LISTS):
35097         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
35098         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
35099         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
35100         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
35101         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
35102         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
35103         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
35104         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
35105         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
35106         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
35107         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
35108         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
35109         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
35110         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
35111         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
35112         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
35113         (REG_NREGS):
35114         Remove.  All uses replaced by the old RE_* names.
35115         (RE_BACKSLASH_ESCAPE_IN_LISTS):
35116         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
35117         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
35118         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
35119         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
35120         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
35121         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
35122         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
35123         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
35124         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
35125         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
35126         Don't bother having these macros be independent of each others'
35127         values, since they no longer exist in the POSIX name space.
35128
35129         Rename the following member names back to their old names,
35130         unless !__USE_GNU_REGEX.  All uses changed back.
35131         (buffer): Renamed from re_buffer.
35132         (allocated): Renamed from re_allocated.
35133         (used): Renamed from re_used.
35134         (syntax): Renamed from re_syntax.
35135         (fastmap): Renamed from re_fastmap.
35136         (translate): Renamed from re_translate.
35137         (can_be_null): Renamed from re_can_be_null.
35138         (regs_allocated): Renamed from re_regs_allocated.
35139         (fastmap_accurate): Renamed from re_fastmap_accurate.
35140         (no_sub): Renamed from re_no_sub.
35141         (not_bol): Renamed from re_not_bol.
35142         (not_eol): Renamed from re_not_eol.
35143         (newline_anchor): Renamed from re_newline_anchor.
35144         (num_regs): Renamed from rm_num_regs.
35145         (start): Renamed from rm_start.
35146         (end): Renamed from rm_end.
35147
35148         (free_state): Move up a bit.
35149
35150         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
35151         #define to be empty.
35152         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
35153         when that is what is intended.
35154         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
35155         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
35156         (MAX): New macro.
35157         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
35158         All uses changed back to re_malloc, etc.  It's now the caller's
35159         responsibility to check for overflow; all callers changed.
35160         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
35161         (re_x2nrealloc): Remove.
35162         (free_state): Remove decl.
35163
35164         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
35165         (re_set_registers, re_exec):
35166         Use K&R-style defn.
35167
35168         2006-01-31  Roland McGrath  <roland@redhat.com>
35169
35170         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
35171         Reported by Mike Frysinger <vapier@gentoo.org>.
35172
35173         2006-01-15  Andreas Jaeger  <aj@suse.de>
35174
35175         [BZ #1950]
35176         * lib/regex_internal.c (re_string_reconstruct): Adjust for
35177         build_wcs_upper_buffer change.
35178         (build_wcs_upper_buffer): Change return type.
35179
35180         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
35181
35182         * lib/regex_internal.h: Include <stdint.h> if available.
35183
35184         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
35185
35186         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
35187
35188         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
35189
35190         * lib/regcomp.c: Adjust for changed secondary hash function.
35191
35192         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
35193
35194         * lib/regex.h: Pretty printing.
35195         Clean up namespace a bit.
35196
35197         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
35198
35199         * lib/regexec.c (update_cur_sifted_state, check_arrival,
35200         check_arrival_add_next_nodes): Avoid using uninitialized variable.
35201
35202         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35203                     Ulrich Drepper  <drepper@redhat.com>
35204
35205         [BZ #1302]
35206         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
35207         changed.
35208         (bitset_word_t): Renamed from bitset_word.  All uses changed.
35209
35210         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
35211
35212         [BZ #281]
35213         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
35214         * lib/regcomp.c: Remove unnecessary uses of
35215         unsigned RE_TRANSLATE_TYPE.
35216         * lib/regex_internal.h: Likewise.
35217         * lib/regex_internal.c: Likewise.
35218         * lib/regexec.c: Likewise.
35219         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
35220
35221         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
35222
35223         * lib/regexec.c (find_recover_state): Remove unnecessary
35224         initialization.
35225         (transit_state_bkref): Make DFA a const pointer.
35226         (get_subexp): Likewise.
35227         (check_arrival): Likewise.
35228         (update_cur_sifted_state): Likewise.
35229         (re_search_internal): Likewise.
35230         (prune_impossible_nodes): Likewise.
35231         (acquire_init_state_context): Likewise.
35232         (proceed_next_node): Likewise.
35233         (set_regs): Likewise.
35234         (free_fail_stack_return): Likewise.
35235         (check_arrival_expand_ecl): Mark DFA parameter as const.
35236         (check_arrival_expand_ecl_sub): Likewise.
35237         (check_subexp_limits): Likewise.
35238         (sub_epsilon_src_nodes):  Likewise.
35239         (add_epsilon_src_nodes):  Likewise.
35240         (merge_state_array): Likewise.
35241         (update_regs): Likewise.
35242         (build_trtable): Likewise.
35243         (sift_states_backward): Mark MCTX parameter as const.
35244         (build_sifted_states): Likewise.
35245         (update_cur_sifted_state): Likewise.
35246         (sift_states_mkref): Likewise.
35247         (check_arrival_expand_ecl): Mark eclosure as const.
35248         (check_dst_limits_calc_pos_1): Likewise.
35249         * lib/regex_internal.h (re_match_context_t): Make dfa a const
35250         pointer.
35251
35252         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
35253
35254         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
35255         (transit_state_sb): Likewise.
35256         (transit_state_mb): Likewise.
35257         (sift_states_iter_mb): Likewise.
35258         (check_arrival_add_next_nodes): Likewise.
35259         (check_node_accept_bytes): Change first parameter to pointer-to-const.
35260         [_LIBC] (re_search_2_stub): Use mempcpy.
35261
35262         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
35263         mbrtowc for very simple UTF-8 case.
35264
35265         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
35266         a pointer-to-const.
35267         (re_acquire_state_context): Likewise.
35268         * lib/regex_internal.h: Adjust prototypes.
35269
35270         * lib/regex.c: Prevent using C++ compilers.
35271
35272         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
35273         (re_acquire_state_context): Likewise.
35274
35275 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
35276
35277         * modules/regex (Depends-on): Add ssize_t.
35278
35279 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
35280
35281         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
35282         translation table.
35283
35284 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
35285
35286         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
35287
35288 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
35289             Bruno Haible  <bruno@clisp.org>
35290
35291         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
35292         <sys/types.h> and <inttypes.h>.
35293
35294 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35295
35296         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
35297         `__error_t_defined', so argp.h will not typedef the former.
35298
35299 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35300
35301         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
35302         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
35303         glibc names.  Even if glibc is changed to conform to POSIX, the
35304         traditional names will be available anyway, since regex depends on
35305         the extensions module.  Also, fix a longstanding typo in the
35306         implementation of Spencer ERE test #75 from grep 2.3.  Problems
35307         reported by Emanuele Giaquinta.  Also, change sense of cached
35308         variable, so that the message makes sense.
35309
35310 2006-03-24  Simon Josefsson  <jas@extundo.com>
35311
35312         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
35313         including some doc fixes.
35314         (base64_encode_alloc): Fix +1 bug on allocation failures.
35315
35316 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35317
35318         * lib/base64.c (base64_encode): Do not read past end of array with
35319         unsanitized input on systems with CHAR_BIT > 8.
35320
35321 2006-03-24  Eric Blake  <ebb9@byu.net>
35322
35323         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
35324
35325 2006-03-22  Karl Berry  <karl@gnu.org>
35326
35327         * config/srclist.txt (*setenv.[ch]): get from coreutils.
35328         * config/srclistvars.sh (COREUTILS): new var.
35329
35330 2006-03-17  Jim Meyering  <jim@meyering.net>
35331
35332         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
35333         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
35334
35335 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
35336
35337         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
35338         no longer needs it.  Instead, check that regoff_t is as least
35339         as wide as ptrdiff_t.
35340
35341         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
35342         so that our regex.h stays compatible with the installed regex.
35343         This is helpful for installers who configure --without-included-regex.
35344         Problem reported by Emanuele Giaquinta.
35345
35346 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
35347
35348         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
35349         Typedef to long int, not to off_, as POSIX will likely change
35350         in that direction.
35351
35352 2006-03-15  Eric Blake  <ebb9@byu.net>
35353
35354         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
35355
35356 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
35357
35358         * lib/argp-help.c (validate_uparams): Fix typo
35359         * lib/argp-parse.c (argp_default_options): Consistently begin help
35360         messages with a lowercase letter.
35361
35362 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
35363
35364         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
35365         overrun buffers and shouldn't be used (much as gets shouldn't be
35366         used).
35367         * lib/time_r.c (asctime_r, ctime_r): Likewise.
35368
35369 2006-03-08  Simon Josefsson  <jas@extundo.com>
35370
35371         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
35372         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35373
35374 2006-03-08  Simon Josefsson  <jas@extundo.com>
35375
35376         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
35377         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35378
35379 2006-03-08  Simon Josefsson  <jas@extundo.com>
35380
35381         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
35382         signal that configure disabled the device.
35383
35384 2006-03-08  Simon Josefsson  <jas@extundo.com>
35385
35386         * build-aux/maint.mk: Fix refresh-po, to handle no translated
35387         languages.
35388
35389 2006-03-07  Simon Josefsson  <jas@extundo.com>
35390
35391         * modules/getopt (Depends-on): Add unistd.
35392
35393         * modules/unistd: New file.
35394
35395 2006-03-07  Simon Josefsson  <jas@extundo.com>
35396
35397         * modules/gc-random: New file.
35398
35399 2006-03-07  Simon Josefsson  <jas@extundo.com>
35400
35401         * m4/unistd_h.m4: New file.
35402
35403 2006-03-07  Simon Josefsson  <jas@extundo.com>
35404
35405         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
35406         test to be side-effect free by storing the result in the cache
35407         variable gl_cv_lib_readline, and moving the assignment of
35408         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
35409         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35410
35411 2006-03-07  Simon Josefsson  <jas@extundo.com>
35412
35413         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
35414         error on missing devices (the functions will return an error).
35415
35416         * m4/gc.m4: Move random stuff to gc-random.m4
35417
35418 2006-03-07  Simon Josefsson  <jas@extundo.com>
35419
35420         * lib/unistd_.h: New file.
35421
35422 2006-03-07  Simon Josefsson  <jas@extundo.com>
35423
35424         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
35425
35426 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
35427
35428         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
35429         Problem reported by Juan Manuel Guerrero.
35430
35431 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
35432
35433         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
35434         the unistd module.
35435         * lib/getlogin_r.c: Likewise.
35436         * lib/getlogin_r.h: Likewise.
35437         * lib/glob.c: Likewise.
35438         * lib/pagealign_alloc.c: Likewise.
35439         * lib/unistd_.h: Remove; no longer needed.
35440
35441 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
35442
35443         * MODULES.html.sh (Support for systems lacking POSIX:2001):
35444         Add unistd.
35445         * modules/c-stack (Depends-on): Add unistd.
35446         * modules/getlogin_r: Likewise.
35447         * modules/glob: Likewise.
35448         * modules/pagealign_alloc: Likewise.
35449         * modules/unistd (Files): Remove lib/unistd_.h.
35450         (EXTRA_DIST): Remove.
35451         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
35452         need unistd_.h.
35453         (MOSTLYCLEANFILES): Remove unistd.h-t.
35454
35455 2006-03-03  Simon Josefsson  <jas@extundo.com>
35456
35457         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
35458
35459 2006-03-03  Simon Josefsson  <jas@extundo.com>
35460
35461         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
35462         libidn and bison.
35463
35464 2006-03-03  Simon Josefsson  <jas@extundo.com>
35465
35466         * build-aux/maint.mk: Add indent target.
35467
35468 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
35469
35470         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
35471         our replacement poll.h in any case, to avoid a differing
35472         declaration from a system header.  Seen on AIX.
35473
35474 2006-03-01  Simon Josefsson  <jas@extundo.com>
35475
35476         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
35477         <kasal@ucw.cz>.
35478
35479 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
35480
35481         * modules/gettime (Depends-on): Add extensions module.
35482         * modules/nanosleep (Depends-on): Likewise.
35483         * modules/settime (Depends-on): Likewise.
35484
35485 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
35486
35487         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
35488         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
35489         pedantically.
35490         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35491         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
35492
35493         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
35494         not "==".  Reported by Ralf Wildenhues.
35495
35496 2006-03-01  Karl Berry  <karl@gnu.org>
35497
35498         * doc/Copyright/request-*: new files, synced from gnuorg.
35499
35500 2006-03-01  Karl Berry  <karl@gnu.org>
35501
35502         * config/srclist.txt (Copyright/*): new entries.
35503
35504 2006-02-28  Simon Josefsson  <jas@extundo.com>
35505
35506         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
35507
35508 2006-02-27  Simon Josefsson  <jas@extundo.com>
35509
35510         * lib/base64.h: Indent #define's.  From Jim Meyering
35511         <jim@meyering.net>.
35512
35513 2006-02-27  Jim Meyering  <jim@meyering.net>
35514
35515         Revert the change of 2006-02-24, so these files can continue
35516         to be sync'd from gettext.
35517         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
35518         of `config.h'.
35519
35520 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
35521
35522         * modules/intprops: New file.
35523         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
35524         Add intprops.
35525         * modules/getloadavg (Files): Remove lib/intprops.h.
35526         (Depends-on): Add intprops.
35527         * modules/human: Likewise.
35528         * modules/inttostr: Likewise.
35529         * modules/openat: Likewise.
35530         * modules/sig2str: Likewise.
35531         * modules/userspec: Likewise.
35532         * modules/utimecmp: Likewise.
35533         * modules/xnanosleep: Likewise.
35534         * modules/xstrtol: Likewise.
35535
35536 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
35537
35538         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
35539         * modules/lock-tests (TESTS): Use $(EXEEXT).
35540         * modules/tls-tests: Likewise.
35541         * modules/argp-tests: Likewise.
35542         (check_PROGRAMS): New var, replacing...
35543         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
35544
35545 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35546
35547         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
35548         `config.h'.
35549
35550 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
35551
35552         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
35553
35554 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35555
35556         Sync from coreutils.
35557         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
35558         gl_CHDIR_SAFER.
35559
35560 2006-02-22  Jim Meyering  <jim@meyering.net>
35561
35562         Sync from coreutils.
35563         * m4/chdir-safer.m4: New file.
35564
35565 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
35566
35567         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
35568         AT_FDCWD exceeds INT_MAX.
35569         * lib/openat.h (AT_FDCWD): Likewise.
35570
35571 2006-02-17  Eric Blake  <address@hidden>
35572
35573         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
35574
35575 2006-02-16  Simon Josefsson  <jas@extundo.com>
35576
35577         * modules/getaddrinfo (Depends-on): Add sys_socket.
35578
35579 2006-02-15  Simon Josefsson  <jas@extundo.com>
35580
35581         * build-aux/maint.mk: Add dsyntax-check rule.
35582
35583 2006-02-15  Eric Blake  <ebb9@byu.net>
35584
35585         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
35586         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
35587         'present but cannot compile' warnings on cygwin.
35588         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
35589         use ws2tcpip.h if sys/socket.h works.
35590         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
35591         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
35592
35593 2006-02-14  Simon Josefsson  <jas@extundo.com>
35594
35595         * modules/maintainer-makefile (Files): Rename.
35596
35597         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
35598         and (the local) Makefile.cfg to maint-cfg.mk.
35599
35600         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
35601         to the latter.
35602
35603         * modules/maintainer-makefile: New module.
35604
35605         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
35606         severaly stripped to make it possible to build it up from scratch
35607         with reliable tests.
35608
35609         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
35610         fixes to permit overriding the default actions when configure and
35611         makefile are not available.
35612
35613 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
35614
35615         Sync from coreutils.
35616         * modules/lstat (Depends-on): Don't depend on xalloc.
35617         (License): Change from GPL to LGPL, since this is now simply a
35618         replacement for a libc function.
35619
35620 2006-02-14  Jim Meyering  <jim@meyering.net>
35621
35622         Sync from coreutils.
35623
35624         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
35625         failure on deficient systems, and simplify gnulib lgpl dependencies.
35626         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
35627         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
35628
35629         * lib/xalloc-die.c: Remove unused definition of N_.
35630
35631 2006-02-14  Jim Meyering  <jim@meyering.net>
35632
35633         Sync from coreutils.
35634         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
35635         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
35636         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
35637         double-quote uses of that variable, to accommodate the rare case in
35638         which getmntent is available in none of the libraries checked.  This
35639         happens at least on FreeBSD 5.0.
35640
35641 2006-02-13  Simon Josefsson  <jas@extundo.com>
35642
35643         * gnulib-tool (Usage): Fix --import, from
35644         karl@freefriends.org (Karl Berry).
35645
35646 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
35647
35648         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
35649
35650 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
35651
35652         * lib/argp-namefrob.h: Restore changes accidentally lost during the
35653         "autoupdate" on 2005-12-12.
35654
35655 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
35656
35657         * modules/closeout (Depends-on): Remove atexit.
35658
35659 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
35660
35661         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
35662         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
35663
35664 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
35665
35666         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
35667         __EXTENSIONS__ if this causes compilation to fail.  Problem
35668         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
35669         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
35670
35671 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
35672
35673         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
35674         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
35675         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
35676         All uses changed.
35677
35678 2006-01-26  Simon Josefsson  <jas@extundo.com>
35679
35680         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
35681         prototype is visible on mingw32.
35682
35683         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
35684         for mingw32.
35685
35686         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
35687         mingw32).
35688
35689 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
35690
35691         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
35692         attempt to open for write; this always fails, at least on POSIX
35693         hosts.  This reinstates the 2006-01-09 change, which was
35694         inadvertently removed.
35695
35696 2006-01-26  Bruno Haible  <bruno@clisp.org>
35697
35698         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
35699         Reported by Paul Eggert.
35700
35701 2006-01-26  Bruno Haible  <bruno@clisp.org>
35702             Paul Eggert  <eggert@cs.ucla.edu>
35703
35704         * lib/stdbool_.h (_Bool)
35705         [(! (defined __cplusplus || defined __BEOS__)
35706           && !defined __GNUC__
35707           && !(defined __HP_cc || defined __xlc__
35708                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
35709                || defined __sgi))]:
35710         #define to signed char in these cases too; this simplifies
35711         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
35712         etc., separately) and makes it more conservative.
35713
35714 2006-01-25  Simon Josefsson  <jas@extundo.com>
35715
35716         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
35717         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
35718         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
35719
35720 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35721
35722         * lib/argp-namefrob.h: Bugfix. Remove stray #
35723
35724 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
35725
35726         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
35727         so that we test the test.
35728         Check for yet another HP-UX cc bug involving *bool |= bool.
35729
35730 2006-01-25  Karl Berry  <karl@gnu.org>
35731
35732         * config/srclist.txt (vasnprintf.c): sync lost.
35733
35734 2006-01-25  Jim Meyering  <jim@meyering.net>
35735
35736         Sync from the stable (b5) branch of coreutils:
35737
35738         * lib/fts.c (fts_children): Don't let close() clobber errno from
35739         failed fchdir().
35740
35741         * lib/fts.c (fts_stat): When following a symlink-to-directory,
35742         don't necessarily interpret stat-fails+lstat-succeeds as indicating
35743         a dangling symlink.  That can also happen at least for ELOOP.
35744         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
35745         FYI, this bug predates the inclusion of fts.c in coreutils.
35746
35747         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
35748         in their own block, so pre-c99 compilers don't object.
35749
35750         Avoid the double-free (first in fts_read, second in fts_close) that
35751         would occur when an `active' directory is made inaccessible (e.g.,
35752         via chmod a-x) during a traversal.
35753         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
35754         before returning.  Reproduce this failure by
35755         mkdir -p a/b; cd a; chmod a-x . b
35756         Reported by Stavros Passas.
35757
35758 2006-01-25  Jim Meyering  <jim@meyering.net>
35759
35760         * lib/fileblocks.c: Remove more useless parentheses.
35761         * lib/readutmp.h: Likewise.
35762
35763 2006-01-25  Bruno Haible  <bruno@clisp.org>
35764
35765         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
35766         warnings.
35767         Reported by Paul Eggert.
35768
35769 2006-01-25  Bruno Haible  <bruno@clisp.org>
35770
35771         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
35772         rid of a trap command. For Solaris sh.
35773         Reported by Mark D. Baushke <mdb@gnu.org>.
35774
35775 2006-01-24  Simon Josefsson  <jas@extundo.com>
35776
35777         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
35778         Bruno.
35779
35780 2006-01-24  Karl Berry  <karl@gnu.org>
35781
35782         * config/srclist.txt (argp-namefrob.h): sync lost.
35783
35784 2006-01-24  Jim Meyering  <jim@meyering.net>
35785
35786         * modules/openat (Files): Add lib/intprops.h.
35787         From Mark D. Baushke.
35788
35789 2006-01-24  Jim Meyering  <jim@meyering.net>
35790
35791         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
35792         Reported by Mark D. Baushke.
35793
35794 2006-01-24  Jim Meyering  <jim@meyering.net>
35795
35796         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
35797
35798 2006-01-24  Bruno Haible  <bruno@clisp.org>
35799
35800         * modules/strnlen (Maintainer): Change from glibc to all.
35801
35802 2006-01-24  Bruno Haible  <bruno@clisp.org>
35803
35804         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
35805         Patch by Paul Eggert.
35806
35807 2006-01-24  Bruno Haible  <bruno@clisp.org>
35808
35809         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
35810         already has it.
35811         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
35812         2005-11-26.
35813
35814         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
35815         'signed char' to avoid problems with the built-in _Bool type.
35816         Reported by Paul Eggert on 2005-11-26.
35817
35818 2006-01-24  Bruno Haible  <bruno@clisp.org>
35819
35820         * gnulib-tool (func_import): Avoid constructing complicated sed
35821         expressions inside backquote.
35822         Report and solution by Mark D. Baushke <mdb@gnu.org>.
35823
35824 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
35825
35826         These changes imported from libc.
35827         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
35828         test and two separate function calls.
35829         * lib/strndup.c (__strndup): Add libc_hidden_def.
35830
35831 2006-01-23  Simon Josefsson  <jas@extundo.com>
35832
35833         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
35834         Remove the test_*_SOURCES variable: automake infers it by default.
35835         * modules/tls-tests: Likewise.
35836
35837 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35838
35839         Work around porting bugs reported by Dieter in
35840         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
35841         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
35842         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
35843         Include "getopt.h" first, to check interface.
35844         (getenv): Declare only if defined HAVE_DECL_GETENV &&
35845         !HAVE_DECL_GETENV.
35846         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
35847         (__strndup): Revert to K&R-style function dfns, the glibc style.
35848         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
35849         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
35850         Include strnlen.h first, to get prototype properly.
35851         (strnlen): Renamed from __strnlen.
35852         Remove weak alias.
35853
35854 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35855
35856         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
35857
35858 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35859
35860         * config/srclist.txt: Adjust to reflect glibc reorganization.
35861         This affects only comments.
35862
35863 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
35864
35865          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
35866          Reported by Bruce Korb <bkorb@gnu.org>.
35867
35868 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
35869
35870         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
35871         to pacify gcc -Wswitch-default.
35872
35873 2006-01-22  Bruno Haible  <bruno@clisp.org>
35874
35875         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
35876         temporary buffer for sprintf, take into account the precision also
35877         for 'd', 'i', 'u', 'o', 'x', 'X'.
35878
35879 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
35880
35881         * modules/argp-tests: New module
35882         * tests/test-argp.c: New file
35883         * tests/test-argp-2.sh: New file
35884
35885 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
35886
35887         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
35888         (__argp_base_name): Removed
35889         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
35890         typo.
35891         (__argp_base_name): Provide macro definition or extern declaration
35892         depending on the configuration
35893
35894 2006-01-20  Simon Josefsson  <jas@extundo.com>
35895
35896         * modules/inet_ntop (Depends-on): Depend on sys_socket.
35897
35898 2006-01-20  Simon Josefsson  <jas@extundo.com>
35899
35900         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
35901
35902 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
35903
35904         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
35905         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
35906         Suggested by Bruno Haible.
35907
35908 2006-01-20  Karl Berry  <karl@gnu.org>
35909
35910         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
35911         until changes propagate, I guess.
35912
35913 2006-01-19  Simon Josefsson  <jas@extundo.com>
35914
35915         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
35916
35917 2006-01-19  Simon Josefsson  <jas@extundo.com>
35918
35919         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
35920
35921 2006-01-19  Simon Josefsson  <jas@extundo.com>
35922
35923         * gnulib-tool: Set check_PROGRAMS.
35924
35925         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
35926         modules/des-tests, modules/gc-arcfour-tests,
35927         modules/gc-arctwo-tests, modules/gc-des-tests,
35928         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
35929         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
35930         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
35931         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
35932         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
35933         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
35934         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
35935         test_*_SOURCES.
35936
35937 2006-01-18  Simon Josefsson  <jas@extundo.com>
35938
35939         * modules/socklen (Depends-on): Depend on sys_socket.
35940
35941 2006-01-18  Simon Josefsson  <jas@extundo.com>
35942
35943         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
35944         modules/des-tests, modules/gc-arcfour-tests,
35945         modules/gc-arctwo-tests, modules/gc-des-tests,
35946         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
35947         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
35948         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
35949         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
35950         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
35951         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
35952         $(EXEEXT) to automake TESTS variable, for mingw32.
35953
35954 2006-01-17  Simon Josefsson  <jas@extundo.com>
35955
35956         * modules/socklen (Include): Need sys/socket.h.
35957
35958 2006-01-17  Bruno Haible  <bruno@clisp.org>
35959
35960         * modules/ssize_t (Include): Add <sys/types.h>.
35961
35962 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
35963
35964         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
35965         it's not portable and it doesn't work with cross-compiles.
35966         Problem reported by Bruno Haible.  Fix missing-$ typo in
35967         'test "gl_cv_ignore_unused_libraries" ...' that prevented
35968         -zignore from being used with Sun's C compiler.
35969
35970 2006-01-12  Simon Josefsson  <jas@extundo.com>
35971
35972         * lib/base64.c: Fix warning, reported by Bruno Haible
35973         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
35974
35975 2006-01-12  Bruno Haible  <bruno@clisp.org>
35976
35977         * modules/ldd: New file.
35978         * build-aux/ldd.sh.in: New file.
35979         * MODULES.html.sh (Support for building libraries and executables): Add
35980         ldd.
35981
35982 2006-01-12  Bruno Haible  <bruno@clisp.org>
35983
35984         * m4/ldd.m4: New file.
35985
35986 2006-01-12  Bruno Haible  <bruno@clisp.org>
35987
35988         * gnulib-tool (func_import, func_create_testdir): Don't go into an
35989         endless loop while replacing $auxdir with build-aux.
35990
35991 2006-01-11  Simon Josefsson  <jas@extundo.com>
35992
35993         * lib/stdint_.h (SIZE_MAX): Add missing (.
35994
35995 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
35996
35997         Sync from coreutils.
35998         * lib/md5.c: Fix commentary typos.
35999         (alignof, UNALIGNED_P): No need for a GCC-specific version.
36000         * lib/md5.h (__attribute__): Remove; unused.
36001         * lib/sha1.c: Fix commentary to match md5 better.
36002         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
36003         so that we don't need to worry about alignment.  All uses changed.
36004         This merges the 2005-10-28 md5 change into sha1.
36005
36006 2006-01-11  Jim Meyering  <jim@meyering.net>
36007
36008         Sync from coreutils.
36009         * lib/md5.c (OP): Fix spacing.
36010
36011 2006-01-11  Bruno Haible  <bruno@clisp.org>
36012
36013         Ensure automatic ordering between gl_LOCK and gl_ARGP.
36014         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
36015         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
36016
36017 2006-01-11  Bruno Haible  <bruno@clisp.org>
36018
36019         Ensure automatic ordering between gl_LOCK and gl_ARGP.
36020         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
36021         the "early" section as well.
36022
36023 2006-01-11  Bruno Haible  <bruno@clisp.org>
36024
36025         Avoid "ar: no archive members specified" error on MacOS X.
36026         * gnulib-tool (func_modules_add_dummy): New function.
36027         (func_import, func_create_testdir): Invoke it.
36028
36029 2006-01-11  Bruno Haible  <bruno@clisp.org>
36030
36031         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
36032         with $auxdir in AC_CONFIG_FILES statements.
36033
36034 2006-01-11  Bruno Haible  <bruno@clisp.org>
36035
36036         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36037         Initialize also noinst_HEADERS to empty.
36038
36039 2006-01-11  Bruno Haible  <bruno@clisp.org>
36040
36041         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
36042         variables.
36043         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
36044         autoreconf.
36045
36046 2006-01-11  Bruno Haible  <bruno@clisp.org>
36047
36048         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
36049         overridable by the user.
36050         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36051
36052 2006-01-10  Simon Josefsson  <jas@extundo.com>
36053
36054         * modules/sys_socket: New file.
36055
36056 2006-01-10  Simon Josefsson  <jas@extundo.com>
36057
36058         * m4/sys_socket_h.m4: New file.
36059
36060 2006-01-10  Simon Josefsson  <jas@extundo.com>
36061
36062         * lib/socket_.h: New file.
36063
36064 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36065
36066         * modules/readutmp (Maintainer): Add myself.
36067
36068 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36069
36070         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
36071         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
36072         People who are still concerned with buggy memcmp implementations
36073         can invoke gl_FUNC_MEMCMP themselves.
36074
36075 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36076
36077         * lib/regex_internal.h (BITSET_WORD_BITS):
36078         Work around a bug in 64-bit PGC (before version 6.1-2), where the
36079         preprocessor mishandles large unsigned values as if they were signed.
36080         Problem reported by Claudio Fontana in
36081         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
36082
36083 2006-01-10  Jim Meyering  <jim@meyering.net>
36084
36085         Avoid the double-free (first in fts_read, second in fts_close) that
36086         would occur when an `active' directory is made inaccessible (e.g.,
36087         via chmod a-x) during a traversal.
36088         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
36089         before returning.  Reproduce this failure by
36090         mkdir -p a/b; cd a; chmod a-x . b
36091         Reported by Stavros Passas.
36092
36093         Sync from coreutils.
36094         * lib/sha1.c: Tweak grammar in a comment.
36095
36096 2006-01-10  Jim Meyering  <jim@meyering.net>
36097
36098         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
36099         Patch by Joerg Sonnenberger.
36100
36101 2006-01-10  Bruno Haible  <bruno@clisp.org>
36102
36103         * modules/readutmp: Depend on module free.
36104         * modules/strtok_r: Depend on module restrict.
36105
36106 2006-01-10  Bruno Haible  <bruno@clisp.org>
36107
36108         * modules/gettext (configure.ac): Add an invocation of
36109         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
36110
36111 2006-01-10  Bruno Haible  <bruno@clisp.org>
36112
36113         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
36114         Reported by Werner Lemberg <wl@gnu.org>.
36115
36116 2006-01-10  Bruno Haible  <bruno@clisp.org>
36117
36118         * lib/localcharset.c: Update from GNU gettext.
36119
36120 2006-01-10  Bruno Haible  <bruno@clisp.org>
36121
36122         * lib/argp.h (__const): Remove macro. Use const instead.
36123         * lib/argp-fmtstream.h (__const): Likewise.
36124         * lib/glob_.h (__const): Remove macro.
36125         * lib/glob-libc.h: Use const instead of __const.
36126
36127 2006-01-10  Bruno Haible  <bruno@clisp.org>
36128
36129         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
36130         variable.
36131         Needed to avoid an automake error regarding the 'gettext' module.
36132
36133 2006-01-09  Simon Josefsson  <jas@extundo.com>
36134
36135         * modules/inet_ntop (Depends-on): Add restrict.
36136
36137 2006-01-09  Simon Josefsson  <jas@extundo.com>
36138
36139         * modules/gc-rijndael-tests (License): Put under LGPL.
36140
36141         * modules/gc-des-tests (License): Likewise.
36142
36143         * modules/gc-arcfour-tests (License): Likewise.
36144
36145         * modules/gc-arctwo-tests (License): Likewise.
36146
36147         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
36148
36149         * modules/gc-hmac-sha1-tests (Files): Likewise.
36150
36151         * modules/gc-hmac-md5-tests (License): Likewise.
36152
36153         * modules/gc-sha1-tests (License): Likewise.
36154
36155         * modules/gc-md5-tests (License): Likewise.
36156
36157         * modules/gc-md4-tests (License): Likewise.
36158
36159         * modules/gc-md2-tests (License): Likewise.
36160
36161         * modules/gc-tests (License): Likewise.
36162
36163         * modules/des-tests (License): Likewise.
36164
36165         * modules/md4-tests (License): Likewise.
36166
36167         * modules/md2-tests (License): Likewise.
36168
36169 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36170
36171         Sync from coreutils:
36172
36173         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
36174         * modules/lib-ignore: New file.
36175         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
36176         chdir-safer.m4, lchmod.m4.
36177         * modules/openat: Add mkdirat.c, openat-priv.h.
36178
36179 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36180
36181         Sync from coreutils.
36182         * m4/lib-ignore.m4: New file.
36183         * m4/lchmod.m4: New file.
36184
36185 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36186
36187         Sync from coreutils.
36188         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
36189         for write access: POSIX says that must fail.
36190         * lib/fts.c (diropen): Likewise.
36191         * lib/save-cwd.c (save_cwd): Likewise.
36192         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
36193         well, for minor improvements on hosts that lack O_DIRECTORY.
36194         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
36195         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
36196         Fall back on chown if open failed with EACCES.
36197
36198         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
36199         Report an error at compile-time if only a 1-second nominal clock
36200         resolution is found.
36201
36202         * lib/lchmod.h: New file.
36203         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
36204         (make_dir_parents): Use lchown rather than chown, and
36205         lchmod rather than chmod.
36206
36207         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
36208         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
36209         "proc" reported by n0dalus.
36210
36211         * lib/mountlist.c: Include <limits.h>.
36212         (dev_from_mount_options)
36213         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
36214         New function.  It no longer assumes "dev=" has the System V meaning
36215         on Linux (since it doesn't).  It also parses "dev=" more carefully.
36216         (read_file_system_list)
36217         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
36218         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
36219         dev= in that case.
36220
36221         * lib/posixtm.h (PDS_PRE_2000): New macro.
36222         * lib/posixtm.c (year): Arg is now syntax_bits rather than
36223         allow_century.  All usages changed.  Reject dates outside the range
36224         1969-1999 if PDS_PRE_2000 is used.
36225
36226 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36227
36228         Sync from coreutils.
36229         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
36230         (Time of day items): Mention the possibility of leap seconds.
36231         Problem reported by Dr. David Alan Gilbert.
36232
36233 2006-01-09  Jim Meyering  <jim@meyering.net>
36234
36235         Sync from coreutils.
36236
36237         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
36238
36239         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
36240
36241         * lib/modechange.c (mode_compile): Reject an invalid mode string
36242         that starts with an octal digit.  From Andreas Gruenbacher.
36243
36244         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
36245         and dup to open_safer and dup_safer, respectively.
36246         (openat_permissive): Fix typo in comment.
36247
36248         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
36249         "gettext.h"; either no longer needed or are guaranteed by openat.h.
36250         (_): Remove; no longer needed.
36251         (openat): Renamed from rpl_openat; no need for rpl_openat
36252         since openat.h renames openat for us.
36253         Replace most of the body with a call to openat_permissive,
36254         to avoid duplicate code.
36255         Port to (probably hypothetical) environments were mode_t is
36256         wider than int.
36257         (openat_permissive): Require mode arg, so that we can check
36258         types better.  Put it just after flags.  Change cwd failure
36259         indicator from pointer-to-bool to pointer-to-errno-value.
36260         All callers changed.
36261         Invoke openat_save_fail and/or openat_restore_fail if
36262         cwd_errno is null, so that openat can call us.
36263         (openat_permissive, fdopendir, fstatat, unlinkat):
36264         Simplify errno handling to avoid some duplicate code,
36265         as it's OK to set errno on success.
36266         * lib/openat.h: Revamp code so that function macros depend on
36267         __OPENAT_PREFIX only, not also on AT_FDCWD.
36268         (openat_ro): Remove.  Caller changed to use openat_permissive.
36269         (openat_permissive): Now a macro, if not a function.
36270         (openat_restore_fail, openat_save_fail): Now always functions,
36271         since mkdirat needs them even if __OPENAT_PREFIX is defined.
36272
36273         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
36274         and openat.c.
36275         * lib/mkdirat.c: Include openat-priv.h.
36276         Remove definitions of macros defined therein.
36277         * lib/openat.c: Likewise.
36278
36279         * lib/mkdirat.c (mkdirat): New file and function.
36280         * lib/openat.h (mkdirat): Declare.
36281
36282         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
36283
36284         * lib/openat.h (openat_permissive): Declare.
36285         (openat_ro): Define.
36286
36287         * lib/openat.c (EXPECTED_ERRNO): New macro.
36288         (openat_permissive): New function -- used in remove.c rewrite.
36289         (all functions): Set errno just before returning, only if there
36290         was an actual failure.
36291         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
36292
36293         Emulate openat-family functions using Linux's procfs, if possible.
36294         Idea and some code based on Ulrich Drepper's glibc changes.
36295
36296         * lib/openat.c: (BUILD_PROC_NAME): New macro.
36297         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
36298         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
36299         before falling back on save_cwd and restore_cwd.
36300         (fdopendir, fstatat, unlinkat): Likewise.
36301
36302         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
36303         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
36304
36305         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
36306         as second argument to va_arg.  Otherwise, some versions of gcc
36307         warn that `if this code is reached, the program will abort'.
36308
36309 2006-01-09  Jim Meyering  <jim@meyering.net>
36310
36311         Sync from coreutils.
36312         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
36313         Require openat-priv.h.
36314
36315 2006-01-09  Bruno Haible  <bruno@clisp.org>
36316
36317         * modules/strnlen (Include): Use strnlen.h.
36318
36319 2006-01-09  Bruno Haible  <bruno@clisp.org>
36320
36321         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
36322
36323 2006-01-09  Bruno Haible  <bruno@clisp.org>
36324
36325         * lib/sysexit_.h (EX_OK): New macro.
36326         Suggested by Martin Lambers <marlam@marlam.de>.
36327
36328 2006-01-09  Bruno Haible  <bruno@clisp.org>
36329
36330         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
36331         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
36332
36333 2006-01-09  Bruno Haible  <bruno@clisp.org>
36334
36335         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
36336         numbers.
36337
36338 2006-01-09  Bruno Haible  <bruno@clisp.org>
36339
36340         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
36341         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
36342         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
36343         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
36344
36345 2006-01-09  Bruno Haible  <bruno@clisp.org>
36346
36347         * build-aux/javacomp.sh.in: New file, moved from lib/.
36348         * modules/javacomp-script (Files): Update.
36349         (configure.ac): Add AC_CONFIG_FILES invocation.
36350         (EXTRA_DIST): Remove variable.
36351
36352         * build-aux/javaexec.sh.in: New file, moved from lib/.
36353         * modules/javaexec (Files): Update.
36354         (configure.ac): Add AC_CONFIG_FILES invocation.
36355         (EXTRA_DIST): Remove javaexec.sh.in.
36356
36357         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
36358         * modules/csharpcomp-script (Files): Update.
36359         (configure.ac): Add AC_CONFIG_FILES invocation.
36360         (EXTRA_DIST): Remove variable.
36361
36362         * build-aux/csharpexec.sh.in: New file, moved from lib/.
36363         * modules/csharpexec (Files): Update.
36364         (configure.ac): Add AC_CONFIG_FILES invocation.
36365         (EXTRA_DIST): Remove csharpexec.sh.in.
36366
36367 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
36368
36369         Sync from coreutils.
36370
36371         Add POSIX ACL support
36372         * lib/acl.h (copy_acl, set_acl): Add declarations.
36373         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
36374         systems other than Linux.
36375         (chmod_or_fchmod): New function: use fchmod when possible,
36376         and chmod otherwise.
36377         (file_has_acl): Add a POSIX ACL implementation, with a
36378         Linux-specific subcase.
36379         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
36380         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
36381         acls are unsupported.
36382         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
36383         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
36384         are unsupported.
36385
36386 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
36387
36388         Sync from coreutils.
36389         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
36390
36391 2006-01-07  Bruno Haible  <bruno@clisp.org>
36392
36393         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
36394         gl_EARLY.
36395
36396 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36397
36398         * lib/strftime.c (tzname): Don't declare if it is already #defined.
36399         Problem reported for Mingw by Mark Junker.
36400
36401 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36402
36403         * README: Gnulib normally doesn't generate a tarball.
36404
36405 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
36406
36407         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
36408         long int, not int, for nanosecond counts, so that people who are
36409         used to POSIX struct timespec won't be surprised.  Reported by Jim
36410         Meyering.
36411
36412 2005-12-28  Bruno Haible  <bruno@clisp.org>
36413
36414         * build-aux/config.rpath: Update from GNU gettext.
36415
36416 2005-12-16  Jim Meyering  <jim@meyering.net>
36417
36418         * modules/fprintftime: New module.
36419         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
36420
36421 2005-12-16  Jim Meyering  <jim@meyering.net>
36422
36423         * m4/fprintftime.m4: New file.
36424
36425 2005-12-16  Jim Meyering  <jim@meyering.net>
36426
36427         * lib/fprintftime.c, lib/fprintftime.h: New files.
36428
36429 2005-12-15  Simon Josefsson  <jas@extundo.com>
36430
36431         * modules/socklen (configure.ac): Fix M4 macro name, to align with
36432         new m4/socklen.m4.
36433
36434 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
36435
36436         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
36437         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
36438
36439 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
36440
36441         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
36442         * lib/argp-help.c (fill_in_uparams): Check if the constructed
36443         struct uparams is valid. Fall back to the default values if it is
36444         not.
36445
36446 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36447
36448         * modules/argp (Files): Add argp-pin.c
36449         (Depends-on): dirname
36450         (lib_SOURCES): Add argp-pin.c
36451
36452 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36453
36454         * m4/argp.m4:  Check if program_invocation_name and
36455         program_invocation_short_name are declared and define appropriate
36456         macros if they are not.
36457
36458 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36459
36460         * lib/argp-help.c (__argp_base_name): New function
36461         (__argp_short_program_name): Rewrite using __argp_base_name
36462         * lib/argp-namefrob.h: Define program_invocation_name and
36463         program_invocation_short_name if requested
36464         (__argp_base_name): Add prototype
36465         * lib/argp-parse.c (argp_def): Use gettext wrappers
36466         (argp_default_parser): Use __argp_base_name
36467         * lib/argp-pin.c: New file. Defines program_invocation_name and
36468         program_invocation_short_name on systems that lack them.
36469
36470 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
36471
36472         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
36473         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
36474         porting problem reported by Georg Schwarz in
36475         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
36476
36477 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
36478
36479         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
36480         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
36481         porting problem reported by Georg Schwarz in
36482         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
36483
36484 2005-12-05  Bruno Haible  <bruno@clisp.org>
36485
36486         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
36487         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
36488         Reported by Mark Junker <mjscod@gmx.de>.
36489
36490 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
36491
36492         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
36493         Use implementation from Albert Chin, with some
36494         comments/corrections by Stepan Kasal and myself.
36495
36496 2005-12-02  Bruno Haible  <bruno@clisp.org>
36497
36498         * gnulib-tool (func_import): Accept GPLed build tool modules when
36499         --lgpl is given.
36500         * modules/csharpcomp-script: New file.
36501         * modules/csharpcomp: Depend on it.
36502         * modules/javacomp-script: New file.
36503         * modules/javacomp: Depend on it.
36504         Suggested by Simon Josefsson.
36505
36506 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
36507
36508         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
36509         statement, to work around an HP-UX 10.20 compiler bug reported by
36510         Peter O'Gorman.
36511
36512 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
36513
36514         * modules/savedir (Depends-on): Add openat.
36515
36516 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
36517
36518         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
36519         (uintmax_t) [defined uintmax_t]: Do not declare.
36520         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
36521         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
36522         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
36523         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
36524         sake of portability to weird hosts that C allows (though we don't
36525         know of any practical examples).
36526
36527         * lib/savedir.h (fdsavedir): New decl.
36528         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
36529         contains most of the former guts of savedir.
36530         (savedir): Use savedirstream.
36531         Include "openat.h".
36532
36533 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
36534
36535         * modules/obstack (Files): Add m4/ulonglong.m4.
36536         Problem reported by Davide Angelocola.
36537
36538 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
36539
36540         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
36541         coreutils no longer futzes with rounding modes.
36542
36543 2005-11-14  Jim Meyering  <jim@meyering.net>
36544
36545         * lib/mkstemp-safer.c: Include <config.h>, required for possible
36546         replacement of mkstemp.
36547
36548 2005-11-10  Simon Josefsson  <jas@extundo.com>
36549
36550         * lib/readline.c: Remove EOL.
36551
36552 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
36553
36554         * modules/gethrxtime (Depends-on): Add gettime.
36555
36556 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
36557
36558         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
36559         or gettimeofday; no longer needed.
36560
36561 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
36562
36563         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
36564         time business.
36565         (gethrxtime) [! (HAVE_NANOUPTIME
36566         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
36567         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
36568         our own approximation.
36569
36570 2005-11-08  Eric Blake  <ebb9@byu.net>
36571
36572         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
36573
36574 2005-11-08  Eric Blake  <ebb9@byu.net>
36575
36576         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
36577
36578 2005-11-04  Bruno Haible  <bruno@clisp.org>
36579
36580         * gnulib-tool: Implement --update mode.
36581
36582 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
36583
36584         Fix porting problem reported by Theodoros V. Kalamatianos.
36585         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
36586         Don't assume that futimes failing means we must fail.
36587
36588 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
36589
36590         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
36591         variables to suggest the intended function of the PATH_MAX check.
36592
36593 2005-10-30  Kean Johnston  <jkj@sco.com>
36594
36595         Trivial changes to support SCO systems.
36596         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
36597         as PATH_MAX.
36598         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
36599         where __ptr is null when no I/O is pending.
36600
36601 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
36602
36603         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
36604         leave errno alone.  Problem reported by Dmitry V. Levin.
36605
36606 2005-10-28  Simon Josefsson  <jas@extundo.com>
36607
36608         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
36609         Test more.
36610
36611         * tests/test-gc-md2.c, tests/test-md2.c: New files.
36612
36613         * modules/md2, modules/md2-tests: New files.
36614
36615 2005-10-28  Simon Josefsson  <jas@extundo.com>
36616
36617         * m4/inet_ntop.m4: More tests.
36618
36619         * m4/gc-md2.m4, md2.m4: New file.
36620
36621 2005-10-28  Simon Josefsson  <jas@extundo.com>
36622
36623         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
36624         "restrict" keywords, as per POSIX.  Protect the function
36625         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
36626         Don't use K&R prototypes.  Check the sprintf return values.
36627         Re-define EAFNOSUPPORT if not present.  Indent.
36628
36629         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
36630         suggested by Bruno Haible <bruno@clisp.org>.
36631
36632         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
36633
36634         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
36635
36636         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
36637         libgcrypt).
36638
36639         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
36640
36641         * lib/md2.h, lib/md2.c: New files.
36642
36643 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
36644
36645         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
36646         errno alone.  Problem reported by Frederic Jolliton.
36647
36648 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
36649
36650         * modules/verify (License): Change from GPL to LGPL.  This is a
36651         tiny module and there are apparently near-equivalents that are
36652         under the BSD license.
36653
36654 2005-10-24  Simon Josefsson  <jas@extundo.com>
36655
36656         * modules/sha1: Relicense to LGPL.
36657
36658 2005-10-24  Simon Josefsson  <jas@extundo.com>
36659
36660         * lib/md4.h: Shrink buffer size, now that we changed the type.
36661
36662 2005-10-23  Simon Josefsson  <jas@extundo.com>
36663
36664         * gnulib-tool (func_import): Fix --tests-base.
36665
36666 2005-10-22  Simon Josefsson  <jas@extundo.com>
36667
36668         * modules/arcfour (Depends-on): Need stdint.
36669
36670 2005-10-22  Simon Josefsson  <jas@extundo.com>
36671
36672         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
36673         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
36674
36675 2005-10-22  Simon Josefsson  <jas@extundo.com>
36676
36677         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
36678         suggested by Bruno Haible <bruno@clisp.org>.
36679
36680 2005-10-22  Simon Josefsson  <jas@extundo.com>
36681
36682         * lib/crc.h: Include stddef.h, for size_t.
36683
36684 2005-10-22  Simon Josefsson  <jas@extundo.com>
36685
36686         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
36687         arcfour_context struct (simplify test vector testing in GNU
36688         Shishi).
36689
36690 2005-10-21  Simon Josefsson  <jas@extundo.com>
36691
36692         * modules/des, modules/des-tests: New files.
36693
36694         * modules/gc-des, modules/gc-des-tests: New files.
36695
36696         * tests/test-des.c, tests/test-gc-des.c: New file.
36697
36698 2005-10-21  Simon Josefsson  <jas@extundo.com>
36699
36700         * modules/arctwo, modules/arctwo-tests: New files.
36701
36702         * tests/test-arctwo.c: New file.
36703
36704         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
36705
36706         * tests/test-gc-arctwo.c: New file.
36707
36708 2005-10-21  Simon Josefsson  <jas@extundo.com>
36709
36710         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
36711         Bruno Haible <bruno@clisp.org>.
36712
36713         * m4/gc-des.m4: New file.
36714
36715 2005-10-21  Simon Josefsson  <jas@extundo.com>
36716
36717         * m4/arctwo.m4: New file.
36718
36719         * m4/gc-arctwo.m4: New file.
36720
36721 2005-10-21  Simon Josefsson  <jas@extundo.com>
36722
36723         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
36724         block.
36725
36726 2005-10-21  Simon Josefsson  <jas@extundo.com>
36727
36728         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
36729         <bruno@clisp.org>.
36730
36731         * lib/hmac-sha1.c (hmac_sha1): Likewise.
36732
36733         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
36734         Bruno Haible <bruno@clisp.org>.
36735
36736         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
36737         <bruno@clisp.org>.
36738
36739 2005-10-21  Simon Josefsson  <jas@extundo.com>
36740
36741         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
36742
36743 2005-10-21  Simon Josefsson  <jas@extundo.com>
36744
36745         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
36746
36747 2005-10-21  Simon Josefsson  <jas@extundo.com>
36748
36749         * lib/des.h, lib/des.c: New files.
36750
36751         * lib/gc-gnulib.c: Support DES.c
36752
36753 2005-10-21  Simon Josefsson  <jas@extundo.com>
36754
36755         * lib/arctwo.h, lib/arctwo.c: New files.
36756
36757         * lib/gc-gnulib.c: Support ARCTWO.
36758
36759 2005-10-21  Simon Josefsson  <jas@extundo.com>
36760
36761         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
36762         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36763
36764 2005-10-21  Simon Josefsson  <jas@extundo.com>
36765
36766         * gnulib-tool (func_import, func_create_testdir): Define automake
36767         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
36768         Makefile.am snippet),
36769         suggested by Bruno Haible <bruno@clisp.org>.
36770
36771         * modules/gc (Makefile.am): Use it.
36772
36773 2005-10-21  Bruno Haible  <bruno@clisp.org>
36774
36775         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
36776         patch.
36777
36778 2005-10-19  Simon Josefsson  <jas@extundo.com>
36779
36780         * tests/test-gc-rijndael.c: New file.
36781
36782         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
36783
36784 2005-10-19  Simon Josefsson  <jas@extundo.com>
36785
36786         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
36787         interface too.
36788
36789 2005-10-19  Simon Josefsson  <jas@extundo.com>
36790
36791         * tests/test-gc-arcfour.c: New file.
36792
36793         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
36794
36795 2005-10-19  Simon Josefsson  <jas@extundo.com>
36796
36797         * modules/gc-md4, modules/gc-md4-tests: New file.
36798
36799         * tests/test-gc-md4.c: New file.
36800
36801 2005-10-19  Simon Josefsson  <jas@extundo.com>
36802
36803         * m4/gc-md4.m4: New file.
36804
36805 2005-10-19  Simon Josefsson  <jas@extundo.com>
36806
36807         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
36808         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
36809         <kasal@ucw.cz>.
36810
36811 2005-10-19  Simon Josefsson  <jas@extundo.com>
36812
36813         * m4/gc-arcfour.m4: New file.
36814
36815         * m4/gc-rijndael.m4: New file.
36816
36817 2005-10-19  Simon Josefsson  <jas@extundo.com>
36818
36819         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
36820
36821 2005-10-19  Simon Josefsson  <jas@extundo.com>
36822
36823         * lib/gc-gnulib.c: Support ARCFOUR.
36824
36825 2005-10-19  Simon Josefsson  <jas@extundo.com>
36826
36827         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
36828         support.
36829
36830         * lib/gc.h: Add ECB enum type.
36831
36832         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
36833
36834 2005-10-18  Simon Josefsson  <jas@extundo.com>
36835
36836         * tests/test-md5.c: New file.
36837
36838         * modules/md5-tests: New file.
36839
36840 2005-10-18  Simon Josefsson  <jas@extundo.com>
36841
36842         * tests/test-md4.c: New file.
36843
36844         * modules/md4, modules/md4-tests: New files.
36845
36846 2005-10-18  Simon Josefsson  <jas@extundo.com>
36847
36848         * m4/md4.m4: New file.
36849
36850 2005-10-18  Simon Josefsson  <jas@extundo.com>
36851
36852         * lib/md4.h, lib/md4.c: New files, based on md5.?.
36853
36854 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
36855
36856         * gnulib-tool (func_create_testdir): Omit the second check whether
36857         BUILT_SOURCES in nonempty.
36858
36859 2005-10-17  Simon Josefsson  <jas@extundo.com>
36860
36861         * tests/test-rijndael.c: New file.
36862
36863 2005-10-17  Simon Josefsson  <jas@extundo.com>
36864
36865         * modules/sha1: Depend on stdint instead of md5.
36866
36867         * modules/md5: Depend on stdint, remove uint32_t.
36868
36869 2005-10-17  Simon Josefsson  <jas@extundo.com>
36870
36871         * modules/gc-sha1-tests: New file.
36872
36873         * tests/test-gc-sha1.c: New file.
36874
36875 2005-10-17  Simon Josefsson  <jas@extundo.com>
36876
36877         * m4/md5.m4: Remove call to uint32_t.m4.
36878
36879 2005-10-17  Simon Josefsson  <jas@extundo.com>
36880
36881         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
36882
36883         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
36884         md5.h.
36885
36886         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
36887
36888         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
36889
36890 2005-10-17  Simon Josefsson  <jas@extundo.com>
36891
36892         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
36893
36894 2005-10-17  Simon Josefsson  <jas@extundo.com>
36895
36896         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
36897
36898 2005-10-17  Simon Josefsson  <jas@extundo.com>
36899
36900         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
36901
36902         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
36903
36904 2005-10-17  Bruno Haible  <bruno@clisp.org>
36905
36906         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
36907         that it can also be used in a test.
36908
36909 2005-10-16  Bruno Haible  <bruno@clisp.org>
36910
36911         * gnulib-tool (func_emit_tests_Makefile_am): Also define
36912         TESTS_ENVIRONMENT, so that individual tests can augment it.
36913
36914         * gnulib-tool (func_create_testdir): Use an intermediate target for
36915         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
36916         macros, like $(ALLOCA_H), which cannot be passed through the command
36917         line.
36918
36919 2005-10-15  Simon Josefsson  <jas@extundo.com>
36920
36921         * modules/rijndael-tests: New file.
36922
36923         * modules/rijndael: New file.
36924
36925 2005-10-15  Simon Josefsson  <jas@extundo.com>
36926
36927         * m4/rijndael.m4: New file.
36928
36929 2005-10-15  Simon Josefsson  <jas@extundo.com>
36930
36931         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
36932
36933         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
36934
36935 2005-10-14  Simon Josefsson  <jas@extundo.com>
36936
36937         * tests/test-arcfour.c: New file.
36938
36939         * modules/arcfour, modules/arcfour-tests: New files.
36940
36941 2005-10-14  Simon Josefsson  <jas@extundo.com>
36942
36943         * m4/arcfour.m4: New file.
36944
36945 2005-10-14  Simon Josefsson  <jas@extundo.com>
36946
36947         * lib/arcfour.h, lib/arcfour.c: New files.
36948
36949 2005-10-14  Roland McGrath  <roland@redhat.com>
36950
36951         Import from libc.  [BZ #1331]
36952         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
36953         macro argument.
36954         Reported by Matej Vela <vela@debian.org>.
36955
36956 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
36957
36958         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
36959         include <wchar.h>; no longer needed.
36960
36961 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
36962
36963         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
36964
36965 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
36966         and  Ulrich Drepper  <drepper@redhat.com>
36967
36968         Import from libc.
36969         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
36970         instead of inline stream orientation test and two separate
36971         function calls.  Pay no attention to USE_IN_LIBIO.
36972
36973 2005-10-13  Simon Josefsson  <jas@extundo.com>
36974
36975         * modules/gc-hmac-md5-tests: New file.
36976
36977         * tests/test-gc-hmac-sha1.c: New file.
36978
36979         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
36980
36981         * modules/gc-hmac-md5-tests: New file.
36982
36983         * tests/test-gc-md5.c: New file.
36984
36985         * modules/gc-md5-tests: New file.
36986
36987 2005-10-13  Simon Josefsson  <jas@extundo.com>
36988
36989         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
36990         Move memory allocation outside of loop.
36991
36992 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
36993
36994         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
36995         intermediate directory is in a read-only file system.  Problem
36996         reported by Eric Blake.
36997
36998 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
36999
37000         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
37001
37002 2005-10-12  Simon Josefsson  <jas@extundo.com>
37003
37004         * tests/test-hmac-sha1.c: New file.
37005
37006         * modules/hmac-sha1-tests: New file.
37007
37008         * modules/hmac-sha1: New file.
37009
37010 2005-10-12  Simon Josefsson  <jas@extundo.com>
37011
37012         * modules/gc-sha1: New file.
37013
37014 2005-10-12  Simon Josefsson  <jas@extundo.com>
37015
37016         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
37017
37018         * tests/test-gc-pbkdf2-sha1.c: New file.
37019
37020 2005-10-12  Simon Josefsson  <jas@extundo.com>
37021
37022         * modules/gc-md5, modules/gc-hmac-md5: New files.
37023
37024         * modules/gc (Files): Remove md5, memxor and hmac files.
37025
37026 2005-10-12  Simon Josefsson  <jas@extundo.com>
37027
37028         * m4/gc-pbkdf2-sha1.m4: New file.
37029
37030         * m4/gc-hmac-sha1.m4: New file.
37031
37032         * m4/gc-sha1: New file.
37033
37034         * m4/hmac-sha1.m4: New file.
37035
37036 2005-10-12  Simon Josefsson  <jas@extundo.com>
37037
37038         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
37039
37040         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
37041
37042 2005-10-12  Simon Josefsson  <jas@extundo.com>
37043
37044         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
37045         suggested by Bruno Haible <bruno@clisp.org>.
37046
37047 2005-10-12  Simon Josefsson  <jas@extundo.com>
37048
37049         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
37050
37051 2005-10-12  Simon Josefsson  <jas@extundo.com>
37052
37053         * lib/gc-pbkdf2-sha1.c: New file.
37054
37055         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
37056
37057 2005-10-12  Simon Josefsson  <jas@extundo.com>
37058
37059         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
37060
37061         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
37062
37063 2005-10-12  Simon Josefsson  <jas@extundo.com>
37064
37065         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
37066         GC_USE_HMAC_MD5, respectively.
37067
37068         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
37069         (gc_md5): Fix typo.
37070
37071         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
37072
37073         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
37074
37075         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
37076
37077 2005-10-12  Bruno Haible  <bruno@clisp.org>
37078
37079         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
37080         Reported by Stepan Kasal <kasal@ucw.cz>.
37081
37082 2005-10-11  Simon Josefsson  <jas@extundo.com>
37083
37084         * tests/test-crc.c: New file.
37085
37086         * modules/crc, modules/crc-tests: New files.
37087
37088 2005-10-11  Simon Josefsson  <jas@extundo.com>
37089
37090         * m4/crc.m4: New file.
37091
37092 2005-10-11  Simon Josefsson  <jas@extundo.com>
37093
37094         * lib/gc.h: Add gc_hash and gc_hash_buffer.
37095
37096         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
37097
37098         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
37099
37100 2005-10-11  Simon Josefsson  <jas@extundo.com>
37101
37102         * lib/crc.h, lib/crc.c: New files.
37103
37104         * lib/gc.h (gc_hash_buffer): Add doc.
37105
37106 2005-10-11  Bruno Haible  <bruno@clisp.org>
37107
37108         * modules/c-strcasestr: New file.
37109         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
37110
37111 2005-10-11  Bruno Haible  <bruno@clisp.org>
37112
37113         * modules/c-strcase: New file.
37114         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
37115
37116 2005-10-11  Bruno Haible  <bruno@clisp.org>
37117
37118         * lib/strcasecmp.c: Include limits.h.
37119         (strcasecmp): Avoid integer overflow on exotic platforms.
37120         * lib/strncasecmp.c: Include limits.h.
37121         (strncasecmp): Avoid integer overflow on exotic platforms.
37122         Reported by Paul Eggert.
37123
37124 2005-10-11  Bruno Haible  <bruno@clisp.org>
37125
37126         * lib/c-strcasestr.h: New file, from GNU gettext.
37127         * lib/c-strcasestr.c: New file, from GNU gettext.
37128
37129 2005-10-11  Bruno Haible  <bruno@clisp.org>
37130
37131         * lib/c-strcase.h: New file, from GNU gettext.
37132         * lib/c-strcasecmp.c: New file, from GNU gettext.
37133         * lib/c-strncasecmp.c: New file, from GNU gettext.
37134
37135 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
37136
37137         * modules/mempcpy (License): GPL -> LGPL.
37138         * modules/strchrnul (License): Likewise.
37139         * modules/sysexits (License): Likewise.
37140
37141 2005-10-08  Simon Josefsson  <jas@extundo.com>
37142
37143         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
37144
37145 2005-10-07  Simon Josefsson  <jas@extundo.com>
37146
37147         * m4/memxor.m4: Remove gl_C_RESTRICT call.
37148
37149 2005-10-06  Simon Josefsson  <jas@extundo.com>
37150
37151         * tests/test-hmac-md5.c: New file.
37152
37153         * modules/hmac-md5-tests: New file.
37154
37155         * modules/hmac-md5: New file.
37156
37157 2005-10-06  Simon Josefsson  <jas@extundo.com>
37158
37159         * m4/hmac-md5.m4: New file.
37160
37161         * m4/memxor.m4: Require gl_C_RESTRICT.
37162
37163 2005-10-06  Simon Josefsson  <jas@extundo.com>
37164
37165         * lib/memxor.c (memxor): Avoid casts and warnings.
37166
37167 2005-10-06  Simon Josefsson  <jas@extundo.com>
37168
37169         * lib/hmac-md5.c: New file.
37170
37171         * lib/hmac.h: New file.
37172
37173 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
37174
37175         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
37176         promotes to int, not unsigned int, to catch the AIX 5.3
37177         compiler bug.
37178
37179 2005-10-05  Simon Josefsson  <jas@extundo.com>
37180
37181         * modules/memxor: New file.
37182
37183         * modules/iconv (Files): Move config.rpath to havelib, it is used
37184         there.
37185
37186         * modules/havelib (Files): Add config.rpath.
37187
37188 2005-10-05  Simon Josefsson  <jas@extundo.com>
37189
37190         * m4/memxor.m4: New file.
37191
37192 2005-10-05  Simon Josefsson  <jas@extundo.com>
37193
37194         * lib/memxor.c (memxor): Fix compiler error.
37195
37196         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
37197         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
37198
37199         * lib/memxor.h, lib/memxor.c: New files.
37200
37201         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
37202         we assume all systems have it, suggested by Jim Meyering
37203         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
37204         any systems lack sys/socket.h; mingw32 is known to lack it, but we
37205         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
37206         same reasons.
37207
37208 2005-10-05  Simon Josefsson  <jas@extundo.com>
37209
37210         * config/srclist.txt: Add glibc bug 1423 for md5.h.
37211
37212 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
37213
37214         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
37215         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
37216         needed, since the source code now assumes these .h files.
37217
37218 2005-10-05  Derek Price  <derek@ximbiot.com>
37219
37220         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
37221
37222 2005-10-05  Bruno Haible  <bruno@clisp.org>
37223
37224         * modules/stdint (License): Change to LGPL.
37225
37226 2005-10-04  Simon Josefsson  <jas@extundo.com>
37227
37228         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
37229         D. Baushke" <mdb@gnu.org>.
37230
37231 2005-10-04  Bruno Haible  <bruno@clisp.org>
37232
37233         * lib/verify.h (verify_true): Provide alternative definition for C++.
37234
37235 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
37236
37237         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
37238         (SSIZE_MAX): New macro, if not already defined.
37239         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
37240         than 2 GiB.
37241
37242 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
37243
37244         Sync from coreutils.
37245         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
37246         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
37247         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
37248         ULLONG_MAX doesn't work with 2.7.2.1.
37249
37250 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
37251
37252         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
37253         From Ben Pfaff.
37254
37255         * modules/exclude (Depends-on): Depend on verify.
37256         * modules/strtoimax (Depends-on): Likewise.
37257         * modules/utimecmp (Depends-on): Likewise.
37258
37259 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
37260
37261         * lib/exclude.c: Include verify.h.
37262         (verify): Remove.  All callers changed to use verify.h's version.
37263         * lib/strtoimax.c: Likewise.
37264         * lib/utimecmp.c: Likewis.e
37265
37266         Sync from coreutils.
37267         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
37268         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
37269         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
37270         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
37271         bother returning ENOSYS if settimeofday or stime fails; just let
37272         them return whatever errno they want to return.
37273         * lib/utimens.c: Include unistd.h, for dup2.
37274         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
37275         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
37276
37277 2005-10-02  Jim Meyering  <jim@meyering.net>
37278
37279         Sync from coreutils.
37280         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
37281         from glibc-2.2.5 that fails for read-only files.
37282
37283 2005-10-02  Jim Meyering  <jim@meyering.net>
37284
37285         Sync from coreutils.
37286         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
37287         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
37288         `#if HAVE_CONFIG_H'.
37289         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
37290         Remove AT_FDCWD test.
37291         Do not consume the fd unless successful.
37292         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
37293         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
37294         block, so that we don't even try to compile it if settimeofday is
37295         available.  This works around a compilation failure on OSF1 V5.1,
37296         due to stime requiring a `long int*' while tv_sec is `int'.
37297
37298 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
37299
37300         Sync from coreutils.
37301         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
37302         against `yes', rather than just testing for nonempty.
37303
37304 2005-10-01  Simon Josefsson  <jas@extundo.com>
37305
37306         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
37307         and Darwin.
37308
37309         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
37310         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
37311         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
37312         freeaddrinfo and gai_strerror are declared by the POSIX headers.
37313         Check if struct addrinfo is declared.
37314
37315 2005-10-01  Simon Josefsson  <jas@extundo.com>
37316
37317         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
37318         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
37319         AI_* and EAI_* definitions.  Protect function declarations.
37320
37321 2005-10-01  Jim Meyering  <jim@meyering.net>
37322
37323         Sync from coreutils.
37324
37325         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
37326         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
37327         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
37328         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
37329         in the inet and nsl libraries.  Required on Solaris 5.7.
37330
37331 2005-10-01  Jim Meyering  <jim@meyering.net>
37332
37333         Sync from coreutils.
37334         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
37335         in the inet and nsl libraries.  Required on Solaris 5.7.
37336
37337 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
37338
37339         * lib/getdelim.c (getdelim): Remove unused variables.
37340
37341 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
37342
37343         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
37344         so that the code works even with ancient cpp.  Portability problem
37345         with GCC 2.7.2.1 reported by Thomas M.Ott.
37346
37347 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
37348
37349         * modules/regex (Depends-on): Add strcase.
37350
37351         * modules/gethostname (Licence): Change from GPL to LGPL, since
37352         gethostname.c is a trivial implementation of a standard library
37353         function.
37354         * modules/poll (License): Change from GPL to LGPL, since it's
37355         derived from LGPL code.
37356
37357 2005-09-27  Jim Meyering  <jim@meyering.net>
37358
37359         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
37360         HAVE_CONFIG_H.
37361
37362         * lib/intprops.h (signed_type_or_expr__): Define.
37363         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
37364         for unsigned types.
37365
37366 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
37367
37368         * lib/verify.h (verify_expr): Remove, replacing with:
37369         (verify_true): New macro that returns true instead of void.
37370         (verify_type__): Remove.
37371         (verify): Use verify_true rather than verify_type__.
37372
37373 2005-09-26  Bruno Haible  <bruno@clisp.org>
37374
37375         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
37376         is necessary.
37377         (lib_SOURCES): Remove mbchar.c.
37378         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
37379         (Files): Add m4/mbrtowc.m4.
37380         * modules/mbiter: Likewise.
37381         * modules/mbuiter: Likewise.
37382
37383 2005-09-26  Bruno Haible  <bruno@clisp.org>
37384
37385         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
37386         compile mbchar.c if they are not both present.
37387         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
37388         * m4/mbiter.m4 (gl_MBITER): Likewise.
37389         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
37390         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
37391         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
37392
37393 2005-09-25  Jim Meyering  <jim@meyering.net>
37394
37395         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
37396         also uses socklen_t.
37397
37398 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
37399
37400         * lib/utimens.c (ENOSYS): Define if not already defined.
37401         (futimens): Support having a null PATH if the file descriptor
37402         is nonnegative.
37403
37404         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
37405         Remove.
37406         (__attribute): Define to empty unless GCC 3.1 or later.
37407         This works around a core dump on OpenBSD 3.4, which has GCC
37408         2.95.3, which dumps core when given __attribute__(()).  It also
37409         simplifies other tests, since we really don't want to bother with
37410         worrying about which ancient version of GCC supported what.
37411         Original problem reported by Yoann Vandoorselaere, with part of
37412         the fix suggested by Derek Price.
37413
37414 2005-09-24  Jim Meyering  <jim@meyering.net>
37415
37416         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
37417         so we can once again use a positive bitfield width of 1 -- now we
37418         don't have to explain why we were using a bitfield width of 2.
37419
37420 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
37421
37422         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
37423         and similarly for the other external symbols.  Problem reported
37424         by James Gallager.
37425
37426         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
37427         bug reported by Jim Meyering.
37428
37429         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
37430         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
37431         not needed, since socklen is a prerequisite module.
37432
37433 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
37434
37435         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
37436         Problem reported by Eric Blake.
37437         (getaddrinfo): Initialize se so that it's not garbage.
37438         Redo internal storage allocation so that it doesn't make unportable
37439         assumptions about alignment.
37440         Fix a memory leak.
37441
37442         * lib/utimens.c (futimens): Use futimesat if available.
37443         Prefer it to futimes since it doesn't have the futimes bug.
37444
37445         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
37446         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
37447         Instead, declare a function that returns a pointer to an array,
37448         and use verify_type__ to declare the size of the array.
37449         Problem and germ of a solution reported by Bruno Haible.
37450         (verify_type__): Use 2, not 1, for bitfield size, to avoid
37451         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
37452
37453 2005-09-23  Jim Meyering  <jim@meyering.net>
37454
37455         Sync from coreutils.
37456         Correct build failure (socklen_t not defined) on at least
37457         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
37458         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
37459
37460 2005-09-23  Jim Meyering  <jim@meyering.net>
37461
37462         * modules/getaddrinfo (Depends-on): Add socklen.
37463
37464 2005-09-23  Bruno Haible  <bruno@clisp.org>
37465
37466         * tests/test-verify.c: New file.
37467
37468 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37469
37470         Sync from coreutils.
37471
37472         * modules/argmatch (Depends-on): Add verify.
37473         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
37474         unistd-safer.
37475         * modules/save-cwd (Depends-on): Likewise.
37476
37477         * modules/openat (Files): Add lib/openat-die.c.
37478         (Depends-on): Remove error, exitfail.
37479         Add dirname.
37480
37481         * modules/verify: New file.
37482         * MODULES.html.sh (Diagnostics <assert.h>): New section,
37483         with "verify" module.
37484
37485 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37486
37487         Sync from coreutils.
37488
37489         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
37490         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
37491         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
37492         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
37493         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
37494         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
37495         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
37496         Don't bother checking for string.h, stdlib.h, unistd.h.
37497         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
37498         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
37499         module's job.
37500         * m4/jm-macros.m4 (gl_MACROS): Likewise.
37501         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
37502
37503         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
37504         (gl_GETDATE): Use it.
37505
37506         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
37507
37508 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37509
37510         Sync from coreutils.
37511
37512         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
37513         stat-time.h.
37514         * lib/argmatch.h: Include verify.h
37515         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
37516         (ARGMATCH_ASSERT): Remove; unused.
37517         * lib/canonicalize.c: Assume STDC_HEADERS.
37518         * lib/exclude.c: Include "strcase.h".
37519         * lib/regex_internal.h [!defined _LIBC]: Likewise.
37520         * lib/getusershell.c: Include stdio--.h rather than stdio.h
37521         and stdio-safer.h.
37522         (getusershell): Call fopen, not fopen_safer.
37523         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
37524         Do not include unistd-safer.h.
37525         (save_cwd): Don't call fd_safer; no longer needed
37526         now that we include fcntl--.h.
37527
37528         * lib/getdate.y (relative_time): New type.
37529         (RELATIVE_TIME_0): New constant.
37530         (parser_control): Use relative_time instead of doing it ourselves.
37531         (%union): Add new relative_time rel member.
37532         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
37533         Now typeless.
37534         (relunit, relunit_snumber): Now of type rel.
37535         (zone, rel, relunit, get_date): Adjust to above changes.
37536
37537         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
37538         Do not include unistd-safer.h.
37539         (getloadavg): Don't call fd_safer; no longer needed
37540         now that we include fcntl--.h.
37541
37542         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
37543         (make_dir_parents): Treat ENOSYS like EEXIST.
37544
37545         Improve quality of diagnostics on restore_cwd failure.
37546         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
37547         (make_dir_parents): Last arg is now int * (for errno), not bool *.
37548         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
37549         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
37550         each time through the loop.  Do not diagnose restore_cwd failure;
37551         that is the caller's job (and perhaps the caller does not care).
37552
37553         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
37554         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
37555         If the file already exists but is not a directory, don't bother
37556         to try to make its parents.
37557         Close potential file descriptor leak if we can't chdir("/") (!).
37558         Don't always return true if chdir($PWD) fails; return true only
37559         if the requested action was done successfully (except for the
37560         chdir($PWD)).
37561         Don't log final directory unless we actually made it.
37562         Refactor to avoid duplicate code to fix up permissions.
37563         Don't attempt to fix up parent permissions if chdir($PWD) fails.
37564
37565         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
37566         to make it a bit faster and (I hope) clearer.
37567         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
37568         Fix bug in formats like %2N.
37569
37570         * lib/verify.h: New file.
37571
37572 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37573
37574         Sync from coreutils.
37575         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
37576
37577 2005-09-22  Jim Meyering  <jim@meyering.net>
37578
37579         Sync from coreutils.
37580
37581         * m4/lstat.m4 (gl_FUNC_LSTAT):
37582         Use AC_LIBSOURCES to require lstat.c and lstat.h.
37583         Remove obsolete comment.
37584         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
37585         * m4/xstrtod.m4: Likewise.
37586
37587         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
37588
37589 2005-09-22  Jim Meyering  <jim@meyering.net>
37590
37591         Sync from coreutils.
37592
37593         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
37594
37595         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
37596         the .tm_year member, since otherwise gcc-4.0 would now warn about
37597         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
37598
37599         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
37600         order to avoid an unsuppressible warning from gcc on 64-bit systems.
37601
37602         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
37603         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
37604         when run in a time zone for which daylight savings time is in effect
37605         for the starting date.
37606
37607         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
37608         stop us from restricting permissions of just-created absolute-named
37609         directories.
37610         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
37611         to restore initial working directory.
37612         * lib/mkdir-p.c (make_dir_parents): New parameter:
37613         different_working_dir, to tell caller if/when we change the working
37614         directory and are unable to return to the initial one.
37615         * lib/mkdir-p.h (make_dir_parents): Update prototype.
37616         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
37617         `return false'.  This fixes a bug introduced on 2004-07-30.
37618
37619         * lib/openat.c (fdopendir): Be sure to close the supplied
37620         file descriptor before returning.  This makes our replacement
37621         implementation a little closer to Solaris's, where fdopendir
37622         ties the file descriptor to the returned DIR* pointer.
37623         * lib/openat.c (unlinkat): New function.
37624         * lib/openat.h (unlinkat): Add prototype.
37625         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
37626         (openat_restore_fail): Rename from openat_restore_die.
37627         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
37628
37629         Provide an alternative to exiting immediately upon save_cwd or
37630         restore_cwd failure.  Now, an application can arrange e.g.,
37631         to perform a longjump in that case.
37632         * lib/openat.c: Include dirname.h.
37633         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
37634         (rpl_openat, fdopendir, fstatat): Call openat_save_die
37635         and openat_restore_die rather than calling error directly.
37636         Don't include "error.h" or "exitfail.h"; they're no longer needed.
37637
37638         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
37639         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
37640         define.
37641
37642         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
37643         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
37644                             int utc, int nanoseconds);
37645         Background:
37646         date should not have to allocate a megabyte of virtual memory to
37647         handle a format argument like +%1048575T.  When implemented with
37648         strftime, it must allocate such a buffer, use strftime to fill it
37649         in, print it, then free it.
37650         With fprintftime, it simply prints everything and exits.
37651         With no need for memory allocation, that's one fewer way to fail.
37652         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
37653         optional field width, not before, so we accept %9:z, not %:9z.
37654         (my_strftime): Be sure to use L_('x') for literals.
37655
37656         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
37657         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
37658         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
37659         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
37660         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
37661         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
37662         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
37663         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
37664         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
37665         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
37666         * lib/xgethostname.c, lib/xreadlink.c:
37667         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
37668
37669         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
37670         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
37671         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
37672         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
37673         and don't include <sys/file.h>).
37674
37675 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
37676
37677         Sync from coreutils.
37678
37679         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
37680         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
37681         [!LDAV_DONE]: Avoid unused variable warning.
37682
37683 2005-09-21  Bruno Haible  <bruno@clisp.org>
37684
37685         * lib/unicodeio.h (unicode_to_mb): New declaration.
37686
37687 2005-09-20  Derek Price  <derek@ximbiot.com>
37688
37689         * lib/getaddrinfo.c: Don't include <netdb.h> included from
37690         getaddrinfo.h.
37691
37692 2005-09-20  Bruno Haible  <bruno@clisp.org>
37693
37694         * gnulib-tool: Remove trailing slashes from the values specified for
37695         --source-base, --m4-base, --tests-base, --aux-dir.
37696         Suggested by Simon Josefsson <jas@extundo.com>.
37697
37698 2005-09-20  Bruno Haible  <bruno@clisp.org>
37699
37700         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
37701         func_modules_to_filelist, func_import, func_create_testdir): Make all
37702         sorting results locale-independent, so that gnulib-cache.m4 doesn't
37703         change when gnulib-tool is invoked in a different locale.
37704
37705 2005-09-19  Simon Josefsson  <jas@extundo.com>
37706
37707         * m4/socklen.m4: Fix typo.
37708
37709 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37710
37711         Use a consistent style for including <config.h>.
37712         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
37713         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
37714         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
37715         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
37716         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
37717         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
37718         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
37719         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
37720         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
37721         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
37722         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
37723         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
37724         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
37725         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
37726         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
37727         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
37728         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
37729         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
37730         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
37731         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
37732         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
37733         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
37734         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
37735         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
37736         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
37737         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
37738         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
37739         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
37740         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
37741         lib/xstrtoumax.c, lib/yesno.c:
37742         Standardize inclusion of config.h.
37743         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
37744         lib/inttostr.h:  Removed inclusion of config.h from header files.
37745         * lib/inttostr.c:  Adjusted in-tree users.
37746         * lib/timespec.h: Remove superfluous warning to include config.h.
37747         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
37748         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
37749         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
37750         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
37751         config.h with HAVE_CONFIG_H.
37752
37753 2005-09-19  Jim Meyering  <jim@meyering.net>
37754
37755         * modules/pathmax (License): Change to LGPL.
37756
37757 2005-09-19  Derek Price  <derek@ximbiot.com>
37758
37759         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
37760
37761 2005-09-19  Bruno Haible  <bruno@clisp.org>
37762
37763         * gnulib-tool (import): Provide default for --tests-base.
37764
37765 2005-09-19  Bruno Haible  <bruno@clisp.org>
37766
37767         * doc/quote.texi: New file, extracted from gnulib.texi.
37768         * doc/ctime.texi: New file, extracted from gnulib.texi.
37769         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
37770         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
37771         * doc/gnulib.texi: Include them.
37772
37773 2005-09-18  Bruno Haible  <bruno@clisp.org>
37774
37775         Portability fix.
37776         * gnulib-tool (func_readlink): New function.
37777         (func_ln_if_changed): Use it.
37778
37779 2005-09-18  Bruno Haible  <bruno@clisp.org>
37780
37781         * gnulib-tool: Support --with-tests also with --import.
37782         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
37783         (func_import): Use variables $testsbase and $inctests. Emit a
37784         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
37785         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
37786         SUBDIRS += $testsdir.
37787         (func_create_testdir): Update.
37788
37789 2005-09-18  Bruno Haible  <bruno@clisp.org>
37790
37791         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
37792         instead of $dry_run.
37793         (func_cp_if_changed, func_mv_if_changed): Remove functions.
37794         (func_ln_if_changed): Don't handle dry-run here.
37795         (func_import): In dry-run mode, detect more precisely which actions
37796         would be performed, and don't use "...ing" verbs.
37797
37798 2005-09-18  Bruno Haible  <bruno@clisp.org>
37799
37800         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
37801         (func_import): Use join on two temporary files instead of three nested
37802         loops, in order to determine which files are new or old.
37803
37804 2005-09-18  Bruno Haible  <bruno@clisp.org>
37805
37806         * gnulib-tool (func_import): Comment out code that spits out the
37807         new files with --dry-run.
37808
37809 2005-09-18  Bruno Haible  <bruno@clisp.org>
37810
37811         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
37812
37813 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
37814
37815         * lib/stat-time.h: New file.
37816         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
37817         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
37818         in a different way.
37819         (timespec_cmp): New function.
37820         * lib/utimecmp.c: Include stat-time.h.
37821         (SYSCALL_RESOLUTION): Depend on whether various struct stat
37822         members exist, not on the obsolescent ST_MTIM_NSEC.
37823         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
37824
37825 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
37826
37827         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
37828
37829 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
37830
37831         * MODULES.html.sh (File system functions): Add stat-time.
37832         * modules/stat-time: New file.
37833         * modules/timespec (Files): Remove m4/st_mtim.m4; this
37834         is now done in a different way, by the stat-time module.
37835         * modules/utimecmp (Depends-on): Add stat-time.
37836
37837 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
37838
37839         * m4/st_mtim.m4: Remove.  Superseded by...
37840         * m4/stat-time.m4: New file.
37841         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
37842         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
37843
37844 2005-09-15  Derek Price  <derek@ximbiot.com>
37845
37846         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
37847
37848 2005-09-15  Derek Price  <derek@ximbiot.com>
37849
37850         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
37851         * lib/regex_internal.c: Ditto, using this...
37852         (__GNUC_PREREQ): ...new macro.
37853         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
37854         using...
37855         (__GNUC_PREREQ): ...this new macro.
37856
37857         * lib/strstr.h: Include string.h. Define strstr as a macro here.
37858
37859 2005-09-15  Derek Price  <derek@ximbiot.com>
37860             Paul Eggert  <eggert@cs.ucla.edu>
37861
37862         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
37863         changes, consolidating in...
37864         * lib/regex_internal.h: ...this file.
37865
37866 2005-09-13  Jim Meyering  <jim@meyering.net>
37867
37868         * lib/canon-host.c: Filter through gnu indent and reword comments
37869         slightly.
37870         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
37871
37872 2005-09-13  Derek Price  <derek@ximbiot.com>
37873
37874         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
37875         failure.
37876         Reported by Jim Meyering  <jim@meyering.net>.
37877
37878 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
37879
37880         * lib/base64.c: Typo.
37881         (base64_encode): Put b64str in initialized data section.
37882
37883 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
37884
37885         Merge glibc and coreutils changes into gnulib, plus a few
37886         extra fixes.
37887         * lib/md5.c: Use #error rather than a string.
37888         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
37889         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
37890         (__attribute__): Define to empty for non recent-GCC.
37891         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
37892         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
37893         Renamed from their non-__ counterparts, with new macros replacing
37894         them if not _LIBC.  Add __THROW attribute.
37895         (rol): Remove.
37896         (struct md5_ctx): Align buffer if using GCC.
37897         * lib/sha1.h (struct sha1_ctx): Likewise.
37898         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
37899         The old name was backwards.
37900         (NOTSWAP): Remove; not used.
37901         (rol): New macro, moved here from md5.h.
37902         (sha1_process_block): Remove a FIXME that doesn't make sense.
37903
37904 2005-09-12  Derek Price  <derek@ximbiot.com>
37905
37906         Return usable errors from canon-host.
37907         * lib/canon-host.h: New file.
37908         * lib/canon-host.c (canon_host): Wrap...
37909         (canon_host_r): ...this new function, which now relies exclusively on
37910         getaddrinfo.
37911         (ch_strerror): New function.
37912         (last_cherror): New global.
37913         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
37914         interface.
37915         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
37916         void *.
37917         (freeaddrinfo): Free ai->ai_canonname when set.
37918
37919 2005-09-12  Derek Price  <derek@ximbiot.com>
37920
37921         Make canon-host require getaddrinfo.
37922         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
37923         AC_LIBSOURCE canon-host.h.  Call...
37924         (gl_PREREQ_CANON_HOST): ...this new function, which requires
37925         gl_GETADDRINFO.
37926         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
37927
37928 2005-09-12  Derek Price  <derek@ximbiot.com>
37929
37930         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
37931         LGPL.
37932         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
37933
37934 2005-09-12  Derek Price  <derek@ximbiot.com>
37935
37936         * lib/gai_strerror.c: Include config.h when available.  Include
37937         getaddrinfo.h before other headers to test interface.
37938         Reported by Larry Jones <lawrence.jones@ugs.com>.
37939
37940 2005-09-12  Derek Price  <derek@ximbiot.com>
37941             Paul Eggert  <eggert@cs.ucla.edu>
37942
37943         * modules/glob (Files): Add glob-libc.h.
37944
37945 2005-09-12  Derek Price  <derek@ximbiot.com>
37946             Paul Eggert  <eggert@cs.ucla.edu>
37947
37948         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
37949         glob_.h, glob-libc.h.
37950         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
37951
37952 2005-09-12  Derek Price  <derek@ximbiot.com>
37953             Paul Eggert  <eggert@cs.ucla.edu>
37954
37955         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
37956         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
37957         protecting things that should be done only in gnulib contexts.
37958         * lib/glob_.h: New file, containing only the glob things needed for
37959         gnulib.
37960         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
37961         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
37962         (glob, globfree, glob_pattern_p): Now defined simply in terms of
37963         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
37964         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
37965         and to respect the namespace rules better.
37966
37967 2005-09-08  Simon Josefsson  <jas@extundo.com>
37968
37969         * modules/socklen: New file.
37970
37971 2005-09-08  Simon Josefsson  <jas@extundo.com>
37972
37973         * m4/socklen.m4: New file.
37974
37975 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
37976
37977         * modules/utimens (Files): Add m4/utimbuf.m4, since
37978         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
37979         Reported by Sergey Poznyakoff.
37980
37981 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
37982
37983         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
37984         definitions, since that's the preferred style in glibc.
37985         Fix a minor spacing issue, and update copyright notice to match
37986         glibc's.
37987
37988 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
37989
37990         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
37991
37992 2005-09-06  Simon Josefsson  <jas@extundo.com>
37993
37994         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
37995         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
37996
37997 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
37998
37999         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
38000         warning.
38001
38002 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
38003
38004         * config/srclist.txt: Add glibc bug 1302.
38005
38006 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
38007
38008         Change bitset word type from unsigned int to unsigned long int,
38009         as this has better performance on typical 64-bit hosts.
38010         Port bitset code to hosts with unusual word sizes.
38011         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
38012         (build_collating_symbol):
38013         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
38014         argument is a bitset.  This is merely a style issue, but it makes
38015         it clearer that an entire array is expected.
38016         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
38017         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
38018         Port to the case where bitset_word is not the same as unsigned int.
38019         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
38020         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
38021         Likewise.
38022         * lib/regexec.c (check_dst_limits_calc_pos_1,
38023         check_subexp_matching_top):
38024         (build_trtable, group_nodes_into_DFAstates):
38025         Likewise.
38026         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
38027         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
38028         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
38029         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
38030         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
38031         * lib/regcomp.c (optimize_subexps, lower_subexp):
38032         Work even if bitset_word has holes in its bitwise representation.
38033         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
38034         * lib/regexec.c (check_dst_limits_calc_pos_1,
38035         check_subexp_matching_top):
38036         Likewise.
38037         * lib/regex_internal.c (re_string_reconstruct):
38038         Don't assume UCHAR_MAX == 255.
38039         * lib/regex_internal.h (bitset_set_all): Likewise.
38040         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
38041         All uses changed.
38042         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
38043         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
38044         All uses changed.
38045         (BITSET_WORD_MAX): New macro.
38046         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
38047         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
38048         (bitset_empty, bitset_copy):
38049         Prefer sizeof (bitset) to multiplying it out ourselves.
38050         (bitset_not_merge): Remove; unused.
38051         (bitset_contain): Return bool, not unsigned int with one bit on.
38052         All callers changed.
38053         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
38054         alignment than re_node_set; do this by defining a new internal
38055         type struct dests_alloc and using it to allocate memory.
38056
38057 2005-09-05  Bruno Haible  <bruno@clisp.org>
38058
38059         * gnulib-tool (func_import): Fix comparison in handling of symbolic
38060         links.
38061
38062 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
38063
38064         * modules/size_max (Makefile.am): Add size_max.h
38065
38066 2005-09-04  Derek Price  <derek@ximbiot.com>
38067
38068         * gnulib-tool (func_import): Fix reversed $symbolic logic.
38069
38070 2005-09-03  Simon Josefsson  <jas@extundo.com>
38071
38072         * gnulib-tool: Fix typo.
38073
38074 2005-09-03  Simon Josefsson  <jas@extundo.com>
38075
38076         * config/srclist.txt: Add glibc bug 1293.
38077
38078 2005-09-03  Derek Price  <derek@ximbiot.com>
38079
38080         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
38081         From Larry Jones <lawrence.jones@ugs.com>.
38082
38083 2005-09-02  Simon Josefsson  <jas@extundo.com>
38084
38085         * modules/socklen: New file.
38086
38087 2005-09-02  Simon Josefsson  <jas@extundo.com>
38088
38089         * modules/havelib: New module.
38090
38091         * modules/gettext, modules/iconv, modules/lock, modules/readline:
38092         Use havelib.
38093
38094 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
38095
38096         Check for arithmetic overflow when calculating sizes, to prevent
38097         some buffer-overflow issues.  These patches are conservative, in the
38098         sense that when I couldn't determine whether an overflow was possible,
38099         I inserted a run-time check.
38100         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
38101         macros.
38102         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
38103         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
38104         (re_xnrealloc, re_x2nrealloc): New inline functions.
38105         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
38106         parse_bracket_exp):
38107         (build_equiv_class, build_charclass): Check for arithmetic overflow
38108         in size expression calculations.
38109         * lib/regex_internal.c (re_string_realloc_buffers):
38110         (build_wcs_upper_buffer, re_node_set_add_intersect):
38111         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
38112         (re_dfa_add_node, register_state): Likewise.
38113         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
38114         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
38115         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
38116         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
38117
38118 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
38119
38120         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
38121         m4/ulonglong.m4.  Problem reported by Martin Lambers.
38122
38123 2005-09-02  Bruno Haible  <bruno@clisp.org>
38124
38125         Support for lib vs. lib64 distinction on biarch platforms.
38126         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
38127         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
38128         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
38129
38130 2005-09-02  Bruno Haible  <bruno@clisp.org>
38131
38132         * gnulib-tool (import): In the other first-use case, provide defaults
38133         as well.
38134
38135 2005-09-02  Bruno Haible  <bruno@clisp.org>
38136
38137         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
38138         patches not yet found in the latest gettext release.
38139
38140 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
38141
38142         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
38143         to avoid a collision with bits/local_lim.h in glibc.
38144         All uses changed.  Problem reported by Dmitry V. Levin in
38145         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
38146
38147         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
38148         bugs in int versus size_t comparisons.
38149         (re_string_context_at): Fix bug where the code assumed that
38150         Idx is signed.
38151
38152         Use bool where appropriate.
38153         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
38154         All callers changed.
38155         (calc_eclosure_iter): Likewise, for ROOT arg.
38156         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
38157         (build_charclass_op): Likewise, for NON_MATCH arg.
38158         * lib/regex_internal.c (re_string_allocate, re_string_construct):
38159         (re_string_construct_common): Likewise, for ICASE arg.
38160         * lib/regexec.c (re_search_2_stub, re_search_stub):
38161         Likewise, for RET_LEN arg.
38162         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
38163         (set_regs): Likewise, for FL_BACKTRACK arg.
38164         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
38165         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
38166         (calc_eclosure_iter, parse_bracket_exp):
38167         Use bool for internal variables that are booleans.
38168         * lib/regexec.c (re_search_internal, check_matching,
38169         proceed_next_node):
38170         (set_regs, build_sifted_states, sift_states_bkref):
38171         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
38172         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
38173         (find_collation_sequence_value):
38174         Likewise.
38175         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
38176         (re_node_set_compare):
38177         Return bool, not int. All callers changed.
38178         * lib/regexec.c (check_halt_node_context, check_dst_limits):
38179         (build_trtable, check_node_accept): Likewise.
38180         * lib/regex_internal.h: Include stdbool.h.
38181
38182         Fix bugs uncovered when converting to bool.
38183         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
38184         failure instead of charging ahead blindly.
38185         * lib/regex_internal.c (register_state): Likewise.
38186         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
38187         for freeing internal storage.
38188         (group_nodes_into_DFA_states): Use unsigned int, not int, for
38189         bitset pieces used as boolean, to avoid undefined behavior
38190         on hosts that do int overflow checking.
38191
38192 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
38193
38194         * config/srclist.txt: Add glibc bugs 1285-1287.
38195
38196 2005-09-01  Jim Meyering  <jim@meyering.net>
38197
38198         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
38199         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
38200         Require gl_STAT_MACROS, too.
38201
38202 2005-09-01  Bruno Haible  <bruno@clisp.org>
38203
38204         * gnulib-tool (import): In the first-use case, provide defaults.
38205
38206 2005-09-01  Bruno Haible  <bruno@clisp.org>
38207
38208         * gnulib-tool (func_import): Remove the .tmp files.
38209
38210 2005-09-01  Bruno Haible  <bruno@clisp.org>
38211
38212         * gnulib-tool (func_import): Fix handling of symbolic links.
38213
38214 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
38215
38216         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
38217         old glibc regex code mishandles strings longer than 2**31 bytes.
38218         This patch fixes this when the regex code is used in gnulib
38219         (i.e., outside glibc).
38220
38221         This patch should not affect the use of the regex code inside
38222         glibc.  No doubt this problem also needs to be handled for glibc
38223         as well, but the result will be an incompatible change to the
38224         glibc ABI, and the old ABI will have to be supported too.  That
38225         can be the the subject for another patch.
38226
38227         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
38228         governing whether the rest of this patch is active.  By default,
38229         the macro is disabled and the patch has no effect.
38230         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
38231         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
38232         (struct re_pattern_buffer, re_search, re_search_2, re_match):
38233         (re_match_2, re_set_registers): Use the new types.
38234         * lib/regex_internal.h (Idx, re_hashval_t): New types.
38235         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
38236         New macros.
38237         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
38238         (re_string_context_at, bin_tree_t, re_dfastate_t):
38239         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
38240         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
38241         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
38242         (re_string_char_size_at, re_string_wchar_at):
38243         (re_string_elem_size_at):
38244         Use the new types and macros to port to 64-bit hosts.
38245         Use unsigned types for internal values, so that the code
38246         mostly works even for arrays larger than SSIZE_MAX.
38247         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
38248         (search_duplicated_node, calc_eclosure_iter, fetch_number):
38249         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
38250         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
38251         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
38252         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
38253         (calc_inveclosure, parse_dup_op, build_range_exp):
38254         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
38255         (fetch_number, create_token_tree, mark_opt_subexp):
38256         Likewise.
38257         * lib/regex_internal.c (re_string_construct_common,
38258         create_ci_newstate):
38259         (create_cd_newstate, re_string_allocate, re_string_construct):
38260         (re_string_realloc_buffers, build_wcs_upper_buffer):
38261         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
38262         (re_string_reconstruct, re_string_peek_byte_case):
38263         (re_string_fetch_byte_case, re_string_context_at):
38264         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
38265         (re_node_set_init_copy, re_node_set_add_intersect):
38266         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
38267         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
38268         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
38269         (re_acquire_state, re_acquire_state_context, register_state):
38270         Likewise.
38271         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
38272         search_cur_bkref_entry):
38273         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
38274         (re_search_internal, re_search_2_stub, re_search_stub)
38275         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
38276         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
38277         (update_cur_sifted_state, check_dst_limits):
38278         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
38279         (check_subexp_limits, sift_states_bkref, merge_state_array):
38280         (check_subexp_matching_top, get_subexp, get_subexp_sub):
38281         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
38282         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
38283         (expand_bkref_cache, check_node_accept_bytes):
38284         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
38285         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
38286         (acquire_init_state_context, check_halt_node_context):
38287         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
38288         (sift_states_backward, clean_state_log_if_needed):
38289         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
38290         (find_recover_state, transit_state_sb, transit_state_mb):
38291         (transit_state_bkref, build_trtable, match_ctx_clean):
38292         Likewise.
38293         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
38294         to work around an assumption that REG_MISSING is negative.
38295
38296         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
38297         (seek_collating_symbol_entry) [defined _LIBC]:
38298         (lookup_collation_sequence_value) [defined _LIBC]:
38299         (build_range_exp, build_collating_symbol) [defined _LIBC]:
38300         Use prototypes rather than old-style function definitions.
38301         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
38302         (transit_state_sb) [0]:
38303         (find_collation_sequence_value) [defined _LIBC]: Likewise.
38304
38305         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
38306         rm_eo.
38307
38308         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
38309         (optimize_subexps, lower_subexp):
38310         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
38311         since the signed shift might overflow.  Use 1u<<31 instead.
38312         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
38313         Likewise.
38314         * lib/regexec.c (check_dst_limits_calc_pos_1,
38315         check_subexp_matching_top): Likewise.
38316
38317         * lib/regcomp.c (optimize_subexps, lower_subexp):
38318         Use CHAR_BIT rather than 8, for clarity.
38319         * lib/regexec.c (check_dst_limits_calc_pos_1):
38320         (check_subexp_matching_top): Likewise.
38321         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
38322         have to worry about portability issues when shifting it left.
38323         Remove no-longer-needed test for table_size > 0.
38324         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
38325         in a word, as the resulting behavior is undefined.
38326         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
38327         in one case, a <= should have been an <, and in another case the
38328         whole test was missing.
38329         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
38330         the standard name CHAR_BIT.
38331         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
38332         this is not true on one's complement and signed-magnitude hosts.
38333
38334         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
38335         next_last_offset.
38336         (struct re_dfa_t): Remove unused member states_alloc.
38337         * lib/regcomp.c (init_dfa): Don't initialize unused members.
38338
38339 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
38340
38341         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
38342         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
38343         and large-file glibc and in 32-bit large-file Solaris.
38344
38345 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
38346
38347         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
38348         lengths fit in regoff_t; this isn't true if regoff_t is the same
38349         width as size_t.
38350         * lib/regex.c (re_search_internal): 5th arg is LAST_START
38351         (= START + RANGE) instead of RANGE.  This avoids overflow
38352         problems when regoff_t is the same width as size_t.
38353         All callers changed.
38354         (re_search_2_stub): Check for overflow when adding the
38355         sizes of the two strings.
38356         (re_search_stub): Check for overflow when adding START
38357         to RANGE; if it occurs, substitute the extreme value.
38358
38359 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
38360
38361         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
38362
38363 2005-08-31  Jim Meyering  <jim@meyering.net>
38364
38365         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
38366         a pointer-to-const.
38367         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
38368         (register_state): Likewise.
38369         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
38370         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
38371         (group_nodes_into_DFAstates): Likewise.
38372
38373 2005-08-31  Jim Meyering  <jim@meyering.net>
38374
38375         * check-module: Add a FIXME comment.
38376
38377 2005-08-31  Eric Blake  <ebb9@byu.net>
38378
38379         * modules/unistd-safer (Files): Add unistd--.h.
38380         * modules/stdio-safer (Files): Add stdio--.h.
38381
38382 2005-08-31  Derek Price  <derek@ximbiot.com>
38383
38384         * lib/getdelim.c (getdelim): Return EOF on EOF.
38385         Reported by Larry Jones <lawrence.jones@ugs.com>.
38386
38387 2005-08-31  Bruno Haible  <bruno@clisp.org>
38388
38389         Avoid unnecessary diffs in the generated lib/Makefile.am.
38390         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
38391         the generated files.
38392         (func_import): Don't set cmd.
38393
38394 2005-08-31  Bruno Haible  <bruno@clisp.org>
38395
38396         * lib/strstr.c: Include <stddef.h>, for NULL.
38397         * lib/strcasestr.c: Likewise.
38398         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38399
38400 2005-08-31  Bruno Haible  <bruno@clisp.org>
38401
38402         * gnulib-tool: New option --macro-prefix.
38403         (func_import): Use macro_prefix.
38404         (import): Handle option --macro-prefix.
38405
38406 2005-08-31  Bruno Haible  <bruno@clisp.org>
38407
38408         * gnulib-tool (import): Rename most ac_* variables to cached_*.
38409         Also use new variables cached_lgpl, cached_libtool.
38410
38411 2005-08-31  Bruno Haible  <bruno@clisp.org>
38412
38413         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
38414         always instantiating them.
38415
38416 2005-08-31  Bruno Haible  <bruno@clisp.org>
38417
38418         * gnulib-tool (func_import): Read the previous cached settings
38419         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
38420         earlier added by gnulib but are now dropped. Warn when a gnulib file
38421         overwrites a non-gnulib file.
38422
38423 2005-08-31  Bruno Haible  <bruno@clisp.org>
38424
38425         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
38426         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
38427         projects that don't keep autogenerated files in CVS. Put into
38428         actioncmd only the specified modules, not the transitive closure.
38429
38430 2005-08-31  Bruno Haible  <bruno@clisp.org>
38431
38432         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
38433         Create directories that shall be filled.
38434         (import): Don't look for gl_* macros in configure.ac. Recurse across
38435         all directories containing a gnulib-cache.m4 files, if meaningful.
38436
38437 2005-08-31  Bruno Haible  <bruno@clisp.org>
38438
38439         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
38440         (import): Set seen_libtool when we see gl_LIBTOOL.
38441
38442 2005-08-31  Bruno Haible  <bruno@clisp.org>
38443
38444         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
38445         declaration macro definitions from generated gnulib.m4.
38446
38447 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
38448
38449         * lib/iconvme.h: Add prototype for iconv_alloc.
38450
38451 2005-08-29  Simon Josefsson  <jas@extundo.com>
38452
38453         * lib/iconvme.c: Fix errno.
38454
38455 2005-08-29  Bruno Haible  <bruno@clisp.org>
38456
38457         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
38458         that it works when the directory contains spaces.
38459
38460 2005-08-29  Bruno Haible  <bruno@clisp.org>
38461
38462         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
38463
38464 2005-08-29  Bruno Haible  <bruno@clisp.org>
38465
38466         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
38467         Emit more advice.
38468
38469 2005-08-29  Bruno Haible  <bruno@clisp.org>
38470         and Stepan Kasal  <kasal@ucw.cz>
38471
38472         * check-module: If more parameters are given, check each of them
38473         separately; add more exceptions, as noted by Jim Meyering.
38474         (check_module): New procedure.
38475         (%exempt_header): Now contains all exceptions.
38476
38477 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
38478
38479         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
38480
38481 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
38482
38483         * lib/iconvme.c: Split iconv_string into iconv_alloc.
38484
38485 2005-08-28  Bruno Haible  <bruno@clisp.org>
38486
38487         * m4/gnulib-tool.m4: New file.
38488
38489 2005-08-27  Jim Meyering  <jim@meyering.net>
38490
38491         * modules/unistd-safer (Files): Add pipe-safer.c.
38492         * modules/fcntl-safer (Files): Add creat-safer.c.
38493
38494 2005-08-27  Jim Meyering  <jim@meyering.net>
38495
38496         * m4/stdlib-safer.m4: New file.  From coreutils.
38497         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
38498         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
38499         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
38500         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
38501         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
38502
38503 2005-08-27  Jim Meyering  <jim@meyering.net>
38504
38505         * lib/fopen-safer.c: Merge minor changes from coreutils.
38506         * lib/dup-safer.c: Likewise.
38507         * lib/fd-safer.c: Likewise.
38508
38509         Merge from coreutils.
38510         * lib/stdio--.h: New file.
38511         * lib/stdlib--.h: New file.
38512         * lib/mkstemp-safer.c: New file.
38513
38514         GNU tar needs these.
38515         * lib/pipe-safer.c: New file.
38516         * lib/creat-safer.c: New file.
38517         * lib/fcntl--.h (creat): Define to creat_safer.
38518         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
38519         * lib/unistd--.h (pipe): Define to pipe_safer.
38520         * lib/unistd-safer.h: Declare pipe_safer.
38521
38522 2005-08-26  Simon Josefsson  <jas@extundo.com>
38523
38524         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
38525         Haible <bruno@clisp.org>.
38526
38527 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
38528
38529         * lib/regex_internal.h: Remove all references to
38530         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
38531         or better.
38532         (bitset_not, bitset_merge, bitset_not_merge):
38533         (bitset_mask, re_string_allocate, re_string_construct):
38534         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
38535         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
38536         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
38537         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
38538         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
38539         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
38540         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
38541         (re_acquire_state_context):
38542         Remove unnecessary forward decls.
38543         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
38544         Put __attribute at function definition,
38545         now that the function decl has been removed.
38546         * lib/regex_internal.c (re_string_peek_byte_case):
38547         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
38548         Likewise.
38549
38550 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
38551
38552         * m4/regex.m4: Add AC_PREREQ(2.50).
38553         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
38554
38555 2005-08-25  Simon Josefsson  <jas@extundo.com>
38556
38557         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
38558         __fsetlocking.
38559
38560 2005-08-25  Simon Josefsson  <jas@extundo.com>
38561
38562         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
38563         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
38564         GLIBC specific code.
38565
38566 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
38567
38568         Make regex safe for g++.  This fixes one real bug (an "err"
38569         that should have been "*err").  g++ problem reported by
38570         Sam Steingold.
38571         * lib/regex_internal.h (re_calloc): New macro, consistent with
38572         re_malloc etc.  All callers of calloc changed to use re_calloc.
38573         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
38574         not int.  All callers changed.
38575         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
38576         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
38577         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
38578         (find_recover_state): Change "err" to "*err"; this fixes what
38579         appears to be a real bug.
38580         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
38581         versus int.
38582
38583 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
38584
38585         * modules/regex (Depends-on): Add malloc, since the code
38586         assumes that !malloc(0) means failure.
38587
38588 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
38589
38590         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
38591
38592         alloca modernization/simplification for regex.
38593         * lib/regex.c: Remove portability cruft for alloca.  This no longer
38594         needs to be at the start of the file, and can be moved into
38595         regex_internal.h and simplified.
38596         * lib/regex_internal.h: Include <alloca.h>.
38597         (__libc_use_alloca) [!defined _LIBC]: New macro.
38598         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
38599         now works outside glibc.
38600
38601 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
38602
38603         * config/srclist.txt: Add glibc bugs 1241, 1245.
38604
38605 2005-08-25  Jim Meyering  <jim@meyering.net>
38606
38607         * lib/open-safer.c: Include <config.h>.
38608         Otherwise, we'd lose LARGEFILE support in any file using
38609         e.g. "fcntl--.h"
38610
38611 2005-08-25  Bruno Haible  <bruno@clisp.org>
38612
38613         * m4/minmax.m4: Require autoconf 2.52.
38614         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
38615         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
38616         alternatives of translit over the alphabet.
38617         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
38618
38619 2005-08-24  Simon Josefsson  <jas@extundo.com>
38620
38621         * tests/test-getpass.c: New file.
38622
38623 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
38624
38625         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
38626         for GNU regex features.
38627
38628 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
38629
38630         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
38631         * lib/regex.h (regerror): Likewise.
38632
38633         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
38634         requires this.  (The code never needed it.)
38635
38636         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
38637         All uses of recently-renamed identifiers changed to use the new,
38638         POSIX-compliant names.  The code will build and run just fine
38639         without these changes, but it's better to eat our own dog food
38640         and use the standard-conforming names.
38641
38642         * lib/regex.h: Fix a multitude of POSIX name space violations.
38643         These changes have an effect only for programs that define
38644         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
38645         do not change anything for programs compiled in the normal way.
38646         Also, there is no effect on the ABI.
38647
38648         (_REGEX_SOURCE): New macro.
38649         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
38650         defined and _GNU_SOURCE is not; this fixes a name space violation.
38651
38652         Rename the following macros to obey POSIX requirements.
38653         The old names are still visible as macros if _REGEX_SOURCE is defined.
38654         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
38655         RE_BACKSLASH_ESCAPE_IN_LISTS.
38656         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
38657         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
38658         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
38659         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
38660         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
38661         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
38662         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
38663         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
38664         (REG_INTERVALS): renamed from RE_INTERVALS.
38665         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
38666         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
38667         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
38668         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
38669         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
38670         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
38671         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
38672         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
38673         RE_UNMATCHED_RIGHT_PAREN_ORD.
38674         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
38675         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
38676         (REG_DEBUG): renamed from RE_DEBUG.
38677         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
38678         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
38679         unusual, since we can't clash with the POSIX REG_ICASE.
38680         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
38681         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
38682         (REG_NO_SUB): renamed from RE_NO_SUB.
38683         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
38684         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
38685         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
38686         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
38687         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
38688         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
38689         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
38690         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
38691         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
38692         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
38693         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
38694         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
38695         RE_SYNTAX_POSIX_MINIMAL_BASIC.
38696         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
38697         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
38698         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
38699         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
38700         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
38701         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
38702         (REG_FIXED): Renamed from REGS_FIXED.
38703         (REG_NREGS): Renamed from RE_NREGS.
38704
38705         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
38706         of other REG_* macros, since POSIX says the user is allowed to
38707         #undef these macros selectively.
38708
38709         (reg_errcode_t): Update comment stating what other tables need
38710         to be consistent.
38711
38712         Rename the following enum values to obey POSIX requirements.
38713         The old names are still visible as macros.
38714         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
38715         is not defined, since GNU is supposed to be a superset of POSIX as
38716         much as possible, and since we want reg_errcode_t to be a signed
38717         type for implementation consistency.
38718         (_REG_NOERROR): Renamed from REG_NOERROR.
38719         (_REG_NOMATCH): Renamed from REG_NOMATCH.
38720         (_REG_BADPAT): Renamed from REG_BADPAT.
38721         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
38722         (_REG_ECTYPE): Renamed from REG_ECTYPE.
38723         (_REG_EESCAPE): Renamed from REG_EESCAPE.
38724         (_REG_ESUBREG): Renamed from REG_ESUBREG.
38725         (_REG_EBRACK): Renamed from REG_EBRACK.
38726         (_REG_EPAREN): Renamed from REG_EPAREN.
38727         (_REG_EBRACE): Renamed from REG_EBRACE.
38728         (_REG_BADBR): Renamed from REG_BADBR.
38729         (_REG_ERANGE): Renamed from REG_ERANGE.
38730         (_REG_ESPACE): Renamed from REG_ESPACE.
38731         (_REG_BADRPT): Renamed from REG_BADRPT.
38732         (_REG_EEND): Renamed from REG_EEND.
38733         (_REG_ESIZE): Renamed from REG_ESIZE.
38734         (_REG_ERPAREN): Renamed from REG_ERPAREN.
38735         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
38736         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
38737         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
38738         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
38739
38740         (_REG_RE_NAME, _REG_RM_NAME): New macros.
38741         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
38742         changed.  But support the old name if the new one is not defined
38743         and if _REGEX_SOURCE.
38744
38745         Change the following member names in struct re_pattern_buffer.
38746         The old names are still supported if !_REGEX_SOURCE.
38747         The new names are always supported, regardless of _REGEX_SOURCE.
38748         (re_buffer): Renamed from buffer.
38749         (re_allocated): Renamed from allocated.
38750         (re_used): Renamed from used.
38751         (re_syntax): Renamed from syntax.
38752         (re_fastmap): Renamed from fastmap.
38753         (re_translate): Renamed from translate.
38754         (re_can_be_null): Renamed from can_be_null.
38755         (re_regs_allocated): Renamed from regs_allocated.
38756         (re_fastmap_accurate): Renamed from fastmap_accurate.
38757         (re_no_sub): Renamed from no_sub.
38758         (re_not_bol): Renamed from not_bol.
38759         (re_not_eol): Renamed from not_eol.
38760         (re_newline_anchor): Renamed from newline_anchor.
38761
38762         Change the following member names in struct re_registers.
38763         The old names are still supported if !_REGEX_SOURCE.
38764         The new names are always supported, regardless of _REGEX_SOURCE.
38765         (rm_num_regs): Renamed from num_regs.
38766         (rm_start): Renamed from start.
38767         (rm_end): Renamed from end.
38768
38769         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
38770         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
38771         Prepend __ to parameter names.
38772
38773         Undo yesterday's changes.
38774
38775 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
38776
38777         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
38778         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
38779         lib/regex.c.
38780
38781 2005-08-24  Jim Meyering  <jim@meyering.net>
38782
38783         Sync from coreutils.
38784         * m4/fcntl-safer.m4: New file.
38785
38786         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
38787         and object files for this module.
38788
38789 2005-08-24  Jim Meyering  <jim@meyering.net>
38790
38791         Sync from coreutils.
38792         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
38793
38794 2005-08-24  Jim Meyering  <jim@meyering.net>
38795
38796         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
38797         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
38798
38799 2005-08-24  Jim Meyering  <jim@meyering.net>
38800
38801         * modules/fcntl-safer: New module.
38802         * modules/fts (Depends-on): Add fcntl-safer.
38803         * MODULES.html.sh (File descriptor based Input/Output):
38804         Add fcntl-safer.
38805
38806 2005-08-24  Bruno Haible  <bruno@clisp.org>
38807
38808         Support for unit test modules.
38809         * modules/README: Mention tests modules.
38810         * modules/TEMPLATE-TESTS: New file.
38811         * gnulib-tool: New options --extract-tests-module, --with-tests and
38812         --tests-base (unused for the moment).
38813         (testsbase, inctests): New variables.
38814         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
38815         (func_verify_module): Exclude TEMPLATE-TESTS.
38816         (func_verify_nontests_module, func_verify_tests_module): New functions.
38817         (func_get_dependencies): Add implicit dependency for tests modules.
38818         (func_get_tests_module): New function.
38819         (func_modules_transitive_closure): When --with-tests was specified,
38820         include the unit tests as well, unless explicitly avoided.
38821         (func_emit_lib_Makefile_am): Ignore the tests modules here.
38822         (func_emit_tests_Makefile_am): New function.
38823         (func_create_testdir): When --with-tests was specified, emit a
38824         tests/ directory.
38825         * MODULES.html.sh (Future developments): Update.
38826
38827 2005-08-24  Bruno Haible  <bruno@clisp.org>
38828
38829         * modules/tls-tests: New file.
38830         * tests/test-tls.c: New file, from GNU gettext.
38831
38832 2005-08-24  Bruno Haible  <bruno@clisp.org>
38833
38834         * modules/lock-tests: New file.
38835         * tests/test-lock.c: New file, from GNU gettext.
38836
38837 2005-08-24  Bruno Haible  <bruno@clisp.org>
38838
38839         * lib/lock.h: Add multiple inclusion guard.
38840         * lib/tls.h: Add multiple inclusion guard.
38841
38842 2005-08-24  Bruno Haible  <bruno@clisp.org>
38843
38844         * gnulib-tool: Add support for the --aux-dir option to
38845         --create-testdir, --create-megatestdir, --test, --megatest.
38846         (func_create_testdir, func_create_megatestdir): Optionally emit a
38847         AC_CONFIG_AUX_DIR directive.
38848         (create-testdir, create-megatestdir, test, megatest): Provide a
38849         default value for $auxdir.
38850
38851 2005-08-24  Bruno Haible  <bruno@clisp.org>
38852
38853         * gnulib-tool (import): Use compound statement instead of subshell
38854         where possible.
38855
38856 2005-08-24  Bruno Haible  <bruno@clisp.org>
38857
38858         * gnulib-tool (import): Change --aux-dir default to "build-aux".
38859
38860 2005-08-24  Bruno Haible  <bruno@clisp.org>
38861
38862         * gnulib-tool (func_version): Update.
38863
38864 2005-08-24  Bruno Haible  <bruno@clisp.org>
38865
38866         * gnulib-tool (func_import, func_create_testdir,
38867         func_create_megatestdir): Quote all autoconf macro arguments.
38868
38869 2005-08-24  Bruno Haible  <bruno@clisp.org>
38870
38871         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
38872         option --force, because --force causes the aclocal.m4 of each
38873         subdirectory to be newer than the corresponding config.h.in.
38874
38875 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
38876
38877         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
38878         All contents moved to gl_REGEX.
38879         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
38880         assume that it does.
38881
38882 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
38883
38884         * lib/regex.h (REG_NOSYS)
38885         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
38886         Define, since POSIX requires it as of 2001.
38887         (_REG_ENOSYS)
38888         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
38889         New private symbol, used to keep the enum signed in all cases.
38890         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
38891         Youngman in
38892         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
38893
38894         * lib/regex_internal.c (re_string_skip_chars, register_state):
38895         (calc_state_hash):
38896         Remove forward decls; no longer needed now that we use prototypes.
38897         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
38898         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
38899         (clean_state_log_if_needed): Likewise.
38900
38901 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
38902
38903         * config/srclist.txt: Add glibc bugs 1231-1233.
38904
38905 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
38906
38907         Fix problems reported by Sam Steingold in
38908         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
38909         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
38910         assumed that reg_errcode_t is a signed type, which is not
38911         necessarily true if _XOPEN_SOURCE is not defined.
38912         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
38913         since some compilers warn about it otherwise.
38914
38915 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
38916
38917         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
38918         (init_word_char, create_initial_state, duplicate_node_closure):
38919         (fetch_token, peek_token_bracket, build_range_exp):
38920         (build_collating_symbol): Remove forward decls; no longer needed
38921         now that we use prototypes.
38922
38923         * lib/regcomp.c:
38924         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
38925         (re_compile_fastmap_iter, regcomp, regerror, regfree):
38926         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
38927         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
38928         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
38929         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
38930         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
38931         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
38932         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
38933         (build_range_exp, build_collating_symbol, parse_bracket_exp):
38934         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
38935         (build_charclass, build_charclass_op, fetch_number, create_tree):
38936         (create_token_tree, mark_opt_subexp, duplicate_tree):
38937         Use prototypes rather than old-style definitions.
38938
38939         * lib/regex_internal.c:
38940         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
38941         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
38942         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
38943         (re_string_reconstruct, re_string_peek_byte_case):
38944         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
38945         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
38946         (re_node_set_init_copy, re_node_set_add_intersect):
38947         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
38948         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
38949         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
38950         (re_acquire_state, re_acquire_state_context, register_state):
38951         (create_ci_newstate, create_cd_newstate, free_state):
38952         Likewise.
38953         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
38954         re_search_2):
38955         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
38956         (re_search_internal, prune_impossible_nodes):
38957         (acquire_init_state_context, check_matching, static):
38958         (check_halt_node_context, check_halt_state_context, proceed_next_node):
38959         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
38960         (update_regs, sift_states_backward, build_sifted_states):
38961         (clean_state_log_if_needed, merge_state_array):
38962         (update_cur_sifted_state, add_epsilon_src_nodes):
38963         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
38964         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
38965         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
38966         (find_recover_state, check_subexp_matching_top, transit_state_mb):
38967         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
38968         (check_arrival, check_arrival_add_next_nodes):
38969         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
38970         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
38971         (check_node_accept_bytes, check_node_accept, extend_buffers):
38972         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
38973         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
38974         (sift_ctx_init):
38975         Likewise.
38976
38977         * lib/regex_internal.h:
38978         (re_string_allocate, re_string_construct, re_string_reconstruct):
38979         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
38980         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
38981         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
38982         (re_string_context_at, re_string_peek_byte_case):
38983         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
38984         is defined, since we now use prototypes always.
38985
38986         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
38987         C89 or better.  All uses removed.
38988
38989 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
38990
38991         * config/srclist.txt: Add glibc bugs 1220-1227.
38992
38993 2005-08-20  Jim Meyering  <jim@meyering.net>
38994
38995         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
38996         of unused local, dfa.
38997
38998 2005-08-20  Bruno Haible  <bruno@clisp.org>
38999
39000         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
39001
39002 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
39003
39004         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
39005         (re_node_set_insert_last, re_dfa_add_node):
39006         Rename local variables to avoid GCC shadowing warnings.
39007
39008 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
39009
39010         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
39011         [defined lint]: Suppress bogus uninitialized-variable warnings.
39012
39013         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
39014         and let the caller return REG_ESPACE if out of space.  This
39015         removes an uninitialied-variable warning with GCC 4.0.1, and also
39016         avoids taking the address of a local variable.  All callers
39017         changed.
39018
39019 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
39020
39021         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
39022         $LIBCSRC/posix/regexec.c.
39023         Add glibc bug 1217 for regcomp.c.
39024
39025 2005-08-19  Jim Meyering  <jim@meyering.net>
39026
39027         * lib/regexec.c (proceed_next_node): Redo local variables to
39028         avoid GCC shadowing warnings.
39029
39030 2005-08-18  Bruno Haible  <bruno@clisp.org>
39031
39032         * lib/strstr.c (strstr): Fix return value in multibyte case.
39033         * lib/strcasestr.c (strcasestr): Likewise.
39034
39035 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
39036
39037         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
39038
39039 2005-08-17  Jim Meyering  <jim@meyering.net>
39040
39041         Make the %s format (seconds since the epoch) work for a negative
39042         number and when used with a zero-padded field width, e.g. %015s.
39043
39044         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
39045         label so that it precedes the code to set `digits'.  Otherwise,
39046         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
39047         print `00-22'.  Now, it prints `-0022', as it should.
39048
39049 2005-08-17  Bruno Haible  <bruno@clisp.org>
39050
39051         * modules/strstr (Files): Add m4/mbrtowc.m4.
39052         (Depends-on): Add mbuiter.
39053
39054 2005-08-17  Bruno Haible  <bruno@clisp.org>
39055
39056         * modules/strcasestr: New file.
39057         * MODULES.html.sh (String handling, based on ANSI C 89): Add
39058         strcasestr.
39059
39060 2005-08-17  Bruno Haible  <bruno@clisp.org>
39061
39062         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
39063
39064 2005-08-17  Bruno Haible  <bruno@clisp.org>
39065
39066         * modules/mbuiter: New file.
39067         * MODULES.html.sh (Extended multibyte and wide character utilities):
39068         Add mbuiter.
39069
39070 2005-08-17  Bruno Haible  <bruno@clisp.org>
39071
39072         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
39073         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
39074
39075 2005-08-17  Bruno Haible  <bruno@clisp.org>
39076
39077         * m4/strcasestr.m4: New file.
39078
39079 2005-08-17  Bruno Haible  <bruno@clisp.org>
39080
39081         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
39082         * lib/strstr.c: Completely rewritten, with multibyte locale support.
39083
39084 2005-08-17  Bruno Haible  <bruno@clisp.org>
39085
39086         * lib/strcasestr.h: New file.
39087         * lib/strcasestr.c: New file.
39088
39089 2005-08-17  Bruno Haible  <bruno@clisp.org>
39090
39091         * lib/strcasecmp.c: Use mbuiter.h.
39092
39093 2005-08-17  Bruno Haible  <bruno@clisp.org>
39094
39095         * lib/mbuiter.h: New file.
39096
39097 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
39098
39099         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
39100         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
39101         and gl_GETOPT are both invoked via different paths (as happens
39102         with GNU tar CVS because it uses both argp and getopt), the former
39103         wins.
39104
39105 2005-08-16  Bruno Haible  <bruno@clisp.org>
39106
39107         * modules/tls: New file.
39108         * MODULES.html.sh (Multithreading): Add tls.
39109
39110 2005-08-16  Bruno Haible  <bruno@clisp.org>
39111
39112         * modules/strnlen1: New file.
39113         * MODULES.html.sh (String handling): Add strnlen1.
39114
39115 2005-08-16  Bruno Haible  <bruno@clisp.org>
39116
39117         * modules/strcase (Files): Add m4/mbrtowc.m4.
39118         (Depends-on): Add strnlen1, mbchar.
39119
39120 2005-08-16  Bruno Haible  <bruno@clisp.org>
39121
39122         * modules/mbiter: New file.
39123         * MODULES.html.sh (Extended multibyte and wide character utilities):
39124         Add mbiter.
39125
39126 2005-08-16  Bruno Haible  <bruno@clisp.org>
39127
39128         * modules/mbfile: New file.
39129         * MODULES.html.sh (Extended multibyte and wide character utilities):
39130         Add mbfile.
39131
39132 2005-08-16  Bruno Haible  <bruno@clisp.org>
39133
39134         * modules/mbchar: New file.
39135         * MODULES.html.sh (Extended multibyte and wide character utilities):
39136         New section.
39137
39138 2005-08-16  Bruno Haible  <bruno@clisp.org>
39139
39140         * m4/tls.m4: New file, from GNU gettext.
39141
39142 2005-08-16  Bruno Haible  <bruno@clisp.org>
39143
39144         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
39145         always.
39146         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
39147
39148 2005-08-16  Bruno Haible  <bruno@clisp.org>
39149
39150         * m4/mbiter.m4: New file.
39151
39152 2005-08-16  Bruno Haible  <bruno@clisp.org>
39153
39154         * m4/mbfile.m4: New file.
39155
39156 2005-08-16  Bruno Haible  <bruno@clisp.org>
39157
39158         * m4/mbchar.m4: New file.
39159
39160 2005-08-16  Bruno Haible  <bruno@clisp.org>
39161
39162         * lib/tls.h: New file, from GNU gettext.
39163         * lib/tls.c: New file, from GNU gettext.
39164
39165 2005-08-16  Bruno Haible  <bruno@clisp.org>
39166
39167         * lib/strnlen1.h: New file.
39168         * lib/strnlen1.c: New file.
39169
39170 2005-08-16  Bruno Haible  <bruno@clisp.org>
39171
39172         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
39173         (mbi_init): Update.
39174         (mbi_avail, mbi_advance): Let the iteration end before the terminating
39175         NUL byte, not after it.
39176
39177 2005-08-16  Bruno Haible  <bruno@clisp.org>
39178
39179         * lib/strcase.h (strcasecmp): Add note in comments.
39180         * lib/strncasecmp.c: Use code from strcasecmp.c.
39181         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
39182         (strcasecmp): Work correctly in multibyte locales.
39183
39184 2005-08-16  Bruno Haible  <bruno@clisp.org>
39185
39186         * lib/mbiter.h: New file.
39187
39188 2005-08-16  Bruno Haible  <bruno@clisp.org>
39189
39190         * lib/mbfile.h: New file.
39191
39192 2005-08-16  Bruno Haible  <bruno@clisp.org>
39193
39194         * lib/mbchar.h: New file.
39195         * lib/mbchar.c: New file.
39196
39197 2005-08-16  Bruno Haible  <bruno@clisp.org>
39198
39199         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
39200         the valid ones. Makes the comparison operations transitive:
39201         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
39202         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
39203
39204 2005-08-15  Simon Josefsson  <jas@extundo.com>
39205
39206         * modules/ssize_t (License): Change to 'unlimited'.
39207
39208         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
39209
39210 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
39211
39212         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
39213         Add comments for each pending glibc patch.
39214
39215 2005-08-15  Bruno Haible  <bruno@clisp.org>
39216
39217         * lib/regex.h (__restrict_arr): Don't define to __restrict if
39218         __cplusplus is defined.
39219
39220 2005-08-14  Jim Meyering  <jim@meyering.net>
39221
39222         Sync from coreutils.
39223
39224         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
39225         Use the hash-table-based cycle-detection code not just when
39226         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
39227         Reported by James Youngman in
39228         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
39229         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
39230         FTS_TIGHT_CYCLE_CHECK.
39231         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
39232         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
39233         once again.
39234         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
39235         * lib/fts.c (fd_safer): Remove decl.
39236         Include fcntl--.h rather than unistd-safer.h
39237         (fts_safe_changedir): Don't call fd_safer; no longer needed
39238         now that we include fcntl--.h.
39239
39240 2005-08-12  Simon Josefsson  <jas@extundo.com>
39241
39242         * modules/getndelim2: Use ssize_t module.
39243         * modules/getnline: Likewise.
39244         * modules/safe-read: Likewise.
39245         * modules/xreadlink: Likewise.
39246
39247         * modules/ssize_t: New file.
39248
39249 2005-08-12  Simon Josefsson  <jas@extundo.com>
39250
39251         * m4/readline.m4: Look for termcap, curses or ncurses if required.
39252
39253 2005-08-12  Simon Josefsson  <jas@extundo.com>
39254
39255         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39256         ssize_t.
39257
39258 2005-08-12  Simon Josefsson  <jas@extundo.com>
39259
39260         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
39261         readline, getdelim and check_version.
39262         (Support for systems lacking ISO C 99: Sizes of integer types):
39263         Add size_max.
39264
39265 2005-08-12  Bruno Haible  <bruno@clisp.org>
39266
39267         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
39268
39269 2005-08-11  Simon Josefsson  <jas@extundo.com>
39270
39271         * modules/readline: New file.
39272
39273         * modules/strnlen (Files): Add strnlen.h.
39274
39275 2005-08-11  Simon Josefsson  <jas@extundo.com>
39276
39277         * m4/readline.m4: New file.
39278
39279 2005-08-11  Simon Josefsson  <jas@extundo.com>
39280
39281         * lib/readline.h, readline.c: New file.
39282
39283 2005-08-11  Simon Josefsson  <jas@extundo.com>
39284
39285         * doc/gnulib.texi (Initial import, Finishing touches): Mention
39286         gl_AVOID.
39287
39288 2005-08-11  Bruno Haible  <bruno@clisp.org>
39289
39290         * lib/strnlen.h (strnlen): Change parameter name to match comment.
39291
39292 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
39293
39294         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
39295
39296 2005-08-10  Simon Josefsson  <jas@extundo.com>
39297
39298         * tests/test-iconvme.c: New file.
39299
39300 2005-08-10  Simon Josefsson  <jas@extundo.com>
39301
39302         * m4/strnlen.m4: New file.
39303
39304         * m4/strndup.m4: Don't check for strnlen declaration, done in
39305         strnlen.m4.
39306
39307 2005-08-10  Simon Josefsson  <jas@extundo.com>
39308
39309         * lib/strndup.c: Use strnlen.h.
39310
39311         * lib/strnlen.h: New file.
39312
39313 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
39314
39315         * README: Typos.
39316
39317 2005-08-02  Simon Josefsson  <jas@extundo.com>
39318
39319         * modules/readline: New file.
39320
39321 2005-08-02  Simon Josefsson  <jas@extundo.com>
39322
39323         * modules/getdelim: New file.
39324
39325         * modules/getline: Rewrite, don't use getndelim2.
39326
39327 2005-08-02  Simon Josefsson  <jas@extundo.com>
39328
39329         * m4/getline.m4: Separate out getdelim stuff into separate module.
39330
39331         * m4/getdelim.m4: New file.
39332
39333 2005-08-02  Simon Josefsson  <jas@extundo.com>
39334
39335         * lib/getline.h, getline.c: Rewrite.
39336
39337         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
39338
39339 2005-07-31  Bruno Haible  <bruno@clisp.org>
39340
39341         * lib/lock.h (gl_lock_initializer): New macro.
39342         (gl_lock_define_initialized): Use it.
39343         (gl_rwlock_initializer): New macro.
39344         (gl_rwlock_define_initialized): Use it.
39345         (gl_recursive_lock_initializer): New macro.
39346         (gl_recursive_lock_define_initialized): Use it.
39347
39348 2005-07-30  Karl Berry  <karl@gnu.org>
39349
39350         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
39351         Report from Ben Pfaff, regarding getopt.
39352
39353 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
39354
39355         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
39356         normal way.
39357         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
39358         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
39359         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
39360         (gl_GETOPT): Use the new macros.  Most of the implementation
39361         is moved to the new macros.  This is for programs like Emacs
39362         that don't want all the functionality of gl_GETOPT.
39363
39364 2005-07-26  Bruno Haible  <bruno@clisp.org>
39365
39366         * m4/lock.m4: Update from GNU gettext.
39367
39368 2005-07-26  Bruno Haible  <bruno@clisp.org>
39369
39370         * lib/lock.h: Update from GNU gettext.
39371         * lib/lock.c: Update from GNU gettext.
39372
39373 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
39374
39375         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
39376         obsolescent AC_TRY_RUN.  Include the default includes files, for
39377         'exit'.
39378
39379 2005-07-24  Bruno Haible  <bruno@clisp.org>
39380
39381         * modules/visibility: New file.
39382         * MODULES.html.sh (Misc): Add visibility.
39383
39384 2005-07-24  Bruno Haible  <bruno@clisp.org>
39385
39386         * m4/visibility.m4: New file.
39387
39388 2005-07-24  Bruno Haible  <bruno@clisp.org>
39389
39390         * doc/visibility.texi: New file.
39391
39392 2005-07-22  Bruno Haible  <bruno@clisp.org>
39393
39394         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
39395         $(ALLOCA_H), redundant through BUILT_SOURCES.
39396         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
39397         redundant through BUILT_SOURCES.
39398         * modules/byteswap (Makefile.am): Remove explicit dependency on
39399         $(BYTESWAP_H), redundant through BUILT_SOURCES.
39400         * modules/fnmatch (Makefile.am): Remove explicit dependency on
39401         $(FNMATCH_H), redundant through BUILT_SOURCES.
39402         * modules/getopt (Makefile.am): Remove explicit dependency on
39403         $(GETOPT_H), redundant through BUILT_SOURCES.
39404         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
39405         redundant through BUILT_SOURCES.
39406         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
39407         redundant through BUILT_SOURCES.
39408         * modules/stdbool (Makefile.am): Remove explicit dependency on
39409         $(STDBOOL_H), redundant through BUILT_SOURCES.
39410         * modules/stdint (Makefile.am): Remove explicit dependency on
39411         $(STDINT_H), redundant through BUILT_SOURCES.
39412         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
39413         Remove explicit dependency on $(SYSEXITS_H).
39414         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
39415
39416 2005-07-18  Simon Josefsson  <jas@extundo.com>
39417
39418         * lib/check-version.c (check_version): Accept identical versions too.
39419
39420 2005-07-18  Bruno Haible  <bruno@clisp.org>
39421
39422         * modules/lock: New file.
39423         * MODULES.html.sh (Multithreading): New section.
39424
39425 2005-07-18  Bruno Haible  <bruno@clisp.org>
39426
39427         * m4/lock.m4: New file, from GNU gettext.
39428
39429 2005-07-18  Bruno Haible  <bruno@clisp.org>
39430
39431         * lib/lock.h: New file, from GNU gettext.
39432         * lib/lock.c: New file, from GNU gettext.
39433
39434 2005-07-18  Bruno Haible  <bruno@clisp.org>
39435
39436         * lib/lock.h (gl_once_t): New type.
39437         (gl_once_define, gl_once): New macros.
39438         * lib/lock.c (fresh_once): New variable.
39439         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
39440         functions.
39441
39442 2005-07-16  Simon Josefsson  <jas@extundo.com>
39443
39444         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
39445         workaround, suggested by Bruno.
39446
39447 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
39448
39449         * modules/xalloc (Depends-on): Add xalloc-die.
39450         * modules/xvasprintf (Depends-on): Add xalloc-die.
39451
39452 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
39453
39454         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
39455         with a minor change.
39456
39457 2005-07-15  Bruno Haible  <bruno@clisp.org>
39458
39459         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
39460         When using lib/poll.c, define poll as rpl_poll.
39461
39462 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
39463
39464         * modules/argp (Depends-on): Remove unlocked-io.
39465
39466 2005-07-14  Derek Price  <derek@ximbiot.com>
39467
39468         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
39469         for glob symlink bug.
39470
39471 2005-07-14  Bruno Haible  <bruno@clisp.org>
39472
39473         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
39474         Instead, test for *_unlocked function declarations directly.
39475
39476 2005-07-11  Simon Josefsson  <jas@extundo.com>
39477
39478         * modules/size_max: New file.
39479
39480         * modules/xsize: Depend on size_max module for size_max.m4.
39481
39482 2005-07-11  Simon Josefsson  <jas@extundo.com>
39483
39484         * lib/size_max.h: New file.
39485
39486 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
39487
39488         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
39489         copyright symbol and the year.
39490         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
39491         (version_etc_va): Use parameterized copyright notice.
39492         Reword to conform to the current GNU coding standards.
39493
39494 2005-07-11  Karl Berry  <karl@gnu.org>
39495
39496         * doc/gnulib.texi (Quoting): new node.
39497         (Initial import): more info, from Patrice.
39498
39499 2005-07-11  Bruno Haible  <bruno@clisp.org>
39500
39501         * gnulib-tool (func_usage): Document option --avoid.
39502         (Command line options): Handle --avoid.
39503         (func_acceptable): New function.
39504         (func_modules_transitive_closure): Use it.
39505
39506 2005-07-11  Bruno Haible  <bruno@clisp.org>
39507
39508         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
39509         Reported by Jim Meyering.
39510
39511 2005-07-10  Bruno Haible  <bruno@clisp.org>
39512
39513         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
39514         Needed when size_t is smaller than 'unsigned int'.
39515         Reported by Paul Eggert.
39516
39517 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
39518
39519         * modules/argp (Depends-on): Add unlocked-io
39520
39521 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
39522
39523         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
39524         block of defines.
39525
39526 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
39527
39528         * config/srclist.txt: Comment out regcomp.c, since we have a porting
39529         fix now.
39530
39531 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
39532         and Paul Eggert  <eggert@cs.ucla.edu>
39533
39534         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
39535         in wint_t, not wchar_t.  Remove now-unnecessary cast.
39536
39537 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
39538
39539         * modules/regex (Files): Add lib/regex_internal.c,
39540         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
39541         (Depends-on): Add extensions.
39542         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
39543
39544 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
39545
39546         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
39547         pathconf.
39548         * m4/same.m4 (gl_SAME): Likewise.
39549         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
39550
39551         * m4/regex.m4: Adjust to new libc regex implementation.
39552         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
39553         all the .c and .h parts of (the new) regex.
39554         Quote the m4 stuff better.
39555         Check for RE_ICASE bug of old gnulib.
39556         Check for REG_STARTEND of recent libc.
39557         Rename local variables from jm_* to gl_*.
39558         Quote operand of "test -f".
39559         Say "recent enough" version of libc, not "version 2".
39560         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
39561         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
39562         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
39563         Remove check for btowc, isascii.
39564         Require AM_LANGINFO_CODESET.
39565
39566 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
39567
39568         * lib/regex.c, regex.h: Sync from libc.
39569         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
39570         * lib/regexec.c:
39571         New files, synced from libc, except that regex_internal.h
39572         currently has a small porting fix.
39573
39574 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
39575
39576         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
39577         regex_internal.c, regexec.c.
39578         Add regex_internal.h too, but as a comment, since the libc version
39579         is currently broken in gnulib mode.
39580
39581 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
39582
39583         Support programs like Emacs that use gnulib but not gettext.
39584         * MODULES.html.sh (Internationalization functions): Add gettext-h.
39585         * modules/gettext-h: New file.
39586         * modules/gettext (Files): Remove lib/gettext.h.
39587         (Depends-on): Add gettext-h.
39588         (Makefile.am): Remove lib_SOURCES.
39589         * modules/argmatch, modules/c-stack, modules/closeout:
39590         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
39591         * modules/execute, modules/file-type, modules/getaddrinfo:
39592         * modules/getopt, modules/human, modules/javacomp:
39593         * modules/javaexec, modules/mkdir-p, modules/obstack:
39594         * modules/openat, modules/pagealign_alloc, modules/pipe:
39595         * modules/quotearg, modules/regex, modules/rpmatch:
39596         * modules/unicodeio, modules/userspec, modules/version-etc:
39597         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
39598         * modules/xsetenv:
39599         Depend on gettext-h, not gettext.
39600
39601 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
39602
39603         * gnulib-tool (func_import): Add support for 'public domain' license.
39604         * modules/alloca, modules/atexit, modules/memmove:
39605         Now public domain, not GPL.
39606         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
39607         * modules/realloc, modules/strerror, modules/strtod:
39608         Now LGPL, not GPL.
39609
39610 2005-07-05  Bruno Haible  <bruno@clisp.org>
39611
39612         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
39613         autoconf CVS. Needed for mingw.
39614
39615 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
39616
39617         Remove the dependency of the strftime module on the tzset module.
39618         * modules/strftime (Depends-on): Remove dependency on tzset.
39619
39620 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
39621
39622         Remove the dependency of the strftime module on the tzset module.
39623         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
39624         gl_FUNC_TZSET_CLOBBER.
39625
39626 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
39627
39628         Remove the dependency of the strftime module on the tzset module.
39629         * lib/strftime.c (my_strftime)
39630         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
39631         Copy the input structure, to work around some of the bug with
39632         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
39633         Solaris releases, you should also use the tzset module, but we won't
39634         require it as a dependency any more since we don't want LGPLed code
39635         to depend on GPLed code.
39636
39637 2005-07-02  Jim Meyering  <jim@meyering.net>
39638
39639         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
39640         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
39641         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
39642         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
39643
39644 2005-07-02  Jim Meyering  <jim@meyering.net>
39645
39646         * lib/backupfile.c (backup_args): Change a `0' to NULL.
39647
39648 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
39649
39650         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
39651         declares only 'struct timespec;' (!).
39652
39653 2005-07-01  Jim Meyering  <jim@meyering.net>
39654
39655         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
39656         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
39657         * lib/save-cwd.c, tempname.c:
39658         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
39659         and don't include <sys/file.h>).
39660
39661 2005-06-29  Jim Meyering  <jim@meyering.net>
39662
39663         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
39664         type name.  Use the variable name instead.
39665         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
39666         Likewise.
39667
39668 2005-06-28  Simon Josefsson  <jas@extundo.com>
39669
39670         * modules/check-version (Files): Add check-version.m4.
39671
39672 2005-06-28  Simon Josefsson  <jas@extundo.com>
39673
39674         * m4/check-version.m4: New file, suggested by Jim Meyering
39675         <jim@meyering.net>.
39676
39677 2005-06-28  Simon Josefsson  <jas@extundo.com>
39678
39679         * lib/check-version.h, lib/check-version.c: New files.
39680
39681 2005-06-28  Simon Josefsson  <jas@extundo.com>
39682
39683         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
39684         collision with global variable.  Better indentation.  Don't
39685         increment buffer pointer beyond buffer end.  Based on comments
39686         from Paul Eggert <eggert@cs.ucla.edu>.
39687
39688         * lib/base64.h: Indent.
39689
39690 2005-06-28  Simon Josefsson  <jas@extundo.com>
39691
39692         * doc/gnulib.texi (Library version handling): New section.
39693
39694 2005-06-28  Jim Meyering  <jim@meyering.net>
39695
39696         * check-module (find_included_lib_files): Hard-code another
39697         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
39698         but modules/fts-lgpl (correctly) does not list those files.
39699
39700         * modules/canonicalize (Files): Add lib/pathmax.h.
39701
39702 2005-06-25  Simon Josefsson  <jas@extundo.com>
39703
39704         * modules/check-version: New file.
39705
39706 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
39707
39708         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
39709         initializer of struct addrinfo, as an indication that we don't
39710         care how many members the structure has.
39711
39712 2005-06-24  Derek Price  <derek@ximbiot.com>
39713         and Bruno Haible  <bruno@clisp.org>
39714
39715         Remove stat module & update lstat.
39716         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
39717         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39718         * m4/stat.m4: Remove this file.
39719
39720 2005-06-24  Derek Price  <derek@ximbiot.com>
39721         and Bruno Haible  <bruno@clisp.org>
39722
39723         Remove stat module & update lstat.
39724         * lib/stat.c: Remove this file...
39725         (slash_aware_lstat): ...moving this content and its support...
39726         * lib/lstat.c (rpl_lstat): ...into here.
39727         * lib/lstat.h: New file.
39728
39729 2005-06-24  Derek Price  <derek@ximbiot.com>
39730         and Bruno Haible  <bruno@clisp.org>
39731
39732         Remove stat module & update lstat.
39733         * config/srclist.txt (libc sources): Remove stat.
39734
39735 2005-06-24  Derek Price  <derek@ximbiot.com>
39736         and Bruno Haible  <bruno@clisp.org>
39737
39738         Remove stat module & update lstat.
39739         * MODULES.html.sh (stat): Remove.
39740         * MODULES.html: Regenerated.
39741         * modules/lstat (Description): Correct function name.
39742         (Files): Add "lstat.h".
39743         (Depends-on): Remove stat, add xalloc, stat-macros.
39744         * modules/stat: Remove this file.
39745         (Include): Add "lstat.h", remove <sys/stat.h>.
39746
39747 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
39748
39749         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
39750         (ranged_convert): Don't save conversion in a temporary struct.
39751         This causes a warning with GCC 4.0.0, and anyway in the typical
39752         case it's not worth the extra 100 bytes or so of code.
39753         (ranged_convert, __mktime_internal): When calling a function via a
39754         pointer P, use P () rather than (*P) (), as we now assume C89 or
39755         better.
39756
39757 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
39758
39759         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
39760         "who -r" failed to give output.  Problem reported by Tim Waugh.
39761
39762         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
39763         (xcalloc): Use it to avoid needless tests.
39764         Problem reported by Jim Meyering.
39765
39766 2005-06-20  Derek Price  <derek@ximbiot.com>
39767
39768         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
39769         unnecessary for Autoconfs > 2.59c.
39770
39771 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39772
39773         * lib/argp.h (__option_is_short): Check upper limit of
39774         __key. Isprint() requires its argument to have the value
39775         of an unsigned char or EOF.
39776
39777 2005-06-16  Jim Meyering  <jim@meyering.net>
39778
39779         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
39780         when either N or S is zero.
39781
39782 2005-06-16  Derek Price  <derek@ximbiot.com>
39783
39784         * m4/bison.m4: Declare YACC & YFLAGS precious.
39785
39786 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
39787
39788         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
39789         multibyte string or pattern, fall back on unibyte matching.
39790         Problem reported by James Youngman.
39791
39792 2005-06-08  Bruno Haible  <bruno@clisp.org>
39793
39794         * modules/csharpcomp: New file.
39795         * MODULES.html.sh (C#): Add csharpcomp.
39796
39797 2005-06-08  Bruno Haible  <bruno@clisp.org>
39798
39799         * m4/csharpcomp.m4: New file, from GNU gettext.
39800
39801 2005-06-08  Bruno Haible  <bruno@clisp.org>
39802
39803         * lib/csharpcomp.h: New file, from GNU gettext.
39804         * lib/csharpcomp.c: New file, from GNU gettext.
39805         * lib/csharpcomp.sh.in: New file, from GNU gettext.
39806
39807 2005-06-08  Bruno Haible  <bruno@clisp.org>
39808
39809         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
39810         warning on mingw.
39811
39812 2005-06-07  Derek Price  <derek@ximbiot.com>
39813
39814         Sync from CVS.
39815         * lib/glob_.h: Indent nested #ifdef.
39816
39817 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
39818
39819         Sync from coreutils.
39820         Use "file name" when talking about file names, instead of "filename"
39821         or "path", as per the GNU coding standards.
39822         * lib/mkdir-p.c: Renamed from makepath.c.
39823         (make_dir_parents): Renamed from make_path.  All callers changed.
39824         * lib/mkdir-p.h: Likewise.  All includers changed.
39825         * lib/filenamecat.c: Renamed from path-concat.c.
39826         (file_name_concat): Renamed from path_concat.  All callers changed.
39827         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
39828         * lib/filenamecat.h: Likewise.  All includers changed.
39829         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
39830         in comments or local variable names.
39831         * lib/basename.c: Likewise.
39832         * lib/canonicalize.c, canonicalize.h: Likewise.
39833         * lib/dirname.c, dirname.h: Likewise.
39834         * lib/euidaccess.c: Likewise.
39835         * lib/exclude.c: Likewise
39836         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
39837         * lib/fsusage.c, fsuage.h: Likewise.
39838         * lib/fts.c, fts_.h: Likewise.
39839         * lib/getcwd.c: Likewise.
39840         * lib/getloadavg.c: Likewise.
39841         * lib/mkstemp.c: Likewise.
39842         * lib/mountlist.c, mountlist.h: Likewise.
39843         * lib/openat.c, openat.h: Likewise.
39844         * lib/readlink-stub.c: Likewise.
39845         * lib/readutmp.c, readutmp.h: Likewise.
39846         * lib/rename.c: Likewise.
39847         * lib/rmdir.c: Likewise.
39848         * lib/same.c: Likewise.
39849         * lib/savedir.c: Likewise.
39850         * lib/stripslash.c: Likewise.
39851         * lib/tempname.c: Likewise.
39852         * lib/xreadlink.c: Likewise.
39853         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
39854         All uses changed.
39855         * lib/exclude.h: Likewise.
39856
39857         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
39858         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
39859         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
39860         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
39861         * lib/pathmax.h: Include <limits.h> unconditionally, since other
39862         files have been getting away with it for years (MORE/BSD 4.3
39863         is extinct now).
39864         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
39865         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
39866
39867         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
39868         Define to 256, not 255, as per modern POSIX.
39869
39870 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
39871
39872         Sync from coreutils.
39873         Use "file name" when talking about file names, instead of "filename"
39874         or "path", as per the GNU coding standards.
39875         * MODULES.html.sh: mkdir-p renamed from makepath.
39876         filenamecat renamed from path-concat.
39877         * modules/filenamecat: Renamed from modules/path-concat.
39878         (Files): filenamecat.h and filenamecat.c renamed from
39879         path-concat.h and path-concat.c.
39880         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
39881         (Include): filenamecat.h, not path-concat.h.
39882         * modules/mkdir-p: Renamed from modules/makepath.
39883         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
39884         makepath.c.
39885         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
39886         (Include): mkdir-p.h, not makepath.h.
39887
39888 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
39889
39890         Sync from coreutils.
39891         * m4/mkdir-p.m4: Renamed from makepath.m4.
39892         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
39893         Rename files from makepath.c to mkdir-p.c, and from
39894         makepath.h to mkdir-p.h.
39895         * m4/filenamecat.m4: Renamed from path-concat.m4.
39896         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
39897         Rename files from path-concat.c to filenamecat.c,
39898         and from path-concat.h to filenamecat.h.
39899         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
39900         "file name" in local variables or comments.
39901         * m4/rename.m4: Likewise.
39902
39903 2005-06-01  Bruno Haible  <bruno@clisp.org>
39904
39905         * modules/csharpexec: New file.
39906         * MODULES.html.sh (C#): New section.
39907
39908 2005-06-01  Bruno Haible  <bruno@clisp.org>
39909
39910         * m4/csharp.m4: New file, from GNU gettext.
39911         * m4/csharpexec.m4: New file, from GNU gettext.
39912
39913 2005-06-01  Bruno Haible  <bruno@clisp.org>
39914
39915         * lib/csharpexec.h: New file, from GNU gettext.
39916         * lib/csharpexec.c: New file, from GNU gettext.
39917         * lib/csharpexec.sh.in: New file, from GNU gettext.
39918
39919 2005-05-31  Derek Price  <derek@ximbiot.com>
39920             Paul Eggert  <eggert@cs.ucla.edu>
39921
39922         Sync from cvs.
39923         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
39924
39925 2005-05-31  Derek Price  <derek@ximbiot.com>
39926             Paul Eggert  <eggert@cs.ucla.edu>
39927
39928         Sync from cvs.
39929         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
39930
39931 2005-05-29  Derek Price  <derek@ximbiot.com>
39932
39933         * config/srclist.txt (glob_.h, glob.c): Add these files.
39934
39935 2005-05-29  Derek Price  <derek@ximbiot.com>
39936
39937         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
39938         * modules/glob: New file.
39939         * modules/getlogin_r: Add link to POSIX spec in description.
39940
39941 2005-05-29  Derek Price  <derek@ximbiot.com>
39942             Paul Eggert  <eggert@cs.ucla.edu>
39943
39944         * m4/glob.m4: New file.
39945
39946 2005-05-29  Derek Price  <derek@ximbiot.com>
39947             Paul Eggert  <eggert@cs.ucla.edu>
39948
39949         * lib/glob_.h, lib/glob.c: New files.
39950
39951 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
39952
39953         * modules/fts (Files): Remove m4/inttypes-pri.m4.
39954         * modules/fts-lgpl (Depends-on): Remove gettext.
39955
39956 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
39957
39958         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
39959         and don't require gt_INTTYPES_PRI.
39960
39961 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
39962
39963         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
39964
39965         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
39966         the configuration hassle isn't worth it.
39967         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
39968         (LONGEST_MODIFIER, PRIuMAX): Remove.
39969
39970 2005-05-27  Bruno Haible  <bruno@clisp.org>
39971
39972         * lib/getlogin_r.h: Remove second include of <stddef.h>.
39973
39974 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
39975
39976         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
39977         _POSIX_PTHREAD_SEMANTICS for Solaris.
39978
39979 2005-05-25  Derek Price  <derek@ximbiot.com>
39980
39981         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
39982
39983 2005-05-25  Derek Price  <derek@ximbiot.com>
39984             Paul Eggert  <eggert@cs.ucla.edu>
39985
39986         * modules/getlogin_r, m4/getlogin_r.m4: New files.
39987         * lib/getlogin_r.c, getlogin_r.h: New files.
39988
39989 2005-05-25  Bruno Haible  <bruno@clisp.org>
39990             Derek Price  <derek@ximbiot.com>
39991
39992         * lib/getlogin_r.h: Simplify API documentation.
39993
39994 2005-05-23  Derek Price  <derek@ximbiot.com>
39995
39996         * modules/minmax (Files): Add m4/minmax.m4.
39997         (configure.ac): Add gl_MINMAX.
39998
39999 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
40000
40001         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
40002         so that unistd-safer.h (GPL'ed code) need not be included.
40003
40004 2005-05-22  Bruno Haible  <bruno@clisp.org>
40005
40006         * m4/minmax.m4: New file.
40007         Based on a patch by Derek Price <derek@ximbiot.com>.
40008
40009 2005-05-22  Bruno Haible  <bruno@clisp.org>
40010
40011         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
40012         (INT64_MIN): Fix definition.
40013         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
40014
40015         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
40016         NEED_SIGNED_INT_TYPES.
40017
40018         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
40019         HAVE_SYSTEM_INTTYPES.
40020
40021 2005-05-22  Bruno Haible  <bruno@clisp.org>
40022
40023         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
40024         Also include <sys/param.h> if it defines MIN, MAX.
40025         Based on a patch by Derek Price <derek@ximbiot.com>.
40026
40027 2005-05-21  Jim Meyering  <jim@meyering.net>
40028
40029         * modules/fts (Files): Add m4/inttypes-pri.m4.
40030         (Depends-on): Add lstat and remove gettext.  Alphabetize.
40031
40032 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
40033
40034         New fts module.
40035         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
40036         (setup_dir, free_dir): New functions.
40037         (enter_dir, leave_dir): Define trivial
40038         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
40039         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
40040         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
40041         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
40042         Move to fts-cycle.c.
40043         (fts_open): Use setup_dir.
40044         (fts_close): Use free_dir.
40045         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
40046         This adds a label and some gotos, but the alternatives were messier.
40047         Check for memory allocation failure when entering a dir.
40048         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
40049         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
40050         (FTS): New member fts_cycle, that is a union that contains the
40051         old active_dir_ht and cycle_state.  All uses changed to mention
40052         fts_cycle.ht and fts_cycle.state.
40053         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
40054         fts.c, with the following changes:
40055         (setup_dir, free_dir): New functions.
40056         (enter_dir): Now returns bool.  Return true if successful, false
40057         if memory exhausted.  All callers changed.
40058         Do not bother partly cleaning up on
40059         memory allocation failure; that is free_dir's job.
40060         However, free ad if hash_insert fails, to avoid memory leak.
40061         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
40062         fts->fts_options to see which union member to use.
40063
40064 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
40065
40066         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
40067         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
40068
40069 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
40070
40071         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
40072
40073 2005-05-20  Jim Meyering  <jim@meyering.net>
40074
40075         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
40076         Now a macro, to pacify GCC.
40077
40078 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
40079
40080         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
40081         of -1.
40082
40083 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
40084
40085         * lib/chown.c (rpl_chown): Return -1 on failure.
40086
40087 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
40088
40089         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
40090         Don't check for stddef.h.
40091         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
40092         don't use its results.
40093         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
40094         since we include them unconditionally.  Don't require
40095         AM_STDBOOL_H, since stdbool is a prerequisite.
40096         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
40097         since we assume C89 or better.
40098         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
40099         as we don't use their results.
40100         Don't check for fchdir, memmove, memset, strrchr, as we use
40101         them unconditionally.
40102         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
40103         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
40104
40105 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
40106
40107         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
40108         Include <stddef.h> unconditionally, since we assume C89 now.
40109         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
40110         * lib/fts.c: Include fts_.h first, to check interface.
40111         Do not include intprops.h; no longer needed.
40112         Include cycle-check.h and hash.h, since fts_.h no longer does.
40113         Remove unnecessary casts of closedir to void.
40114         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
40115         decide whether to decrement nlinks.
40116         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
40117         (FTS): Use struct hash_table * instead of Hash_table, so that
40118         we no longer need to include hash.h here.
40119
40120 2005-05-18  Jim Meyering  <jim@meyering.net>
40121
40122         * modules/dirfd (License): Change to LGPL.  Most of the code
40123         is already in the public domain.
40124
40125 2005-05-18  Jim Meyering  <jim@meyering.net>
40126
40127         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
40128         Reported by Yoann Vandoorselaere.
40129
40130 2005-05-17  Jim Meyering  <jim@meyering.net>
40131
40132         * m4/fts.m4: New file, from coreutils.
40133
40134 2005-05-17  Jim Meyering  <jim@meyering.net>
40135
40136         * lib/fts.c, lib/fts_.h: New files, from coreutils.
40137
40138 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
40139
40140         Sync from coreutils.
40141         * m4/unlinkdir.m4: New file.
40142
40143 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
40144
40145         Sync from coreutils.
40146         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
40147         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
40148         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
40149         White space changes only.
40150         * lib/makepath.c (make_path): Port to hosts where leading "//" is
40151         special.
40152         * lib/yesno.c: Include getline.h, not ctype.h.
40153         (yesno): Don't remove leading white space; POSIX doesn't allow it.
40154         Use getline to remove arbitrary restriction on response length.
40155
40156 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
40157
40158         * config/srclist-update: Spell out "Street" in FSF postal
40159         mail address; this is the style the FSF seems to prefer.
40160
40161         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
40162         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
40163         this updates FSF postal mail address.
40164
40165         Sync from coreutils.
40166         * modules/unlinkdir: New file.
40167         * modules/yesno (Depends-on): Add getline.
40168         * MODULES.html.sh (File system functions): Add unlinkdir.
40169
40170 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
40171
40172         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
40173         lib/strsep.h:
40174         Change the initial comment to refer to GPL, not LGPL.
40175         gnulib-tool will change it to LGPL as needed.
40176
40177         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
40178         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
40179         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
40180         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
40181         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
40182         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
40183         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
40184         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
40185         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
40186         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
40187         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
40188         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
40189         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
40190         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
40191         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
40192         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
40193         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
40194         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
40195         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
40196         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
40197         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
40198         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
40199         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
40200         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
40201         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
40202         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
40203         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
40204         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
40205         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
40206         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
40207         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
40208         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
40209         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
40210         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
40211         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
40212         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
40213         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
40214         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
40215         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
40216         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
40217         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
40218         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
40219         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
40220         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
40221         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
40222         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
40223         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
40224         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
40225         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
40226         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
40227         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
40228         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
40229         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
40230         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
40231         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
40232         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
40233         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
40234         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
40235         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
40236         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
40237         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
40238         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
40239         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
40240         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
40241         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
40242         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
40243         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
40244         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
40245         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
40246         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
40247         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
40248         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
40249         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
40250         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
40251         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
40252         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
40253         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
40254         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
40255         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
40256         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
40257         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
40258         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
40259         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
40260         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
40261         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
40262         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
40263         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
40264         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
40265         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
40266         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
40267         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
40268         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
40269         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
40270         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
40271         lib/yesno.c, lib/yesno.h:
40272         Update FSF postal mail address.
40273
40274 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
40275
40276         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
40277         tests/test-memmem.c, tests/test-stpncpy.c:
40278         Update FSF postal mail address.
40279
40280 2005-05-13  Bruno Haible  <bruno@clisp.org>
40281
40282         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
40283         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
40284         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
40285         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
40286         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
40287         Add support for 64-bit integers in the MSVC compiler.
40288
40289 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40290
40291         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
40292
40293 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
40294
40295         * gnulib-tool (func_import): Sort and uniquify recommended includes.
40296
40297 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
40298
40299         * doc/getdate.texi (General date syntax): Don't say that date
40300         date --iso-8601=ns generates acceptable dates; it doesn't yet.
40301         Problem reported by Nic Ferrier.
40302
40303 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40304
40305         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
40306         specified in ai_socktype. Fix invalid ai_protocol
40307         check. ai_protocol is usually set to 0 or depending on
40308         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
40309         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
40310         ai_socktype / ai_protocol in the returned addrinfo structure.
40311
40312 2005-05-10  Simon Josefsson  <jas@extundo.com>
40313
40314         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
40315         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40316
40317 2005-05-10  Karl Berry  <karl@gnu.org>
40318
40319         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
40320         (from http://www.gnu.org/licenses).
40321         * doc/COPYING.LIB: also rename to COPYING.LESSER.
40322         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
40323         fdl.texi suffices.
40324
40325 2005-05-10  Karl Berry  <karl@gnu.org>
40326
40327         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
40328         (COPYING.DOC): remove.
40329
40330         * config/srclist-update: new FSF address.
40331
40332 2005-05-10  Derek Price  <derek@ximbiot.com>
40333
40334         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
40335         possible.
40336
40337 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40338             Bruno Haible  <bruno@clisp.org>
40339
40340         * modules/inet_ntop: New file.
40341         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40342         inet_ntop.
40343
40344 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40345             Bruno Haible  <bruno@clisp.org>
40346
40347         * m4/inet_ntop.m4: New file.
40348
40349 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40350             Bruno Haible  <bruno@clisp.org>
40351
40352         * lib/inet_ntop.h: New file.
40353         * lib/inet_ntop.c: New file, from glibc with modifications.
40354
40355 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
40356
40357         * modules/time_r (License): Change to LGPL.
40358         * modules/extensions (License): Change to LGPL.  Actually,
40359         the license is more permissive than that, but currently gnulib-tool
40360         doesn't know how to handle more-permissive licenses.
40361
40362         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
40363         Problem reported by Dave Love.
40364
40365 2005-05-08  Jim Meyering  <jim@meyering.net>
40366
40367         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
40368         blank.
40369
40370 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
40371
40372         * modules/argmatch (Depends-on): Add stdbool.
40373         * modules/backupfile (Depends-on): Likewise.
40374         * modules/chdir-long (Depends-on): Likewise.
40375         * modules/closeout (Depends-on): Likewise.
40376         * modules/cycle-check (Depends-on): Likewise.
40377         * modules/dirname (Depends-on): Likewise.
40378         * modules/fnmatch (Depends-on): Likewise.
40379         * modules/fsusage (Depends-on): Likewise.
40380         * modules/fwriteerror (Depends-on): Likewise.
40381         * modules/getcwd (Depends-on): Likewise.
40382         * modules/getloadavg (Depends-on): Likewise.
40383         * modules/hard-locale (Depends-on): Likewise.
40384         * modules/makepath (Depends-on): Likewise.
40385         * modules/mountlist (Depends-on): Likewise.
40386         * modules/nanosleep (Depends-on): Likewise.
40387         * modules/posixtm (Depends-on): Likewise.
40388         * modules/quotearg (Depends-on): Likewise.
40389         * modules/readtokens (Depends-on): Likewise.
40390         * modules/readtokens0 (Depends-on): Likewise.
40391         * modules/readutmp (Depends-on): Likewise.
40392         * modules/save-cwd (Depends-on): Likewise.
40393         * modules/strftime (Depends-on): Likewise.
40394         * modules/userspec (Depends-on): Likewise.
40395         * modules/utimecmp (Depends-on): Likewise.
40396         * modules/xgetcwd (Depends-on): Likewise.
40397         * modules/xnanosleep (Depends-on): Likewise.
40398         * modules/xstrtod (Depends-on): Likewise.
40399         * modules/yesno (Depends-on): Likewise.
40400
40401 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
40402
40403         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
40404         needless checks.
40405
40406 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
40407
40408         Merge from coreutils.  Among other things,
40409         add bulletproofing for cases where stdin, stdout, or stderr are closed.
40410         * lib/fd-safer.c: New file.
40411         * lib/fcntl-safer.h, open-safer.c: Remove.
40412         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
40413         * lib/dup-safer.c: Include unistd-safer.h first.
40414         Don't include errno.h.
40415         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
40416         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
40417         * lib/file-type.c: Rely on file-type.h change.
40418         * lib/getloadavg.c: Include unistd-safer.h.
40419         (getloadavg): Use safer open.
40420         * lib/getusershell.c: Include "stdio-safer.h".
40421         (getusershell): Use safer fopen.
40422         * lib/long-options.c (long_options): Use NULL rather than 0.
40423         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
40424         'free'.
40425         * lib/modechange.c: Likewise.
40426         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
40427         (MODE_DONE): New constant.
40428         (struct mode_change): Remove 'next' member.
40429         (make_node_op_equals): New function; like the old one of the
40430         same name, except it allocates an array.
40431         (mode_compile, mode_create_from_ref): Use it.
40432         (mode_compile): Allocate result as an array, not a linked list.
40433         Parse octal string ourself, so that we catch mistakes like "+0".
40434         (mode_adjust): Arg is an array, not a linked list.
40435         * lib/modechange.c: Include stat-macros.h, xalloc.h.
40436         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
40437         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
40438         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
40439         Remove.  This is now stat-macros.h's job.
40440         (talloc): Remove.  All callers replaced by xalloc, so that
40441         our invokers don't have to worry about reporting memory failures.
40442         (make_node_op_equals): Remove.
40443         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
40444         New constants.
40445         (struct mode_change): Moved here from modechange.h.
40446         (mode_append_entry): Remove.
40447         (mode_compile): Remove MASKED_OPS arg, since it encouraged
40448         apps to have incorrect behavior.  Use simpler algorithm for head
40449         and tail.  Don't futz with umask; that's now the job of mode_adjust.
40450         Detect more invalid usages rather than having somewhat-random behavior.
40451         Don't insert an "a=" action, as that leads to incorrect behavior.
40452         (mode_compile, mode_create_from_ref): Return NULL on error instead
40453         of an enum, since now there's only one way to have an error.  All
40454         callers changed.
40455         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
40456         at the correct time.  Simplify calculation of "+u" and its ilk.
40457         Don't mishandle "+X".
40458         (mode_free): Remove "register" and localize decls.
40459         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
40460         (struct mode_change): Move to modechange.c; callers don't
40461         need to see this stuff.
40462         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
40463         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
40464         (mode_change, mode_adjust): Reflect the new signatures noted above.
40465         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
40466         that might redefine system include files.
40467         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
40468         (my_usleep): Use NULL rather than (void *) 0.
40469         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
40470         Use siginterrupt to specify that system calls should be interrupted.
40471         (rpl_nanosleep): Move initialization of suspended closer to call of
40472         my_usleep.
40473         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
40474         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
40475         (desirable_utmp_entry): New function.
40476         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
40477         using x2nrealloc, to simplify logic.
40478         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
40479         size calculation.  Do not assume utmp file is a regular file.
40480         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
40481         (READ_UTMP_CHECK_PIDS): New constant.
40482         * lib/save-cwd.c: Include unistd-safer.h.
40483         (save_cwd): Use fd_safer.
40484         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
40485         [!_LIBC] Include "stat-macros.h" instead.
40486         * lib/unistd-safer.h (fd_safer): New decl.
40487
40488 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
40489
40490         * modules/getloadavg (Depends-on): Add unistd-safer.
40491         * modules/getusershell (Depends-on): Add stdio-safer.
40492         * modules/lstat (Depends-on): Remove xalloc.
40493         * modules/mkstemp (Depends-on): Add stat-macros.
40494         * modules/modechange (Depends-on): Remove xstrtol.
40495         Add stat-macros, xalloc.
40496         * modules/save-cwd (Depends-on): Add unistd-safer.
40497         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
40498         * modules/unistd-safer (Files): Add lib/fd-safer.c
40499         (Makefile.am): Remove lib_SOURCES.
40500
40501         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
40502         Remove fcntl-safer; unistd-safer supersedes it.
40503
40504 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
40505
40506         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
40507         AC_HEADER_STAT.
40508         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
40509         (gl_PREREQ_CHOWN): Remove.
40510         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
40511         it.  Don't require AC_HEADER_STAT.
40512         (gl_PREREQ_LSTAT): Remove.
40513         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
40514         Don't require AC_HEADER_STAT.
40515         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
40516         (gl_PREREQ_RMDIR): Remove.
40517         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
40518         mention stat-macros.h or AC_HEADER_STAT, since we'll make
40519         the stat-macros module a prerequisite.
40520         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
40521         * m4/filemode.m4 (gl_FILEMODE): Likewise.
40522         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
40523         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
40524         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
40525         variable names.
40526         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
40527         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
40528         variable prefixes.
40529         * m4/fcntl-safer.m4: Remove.
40530         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
40531         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
40532         Invoke gl_PREREQ_FD_SAFER.
40533         (gl_PREREQ_FD_SAFER): New macro.
40534         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
40535         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
40536         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
40537         Remove duplicate call to AC_LIBOBJ(readutmp).
40538         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
40539
40540         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
40541         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
40542
40543 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
40544
40545         * MODULES.html.sh (Misc): Add byteswap.
40546
40547 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
40548
40549         * modules/getcwd (Depends-on): Add extensions.
40550         * modules/openat (Depends-on): Likewise.
40551
40552 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
40553
40554         * modules/byteswap: New file.
40555
40556 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
40557
40558         * m4/byteswap.m4: New file.
40559
40560 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
40561
40562         * lib/byteswap_.h: New file.
40563
40564 2005-04-25  Karl Berry  <karl@gnu.org>
40565
40566         * m4/gettext.m4: Update from GNU gettext 0.14.4.
40567
40568 2005-04-25  Albert Chin  <china@thewrittenword.com>
40569
40570         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
40571         Toolkit C bug.
40572
40573 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
40574
40575         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
40576         (func_ln_if_changed) Remove forcibly for no error message
40577         in case file does not exist.
40578
40579 2005-04-19  Simon Josefsson  <jas@extundo.com>
40580
40581         * gnulib-tool (Options): Make --symlink mean --symbolic.
40582
40583 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
40584
40585         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
40586
40587 2005-04-16  Simon Josefsson  <jas@extundo.com>
40588
40589         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
40590
40591 2005-04-15  Simon Josefsson  <jas@extundo.com>
40592
40593         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
40594
40595 2005-04-15  Simon Josefsson  <jas@extundo.com>
40596
40597         * gnulib-tool: Rename --symlink to --symbolic.
40598
40599 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
40600
40601         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
40602         symbolic links to files instead of copying/moving.  Add --aux-dir,
40603         specifying directory relative --dir where auxiliary build tools
40604         are placed.
40605
40606 2005-04-14  Bruno Haible  <bruno@clisp.org>
40607
40608         * modules/allocsa (License): Change to LGPL.
40609         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40610
40611 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
40612
40613         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
40614         that "UTC +1 second" continues to work.  Problem reported
40615         by Dmitry V. Levin.
40616         (relunit_snumber): New rule.
40617         (relunit): Use it.
40618
40619 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
40620
40621         * lib/getdate.y (universal_time_zone_table): New constant.
40622         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
40623         universal_time_zone_table.
40624         (lookup_zone): Prefer universal_time_zone_table to
40625         local_time_zone_table, so that "GMT" time stamps are allowed in
40626         London during the summer.  Problem reported by Ian Abbott.
40627
40628 2005-04-12  Jim Meyering  <jim@meyering.net>
40629
40630         * lib/human.c (humblock): Set *options even when returning due to
40631         xstrtoumax conversion failure.  Thanks to a used-uninitialized
40632         warning from gcc-4.
40633
40634 2005-04-09  Jim Meyering  <jim@meyering.net>
40635
40636         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
40637         -Wuninitialized: initialize tm0.tm_year.
40638
40639 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40640
40641         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
40642         count, since there's no maximum.  All uses changed.
40643         Add member dsts_seen.
40644         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
40645         not being INT_MAX.
40646         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
40647         Use pc_rels_seen to decide whther a date is absolute.
40648
40649         * lib/getdate.y (number): Don't overwrite year.
40650         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
40651         check.
40652
40653 2005-04-02  Simon Josefsson  <jas@extundo.com>
40654
40655         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
40656         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
40657
40658 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
40659
40660         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
40661         where no absolute path name can be longer than PATH_MAX.
40662
40663 2005-03-27  Jim Meyering  <jim@meyering.net>
40664
40665         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
40666
40667 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
40668
40669         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
40670         "one's complement" -> "ones' complement" in comment, as per Knuth.
40671         "value of type" -> "type or expression" in comment.
40672         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
40673
40674 2005-03-26  Jim Meyering  <jim@meyering.net>
40675
40676         Comment nits.
40677         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
40678         Correct typos: s/or/of/.
40679
40680 2005-03-26  Jim Meyering  <jim@meyering.net>
40681
40682         * modules/check-include-files: Move to ../ and rename to...
40683         * check-module: ...this.
40684
40685 2005-03-25  Jim Meyering  <jim@meyering.net>
40686
40687         * modules/xvasprintf (Files): Add xalloc.h.
40688
40689 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
40690
40691         * modules/gettext (Files): config/config.rpath ->
40692         build-aux/config.rpath
40693         * modules/iconv (Files): Likewise.
40694         Problem reported by Oskar Liljeblad.
40695
40696 2005-03-23  Jim Meyering  <jim@meyering.net>
40697
40698         * modules/check-include-files: New script to check for
40699         missing dependencies, multiple includes, etc.
40700
40701         * modules/c-strtold (Depends-on): Add xalloc.
40702         * modules/c-strtod (Depends-on): Add xalloc.
40703         * modules/hash (Depends-on): Add xalloc.
40704         (Files): Remove lib/xalloc.h.
40705
40706         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
40707         * modules/userspec (Files): Add lib/inttostr.h.
40708
40709 2005-03-23  Jim Meyering  <jim@meyering.net>
40710
40711         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
40712
40713 2005-03-22  Jim Meyering  <jim@meyering.net>
40714
40715         * modules/stat-macros: New module.
40716         * modules/canonicalize, modules/euidaccess, modules/file-type,
40717         * modules/filemode, modules/lchown, modules/makepath,
40718         * modules/rmdir, modules/stat: Depend on new stat-macros module
40719         rather than listing lib/stat-macros.h manually.
40720         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
40721
40722 2005-03-22  Jim Meyering  <jim@meyering.net>
40723
40724         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
40725
40726 2005-03-22  Bruno Haible  <bruno@clisp.org>
40727
40728         * config/srclist.txt: Replace target directory 'config' with
40729         'build-aux'.
40730         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
40731         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
40732         ../build-aux/.
40733
40734 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
40735
40736         * modules/chdir-long (Depends-on): Add mempcpy.
40737
40738         * modules/acl, modules/backupfile, modules/c-strtod,
40739         modules/c-strtold, modules/canon-host, modules/canonicalize,
40740         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
40741         modules/exclude, modules/exitfail, modules/file-type,
40742         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
40743         modules/getdate, modules/getline, modules/getpagesize,
40744         modules/getpass, modules/getugroups, modules/group-member,
40745         modules/hard-locale, modules/hash, modules/human, modules/idcache,
40746         modules/inttostr, modules/long-options, modules/makepath,
40747         modules/md5, modules/memcasecmp, modules/memcoll,
40748         modules/modechange, modules/mountlist, modules/path-concat,
40749         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
40750         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
40751         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
40752         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
40753         modules/strftime, modules/strndup, modules/strverscmp,
40754         modules/timespec, modules/unlocked-io, modules/userspec,
40755         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
40756         modules/yesno:
40757         Remove lib_SOURCES line from Makefile.am section, as this is now
40758         done automatically by the corresponding Autoconf macro.
40759
40760 2005-03-21  Jim Meyering  <jim@meyering.net>
40761
40762         Changes imported from coreutils.
40763
40764         * lib/cycle-check.c: Don't include xalloc.h.
40765
40766         * lib/path-concat.c: Don't include assert.h.
40767         (path_concat): Remove assertion that would have triggered
40768         for ABASE starting with more than one slash.
40769         Reported by Andreas Schwab.
40770
40771         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
40772         properly when ABASE is an absolute file name.
40773         Correct the description of this function.
40774         Include <assert.h>.
40775         Add an assertion and a test driver.
40776         This fixes a bug introduced on 2004-07-02.
40777         Andreas Schwab reported the resulting failure of cp --parents:
40778         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
40779
40780 2005-03-21  Jim Meyering  <jim@meyering.net>
40781
40782         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
40783         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
40784
40785 2005-03-21  Jim Meyering  <jim@meyering.net>
40786         and  Paul Eggert  <eggert@cs.ucla.edu>
40787
40788         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
40789         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
40790         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
40791         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
40792         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
40793         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
40794         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
40795         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
40796         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
40797         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
40798         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
40799         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
40800         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
40801         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
40802         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
40803         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
40804         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
40805         for these modules.
40806
40807 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
40808
40809         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
40810         (which shouldn't happen), generate nothing instead of returning 0
40811         immediately, so that nstrftime (NULL, ...) doesn't return 0.
40812
40813 2005-03-16  Bruno Haible  <bruno@clisp.org>
40814
40815         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
40816         HAVE_LONGLONG_64BIT.
40817
40818 2005-03-16  Bruno Haible  <bruno@clisp.org>
40819
40820         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
40821         HAVE_LONGLONG_64BIT.
40822
40823 2005-03-16  Bruno Haible  <bruno@clisp.org>
40824
40825         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
40826         HAVE_LONGLONG_64BIT.
40827
40828 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
40829
40830         * lib/strftime.c (my_strftime): Prepend space to format so that we can
40831         reliably distinguish strftime failure from empty output on POSIX
40832         hosts.
40833
40834 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
40835
40836         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
40837         (iconv_string): Don't guess a size-zero buffer, as that might cause
40838         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
40839         result would be 'too large', where 'too large' is (heuristically)
40840         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
40841         overflow concerns.  This will prevent some unwanted malloc failures
40842         when the inputs are very large.
40843
40844 2005-03-15  Karl Berry  <karl@gnu.org>
40845
40846         * config/srclist.txt (config.rpath): from gettext.
40847         * config/config.rpath: update.
40848
40849 2005-03-15  Bruno Haible  <bruno@clisp.org>
40850
40851         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
40852         to 'negate'.
40853
40854         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
40855         variable.
40856
40857         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
40858         results.
40859
40860 2005-03-14  Simon Josefsson  <jas@extundo.com>
40861
40862         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
40863         <fx@gnu.org>.
40864
40865 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
40866
40867         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
40868         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
40869         intprops.h.
40870         * lib/strtol.c: Likewise.
40871
40872 2005-03-14  Jim Meyering  <jim@meyering.net>
40873
40874         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
40875         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
40876         to be nonzero so that we (and caller) can detect the difference
40877         between a valid zero-length expansion and an error return, even
40878         when the underlying strftime fails before writing anything into
40879         that location.
40880
40881 2005-03-14  Bruno Haible  <bruno@clisp.org>
40882
40883         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
40884         Update from GNU gettext 0.14.3.
40885
40886 2005-03-10  Jim Meyering  <jim@meyering.net>
40887
40888         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
40889
40890 2005-03-10  Jim Meyering  <jim@meyering.net>
40891
40892         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
40893         so that this module works on systems without fchdir.
40894
40895 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
40896
40897         Factor int-properties macros into a single file, except for
40898         glibc-related files.
40899         * lib/intprops.h: New file.
40900         * lib/getloadavg.c: Include it instead of limits.h.
40901         (INT_STRLEN_BOUND): Remove.
40902         * lib/human.c: Include intprops.h.
40903         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
40904         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
40905         302/1000.
40906         * lib/inttostr.h: Include intprops.h instead of limits.h.
40907         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
40908         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
40909         for consistency with intprops.h.
40910         (time_t_is_integer, twos_complement_arithmetic): Use them.
40911         * lib/sig2str.h: Include <signal.h>, intprops.h.
40912         (INT_STRLEN_BOUND): Remove.
40913         * lib/strftime.c (TYPE_SIGNED): Remove.
40914         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
40915         * lib/strtol.c: Adjust comments to match intprops.h.
40916         * lib/userspec.c: Include intprops.h.
40917         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
40918         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
40919         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
40920         instead of rolling our own expressions.
40921         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
40922
40923         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
40924         instead of int.
40925         (my_strftime): Do not mishandle years close to INT_MAX, by doing
40926         the right thing even if adding 1900 would overflow.  Similarly
40927         for tm_mon + 1 and tm_yday + 1.
40928         Make %Y always equivalent to %C%y, and similarly for %G and %g.
40929         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
40930         (DO_SIGNED_NUMBER): New macro.
40931         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
40932
40933 2005-03-07  Bruno Haible  <bruno@clisp.org>
40934
40935         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
40936
40937 2005-03-07  Bruno Haible  <bruno@clisp.org>
40938
40939         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
40940
40941 2005-03-04  Derek R. Price  <derek@ximbiot.com>
40942
40943         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
40944         (func_import): Only replace files via --import when they have actually
40945         changed.
40946
40947 2005-03-03  Derek R. Price  <derek@ximbiot.com>
40948
40949         * m4/mmap-anon.m4: New file.
40950         * m4/pagealign_alloc.m4: New file.
40951
40952 2005-03-03  Derek R. Price  <derek@ximbiot.com>
40953             Bruno Haible  <bruno@clisp.org>
40954
40955         * modules/pagealign_alloc: New file.
40956         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
40957
40958 2005-03-03  Derek R. Price  <derek@ximbiot.com>
40959             Bruno Haible  <bruno@clisp.org>
40960
40961         * lib/pagealign_alloc.h: New file.
40962         * lib/pagealign_alloc.c: New file.
40963
40964 2005-03-03  Bruno Haible  <bruno@clisp.org>
40965
40966         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
40967         Use an all-permissive copyright notice, recommended by RMS.
40968
40969 2005-03-02  Bruno Haible  <bruno@clisp.org>
40970
40971         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
40972         of AIX, the replacement has to be done only after <string.h> is
40973         included, therefore not in config.h. stpncpy.h does the replacement,
40974         and stpncpy.c uses it.
40975
40976 2005-03-02  Bruno Haible  <bruno@clisp.org>
40977
40978         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
40979         stpncpy.c uses it.
40980
40981 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
40982
40983         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
40984         The workaround isn't strictly needed for POSIX conformance, and
40985         it's too much of a pain to configure and maintain.  We'll ask
40986         people to fix their kernels instead.
40987         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
40988         (NANOSLEEP_BUG_WORKAROUND): Remove.
40989         (xnanosleep): Remove the workaround.
40990
40991 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
40992
40993         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
40994         Reported by Derek Price.
40995         (Include): Add "timespec.h".
40996
40997         * modules/xnanosleep (Depends-on): Remove gethrxtime.
40998
40999 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41000
41001         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
41002         to detect nanosleep bug.
41003
41004 2005-03-01  Bruno Haible  <bruno@clisp.org>
41005
41006         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
41007
41008 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
41009
41010         * modules/gethrxtime: New file.
41011         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
41012         (Depends-on): Add gethrxtime.
41013         (configure.ac): Add gl_XNANOSLEEP.
41014         (Makefile.am): Remove lib_SOURCES line.
41015
41016 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
41017
41018         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
41019         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
41020
41021 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
41022
41023         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
41024         * lib/timespec.h (gettime): Return void, since it always
41025         succeeds now.  All uses changed.
41026         * lib/gettime.c (gettime) Likewise.
41027         [HAVE_NANOTIME]: Prefer nanotime.
41028         Assume gettimeofday succeeds, as POSIX requires.
41029         Assime time () succeeds, since other code already does.
41030         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
41031         (timespec_subtract): Remove.
41032         (NANOSLEEP_BUG_WORKAROUND): New constant.
41033         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
41034         things considerably.  Use it only on GNU/Linux hosts, since the
41035         workaround shouldn't be needed elsewhere.
41036
41037 2005-02-24  Bruno Haible  <bruno@clisp.org>
41038
41039         * modules/gettext (Files): Add m4/glibc2.m4.
41040
41041 2005-02-24  Bruno Haible  <bruno@clisp.org>
41042
41043         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
41044         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
41045         * m4/progtest.m4:
41046         Update from GNU gettext 0.14.2.
41047         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
41048
41049 2005-02-24  Bruno Haible  <bruno@clisp.org>
41050
41051         * lib/localcharset.c: Update from GNU gettext 0.14.2.
41052         * lib/config.charset: Update from GNU gettext 0.14.2.
41053
41054 2005-02-24  Bruno Haible  <bruno@clisp.org>
41055
41056         * lib/gettext.h: Update from GNU gettext 0.14.2.
41057
41058 2005-02-23  Simon Josefsson  <jas@extundo.com>
41059
41060         * m4/iconvme.m4: New file.
41061
41062 2005-02-23  Jim Meyering  <jim@meyering.net>
41063
41064         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
41065         change.
41066         Thanks to Bruno Haible for catching it.
41067
41068 2005-02-22  Simon Josefsson  <jas@extundo.com>
41069
41070         * modules/iconvme: New file.
41071
41072         * MODULES.html.sh: Add iconvme.
41073
41074 2005-02-22  Simon Josefsson  <jas@extundo.com>
41075
41076         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
41077
41078 2005-02-22  Simon Josefsson  <jas@extundo.com>
41079
41080         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
41081
41082 2005-02-22  Jim Meyering  <jim@meyering.net>
41083
41084         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
41085         s/ifndef/ifdef/.
41086
41087 2005-02-20  Neil Conway  <neilc@samurai.com>
41088
41089         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
41090         returned by OSX/Darwin if the specified buffer is not large
41091         enough for the hostname.
41092
41093 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41094
41095         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
41096         pass it to _help, otherwise the latter coredumps trying to
41097         dereference state.root_argp.
41098
41099 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
41100
41101         * modules/chdir-long (Depends-on): Add memrchr.
41102         * modules/memrchr (Files): Add lib/memrchr.h.
41103         (Include): "memrchr.h".
41104
41105 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
41106
41107         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
41108
41109 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
41110
41111         * lib/memrchr.h: New file.
41112         * lib/chdir-long.c: Include it.
41113         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
41114         Don't bother including stddef.h.
41115
41116 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
41117
41118         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
41119         inclusion.
41120         Include <sys/types.h>, for dev_t.
41121         (ME_DUMMY, ME_REMOTE): Move from here....
41122         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
41123         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
41124         Dmitry V. Levin.
41125         Include mountlist.h first, to test the interface.
41126
41127 2005-01-29  Bruno Haible  <bruno@clisp.org>
41128
41129         * lib/progname.c (program_name): Initialize.
41130         Needed when linking statically on MacOS X.
41131
41132 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
41133
41134         Sync from coreutils.
41135         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
41136         (Depends-on): Add c-strtod.
41137         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
41138
41139 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
41140
41141         Sync from coreutils.
41142         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
41143
41144         Remove files that are specific to coreutils.
41145         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
41146
41147 2005-01-28  Bruno Haible  <bruno@clisp.org>
41148
41149         * modules/javacomp: New file.
41150         * MODULES.html.sh (Java): Add javacomp.
41151
41152 2005-01-28  Bruno Haible  <bruno@clisp.org>
41153
41154         * m4/javacomp.m4: New file, from GNU gettext.
41155
41156 2005-01-28  Bruno Haible  <bruno@clisp.org>
41157
41158         * lib/javacomp.sh.in: New file, from GNU gettext.
41159         * lib/javacomp.h: New file, from GNU gettext.
41160         * lib/javacomp.c: New file, from GNU gettext.
41161
41162 2005-01-26  Simon Josefsson  <jas@extundo.com>
41163
41164         * lib/gai_strerror.c: Use GPL in header.
41165
41166 2005-01-26  Bruno Haible  <bruno@clisp.org>
41167
41168         * modules/javaexec: New file.
41169         * MODULES.html.sh (Java): Add javaexec.
41170
41171 2005-01-26  Bruno Haible  <bruno@clisp.org>
41172
41173         * m4/javaexec.m4: New file, from GNU gettext.
41174
41175 2005-01-26  Bruno Haible  <bruno@clisp.org>
41176
41177         * lib/javaexec.sh.in: New file, from GNU gettext.
41178         * lib/javaexec.h: New file, from GNU gettext.
41179         * lib/javaexec.c: New file, from GNU gettext.
41180
41181 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41182
41183         * modules/lchown (Depends-on): Remove lchown.h
41184
41185 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41186
41187         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
41188         must be defined if the header file was not found, in order
41189         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
41190
41191 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41192
41193         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
41194         initializers for struct pentry_state.
41195         (__argp_error): Check return value of __asprintf
41196         (__argp_failure): Translate error message
41197
41198         * lib/argp-parse.c: Removed braces around the expansion of N_()
41199
41200 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
41201
41202         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
41203         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
41204         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
41205         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
41206         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
41207         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
41208         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
41209         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
41210         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
41211         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
41212         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
41213         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
41214         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
41215         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
41216         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
41217         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
41218         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
41219         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
41220         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
41221         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
41222         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
41223         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
41224         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
41225         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
41226         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
41227         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
41228         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
41229         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
41230         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
41231         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
41232         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
41233         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
41234         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
41235         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
41236         xstrtol.m4, xstrtoumax.m4, yesno.m4:
41237         Use an all-permissive copyright notice, recommended by RMS.
41238
41239 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
41240
41241         * modules/chdir-long (Depends-on): Remove mempcpy.
41242
41243 2005-01-21  Jim Meyering  <jim@meyering.net>
41244
41245         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
41246         same value as for Solaris 9.
41247
41248         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
41249         component length.  This included changing the parameter to be
41250         of type `char *' rather than `char const *'.
41251         * lib/chdir-long.h (chdir_long): Update prototype.
41252
41253         * lib/openat.c (fdopendir, fstatat): New functions.
41254         * lib/openat.h: Include headers required for use of DIR and struct
41255         stat.
41256         [AT_SYMLINK_NOFOLLOW]: Define.
41257         (fdopendir, fstatat): Add prototypes.
41258
41259 2005-01-21  Bruno Haible  <bruno@clisp.org>
41260
41261         * modules/classpath: New file.
41262         * MODULES.html.sh (Java): Add classpath.
41263
41264 2005-01-21  Bruno Haible  <bruno@clisp.org>
41265
41266         * lib/classpath.h: New file, from GNU gettext.
41267         * lib/classpath.c: New file, from GNU gettext.
41268
41269 2005-01-20  Simon Josefsson  <jas@extundo.com>
41270
41271         * modules/version-etc-fsf: New file.
41272
41273 2005-01-20  Simon Josefsson  <jas@extundo.com>
41274
41275         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
41276         * lib/version-etc.c: Remove version_etc_copyright.
41277         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
41278         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
41279
41280 2005-01-20  Simon Josefsson  <jas@extundo.com>
41281
41282         * lib/base64.h (isbase64): Add.
41283
41284         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
41285         using a unsigned prototype, don't inline.
41286         (base64_decode): Use it.
41287
41288 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
41289
41290         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
41291         it.
41292
41293 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
41294
41295         * lib/save-cwd.c (save_cwd): Remove code to support the case
41296         where fchdir is missing or flaky.
41297
41298 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
41299
41300         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
41301
41302 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
41303
41304         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
41305         AC_LIBSOURCES now does this.
41306         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
41307         with new ullong_max module.
41308
41309 2005-01-19  Bruno Haible  <bruno@clisp.org>
41310
41311         * modules/sh-quote: New file.
41312         * MODULES.html.sh (Executing programs): Add sh-quote.
41313
41314 2005-01-19  Bruno Haible  <bruno@clisp.org>
41315
41316         * lib/sh-quote.h: New file, from GNU gettext.
41317         * lib/sh-quote.c: New file, from GNU gettext.
41318
41319 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41320
41321         Merge from coreutils.
41322         * m4/ullong_max.m4: New file.
41323         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
41324         (gl_MACROS): Assume localeconv exists.
41325
41326 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41327
41328         Merge changes from coreutils, as described below in several
41329         changelogs dated today.
41330
41331         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
41332         (O_DIRECTORY): Remove; not needed here, since "." must be
41333         a directory.  All uses removed.
41334         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
41335         universal on Suns, and we also need to test for IRIX.
41336         Revamp code to use 'if' rather than '#if'.
41337         Avoid unnecessary comparison of cwd->desc to 0.
41338
41339         * lib/utimens.c (futimens): Robustify the previous patch, by checking
41340         for known valid error numbers rather than observed invalid ones.
41341
41342 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41343
41344         * modules/ullong_max: New file.
41345
41346         * modules/chdir-long, modules/openat: New files.
41347         * modules/save-cwd (Depends-on): Depend on chdir-long.
41348         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
41349
41350 2005-01-18  Jim Meyering  <jim@meyering.net>
41351
41352         Merge from coreutils.
41353         * m4/chdir-long.m4, m4/openat.m4: New files.
41354         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
41355         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
41356         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
41357         is sane and DOES follow symlinks.  Besides, testing 20 different
41358         systems found no broken chown implementations.
41359         Prompted by a change in rsync's copy of this macro.
41360         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
41361
41362         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
41363
41364         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
41365         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
41366         NULL-means-set-to-current-time semantics.
41367         Remove temporary file immediately, rather than waiting
41368         for configure's at-exit trap code to do it.
41369
41370 2005-01-18  Jim Meyering  <jim@meyering.net>
41371
41372         * lib/version-etc.c (version_etc_copyright): Update copyright date.
41373
41374         * lib/utimens.c (futimens): Account for the fact that futimes
41375         can also fail with errno == ENOSYS or errno == ENOENT.
41376         Patch from Dmitry V. Levin.
41377
41378         Change the name of the robust chdir function from chdir to chdir_long.
41379         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
41380         (restore_cwd): Use chdir_long, not chdir.
41381         * lib/chdir-long.c: Renamed from chdir.c.
41382         * lib/chdir-long.h: Renamed from chdir.h.
41383         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
41384         Hurd.
41385
41386 2005-01-18  Bruno Haible  <bruno@clisp.org>
41387
41388         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
41389         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
41390         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
41391         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
41392         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
41393         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
41394         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
41395         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
41396         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
41397         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
41398         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
41399         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
41400         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
41401         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
41402         Use an all-permissive copyright notice, recommended by RMS.
41403
41404 2005-01-18  Bob Proulx  <bob@proulx.com>
41405
41406         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
41407         simplify offsetof() macro construct to avoid compile failure with
41408         native HP-UX 11.0 ANSI C compiler.
41409
41410 2005-01-17  Bruno Haible  <bruno@clisp.org>
41411
41412         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
41413         redundant because stpncpy.m4 takes care of it.
41414
41415 2005-01-17  Bruno Haible  <bruno@clisp.org>
41416
41417         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
41418
41419 2005-01-17  Bruno Haible  <bruno@clisp.org>
41420
41421         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
41422         used.
41423
41424 2005-01-17  Bruno Haible  <bruno@clisp.org>
41425
41426         * lib/fwriteerror.h (fwriteerror): Change specification to include
41427         fclose.
41428         * lib/fwriteerror.c: Include <stdbool.h>.
41429         (fwriteerror): At the end, close the file stream. Record whether
41430         stdout was already closed.
41431
41432 2005-01-17  Bruno Haible  <bruno@clisp.org>
41433
41434         * lib/execute.c (environ): Declare if needed.
41435         * lib/pipe.c (environ): Likewise.
41436         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
41437
41438 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41439
41440         * modules/argp: Depend on vsnprintf
41441
41442 2005-01-10  Jim Meyering  <jim@meyering.net>
41443
41444         * modules/closeout (Depends-on): Add atexit.
41445
41446 2005-01-06  Bruno Haible  <bruno@clisp.org>
41447
41448         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
41449
41450 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41451
41452         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
41453         definitions to be after all include files, to avoid collisions.
41454         Problem reported by Bob Proulx.
41455
41456 2005-01-04  Jim Meyering  <jim@meyering.net>
41457
41458         Changes imported from coreutils.
41459         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
41460         as the mkstemp template, use a temporary directory and an
41461         8.3-friendly template to avoid trouble on systems like DJGPP.
41462         Reported by Juan M. Guerrero via Stepan Kasal.
41463         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
41464         close. Remove the temporary directory right away, rather than waiting
41465         for configure's at-exit trap code to do it.
41466         Suggestion from Stepan Kasal.
41467
41468 2005-01-01  Simon Josefsson  <jas@extundo.com>
41469
41470         * gnulib-tool: Print #include directives when --import'ing.
41471
41472 2004-12-28  Simon Josefsson  <jas@extundo.com>
41473
41474         * tests/test-base64.c: Include required header files.  Remove
41475         unused variables.
41476
41477 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41478
41479         * modules/error (Depends-on): Remove gettext.
41480
41481 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41482
41483         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
41484         not needed.  This removes a dependency on the gettext module.
41485         [defined _LIBC]: Do not include <libintl.h>; not needed.
41486
41487 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
41488
41489         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
41490         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
41491
41492 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
41493
41494         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
41495         HAVE_DECL_STRTOLD.
41496
41497 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41498
41499         * modules/getdate (Depends-on): Remove alloca-opt.
41500
41501 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41502
41503         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
41504
41505 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41506
41507         * lib/argp-parse.c: Include <stddef.h>.
41508         (alignof, alignto): New macros.
41509         (parser_init): Don't assume that void * is aligned sufficiently
41510         for struct option.
41511
41512         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
41513         need to extend the stack.
41514         (YYINITDEPTH): New macro, so that the initial stack isn't overly
41515         large.
41516
41517 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41518
41519         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
41520
41521 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
41522
41523         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
41524         (2004-10-24) change.  Apparently this was a false alarm.
41525
41526         * modules/getdate: Depend on alloca-opt, not alloca.
41527
41528 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
41529
41530         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
41531         Remove now-obsolete comment about AIX.
41532         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
41533         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
41534         (YYMAXDEPTH): New macro.
41535
41536 2004-12-18  Simon Josefsson  <jas@extundo.com>
41537
41538         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
41539
41540 2004-12-18  Bruno Haible  <bruno@clisp.org>
41541
41542         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
41543
41544 2004-12-18  Bruno Haible  <bruno@clisp.org>
41545
41546         * lib/fatal-signal.c (fatal_signals): Make non-const.
41547         (init_fatal_signals): New function.
41548         (uninstall_handlers, install_handlers): Ignore signals that were set to
41549         SIG_IGN.
41550         (at_fatal_signal): Call init_fatal_signals.
41551         (init_fatal_signal_set): Likewise. Ignore signals that were set to
41552         SIG_IGN.
41553         Reported by Paul Eggert.
41554
41555 2004-12-18  Bruno Haible  <bruno@clisp.org>
41556
41557         * doc/alloca.texi: New file.
41558         * doc/alloca-opt.texi: New file.
41559
41560 2004-12-17  Jim Meyering  <jim@meyering.net>
41561
41562         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
41563         Otherwise, install-sh could exit with improper exit status when
41564         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
41565
41566 2004-12-16  Simon Josefsson  <jas@extundo.com>
41567
41568         * tests/test-base64.c: Add license.
41569
41570 2004-12-15  Stepan Kasal  <address@hidden>
41571
41572         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
41573
41574 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
41575
41576         * modules/getcwd (Files): Add m4/d-ino.m4.
41577         Suggested by Mark D. Baushke.
41578
41579 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
41580
41581         * lib/getdate.y (textint): New member "negative".
41582         (time_zone_hhmm): New function.
41583         Expect 14 shift-reduce conflicts, not 13.
41584         (o_colon_minutes): New rule.
41585         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
41586         (yylex): Set the "negative" member of signed numbers.
41587
41588 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
41589
41590         * doc/getdate.texi (Time of day items, Time zone items):
41591         Describe new formats +00:00, UTC+00:00.
41592
41593 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
41594
41595         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
41596         spurious "-l"s.  Problem reported by Stepan Kasal.
41597
41598 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
41599
41600         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
41601         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
41602
41603 2004-12-04  Simon Josefsson  <jas@extundo.com>
41604
41605         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
41606         Vandoorselaere <yoann@prelude-ids.org>.
41607
41608 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41609
41610         Changes imported from coreutils.
41611         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
41612         exist.
41613         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
41614
41615 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41616
41617         Changes imported from coreutils.
41618         * lib/hard-locale.c: Assume <locale.h> exists.
41619         Include "strdup.h".
41620         (GLIBC_VERSION): New macro.
41621         (hard_locale): Assume setlocale exists.
41622         Rewrite to avoid #ifdef.
41623         Use strdup rather than malloc + strcpy.
41624         * lib/human.c: Assume <locale.h> exists.
41625         (human_readable): Assume localeconv exists.
41626
41627 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41628
41629         * modules/hard-locale (Depends-on): Add strdup.
41630
41631 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
41632
41633         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
41634         convert T2, not T.  (Imported from libc.)
41635
41636 2004-11-30  Simon Josefsson  <jas@extundo.com>
41637
41638         * modules/restrict (License): Change to LGPL.
41639
41640 2004-11-30  Simon Josefsson  <jas@extundo.com>
41641
41642         * m4/restrict.m4: Add copyright and copying conditions.
41643
41644 2004-11-30  Simon Josefsson  <jas@extundo.com>
41645
41646         * m4/base64.m4: New file.
41647
41648 2004-11-30  Simon Josefsson  <jas@extundo.com>
41649
41650         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
41651         base64.
41652
41653         * tests/test-base64.c: New file.
41654
41655         * modules/base64: New file.
41656
41657 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
41658
41659         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
41660         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
41661
41662         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
41663
41664 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
41665
41666         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
41667         (__getcwd.c): Don't restore errno; glibc doesn't.
41668         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
41669         first, falling back to our code only if its results look suspicious.
41670         Ensure that the resulting buffer is only as large as necessary.
41671
41672         * lib/readutmp.c: Include readutmp.h first.
41673         Include <errno.h>, since readutmp.h no longer does that.
41674         * lib/readutmp.h: Don't include <errno.h>,
41675         <sys/param.h>, <time.h>; not needed to establish interface.
41676         (errno): Remove decl.
41677         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
41678         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
41679         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
41680
41681 2004-11-28  Simon Josefsson  <jas@extundo.com>
41682
41683         * lib/base64.h, base64.c: New file.
41684
41685 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
41686
41687         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
41688
41689 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
41690
41691         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
41692         (Depends-on): Remove pathmax, same.  Add mempcpy.
41693         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
41694         (Makefile.am): Append getcwd.h to lib_SOURCES.
41695         (Include): Add getcwd.h.
41696         (Maintainer): Change from Jim Meyering to "all, glibc",
41697         since getdate now uses intended-for-glibc code.
41698         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
41699         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
41700
41701 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
41702
41703         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
41704         HP's ANSI C compiler.
41705         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
41706         Declaring int functions causes warnings on some modern systems and
41707         shouldn't be needed to compile on ancient ones.
41708         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
41709         defined.
41710
41711         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
41712         with the following changes.
41713         (__set_errno): Parenthesize properly.
41714         Include <stdbool.h>.
41715         (MIN, MAX, MATCHING_INO): New macros.
41716         (__getcwd): Define with prototype, not K&R form.
41717         Use heuristics to allocate default buffer on stack if possible.
41718         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
41719         behavior, and to avoid the PATH_MAX limit when computing
41720         ../../../../...
41721         Use MATCHING_INO to compare inode number to file.
41722         Check for arithmetic overflow in size calculations.
41723         Fix bug in reallocation of dot array that caused getcwd to fail
41724         on directories nested deeper than 75.
41725         Be more careful about saving errno on error.
41726         Do not use realloc; use only free+malloc, as this is a bit
41727         more flexible and avoids a needless copy operation.
41728         Do not inspect st_dev and st_ino for symbolic links; POSIX
41729         doesn't specify the latter.
41730         Check for closedir errors.
41731         Avoid needless casts.
41732         Use "#ifdef weak_alias" around weak_alias, to be like other
41733         glibc code.
41734         The following changes to getcwd.c have effect only when used in
41735         gnulib; they have no effect inside glibc proper.
41736         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
41737         as alloca isn't used.
41738         (alloca, __alloca): Likewise.
41739         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
41740         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
41741         unconditionally, as gnulib assumes C89 or better.
41742         Do not include <sys/param.h>.
41743         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
41744         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
41745         better.
41746         (NULL) [!defined NULL]: Remove; we assume C89 or better.
41747         Include <dirent.h> in a way that is compatible with modern Autoconf.
41748         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
41749         New macros, if not already defined.
41750         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
41751         Use "_LIBC", not "defined _LIBC", for consistency.
41752         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
41753         a mempcpy module.
41754         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
41755         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
41756         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
41757         credit only to Jim Meyering and adjust the copyright dates.
41758         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
41759         <stdlib.h>, <unistd.h>, "pathmax.h".
41760         Instead, include "xgetcwd.h" (first) and "getcwd.h".
41761         (INITIAL_BUFFER_SIZE): Remove.
41762         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
41763
41764 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
41765
41766         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
41767         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
41768         Use the _ONCE methods, for efficiency.
41769         Check for fcntl.h.  In test program, include <errno.h>
41770         and <fcntl.h> if available.  Remove old K&R cruft from
41771         test program.  Check for common errors in GNU/Linux,
41772         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
41773         don't do AC_LIBOBJ, as that's getcwd.m4's job.
41774         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
41775         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
41776         name accordingly.
41777         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
41778         accommodate new getcwd.c.
41779         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
41780         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
41781         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
41782         that's all we need now.
41783
41784 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41785
41786         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
41787         argp-parse.c depends on getopt internals, that means we should
41788         always use our getopt, to be on the safe side.
41789         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
41790         order not to spoil the result of an eventual previous invocation
41791         of gl_GETOPT_SUBSTITUTE.
41792
41793 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41794
41795         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
41796         redefinition warnings. To avoid them, include the defines
41797         in `#if !defined __need_getopt ... #endif'. The only place
41798         where __getopt_argv_const is used is in definitions
41799         of getopt_long and getopt_long_only below, which are as well
41800         protected by `#ifndef __need_getopt'.
41801         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
41802         __need_getopt after including <stdio.h> and <unistd.h> These
41803         headers might have defined it.
41804
41805 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
41806
41807         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
41808
41809 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
41810
41811         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
41812         (futimens): New function, which uses futimes if available.
41813         (futimens, utimens): Support timespec==NULL, with same semantics
41814         as utime and utimens.
41815         * lib/utimens.h (futimens): New decl.
41816
41817 2004-11-23  Jim Meyering  <jim@meyering.net>
41818
41819         * lib/getopt_.h: Remove trailing blanks.
41820
41821 2004-11-23  Jim Meyering  <jim@meyering.net>
41822
41823         * lib/__fpending.c: Add comment.
41824
41825 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
41826
41827         * modules/canonicalize (Depends-on): Add xreadlink.
41828         Problem reported by James Youngman.
41829
41830 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41831
41832         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
41833         New macros.
41834         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
41835         optopt): Use them instead of invoking ## directly; otherwise, the
41836         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
41837
41838 2004-11-19  Bruno Haible  <bruno@clisp.org>
41839
41840         * lib/strtok_r.c: Move comments from here...
41841         * lib/strtok_r.h: ... to here.
41842
41843 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41844
41845         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
41846         implementations that mishandle size_t overflow.
41847
41848 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41849
41850         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
41851         might fail.  Problem reported by Yoann Vandoorselaere.
41852         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
41853         implementations that mishandle size_t overflow.
41854
41855 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41856
41857         * modules/canon-host (Depends-on): Add strdup.
41858
41859 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41860
41861         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
41862
41863 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41864
41865         * lib/canon-host.c: Include "strdup.h".
41866         (canon_host): Use getaddrinfo if available, so that IPv6 works.
41867         Use strdup instead of malloc/strcpy to duplicate strings.
41868
41869         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
41870         (human_space_before_unit): New constant.
41871         * lib/human.c (human_readable): Support it.
41872
41873         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
41874         (xgetcwd): Set errno correctly when failing.
41875         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
41876         the failure is actually due to a PATH_MAX problem.
41877
41878         Further getopt changes to make it more likely that glibc will
41879         buy the changes back.
41880         * lib/getopt.c (POSIXLY_CORRECT): New constant.
41881         (getopt): Use it, so to preserve glibc semantic
41882         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
41883         when compiling for libc.
41884         * lib/getopt_.h (__getopt_argv_const): Bring it back.
41885         (getopt_long, getopt_long_only): Use it.
41886
41887         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
41888         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
41889         (getopt): Argv is now char * const *, as per standard.
41890         (_getopt_internal_r, _getopt_internal): Argv is now char **,
41891         not char *__getopt_argv_const *.
41892         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
41893         _getopt_long_only_r): Likewise.
41894         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
41895         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
41896         _getopt_long_r, _getopt_long_only_r): Likewise.
41897         * lib/getopt_.h (__getopt_argv_const): Remove.
41898         (getopt): Argv is now char * const *, as per standard.
41899
41900         * lib/getdate.y (tORDINAL): New token.
41901         (day, relunit): Allow it for relative times.
41902         (relative_time_table): Use tORDINAL for ordinals.
41903
41904 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41905
41906         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
41907         Document that "second" isn't allowed as an ordinal number.
41908
41909 2004-11-16  Jim Meyering  <jim@meyering.net>
41910
41911         * modules/closeout (Depends-on): Add fpending.
41912
41913 2004-11-15  Jim Meyering  <jim@meyering.net>
41914
41915         * lib/closeout.c: Include "__fpending.h" once again.
41916         Include <stdbool.h>.
41917         (close_stdout): Don't fail just because stdout was closed initially,
41918         since some programs don't write to stdout in the normal course of
41919         operation (other than --version and --help), and we don't want this
41920         function to make e.g. `touch file >&-' fail.
41921         But do fail if it was closed and someone has tried to write to it.
41922         E.g., `printf foo >&-' must fail.
41923
41924 2004-11-13  Jim Meyering  <jim@meyering.net>
41925
41926         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
41927
41928 2004-11-12  Simon Josefsson  <jas@extundo.com>
41929
41930         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
41931         small doc fix is still pending.
41932
41933 2004-11-11  Simon Josefsson  <jas@extundo.com>
41934
41935         * modules/strtok_r: New file.
41936
41937         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41938         strtok_r.
41939
41940 2004-11-11  Simon Josefsson  <jas@extundo.com>
41941
41942         * m4/strtok_r.m4: New file.
41943
41944         * m4/getopt.m4: Replace opterr.
41945
41946 2004-11-11  Simon Josefsson  <jas@extundo.com>
41947
41948         * lib/strtok_r.h, strtok_r.c: New file.
41949
41950 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
41951
41952         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
41953         of replacing opterr, getopt, etc.  This should handle the
41954         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
41955
41956 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
41957
41958         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
41959         we can stop lying to compilers about the constness of argv when we
41960         are compiled outside glibc.
41961         (getopt, getopt_long, getopt_long_only): Use it.
41962         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
41963         _getopt_internal, getopt): Likewise.
41964         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
41965         _getopt_long_only_r): Likewise.
41966         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
41967         _getopt_long_r, _getopt_long_only_r): Likewise.
41968
41969         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
41970         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
41971         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
41972         the other external symbols.
41973         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
41974         declaration, since the above renaming now works around collisions.
41975
41976 2004-11-11  Jim Meyering  <jim@meyering.net>
41977
41978         * lib/linebreak.c: Remove trailing blanks.
41979         * lib/alloca_.h: Likewise.
41980         * lib/acosl.c: Likewise.
41981         * lib/euidaccess.c: Likewise.
41982         * lib/allocsa.h: Likewise.
41983
41984 2004-11-10  Simon Josefsson  <jas@extundo.com>
41985
41986         * m4/getaddrinfo.m4: New file.
41987
41988 2004-11-10  Simon Josefsson  <jas@extundo.com>
41989
41990         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
41991
41992 2004-11-10  Simon Josefsson  <jas@extundo.com>
41993
41994         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41995         getaddrinfo.
41996
41997         * modules/getaddrinfo: New file.
41998
41999 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
42000
42001         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
42002
42003 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
42004
42005         * lib/mktime.c (SHR): New macro, which is a portable
42006         substitute for >> that should work even on Crays.
42007         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
42008         Problem reported by Mark D. Baushke in
42009         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
42010         * lib/getdate.y (SHR): Likewise.
42011         (tm_diff): Use it.
42012         * lib/strftime.c (SHR): Likewise.
42013         (tm_diff): Use it.
42014         * lib/quotearg.c (struct quoting_options): Use unsigned int for
42015         quote_these_too, so that right shifts are well defined.  All uses
42016         changed.
42017
42018 2004-11-10  Jim Meyering  <jim@meyering.net>
42019
42020         Ensure that no close failure goes unreported.
42021         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
42022         return early when it seems there's nothing to flush.
42023         Don't include __fpending.h.
42024
42025 2004-11-10  Jim Meyering  <jim@meyering.net>
42026
42027         * modules/closeout (Depends-on): Remove fpending.
42028
42029 2004-11-10  Jim Meyering  <jim@meyering.net>
42030
42031         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
42032
42033 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
42034
42035         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
42036         gl_FUNC_STRFTIME.
42037         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
42038         and AC_REQUIRE when possible, to avoid duplicate checks.
42039         Check for <wchar.h>.
42040
42041 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
42042
42043         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
42044
42045 2004-11-09  Bruno Haible  <bruno@clisp.org>
42046
42047         * m4/sockpfaf.m4: New file.
42048
42049 2004-11-05  Bruno Haible  <bruno@clisp.org>
42050
42051         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
42052         Reported by Mark D. Baushke <mdb@cvshome.org>.
42053
42054 2004-11-04  Bruno Haible  <bruno@clisp.org>
42055
42056         2004-09-11  Bruno Haible  <bruno@clisp.org>
42057                 * allocsa.valgrind: New file.
42058         2004-02-06  Bruno Haible  <bruno@clisp.org>
42059                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
42060                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
42061                 Reported by Christopher Seip <chris.seip@hp.com>.
42062
42063 2004-11-04  Bruno Haible  <bruno@clisp.org>
42064
42065         * modules/allocsa (Files): Add lib/allocsa.valgrind.
42066         (Makefile.am): Distribute it.
42067
42068 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
42069
42070         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
42071         with errno == ERANGE if the buffer is too small.
42072         Problem reported by Mark D. Baushke.
42073
42074 2004-11-03  Albert Chin  <china@thewrittenword.com>
42075             Paul Eggert  <eggert@cs.ucla.edu>
42076
42077         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
42078         equivalent, substitute $ac_type for equivalent type rather than
42079         blindly using uint32_t *always* which won't work if uint32_t is not
42080         available.  Define _UINT32_T to work around typedef of uint32_t if
42081         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
42082         2.5.1.
42083
42084 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42085
42086         * m4/jm-macros.m4: Sync from coreutils.
42087         (gl_MACROS): Check for mbrlen, for pathchk.
42088         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
42089
42090 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42091
42092         * lib/xreadlink.c (MAXSIZE): New macro.
42093         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
42094         size does not exceed MAXSIZE.  Avoid cast.
42095         As suggested by Mark D. Baushke in
42096         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
42097         if readlink fails with buffer size just under MAXSIZE, try again
42098         with MAXSIZE.
42099
42100 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42101
42102         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
42103
42104 2004-11-02  Derek R. Price  <derek@ximbiot.com>
42105         and  Paul Eggert  <eggert@cs.ucla.edu>
42106
42107         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
42108         (get_date): Overparenthesize to avoid GCC warning.
42109
42110 2004-11-02  Bruno Haible  <bruno@clisp.org>
42111
42112         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
42113         returns void.
42114
42115 2004-11-02  Bruno Haible  <bruno@clisp.org>
42116
42117         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
42118         function returns void.
42119
42120 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42121
42122         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
42123         fflush_unlocked, flockfile, funlockfile, funlockfile,
42124         fputs_unlocked, putc_unlocked.
42125
42126 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42127
42128         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
42129         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
42130         already declared.
42131
42132 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
42133
42134         * modules/getdate (Files): Add doc/getdate.texi.
42135         (Depends-on): Add setenv, xalloc.
42136
42137 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
42138
42139         * lib/getdate.y: Add support for TZ="foo" within a date string.
42140         Fix some bugs near time_t boundaries.  Reject dates with
42141         out-of-range components, e.g., "Sept 31".
42142         Include <stdlib.h>, "setenv.h", "xalloc.h".
42143         (ISDIGIT_LOCALE): Remove; unused.
42144         Note that the TZ and time functions used here are not reentrant.
42145         (mktime_ok, get_tz): New functions.
42146         (TZBUFSIZE): New constant.
42147         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
42148         This requires that we sometimes generate our own TZ="XXX..." setting.
42149
42150 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
42151
42152         * doc/getdate.texi: New file, from coreutils with modifications for
42153         the new TZ parsing.
42154
42155 2004-10-27  Derek R. Price  <derek@ximbiot.com>
42156
42157         * lib/mktime.c (not_equal_tm): Remove redundant check.
42158
42159 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42160
42161         * modules/regex (lib_SOURCES): Add regex.c.
42162         Reported by James Youngman in
42163         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
42164
42165 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42166
42167         * lib/getdate.y: Use Bison 1.875 features, and some minor
42168         code cleanups.  This change does not affect semantics.
42169         Don't include <stdlib.h>; no longer needed.
42170         Don't include unlocked-io.h; only the "#if TEST" code uses
42171         stdio, and performance isn't crucial there.
42172         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
42173         Bison 1.875 features as described below.
42174         All uses of "PC." replaced by "pc->".
42175         (YYSTYPE): Add a forward declaration.
42176         (yylex, yyerror): Use full prototypes in forward decls.
42177         Use "%pure-parser" rather than obsolescent "%pure_parser".
42178         Use %parse-param and %lex-param instead of obsolescent
42179         YYPARSE_PARAM and YYLEX_PARAM.
42180         (meridian_table, month_and_day_table, time_units_table,
42181         relative_time_table, time_zone_table, military_table,
42182         lookup_zone, lookup_word, get_date):
42183         Use NULL instead of 0 where appropriate.
42184         (to_hour): Avoid abort (), to avoid a dependency on
42185         stdlib.h.
42186         (yyerror, yylex): Now accepts parser_control * arg.
42187         (main) [TEST]: Use '\0' rather than 0 for char.
42188
42189 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42190
42191         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
42192
42193 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42194
42195         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
42196         It's now the caller's responsibility to handle the case where
42197         !HAVE_GETPAGESIZE && !defined getpagesize.
42198
42199         * lib/mktime.c (leapyear): Arg is long int, not int.
42200
42201 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
42202
42203         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
42204
42205 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42206
42207         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
42208         missing.  Problem reported by James Youngman.
42209
42210 2004-10-16  Simon Josefsson  <jas@extundo.com>
42211
42212         * gnulib-tool: Fix comments.  Fix parse problem.
42213         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
42214
42215 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
42216
42217         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
42218         implementation of getopt_long.  Problem reported by Alexander Taler in:
42219         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
42220
42221 2004-10-15  Bruno Haible  <bruno@clisp.org>
42222
42223         * gnulib-tool: Untabify. Initialize supplied_libname.
42224         (func_usage): More homogenous output.
42225         (func_modules_transitive_closure, func_modules_to_filelist,
42226         func_emit_lib_Makefile_am): New functions.
42227         (func_import): New function, extracted from big case statement. Use
42228         func_get_license, func_modules_transitive_closure,
42229         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
42230         opt_lgpl. Don't use test -a, as it's not portable.
42231         (func_create_testdir): Use func_modules_transitive_closure,
42232         func_modules_to_filelist, func_emit_lib_Makefile_am.
42233
42234 2004-10-15  Bruno Haible  <bruno@clisp.org>
42235
42236         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
42237
42238 2004-10-15  Bruno Haible  <bruno@clisp.org>
42239
42240         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
42241         the portions belonging to each module.
42242         Suggested by Derek Robert Price <derek@ximbiot.com>.
42243
42244 2004-10-12  Simon Josefsson  <jas@extundo.com>
42245
42246         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
42247         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
42248         to real functions.
42249
42250 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42251
42252         * modules/vsnprintf: New file.
42253
42254 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42255
42256         * m4/vsnprintf.m4: New file.
42257
42258 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42259
42260         * lib/vsnprintf.h: New file.
42261         * lib/vsnprintf.c: New file.
42262
42263 2004-10-11  Bruno Haible  <bruno@clisp.org>
42264
42265         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
42266         vsnprintf.
42267
42268 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42269
42270         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
42271
42272 2004-10-07  Bruno Haible  <bruno@clisp.org>
42273
42274         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
42275         fits into the provided buffer.
42276
42277 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42278
42279         * lib/diacrit.c, diacrit.h: Add GPL notice.
42280
42281         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
42282         notice.
42283         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
42284         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
42285         This avoids a potential constant-folding bug.
42286
42287 2004-10-05  Bruno Haible  <bruno@clisp.org>
42288
42289         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
42290         for the declaration of strsep.
42291
42292 2004-10-05  Bruno Haible  <bruno@clisp.org>
42293
42294         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
42295
42296 2004-10-04  Simon Josefsson  <jas@extundo.com>
42297
42298         * modules/memmem: New file.
42299         * tests/test-memmem.c: New file.
42300         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
42301
42302 2004-10-04  Simon Josefsson  <jas@extundo.com>
42303
42304         * m4/memmem.m4: New file.
42305
42306 2004-10-04  Simon Josefsson  <jas@extundo.com>
42307
42308         * lib/memmem.h: New file.
42309         * lib/memmem.c: New file, taken from glibc.
42310
42311 2004-10-04  Simon Josefsson  <jas@extundo.com>
42312
42313         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
42314         '#ifdef USE_UNLOCKED_IO'.
42315
42316 2004-10-04  Simon Josefsson  <jas@extundo.com>
42317
42318         * config/srclist.txt: Add memmem from glibc.
42319
42320 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
42321
42322         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
42323
42324         * modules/argmatch, modules/argp, modules/closeout, modules/error,
42325         modules/exclude, modules/getdate, modules/getline,
42326         modules/getndelim2, modules/getpass, modules/getpass-gnu,
42327         modules/getusershell, modules/linebuffer, modules/md5,
42328         modules/mountlist, modules/posixtm, modules/readtokens,
42329         modules/readutmp, modules/regex, modules/sha1,
42330         modules/version-etc, modules/yesno:
42331         Remove dependency on unlocked-io.
42332
42333 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
42334
42335         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
42336
42337         * m4/unlocked-io.m4: Add copyright notice.
42338         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
42339
42340 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
42341
42342         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
42343         * lib/xmalloc.c (xmemdup): Likewise.
42344         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
42345         XFREE): Remove these long-obsolescent macros.
42346         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
42347         * lib/xstrdup.c: Remove.
42348
42349         * lib/regex.c (re_comp): Cast gettext return value to char *,
42350         Problem reported by Martin Neitzel via Mark D. Baushke.
42351
42352 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
42353
42354         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
42355         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
42356         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
42357         regex.c, sha1.c, version-etc.c, yesno.c:
42358         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
42359         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
42360         the includer's responsibility.
42361
42362         Sync from coreutils.
42363
42364         * lib/modechange.c (mode_compile): Don't decrement a pointer that
42365         points to the start of a string, as the C Standard says the
42366         resulting behavior is undefined.
42367
42368         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
42369         simple -> simple_backups, numbered_existing ->
42370         numbered_existing_backups, numbered -> numbered_backups
42371         to avoid shadowing problems.  All uses changed.
42372         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
42373         * lib/backupfile.c (check_extension, numbered_backup):
42374         Rename locals to avoid shadowing 'basename'.
42375         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
42376         once.
42377
42378         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
42379         * lib/.cvsignore: Add getopt.h.
42380
42381 2004-10-04  Bruno Haible  <bruno@clisp.org>
42382
42383         * modules/README: New file.
42384         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
42385         not a module.
42386
42387 2004-10-02  Jim Meyering  <jim@meyering.net>
42388
42389         * lib/dirfd.h, getpagesize.h: Add copyright notice.
42390
42391 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42392
42393         * modules/strsep: New file.
42394
42395 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42396
42397         * m4/strsep.m4: New file.
42398
42399 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42400
42401         * lib/strsep.h: New file.
42402         * lib/strsep.c: New file.
42403
42404 2004-10-01  Simon Josefsson  <jas@extundo.com>
42405
42406         * lib/snprintf.c (snprintf): Handle size==0.
42407
42408 2004-10-01  Simon Josefsson  <jas@extundo.com>
42409             Bruno Haible  <bruno@clisp.org>
42410
42411         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
42412         (snprintf): Declare 'args'.
42413
42414 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
42415
42416         * lib/snprintf.c: Remove comments as to why each header is needed.
42417
42418 2004-10-01  Bruno Haible  <bruno@clisp.org>
42419
42420         * MODULES.html.sh: Add strsep.
42421
42422 2004-09-30  Simon Josefsson  <jas@extundo.com>
42423
42424         * modules/snprintf: New file.
42425
42426 2004-09-30  Simon Josefsson  <jas@extundo.com>
42427
42428         * m4/snprintf.m4: New file.
42429
42430 2004-09-30  Simon Josefsson  <jas@extundo.com>
42431
42432         * lib/snprintf.h, lib/snprintf.c: New files.
42433
42434 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42435
42436         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
42437         (hol_entry_help): Never translate an empty string.
42438         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
42439         * lib/argp.h (OPTION_NO_TRANS): New option.
42440
42441 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
42442
42443         * modules/argp (Maintainer): Replace Simon Josefsson
42444         by Sergey Poznyakoff.
42445
42446 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
42447
42448         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
42449         changes merged back into glibc.
42450
42451 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
42452
42453         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
42454
42455 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
42456
42457         * lib/xvasprintf.c: Include xalloc.h.
42458         (xvasprintf): Use xalloc_die, not xmalloc_die.
42459
42460 2004-09-29  Bruno Haible  <bruno@clisp.org>
42461
42462         * modules/alloca-opt: New file, derived from modules/alloca.
42463         * modules/allocsa: Depend on alloca-opt instead of alloca.
42464         * modules/setenv: Likewise.
42465         * modules/vasnprintf: Likewise.
42466         * MODULES.html.sh: Add alloca-opt.
42467
42468 2004-09-28  Simon Josefsson  <jas@extundo.com>
42469
42470         * gnulib-tool: New parameter --lgpl, to asseert that modules are
42471         LGPL, and to replace license template from GPL to LGPL.
42472
42473 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
42474
42475         * modules/dummy: Change license to LGPL.
42476
42477 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
42478
42479         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
42480
42481 2004-09-24  Simon Josefsson  <jas@extundo.com>
42482
42483         * modules/minmax (License): Change from GPL to LGPL.
42484
42485 2004-09-23  Simon Josefsson  <jas@extundo.com>
42486
42487         * gnulib-tool (--import): Typo.
42488
42489 2004-09-23  Simon Josefsson  <jas@extundo.com>
42490
42491         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
42492
42493 2004-09-22  Bruno Haible  <bruno@clisp.org>
42494
42495         * modules/*: Add 'License' field.
42496         * gnulib-tool: Accept --extract-license option.
42497         (func_get_license): New function.
42498
42499 2004-09-21  Bruno Haible  <bruno@clisp.org>
42500
42501         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
42502         Reported by Simon Josefsson.
42503
42504 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42505
42506         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
42507         gl_AC_TYPE_LONG_LONG.
42508
42509 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42510
42511         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
42512
42513 2004-09-18  Simon Josefsson  <jas@extundo.com>
42514         and  Paul Eggert  <eggert@cs.ucla.edu>
42515
42516         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
42517         calls with autoreconf.  Define GL_LIB.
42518
42519 2004-09-14  Karl Berry  <karl@gnu.org>
42520
42521         * config/srclist.txt: unsync setenv.c, sigh.
42522
42523 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42524
42525         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
42526         Problem reported by Bruno Haible in:
42527         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
42528
42529 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42530
42531         * config/srclist.txt: Comment out argp-pvh.c.
42532
42533 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
42534
42535         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
42536         in case some system header has #define'd it.  Problem reported by
42537         Soeren D. Schulze in
42538         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
42539
42540 2004-09-09  Karl Berry  <karl@gnu.org>
42541
42542         * regex.[ch]: delete from the root.  These were supposed to be
42543                 synced with emacs cvs, but this has not happened for about
42544                 a year, and anyway nothing else uses emacs regex.[ch].
42545                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
42546                 lib/regex[.ch] is untouched.
42547
42548 2004-09-09  Bruno Haible  <bruno@clisp.org>
42549
42550         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
42551
42552 2004-09-09  Bruno Haible  <bruno@clisp.org>
42553
42554         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
42555         modifications.
42556         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
42557
42558 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
42559
42560         * modules/xvasprintf: New file.
42561         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
42562
42563 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
42564
42565         * lib/xvasprintf.h: New file.
42566         * lib/xvasprintf.c: New file.
42567         * lib/xasprintf.c: New file.
42568
42569 2004-09-08  Bruno Haible  <bruno@clisp.org>
42570
42571         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
42572
42573 2004-09-08  Bruno Haible  <bruno@clisp.org>
42574
42575         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
42576         length is > INT_MAX.
42577         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
42578         more.
42579
42580 2004-09-08  Bruno Haible  <bruno@clisp.org>
42581
42582         * lib/stdint_.h: New file, taken from GNU clisp.
42583
42584 2004-09-08  Bruno Haible  <bruno@clisp.org>
42585             Oskar Liljeblad  <oskar@osk.mine.nu>
42586
42587         * modules/stdint: New file.
42588         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
42589
42590 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42591
42592         Import from coreutils.
42593         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
42594         strings on unbounded length.  alloca's performance benefits aren't
42595         that important here.
42596         (V_STRDUP): Remove.
42597         (parse_with_separator): New function, with most of the internals
42598         of the old parse_user_spec.  Allow user to omit both user and group,
42599         for compatibility with FreeBSD.
42600         Clone only the user name, not the entire spec.
42601         Do not set *uid, *gid unless entirely successful.
42602         Avoid memory leak in some failing cases.
42603         Fix regression for USER.GROUP reported by Dmitry V. Levin in
42604         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
42605         (parse_user_spec): Rewrite to use parse_with_separator.
42606
42607 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42608
42609         * modules/userspec: Don't depend on alloca.
42610
42611 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42612
42613         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
42614
42615 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
42616
42617         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
42618         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
42619         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
42620
42621 2004-08-16  Simon Josefsson  <jas@extundo.com>
42622
42623         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
42624         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
42625         Add --dry-run for --import.
42626         Let user provided command line parameters override configure.ac
42627         settings.
42628
42629 2004-08-12  Simon Josefsson  <jas@extundo.com>
42630
42631         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
42632         as discussed with Paul Eggert in threads rooted at
42633         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
42634         and
42635         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
42636         Before, the test was empty, and relied on ELIDE_CODE in source
42637         code.)
42638         (gl_PREREQ_GETOPT): New macro.
42639         (gl_GETOPT): Use them.
42640
42641 2004-08-12  Simon Josefsson  <jas@extundo.com>
42642
42643         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
42644         * lib/getopt_.h: Renamed from getopt.h.
42645
42646 2004-08-12  Simon Josefsson  <jas@extundo.com>
42647
42648         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
42649         Change default library name from libfoo to libgnu.
42650         Now, if you have a configure.ac that says:
42651                 gl_SOURCE_BASE(gl)
42652                 gl_M4_BASE(gl/m4)
42653                 gl_MODULES(error getopt etcetera)
42654                 gl_INIT
42655         you can import all you need by running:
42656                 ../gnulib/gnulib-tool --import
42657
42658         * modules/getopt (Files): Rename getopt.h to getopt_.h.
42659         (Makefile.am): Rewrite, use logic from argz.
42660         (Include): Use <getopt.h> instead of "getopt.h".
42661
42662 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
42663
42664         * modules/argp (Files): Add m4/unlocked-io.m4.
42665         (Depends-on): Add extensions.
42666
42667 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
42668
42669         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
42670         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
42671         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
42672         Check for program_invocation_name, program_invocation_short_name,
42673         flockfile, funlockfile, features.h, _getopt_long_only_r.
42674
42675 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
42676
42677         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
42678         its complicated substitute.
42679         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
42680         and program_invocation_name.
42681         (__argp_basename) [!_LIBC]: Remove; the only use was
42682         replaced by its body.
42683         (__argp_short_program_name): Change condition from
42684         !defined __argp_short_program_name to
42685         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
42686         to match argp-namefrob.h.
42687         (__argp_failure): Don't assume strerror_r returns char *.
42688         * lib/argp-parse.c (N_): Define unconditionally.
42689         (argp_default_options): Fill out initializers with 0 to avoid
42690         gcc warnings.
42691
42692 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
42693
42694         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
42695         getopt1.c.
42696
42697 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
42698
42699         Merge from coreutils.
42700
42701         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
42702
42703         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
42704         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
42705
42706 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
42707
42708         Merge from coreutils.
42709
42710         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
42711         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
42712         for Reliant Unix 5.43.
42713
42714         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
42715         (union fooround): Use uintmax_t, not long int.
42716         The rest is a merge from libc:
42717         [defined _LIBC]: Include <shlib-compat.h>.
42718         (_obstack) [defined _LIBC]: Remove after 2.3.4.
42719
42720         * lib/settime.c (settime): Recode to avoid warning with
42721         Sun Forte C 6U2.
42722
42723         * lib/strverscmp.c: Convert to UTF-8.
42724
42725 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
42726
42727         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
42728         m4/uintmax_t.m4.
42729
42730 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42731
42732         * modules/xalloc-die: New file.
42733         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
42734
42735         * modules/md5 (Files): Add m4/uint32_t.m4.
42736         * modules/sha1: Renamed from modules/sha.
42737         (Files):
42738         Rename lib/sha.h to lib/sha1.h.
42739         Rename lib/sha.c to lib/sha1.c.
42740         Rename m4/sha.m4 to m4/sha1.m4.
42741         (lib_SOURCES): Likewise.
42742         (configure.ac): Rename gl_SHA to gl_SHA1.
42743         (Include): sha.h -> sha1.h.
42744
42745 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42746
42747         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
42748         * m4/sha1.m4: Renamed from sha.m4.
42749         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
42750
42751 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42752
42753         * lib/obstack.h (obstack_empty_p):
42754         Don't assume that chunk->contents is suitably aligned.
42755         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
42756         Likewise. Problem reported by Benno in
42757         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
42758
42759         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
42760         readable.  This could be improved further but it'd take some work.
42761
42762 2004-08-08  Simon Josefsson  <jas@extundo.com>
42763
42764         * modules/xgethostname (Depends-on): Remove exit and error (not
42765         used).
42766
42767         * modules/getpass-gnu: Add getpass.h.
42768         (Depends-on): Add stdbool.
42769         * modules/getpass: Add getpass.h.
42770
42771 2004-08-08  Simon Josefsson  <jas@extundo.com>
42772
42773         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
42774         Check getpass declaration.
42775
42776 2004-08-08  Simon Josefsson  <jas@extundo.com>
42777
42778         * lib/xgethostname.c: Don't include error.h (not used).
42779
42780         * lib/getpass.h: Add.
42781         * lib/getpass.c: Include getpass.h first.
42782
42783 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
42784
42785         * lib/xalloc-die.c: New file.
42786         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
42787         All uses removed.
42788         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
42789         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
42790         xalloc-die.c.
42791         (_, N_, xalloc_die): Move to xalloc-die.c.
42792         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
42793         so that we needn't mess with xalloc_msg_memory_exhausted.
42794
42795         * lib/sha1.h: Renamed from sha.h.
42796         (SHA1_H): Renamed from _SHA_H.
42797         (sha1_ctx): Renamed from sha_ctx.
42798         (sha1_init_ctx): Renamed from sha_init_ctx.
42799         (sha1_process_block): Renamed from sha_process_block.
42800         (sha1_process_bytes): Renamed from sha_process_bytes.
42801         (sha1_finish_ctx): Renamed from sha_finish_ctx.
42802         (sha1_read_ctx): Renamed from sha_read_ctx.
42803         (sha1_stream): Renamed from sha_stream.
42804         (sha1_buffer): Renamed from sha_buffer.
42805         * lib/sha1.c: Likewise; renamed from sha.c.
42806         Do not include <sys/types.h>.
42807         Include <stddef.h> rather than <stdlib.h>.
42808
42809 2004-08-08  Bruno Haible  <bruno@clisp.org>
42810
42811         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
42812         FILESYSTEM_PREFIX_LEN.
42813         * lib/progreloc.c: Likewise.
42814         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
42815
42816 2004-08-06  Simon Josefsson  <jas@extundo.com>
42817
42818         * modules/progname (Depends-on): Don't depend on stdbool.
42819
42820 2004-08-06  Simon Josefsson  <jas@extundo.com>
42821
42822         * modules/getsubopt: New file.
42823         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42824         getsubopt.
42825
42826 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
42827
42828         More merge from coreutils.
42829
42830         * m4/utimens.m4, m4/utimecmp.m4: New files.
42831         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
42832         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
42833         prereq.m4, sha.m4: Import changes from coreutils.
42834
42835 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
42836
42837         More merge from coreutils.
42838         * modules/raise, modules/readtokens0, modules/utimens:
42839         * modules/utimecmp, module/xnanosleep: New files.
42840         * modules/strftime: Add lib/strftime.h.
42841         Change include from <time.h> to "strftime.h".
42842         * modules/yesno: Add lib/yesno.h.
42843         * modules/backupfile: Remove lib/addext.c.
42844         * modules/euidaccess: Add stat-macros.h.
42845         * modules/canonicalize, modules/euidaccess,
42846         modules/filemode, modules/lchown, modules/makepath,
42847         modules/rmdir, modules/stat: Likewise.
42848
42849 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
42850
42851         Merge from tar.
42852         * lib/argp-help.c (make_hol, hol_append): Don't assume that
42853         SIZE_MAX is a valid preprocessor constant.
42854         (__argp_basename): Change from "#ifndef _LIBC"
42855         to "#ifndef __argp_short_program_name", so that
42856         we don't compile these functions for tar.
42857
42858         More merges from coreutils.
42859         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
42860         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
42861         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
42862         * lib/addext.c: Remove; no longer needed.
42863         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
42864         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
42865         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
42866         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
42867         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
42868         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
42869         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
42870         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
42871         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
42872         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
42873         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
42874         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
42875         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
42876         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
42877         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
42878         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
42879         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
42880         Import changes from coreutils.
42881
42882 2004-08-05  Simon Josefsson  <jas@extundo.com>
42883
42884         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
42885
42886 2004-08-05  Simon Josefsson  <jas@extundo.com>
42887
42888         * m4/getsubopt.m4: New file.
42889
42890 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
42891
42892         Merge from coreutils.
42893
42894         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
42895         * m4/getcwd-path-max.m4: New files.
42896
42897         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
42898         FILESYSTEM_PREFIX_LEN ->
42899         FILE_SYSTEM_PREFIX_LEN.
42900         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
42901         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
42902         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
42903         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
42904
42905         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
42906         prerequisite modules now handle the DOS stuff.
42907         Don't check for unistd.h.
42908
42909 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
42910
42911         Merge from coreutils.
42912
42913         * lib/.gdb-history: Remove; this doesn't belong here.
42914
42915         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
42916         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
42917         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
42918         * lib/getcwd.c: New files.
42919
42920         * lib/dirname.h: Include <stdbool.h>.
42921         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
42922         for consistency with POSIX terminology.  All uses changed.
42923         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
42924         (strip_trailing_slashes): Use bool for booleans.
42925         * lib/stripslash.c (strip_trailing_slashes): Likewise.
42926
42927         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
42928         sometimes returns a positive errno value even when it succeeds.
42929         (print_errno_message) [!LIBC]: Fall back on strerror if
42930         __strerror_r fails.
42931
42932         * lib/path-concat.c (mempcpy): Don't define if a system header defines
42933         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
42934         (longest_relative_suffix): New function.
42935         (path_concat): Use it.  Assume first argument is not NULL.
42936         Port to DOS.  Omit redundant separators.
42937         Report an error instead of returning NULL.
42938         Use mempcpy instead of memcpy.
42939         (xpath_concat): Remove: not declared or used.
42940
42941         * lib/same.h: Include <stdbool.h>
42942         (same_name): Return bool, not int.
42943         * lib/same.c (same_name): Likewise.
42944         (errno): Don't declare; we assume C89 or better now.
42945
42946         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
42947         if not already defined.
42948
42949         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
42950         * lib/dup-safer.c (errno): Likewise.
42951
42952 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
42953
42954         Merge from coreutils.
42955         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
42956         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
42957         * modules/path-concat: Don't depend on strdup.
42958
42959 2004-08-03  Simon Josefsson  <jas@extundo.com>
42960
42961         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
42962         * lib/progname.h: Don't include stdbool.h.
42963
42964 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
42965
42966         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
42967         * MODULES.html.sh (func_all_modules): Remove fatal.
42968
42969 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
42970
42971         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
42972
42973 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
42974
42975         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
42976         working.
42977
42978 2004-08-02  Simon Josefsson  <jas@extundo.com>
42979
42980         * lib/getsubopt.h: New file, with comments from Bruno Haible.
42981         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
42982         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
42983
42984 2004-08-01  Simon Josefsson  <jas@extundo.com>
42985
42986         * lib/xgetdomainname.c: Include stdlib.h, for free().
42987
42988 2004-07-19  Bruno Haible  <bruno@clisp.org>
42989
42990         * MODULES.html.sh (func_all_modules): Add dummy.
42991
42992 2004-07-16  Simon Josefsson  <jas@extundo.com>
42993
42994         * modules/dummy: New file.
42995
42996 2004-07-16  Simon Josefsson  <jas@extundo.com>
42997
42998         * lib/dummy.c: New file.
42999
43000 2004-07-16  Bruno Haible  <bruno@clisp.org>
43001
43002         * lib/backupfile.h: Add extern "C" for C++.
43003         * lib/closeout.h: Likewise.
43004         * lib/copy-file.h: Likewise.
43005         * lib/findprog.h: Likewise.
43006         * lib/full-write.h: Likewise.
43007         * lib/pathname.h: Likewise.
43008         * lib/progname.h: Likewise.
43009         * lib/stpcpy.h: Likewise.
43010         * lib/stpncpy.h: Likewise.
43011         * lib/strcase.h: Likewise.
43012         * lib/strstr.h: Likewise.
43013         * lib/xalloc.h: Likewise.
43014
43015         * lib/mbswidth.h: Add extern "C" for C++.
43016         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
43017
43018 2004-07-13  Robert Millan  <robertmh@gnu.org>
43019
43020         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
43021
43022 2004-07-09  Simon Josefsson  <jas@extundo.com>
43023
43024         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
43025         failed without this.)
43026
43027 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43028
43029         * modules/chown (Files): Add lib/fchown-stub.c, since
43030         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
43031
43032 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43033
43034         * lib/fchown-stub.c: New file.
43035
43036 2004-06-24  Jim Meyering  <jim@meyering.net>
43037
43038         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
43039
43040 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
43041
43042         * modules/argz: Omit "#include".
43043
43044         * MODULES.html.sh (func_all_modules): Add calloc, to match
43045         2004-06-01 addition of calloc module.
43046
43047 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
43048
43049         * m4/argz.m4: New file, which is autoupdated from libtool.
43050
43051 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
43052
43053         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
43054         libtool.
43055
43056 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
43057
43058         * config/srclist-update: Don't insist on "USA." before the
43059         close-comment, as libtool omits the period and puts the */ on a
43060         separate line.
43061         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
43062         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
43063
43064 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
43065
43066         * modules/argz: New file.
43067         * MODULES.html.sh (func_all_modules): Add argz.
43068
43069 2004-06-12  Jim Meyering  <jim@meyering.net>
43070         and  Paul Eggert  <eggert@cs.ucla.edu>
43071
43072         * modules/hash (Files): Add lib/xalloc.h.
43073         * modules/pipe (Depends-on): Add wait-process.
43074         * modules/stat (Depends-on): Add xalloc.
43075         * modules/userspec (Files): Add lib/userspec.h.
43076         * modules/xstrto
43077
43078         Upgrade from gettext-0.13.
43079         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
43080         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
43081         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
43082
43083 2004-06-10  Jim Meyering  <jim@meyering.net>
43084
43085         * lib/calloc.c: New file.
43086
43087 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
43088
43089         * lib/getdate.y (yylex): Allow space between sign and number.
43090         Problem reported by Dan Jacobson.
43091
43092 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
43093
43094         Merge from coreutils CVS.
43095
43096         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
43097         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
43098         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
43099         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
43100         xstrtol.m4: Fix copyright date and/or serial number.
43101
43102         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
43103         See if we need an fchown replacement.
43104         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
43105         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
43106         and use the replacement function if we detect either defect.
43107
43108         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
43109         gl_UTIMECMP.
43110
43111 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
43112         and  Jim Meyering  <jim@meyering.net>
43113
43114         Merge from coreutils CVS.
43115
43116         * lib/stat-macros.h: New file, with contents from file-type.h
43117         and coreutils' system.h.
43118         * lib/file-type.c: Include "stat-macros.h".
43119         * lib/file-type.h (file_type): Move all macro definitions to new file,
43120         stat-macros.h.
43121
43122         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
43123         Wrap old code with this conditional.
43124         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
43125         function that does not dereference symlinks.
43126         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
43127
43128         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
43129         dependency problems.
43130         (xreadlink): Accept new arg SIZE, for efficiency.
43131         All decls and uses changed.
43132         * lib/xreadlink.h: Include <stddef.h>, for size_t.
43133
43134         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
43135         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
43136
43137         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
43138         sysexits.h.
43139
43140 2004-06-01  Jim Meyering  <jim@meyering.net>
43141
43142         * m4/calloc.m4: New file.
43143
43144 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
43145
43146         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
43147         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
43148         Also, fix a typo in a diagnostic.
43149
43150 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
43151
43152         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
43153         or AC_FUNC_REALLOC.
43154
43155 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
43156
43157         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
43158         macros to be defined.
43159         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
43160         the allocator returns NULL because the requested size is zero.
43161
43162 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
43163
43164         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
43165         var.  Add comment explaining why libc still defines it.  This
43166         merges the following patch from glibc:
43167         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
43168
43169 2004-05-20  Andreas Schwab  <schwab@suse.de>
43170
43171         * m4/free.m4: Replace free if it not known to work, not the other
43172         way round.
43173
43174 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
43175
43176         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
43177         present in glibc since revision 1.1 of this file.
43178         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
43179         obstack_alignment_mask, obstack_alloc, obstack_base,
43180         obstack_blank, obstack_blank_fast, obstack_chunk_size,
43181         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
43182         obstack_grow0, obstack_init, obstack_int_grow,
43183         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
43184         obstack_next_free, obstack_object_size, obstack_ptr_grow,
43185         obstack_ptr_grow_fast, obstack_room): Remove declarations of
43186         nonexistent functions.
43187
43188 2004-05-18  Karl Berry  <karl@gnu.org>
43189
43190         * config/srclist.txt: break link for vasnprintf.c.
43191
43192 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
43193
43194         Port obstack to the AS/400, where pointers are 16 bytes wide and
43195         you cannot cast an integer to a valid pointer.  This patch is
43196         currently waiting to be integrated into glibc; see
43197         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
43198
43199         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
43200         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
43201         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
43202         (struct obstack): temp member is now a union of a pointer and
43203         an integer, instead of an integer.  All integer uses changed.
43204         This does not affect the physical layout of struct obstack,
43205         except on hosts (like the AS/400) where the size or alignment of
43206         void * is greater than that of ptrdiff_t.
43207         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
43208         __STDC__)]: Store temporary in pointer member of union, not
43209         integer member.
43210         * lib/obstack.c: Include <stddef.h>, for offsetof.
43211         (struct fooalign): Remove; it doesn't need a name.
43212         (union fooround): Change double to long double, and add void *.
43213         (DEFAULT_ALIGNMENT): Use offsetof to compute.
43214         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
43215         not a macro.  Hence the values are always int; so remove all
43216         casts-to-int in uses.
43217
43218 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
43219
43220         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
43221         we can get this patch merged into glibc.
43222
43223 2004-05-17  Derek R. Price  <derek@ximbiot.com>
43224             Paul Eggert  <eggert@cs.ucla.edu>
43225
43226         * m4/argp: Depend on alloca.
43227
43228 2004-05-17  Derek R. Price  <derek@ximbiot.com>
43229             Paul Eggert  <eggert@cs.ucla.edu>
43230
43231         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
43232         freecoding.
43233
43234 2004-05-17  Bruno Haible  <bruno@clisp.org>
43235
43236         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
43237         precision that consists of a '.' followed by an empty digit string.
43238         Patch by Tor Lillqvist <tml@iki.fi>.
43239
43240 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
43241
43242         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
43243         for backward compatibility with older code.  We need our own
43244         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
43245         it under some other name, and our alloca.h will define it.
43246
43247 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
43248             Derek Price  <derek@ximbiot.com>
43249
43250         * lib/alloca.c: Include <alloca.h>, to get our interface.
43251         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
43252         include <alloca.h> first.  Use C89 prototype for alloca; this
43253         requires including <stddef.h> for size_t.  Use extern "C" if C++.
43254         Use #elif for simplicity, since we can assume C89 now.
43255         Don't try to source the system alloca.h since it will not be found
43256         and to prevent recursively including its replacement.
43257         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
43258         * lib/regex.c: Likewise.
43259
43260 2004-05-16  Derek Price  <derek@ximbiot.com>
43261             Paul Eggert  <eggert@cs.ucla.edu>
43262
43263         getline cleanup.  This changes the getndelim2 API: both order of
43264         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
43265         no delimiter).
43266
43267         * lib/getline.c: Don't include stddef.h or stdio.h, since our
43268         interface does that.
43269         (getline): Always use getdelim, so that we don't have two
43270         copies of this code.
43271         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
43272         if available.
43273         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
43274         (GETNDELIM2_MAXIMUM): New macro.
43275         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
43276         instead of the old practice of delim2==0.  All callers changed.
43277         Return -1 on overflow, instead of returning junk.
43278         Do not set *linesize unless allocation succeeds.
43279         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
43280         that we include sys/types.h.
43281         * lib/getnline.h: Likewise.
43282         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
43283         (getndelim2): Reorder arguments.
43284         * lib/getnline.c (getnline, getndelim):
43285         Don't discard the NMAX argument.
43286         (getnline): Invoke getndelim, to avoid code duplication.
43287         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
43288         of (size_t) -1 by callers of the getnline family.
43289
43290 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
43291
43292         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
43293         Check for gettimeofday.
43294         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
43295         Check for settimeofday, stime.
43296
43297 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
43298
43299         * lib/nanosleep.c (suspended): Change its type from int to
43300         sig_atomic_t volatile.
43301         (first_call): Make it private to rpl_nanosleep, and have it
43302         be zero initially as that's a bit faster.
43303         (my_usleep): Round up fractional times instead of truncating them,
43304         as this is the usual meaning for 'sleep'.
43305
43306         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
43307         doesn't work.
43308         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
43309         (ENOSYS): Define if not defined.
43310         (settime): Fall back on stime if it exists and settimeofday fails.
43311         But don't bother with fallbacks if a method fails with errno == EPERM.
43312
43313 2004-05-11  Jim Meyering  <jim@meyering.net>
43314
43315         Prior to this change, the save_cwd caller required read access to the
43316         current directory on most systems (ones with the fchdir function).
43317
43318         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
43319         fails, try write-only, and finally, resort to using xgetcwd.
43320
43321 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
43322
43323         * lib/obstack.c, obstack.h: Import changes from libc.
43324
43325 2004-04-28  Bruno Haible  <bruno@clisp.org>
43326
43327         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
43328         also implicitly appends .exe to executables.
43329         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
43330         accepts Windows pathnames.
43331         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
43332         Treat Cygwin like Windows, since it now accepts Windows pathnames.
43333         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
43334         Treat Cygwin like Windows, since it now accepts Windows pathnames.
43335         Reported by Derek Robert Price <derek@ximbiot.com>.
43336
43337 2004-04-21  Karl Berry  <karl@gnu.org>
43338
43339         * config/srclist.txt (localcharset.c): break sync.
43340
43341 2004-04-20  Paul Eggert  <eggert@twinsun.com>
43342
43343         * m4/host-os.m4: Add a copyright notice.
43344
43345 2004-04-20  Jim Meyering  <jim@meyering.net>
43346
43347         Change UTILS_ to gl_ in AC_DEFINE'd names.
43348         Change utils_- and jm_-prefixed variables, too.
43349         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
43350         UTILS_FUNC_MKDIR_TRAILING_SLASH.
43351         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
43352
43353         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
43354         Don't emit trailing blanks.
43355         Also rename jm_-prefixed variables to have gl_ prefix.
43356
43357         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
43358         Also rename jm_-prefixed variables to have gl_ prefix.
43359
43360         * m4/jm-macros.m4: Reflect the renamings.
43361         * m4/prereq.m4: Likewise.
43362
43363 2004-04-20  Jim Meyering  <jim@meyering.net>
43364
43365         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
43366         memory.
43367
43368 2004-04-20  Jim Meyering  <jim@meyering.net>
43369             Bruno Haible  <bruno@clisp.org>
43370
43371         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
43372         memory when realloc fails.
43373
43374 2004-04-19  Jim Meyering  <jim@meyering.net>
43375
43376         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
43377         now that readutmp.c may call `free (0)'.
43378
43379 2004-04-19  Bruno Haible  <bruno@clisp.org>
43380
43381         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
43382         * m4/inttypes_h.m4: Likewise.
43383         * m4/stdint_h.m4: Likewise.
43384         * m4/intmax_t.m4: Likewise.
43385         * m4/uintmax_t.m4: Likewise.
43386
43387 2004-04-18  Jim Meyering  <jim@meyering.net>
43388
43389         * m4/prereq.m4: Don't forbid jm_ prefix.
43390
43391         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
43392         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
43393         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
43394         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
43395         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
43396         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
43397         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
43398         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
43399         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
43400         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
43401         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
43402         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
43403         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
43404         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
43405         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
43406         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
43407         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
43408         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
43409         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
43410
43411 2004-04-18  Jim Meyering  <jim@meyering.net>
43412
43413         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
43414         failure, don't leak memory and do call END_UTMP_ENT.
43415
43416 2004-04-16  Jim Meyering  <jim@meyering.net>
43417
43418         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
43419         coreutils' stat program.
43420         (gl_PREREQ): Don't require jm_PREREQ_STAT.
43421
43422 2004-04-11  Paul Eggert  <eggert@twinsun.com>
43423
43424         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
43425         C89.
43426         (CHAR_BIT): Remove, since we assume C89.
43427         Include <stdint.h> if available, as per current Autoconf CVS advice.
43428
43429 2004-03-31  Jim Meyering  <jim@meyering.net>
43430
43431         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
43432         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
43433         * m4/xalloc.m4: Likewise.
43434
43435 2004-03-30  Paul Eggert  <eggert@twinsun.com>
43436
43437         Merge from coreutils.
43438
43439         * m4/inttostr.m4: New file.
43440         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
43441         Require AM_STDBOOL_H and gl_TIMESPEC instead.
43442         Require gl_CLOCK_TIME.
43443         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
43444
43445 2004-03-30  Paul Eggert  <eggert@twinsun.com>
43446
43447         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
43448         not bool, to be more consistent with Unix conventions.
43449         Suggested by Bruno Haible.
43450
43451         Merge from coreutils.
43452
43453         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
43454         * lib/umaxtostr.c: New files.
43455
43456         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
43457         the usual <time.h> dance.
43458         (get_date): Change signature to support fractional time stamps.
43459         All callers changed.
43460         * lib/getdate.y: Include "getdate.h" first, as we can now
43461         assume C89 and don't need to worry about 'const'.
43462         Similarly, include "unlocked-io.h" near start, not in middle.
43463         Include <limits.h>.
43464         (textint.value): Use long int rather than int.
43465         (textint.digits): Use size_t rather than int.
43466         (BILLION, LOG10_BILLION): New constants.
43467         (parser_control): New member rel_ns.  Members day_ordinal,
43468         time_zone, month, day, hour, minutes, rel_year, rel_month,
43469         rel_day, rel_hour, rel_minutes, rel_seconds
43470         are now long int, not int.  Member seconds is now struct timespec,
43471         not int.  New member timespec_seen.  Members dates_seen, days_seen,
43472         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
43473         not int.
43474         (%union.intval): Now long int, not int.
43475         New member timespec.
43476         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
43477         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
43478         (spec): Now is a timespec or an item list.
43479         (timespec, items): New nonterminals.
43480         (time, rel, relunit, number, get_date):
43481         Add support for fractional seconds.
43482         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
43483         (gmtime, localtime, mktime): Remove decls; not needed with C89.
43484         (to_hour): First arg is now long int, not int.
43485         (to_year): Returns long int, not int.
43486         Don't treat year -70 like 70.
43487         (tm_diff): Returns long int, not int.
43488         (lookup_word): Use bool instead of int when appropriate.
43489         (yylex): Use size_t for count, not int.
43490         Detect overflow when parsing large integer constants.
43491         Add support for fractions.
43492         (get_date): Make pointers 'const' if possible.
43493         Use more-portable code to detect integer overflow.
43494         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
43495         Don't use ctime; it's not reliable if the year has >4 digits.
43496
43497         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
43498         This is for compatibility with BSD.
43499
43500         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
43501         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
43502         From coreutils' system.h.
43503
43504         * lib/userspec.c: Don't include "posixver.h".
43505         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
43506         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
43507         compatible extension.  Simplify code by removing a boolean int
43508         that was always nonzero if a string was nonnull.
43509
43510 2004-03-30  Jim Meyering  <jim@meyering.net>
43511
43512         Merge from coreutils.
43513
43514         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
43515         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
43516         on some systems one must include <grp.h> before it.
43517         Reported by Christian Krackowizer.
43518
43519 2004-03-30  Jim Meyering  <jim@meyering.net>
43520
43521         Merge from coreutils.
43522
43523         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
43524
43525         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
43526         an empty input stream.
43527
43528         * lib/readtokens.c: Include <stdbool.h>.
43529         (readtoken): Use `size_t' rather than int/long.
43530         All callers adjusted.
43531         Use `bool' rather than `int' where appropriate.
43532         Use memset rather than an explicit loop.
43533         Use x2nrealloc rather than xrealloc.
43534         Allow the use of `\0' as a delimiter.
43535         (readtokens): Likewise.
43536         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
43537
43538 2004-03-30  Jim Meyering  <jim@meyering.net>
43539
43540         * m4/realloc.m4: Remove file, since now it does no more than
43541         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
43542         the `configure.ac' section of module/realloc.
43543         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
43544
43545 2004-03-30  Bruno Haible  <bruno@clisp.org>
43546
43547         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
43548         nonnull.
43549
43550 2004-03-29  Paul Eggert  <eggert@twinsun.com>
43551
43552         Merge changes to getloadavg.c from coreutils and Emacs.
43553
43554         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
43555         Define to an expression, not to the empty string.
43556         Include cloexec.h and xalloc.h.
43557         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
43558         Use set_cloexec_flag rather than rolling our own.
43559         * lib/cloexec.c, lib/cloexec.h: New files.
43560
43561 2004-03-29  Paul Eggert  <eggert@twinsun.com>
43562
43563         * m4/cloexec.m4: New file.
43564
43565 2004-03-18  Paul Eggert  <eggert@twinsun.com>
43566
43567         * lib/getopt.h: Sync with libc CVS.
43568
43569 2004-03-18  Paul Eggert  <eggert@twinsun.com>
43570             Bruno Haible  <bruno@clisp.org>
43571
43572         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
43573         mbswidth.
43574
43575 2004-03-18  Paul Eggert  <eggert@twinsun.com>
43576             Bruno Haible  <bruno@clisp.org>
43577
43578         * lib/mbswidth.h: Include <wchar.h> only if
43579         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
43580         <wchar.h>.
43581         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
43582
43583 2004-03-09  Paul Eggert  <eggert@twinsun.com>
43584
43585         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
43586         Sync with libc CVS.
43587         * lib/getopt_int.h: New file, also synced from libc.
43588
43589 2004-03-09  Paul Eggert  <eggert@twinsun.com>
43590
43591         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
43592         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
43593         Bring back getopt.c, getopt.h, getopt1.c.
43594
43595 2004-03-07  Paul Eggert  <eggert@twinsun.com>
43596
43597         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
43598         All uses changed.  Check for sa_sigaction member; this fixes
43599         a bug first reported by Jason Andrade in
43600         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
43601
43602 2004-03-07  Paul Eggert  <eggert@twinsun.com>
43603
43604         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
43605         '#if' expressions.  Unlike the code it replaces, it does not
43606         depend on (defined _SC_PAGESIZE).  However, it does depend on
43607         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
43608         first reported by Jason Andrade in
43609         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
43610
43611 2004-02-25  Simon Josefsson  <jas@extundo.com>
43612
43613         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
43614
43615 2004-02-25  Simon Josefsson  <jas@extundo.com>
43616
43617         * lib/strdup.h: New file.
43618         * lib/strdup.c: Include it.
43619         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
43620         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
43621
43622 2004-02-23  Karl Berry  <karl@gnu.org>
43623
43624         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
43625         (from fencepost.gnu.org:/gd/gnuorg).
43626
43627 2004-02-23  Karl Berry  <karl@gnu.org>
43628
43629         * config/srclistvars.sh (GNUORG) [karl]: redefine.
43630         * config/srclist.txt: add maintain/standards documents.
43631
43632 2004-02-18  Bruno Haible  <bruno@clisp.org>
43633
43634         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
43635         Reported by Derek Robert Price <derek@ximbiot.com>.
43636
43637 2004-02-16  Karl Berry  <karl@gnu.org>
43638
43639         * config/mkinstalldirs, install-sh: update from automake.
43640
43641 2004-02-06  Karl Berry  <karl@gnu.org>
43642
43643         * m4/po.m4: update from gettext 0.14.1.
43644
43645 2004-02-06  Karl Berry  <karl@gnu.org>
43646
43647         * lib/config.charset: update from gettext 0.14.1.
43648
43649 2004-02-05  Paul Eggert  <eggert@twinsun.com>
43650
43651         Add comments and code, prompted by suggestions from Bruno Haible
43652         for sh-quote.
43653         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
43654         describing the enum quoting_style values.
43655         * lib/quotearg.c (quotearg_alloc): New function.
43656         (quotearg_buffer_restyled): Treat lone { and } as special.
43657         Treat = as special.  Work around bug with older shells
43658         that "see" a '\' that is really the 2nd byte of a multibyte char.
43659         Quote empty string with shell_quoting_style.
43660
43661 2004-02-03  Bruno Haible  <bruno@clisp.org>
43662
43663         * m4/pipe.m4: New file, from GNU gettext.
43664
43665 2004-02-03  Bruno Haible  <bruno@clisp.org>
43666
43667         * lib/pipe.h: New file, from GNU gettext.
43668         * lib/pipe.c: New file, from GNU gettext.
43669
43670 2004-01-27  Bruno Haible  <bruno@clisp.org>
43671
43672         * m4/execute.m4: New file, from GNU gettext.
43673
43674 2004-01-27  Bruno Haible  <bruno@clisp.org>
43675
43676         * lib/execute.h: New file, from GNU gettext.
43677         * lib/execute.c: New file, from GNU gettext.
43678         * lib/w32spawn.h: New file, from GNU gettext.
43679
43680 2004-01-24  Paul Eggert  <eggert@twinsun.com>
43681
43682         Merge from diffutils.
43683
43684         * lib/file-type.c (file_type): Add typed memory objects.
43685         * lib/file-type.h (S_TYPEISTMO): New macro.
43686
43687         * lib/c-stack.h (c_stack_action): Remove argv argument.
43688         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
43689         (die): Don't calculate message unless segv_action returns.
43690         (get_stack_location, min_address_from_argv, max_address_from_argv,
43691         volatile stack_base, volatile_stack_size): Remove.
43692         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
43693         that every segmentation violation is a stack overflow.  (Ouch!)
43694         See Debian bug 136249 (still outstanding) for more info about why
43695         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
43696
43697 2004-01-24  Paul Eggert  <eggert@twinsun.com>
43698
43699         Exit-status fix from coreutils.
43700
43701         Use exit_failure consistently in place of EXIT_FAILURE,
43702         so that program exit statuses are consistent on failure.
43703
43704         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
43705         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
43706         * lib/argmatch.h: Comment fix to match the above.
43707         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
43708         Now a macro referring to exit_failure, instead of a separate
43709         variable.  Include "exitfail.h" to get it.
43710         * lib/xstrtol.h: Include "exitfail.h".
43711         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
43712
43713         * lib/long-options.c (parse_long_options): Use prototype
43714         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
43715         for clarity.
43716
43717 2004-01-21  Jim Meyering  <jim@meyering.net>
43718
43719         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
43720         so as not to conflict with a different-sized __mktime_internal
43721         function in GNU libc.
43722         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
43723         Problem building statically-linked `ls' reported by Michael Brunnbauer.
43724
43725 2004-01-20  Karl Berry  <karl@gnu.org>
43726
43727         * config/config.guess: update from config.
43728
43729         * config/srclistvars.sh: GNUWWWLICENSES for karl.
43730
43731 2004-01-20  Bruno Haible  <bruno@clisp.org>
43732
43733         Safer stack allocation.
43734         * lib/setenv.c: Include allocsa.h.
43735         (alloca): Remove fallback definition.
43736         (freea): Remove macro.
43737         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
43738         instead of freea.
43739
43740 2004-01-20  Bruno Haible  <bruno@clisp.org>
43741
43742         * m4/eealloc.m4: New file, from GNU gettext.
43743
43744 2004-01-20  Bruno Haible  <bruno@clisp.org>
43745
43746         * m4/allocsa.m4: New file, from GNU gettext.
43747
43748 2004-01-20  Bruno Haible  <bruno@clisp.org>
43749
43750         * lib/xallocsa.h: New file, from GNU gettext.
43751         * lib/xallocsa.c: New file, from GNU gettext.
43752
43753 2004-01-20  Bruno Haible  <bruno@clisp.org>
43754
43755         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
43756
43757 2004-01-20  Bruno Haible  <bruno@clisp.org>
43758
43759         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
43760         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
43761         specially.
43762
43763 2004-01-20  Bruno Haible  <bruno@clisp.org>
43764
43765         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
43766         patch.
43767
43768 2004-01-20  Bruno Haible  <bruno@clisp.org>
43769
43770         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
43771
43772 2004-01-20  Bruno Haible  <bruno@clisp.org>
43773
43774         * lib/eealloc.h: New file.
43775
43776 2004-01-20  Bruno Haible  <bruno@clisp.org>
43777
43778         * lib/binary-io.h: Avoid warnings on Cygwin.
43779
43780 2004-01-20  Bruno Haible  <bruno@clisp.org>
43781
43782         * lib/allocsa.h: New file, from GNU gettext.
43783         * lib/allocsa.c: New file, from GNU gettext.
43784
43785 2004-01-18  Karl Berry  <karl@gnu.org>
43786
43787         * doc/gpl.texi, doc/lgpl.texi: new files.
43788
43789 2004-01-18  Karl Berry  <karl@gnu.org>
43790
43791         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
43792         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
43793
43794 2004-01-15  Paul Eggert  <eggert@twinsun.com>
43795
43796         Merge from coreutils.
43797
43798         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
43799         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
43800         (gl_DEFAULT_POSIX2_VERSION): Move
43801         the documentation from 'configure' into 'config.hin',
43802         so that 'configure --help' isn't burdened by it and
43803         we don't have to worry about its formatting there.
43804         Reword the documentation so that it's more succinct
43805         and can be run together into a single paragraph.
43806         * m4/same.m4 (gl_SAME): Check for pathconf.
43807
43808 2004-01-15  Paul Eggert  <eggert@twinsun.com>
43809
43810         Merge from coreutils.
43811
43812         * lib/posixver.c: Include posixver.h.
43813
43814         * lib/same.c: Include <stdbool.h>, <limits.h>.
43815         (_POSIX_NAME_MAX): Define if not defined.
43816         (MIN): New macro.
43817         (same_name): If file names are silently truncated, report
43818         that the file names are the same if they are the same after
43819         the silent truncation.
43820
43821         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
43822         conversion function.
43823         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
43824         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
43825         longer needed.
43826
43827 2004-01-15  Jim Meyering  <jim@meyering.net>
43828
43829         Merge from coreutils.
43830
43831         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
43832         if no library is required.
43833         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
43834         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
43835         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
43836         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
43837         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
43838         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
43839         value, $ac_cv_search_crypt, if it's "none required".
43840         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
43841         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
43842         not gl_FUNC_GETLOADAVG.
43843         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
43844         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
43845
43846 2004-01-15  Jim Meyering  <jim@meyering.net>
43847
43848         Merge from coreutils.
43849
43850         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
43851         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
43852         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
43853
43854         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
43855         optional configure-time default.
43856
43857         * lib/version-etc.c (version_etc_copyright): Update copyright date.
43858
43859         * lib/xreadlink.c (xreadlink): Correct outdated comment.
43860
43861 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
43862
43863         Merge from coreutils.
43864
43865         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
43866         value, $ac_cv_search_nanosleep, if it's "none required".
43867
43868 2004-01-14  Paul Eggert  <eggert@twinsun.com>
43869
43870         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
43871         with like-named macro in fnmatch.c.
43872         (EXT): Use an internal constant instead.
43873
43874         Merge fnmatch patches from glibc.
43875         * lib/fnmatch.c (mbsinit): Remove define.
43876         Add libc_hidden_ver (__fnmatch, fnmatch).
43877         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
43878         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
43879
43880 2004-01-14  Karl Berry  <karl@gnu.org>
43881
43882         * config/install-sh: update from automake.
43883
43884 2004-01-13  Karl Berry  <karl@gnu.org>
43885
43886         * config/install-sh: update from automake.
43887
43888 2004-01-09  Karl Berry  <karl@gnu.org>
43889
43890         * config/install-sh: update from automake.
43891
43892 2004-01-05  Karl Berry  <karl@gnu.org>
43893
43894         * config/config.{sub,guess}: update from config.
43895
43896 2003-12-31  Karl Berry  <karl@gnu.org>
43897
43898         * config/depcomp: update from automake.
43899
43900 2003-12-14  Karl Berry  <karl@gnu.org>
43901
43902         * lib/config.charset: update from gettext-runtime.
43903
43904 2003-12-03  Paul Eggert  <eggert@twinsun.com>
43905
43906         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
43907         Bug reported by Alfred M. Szmidt.
43908
43909 2003-12-03  Bruno Haible  <bruno@clisp.org>
43910
43911         * m4/gettext.m4: Upgrade from gettext-0.13.
43912         * m4/po.m4: Upgrade from gettext-0.13.
43913         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
43914         * m4/intmax.m4: New file, from gettext-0.13.
43915         * m4/printf-posix.m4: New file, from gettext-0.13.
43916
43917 2003-11-29  Karl Berry  <karl@gnu.org>
43918
43919         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
43920
43921 2003-11-25  Paul Eggert  <eggert@twinsun.com>
43922             Bruno Haible  <bruno@clisp.org>
43923
43924         * lib/printf-parse.h: Don't include sys/types.h.
43925         (ARG_NONE): New macro.
43926         (char_directive): Change type of *arg_index fields to size_t.
43927         * lib/printf-parse.c: Don't include sys/types.h.
43928         (SSIZE_MAX): Remove macro.
43929         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
43930         Remove unnecessary overflow check.
43931         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
43932         fields.
43933
43934 2003-11-25  Bruno Haible  <bruno@clisp.org>
43935
43936         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
43937
43938 2003-11-25  Bruno Haible  <bruno@clisp.org>
43939
43940         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
43941         gt_TYPE_SSIZE_T.
43942
43943 2003-11-24  Paul Eggert  <eggert@twinsun.com>
43944
43945         * modules/alloca: Remove dependency on xalloc.
43946
43947 2003-11-24  Paul Eggert  <eggert@twinsun.com>
43948
43949         * lib/alloca.c: Remove dependency on xalloc module.
43950         (xalloc_die): Remove.
43951         (memory_full) [!defined emacs]: New macro.
43952         [!defined emacs]: Don't include xalloc.h.
43953         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
43954         address arithmetic overflows.  Change datatypes a bit to avoid
43955         unnecessary casts.
43956
43957 2003-11-22  Jim Meyering  <jim@meyering.net>
43958
43959         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
43960         s/size/size_t/.
43961
43962 2003-11-21  Karl Berry  <karl@gnu.org>
43963
43964         * config/config.{sub,guess}: update from config.
43965
43966 2003-11-18  Karl Berry  <karl@gnu.org>
43967
43968         * config/config.{sub,guess}: update from config.
43969
43970         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
43971
43972 2003-11-17  Paul Eggert  <eggert@twinsun.com>
43973
43974         * README: Mention that S+T cannot overflow if S is the size of
43975         an existing object and T is sufficiently small.
43976
43977 2003-11-17  Jim Meyering  <jim@meyering.net>
43978
43979         On systems without utime and without a utimes function capable of
43980         dealing with a NULL struct utimbuf* argument, this utime replacement
43981         could -- in unusual circumstances -- leak a file descriptor.
43982         * lib/utime.c: Include <unistd.h> and <errno.h>.
43983         (utime_null): Be sure to close `fd' and to preserve errno.
43984         Reported by Geoff Collyer via Arnold Robbins.
43985
43986 2003-11-17  Bruno Haible  <bruno@clisp.org>
43987
43988         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
43989         (Depends-on): Add xsize.
43990
43991 2003-11-17  Bruno Haible  <bruno@clisp.org>
43992
43993         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
43994
43995 2003-11-17  Bruno Haible  <bruno@clisp.org>
43996
43997         * lib/vasnprintf.c (alloca): Remove fallback definition.
43998         (freea): Remove definition.
43999         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
44000         Reported by Paul Eggert.
44001
44002 2003-11-16  Paul Eggert  <eggert@twinsun.com>
44003             Bruno Haible  <bruno@clisp.org>
44004
44005         Protect against address arithmetic overflow.
44006         * lib/printf-args.h: Include stddef.h.
44007         (arguments): Change type of field 'count' to size_t.
44008         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
44009         'unsigned int' where appropriate.
44010         * lib/printf-parse.h: Include sys/types.h.
44011         (char_directive): Change type of *arg_index fields to ssize_t.
44012         (char_directives): Change type of fields 'count', max_*_length to
44013         size_t.
44014         * lib/printf-parse.c: Include sys/types.h and xsize.h.
44015         (SSIZE_MAX): Define fallback value.
44016         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
44017         instead of 'int' where appropriate. Check a_allocated, d_allocated
44018         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
44019         * lib/vasnprintf.c: Include xsize.h.
44020         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
44021         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
44022         overflow. Avoid wraparound when converting a width or precision from
44023         decimal to binary.
44024
44025 2003-11-16  Bruno Haible  <bruno@clisp.org>
44026
44027         Update from GNU gettext.
44028         * lib/printf-parse.c: Generalize to it can be compiled for wide
44029         strings.
44030         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
44031         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
44032         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
44033         SNPRINTF): New macros.
44034         Don't include <alloca.h> if the file is used inside libintl.
44035         (local_wcslen): New function, for Solaris 2.5.1.
44036         (VASNPRINTF): Use it instead of wcslen.
44037
44038 2003-11-16  Bruno Haible  <bruno@clisp.org>
44039
44040         * lib/xsize.h (xmax): New function.
44041         (xsum, xsum3, xsum4): Declare as "pure" functions.
44042
44043 2003-11-12  Paul Eggert  <eggert@twinsun.com>
44044
44045         * modules/xalloc (Files): Undo latest change, since xalloc.h
44046         no longer needs SIZE_MAX or PTRDIFF_MAX.
44047
44048 2003-11-12  Paul Eggert  <eggert@twinsun.com>
44049
44050         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
44051         gl_PTRDIFF_MAX.
44052
44053 2003-11-12  Paul Eggert  <eggert@twinsun.com>
44054
44055         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
44056         "return", to pacify some unknown compiler.  Problem reported
44057         by Joerg Schilling.
44058
44059 2003-11-12  Paul Eggert  <eggert@twinsun.com>
44060
44061         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
44062         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
44063         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
44064         heuristic is just as accurate as far as we know, and it removes a
44065         dependency on size_max.m4 and ptrdiff_max.m4.
44066
44067 2003-11-11  Bruno Haible  <bruno@clisp.org>
44068
44069         * modules/xsize (Files): Add m4/size_max.m4.
44070         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
44071
44072 2003-11-11  Bruno Haible  <bruno@clisp.org>
44073
44074         * m4/size_max.m4: New file.
44075         * m4/ptrdiff_max.m4: New file.
44076         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
44077         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
44078         (gl_XALLOC): Invoke it.
44079
44080 2003-11-11  Bruno Haible  <bruno@clisp.org>
44081
44082         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
44083         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
44084         defined.
44085
44086 2003-11-10  Paul Eggert  <eggert@twinsun.com>
44087
44088         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
44089         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
44090         rejected some allocations of exactly SIZE_MAX - 2 bytes.
44091         From Bruno Haible.
44092         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
44093         not (size_t) -1, since it's defined here.
44094
44095 2003-11-09  Karl Berry  <karl@gnu.org>
44096
44097         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
44098
44099 2003-11-06  Paul Eggert  <eggert@twinsun.com>
44100
44101         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
44102         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
44103         Reject sizes of exactly SIZE_MAX bytes.
44104         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
44105         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
44106
44107 2003-11-05  Bruno Haible  <bruno@clisp.org>
44108
44109         * lib/xsize.h: Include limits.h, to avoid a possible collision with
44110         SIZE_MAX defined in <limits.h> on Solaris.
44111
44112 2003-11-04  Jim Meyering  <jim@meyering.net>
44113
44114         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
44115         variable names, rather than @VAR@.
44116         * modules/poll: Likewise.
44117
44118 2003-11-04  Bruno Haible  <bruno@clisp.org>
44119
44120         * modules/xsize: New file.
44121         * modules/linebreak: Depend on xsize.
44122         * MODULES.html.sh (func_all_modules): Add xsize.
44123
44124 2003-11-04  Bruno Haible  <bruno@clisp.org>
44125
44126         * m4/xsize.m4: New file.
44127
44128 2003-11-04  Bruno Haible  <bruno@clisp.org>
44129
44130         * lib/xsize.h: New file.
44131         * lib/linebreak.c: Include xsize.h.
44132         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
44133         argument for overflow.
44134         Suggested by Paul Eggert.
44135
44136 2003-11-03  Karl Berry  <karl@gnu.org>
44137
44138         * config/config.{guess,sub}: update from config.
44139
44140 2003-11-03  Jim Meyering  <jim@meyering.net>
44141
44142         * modules/userspec (lib_SOURCES): Add userspec.h.
44143         (Include): Add "userspec.h".
44144         Improve description.
44145
44146 2003-11-03  Jim Meyering  <jim@meyering.net>
44147
44148         * lib/userspec.c: Include "userspec.h".
44149         * lib/userspec.h: New file.
44150
44151 2003-11-03  Bruno Haible  <bruno@clisp.org>
44152
44153         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
44154
44155 2003-11-03  Bruno Haible  <bruno@clisp.org>
44156
44157         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
44158         available, to avoid (extremely rare) race condition.
44159         Suggested by Paul Eggert.
44160
44161 2003-11-02  Karl Berry  <karl@gnu.org>
44162
44163         * config/srclist.txt (vasprintf.c): sync broken, sigh.
44164
44165 2003-10-31  Paul Eggert  <eggert@twinsun.com>
44166
44167         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
44168         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
44169         (read_filesystem_list): Set and use me_type_malloced.
44170         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
44171         whatever the type happens to be), for brevity and consistency.
44172         Check for size calculation overflow on Alphas running OSF/1.
44173
44174 2003-10-31  Jim Meyering  <jim@meyering.net>
44175
44176         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
44177
44178         * lib/linebuffer.c: Include <string.h> for declaration of memset.
44179
44180 2003-10-30  Paul Eggert  <eggert@twinsun.com>
44181             Bruno Haible  <bruno@clisp.org>
44182
44183         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
44184         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
44185
44186 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
44187
44188         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
44189         netbsd*-gnu*.  Suggested by Robert Millan.
44190
44191 2003-10-29  Paul Eggert  <eggert@twinsun.com>
44192
44193         * modules/group-member: Depend on stdbool.
44194
44195 2003-10-29  Paul Eggert  <eggert@twinsun.com>
44196
44197         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
44198
44199 2003-10-29  Paul Eggert  <eggert@twinsun.com>
44200
44201         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
44202         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
44203         after the 'gnu' in these cases.  This fixes some bugs in the
44204         previous change, and is based on suggestions by Robert Millan.
44205
44206 2003-10-29  Paul Eggert  <eggert@twinsun.com>
44207
44208         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
44209         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
44210         no longer needed.
44211         * lib/quotearg.c (quotearg_n_options): Use it.
44212         * lib/group-member.c: Include <stdbool.h>.
44213         (free_group_info): Arg is now const *; don't free arg.
44214         (get_group_info): Now returns bool and accepts struct group_info *,
44215         rather than returning a malloc'ed struct group_info *.
44216         All uses changed.  Check for overflow in internal size calculation.
44217
44218         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
44219         rather than xmalloc/xrealloc.
44220         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
44221         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
44222         conformance bug: the old code used a pointer after freeing the
44223         storage that it addressed.
44224         * lib/hash.c (hash_initialize): Simplify the code by using
44225         xalloc_oversized rather than doing it by hand.
44226         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
44227         the buffer preserved.  Use free and xmalloc instead.
44228         * lib/quotearg.c (quotearg_n_options): Likewise.
44229         Use a simpler test for size overflow.  Don't use xalloc_oversized
44230         because unsigned int might be wider than size_t (!); this suggests
44231         that we should switch from unsigned int to size_t for slot numbers.
44232
44233 2003-10-28  Paul Eggert  <eggert@twinsun.com>
44234
44235         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
44236         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
44237         NetBSD kernels.  Requested by Richard Stallman.
44238
44239 2003-10-27  Paul Eggert  <eggert@twinsun.com>
44240
44241         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
44242         to allocate the returned structure.  Do not allocate a subarray,
44243         as x2nrealloc will do that.
44244         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
44245         instead of xnrealloc.
44246         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
44247
44248 2003-10-27  Bruno Haible  <bruno@clisp.org>
44249
44250         * lib/stdbool_.h: Better support for BeOS.
44251
44252 2003-10-26  Paul Eggert  <eggert@twinsun.com>
44253
44254         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
44255         now uses inline.
44256
44257 2003-10-26  Paul Eggert  <eggert@twinsun.com>
44258
44259         * lib/xalloc.h (xalloc_oversized): New static inline function, for
44260         callers that want to do their own size-overflow checking.  Include
44261         <stdbool.h>, since xalloc_oversized returns bool.
44262         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
44263         to use xalloc_oversized.
44264
44265         Add two functions x2realloc, x2nrealloc, for programs that grow
44266         arrays dynamically by doubling their sizes.
44267         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
44268         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
44269         New functions.
44270
44271         Port to C99 semantics for 'inline' of external functions.
44272         Bug reported by Bruno Haible.
44273         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
44274         with the old contents of xnmalloc.
44275         (xnmalloc, xmalloc): Use it.
44276         (xnrealloc_inline): New static inline function,
44277         with the old contents of xnrealloc.
44278         (xnrealloc, xrealloc): Use it.
44279
44280         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
44281         that.
44282
44283 2003-10-26  Karl Berry  <karl@gnu.org>
44284
44285         * config/srclist.txt (COPYING.DOC): no longer available from
44286         /gd/gnuorg; don't know where the ultimate source is.
44287
44288 2003-10-25  Paul Eggert  <eggert@twinsun.com>
44289
44290         Fix several address-calculation bugs in the hash modules,
44291         plus some minor code cleanup.
44292
44293         * lib/hash.h: Include <stdbool.h>, for bool.
44294         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
44295         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
44296         hash_get_n_entries, hash_get_max_bucket_length,
44297         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
44298         hash_rehash): Use size_t rather than unsigned.
44299         * lib/hash.c (struct hash_table, hash_get_n_buckets,
44300         hash_get_n_buckets_used, hash_get_n_entries,
44301         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
44302         hash_get_entries, hash_do_for_each, hash_string, is_prime,
44303         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
44304         Likewise.
44305         (SIZE_MAX): Define if not defined.
44306         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
44307         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
44308         hash_print):
44309         Use const * when possible.
44310         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
44311         (check_tuning): Fix bug: if tuning parameters were very close to
44312         0 or 1, rounding errors could have caused subscript violations.
44313         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
44314         (hash_initialize): Add 'fail:' label
44315         to free table and return NULL, and use it to simplify code.
44316         Use calloc rather than clearing the storage ourself.
44317         (hash_initialize, hash_rehash): Check for arithmetic overflow in
44318         buffer size calculations.
44319         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
44320         Include <stddef.h>, for size_t.
44321         * lib/hash-pjw.c (hash_pjw): Likewise.
44322         Switch to method described by Bruno Haible.
44323         Include <limits.h>, for CHAR_BIT.
44324         (SIZE_BITS): New macro.
44325
44326 2003-10-23  Paul Eggert  <eggert@twinsun.com>
44327
44328         * m4/getline.m4 (AM_FUNC_GETLINE):
44329         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
44330         hosts.  Problem reported by Derek Robert Price in
44331         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
44332         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
44333         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
44334
44335 2003-10-21  Paul Eggert  <eggert@twinsun.com>
44336
44337         * lib/getndelim2.c (getndelim2): When size calculation overflows,
44338         ceiling the allocation at NMAX bytes rather than silently
44339         discarding input bytes before NMAX is reached.  This makes
44340         a difference only if NMAX exceeds SIZE_MAX / 2.
44341
44342         * lib/obstack.c: Merge from glibc.
44343         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
44344         Add libc_hidden_def (_obstack_newchunk).
44345         (_obstack_free) [! defined _LIBC]: Remove.
44346         [defined _LIBC]: Make a strong alias from obstack_free, rather than
44347         a clone of the function body.
44348         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
44349         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
44350
44351         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
44352         glibc.
44353         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
44354         arg to memcpy.
44355
44356         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
44357         (obstack_ptr_grow_fast, obstack_int_grow_fast):
44358         Don't use lvalue casts, as GCC plans to remove support for them
44359         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
44360         was also present in the non-GCC version, indicating that this
44361         code had always been buggy and had never been widely used.
44362         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
44363         Use the fast variant of each macro, rather than copying the
44364         definiens of the fast variant; that way, we'll be more likely to
44365         catch future bugs in the fast variants.
44366
44367 2003-10-20  Bruno Haible  <bruno@clisp.org>
44368
44369         * modules/wait-process: New file.
44370         * MODULES.html.sh (func_all_modules): Add wait-process.
44371
44372 2003-10-20  Bruno Haible  <bruno@clisp.org>
44373
44374         * m4/wait-process.m4: New file.
44375
44376 2003-10-20  Bruno Haible  <bruno@clisp.org>
44377
44378         * lib/wait-process.h: New file, from GNU gettext.
44379         * lib/wait-process.c: New file, from GNU gettext.
44380
44381 2003-10-19  Jim Meyering  <jim@meyering.net>
44382
44383         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
44384         HPUX 10.20.
44385
44386 2003-10-18  Karl Berry  <karl@gnu.org>
44387
44388         * config/config.guess: update from config.
44389
44390 2003-10-16  Paul Eggert  <eggert@twinsun.com>
44391
44392         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
44393         (getgroups): First arg is int, not size_t.
44394         Don't let 'free' mangle errno.
44395
44396 2003-10-16  Paul Eggert  <eggert@twinsun.com>
44397
44398         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
44399
44400 2003-10-16  Karl Berry  <karl@gnu.org>
44401
44402         * config/config.{guess,sub}: update from config.
44403
44404 2003-10-16  Jim Meyering  <jim@meyering.net>
44405
44406         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
44407         memcpy.
44408
44409 2003-10-15  Paul Eggert  <eggert@twinsun.com>
44410
44411         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
44412         (SIZE_MAX): Remove.
44413         (new_exclude, add_exclude_file): Initial size no longer needs to
44414         be a power of 2.
44415         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
44416         our own address arithmetic overflow checking.
44417
44418         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
44419         (fnmatch): Do not alloca more than 2000 wide characters;
44420         instead, use malloc for large buffers.
44421         Check for address arithmetic overflow, and return -1
44422         with errno set to ENOMEM in that case.
44423         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
44424         (NEW_PATTERN): Do not alloca more than 8000 bytes;
44425         instead, return -1.  Check for address arithmetic overflow.
44426
44427 2003-10-14  Paul Eggert  <eggert@twinsun.com>
44428
44429         Handle invalid suffixes and overflow independently, so that
44430         callers can treat them independently as needed.  Fix some bugs in
44431         suffix handling, e.g., "100k@" was not diagnosed as an invalid
44432         suffix for a human-readable blocksize.  The major caller-visible
44433         change is the addition of a new
44434         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
44435         that both overflow and suffix chars were found.
44436
44437         * lib/human.c (humblock): Don't check separately for invalid suffix
44438         char; that is xstrtoumax's job (now that its bug is fixed).
44439         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
44440         INTMAX_MAX]: New macros.
44441         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
44442         TYPE_MAXIMUM): New macros.
44443         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
44444         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
44445         if overflow occurs, as it's what __strtol does and it's more useful
44446         in practice.
44447         (__xstrtol): If __strtol reports some error other than ERANGE,
44448         reflect it to the caller as LONGINT_INVALID.  If it reports
44449         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
44450         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
44451         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
44452         value.
44453         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
44454         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
44455         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
44456         [defined UINTMAX_MAX]: New macros.
44457
44458 2003-10-14  Bruno Haible  <bruno@clisp.org>
44459
44460         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
44461
44462 2003-10-14  Bruno Haible  <bruno@clisp.org>
44463
44464         * m4/sig_atomic_t: New file, from GNU gettext.
44465         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
44466
44467 2003-10-14  Bruno Haible  <bruno@clisp.org>
44468
44469         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
44470         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
44471         Also use volatile where needed.
44472
44473 2003-10-12  Paul Eggert  <eggert@twinsun.com>
44474
44475         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
44476         Change maintainer from Bruno Haible to 'all'.
44477
44478 2003-10-12  Paul Eggert  <eggert@twinsun.com>
44479
44480         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
44481
44482 2003-10-12  Paul Eggert  <eggert@twinsun.com>
44483
44484         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
44485         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
44486         and define in terms of the other primitives.
44487         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
44488         (SIZE_MAX): Define if not already defined.
44489         (array_size_overflow): New function.
44490         (xalloc_die): Abort instead of exiting if 'error' returns.
44491         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
44492         (xmalloc, xrealloc): Use them.
44493         (xcalloc): Check for address arithmetic overflow.
44494         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
44495         a bit faster than strcpy.
44496
44497 2003-10-10  Simon Josefsson  <jas@extundo.com>
44498
44499         * modules/argp (Depends-on): Add restrict and strcase.
44500
44501 2003-10-10  Simon Josefsson  <jas@extundo.com>
44502
44503         * m4/argp.m4: Add AC_C_INLINE.
44504
44505 2003-10-08  Paul Eggert  <eggert@twinsun.com>
44506
44507         Merge getpass from libc, plus a few fixes.
44508
44509         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
44510         Include <stdbool.h>.
44511         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
44512         __fsetlocking to empty.
44513         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
44514         do include <bits/libc-lock.h>.
44515         Do not include <fcntl.h>; not needed.
44516         [_LIBC]: Include <wchar.h>.
44517         (NOTCANCEL_MODE): New macro.
44518         (flockfile, funlockfile) [_LIBC]: New macros.
44519         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
44520         [!_LIBC]: New macros.
44521         (call_fclose): New function.
44522         (getpass): Use it.  Save tty stream separately; this simplifies the
44523         code and makes it more reliable if stdin happens to equal stdout.
44524         Invoke __fsetlocking on tty.
44525         Handle thread cancellation if needed.
44526         Namespace cleanup (use __tcgetattr, __getline).
44527         Use bool for Booleans.
44528         [USE_IN_LIBIO]: Handle wide streams.
44529         [!_LIBC]: Unconditionally do the fseek, since we don't know what
44530         stream might go where.
44531
44532         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
44533         doesn't have to include <stdio.h> before us.
44534         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
44535         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
44536         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
44537         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
44538         if not declared, so that we can use getpass.c code from libc without
44539         rewriting it.
44540         (flockfile, ftrylockfile, funlockfile): New macros.
44541
44542 2003-10-08  Paul Eggert  <eggert@twinsun.com>
44543
44544         * modules/getpass: Depend on stdbool.
44545
44546 2003-10-08  Paul Eggert  <eggert@twinsun.com>
44547
44548         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
44549
44550 2003-10-07  Karl Berry  <karl@gnu.org>
44551
44552         * config/config.{guess,sub}: update from config.
44553
44554 2003-10-06  Jim Meyering  <jim@meyering.net>
44555             Bruno Haible  <bruno@clisp.org>
44556
44557         This lets translators provide better translations for the
44558         "Written by ..." part of --version output.
44559         * lib/version-etc.h: Include stdarg.h.
44560         (version_etc_copyright): Declare as readonly.
44561         (version_etc): Make this function variadic with a NULL-terminated list
44562         of author name strings.
44563         (version_etc_va): New declaration.
44564         * lib/version-etc.c: Include stdarg.h, stdlib.h.
44565         (version_etc_copyright): Declare as readonly.
44566         (version_etc_va): New function. Provide a different translatable string
44567         for each possible number of authors < 10. Abbreviate when there are 10
44568         authors or more.
44569         (version_etc): Make this function variadic. Call version_etc_va.
44570         Suggestion from Gary V. Vaughan.
44571
44572         * lib/long-options.h (parse_long_options): Change prototype: the
44573         authors string is moved to the end and becomes variadic.
44574         * lib/long-options.c: Include stdarg.h.
44575         (parse_long_options): Make this function variadic, too.
44576         Call version_etc_va, not version_etc.
44577
44578 2003-10-06  Bruno Haible  <bruno@clisp.org>
44579
44580         * modules/version-etc-2: Remove file.
44581         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
44582
44583 2003-10-06  Bruno Haible  <bruno@clisp.org>
44584
44585         * modules/fatal-signal: New file.
44586         * MODULES.html.sh (func_all_modules): Add fatal-signal.
44587
44588 2003-10-06  Bruno Haible  <bruno@clisp.org>
44589
44590         * m4/fatal-signal.m4: New file.
44591         * m4/signalblocking.m4: New file, from GNU gettext.
44592
44593 2003-10-06  Bruno Haible  <bruno@clisp.org>
44594
44595         * lib/version-etc-2.h: Remove file.
44596         * lib/version-etc-2.c: Remove file.
44597
44598 2003-10-06  Bruno Haible  <bruno@clisp.org>
44599
44600         * lib/fatal-signal.h: New file, from GNU gettext.
44601         * lib/fatal-signal.c: New file, from GNU gettext.
44602
44603 2003-10-05  Paul Eggert  <eggert@twinsun.com>
44604
44605         * README: Rework advice for preventing empty .o files.
44606         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
44607         not <sys/types.h>.
44608
44609 2003-10-04  Karl Berry  <karl@gnu.org>
44610
44611         * lib/argp*: update from libc.
44612
44613 2003-10-04  Karl Berry  <karl@gnu.org>
44614
44615         * config/config.{guess,sub}: update from config.
44616
44617 2003-10-02  Bruno Haible  <bruno@clisp.org>
44618
44619         * modules/lchown (Include): Add lchown.h.
44620         * modules/time_r (Include): Use "..." syntax.
44621         * modules/xgetdomainname (Include): Add xgetdomainname.h.
44622
44623 2003-10-01  Simon Josefsson  <jas@extundo.com>
44624
44625         * MODULES.html.sh (func_all_modules): Move gethostname from section
44626         'based on' to section 'lacking' POSIX:2001.
44627
44628 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
44629
44630         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
44631         to output mode on the same stream.
44632
44633 2003-09-29  Paul Eggert  <eggert@twinsun.com>
44634
44635         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
44636         Fix arg typo in previous patch.
44637
44638 2003-09-28  Jim Meyering  <jim@meyering.net>
44639
44640         * lib/error.c: Correct cpp indentation.
44641
44642 2003-09-27  Paul Eggert  <eggert@twinsun.com>
44643
44644         * modules/free: New file.
44645
44646 2003-09-27  Paul Eggert  <eggert@twinsun.com>
44647
44648         * m4/free.m4: New file.
44649
44650 2003-09-27  Paul Eggert  <eggert@twinsun.com>
44651
44652         * lib/minmax.h (MIN, MAX)
44653         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
44654         Omit the special code that used __typeof__, since we worry that
44655         it could be more trouble than it's worth.  See:
44656         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
44657         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
44658
44659         * lib/free.c: New file.
44660
44661 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
44662
44663         Trivial fixes to Makefile.am parts of module listings.
44664         * modules/strstr: Append strstr.h to lib_SOURCES.
44665         * modules/strcase: Likewise, for strcase.h.
44666
44667 2003-09-27  Karl Berry  <karl@gnu.org>
44668
44669         * config/mkinstalldirs: update from automake.
44670
44671 2003-09-26  Paul Eggert  <eggert@twinsun.com>
44672
44673         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
44674         (error_tail): Do not loop, reallocating temporary buffer, since
44675         the output cannot contain more wide characters than the input
44676         contains bytes, the size must be big enough already.  This avoids
44677         one potential size overflow calculation.  Check for size overflow
44678         when calculating temporary buffer size.  Free temporary buffer
44679         when done, if it was allocated with malloc; this plugs a memory
44680         leak.  Remove casts from void * to pointers, that are no longer
44681         needed now that we're assuming C89 or better.
44682
44683         Merge error changes from glibc.
44684
44685         * lib/error.c, error.h: Update copyright notice header to match glibc.
44686         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
44687         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
44688         Disable cancellation while printing error.
44689         * lib/error.h: Prepend __ to parameter names.
44690
44691 2003-09-26  Jim Meyering  <jim@meyering.net>
44692
44693         * lib/error.c (error_tail): Move some declarations
44694         into inner scope where the local variables are used.
44695
44696 2003-09-26  Bruno Haible  <bruno@clisp.org>
44697
44698         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
44699         stpncpy().
44700         Don't define stpncpy through config.h; it's now done through stpncpy.h.
44701
44702 2003-09-26  Bruno Haible  <bruno@clisp.org>
44703
44704         * lib/stpncpy.h (gnu_stpncpy): New declaration.
44705         (stpncpy): Define as alias for gnu_stpncpy.
44706         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
44707
44708 2003-09-25  Simon Josefsson  <jas@extundo.com>
44709
44710         * lib/xgetdomainname.h: New file.
44711         * lib/xgetdomainname.c: New file.
44712
44713 2003-09-25  Simon Josefsson  <jas@extundo.com>
44714             Bruno Haible  <bruno@clisp.org>
44715
44716         * modules/getdomainname: New file.
44717         * modules/xgetdomainname: New file.
44718         * MODULES.html.sh (func_all_modules): Add getdomainname,
44719         xgetdomainname.
44720
44721 2003-09-25  Simon Josefsson  <jas@extundo.com>
44722             Bruno Haible  <bruno@clisp.org>
44723
44724         * m4/getdomainname.m4: New file.
44725
44726 2003-09-25  Simon Josefsson  <jas@extundo.com>
44727             Bruno Haible  <bruno@clisp.org>
44728
44729         * lib/getdomainname.h: New file.
44730         * lib/getdomainname.c: New file.
44731
44732 2003-09-25  Karl Berry  <karl@gnu.org>
44733
44734         * lib/argp-fmtstream.c, argp-help.c: update from libc.
44735
44736 2003-09-25  Karl Berry  <karl@gnu.org>
44737
44738         * config/install-sh: update from automake.
44739
44740 2003-09-25  Bruno Haible  <bruno@clisp.org>
44741
44742         * modules/version-etc-2: New file, from modules/version-etc with
44743         modifications.
44744         * MODULES.html.sh (func_all_modules): Add version-etc-2.
44745
44746 2003-09-25  Bruno Haible  <bruno@clisp.org>
44747
44748         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
44749         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
44750
44751 2003-09-24  Simon Josefsson  <jas@extundo.com>
44752
44753         * modules/xgethostname: Add xgethostname.h.
44754
44755 2003-09-24  Paul Eggert  <eggert@twinsun.com>
44756
44757         * lib/linebuffer.c (freebuffer): Don't free the argument, just
44758         the buffer associated with the argument.  Bug reported by
44759         Simon Josefsson.
44760
44761 2003-09-24  Paul Eggert  <eggert@twinsun.com>
44762
44763         * README: Document assumptions that 'int' is at least 32 bits
44764         wide, that integer arithmetic is 2's complement without overflow,
44765         that there are no holes in integer values, that adding sizes of
44766         two nonoverlapping objects can't overflow, and that all-bits-zero
44767         yields scalar zero.  Fix spelling and capitalization typos.
44768
44769 2003-09-19  Karl Berry  <karl@gnu.org>
44770
44771         * lib/argp.h: update from libc.
44772
44773 2003-09-17  Paul Eggert  <eggert@twinsun.com>
44774
44775         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
44776         to avoid spurious warnings like "AC_RUN_IFELSE was called before
44777         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
44778
44779 2003-09-17  Paul Eggert  <eggert@twinsun.com>
44780
44781         * gnulib-tool: Use "test -h", not "test -L", for portability
44782         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
44783         (tags_regexp): Remove, since \| doesn't conform to POSIX.
44784         (sed_extract_prog): Issue s commands one-by-one, rather than
44785         using \| in one s command.
44786
44787 2003-09-16  Paul Eggert  <eggert@twinsun.com>
44788
44789         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
44790         input error, instead of returning NULL the next time we are called
44791         (and therefore losing track of errno).
44792
44793 2003-09-16  Bruno Haible  <bruno@clisp.org>
44794
44795         * gnulib-tool (func_create_testdir): Warn about duplicated
44796         dependencies.
44797
44798 2003-09-15  Paul Eggert  <eggert@twinsun.com>
44799
44800         * modules/argmatch, modules/fatal, modules/obstack,
44801         modules/xalloc, modules/xgethostname: Sort dependencies by
44802         importance, not alphabetically.
44803
44804 2003-09-15  Paul Eggert  <eggert@twinsun.com>
44805
44806         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
44807         fails, so that the caller gets the proper errno.
44808
44809         * lib/readutmp.c (read_utmp): Likewise.
44810         Check for fstat error.  Close stream and free storage
44811         when failing.
44812
44813 2003-09-14  Karl Berry  <karl@gnu.org>
44814
44815         * config/srclist.txt (strdup.c): disable for c89 changes.
44816
44817 2003-09-14  Jim Meyering  <jim@meyering.net>
44818
44819         * lib/getloadavg.c: Correct cpp indentation.
44820         * lib/strdup.c: Likewise.
44821         * lib/vasnprintf.c: Likewise.
44822
44823 2003-09-14  Bruno Haible  <bruno@clisp.org>
44824
44825         * modules/fwriteerror: New file.
44826         * MODULES.html.sh (func_all_modules): Add fwriteerror.
44827
44828 2003-09-14  Bruno Haible  <bruno@clisp.org>
44829
44830         * lib/fwriteerror.h: New file.
44831         * lib/fwriteerror.c: New file.
44832
44833 2003-09-12  Paul Eggert  <eggert@twinsun.com>
44834
44835         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
44836         modules/xgethostname, modules/xalloc: Depend on exit.
44837
44838 2003-09-12  Paul Eggert  <eggert@twinsun.com>
44839
44840         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
44841
44842         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
44843         and AC_MINIX, too, so that their extensions are available.
44844
44845         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
44846         This macro has been superseded by gl_BACKUPFILE.
44847
44848         More patches to assume C89 or better.
44849
44850         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
44851
44852         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
44853         unconditionally.
44854         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
44855         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
44856         Include <string.h>, <stdlib.h> unconditionally.
44857         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
44858         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
44859         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
44860         headers or for string.h.
44861         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
44862         or strtoul.
44863
44864         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
44865         headers.
44866         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
44867         * m4/userspec.m4 (gl_USERSPEC): Likewise.
44868         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
44869         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
44870         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44871         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
44872         memcpy, memset.
44873         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
44874         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
44875         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
44876         strtol.
44877         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
44878         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
44879         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
44880         strtoul.
44881
44882 2003-09-12  Paul Eggert  <eggert@twinsun.com>
44883
44884         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
44885         * lib/obstack.c [!defined _LIBC]: Likewise.
44886         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
44887         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
44888         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
44889
44890         More changes to assume C89 or better.
44891
44892         * lib/error.c (error_tail): Assume vprintf.
44893
44894         * lib/argmatch.c (getenv): Remove decl.
44895         * lib/progreloc.c (get_full_program_name): Define via prototype.
44896         * lib/setenv.c (clearenv): Likewise.
44897         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
44898         needed.
44899         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
44900         (malloc, memcpy): Remove decls.
44901         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
44902         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
44903         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
44904         (memcpy): Remove macro.
44905         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
44906         (__P): Remove.  All uses removed.
44907         (PTR): Remove.  All uses changed to void *.
44908         (CHAR_BIT, NULL): Remove.
44909         (spaces, zeros, memset_space, memset_zero)
44910         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
44911         Remove.
44912         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
44913         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
44914         Define with prototype.
44915         Remove now-unnecessary prototype decl.
44916         (extra_args_spec): Assume ANSI C.  All uses changed.
44917         (extra_args_spec_iso): Remove.
44918         (my_strftime, emacs_strftimeu): Define via prototype.
44919         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
44920         unconditionally.
44921         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
44922         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
44923         (strtoul, strtol): Remove decls.
44924         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
44925         LONG_MAX): Remove.
44926         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
44927         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
44928         (LOCALE_PARAM_PROTO): New macro.
44929         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
44930         (INTERNAL (strtol), strtol): Define with a prototype.
44931         (PARAMS): Remove.  All uses removed.
44932         * lib/tempname.c: Include <string.h> unconditionally.
44933         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
44934         * lib/xgethostname.c (main): Define with a prototype.
44935         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
44936         Include <stdlib.h> unconditionally.
44937         (calloc, malloc, realloc, free): Remove decls.
44938         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
44939         Include <stdlib.h> unconditionally.  Sort include file names.
44940         (strtod): Remove.
44941         (xstrtod): Define with a prototype.
44942         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
44943         (strtol, strtoul): Remove decls.
44944
44945 2003-09-11  Paul Eggert  <eggert@twinsun.com>
44946
44947         More patches to assume C89 or better.
44948         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
44949         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
44950         string.h, memchr, STDC_HEADERS.
44951
44952 2003-09-11  Paul Eggert  <eggert@twinsun.com>
44953
44954         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
44955         Include <stdlib.h>, <string.h> unconditionally.
44956         Remove now-unnecessary cast to char *.
44957         * lib/strnlen.c: Include <string.h> unconditionally.
44958         * lib/yesno.c (yesno): Define with a prototype.
44959
44960 2003-09-11  Bruno Haible  <bruno@clisp.org>
44961
44962         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
44963
44964 2003-09-10  Jim Meyering  <jim@meyering.net>
44965
44966         * lib/error.c: Correct indentation of cpp directives.
44967
44968 2003-09-10  Bruno Haible  <bruno@clisp.org>
44969
44970         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
44971         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
44972         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
44973         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
44974         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
44975         <stdlib.h> and <string.h> checks.
44976         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
44977         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
44978
44979 2003-09-10  Bruno Haible  <bruno@clisp.org>
44980
44981         * lib/strcspn.c: Include <string.h> unconditionally.
44982         * lib/strpbrk.c: Include <string.h> unconditionally.
44983         * lib/strstr.c: Include <string.h> unconditionally.
44984         * lib/unicodeio.c: Include <string.h> unconditionally.
44985         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
44986         * lib/unsetenv.c: Likewise.
44987         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
44988         * lib/yesno.c: Include <stdlib.h> unconditionally.
44989         (rpmatch): Add prototype.
44990
44991 2003-09-09  Paul Eggert  <eggert@twinsun.com>
44992
44993         More patches to assume C89 or better.
44994         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
44995         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
44996         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
44997         or for string.h.
44998         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
44999         stdlib.h.
45000         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
45001         C headers.
45002         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
45003         string.h.
45004         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
45005         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
45006         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
45007         or for string.h.
45008         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
45009         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
45010         C headers.
45011         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
45012         memcpy.
45013         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
45014         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
45015         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
45016         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
45017         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
45018         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
45019         string.h, free.
45020         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
45021         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
45022         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
45023         C headers, or for string.h.
45024         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
45025         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
45026         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
45027         headers, memory.h, stdlib.h, string.h, strings.h.
45028         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
45029         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
45030         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
45031         strchr.
45032         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
45033         headers, memory.h, string.h.
45034         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
45035         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
45036         free.
45037         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
45038         headers.
45039         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
45040         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
45041         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
45042         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
45043         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
45044
45045 2003-09-09  Paul Eggert  <eggert@twinsun.com>
45046
45047         More K&R removal.
45048
45049         * lib/acosl.c (main): Use a prototype.
45050         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
45051         tanl.c: Likewise.
45052
45053         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
45054
45055         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
45056         (getopt, etopt_long, getopt_long_only, _getopt_internal)
45057         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
45058         with a prototype.
45059         * lib/getopt.c (const): Remove macro.
45060         Include <string.h> unconditionally.
45061         (my_index): Remove; all uses changed to strchr.
45062         (strlen): Remove decl.
45063         (exchange): Remove forward decl; no longer needed.
45064         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
45065         Define with prototype.
45066         * lib/getopt1.c (const): Remove macro.
45067         (getopt_long, getopt_long_only, main): Define with prototype.
45068
45069         * lib/getugroups.c: Include <string.h> unconditionally.
45070
45071         * lib/getusershell.c: Include <stdlib.h> unconditionally.
45072         (getusershell, setusershell, endusershell, readname, main):
45073         Define with prototypes.
45074
45075         * lib/group-member.c: Include group-member.h first.
45076         Include <stdlib.h> unconditionally.
45077
45078         * lib/hard-locale.c: Include hard-locale.h first.
45079         Include <stdlib.h>, <string.h> unconditionally.
45080
45081         * lib/hash.c (free, malloc): Remove decls.
45082         Include <stdlib.h> unconditionally.
45083
45084         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
45085         (getenv): Do not declare.
45086
45087         * lib/idcache.c: Include <string.h> unconditionally.
45088
45089         * lib/long-options.c: Include long-options.h first, to test interface.
45090         Include <stdlib.h> unconditionally.
45091
45092         * lib/makepath.c: Include makepath.h first, to test interface.
45093         Include <stdlib.h> and <string.h> unconditionally.
45094
45095         * lib/linebuffer.c: Include <stdlib.h>.
45096         (free): Remove decl.
45097
45098         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
45099         stddef.h. rpl_malloc returns void *, not char *.
45100         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
45101         prototype.
45102
45103         * lib/md5.h: Include <limits.h> unconditionally.
45104         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
45105         (__P): Remove; all uses removed.
45106         * lib/md5.c: Include "md5.h" first.
45107         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
45108         md5_buffer, md5_process_bytes, md5_process_block):
45109         Define with prototypes.
45110         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
45111         * lib/sha.c: Include "sha.h" first.
45112         Include <stdlib.h>, <string.h> unconditionally.
45113
45114         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
45115         * lib/memcmp.c (__ptr_t): Likewise.
45116         * lib/memrchr.c (__ptr_t): Likewise.
45117         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
45118         Include <string.h> unconditionally.
45119         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
45120         * lib/memchr.c: Include <stdlib.h> unconditionally.
45121         * lib/memchr.c (LONG_MAX): Remove.
45122         * lib/memrchr.c (LONG_MAX): Likewise.
45123         * lib/memchr.c (__memchr): Define via a prototype.
45124         * lib/memrchr.c (__memrchr): Likewise.
45125         * lib/memcmp.c (__P): Remove, and remove all uses.
45126         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
45127         Remove forward decls; no longer needed.
45128         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
45129         Use types required by C89 in prototype.
45130
45131         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
45132         * lib/savedir.c: Likewise.
45133         * lib/mkdir.c (free): Remove decl.
45134         * lib/rmdir.c (rmdir): Define with a prototype.
45135         * lib/savedir.c: Include savedir.h first, to test interface.
45136
45137         * lib/mktime.c (STDC_HEADERS): Remove.
45138         Include <stdlib.h>, <string.h> unconditionally.
45139
45140         * lib/modechange.c: Include <stdlib.h> unconditionally.
45141         (malloc): Remove decl.
45142
45143         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
45144         (free): Remove decl.
45145
45146         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
45147         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
45148         (This type really should be intptr_t, but that's a C99ism.)
45149         (_obstack_memcpy): Remove: all uses changed to memcpy.
45150         Include <string.h> unconditionally.
45151         (struct obstack): Assume __STDC__ for types of members
45152         chunkfun, freefun, extra_arg.
45153         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
45154         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
45155         obstack_begin, obstack_specify_allocation,
45156         obstack_specify_allocation_with_arg, obstack_chunkfun,
45157         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
45158         Remove unprototyped decls and the macros that use them.
45159         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
45160         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
45161         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
45162         (defined __STDC__ && __STDC__)]:
45163         Remove nonprototyped code.
45164         Include <stdlib.h> unconditionally.
45165         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
45166         _obstack_allocated_p, _obstack_free, obstack_free,
45167         _obstack_memory_used, print_and_abort):
45168         Define using prototypes.
45169         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
45170         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
45171         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
45172         obstack_next_free, obstack_object_size, obstack_room) [0]:
45173         Remove unused, unprototyped code.
45174
45175         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
45176
45177         * lib/physmem.c (physmem_total, physmem_available, main): Define
45178         with prototypes.
45179
45180         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
45181         (main): Define with a prototype.
45182
45183         * lib/posixver.c (getenv): Remove decl.
45184
45185         * lib/putenv.c (malloc): Returns void *, not char *.
45186         Include <string.h> unconditionally.
45187         (strchr, memcpy, NULL): Do not define.
45188
45189         * lib/readtokens.c: Include readtokens.h first, to test interface.
45190         Include <stdlib.h>, <string.h> unconditionally.
45191         (init_tokenbuffer): Define with a prototype.
45192
45193         * lib/regex.c (PARAMS): Remove.  All uses removed.
45194         All uses of _RE_ARGS removed, too.
45195         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
45196         unconditionally.
45197         (bzero): Assume memset exists.
45198         (memcmp, memcpy, NULL): Remove.
45199         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
45200         char, or assignments to local vars of type signed char.
45201         (init_syntax_once, PREFIX(extract_number_and_incr),
45202         PREFIX(print_partial_compiled_pattern),
45203         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
45204         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
45205         PREFIX(regex_grow_registers), PREFIX(regex_compile),
45206         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
45207         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
45208         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
45209         wcs_compile_range, byte_compile_range, truncate_wchar,
45210         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
45211         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
45212         count_mbs_length, wcs_re_match_2_internal,
45213         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
45214         PREFIX(alt_match_null_string_p),
45215         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
45216         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
45217         regfree, PREFIX(extract_number)): Define with prototype.  Remove
45218         now-unnecessary declaration, if any.
45219         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
45220         regcomp, regexec):
45221         Remove now-unnecessary casts among pointer types.
45222         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
45223
45224         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
45225         (free): Remove decl.
45226
45227         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
45228
45229         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
45230         (free): Remove decl.
45231
45232         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
45233         * lib/xgetcwd.c: Likewise.
45234
45235         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
45236         (free): Remove decl.
45237
45238         * lib/strchrnul.c (strchrnul): Define with a prototype.
45239         Fix bug: c_in was not converted to char before searching.
45240
45241         The following changes are not K&R related:
45242
45243         * lib/group-member.h: Include <sys/types.h>, so that this file is
45244         self-contained.
45245         * lib/makepath.h: Likewise.
45246
45247         * lib/getusershell.c (readname, default_index, line_size, readname):
45248         Use size_t, not int, for sizes.
45249         (readname): If the size overflows, report an error instead of
45250         looping forever.
45251
45252 2003-09-09  Paul Eggert  <eggert@twinsun.com>
45253
45254         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
45255         libc.
45256
45257 2003-09-09  Paul Eggert  <eggert@twinsun.com>
45258
45259         * README: New section: portability guidelines.
45260
45261 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
45262
45263         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
45264         C89 spec.
45265
45266 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
45267
45268         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
45269
45270 2003-09-08  Paul Eggert  <eggert@twinsun.com>
45271
45272         Assume C89 or better; remove K&R cruft.
45273         A few of these changes were first proposed by Derek Robert Price
45274         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
45275
45276         * lib/addext.c: Include <string.h> unconditionally.
45277         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
45278         Don't declare getenv or malloc.
45279
45280         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
45281         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
45282         (NULL): Remove.
45283         (find_stack_direction, alloca): Use prototypes.
45284
45285         * lib/atexit.c (atexit): Define using a prototype.
45286
45287         * lib/basename.c, dirname.c, stripslash.c:
45288         Include <string.h> unconditionally.
45289
45290         * lib/bcopy.c: Include <stddef.h>.
45291         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
45292
45293         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
45294
45295         * lib/error.h (error, error_at_line, error_print_progname)
45296         [! (defined (__STDC__) && __STDC__)]: Remove decls.
45297         * lib/error.c: Include error.h first, to check interface.
45298         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
45299         (VA_START): Remove; all uses changeed to va_start.
45300         (exit, strerror): Remove decls.
45301         (error_print_progname): Prototype uncondionally.
45302         Don't include <errno.h>; no longer needed.
45303         (private_strerror): Remove.
45304         (error_tail): Always define.
45305         (error, error_at_line): Assume C89 or better; always use prototypes.
45306         * lib/fatal.c: Include "fatal.h" first, to test interface.
45307         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
45308         (VA_START): Remove; all uses changed to va_start.
45309         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
45310         this case.
45311         (exit): Remove decl.
45312         (fatal): Prototype unconditionally.  Assume va_start works.
45313         Abort at end, to pacify gcc.
45314
45315         * lib/euidaccess.c (main): Define with a prototype.
45316
45317         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
45318
45319         * lib/exitfail.c: Include <stdlib.h> unconditionally.
45320
45321         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
45322         prototypes.
45323         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
45324         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
45325         (getenv): Remove decl.
45326         (fnmatch): Define using a prototype.
45327         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
45328         (FCT): Define using a prototype.
45329
45330         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
45331
45332         * lib/gethostname.c: Include <stddef.h>.
45333         (gethostname): Define with prototype.  Length is size_t, not int.
45334
45335 2003-09-08  Paul Eggert  <eggert@twinsun.com>
45336
45337         Assume C89 or better; remove K&R cruft.
45338         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
45339         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
45340         string.h, getenv, malloc.
45341         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
45342         headers.
45343         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
45344         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
45345         do not check for strerror.
45346         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
45347         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
45348         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
45349         do not check for doprnt or vprintf.
45350         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
45351         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
45352
45353 2003-09-08  Paul Eggert  <eggert@twinsun.com>
45354
45355         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
45356         getversion.c should have been removed then, but was accidentally
45357         preserved.
45358
45359         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
45360         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
45361
45362 2003-09-08  Karl Berry  <karl@gnu.org>
45363
45364         * config/config.sub, config.guess, srclistvars.sh: update from savannah
45365                 config, forget about prep.
45366
45367         * config/depcomp, missing: update from automake.
45368
45369 2003-09-07  Paul Eggert  <eggert@twinsun.com>
45370
45371         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
45372         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
45373
45374 2003-09-07  Paul Eggert  <eggert@twinsun.com>
45375
45376         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
45377         copy_tm_result.  Bug reported by Simon Josefsson in
45378         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
45379
45380 2003-09-06  Paul Eggert  <eggert@twinsun.com>
45381
45382         * m4/time_r.m4: New file.
45383         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
45384         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
45385         is. Check for timegm declaration.
45386         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
45387         Do not check for gmtime_r.
45388         Replace mktime if __mktime_internal does not exist and if mktime
45389         hasn't been replaced already.
45390
45391 2003-09-06  Paul Eggert  <eggert@twinsun.com>
45392
45393         * lib/time_r.c, lib/time_r.h: New files.
45394
45395         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
45396         __localtime_r.
45397         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
45398         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
45399
45400         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
45401         __gmtime_r.
45402         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
45403         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
45404         Include <time_r.h>.
45405
45406         * lib/timegm.c: Switch to glibc implementation, with the following
45407         changes:
45408         [defined HAVE_CONFIG_H]: Include <config.h>.
45409         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
45410         (__mktime_internal) [!defined _LIBC]: New decl.
45411         (__gmtime_r) [!defined _LIBC]: New macro and function.
45412         (timegm): Use a prototype, since gnulib assumes C89.
45413         Do not bother declaring tmp to be const, as it's not really usefu.
45414         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
45415         (timegm): Declare only if HAVE_DECL_TIMEGM.
45416
45417 2003-09-06  Paul Eggert  <eggert@twinsun.com>
45418
45419         * MODULES.html.sh (func_all_modules): Add time_r.
45420         * modules/time_r: New file.
45421         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
45422         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
45423
45424 2003-09-03  Paul Eggert  <eggert@twinsun.com>
45425
45426         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
45427         Bug reported by Lute Kamstra in
45428         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
45429
45430         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
45431         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
45432         course with correspondingly smaller numbers for tomorrow and
45433         yesterday.  From Tadayoshi Funaba.  Originally installed into
45434         sh-utils on 1999-08-07, but the patch got lost (I guess during the
45435         coreutils merge?).
45436
45437 2003-08-31  Simon Josefsson  <jas@extundo.com>
45438
45439         * modules/timegm: New file.
45440         * MODULES.html.sh (func_all_modules): Add timegm.
45441
45442 2003-08-31  Simon Josefsson  <jas@extundo.com>
45443
45444         * m4/timegm.m4: New file.
45445
45446 2003-08-31  Simon Josefsson  <jas@extundo.com>
45447
45448         * lib/timegm.h: New file.
45449         * lib/timegm.c: New file.  Based on
45450         wget-1.8.2/src/http.c:mktime_from_utc.
45451
45452 2003-08-31  Karl Berry  <karl@gnu.org>
45453
45454         * lib/argp.h: update from libc.
45455
45456 2003-08-28  Bruno Haible  <bruno@clisp.org>
45457
45458         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
45459         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
45460         followed by '#define fnmatch fnmatch_posix' gives an error.
45461
45462 2003-08-28  Bruno Haible  <bruno@clisp.org>
45463
45464         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
45465         warning on QNX, which defines O_BINARY to 000000.
45466
45467 2003-08-27  Jim Meyering  <jim@meyering.net>
45468
45469         * m4/mkstemp.m4: Require that the system mkstemp be able to create
45470         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
45471         would fail after 32.  Reported by Danny Levinson.  Details here:
45472         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
45473
45474 2003-08-24  Bruno Haible  <bruno@clisp.org>
45475
45476         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
45477         MSVC7 <stdio.h> is included later.
45478
45479 2003-08-22  Simon Josefsson  <jas@extundo.com>
45480
45481         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
45482
45483 2003-08-20  Karl Berry  <karl@gnu.org>
45484
45485         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
45486
45487 2003-08-20  Bruno Haible  <bruno@clisp.org>
45488
45489         * modules/progname: New file.
45490         * MODULES.html.sh (func_all_modules): Add progname.
45491
45492 2003-08-20  Bruno Haible  <bruno@clisp.org>
45493
45494         * lib/progname.h: New file, from GNU gettext.
45495         * lib/progname.c: New file, from GNU gettext.
45496         * lib/progreloc.c: New file, from GNU gettext.
45497
45498 2003-08-19  Jim Meyering  <jim@meyering.net>
45499
45500         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
45501         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
45502
45503 2003-08-19  Bruno Haible  <bruno@clisp.org>
45504
45505         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
45506         more.
45507
45508 2003-08-19  Bruno Haible  <bruno@clisp.org>
45509
45510         * lib/xstrdup.c: Assume <string.h> exists.
45511
45512 2003-08-18  Paul Eggert  <eggert@twinsun.com>
45513
45514         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
45515         in makefile rules.
45516
45517 2003-08-18  Jim Meyering  <jim@meyering.net>
45518
45519         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
45520         * m4/lib-ld.m4: Likewise.
45521
45522 2003-08-18  Jim Meyering  <jim@meyering.net>
45523
45524         * lib/setenv.h: Indent nested cpp directive.
45525         * lib/vasnprintf.c: Remove trailing blanks.
45526
45527 2003-08-17  Simon Josefsson  <jas@extundo.com>
45528
45529         * modules/xstrndup: New file.
45530         * MODULES.html.sh (func_all_modules): Add xstrndup.
45531
45532 2003-08-17  Simon Josefsson  <jas@extundo.com>
45533
45534         * modules/argp: Fix autoconf macro name. Add more dependencies.
45535
45536 2003-08-17  Simon Josefsson  <jas@extundo.com>
45537
45538         * m4/xstrndup.m4: New file.
45539
45540 2003-08-17  Simon Josefsson  <jas@extundo.com>
45541
45542         * m4/argp.m4: New file.
45543
45544 2003-08-17  Simon Josefsson  <jas@extundo.com>
45545             Bruno Haible  <bruno@clisp.org>
45546
45547         * lib/xstrndup.h: New file.
45548         * lib/xstrndup.c: New file.
45549
45550 2003-08-17  Bruno Haible  <bruno@clisp.org>
45551
45552         * modules/strndup (Files, Include): Add lib/strndup.h.
45553
45554 2003-08-17  Bruno Haible  <bruno@clisp.org>
45555
45556         * modules/euidaccess (Files): Add lib/euidaccess.h.
45557
45558 2003-08-17  Bruno Haible  <bruno@clisp.org>
45559
45560         * lib/strndup.h: New file.
45561
45562 2003-08-17  Bruno Haible  <bruno@clisp.org>
45563
45564         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
45565         like AC_GNU_SOURCE.
45566         * modules/extensions (configure.ac): Comment out the invocation of
45567         gl_USE_SYSTEM_EXTENSIONS.
45568
45569 2003-08-16  Paul Eggert  <eggert@twinsun.com>
45570
45571         Merges from coreutils, etc.
45572         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
45573         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
45574         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
45575         fixing a typo.
45576         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
45577         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
45578
45579 2003-08-16  Paul Eggert  <eggert@twinsun.com>
45580
45581         Document merge from coreutils.
45582         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
45583         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
45584         * modules/utime: Add m4/utimes-null.m4.
45585
45586 2003-08-16  Paul Eggert  <eggert@twinsun.com>
45587
45588         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
45589         space, undoing this 2003-08-12 change:
45590         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
45591
45592 2003-08-16  Paul Eggert  <eggert@twinsun.com>
45593
45594         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
45595         strtoul.c from libc, undoing this 2003-08-12 change:
45596         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
45597
45598 2003-08-16  Jim Meyering  <jim@meyering.net>
45599
45600         Merges from coreutils.
45601         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
45602         prefix.  Adjust cache variables similarly.  Create 500 rather than
45603         just 300 files, to exercise bug on Darwin6.5, too.
45604         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
45605         $missing_dir.
45606         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
45607         AM_SYS_POSIX_TERMIOS.
45608         Reported by mkc@mathdogs.com.
45609         Also change use of $am_cv_sys_posix_termios
45610         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
45611         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
45612         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
45613         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
45614         in /proc/mounts until it finds one with matching device number.  This
45615         is unnecessary when the FILE argument *is* a mount point.  No stat call
45616         is necessary in that case.  So, disable the statvfs-testing code on
45617         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
45618         as RedHat bug# 84846.
45619         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
45620         to 1MB, so as not to render systems with no stack size limit (e.g.,
45621         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
45622         Include <unistd.h>.  On some systems,
45623         it is required for the definition of _SC_PAGESIZE.
45624
45625 2003-08-16  Jim Meyering  <jim@meyering.net>
45626
45627         Merge from coreutils.
45628         * lib/xstrtoimax.c: #else #if -> #elif.
45629         * lib/xstrtoumax.c: Likewise.
45630
45631 2003-08-16  Jim Meyering  <jim@meyering.net>
45632
45633         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
45634         * m4/utimes.m4: Removed.
45635         * m4/utimes-null.m4: Renamed from utimes.m4.
45636
45637         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
45638         to 1MB, so as not to render systems with no stack size limit (e.g.,
45639         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
45640         Include <unistd.h>.  On some systems,
45641         it is required for the definition of _SC_PAGESIZE.
45642
45643 2003-08-16  Jim Meyering  <jim@meyering.net>
45644         and Paul Eggert  <eggert@cs.ucla.edu>
45645
45646         Merges from coreutils, etc.
45647
45648         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
45649         using the latest version from cvs.  This avoids problems with #line
45650         directives using a vendor (Sun) compiler.
45651         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
45652         Don't set GETGROUPS_LIB here; now it's
45653         done via getgroups.m4's wrapper function.
45654         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
45655         rather than just in sh-util/configure.in, so that the
45656         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
45657         same.
45658         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
45659         AC_FUNC_GETLOADAVG where to find getloadavg.c.
45660         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
45661         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
45662         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
45663         Remove code that is now done by the newly-required macros.
45664         Append $(EXEEXT) to DF_PROG.
45665         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
45666         Do not invoke or require the following here,
45667         since prereq.m4 or some gnulib .m4 now does this for us:
45668         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
45669         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
45670         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
45671         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
45672         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
45673         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
45674         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
45675         AC_FUNC_OBSTACK.
45676         Do not replace the following functions, as this is now the job
45677         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
45678         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
45679         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
45680         atexit getpass, strdup, getpagesize.
45681         Replace 'raise'.
45682         Do not check for the following functions, as this is now the job
45683         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
45684         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
45685         setregid.
45686         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
45687         Check for sys/sysctl.h.
45688         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
45689         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
45690         of checking for ssize_t ourselves.
45691
45692         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
45693         Require every macro that gnulib/modules/* suggests for us.
45694         (jm_PREREQ_ADDEXT): New macro.
45695         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
45696         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
45697
45698         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
45699         (gl_PHYSMEM): Use it.
45700         Also check for `table' function.
45701         Check for new headers and functions.
45702         Add check for sys/sysmp.h.
45703         With suggestions from Kaveh Ghazi.
45704         Ignore headers that are present but cannot be compiled.  This
45705         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
45706         C 5.4.
45707
45708 2003-08-15  Paul Eggert  <eggert@twinsun.com>
45709
45710         Document merge from coreutils.
45711         * modules/userspec: Depend on posixver.
45712         * modules/strftime: Depend on tzset.
45713
45714 2003-08-15  Paul Eggert  <eggert@twinsun.com>
45715
45716         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
45717         rather than tab, after '#' in shell-script copyright notices.
45718         Suggested by Bruno Haible.
45719
45720 2003-08-15  Paul Eggert  <eggert@twinsun.com>
45721
45722         * config/srclist-update: Use three spaces, rather than tab, after '#'
45723         in shell-script copyright notices.  Suggested by Bruno Haible.
45724         Remove unnecessary parenthesization in regular expression.
45725
45726 2003-08-15  Jim Meyering  <jim@meyering.net>
45727
45728         Merge from coreutils.
45729         * lib/xgethostname.c: Include <stdlib.h>.
45730         (xghostname): Don't exit for anything other than memory-related
45731         failure; just return NULL.
45732         * lib/userspec.c: Include "posixver.h".
45733         (parse_user_spec): Accept `.' as a separator only
45734         in pre-POSIX-200112 mode.
45735         * lib/strtoimax.c: Use #elif rather than #else #if.
45736         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
45737         Remove function, now that we can rely on a working tzset function.
45738         [!_LIBC]: Ensure that the required autoconf test has been run.
45739         [!defined _NL_CURRENT && HAVE_STRFTIME]:
45740         Use underlying_strftime for %r.
45741         * lib/sha.c: Merge in some clean-up and optimization changes from
45742         glibc.
45743         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
45744         Ensure that it is a multiple of 64.
45745         Rearrange loop exit tests so as to avoid performing an
45746         additional fread after encountering an error or EOF.
45747         * lib/realloc.c: Update copyright date.
45748
45749 2003-08-15  Jim Meyering  <jim@meyering.net>
45750         and Paul Eggert  <eggert@twinsun.com>
45751
45752         Merge from coreutils.
45753         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
45754         member but strut utmpx does not.  Needed for AIX 4.3.3.
45755         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
45756
45757 2003-08-15  Jim Meyering  <jim@meyering.net>
45758         and Paul Eggert  <eggert@cs.ucla.edu>
45759
45760         Merges from coreutils, etc.
45761         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
45762         Require gl_FUNC_TZSET_CLOBBER.
45763         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
45764         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
45765         members.
45766
45767 2003-08-14  Paul Eggert  <eggert@twinsun.com>
45768
45769         Help the merge from coreutils.
45770         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
45771         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
45772         * m4/tzset.m4: Use it too.
45773
45774 2003-08-14  Paul Eggert  <eggert@twinsun.com>
45775
45776         * modules/tzset: New file.
45777
45778 2003-08-14  Jim Meyering  <jim@meyering.net>
45779
45780         Merges from coreutils.
45781         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
45782         variable names, rather than @FNMATCH_H@.
45783         * modules/alloca: Likewise for $(ALLOCA_H).
45784
45785         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
45786         the three copies of the literal target, `fnmatch.h'.
45787         * modules/alloca (alloca.h): Likewise.
45788
45789 2003-08-14  Jim Meyering  <jim@meyering.net>
45790
45791         Merge from coreutils.
45792         * m4/tzset.m4: New file.
45793         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
45794         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
45795         otherwise, AIX 5.1 systems would end up using the latter.
45796         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
45797         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
45798         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
45799         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
45800
45801 2003-08-14  Jim Meyering  <jim@meyering.net>
45802
45803         Merge from coreutils.
45804         * lib/obstack.h: Whitespace changes.
45805         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
45806         and xcalloc return values.
45807         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
45808         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
45809         hang on OSF/1 5.1 for DIR on both local and remote file systems.
45810         Reported by (and fix confirmed by) Nelson H. F. Beebe.
45811         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
45812         error from mntctl.
45813         Use mntctl's return value to drive the entry-processing loop, since
45814         we can't rely on the value of the vmt_length member in the last
45815         entry.  On some systems doing so could result in exhausting
45816         virtual memory.  Based in part on a patch from Mike Jetzer.
45817
45818 2003-08-14  Jim Meyering  <jim@meyering.net>
45819         and Paul Eggert  <eggert@twinsun.com>
45820
45821         Merges from coreutils, plus other fixes.
45822         * lib/physmem.c: Merge in portability changes from gcc/libiberty
45823         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
45824         for credits and details.  Thanks to Kaveh Ghazi for helping
45825         to keep these files in sync.
45826         (ARRAY_SIZE): Define it.
45827         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
45828         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
45829         (memcasecmp): Don't assume size_t fits in unsigned int.
45830         Remove casts and duplicate code.
45831         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
45832         (memcpy): Remove definition.
45833         Merge in some clean-up and optimization changes from glibc.
45834         [BLOCKSIZE]: Move definition to top of file.
45835         Ensure that it is a multiple of 64.
45836         Rearrange loop exit tests so as to avoid performing an
45837         additional fread after encountering an error or EOF.
45838         * lib/md5.h (md5_uintptr): Define.
45839         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
45840         return to the initial working directory.  Preserve errno
45841         for caller.
45842         * lib/idcache.c: Include "xalloc.h".
45843         (xmalloc, xrealloc): Remove decls.
45844         (getuser): Remove casts no longer required in C89.
45845         * lib/human.c: Include stdio.h, for sprintf.
45846         * lib/group-member.c: Include "xalloc.h".
45847         (xmalloc, xrealloc): Remove decls.
45848         (get_group_info): Remove casts no longer required in C89.
45849         * lib/getusershell.c (readname): Remove casts no longer required in
45850         C89.
45851         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
45852         * lib/getline.c: Whitespace fix, from coreutils.
45853
45854 2003-08-13  Paul Eggert  <eggert@twinsun.com>
45855
45856         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
45857         Check for isascii.
45858
45859         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
45860         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
45861         Undo previous (whitespace-only) change.
45862
45863 2003-08-13  Paul Eggert  <eggert@twinsun.com>
45864
45865         * lib/exclude.c: Include <ctype.h>
45866         (IN_CTYPE_DOMAIN): New macro.
45867         (is_space): New fn.
45868         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
45869         and empty lines.
45870
45871         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
45872         Undo previous (whitespace-only) change.
45873
45874 2003-08-13  Paul Eggert  <eggert@twinsun.com>
45875
45876         * config/srclist-update: Change update back to the old behavior,
45877         leaving whitespace alone.  Use one 'sed' command rather than a
45878         pipeline.
45879         (fixlicense): Now a variable, not a function.
45880         (remove_trailing_blanks): Remove.
45881         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
45882         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
45883         Undo previous (whitespace-only) change.
45884
45885 2003-08-12  Paul Eggert  <eggert@twinsun.com>
45886
45887         Merge from coreutils.
45888         * modules/euidaccess: Add lib_SOURCES, include for new
45889         file euidaccess.h
45890
45891 2003-08-12  Paul Eggert  <eggert@twinsun.com>
45892
45893         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
45894         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
45895         Normalize leading white space and remove trailing white space.
45896
45897         Merge from coreutils
45898         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
45899
45900         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
45901         0.12.1.  These files are now being upgraded automatically by
45902         ../config/srclist-update.
45903
45904 2003-08-12  Paul Eggert  <eggert@twinsun.com>
45905
45906         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
45907         Normalize leading white space and remove trailing white space.
45908         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
45909         notice, as per ../config/srclist-update.
45910
45911         Merge from coreutils.
45912         * lib/euidaccess.h: New file.
45913         * lib/euidaccess.c: Include it.
45914         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
45915         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
45916         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
45917
45918 2003-08-12  Paul Eggert  <eggert@twinsun.com>
45919
45920         * config/srclist-update: Add copyright notice.
45921         (remove_id_lines, remove_trailing_blanks): New constants.
45922         (fixfile): Use them to normalize spacing a bit in copied files.
45923         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
45924         Normalize leading white space and remove trailing white space.
45925
45926         * config/texinfo.tex: Sync with texinfo.
45927
45928         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
45929         strtoul.c from libc, to merge coreutils whitespace changes.
45930
45931         * config/srclist.txt: Get the following m4 files from gettext:
45932         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
45933         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
45934         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
45935         wint_t.m4.
45936
45937 2003-08-12  Karl Berry  <karl@gnu.org>
45938
45939         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
45940         been made.
45941
45942 2003-08-11  Paul Eggert  <eggert@twinsun.com>
45943
45944         * modules/gnu-source, m4/gnu-source.m4:
45945         Remove; we're assuming Autoconf 2.54 or later now.
45946         Suggested by Bruno Haible.
45947         * MODULES.html.sh (func_all_modules): Remove gnu-source.
45948
45949 2003-08-11  Bruno Haible  <bruno@clisp.org>
45950
45951         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
45952
45953 2003-08-11  Bruno Haible  <bruno@clisp.org>
45954
45955         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
45956         (vasnprintf): Use it instead of wcslen.
45957
45958 2003-08-11  Bruno Haible  <bruno@clisp.org>
45959
45960         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
45961         value to ensure that _Bool promotes to int. Use #define for _Bool when
45962         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
45963
45964 2003-08-10  Karl Berry  <karl@gnu.org>
45965
45966         * lib/regex.h: update from libc (whitespace fix).
45967
45968 2003-08-09  Paul Eggert  <eggert@twinsun.com>
45969
45970         Merge some files from coreutils.  These changes were
45971         originally made by Jim Meyering.
45972         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
45973         many older Unixes require this.
45974         * lib/alloca.c (alloca): Remove cast to argument of free;
45975         no longer needed in C89.
45976         * lib/alloca_.h, regex.h: Fix white space to match
45977         what GNU indent does.
45978
45979 2003-08-09  Paul Eggert  <eggert@twinsun.com>
45980
45981         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
45982         apparently Emacs's Unicode mode got confused before my 2003-08-05
45983         checkin.
45984
45985 2003-08-08  Paul Eggert  <eggert@twinsun.com>
45986
45987         * m4/extensions.m4: New file.
45988         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
45989         Require gl_USE_SYSTEM_EXTENSIONS.
45990         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
45991         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
45992
45993 2003-08-08  Paul Eggert  <eggert@twinsun.com>
45994
45995         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
45996         * modules/extensions, modules/gnu-source: New files.
45997         * modules/timespec, modules/unlocked-io: Depend on extensions.
45998
45999 2003-08-07  Paul Eggert  <eggert@twinsun.com>
46000
46001         * modules/restrict: New file.
46002         * MODULES.html.sh (func_all_modules): Add restrict.
46003         * modules/regex: Depend on restrict.
46004
46005 2003-08-07  Paul Eggert  <eggert@twinsun.com>
46006
46007         * m4/restrict.m4: New file.
46008         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
46009
46010 2003-08-07  Bruno Haible  <bruno@clisp.org>
46011
46012         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
46013         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
46014
46015 2003-08-07  Bruno Haible  <bruno@clisp.org>
46016
46017         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
46018         makes the module 'getndelim2' compatible with the module 'getline'.
46019
46020 2003-08-05  Paul Eggert  <eggert@twinsun.com>
46021
46022         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
46023         byte with "\201" to avoid glitches when editing that source file
46024         with multi-gnome-terminal.
46025
46026 2003-08-05  Paul Eggert  <eggert@twinsun.com>
46027
46028         * lib/bumpalloc.h: Remove.
46029
46030 2003-08-05  Paul Eggert  <eggert@twinsun.com>
46031
46032         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
46033         * modules/bumpalloc: Remove.
46034
46035 2003-08-04  Paul Eggert  <eggert@twinsun.com>
46036
46037         * lib/getloadavg.c: Change copyright notice and spacing to conform to
46038         GNU coding style.
46039
46040         Merge from coreutils.
46041         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
46042         1. From glibc.
46043         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
46044         from Karl Berry, implemented by Jim Meyering.
46045         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
46046         from Dmitry V. Levin.
46047         Remove anachronistic cast of xrealloc.
46048         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
46049         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
46050         type. Otherwise, it wouldn't compile with at least /bin/cc on
46051         ymp-cray-unicos9.0.2.X.
46052         Combine two mostly-identical uses of alloca into one.
46053         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
46054
46055 2003-08-04  Dave Love  <d.love@dl.ac.uk>
46056
46057         [From Emacs.]
46058
46059         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
46060         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
46061         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
46062         obsolete NLIST_NAME_UNION.
46063         [__GNU__]: Undef BSD and FSCALE.
46064         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
46065
46066 2003-08-03  Paul Eggert  <eggert@twinsun.com>
46067
46068         * lib/stdbool_.h (_Bool): Make it signed char, instead of
46069         an enum type, so that it's guaranteed to promote to int.  See:
46070         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
46071
46072 2003-08-03  Karl Berry  <karl@gnu.org>
46073
46074         * config/depcomp: update from automake.
46075
46076 2003-07-31  Paul Eggert  <eggert@twinsun.com>
46077
46078         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
46079         (strerror): Don't assume that a printable int fits in 14 bytes.
46080
46081 2003-07-31  Bruno Haible  <bruno@clisp.org>
46082
46083         * modules/getpass-gnu: New file.
46084         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
46085
46086 2003-07-31  Bruno Haible  <bruno@clisp.org>
46087
46088         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
46089
46090 2003-07-24  Karl Berry  <karl@gnu.org>
46091
46092         * config/missing: update from automake.
46093
46094 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
46095             Bruno Haible  <bruno@clisp.org>
46096
46097         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
46098         * lib/getline.c (getline, getdelim): Likewise.
46099         Remove _GNU_SOURCE define; now it's defined in config.h through
46100         m4/getline.m4.
46101
46102 2003-07-23  Karl Berry  <karl@gnu.org>
46103
46104         * config/config.sub: update from prep.
46105
46106 2003-07-22  Paul Eggert  <eggert@twinsun.com>
46107
46108         * modules/xalloc (Depends-on): Add exitfail.
46109         * modules/xmemcoll: Likewise.
46110
46111 2003-07-22  Paul Eggert  <eggert@twinsun.com>
46112
46113         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
46114         over-parenthesization in macros.
46115
46116         Sync with coreutils.
46117
46118         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
46119         required by C99.
46120
46121         Use `exit_failure' for xalloc and xmemcoll instead of their own
46122         private exit-failure variables.
46123         * lib/xalloc.h (xalloc_exit_failure): Remove.
46124         * lib/xmalloc.c: Likewise.  Include exitfail.h.
46125         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
46126         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
46127         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
46128         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
46129
46130 2003-07-20  Jim Meyering  <jim@meyering.net>
46131
46132         * modules/closeout (Depends-on): Add exitfail.
46133         Suggestion from Bruno Haible.
46134
46135 2003-07-19  Karl Berry  <karl@gnu.org>
46136
46137         * config/config.sub: update from prep.
46138
46139 2003-07-18  Paul Eggert  <eggert@twinsun.com>
46140
46141         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
46142         Remove.
46143         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
46144         to test that it can stand by itself.  Include "exitfail.h".
46145         Clients should set exit_failure instead.
46146         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
46147
46148 2003-07-18  Bruno Haible  <bruno@clisp.org>
46149
46150         * modules/getndelim2: New file.
46151         * modules/getline: Share files with module getndelim2.
46152         * modules/getnline: Depend on getndelim2 instead of sharing files with
46153         it. Add getnline.c to lib_SOURCES.
46154         * MODULES.html.sh (func_all_modules): Add getndelim2.
46155
46156 2003-07-18  Bruno Haible  <bruno@clisp.org>
46157
46158         * m4/getndelim2.m4: New file.
46159         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
46160         invoke gl_PREREQ_GETNDELIM2.
46161         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
46162         gl_PREREQ_GETNDELIM2.
46163         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
46164         gl_GETNDELIM2.
46165
46166 2003-07-18  Bruno Haible  <bruno@clisp.org>
46167
46168         * lib/getndelim2.h: New file.
46169         * lib/getndelim2.c: Make into a module of its own. Include config.h,
46170         getndelim2.h.
46171         (getndelim2): Make non-static. Change return type to ssize_t.
46172         * lib/getline.h: Change argument names.
46173         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
46174         * lib/getnline.c: Include getndelim2.h.
46175
46176 2003-07-18  Andreas Schwab  <schwab@suse.de>
46177
46178         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
46179
46180 2003-07-17  Karl Berry  <karl@gnu.org>
46181
46182         * config/config.sub: update from prep.
46183
46184 2003-07-17  Bruno Haible  <bruno@clisp.org>
46185
46186         * modules/getnline: New file.
46187         * modules/getline: Add lib/getndelim2.c to source file list.
46188         * MODULES.html.sh (func_all_modules): Add getnline.
46189
46190 2003-07-17  Bruno Haible  <bruno@clisp.org>
46191
46192         * m4/getnline.m4: New file.
46193
46194 2003-07-17  Bruno Haible  <bruno@clisp.org>
46195
46196         * m4/Makefile.am.in: Remove file.
46197         * m4/Makefile.am: Remove file.
46198         * m4/Makefile.in: Remove file.
46199
46200 2003-07-17  Bruno Haible  <bruno@clisp.org>
46201
46202         * lib/getnline.h: New file.
46203         * lib/getnline.c: New file.
46204         * lib/getndelim2.c: New file, extracted from getline.c.
46205         (getndelim2): Renamed from getdelim2, with added nmax argument.
46206         * lib/getline.c: Include getndelim2.c.
46207         (getdelim2): Moved out to getndelim2.c.
46208         (getline, getdelim): Update.
46209
46210 2003-07-17  Bruno Haible  <bruno@clisp.org>
46211
46212         * lib/Makefile.am: Remove file.
46213         * lib/Makefile.in: Remove file.
46214
46215 2003-07-17  Bruno Haible  <bruno@clisp.org>
46216
46217         * configure.in: Remove file.
46218         * Makefile.in: Remove file.
46219
46220 2003-07-17  Bruno Haible  <bruno@clisp.org>
46221
46222         * MODULES.html.sh: Put the </BODY> right before </HTML>.
46223
46224 2003-07-16  Karl Berry  <karl@gnu.org>
46225
46226         * config/srclist-update: was running fixlicense twice, which caused
46227                 texinfo.tex to be nullified for some reason.  Simplify,
46228                 $gplsrc is no longer needed as far as I can see?
46229
46230 2003-07-16  Jim Meyering  <jim@meyering.net>
46231
46232         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
46233
46234 2003-07-15  Paul Eggert  <eggert@twinsun.com>
46235
46236         * config/srclist.txt: Get the following files from gettext-runtime/intl
46237         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
46238         ref-del.sin.  From Bruno Haible.
46239         * config/srclist-update (fixfile): Change grep pattern again, since the
46240         previous fix didn't work (there was another trailing $).  Use
46241         '[$]' to escape the $s.
46242
46243 2003-07-15  Karl Berry  <karl@gnu.org>
46244
46245         * lib/vasnprintf.c: update from gettext.
46246
46247 2003-07-15  Karl Berry  <karl@gnu.org>
46248
46249         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
46250         gets expanded when surrounded by '$'.
46251
46252 2003-07-15  Jim Meyering  <jim@meyering.net>
46253
46254         * modules/save-cwd: Don't depend on error.  From Derek Price.
46255
46256 2003-07-15  Jim Meyering  <jim@meyering.net>
46257
46258         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
46259
46260 2003-07-14  Simon Josefsson  <jas@extundo.com>
46261
46262         * modules/mempcpy: New file.
46263         * MODULES.html.sh (func_all_modules): Add mempcpy.
46264
46265 2003-07-14  Simon Josefsson  <jas@extundo.com>
46266
46267         * m4/mempcpy.m4: New file.
46268
46269 2003-07-14  Simon Josefsson  <jas@extundo.com>
46270
46271         * lib/mempcpy.h: New file.
46272         * lib/mempcpy.c: New file.
46273
46274 2003-07-14  Paul Eggert  <eggert@twinsun.com>
46275
46276         * modules/getdate, modules/posixtm: Depend on mktime.
46277
46278 2003-07-14  Paul Eggert  <eggert@twinsun.com>
46279
46280         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
46281         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
46282         unicodeio.c, unicodeio.h, unlocked-io.h:
46283         Switch from LGPL to GPL.
46284
46285 2003-07-14  Paul Eggert  <eggert@twinsun.com>
46286
46287         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
46288         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
46289         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
46290         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
46291         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
46292         updated automatically by ../config/srclist-update.  This changes
46293         their license from LPGL to GPL.
46294
46295 2003-07-14  Paul Eggert  <eggert@twinsun.com>
46296
46297         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
46298         assumed to refer to the root of the most recent stable gettext version.
46299         * config/srclistvars.sh: Add defaults for eggert.
46300         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
46301         Match "This program" as well as "The program".  This is needed
46302         for gettext.
46303
46304 2003-07-14  Jim Meyering  <jim@meyering.net>
46305
46306         Don't emit diagnostics.  Let callers do that.
46307         * lib/save-cwd.c: Don't include "error.h".
46308         (save_cwd): Don't call error.  Ensure that errno is valid
46309         when returning nonzero.
46310
46311         * lib/save-cwd.h (restore_cwd): Update prototype.
46312         * lib/save-cwd.c (restore_cwd): Remove two parameters.
46313         Simplify.  Don't call error upon failure.  Let callers do that.
46314         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
46315         when auditing is enabled.  But don't bother updating the #if.
46316
46317 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
46318
46319         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
46320         it breaks C++ compilation.
46321         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
46322
46323 2003-07-10  Simon Josefsson  <jas@extundo.com>
46324
46325         * modules/strchrnul (Makefile.am): Add strchrnul.h.
46326
46327 2003-07-10  Jim Meyering  <jim@meyering.net>
46328
46329         * m4/clock_time.m4: Remove trailing blank.
46330         * m4/intmax_t.m4: Likewise.
46331
46332 2003-07-10  Jim Meyering  <jim@meyering.net>
46333
46334         * lib/vasnprintf.c: Remove trailing blanks.
46335         Make cpp indentation consistent.
46336
46337 2003-07-09  Paul Eggert  <eggert@twinsun.com>
46338
46339         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
46340         posixver.c, strftime.c, strnlen.c, strverscmp.c:
46341         Switch from LGPL to GPL.
46342
46343 2003-07-09  Paul Eggert  <eggert@twinsun.com>
46344
46345         * config/srclist.txt: Sort sublists.  Add
46346         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
46347         that differ from gnulib for one reason or another; we'd like this list
46348         to be smaller but for now let's document what we have.
46349
46350 2003-07-08  Paul Eggert  <eggert@twinsun.com>
46351
46352         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
46353         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
46354         and sweeter "eval x=$x".
46355         * config/srclist.txt: Get lib/argp* from glibc.
46356
46357 2003-07-07  Paul Eggert  <eggert@twinsun.com>
46358
46359         * lib/mktime.c: Fix some boundary cases and remove need for floating
46360         point.
46361
46362         Issue a compile-time diagnostic if time_t is floating point, or if
46363         two's complement arithmetic is not in effect, or if arithmetic
46364         right shift does not propagate the sign.  These assumptions were
46365         all in the original code but they weren't checked.
46366
46367         (TIME_T_MIDPOINT, verify): New macros.
46368         (__isleap): Remove; it has integer overflow problems.
46369         (leapyear): New function, without those problems.
46370         (ydhms_tm_diff): Remove; splitting into two parts.
46371         (ydhms_diff): New function, containing the arithmetic part of
46372         the old ydhms_tm_diff function.  Issue a compile-time
46373         diagnostic if we are not using C99 integer division.
46374         Avoid casts when possible.
46375         (guess_time_tm): New function, containing the checking part of
46376         the old ydhms_tm_diff function.  Return the new value, rather than
46377         the difference between it and the old.  Accept a new argument T
46378         so that *T specifies the old value.  Check for overflow in the result.
46379
46380         (__mktime_internal): Use a time_t offset, not a long int offset.
46381         This undoes the 2003-06-04 change, which is no longer needed now
46382         that we have better overflow checking.
46383         (localtime_offset): Likewise.
46384
46385         (__mktime_internal): Avoid harmful overflow on hosts where time_t
46386         and long are 64-bit but int is only 32-bit.
46387         (ydhms_diff): Use long int to store year1 and yday1.
46388         Issue a compile-time diagnostic if long int is not wide enough.
46389
46390         (__mktime_internal): Use long int to store adjusted year and yday.
46391         Use plain C rather than preprocessor commands, if that doesn't
46392         affect efficiency.
46393         Check for overflow (and try to repair) after each probe
46394         rather than checking only at the very end.  This avoids some bugs
46395         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
46396         does not equal GMT offset at maximum time).
46397         Use integer to check for overflow rather than floating point; this
46398         is more portable to non-IEEE hosts, and is a tad faster.
46399         When we detect that we are oscillating between two values,
46400         don't check whether tm_isdst has the requested value, since
46401         we already know the answer.  When tm_isdst has the wrong value,
46402         use a different heuristic to find the right one, based on the
46403         extreme values actually observed in practice in tz2003a,
46404         rather than the (overly optimistic) "previous 3 calendar quarters".
46405
46406         (not_equal_tm, print_tm, check_result): Use "const T" rather than
46407         "T const" to accommodate glibc style.
46408         (check_result): Use less-confusing report format.  "long" -> "long int.
46409         (main): Likewise.
46410         Don't loop if the iteration overflows time_t.
46411         Allow a negative step in the iteration.
46412
46413 2003-07-06  Karl Berry  <karl@gnu.org>
46414
46415         * config/depcomp: update from automake.
46416         * config/config.sub: update from prep.
46417
46418 2003-07-03  Karl Berry  <karl@gnu.org>
46419
46420         * config/config.guess: update from prep.
46421
46422 2003-07-01  Paul Eggert  <eggert@twinsun.com>
46423
46424         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
46425         xreadlink.c now includes it unconditionally.
46426
46427 2003-07-01  Paul Eggert  <eggert@twinsun.com>
46428
46429         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
46430         having it depend on HAVE_SYS_TYPES_H.
46431
46432 2003-07-01  Bruno Haible  <bruno@clisp.org>
46433
46434         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
46435         <sys/types.h> should be sufficient.
46436         Reported by Paul Eggert.
46437
46438 2003-06-26  Karl Berry  <karl@gnu.org>
46439
46440         * config/depcomp: update from automake.
46441
46442 2003-06-26  Bruno Haible  <bruno@clisp.org>
46443
46444         * modules/human: Depend on module stdbool.
46445
46446 2003-06-25  Bruno Haible  <bruno@clisp.org>
46447
46448         * modules/readlink: New file.
46449         * modules/xreadlink: Depend on it.
46450         * MODULES.html.sh (func_all_modules): Add readlink.
46451
46452 2003-06-25  Bruno Haible  <bruno@clisp.org>
46453
46454         * m4/readlink.m4: New file.
46455
46456 2003-06-25  Bruno Haible  <bruno@clisp.org>
46457
46458         * lib/readlink.c: New file.
46459
46460 2003-06-22  Karl Berry  <karl@gnu.org>
46461
46462         * config/srclist.txt: update mkinstalldirs from automake.
46463         * config/mkinstalldirs: update.
46464
46465 2003-06-22  Bruno Haible  <bruno@clisp.org>
46466
46467         Portability to mingw32.
46468         * m4/ssize_t.m4: New file, from GNU gettext.
46469         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
46470         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
46471
46472 2003-06-22  Bruno Haible  <bruno@clisp.org>
46473
46474         * modules/safe-read: Add m4/ssize_t.m4.
46475         * modules/xreadlink: Add m4/ssize_t.m4.
46476
46477 2003-06-20  Bruno Haible  <bruno@clisp.org>
46478
46479         Assume C89, so PARAMS isn't needed.
46480         * lib/unicodeio.h (PARAMS): Remove.
46481         * lib/unicodeio.c: Don't use PARAMS.
46482
46483 2003-06-18  Karl Berry  <karl@gnu.org>
46484
46485         * config/config.{guess,sub}: update from prep.
46486
46487 2003-06-18  Jim Meyering  <jim@meyering.net>
46488
46489         Merge changes from coreutils.
46490         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
46491         Remove explicit declarations of xmalloc and realloc.
46492         Include xalloc.h.
46493         (read_utmp): Remove anachronistic cast of xmalloc.
46494
46495 2003-06-17  Paul Eggert  <eggert@twinsun.com>
46496
46497         Assume C89, so PARAMS isn't needed.
46498         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
46499         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
46500         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
46501         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
46502         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
46503         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
46504         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
46505         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
46506         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
46507         lib/xstrtod.h, lib/xstrtol.h: Likewise.
46508         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
46509         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
46510         no longer needed. Anyway, config.h should always be included before any
46511         other file.
46512
46513 2003-06-11  Simon Josefsson  <jas@extundo.com>
46514
46515         * modules/sysexits: New file.
46516         * MODULES.html.sh (func_all_modules): Add sysexits.
46517
46518 2003-06-11  Simon Josefsson  <jas@extundo.com>
46519
46520         * lib/sysexit_.h: New file.
46521
46522 2003-06-11  Derek Price  <derek@ximbiot.com>
46523
46524         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
46525         necessary.
46526
46527 2003-06-11  Bruno Haible  <bruno@clisp.org>
46528
46529         * m4/sysexits.m4: New file.
46530
46531 2003-06-10  Simon Josefsson  <jas@extundo.com>
46532
46533         * lib/argp.h: New file, from glibc.
46534         * lib/argp-ba.c: New file, from glibc.
46535         * lib/argp-eexst.c: New file, from glibc.
46536         * lib/argp-fmtstream.c: New file, from glibc.
46537         * lib/argp-fmtstream.h: New file, from glibc.
46538         * lib/argp-fs-xinl.c: New file, from glibc.
46539         * lib/argp-help.c: New file, from glibc.
46540         * lib/argp-namefrob.h: New file, from glibc.
46541         * lib/argp-parse.c: New file, from glibc.
46542         * lib/argp-pv.c: New file, from glibc.
46543         * lib/argp-pvh.c: New file, from glibc.
46544         * lib/argp-xinl.c: New file, from glibc.
46545
46546 2003-06-10  Simon Josefsson  <jas@extundo.com>
46547
46548         * modules/strchrnul: New file.
46549
46550 2003-06-10  Simon Josefsson  <jas@extundo.com>
46551
46552         * modules/argp: New file.
46553
46554 2003-06-10  Simon Josefsson  <jas@extundo.com>
46555
46556         * m4/strchrnul.m4: New file.
46557
46558 2003-06-10  Simon Josefsson  <jas@extundo.com>
46559
46560         * lib/strchrnul.h: New file.
46561         * lib/strchrnul.c: New file.
46562
46563 2003-06-10  Bruno Haible  <bruno@clisp.org>
46564
46565         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
46566
46567 2003-06-07  Karl Berry  <karl@gnu.org>
46568
46569         * config/config.{guess,sub}: update from prep.
46570
46571 2003-06-07  Jim Meyering  <jim@meyering.net>
46572
46573         * modules/strtod: Use $(...) notation, not @...@ for
46574         AC_REPLACE'd variables.
46575         * modules/localcharset: Likewise.
46576
46577 2003-06-07  Jim Meyering  <jim@meyering.net>
46578
46579         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
46580         in place of my name in the copyright comment.
46581         Remove definition and uses of __P.
46582
46583         From coreutils.
46584         * lib/stat.c: Don't declare xmalloc explicitly.
46585         Instead, include "xalloc.h".
46586         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
46587         xrealloc, and xcalloc return values.
46588         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
46589         Improve comment.
46590         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
46591
46592 2003-06-07  Bruno Haible  <bruno@clisp.org>
46593
46594         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
46595         avoid AC_CONFIG_LINKS.
46596         * modules/fnmatch (Makefile.am): Use explicit creation rule for
46597         fnmatch.h, to avoid AC_CONFIG_LINKS.
46598         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
46599
46600 2003-06-07  Bruno Haible  <bruno@clisp.org>
46601
46602         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
46603         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
46604         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
46605         directory.
46606         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
46607         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
46608         directory.
46609
46610 2003-06-06  Jim Meyering  <jim@meyering.net>
46611
46612         Merge from coreutils.
46613         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
46614         Consolidate declarations and initializations of *_base* locals.
46615
46616         Merge from coreutils.
46617         This avoids a core dump on systems without GNU putenv,
46618         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
46619         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
46620         (unsetenv): New static function, from GNU libc.
46621         (rpl_putenv): Use it.
46622
46623         * lib/modechange.c: Remove trailing blanks.
46624
46625         Merge from coreutils.
46626         * lib/fsusage.c: Remove declaration of statfs.
46627         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
46628
46629         * lib/posixtm.c: Include <stdbool.h> unconditionally.
46630
46631 2003-06-06  Jim Meyering  <jim@meyering.net>
46632
46633         * lib/stdbool_.h: Renamed from stdbool.h.in.
46634
46635 2003-06-06  Jim Meyering  <jim@meyering.net>
46636             Bruno Haible  <bruno@clisp.org>
46637
46638         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
46639         Adjust Makefile.am snippet not to redirect directly to target.
46640         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
46641
46642 2003-06-05  Paul Eggert  <eggert@twinsun.com>
46643
46644         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
46645         mismatch, look in future quarters as well as past.  This fixes a
46646         bug when processing fall-backwards gaps immediately after a long
46647         period of daylight-saving time.
46648
46649         * lib/mktime.c: Assume freestanding C89 or better.
46650         (HAVE_LIMITS_H): Remove.  Assume it's 1.
46651         (__P): Remove; not used.
46652         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
46653         (mktime, not_equal_tm, print_tm, check_result,
46654         main): Use prototypes.  Use const * where appropriate.
46655         (main): Fix typo in testing code that uncovered by above changes.
46656         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
46657
46658 2003-06-04  Paul Eggert  <eggert@twinsun.com>
46659
46660         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
46661         locale.h, localeconv.  This merges changes from coreutils.
46662
46663         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
46664         It can be removed after the next Autoconf is released.
46665         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
46666         needed.
46667
46668 2003-06-04  Paul Eggert  <eggert@twinsun.com>
46669
46670         * lib/mktime.c: Fix Debian bug 177940
46671         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
46672         (localtime_offset): Now long int, not time_t, because we want it
46673         to be guaranteed to be signed.  All uses changed.
46674         (__mktime_internal): If overflow would occur when adding offset,
46675         don't add it.
46676
46677         Merge 'human' changes from coreutils.  Rewrite to support
46678         locale-specific notations like thousands separators.
46679         * lib/human.c: Simplify authorship notice.
46680         Include human.h immediately after config.h.
46681         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
46682         <limits.h>: Do not include, since human.h does.
46683         (SIZE_MAX, UINTMAX_MAX): New macros.
46684         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
46685         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
46686         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
46687         (power_letter): Renamed from suffixes.
46688         (generate_suffix_backwards): Remove.
46689         (adjust_value): Now takes int style (because of human.h changes)
46690         and long double value (for greater precision on some platforms).
46691         (group_number): New function.
46692         (human_readable): Use it.  Use integer options, not enum.
46693         Put the options before the sizes in the arg list.
46694         Support all the new options.
46695         The old human_readable function has been removed;
46696         use inttostr.h instead.
46697         (human_readable, default_block_size, humblock):
46698         Use uintmax_t, not int, for block sizes.
46699         (human_readable_inexact, block_size_types): Remove.
46700         (block_size_opts): New constant.
46701         (human_options): Renamed from human_block_size, with new signature
46702         that allows block sizes up to UINTMAX_MAX.  All callers changed.
46703         * lib/human.h: Add copyright and authorship notice.
46704         Include <limits.h> and <stdbool.h> unconditionally.
46705         (PARAMS): Remove.  All uses removed.
46706         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
46707         (enum human_inexact_style): Remove tag; now a nameless enum.
46708         (human_floor, human_ceiling, human_round_to_even): Now have
46709         values 2, 0, 1 rather than -1, 1, 0.
46710         (human_group_digits, human_suppress_point_zero, human_autoscale,
46711         human_base_1024, human_SI, human_B): New constants.
46712         (human_readable_inexact, human_block_size): Remove.
46713         (human_readable): Size args are now uintmax_t, not int.
46714         (human_options): New decl.
46715
46716         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
46717         unnecessary now that we assume C89 or better.  This change
46718         imported from coreutils.
46719
46720         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
46721         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
46722         in the 2003-05-30 sync from glibc.
46723
46724         .h files should stand alone, but we shouldn't include <sys/types.h>
46725         if we can get away with just <stddef.h>.
46726
46727         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
46728         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
46729         rather than <sys/types.h>, as we merely need size_t.
46730         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
46731         to get size_t.
46732         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
46733         Include <stdio.h>, to get FILE.
46734         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
46735         memcasecmp.h has included <stddef.h> and all we need is size_t.
46736         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
46737         our interface, instead of including <sys/types.h>
46738
46739 2003-06-04  Paul Eggert  <eggert@twinsun.com>
46740
46741         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
46742         now, as glibc mktime is buggy on non-glibc systems.
46743
46744 2003-06-03  Karl Berry  <karl@gnu.org>
46745
46746         * config/config.sub: update from prep.
46747
46748 2003-06-02  Paul Eggert  <eggert@twinsun.com>
46749
46750         [from coreutils]
46751         Fix some minor time-related bugs with POSIX time arguments.
46752         Some valid time stamps were being rejected (notably -1, and
46753         time stamps before 1900 on 64-bit hosts).  And some invalid
46754         time stamps were being accepted, e.g. September 31.
46755
46756         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
46757         that we can return (time_t) -1 successfully.
46758         * lib/posixtm.c: Likewise.
46759         [HAVE_STDBOOL_H]: Include <stdbool.h>.
46760         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
46761         (t): Remove static var.
46762         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
46763         of static var.  All uses changed.
46764         (year): Do not reject years before 1900; they can occur with
46765         64-bit time_t.
46766         (posix_time_parse): Do not check for out-of-range components;
46767         that is now the caller's responsibility, since our checks were
46768         only approximations.
46769         (posixtime): Use mktime to check for out-of-range components,
46770         since it knows them exactly.
46771         If mktime returns (time_t) -1, check whether an error actually occurred
46772         by invoking localtime on -1.
46773         (main) [TEST_POSIXTIME]: Check for input data errors, and report
46774         posixtime failures better.
46775         Improve the test data (in comments only).
46776
46777 2003-06-02  Karl Berry  <karl@gnu.org>
46778
46779         * config/mkinstalldirs (version): new variable.
46780         (--version): new option.
46781         (usage): improve message.
46782
46783 2003-05-30  Karl Berry  <karl@gnu.org>
46784
46785         * lib/mktime.c: update from libc.
46786
46787 2003-05-30  Bruno Haible  <bruno@clisp.org>
46788
46789         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
46790         * config/config.rpath: Upgrade to gettext-0.12.1.
46791
46792 2003-05-30  Bruno Haible  <bruno@clisp.org>
46793
46794         * m4/gettext.m4: Upgrade to gettext-0.12.1.
46795         * m4/nls.m4: New file, from gettext-0.12.1.
46796         * m4/po.m4: New file, from gettext-0.12.1.
46797         * m4/progtest.m4: Upgrade to gettext-0.12.1.
46798
46799 2003-05-30  Bruno Haible  <bruno@clisp.org>
46800
46801         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
46802         * lib/localcharset.h: Likewise.
46803         * lib/localcharset.c: Likewise.
46804
46805 2003-05-29  Karl Berry  <karl@gnu.org>
46806
46807         * config/config.rpath: update from gettext.
46808
46809 2003-05-28  Paul Eggert  <eggert@twinsun.com>
46810
46811         Assume the headers required for C89 freestanding compilers.
46812         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
46813         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
46814         * m4/human.m4 (gl_HUMAN): Likewise.
46815         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
46816         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
46817         * m4/userspec.m4 (gl_USERSPEC): Likewise.
46818         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
46819         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46820         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
46821
46822 2003-05-28  Paul Eggert  <eggert@twinsun.com>
46823
46824         Assume the headers required for C89 freestanding compilers.
46825         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
46826         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
46827         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
46828         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
46829         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
46830         define, since <limits.h> is guaranteed to do that.
46831         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
46832         * lib/exclude.c: Include <stdbool.h> unconditionally.
46833         * lib/tempname.c: Include <stddef.h> unconditionally.
46834         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
46835         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
46836         <stddef.h> does that.
46837         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
46838         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
46839         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
46840         needed.
46841         * lib/xstrtol.c: Likewise.
46842         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
46843         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
46844
46845         * lib/addext.c (addext): Use assignment rather than cast, to avoid
46846         warnings on some platforms.
46847
46848         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
46849         arbitrarily.
46850
46851 2003-05-26  Jim Meyering  <jim@meyering.net>
46852
46853         Merge in a change from coreutils:
46854         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
46855         that is guaranteed to be `no'.  Use `no_such_member' to indicate
46856         that condition, rather than `-1' which is slightly misleading.
46857         Change the name of the cache variable to have the gl_ prefix.
46858         Prompted by a patch from Richard Dawe for DJGPP.
46859
46860 2003-05-24  Karl Berry  <karl@gnu.org>
46861
46862         * config/config.guess: update from prep.
46863
46864 2003-05-22  Karl Berry  <karl@gnu.org>
46865
46866         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
46867
46868 2003-05-20  Karl Berry  <karl@gnu.org>
46869
46870         * config/config.guess: update from prep.
46871
46872 2003-05-18  Karl Berry  <karl@gnu.org>
46873
46874         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
46875         might actually be set by the user.
46876
46877         * config/depcomp, install-sh, mdate-sh: update from automake.
46878
46879 2003-05-17  Bruno Haible  <bruno@clisp.org>
46880
46881         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
46882         invalid expansion for AC_EGREP_CPP.
46883         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
46884         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
46885         Suggested by Akim Demaille <akim@epita.fr> in
46886         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
46887
46888 2003-05-12  Jim Meyering  <jim@meyering.net>
46889
46890         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
46891         the space-padded-by-default conversion specifiers, %e, %k, %l.
46892
46893 2003-05-12  Bruno Haible  <bruno@clisp.org>
46894
46895         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
46896         the string is longer than 4 KB.
46897
46898 2003-05-11  Karl Berry  <karl@gnu.org>
46899
46900         * config/config.{guess,sub}: update from prep.
46901
46902 2003-05-09  Bruno Haible  <bruno@clisp.org>
46903
46904         * modules/error: Add m4/strerror_r.m4 to file list.
46905
46906 2003-05-03  Bruno Haible  <bruno@clisp.org>
46907
46908         Upgrade to Unicode-4.0.
46909         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
46910         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
46911         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
46912         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
46913         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
46914         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
46915         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
46916         Change width of U+E0100..U+E01EF from 1 to 0.
46917
46918 2003-04-25  Jim Meyering  <jim@meyering.net>
46919
46920         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
46921         of type size_t, not int.
46922
46923 2003-04-25  Bruno Haible  <bruno@clisp.org>
46924
46925         * lib/copy-file.c: Include <stddef.h>, for size_t.
46926
46927 2003-04-21  Paul Eggert  <eggert@twinsun.com>
46928
46929         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
46930         code which expansion is under static control.  Patch imported from
46931         Akim Demaille's patch to Bison; see
46932         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
46933
46934 2003-04-14  Bruno Haible  <bruno@clisp.org>
46935
46936         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
46937
46938 2003-04-11  Jim Meyering  <jim@meyering.net>
46939
46940         Merge changes from Coreutils.
46941
46942         2003-03-22  Jim Meyering  <jim@meyering.net>
46943
46944         * lib/strftime.c (widen): Cast alloca return value to proper type.
46945
46946         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
46947
46948         From GNU libc.
46949         * lib/strftime.c (my_strftime): Handle very large width
46950         specifications for numeric values correctly.  Improve checks for
46951         overflow.
46952
46953         2003-01-19  Jim Meyering  <jim@meyering.net>
46954
46955         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
46956         definitions.
46957         (nl_get_alt_digit) [! defined my_strftime]: Define.
46958         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
46959         _nl_get_alt_digit and _nl_get_walt_digit.
46960
46961         * lib/strftime.c (my_strftime): Merge in locale-related changes from
46962         libc. These changes have no effect outside of _LIBC.
46963
46964 2003-04-10  Bruno Haible  <bruno@clisp.org>
46965
46966         * modules/findprog: New file.
46967         * MODULES.html.sh (func_all_modules): Add it.
46968
46969 2003-04-10  Bruno Haible  <bruno@clisp.org>
46970
46971         * m4/findprog.m4: New file.
46972         * m4/eaccess.m4: New file.
46973
46974 2003-04-10  Bruno Haible  <bruno@clisp.org>
46975
46976         * lib/findprog.h: New file, from GNU gettext.
46977         * lib/findprog.c: New file, from GNU gettext.
46978
46979 2003-04-05  Jim Meyering  <jim@meyering.net>
46980
46981         Merge changes from Coreutils.
46982
46983         * lib/exclude.h (PARAMS): Remove definition and uses.
46984         * lib/exclude.c: Remove uses of `PARAMS'.
46985
46986         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
46987         Add test-cases for DOS filenames. Declare program_name.
46988         (main): Set up program_name.  Patch by Rich Dawe.
46989
46990         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
46991         error from mntctl.
46992         Use mntctl's return value to drive the entry-processing loop, since
46993         we can't rely on the value of the vmt_length member in the last
46994         entry.  On some systems doing so could result in exhausting
46995         virtual memory.  Based in part on a patch from Mike Jetzer.
46996
46997 2003-04-04  Bruno Haible  <bruno@clisp.org>
46998
46999         * modules/linebreak: New file.
47000         * MODULES.html.sh (func_all_modules): Add it.
47001
47002 2003-04-04  Bruno Haible  <bruno@clisp.org>
47003
47004         * m4/linebreak.m4: New file.
47005
47006 2003-04-04  Bruno Haible  <bruno@clisp.org>
47007
47008         * lib/linebreak.h: New file, from GNU gettext.
47009         * lib/linebreak.c: New file, from GNU gettext with slight
47010         modifications.
47011         * lib/lbrkprop.h: New file, from GNU gettext.
47012
47013 2003-04-03  Bruno Haible  <bruno@clisp.org>
47014
47015         * modules/utf8-ucs4: New file.
47016         * modules/utf16-ucs4: New file.
47017         * modules/ucs4-utf8: New file.
47018         * modules/ucs4-utf16: New file.
47019         * MODULES.html.sh (func_all_modules): Add them.
47020
47021 2003-04-03  Bruno Haible  <bruno@clisp.org>
47022
47023         * m4/utf-ucs4.m4: New file.
47024         * m4/ucs4-utf.m4: New file.
47025
47026 2003-04-03  Bruno Haible  <bruno@clisp.org>
47027
47028         * lib/utf8-ucs4.h: New file, from GNU gettext.
47029         * lib/utf16-ucs4.h: New file, from GNU gettext.
47030         * lib/ucs4-utf8.h: New file, from GNU gettext.
47031         * lib/ucs4-utf16.h: New file, from GNU gettext.
47032
47033 2003-04-02  Bruno Haible  <bruno@clisp.org>
47034
47035         * modules/binary-io: New file.
47036         * MODULES.html.sh (func_all_modules): Add it.
47037
47038 2003-04-02  Bruno Haible  <bruno@clisp.org>
47039
47040         * lib/binary-io.h: New file, from GNU gettext.
47041
47042 2003-04-01  Bruno Haible  <bruno@clisp.org>
47043
47044         * modules/pathname: New file.
47045         * MODULES.html.sh (func_all_modules): Add it.
47046
47047 2003-04-01  Bruno Haible  <bruno@clisp.org>
47048
47049         * lib/pathname.h: New file, from GNU gettext.
47050         * lib/concatpath.c: New file, from GNU gettext.
47051
47052 2003-03-30  Bruno Haible  <bruno@clisp.org>
47053
47054         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
47055
47056 2003-03-30  Bruno Haible  <bruno@clisp.org>
47057
47058         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
47059         function chown() doesn't exist.
47060
47061 2003-03-28  Bruno Haible  <bruno@clisp.org>
47062
47063         * modules/copy-file: New file.
47064         * MODULES.html.sh (func_all_modules): Add it.
47065
47066 2003-03-28  Bruno Haible  <bruno@clisp.org>
47067
47068         * m4/copy-file.m4: New file.
47069
47070 2003-03-28  Bruno Haible  <bruno@clisp.org>
47071
47072         * lib/copy-file.h: New file, from GNU gettext.
47073         * lib/copy-file.c: New file, from GNU gettext.
47074
47075 2003-03-18  Jim Meyering  <jim@meyering.net>
47076
47077         * lib/quote.c (quote_n): Fix typo in comment.
47078
47079 2003-03-18  Bruno Haible  <bruno@clisp.org>
47080
47081         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
47082         checking.
47083         * m4/onceonly_2_57.m4: Likewise.
47084
47085 2003-03-17  Bruno Haible  <bruno@clisp.org>
47086
47087         * m4/onceonly.m4: Require autoconf 2.54 or newer.
47088         (m4_quote): Remove macro.
47089         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
47090
47091 2003-03-14  Jim Meyering  <jim@meyering.net>
47092
47093         Merge changes from Coreutils.
47094         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
47095         to be const, in order to avoid warnings.
47096         (obstack_room): Likewise.
47097         (obstack_empty_p): Likewise.
47098
47099 2003-03-14  Bruno Haible  <bruno@clisp.org>
47100
47101         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
47102         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
47103
47104 2003-03-13  Paul Eggert  <eggert@twinsun.com>
47105
47106         Merge changes from Bison.
47107         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
47108         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
47109         when compiling Bison 1.875's `bitset bset = obstack_alloc
47110         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
47111         * lib/hash.c: Include <stdbool.h> unconditionally.
47112
47113 2003-03-13  Paul Eggert  <eggert@twinsun.com>
47114
47115         * m4/onceonly.m4 (m4_quote): New macro.
47116         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
47117         Quote AC_FOREACH variable-expansions properly.
47118
47119 2003-03-13  Paul Eggert  <eggert@twinsun.com>
47120
47121         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
47122
47123 2003-03-09  Paul Eggert  <eggert@twinsun.com>
47124
47125         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
47126         Reported by Bruce Becker; see:
47127         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
47128
47129 2003-03-03  Paul Eggert  <eggert@twinsun.com>
47130             Bruno Haible  <bruno@clisp.org>
47131
47132         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
47133         Reported by John Hughes, see
47134         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
47135
47136 2003-02-20  Bruno Haible  <bruno@clisp.org>
47137
47138         * MODULES.html.sh (func_all_modules): Add poll.
47139
47140 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
47141
47142         * modules/poll: New file.
47143
47144 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
47145
47146         * lib/poll_.h: New file.
47147         * lib/poll.c: New file.
47148
47149 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
47150
47151         * m4/poll.m4: New file.
47152
47153 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
47154
47155         * modules/mathl: New file.
47156
47157 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
47158
47159         * lib/mathl.h: New file.
47160         * lib/acosl.c: New file.
47161         * lib/asinl.c: New file.
47162         * lib/atanl.c: New file.
47163         * lib/ceill.c: New file.
47164         * lib/cosl.c: New file.
47165         * lib/expl.c: New file.
47166         * lib/floorl.c: New file.
47167         * lib/frexpl.c: New file.
47168         * lib/ldexpl.c: New file.
47169         * lib/logl.c: New file.
47170         * lib/sincosl.c: New file.
47171         * lib/sinl.c: New file.
47172         * lib/sqrtl.c: New file.
47173         * lib/tanl.c: New file.
47174         * lib/trigl.c: New file.
47175         * lib/trigl.h: New file.
47176
47177 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
47178
47179         * m4/mathl.m4: New file.
47180
47181 2003-02-18  Bruno Haible  <bruno@clisp.org>
47182
47183         * MODULES.html.sh (func_all_modules): Add mathl.
47184
47185 2003-02-17  Bruno Haible  <bruno@clisp.org>
47186
47187         * modules/mkdtemp: New module.
47188         * MODULES.html.sh (func_all_modules): Add it.
47189
47190 2003-02-17  Bruno Haible  <bruno@clisp.org>
47191
47192         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
47193
47194 2003-02-17  Bruno Haible  <bruno@clisp.org>
47195
47196         * lib/mkdtemp.h: New file, from GNU gettext.
47197         * lib/mkdtemp.c: New file, from GNU gettext.
47198
47199 2003-02-02  Jim Meyering  <jim@meyering.net>
47200
47201         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
47202         e.g. glibc-2.2.93.
47203
47204 2003-01-31  Bruno Haible  <bruno@clisp.org>
47205
47206         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
47207         'rpl_rename'.
47208         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
47209         'rpl_strnlen'.
47210         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
47211         'rpl_strtod'.
47212         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
47213         'rpl_utime'.
47214
47215 2003-01-31  Bruno Haible  <bruno@clisp.org>
47216
47217         * lib/rename.c: #undef rename before defining rpl_rename.
47218         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
47219
47220 2003-01-30  Bruno Haible  <bruno@clisp.org>
47221
47222         * modules/vasnprintf, modules/vasprintf: New modules.
47223         * MODULES.html.sh (func_all_modules): Add them.
47224
47225 2003-01-30  Bruno Haible  <bruno@clisp.org>
47226
47227         * m4/signed.m4: New file, from GNU gettext.
47228         * m4/longdouble.m4: New file, from GNU gettext.
47229         * m4/wchar_t.m4: New file, from GNU gettext.
47230         * m4/wint_t.m4: New file, from GNU gettext.
47231         * m4/vasnprintf.m4: New file.
47232         * m4/vasprintf.m4: New file.
47233
47234 2003-01-30  Bruno Haible  <bruno@clisp.org>
47235
47236         * lib/printf-args.h: New file, from GNU gettext.
47237         * lib/printf-args.c: New file, from GNU gettext.
47238         * lib/printf-parse.h: New file, from GNU gettext.
47239         * lib/printf-parse.c: New file, from GNU gettext.
47240         * lib/vasnprintf.h: New file, from GNU gettext.
47241         * lib/vasnprintf.c: New file, from GNU gettext.
47242         * lib/asnprintf.c: New file, from GNU gettext.
47243         * lib/vasprintf.h: New file, from GNU gettext with modifications.
47244         * lib/vasprintf.c: New file, from GNU gettext.
47245         * lib/asprintf.c: New file, from GNU gettext.
47246
47247 2003-01-29  Bruno Haible  <bruno@clisp.org>
47248
47249         * modules/stpncpy: New module.
47250         * MODULES.html.sh (func_all_modules): Add it.
47251
47252 2003-01-29  Bruno Haible  <bruno@clisp.org>
47253
47254         * m4/stpncpy.m4: New file.
47255
47256 2003-01-29  Bruno Haible  <bruno@clisp.org>
47257
47258         * lib/stpncpy.h: New file, from GNU gettext with modifications.
47259         * lib/stpncpy.c: New file, from GNU gettext with modifications.
47260
47261 2003-01-28  Bruno Haible  <bruno@clisp.org>
47262
47263         * modules/c-ctype: New module.
47264         * MODULES.html.sh (func_all_modules): Add it.
47265
47266 2003-01-28  Bruno Haible  <bruno@clisp.org>
47267
47268         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
47269         Paul Eggert.
47270         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
47271         Paul Eggert.
47272
47273 2003-01-27  Bruno Haible  <bruno@clisp.org>
47274
47275         * modules/xsetenv: New module.
47276         * MODULES.html.sh (func_all_modules): Add it.
47277
47278 2003-01-27  Bruno Haible  <bruno@clisp.org>
47279
47280         * lib/xsetenv.h: New file, from GNU gettext.
47281         * lib/xsetenv.c: New file, from GNU gettext.
47282
47283 2003-01-23  Jim Meyering  <jim@meyering.net>
47284
47285         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
47286         from working on systems without dirfd (at least Irix and OSF1/Tru64).
47287
47288 2003-01-23  Bruno Haible  <bruno@clisp.org>
47289
47290         * modules/minmax: New module.
47291         * MODULES.html.sh (func_all_modules): Add it.
47292
47293 2003-01-23  Bruno Haible  <bruno@clisp.org>
47294
47295         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
47296         Eggert.
47297
47298 2003-01-22  Bruno Haible  <bruno@clisp.org>
47299
47300         * modules/exit: New module.
47301         * MODULES.html.sh (func_all_modules): Add it.
47302
47303 2003-01-22  Bruno Haible  <bruno@clisp.org>
47304
47305         * lib/exit.h: New file, from GNU gettext.
47306
47307 2003-01-19  Bruno Haible  <bruno@clisp.org>
47308
47309         * gnulib-tool: Recognize option --extract-maintainer.
47310         (func_get_maintainer): New function.
47311         * modules/*: Add Maintainer entry.
47312
47313 2003-01-16  Jim Meyering  <jim@meyering.net>
47314
47315         * m4/regex.m4: The `regex' struct is both input and output.
47316         Initialize it before each use.  Patch by Tim Waugh.
47317
47318 2003-01-16  Bruno Haible  <bruno@clisp.org>
47319
47320         * MODULES.html.sh: Add a table of contents. Add the module name as
47321         leftmost column. Add hyperlinks.
47322
47323 2003-01-15  Bruno Haible  <bruno@clisp.org>
47324
47325         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
47326
47327 2003-01-15  Bruno Haible  <bruno@clisp.org>
47328
47329         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
47330         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
47331         suffix.
47332
47333 2003-01-15  Bruno Haible  <bruno@clisp.org>
47334
47335         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
47336
47337 2003-01-15  Bruno Haible  <bruno@clisp.org>
47338
47339         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
47340         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
47341
47342 2003-01-14  Jim Meyering  <jim@meyering.net>
47343
47344         * lib/same.c (same_name): Tweak a comment.
47345
47346 2003-01-14  Bruno Haible  <bruno@clisp.org>
47347
47348         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
47349         when a string comparison is sufficient.
47350
47351 2003-01-14  Bruno Haible  <bruno@clisp.org>
47352
47353         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
47354         'unsigned int'.
47355
47356 2003-01-14  Bruno Haible  <bruno@clisp.org>
47357
47358         * lib/hash-pjw.c: Add comment about low quality of this function.
47359
47360 2003-01-13  Bruno Haible  <bruno@clisp.org>
47361
47362         * modules/stpcpy: Distribute lib/stpcpy.h.
47363         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
47364
47365 2003-01-13  Bruno Haible  <bruno@clisp.org>
47366
47367         * modules/*: Add a description.
47368         * modules/strpbrk: Fix Makefile.am snippet.
47369         * modules/strtoimax: Fix dependencies.
47370         * modules/strtoumax: Likewise.
47371
47372 2003-01-13  Bruno Haible  <bruno@clisp.org>
47373
47374         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
47375         * modules/alloca (Makefile.am): All object files depend on alloca.h.
47376         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
47377
47378 2003-01-13  Bruno Haible  <bruno@clisp.org>
47379
47380         * gnulib-tool (func_create_testdir): Store config/* files in the main
47381         directory.
47382         * config.rpath: Move to ...
47383         * config/config.rpath: ... here.
47384         * modules/gettext: Contains config/config.rpath, not config.rpath.
47385         * modules/iconv: Likewise.
47386
47387 2003-01-12  Paul Eggert  <eggert@twinsun.com>
47388
47389         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
47390         to avoid collisions with libcurses and libreadline.
47391
47392         * m4/getstr.m4: Remove.
47393         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
47394
47395 2003-01-12  Paul Eggert  <eggert@twinsun.com>
47396
47397         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
47398         to avoid collisions with libcurses and libreadline.
47399
47400         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
47401         * lib/getstr.h, getstr.c: Remove.
47402         * lib/getline.c: Include "getline.h", to check interface.
47403         Move body of old getstr.c here: this defines MIN_CHUNK and
47404         declares getdelim2, which is renamed from getstr.
47405         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
47406
47407         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
47408         All uses changed.
47409         * lib/linebuffer.h: Likewise.
47410         (readline): Remove backward-compatibility macro.
47411
47412 2003-01-12  Paul Eggert  <eggert@twinsun.com>
47413
47414         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
47415         to avoid collisions with libcurses and libreadline.
47416         * getstr: Remove.
47417         * MODULES.html.sh: Remove getstr.
47418         * modules/getline: Depend on unlocked-io, not getstr.
47419
47420 2003-01-12  Jim Meyering  <jim@meyering.net>
47421
47422         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
47423
47424 2003-01-10  Bruno Haible  <bruno@clisp.org>
47425
47426         * modules/alloca: Change Makefile.am requirements. Simplify Include
47427         requirements. Add lib/alloca_.h to file list.
47428
47429 2003-01-10  Bruno Haible  <bruno@clisp.org>
47430
47431         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
47432
47433 2003-01-10  Bruno Haible  <bruno@clisp.org>
47434
47435         * lib/alloca_.h: New file.
47436         * lib/getdate.y: Unconditionally include alloca.h.
47437         * lib/makepath.c: Likewise.
47438         * lib/setenv.c: Likewise.
47439         * lib/userspec.c: Likewise.
47440
47441 2003-01-09  Karl Berry  <karl@gnu.org>
47442
47443         * MODULES.html.sh: include `dirname $0` in PATH, to find
47444         gnulib-tool.
47445
47446 2003-01-09  Bruno Haible  <bruno@clisp.org>
47447
47448         * modules/stdbool: Change configure.ac, Makefile.am requirements.
47449         Simplify Include requirements. Add lib/stdbool.h.in to file list.
47450
47451 2003-01-09  Bruno Haible  <bruno@clisp.org>
47452
47453         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
47454
47455 2003-01-09  Bruno Haible  <bruno@clisp.org>
47456
47457         * lib/stdbool.h.in: New file.
47458
47459 2003-01-09  Bruno Haible  <bruno@clisp.org>
47460
47461         * gnulib-tool (func_all_modules): Ignore files ending in ~.
47462         * MODULES.html.sh: Likewise.
47463
47464 2003-01-08  Jim Meyering  <jim@meyering.net>
47465
47466         * lib/full-write.c: Undefine and define-away `const' after inclusion
47467         of errno.h, not before.  Suggestion from Bruno Haible.
47468
47469 2003-01-08  Bruno Haible  <bruno@clisp.org>
47470
47471         * modules/full-read: Depend on full-write.
47472
47473 2003-01-08  Bruno Haible  <bruno@clisp.org>
47474
47475         * lib/safe-read.c: Include specification header first, to ensure its
47476         selfcontainedness.
47477         * lib/full-write.c: Likewise.
47478
47479 2003-01-07  Jim Meyering  <jim@meyering.net>
47480
47481         * lib/full-write.c: Rework so that it may serve to define full_read,
47482         too.
47483         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
47484
47485 2003-01-07  Bruno Haible  <bruno@clisp.org>
47486
47487         * lib/strtoimax.c: Include <stdint.h> as an alternative to
47488         <inttypes.h>.
47489         * lib/xstrtol.h: Likewise.
47490         * lib/xstrtoimax.c: Likewise.
47491         * lib/xstrtoumax.c: Likewise.
47492         * lib/human.h: Likewise.
47493
47494         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
47495         on systems that have <inttypes.h> but not <stdint.h>.
47496
47497 2003-01-07  Bruno Haible  <bruno@clisp.org>
47498
47499         * MODULES.html.sh: Add copyright notice.
47500         (missed_files): Omit CVS directory entries.
47501         (func_module): Make it work with sed-3.02.
47502         * MODULES.txt: Remove file.
47503
47504 2003-01-06  Jim Meyering  <jim@meyering.net>
47505
47506         * lib/version-etc.c: Update year in translatable copyright string.
47507
47508 2003-01-03  Karl Berry  <karl@gnu.org>
47509
47510         * config/config.{guess,sub}: update from prep.
47511
47512 2003-01-02  Karl Berry  <karl@gnu.org>
47513
47514         * doc/COPYING.DOC: belatedly updated to 1.2.
47515
47516 2003-01-01  Karl Berry  <karl@gnu.org>
47517
47518         * gnulib-tool (func_verify_module): report module name $module in
47519         error message, not $1.
47520         * gnulib-tool (create-testdir): don't complain if destdir couldn't
47521         be created, only if it doesn't exist.
47522         * gnulib-tool (last_checkin_date): don't expand the $Date here.
47523
47524 2002-12-31  Paul Eggert  <eggert@twinsun.com>
47525
47526         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
47527
47528 2002-12-31  Paul Eggert  <eggert@twinsun.com>
47529
47530         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
47531         memcmp if strcoll doesn't work.
47532
47533 2002-12-31  Bruno Haible  <bruno@clisp.org>
47534
47535         * lib/utime.c (utime_null): No need to call ftruncate if the file was
47536         nonempty.
47537
47538 2002-12-31  Bruno Haible  <bruno@clisp.org>
47539
47540         * lib/memcoll.c (STRCOLL): New macro.
47541         (memcoll): Use it.
47542
47543 2002-12-31  Bruno Haible  <bruno@clisp.org>
47544
47545         * lib/localcharset.h: New file.
47546         * lib/localcharset.c: Include it.
47547         * lib/unicodeio.c: Likewise.
47548
47549 2002-12-31  Bruno Haible  <bruno@clisp.org>
47550
47551         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
47552         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
47553
47554 2002-12-31  Bruno Haible  <bruno@clisp.org>
47555
47556         * lib/getline.h: Include <stddef.h>, for size_t.
47557
47558         * lib/unicodeio.h: Include <stddef.h>, for size_t.
47559         * lib/unicodeio.c: Don't include <stddef.h>.
47560
47561 2002-12-31  Bruno Haible  <bruno@clisp.org>
47562
47563         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
47564         HAVE_TM_ZONE.
47565
47566 2002-12-24  Karl Berry  <karl@gnu.org>
47567
47568         * config/config.guess: update from prep.
47569
47570 2002-12-24  Bruno Haible  <bruno@clisp.org>
47571
47572         General infrasructure.
47573         * m4/README: Rewritten.
47574         * m4/onceonly.m4: New file.
47575         * m4/onceonly_2_57.m4: New file.
47576
47577         Module atexit.
47578         * m4/atexit.m4: New file.
47579
47580         Module strtod.
47581         * m4/strtod.m4: New file.
47582
47583         Module strtol.
47584         * m4/strtol.m4: New file.
47585
47586         Module strtoul.
47587         * m4/strtoul.m4: New file.
47588
47589         Module memchr.
47590         * m4/memchr.m4: New file.
47591
47592         Module memcmp.
47593         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
47594         (jm_FUNC_MEMCMP): Invoke it.
47595
47596         Module memcpy.
47597         * m4/memcpy.m4: New file.
47598
47599         Module memmove.
47600         * m4/memmove.m4: New file.
47601
47602         Module memset.
47603         * m4/memset.m4: New file.
47604
47605         Module strcspn.
47606         * m4/strcspn.m4: New file.
47607
47608         Module strpbrk.
47609         * m4/strpbrk.m4: New file.
47610
47611         Module strstr.
47612         * m4/strstr.m4: New file.
47613
47614         Module strerror.
47615         * m4/strerror.m4: New file.
47616
47617         Module mktime.
47618         * m4/mktime.m4: Renamed from jm-mktime.m4.
47619         (gl_PREREQ_MKTIME): New macro.
47620         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
47621
47622         Module malloc.
47623         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
47624         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
47625         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
47626
47627         Module realloc.
47628         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
47629         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
47630         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
47631
47632         Module strftime.
47633         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
47634         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
47635         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
47636         gl_TM_GMTOFF.
47637         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
47638
47639         Module xalloc.
47640         * m4/xalloc.m4: New file.
47641
47642         Module alloca.
47643         * m4/alloca.m4: New file.
47644
47645         Module putenv.
47646         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
47647         (jm_FUNC_PUTENV): Invoke it.
47648
47649         Module setenv.
47650         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
47651         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
47652         when invoked twice.
47653         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
47654         gt_FUNC_SETENV.
47655
47656         Module memrchr.
47657         * m4/memrchr.m4: New file.
47658
47659         Module stpcpy.
47660         * m4/stpcpy.m4: New file.
47661
47662         Module strcase.
47663         * m4/strcase.m4: New file.
47664
47665         Module strdup.
47666         * m4/strdup.m4: New file.
47667
47668         Module strnlen.
47669         * m4/strnlen.m4: New file.
47670
47671         Module strndup.
47672         * m4/strndup.m4: New file.
47673
47674         Module xstrtod.
47675         * m4/xstrtod.m4: New file.
47676
47677         Module xstrtol.
47678         * m4/xstrtol.m4: New file.
47679
47680         Module getdate.
47681         * m4/getdate.m4: New file.
47682
47683         Module unlocked-io.
47684         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
47685         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
47686         * m4/jm-glibc-io.m4n: Remove file.
47687
47688         Module long-options.
47689         * m4/long-options.m4: New file.
47690
47691         Module md5.
47692         * m4/md5.m4: New file.
47693
47694         Module sha.
47695         * m4/sha.m4: New file.
47696
47697         Module getstr.
47698         * m4/getstr.m4: New file.
47699
47700         Module getline.
47701         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
47702         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
47703         <sys/types.h>, for size_t. Use the function name gnu_getline, not
47704         simply getline. Infoke gl_PREREQ_GETLINE.
47705
47706         Module obstack.
47707         * m4/obstack.m4: New file.
47708
47709         Module hash.
47710         * m4/hash.m4: New file.
47711
47712         Module readtokens.
47713         * m4/readtokens.m4: New file.
47714
47715         Module strverscmp.
47716         * m4/strverscmp.m4: New file.
47717
47718         Module stdbool.
47719         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
47720         OSF/1.
47721
47722         Module strtoll.
47723         * m4/strtoll.m4: New file.
47724
47725         Module strtoull.
47726         * m4/strtoull.m4: New file.
47727
47728         Module strtoimax.
47729         * m4/strtoimax.m4: New file.
47730
47731         Module strtoumax.
47732         * m4/strtoumax.m4: New file.
47733
47734         Module xstrtoimax.
47735         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
47736         jm_AC_PREREQ_XSTRTOIMAX.
47737         Moved the strtol prerequisites to strtol.m4.
47738         Moved the strtoll prerequisites to strtoll.m4.
47739         Moved the strtoimax prerequisites to strtoimax.m4.
47740
47741         Module xstrtoumax.
47742         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
47743         jm_AC_PREREQ_XSTRTOUMAX.
47744         Moved the strtoul prerequisites to strtoul.m4.
47745         Moved the strtoull prerequisites to strtoull.m4.
47746         Moved the strtoumax prerequisites to strtoumax.m4.
47747
47748         Module chown.
47749         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
47750         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
47751
47752         Module dup2.
47753         * m4/dup2.m4: New file.
47754
47755         Module ftruncate.
47756         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
47757         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
47758
47759         Module getgroups.
47760         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
47761         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
47762
47763         Module gettimeofday.
47764         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
47765         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
47766         gl_PREREQ_GETTIMEOFDAY.
47767
47768         Module mkdir.
47769         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
47770         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
47771
47772         Module mkstemp.
47773         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
47774         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
47775         jm_AC_TYPE_UINTMAX_T.
47776         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
47777
47778         Module stat.
47779         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
47780         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
47781
47782         Module lstat.
47783         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
47784         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
47785
47786         Module timespec.
47787         * m4/timespec.m4 (gl_TIMESPEC): New macro.
47788         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
47789         * m4/st_mtim.m4: Indentation.
47790
47791         Module nanosleep.
47792         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
47793         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
47794         gl_PREREQ_NANOSLEEP.
47795
47796         Module regex.
47797         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
47798         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
47799         (gl_REGEX): New macro.
47800
47801         Module rename.
47802         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
47803         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
47804
47805         Module rmdir.
47806         * m4/rmdir.m4: New file.
47807
47808         Module utime.
47809         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
47810         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
47811         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
47812
47813         Module dirname.
47814         * m4/dirname.m4: New file.
47815
47816         Module getopt.
47817         * m4/getopt.m4: New file.
47818
47819         Module unistd-safer.
47820         * m4/unistd-safer.m4: New file.
47821
47822         Module fnmatch.
47823         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
47824         declaration.
47825         (gl_PREREQ_FNMATCH_EXTRA): New macro.
47826         (gl_FUNC_FNMATCH_POSIX): New macro.
47827         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
47828         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
47829         simply fnmatch.
47830
47831         Module exclude.
47832         * m4/exclude.m4: New file.
47833
47834         Module human.
47835         * m4/human.m4: New file.
47836
47837         Module acl.
47838         * m4/acl.m4: Nop.
47839
47840         Module backupfile.
47841         * m4/backupfile.m4: New file.
47842         * m4/d-ino.m4: Indentation.
47843
47844         Module fsusage.
47845         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
47846         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
47847         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
47848
47849         Module dirfd.
47850         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
47851         requirements.
47852
47853         Module euidaccess.
47854         * m4/euidaccess.m4: New file.
47855
47856         Module file-type.
47857         * m4/file-type.m4: New file.
47858
47859         Module fileblocks.
47860         * m4/fileblocks.m4: New file.
47861
47862         Module filemode.
47863         * m4/filemode.m4: New file.
47864
47865         Module isdir.
47866         * m4/isdir.m4: New file.
47867
47868         Module lchown.
47869         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
47870         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
47871
47872         Module makepath.
47873         * m4/makepath.m4: New file.
47874
47875         Module modechange.
47876         * m4/modechange.m4: New file.
47877
47878         Module mountlist.
47879         * m4/mountlist.m4: New file.
47880         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
47881         Indentation.
47882
47883         Module path-concat.
47884         * m4/path-concat.m4: New file.
47885
47886         Module pathmax.
47887         * m4/pathmax.m4: New file.
47888
47889         Module same.
47890         * m4/same.m4: New file.
47891
47892         Module save-cwd.
47893         * m4/save-cwd.m4: New file.
47894
47895         Module savedir.
47896         * m4/savedir.m4: New file.
47897
47898         Module xgetcwd.
47899         * m4/xgetcwd.m4: New file.
47900         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
47901
47902         Module xreadlink.
47903         * m4/xreadlink.m4: New file.
47904
47905         Module safe-read.
47906         * m4/safe-read.m4: New file.
47907
47908         Module safe-write.
47909         * m4/safe-write.m4: New file.
47910
47911         Module closeout.
47912         * m4/closeout.m4: New file.
47913
47914         Module stdio-safer.
47915         * m4/stdio-safer.m4: New file.
47916
47917         Module getpass.
47918         * m4/getpass.m4: New file.
47919
47920         Module getugroups.
47921         * m4/getugroups.m4: New file.
47922
47923         Module group-member.
47924         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
47925         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
47926
47927         Module idcache.
47928         * m4/idcache.m4: New file.
47929
47930         Module userspec.
47931         * m4/userspec.m4: New file.
47932
47933         Module gettime.
47934         * m4/clock_time.m4: New file.
47935         * m4/gettime.m4: New file.
47936
47937         Module settime.
47938         * m4/settime.m4: New file.
47939
47940         Module posixtm.
47941         * m4/posixtm.m4: New file.
47942
47943         Module gethostname.
47944         * m4/gethostname.m4: New file.
47945
47946         Module canon-host.
47947         * m4/canon-host.m4: New file.
47948
47949         Module gettext.
47950         * m4/codeset.m4: New file, from gettext-0.11.5.
47951         * m4/gettext.m4: New file, from gettext-0.11.5.
47952         * m4/glibc21.m4: New file, from gettext-0.11.5.
47953         * m4/iconv.m4: New file, from gettext-0.11.5.
47954         * m4/intdiv0.m4: New file, from gettext-0.11.5.
47955         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
47956         * m4/inttypes.m4: New file, from gettext-0.11.5.
47957         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
47958         * m4/isc-posix.m4: New file, from gettext-0.11.5.
47959         * m4/lcmessage.m4: New file, from gettext-0.11.5.
47960         * m4/lib-ld.m4: New file, from gettext-0.11.5.
47961         * m4/lib-link.m4: New file, from gettext-0.11.5.
47962         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
47963         * m4/progtest.m4: New file, from gettext-0.11.5.
47964         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
47965         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
47966         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
47967
47968         Module localcharset.
47969         * m4/localcharset.m4: New file.
47970
47971         Module hard-locale.
47972         * m4/hard-locale.m4: New file.
47973
47974         Module mbswidth.
47975         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
47976         onceonly macros.
47977         * m4/mbrtowc.m4: Add comment.
47978
47979         Module memcasecmp.
47980         * m4/memcasecmp.m4: New file.
47981
47982         Module memcoll.
47983         * m4/memcoll.m4: New file.
47984
47985         Module unicodeio.
47986         * m4/unicodeio.m4: New file.
47987
47988         Module rpmatch.
47989         * m4/rpmatch.m4: New file.
47990
47991         Module yesno.
47992         * m4/yesno.m4: New file.
47993
47994         Module exitfail.
47995         * m4/exitfail.m4: New file.
47996
47997         Module c-stack.
47998         * m4/c-stack.m4 (gl_C_STACK): New macro.
47999         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
48000
48001         Module error.
48002         * m4/error.m4 (gl_ERROR): New macro.
48003         (jm_PREREQ_ERROR): Use onceonly macros.
48004
48005         Module fatal.
48006         * m4/fatal.m4: New file.
48007
48008         Module getloadavg.
48009         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
48010         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
48011
48012         Module getpagesize.
48013         * m4/getpagesize.m4: New file.
48014
48015         Module getusershell.
48016         * m4/getusershell.m4: New file.
48017
48018         Module physmem.
48019         * m4/physmem.m4: New file.
48020
48021         Module posixver.
48022         * m4/posixver.m4: New file.
48023
48024         Module quotearg.
48025         * m4/quotearg.m4: New file.
48026
48027         Module quote.
48028         * m4/quote.m4: New file.
48029
48030         Module readutmp.
48031         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
48032
48033         Module sig2str.
48034         * m4/sig2str.m4: New file.
48035
48036         Other.
48037         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
48038         ulonglong.m4.
48039         * m4/intmax_t.m4: New file.
48040         * m4/d-type.m4: Indentation.
48041         * m4/jm-macros.m4: Update.
48042         * m4/prereq.m4 (jm_PREREQ): Update.
48043         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
48044         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
48045         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
48046         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
48047         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
48048         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
48049         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
48050         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
48051         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
48052         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
48053         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
48054         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
48055         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
48056         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
48057         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
48058         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
48059         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
48060         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
48061         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
48062
48063 2002-12-24  Bruno Haible  <bruno@clisp.org>
48064
48065         * MODULES.txt: Update according to m4/ changes.
48066
48067         Module gettext.
48068         * config.rpath: New file, from gettext-0.11.5.
48069
48070         * modules/*: New module descriptions.
48071         * gnulib-tool: New file.
48072         * MODULES.html.sh: New file.
48073
48074 2002-12-21  Karl Berry  <karl@gnu.org>
48075
48076         * doc/fdl.texi: update to version 1.2.
48077
48078 2002-12-19  Karl Berry  <karl@gnu.org>
48079
48080         * config/config.guess: update from prep.
48081
48082 2002-12-18  Bruno Haible  <bruno@clisp.org>
48083
48084         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
48085         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
48086
48087 2002-12-17  Bruno Haible  <bruno@clisp.org>
48088
48089         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
48090         stdlib.h, string.h.
48091
48092 2002-12-17  Bruno Haible  <bruno@clisp.org>
48093
48094         * lib/canon-host.c (strdup): Remove unused declaration.
48095
48096         * lib/fsusage.c: Include full_read.h.
48097         (get_fs_usage): Use full_read instead of safe_read.
48098
48099         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
48100
48101 2002-12-12  Karl Berry  <karl@gnu.org>
48102
48103         * config/config.guess: update from prep.
48104
48105 2002-12-11  Bruno Haible  <bruno@clisp.org>
48106
48107         * m4/setenv.m4: New file, from gettext-0.11.5.
48108
48109 2002-12-11  Bruno Haible  <bruno@clisp.org>
48110
48111         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
48112         not unsetenv().
48113         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
48114         modifications:
48115
48116         2002-12-11  Bruno Haible  <bruno@clisp.org>
48117
48118                 * setenv.c (alloca): Fall back to malloc.
48119                 (freea): New macro.
48120                 (setenv): Use freea() to free memory allocated with alloca().
48121
48122         2002-11-13  Bruno Haible  <bruno@clisp.org>
48123
48124                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
48125                 function declarations.
48126                 * unsetenv.c (unsetenv): Likewise.
48127
48128         2002-03-04  Bruno Haible  <bruno@clisp.org>
48129
48130                 Portability to AIX 4.3.3.
48131                 * unsetenv.c: New file, extracted from setenv.c.
48132                 * setenv.c: Move the unsetenv() function to unsetenv.c.
48133
48134         2001-12-20  Bruno Haible  <bruno@clisp.org>
48135
48136                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
48137                 use malloc instead. For SunOS 4.
48138
48139         2001-12-11  Bruno Haible  <bruno@clisp.org>
48140
48141                 * setenv.c: Declare alloca.
48142                 (compar_fn_t): New typedef.
48143                 (KNOWN_VALUE, STORE_VALUE): Use it.
48144
48145         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
48146         setenv.h.
48147
48148 2002-12-10  Paul Eggert  <eggert@twinsun.com>
48149
48150         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
48151         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
48152         Choose values that are less likely to collide with system fnmatch
48153         options.
48154         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
48155         defined (e.g., a pure POSIX system).
48156         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
48157         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
48158
48159 2002-12-06  Paul Eggert  <eggert@twinsun.com>
48160
48161         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
48162         a pain in practice to deal with generated m4 files.  This change
48163         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
48164
48165         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
48166         and jm-glibc-io.m4, as they are no longer a special case.
48167         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
48168         kludge and the auto-generation stuff.  Check only whether the
48169         functions are declared, not whether they exist, since older hosts
48170         that don't declare the functions can't use the optimization anyway.
48171
48172 2002-12-06  Jim Meyering  <jim@meyering.net>
48173
48174         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
48175
48176         Merge in changes from libc's misc/error.c, in preparation
48177         for the merge of gnulib's changes back into libc.
48178
48179         * lib/error.c (_): Define only if not already defined.
48180         Move definition to follow all #include directives.
48181         Include unlocked-io.h only if !_LIBC.
48182         [_LIBC]: Include <libio/libioP.h>.
48183         [USE_IN_LIBIO]: Include <libio/iolibio.h>
48184         (fflush): Tweak definition to use INTUSE.
48185         (putc): Define.
48186
48187 2002-12-05  Paul Eggert  <eggert@twinsun.com>
48188
48189         * lib/alloca.c [defined emacs]: Include "lisp.h".
48190         (xalloc_die) [defined emacs]: New macro.
48191         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
48192         [! defined emacs]: Include <xalloc.h>.
48193         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
48194         (pointer): Typedef to POINTER_TYPE *.
48195         (malloc): Remove decl; we now always use xmalloc.
48196         (alloca): Use old-style definition, since Emacs needs this.
48197         Check for arithmetic overflow when computing combined size.
48198
48199 2002-12-04  Paul Eggert  <eggert@twinsun.com>
48200
48201         Do not generate unlocked-io.h automatically, since it's easier to
48202         maintain it by hand.
48203
48204         * lib/unlocked-io.h: New file, from GNU diffutils,
48205         but with proper copyright notice and attribution.
48206         * lib/gen-uio: Remove.
48207         * lib/Makefile.am: Add copyright notice.
48208         (libfetish_a_SOURCES): Add unlocked-io.h.
48209         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
48210         (DISTCLEANFILES, io_functions): Remove macros.
48211         (EXTRA_DIST): Remove gen_uio.
48212         (unlocked-io.h): Remove rule.
48213
48214 2002-12-04  Jim Meyering  <jim@meyering.net>
48215
48216         Reflect the fact that stat.c and lstat.c are no longer generated.
48217         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
48218         (DISTCLEANFILES): Likewise.
48219         (EXTRA_DIST): Likewise.
48220         (all_local): Don't depend on stat.c or lstat.c.
48221         (stat.c, lstat.c): Remove rules.
48222         (EXTRA_DIST): Remove xstat.in.
48223
48224         * lib/xstat.in: Remove file.  Contents moved into stat.c.
48225         * lib/stat.c: New file.  Contents mostly from xstat.in.
48226         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
48227         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
48228
48229         * lib/safe-read.c: Rework so that it may serve to define safe_write,
48230         too.
48231         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
48232
48233 2002-12-03  Jim Meyering  <jim@meyering.net>
48234
48235         * lib/safe-read.c, safe-write.c: Change variable names and comments,
48236         but not semantics, to minimize the differences between these two files.
48237         (safe_read): Change comment to mention SAFE_READ_ERROR.
48238
48239         * lib/safe-read.c (IS_EINTR): Define.
48240         (safe_read): Use IS_EINTR in place of in-function cpp directives.
48241
48242 2002-12-02  Jim Meyering  <jim@meyering.net>
48243
48244         * lib/safe-read.c (EINTR): Define.
48245         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
48246         (INT_MAX): Provide fallback.
48247         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
48248
48249         * lib/safe-read.h (SAFE_READ_ERROR): Define.
48250
48251 2002-12-02  Bruno Haible  <bruno@clisp.org>
48252
48253         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
48254         Define, taken from safe-read.c.
48255         (INT_MAX): Provide fallback.
48256         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
48257         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
48258
48259         * lib/safe-read.c (EINTR): Remove definition.
48260         (safe_read): Don't use EINTR if it is absent.
48261
48262 2002-12-01  Jim Meyering  <jim@meyering.net>
48263
48264         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
48265         zero.
48266         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
48267
48268 2002-11-27  Paul Eggert  <eggert@twinsun.com>
48269
48270         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
48271         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
48272         with `if (! (value < limit)) abort ();', for readability.
48273
48274 2002-11-26  Karl Berry  <karl@gnu.org>
48275
48276         * lib/strdup.c: copy from libc again, with jim's ok.
48277         * lib/.cppi-disable: re-add strdup.c
48278
48279 2002-11-25  Karl Berry  <karl@gnu.org>
48280
48281         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
48282         instead of "strtol.c".
48283
48284 2002-11-25  Karl Berry  <karl@gnu.org>
48285
48286         * config/install-sh: update from automake for variable quoting, $0 in
48287         error msgs, etc.
48288
48289         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
48290         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
48291         entry.
48292
48293 2002-11-25  Jim Meyering  <jim@meyering.net>
48294
48295         * lib/mktime.c: Sync from libc, now that it has the latest fix.
48296
48297 2002-11-24  Karl Berry  <karl@gnu.org>
48298
48299         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
48300         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
48301
48302 2002-11-24  Jim Meyering  <jim@meyering.net>
48303
48304         Update from coreutils:
48305
48306         * lib/mktime.c: Merge in changes from libc.
48307
48308         Avoid a link-time failure on some Linux systems.
48309         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
48310         (otherwise).
48311         (__mon_yday): Declare with the STATIC attribute.
48312         (__mktime_internal): Likewise.
48313         Based on a report from Greg Schafer.
48314
48315 2002-11-23  Jim Meyering  <jim@meyering.net>
48316
48317         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
48318         Use `unsigned', not `int', as type of index.
48319
48320         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
48321
48322         * lib/fsusage.c: Remove unneeded parentheses around operands of
48323         `defined'.
48324
48325 2002-11-22  Paul Eggert  <eggert@twinsun.com>
48326
48327         * lib/quotearg.h: Allow multiple inclusion by surrounding with
48328         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
48329         so that we can be included first.
48330         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
48331         * lib/quotearg.c: Include quotearg.h immediately after config.h.
48332         No need to include stddef.h or sys/types.h any more.
48333         Surround local include files with "", not "<>".
48334         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
48335         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
48336         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
48337         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
48338         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
48339         (ISPRINT): Remove; no longer needed now that we assume C89.
48340
48341         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
48342         Preserve errno.
48343
48344         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
48345         quotearg_char): Use SIZE_MAX rather than
48346         (size_t) -1 when we are talking about "infinity".
48347
48348         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
48349
48350 2002-11-22  Paul Eggert  <eggert@twinsun.com>
48351
48352         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
48353         hint that one should use `if (! x) abort ();' rather than `assert
48354         (x);', and anyway it's one less thing to worry about configuring.
48355         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
48356         hash_rehash, hash_insert): Use abort rather than assert.
48357
48358 2002-11-22  Bruno Haible  <bruno@clisp.org>
48359
48360         * lib/safe-read.h: Assume C89. Add comments.
48361         (safe_read): Change return type to size_t.
48362         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
48363         byte counts > SSIZE_MAX correctly.
48364         * lib/safe-write.h: New file.
48365         * lib/safe-write.c: New file.
48366         * lib/full-read.h: New file.
48367         * lib/full-read.c: New file.
48368         * lib/full-write.h: Assume C89. Add comments.
48369         * lib/full-write.c: Include safe-write.h.
48370         (full_write): Rewritten to use safe_write.
48371         Suggested by Jim Meyering and Paul Eggert.
48372
48373 2002-11-21  Jim Meyering  <jim@meyering.net>
48374
48375         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
48376
48377         Merge in changes from the coreutils.
48378
48379         2002-09-25  Paul Eggert  <eggert@twinsun.com>
48380         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
48381         <stdint.h>.
48382         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
48383         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
48384         int.  Work more efficiently if X is the same width as uintmax_t.
48385         Do not compare X to -1, to avoid bogus compiler warning.
48386         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
48387         Don't assume that f_frsize and f_bsize are the same type.
48388
48389         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
48390         warning on FreeBSD.
48391
48392         * lib/makepath.c (make_path): Restore umask *before* creating the final
48393         component.
48394         (make_path): Minor reformatting.
48395
48396         * lib/xmalloc.c: Adjust to work with new autoconf macros,
48397         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
48398         HAVE_MALLOC/HAVE_REALLOC.
48399
48400         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
48401         dummy ones.  At least on GNU/Linux systems, `auto' means something
48402         else.
48403         From Michael Stone.
48404
48405 2002-11-21  Bruno Haible  <bruno@clisp.org>
48406
48407         Remove case insensitive option matching.
48408         * lib/argmatch.h (argcasematch): Remove declaration.
48409         (ARGCASEMATCH): Remove macro.
48410         (__xargmatch_internal): Remove case_sensitive argument.
48411         (XARGMATCH): Update.
48412         (XARGCASEMATCH): Remove macro.
48413         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
48414         case_sensitive argument.
48415         (argcasematch): Remove function.
48416         (__xargmatch_internal): Remove case_sensitive argument.
48417         (main): Use XARGMATCH instead of XARGCASEMATCH.
48418
48419         * lib/xmalloc.c: Change compile-time error message. Add comment about
48420         required autoconf version.
48421
48422 2002-11-20  Paul Eggert  <eggert@twinsun.com>
48423
48424         Merge argmatch cleanups from Bison.  Assume C89.
48425
48426         * lib/argmatch.c: Include config.h here, not in argmatch.h.
48427         Include stdlib.h, for EXIT_FAILURE.
48428         Always include <string.h>, since we assume C89.
48429         (EXIT_FAILURE): Remove pre-C89 bug workaround.
48430         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
48431         Include <stddef.h> instead, since it's all we need for size_t.
48432         (PARAMS): Remove.  All uses removed.
48433         (ARRAY_CARDINALITY): Do not bother to #undef.
48434         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
48435         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
48436         Remove unnecessary parentheses.
48437         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
48438         Insert necessary parentheses.
48439         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
48440         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
48441
48442 2002-11-19  Bruno Haible  <bruno@clisp.org>
48443
48444         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
48445         * lib/mbswidth.h: Include <stddef.h>, for size_t.
48446
48447         * lib/mbswidth.h (PARAMS): Remove macro.
48448         (mbswidth, mbsnwidth): Use ANSI C function declarations.
48449         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
48450
48451         * lib/gcd.h (PARAMS): Remove macro.
48452         (gcd): Use ANSI C function declarations.
48453         * lib/gcd.c (gcd): Likewise.
48454
48455 2002-11-15  Bruno Haible  <bruno@clisp.org>
48456
48457         * lib/strcspn.c: Include <stddef.h>.
48458         (strcspn): Use ANSI C function declaration. Change return type to
48459         size_t. Use NULL.
48460         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
48461         (strpbrk): Use NULL.
48462         * lib/strpbrk.h (PARAMS): Remove macro.
48463         (strpbrk): Use ANSI C function declaration.
48464         * lib/strstr.c: Don't include <sys/types.h>.
48465         * lib/strstr.h (PARAMS): Remove macro.
48466         (strstr): Use ANSI C function declarations.
48467
48468 2002-11-14  Karl Berry  <karl@gnu.org>
48469
48470         * config/mkinstalldirs: `do' on separate line, instead of
48471         `for var; do'.
48472
48473 2002-11-06  Bruno Haible  <bruno@clisp.org>
48474
48475         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
48476         * lib/gcd.c (gcd): Likewise.
48477
48478 2002-11-05  Bruno Haible  <bruno@clisp.org>
48479
48480         * lib/gcd.h: New file, from gettext-0.11.5.
48481         * lib/gcd.c: New file, from gettext-0.11.5.
48482
48483 2002-11-05  Bruno Haible  <bruno@clisp.org>
48484
48485         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
48486         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
48487         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
48488         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
48489
48490         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
48491         <libintl.h>.
48492         * lib/makepath.c: Include gettext.h instead of <locale.h> and
48493         <libintl.h>.
48494
48495         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
48496         * lib/human.c: Include gettext.h instead of <libintl.h>.
48497         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
48498         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
48499         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
48500         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
48501         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
48502         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
48503         (textdomain): Remove definition.
48504         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
48505
48506         * lib/long-options.c: Remove include of <libintl.h> and definition of
48507         _.
48508         * lib/same.c: Remove include of <libintl.h> and definition of _.
48509
48510 2002-11-04  Owen Taylor  <otaylor@redhat.com>
48511
48512         * lib/config.charset: A few additions for Solaris.
48513
48514 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
48515
48516         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
48517         * lib/localcharset.c (locale_charset): Declare as extern "C".
48518
48519 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
48520
48521         * lib/config.charset: msdos in uk_UA uses CP1125.
48522
48523 2002-11-04  Bruno Haible  <bruno@clisp.org>
48524
48525         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
48526         * lib/strcase.h: New file, from GNU gettext-0.11.5.
48527         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
48528         * lib/strstr.h: New file, from GNU gettext-0.11.5.
48529         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
48530
48531 2002-11-04  Bruno Haible  <bruno@clisp.org>
48532
48533         * lib/localcharset.c (locale_charset): Don't return an empty string.
48534
48535 2002-11-04  Bruno Haible  <bruno@clisp.org>
48536
48537         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
48538         aliases.
48539
48540 2002-11-04  Bruno Haible  <bruno@clisp.org>
48541
48542         * lib/config.charset: Update for newest glibc. Add canonical names
48543         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
48544
48545 2002-11-04  Bruno Haible  <bruno@clisp.org>
48546
48547         * lib/config.charset: Add support for NetBSD.
48548
48549 2002-11-04  Bruno Haible  <bruno@clisp.org>
48550
48551         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
48552
48553 2002-11-01  Bruno Haible  <bruno@clisp.org>
48554
48555         * configure.in: Add AC_CONFIG_AUX_DIR call.
48556         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
48557         test/Makefile.
48558         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
48559
48560 2002-09-28  Karl Berry  <karl@gnu.org>
48561
48562         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
48563         installed automake until the next release, since changes have been
48564         made.
48565
48566 2002-09-25  Karl Berry  <karl@gnu.org>
48567
48568         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
48569         * lib/getopt*: copy from libc/posix.
48570         * lib/gettext.h: copy from gettext.
48571         * lib/.cppi-disable: add strdup.c, gettext.h.
48572
48573 2002-09-25  Karl Berry  <karl@gnu.org>
48574
48575         * config/srclist.txt: enable gettext.h check.
48576         * config/config.{guess,sub}: update from prep.
48577         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
48578                 from automake 1.6.3.
48579         See srclist*.
48580
48581 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
48582
48583         * regex.c (PATFETCH): Remove the translating fetch.
48584         (PATFETCH_RAW): Rename to PATFETCH.
48585         (set_image_of_range): New fun.
48586         (SET_RANGE_TABLE_WORK_AREA): Use it.
48587         (regex_compile): Don't translate the pattern chars so eagerly.
48588         Only do it when inserting an `exactn' bytecode or when handling
48589         a char-range.
48590         (mutually_exclusive_p): Avoid empty statement.
48591
48592 2002-07-06  Jim Meyering  <meyering@lucent.com>
48593
48594         * m4/README: Don't mention Makefile.am.in.
48595         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
48596
48597 2002-07-01  Jim Meyering  <meyering@lucent.com>
48598
48599         * lib/c-stack.c: Include sys/time.h.
48600         From Volker Borchert.
48601
48602 2002-06-26  Paul Eggert  <eggert@twinsun.com>
48603
48604         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
48605
48606 2002-06-26  Paul Eggert  <eggert@twinsun.com>
48607
48608         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
48609         New macro.  Use it uniformly instead of
48610         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
48611         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
48612         reported by Vin Shelton.
48613
48614 2002-06-22  Paul Eggert  <eggert@twinsun.com>
48615
48616         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
48617         Do not assume SA_SIGINFO behavior.
48618         Bug reported by Jim Meyering on NetBSD 1.5.2.
48619
48620 2002-06-22  Jim Meyering  <meyering@lucent.com>
48621
48622         * m4/c-stack.m4: New file, from diffutils-2.8.2.
48623         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
48624
48625         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
48626         now that configure.ac uses AC_GNU_SOURCE.
48627         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
48628         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
48629
48630         Update to latest tools.  Suggestions from Paul Eggert.
48631         * m4/stdbool.m4: New file, from diffutils-2.8.2.
48632         * m4/gnu-source.m4: Update from diffutils-2.8.2.
48633         * m4/fnmatch.m4: Likewise.
48634         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
48635         to AC_HEADER_STDBOOL
48636
48637 2002-06-22  Jim Meyering  <meyering@lucent.com>
48638
48639         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
48640         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
48641
48642 2002-06-22  Jim Meyering  <meyering@lucent.com>
48643
48644         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
48645
48646         * lib/exitfail.c, exitfail.h: Likewise.
48647         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
48648
48649         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
48650         of fnmatch.h.
48651         (EXTRA_DIST): Add fnmatch_loop.c.
48652         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
48653
48654         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
48655         * lib/fnmatch.c: Update from diffutils-2.8.2.
48656         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
48657         * lib/fnmatch.h: Remove file.
48658
48659 2002-06-21  Jim Meyering  <meyering@lucent.com>
48660
48661         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
48662         * m4/mbrtowc.m4: Likewise.
48663
48664         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
48665         * m4/mbswidth.m4: Reflect name change:
48666         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
48667         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
48668
48669         * m4/lib-link.m4: Update from gettext-0.11.2.
48670         * m4/gettext.m4: Likewise.
48671
48672         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
48673         From Alfred M. Szmidt.
48674
48675 2002-06-18  Paul Eggert  <eggert@twinsun.com>
48676
48677         * lib/file-type.h: Report an error if neither S_ISREG nor
48678         S_IFREG is defined, instead of using a test specific to glibc
48679         2.2.  This should be safe, since POSIX requires S_ISREG and
48680         Unix Version 7 had S_IFREG.  We don't need to check for
48681         <sys/types.h> since we don't use any symbols that it defines.
48682
48683 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
48684
48685         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
48686         $@-t, so that each temporary file name is unique and valid in the first
48687         8 characters, for operation under DOS.
48688
48689 2002-06-15  Paul Eggert  <eggert@twinsun.com>
48690
48691         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
48692
48693 2002-06-15  Jim Meyering  <meyering@lucent.com>
48694
48695         Work even with DJGPP 2.03, which lacks support for symlinks.
48696         From Richard Dawe.
48697         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
48698         is defined.
48699         * lib/lchown.c (S_ISLNK): Likewise.
48700
48701 2002-06-15  Jim Meyering  <meyering@lucent.com>
48702
48703         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
48704         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
48705         have been included before this file.
48706
48707 2002-06-14  Jim Meyering  <meyering@lucent.com>
48708
48709         * lib/file-type.h: Use the version from diffutils-2.8.2.
48710         * lib/file-type.c: Likewise.
48711
48712 2002-06-07  Jim Meyering  <meyering@lucent.com>
48713
48714         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
48715         They're needed at least for NetBSD 1.5.2.
48716         ($statxfs_includes): Include those same headers.
48717         ($statxfs_includes): Include sys/vfs.h if available.
48718         ($statxfs_includes): Likewise for sys/statvfs.h.
48719         Check for the following members in both structs statfs and statvfs:
48720         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
48721
48722 2002-06-01  Jim Meyering  <meyering@lucent.com>
48723
48724         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
48725         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
48726
48727 2002-05-28  Jim Meyering  <meyering@lucent.com>
48728
48729         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
48730         Reported by Volker Borchert.
48731
48732 2002-05-27  Jim Meyering  <meyering@lucent.com>
48733
48734         Fix a problem seen only on nonconforming systems whereby ls.c's
48735         use of localtime, and then of gettimeofday would cause trouble:
48736         the localtime call used to initialize rpl_gettimeofday's save
48737         mechanism would clobber ls's current local time information so
48738         that in any long listing the first file would always be listed
48739         with date 1970-01-01.  Analysis by Volker Borchert.
48740
48741         * lib/gettimeofday.c (localtime): Undefine.
48742         (rpl_localtime): New function.
48743
48744 2002-05-27  Jim Meyering  <meyering@lucent.com>
48745
48746         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
48747         localtime.
48748
48749         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
48750         use the replacement function; it wouldn't resolve at link time.
48751         Reported by Volker Borchert.
48752
48753 2002-05-22  Jim Meyering  <meyering@lucent.com>
48754
48755         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
48756         file-type.h.
48757         * lib/file-type.h: New file.
48758         * lib/file-type.c (file_type): New file/function.  Extracted from
48759         diffutils.
48760
48761 2002-04-30  Jim Meyering  <meyering@lucent.com>
48762
48763         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
48764
48765 2002-04-29  Paul Eggert  <eggert@twinsun.com>
48766
48767         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
48768
48769 2002-04-29  Paul Eggert  <eggert@twinsun.com>
48770
48771         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
48772         Do not check for alloca.h (no longer used) or stdbool.h (was never
48773         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
48774
48775 2002-04-29  Paul Eggert  <eggert@twinsun.com>
48776
48777         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
48778
48779 2002-04-29  Jim Meyering  <meyering@lucent.com>
48780
48781         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
48782         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
48783         Use AC_FUNC_STRNLEN here instead.
48784
48785         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
48786         With autoconf-2.53a, it's part of AC_PROG_CC.
48787
48788 2002-04-28  Paul Eggert  <eggert@twinsun.com>
48789
48790         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
48791         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
48792
48793 2002-04-28  Paul Eggert  <eggert@twinsun.com>
48794
48795         * lib/sig2str.h, lib/sig2str.c: New files.
48796         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
48797
48798 2002-04-28  Paul Eggert  <eggert@twinsun.com>
48799
48800         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
48801         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
48802         of 127, since 64 is the largest conceivable number for ancient
48803         nonstandard hosts.
48804         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
48805
48806 2002-04-28  Jim Meyering  <meyering@lucent.com>
48807
48808         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
48809
48810 2002-04-24  Jim Meyering  <meyering@lucent.com>
48811
48812         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
48813         (jm_PREREQ): Use it.
48814
48815         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
48816         mach/mach.h fcntl.h.
48817         Check for this function: setlocale.
48818
48819 2002-04-24  Jim Meyering  <meyering@lucent.com>
48820
48821         * lib/gettext.h: New file, from Gettext.
48822         * lib/Makefile.am (INCLUDES): Remove -I../intl.
48823         (libfetish_a_SOURCES): Add gettext.h.
48824
48825 2002-04-16  Jim Meyering  <meyering@lucent.com>
48826
48827         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
48828         ut_pid, ut_id, ut_exit.
48829
48830 2002-04-16  Jim Meyering  <meyering@lucent.com>
48831
48832         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
48833         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
48834         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
48835
48836 2002-04-12  Jim Meyering  <meyering@lucent.com>
48837
48838         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
48839         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
48840         existence of the getmntinfo function.  Needed for Darwin 5.3.
48841
48842         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
48843         This is necessary at least on Darwin 5.3.
48844
48845         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
48846         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
48847         strnlen.o in the library, and that makes some versions of ranlib
48848         object.
48849
48850 2002-04-12  Jim Meyering  <meyering@lucent.com>
48851
48852         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
48853
48854 2002-04-09  Jim Meyering  <meyering@lucent.com>
48855
48856         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
48857         to be more precise.  Rather than saying we're checking whether the
48858         function `works', say what we're testing.
48859         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
48860         Reported by Bruno Haible.
48861
48862 2002-03-10  Jim Meyering  <meyering@lucent.com>
48863
48864         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
48865         Suggestion from Santiago Vila.
48866
48867 2002-03-08  Jim Meyering  <meyering@lucent.com>
48868
48869         * lib/rename.c: Mention that this wrapper is needed also on
48870         mips-dec-ultrix4.4 systems.
48871
48872 2002-03-02  Jim Meyering  <meyering@lucent.com>
48873
48874         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
48875         not HAVE_CLOCK_SETTIME.
48876
48877 2002-02-27  Paul Eggert  <eggert@twinsun.com>
48878
48879         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
48880         Check for clock_settime.
48881
48882 2002-02-27  Paul Eggert  <eggert@twinsun.com>
48883
48884         * lib/nanosleep.h: Rename to....
48885         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
48886
48887         * lib/gettime.c: New file.
48888         * lib/settime.c: New file.
48889         * lib/stime.c: Remove.
48890
48891         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
48892         timespec.h.  Remove nanosleep.h.
48893
48894 2002-02-25  Paul Eggert  <eggert@twinsun.com>
48895
48896         * m4/acl.m4: New file.
48897         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
48898         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
48899
48900 2002-02-25  Paul Eggert  <eggert@twinsun.com>
48901
48902         * lib/acl.c, lib/acl.h: New files.
48903         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
48904
48905 2002-02-24  Jim Meyering  <meyering@lucent.com>
48906
48907         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
48908         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
48909         cause trouble.  Reported by Nelson Beebe.
48910
48911 2002-02-23  Paul Eggert  <eggert@twinsun.com>
48912
48913         * lib/path-concat.c (xpath_concat): Reorder code to pacify
48914         compilers that don't know that xalloc_die never returns.
48915
48916 2002-02-20  Jim Meyering  <meyering@lucent.com>
48917
48918         * lib/getdate.c: Regenerate using bison-1.33.
48919
48920 2002-02-17  Jim Meyering  <meyering@lucent.com>
48921
48922         * config/config.guess (main): Don't use `head -1'; it's no longer
48923         portable. Use `sed 1q' instead.
48924
48925 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
48926
48927         * m4/codeset.m4: Upgrade to gettext-0.11.
48928         * m4/gettext.m4: Upgrade to gettext-0.11.
48929         * m4/glibc21.m4: Upgrade to gettext-0.11.
48930         * m4/iconv.m4: Upgrade to gettext-0.11.
48931         * m4/isc-posix.m4: Upgrade to gettext-0.11.
48932         * m4/lcmessage.m4: Upgrade to gettext-0.11.
48933         * m4/lib-ld.m4: New file, from gettext-0.11.
48934         * m4/lib-link.m4: New file, from gettext-0.11.
48935         * m4/lib-prefix.m4: New file, from gettext-0.11.
48936         * m4/progtest.m4: Upgrade to gettext-0.11.
48937
48938 2002-02-15  Paul Eggert  <eggert@twinsun.com>
48939
48940         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
48941         (jm_PREREQ): Use it.
48942
48943 2002-02-15  Paul Eggert  <eggert@twinsun.com>
48944
48945         * lib/posixver.c, lib/posixver.h: New files.
48946         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
48947
48948 2002-02-02  Paul Eggert  <eggert@twinsun.com>
48949             Bruno Haible  <bruno@clisp.org>
48950
48951         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
48952         (fwrite_success_callback): New declaration.
48953         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
48954         print_unicode_char. Call failure callback instead of error.
48955         (fwrite_success_callback): New function.
48956         (exit_failure_callback): New function.
48957         (fallback_failure_callback): New function.
48958         (print_unicode_char): Call unicode_to_mb.
48959
48960 2002-01-26  Jim Meyering  <meyering@lucent.com>
48961
48962         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
48963         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
48964
48965 2002-01-26  Jim Meyering  <meyering@lucent.com>
48966
48967         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
48968
48969 2002-01-22  Paul Eggert  <eggert@twinsun.com>
48970
48971         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
48972
48973 2002-01-22  Jim Meyering  <meyering@lucent.com>
48974
48975         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
48976         Otherwise, some versions of automake would omit the rule that makes
48977         Makefile from Makefile.in.
48978
48979 2002-01-21  Paul Eggert  <eggert@twinsun.com>
48980
48981         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
48982         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
48983         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
48984         (memcoll): Set errno to zero if there is no error.
48985
48986         * lib/quotearg.c (quotearg_buffer_restyled):
48987         Fix bug with quoting buffers containing NUL when backslashing escapes.
48988         This bug was exposed by the other changes in this patch.
48989         (quotearg_n_options): New arg ARGSIZE.
48990         All callers changed.
48991         (quoting_options_from_style): New function.
48992         (quotearg_n_style): Use it.
48993         (quotearg_n_style_mem): New function.
48994
48995         * lib/quotearg.h (quotearg_n_style_mem): New function.
48996
48997 2002-01-19  Jim Meyering  <meyering@lucent.com>
48998
48999         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
49000         Remove useless quotes: DF_PROG="df".
49001         * m4/strnlen.m4: New file.
49002
49003 2002-01-16  Paul Eggert  <eggert@twinsun.com>
49004
49005         * lib/backupfile.c (ISDIGIT): Comment fix.
49006         * lib/getdate.y (ISDIGIT): Likewise.
49007         * lib/posixtm.c (ISDIGIT, year): Likewise.
49008         * lib/strverscmp.c (ISDIGIT): Likewise.
49009         * lib/userspec.c (ISDIGIT): Likewise.
49010
49011 2002-01-16  Jim Meyering  <meyering@lucent.com>
49012
49013         * lib/getdate.y: Add three semicolons, each just before a closing
49014         brace. Bison (as of version 1.31) no longer papers over that mistake.
49015
49016 2002-01-05  Jim Meyering  <meyering@lucent.com>
49017
49018         * lib/version-etc.c (version_etc_copyright): Update copyright year.
49019
49020 2001-12-19  Paul Eggert  <eggert@twinsun.com>
49021
49022         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
49023         not silently exit merely because the output buffer happens to
49024         have nothing pending.
49025
49026 2001-12-18  Paul Eggert  <eggert@twinsun.com>
49027
49028         See the big note in ../ChangeLog.
49029         * lib/human.c (suffixes): Prefer K to k for 1024.
49030         (generate_suffix_backwards): New function.
49031         (human_readable_inexact): Use it.
49032         * lib/xstrtol.c (__xstrtol): If there is no number but there
49033         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
49034         Accept 'K' as well as 'k'.
49035
49036 2001-12-15  Jim Meyering  <meyering@lucent.com>
49037
49038         * lib/regex.h (__restrict_arr): Update from libc.
49039
49040         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
49041         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
49042         (STREQ): Define.
49043
49044 2001-12-14  Jim Meyering  <meyering@lucent.com>
49045
49046         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
49047         Suggestion from Bruno Haible.
49048
49049 2001-12-10  Jim Meyering  <meyering@lucent.com>
49050
49051         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
49052         xrealloc, Instead, include "xalloc.h".
49053         (initbuffer): Don't cast xmalloc return value to char*.
49054         (readline): Reword comment.
49055         Don't cast xrealloc return value to char*
49056         Return NULL, not 0.
49057
49058 2001-12-09  Jim Meyering  <meyering@lucent.com>
49059
49060         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
49061         about `signed and unsigned type in conditional expression'.
49062         * lib/posixtm.c (posix_time_parse): Likewise.
49063
49064         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
49065
49066         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
49067         to avoid a pedantic warning.
49068
49069         * lib/getstr.c: Don't include assert.h.
49070         (getstr): Remove warning-evoking assertions.
49071         Return -1 if offset parameter is out of bounds.
49072         Change the type of a local from int to size_t.
49073
49074         * lib/strftime.c (my_strftime_localtime_r): Include this function
49075         definition in the `#if ! HAVE_TM_GMTOFF' block.
49076
49077         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
49078         Include xalloc.h instead.
49079
49080 2001-12-02  Jim Meyering  <meyering@lucent.com>
49081
49082         * lib/tempname.c: Don't declare getenv, thus reverting the change of
49083         2001-11-18.  It's no longer necessary, now that stdlib.h is always
49084         included.
49085
49086         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
49087         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
49088
49089 2001-11-30  Akim Demaille  <akim@epita.fr>
49090
49091         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
49092         before being defined.
49093
49094 2001-11-27  Paul Eggert  <eggert@twinsun.com>
49095
49096         * lib/quotearg.h (quotearg_n, quotearg_n_style):
49097         First arg is int, not unsigned.
49098         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
49099         (SIZE_MAX, UINT_MAX): New macros.
49100         (quotearg_n_options): Abort if N is negative.
49101         Avoid overflow check on hosts where size_t is 64 bits and int
49102         is 32 bits, as overflow is impossible there.
49103         Fix off-by-one typo that caused unnecessary reallocation.
49104
49105 2001-11-27  Jim Meyering  <meyering@lucent.com>
49106
49107         * lib/tempname.c: Merge with version from libc.
49108         * lib/regex.c: Likewise.
49109
49110         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
49111         systems for which STDC_HEADERS is 0, it was not included, resulting in
49112         a warning about an integer-to-pointer conversion problem with getenv.
49113         Reported by Volker Borchert.
49114
49115 2001-11-26  Jim Meyering  <meyering@lucent.com>
49116
49117         * lib/gtod.h: Remove file.
49118         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
49119         * lib/gettimeofday.c: Don't include gtod.h.
49120         (GTOD_init): Remove function.
49121         (rpl_gettimeofday): Do its job here instead, rather than aborting.
49122         Suggestion from Volker Borchert.
49123
49124 2001-11-23  Jim Meyering  <meyering@lucent.com>
49125
49126         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
49127         it.
49128         * lib/hash.c (struct hash_table): Define it here instead.
49129
49130 2001-11-22  Jim Meyering  <meyering@lucent.com>
49131
49132         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
49133
49134 2001-11-20  Jim Meyering  <meyering@lucent.com>
49135
49136         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
49137         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
49138
49139 2001-11-19  Jim Meyering  <meyering@lucent.com>
49140
49141         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
49142         directory.  Use "conftestXXXXXX" as the template.
49143         Suggestion from Paul Eggert.
49144
49145         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
49146         immediately, so the test doesn't mistakenly hit the max-open-files
49147         limit.
49148
49149 2001-11-18  Paul Eggert  <eggert@twinsun.com>
49150
49151         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
49152         (TEMPORARIES): New macro.
49153         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
49154         removes an artificial limitation (e.g. HP-UX 10.20, where
49155         TMP_MAX is 17576).
49156
49157 2001-11-18  Jim Meyering  <meyering@lucent.com>
49158
49159         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
49160
49161 2001-11-18  Jim Meyering  <meyering@lucent.com>
49162
49163         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
49164         on SunOS 4.
49165
49166         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
49167         files will be created before anything else.
49168
49169 2001-11-17  Paul Eggert  <eggert@twinsun.com>
49170
49171         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
49172         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
49173
49174 2001-11-17  Jim Meyering  <meyering@lucent.com>
49175
49176         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
49177         Prompted by a report from Bob Proulx.
49178
49179         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
49180         Instead, require UTILS_FUNC_MKSTEMP.
49181
49182 2001-11-17  Jim Meyering  <meyering@lucent.com>
49183
49184         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
49185         Now, that's done as part of AC_FUNC_STRTOD.
49186
49187 2001-11-17  Jim Meyering  <meyering@lucent.com>
49188
49189         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
49190         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
49191         rather than group writable.  Patch by Juan F. Codagnone.
49192
49193         * lib/readtokens.c: Remove explicit declarations of xmalloc and
49194         xrealloc, Instead, include "xalloc.h".
49195
49196         * lib/mountlist.c: Include unlocked-io.h after all system headers.
49197         Remove explicit declarations of xmalloc, xrealloc,
49198         and xstrdup.  Instead, include "xalloc.h".
49199
49200         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
49201         unlocked-io.h.
49202         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
49203         Likewise.
49204         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
49205
49206         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
49207         Reported by Padraig Brady.
49208
49209         * lib/mkstemp.c: #undef mkstemp.
49210         Include config.h.
49211         (rpl_mkstemp): Rename from mkstemp.
49212         Protoize.
49213
49214 2001-11-16  Jim Meyering  <meyering@lucent.com>
49215
49216         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
49217         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
49218         determine the amount of total physical memory, use pstat_getstatic.
49219         HPUX-11 doesn't define _SC_PHYS_PAGES.
49220         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
49221         If sysconf couldn't be used to determine the amount of available
49222         physical memory, use both pstat_getstatic and pstat_getdynamic.
49223         Based on a patch from Bob Proulx.
49224
49225 2001-11-10  Jim Meyering  <meyering@lucent.com>
49226
49227         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
49228         (jm_PREREQ): Use it.
49229
49230 2001-11-09  Jim Meyering  <meyering@lucent.com>
49231
49232         * m4/jm-macros.m4: Require autoconf-2.52f.
49233         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
49234         Use these AC_-prefixed names, not the AM_-prefixed ones.
49235
49236         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
49237
49238 2001-11-05  Jim Meyering  <meyering@lucent.com>
49239
49240         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
49241
49242 2001-11-04  Jim Meyering  <meyering@lucent.com>
49243
49244         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
49245         $DEFS.
49246
49247 2001-11-03  Jim Meyering  <meyering@lucent.com>
49248
49249         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
49250         of AC_DEFUN.
49251
49252         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
49253         know the name of the variable in the macro definition.
49254
49255 2001-11-03  Jim Meyering  <meyering@lucent.com>
49256
49257         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
49258         in argmatch_to_argument call.
49259
49260         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
49261         argument.
49262
49263         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
49264         e.g., a fault due to an attempt to free a NULL pointer.
49265
49266 2001-11-01  Jim Meyering  <meyering@lucent.com>
49267
49268         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
49269         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
49270
49271 2001-11-01  Jim Meyering  <meyering@lucent.com>
49272
49273         * lib/dirfd.c, lib/dirfd.h: New files.
49274         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
49275
49276         * lib/hash.c (hash_print) [TESTING]: Clean up.
49277
49278 2001-10-22  Paul Eggert  <eggert@twinsun.com>
49279
49280         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
49281         to avoid a warning if -Wall.
49282
49283 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
49284
49285         * README: New file
49286         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
49287         (per RMS's instructions, this is now the canonical source)
49288         * lgpl/, gpl/: New directories.
49289
49290 2001-10-21  Paul Eggert  <eggert@twinsun.com>
49291
49292         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
49293
49294 2001-10-21  Jim Meyering  <meyering@lucent.com>
49295
49296         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
49297         this code would end up calling gettext even in packages built
49298         with --disable-nls.
49299         * lib/getopt.c (_): Likewise.
49300         * lib/regex.c (_): Likewise.
49301
49302 2001-10-20  Paul Eggert  <eggert@twinsun.com>
49303
49304         * m4/error.m4 (jm_PREREQ_ERROR):
49305         Do not invoke AC_CHECK_FUNCS with strerror_r, as
49306         AC_FUNC_STRERROR_R does that.
49307         Check for strerror declaration.
49308
49309         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
49310         are supposed to have them these days.
49311         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
49312         Merge changes from latest Autoconf CVS.
49313         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
49314         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
49315         POSIX decided to standardize on the int flavor of strerror_r.
49316
49317 2001-10-20  Paul Eggert  <eggert@twinsun.com>
49318
49319         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
49320         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
49321         Use strerror_r that is only a macro, even if it is not a function.
49322         (strerror): Check for HAVE_DECL_STRERROR before declaring.
49323         (private_strerror): Use prototypes, not old-style function definition.
49324         (print_errno_message): New function.
49325         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
49326         char*-flavored one.
49327         (error_tail, error, error_at_line): Use it.
49328
49329 2001-10-11  Jim Meyering  <meyering@lucent.com>
49330
49331         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
49332         and quote_n (1, ... to avoid clobbering a buffer.
49333
49334 2001-10-05  Jim Meyering  <meyering@lucent.com>
49335
49336         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
49337         hash-pjw.h.
49338         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
49339         * lib/hash-pjw.h: New file.
49340
49341 2001-09-30  Jim Meyering  <meyering@lucent.com>
49342
49343         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
49344         `struct fsstat' has the `f_fstypename' member.
49345         Use that to define FS_TYPE, which is now used to make
49346         the getfsstat link test tighter.
49347
49348 2001-09-30  Jim Meyering  <meyering@lucent.com>
49349
49350         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
49351         Include <sys/ucred.h>, for Apple Darwin.
49352         Include sys/mount.h and sys/fs_types.h only if available.
49353         (FS_TYPE): Define.
49354         (read_filesystem_list): Use FS_TYPE.
49355
49356 2001-09-29  Paul Eggert  <eggert@twinsun.com>
49357
49358         * lib/exclude.c (excluded_filename): 0 -> false, since it's
49359         a boolean context.
49360
49361 2001-09-29  Jim Meyering  <meyering@lucent.com>
49362
49363         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
49364         [one-argument getmntent function]): Include stdio.h before mntent.h.
49365         SunOS 4.1.x needs it for the declaration of `FILE'.
49366         Patch by Volker Borchert.
49367
49368         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
49369         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
49370         sys/fs_types.h, and make the link-test for getfsstat guard #include
49371         directives with appropriate #if HAVE_*_H tests so that we can
49372         detect getfsstat on Apple Darwin1.3.7 systems.
49373         Reported by Nelson Beebe.
49374         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
49375
49376 2001-09-28  Paul Eggert  <eggert@twinsun.com>
49377
49378         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
49379         #defines strtoimax.  Also treat the other strto* functions
49380         like strtoimax.
49381
49382         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
49383         Check for strtoul and strtoumax,
49384         as those declarations are made even in the signed case.
49385         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
49386         Likewise, for strtol and strtoimax.
49387
49388 2001-09-28  Paul Eggert  <eggert@twinsun.com>
49389
49390         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
49391         #defines strtoimax.  Also treat the other strto* functions
49392         like strtoimax.
49393
49394         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
49395         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
49396         (strtoimax, strtoumax): Do not declare if already defined as a macro.
49397
49398 2001-09-26  Jim Meyering  <meyering@lucent.com>
49399
49400         Most macros in unlocked-io.h had the wrong number of arguments.
49401         * lib/gen-uio: New script.
49402         (USE_UNLOCKED_IO): Define to 1 if not already defined.
49403         * lib/unlocked-io.hin: Remove file.
49404         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
49405         rather than trying to embed it here.
49406         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
49407         Reported by Padraig Brady.
49408
49409 2001-09-25  Volker Borchert  <bt@teknon.de>
49410
49411         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
49412         `result'.
49413
49414 2001-09-24  Jim Meyering  <meyering@lucent.com>
49415
49416         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
49417
49418 2001-09-23  Jim Meyering  <meyering@lucent.com>
49419
49420         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
49421         instead of the mere test for existence of mntent.h.  The latter
49422         would get a false-positive on AIX 3.4 systems.
49423         In the outer getmntent if-block, don't die if neither of the getmntent
49424         tests succeeds.  Instead, just fall through and continue with the
49425         remaining tests.
49426
49427 2001-09-23  Jim Meyering  <meyering@lucent.com>
49428
49429         * lib/mountlist.c: Remove useless parentheses in #if directives.
49430         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
49431         the deprecated MOUNTED symbol is no longer defined in mntent.h.
49432
49433 2001-09-22  Jim Meyering  <meyering@lucent.com>
49434
49435         * m4/gettext.m4: New file.  From gettext.
49436         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
49437         * m4/progtest.m4: Likewise
49438         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
49439         * m4/glibc21.m4: Likewise.
49440
49441         * m4/libintl.m4: Remove.  No longer used.
49442
49443 2001-09-22  Jim Meyering  <meyering@lucent.com>
49444
49445         * lib/localcharset.c: Update from latest gettext.
49446         * lib/config.charset: Likewise.
49447
49448 2001-09-20  Jim Meyering  <meyering@lucent.com>
49449
49450         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
49451         strtoimax.
49452         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
49453         strtoumax.
49454
49455 2001-09-20  Jim Meyering  <meyering@lucent.com>
49456
49457         * lib/xstrtol.c (strtoimax): Guard declaration with
49458         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
49459         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
49460         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
49461         (strtoumax): Likewise, for completeness (it wasn't necessary).
49462
49463 2001-09-17  Paul Eggert  <eggert@twinsun.com>
49464
49465         * lib/strtoimax.c (HAVE_LONG_LONG):
49466         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
49467         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
49468         to work around bug in IBM C compiler.
49469
49470 2001-09-17  Jim Meyering  <meyering@lucent.com>
49471
49472         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
49473         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
49474         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
49475         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
49476         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
49477         whenever the right hand side need not be expanded by the shell.
49478
49479 2001-09-16  Paul Eggert  <eggert@twinsun.com>
49480
49481         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
49482         library.  It's not correct, as some older glibcs are buggy.
49483         fnmatch wasn't fixed until glibc 2.2.
49484
49485         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
49486         special shell magic here.
49487
49488 2001-09-16  Jim Meyering  <meyering@lucent.com>
49489
49490         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
49491         * m4/jm-macros.m4: Require it.
49492
49493 2001-09-16  Jim Meyering  <meyering@lucent.com>
49494
49495         * lib/mkdir.c: New file.
49496
49497 2001-09-15  Jim Meyering  <meyering@lucent.com>
49498
49499         * m4/jm-macros.m4: Check for help2man.
49500
49501 2001-09-11  Jim Meyering  <meyering@lucent.com>
49502
49503         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
49504         The body, by Paul Eggert, was moved here from configure.in.
49505         * m4/jm-macros.m4: Require UTILS_HOST_OS.
49506
49507 2001-09-04  Paul Eggert  <eggert@twinsun.com>
49508
49509         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
49510         (jm_PREREQ): Use it.
49511
49512 2001-09-04  Paul Eggert  <eggert@twinsun.com>
49513
49514         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
49515         Use ssize_t, not int, to store result of readlink.
49516         Check for ssize_t overflow as well as size_t overflow,
49517         as POSIX says the result of readlink is implementation-defined
49518         when ssize_t overflows.
49519         Remove unnecessary cast to char*.
49520         Use free+malloc instead of realloc, as the storage doesn't need
49521         to be preserved and it's clearer and can be more efficient that way.
49522         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
49523         * lib/xreadlink.h (xreadlink): Update prototype.
49524
49525 2001-09-04  Paul Eggert  <eggert@twinsun.com>
49526
49527         * lib/xgetcwd.c: Revert some of the previous change; intead,
49528         fix the HAVE_GETCWD_NULL code to behave more like the
49529         !HAVE_GETCWD_NULL code used to.
49530
49531         Include "xalloc.h".
49532         (xgetcwd): Do not return NULL when memory is exhausted; instead,
49533         invoke xalloc_die.
49534
49535 2001-09-03  Paul Eggert  <eggert@twinsun.com>
49536
49537         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
49538         sys/param.h, as pathmax.h includes them.
49539
49540 2001-09-03  Paul Eggert  <eggert@twinsun.com>
49541
49542         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
49543         (jm_PREREQ_XGETCWD): New macro.
49544
49545         * m4/getcwd.m4: New file.
49546
49547 2001-09-03  Paul Eggert  <eggert@twinsun.com>
49548
49549         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
49550         like the HAVE_GETCWD_NULL code.
49551         Include pathmax.h if not HAVE_GETCWD.
49552         Do not include xalloc.h.
49553         (INITIAL_BUFFER_SIZE): New symbol.
49554         Do not use xmalloc / xrealloc, since the caller is responsible for
49555         handling errors.  Preserve errno around `free' during failure.
49556         Do not overrun buffer when using getwd.
49557
49558 2001-09-03  Paul Eggert  <eggert@twinsun.com>
49559
49560         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
49561         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
49562         getcwd (NULL, 0).
49563
49564 2001-09-03  Paul Eggert  <eggert@twinsun.com>
49565
49566         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
49567         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
49568         spotted by Jim Meyering.
49569
49570 2001-09-03  Jim Meyering  <meyering@lucent.com>
49571
49572         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
49573         failure.
49574
49575 2001-09-02  Jim Meyering  <meyering@lucent.com>
49576
49577         * lib/error.c: Update from GNU libc.
49578
49579 2001-09-01  Jim Meyering  <meyering@lucent.com>
49580
49581         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
49582         Used by df.
49583
49584 2001-09-01  Jim Meyering  <meyering@lucent.com>
49585
49586         * lib/xreadlink.c: New file.
49587         * lib/xreadlink.h: New file.
49588         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
49589         xreadlink.h.
49590
49591         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
49592         doesn't conflict with sparc Solaris 7's definition in
49593         /usr/include/sys/int_types.h.
49594
49595         * lib/exclude.c: Use `""', not `<>' to #include non-system header
49596         files.
49597         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
49598         and strncasecmp as r-values.  Unixware didn't have declarations.
49599
49600 2001-08-31  Paul Eggert  <eggert@twinsun.com>
49601
49602         * lib/xstrtol.h: Add copyright notice.
49603         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
49604         LONGINT_INVALID_SUFFIX_CHAR.
49605
49606 2001-08-31  Paul Eggert  <eggert@twinsun.com>
49607
49608         * lib/xstrtol.c (strtoimax): New decl.
49609
49610 2001-08-31  Paul Eggert  <eggert@twinsun.com>
49611
49612         * lib/xgetcwd.c: Don't include pathmax.h.
49613         Include stdlib.h and unistd.h if available.
49614         Include xalloc.h.
49615         (xmalloc, xstrdup, free): Remove decls.
49616         (xgetcwd): Don't assume sizes fit in unsigned.
49617         Check for overflow when computing sizes.
49618         Simplify reallocation code.
49619
49620 2001-08-31  Paul Eggert  <eggert@twinsun.com>
49621
49622         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
49623         a directory's st_size can have an arbitrary value, so the old
49624         usage could waste an arbitrary amount of memory.  All uses
49625         changed.
49626         * lib/savedir.h: Update prototype.
49627
49628 2001-08-31  Paul Eggert  <eggert@twinsun.com>
49629
49630         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
49631
49632         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
49633         old strtoimax.c.
49634
49635         Also, make the following further changes to make this file's
49636         configuration more similar to that of strtol.c:
49637         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
49638         (strtoumax, uintmax_t, strtoull, strtol): Remove.
49639         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
49640         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
49641         changed to signed values.
49642
49643         And make the following changes as well:
49644         Fix copyright notice, as 1999 was missing.
49645         (verify): New macro.
49646         (strtoimax): Check sizes at compile-time, not run-time.
49647         Prefer strtol to strtoll if both work.
49648         (main): Remove; it was not that useful and was a pain to maintain.
49649
49650         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
49651
49652 2001-08-31  Jim Meyering  <meyering@lucent.com>
49653
49654         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
49655         Use an initial, malloc'd, buffer of length 128 rather than
49656         a statically allocated one of length 1024.
49657
49658 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49659
49660         Simplify code, partly by assuming autoconf 2.52 semantics.
49661
49662         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
49663
49664         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
49665         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
49666         All uses removed.
49667         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
49668         Move AC_REQUIRE to next-to-top level, to avoid confusion.
49669         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
49670         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
49671         jm_AC_HEADER_INTTYPES_H.
49672         * m4/jm-macros.m4 (jm_MACROS): Likewise.
49673
49674         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
49675
49676         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
49677         Quote first arg of AC_DEFUN.
49678         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
49679         since they are needed to parse the include file even if we need
49680         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
49681         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
49682         but with opposite signedness.
49683
49684 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49685
49686         Merge 'exclude' changes from tar 1.13.22.
49687         This fixes one or two unlikely storage allocation overflow bugs,
49688         but doesn't change user-visible behavior otherwise.
49689
49690 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49691
49692         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
49693         (jm_PREREQ_EXCLUDE): New macro.
49694
49695 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49696
49697         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
49698         tm to be declared.
49699
49700 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49701
49702         * lib/hash.c: Remove '2001' from copyright notice.
49703
49704 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49705
49706         * lib/full-write.h: New file.
49707         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
49708         * lib/full-write.c: Correct credits, as cccp.c no longer
49709         exists and anyway it was so heavily changed from the old cccp
49710         code as to be unrecognizable.  Include full-write.h.
49711         (full_write) Return size_t, with short writes meaning failure.
49712         All callers changed.  This fixes a bug with large buffers
49713         on 64-bit hosts.
49714         * lib/utime.c: Include full-write.h.
49715
49716 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49717
49718         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
49719         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
49720         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
49721         Include if available.
49722         (<xalloc.h>): Include
49723         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
49724         (verify): New macro.  Use it to verify that EXCLUDE macros do not
49725         collide with FNM macros.
49726         (struct patopts): New struct.
49727         (struct exclude): Use it, as exclude patterns now come with options.
49728         (new_exclude): Support above changes.
49729         (new_exclude, add_exclude_file):
49730         Initial size must now be a power of two to simplify overflow checking.
49731         (free_exclude, fnmatch_no_wildcards): New function.
49732         (excluded_filename): No longer requires options arg, as the options
49733         are determined by add_exclude.  Now returns bool, not int.
49734         (excluded_filename, add_exclude):
49735         Add support for the fancy new exclusion options.
49736         (add_exclude, add_exclude_file): Now takes int options arg.
49737         Check for arithmetic overflow when computing sizes.
49738         (add_exclude_file): xrealloc might modify errno, so don't
49739         realloc until after errno might be used.
49740
49741         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
49742         New macros.
49743         (free_exclude): New decl.
49744         (add_exclude, add_exclude_file): Now takes int options arg.
49745         (excluded_filename): No longer requires options arg, as the options
49746         are determined by add_exclude.  Now returns bool, not int.
49747
49748 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49749
49750         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
49751
49752 2001-08-27  Jim Meyering  <meyering@lucent.com>
49753
49754         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
49755
49756         * lib/version-etc.c (N_): Remove definition.
49757         Revert most of last change.
49758         Instead, simply don't mark the `Copyright...' string for translation.
49759         Based on advice from Paul Eggert.
49760
49761         * lib/strtoxmax.c: Tweak comment.
49762
49763 2001-08-26  Jim Meyering  <meyering@lucent.com>
49764
49765         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
49766
49767         * m4/xstrtoimax.m4: New file.
49768         * m4/xstrtoumax.m4: Add comments explaining why we
49769         AC_REPLACE_FUNCS(strtol).
49770
49771 2001-08-26  Jim Meyering  <meyering@lucent.com>
49772
49773         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
49774         of copyright with `%s' so translators don't get an untranslated
49775         message in 2002.
49776         (COPYRIGHT_YEAR): Define.
49777         (version_etc): Use fprintf rather than fputs.
49778         Suggestion from Ulrich Drepper.
49779
49780         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
49781
49782         * lib/strtoll.c: New file, from GNU libc.
49783         * lib/xstrtoimax.c: New file.
49784
49785         * lib/xstrtol.h: Add xstrtoimax.
49786         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
49787         * lib/strtoimax.c: New file.  Likewise, but first define
49788         STRTOUXMAX_SIGNED.
49789
49790         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
49791         ...
49792         * lib/strtoxmax.c: ... then renamed to this.
49793
49794 2001-08-18  Paul Eggert  <eggert@twinsun.com>
49795
49796         * m4/inttypes.m4: Add AC_PREREQ(2.13).
49797         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
49798         (jm_AC_TYPE_INTMAX_T): New macro.
49799         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
49800
49801         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
49802
49803         * m4/longlong.m4: Renamed from ulonglong.m4.
49804         * m4/inttypes.m4: Renamed from inttypes_h.m4.
49805         * m4/uintmax_t.m4: Removed.
49806
49807 2001-08-13  Paul Eggert  <eggert@twinsun.com>
49808
49809         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
49810         Port to Solaris 8, where 'sed' requires a space after the 'r'
49811         command, and where sh dislikes "$/".  Clean up the spacing a bit.
49812         Redirect output to $tmp just once.
49813
49814 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
49815
49816         * lib/addext.c (<errno.h>): Include.
49817         (errno): Declare if not defined.
49818         (addext): Work correctly when pathconf returns -1 and leaves
49819         errno alone because there is no limit.  Also, work even if
49820         pathconf returns a value greater than SIZE_MAX.
49821
49822 2001-08-12  Jim Meyering  <meyering@lucent.com>
49823
49824         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
49825         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
49826         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
49827         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
49828         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
49829         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
49830         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
49831         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
49832         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
49833         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
49834         utime.m4, utimes.m4, xstrtoumax.m4:
49835         Quote the first argument in each use of AC_DEFUN.
49836
49837 2001-08-12  Jim Meyering  <meyering@lucent.com>
49838
49839         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
49840         Simply `return getcwd (NULL, 0);'.
49841         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
49842         Use 1300 as initial value for length, not PATH_MAX.
49843
49844         * lib/pathmax.h: Clean up cpp syntax.
49845
49846 2001-08-12  Jim Meyering  <meyering@lucent.com>
49847
49848         * lib/gettimeofday.c: New file.
49849         * lib/gtod.h: New file.
49850         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
49851
49852 2001-08-05  Jim Meyering  <meyering@lucent.com>
49853
49854         * m4/jm-macros.m4: Require autoconf-2.52.
49855
49856 2001-08-04  Jim Meyering  <meyering@lucent.com>
49857
49858         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
49859         stmt, to get in sync with glibc.
49860
49861 2001-08-03  Paul Eggert  <eggert@twinsun.com>
49862
49863         The following changes are from gettext 0.10.39 as maintained by
49864         Bruno Haible.
49865
49866         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
49867         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
49868         with inverted sense.  All uses changed.
49869
49870         * lib/mbswidth.c: Don't include <limits.h>.
49871         Include <stdlib.h> and <string.h> unconditionally.
49872         (iswcntrl, mbsinit, ISCNTRL): New macros.
49873         (mbsnwidth): Use K&R style function declarations.
49874         Don't bother checking for MB_LEN_MAX == 1, since the compiler
49875         can optimize it when MB_CUR_MAX == 1.
49876         The width of control characters is zero, not 1.
49877
49878 2001-08-03  Paul Eggert  <eggert@twinsun.com>
49879
49880         The following changes are from gettext 0.10.39 as maintained by
49881         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
49882
49883         * m4/codeset.m4: Upgrade to serial AM1.
49884         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
49885         all uses changed.  Quote first arg of AC_DEFUN.
49886         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
49887
49888         * m4/iconv.m4: Upgrade to serial AM2.
49889         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
49890         Add --with-libconv-prefix.
49891         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
49892         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
49893         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
49894         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
49895         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
49896
49897         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
49898         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
49899         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
49900         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
49901         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
49902         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
49903         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49904         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
49905         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
49906
49907         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
49908         string.h any more.
49909
49910         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
49911         not the default value.
49912
49913         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
49914         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
49915         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
49916         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
49917         Also check for iswcntrl, used for wcwidth fallback.
49918         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
49919         to Autoconf 2.13.
49920
49921 2001-08-03  Jim Meyering  <meyering@lucent.com>
49922
49923         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
49924         as it was in the original.  Reported by Paul Eggert.
49925
49926 2001-07-16  Jim Meyering  <meyering@lucent.com>
49927
49928         * m4/gettimeofday.m4: New file.
49929         Prompted by a report from Bernhard Baehr.
49930
49931 2001-07-15  Jim Meyering  <meyering@lucent.com>
49932
49933         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
49934         stuff. Now it's in ../Makefile.cfg.
49935
49936 2001-07-15  Jim Meyering  <meyering@lucent.com>
49937
49938         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
49939         (BUILT_SOURCES): Add unlocked-io.h.
49940         (io_functions): Define.
49941         (unlocked-io.h): New rule.
49942         (DISTCLEANFILES): Add unlocked-io.h.
49943         (all-local): Depend on unlocked-io.h, to ensure it is created.
49944
49945         * lib/unlocked-io.hin: New file
49946
49947         * lib/regex.c: Update from glibc.
49948
49949 2001-07-05  Jim Meyering  <meyering@lucent.com>
49950
49951         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
49952         recommendation.
49953         (libfetish_a_SOURCES): Put all .h files here instead.
49954         Remove a thus-exposed (better checks in automake) duplicate and
49955         two unnecessary .h files.
49956
49957 2001-07-04  Jim Meyering  <meyering@lucent.com>
49958
49959         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
49960         that generates jm-glibc-io.m4 so that it doesn't trigger any make
49961         distcheck failure.
49962
49963 2001-07-02  Jim Meyering  <meyering@lucent.com>
49964
49965         The following changes were prompted by suggestions from Bruno Haible.
49966
49967         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
49968         is now generated.
49969         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
49970         definition of EXTRA_DIST.
49971         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
49972         ensure that the generated file is created/updated whenever the list
49973         of $(unlocked_functions) is changed.
49974         (jm-glibc-io.m4): New rule.
49975         (unlocked-io.h): New rule -- currently unused.
49976
49977 2001-06-24  Jim Meyering  <meyering@lucent.com>
49978
49979         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
49980         unmatched right bracket, rather than kludging it with an extra,
49981         falsely-matching quote in a comment.  Patch by Akim Demaille.
49982
49983 2001-06-11  Jim Meyering  <meyering@lucent.com>
49984
49985         * lib/regex.c: Update from GNU libc.
49986
49987 2001-05-27  Jim Meyering  <meyering@lucent.com>
49988
49989         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
49990         Check for ut_type in struct utmp.
49991
49992 2001-05-27  Jim Meyering  <meyering@lucent.com>
49993
49994         * lib/readutmp.h (UT_TYPE): Define.
49995
49996 2001-05-24  Jim Meyering  <meyering@lucent.com>
49997
49998         * lib/argmatch.c: Include "quote.h".
49999         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
50000         quote function.  Reported by Göran Uddeborg.
50001
50002 2001-05-22  Jim Meyering  <meyering@lucent.com>
50003
50004         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
50005         now that we use the package-supplied version unconditionally.
50006         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
50007
50008 2001-05-21  Jim Meyering  <meyering@lucent.com>
50009
50010         * m4/regex.m4: Change a couple backticks to single quotes to avoid
50011         shell syntax errors.
50012
50013 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
50014
50015         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
50016
50017 2001-05-20  Paul Eggert  <eggert@twinsun.com>
50018
50019         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
50020         Don't bother to check library strftime, since
50021         we'll be using our own my_strftime function anyway.
50022         Define my_strftime instead of strftime.
50023
50024 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
50025
50026         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
50027         which is not yet declared.
50028
50029 2001-05-15  Jim Meyering  <meyering@lucent.com>
50030
50031         * m4/regex.m4: Use proper quoting so brackets appear in the test
50032         program.
50033         Reported by, and with help from, Bruno Haible.
50034
50035 2001-05-13  Jim Meyering  <meyering@lucent.com>
50036
50037         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
50038         undefined.
50039
50040 2001-05-11  Paul Eggert  <eggert@twinsun.com>
50041
50042         dirname code cleanup.  base_name now behaves more compatibly
50043         with POSIX basename when given file names that have trailing
50044         slashes, and similarly for dir_name.  Add new primitives
50045         base_len and dir_len.  Put the directory-name-related decls
50046         into dirname.h.
50047
50048         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
50049         * lib/backupfile.c (base_name): Likewise.
50050         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
50051         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
50052         * lib/makepath.c (strip_trailing_slashes): Likewise.
50053         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
50054         ISSLASH): Likewise.
50055         * lib/rename.c (strip_trailing_slashes): Likewise.
50056         * lib/same.c (base_name): Likewise.
50057         * lib/stripslash.c (ISSLASH): Likewise.
50058
50059         * lib/addext.c: Include <dirname.h> after size_t is defined.
50060         * lib/backupfile.c: Likewise.
50061
50062         * lib/addext.c (addext): Use base_len to trim redundant
50063         trailing slashes instead of doing it ourselves.
50064         But do not trim the last slash if it is not redundant.
50065
50066         * lib/backupfile.c (find_backup_file_name,
50067         max_backup_version): Use base_len instead of rolling it ourselves.
50068         Handle the case of "" and (on DOS) "C:" correctly.
50069
50070         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
50071         needed. Include <string.h>, <dirname.h>.
50072         (base_name): Allow file names ending in slashes, other than names
50073         that are all slashes.  In this case, return the basename followed
50074         by the slashes.  This is more general, and can be used in places
50075         where the original base_name purposely had an assertion failure.
50076         (base_len): New function.
50077
50078         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
50079         Do not include <assert.h>; no longer needed.
50080         Include xalloc.h.
50081         (memrchr): Remove decl.
50082         (dir_name_r): Remove.
50083         (dir_len): Renamed from dirlen.  All callers changed.
50084         Rewrite in terms of base_name, for simplicity and consistency.
50085         (dir_name): Never return NULL.  All callers changed.
50086         Do not include <stdlib.h> in test program; no longer needed.
50087         return 0; is fine for test program.
50088
50089         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
50090         New macros.
50091         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
50092
50093         * lib/path-concat.c (path_concat): Use base_len to compute
50094         base length, not strlen; this means we cannot rely on memcpy
50095         to null-terminate.
50096
50097         * lib/same.c (STREQ): Remove.
50098         (same_name): Handle the case where the basename ends in trailing '/'.
50099
50100         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
50101         a slash was stripped.  Do not strip the last slash after a
50102         file system prefix.
50103
50104 2001-05-11  Paul Eggert  <eggert@twinsun.com>
50105
50106         * lib/Makefile.am (libfetish_a_SOURCES):
50107         Add strftime.c, since we now compile it on all hosts.
50108
50109         * lib/strftime.c (my_strftime):
50110         Define to nstrftime if emacs, but only if my_strftime is not defined.
50111         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
50112         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
50113         Add one more extra argument: a nanoseconds value.
50114         All uses changed.
50115         (ns): New macro.
50116         (my_strftime function): Add %N format.
50117         (emacs_strftimeu): Renamed from emacs_strftime,
50118         with extra ut argument.
50119
50120 2001-05-09  Paul Eggert  <eggert@twinsun.com>
50121
50122         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
50123
50124 2001-04-21  Jim Meyering  <meyering@lucent.com>
50125
50126         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
50127         doesn't interfere.
50128
50129 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
50130
50131         * m4/ftruncate.m4: Check for chsize.
50132         Link with ftruncate.o unconditionally if ftruncate is missing.
50133         This was required when cross-compiling to i586-mingw32msvc.
50134
50135 2001-04-08  Jim Meyering  <meyering@lucent.com>
50136
50137         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
50138         recomputed; that's necessary when the offset spans a DST transition.
50139         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
50140
50141 2001-04-02  Jim Meyering  <meyering@lucent.com>
50142
50143         * lib/regex.h, regex.c: Update from GNU libc.
50144
50145 2001-03-24  Jim Meyering  <meyering@lucent.com>
50146
50147         * m4/jm-macros.m4: Require autoconf-2.49d.
50148
50149 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
50150
50151         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
50152
50153 2001-03-19  Paul Eggert  <eggert@twinsun.com>
50154
50155         * lib/version-etc.c (version_etc_copyright): Update to 2001.
50156
50157 2001-03-17  Jim Meyering  <meyering@lucent.com>
50158
50159         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
50160         now that the version in autoconf is equivalent.
50161         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
50162
50163         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
50164         Suggestion from Akim Demaille.
50165
50166         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
50167         (jm_PREREQ_TEMPNAME): New function.
50168
50169 2001-03-16  Paul Eggert  <eggert@twinsun.com>
50170
50171         * lib/tempname.c (uint64_t): Define to uintmax_t if
50172         not defined, and if UINT64_MAX is not defined.
50173         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
50174         Reported by John David Anglin.
50175
50176 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
50177
50178         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
50179         resolve alias if codeset is empty.
50180         * lib/config.charset (BeOS): Use wildcard syntax.
50181
50182 2001-03-13  Jim Meyering  <meyering@lucent.com>
50183
50184         * lib/path-concat.c (path_concat)
50185         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
50186         concatenating e.g., `C:' and `foo'.
50187         From Bruno Haible.
50188
50189 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
50190
50191         * lib/localcharset.c (locale_charset): Don't use
50192         setlocale(LC_CTYPE,NULL). Don't return NULL.
50193         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
50194
50195 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
50196
50197         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
50198         support for DOS/DJGPP.
50199
50200 2001-03-01  Paul Eggert  <eggert@twinsun.com>
50201
50202         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
50203         lacks mkstemp.  Compile our own tempname.c if we compile our own
50204         mkstemp.c, as mkstemp relies on tempname.
50205
50206 2001-03-01  Jim Meyering  <meyering@lucent.com>
50207
50208         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
50209         AH_VERBATIM really does output its argument verbatim.
50210
50211 2001-02-28  Paul Eggert  <eggert@twinsun.com>
50212
50213         * lib/Makefile.am (libfetish_a_SOURCES):
50214         Add dup-safer.c, fopen-safer.c.
50215         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
50216
50217         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
50218         * lib/unistd-safer.h: New files.
50219
50220 2001-02-25  Paul Eggert  <eggert@twinsun.com>
50221
50222         The mkstemp replacement is taken from glibc 2.2.2, with some
50223         portability fixes for use outside glibc, as follows:
50224
50225         * lib/tempname.c (struct_stat64): New macro.
50226         (direxists, __gen_tempname): Use it.
50227         This avoids a portability problem with Solaris 8.
50228
50229         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
50230         (<stddef.h>, <stdint.h>, <string.h>):
50231         Include only if STDC_HEADERS || _LIBC.
50232         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
50233         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
50234         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
50235         (__set_errno): Define this macro if <errno.h> doesn't.
50236         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
50237         Define these macros if <stdio.h> doesn't.
50238         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
50239         Define these macros if <sys/stat.h>
50240         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
50241         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
50242         __xstat64): Define if not _LIBC.
50243         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
50244         (__gen_tempname): Invoke gettimeofday only if
50245         HAVE_GETTIMEOFDAY || _LIBC;
50246         otherwise, fall back on plain "time".
50247         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
50248
50249         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
50250
50251         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
50252
50253 2001-02-18  Paul Eggert  <eggert@twinsun.com>
50254
50255         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
50256
50257 2001-02-17  Paul Eggert  <eggert@twinsun.com>
50258
50259         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
50260         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
50261         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
50262         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
50263
50264 2001-02-17  Paul Eggert  <eggert@twinsun.com>
50265
50266         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
50267         Remove workaround macros for hosts that have mbrtowc but not
50268         mbstate_t, as we now insist on proper declarations for both
50269         before using mbrtowc.
50270
50271 2001-02-17  Jim Meyering  <meyering@lucent.com>
50272
50273         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
50274         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
50275         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
50276         UnixWare 7.1.1.
50277
50278         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
50279         rather than AC_CACHE_VAL.
50280
50281 2001-02-17  Jim Meyering  <meyering@lucent.com>
50282
50283         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
50284         around included file name.
50285
50286         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
50287
50288         * lib/strftime.c: Update from GNU libc (the only changes were to
50289         comments).
50290
50291 2001-02-17  Jim Meyering  <meyering@lucent.com>
50292
50293         * lib/regex.c: Update from libc.
50294
50295 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
50296
50297         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
50298         clash.
50299
50300 2001-02-16  Paul Eggert  <eggert@twinsun.com>
50301
50302         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
50303         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
50304         Reported by Mark Hounschell via Paul Eggert.
50305
50306 2001-02-07  Jim Meyering  <meyering@lucent.com>
50307
50308         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
50309
50310 2001-02-05  Jim Meyering  <meyering@lucent.com>
50311
50312         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
50313         it includes the patch required for `large file' support with at least
50314         HP-UX's 10.20 /bin/cc.
50315
50316 2001-02-03  Jim Meyering  <meyering@lucent.com>
50317
50318         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
50319         AS_IF, now that it works once again (mysteriously).
50320         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
50321
50322 2001-01-30  Jim Meyering  <meyering@lucent.com>
50323
50324         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
50325         * m4/chown.m4: Rename conftestchown to conftest.chown.
50326         * m4/rename.m4: s/conftestdir/conftest.d1/ and
50327         s/conftestdir2/conftest.d2/.
50328         * m4/utimes.m4: s/conftestdata/conftest.data/
50329         Inspired by Pavel Roskin's change in autoconf.
50330
50331 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
50332
50333         * lib/config.charset: Update for FreeBSD 4.2.
50334
50335 2001-01-27  Jim Meyering  <meyering@lucent.com>
50336
50337         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
50338         a use of AS_IF.
50339         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
50340
50341 2001-01-26  Jim Meyering  <meyering@lucent.com>
50342
50343         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
50344         quotearg.c includes it.
50345
50346 2001-01-26  Jim Meyering  <meyering@lucent.com>
50347
50348         * lib/quotearg.c: Include stddef.h.
50349         * lib/quote.c: Include stddef.h.
50350         Reported by Axel Kittenberger.
50351
50352         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
50353         line in double quotes so that it evokes a better diagnostic.
50354         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
50355         Reported by Axel Kittenberger.
50356
50357 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
50358
50359         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
50360         as if it was a `charset'.
50361
50362 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
50363
50364         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
50365         has const.
50366
50367 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
50368
50369         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
50370         to avoid a warning.  Add back 'const' to inptr.
50371
50372 2001-01-20  Jim Meyering  <meyering@lucent.com>
50373
50374         Be sure that headers are checked before used in code compiled
50375         for the type checks.
50376         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
50377         In place of that, invoke jm_CHECK_ALL_TYPES.
50378         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
50379         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
50380         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
50381         The check for ssize_t was mistakenly run before the test for unistd.h.
50382
50383         The configure-time check for stdbool.h was missing.
50384         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
50385         (jm_PREREQ_HASH): New function.
50386
50387 2001-01-17  Jim Meyering  <meyering@lucent.com>
50388
50389         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
50390         for autoconf-2.49c.
50391         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
50392
50393 2001-01-16  Jim Meyering  <meyering@lucent.com>
50394
50395         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
50396         From Bruno Haible.
50397
50398 2001-01-14  Jim Meyering  <meyering@lucent.com>
50399
50400         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
50401         foo and bar.  Create conftestdir/ in the script, not in the C code.
50402         Remove directories in the script, not in the C code.
50403         Remove conftestdir{,2} before trying to create the directory.
50404         Make the entire configure script fail if the mkdir fails.
50405
50406 2001-01-14  Jim Meyering  <meyering@lucent.com>
50407
50408         * lib/rename.c: New file.  From Volker Borchert.
50409         Include stdlib.h, string.h or strings.h, and xalloc.h.
50410         Use strip_trailing_slashes rather than open-coding it.
50411
50412 2001-01-03  Paul Eggert  <eggert@twinsun.com>
50413
50414         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
50415
50416 2001-01-03  Jim Meyering  <meyering@lucent.com>
50417
50418         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
50419         of local `inptr' to avoid warning with some system declarations of
50420         iconv.
50421
50422 2001-01-02  Volker Borchert  <bt@teknon.de>
50423
50424         * m4/rename.m4: New file.
50425         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
50426
50427 2001-01-01  Jim Meyering  <meyering@lucent.com>
50428
50429         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
50430         even on systems with utmpx.h.  It's necessary for the declaration of
50431         utmp's ut_user member.  Reported by Andreas Jaeger.
50432
50433         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
50434         available. They are required for the declarations of getgrgid and
50435         getpwuid resp.
50436         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
50437         Reported by Andreas Jaeger.
50438
50439 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
50440
50441         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
50442         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
50443         so `make install' also works in VPATH builds.
50444
50445 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
50446
50447         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
50448         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
50449         can be used in subdirectories.
50450
50451 2000-12-29  Paul Eggert  <eggert@twinsun.com>
50452
50453         * lib/modechange.c: Do not assume that mode_t uses the
50454         traditional octal encoding.  E.g. "chmod 1 FOO" should set
50455         the other-execute bit of FOO even if S_IXOTH != 1.
50456
50457         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
50458         WOTH, XOTH, ALLM): New macros.
50459         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
50460          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
50461         Use them.
50462         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
50463         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
50464         (mode_compile):
50465         No need to use uintmax_t; unsigned long is long enough.
50466         Don't bother to get suffix since we don't use it.
50467
50468 2000-12-26  Jim Meyering  <meyering@lucent.com>
50469
50470         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
50471         better with autoheader.
50472
50473 2000-12-24  Jim Meyering  <meyering@lucent.com>
50474
50475         * lib/hash.c (is_prime): Return explicit boolean values.
50476         (hash_get_first): Return NULL to appease Irix5.6's 89.
50477         Reported by Nelson Beebe.
50478
50479 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
50480
50481         * lib/localcharset.c (locale_charset): Add support for Win32.
50482
50483 2000-12-18  Paul Eggert  <eggert@twinsun.com>
50484
50485         * lib/physmem.h, lib/physmem.c: New files.
50486
50487         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
50488         (noinst_HEADERS): Add physmem.h.
50489
50490         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
50491         't' for compatibility with Solaris 8 sort.
50492
50493 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
50494
50495         * lib/config.charset: Add support for BeOS.
50496
50497 2000-12-17  Jim Meyering  <meyering@lucent.com>
50498
50499         * m4/dos.m4 (jm_AC_DOS): New file and macro.
50500         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
50501
50502 2000-12-16  Jim Meyering  <meyering@lucent.com>
50503
50504         This bug had a serious impact on chown: `chown N:M FILE' (for integer
50505         N and M) would have treated it like `chown N:N FILE'.
50506
50507         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
50508
50509 2000-12-16  Jim Meyering  <meyering@lucent.com>
50510
50511         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
50512         SHELLS_FILE to a file name that's useful on djgpp systems.
50513         Include stdlib.h.
50514         (ADDITIONAL_DEFAULT_SHELLS): Define.
50515         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
50516         Based mostly on a patch from Prashant TR.
50517
50518 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
50519
50520         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
50521         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
50522         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
50523
50524 2000-12-08  Andreas Schwab  <schwab@suse.de>
50525
50526         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
50527         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
50528
50529 2000-12-07  Jim Meyering  <meyering@lucent.com>
50530
50531         * lib/stripslash.c (ISSLASH): Define.
50532         (strip_trailing_slashes): Use ISSLASH rather than comparing against
50533         `/'.
50534         From Prashant TR.
50535
50536         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
50537         (dir_name_r): Declare this function as static.
50538         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
50539         manifest itself on a name containing a mix of slashes and
50540         backslashes.
50541         Make this function work with names starting with a DOS-style
50542         drive letter and colon prefix.
50543         (dir_name): Append `.' if necessary.
50544         Based mostly on patches from Prashant TR and Eli Zaretskii.
50545
50546         * lib/dirname.h (dir_name_r): Remove prototype.
50547
50548 2000-12-06  Paul Eggert  <eggert@twinsun.com>
50549
50550         * m4/off_t-format.m4: Remove this file.
50551         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
50552
50553 2000-12-06  Jim Meyering  <meyering@lucent.com>
50554
50555         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
50556         replacement strtoull, we may well need the replacement strtoul, too.
50557         Check for declarations of strtoul and strtoull.
50558         Check for strtol.  Mainly as a cue to cause automake to include
50559         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
50560         Check for limits.h -- strtol.c needs it.
50561
50562 2000-12-05  Jim Meyering  <meyering@lucent.com>
50563
50564         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
50565
50566 2000-12-04  Jim Meyering  <meyering@lucent.com>
50567
50568         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
50569         Also include memory.h, stdlib.h, unistd.h if appropriate.
50570         Reported by Andreas Jaeger (conflicting declaration of malloc).
50571
50572 2000-12-02  Jim Meyering  <meyering@lucent.com>
50573
50574         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
50575         * m4/jm-macros.m4 (jm_MACROS): require it.
50576
50577 2000-12-02  Jim Meyering  <meyering@lucent.com>
50578
50579         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
50580
50581 2000-12-01  Paul Eggert  <eggert@twinsun.com>
50582
50583         * lib/memrchr.c: Include <config.h> before any system include file.
50584
50585 2000-11-30  Jim Meyering  <meyering@lucent.com>
50586
50587         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
50588
50589 2000-11-30  Jim Meyering  <meyering@lucent.com>
50590
50591         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
50592
50593 2000-11-29  Paul Eggert  <eggert@twinsun.com>
50594
50595         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
50596
50597 2000-11-26  Jim Meyering  <meyering@lucent.com>
50598
50599         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
50600
50601 2000-11-22  Paul Eggert  <eggert@twinsun.com>
50602
50603         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
50604         size of (size_t) -1; it's not portable.
50605
50606 2000-11-17  Jim Meyering  <meyering@lucent.com>
50607
50608         * lib/strstr.c: Update from GNU libc.
50609
50610 2000-11-17  Akim Demaille  <akim@epita.fr>
50611
50612         * lib/obstack.h: Formatting changes.
50613         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
50614         prevent type checking.
50615         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
50616         cast the value to (void *): assigning a `foo *' to a `void *'
50617         variable is valid.
50618         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
50619
50620 2000-11-16  Jim Meyering  <meyering@lucent.com>
50621
50622         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
50623
50624 2000-11-11  Jim Meyering  <meyering@lucent.com>
50625
50626         * lib/error.c: Add a couple #includes, merging from GNU libc version.
50627
50628 2000-11-10  Jim Meyering  <meyering@lucent.com>
50629
50630         * lib/obstack.h: Update from GNU libc.
50631         * lib/obstack.c: Likewise.
50632
50633 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
50634
50635         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
50636
50637 2000-11-06  Paul Eggert  <eggert@twinsun.com>
50638
50639         * lib/getusershell.c (setusershell): Use rewind rather than
50640         fseek/fseeko, to avoid configuration hassles with fseeko.
50641         Don't bother opening SHELLS_FILE if shellstream is NULL;
50642         it's not necessary.
50643
50644 2000-11-05  Jim Meyering  <meyering@lucent.com>
50645
50646         * lib/makepath.h (make_dir): Declare.
50647         * lib/makepath.c (make_dir): Remove `static' attribute.
50648         Tweak a comment.
50649
50650 2000-11-04  Jim Meyering  <meyering@lucent.com>
50651
50652         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
50653
50654 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
50655
50656         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
50657         last one in a bucket, advance to the next bucket.
50658
50659 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
50660
50661         * lib/fnmatch.c: Do not comment out all the code if we are using
50662         the GNU C library, because in some cases we are replacing buggy
50663         code in the GNU C library itself.
50664
50665 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
50666
50667         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
50668         (regex_compile): Catch bogus \(\1\).
50669
50670 2000-10-30  Paul Eggert  <eggert@twinsun.com>
50671
50672         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
50673         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
50674         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
50675
50676 2000-10-30  Paul Eggert  <eggert@twinsun.com>
50677
50678         * lib/error.h, getline.h, modechange.h:
50679         Remove "2000" from Copyright line, as the file hasn't been
50680         changed this year other than in the copyright notice.
50681
50682         * lib/xalloc.h: Add "2000" to Copyright line, as this file
50683         was changed this year.
50684
50685 2000-10-29  Jim Meyering  <meyering@lucent.com>
50686
50687         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
50688         renaming.
50689         * m4/ls-mntd-fs.m4: Likewise
50690
50691 2000-10-29  Jim Meyering  <meyering@lucent.com>
50692
50693         * lib/xstat.in: Fix grammar in comment.
50694
50695 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
50696
50697         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
50698         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
50699         doesn't define __restrict_arr.
50700
50701 2000-10-28  Jim Meyering  <meyering@lucent.com>
50702
50703         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
50704         (jm_PREREQ_MEMCHR): New function.
50705
50706 2000-10-28  Jim Meyering  <meyering@lucent.com>
50707
50708         * lib/memchr.c: Update from libc.
50709         Adjust for portability:
50710         [HAVE_STDLIB_H]: Include stdlib.h.
50711         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
50712         Undef __memchr, too.
50713         [!weak_alias]: Define __memchr to memchr.
50714
50715         * lib/regex.c: Update from libc.
50716         * lib/regex.h: Likewise.
50717         * lib/getopt1.c: Likewise.
50718         * lib/memcmp.c: Likewise.
50719
50720         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
50721         Avoid using fseek, when possible -- it's broken by design.
50722         Patch by Ulrich Drepper.
50723
50724 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
50725
50726         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
50727         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
50728         Giving in to popular pressure to shut up the compiler with casts.
50729
50730 2000-10-26  Jim Meyering  <meyering@lucent.com>
50731
50732         * lib/strftime.c: Update from libc.
50733
50734 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
50735
50736         * regex.c: More `unsigned char' -> `re_char' changes.
50737         Also change several `int' into `re_wchar_t'.
50738         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
50739         (PUSH_FAILURE_POINTER): Don't cast any more.
50740         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
50741         We want GCC to complain, since this piece of code makes
50742         re_match non-reentrant, which *should* be fixed.
50743         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
50744         (EXTEND_BUFFER): Use RETALLOC.
50745         (SET_LIST_BIT): Don't cast.
50746         (re_wchar_t): New type.
50747         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
50748         that those two functions will always properly return.
50749         (IMMEDIATE_QUIT_CHECK): Cast to void.
50750         (analyse_first): Use recursion rather than an explicit stack.
50751         (re_compile_fastmap): Can't fail anymore.
50752         (re_search_2): Don't check re_compile_fastmap for failure.
50753         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
50754         Now also sets the new value (passed in a new argument).
50755         (re_match_2_internal): Use it.
50756         Also, use a new var `reg' of type size_t when looping through regs
50757         rather than reuse the inappropriate `mcnt'.
50758
50759 2000-10-25  Jim Meyering  <meyering@lucent.com>
50760
50761         * lib/obstack.c: Update from libc.
50762
50763 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
50764
50765         * regex.c (regex_compile): Change the way of handling a range from
50766         a char less than 256 to a char not less than 256.
50767
50768 2000-10-24  Andrew Innes  <andrewi@gnu.org>
50769
50770         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
50771         NT-Emacs only.
50772         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
50773         so that re_search functions only quit when callers expect them to.
50774
50775 2000-10-23  Jim Meyering  <meyering@lucent.com>
50776
50777         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
50778         wrong.  That set_locale call must not have any side effects.
50779         From Paul Eggert.
50780
50781 2000-10-22  Jim Meyering  <meyering@lucent.com>
50782
50783         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
50784         [CYCLIC]: Remove now-unused definition.
50785
50786         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
50787         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
50788         Suggestion from Ulrich Drepper.
50789
50790 2000-10-21  Jim Meyering  <meyering@lucent.com>
50791
50792         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
50793         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
50794         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
50795
50796 2000-10-21  Jim Meyering  <meyering@lucent.com>
50797
50798         * lib/dirname.c (memrchr): Declare if necessary.
50799         (dir_name): Remove the restriction that there be no
50800         trailing slashes.  Now, this code skips past them, effectively
50801         ignoring them.
50802         [TEST_DIRNAME] (main): New unit tests.
50803
50804         * lib/memrchr.c: New file from GNU libc.
50805         Undef __memrchr, too.
50806         [!weak_alias]: Define __memrchr to memrchr.
50807         Guard weak_alias use with `#ifdef weak_alias'.
50808
50809 2000-10-21  Jim Meyering  <meyering@lucent.com>
50810
50811         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
50812         (dir_name): Use dir_name_r.
50813         * lib/dirname.h (dir_name_r): Declare it.
50814
50815 2000-10-17  Jim Meyering  <meyering@lucent.com>
50816
50817         * lib/quote.h (PARAMS): Define and use.
50818         Reported by Akim Demaille.
50819
50820         * lib/getopt.c: Update from libc.
50821
50822 2000-10-16  Jim Meyering  <meyering@lucent.com>
50823
50824         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
50825         setlocale.
50826         From Jan Fedak.
50827
50828 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
50829
50830         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
50831
50832 2000-09-25  Jim Meyering  <meyering@lucent.com>
50833
50834         * lib/md5.h (rol): Define (from GnuPG).
50835
50836         * lib/sha.c: Give credit (GnuPG) where due.
50837         (M): Use rol rather than open-coding it.
50838         Add a FIXME comment.
50839
50840 2000-09-21  Jim Meyering  <meyering@lucent.com>
50841
50842         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
50843         Reported by Michael Stone.
50844
50845 2000-09-20  Jim Meyering  <meyering@lucent.com>
50846
50847         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
50848         (noinst_HEADERS): Add sha.h.
50849         Based on code from Scott G. Miller and from GnuPG.
50850
50851 2000-09-18  Jim Meyering  <meyering@lucent.com>
50852
50853         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
50854         LIBS. Otherwise, everyone ends up linking with -lelf for some
50855         configurations.
50856         Reported by Mike Stone.
50857
50858 2000-09-15  Jim Meyering  <meyering@lucent.com>
50859
50860         * lib/regex.c: Update from libc.
50861
50862 2000-09-10  Jim Meyering  <meyering@lucent.com>
50863
50864         * lib/getopt.c (_getopt_internal): Update from glibc.
50865
50866 2000-09-09  Jim Meyering  <meyering@lucent.com>
50867
50868         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
50869         think it should be used as a general replacement for isascii.
50870         * lib/fnmatch.c: Likewise.
50871         * lib/mbswidth.c: Likewise
50872         * lib/regex.c: Likewise.
50873
50874         Don't use atoi.
50875         * lib/userspec.c: Include sys/param.h and limits.h.
50876         Include xstrtol.h.
50877         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
50878         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
50879         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
50880         UID, GID.  Check range.
50881
50882 2000-09-06  Jim Meyering  <meyering@lucent.com>
50883
50884         * lib/getopt.c (_getopt_internal): Update from glibc.
50885
50886 2000-08-30  Jim Meyering  <meyering@lucent.com>
50887
50888         * lib/strftime.c: Merge in changes from GNU libc.
50889
50890 2000-08-26  Jim Meyering  <meyering@lucent.com>
50891
50892         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
50893         * m4/fpending.m4: New file.
50894
50895 2000-08-26  Jim Meyering  <meyering@lucent.com>
50896
50897         * lib/closeout.c: Include "__fpending.h".
50898         (close_stdout_status): Return right away if there's nothing to flush.
50899
50900         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
50901         * lib/__fpending.c: New file.
50902         * lib/__fpending.h: New file.
50903
50904 2000-08-20  Jim Meyering  <meyering@lucent.com>
50905
50906         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
50907         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
50908         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
50909
50910 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
50911
50912         Improve fileutils installation on systems where running
50913         programs (like install) can't be unlinked.
50914         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
50915         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
50916
50917 2000-08-07  Paul Eggert  <eggert@twinsun.com>
50918
50919         Standardize on "memory exhausted" instead of "Memory exhausted"
50920         or "virtual memory exhausted".
50921         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
50922         "virtual memory exhausted".
50923         * lib/same.c (same_name): Invoke xalloc_die instead of printing
50924         our own message.
50925         * lib/userspec.c (parse_user_spec): Likewise.
50926         * lib/bumpalloc.h: comment fix
50927         * lib/same.c, userspec.c: Include xalloc.h.
50928
50929         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
50930         not char *const and pointing to a constant array.
50931         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
50932         (xrealloc): Comment fix.
50933
50934         * lib/userspec.c (parse_user_spec):
50935         Don't translate a message until just before returning,
50936         to avoid unnecessary translation.
50937
50938 2000-08-07  Jim Meyering  <meyering@lucent.com>
50939
50940         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
50941         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
50942         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
50943         getgroups.c, gethostname.c, getopt.h, group-member.c,
50944         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
50945         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
50946         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
50947         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
50948         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
50949         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
50950         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
50951         yesno.c: Back out Copyright date changes for each file with no change
50952         this year.  This eases coordination with other programs using the same
50953         source code modules.  From Paul Eggert.
50954
50955 2000-08-06  Paul Eggert  <eggert@twinsun.com>
50956
50957         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
50958         not char, for compatibility with glibc 2.1.3 strftime.c.
50959
50960 2000-08-03  Greg McGary  <greg@mcgary.org>
50961
50962         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
50963         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
50964         (EXTEND_BUFFER): Use them.
50965
50966 2000-08-01  Jim Meyering  <meyering@lucent.com>
50967
50968         * lib/dirname.c (ISSLASH): Define.
50969         (BACKSLASH_IS_PATH_SEPARATOR): Define.
50970         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
50971         both `\' and `/' may be use as path separators.
50972         Based on a patch from Prashant TR.
50973
50974 2000-07-31  Paul Eggert  <eggert@twinsun.com>
50975
50976         * lib/quotearg.c (quotearg_n_options): Don't make the initial
50977         slot vector a constant, since it might get modified.
50978
50979 2000-07-31  Jim Meyering  <meyering@lucent.com>
50980
50981         * lib/xmalloc.c: Use `virtual memory exhausted', not
50982         `Memory exhausted'.
50983         * lib/obstack.c (print_and_abort): Likewise.
50984
50985 2000-07-30  Paul Eggert  <eggert@twinsun.com>
50986
50987         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
50988         buffer, so that the caller can always quote one small
50989         component of a "memory exhausted" message in slot 0.
50990         From a suggestion by Jim Meyering.
50991
50992 2000-07-30  Jim Meyering  <meyering@lucent.com>
50993
50994         * lib/makepath.c (make_path): Quote the other instance, too.
50995
50996         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
50997         (STATIC_BUF_SIZE): Define.
50998         (quotearg_n_options): Use only statically allocated storage when
50999         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
51000         than STATIC_BUF_SIZE.
51001
51002 2000-07-29  Jim Meyering  <meyering@lucent.com>
51003
51004         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
51005         * lib/dirname.c (dir_name): Likewise.
51006
51007         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
51008         `/'.
51009
51010         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
51011         (dir_name): Assert that there are no trailing slashes.
51012
51013 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
51014
51015         * lib/mbswidth.h (mbswidth): Add a flags argument.
51016         (mbswidth): New declaration.
51017         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
51018         * lib/mbswidth.c (mbswidth): Add a flags argument.
51019         (mbsnwidth): New function.
51020
51021 2000-07-24  Jim Meyering  <meyering@lucent.com>
51022
51023         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
51024
51025 2000-07-23  Paul Eggert  <eggert@twinsun.com>
51026
51027         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
51028
51029 2000-07-23  Paul Eggert  <eggert@twinsun.com>
51030
51031         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
51032         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
51033         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
51034         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
51035         invoke multibyte primitives.
51036
51037 2000-07-23  Paul Eggert  <eggert@twinsun.com>
51038
51039         * lib/quotearg.c:
51040         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
51041         so that mbstate_t is always defined.
51042
51043         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
51044         be 1 in at least one GCC installation, and this configuration
51045         error is likely to be common.  Ignoring MB_LEN_MAX hurts
51046         performance on hosts that have mbrtowc but have only unibyte
51047         locales, but I assume these hosts are rare.
51048
51049 2000-07-23  Paul Eggert  <eggert@twinsun.com>
51050
51051         * lib/mbswidth.c (_XOPEN_SOURCE):
51052         Don't define; this causes problems on Solaris 7.
51053         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
51054
51055 2000-07-23  Jim Meyering  <meyering@lucent.com>
51056
51057         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
51058         too: getgrgid, getpwuid, getuid.
51059
51060 2000-07-23  Jim Meyering  <meyering@lucent.com>
51061
51062         * lib/basename.c (base_name): Add an assertion.
51063
51064 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
51065
51066         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
51067         shadow its mbsinit function.
51068
51069 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
51070
51071         * lib/mbswidth.h: New file.
51072         * lib/mbswidth.c: New file.
51073         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
51074         (noinst_HEADERS): Add mbswidth.h.
51075
51076 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
51077
51078         * lib/config.charset: Add support for FreeBSD. Improve support for
51079         HP-UX and IRIX 6.
51080
51081 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
51082
51083         * m4/mbswidth.m4: New file.
51084         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
51085
51086 2000-07-15  Jim Meyering  <meyering@lucent.com>
51087
51088         * lib/makepath.c: Include quote.h.
51089         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
51090         corresponding argument in a `quote (...)' call.
51091         Give better diagnostics.
51092
51093         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
51094         (noinst_HEADERS): Add quote.h.
51095
51096         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
51097         from tar's src/misc.c.
51098         * lib/quote.h: New file.  Prototypes for same.
51099
51100 2000-07-14  Paul Eggert  <eggert@twinsun.com>
51101
51102         From a suggestion by Bruno Haible.
51103         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
51104         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
51105         to decide whether to define the BeOS workaround macro;
51106         this adjusts to the change to AC_MBSTATE_T.
51107
51108 2000-07-14  Jim Meyering  <meyering@lucent.com>
51109
51110         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
51111         jm_AC_TYPE_UINTMAX_T.
51112
51113 2000-07-13  Paul Eggert  <eggert@twinsun.com>
51114
51115         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
51116
51117         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
51118         quotearg_buffer_restyled): Add support for
51119         clocale_quoting_style.  Undo previous change to
51120         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
51121         and "{RIGHT QUOTATION MARK}" msgids.
51122
51123 2000-07-10  Paul Eggert  <eggert@twinsun.com>
51124
51125         From a suggestion by Bruno Haible.
51126         * m4/mbstate_t.m4 (AC_MBSTATE_T):
51127         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
51128         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
51129         and mbstate_t, to a single-part test that simply defines mbstate_t.
51130         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
51131         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
51132
51133 2000-07-10  Jim Meyering  <meyering@lucent.com>
51134
51135         * m4/strerror_r.m4: Mirror the correction made in autoconf.
51136
51137         * m4/gnu-source.m4: Output to confdefs.h directly.
51138         Suggestion from Akim Demaille.
51139
51140 2000-07-09  Paul Eggert  <eggert@twinsun.com>
51141
51142         The old behavior of quoting `like this' doesn't look good with
51143         newer, ISO-style fonts.  See:
51144         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
51145
51146         Instead, quote "like this" by default.  Let the translator
51147         tailor the locale-specific quoting behavior by providing
51148         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
51149
51150         * lib/quotearg.c (N_): New macro.
51151         (gettext_default): New function.
51152         (quotearg_buffer_restyled): Use
51153         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
51154         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
51155
51156 2000-07-09  Jim Meyering  <meyering@lucent.com>
51157
51158         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
51159         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
51160
51161         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
51162         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
51163
51164 2000-07-09  Jim Meyering  <meyering@lucent.com>
51165
51166         * lib/Most files: Update copyright dates to include 2000.
51167
51168 2000-07-08  Jim Meyering  <meyering@lucent.com>
51169
51170         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
51171         if not defined.
51172         (xgethostname): Remove now-unnecessary #ifdef.
51173         Move declaration of `err' into loop where it's used.
51174
51175 2000-07-05  Paul Eggert  <eggert@twinsun.com>
51176         and Bruno Haible  <haible@clisp.cons.org>
51177
51178         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
51179         only if the test for an object-type mbstate_t fails.  This
51180         prevents us from mistakenly reporting that mbstate_t is a
51181         system object type after we "#define mbstate_t int" to work
51182         around its lack.
51183
51184 2000-07-05  Paul Eggert  <eggert@twinsun.com>
51185         and Bruno Haible  <haible@clisp.cons.org>
51186
51187         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
51188
51189 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
51190
51191         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
51192         to strerror_r.
51193         Include <ctype.h> for use of isalpha.
51194
51195 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
51196
51197         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
51198         by allocating a larger buffer. Test the gethostname return value for
51199         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
51200         returns an error and ENAMETOOLONG isn't defined.
51201
51202 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
51203
51204         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
51205         dimension.
51206
51207 2000-07-04  Jim Meyering  <meyering@lucent.com>
51208
51209         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
51210         of the deprecated AC_CHECKING.
51211
51212 2000-07-04  Jim Meyering  <meyering@lucent.com>
51213
51214         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
51215         Reported by Bruno Haible.
51216
51217 2000-07-04  Jim Meyering  <meyering@lucent.com>
51218
51219         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
51220         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
51221         lacks mbrtowc.
51222
51223 2000-07-03  Paul Eggert  <eggert@twinsun.com>
51224
51225         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
51226         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
51227
51228 2000-07-03  Paul Eggert  <eggert@twinsun.com>
51229         and Bruno Haible  <haible@clisp.cons.org>
51230
51231         * lib/quotearg.c (mbrtowc):
51232         Assign to *pwc, and return 1 only if result is nonzero.
51233         (iswprint): Use ISPRINT when substituting our own mbrtowc.
51234
51235 2000-07-03  Jim Meyering  <meyering@lucent.com>
51236
51237         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
51238
51239 2000-07-03  Jim Meyering  <meyering@lucent.com>
51240
51241         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
51242         This is necessary to get a definition of e.g., UTMP_FILE on
51243         HP-UX 10.20.
51244         From Bob Proulx.
51245
51246 2000-07-02  Jim Meyering  <meyering@lucent.com>
51247
51248         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
51249
51250         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
51251         AC_LIBOBJ(function_name).
51252         * m4/chown.m4: Likewise.
51253         * m4/fnmatch.m4: Likewise.
51254         * m4/ftruncate.m4: Likewise.
51255         * m4/getgroups.m4: Likewise.
51256         * m4/getline.m4: Likewise.
51257         * m4/group-member.m4: Likewise.
51258         * m4/jm-macros.m4: Likewise.
51259         * m4/lstat.m4: Likewise.
51260         * m4/malloc.m4: Likewise.
51261         * m4/memcmp.m4: Likewise.
51262         * m4/nanosleep.m4: Likewise.
51263         * m4/putenv.m4: Likewise.
51264         * m4/realloc.m4: Likewise.
51265         * m4/regex.m4: Likewise.
51266         * m4/stat.m4: Likewise.
51267         * m4/strftime.m4: Likewise.
51268
51269 2000-07-02  Jim Meyering  <meyering@lucent.com>
51270
51271         * lib/quotearg.c (mbstate_t): Don't define here.
51272
51273 2000-07-02  Jim Meyering  <meyering@lucent.com>
51274
51275         * lib/nanosleep.c (SIGCONT): Define if not already defined.
51276
51277 2000-07-01  Jim Meyering  <meyering@lucent.com>
51278
51279         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
51280
51281 2000-07-01  Jim Meyering  <meyering@lucent.com>
51282
51283         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
51284         problem.
51285
51286 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
51287
51288         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
51289         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
51290
51291 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
51292
51293         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
51294         per change in ../m4/ls-mntd-fs.m4.
51295         (read_filesystem_list): Ignore symbolic links.
51296
51297 2000-06-29  Jim Meyering  <meyering@lucent.com>
51298
51299         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
51300         for declaration of strcmp.
51301
51302         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
51303
51304         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
51305         Avoid warning by casting result to `char *' to remove `const'.
51306
51307 2000-06-28  Jim Meyering  <meyering@lucent.com>
51308
51309         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
51310         included by quotearg.c, for which we perform this test.  From
51311         Bruno Haible.
51312
51313 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
51314
51315         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
51316         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
51317         <utmpx.h> exists, put readutmp.o into LIBOBJS.
51318
51319 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
51320
51321         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
51322
51323 2000-06-26  Paul Eggert  <eggert@twinsun.com>
51324
51325         savedir now sets errno on failure and invokes xmalloc to get memory.
51326         Fix a couple of other minor bugs while we're at it.
51327
51328         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
51329         (NAMLEN): Remove macro.
51330         (malloc, realloc): Remove decls.
51331         (stpcpy): Likewise.
51332         ("xalloc.h"): Include.
51333         (NAME_SIZE_DEFAULT): New macro.
51334         (savedir): Use xmalloc / xrealloc to allocate memory.
51335         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
51336         Skip "" directory entries.
51337         Use strlen to calculate directory entry length, since the old method
51338         is rarely used these days and isn't worth supporting.
51339         Don't use a pointer after freeing it.
51340         Check for integer overflow when calculating allocation size.
51341         Use memcpy to copy entries, instead of stpcpy.
51342         Set errno properly when returning NULL.
51343         Check for readdir error.
51344
51345 2000-06-26  Jim Meyering  <meyering@lucent.com>
51346
51347         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
51348
51349 2000-06-25  Jim Meyering  <meyering@lucent.com>
51350
51351         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
51352         Linux header bug when _XOPEN_SOURCE is defined to 500.
51353
51354 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
51355
51356         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
51357         deficiency.
51358
51359 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
51360
51361         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
51362         Include xalloc.h.
51363         Don't include <stdlib.h>.  Don't declare malloc, realloc.
51364
51365 2000-06-24  Jim Meyering  <meyering@lucent.com>
51366
51367         * m4/strerror_r.m4: Revive this file -- to try out an experimental
51368         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
51369         for which strerror does return char*, but which lacks a conveniently
51370         accessible declaration of the function.  If the compile-test says
51371         strerror_r doesn't work, then resort to a `run'-test that works on
51372         BeOS and segfaults on DEC Unix.
51373
51374 2000-06-24  Jim Meyering  <meyering@lucent.com>
51375
51376         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
51377
51378 2000-06-23  Paul Eggert  <eggert@twinsun.com>
51379
51380         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
51381         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
51382
51383 2000-06-23  Paul Eggert  <eggert@twinsun.com>
51384
51385         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
51386         (mbrtowc, mbstate_t): Define substitutes if
51387         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
51388         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
51389         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
51390
51391 2000-06-23  Jim Meyering  <meyering@lucent.com>
51392
51393         * m4/afs.m4: Add missing AC_MSG_RESULT.
51394         Reported by Bruno Haible.
51395
51396         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
51397         Suggestion from Bruno Haible.
51398
51399 2000-06-23  Jim Meyering  <meyering@lucent.com>
51400
51401         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
51402
51403 2000-06-21  Jim Meyering  <meyering@lucent.com>
51404
51405         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
51406
51407 2000-06-21  Jim Meyering  <meyering@lucent.com>
51408
51409         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
51410         (noinst_HEADERS): Add getstr.h.
51411
51412         * lib/getline.c (getstr): Move into a separate file.
51413         * lib/getstr.c (getstr): New file, extracted from getline.c, with
51414         the following changes: new parameter, delim2; both delim[12]
51415         parameters have type `int', not `char'.  The latter would lose
51416         with 8-bit delimiters.
51417         * lib/getstr.h: New file.
51418
51419 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
51420
51421         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
51422         than 1024, return a memory chunk of least possible size, instead
51423         of size PATH_MAX + 2. In the loop, increment the size proportionally.
51424         Use free/xmalloc instead of xrealloc to avoid copying for very long
51425         paths.
51426
51427 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
51428
51429         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
51430         the empty string.
51431
51432 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
51433
51434         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
51435         address, not strdup.  Include <stdlib.h> and don't declare free().
51436
51437 2000-06-19  Jim Meyering  <meyering@lucent.com>
51438
51439         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
51440
51441 2000-06-18  Jim Meyering  <meyering@lucent.com>
51442
51443         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
51444
51445         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
51446         `checking whether...' message to be consistent with that of the
51447         lstat test.
51448
51449 2000-06-18  Jim Meyering  <meyering@lucent.com>
51450
51451         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
51452         Besides, these days every porting target provides a mkdir function.
51453
51454         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
51455         needed. (this snippet comes from src/system.h).
51456
51457 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
51458
51459         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
51460
51461 2000-06-15  Paul Eggert  <eggert@twinsun.com>
51462
51463         * lib/human.c (adjust_value): New function.
51464         (human_readable_inexact): Apply rounding style even when
51465         printing approximate values.
51466
51467 2000-06-14  Paul Eggert  <eggert@twinsun.com>
51468
51469         * lib/human.c (human_readable_inexact): Allow an input block
51470         size that is not a multiple of the output block size, and vice versa.
51471         Reported by Piergiorgio Sartor.
51472
51473 2000-06-14  Paul Eggert  <eggert@twinsun.com>
51474
51475         * lib/getdate.y (get_date): Apply relative times after time
51476         zone indicator, not before.  Reported by Todd A. Jacobs.
51477
51478 2000-06-13  Jim Meyering  <meyering@lucent.com>
51479
51480         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
51481
51482         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
51483
51484 2000-06-12  Paul Eggert  <eggert@twinsun.com>
51485
51486         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
51487
51488 2000-06-12  Jim Meyering  <meyering@lucent.com>
51489
51490         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
51491         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
51492         optional argument.
51493         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
51494         the optional argument, `lib'.
51495
51496 2000-06-08  Jim Meyering  <meyering@lucent.com>
51497
51498         * m4/largefile.m4: Remove file (now that it's part of autoconf).
51499
51500 2000-06-04  Paul Eggert  <eggert@twinsun.com>
51501
51502         Rewrite largefile configuration so that we don't need to run
51503         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
51504         AC_CANONICAL_HOST in configure.in -- jmm]
51505
51506         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
51507         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
51508         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
51509         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
51510         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
51511         All uses changed.
51512         Instead of inspecting the output of getconf, try to compile the
51513         test program without and with the macro definition.
51514         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
51515         for getconf.  Instead, check for the needed flags by compiling
51516         test programs.
51517
51518 2000-06-04  Paul Eggert  <eggert@twinsun.com>
51519
51520         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
51521
51522 2000-06-04  Jim Meyering  <meyering@lucent.com>
51523
51524         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
51525         SunOS 4.1.4 for which gid_t is an unsigned type.
51526
51527 2000-06-03  Jim Meyering  <meyering@lucent.com>
51528
51529         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
51530         now that autoconf requires that.
51531
51532         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
51533         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
51534         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
51535
51536 2000-06-03  Jim Meyering  <meyering@lucent.com>
51537
51538         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
51539
51540 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
51541
51542         * m4/glibc21.m4: New file.
51543         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
51544
51545 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
51546
51547         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
51548         newer, don't install charset.alias.
51549         * lib/config.charset: Change the Linux/glibc rules so they become empty
51550         on glibc-2.1 or newer.
51551
51552 2000-06-02  Jim Meyering  <meyering@lucent.com>
51553
51554         * lib/mountlist.c: Back out last change.  Instead, do this...
51555         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
51556         me_dummy member using the same `ignore'-testing code.
51557         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
51558         fs_type strings.
51559         From Mark D. Roth.
51560
51561 2000-05-29  Jim Meyering  <meyering@lucent.com>
51562
51563         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
51564         mounts with the `ignore' attribute.  Based on a patch from
51565         Mark D. Roth.
51566
51567 2000-05-28  Jim Meyering  <meyering@lucent.com>
51568
51569         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
51570         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51571         * m4/stat.m4: Likewise.
51572         * m4/lstat.m4: Likewise.
51573         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
51574
51575         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
51576         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
51577
51578 2000-05-26  Jim Meyering  <meyering@lucent.com>
51579
51580         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
51581
51582 2000-05-24  Jim Meyering  <meyering@lucent.com>
51583
51584         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
51585         autoconf requires that.
51586         * m4/lib-check.m4: Likewise.
51587         * m4/jm-macros.m4: Likewise.
51588         * m4/strftime.m4: Likewise.
51589
51590         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
51591         AC_CHECK_DECLS, now that autoconf requires that.
51592
51593 2000-05-22  Jim Meyering  <meyering@lucent.com>
51594
51595         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51596         * m4/lstat.m4: Likewise.
51597
51598 2000-05-22  Jim Meyering  <meyering@lucent.com>
51599
51600         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
51601
51602 2000-05-20  Jim Meyering  <meyering@lucent.com>
51603
51604         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
51605         (jm_PREREQ): Use it.
51606
51607 2000-05-18  Jim Meyering  <meyering@lucent.com>
51608
51609         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
51610         back, too, since it may have been modified by allocate_entry.
51611         (hash_delete): Rewrite to use neither the assignment operator
51612         nor the comma operator in an if-expression.
51613
51614 2000-05-15  Paul Eggert  <eggert@twinsun.com>
51615
51616         * lib/closeout.c:
51617         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
51618         Remove; no longer needed.
51619         "quotearg.h": Add include.
51620         (file_name): Do not bother to explicitly initialize to NULL; it's less
51621         efficient on some hosts.
51622         (close_stdout_status): Remove test as to whether stdout was already
51623         closed; it breaks for the case "echo x | sort >&-".
51624         Quote file name colons.
51625         Do not assume that _("write error") lacks format strings.
51626
51627 2000-05-15  Jim Meyering  <meyering@lucent.com>
51628
51629         * lib/version-etc.c (version_etc_copyright): Update the copyright
51630         string used in all --version output.
51631
51632 2000-05-14  Jim Meyering  <meyering@lucent.com>
51633
51634         * lib/closeout.c (close_stdout_set_file_name): New function.
51635         (close_stdout_status): Use new file-scoped global.
51636         Return right away if fstat says the stdout file descriptor is invalid.
51637         * lib/closeout.h (close_stdout_set_file_name): Declare.
51638
51639 2000-05-10  Jim Meyering  <meyering@lucent.com>
51640
51641         * lib/closeout.c [default_exit_status]: New file-scoped variable.
51642         (close_stdout_set_status): New function.
51643         * lib/closeout.h (close_stdout_set_status): Declare.
51644
51645 2000-05-09  Jim Meyering  <meyering@lucent.com>
51646
51647         * m4/gettext.m4: Rename this...
51648         * m4/libintl.m4: ...to this.
51649
51650 2000-05-08  Jim Meyering  <meyering@lucent.com>
51651
51652         * lib/long-options.c: Don't include closeout.h.
51653         (parse_long_options): Don't call close_stdout for --version.
51654
51655 2000-05-06  Paul Eggert  <eggert@twinsun.com>
51656
51657         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
51658         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
51659         2.1.3 bug.  This avoids a clash when files like regex.c define
51660         _GNU_SOURCE.
51661
51662 2000-05-06  Jim Meyering  <meyering@lucent.com>
51663
51664         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
51665         (AC_REPLACE_FUNCS): Add strnlen.
51666
51667         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
51668         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
51669
51670         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
51671         AC_SEARCH_LIBS call for nanosleep.
51672         (LIB_NANOSLEEP): Set and AC_SUBST.
51673
51674 2000-05-06  Jim Meyering  <meyering@lucent.com>
51675
51676         * lib/strnlen.c: Undefine __strnlen and strnlen.
51677         [!weak_alias]: Define __strnlen to strnlen.
51678
51679         * lib/atexit.c: New file, from libiberty.
51680
51681 2000-05-06  Jim Meyering  <meyering@lucent.com>
51682
51683         * lib/closeout.c (close_stdout_status): Also check for errors on the
51684         stderr stream.
51685
51686 2000-05-05  Jim Meyering  <meyering@lucent.com>
51687
51688         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
51689         AC_SEARCH_LIBS call for clock_gettime.
51690         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
51691
51692         * m4/search-libs.m4: Update from autoconf.
51693
51694         su doesn't work on Solaris 2.6.
51695         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
51696         <shadow.h>.  Reported by Dragos Harabor.
51697
51698 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
51699
51700         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
51701         memcpy instead of xmalloc, xrealloc, path_concat.
51702         (locale_charset): Treat empty environment variables as absent.
51703         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
51704
51705 2000-05-04  Jim Meyering  <meyering@lucent.com>
51706
51707         * lib/getopt.c: Update from glibc.
51708         * lib/obstack.c: Likewise.
51709         * lib/obstack.h: Likewise.
51710         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
51711         file
51712
51713         * lib/regex.h: Likewise.
51714         * lib/strndup.c: Likewise.
51715         * lib/strnlen.c: New file, from glibc.
51716
51717 2000-05-03  Jim Meyering  <meyering@lucent.com>
51718
51719         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
51720
51721 2000-05-02  Paul Eggert  <eggert@twinsun.com>
51722
51723         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
51724         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
51725         compile-time test, rather than inspecting host and OS, to
51726         decide whether to define _LARGEFILE_SOURCE.
51727
51728 2000-05-01  Jim Meyering  <meyering@lucent.com>
51729
51730         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
51731
51732         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
51733         Based on a patch from Bruno Haible.
51734
51735 2000-05-01  Jim Meyering  <meyering@lucent.com>
51736
51737         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
51738
51739 2000-04-29  Jim Meyering  <meyering@lucent.com>
51740
51741         * lib/path-concat.c: Declare strdup only if it's not defined.
51742         * lib/canon-host.c: Likewise.
51743
51744 2000-04-28  Jim Meyering  <meyering@lucent.com>
51745
51746         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
51747         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
51748         is included first, then limits.h is included by locale.h by libintl.h.
51749         From John David Anglin.
51750
51751 2000-04-25  Jim Meyering  <meyering@lucent.com>
51752
51753         * lib/makepath.c (S_IRWXUGO): Define.
51754         (make_path): Always perform explicit chmod if MODE specifies any
51755         of the `special' permission bits.  Prompted by a bug report against
51756         install from Mate Wierdl and Joost van Baal.
51757
51758 2000-04-18  Jim Meyering  <meyering@lucent.com>
51759
51760         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
51761         (jm_PREREQ): Use it.
51762
51763 2000-04-18  Jim Meyering  <meyering@lucent.com>
51764
51765         * lib/README: New file.
51766
51767         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
51768         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
51769
51770 2000-04-17  Jim Meyering  <meyering@lucent.com>
51771
51772         Get it right :-)
51773         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
51774         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
51775         Suggestion from Akim Demaille.
51776
51777 2000-04-17  Jim Meyering  <meyering@lucent.com>
51778
51779         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
51780         the definition of it to rpl_strftime also defined-away the system's
51781         declaration.
51782
51783 2000-04-15  Jim Meyering  <meyering@lucent.com>
51784
51785         Use `C' to denote so-called `contiguous' files, the same way
51786         that tar does.
51787         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
51788         (ftypelet): Use S_ISCTG.
51789         From Michael Deutschmann.
51790
51791 2000-04-14  Jim Meyering  <meyering@lucent.com>
51792
51793         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
51794         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
51795         clobbered.
51796
51797 2000-04-14  Jim Meyering  <meyering@lucent.com>
51798
51799         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
51800
51801 2000-04-13  Jim Meyering  <meyering@lucent.com>
51802
51803         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
51804         AH_VERBATIM to insert required #ifndef into config.h.in.
51805         Suggestion from Akim Demaille.
51806
51807 2000-04-12  Jim Meyering  <meyering@lucent.com>
51808
51809         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
51810         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
51811         Christian Krackowizer.
51812
51813         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
51814         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
51815         (AC_SYS_LARGEFILE): Require.
51816         (AM_C_PROTOTYPES): Require.
51817
51818 2000-04-08  Jim Meyering  <meyering@lucent.com>
51819
51820         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
51821         names don't conflict.  Reported by Eli Zaretskii.
51822
51823 2000-04-07  Jim Meyering  <meyering@lucent.com>
51824
51825         * lib/putenv.c: Move inclusion of errno.h so it follows that of
51826         sys/types.h, to work around system header problems on AIX 3.2.5.
51827         From Bruno Haible.
51828
51829 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
51830
51831         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
51832         bug.  Deal with the different error behavior of Irix iconv.
51833
51834 2000-04-05  Paul Eggert  <eggert@twinsun.com>
51835
51836         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
51837         IRIX if the installer said otherwise.
51838
51839 2000-04-05  Jim Meyering  <meyering@lucent.com>
51840
51841         Portability tweaks required for ultrix4.3.
51842         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
51843         (jm_CHECK_DECLS): Add getutent to the list of functions.
51844         (_jm_DECL_HEADERS): Add utmpx.h.
51845         From John David Anglin.
51846
51847         * m4/strftime.m4: Back out the 2000-04-02 change.
51848         Instead of that change, simply undefine putenv in the test program.
51849
51850 2000-04-05  Jim Meyering  <meyering@lucent.com>
51851
51852         Portability tweaks required for ultrix4.3.
51853         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
51854         getutent.
51855         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
51856         * lib/canon-host.c: Declare strdup.
51857         * lib/path-concat.c: Likewise.
51858         From John David Anglin.
51859
51860 2000-04-04  Jim Meyering  <meyering@lucent.com>
51861
51862         Be more DOS 8.3-friendly.
51863         * lib/ref-add.sin: Renamed from ref-add.sed.in.
51864         * lib/ref-del.sin: Renamed from ref-del.sed.in.
51865         * lib/Makefile.am: Reflect renaming.
51866         Reported by Eli Zaretskii.
51867
51868         Use a temporary file name that won't clash with `charset.alias'
51869         in the DOS 8.3 name space.
51870         * lib/Makefile.am (charset_tmp): Define.
51871         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
51872         (uninstall-local): Likewise.
51873         Reported by Eli Zaretskii.
51874
51875 2000-04-03  Jim Meyering  <meyering@lucent.com>
51876
51877         * m4/gettext.m4: Fix typo in comment.
51878
51879         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
51880         textutils/configure.in).  Suggestion from Paul Eggert.
51881         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
51882
51883 2000-04-02  Paul Eggert  <eggert@twinsun.com>
51884
51885         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
51886         variable in the shell rather than using putenv, which isn't
51887         portable.  This avoids the configure-time inter-test dependency
51888         on the potentially-renamed putenv function.
51889
51890 2000-03-30  Paul Eggert  <eggert@twinsun.com>
51891
51892         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
51893         before checking struct stat.st_blksize, so that
51894         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
51895
51896 2000-03-29  Paul Eggert  <eggert@twinsun.com>
51897
51898         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
51899         since strftime.c uses HAVE_STRFTIME to decide whether to use
51900         the underlying strftime.
51901
51902 2000-03-29  Paul Eggert  <eggert@twinsun.com>
51903
51904         * lib/time/strftime.c (my_strftime): Make sure we call the system
51905         strftime, not ourselves, when invoking the underlying strftime.
51906
51907 2000-03-24  Jim Meyering  <meyering@lucent.com>
51908
51909         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
51910         (charset_alias): Define.
51911         (install-exec-local): Factor out common code.
51912         (uninstall-local): Split lines longer than 80.
51913         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
51914         (SUFFIXES): Define.
51915         (.sed.in.sed): New rule.  Don't redirect directly to $@.
51916         (CLEANFILES): Add ref-add.sed and ref-del.sed.
51917
51918 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
51919
51920         * lib/config.charset: Output a line containing "Packages using this
51921         file".
51922         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
51923         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
51924         ref-del.sed): New rules.
51925
51926 2000-03-17  Jim Meyering  <meyering@lucent.com>
51927
51928         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
51929         Otherwise, include <strings.h>
51930
51931 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
51932
51933         * lib/unicodeio.c (utf8_wctomb): New function.
51934         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
51935         format instead of in UCS-4 with platform dependent endianness.
51936
51937 2000-03-10  Jim Meyering  <meyering@lucent.com>
51938
51939         * m4/lib-check.m4: Look for getspnam in -lgen, too.
51940         From Marco Franzen.
51941
51942 2000-03-07  Paul Eggert  <eggert@twinsun.com>
51943
51944         * lib/savedir.c (savedir): Work even if directory size is
51945         negative; this can happen with some screwy NFS configurations.
51946
51947 2000-03-06  Jim Meyering  <meyering@lucent.com>
51948
51949         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
51950         if it's NULL (because we ran out of memory).  From Bruno Haible.
51951
51952 2000-03-05  Jim Meyering  <meyering@lucent.com>
51953
51954         * lib/localcharset.c ("path-concat.h"): Include.
51955         (get_charset_aliases): Use path_concat instead of ANSI string
51956         concatenation.
51957
51958         * lib/unicodeio.h (PARAMS): Define.
51959         Use it to guard prototype.
51960
51961 2000-03-04  Jim Meyering  <meyering@lucent.com>
51962
51963         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
51964         for lib/localcharset.c.
51965
51966 2000-03-04  Jim Meyering  <meyering@lucent.com>
51967
51968         * lib/Makefile.am (install-exec-local): Create $(libdir) before
51969         installing into it.
51970         (uninstall-local): Uncomment this rule so `make distcheck' works
51971         once again.
51972
51973         * lib/unicodeio.c (<errno.h>): Include it.
51974         (errno): Declare if not defined.
51975
51976         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
51977
51978         * lib/config.charset: New version, incorporating remarks from a linux
51979         i18n mailing list.  From Bruno Haible.
51980
51981 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
51982
51983         * m4/codeset.m4: New file.
51984         * m4/iconv.m4: New file.
51985         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
51986
51987 2000-03-03  Jim Meyering  <meyering@lucent.com>
51988
51989         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
51990
51991 2000-03-02  Jim Meyering  <meyering@lucent.com>
51992
51993         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
51994         the messages come out on separate lines.
51995
51996         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
51997         rather than jm_CHECK_DECLARATIONS.
51998         * m4/decl.m4: Remove now-unused file.
51999
52000         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
52001         geteuid.
52002
52003 2000-03-02  Jim Meyering  <meyering@lucent.com>
52004
52005         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
52006
52007 2000-03-01  Jim Meyering  <meyering@lucent.com>
52008
52009         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
52010         * lib/unicodeio.c: Likewise.
52011
52012 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
52013
52014         * lib/config.charset: New file.
52015         * lib/localcharset.c: New file.
52016         * lib/unicodeio.h, lib/unicodeio.c: New files.
52017         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
52018         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
52019         (noinst_HEADERS): Add unicodeio.h.
52020         (all-local, install-exec-local, charset.alias): New targets.
52021
52022 2000-02-28  Paul Eggert  <eggert@twinsun.com>
52023
52024         * lib/quotearg.c (ALERT_CHAR): New macro.
52025         (quotearg_buffer_restyled): Use it.
52026
52027 2000-02-27  Jim Meyering  <meyering@lucent.com>
52028
52029         * m4/check-decl.m4: Add getenv to the list.
52030
52031 2000-02-27  Jim Meyering  <meyering@lucent.com>
52032
52033         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
52034         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
52035
52036         * lib/backupfile.c: Guard inclusion of stdlib.h with
52037         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
52038         Declare malloc if needed.
52039
52040         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
52041         `#ifndef HAVE_DECL..'
52042         now that autoconf always defines the HAVE_DECL_ symbols.
52043         * lib/human.c: Likewise.
52044         * lib/same.c: Likewise.
52045         * lib/strtoumax.c: Likewise.
52046
52047         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
52048         declaration check was not run.
52049         * lib/hash.c: Likewise.
52050         * lib/human.c: Likewise.
52051         * lib/same.c: Likewise.
52052         * lib/strtoumax.c: Likewise.
52053
52054         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
52055         `.', then first look up the entire `.'-containing string as a login
52056         name.
52057
52058 2000-02-23  Jim Meyering  <meyering@lucent.com>
52059
52060         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
52061         in place of my hack.
52062
52063 2000-02-18  Paul Eggert  <eggert@twinsun.com>
52064
52065         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
52066         (textint): New typedef.
52067         (parser_control): Member year changed from int to textint.
52068         All uses changed.
52069         (YYSTYPE): Removed; replaced by %union with int and textint members.
52070         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
52071         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
52072         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
52073         (tSNUMBER, tUNUMBER): Now of type <textintval>.
52074         (date, number, to_year): Use width of number in digits, not its value,
52075         to determine whether it's a 2-digit year, or a 2-digit time.
52076         (yylex): Store number of digits of numeric tokens.
52077         Reported by John Kendall.
52078
52079         (parser_control): Changed from struct parser_control to typedef (for
52080         consistency).  All uses changed.
52081
52082         (tID): Removed; not used.
52083         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
52084
52085 2000-02-14  Paul Eggert  <eggert@twinsun.com>
52086
52087         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
52088         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
52089
52090 2000-02-12  Jim Meyering  <meyering@lucent.com>
52091
52092         * lib/userspec.c (ISDIGIT): Define it.
52093         (isdigit): Remove definition.
52094         (is_number): Use ISDIGIT, not isdigit.
52095         <libintl.h>: Include.
52096         (_ and N_): Define.
52097         (parse_user_spec): Mark translatable strings.
52098
52099 2000-02-10  Jim Meyering  <meyering@lucent.com>
52100
52101         With these changes, nanosleep.[ch] are finally enough like the other
52102         lib/* replacement files to compile on a few more losing systems.
52103
52104         * lib/nanosleep.h: Don't include config.h.
52105         Remove prototype from declaration of nanosleep.
52106         (PARAMS): Remove now-unneeded definition.
52107         * lib/nanosleep.c: #undef nanosleep.
52108         (rpl_nanosleep): Rename from nanosleep.
52109
52110 2000-02-10  Jim Meyering  <meyering@lucent.com>
52111
52112         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
52113         gnu_nanosleep to rpl_nanosleep.
52114
52115 2000-02-09  Jim Meyering  <meyering@lucent.com>
52116
52117         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
52118         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
52119
52120 2000-02-08  Akim Demaille  <akim@epita.fr>
52121
52122         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
52123         `[' and `]' and remove uses of `changequote'.
52124         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
52125         (AC_SYS_LARGEFILE): Likewise.
52126         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
52127         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
52128         of changequote.
52129         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
52130         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
52131         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
52132         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
52133
52134 2000-02-05  Jim Meyering  <meyering@lucent.com>
52135
52136         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
52137         Remove explicit use of AC_HEADER_TIME.  It is required by
52138         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
52139         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
52140         in autoconf whereby the expansion of the latter ended up preceding
52141         the expansion of its prerequisite, AC_HEADER_TIME.
52142         Reported by Volker Borchert.
52143
52144 2000-02-03  Jim Meyering  <meyering@lucent.com>
52145
52146         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
52147
52148 2000-02-03  Jim Meyering  <meyering@lucent.com>
52149
52150         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
52151         rather than with `#if HAVE_UTMPNAME'.
52152
52153 2000-02-02  Jim Meyering  <meyering@lucent.com>
52154
52155         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
52156         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
52157         Reported by Eli Zaretskii.
52158
52159 2000-02-01  Jim Meyering  <meyering@lucent.com>
52160
52161         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
52162
52163 2000-01-31  Jim Meyering  <meyering@lucent.com>
52164
52165         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
52166         functions.  Add the time.h and sys/time.h headers along with the
52167         AC_REQUIRE'ment of AC_HEADER_TIME.
52168
52169 2000-01-31  Jim Meyering  <meyering@lucent.com>
52170
52171         * lib/nanosleep.h (nanosleep): Guard declaration with
52172         `#if ! HAVE_DECL_NANOSLEEP'.
52173         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
52174         the declaration in that vendor's sys/timers.h.
52175         Reported by Christian Krackowizer.
52176
52177         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
52178         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
52179         (ISPRINT): Likewise.
52180         Reported by Tom Tromey.
52181
52182 2000-01-30  Jim Meyering  <meyering@lucent.com>
52183
52184         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
52185
52186         * m4/prereq.m4 (utmp_includes): Define.
52187         Check for ut_user and ut_name members in both struct utmpx
52188         and struct utmp.
52189
52190 2000-01-30  Jim Meyering  <meyering@lucent.com>
52191
52192         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
52193         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
52194         header files where only utmpx.ut_user is declared.
52195
52196         * lib/readutmp.h (UT_USER): Define.
52197
52198 2000-01-29  Jim Meyering  <meyering@lucent.com>
52199
52200         * m4/lib-check.m4: New file containing library-related checks from
52201         fileutils and sh-utils (textutils had none).
52202
52203 2000-01-28  Jim Meyering  <meyering@lucent.com>
52204
52205         * m4/perl.m4: Change format of warning message to look more like that
52206         from the missing script.  Suggestion from François Pinard.
52207
52208 2000-01-25  Jim Meyering  <meyering@lucent.com>
52209
52210         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
52211         well as time.h in the compile check.
52212         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
52213         Fix typo in cross-compiling case: s/yes/no/.
52214
52215 2000-01-23  Jim Meyering  <meyering@lucent.com>
52216
52217         * m4/jm-macros.m4: Move df-related tests here from
52218         fileutils/configure.in
52219
52220         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
52221         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
52222
52223         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
52224         s/space/ac_fsusage_space/.
52225         (jm_FILE_SYSTEM_USAGE): Take two parameters.
52226
52227         * m4/ftruncate.m4: New file (derived from part of
52228         fileutils/configure.in).
52229         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
52230         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
52231
52232         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
52233         AC_SUBST these here, rather than just in sh-util/configure.in, so
52234         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
52235         all the same.
52236         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
52237         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
52238         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
52239         (AC_SUBST(POW_LIBM)): Likewise.
52240         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
52241
52242 2000-01-23  Jim Meyering  <meyering@lucent.com>
52243
52244         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
52245         obstack.c.
52246
52247 2000-01-22  Jim Meyering  <meyering@lucent.com>
52248
52249         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
52250
52251         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
52252
52253         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
52254         configure.in
52255         (AC_CHECK_HEADERS): Likewise for sh-utils.
52256         (AC_CHECK_HEADERS): Likewise for textutils.
52257         Merge the three lists of headers.
52258
52259         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
52260         from fileutils' configure.in.
52261
52262         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
52263         code. Moved tests into their own function (_jm_DECL_HEADERS) in
52264         check-decl.m4.
52265
52266         * m4/check-decl.m4: Use #if rather than #ifdef.
52267         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
52268         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
52269         (_jm_DECL_HEADERS): Define new function.
52270         (jm_CHECK_DECLARATIONS): Require it.
52271
52272 2000-01-22  Jim Meyering  <meyering@lucent.com>
52273
52274         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
52275         [! HAVE_DECL_STRTOULL]: Declare strtoull.
52276         Required for some AIX systems.  Reported by Christian Krackowizer.
52277         [TESTING] (main): New function.
52278
52279         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
52280         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
52281         letters.
52282
52283         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
52284         iswprint.
52285
52286         * lib/strverscmp.c (ISDIGIT): Define.
52287         (strverscmp): Use ISDIGIT, not isdigit.
52288
52289 2000-01-19  Jim Meyering  <meyering@lucent.com>
52290
52291         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
52292         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
52293         defines `struct timespec' in <sys/time.h>
52294
52295         * m4/c-bs-a.m4: Remove uses of changequote altogether.
52296         Thanks to Akim for explaining.
52297
52298 2000-01-17  Paul Eggert  <eggert@twinsun.com>
52299
52300         * lib/nanosleep.c (nanosleep):
52301         Don't use SA_INTERRUPT to decide whether to call sigaction, as
52302         POSIX.1 doesn't require SA_INTERRUPT and some systems
52303         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
52304         it's been part of POSIX.1 since day 1 (in 1988).
52305
52306 2000-01-17  Jim Meyering  <meyering@lucent.com>
52307
52308         * lib/interlock: Remove unused file.  Reported by François Pinard.
52309
52310 2000-01-16  Paul Eggert  <eggert@twinsun.com>
52311
52312         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
52313         alert, backslash, formfeed, and vertical tab unnecessarily in
52314         shell quoting style.
52315
52316 2000-01-16  Jim Meyering  <meyering@lucent.com>
52317
52318         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
52319         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
52320         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
52321         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
52322
52323 2000-01-16  Jim Meyering  <meyering@lucent.com>
52324
52325         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
52326         because the latter didn't work.
52327
52328 2000-01-15  Jim Meyering  <meyering@lucent.com>
52329
52330         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
52331         (AC_REPLACE_FUNCS): Add memcpy and memset.
52332         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
52333         Add strpbrk.
52334         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
52335
52336 2000-01-12  Jim Meyering  <meyering@lucent.com>
52337
52338         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
52339         (jm_PREREQ): Use it.
52340         (jm_PREREQ_READUTMP): New macro.
52341         (jm_PREREQ): Use it.
52342
52343 2000-01-11  Paul Eggert  <eggert@twinsun.com>
52344
52345         Quote multibyte characters correctly.
52346         * m4/c-bs-a.m4: New file.
52347         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
52348         (jm_PREREQ): Use it.
52349
52350 2000-01-11  Paul Eggert  <eggert@twinsun.com>
52351
52352         * m4/uintmax_t.m4: Port to autoconf 2.13.
52353
52354 2000-01-08  Jim Meyering  <meyering@ascend.com>
52355
52356         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
52357         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
52358
52359 2000-01-04  Jim Meyering  <meyering@ascend.com>
52360
52361         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
52362         jm_STRUCT_DIRENT_D_TYPE.
52363         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
52364         jm_STRUCT_DIRENT_D_INO.
52365         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
52366         jm_STRUCT_UTIMBUF.
52367         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
52368         renamings.
52369         * m4/utime.m4: Likewise.
52370
52371         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
52372         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
52373
52374 2000-01-03  Paul Eggert  <eggert@twinsun.com>
52375
52376         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
52377         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
52378
52379 2000-01-02  Jim Meyering  <meyering@ascend.com>
52380
52381         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
52382         remember if this is necessary.
52383
52384 1999-12-26  Jim Meyering  <meyering@ascend.com>
52385
52386         * m4/jm-macros.m4: Use it here.
52387         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
52388
52389 1999-12-23  Jim Meyering  <meyering@ascend.com>
52390
52391         * m4/jm-macros.m4: Check for clock_gettime (moved from
52392         fileutils/configure.in)
52393         Check for gettimeofday.
52394
52395 1999-12-20  Jim Meyering  <meyering@ascend.com>
52396
52397         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
52398         autoconf-2.14a-1999-12-20.
52399
52400 1999-12-19  Jim Meyering  <meyering@ascend.com>
52401
52402         * m4/lstat-slash.m4: New file.
52403         * m4/jm-macros.m4: Use the new macro:
52404         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52405
52406 1999-12-07  Jim Meyering  <meyering@ascend.com>
52407
52408         * m4/perl.m4: Require that File::Compare be available, too.
52409         Too many systems seem to lack it.
52410
52411         * m4/strftime.m4: Add checks for most of the cpp macros tested in
52412         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
52413
52414 1999-11-18  Paul Eggert  <eggert@twinsun.com>
52415
52416         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
52417         problem with the QNX 4.25 shell, which doesn't propagate exit
52418         status of failed commands inside shell assignments.
52419
52420 1999-11-17  Jim Meyering  <meyering@ascend.com>
52421
52422         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
52423
52424 1999-11-07  Jim Meyering  <meyering@ascend.com>
52425
52426         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
52427
52428 1999-11-06  Jim Meyering  <meyering@ascend.com>
52429
52430         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
52431         * m4/jm-macros.m4 (jm_MACROS): Use it here.
52432
52433 1999-11-05  Jim Meyering  <meyering@ascend.com>
52434
52435         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
52436         configure.in of textutils, fileutils, and sh-utils into this one
52437         (shared between those packages) file.
52438         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
52439         AC_STRUCT_ST_BLKSIZE.
52440
52441 1999-11-03  Jim Meyering  <meyering@ascend.com>
52442
52443         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
52444         of AC_CHECK_TYPE checks includes unistd.h.
52445         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
52446         Suggestion from Akim Demaille.
52447
52448 1999-10-30  Jim Meyering  <meyering@ascend.com>
52449
52450         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
52451         m4-quoted string.
52452         * m4/ls-mntd-fs.m4: Likewise.
52453         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
52454         * m4/jm-winsz1.m4: Likewise.
52455
52456         * m4/const.m4: Remove file, since the fix made it into the experimental
52457         version of autoconf.
52458         * m4/mktime.m4: Likewise.
52459
52460         * m4/check-type.m4: Remove file, now that the latest version of
52461         AC_CHECK_TYPE takes a third arg to specify additional #includes.
52462
52463         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
52464         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
52465         AC_CHECK_TYPE.
52466
52467 1999-10-04  Jim Meyering  <meyering@ascend.com>
52468
52469         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
52470
52471 1999-09-22  Paul Eggert  <eggert@twinsun.com>
52472
52473         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
52474         2.95.1 bug with HP-UX 10.20.
52475
52476 1999-09-17  Jim Meyering  <meyering@ascend.com>
52477
52478         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
52479         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
52480         due to missing strdup (against sh-utils-2.0).
52481
52482 1999-08-29  Jim Meyering  <meyering@ascend.com>
52483
52484         * m4/jm-macros.m4: Require jm_BISON.
52485         * m4/bison.m4: New file.
52486
52487 1999-08-17  Paul Eggert  <eggert@twinsun.com>
52488
52489         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
52490         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
52491
52492 1999-08-05  Jim Meyering  <meyering@ascend.com>
52493
52494         * m4/getline.m4: Rename test file from conftestdata to conftest.data
52495         to avoid conflicts with `conftest' on 8+3 filesystems.
52496         Suggestion from Eli Zaretskii.
52497
52498 1999-08-04  Jim Meyering  <meyering@ascend.com>
52499
52500         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
52501         fileutils and sh-utils (textutils's getline test was inadequate).
52502         (AM_FUNC_GETLINE): Run this test.
52503         (AC_CHECK_FUNCS): Check for getdelim.
52504         Reported by Bob Proulx.
52505
52506 1999-08-02  Jim Meyering  <meyering@ascend.com>
52507
52508         * m4/jm-macros.m4: Add a comment.
52509
52510 1999-08-01  Paul Eggert  <eggert@twinsun.com>
52511
52512         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
52513         <inttypes.h> defines strtoumax as a macro (and not as a
52514         function).
52515
52516 1999-08-01  Paul Eggert  <eggert@twinsun.com>
52517
52518         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
52519         that we can shift, multiply and divide unsigned long long
52520         values; Ultrix cc can't do it.
52521
52522 1999-08-01  Paul Eggert  <eggert@twinsun.com>
52523
52524         * m4/mktime.m4: New file, which is a preview of what should appear
52525         in the next public autoconf release.
52526
52527 1999-08-01  Paul Eggert  <eggert@twinsun.com>
52528
52529         * m4/lfs.m4: Remove this file.
52530         * m4/largefile.m4: New file.  It contains the old contents of
52531         lfs.m4, except that all names with prefix AC_LFS have been
52532         changed to use the prefix AC_SYS_LARGEFILE instead, to be
52533         compatible with future autoconf versions.  Also, some minor m4
52534         quoting problems have been fixed.
52535
52536 1999-08-01  Paul Eggert  <eggert@twinsun.com>
52537
52538         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
52539         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
52540         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
52541         and simplify the shell code.
52542
52543 1999-08-01  Jim Meyering  <meyering@ascend.com>
52544
52545         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
52546         m4.
52547
52548 1999-07-20  Jim Meyering  <meyering@ascend.com>
52549
52550         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
52551
52552 1999-07-15  Jim Meyering  <meyering@ascend.com>
52553
52554         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
52555
52556 1999-05-22  Jim Meyering  <meyering@ascend.com>
52557
52558         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
52559
52560 1999-05-20  Jim Meyering  <meyering@ascend.com>
52561
52562         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
52563         Add a colon after each `then' in case $4 is empty.
52564
52565 1999-05-16  Jim Meyering  <meyering@ascend.com>
52566
52567         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
52568
52569 1999-05-10  Jim Meyering  <meyering@ascend.com>
52570
52571         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
52572
52573         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
52574         AC_FUNC_MKTIME.
52575
52576 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
52577
52578         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
52579
52580 1999-05-04  Paul Eggert  <eggert@twinsun.com>
52581
52582         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
52583         not CPPFLAGS, so that linking works correctly in IRIX.
52584
52585 1999-04-30  Paul Eggert  <eggert@twinsun.com>
52586
52587         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
52588
52589 1999-04-20  Paul Eggert  <eggert@twinsun.com>
52590
52591         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
52592         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
52593         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
52594         jm_AC_TYPE_UNSIGNED_LONG_LONG.
52595         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
52596
52597         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
52598
52599 1999-04-20  Jim Meyering  <meyering@ascend.com>
52600
52601         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
52602         AC_REPLACE xstroull if necessary.  From Paul Eggert.
52603         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
52604
52605 1999-04-18  Jim Meyering  <meyering@ascend.com>
52606
52607         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
52608         * m4/jm-macros.m4: Use it.
52609
52610 1999-04-06  Jim Meyering  <meyering@ascend.com>
52611
52612         * m4/strftime.m4: Remove test for %f.
52613
52614 1999-03-29  Jim Meyering  <meyering@ascend.com>
52615
52616         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
52617         superset of the AC_TYPE_* checks in the textutils, fileutils,
52618         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
52619         AC_TYPE_PID_T.
52620
52621 1999-03-28  Jim Meyering  <meyering@ascend.com>
52622
52623         * m4/jm-macros.m4: Define GNU_PACKAGE here.
52624         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
52625         replaced e.g., in the *.sh files of the sh-utils.
52626
52627 1999-03-20  Jim Meyering  <meyering@ascend.com>
52628
52629         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
52630         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
52631         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
52632
52633 1999-03-19  Jim Meyering  <meyering@ascend.com>
52634
52635         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
52636
52637 1999-03-12  Jim Meyering  <meyering@ascend.com>
52638
52639         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
52640
52641 1999-03-07  Jim Meyering  <meyering@ascend.com>
52642
52643         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
52644         declared.
52645
52646 1999-02-17  Jim Meyering  <meyering@ascend.com>
52647
52648         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
52649         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
52650
52651 1999-02-07  Jim Meyering  <meyering@ascend.com>
52652
52653         * m4/group-member.m4: New file -- extracted from sh-utils'
52654         configure.in.
52655
52656         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
52657         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
52658
52659 1999-02-06  Jim Meyering  <meyering@ascend.com>
52660
52661         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
52662         * m4/fnmatch.m4: Likewise.
52663         * m4/getgroups.m4: Likewise.
52664         * m4/lstat.m4: Likewise.
52665         * m4/malloc.m4: Likewise.
52666         * m4/putenv.m4: Likewise.
52667         * m4/realloc.m4: Likewise.
52668         * m4/regex.m4: Likewise.
52669         * m4/stat.m4: Likewise.
52670         * m4/strftime.m4: Likewise.
52671         Suggestion from Alain Magloire.
52672
52673         * m4/chown.m4: Use `.$ac_objext', not `.o'.
52674         * m4/fnmatch.m4: Likewise.
52675         * m4/getgroups.m4: Likewise.
52676         * m4/getline.m4: Likewise.
52677         * m4/lstat.m4: Likewise.
52678         * m4/malloc.m4: Likewise.
52679         * m4/memcmp.m4: Likewise.
52680         * m4/putenv.m4: Likewise.
52681         * m4/realloc.m4: Likewise.
52682         * m4/regex.m4: Likewise.
52683         * m4/stat.m4: Likewise.
52684         * m4/strftime.m4: Likewise.
52685         Suggestion from Alain Magloire.
52686
52687         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
52688         an argument.
52689
52690         * m4/regex.m4: Add a run-time Test for proper operation of
52691         re_compile_pattern.
52692
52693 1999-01-31  Jim Meyering  <meyering@ascend.com>
52694
52695         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
52696
52697 1999-01-30  Jim Meyering  <meyering@ascend.com>
52698
52699         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
52700
52701         * m4/jm-mktime.m4: Make this a wrapper around the official
52702         AM_FUNC_MKTIME rather than my private copy, now that the official one
52703         is up to date.
52704         * m4/mktime.m4: Remove file.
52705
52706         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
52707         * m4/uptime.m4: Likewise.
52708         * m4/uintmax_t.m4: Likewise.
52709
52710 1999-01-28  Jim Meyering  <meyering@ascend.com>
52711
52712         * m4/jm-macros.m4: Use jm_AFS.
52713         * m4/afs.m4: New file (from fileutils' configure.in).
52714
52715         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
52716         * m4/chown.m4: Likewise.
52717         * m4/d-ino.m4: Likewise.
52718         * m4/d-type.m4: Likewise.
52719         * m4/fnmatch.m4: Likewise.
52720         * m4/getgroups.m4: Likewise.
52721         * m4/gettext.m4: Likewise.
52722         * m4/jm-mktime.m4: Likewise.
52723         * m4/jm-winsz2.m4: Likewise.
52724         * m4/lcmessage.m4: Likewise.
52725         * m4/ls-mntd-fs.m4: Likewise.
52726         * m4/malloc.m4: Likewise.
52727         * m4/memcmp.m4: Likewise.
52728         * m4/putenv.m4: Likewise.
52729         * m4/realloc.m4: Likewise.
52730         * m4/st_mtim.m4: Likewise.
52731         * m4/strftime.m4: Likewise.
52732
52733 1999-01-16  Jim Meyering  <meyering@ascend.com>
52734
52735         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
52736         (ARGMATCH_DIE_DECL): Define.
52737
52738 1999-01-12  Jim Meyering  <meyering@ascend.com>
52739
52740         * m4/Makefile.am.in: Rewrite to avoid using fmt.
52741         Reported by Lars Hecking.
52742
52743 1999-01-10  Jim Meyering  <meyering@ascend.com>
52744
52745         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
52746         gross kludge.
52747         * m4/inttypes_h.m4: Likewise.
52748         * m4/lstat.m4: Likewise.
52749         * m4/malloc.m4: Likewise.
52750         * m4/readdir.m4: Likewise.
52751         * m4/realloc.m4: Likewise.
52752         * m4/st_dm_mode.m4: Likewise.
52753         * m4/stat.m4: Likewise.
52754         * m4/utimbuf.m4: Likewise.
52755         * m4/utimes.m4: Likewise.
52756
52757         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
52758         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
52759         comments in config.h.in are meaningful.
52760
52761         * m4/jm-macros.m4: Require autoconf-2.13 here.
52762
52763         * m4/regex.m4: By default, don't use the included regex.c on systems
52764         with glibc 2.  Suggestion from Uli Drepper.
52765
52766 1999-01-02  Jim Meyering  <meyering@ascend.com>
52767
52768         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
52769
52770 1998-12-18  Jim Meyering  <meyering@ascend.com>
52771
52772         * m4/Makefile.am.in (Makefile.am): Simplify rule.
52773         Based on a suggestion from Lars Hecking.
52774
52775 1998-11-16  Paul Eggert  <eggert@twinsun.com>
52776
52777         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
52778
52779 1998-11-16  Jim Meyering  <meyering@ascend.com>
52780
52781         * m4/lfs.m4: Double-quote the `uname...` expression.
52782
52783 1998-11-14  Jim Meyering  <meyering@ascend.com>
52784
52785         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
52786         * m4/stat.m4: Likewise.
52787
52788 1998-11-03  Jim Meyering  <meyering@ascend.com>
52789
52790         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
52791         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
52792
52793 1998-10-18  Jim Meyering  <meyering@ascend.com>
52794
52795         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
52796
52797 1998-10-17  Jim Meyering  <meyering@ascend.com>
52798
52799         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
52800         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
52801         calls for those previously hard-coded headers.  Instead, take a new
52802         parameter.
52803         (jm_CHECK_DECLARATIONS): Reflect interface change.
52804         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
52805         (jm_CHECK_DECL_LOCALTIME_R): New macro.
52806
52807         * m4/mktime.m4: Test for spring-forward gap before long-running test.
52808
52809 1998-10-14  Jim Meyering  <meyering@ascend.com>
52810
52811         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
52812         instead of "TZ=America/Vancouver".  From Paul Eggert.
52813
52814 1998-10-11  Jim Meyering  <meyering@ascend.com>
52815
52816         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
52817         This adds a test for a recently added compatibility fix for mktime.c.
52818         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
52819
52820 1998-09-27  Jim Meyering  <meyering@ascend.com>
52821
52822         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
52823
52824         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
52825         ../configure.in, including a change from Gordon Matzigkeit to allow
52826         cross-compiling for the Hurd.
52827
52828         * m4/glibc.m4: New file/macro to test for the GNU C Library
52829         versions 1 and 2.  From Gordon Matzigkeit.
52830         Indent.
52831
52832 1998-09-21  Jim Meyering  <meyering@ascend.com>
52833
52834         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
52835
52836 1998-08-18  Paul Eggert  <eggert@twinsun.com>
52837
52838         Port nanosecond-resolution times to UnixWare 2.1.2 and
52839         pedantic Solaris 2.6.
52840
52841         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
52842         AC_STRUCT_ST_MTIM.
52843         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
52844         Generate name of ns member, instead of just 1 or undef.
52845         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
52846
52847 1998-08-15  Jim Meyering  <meyering@ascend.com>
52848
52849         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
52850         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
52851         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
52852         instead of jm_TYPE_SSIZE_T.
52853
52854 1998-08-12  Jim Meyering  <meyering@ascend.com>
52855
52856         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
52857
52858 1998-08-02  Jim Meyering  <meyering@ascend.com>
52859
52860         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
52861         in acconfig.h manually.
52862
52863 1998-07-31  Paul Eggert  <eggert@twinsun.com>
52864
52865         * m4/st_mtim.m4: New file.
52866
52867 1998-07-28  Jim Meyering  <meyering@ascend.com>
52868
52869         * m4/utimes.m4: Undef stat.
52870
52871 1998-07-25  Jim Meyering  <meyering@ascend.com>
52872
52873         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
52874         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
52875
52876 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
52877
52878         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
52879         uid and gid actually remain unchanged.
52880
52881 1998-07-07  Jim Meyering  <meyering@ascend.com>
52882
52883         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
52884
52885 1998-07-04  Jim Meyering  <meyering@ascend.com>
52886
52887         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
52888         to prove that this macro can be used in packages without regex.c.
52889
52890 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
52891
52892         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
52893         is to be used.
52894
52895 1998-07-03  Jim Meyering  <meyering@ascend.com>
52896
52897         * m4/gettext.m4: Add -lintl if it's found to be necessary.
52898
52899         * m4/gettext.m4: New file -- from gettext-0.10.35.
52900         * m4/lcmessage.m4: Likewise.
52901         * m4/progtest.m4: Likewise.
52902
52903         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
52904         * m4/jm-macros.m4: Require the new macro.
52905
52906 1998-06-29  Jim Meyering  <meyering@ascend.com>
52907
52908         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
52909         for the definition of NGROUPS (used in a system header included
52910         by sys/mount.h).
52911
52912 1998-06-28  Jim Meyering  <meyering@ascend.com>
52913
52914         * m4/ls-mntd-fs.m4: New file.
52915         * m4/fstypename.m4: New file.
52916
52917         * m4/jm-macros.m4: Require the new macro.
52918         * m4/jm-glibc-io.m4: New file.
52919
52920 1998-05-19  Jim Meyering  <meyering@ascend.com>
52921
52922         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
52923         * m4/lchown.m4: New file.
52924
52925         * m4/Makefile.am.in: New file.
52926         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
52927
52928 1998-05-14  Jim Meyering  <meyering@ascend.com>
52929
52930         * m4/Makefile.am (EXTRA_DIST): Add them.
52931         * m4/jm-macros.m4: New file.
52932         * m4/utimbuf.m4: New file.
52933
52934 1998-05-12  Jim Meyering  <meyering@ascend.com>
52935
52936         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
52937
52938 1998-05-11  Jim Meyering  <meyering@ascend.com>
52939
52940         * m4/isc-posix.m4: New file.
52941
52942 1998-05-10  Jim Meyering  <meyering@ascend.com>
52943
52944         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
52945
52946 1998-05-09  Jim Meyering  <meyering@ascend.com>
52947
52948         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
52949         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
52950         with automake.
52951
52952         * m4/ssize_t.m4: New file.
52953         * m4/mktime.m4: Remove file -- the new automake has this now.
52954
52955 1998-04-26  Jim Meyering  <meyering@ascend.com>
52956
52957         * m4/assert.m4: New file.
52958         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
52959
52960 1998-04-05  Jim Meyering  <meyering@ascend.com>
52961
52962         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
52963         (jm_PREREQ): Use it here.
52964
52965 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
52966
52967         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
52968         in acconfig.h.
52969
52970 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
52971
52972         * m4/prereq.m4: New file.
52973         * m4/error.m4: New file.
52974         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
52975
52976 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
52977
52978         * m4/getline.m4: Don't set am_cv_func_working_getline before the
52979         cache-check for the same variable -- that defeated the purpose of
52980         the test; the test program was never run.  This was a problem only
52981         on systems with losing getline functions -- HP-UX 10.20 is one.
52982         Reported by Bjorn Helgaas.
52983
52984 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
52985
52986         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
52987
52988 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
52989
52990         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
52991
52992         * m4/const.m4: New file.  Use an initializer in this declaration
52993         typedef int charset[2]; const charset x;
52994         Reported by Bob Glickstein.
52995
52996 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
52997
52998         * m4/chown.m4: Fix reversed types on -1 args to chown.
52999         From Kaveh Ghazi.
53000
53001 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
53002
53003         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
53004         Add lseek and memchr.
53005
53006         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
53007         T.E.Dickey <dickey@clark.net> said that some older preprocessors
53008         have a 20-character limit on names.
53009
53010 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
53011
53012         * m4/inttypes_h.m4: New file.
53013         * m4/uintmax_t.m4: New file.
53014         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
53015
53016
53017         -----
53018
53019         Local Variables:
53020         coding: utf-8
53021         End:
53022
53023         Copyright (C) 1997-2009 Free Software Foundation, Inc.
53024
53025         Copying and distribution of this file, with or without
53026         modification, are permitted provided the copyright notice
53027         and this notice are preserved.