test-stat-time, test-utimens: improve portability
[gnulib.git] / ChangeLog
1 2009-10-16  Eric Blake  <ebb9@byu.net>
2
3         test-stat-time, test-utimens: improve portability
4         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
5         ext4 on alpha, and for cygwin.
6         * tests/test-utimens-common.h: New file.
7         (nap): Factor delays into single function.
8         * tests/test-lutimens.h (test_lutimens): Use new header.
9         * tests/test-futimens.h (test_futimens): Likewise.
10         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
11         timestamps to occur from same machine, as was done previously for
12         test_utimens.
13         * modules/utimens-tests (Files): Ship new file.
14         * modules/futimens-tests (Files): Likewise.
15         Reported in part by Jim Meyering.
16
17         sys_stat: sort replacement declarations
18         * lib/sys_stat.in.h: Sort declarations.
19         * lib/futimens.c (futimens): Fix typo.
20
21 2009-10-15  Jim Meyering  <meyering@redhat.com>
22
23         don't let environment settings perturb build
24         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
25         could cause a configure-time and/or build-time malfunction.
26         Typically, a configure-time function-in-library test is performed
27         via code like this:
28
29           LIB_VAR=
30           AC_SUBST([LIB_VAR])
31           prefix_saved_LIBS=$LIBS
32             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
33                        [test "$ac_cv_search_FUNC" = "none required" ||
34                         LIB_VAR=$ac_cv_search_FUNC])
35           LIBS=$prefix_saved_LIBS
36
37         However, in each of the files affected by this change, the LIB_VAR=
38         initialization was omitted.  Thus, when set in the environment, its
39         value would propagate into generated Makefiles when FUNC is not found
40         in LIB_NAME.
41         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
42         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44
45 2009-10-14  Eric Blake  <ebb9@byu.net>
46
47         fchdir: avoid infinite recursion in mingw
48         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
49         recursing.
50
51         test-stat-time: port to mingw
52         * tests/test-stat-time.c (force_unlink): Return a value.
53         (test_ctime) [W32]: Fix compilation error.
54         (nap): Don't call usleep with too large an argument.  Use
55         force_unlink.
56         * doc/pastposix-functions/usleep.texi (usleep): Document the
57         portability issue.
58
59 2009-10-13  Jim Meyering  <meyering@redhat.com>
60
61         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
62         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
63         * modules/pipe-filter-ii: Likewise.
64         * modules/sys_socket-tests: Likewise.
65         * modules/tsearch-tests: Likewise.
66         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
67         (check): Depend on it.
68
69 2009-10-12  Eric Blake  <ebb9@byu.net>
70
71         utimens-tests: port to NFS file systems
72         * tests/test-utimens.h (test_utimens): Refactor utimecmp
73         comparisons to avoid spurious failures from timestamp drift
74         between NFS machines.
75
76 2009-10-12  Eric Blake  <ebb9@byu.net>
77
78         stat-time-tests: minor cleanups
79         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
80         * tests/test-stat-time.c (nap): Separate assignment from call.
81         Suggested by Paolo Bonzini and Bruno Haible.
82
83         sys_stat: guarantee struct timespec
84         * lib/sys_stat.in.h (includes): Always include <time.h>
85         * modules/sys_stat (Depends-on): Add time.
86         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
87         mode_t permission values.
88         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
89         get at subsecond timestamps.
90
91 2009-10-10  Eric Blake  <ebb9@byu.net>
92
93         futimens: new module
94         * modules/futimens: New file.
95         * lib/futimens.c (futimens): Likewise.
96         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
97         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
98         we can work around Linux bugs.
99         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
100         * modules/sys_stat (Makefile.am): Substitute them.
101         * lib/sys_stat.in.h (futimens): Declare it.
102         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
103         * doc/posix-functions/futimens.texi (futimens): Likewise.
104         * modules/futimens-tests: New test.
105         * tests/test-futimens.c: Likewise.
106
107         utimens: introduce fdutimens
108         * lib/utimens.h (fdutimens): New prototype.
109         * lib/utimens.c (gl_futimens): Move guts...
110         (fdutimens): ...to new interface.
111         * tests/test-utimens.c (do_fdutimens): Use it.
112
113         utimens: add UTIME_NOW and UTIME_OMIT support
114         * lib/utimens.c (validate_timespec, update_timespec): New helper
115         functions.
116         (gl_futimens, lutimens): Use them.
117         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
118         stdbool, sys_stat.
119         (Link): Mention resulting library dependency.
120         * modules/utimecmp (Link): Likewise.
121         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
122         (Makefile.am): Pick up library dependency.
123         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
124         definition.
125         * tests/test-sys_stat.c: Test the definitions.
126         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
127         * NEWS: Document library dependency.
128
129         utimecmp: support symlink timestamps
130         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
131         hashing when possible.  Use pathconf when available.
132         (SYSCALL_RESOLUTION): Recognize tighter resolution.
133         * modules/utimecmp (Depends-on): Add lstat.
134
135         utimens: add lutimens interface
136         * lib/utimens.c (lutimens): New function.
137         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
138         * lib/utimens.h (lutimens): Declare new interface.
139         * tests/test-utimens.c (main): Enhance test.
140         * tests/test-lutimens.h (test_lutimens): New file.
141         * modules/utimens-tests (Files): Distribute it.
142         (Depends-on): Add symlink.
143         (configure.ac): Check for usleep.
144
145         utimens: validate futimens usage
146         * lib/utimens.c (gl_futimens): Require valid fd up front, using
147         fewer syscalls on failure later on.  Avoid compiler warning on
148         mingw.
149         * modules/utimens (Depends-on): Add dup2.
150
151         utimens: add test
152         * modules/utimens-tests: New test.
153         * tests/test-utimens.h: New file.
154         * tests/test-futimens.h: Likewise.
155         * tests/test-utimens.c: Likewise.
156
157         doc: mention timestamp portability issues
158         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
159         instead.
160         * doc/posix-functions/utime.texi (utime): Likewise.
161         * doc/posix-functions/utimes.texi (utimes): Likewise.
162         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
163         instead.
164         * doc/posix-functions/futimens.texi (futimens): Mention utimens
165         module.
166         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
167         Mention weakness with symlink timestamps.
168         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
169         to utimensat/futimens instead.
170         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
171
172         test-dup2: enhance test
173         * tests/test-dup2.c (main): Also check AT_FDCWD.
174
175         test-stat-time: avoid more spurious failures
176         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
177         xfs; and avoid race if the two timestamps cross quantization edge.
178
179         relocatable: prefer 'file system' over 'filesystem'
180         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
181         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
182         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
183         * doc/relocatable.texi (Enabling Relocatability): Likewise.
184         * lib/relocatable.c (compute_curr_prefix): Likewise.
185
186 2009-10-10  Jim Meyering  <meyering@redhat.com>
187
188         stat-time-tests: check for the usleep function
189         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
190
191 2009-10-10  Bruno Haible  <bruno@clisp.org>
192
193         * modules/xnanosleep: Put the Link section after the Include section.
194
195 2009-10-09  Eric Blake  <ebb9@byu.net>
196
197         dup2: work around FreeBSD 6.1 bug
198         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
199         * doc/posix-functions/dup2.texi (dup2): Document it.
200         Reported by Nelson H. F. Beebe and Jim Meyering.
201
202         test-stat-time: port to buggy NFS clients
203         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
204         (test_ctime): Also skip test if mtime and ctime are skewed.
205
206         maint: prefer 'file system' over 'filesystem'
207         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
208         * doc/posix-functions/lstat.texi (lstat): Likewise.
209         * lib/file-has-acl.c (file_has_acl): Likewise.
210         * lib/fwriteerror.c [TEST]: Likewise.
211         * tests/test-areadlink.h (test_areadlink): Likewise.
212         * tests/test-areadlinkat-with-size.c (main): Likewise.
213         * tests/test-areadlinkat.c (main): Likewise.
214         * tests/test-canonicalize-lgpl.c (main): Likewise.
215         * tests/test-canonicalize.c (main): Likewise.
216         * tests/test-fstatat.c (main): Likewise.
217         * tests/test-linkat.c (main): Likewise.
218         * tests/test-lstat.h (test_lstat_func): Likewise.
219         * tests/test-mkdir.h (test_mkdir): Likewise.
220         * tests/test-readlink.h (test_readlink): Likewise.
221         * tests/test-remove.c (main): Likewise.
222         * tests/test-rename.h (test_rename): Likewise.
223         * tests/test-renameat.c (main): Likewise.
224         * tests/test-rmdir.h (test_rmdir_func): Likewise.
225         * tests/test-symlink.h (test_symlink): Likewise.
226         * tests/test-symlinkat.c (main): Likewise.
227         * tests/test-unlink.h (test_unlink_func): Likewise.
228         * tests/test-unlinkat.c (main): Likewise.
229
230         maint: make realtime library usage explicit
231         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
232         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
233         * modules/settime (Link): Likewise.
234         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
235
236         test-stat-time: speed up execution
237         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
238         warning on mingw.
239         (nap): New helper function.
240         (prepare_test): Use it to reduce sleep time.
241         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
242         execution.
243         * modules/stat-time-tests (configure.ac): Check for usleep.
244
245 2009-10-09  Jim Meyering  <meyering@redhat.com>
246
247         selinux-h: always use getfilecon wrappers
248         * lib/getfilecon.c: New file.
249         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
250         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
251         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
252         (fgetfilecon): Provide a stub.
253         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
254         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
255         file unconditionally.
256         When <selinux/selinux.h> is found, arrange to use wrappers.
257         * modules/selinux-h (Files): Add getfilecon.c.
258         (Makefile.am): Substitute include-next-related bits
259         into the now-always-generated selinux/selinux.h file.
260         * doc/glibc-functions/lgetfilecon.texi: New file.
261         * doc/glibc-functions/fgetfilecon.texi: New file.
262         * doc/glibc-functions/getfilecon.texi: New file.
263         * doc/glibc-functions/getfilecon-desc.texi: New file.
264         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
265         which to pull in the new files.
266         * MODULES.html.sh (Misc): Add selinux-h.
267
268 2009-10-08  Jim Meyering  <meyering@redhat.com>
269
270         unistd: fix comment typo
271         * lib/unistd.in.h (euidaccess): Fix a comment typo.
272
273 2009-10-08  Eric Blake  <ebb9@byu.net>
274
275         areadlink: use SIZE_MAX consistently
276         * modules/areadlink (Depends-on): Add stdint.
277         * modules/areadlink-with-size (Depends-on): Likewise.
278         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
279         gives NULL; drop sys/types, since unistd gives size_t; and add
280         stdint for SIZE_MAX.
281         (SIZE_MAX): Rely on headers.
282         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
283         and add stdint.
284         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
285         (SIZE_MAX): Likewise.
286         (INITIAL_BUF_SIZE): Turn into enum.
287         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
288
289 2009-10-08  Jim Meyering  <meyering@redhat.com>
290
291         areadlinkat: avoid compilation failure
292         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
293         Fix typo in comment.
294
295 2009-10-07  Eric Blake  <ebb9@byu.net>
296
297         areadlinkat-with-size: new module
298         * modules/areadlinkat-with-size: New module.
299         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
300         * lib/areadlink.h (areadlinkat): Declare it.
301         * MODULES.html.sh (File system functions): Mention it.
302         * modules/areadlinkat-with-size-tests: New test.
303         * tests/test-areadlinkat-with-size.c: New file.
304
305         xreadlinkat: new module
306         * modules/xreadlinkat: New module.
307         * lib/xreadlinkat.c (xreadlinkat): New file.
308         * lib/xreadlink.h (xreadlinkat): Declare it.
309         * MODULES.html.sh (File system functions): Mention it.
310
311         areadlinkat: new module
312         * lib/at-func.c (FUNC_FAIL): New define.
313         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
314         * modules/areadlinkat: New module.
315         * lib/linkat.c (areadlinkat): Move...
316         * lib/areadlinkat.c (areadlinkat): ...to new file.
317         * lib/areadlink.h (areadlinkat): Declare it.
318         * modules/linkat (Depends-on): Add areadlinkat.
319         * MODULES.html.sh (File system functions): Mention it.
320         * modules/areadlinkat-tests: New test.
321         * tests/test-areadlinkat.c: New file.
322
323         areadlink, areadlink-with-size: add tests
324         * modules/areadlink-tests: New test.
325         * modules/areadlink-with-size-tests: Likewise.
326         * tests/test-areadlink.h: New file.
327         * tests/test-areadlink.c: Likewise.
328         * tests/test-areadlink-with-size.c: Likewise.
329
330         maint: minor cleanups
331         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
332         _UNUSED_PARAMETER_ instead.
333         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
334         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
335         * modules/linkat-tests (Files): Distribute test-link.h.
336
337         openat, utimens: whitespace cleanup
338         * lib/openat.c: Prefer space throughout, rather than mix of 8
339         spaces vs. tabs.
340         * lib/at-func.c: Likewise.
341         * lib/utimens.c: Likewise.
342
343         openat: avoid using wrong fd
344         * lib/openat.c (openat_permissive): Reject user's fd if saving the
345         working directory chooses same fd.
346         * lib/at-func.c (AT_FUNC_NAME): Likewise.
347
348         mkdir, mkdirat: fix cygwin 1.5.x bug
349         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
350         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
351         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
352         bug.
353         (gl_PREREQ_MKDIR): Delete unused macro.
354         * modules/mkdir (Files): Track file rename.
355         (configure.ac): Update macro name.
356         * modules/openat (Depends-on): Add mkdir.
357         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
358
359         mkdir, mkdirat: add tests
360         * modules/mkdir-tests: New test.
361         * tests/test-mkdir.h: New file.
362         * tests/test-mkdir.c: Likewise.
363         * tests/test-mkdirat.c: Likewise.
364         * modules/openat-tests (Files): Add new files.
365         (Makefile.am): Run new test.
366
367 2009-10-06  Eric Blake  <ebb9@byu.net>
368
369         doc: tweak *at function documentation
370         * doc/posix-functions/faccessat.texi (faccessat): Mention
371         known issue with replacement.
372         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
373         * doc/posix-functions/linkat.texi (linkat): Likewise.
374         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
375         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
376         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
377         * doc/posix-functions/renameat.texi (renameat): Likewise.
378         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
379
380         openat: fix GNU/Hurd bug in unlinkat
381         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
382         broken.
383         * doc/posix-functions/unlink.texi (unlink): Document this.
384         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
385
386         fdopendir: fix GNU/Hurd bug
387         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
388         allowing non-directory fds.
389         * lib/fdopendir.c (rpl_fdopendir): Work around it.
390         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
391         * modules/dirent (Makefile.am): Substitute it.
392         * lib/dirent.in.h (fdopendir): Declare replacement.
393         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
394         * tests/test-fdopendir.c (main): Test something other than
395         /dev/null, since on Hurd that behaves like a directory.
396
397         test-symlink: port to GNU/Hurd
398         * tests/test-symlink.h (test_symlink): Relax expected errno.
399
400         doc: tweak more cygwin information
401         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
402         now compatible with glibc.
403         * doc/posix-functions/getopt.texi (getopt): Likewise.
404
405         getopt-gnu: add another test
406         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
407         guarantee behavior relied on by m4.
408         * tests/test-getopt.c (main): Use it.
409         * modules/getopt-posix-tests (Depends-on): Add setenv.
410         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
411
412         getopt: fix compilation on darwin
413         * lib/getopt.in.h (includes): Leave breadcrumbs during system
414         include.
415         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
416         Reported by Ludovic Courtès.
417
418 2009-10-06  Bruno Haible  <bruno@clisp.org>
419
420         * modules/size_max (Description): Discourage its use.
421         Reported by Simon Josefsson.
422
423 2009-10-06  Jim Meyering  <meyering@redhat.com>
424
425         linkat: avoid compilation failure
426         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
427
428 2009-10-05  Eric Blake  <ebb9@byu.net>
429
430         linkat: support Linux 2.6.17
431         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
432         linkat on Linux, but allow cache variable override.
433         * lib/linkat.c (rpl_linkat): Define override.
434         * modules/linkat (Depends-on): Add symlinkat.
435         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
436         * modules/unistd (Makefile.am): Substitute it.
437         * lib/unistd.in.h (linkat): Declare replacement.
438         Reported by Pádraig Brady.
439
440         quotearg: port test to systems with C.UTF-8 locale
441         * tests/test-quotearg.c (struct result_strings): Add another
442         member, differentiating between C.ASCII and C.UTF-8 handling.
443         (compare_strings): Add parameter.
444         (main): Adjust all callers.
445
446         getopt: avoid clash with FreeBSD _getopt_internal
447         * lib/getopt.in.h (_getopt_internal): Override the name.
448         * lib/getopt_int.h (includes): Pick up any overrides.
449         Reported by Reuben Thomas.
450
451         hash: allow C89 compilation
452         * lib/hash.c (check_tuning): Move declaration before statement.
453         Reported by Reuben Thomas.
454
455 2009-10-05  Karl Berry  <karl@gnu.org>
456
457         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
458
459 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
460             Bruno Haible  <bruno@clisp.org>
461
462         * lib/uname.c (uname): Use a table-driven algorithm to compute
463         Windows NT versions.
464
465 2009-10-04  Bruno Haible  <bruno@clisp.org>
466
467         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
468         program_invocation_short_name.
469         * modules/progname (configure.ac): Test for presence of
470         program_invocation_short_name.
471         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
472
473 2009-10-04  Bruno Haible  <bruno@clisp.org>
474
475         * lib/progname.c (set_program_name): Fix comment.
476         Reported by Jim Meyering.
477
478 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
479             Bruno Haible  <bruno@clisp.org>
480
481         * lib/uname.c: Include <string.h>.
482         (uname): Do only one call to GetVersionEx in the common case.
483
484 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
485             Bruno Haible  <bruno@clisp.org>
486
487         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
488         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
489         (uname): Add support for Windows CE and various non-x86 CPU types.
490
491 2009-10-03  Bruno Haible  <bruno@clisp.org>
492
493         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
494         invocation to tests/configure.ac.
495         Reported by Ian Beckwith <ianb@erislabs.net>.
496
497 2009-10-02  Eric Blake  <ebb9@byu.net>
498
499         fchdir: avoid compiler warning
500         * lib/fchdir.c (canonicalize_file_name)
501         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
502
503         test-open: support mingw errno values
504         * tests/test-open.h (test_open): Relax test.
505         * tests/test-fopen.h (test_fopen): Likewise.
506         * tests/test-openat-safer.c (main): Likewise.
507
508         open: fix opening directory on mingw
509         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
510
511         test-open: on GNU/Hurd, /dev/null is a directory
512         * tests/test-fopen.h (main): Rename...
513         (test_fopen): ...to this.  Use a guaranteed non-directory when
514         confirming open behavior on trailing slash.
515         * tests/test-openat-safer.c (main): Likewise.
516         * tests/test-open.h (main): Likewise....
517         (test_open): ...to this.
518         * tests/test-fopen.c (main): Adjust caller.
519         * tests/test-fopen-safer.c (main): Likewise.
520         * tests/test-open.c (main): Likewise.
521         * tests/test-fcntl-safer.c (main): Likewise.
522         Reported by Samuel Thibault.
523
524         rename, fchdir: don't ignore chdir failure
525         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
526         * lib/rename.c (rpl_rename) [W32]: Likewise.
527         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
528         an empty destination directory if source cannot be renamed,
529         although there is still possibility for failure.
530         * doc/posix-functions/rename.texi (rename): Document the race.
531         Reported by Jim Meyering.
532
533         maint: cleanup whitespace in recent commits
534         * lib/rename.c (rpl_rename): Remove tabs.
535         * tests/test-link.h (test_link): Likewise.
536         * lib/fchdir.c (get_name): Likewise.
537         Reported by Jim Meyering.
538
539 2009-10-02  Ben Pfaff  <blp@gnu.org>
540
541         relocatable-prog-wrapper: Add missing dependency on
542         double-slash-root.
543         * modules/relocatable-prog-wrapper: Add dependency.
544         Reported by Ian Beckwith <ianb@erislabs.net>.
545
546 2009-10-02  Eric Blake  <ebb9@byu.net>
547
548         renameat: fix Solaris bugs
549         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
550         needed fixing.
551         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
552         * modules/stdio (Makefile.am): Substitute it.
553         * lib/stdio.in.h (renameat): Declare replacement.
554         * lib/renameat.c (rpl_renameat): Implement fix.
555
556         renameat: new module
557         * modules/renameat: New file.
558         * lib/renameat.c (renameat): Likewise.
559         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
561         * modules/stdio (Makefile.am): Substitute them.
562         * lib/stdio.in.h (renameat): Declare it.
563         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
564         * doc/posix-functions/renameat.texi (renameat): Likewise.
565         * modules/renameat-tests: New test.
566         * tests/test-renameat.c: Likewise.
567
568         rename: fix mingw bugs
569         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
570         directory overwrite bugs.
571
572         rename: fix another cygwin 1.5 bug
573         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
574         checks.
575         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
576         unnecessary cygwin workarounds.  Also work around bug with moving
577         full directory onto an empty one.
578         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
579
580         rename-dest-slash: merge into rename module
581         * modules/rename-dest-slash (Status): Mark obsolete.
582         (Depends-on): Add rename.
583         (Files): Let rename do it all.
584         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
585         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
586         * m4/rename-dest-slash.m4: ...so this file can be deleted.
587         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
588         * lib/rename.c (rpl_rename): Update comments.
589
590         rename: fix cygwin 1.5.x bugs
591         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
592         * lib/rename.c (rpl_rename): Work around them.
593         * modules/rename (Depends-on): Add same-inode.
594
595         rename: fix Solaris 10 bug
596         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
597         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
598         was the only bug.
599
600         rename: fix Solaris 9 bug
601         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
602         on non-directory.  Avoid calling exit.
603         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
604         strdup.
605         * modules/rename-tests (Depends-on): Drop lstat.
606         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
607         (gl_PREREQ_RENAME): Delete unused macro.
608
609         rename-dest-slash: fix NetBSD bug
610         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
611         links.
612         * modules/rename-dest-slash (Depends-on): Add same-inode.
613
614         rename-tests: new test, exposes several platform bugs
615         * modules/rename-tests: New file.
616         * tests/test-rename.h: Likewise.
617         * tests/test-rename.c: Likewise.
618         * doc/posix-functions/rename.texi (rename): Improve documentation,
619         including bugs that will eventually be fixed in gnulib.
620
621 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
622
623         * lib/uname.c: Include <stdlib.h>
624         (uname): Assume version info is available.
625
626 2009-10-02  Jim Meyering  <meyering@redhat.com>
627
628         gnu-web-doc-update: correct --help output
629         * build-aux/gnu-web-doc-update: Make --help output relevant.
630
631         gnu-web-doc-update: add standard options
632         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
633
634         gnu-web-doc-update: New module.
635         Use this script to automatically update the on-line web documentation
636         for your GNU project at http://www.gnu.org/software/$pkg/manual/
637         * modules/gnu-web-doc-update: New file, from coreutils.
638         * build-aux/gnu-web-doc-update: New script.
639
640 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
641
642         link: LoadLibrary is not needed.
643         * lib/link.c: Use GetModuleHandle.
644
645 2009-10-01  Eric Blake  <ebb9@byu.net>
646
647         getopt: bump serial number
648         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
649         change.
650
651         tests: tighten link, rmdir, and remove tests
652         * tests/test-link.h (includes): No need to use <config.h> here.
653         Clean up if directory hard link was created, otherwise test for
654         trailing '.'.
655         * tests/test-linkat.c (main): Simplify.
656         * tests/test-remove.c (main): Enhance test for trailing '.'.
657         * tests/test-rmdir.h (test_rmdir_func): Likewise.
658
659 2009-10-01  Jim Meyering  <meyering@redhat.com>
660
661         maint.mk: requiring "make major" was annoying, for a "minor" release.
662         What is intended is "stable", to contrast with alpha and beta,
663         so require "make stable", not "make major".
664         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
665         (get_tool_versions): Likewise.
666         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
667
668 2009-09-30  Ben Pfaff  <blp@gnu.org>
669
670         Fix broken build of replacement for Windows tmpfile().
671         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
672         flags argument added along with the 'mkostemp' module.
673
674 2009-09-28  Bruno Haible  <bruno@clisp.org>
675
676         Avoid identifier clash with POSIX function 'remove' defined as a macro.
677         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
678         to 'remove_elt'.
679         (gl_list_remove): Update.
680         * lib/gl_list.c (gl_list_remove): Update.
681         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
682         to 'remove_elt'.
683         (gl_oset_remove): Update.
684         * lib/gl_list.c (gl_oset_remove): Update.
685         Reported by Eric Blake.
686
687 2009-09-28  Eric Blake  <ebb9@byu.net>
688
689         doc: mention yet more cygwin 1.7 status
690         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
691         cygwin.
692         * doc/glibc-functions/execvpe.texi (execvpe): New file.
693         * doc/gnulib.texi (Glibc unistd.h): Mention it.
694
695         argp: fix test failure
696         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
697         that are not upper-case.  Pass correct range to tolower.
698
699 2009-09-27  Jim Meyering  <meyering@redhat.com>
700
701         test-yesno: work around sparc-dash here-document infelicity
702         Without this change, the literal \177 byte in a here document
703         would make dash 0.5.5.1-3 access uninitialized memory.
704         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
705         Instead, use a marker, "@", and filter through tr to create the desired
706         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
707
708 2009-09-27  Bruno Haible  <bruno@clisp.org>
709
710         Disable untested support for new flavours of ACLs on AIX.
711         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
712         progress.
713         * lib/set-mode-acl.c (qset_acl): Likewise.
714
715 2008-12-07  Bruno Haible  <bruno@clisp.org>
716
717         Add support for new flavours of ACLs on AIX. (Untested.)
718         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
719         (file_has_acl): Add support for newer AIX.
720         * lib/set-mode-acl.c (qset_acl): Likewise.
721         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
722         Rainer Tammer <tammer@tammer.net>.
723
724 2009-09-26  Eric Blake  <ebb9@byu.net>
725
726         argp: fix compilation of getopt
727         * lib/getopt.in.h (includes): Use different guard than glibc.
728         Reported by Sergey Poznyakoff.
729
730         doc: mention more cygwin 1.7 status
731         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
732         bug.
733         * doc/posix-functions/execl.texi (execl): Likewise.
734         * doc/posix-functions/execle.texi (execle): Likewise.
735         * doc/posix-functions/execlp.texi (execlp): Likewise.
736         * doc/posix-functions/execv.texi (execv): Likewise.
737         * doc/posix-functions/execve.texi (execve): Likewise.
738         * doc/posix-functions/execvp.texi (execvp): Likewise.
739         * doc/glibc-functions/canonicalize_file_name.texi
740         (canonicalize_file_name): Cygwin 1.7 now provides this.
741         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
742         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
743         on AT_SYMLINK_NOFOLLOW.
744
745 2009-09-24  Eric Blake  <ebb9@byu.net>
746
747         test-linkat: make test more robust
748         * tests/test-linkat.c (main): Avoid collision with EEXIST.
749
750         getopt: fix inclusion guards for cygwin
751         * modules/getopt-posix (Depends-on): Add include-next.
752         (Makefile.am): Substitute more items in replacement header.
753         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
754         <getopt.h>.
755         * lib/getopt.in.h (includes): Use split inclusion guard, and
756         prefer <getopt.h> over include <unistd.h> when one is present.
757         (option): Also override name of 'struct option'.
758
759         same-inode: revert prior change; it is not yet ready
760         * NEWS: Undo mention of this change.
761         * lib/same-inode.h (same-inode.h): Undo tri-state change.
762         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
763         * lib/cycle-check.c (cycle_check): Likewise.
764         * lib/same.c (same_name): Likewise.
765         * lib/at-func2.c (at_func2): Likewise.
766
767 2009-09-23  Eric Blake  <ebb9@byu.net>
768
769         linkat: new module
770         * modules/linkat: New file.
771         * lib/at-func2.c (at_func2): Likewise.
772         * lib/linkat.c (linkat): Likewise.
773         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
774         * lib/openat-priv.h (at_func2): Add declaration.
775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
776         * modules/unistd (Makefile.am): Substitute them.
777         * lib/unistd.in.h (linkat): Declare it.
778         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
779         * doc/posix-functions/linkat.texi (linkat): Likewise.
780         * doc/posix-functions/link.texi (link): Tweak wording.
781         * tests/test-link.c (main): Move guts...
782         * tests/test-link.h (test_link): ...into new file.
783         * modules/linkat-tests: New test.
784         * tests/test-linkat.c: Likewise.
785         * modules/link-tests (Files): Ship new file.
786         (Depends-on): Add stdbool.
787
788         dirname: add library-safe mdir_name
789         * lib/dirname.h (mdir_name): New prototype.
790         * lib/dirname.c (dir_name): Move guts...
791         (mdir_name): ...to new function that avoids xalloc_die.
792
793         fchdir: another mingw fix
794         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
795         * lib/fchdir.c (get_name): New helper method; skips canonicalize
796         on mingw (where it has not yet been ported), and make it optional
797         elsewhere.
798         (_gl_register_fd): Use it.
799
800         same-inode: make SAME_INODE tri-state, to port to mingw
801         * NEWS: Mention this change.
802         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
803         st_ino always being 0.
804         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
805         * lib/cycle-check.c (cycle_check): Likewise.
806         * lib/same.c (same_name): Likewise.
807
808         lstat: avoid mingw compilation error
809         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
810         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
811         lstat ourselves.
812         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
813         was adequate.
814         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
815         the checks for lstat.
816         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
817
818         link: fix test failure on Solaris 9
819         * lib/link.c (rpl_link): Don't assume link will catch bogus
820         trailing slash on source.
821
822         test-symlinkat: enhance test
823         * tests/test-readlink.c (main): Move guts...
824         * tests/test-readlink.h (test_readlink): ...into new file.
825         * tests/test-symlink.c (main): Move guts...
826         * tests/test-symlink.h (test_symlink): ...into new file.
827         * tests/test-symlinkat.c (main): Use new files for further
828         coverage.
829         (do_symlink, do_readlink): New helper functions.
830         * modules/symlink-tests (Files): Ship new file.
831         (Depends-on): Add stdbool.
832         * modules/readlink-tests (Files): Ship new file.
833         (Depends-on): Add stdbool.
834         * modules/symlinkat-tests (Files): Use new files.
835
836 2009-09-23  Eric Blake  <ebb9@byu.net>
837
838         readlink: document portability issue with symlink length
839         * doc/posix-functions/lstat.texi (lstat): Mention that some file
840         systems have bogus st_size on symlinks, and mention the
841         areadlink-with-size module.
842         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
843         * doc/posix-functions/readlink.texi (readlink): Mention the
844         areadlink module, and ERANGE failure.
845         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
846         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
847
848         readlink: fix Solaris 9 bug with trailing slash
849         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
850         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
851         * doc/posix-functions/readlink.texi (readlink): Document this.
852         * modules/readlink-tests: New test.
853         * tests/test-readlink.c: Likewise.
854
855         readlink: fix cygwin 1.5.x bug with return type
856         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
857         * lib/unistd.in.h (readlink): Use ssize_t.
858         * lib/readlink.c (readlink): Likewise.
859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
860         * modules/unistd (Makefile.am): Substitute it.
861         * lib/unistd.in.h (readlink): Declare replacement.
862         * doc/posix-functions/readlink.texi (readlink): Document this.
863
864         symlink: use throughout gnulib
865         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
866         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
867         symlink is not used.
868         * modules/symlinkat (Depends-on): Add symlink.
869         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
870         * modules/canonicalize-tests (Depends-on): Likewise.
871         * modules/lstat-tests (Depends-on): Likewise.
872         * modules/openat-tests (Depends-on): Likewise.
873         * modules/remove-tests (Depends-on): Likewise.
874         * modules/rmdir-tests (Depends-on): Likewise.
875         * modules/unlink-tests (Depends-on): Likewise.
876         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
877         * tests/test-canonicalize.c (symlink): Likewise.
878         * tests/test-fstatat.c (symlink): Likewise.
879         * tests/test-lstat.c (symlink): Likewise.
880         * tests/test-remove.c (symlink): Likewise.
881         * tests/test-rmdir.c (symlink): Likewise.
882         * tests/test-unlink.c (symlink): Likewise.
883         * tests/test-unlinkat.c (symlink): Likewise.
884
885         symlink: new module, for Solaris 9 bug
886         * modules/symlink: New file.
887         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
888         * lib/symlink.c: Likewise.
889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
890         * modules/unistd (Makefile.am): Substitute them.
891         * lib/unistd.in.h (symlink): Declare replacement.
892         * MODULES.html.sh (File system functions): Mention it.
893         * doc/posix-functions/symlink.texi (symlink): Likewise.
894         * modules/symlink-tests: New test.
895         * tests/test-symlink.c: Likewise.
896
897 2009-09-23  Bruno Haible  <bruno@clisp.org>
898
899         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
900         when needed.
901         Test case: gnulib-tool --import --with-tests atexit inttypes.
902         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
903
904 2009-09-23  Bruno Haible  <bruno@clisp.org>
905
906         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
907         subcommand, not in a subshell.
908
909 2009-09-22  Eric Blake  <ebb9@byu.net>
910
911         unistd: sort replacement declarations
912         * lib/unistd.in.h: Sort declarations.
913
914         open, openat: minor optimization
915         * lib/open.c (open): If open succeeded, len is non-zero.
916         * lib/openat.c (rpl_openat): Likewise.
917
918         link-follow: ensure correct result
919         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
920         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
921         distinguish between possible failures.
922
923 2009-09-21  Eric Blake  <ebb9@byu.net>
924
925         fts: avoid compiler warning
926         * lib/fts.c (dirent_inode_sort_may_be_useful)
927         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
928
929 2009-09-19  Bruno Haible  <bruno@clisp.org>
930
931         * lib/progreloc.c (canonicalize_file_name): New declaration.
932
933 2009-09-19  Eric Blake  <ebb9@byu.net>
934
935         link: fix quoting
936         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
937
938         openat: fix openat bugs on Solaris 9
939         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
940         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
941         * modules/openat (Depends-on): Add open.
942         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
943         * modules/fcntl-h (Makefile.am): Substitute it.
944         * lib/fcntl.in.h (openat): Declare replacement.
945         * doc/posix-functions/openat.texi (openat): Document this.
946
947         openat: move fstatat and unlinkat into correct files
948         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
949         compiled.
950         * lib/openat.c (fstatat, unlinkat): Move...
951         * lib/fstatat.c (fstatat): ...into correct files.
952         * lib/unlinkat.c (unlinkat): Likewise.
953
954         openat: fix unlinkat bugs on Solaris 9
955         * lib/unlinkat.c (unlinkat): New file.
956         * modules/openat (Depends-on): Add unlink.
957         (Files): Distribute it.
958         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
959         trailing slash behavior is broken.
960         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
961         * modules/unistd (Makefile.am): Substitute it.
962         * lib/unistd.in.h (unlinkat): Declare replacement.
963         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
964
965         openat: fix fstatat bugs on Solaris 9
966         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
967         stat.
968         * doc/posix-functions/fstatat.texi (fstatat): Document this.
969
970         test-unlinkat: enhance test, to expose Solaris 9 bug
971         * tests/test-unlink.c (main): Factor guts...
972         * tests/test-unlink.h (test_rmdir_func): ...into new file.
973         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
974         * tests/test-rmdir.c (main): Adjust caller.
975         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
976         (unlinker): New helper function.
977         (rmdirat): Enhance check.
978         * modules/rmdir-tests (Depends-on): Add stdbool.
979         * modules/unlink-tests (Depends-on): Likewise.
980         (Files): Add test-unlink.h.
981         * modules/openat-tests (Files): Likewise.
982         (Depends-on): Add unlinkdir.
983
984         test-fstatat: new test, to expose Solaris 9 bugs
985         * tests/test-stat.c (main): Factor guts...
986         * tests/test-stat.h (test_stat_func): ...into new file.
987         * tests/test-lstat.c (main): Factor guts...
988         * tests/test-lstat.h (test_lstat_func): ...into new file.
989         * tests/test-fstatat.c: New file.
990         * modules/stat-tests (Files): Add test-stat.h.
991         * modules/lstat-tests (Files): Add test-lstat.h.
992         (Depends-on): Add stdbool.
993         * modules/openat-tests (Depends-on): Add pathmax.
994         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
995         (Makefile.am): Run new test.
996
997         remove: new module, for mingw and Solaris 9 bugs
998         * modules/remove: New file.
999         * lib/remove.c: Likewise.
1000         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
1001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
1002         * modules/stdio (Makefile.am): Use them.
1003         * lib/stdio.in.h (remove): Declare replacement.
1004         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
1005         * doc/posix-functions/remove.texi (remove): Likewise.
1006         * modules/remove-tests: New test.
1007         * tests/test-remove.c: Likewise.
1008
1009         unlink: new module, for Solaris 9 bug
1010         * modules/unlink: New file.
1011         * lib/unlink.c: Likewise.
1012         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
1014         * modules/unistd (Makefile.am): Use them.
1015         * lib/unistd.in.h (stat): Declare replacement.
1016         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
1017         * doc/posix-functions/unlink.texi (unlink): Likewise.
1018         * modules/unlink-tests: New test.
1019         * tests/test-unlink.c: Likewise.
1020
1021         lstat: fix Solaris 9 bug
1022         * lib/lstat.c (lstat): Also check for trailing slash on
1023         non-symlink, non-directories.  Use stat module to simplify logic.
1024         * doc/posix-functions/lstat.texi (lstat): Document it.
1025         * modules/lstat-tests (Depends-on): Add errno, same-inode.
1026         (configure.ac): Check for symlink.
1027         * tests/test-lstat.c (main): Add more tests.
1028
1029         stat: add as dependency to other modules
1030         * modules/chown (Depends-on): Add stat.
1031         * modules/euidaccess (Depends-on): Likewise.
1032         * modules/fchdir (Depends-on): Likewise.
1033         * modules/isdir (Depends-on): Likewise.
1034         * modules/link (Depends-on): Likewise.
1035         * modules/lstat (Depends-on): Likewise.
1036         * modules/mkdir-p (Depends-on): Likewise.
1037         * modules/modechange (Depends-on): Likewise.
1038         * modules/open (Depends-on): Likewise.
1039         * modules/readlink (Depends-on): Likewise.
1040         * modules/same (Depends-on): Likewise.
1041
1042         stat: fix Solaris 9 bug
1043         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
1044         slash.
1045         * lib/stat.c (rpl_stat): Work around it.
1046         * doc/posix-functions/stat.texi (stat): Update documentation.
1047
1048         stat: new module, for mingw bug
1049         * modules/stat: New file.
1050         * lib/stat.c: Likewise.
1051         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1052         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
1053         * modules/sys_stat (Makefile.am): Use them.
1054         * lib/sys_stat.in.h (stat): Declare replacement.
1055         * lib/openat.c (fstatat): Deal with lstat and stat being function
1056         macros.
1057         * modules/openat (Depends-on): Add inline.
1058         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
1059         * doc/posix-functions/stat.texi (stat): Likewise.
1060         * modules/stat-tests: New test.
1061         * tests/test-stat.c: Likewise.
1062
1063 2009-09-19  Jim Meyering  <meyering@redhat.com>
1064
1065         syntax-check: detect unnecessary inclusion of canonicalize.h
1066         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
1067
1068 2009-09-19  Eric Blake  <ebb9@byu.net>
1069
1070         canonicalize-lgpl: adjust clients to use correct header
1071         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1072         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
1073         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
1074         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
1075         * lib/progreloc.c (includes): Likewise.
1076
1077 2009-09-19  Jim Meyering  <meyering@redhat.com>
1078
1079         test-posixtm.c: correct a comment
1080         * tests/test-posixtm.c: Correct first-line comment.
1081         Spotted by Eric Blake.
1082
1083 2009-09-16  Jim Meyering  <meyering@redhat.com>
1084
1085         posixtm-tests: make T const-correct; add a test case
1086         * tests/test-posixtm.c (T): Declare const.
1087         Add a test for -(2^31+1).
1088         Remove useless can-succeed-only-in-2002 test.
1089
1090         posixtm-tests: adjust the sole failing test
1091         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
1092         expected output matches what mktime now produces.  Cross-checked via
1093         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
1094
1095         posixtm: move #ifdef'd tests into a new module
1096         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
1097         * tests/test-posixtm.c: ... this new file.
1098         * modules/posixtm-tests: New module.
1099
1100 2009-09-19  Eric Blake  <ebb9@byu.net>
1101
1102         openat: simplify use of at-func.c
1103         * lib/at-func.c (includes): Include prerequisites here, to
1104         simplify requirements on client files.
1105         * lib/openat-priv.h: Add double-inclusion guard.
1106         * lib/faccessat.c (includes): Simplify.
1107         * lib/fchmodat.c (includes): Likewise.
1108         * lib/fchownat.c (includes): Likewise.
1109         * lib/mkdirat.c (includes): Likewise.
1110         * lib/mkfifoat.c (includes): Likewise.
1111         * lib/symlinkat.c (includes): Likewise.
1112
1113         openat: allow return of fd 0
1114         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
1115         * modules/save-cwd (Depends-on): Replace fcntl-safer with
1116         unistd-safer.
1117         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
1118         <fcntl.h>; this module does not leak fds.
1119         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
1120         must be allowed to return 0, leaving openat_safer to add the
1121         safety.
1122         (openat_permissive): Avoid writing to just-opened fd 2 if
1123         restoring the current directory fails.
1124         * lib/openat-die.c (openat_restore_fail): Add comment.
1125         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
1126         (save_cwd): Guarantee safe fd, but without use of open_safer.
1127         * tests/test-openat.c: New test.
1128         * modules/openat-tests (Files, Makefile.am): Distribute and build
1129         new file.
1130
1131         relocatable-prog-wrapper: fix build
1132         * modules/relocatable-prog-wrapper (Files): Update name of
1133         canonicalize m4 file, broken on 2009-09-17.
1134         Reported by emad hajjar <aleppos@hotmail.com>.
1135
1136 2009-09-19  Bruno Haible  <bruno@clisp.org>
1137
1138         * lib/safe-alloc.h: Use the standard header with GPL copyright.
1139         * lib/safe-alloc.c: Likewise.
1140         Reported by Ian Beckwith <ianb@erislabs.net>.
1141
1142 2009-09-18  Bruno Haible  <bruno@clisp.org>
1143
1144         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
1145         Reported by <erobles@sensacd.com.mx>.
1146
1147 2009-09-17  Eric Blake  <ebb9@byu.net>
1148
1149         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
1150         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
1151         slashes when checking if last component is missing.
1152         * tests/test-canonicalize.c (main): Test this.
1153
1154         canonicalize, canonicalize-lgpl: honor // if distinct from /
1155         * modules/canonicalize (Files): Add double-slash-root.m4.
1156         * modules/canonicalize-lgpl (Files): Likewise.
1157         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1158         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
1159         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
1160         fallback definition.
1161         (canonicalize_filename_mode): Use it to protect //.
1162         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
1163         (__realpath): Likewise.
1164         * tests/test-canonicalize.c (main): Test this.
1165         * tests/test-canonicalize-lgpl.c (main): Likewise.
1166         * modules/canonicalize-tests (Depends-on): Add same-inode.
1167         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1168
1169         canonicalize-lgpl: fix glibc bug with trailing slash
1170         * m4/canonicalize-lgpl.m4: Move contents...
1171         * m4/canonicalize.m4: ...here.
1172         (gl_CANONICALIZE_LGPL): Factor realpath check...
1173         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
1174         glibc 2.3.5 bug, fixed 2005-04-27.
1175         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
1176         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
1177         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
1178         * modules/canonicalize-lgpl (Files): Manage file rename.
1179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
1180         * modules/stdlib (Makefile.am): Substitute witness.
1181         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
1182         is needed.
1183         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
1184         replacement is required.
1185         * lib/canonicalize.c (canonicalize_file_name): Likewise.
1186         * doc/glibc-functions/canonicalize_file_name.texi
1187         (canonicalize_file_name): Document this.
1188         * doc/posix-functions/realpath.texi (realpath): Likewise.
1189
1190         canonicalize-lgpl: reject non-directory with trailing slash
1191         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
1192         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
1193         catches failures in glibc 2.3.5.
1194         * tests/test-canonicalize.c (main): Likewise.
1195
1196         canonicalize-lgpl: use native realpath if it works
1197         * lib/canonicalize-lgpl.c (realpath): Guard with
1198         FUNC_REALPATH_WORKS.
1199         * lib/stdlib.in.h (realpath): Make declaration optional based on
1200         HAVE_REALPATH.
1201         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
1202         native realpath works.
1203         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
1204         * modules/stdlib (Makefile.am): Substitute witness.
1205
1206         canonicalize, canonicalize-lgpl: use <stdlib.h>
1207         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
1208         (Include): Mention <stdlib.h>.
1209         (configure.ac): Mention functions we provide.
1210         * modules/canonicalize (configure.ac): Likewise.
1211         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
1212         realpath if canonicalize_file_name is missing.
1213         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
1214         * modules/stdlib (Makefile.am): Substitute witnesses.
1215         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
1216         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
1217         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
1218         * NEWS: Document this.
1219         * doc/glibc-functions/canonicalize_file_name.texi
1220         (canonicalize_file_name): Likewise.
1221         * doc/posix-functions/realpath.texi (realpath): Likewise.
1222         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
1223
1224         test-canonicalize: consolidate into single C program
1225         * tests/test-canonicalize.sh: Delete; move setup into...
1226         * tests/test-canonicalize.c (main): ...the program, making it
1227         easier to run in debugger.  Add some tests.
1228         * modules/canonicalize-tests (Files): Remove unused file.
1229         (Depends-on): Add progname.
1230         (configure.ac, Makefile.am): Simplify.
1231
1232         test-canonicalize-lgpl: consolidate into single C program
1233         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
1234         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
1235         easier to run in debugger.  Add some tests.
1236         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
1237         (configure.ac, Makefile.am): Simplify.
1238
1239         canonicalize: avoid resolvepath
1240         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
1241         unnecessary checks.
1242         * lib/canonicalize.c (includes): Simplify.
1243         (canonicalize_file_name): Drop resolvepath implementation.
1244         * modules/canonicalize (Depends-on): Drop filenamecat.
1245
1246         canonicalize: don't lose errno
1247         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
1248         over calls to free.
1249
1250         canonicalize: simplify errno handling
1251         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
1252         assignment.
1253
1254         canonicalize, canonicalize-lgpl: update module dependencies
1255         * modules/canonicalize (Depends-on): Add extensions, lstat,
1256         pathmax, stdlib.
1257         (Files): Drop pathmax.h.
1258         (configure.ac): Adjust macro name.
1259         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
1260         lstat, stdlib, sys_stat.
1261         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
1262         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
1263         extensions.
1264         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
1265         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
1266         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
1267         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
1268         declaration, if available.
1269         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
1270         we can rely on the readlink module.
1271         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
1272         (includes): Use <unistd.h> unconditionally.
1273
1274 2009-09-17  Eric Blake  <ebb9@byu.net>
1275
1276         maint: make Include sections of modules consistent
1277         * modules/alloca: Use only header name; no need to list #include.
1278         * modules/alloca-opt: Likewise.
1279         * modules/arpa_inet: Likewise.
1280         * modules/canon-host: Likewise.
1281         * modules/configmake: Likewise.
1282         * modules/dirent: Likewise.
1283         * modules/eealloc: Likewise.
1284         * modules/environ: Likewise.
1285         * modules/fchdir: Likewise.
1286         * modules/fcntl: Likewise.
1287         * modules/fcntl-h: Likewise.
1288         * modules/gethrxtime: Likewise.
1289         * modules/gettime: Likewise.
1290         * modules/ignore-value: Likewise.
1291         * modules/inet_ntop: Likewise.
1292         * modules/inet_pton: Likewise.
1293         * modules/inttypes: Likewise.
1294         * modules/isnand-nolibm: Likewise.
1295         * modules/isnanf-nolibm: Likewise.
1296         * modules/mbchar: Likewise.
1297         * modules/mbfile: Likewise.
1298         * modules/mbiter: Likewise.
1299         * modules/mbuiter: Likewise.
1300         * modules/netdb: Likewise.
1301         * modules/netinet_in: Likewise.
1302         * modules/nproc: Likewise.
1303         * modules/pagealign_alloc: Likewise.
1304         * modules/poll: Likewise.
1305         * modules/printf-frexp: Likewise.
1306         * modules/pthread: Likewise.
1307         * modules/putenv: Likewise.
1308         * modules/random_r: Likewise.
1309         * modules/relocatable-prog: Likewise.
1310         * modules/search: Likewise.
1311         * modules/select: Likewise.
1312         * modules/selinux-h: Likewise.
1313         * modules/settime: Likewise.
1314         * modules/signal: Likewise.
1315         * modules/size_max: Likewise.
1316         * modules/socklen: Likewise.
1317         * modules/ssize_t: Likewise.
1318         * modules/stdarg: Likewise.
1319         * modules/stdbool: Likewise.
1320         * modules/stddef: Likewise.
1321         * modules/stdint: Likewise.
1322         * modules/stdio: Likewise.
1323         * modules/stdlib: Likewise.
1324         * modules/string: Likewise.
1325         * modules/strings: Likewise.
1326         * modules/sys_file: Likewise.
1327         * modules/sys_ioctl: Likewise.
1328         * modules/sys_select: Likewise.
1329         * modules/sys_socket: Likewise.
1330         * modules/sys_stat: Likewise.
1331         * modules/sys_time: Likewise.
1332         * modules/sys_times: Likewise.
1333         * modules/sys_utsname: Likewise.
1334         * modules/sys_wait: Likewise.
1335         * modules/sysexits: Likewise.
1336         * modules/time: Likewise.
1337         * modules/times: Likewise.
1338         * modules/tmpfile: Likewise.
1339         * modules/trim: Likewise.
1340         * modules/unistd: Likewise.
1341         * modules/wchar: Likewise.
1342         * modules/wctype: Likewise.
1343
1344 2009-09-17  Bruno Haible  <bruno@clisp.org>
1345
1346         Make getdate.y compile on QNX and NetBSD 5 / i386.
1347         * m4/getdate.m4 (gl_GETDATE): Conditionally define
1348         TIME_T_FITS_IN_LONG_INT.
1349         * lib/getdate.y (long_time_t): New type.
1350         (relative_time): Change type of 'seconds' field to long_time_t.
1351         (get_date): Update types of local variables. Check against overflow
1352         during conversion from long_time_t to time_t.
1353         Reported by Matt Kraai <kraai@ftbfs.org>
1354         and Hasso Tepper <hasso@netbsd.org>.
1355
1356 2009-09-17  Bruno Haible  <bruno@clisp.org>
1357
1358         * modules/COPYING: Update copyright years.
1359         * modules/README: Likeiwse.
1360         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
1361         Reported by Ian Beckwith <ianb@erislabs.net>.
1362
1363 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
1364
1365         * users.txt: Update references for gnuit package.
1366
1367 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
1368
1369         * m4/getdelim.m4: Fix typo in copyright line.
1370
1371 2009-09-17  Bruno Haible  <bruno@clisp.org>
1372
1373         * lib/atoll.c: Use the standard header with GPL copyright.
1374         * lib/argz.in.h: Likewise.
1375         * lib/glob.c: Likewise.
1376         * lib/glob-libc.h: Likewise.
1377         * lib/random_r.c: Likewise.
1378         * lib/siglist.h: Likewise.
1379         * lib/strsignal.c: Likewise.
1380         Reported by Ian Beckwith <ianb@erislabs.net>.
1381
1382 2009-09-17  Eric Blake  <ebb9@byu.net>
1383
1384         rmdir: ensure correct dependency order
1385         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
1386
1387 2009-09-17  Bruno Haible  <bruno@clisp.org>
1388
1389         Disable assertion that fails on NetBSD 5 / i386.
1390         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
1391         Reported by Sam Steingold <sds@gnu.org>
1392         and Hasso Tepper <hasso@netbsd.org>.
1393
1394 2009-09-16  Eric Blake  <ebb9@byu.net>
1395
1396         unlinkdir: port to mingw
1397         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
1398         on which no one can unlink a directory.
1399
1400         stdlib: sort witness names
1401         * modules/stdlib (Makefile.am): Sort replacements.
1402         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
1403         * lib/stdlib.in.h: Likewise.
1404
1405         parse-duration-tests: avoid link failure
1406         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
1407         LIBINTL.
1408         Reported by Tom G. Christensen.
1409
1410         openat-tests: ensure unlinkat behaves like rmdir
1411         * tests/test-rmdir.c (main): Factor guts...
1412         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
1413         * modules/rmdir-tests (Files): Ship new file.
1414         * modules/openat-tests: New test.
1415         * tests/test-unlinkat.c: Likewise.
1416
1417         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
1418         * modules/rmdir-errno (Status, Notice): Now obsolete.
1419
1420         rmdir: work around cygwin 1.5.x and mingw bugs
1421         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
1422         * lib/rmdir.c (rmdir): Work around it.
1423         * modules/rmdir (Status, Notice): No longer obsolete.
1424         (Files): Add dos.m4.
1425         (Depends-on): Add unistd.
1426         (configure.ac): Set witnesses.
1427         (License): Relax to LGPLv2+.
1428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
1429         * modules/unistd (Makefile.am): Substitute witnesses.
1430         * lib/unistd.in.h (rmdir): Declare replacement.
1431         * doc/posix-functions/rmdir.texi (rmdir): Document this.
1432         * modules/rmdir-tests: New tests.
1433         * tests/test-rmdir.c: Likewise.
1434
1435 2009-09-15  Eric Blake  <ebb9@byu.net>
1436
1437         fchdir: improve use of replacement functions
1438         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
1439         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
1440         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
1441         REPLACE_CLOSEDIR.
1442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
1443         * modules/sys_stat (Makefile.am): Substitute correct witness.
1444         * modules/dirent (Makefile.am): Likewise.
1445         * modules/unistd (Makefile.am): Likewise.
1446         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
1447         * lib/unistd.in.h (dup): Likewise.
1448         * lib/sys_stat.in.h (fstat): Likewise.
1449
1450         maint: ignore gnulib-tool temp files
1451         * .gitignore: Ignore files created during gnulib-tool --test.
1452
1453 2009-09-13  Jim Meyering  <meyering@redhat.com>
1454
1455         posixtm: don't reject a time that specify "60" as the number of seconds
1456         * lib/posixtm.c (posixtime): The code to reject invalid dates
1457         would also reject a time specified with the .60 suffix.
1458         But POSIX allows that, in order to accommodate leap seconds.
1459         So don't reject it.
1460         (main): Adjust tests accordingly.
1461         * modules/posixtm (Depends-on): Add stpcpy.
1462
1463 2009-09-11  Jim Meyering  <meyering@redhat.com>
1464
1465         announce-gen: include [$release_type] in emitted Subject:
1466         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
1467         e.g., [stable] in the emitted Subject: line.
1468
1469 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1470
1471         Remove obsolete macros from several modules.
1472         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
1473         obsolete Autoconf macros with their modern counterparts.
1474         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
1475         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
1476         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
1477         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
1478         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
1479         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1480         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
1481         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
1482         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
1483         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
1484         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1485         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1486         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
1487         * m4/sockets.m4 (gl_SOCKETS): Likewise.
1488         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
1489         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
1490         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
1491         * m4/time_r.m4 (gl_TIME_R): Likewise.
1492         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
1493         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
1494         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
1495
1496         Fix copyright header in build-aux scripts.
1497         * build-aux/git-version-gen: Fix copyright header to match GPLv3
1498         recommendation.
1499         * build-aux/ncftpput-ftp: Likewise.
1500         * build-aux/update-copyright: Likewise.
1501
1502 2009-09-09  Eric Blake  <ebb9@byu.net>
1503
1504         test-link: allow Linux choice of errno
1505         * tests/test-link.c (main): Relax test for alternate error.
1506
1507         strndup: fix improper m4 caching
1508         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
1509         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
1510         (gl_PREREQ_STRNDUP): Delete.
1511         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
1512         * modules/string (Makefile.am): Substitute it.
1513         * lib/string.in.h (strndup): Modernize prototype.
1514
1515         getcwd: port to mingw
1516         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
1517         different from the POSIX assumptions made throughout the getcwd
1518         module; fortunately, the mingw getcwd does not need replacement.
1519         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
1520         * modules/getcwd-tests: New test.
1521         * tests/test-getcwd.c: Likewise.
1522
1523         link: fix platform bugs
1524         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
1525         * lib/link.c (link): Work around them.  Fix related mingw bug.
1526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
1527         * modules/unistd (Makefile.am): Substitute it.
1528         * lib/unistd.in.h (link): Declare replacement.
1529         * doc/posix-functions/link.texi (link): Document this.
1530         * modules/link (Depends-on): Add strdup-posix, sys_stat.
1531
1532         test-link: consolidate into single C program, test more cases
1533         * tests/test-link.sh: Delete.
1534         * tests/test-link.c: Test more error conditions.  Exposes bugs on
1535         at least Cygwin and Solaris.
1536         * modules/link-tests (Files): Remove unused file.
1537         (Depends-on): Add errno, sys_stat.
1538         (Makefile.am): Simplify.
1539
1540 2009-09-08  Bruno Haible  <bruno@clisp.org>
1541
1542         Work around towlower, towupper bug on mingw.
1543         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
1544         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
1545         * doc/posix-functions/towlower.texi: Mention the mingw bug.
1546         * doc/posix-functions/towupper.texi: Likewise.
1547         Reported by Eric Blake.
1548
1549 2009-09-08  Jim Meyering  <meyering@redhat.com>
1550
1551         build: don't try to run autoheader if we don't use it
1552         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
1553         is not used in configure.ac.
1554
1555 2009-09-08  Eric Blake  <ebb9@byu.net>
1556
1557         euidaccess: fix compilation error
1558         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
1559
1560         rawmemchr: relax license
1561         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
1562         okay.
1563         Reported by Jim Meyering.
1564
1565         mkfifoat: new module
1566         * modules/mkfifoat: New file.
1567         * lib/mkfifoat.c: Likewise.
1568         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
1569         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
1570         * modules/sys_stat (Makefile.am): Use them.
1571         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
1572         * MODULES.html.sh (File system functions): Mention module.
1573         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
1574         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
1575         * modules/mkfifoat-tests: New test.
1576         * tests/test-mkfifoat.c: Likewise.
1577
1578         strchrnul: relax license
1579         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
1580         okay.
1581         Reported by Jim Meyering.
1582
1583 2009-09-08  Eric Blake  <ebb9@byu.net>
1584
1585         fstatat: fix compilation on Solaris
1586         * lib/fstatat.c (includes): Add fcntl.h.
1587         Reported by Pádraig Brady.
1588
1589 2009-09-07  Eric Blake  <ebb9@byu.net>
1590
1591         rename: modernize replacement
1592         * modules/rename (Depends-on): Add stdio.
1593         (configure.ac): Declare witness.
1594         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
1595         stdio take care of replacement.
1596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
1597         * modules/stdio (Makefile.am): Substitute them.
1598         * lib/stdio.in.h (rename): Declare replacement.
1599         * lib/rename.c (includes): Allow cross-compilation to non-windows
1600         machines.
1601         * doc/posix-functions/rename.texi (rename): Improve
1602         documentation.
1603
1604         stdio: sort witness names
1605         * modules/stdio (Makefile.am): Sort replacements.
1606         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1607         * lib/stdio.in.h: Likewise.
1608
1609         getcwd: minor cleanups
1610         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
1611         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
1612
1613         openat: provide more convenience names
1614         * modules/faccessat (configure.ac): Add C witness.
1615         * lib/unistd.in.h (readlinkat): Fix typo.
1616         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
1617         convenience wrappers.
1618         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
1619         wrappers in syntax checks.
1620
1621 2009-09-06  Eric Blake  <ebb9@byu.net>
1622
1623         doc: fix comments in recent patches
1624         * lib/faccessat.c: Mention correct function.
1625         * lib/fchmodat.c: Likewise.
1626         * lib/fchownat.c: Likewise.
1627         * lib/symlinkat.c: Likewise.
1628         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
1629         constants.
1630
1631         faccessat, symlinkat: continue cleanup of previous patch
1632         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
1633         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
1634         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
1635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
1636         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
1637         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
1638         set.
1639
1640 2009-09-06  Bruno Haible  <bruno@clisp.org>
1641
1642         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
1643         (fstatat): Declare if GNULIB_FSTATAT is set.
1644         (mkdirat): Declare if GNULIB_MKDIRAT is set.
1645         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
1646         (unlinkat): Declare if GNULIB_UNLINKAT is set.
1647         * modules/fcntl-h (Files): Remove m4/openat.m4.
1648         * modules/sys_stat (Files): Remove m4/openat.m4.
1649         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
1650         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
1651         * modules/unistd (Files): Remove m4/openat.m4.
1652         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
1653         GNULIB_OPENAT.
1654         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
1655         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
1656         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
1657         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
1658         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
1659         gl_OPENAT_DEFAULTS.
1660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
1661         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
1662         Don't require gl_OPENAT_DEFAULTS.
1663         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
1664         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
1665         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
1666         (gl_OPENAT_DEFAULTS): Remove macro.
1667
1668 2009-09-06  Bruno Haible  <bruno@clisp.org>
1669
1670         * modules/openat (configure.ac): Remove unneeded witness.
1671
1672 2009-09-06  Bruno Haible  <bruno@clisp.org>
1673
1674         Set errno to ENOSYS when a function is entirely unsupported.
1675         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
1676         EOPNOTSUPP.
1677         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
1678         * modules/chown (Depends-on): Remove errno.
1679
1680 2009-09-06  Bruno Haible  <bruno@clisp.org>
1681
1682         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
1683
1684 2009-09-06  Bruno Haible  <bruno@clisp.org>
1685
1686         * lib/sys_stat.in.h: Fix preprocessor command indentation.
1687
1688 2009-09-06  Ben Pfaff  <blp@gnu.org>
1689             Bruno Haible  <bruno@clisp.org>
1690
1691         Work around a glibc bug in strtok_r.
1692         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
1693         Undefine if UNDEFINE_STRTOK_R is set.
1694         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
1695         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1696         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
1697         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
1698         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
1699         UNDEFINE_STRTOK_R.
1700         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
1701
1702 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
1703
1704         exclude: minor fix
1705         * lib/exclude.c: Include wctype.h
1706
1707 2009-09-06  Akim Demaille  <demaille@gostai.com>
1708
1709         bootstrap: improve error message
1710         * build-aux/bootstrap (find_tool): Upon failure, report the list
1711         of candidates.
1712         Honor the initial value of the envvar.
1713
1714 2009-09-05  Eric Blake  <ebb9@byu.net>
1715
1716         symlinkat: new module
1717         * modules/symlinkat: New file.
1718         * lib/symlinkat.c: Likewise.
1719         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
1720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
1721         * modules/unistd (Makefile.am): Use them.
1722         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
1723         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
1724         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
1725         * MODULES.html.sh (File system functions): Mention module.
1726         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
1727         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
1728         * modules/symlinkat-tests: New test.
1729         * tests/test-symlinkat.c: Likewise.
1730
1731         test-openat-safer: add more checks
1732         * tests/test-openat-safer.c (main): Check more code paths.
1733
1734 2009-09-05  Jim Meyering  <meyering@redhat.com>
1735
1736         syntax-check: detect unnecessary inclusion of openat.h
1737         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
1738
1739 2009-09-05  Bruno Haible  <bruno@clisp.org>
1740
1741         Support towlower, towupper.
1742         * doc/posix-functions/towlower.texi: Mention module wctype.
1743         * doc/posix-functions/towupper.texi: Likewise.
1744         * lib/wctype.in.h (towlower, towupper): New functions.
1745         * tests/test-wctype.c: Include stdio.h, stdlib.h.
1746         (ASSERT): New macro.
1747         (e): New variable.
1748         (main): Test also towlower, towupper. Test WEOF argument.
1749         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1750
1751 2009-09-05  Bruno Haible  <bruno@clisp.org>
1752
1753         Fix conversion behaviour when the input is invalid.
1754         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
1755         mark occurring in first pass of indirect conversion.
1756         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
1757         input.
1758         Found by clang's static analyzer.
1759
1760 2009-09-05  Bruno Haible  <bruno@clisp.org>
1761
1762         * tests/test-striconveh.c (main): Test indirect conversion on platforms
1763         where direct conversion is possible.
1764
1765 2009-09-04  Eric Blake  <ebb9@byu.net>
1766
1767         openat: fail with ENOENT on empty name
1768         * lib/openat-proc.c (openat_proc_name): Special-case the empty
1769         buffer.
1770
1771         link-follow: fix logic bug in prior patch
1772         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
1773         reversed sense of yes and no in prior patch.  Avoid confusing
1774         compilation failure with desired semantics.
1775
1776         link-follow: accomodate mingw and cross-compilation
1777         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
1778         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
1779         cross-compilation results to -1, to make linkat easier to
1780         implement when cross-compiling.  Trivially support mingw.
1781         * modules/link-follow (configure.ac): Call new name.
1782         * NEWS: Mention this.
1783
1784 2009-09-03  Eric Blake  <ebb9@byu.net>
1785
1786         faccessat: compile replacement
1787         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
1788         needed.
1789
1790         fts: fix compilation error
1791         * lib/fts.c (includes): Re-add "openat.h", for
1792         openat_needs_fchdir.
1793
1794         faccessat: new module
1795         * modules/faccessat: New file.
1796         * lib/faccessat.c: Likewise.
1797         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
1798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
1799         * modules/unistd (Makefile.am): Use it.
1800         * lib/unistd.in.h (faccessat): Declare it.
1801         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
1802         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
1803         * MODULES.html.sh (File system functions): Mention it.
1804         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
1805         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
1806
1807         euidaccess: prefer POSIX over non-standard implementation
1808         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
1809         * lib/euidaccess.c (euidaccess): Use it if available.
1810
1811         openat: make template easier to use
1812         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
1813         AT_FUNC_F2 to be undefined.
1814         (VALIDATE_FLAG): New macro; use it to reject bad flags.
1815         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
1816         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
1817         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
1818         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
1819         Likewise.
1820         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
1821         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
1822         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
1823         Likewise.
1824
1825         openat: declare in POSIX headers
1826         * NEWS: Mention this.
1827         * modules/openat (configure.ac): Declare witnesses.
1828         (Depends-on): Add fcntl-h, sys_stat, unistd.
1829         (Include): Mention correct headers.
1830         * modules/fcntl-h (Depends-on): Add link-warning.
1831         (Files): Add openat.m4.
1832         (Makefile.am): Substitute witnesses.
1833         * modules/sys_stat (Files, Makefile.am): Likewise.
1834         * modules/unistd (Files, Makefile.am): Likewise.
1835         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
1836         (gl_OPENAT_DEFAULTS): New macro.
1837         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
1838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
1839         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
1840         (SYS_STAT_H): Remove unused variable.
1841         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
1842         * lib/fcntl--.h (includes): Remove unneeded header.
1843         * lib/openat-safer.c (includes): Likewise.
1844         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
1845         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
1846         appropriate headers.
1847         (__OPENAT_PREFIX): Delete.
1848         * lib/fcntl.in.h (openat): Provide declaration.
1849         (AT_FDCWD): Fix Solaris bug.
1850         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
1851         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
1852         * lib/fchmodat.c (includes):  Adjust to find declaration.
1853         * lib/fchownat.c (includes): Likewise.
1854         * lib/mkdirat.c (includes): Likewise.
1855         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
1856         still visible.
1857
1858 2009-09-02  Eric Blake  <ebb9@byu.net>
1859
1860         errno: use consistently
1861         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
1862         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
1863         * lib/canonicalize.c (ELOOP): Likewise.
1864         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
1865         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
1866         * lib/lchown.c (EOPNOTSUPP): Likewise.
1867         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
1868         * lib/savewd.c (ESTALE): Likewise.
1869         * lib/settime.c (ENOSYS): Likewise.
1870         * lib/utimens.c (ENOSYS): Likewise.
1871         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
1872         * lib/chdir-safer.c (ELOOP): Likewise.
1873         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
1874         * modules/c-stack (Depends-on): Add errno.
1875         * modules/canonicalize (Depends-on): Likewise.
1876         * modules/chdir-safer (Depends-on): Likewise.
1877         * modules/fdopendir (Depends-on): Likewise.
1878         * modules/inet_ntop (Depends-on): Likewise.
1879         * modules/inet_pton (Depends-on): Likewise.
1880         * modules/lchown (Depends-on): Likewise.
1881         * modules/openat (Depends-on): Likewise.
1882         * modules/savewd (Depends-on): Likewise.
1883         * modules/settime (Depends-on): Likewise.
1884         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
1885
1886         fts: avoid leaking fds
1887         * modules/fts (Depends-on): Add cloexec.
1888         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
1889         flag.
1890
1891         fts: make directory fds more robust
1892         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
1893         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
1894
1895         backupfile, chdir-long, fts, savedir: make safer
1896         * lib/backupfile.c (includes): Use "dirent--.h", since
1897         numbered_backup can write to stderr during readdir.
1898         * lib/savedir.c (includes): Likewise.
1899         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
1900         emulation can write to stderr on failure.
1901         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
1902         * lib/getcwd.c: Document why opendir_safer is unused.
1903         * lib/glob.c: Likewise.
1904         * lib/scandir.c: Likewise.
1905         * lib/openat-proc.c: Likewise, for open_safer.
1906         * modules/backupfile (Depends-on): Add dirent-safer.
1907         * modules/savedir (Depends-on): Likewise.
1908         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
1909         * modules/chdir-long (Depends-on): Add openat-safer.
1910
1911         openat-safer: new module
1912         * modules/openat-safer: New file.
1913         * lib/openat-safer.c: Likewise.
1914         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
1915         * lib/fcntl-safer.h (openat_safer): Declare.
1916         * lib/fcntl--.h (openat): Override.
1917         * MODULES.html.sh (File descriptor based I/O): Mention it.
1918         * lib/openat.h: Add double-inclusion guards.
1919         * lib/openat.c (includes): Only include "fcntl-safer.h", not
1920         "fcntl--.h", so we can implement openat.
1921         * modules/openat-safer-tests: New test.
1922         * tests/test-openat-safer.c: New file.
1923
1924         dirent-safer: new module
1925         * modules/dirent-safer: New file.
1926         * lib/dirent--.h: Likewise.
1927         * lib/dirent-safer.h: Likewise.
1928         * lib/opendir-safer.c: Likewise.
1929         * m4/dirent-safer.m4: Likewise.
1930         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
1931         * modules/dirent-safer-tests: New test.
1932         * tests/test-dirent-safer.c: New file.
1933         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
1934
1935         fdopendir: optimize on mingw
1936         * lib/unistd.in.h (_gl_directory_name): New prototype.
1937         * lib/fchdir.c (_gl_directory_name): Implement it.
1938         (fchdir): Use it to simplify implementation.
1939         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
1940         fchdir, when available, to avoid calling [f]chdir().
1941
1942         fdopendir: split into its own module
1943         * lib/openat.c (fdopendir): Move...
1944         * lib/fdopendir.c: ...into new file.
1945         * modules/fdopendir: New module.
1946         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
1947         * modules/openat (Depends-on): Add fdopendir.
1948         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
1949         fdopendir here.
1950         * modules/savedir (Depends-on): Only need fdopendir, not full
1951         openat.
1952         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
1953         * lib/openat.h (fdopendir): Drop prototype.
1954         * lib/dirent.in.h (fdopendir): Provide prototype.
1955         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
1956         * modules/dirent (Makefile.am): Substitute them.
1957         * MODULES.html.sh (File system functions): Mention it.
1958         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
1959         * modules/fdopendir-tests: New file.
1960         * tests/test-fdopendir.c: Likewise.
1961
1962         fchdir: use more consistent macro convention
1963         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
1964         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
1965         REPLACE_FCHDIR, rather than relying on config.h macros.
1966         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
1967         inside a single make-time REPLACE_FCHDIR block, rather than using
1968         the config.h FCHDIR_REPLACEMENT.
1969         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
1970         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
1971         Manage fstat replacement.
1972         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
1973         REPLACE_FCHDIR.
1974         * modules/sys_stat (Files): Add m4/unistd_h.m4.
1975         (Makefile.am): Substitute REPLACE_FCHDIR.
1976         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
1977         FCHDIR_REPLACEMENT.
1978         * lib/dup-safer.c (dup_safer): Likewise.
1979         * lib/dup2.c (rpl_dup2): Likewise.
1980         * lib/dup3.c (rpl_dup3): Likewise.
1981         * lib/open.c (rpl_open): Likewise.
1982
1983         fchdir: simplify error handling, and support dup3
1984         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
1985         stdbool, malloc-posix, realloc-posix.
1986         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
1987         (ensure_dirs_slot): Return false on allocation failure.
1988         (rpl_dup2): Delete.
1989         (_gl_register_dup): New function.
1990         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
1991         (_gl_register_fd): Close fd on allocation failure.
1992         * lib/fcntl.in.h (_gl_register_fd): Update signature.
1993         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
1994         prototype.
1995         (rpl_dup2_fchdir): Delete prototype.
1996         * lib/open.c (open): Update caller.
1997         * lib/dup2.c (dup2): Track fchdir metadata.
1998         * lib/dup3.c (dup3): Likewise.
1999         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
2000         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
2001
2002 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2003
2004         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
2005         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
2006         don't pass arguments to AC_OUTPUT.
2007
2008 2009-09-02  Bruno Haible  <bruno@clisp.org>
2009
2010         * modules/mkdtemp (License): Relicense under LGPLv2+.
2011         Reported by Paolo Bonzini.
2012
2013 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2014
2015         Replace uses of obsolete autoconf macros in Jim's modules.
2016         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
2017         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
2018         can evoke a warning from autoconf when run with -Wobsolete
2019         enabled.  They were declared obsolete for good reasons (see
2020         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
2021         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
2022         should not continue using the deprecated macros.
2023         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
2024         obsolete Autoconf macros with modern counterparts.
2025         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2026         * m4/dos.m4 (gl_AC_DOS): Likewise.
2027         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
2028         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
2029         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
2030         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
2031         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
2032         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
2033         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
2034         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
2035         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
2036         Likewise.
2037         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
2038         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
2039         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
2040         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
2041         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
2042         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
2043
2044 2009-09-01  Eric Blake  <ebb9@byu.net>
2045
2046         fchdir: fix off-by-one bug in previous patch
2047         * lib/fchdir.c (rpl_fstat): Use correct bounds.
2048         (_gl_unregister_fd): Delete useless if.
2049
2050 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
2051
2052         maint.mk: sort the list of syntax-check rules
2053         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
2054         easier to get a sense of progress when the rules are run sequentially
2055         and take a long time.
2056
2057 2009-09-01  Simon Josefsson  <simon@josefsson.org>
2058
2059         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
2060         * modules/netinet_in: Likewise.
2061         * modules/sys_file: Likewise.
2062         * modules/sys_ioctl: Likewise.
2063         * modules/sys_select: Likewise.
2064         * modules/sys_socket: Likewise.
2065         * modules/sys_stat: Likewise.
2066         * modules/sys_time: Likewise.
2067         * modules/sys_times: Likewise.
2068         * modules/sys_utsname: Likewise.
2069         * modules/sys_wait: Likewise.
2070
2071 2009-09-01  Jim Meyering  <meyering@redhat.com>
2072
2073         fts: help ensure that return values are not ignored
2074         * lib/fts_.h (__GNUC_PREREQ): Define.
2075         (__attribute_warn_unused_result__): Define.
2076         (fts_children, fts_close, fts_open, fts_read): Declare with
2077         __attribute_warn_unused_result__.
2078
2079         fts: fts_close now fails also when closing a dir file descriptor fails
2080         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
2081         and propagate to caller, along with errno.
2082
2083         announce-gen: correct formatting in --help output
2084         * build-aux/announce-gen (usage): Move the one-line description in
2085         --help output "up", to where it belongs, just after Usage:.
2086
2087 2009-08-31  Eric Blake  <ebb9@byu.net>
2088
2089         fchdir: port to mingw
2090         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
2091         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
2092         opened, then use a substitute.
2093         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
2094         replacement.
2095         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
2096         (_gl_register_fd): No need to check stat if open already filters
2097         all directories.
2098         (fchdir): Fix error condition to match POSIX.
2099         * modules/fchdir (Depends-on): Add sys_stat.
2100         * doc/posix-functions/open.texi (open): Document the limitation.
2101         * modules/fchdir-tests: New file.
2102         * tests/test-fchdir.c: Likewise.
2103
2104         canonicalize: allow cross-testing from cygwin to mingw
2105         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
2106         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
2107         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
2108         Likewise.
2109         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
2110         target does not support symlinks.
2111         * tests/test-canonicalize-lgpl.sh: Likewise.
2112
2113         chown: avoid compilation warning on mingw
2114         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
2115         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
2116         mingw.
2117         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
2118         * modules/chown (Depends-on): Add errno.
2119
2120 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2121
2122         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
2123         command.
2124
2125 2009-08-31  Jim Meyering  <meyering@redhat.com>
2126
2127         canonicalize: remove useless initialization
2128         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
2129         initialization of local, "end".
2130
2131 2009-08-30  Bruno Haible  <bruno@clisp.org>
2132
2133         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
2134         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
2135         ENOSYS.
2136
2137 2009-08-30  Bruno Haible  <bruno@clisp.org>
2138
2139         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
2140         /usr/xpg4/bin/tr when it exists.
2141         * tests/test-pipe-filter-gi1.sh: Likewise.
2142
2143 2009-08-30  Bruno Haible  <bruno@clisp.org>
2144
2145         Work around deficient /usr/bin/id program on Solaris.
2146         * tests/test-file-has-acl.sh (ID): New variable.
2147         * tests/test-set-mode-acl.sh (ID): Likewise.
2148         * tests/test-copy-acl.sh (ID): Likewise.
2149         * tests/test-copy-file.sh (ID): Likewise.
2150
2151 2009-08-30  Bruno Haible  <bruno@clisp.org>
2152
2153         New module 'xstriconveh'.
2154         * lib/xstriconveh.h: New file.
2155         * lib/xstriconveh.c: New file.
2156         * modules/xstriconveh: New file.
2157
2158 2009-08-30  Bruno Haible  <bruno@clisp.org>
2159
2160         Make it easier to use mem_cd_iconveh.
2161         * lib/striconveh.h (iconveh_t): New type.
2162         (iconveh_open, iconveh_close): New declarations.
2163         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
2164         with a single 'const iconveh_t *' argument.
2165         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
2166         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
2167         with a single 'const iconveh_t *' argument.
2168         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
2169         * tests/test-striconveh.c (main): Update.
2170         * NEWS: Mention the change.
2171
2172 2009-08-30  Bruno Haible  <bruno@clisp.org>
2173
2174         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
2175         problem.
2176
2177 2009-08-30  Bruno Haible  <bruno@clisp.org>
2178
2179         Work around iconv_open problem on Solaris.
2180         * lib/iconv_open-solaris.gperf: New file.
2181         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
2182         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
2183         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
2184         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
2185         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
2186         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
2187
2188 2009-08-29  Jim Meyering  <meyering@redhat.com>
2189
2190         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
2191         * top/maint.mk (cvs-check): Remove target; it was just an alias
2192         to the better-named vc-diff-check.
2193         (maintainer-distcheck): Remove rule.  It was used only from
2194         the (alpha/beta/major) target, and all of its commands but one
2195         were coreutils-specific.
2196         (vc-dist): Remove rule.
2197         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
2198         Run vc-diff-check, not vc-dist.
2199         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
2200
2201 2009-08-27  Bruno Haible  <bruno@clisp.org>
2202
2203         * tests/test-bitrotate.c (main): Remove test that uses a shift count
2204         of 0.
2205
2206 2009-08-27  Bruno Haible  <bruno@clisp.org>
2207
2208         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
2209         compilers.
2210         * doc/func.texi: Document the SunPRO C bug.
2211
2212 2009-08-27  Bruno Haible  <bruno@clisp.org>
2213
2214         Fix link error on Solaris.
2215         * tests/test-parse-duration.c (xstrdup): Remove function.
2216
2217 2009-08-26  Pádraig Brady  <P@draigbrady.com>
2218
2219         ignore-value: handle pointer types, too
2220         * lib/ignore-value.h (__attribute__): Remove definition.
2221         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
2222         of a more concise and more-often effective "(void) i" statement.
2223         (ignore_ptr): New function to suppress warnings from functions that
2224         return pointers, and to make it explicit that one function doesn't
2225         handle all cases.
2226
2227 2009-08-25  Bruno Haible  <bruno@clisp.org>
2228
2229         dup2: work around a Linux bug.
2230         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
2231         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
2232         * doc/posix-functions/dup2.texi: Mention the Linux bug.
2233         Reported by Simon Josefsson.
2234
2235 2009-08-25  Jim Meyering  <meyering@redhat.com>
2236
2237         libguestfs uses gnulib
2238         * users.txt: Add libguestfs.
2239
2240 2009-08-24  Eric Blake  <ebb9@byu.net>
2241
2242         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
2243         * lib/pipe2.c (includes): Add binary-io.h.
2244         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
2245
2246 2009-08-24  Bruno Haible  <bruno@clisp.org>
2247
2248         Tolerate declared but missing accept4 syscall.
2249         * lib/accept4.c (accept4): Invoke original accept4 function first, if
2250         available.
2251         * lib/sys_socket.in.h (accept4): If the function is already present,
2252         override it.
2253         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
2254         * modules/accept4 (Makefile.am): Compile accept4.c always.
2255         Reported by Paolo Bonzini and Eric Blake.
2256
2257 2009-08-23  Bruno Haible  <bruno@clisp.org>
2258
2259         New module 'accept4'.
2260         * lib/sys_socket.in.h (accept4): New declaration.
2261         * lib/accept4.c: New file.
2262         * m4/accept4.m4: New file.
2263         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
2264         GNULIB_ACCEPT4, HAVE_ACCEPT4.
2265         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
2266         HAVE_ACCEPT4.
2267         * modules/accept4: New file.
2268         * doc/glibc-functions/accept4.texi: Mention the new module.
2269
2270 2009-08-24  Jim Meyering  <meyering@redhat.com>
2271
2272         progname: also set global program_invocation_name, when possible
2273         Before this change, a libtool-enabled program that calls glibc's
2274         error function would report the program name as
2275         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
2276         * modules/progname (configure.ac): Check for a declaration of
2277         program_invocation_name.
2278         * lib/progname.c:  Include <errno.h>.
2279         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
2280         Set program_invocation_name.
2281
2282 2009-08-23  Bruno Haible  <bruno@clisp.org>
2283
2284         * lib/dup3.c: Include <string.h>.
2285
2286 2009-08-23  Bruno Haible  <bruno@clisp.org>
2287
2288         * lib/dup3.c (dup3): Test only once whether the system actually exists.
2289         * lib/pipe2.c (pipe2): Likewise.
2290         Suggested by Eric Blake.
2291
2292 2009-08-23  Bruno Haible  <bruno@clisp.org>
2293
2294         Tolerate declared but missing dup3 syscall.
2295         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
2296         * lib/unistd.in.h (dup3): If the function is already present,
2297         override it.
2298         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
2299         * modules/dup3 (Makefile.am): Compile dup3.c always.
2300         Reported by Paolo Bonzini.
2301
2302 2009-08-23  Bruno Haible  <bruno@clisp.org>
2303
2304         Tolerate declared but missing pipe2 syscall.
2305         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
2306         available.
2307         * lib/unistd.in.h (pipe2): If the function is already present,
2308         override it.
2309         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
2310         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
2311         Reported by Paolo Bonzini.
2312
2313 2009-08-23  Bruno Haible  <bruno@clisp.org>
2314
2315         * lib/pipe2.c (pipe2): Move #ifs inside function.
2316
2317 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
2318
2319         quotearg: document limitations of quote_these_too
2320         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
2321         those limitations are created.
2322         * lib/quotearg.h (set_char_quoting): Document that digits and
2323         letters that are special after backslash are not permitted.
2324         (quotearg_char): Cross-reference set_char_quoting documentation.
2325
2326 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
2327
2328         quotearg: implement custom_quoting_style
2329         * lib/quotearg.c: (struct quoting_options): Add left_quote and
2330         right_quote fields.
2331         (set_custom_quoting): New public function.
2332         (quotearg_buffer_restyled): Add left_quote and right_quote
2333         arguments, handle them very much like locale quoting, and update
2334         all uses.
2335         (quotearg_n_custom): New public function.
2336         (quotearg_n_custom_mem): New public function.
2337         (quotearg_custom): New public function.
2338         (quotearg_custom_mem): New public function.
2339         * lib/quotearg.h: Prototype and document new public functions.
2340         (enum quoting_style): For escape_quoting_style and
2341         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
2342         ignored even though they're otherwise like c_quoting_style.
2343         Add custom_quoting_style member and document with comparison to
2344         clocale_quoting_style.
2345         * tests/test-quotearg.c (custom_quotes): New array.
2346         (custom_results): New array.
2347         (main): Extend to test custom quoting.
2348
2349 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
2350
2351         quotearg: fix right quote escaping when it's in quote_these_too
2352         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
2353         quote, be sure to prepend only one backslash.
2354         * tests/test-quotearg.c (use_quote_double_quotes): New function.
2355         (main): Test it.
2356
2357 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
2358
2359         quotearg-tests: test escaping of embedded locale quotes
2360         * tests/test-quotearg.c (struct result_strings): Add member for
2361         new input.
2362         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
2363         (inputs): Add new input.
2364         (results_g): Add expected results.
2365         (flag_results): Likewise.
2366         (locale_results): Likewise.
2367         (compare_strings): Check those.
2368
2369 2009-08-23  Bruno Haible  <bruno@clisp.org>
2370
2371         Tests for module 'dup3'.
2372         * modules/dup3-tests: New file.
2373         * tests/test-dup3.c: New file.
2374
2375         New module 'dup3'.
2376         * lib/unistd.in.h (dup3): New declaration.
2377         * lib/dup3.c: New file.
2378         * m4/dup3.m4: New file.
2379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
2380         HAVE_DUP3.
2381         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
2382         * modules/dup3: New file.
2383         * doc/glibc-functions/dup3.texi: Mention the new module.
2384
2385 2009-08-23  Bruno Haible  <bruno@clisp.org>
2386
2387         Tweak the dup2 test.
2388         * tests/test-dup2.c (main): Create the test file empty. Verify that an
2389         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
2390         the test file is still empty. Fix argument order of lseek.
2391
2392 2009-08-23  Bruno Haible  <bruno@clisp.org>
2393
2394         Avoid test link errors when the modules getopt-gnu, gettext are used.
2395         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
2396         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2397
2398 2009-08-23  Bruno Haible  <bruno@clisp.org>
2399
2400         Fix getdtablesize() on mingw.
2401         * lib/getdtablesize.c (getdtablesize): Implement differently.
2402         * lib/unistd.in.h (getdtablesize): Improve comment.
2403
2404 2009-08-23  Bruno Haible  <bruno@clisp.org>
2405
2406         New module 'mkostemp'.
2407         Based on Ulrich Drepper's 2007-08-10 change in glibc.
2408         * lib/stdlib.in.h (mksotemp): New declaration.
2409         * lib/mkostemp.c: New file, from glibc with modifications.
2410         * lib/tempname.h (GT_FILE): Remove outdated comment.
2411         (gen_tempname): Add flags argument.
2412         * lib/tempname.c (__GT_BIGFILE): Remove macro.
2413         (__GT_FILE): Map to 1.
2414         (small_open, large_open): Remove macros.
2415         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
2416         * lib/mkstemp.c (mkstemp): Update.
2417         * lib/mkdtemp.c (mkdtemp): Likewise.
2418         * m4/mkostemp.m4: New file.
2419         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
2420         HAVE_MKOSTEMP.
2421         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
2422         HAVE_MKOSTEMP.
2423         * modules/mkostemp: New file, based on modules/mkstemp.
2424         * doc/glibc-functions/mkostemp.texi: Mention the new module.
2425         * NEWS: Mention the change.
2426
2427 2009-08-23  Bruno Haible  <bruno@clisp.org>
2428
2429         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
2430         Reported by Eric Blake.
2431
2432 2009-08-23  Bruno Haible  <bruno@clisp.org>
2433
2434         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
2435         Reported by Eric Blake.
2436
2437 2009-08-23  Bruno Haible  <bruno@clisp.org>
2438
2439         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
2440         * modules/pipe2 (Depends-on): Likewise.
2441
2442 2009-08-23  Eric Blake  <ebb9@byu.net>
2443
2444         fcntl-h: add O_TTY_INIT support
2445         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
2446         * tests/test-fcntl-h.c (o): Test it.
2447         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
2448
2449         fcntl-h: rename from fcntl, in preparation for fcntl(2)
2450         * modules/fcntl: Move <fcntl.h> header replacement...
2451         * modules/fcntl-h: ...to new name, so as not to collide with
2452         like-named function.
2453         * tests/test-fcntl.c: Rename...
2454         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
2455         * modules/fcntl-tests: Rename...
2456         * modules/fcntl-h-tests: ...to this.  Update test file name.
2457         * modules/chdir-long (Depends-on): Update clients.
2458         * modules/chdir-safer (Depends-on): Likewise.
2459         * modules/fcntl-safer (Depends-on): Likewise.
2460         * modules/fts (Depends-on): Likewise.
2461         * modules/mkancesdirs (Depends-on): Likewise.
2462         * modules/mkdir-p (Depends-on): Likewise.
2463         * modules/open (Depends-on): Likewise.
2464         * modules/savewd (Depends-on): Likewise.
2465         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
2466         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
2467
2468 2009-08-22  Bruno Haible  <bruno@clisp.org>
2469
2470         * modules/binary-io (License): Relicense under LGPL.
2471         * modules/pipe2 (License): Likewise.
2472
2473 2009-08-22  Bruno Haible  <bruno@clisp.org>
2474
2475         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
2476         return value.
2477         * lib/pipe-filter-gi.c (filter_init): Likewise.
2478         Reported by Eric Blake.
2479
2480 2009-08-22  Bruno Haible  <bruno@clisp.org>
2481
2482         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
2483         * modules/pipe (Depends-on): Add pipe2.
2484
2485 2009-08-22  Bruno Haible  <bruno@clisp.org>
2486
2487         Tests for module 'pipe2'.
2488         * modules/pipe2-tests: New file.
2489         * tests/test-pipe2.c: New file.
2490
2491         New module 'pipe2'.
2492         * lib/unistd.in.h (pipe2): New declaration.
2493         * lib/pipe2.c: New file.
2494         * m4/pipe2.m4: New file.
2495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
2496         HAVE_PIPE2.
2497         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
2498         * modules/pipe2: New file.
2499         * doc/glibc-functions/pipe2.texi: Mention the new module.
2500
2501 2009-08-22  Bruno Haible  <bruno@clisp.org>
2502
2503         Reference some new glibc functions.
2504         * doc/glibc-functions/accept4.texi: New file.
2505         * doc/glibc-functions/dup3.texi: New file.
2506         * doc/glibc-functions/mkostemp.texi: New file.
2507         * doc/glibc-functions/pipe2.texi: New file.
2508         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
2509         (Glibc sys/socket.h): Refer to accept4.
2510         (Glibc unistd.h): Refer to dup3, pipe2.
2511         Reported by Eric Blake.
2512
2513 2009-08-22  Jim Meyering  <meyering@redhat.com>
2514             Bruno Haible  <bruno@clisp.org>
2515
2516         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
2517         This makes it so packages using automake-1.11's silent-rules option
2518         can print e.g., a single "GEN    configmake.h" line, rather than
2519         the 30+ statements that perform the job.  If you want to see the
2520         actual commands, you can still run "make V=1".
2521         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
2522         so that make output is abbreviated when those variables are defined
2523         appropriately.
2524         * modules/argz: Likewise.
2525         * modules/arpa_inet: Likewise.
2526         * modules/byteswap: Likewise.
2527         * modules/configmake: Likewise.
2528         * modules/dirent: Likewise.
2529         * modules/errno: Likewise.
2530         * modules/fcntl: Likewise.
2531         * modules/float: Likewise.
2532         * modules/fnmatch: Likewise.
2533         * modules/getopt-posix: Likewise.
2534         * modules/glob: Likewise.
2535         * modules/iconv_open: Likewise.
2536         * modules/inttypes: Likewise.
2537         * modules/localcharset: Likewise.
2538         * modules/locale: Likewise.
2539         * modules/math: Likewise.
2540         * modules/netdb: Likewise.
2541         * modules/netinet_in: Likewise.
2542         * modules/poll: Likewise.
2543         * modules/posix_spawnp-tests: Likewise.
2544         * modules/sched: Likewise.
2545         * modules/search: Likewise.
2546         * modules/selinux-h: Likewise.
2547         * modules/signal: Likewise.
2548         * modules/spawn: Likewise.
2549         * modules/stdarg: Likewise.
2550         * modules/stdbool: Likewise.
2551         * modules/stddef: Likewise.
2552         * modules/stdint: Likewise.
2553         * modules/stdio: Likewise.
2554         * modules/stdlib: Likewise.
2555         * modules/string: Likewise.
2556         * modules/strings: Likewise.
2557         * modules/sys_file: Likewise.
2558         * modules/sys_ioctl: Likewise.
2559         * modules/sys_select: Likewise.
2560         * modules/sys_socket: Likewise.
2561         * modules/sys_stat: Likewise.
2562         * modules/sys_time: Likewise.
2563         * modules/sys_times: Likewise.
2564         * modules/sys_utsname: Likewise.
2565         * modules/sys_wait: Likewise.
2566         * modules/sysexits: Likewise.
2567         * modules/time: Likewise.
2568         * modules/unistd: Likewise.
2569         * modules/wchar: Likewise.
2570         * modules/wctype: Likewise.
2571
2572 2009-08-22  Jim Meyering  <meyering@redhat.com>
2573
2574         announce-gen: detect write failure
2575         * build-aux/announce-gen: Add Coda at end.
2576         Remove equivalent-but-more-verbose block at top.
2577
2578 2009-08-19  Akim Demaille  <demaille@gostai.com>
2579
2580         bootstrap: --help to stdout.
2581         * bootstrap (usage): Don't send --help to stderr.
2582         Use a here doc instead of a long string.
2583
2584 2009-08-21  Eric Blake  <ebb9@byu.net>
2585
2586         test-popen-safer: split from test-popen
2587         * tests/test-popen.c (main): Move...
2588         * tests/test-popen.h: ...into new file.
2589         * tests/test-popen-safer2.c: New file.
2590         * modules/popen-tests (Files): Add test-popen.h.
2591         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
2592         Suggested by Bruno Haible.
2593
2594         test-fcntl-safer: split from test-open
2595         * tests/test-open.c (main): Move...
2596         * tests/test-open.h: ...into new file.
2597         * tests/test-fcntl-safer.c: New file.
2598         * modules/open-tests (Files): Add test-open.h.
2599         * modules/fcntl-safer-tests: New file.
2600         Suggested by Bruno Haible.
2601
2602         test-fopen-safer: split from test-fopen
2603         * tests/test-fopen.c (main): Move...
2604         * tests/test-fopen.h: ...into new file.
2605         * tests/test-fopen-safer.c: New file.
2606         * modules/fopen-tests (Files): Add test-fopen.h.
2607         * modules/fopen-safer-tests: New file.
2608         Suggested by Bruno Haible.
2609
2610 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
2611
2612         popen-safer: test O_CLOEXEC at run-time.
2613         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
2614
2615 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
2616
2617         fcntl: move more flags to the header
2618         * lib/cloexec.c: Do not define FD_CLOEXEC here.
2619         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
2620         * lib/fcntl.in.h: Do both things here.
2621
2622 2009-08-21  Jim Meyering  <meyering@redhat.com>
2623
2624         consistently remove $@-t before redirecting to it
2625         * modules/argz: Remove $@-t and $@ before redirecting to the former.
2626         * modules/alloca-opt: Likewise.
2627         * modules/byteswap: Likewise.
2628         * modules/fnmatch: Likewise.
2629         * modules/getopt-posix: Likewise.
2630         * modules/glob: Likewise.
2631         * modules/poll: Likewise.
2632         * modules/posix_spawnp-tests: Likewise.
2633         * modules/sys_socket: Likewise.
2634         * modules/sysexits: Likewise.
2635
2636 2009-08-21  Eric Blake  <ebb9@byu.net>
2637
2638         popen: simplify access to original popen
2639         * lib/popen.c (rpl_popen): No need to worry about popen being a
2640         macro.
2641         Reported by Bruno Haible.
2642
2643 2009-08-20  Eric Blake  <ebb9@byu.net>
2644
2645         build: avoid some compiler warnings
2646         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
2647         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
2648         type.
2649         (new_exclude_segment, excluded_file_pattern_p)
2650         (excluded_file_name_p): Reduce scope.
2651         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
2652         old-style declaration.
2653
2654 2009-08-20  Simon Josefsson  <simon@josefsson.org>
2655
2656         * tests/test-exclude1.sh: Handle Windows EOL.
2657         * tests/test-exclude2.sh: Likewise.
2658         * tests/test-exclude3.sh: Likewise.
2659         * tests/test-exclude4.sh: Likewise.
2660         * tests/test-exclude5.sh: Likewise.
2661         * tests/test-exclude6.sh: Likewise.
2662         * tests/test-exclude7.sh: Likewise.
2663
2664 2009-08-19  Akim Demaille  <demaille@gostai.com>
2665
2666         bootstrap: find sha1sum when named gsha1sum.
2667         * bootstrap (find_tool): New.
2668         ($SHA1SUM): New.
2669         Use it.
2670
2671 2009-08-20  Jim Meyering  <meyering@redhat.com>
2672
2673         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
2674         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
2675         expression that converts "." in a file name to "\." in the resulting
2676         regexp.  Start with a dummy statement, so that prior shell variable
2677         definitions are expanded portably.  Reported by Simon Josefsson.
2678
2679 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
2680
2681         Fix polling for writeability of a screen buffer.
2682         * lib/poll.c: Distinguish input and screen buffers for the
2683         Win32 implementation.
2684         * lib/select.c: Likewise.
2685
2686 2009-08-19  Eric Blake  <ebb9@byu.net>
2687
2688         popen-safer: prevent popen from clobbering std descriptors
2689         * modules/popen-safer: New file.
2690         * lib/popen-safer.c: Likewise.
2691         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
2692         * lib/stdio--.h (popen): Provide override.
2693         * lib/stdio-safer.h (popen_safer): Provide declaration.
2694         * tests/test-popen.c (includes): Partially test this.
2695         * modules/popen-safer-tests: New file, for more tests.
2696         * tests/test-popen-safer.c: Likewise.
2697         * MODULES.html.sh (file stream based Input/Output): Mention it.
2698
2699         tests: test some of the *-safer modules
2700         * modules/fopen-safer (Depends-on): Add fopen.
2701         * modules/fcntl-safer (Depends-on): Add fcntl.
2702         * modules/stdlib-safer (Depends-on): Add stdlib.
2703         (configure.ac): Set indicator.
2704         * modules/unistd-safer (configure.ac): Likewise.
2705         * modules/tmpfile-safer (configure.ac): Likewise.
2706         (Depends-on): Add tmpfile.
2707         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
2708         active.
2709         * tests/test-fopen.c (includes): Test safer versions when they are
2710         in use.
2711         * tests/test-open.c (includes): Likewise.
2712
2713         popen: fix cygwin 1.5 bug when stdin closed
2714         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
2715         * modules/popen: New file.
2716         * modules/popen-tests: Likewise.
2717         * tests/test-popen.c: Likewise.
2718         * m4/popen.m4: Likewise.
2719         * lib/popen.c: Likewise.
2720         * lib/stdio.in.h (popen): New declaration.
2721         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
2722         * modules/stdio (Makefile.am): Likewise.
2723         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
2724
2725 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
2726
2727         maint.mk: give full control over update-copyright exclusions
2728         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
2729         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
2730         (update-copyright): Don't force inclusion of top-level
2731         ChangeLog.  Don't force exclusion of all COPYING files, but make
2732         them the default exclusion instead.
2733
2734 2009-08-16  Bruno Haible  <bruno@clisp.org>
2735
2736         Fix test failures on Solaris 10.
2737         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
2738         tests when Solaris iconv() is used.
2739         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
2740         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
2741         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
2742         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
2743         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
2744
2745 2009-08-16  Bruno Haible  <bruno@clisp.org>
2746
2747         Fix test failures on Solaris 10.
2748         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
2749         'tr' program and pass it as first argument.
2750         * tests/test-pipe-filter-gi1.sh: Likewise.
2751         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
2752         program as first argument.
2753         * tests/test-pipe-filter-gi1.c (main): Likewise.
2754
2755 2009-08-16  Eric Blake  <ebb9@byu.net>
2756
2757         fpurge: fix previous commits
2758         * modules/fpurge (Makefile.am): Make replacement conditional,
2759         partially reverting 2007-04-29 change; missed in previous
2760         attempt.
2761         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
2762         is missing.
2763
2764 2009-08-16  Bruno Haible  <bruno@clisp.org>
2765
2766         Clarify fpurge's effect on the file position.
2767         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
2768         * tests/test-fpurge.c (main): Make a second pass for checking the file
2769         position.
2770
2771 2009-08-16  Bruno Haible  <bruno@clisp.org>
2772
2773         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
2774         declaration of fpurge is missing.
2775         * tests/test-fpurge.c (main): Check that the file has not more contents
2776         than expected. Close the file before removing it.
2777
2778 2009-08-15  Eric Blake  <ebb9@byu.net>
2779
2780         fpurge: don't wrap working cygwin implementation
2781         * lib/fpurge.c (fpurge): Fix comment typo.
2782         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
2783         1.7 to avoid replacement.
2784         * tests/test-fpurge.c (main): Enhance test.
2785
2786 2009-08-15  Eric Blake  <ebb9@byu.net>
2787         and Jim Meyering  <meyering@redhat.com>
2788
2789         test-update-copyright: skip if perl is insufficient
2790         * tests/test-update-copyright.sh: Failure to run maintainer tool
2791         should not cause testsuite failure on cygwin 1.5.
2792
2793 2009-08-14  Eric Blake  <ebb9@byu.net>
2794
2795         doc: mention more functions added in cygwin 1.7.0
2796         * doc/posix-headers/limits.texi (limits.h): Update for recent
2797         cygwin additions.
2798         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
2799         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
2800         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
2801         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
2802         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
2803
2804 2009-08-14  Eric Blake  <ebb9@byu.net>
2805
2806         maint.mk: simplify update-copyright rule
2807         * top/maint.mk (update-copyright-local): Delete, and document how
2808         to do it in cfg.mk instead.
2809         (update-copyright-exclude-regexp): Delete, and document how to do
2810         it in .x-update-copyright instead.
2811         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
2812         exclude ChangeLog.
2813
2814 2009-08-14  Bruno Haible  <bruno@clisp.org>
2815
2816         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
2817
2818 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
2819
2820         maint.mk: support update-copyright-env
2821         * top/maint.mk (update-copyright-env): Define place-holder.
2822         (update-copyright): Expand $(update-copyright-env) before
2823         invoking update-copyright.
2824
2825 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
2826
2827         update-copyright: implement forced reformatting
2828         * build-aux/update-copyright: Implement and document
2829         UPDATE_COPYRIGHT_FORCE.
2830         * tests/test-update-copyright.sh: Test it.
2831
2832 2009-08-14  Eric Blake  <ebb9@byu.net>
2833         and Bruno Haible  <bruno@clisp.org>
2834
2835         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
2836         * tests/test-locale.c: Revert previous patch related to NULL.
2837         * tests/test-stdio.c: Likewise.
2838         * tests/test-stdlib.c: Likewise.
2839         * tests/test-string.c: Likewise.
2840         * tests/test-unistd.c: Likewise.
2841         * modules/time-tests (Depends-on): Add verify.
2842         * modules/wchar-tests (Depends-on): Likewise.
2843         * tests/test-time.c: Test for NULL compliance.
2844         * tests/test-wchar.c: Likewise.
2845         * modules/locale (Depends-on): Add stddef.
2846         * modules/stdio (Depends-on): Likewise.
2847         * modules/stdlib (Depends-on): Likewise.
2848         * modules/string (Depends-on): Likewise.
2849         * modules/time (Depends-on): Likewise.
2850         * modules/unistd (Depends-on): Likewise.
2851         * modules/wchar (Depends-on): Likewise.
2852         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
2853         * lib/stdlib.in.h (includes): Likewise.
2854         * lib/string.in.h (includes): Likewise.
2855         * lib/time.in.h (includes): Likewise.
2856         * lib/unistd.in.h (includes): Likewise.
2857         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
2858         replaced.
2859         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2860         * m4/stddef_h.m4: New file.
2861         * modules/stddef: Likewise.
2862         * lib/stddef.in.h: Likewise.
2863         * modules/stddef-tests: Likewise.
2864         * tests/test-stddef.c: Likewise.
2865         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
2866         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
2867         * doc/posix-headers/locale.texi (locale.h): Likewise.
2868         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
2869         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
2870         * doc/posix-headers/string.texi (string.h): Likewise.
2871         * doc/posix-headers/time.texi (time.h): Likewise.
2872         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
2873         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
2874
2875 2009-08-14  Eric Blake  <ebb9@byu.net>
2876
2877         doc: improve git diff of texinfo files
2878         * .gitattributes: Add rule for *.texi files, with hint on how to
2879         use it.
2880         Copied from m4, and based on a report by Bruno Haible.
2881
2882 2009-08-14  Bruno Haible  <bruno@clisp.org>
2883
2884         Disable multithread support by default on Cygwin 1.5.x for real.
2885         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
2886
2887 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
2888
2889         update-copyright: much ado about intervals
2890         * build-aux/update-copyright: Implement and document
2891         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
2892         of copyright year intervals.
2893         Also, document UPDATE_COPYRIGHT_YEAR.
2894         * tests/test-update-copyright.sh: Test it.
2895
2896         update-copyright: convert 2-digit to 4-digit years
2897         * build-aux/update-copyright: Implement and document.
2898         * tests/test-update-copyright.sh: Update.
2899
2900 2009-08-14  Jim Meyering  <meyering@redhat.com>
2901
2902         test-exclude: avoid coreutils "make check" failure
2903         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
2904         just as in test-argmatch.c.
2905
2906 2009-08-13  Eric Blake  <ebb9@byu.net>
2907
2908         test-dup2: fix bad assumption
2909         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
2910         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
2911
2912         test-version-etc: fix CRLF portability issue
2913         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
2914         recognize \r.
2915         * tests/test-argp-version-etc-1.sh: Likewise.
2916
2917         getopt: update client modules
2918         * modules/argp (Depends-on): Use getopt-gnu.
2919         * modules/git-merge-changelog (Depends-on): Likewise.
2920         * modules/long-options (Depends-on): Likewise.
2921         * modules/xstrtol (Depends-on): Likewise.
2922
2923 2009-08-13  Simon Josefsson  <simon@josefsson.org>
2924
2925         * tests/test-version-etc.sh: Don't fail on different
2926         project/version.  Don't fail on CRLF differences.  Rewrite to use
2927         multiple -e instead of multiple sed forks, suggested by Eric Blake
2928         <ebb9@byu.net>.
2929         * tests/test-argp-version-etc-1.sh: Likewise.
2930
2931 2009-08-13  Simon Josefsson  <simon@josefsson.org>
2932
2933         * tests/test-version-etc.sh: Don't fail on different
2934         project/version.
2935
2936 2009-08-12  Bruno Haible  <bruno@clisp.org>
2937
2938         Tests for modules 'getopt-posix', 'getopt-gnu'.
2939         * modules/getopt-posix-tests: New file.
2940         * tests/test-getopt.c: New file.
2941         * tests/test-getopt.h: New file.
2942         * tests/test-getopt_long.h: New file.
2943
2944         New modules 'getopt-posix', 'getopt-gnu'.
2945         * modules/getopt-gnu: New file, renamed from modules/getopt.
2946         * modules/getopt-posix: New file.
2947         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
2948         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
2949         (gl_GETOPT): Remove macro.
2950         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
2951         Disable the test against BSD systems that declare optreset. Test
2952         against mingw bug. Test against lack of support of optional arguments
2953         on many platforms.
2954         * doc/glibc-headers/getopt.texi: Update module name and list of
2955         relevant platforms.
2956         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
2957         'getopt-gnu' and more portability problems.
2958         * NEWS: Mention the changes.
2959
2960 2009-08-12  Bruno Haible  <bruno@clisp.org>
2961
2962         Ensure that optarg etc. get declared by <unistd.h>.
2963         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
2964         AC_USE_SYSTEM_EXTENSIONS.
2965         * modules/getopt (Depends-on): Add 'extensions'.
2966
2967 2009-08-12  Bruno Haible  <bruno@clisp.org>
2968
2969         Avoid test link errors.
2970         * modules/pipe-filter-ii-tests (Makefile.am): Define
2971         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
2972         * modules/pipe-filter-gi-tests (Makefile.am): Define
2973         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
2974         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2975
2976 2009-08-12  Bruno Haible  <bruno@clisp.org>
2977
2978         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
2979         gl_GETOPT_SUBSTITUTE before.
2980         (gl_GETOPT): Use it.
2981         * m4/argp.m4 (gl_ARGP): Update.
2982         Reported by Sergey Poznyakoff.
2983
2984         * m4/getopt.m4: Reorder macros.
2985         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
2986         (gl_GETOPT_SUBSTITUTE): Remove macro.
2987
2988 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
2989
2990         Minor improvement in gitlog-to-changelog
2991
2992         * build-aux/gitlog-to-changelog: New option `--format' makes
2993         output format string configurable.
2994
2995 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
2996
2997         Optimize exclude: use hash tables for non-wildcard patterns.
2998
2999         * lib/exclude.c: Include hash.h and mbuiter.h
3000         (struct exclude_pattern, exclude_segment): New data types.
3001         (struct exclude): Rewrite.
3002         (fnmatch_pattern_has_wildcards): New function.
3003         (new_exclude_segment, free_exclude_segment): New functions.
3004         (excluded_file_pattern_p, excluded_file_name_p): New functions.
3005         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
3006         * lib/exclude.h (is_fnmatch_pattern): New prototype.
3007         * modules/exclude: Depend on hash and mbuiter.
3008
3009         * modules/exclude-tests: New file.
3010         * tests/test-exclude.c: New file.
3011         * tests/test-exclude1.sh: New file.
3012         * tests/test-exclude2.sh: New file.
3013         * tests/test-exclude3.sh: New file.
3014         * tests/test-exclude4.sh: New file.
3015         * tests/test-exclude5.sh: New file.
3016         * tests/test-exclude6.sh: New file.
3017         * tests/test-exclude7.sh: New file.
3018
3019 2009-08-12  Bruno Haible  <bruno@clisp.org>
3020
3021         Ensure that getopt() gets declared by <unistd.h>.
3022         * lib/unistd.in.h: Conditionally include getopt.h.
3023         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
3024         Set GNULIB_UNISTD_H_GETOPT.
3025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3026         GNULIB_UNISTD_H_GETOPT.
3027         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
3028
3029 2009-08-12  Bruno Haible  <bruno@clisp.org>
3030
3031         Clarify logic.
3032         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
3033         gl_replace_getopt instead of GETOPT_H.
3034
3035 2009-08-12  Bruno Haible  <bruno@clisp.org>
3036
3037         * m4/getopt.m4: Add comments.
3038
3039 2009-08-12  Bruno Haible  <bruno@clisp.org>
3040
3041         Disable multithread support by default on Cygwin 1.5.x.
3042         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
3043         set gl_use_threads=no if not specified otherwise.
3044
3045 2009-08-11  Bruno Haible  <bruno@clisp.org>
3046
3047         Avoid compilation error on NetBSD 5.0.
3048         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
3049         * tests/test-stdio.c: Likewise.
3050         * tests/test-stdlib.c: Likewise.
3051         * tests/test-string.c: Likewise.
3052         * tests/test-unistd.c: Likewise.
3053         Reported by Greg Troxel <gdt@ir.bbn.com>
3054         at <https://savannah.gnu.org/support/?106973>.
3055
3056 2009-08-11  Bruno Haible  <bruno@clisp.org>
3057
3058         * modules/dup2-tests (Depends-on): Remove close.
3059
3060         Undo 2009-07-19 commit.
3061         * modules/acl-tests (Depends-on): Remove close.
3062         * modules/binary-io-tests (Depends-on): Likewise.
3063         * modules/closein-tests (Depends-on): Likewise.
3064         * modules/flock-tests (Depends-on): Likewise.
3065         * modules/fsync-tests (Depends-on): Likewise.
3066         * modules/lseek-tests (Depends-on): Likewise.
3067         * modules/pipe-tests (Depends-on): Likewise.
3068         * modules/posix_spawn-tests (Depends-on): Likewise.
3069         * modules/posix_spawnp-tests (Depends-on): Likewise.
3070         * modules/stat-time-tests (Depends-on): Likewise.
3071         * modules/yesno-tests (Depends-on): Likewise.
3072
3073 2009-08-10  Bruno Haible  <bruno@clisp.org>
3074
3075         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
3076
3077 2009-08-10  Bruno Haible  <bruno@clisp.org>
3078
3079         Fix a gcc warning.
3080         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
3081
3082 2009-08-10  Bruno Haible  <bruno@clisp.org>
3083
3084         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
3085         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
3086         not only the first time.
3087         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
3088         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
3089         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
3090         is 1, not only the the first time.
3091
3092 2009-08-10  Bruno Haible  <bruno@clisp.org>
3093
3094         Make it possible to use module 'gethostname' without module 'close'.
3095         * lib/unistd.in.h (close): Evoke a link error only if
3096         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
3097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3098         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
3099         * modules/unistd (Makefile.am): Substitute
3100         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
3101         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
3102         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
3103         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
3104         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
3105         * modules/sys_ioctl (Makefile.am): Substitute
3106         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
3107         * modules/socket (configure.ac): On native Windows, set
3108         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
3109         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
3110         Reported by Sam Steingold <sds@gnu.org>.
3111
3112 2009-08-10  Bruno Haible  <bruno@clisp.org>
3113
3114         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
3115         * modules/ioctl (configure.ac): Likewise.
3116
3117 2009-08-10  Bruno Haible  <bruno@clisp.org>
3118
3119         Avoid collision between gnulib wrapper and libintl wrapper.
3120         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
3121         already defined in intl/printf.c.
3122         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
3123         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
3124
3125 2009-08-09  Bruno Haible  <bruno@clisp.org>
3126
3127         Make <sys/select.h> really self-contained, also on Solaris 10.
3128         * lib/sys_select.in.h: Include <string.h>.
3129         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
3130         Solaris 10 problem.
3131         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
3132         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
3133         Reported by Jim Meyering.
3134
3135 2009-08-09  Bruno Haible  <bruno@clisp.org>
3136
3137         Avoid warnings from 'aclocal' that are due to a use of macro name
3138         AM_XGETTEXT_OPTION that is not defined in automake.
3139         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
3140         automake.
3141         * modules/error (configure.ac): Likewise.
3142         * modules/propername (configure.ac): Likewise.
3143         * modules/vasprintf (configure.ac): Likewise.
3144         * modules/verror (configure.ac): Likewise.
3145         * modules/xprintf (configure.ac): Likewise.
3146         * modules/xvasprintf (configure.ac): Likewise.
3147
3148 2009-08-08  Bruno Haible  <bruno@clisp.org>
3149
3150         Avoid compilation error in C++ mode.
3151         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
3152         Reported by Sam Steingold <sds@gnu.org>.
3153
3154 2009-08-08  Bruno Haible  <bruno@clisp.org>
3155
3156         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
3157         for the various Unix platforms.
3158         * doc/posix-headers/limits.texi: Update platforms list regarding
3159         HOST_NAME_MAX.
3160         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3161
3162 2009-08-07  Jim Meyering  <meyering@redhat.com>
3163
3164         selinux-at: fix typo in a comment
3165         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
3166         Spotted by Paolo Bonzini.
3167
3168         selinux-at: remove redundant m4 code, add documentation
3169         * modules/selinux-at (configure.ac): Remove redundant code.
3170         LIB_SELINUX is already set via the dependent module, selinux-h.
3171         (Include): Add quotes around selinux-at.h.
3172         * lib/selinux-at.h: Add documentation.
3173         Reported by Bruno Haible in
3174         http://marc.info/?l=gnulib-bug&m=124958988300749
3175
3176 2009-08-07  Bruno Haible  <bruno@clisp.org>
3177
3178         Avoid link error on MacOS X 10.3 and 10.4.
3179         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
3180         on non-ELF systems.
3181         * lib/argp-pv.c (argp_program_version): Likewise.
3182         Reported by Simon Josefsson.
3183
3184 2009-08-07  Simon Josefsson  <simon@josefsson.org>
3185
3186         * tests/test-version-etc.sh: Use $EXEEXT.
3187
3188 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
3189
3190         update-copyright: update documentation to point to maint.mk
3191         * build-aux/update-copyright: Here.
3192
3193 2009-08-06  Jim Meyering  <meyering@redhat.com>
3194
3195         maint.mk: support update-copyright-local
3196         * top/maint.mk (update-copyright-local): Define place-holder.
3197         (update-copyright): Depend on $(update-copyright-local).
3198
3199 2009-08-06  Jim Meyering  <meyering@redhat.com>
3200
3201         selinux-at: new module
3202         Initially written for coreutils, this module will soon be
3203         used by findutils, too.
3204         * MODULES.html.sh [Misc]: Add selinux-at.
3205         * lib/selinux-at.h: New file, from coreutils.
3206         * lib/selinux-at.c: Likewise.
3207         * modules/selinux-at: Likewise.
3208         (License): Change from LGPL to GPL, since it depends
3209         on the GPL'd openat module.
3210
3211         doc: update README
3212         * README: Remove references to cogito.
3213         Remove cvs-repo-updating instructions from 2007.
3214         Don't imply that CVS is better if you have limited disk space.
3215
3216 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
3217
3218         update-copyright: support C-style comments
3219         * build-aux/update-copyright: Implement and document.
3220         * tests/test-update-copyright.sh: Test.
3221
3222 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
3223
3224         update-copyright: support omitted "(C)"
3225         * build-aux/update-copyright: Implement and document.  Also,
3226         allow variable whitespace before "(C)".
3227         * tests/test-update-copyright.sh: Test.
3228
3229 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
3230
3231         update-copyright: don't trip on non-FSF copyright statements
3232         * build-aux/update-copyright: Fix so that the first correctly
3233         formatted FSF copyright statement is recognized no matter what
3234         appears before it.  Update documentation.
3235         * tests/test-update-copyright.sh: Test that.
3236
3237 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
3238
3239         update-copyright: clean up code a little
3240         * build-aux/update-copyright: Append "_re" to the name of any
3241         variable holding a regular expression.
3242         Replace "old" and "new" with "stmt" in variable names.
3243         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
3244         handled correctly.
3245         Format code more consistently.
3246
3247 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
3248
3249         update-copyright-tests: improve portability
3250         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
3251         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
3252
3253 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
3254
3255         update-copyright: support @copyright{} and &copy;
3256         * build-aux/update-copyright: Implement and document.
3257         * tests/test-update-copyright.sh: Test.
3258
3259 2009-08-04  Jim Meyering  <meyering@redhat.com>
3260
3261         update-copyright-tests: correctly test EOL=\r\n handling
3262         * tests/test-update-copyright.sh: Put \r at the end of some lines
3263         for the dos-eol tests.  Based on a patch by Joel E. Denny.
3264
3265         maint.mk: make update-copyright exclusion list more configurable
3266         * top/maint.mk (update-copyright): Default to excluding COPYING,
3267         but allow an override, in case someone does want to update that file.
3268
3269         maint.mk: don't update copyright date in COPYING
3270         * top/maint.mk (update-copyright): Exclude COPYING.
3271
3272         maint.mk: add a copyright-updating rule
3273         * top/maint.mk (update-copyright): New rule.
3274         Derived from coreutils/Makefile.am.
3275
3276         update-copyright: rename some variables
3277         * build-aux/update-copyright: Rename a few variables for clarity.
3278         Tweak syntax.  List Joel E. Denny as coauthor.
3279
3280 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
3281
3282         update-copyright: fix bug for 2-digit last year and add tests
3283         * build-aux/update-copyright: Fix bug.
3284         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
3285         specified.
3286         * modules/update-copyright-tests: New
3287         * tests/test-update-copyright.sh: New.
3288
3289 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
3290
3291         update-copyright: handle leading tabs in line prefix
3292         * build-aux/update-copyright: Count leading tabs as 8 spaces
3293         when computing margin.  This helps with the formatting of
3294         ChangeLogs, for example.
3295         Fix documentation a little.
3296
3297 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
3298
3299         update-copyright: support EOL=\r\n
3300         * build-aux/update-copyright: Implement that.
3301
3302 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
3303
3304         update-copyright: automatically format copyright statements
3305         * build-aux/update-copyright: Implement that.
3306         Also, be a little more predictable and safer by always failing
3307         when the full copyright format is not perfectly recognized as an
3308         unbroken whole.  Discussed at
3309         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
3310         Rewrite documentation.
3311
3312 2009-08-03  Bruno Haible  <bruno@clisp.org>
3313
3314         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
3315
3316 2009-08-02  Bruno Haible  <bruno@clisp.org>
3317
3318         Tests for module 'uname'.
3319         * modules/uname-tests: New file.
3320         * tests/test-uname.c: New file.
3321
3322         New module 'uname'.
3323         * lib/uname.c: New file.
3324         * m4/uname.m4: New file.
3325         * modules/uname: New file.
3326         * doc/posix-functions/uname.texi: Mention the new module.
3327
3328 2009-08-02  Bruno Haible  <bruno@clisp.org>
3329
3330         Tests for module 'sys_utsname'.
3331         * modules/sys_utsname-tests: New file.
3332         * tests/test-sys_utsname.c: New file.
3333
3334         New module 'sys_utsname'.
3335         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
3336         * m4/sys_utsname_h.m4: New file.
3337         * modules/sys_utsname: New file.
3338         * doc/posix-headers/sys_utsname.texi: Mention the new module.
3339
3340 2009-08-02  Bruno Haible  <bruno@clisp.org>
3341
3342         Implicitly initialize the sockets library.
3343         * lib/gethostname.c: Include sockets.h.
3344         (rpl_gethostname): Invoke gl_sockets_startup.
3345         * lib/socket.c: Include sockets.h.
3346         (rpl_socket): Invoke gl_sockets_startup.
3347         * modules/gethostname (Depends-on): Add sockets.
3348         * modules/socket (Depends-on): Likewise.
3349         * tests/test-poll.c: Don't include sockets.h.
3350         (main): Don't invoke gl_sockets_startup.
3351         * tests/test-select.c: Don't include sockets.h.
3352         (main): Don't invoke gl_sockets_startup.
3353
3354 2009-08-02  Bruno Haible  <bruno@clisp.org>
3355
3356         Allow multiple calls to gl_sockets_startup.
3357         * lib/sockets.c (initialized_sockets_version): New variable.
3358         (gl_sockets_startup): Do nothing if already called for this or a higher
3359         version.
3360         (gl_sockets_cleanup): Reset initialized_sockets_version.
3361
3362 2009-08-03  Simon Josefsson  <simon@josefsson.org>
3363
3364         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
3365         different project/version.
3366
3367 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
3368             Bruno Haible  <bruno@clisp.org>
3369
3370         Tests for module 'pipe-filter-gi'.
3371         * modules/pipe-filter-gi-tests: New file.
3372         * tests/test-pipe-filter-gi1.sh: New file.
3373         * tests/test-pipe-filter-gi1.c: New file.
3374         * tests/test-pipe-filter-gi2.sh: New file.
3375         * tests/test-pipe-filter-gi2-main.c: New file.
3376         * tests/test-pipe-filter-gi2-child.c: New file.
3377
3378         New module 'pipe-filter-gi'.
3379         * lib/pipe-filter-gi.c: New file.
3380         * modules/pipe-filter-gi: New file.
3381
3382 2009-08-02  Bruno Haible  <bruno@clisp.org>
3383             Paolo Bonzini  <bonzini@gnu.org>
3384
3385         Tests for module 'pipe-filter-ii'.
3386         * modules/pipe-filter-ii-tests: New file.
3387         * tests/test-pipe-filter-ii1.sh: New file.
3388         * tests/test-pipe-filter-ii1.c: New file.
3389         * tests/test-pipe-filter-ii2.sh: New file.
3390         * tests/test-pipe-filter-ii2-main.c: New file.
3391         * tests/test-pipe-filter-ii2-child.c: New file.
3392
3393         New module 'pipe-filter-ii'.
3394         * lib/pipe-filter.h: New file.
3395         * lib/pipe-filter-ii.c: New file.
3396         * lib/pipe-filter-aux.h: New file.
3397         * modules/pipe-filter-ii: New file.
3398
3399 2009-08-02  Simon Josefsson  <simon@josefsson.org>
3400
3401         * lib/gc-libgcrypt.c: Change copyright to FSF.
3402         * lib/gc-gnulib.c: Likewise.
3403
3404 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
3405
3406         * lib/gethostname.c: Include limits.h.
3407
3408 2009-08-02  Simon Josefsson  <simon@josefsson.org>
3409             Bruno Haible  <bruno@clisp.org>
3410
3411         Ensure HOST_NAME_MAX as part of the gethostname module.
3412         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
3413         define also HOST_NAME_MAX.
3414         * tests/test-gethostname.c: Include <limits.h>.
3415         (main): Check also HOST_NAME_MAX.
3416         * doc/posix-headers/limits.texi: Document the mingw problem.
3417
3418 2009-08-02  Bruno Haible  <bruno@clisp.org>
3419
3420         * lib/gethostname.c (gethostname): Fix handling of large len argument.
3421         Add comments.
3422
3423 2009-03-31  Simon Josefsson  <simon@josefsson.org>
3424
3425         * lib/gethostname.c: Add Windows wrapper.
3426         * m4/gethostname.m4: Look for gethostname in -lws2_32.
3427         * modules/gethostname: Depend on sys_socket & errno, for also
3428         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
3429         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
3430
3431 2009-07-31  Jim Meyering  <meyering@redhat.com>
3432
3433         getloadavg: fix symbol name in comment
3434         * lib/getloadavg.c: Correct a typo I introduced when adding
3435         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
3436         Matt Kraai spotted the problem.
3437
3438 2009-07-29  Matt Kraai  <mkraai@beckman.com>
3439
3440         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
3441         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
3442         code also if ! defined N_NAME_POINTER.
3443         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
3444         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
3445         but the n_name member is a 12-byte array.
3446
3447 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
3448
3449         update-copyright: generalize comment handling
3450         * build-aux/update-copyright: Handle copyright statements
3451         within more comment styles.
3452         Document usage.
3453         Report any file with an external copyright holder or parse failure.
3454
3455 2009-07-29  Jim Meyering  <meyering@redhat.com>
3456
3457         mktime: correct setting of REPLACE_MKTIME
3458         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
3459
3460         update-copyright: new module
3461         * modules/update-copyright: New file.
3462         * build-aux/update-copyright: New file.
3463         * MODULES.html.sh (maint+release support): Add update-copyright.
3464
3465 2009-07-27  Bruno Haible  <bruno@clisp.org>
3466
3467         Fix compilation error when <ctime> is used and mktime is replaced.
3468         * lib/time.in.h (mktime): New declaration.
3469         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
3470         REPLACE_MKTIME instead of defining mktime in config.h.
3471         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
3472         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
3473         Reported by Ross McFarland <rwmcfa1@neces.com>.
3474
3475 2009-07-27  Bruno Haible  <bruno@clisp.org>
3476
3477         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
3478         Reported by Matt Kraai <mkraai@beckman.com>.
3479
3480 2009-07-25  Jim Meyering  <meyering@redhat.com>
3481
3482         maint.mk: avoid warnings about missing files
3483         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
3484         diagnostic when .prev-version does not exist.
3485         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
3486         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
3487         nonexistent cfg.mk.
3488         Suggestions from Simon Josefsson.
3489
3490 2009-07-25  Bruno Haible  <bruno@clisp.org>
3491
3492         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
3493         defined as macros. Needed on QNX 6.4.1.
3494         Reported by Matt Kraai <mkraai@beckman.com>.
3495
3496 2009-07-23  Jim Meyering  <meyering@redhat.com>
3497
3498         maint.mk: invoke "make dist" with a working value of XZ_OPT
3499         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
3500
3501 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
3502
3503         Make fseeko.c compile on QNX.
3504         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
3505
3506 2009-07-22  Peter Simons  <simons@cryp.to>
3507
3508         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
3509         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
3510         * lib/md4.h: Likewise.
3511         * lib/md5.h: Likewise.
3512         * lib/sha1.h: Likewise.
3513         * lib/sha256.h: Likewise.
3514         * lib/sha512.h: Likewise.
3515
3516         tests-sha1: don't assign literal string to 'char *' variable
3517         * tests/test-sha1.c (main): Declare locals with "const" to match
3518         attributes of the right hand side.
3519
3520 2009-07-21  Eric Blake  <ebb9@byu.net>
3521
3522         dup2: fix more mingw problems
3523         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
3524         fd to itself.
3525         * doc/posix-functions/dup2.texi (dup2): Document the bug.
3526         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
3527         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
3528         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
3529         care of mingw bugs.
3530
3531 2009-07-21  Jim Meyering  <meyering@redhat.com>
3532
3533         vc-list-files: avoid failure when /bin/sh is dash
3534         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
3535         On some Debian based systems, /bin/sh is a symlink to dash, and running
3536         this command would omit the "/" following each 'tests' prefix:
3537           dash -x build-aux/vc-list-files -C . tests
3538         That is because bash and dash work differently:
3539           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
3540           bash ok
3541           dash odd
3542
3543 2009-07-21  Eric Blake  <ebb9@byu.net>
3544
3545         dup2-tests: test previous patch
3546         * modules/dup2-tests: New file.
3547         * tests/test-dup2.c: Likewise.
3548         * tests/test-open.c (main): Avoid unspecified behavior.
3549         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
3550         test.
3551
3552         dup2: work around mingw and cygwin 1.5 bug
3553         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
3554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
3555         * modules/unistd (Makefile.am): Substitute it.
3556         * lib/unistd.in.h (dup2): Declare the replacement.
3557         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
3558         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
3559         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
3560         * modules/execute (Depends-on): Add dup2.
3561         * modules/fseterr (Depends-on): Likewise.
3562         * modules/pipe (Depends-on): Likewise.
3563         * modules/posix_spawn-internal (Depends-on): Likewise.
3564
3565 2009-07-21  Bruno Haible  <bruno@clisp.org>
3566
3567         * modules/.gitattributes: New file.
3568
3569 2009-07-20  Bruno Haible  <bruno@clisp.org>
3570
3571         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
3572         (main): Use it.
3573
3574 2009-07-20  Eric Blake  <ebb9@byu.net>
3575
3576         test-pipe: make a bit more robust.
3577         * tests/test-pipe.c (myerr): Allow error messages regardless of
3578         what we do to stderr.
3579         (test_pipe): Rearrange to avoid deadlock.
3580         (child_main): Try a larger read, to ensure we avoided deadlock.
3581         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
3582         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
3583         if misused.
3584
3585 2009-07-19  Jim Meyering  <meyering@redhat.com>
3586
3587         fts: avoid false-positive cycle-detection
3588         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
3589         for each new command line argument.
3590
3591 2009-07-19  Bruno Haible  <bruno@clisp.org>
3592
3593         Fix build error on mingw with the modules sys_select and unistd.
3594         * modules/acl-tests (Depends-on): Add close.
3595         * modules/binary-io-tests (Depends-on): Likewise.
3596         * modules/closein-tests (Depends-on): Likewise.
3597         * modules/flock-tests (Depends-on): Likewise.
3598         * modules/fsync-tests (Depends-on): Likewise.
3599         * modules/lseek-tests (Depends-on): Likewise.
3600         * modules/pipe-tests (Depends-on): Likewise.
3601         * modules/posix_spawn-tests (Depends-on): Likewise.
3602         * modules/posix_spawnp-tests (Depends-on): Likewise.
3603         * modules/stat-time-tests (Depends-on): Likewise.
3604         * modules/yesno-tests (Depends-on): Likewise.
3605
3606 2009-07-19  Bruno Haible  <bruno@clisp.org>
3607
3608         Unify conditionals.
3609         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
3610         macros, not at the compiler macros.
3611         * lib/pipe.c: Likewise.
3612         * lib/execute.c: Likewise.
3613         * lib/spawni.c: Likewise.
3614
3615 2009-07-19  Bruno Haible  <bruno@clisp.org>
3616
3617         Fix handling of closed stdin/stdout/stderr on mingw.
3618         * lib/w32spawn.h: Include unistd.h.
3619         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
3620         file descriptor with O_NOINHERIT flag.
3621         (fd_safer_noinherit): New function, based on fd-safer.c.
3622         (dup_safer_noinherit): New function, based on dup-safer.c.
3623         (undup_safer_noinherit): New function.
3624         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
3625         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
3626         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
3627         instead of fd_safer.
3628         * tests/test-pipe.c: Include <windows.h>.
3629         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
3630
3631         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
3632         from main.
3633         (test_pipe): Pass an extra argument for disambiguation.
3634         (main): Invoke parent_main or child_main.
3635
3636         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
3637         consistently.
3638
3639 2009-07-18  Eric Blake  <ebb9@byu.net>
3640
3641         test-pipe: fix mingw build
3642         * tests/test-pipe.c (main): Avoid fcntl on mingw.
3643
3644 2009-07-18  Bruno Haible  <bruno@clisp.org>
3645
3646         * modules/pipe-tests (Makefile.am): Fix typo.
3647
3648 2009-07-18  Eric Blake  <ebb9@byu.net>
3649
3650         error: fix mingw build
3651         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
3652         Reported by Bruno Haible.
3653
3654         error: avoid undefined use of stdout
3655         * lib/error.c (error, error_at_line): Check that fd 1 is open
3656         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
3657         is handling faults and the close_stdout module wants to report the
3658         detection of closed stdout as an error.
3659
3660 2009-07-17  Eric Blake  <ebb9@byu.net>
3661
3662         pipe: be robust in face of closed fds
3663         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
3664         should cause child to misbehave.
3665         * modules/pipe-tests: New module.
3666         * tests/test-pipe.c: New file.
3667         * tests/test-pipe.sh: New file.
3668         Reported by Akim Demaille.
3669
3670 2009-07-14  Bruno Haible  <bruno@clisp.org>
3671
3672         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
3673         Reported by anonymous kc.
3674
3675 2009-07-07  Jim Meyering  <meyering@redhat.com>
3676
3677         maint.mk: don't look for translatable strings in *.m4 or *.mk
3678         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
3679         when searching for translatable strings.
3680
3681 2009-07-05  Jim Meyering  <meyering@redhat.com>
3682
3683         remove superfluous parentheses in STREQ definition
3684         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
3685         * lib/getugroups.c (STREQ): Likewise.
3686         * lib/fnmatch.c (STREQ): Likewise.
3687         Spotted by Bruno Haible.
3688
3689 2009-07-04  Jim Meyering  <meyering@redhat.com>
3690
3691         argv-iter: new module
3692         * MODULES.html.sh: Add argv-iter.
3693         * lib/argv-iter.c, lib/argv-iter.h: New files.
3694         * modules/argv-iter: New file.
3695         * modules/argv-iter-tests: New file.
3696         * tests/test-argv-iter.c: Test it.
3697
3698 2009-07-04  Bruno Haible  <bruno@clisp.org>
3699
3700         Fix assertion.
3701         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
3702         contains more exact copies of a given entry than file2, leave the extra
3703         copies unpaired rather than aborting.
3704         Reported by Eric Blake.
3705
3706 2009-07-02  Bruno Haible  <bruno@clisp.org>
3707
3708         Speedup git-merge-changelog for git cherry-pick.
3709         * lib/git-merge-changelog.c (struct entries_mapping): New type.
3710         (entries_mapping_get): New function, extracted from compute_mapping.
3711         (entries_mapping_reverse_get): New function.
3712         (compute_mapping): Add a 'full' argument. Return the result in a
3713         'struct entries_mapping'.
3714         (main): Update. Access the mappings through entries_mapping_get.
3715         Reported by Eric Blake.
3716
3717 2009-07-02  Bruno Haible  <bruno@clisp.org>
3718
3719         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
3720         best_i.
3721
3722 2009-07-02  Bruno Haible  <bruno@clisp.org>
3723
3724         Speed up approximate search for matching ChangeLog entries.
3725         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
3726         argument. Call fstrcmp_bounded instead of fstrcmp.
3727         (compute_mapping, try_split_merged_entry, main): Update callers.
3728
3729 2009-07-02  Bruno Haible  <bruno@clisp.org>
3730
3731         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
3732
3733 2009-06-30  Bruno Haible  <bruno@clisp.org>
3734
3735         Reduce the number of uc_is_cased calls.
3736         * lib/unicase.h (casing_suffix_context_t): Add
3737         'first_char_except_ignorable' field.
3738         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
3739         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
3740         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
3741         Update initializer.
3742         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
3743         case-ignorable characters.
3744         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
3745         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
3746         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
3747         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
3748         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
3749
3750 2009-06-30  Bruno Haible  <bruno@clisp.org>
3751
3752         Tests for module 'unicase/ignorable'.
3753         * modules/unicase/ignorable-tests: New file.
3754         * tests/unicase/test-ignorable.c: New file, generated by
3755         gen-uni-tables.
3756
3757         Tests for module 'unicase/cased'.
3758         * modules/unicase/cased-tests: New file.
3759         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
3760         * tests/unicase/test-predicate-part1.h: New file, derived from
3761         tests/unictype/test-predicate-part1.h.
3762         * tests/unicase/test-predicate-part2.h: New file, same as
3763         tests/unictype/test-predicate-part2.h.
3764
3765         Fix evaluation of "Before C" condition of FINAL_SIGMA.
3766         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
3767         (output_casing_properties): New function.
3768         (main): Call it.
3769         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
3770         * lib/unicase/cased.c: Include unictype/bitmap.h.
3771         (uc_is_cased): Define through a bitmap lookup.
3772         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
3773         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
3774         (uc_is_case_ignorable): Define through a bitmap lookup.
3775         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
3776         lib/unictype/bitmap.h.
3777         (Depends-on): Add inline. Clean up.
3778         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
3779         lib/unictype/bitmap.h.
3780         (Depends-on): Add inline. Clean up.
3781         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
3782         recognition.
3783         * tests/unicase/test-u16-tolower.c (main): Likewise.
3784         * tests/unicase/test-u32-tolower.c (main): Likewise.
3785
3786 2009-06-30  Bruno Haible  <bruno@clisp.org>
3787
3788         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
3789         * lib/unicase/u16-casemap.c: Likewise.
3790         * lib/unicase/u32-casemap.c: Likewise.
3791
3792 2009-06-29  Bruno Haible  <bruno@clisp.org>
3793
3794         Define u32_casefold as a wrapper around u32_ct_casefold.
3795         * lib/unicase/u32-casefold.c: Update.
3796         * modules/unicase/u32-casefold (Depends-on): Add
3797         unicase/u32-ct-casefold, unicase/empty-prefix-context,
3798         unicase/empty-suffix-context. Clean up.
3799
3800         Define u16_casefold as a wrapper around u16_ct_casefold.
3801         * lib/unicase/u16-casefold.c: Update.
3802         * modules/unicase/u16-casefold (Depends-on): Add
3803         unicase/u16-ct-casefold, unicase/empty-prefix-context,
3804         unicase/empty-suffix-context. Clean up.
3805
3806         Define u8_casefold as a wrapper around u8_ct_casefold.
3807         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
3808         * lib/unicase/u8-casefold.c: Update.
3809         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
3810         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
3811
3812         Define u32_totitle as a wrapper around u32_ct_totitle.
3813         * lib/unicase/u32-totitle.c: Update.
3814         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
3815         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
3816
3817         Define u16_totitle as a wrapper around u16_ct_totitle.
3818         * lib/unicase/u16-totitle.c: Update.
3819         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
3820         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
3821
3822         Define u8_totitle as a wrapper around u8_ct_totitle.
3823         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
3824         functions.
3825         (FUNC): Delegate to U_CT_TOTITLE.
3826         * lib/unicase/u8-totitle.c: Update.
3827         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
3828         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
3829
3830         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
3831         invocation.
3832         * modules/unicase/u32-tolower (Depends-on): Add
3833         unicase/empty-prefix-context, unicase/empty-suffix-context.
3834
3835         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
3836         invocation.
3837         * modules/unicase/u16-tolower (Depends-on): Add
3838         unicase/empty-prefix-context, unicase/empty-suffix-context.
3839
3840         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
3841         * modules/unicase/u8-tolower (Depends-on): Add
3842         unicase/empty-prefix-context, unicase/empty-suffix-context.
3843
3844         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
3845         invocation.
3846         * modules/unicase/u32-toupper (Depends-on): Add
3847         unicase/empty-prefix-context, unicase/empty-suffix-context.
3848
3849         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
3850         invocation.
3851         * modules/unicase/u16-toupper (Depends-on): Add
3852         unicase/empty-prefix-context, unicase/empty-suffix-context.
3853
3854         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
3855         * modules/unicase/u8-toupper (Depends-on): Add
3856         unicase/empty-prefix-context, unicase/empty-suffix-context.
3857
3858         New module 'unicase/u32-ct-casefold'.
3859         * lib/unicase/u32-ct-casefold.c: New file.
3860         * modules/unicase/u32-ct-casefold: New file.
3861
3862         New module 'unicase/u16-ct-casefold'.
3863         * lib/unicase/u16-ct-casefold.c: New file.
3864         * modules/unicase/u16-ct-casefold: New file.
3865
3866         New module 'unicase/u8-ct-casefold'.
3867         * lib/unicase/u8-ct-casefold.c: New file.
3868         * lib/unicase/u-ct-casefold.h: New file, derived from
3869         lib/unicase/u-casefold.h.
3870         * modules/unicase/u8-ct-casefold: New file.
3871
3872         New module 'unicase/u32-ct-totitle'.
3873         * lib/unicase/u32-ct-totitle.c: New file.
3874         * modules/unicase/u32-ct-totitle: New file.
3875
3876         New module 'unicase/u16-ct-totitle'.
3877         * lib/unicase/u16-ct-totitle.c: New file.
3878         * modules/unicase/u16-ct-totitle: New file.
3879
3880         New module 'unicase/u8-ct-totitle'.
3881         * lib/unicase/u8-ct-totitle.c: New file.
3882         * lib/unicase/u-ct-totitle.h: New file, derived from
3883         lib/unicase/u-totitle.h.
3884         * modules/unicase/u8-ct-totitle: New file.
3885
3886         New module 'unicase/u32-ct-tolower'.
3887         * lib/unicase/u32-ct-tolower.c: New file.
3888         * modules/unicase/u32-ct-tolower: New file.
3889
3890         New module 'unicase/u16-ct-tolower'.
3891         * lib/unicase/u16-ct-tolower.c: New file.
3892         * modules/unicase/u16-ct-tolower: New file.
3893
3894         New module 'unicase/u8-ct-tolower'.
3895         * lib/unicase/u8-ct-tolower.c: New file.
3896         * modules/unicase/u8-ct-tolower: New file.
3897
3898         New module 'unicase/u32-ct-toupper'.
3899         * lib/unicase/u32-ct-toupper.c: New file.
3900         * modules/unicase/u32-ct-toupper: New file.
3901
3902         New module 'unicase/u16-ct-toupper'.
3903         * lib/unicase/u16-ct-toupper.c: New file.
3904         * modules/unicase/u16-ct-toupper: New file.
3905
3906         New module 'unicase/u8-ct-toupper'.
3907         * lib/unicase/u8-ct-toupper.c: New file.
3908         * modules/unicase/u8-ct-toupper: New file.
3909
3910         Add context arguments to u*_casemap functions.
3911         * lib/unicase/unicasemap.h: Include unicase.h.
3912         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
3913         suffix_context arguments.
3914         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
3915         functions.
3916         (FUNC): Add prefix_context and suffix_context arguments. Use
3917         uc_is_cased and uc_is_case_ignorable.
3918         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
3919         * lib/unicase/u16-casemap.c: Likewise.
3920         * lib/unicase/u32-casemap.c: Likewise.
3921         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
3922         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
3923         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
3924         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
3925         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
3926         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
3927
3928         New module 'unicase/u32-suffix-context'.
3929         * lib/unicase/u32-suffix-context.c: New file.
3930         * modules/unicase/u32-suffix-context: New file.
3931
3932         New module 'unicase/u16-suffix-context'.
3933         * lib/unicase/u16-suffix-context.c: New file.
3934         * modules/unicase/u16-suffix-context: New file.
3935
3936         New module 'unicase/u8-suffix-context'.
3937         * lib/unicase/u8-suffix-context.c: New file.
3938         * lib/unicase/u-suffix-context.h: New file.
3939         * modules/unicase/u8-suffix-context: New file.
3940
3941         New module 'unicase/empty-suffix-context'.
3942         * lib/unicase/empty-suffix-context.c: New file.
3943         * modules/unicase/empty-suffix-context: New file.
3944
3945         New module 'unicase/u32-prefix-context'.
3946         * lib/unicase/u32-prefix-context.c: New file.
3947         * modules/unicase/u32-prefix-context: New file.
3948
3949         New module 'unicase/u16-prefix-context'.
3950         * lib/unicase/u16-prefix-context.c: New file.
3951         * modules/unicase/u16-prefix-context: New file.
3952
3953         New module 'unicase/u8-prefix-context'.
3954         * lib/unicase/u8-prefix-context.c: New file.
3955         * lib/unicase/u-prefix-context.h: New file.
3956         * lib/unicase/context.h: New file.
3957         * modules/unicase/u8-prefix-context: New file.
3958
3959         New module 'unicase/empty-prefix-context'.
3960         * lib/unicase/empty-prefix-context.c: New file.
3961         * modules/unicase/empty-prefix-context: New file.
3962
3963         New module 'unicase/ignorable'.
3964         * lib/unicase/ignorable.c: New file.
3965         * modules/unicase/ignorable: New file.
3966
3967         New module 'unicase/cased'.
3968         * lib/unicase/caseprop.h: New file.
3969         * lib/unicase/cased.c: New file.
3970         * modules/unicase/cased: New file.
3971
3972         New functions for case mapping of substrings.
3973         * lib/unicase.h (casing_prefix_context_t): New type.
3974         (unicase_empty_prefix_context): New variable.
3975         (u8_casing_prefix_context, u16_casing_prefix_context,
3976         u32_casing_prefix_context, u8_casing_prefixes_context,
3977         u16_casing_prefixes_context, u32_casing_prefixes_context): New
3978         declarations.
3979         (casing_suffix_context_t): New type.
3980         (unicase_empty_suffix_context): New variable.
3981         (u8_casing_suffix_context, u16_casing_suffix_context,
3982         u32_casing_suffix_context, u8_casing_suffixes_context,
3983         u16_casing_suffixes_context, u32_casing_suffixes_context,
3984         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
3985         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
3986         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
3987         declarations.
3988
3989 2009-06-28  Jim Meyering  <meyering@redhat.com>
3990
3991         boostrap: indent only with spaces
3992         * build-aux/bootstrap: Indent only with spaces, never TABs.
3993
3994         bootstrap: split long lines
3995         * build-aux/bootstrap: Keep line length < 80.
3996
3997         bootstrap: sync from coreutils
3998         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
3999         just as autoreconf does.  Verify a list of prerequisite
4000         package-name,version-number pairs if defined in bootstrap.conf.
4001         Refer to README-prereq, if prerequisites are not satisfied.
4002
4003 2009-06-27  Eric Blake  <ebb9@byu.net>
4004
4005         tests: add test for bogus NULL definition
4006         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
4007         * tests/test-stdlib.c: Likewise.
4008         * tests/test-string.c: Likewise.
4009         * tests/test-locale.c: Likewise.
4010         * tests/test-unistd.c: Likewise.
4011         * modules/stdio-tests (Depends-on): Add verify.
4012         * modules/stdlib-tests (Depends-on): Likewise.
4013         * modules/string-tests (Depends-on): Likewise.
4014         * modules/locale-tests (Depends-on): Likewise.
4015         * modules/unistd-tests (Depends-on): Likewise.
4016
4017 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
4018
4019         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
4020         self-explaining comment.
4021         * m4/selinux-selinux-h: Update serial.
4022         (gl_LIBSELINUX): New macro, adding a warning for missing development
4023         packages to code extracted from...
4024         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
4025         Add warning for missing development packages here, too.
4026
4027 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
4028
4029         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
4030
4031 2009-06-25  Eric Blake  <ebb9@byu.net>
4032
4033         version-etc: fix regression
4034         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
4035         gcc.
4036         (version_etc): Use it, to catch bugs with trailing NULL.
4037         * lib/version-etc.c (version_etc_arn): Delete unused argument.
4038         (version_etc_va): Fix logic bug.
4039         * modules/version-etc-tests: Add test.
4040         * tests/test-version-etc.c: New file.
4041         * tests/test-version-etc.sh: Likewise.
4042
4043 2009-06-25  Sam Steingold  <sds@gnu.org>
4044
4045         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
4046         mbtowc declaration.
4047
4048 2009-06-25  Eric Blake  <ebb9@byu.net>
4049
4050         fpurge: migrate into <stdio.h>
4051         * lib/fpurge.h: Delete...
4052         * lib/stdio.in.h (fpurge): ...and declare here, instead.
4053         * lib/fpurge.c (fpurge): Change declaring header.
4054         * modules/fpurge (Files): Drop deleted file.
4055         (Depends-on): Add stdio.
4056         (configure.ac): Set witness.
4057         * modules/stdio (Makefile.am): Support fpurge macros.
4058         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
4059         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
4060         * lib/fflush.c: Update client.
4061         * tests/test-fpurge.c: Likewise.
4062         * NEWS: Mention the change.
4063
4064 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
4065
4066        * lib/argp-version-etc.c (program_authors): Add const
4067        qualifier.
4068        * lib/version-etc.c: Fix typos in the comments.
4069        * modules/argp-version-etc: Depends on version-etc.
4070
4071 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
4072
4073         argp-version-etc: new module.
4074
4075         * lib/argp-version-etc.c: New file.
4076         * lib/argp-version-etc.h: New file.
4077         * modules/argp-version-etc: New file.
4078         * modules/argp-version-etc-tests: New file.
4079         * tests/test-argp-version-etc.c: New test.
4080         * tests/test-argp-version-etc-1.sh: New test.
4081
4082 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
4083
4084         Provide additional interfaces and documentation for version-etc
4085         module.
4086
4087         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
4088         interfaces.
4089         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
4090         prototypes.
4091
4092 2009-06-24  Bruno Haible  <bruno@clisp.org>
4093
4094         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
4095         HAVE_LIB${NAME} macro.
4096         Reported by Sam Steingold <sds@gnu.org>.
4097
4098 2009-06-23  Simon Josefsson  <simon@josefsson.org>
4099
4100         * modules/hash-tests (test_hash_LDADD): Link to libintl when
4101         needed.
4102
4103 2009-06-21  Bruno Haible  <bruno@clisp.org>
4104
4105         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
4106         work.
4107         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
4108         together with LIB${NAME}, LTLIB${NAME}.
4109         Reported by Sam Steingold <sds@gnu.org>.
4110
4111 2009-06-20  Jim Meyering  <meyering@redhat.com>
4112
4113         tests: make sc_require_test_exit_idiom more generic
4114         * top/maint.mk (Exit_witness_file): New overridable variable.
4115         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
4116         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
4117
4118 2009-06-19  Jim Meyering  <meyering@redhat.com>
4119
4120         hash: reverse order of src/dst parameters in an internal interface
4121         * lib/hash.c (transfer_entries): Reverse order of parameters to
4122         put DST before SRC.  Adjust callers.
4123
4124         tests: test-hash: avoid wholesale duplication
4125         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
4126         Instead, use a loop and add a single conditional.
4127
4128         tests: test-hash: allow seed selection via a command line argument
4129         * tests/test-hash.c (get_seed): New function.
4130         (main): Use it.
4131
4132 2009-06-19  Eric Blake  <ebb9@byu.net>
4133
4134         hash: avoid memory leak on allocation failure
4135         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
4136         failure.  Factor repeated algorithm...
4137         (transfer_entries): ...into new helper routine.
4138         (hash_delete): React to hash_rehash return value.
4139
4140         hash: reduce memory pressure in hash_rehash no-op case
4141         * lib/hash.c (next_prime): Avoid overflow.
4142         (hash_initialize): Factor bucket size computation...
4143         (compute_bucket_size): ...into new helper function.
4144         (hash_rehash): Use new function and open coding to reduce memory
4145         pressure, and avoid a memory leak in USE_OBSTACK code.
4146         Reported by Jim Meyering.
4147
4148 2009-06-18  Eric Blake  <ebb9@byu.net>
4149
4150         hash: make rotation more obvious
4151         * modules/hash (Depends-on): Add bitrotate and stdint.
4152         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
4153         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
4154         (SIZE_MAX): Rely on headers for definition.
4155         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
4156         (raw_hasher): Use rotr_sz.
4157         Suggested by Jim Meyering.
4158
4159         hash: fix memory leak in last patch
4160         * lib/hash.c (hash_rehash): Avoid memory leak.
4161
4162         hash: avoid no-op rehashing
4163         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
4164
4165         hash: provide default callback functions
4166         * lib/hash.c (raw_hasher, raw_comparator): New functions.
4167         (hash_initialize): Use them as defaults.
4168         * tests/test-hash.c (main): Test this.
4169
4170         hash: minor optimization
4171         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
4172         when possible.
4173         (hash_initialize): Document this promise.
4174         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
4175         * tests/test-hash.c (hash_compare_strings): Test this.
4176
4177 2009-06-18  Bruno Haible  <bruno@clisp.org>
4178
4179         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
4180         going to be replaced anyway.
4181
4182 2009-06-18  Bruno Haible  <bruno@clisp.org>
4183
4184         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
4185         in one place.
4186         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
4187         be replaced anyway.
4188
4189 2009-06-18  Eric Blake  <ebb9@byu.net>
4190
4191         hash: check for resize before insertion
4192         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
4193         threshold before insertion, so that a pathological hash_rehash
4194         that fills every bucket can still trigger another rehash.
4195
4196 2009-06-18  Jim Meyering  <meyering@redhat.com>
4197
4198         hash-tests: add a loop around the small tests
4199         * tests/test-hash.c (main): Repeat small tests with selected
4200         small initial table sizes.
4201
4202 2009-06-17  Eric Blake  <ebb9@byu.net>
4203
4204         hash: minor cleanups
4205         * lib/hash.h (hash_entry): Make opaque, by moving...
4206         * lib/hash.c (hash_entry): ...here.
4207         (hash_insert): Clarify restrictions on what can be inserted.
4208         (hash_get_next): Clarify when it is safe to remove an element
4209         during traversal.
4210         (check_tuning): Skip verification when tuning is known safe.
4211         (hash_initialize): Clarify restrictions on tuning.
4212
4213 2009-06-17  Jim Meyering  <jim@meyering.net>
4214         and Eric Blake  <ebb9@byu.net>
4215
4216         hash-tests: new module
4217         * modules/hash-tests: New file.
4218         * tests/test-hash.c: New file.
4219
4220 2009-06-17  Eric Blake  <ebb9@byu.net>
4221
4222         strstr-simple: document new module
4223         * MODULES.html.sh: Document new module.
4224
4225         strstr, strcasestr: replace on platforms with broken memchr
4226         * modules/strstr: Split into...
4227         * modules/strstr-simple: ...new module that does not care about
4228         performance, but does care about glibc bug.
4229         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
4230         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
4231         if platform memchr is broken, per Debian bug 521737.
4232         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
4233         memchr.
4234         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
4235         * doc/posix-functions/strstr.texi (strstr): Document the fix.
4236         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
4237         * modules/mountlist (Depends-on): Add strstr-simple.
4238         * modules/gen-uni-tables (Depends-on): Likewise.
4239         * modules/argz (Depends-on): Add strstr.
4240
4241 2009-06-17  Bruno Haible  <bruno@clisp.org>
4242
4243         * modules/posix_spawn-internal (Depends-on): Add errno.
4244
4245 2009-06-17  Bruno Haible  <bruno@clisp.org>
4246
4247         Define missing ESTALE on Interix 3.5.
4248         * lib/errno.in.h (ESTALE): Assign a value if missing.
4249         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
4250         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
4251         missing.
4252         * doc/posix-headers/errno.texi: Mention the Interix bug.
4253         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
4254
4255 2009-06-15  Eric Blake  <ebb9@byu.net>
4256
4257         memchr, memchr2: add valgrind exception
4258         * lib/memchr.valgrind: New file.
4259         * lib/memchr2.valgrind: New file.
4260         * modules/memchr (Files): Distribute valgrind file.
4261         * modules/memchr2 (Files): Likewise.
4262
4263         docs: memchr is no longer obsolete
4264         * MODULES.html.sh: Move memchr from obsolete to string.h section.
4265         * lib/string.in.h (memchr): Simplify logic.
4266
4267 2009-06-14  Jim Meyering  <meyering@redhat.com>
4268
4269         link-follow: fix the "checking..." message to not mention trailing slash
4270         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
4271         never considered trailing slashes.
4272
4273 2009-06-14  Bruno Haible  <bruno@clisp.org>
4274
4275         * m4/memchr.m4: Mention also the bug on IA-64.
4276         * doc/posix-functions/memchr.texi: Likewise.
4277
4278 2009-06-12  Eric Blake  <ebb9@byu.net>
4279
4280         memchr: detect broken x86_64 and alpha implementations
4281         * modules/memchr-tests (Depends-on): Move mmap detection...
4282         * modules/memchr (Depends-on): ...here.
4283         (configure.ac): Set indicator.
4284         * lib/string.in.h (memchr): Declare replacement.
4285         * modules/string (Makefile.am): Trigger replacement.
4286         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
4287         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
4288         bugs.
4289         * doc/posix-functions/memchr.texi (memchr): Document the bug.
4290         * modules/getpagesize (License): Relax license.
4291
4292 2009-06-11  Bruno Haible  <bruno@clisp.org>
4293
4294         * lib/idpriv.h: Add more references.
4295
4296 2009-06-08  Bruno Haible  <bruno@clisp.org>
4297
4298         Tests for module 'idpriv-droptemp'.
4299         * modules/idpriv-droptemp-tests: New file.
4300         * tests/test-idpriv-droptemp.sh: New file.
4301         * tests/test-idpriv-droptemp.su.sh: New file.
4302         * tests/test-idpriv-droptemp.c: New file.
4303
4304         New module 'idpriv-droptemp'.
4305         * lib/idpriv-droptemp.c: New file.
4306         * modules/idpriv-droptemp: New file.
4307
4308 2009-06-08  Bruno Haible  <bruno@clisp.org>
4309
4310         Tests for module 'idpriv-drop'.
4311         * modules/idpriv-drop-tests: New file.
4312         * tests/test-idpriv-drop.sh: New file.
4313         * tests/test-idpriv-drop.su.sh: New file.
4314         * tests/test-idpriv-drop.c: New file.
4315
4316         New module 'idpriv-drop'.
4317         * lib/idpriv.h: New file.
4318         * lib-idpriv-drop.c: New file.
4319         * m4/idpriv.m4: New file.
4320         * modules/idpriv-drop: New file.
4321
4322 2009-06-08  Bruno Haible  <bruno@clisp.org>
4323
4324         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
4325         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
4326         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
4327         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
4328         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
4329         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
4330         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
4331
4332 2009-06-08  Eric Blake  <ebb9@byu.net>
4333
4334         test-strstr: use memory fence, when possible
4335         * tests/test-strstr.c (main): Use memory fence, in order to be
4336         more likely to trigger Debian bug 521737.
4337         * modules/strstr-tests (Files): Pull in additional files.
4338
4339         memchr: no longer obsolete, for wider field testing
4340         * modules/memchr (Status, Notice): Delete, this module is no
4341         longer obsolete.
4342         * modules/vasnprintf (Depends-on): Add memchr.
4343
4344 2009-06-07  Jim Meyering  <meyering@redhat.com>
4345
4346         hash: declare some functions with the warn_unused_result attribute
4347         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
4348
4349 2009-06-07  Bruno Haible  <bruno@clisp.org>
4350
4351         * tests/test-alignof.c: Don't test int64_t if it does not exist.
4352         Reported by Eric Blake.
4353
4354 2009-06-06  Eric Blake  <ebb9@byu.net>
4355
4356         test-alignof: fix typo with long double
4357         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
4358         compiler error.
4359
4360 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
4361
4362         Escape non-texinfo { and }s.
4363         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
4364         markup error.
4365
4366 2009-06-04  Jim Meyering  <meyering@redhat.com>
4367
4368         gitlog-to-changelog: don't infloop on an empty commit log
4369         * build-aux/gitlog-to-changelog: Warn about an empty log message.
4370         Reported by Boris Petersen <transacid@centerim.org>.
4371
4372 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
4373
4374         version-etc: extend for packagers
4375         Add three new configure options, intended for packagers:
4376           --with-packager="packager name"
4377           --with-packager-version="packager-specific version"
4378           --with-packager-bug-reports="packager bug reporting"
4379         An example with coreutils:
4380           $ ./configure \
4381             --with-packager=Gentoo \
4382             --with-packager-bug-report=http://bugs.gentoo.org/ \
4383             --with-packager-version="patchset 1.6"
4384           $ ./src/ls --version | head -n3
4385           ls (GNU coreutils) 7.1-dirty
4386           Packaged by Gentoo (patchset 1.6)
4387           Copyright (C) 2009 Free Software Foundation, Inc.
4388         Note that the bug reporting info via --help doesn't show up because
4389         coreutils uses its own custom emit_bug_reporting_address() implementation
4390         in src/system.h.  If it didn't, it'd look like:
4391           $ ./src/ls --help | tail -n4
4392           Report bugs to <bug-coreutils@gnu.org>.
4393           Report Gentoo bugs to <http://bugs.gentoo.org/>.
4394           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
4395           General help using GNU software: <http://www.gnu.org/gethelp/>.
4396         * lib/version-etc.c: Print new information, if provided.
4397         * m4/version-etc.m4: New file.
4398         * modules/version-etc (Files): Add m4/version-etc.m4.
4399         (configure.ac): Add gl_VERSION_ETC.
4400
4401 2009-05-31  Bruno Haible  <bruno@clisp.org>
4402
4403         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
4404         and 'int64_t'.
4405         * modules/alignof-tests (Dependencies): Add stdint.
4406         Reported by Eric Blake.
4407
4408 2009-05-31  Bruno Haible  <bruno@clisp.org>
4409
4410         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
4411         restriction due to compiler bugs.
4412         Reported by Eric Blake.
4413
4414 2009-05-31  Simon Josefsson  <simon@josefsson.org>
4415             Bruno Haible  <bruno@clisp.org>
4416
4417         Fix test-alignof failure.
4418         * lib/alignof.h (alignof_slot): New macro.
4419         (alignof_type): New macro, with the same semantics as the previous
4420         'alignof'.
4421         (alignof): Alias to alignof_slot.
4422         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
4423         check that the results are usable as constant expressions.
4424
4425 2009-05-31  Bruno Haible  <bruno@clisp.org>
4426
4427         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
4428         * tests/test-memchr.c (main): Check that memchr does not read past the
4429         first occurrence of the byte.
4430         * tests/test-strstr.c (main): Update comment.
4431         Suggested by Eric Blake.
4432
4433 2009-05-30  Bruno Haible  <bruno@clisp.org>
4434
4435         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
4436         detail how to use dumpbin.
4437         Reported by David Byron <dbyron@dbyron.com>.
4438
4439 2009-06-02  Simon Josefsson  <simon@josefsson.org>
4440
4441         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
4442
4443 2009-06-02  Simon Josefsson  <simon@josefsson.org>
4444
4445         * m4/manywarnings.m4: Add GCC 4.4 warnings.
4446
4447 2009-05-28  Bruno Haible  <bruno@clisp.org>
4448
4449         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
4450         build-aux/ files.
4451
4452 2009-05-28  Simon Josefsson  <simon@josefsson.org>
4453
4454         * gnulib-tool (func_import): Transform license on build-aux/ files too.
4455
4456 2009-05-27  Simon Josefsson  <simon@josefsson.org>
4457
4458         * gnulib-tool (sed_transform_main_lib_file)
4459         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
4460         regexps.
4461
4462 2009-05-26  Simon Josefsson  <simon@josefsson.org>
4463
4464         * tests/test-strstr.c: Add another self-test.
4465         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
4466         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
4467
4468 2009-05-23  Bruno Haible  <bruno@clisp.org>
4469
4470         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
4471         change.
4472
4473 2009-05-21  Bruno Haible  <bruno@clisp.org>
4474
4475         Simplify use of mode_t varargs.
4476         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
4477         uses 'mode_t' or 'int'.
4478         * lib/openat.c (openat): Likewise.
4479         * lib/open-safer.c (open_safer): Likewise.
4480         * m4/mode_t.m4: New file.
4481         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
4482         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
4483         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
4484         * modules/open (Files): Add m4/mode_t.m4.
4485         * modules/openat (Files): Likewise.
4486         * modules/fcntl-safer (Files): Likewise.
4487         Suggested by Eric Blake.
4488
4489 2009-05-21  Pádraig Brady  <P@draigbrady.com>
4490
4491         * doc/glibc-functions/fallocate.texi: New file.
4492         * doc/gnulib.texi: Include it.
4493
4494 2009-05-21  Eric Blake  <ebb9@byu.net>
4495             Bruno Haible  <bruno@clisp.org>
4496
4497         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
4498         invocations.
4499         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4500
4501 2009-05-21  Eric Blake  <ebb9@byu.net>
4502             Bruno Haible  <bruno@clisp.org>
4503
4504         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
4505         include_next. Fix of 2008-11-20 commit.
4506         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
4507         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
4508         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
4509         NEXT_MATH_H.
4510         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
4511         instead of NEXT_MATH_H.
4512
4513 2009-05-21  Bruno Haible  <bruno@clisp.org>
4514
4515         Avoid redefinition warnings for SIZE_MAX.
4516         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
4517         Reported by Simon Josefsson.
4518
4519 2009-05-21  Bruno Haible  <bruno@clisp.org>
4520
4521         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
4522         AC_CACHE_VAL.
4523
4524 2009-05-20  Bruno Haible  <bruno@clisp.org>
4525
4526         Make zeroptr.h work on mingw.
4527         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
4528         mprotect.
4529         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
4530         * modules/memchr2-tests (configure.ac): Likewise.
4531         * modules/memcmp-tests (configure.ac): Likewise.
4532         * modules/memmem-tests (configure.ac): Likewise.
4533         * modules/memrchr-tests (configure.ac): Likewise.
4534         Reported by Simon Josefsson.
4535
4536 2009-05-20  Simon Josefsson  <simon@josefsson.org>
4537
4538         * tests/test-glob.c: Include string.h for strcmp prototype.
4539
4540 2009-05-20  Simon Josefsson  <simon@josefsson.org>
4541
4542         * modules/getdelim (Depends-on): Add explicit stdint, although it
4543         was implicitly already pulled in via realloc-posix.
4544         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
4545
4546 2009-05-20  Simon Josefsson  <simon@josefsson.org>
4547
4548         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
4549         G. Christensen" <tgc@jupiterrise.com>.
4550         * m4/sys_socket_h.m4: Check for sa_family_t.
4551         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
4552         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
4553         * tests/test-sys_socket.c: Check that sa_family_t works.
4554
4555 2009-05-18  Eric Blake  <ebb9@byu.net>
4556
4557         maint.mk: allow gnulib_dir in VPATH build
4558         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
4559
4560 2009-05-15  Jim Meyering  <meyering@redhat.com>
4561
4562         maint.mk: Give gnulib_dir a default definition.
4563         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
4564         Thus, most packages no longer need to specify this variable in cfg.mk
4565
4566 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
4567
4568         rename.m4: fix typos that would make non-mingw cross-configure fail
4569         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
4570
4571 2009-05-13  Eric Blake  <ebb9@byu.net>
4572
4573         mmap-anon: avoid out-of-order autoconf expansion
4574         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
4575         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
4576         * modules/memchr-tests (Depends-on): Add extensions.
4577         * modules/memchr2-tests (Depends-on): Add extensions.
4578         * modules/memcmp-tests (Depends-on): Add extensions.
4579         * modules/memmem-tests (Depends-on): Add extensions.
4580         * modules/memrchr-tests (Depends-on): Add extensions.
4581
4582 2009-05-13  Bruno Haible  <bruno@clisp.org>
4583
4584         Make some tests ISO C 99 compliant.
4585         * tests/zerosize-ptr.h: New file.
4586         * tests/test-memchr.c: Include zerosize-ptr.h.
4587         (main): Use a zero-size object pointer instead of NULL.
4588         * tests/test-memchr2.c: Include zerosize-ptr.h.
4589         (main): Use a zero-size object pointer instead of NULL.
4590         * tests/test-memcmp.c: Include zerosize-ptr.h.
4591         (main): Use a zero-size object pointer instead of NULL.
4592         * tests/test-memmem.c: Include zerosize-ptr.h.
4593         (main): Use a zero-size object pointer instead of NULL.
4594         * tests/test-memrchr.c: Include zerosize-ptr.h.
4595         (main): Use a zero-size object pointer instead of NULL.
4596         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
4597         m4/mmap-anon.m4.
4598         (Depends-on): Add getpagesize.
4599         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4600         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
4601         m4/mmap-anon.m4.
4602         (Depends-on): Add getpagesize.
4603         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4604         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
4605         m4/mmap-anon.m4.
4606         (Depends-on): Add getpagesize.
4607         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4608         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
4609         m4/mmap-anon.m4.
4610         (Depends-on): Add getpagesize.
4611         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4612         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
4613         m4/mmap-anon.m4.
4614         (Depends-on): Add getpagesize.
4615         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4616
4617 2009-05-12  Bruno Haible  <bruno@clisp.org>
4618
4619         Tests for module 'alignof'.
4620         * modules/alignof-tests: New file.
4621         * tests/test-alignof.c: New file.
4622
4623 2009-05-12  Bruno Haible  <bruno@clisp.org>
4624
4625         Fix alignof macro.
4626         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
4627         vendor compilers that are always correct.
4628
4629 2009-05-12  Bruno Haible  <bruno@clisp.org>
4630
4631         Make the MAP_ANONYMOUS detection work on HP-UX 11.
4632         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
4633         not whether its fully works.
4634
4635 2009-05-12  Bruno Haible  <bruno@clisp.org>
4636
4637         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
4638
4639 2009-05-12  Jim Meyering  <meyering@redhat.com>
4640
4641         * top/maint.mk: Adjust backslash alignment.
4642
4643 2009-05-11  Simon Josefsson  <simon@josefsson.org>
4644
4645         * top/maint.mk: Make $(srcdir)/build-aux configurable.
4646
4647 2009-05-11  Eric Blake  <ebb9@byu.net>
4648
4649         argp: avoid undefined behavior
4650         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
4651         macros.
4652
4653 2009-05-08  Simon Josefsson  <simon@josefsson.org>
4654
4655         * tests/test-vc-list-files-git.sh: Do git config of user.email and
4656         user.name to prevent git commit from complaining.
4657
4658 2009-05-10  Bruno Haible  <bruno@clisp.org>
4659
4660         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
4661         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
4662         it rewrites every file name only once.
4663         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
4664
4665 2009-05-08  Bruno Haible  <bruno@clisp.org>
4666
4667         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
4668         instead of 'max'.
4669
4670 2009-05-08  Simon Josefsson  <simon@josefsson.org>
4671
4672         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
4673         sockaddr_storage test.
4674
4675 2009-05-07  Simon Josefsson  <simon@josefsson.org>
4676
4677         * modules/sys_socket (Makefile.am): Substitute
4678         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
4679         * m4/sys_socket_h.m4: Check for sockaddr_storage.
4680         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
4681         * tests/test-sys_socket.c: Check sockaddr_storage.
4682
4683 2009-05-08  Bruno Haible  <bruno@clisp.org>
4684
4685         New module 'alignof'.
4686         * lib/alignof.h: New file.
4687         * modules/alignof: New file.
4688
4689 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
4690             Bruno Haible  <bruno@clisp.org>
4691
4692         Fix test-file-has-acl on FreeBSD.
4693         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
4694         mask is implicitly added.
4695         * tests/test-file-has-acl.c: Include <signal.h>.
4696         (main): Terminate the test after 5 seconds.
4697         * modules/acl-tests (configure.ac): Check for alarm function.
4698
4699 2009-05-04  Bruno Haible  <bruno@clisp.org>
4700
4701         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
4702         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
4703         * modules/errno (configure.ac): Drop AC_REQUIRE.
4704         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
4705         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
4706
4707 2009-05-04  Simon Josefsson  <simon@josefsson.org>
4708
4709         * modules/glob-tests: New module.
4710         * tests/test-glob.c: Add.
4711
4712 2009-05-04  Simon Josefsson  <simon@josefsson.org>
4713
4714         * modules/fnmatch-tests: New module.
4715         * tests/test-fnmatch.c: Add.
4716
4717 2009-05-04  Eric Blake  <ebb9@byu.net>
4718
4719         maint: make the new no-submodule-changes rule VPATH-safe
4720         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
4721
4722 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
4723             Bruno Haible  <bruno@clisp.org>
4724
4725         acl: Fix infinite loop on FreeBSD.
4726         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
4727         of return value from acl_get_entry.
4728         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
4729         Likewise.
4730
4731 2009-05-03  Bruno Haible  <bruno@clisp.org>
4732
4733         * lib/acl-internal.h (acl_entries): Clarify return value.
4734         * lib/acl_entries.c (acl_entries): Likewise.
4735
4736 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
4737
4738         Bug fix in acl module.
4739         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
4740
4741 2009-05-03  Bruno Haible  <bruno@clisp.org>
4742
4743         Create gperf-generated file in the source dir, not in the build dir.
4744         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
4745         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
4746         * modules/unicase/locale-language (unicase/locale-languages.h):
4747         Likewise.
4748         * modules/unicase/special-casing (unicase/special-casing-table.h):
4749         Likewise.
4750         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
4751         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
4752         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
4753         Reported by Ralf Wildenhues.
4754
4755 2009-05-03  Bruno Haible  <bruno@clisp.org>
4756
4757         * modules/fnmatch (Description, configure.ac): Taken from
4758         fnmatch-posix.
4759         * modules/fnmatch-posix: Turn into a symbolic reference to the
4760         'fnmatch' module, and deprecate.
4761         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
4762
4763 2009-05-03  Bruno Haible  <bruno@clisp.org>
4764
4765         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
4766         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
4767         Reported by Ralf Wildenhues.
4768
4769 2009-05-04  Simon Josefsson  <simon@josefsson.org>
4770
4771         * m4/fnmatch.m4: Fix fnmatch re-define.
4772
4773 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
4774
4775         priv-set: new module and tests; adapt write-any-file
4776         * lib/priv-set.c: New file.
4777         * lib/priv-set.h: New file.
4778         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
4779         * lib/write-any-file.c: Simplify by using priv-set module.
4780         * m4/priv-set.m4: New file.
4781         * modules/priv-set: New file.
4782         * modules/unlinkdir: Add dependency on priv-set module.
4783         * modules/write-any-file: Likewise.
4784
4785         Tests for module 'priv-set'.
4786         * modules/priv-set-tests: New file.
4787         * tests/test-priv-set.c: New file.
4788
4789 2009-05-03  Jim Meyering  <meyering@redhat.com>
4790             Bruno Haible  <bruno@clisp.org>
4791
4792         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
4793         use the converted UTF-8 variant of the name instead.
4794
4795 2009-05-03  Jim Meyering  <meyering@redhat.com>
4796
4797         tests: tighten some getdate tests
4798         * tests/test-getdate.c (main): Tighten tests: require equality,
4799         not just greater than.  Set TZ envvar to UTC0.
4800
4801 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
4802
4803         getdate: correctly interpret "next monday" when run on a Monday
4804         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
4805         that e.g., "next tues" (when run on a tuesday) results in a date
4806         that is one week in the future, and not today's date.
4807         I.e., add a week when the wday is the same as the current one.
4808         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
4809         and earlier by Martin Bernreuther and Jan Minář.
4810         * tests/test-getdate.c (main): Check that "next DAY" is always in
4811         the future and that "last DAY" is always in the past.
4812
4813 2009-05-02  Jim Meyering  <meyering@redhat.com>
4814
4815         build: ensure that a release build fails when a submodule is unclean
4816         * top/maint.mk (no-submodule-changes): New rule.
4817         (alpha beta major): Depend on it.
4818
4819 2009-05-02  Bruno Haible  <bruno@clisp.org>
4820
4821         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
4822         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
4823         shell variable gl_fnmatch_required to detect which variant is
4824         requested.
4825         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
4826         gl_FUNC_FNMATCH_POSIX.
4827         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
4828         exclude fnmatch-posix.
4829
4830 2009-05-02  Bruno Haible  <bruno@clisp.org>
4831
4832         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
4833         * modules/mbsrtowcs (License): Change to LGPLv2+.
4834         * modules/strnlen1 (License): Likewise.
4835         Reported by Simon Josefsson.
4836
4837 2009-05-02  Bruno Haible  <bruno@clisp.org>
4838
4839         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
4840         "cross".
4841         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
4842         gnulib-tool was called with option --source-base=lib.
4843
4844 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4845
4846         Use automake *-local hooks without commands, for extensibility.
4847         * modules/localcharset (Makefile.am): Rename install-exec-local
4848         rule to install-exec-localcharset, and make it a prerequisite of
4849         install-exec-local.  Likewise, rename the uninstall-local rule to
4850         uninstall-localcharset, and make it a prerequisite of the former.
4851
4852 2009-05-01  Bruno Haible  <bruno@clisp.org>
4853
4854         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
4855         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
4856         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
4857         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
4858         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
4859         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
4860         m4/locale-zh.m4, m4/codeset.m4.
4861
4862         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
4863         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
4864         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
4865         m4/locale-zh.m4.
4866
4867         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
4868         REPLACE_WCRTOMB if mbstate_t must be replaced.
4869         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
4870         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
4871
4872 2009-05-01  Bruno Haible  <bruno@clisp.org>
4873
4874         Avoid compiler warnings when redefining macros defined by <libintl.h>.
4875         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
4876         dngettext, dcngettext, textdomain, bindtextdomain,
4877         bind_textdomain_codeset): Undefine before redefining.
4878
4879 2009-04-30  Bruno Haible  <bruno@clisp.org>
4880
4881         Fix bug introduced on 2009-04-25.
4882         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
4883         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
4884         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
4885         is defined.
4886         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
4887         is defined.
4888         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
4889         is defined.
4890         Reported by Elbert_Pol <elbert.pol@gmail.com>.
4891
4892 2009-04-28  Bruno Haible  <bruno@clisp.org>
4893
4894         Comment tweaks.
4895         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
4896         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
4897         * lib/unicase.h (u*_casexfrm): Likewise.
4898         Reported by Paolo Bonzini.
4899
4900 2009-04-28  Bruno Haible  <bruno@clisp.org>
4901
4902         Fix a compilation error.
4903         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
4904         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
4905         Reported by Jim Meyering.
4906
4907 2009-04-27  Bruno Haible  <bruno@clisp.org>
4908
4909         New module 'libunistring'.
4910         * modules/libunistring: New file.
4911         * m4/libunistring.m4: New file.
4912         * MODULES.html.sh (Unicode string functions): Add it.
4913
4914 2009-04-27  Eric Blake  <ebb9@byu.net>
4915
4916         maint.mk: allow package-specific header to provide <config.h>
4917         * top/maint.mk (sc_require_config_h): New variable.
4918         (sc_require_config_h, sc_require_config_h_first): Use it.
4919
4920 2009-04-27  Simon Josefsson  <simon@josefsson.org>
4921
4922         * top/maint.mk (sc_avoid_if_before_free): Except
4923         useless-if-before-free script.
4924
4925 2009-04-27  Eric Blake  <ebb9@byu.net>
4926
4927         maintainer-makefile: depend on all required helper scripts
4928         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
4929         useless-if-before-free.
4930         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
4931         version, rather than assuming gnulib checkout is available.
4932         Reported by Simen Josefsson.
4933
4934 2009-04-26  Bruno Haible  <bruno@clisp.org>
4935
4936         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
4937         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
4938         "../" or "..".
4939
4940 2009-04-26  Bruno Haible  <bruno@clisp.org>
4941
4942         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
4943         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
4944         AC_LIB_HAVE_LINKFLAGS.
4945
4946 2009-04-26  Bruno Haible  <bruno@clisp.org>
4947
4948         Simplify calling convention of u*_conv_from_encoding.
4949         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
4950         u32_conv_from_encoding): Expect a resultbuf argument and return the
4951         result directly as a pointer.
4952         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
4953         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
4954         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
4955         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
4956         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
4957         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
4958         Update.
4959         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
4960         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
4961         * lib/vasnprintf.c (VASNPRINTF): Update.
4962         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
4963         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
4964         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
4965         * NEWS: Mention the change.
4966
4967 2009-04-26  Bruno Haible  <bruno@clisp.org>
4968
4969         Simplify calling convention of u*_conv_to_encoding.
4970         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
4971         u32_conv_to_encoding): Expect a resultbuf argument and return the
4972         result directly as a pointer.
4973         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
4974         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
4975         freeing scaled_offsets if mem_iconveha failed.
4976         * lib/unicase/u-casexfrm.h (FUNC): Update.
4977         * lib/uninorm/u-normxfrm.h (FUNC): Update.
4978         * lib/vasnprintf.c (VASNPRINTF): Update.
4979         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
4980         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
4981         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
4982         * NEWS: Mention the change.
4983
4984 2009-04-26  Bruno Haible  <bruno@clisp.org>
4985
4986         Avoid test failures on AIX and OSF/1.
4987         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
4988         malloc(0).
4989         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
4990         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
4991         Likewise.
4992         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
4993         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
4994         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
4995         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
4996         * doc/posix-functions/malloc.texi: Document the portability problem
4997         related to malloc(0).
4998
4999 2009-04-26  Bruno Haible  <bruno@clisp.org>
5000
5001         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
5002         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
5003         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
5004
5005 2009-04-25  Bruno Haible  <bruno@clisp.org>
5006
5007         Avoid link error when creating a namespace clean library.
5008         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
5009         as macro with arguments if already defined as an alias.
5010         * lib/signbitf.c (gl_signbitf): Don't undefine.
5011         * lib/signbitd.c (gl_signbitd): Don't undefine.
5012         * lib/signbitl.c (gl_signbitl): Don't undefine.
5013
5014 2009-04-25  Jim Meyering  <meyering@redhat.com>
5015
5016         vc-list-files: fix another quoting bug
5017         * build-aux/vc-list-files: Avoid sed backslash expansion
5018         of pathological directory names.
5019
5020 2009-04-25  Eric Blake  <ebb9@byu.net>
5021
5022         vc-list-files: fix shell quoting error
5023         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
5024         timestamp.
5025
5026 2009-04-25  Jim Meyering  <meyering@redhat.com>
5027
5028         vc-list-files: restore lost functionality with subdir argument
5029         * build-aux/vc-list-files: When given a non-"." sub-directory
5030         argument, substitute the $dir/ prefix back onto each resulting name.
5031         Otherwise, coreutils' root_tests check would fail.
5032
5033 2009-04-24  Eric Blake  <ebb9@byu.net>
5034
5035         vc-list-files: ignore git symlinks
5036         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
5037         than ls-files, to ignore git symlinks.
5038
5039         maint.mk: import improvements from m4
5040         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
5041         (move_if_change): Delete unused macro.
5042         (news-date-check, vc-diff-check): Support VPATH builds.
5043         (announcement): Likewise.  Split --bootstrap-tools list...
5044         (boostrap-tools): ...into separate list, which can be overridden
5045         in cfg.mk.
5046         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
5047         requiring dependency on useless-if-before-free module.
5048         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
5049         Support VPATH builds.
5050
5051 2009-04-24  Jim Meyering  <meyering@redhat.com>
5052
5053         maint.mk: remove coreutils-specific rules and variables
5054         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
5055         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
5056         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
5057
5058         maint.mk: remove obsolete rule
5059         * top/maint.mk (rel-check): Remove rule.
5060         (WGET, WGETFLAGS): Remove now-unused variables.
5061
5062 2009-04-24  Simon Josefsson  <simon@josefsson.org>
5063
5064         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
5065         consistency.
5066
5067         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
5068         '$(PATH_SEPARATOR)' instead of ':'.
5069
5070 2009-04-24  Simon Josefsson  <simon@josefsson.org>
5071
5072         * lib/getopt1.c (main): Use 'const' for static array.
5073
5074 2009-04-24  Simon Josefsson  <simon@josefsson.org>
5075
5076         * top/maint.mk: Sync with coreutils.
5077         * NEWS: Explain incompatibilities.
5078
5079 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5080             Bruno Haible  <bruno@clisp.org>
5081
5082         Fix cross-compilation results.
5083         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
5084         statement, as third argument of AC_TRY_RUN.
5085         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5086         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
5087         Likewise.
5088         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5089         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
5090         Likewise.
5091         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5092         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
5093         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
5094
5095 2009-04-20  Bruno Haible  <bruno@clisp.org>
5096
5097         Avoid test failure on mingw.
5098         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
5099
5100 2009-04-20  Bruno Haible  <bruno@clisp.org>
5101
5102         Avoid compilation error on mingw.
5103         * modules/localename-tests (Depends-on): Add locale.
5104
5105 2009-04-19  Bruno Haible  <bruno@clisp.org>
5106
5107         Support for building a shared library on Windows platforms.
5108         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
5109         (main): Test the presence of UNINORM_NFC here.
5110         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
5111         (main): Test the presence of UNINORM_NFD here.
5112         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
5113         (main): Test the presence of UNINORM_NFKC here.
5114         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
5115         (main): Test the presence of UNINORM_NFKD here.
5116
5117 2009-04-19  Bruno Haible  <bruno@clisp.org>
5118
5119         Avoid a compiler warning.
5120         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
5121         Change type of variable 'sequence'.
5122
5123 2009-04-19  Bruno Haible  <bruno@clisp.org>
5124
5125         * modules/configmake (Makefile.am): When the contents of configmake.h
5126         does not change, arrange to preserve its modification time.
5127
5128 2009-04-17  Simon Josefsson  <simon@josefsson.org>
5129
5130         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
5131         gettext domain.
5132
5133 2009-04-16  Jim Meyering  <meyering@redhat.com>
5134
5135         useless-if-before-free: improve conversion code
5136         * build-aux/useless-if-before-free: Adjust code-in-comment to match
5137         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
5138
5139 2009-04-14  Bruno Haible  <bruno@clisp.org>
5140
5141         * modules/fcntl (Depends-on): Add extensions.
5142         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
5143
5144 2009-04-12  Ben Pfaff  <blp@gnu.org>
5145
5146         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
5147         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
5148
5149 2009-03-20  Ben Pfaff  <blp@gnu.org>
5150
5151         Make rename replace existing destinations on Windows.
5152         * m4/rename.m4: Add test for Mingw.
5153         * lib/rename.c: Add rename replacement that uses MoveFileEx with
5154         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
5155         * doc/posix-functions/rename.texi: Document.
5156
5157 2009-04-10  Bruno Haible  <bruno@clisp.org>
5158
5159         New include file "iconveh.h".
5160         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
5161         * lib/striconveh.h: Include it.
5162         (enum iconv_ilseq_handler): Remove definition.
5163         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
5164         striconveh.h.
5165         * lib/striconveha.c: Include striconveh.h.
5166         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
5167         * modules/striconveh (Files): Add lib/iconveh.h.
5168         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
5169         lib/striconveh.h.
5170
5171 2009-04-10  Bruno Haible  <bruno@clisp.org>
5172
5173         * lib/uniconv.h: Update comment.
5174
5175 2009-04-10  Bruno Haible  <bruno@clisp.org>
5176
5177         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
5178         always.
5179         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
5180         * lib/unistr/u16-mbtouc-aux.c: Likewise.
5181         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
5182         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
5183         "unistring-notinline.h", so that the function gets defined always.
5184         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
5185         * lib/unistr/u8-uctomb.c: Likewise.
5186         * lib/unistr/u16-mbtouc.c: Likewise.
5187         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
5188         * lib/unistr/u16-uctomb.c: Likewise.
5189         * lib/unistr/u32-mbtouc.c: Likewise.
5190         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
5191         * lib/unistr/u32-uctomb.c: Likewise.
5192
5193 2009-04-10  Bruno Haible  <bruno@clisp.org>
5194
5195         Mark 'utime' obsolete.
5196         * modules/utime (Status, Notice): New sections.
5197         Suggested by Jim Meyering.
5198
5199         Fix cross-compile guess for utime test.
5200         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
5201         autoconf.
5202         * doc/posix-functions/utime.texi: Give more precisions.
5203         Reported by Jan <ipif@ymail.com>.
5204
5205 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
5206
5207         filevercmp: correct today's change
5208         * lib/filevercmp.c: Also handle coreutils' test inputs.
5209         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
5210
5211         Fix regression in 'filevercmp' module. Thanks Sven Joachim
5212         for reporting it.
5213         * lib/filevercmp.c: Special handle for "", "." and "..".
5214         * tests/test-filevercmp.c: Enlarge the set suite.
5215
5216 2009-04-07  Jim Meyering  <meyering@redhat.com>
5217
5218         useless-if-before-free: show how to remove braced useless free, too
5219         * build-aux/useless-if-before-free: still only in a comment, though.
5220
5221 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
5222
5223         maint.mk: import changes to syntax-check macros from coreutils
5224         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
5225         Use them in the relevant macros.
5226
5227 2009-04-06  Bruno Haible  <bruno@clisp.org>
5228
5229         Fix unportable use of bit-fields.
5230         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
5231         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
5232         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
5233
5234 2009-04-06  Bruno Haible  <bruno@clisp.org>
5235
5236         Avoid test failures on AIX and OSF/1.
5237         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
5238         that malloc(0) = NULL.
5239         * tests/unicase/test-u8-tolower.c (check): Likewise.
5240         * tests/unicase/test-u8-totitle.c (check): Likewise.
5241         * tests/unicase/test-u8-toupper.c (check): Likewise.
5242         * tests/unicase/test-u16-casefold.c (check): Likewise.
5243         * tests/unicase/test-u16-tolower.c (check): Likewise.
5244         * tests/unicase/test-u16-totitle.c (check): Likewise.
5245         * tests/unicase/test-u16-toupper.c (check): Likewise.
5246         * tests/unicase/test-u32-casefold.c (check): Likewise.
5247         * tests/unicase/test-u32-tolower.c (check): Likewise.
5248         * tests/unicase/test-u32-totitle.c (check): Likewise.
5249         * tests/unicase/test-u32-toupper.c (check): Likewise.
5250         * tests/uninorm/test-u8-nfc.c (check): Likewise.
5251         * tests/uninorm/test-u8-nfd.c (check): Likewise.
5252         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
5253         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
5254         * tests/uninorm/test-u16-nfc.c (check): Likewise.
5255         * tests/uninorm/test-u16-nfd.c (check): Likewise.
5256         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
5257         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
5258         * tests/uninorm/test-u32-nfc.c (check): Likewise.
5259         * tests/uninorm/test-u32-nfd.c (check): Likewise.
5260         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
5261         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
5262
5263 2009-04-05  Bruno Haible  <bruno@clisp.org>
5264
5265         Work around an autoconf limitation.
5266         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
5267         comment line if it would be longer than 3 KB.
5268
5269 2009-04-05  Bruno Haible  <bruno@clisp.org>
5270
5271         Avoid test failure with libiconv-1.13.
5272         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
5273         of the expected test results.
5274
5275 2009-04-05  Bruno Haible  <bruno@clisp.org>
5276
5277         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
5278         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
5279         that it should be installed.
5280
5281 2009-04-05  Bruno Haible  <bruno@clisp.org>
5282
5283         * gnulib-tool: New option --copy-file.
5284         (func_usage): Document it.
5285         (func_dest_tmpfilename): Moved out of func_import.
5286         (func_add_file, func_update_file): New functions, extracted from
5287         func_import.
5288         (func_import): Update.
5289
5290 2009-04-05  Karl Berry  <karl@gnu.org>
5291
5292         * README: prominently mention gnulib-tool.
5293         Rearrange sections so getting the code is near the top.
5294
5295 2009-04-05  Bruno Haible  <bruno@clisp.org>
5296
5297         * lib/unicase.h: Mention u*_cmp2.
5298         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
5299         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
5300         * lib/unicase/ulc-casecmp.c: Likewise.
5301         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
5302         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
5303         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
5304         unistr/u8-cmp.
5305         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
5306         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
5307         unistr/u16-cmp.
5308         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
5309         unistr/u32-cmp.
5310
5311         * lib/uninorm.h: Mention u*_cmp2.
5312         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
5313         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
5314         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
5315         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
5316         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
5317         unistr/u8-cmp.
5318         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
5319         unistr/u16-cmp.
5320         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
5321         unistr/u32-cmp.
5322
5323         New module 'unistr/u32-cmp2'.
5324         * lib/unistr/u32-cmp2.c: New file.
5325         * modules/unistr/u32-cmp2: New file.
5326
5327         New module 'unistr/u16-cmp2'.
5328         * lib/unistr/u16-cmp2.c: New file.
5329         * modules/unistr/u16-cmp2: New file.
5330
5331         New module 'unistr/u8-cmp2'.
5332         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
5333         * lib/unistr/u8-cmp2.c: New file.
5334         * lib/unistr/u-cmp2.h: New file.
5335         * modules/unistr/u8-cmp2: New file.
5336
5337 2009-04-05  Bruno Haible  <bruno@clisp.org>
5338
5339         * lib/unictype.h (uc_property_is_valid): New macro.
5340         * tests/unictype/test-pr_byname.c (main): Use it.
5341
5342         * lib/unistr.h: Doc fixes.
5343         * lib/uniconv.h: Doc fixes.
5344         * lib/unictype.h: Doc fixes.
5345
5346 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
5347
5348         Port coreutils 7.2 to Solaris 8.
5349
5350         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
5351         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
5352         for Solaris 8.  This is a bit of a hack, as it means it's the
5353         caller's responsibility to add -lnsl if needed, but most likely it
5354         won't be needed since only getaddrinfo uses this and getaddrinfo
5355         isn't needed on Solaris 8.
5356
5357         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
5358         problem to Solaris 8 encountered with coreutils 7.2, which
5359         resulted in a message "fnmatch.c:292: warning: passing argument 4
5360         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
5361         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
5362
5363 2009-04-03  Simon Josefsson  <simon@josefsson.org>
5364
5365         * m4/ld-version-script.m4: Add FIXME comment.
5366
5367 2009-04-02  Simon Josefsson  <simon@josefsson.org>
5368
5369         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
5370         SOVERSION variable.
5371
5372 2009-04-02  Bruno Haible  <bruno@clisp.org>
5373
5374         * Makefile (info, html, dvi, pdf): Combine the rules.
5375         Suggested by Jim Meyering.
5376
5377 2009-04-01  Bruno Haible  <bruno@clisp.org>
5378
5379         * Makefile (info, html, dvi, pdf): New targets.
5380         Reported by Reuben Thomas <rrt@sc3d.org>.
5381
5382 2009-04-01  Bruno Haible  <bruno@clisp.org>
5383
5384         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
5385         can be put into PATH.
5386         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
5387
5388 2009-04-01  Bruno Haible  <bruno@clisp.org>
5389
5390         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
5391
5392 2009-04-01  Bruno Haible  <bruno@clisp.org>
5393
5394         Rename module 'visibility'.
5395         * modules/lib-symbol-visibility: Renamed from modules/visibility.
5396         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
5397         * doc/gnulib.texi: Update.
5398         * MODULES.html.sh (Misc): Update.
5399         * NEWS: Mention the change.
5400
5401 2009-04-01  Simon Josefsson  <simon@josefsson.org>
5402
5403         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
5404         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
5405         Eric Blake <ebb9@byu.net> for review.
5406         * MODULES.html.sh: Add lib-msvc-compat.
5407         * doc/gnulib.texi: Link to new section.
5408         * m4/ld-output-def.m4: New file.
5409         * doc/ld-output-def.texi: New file.
5410
5411 2009-04-01  Simon Josefsson  <simon@josefsson.org>
5412
5413         Rename ld-version-script to lib-symbol-versions.  Suggested by
5414         Bruno Haible <bruno@clisp.org>.
5415         * modules/ld-version-script: Renamed to lib-symbol-versions.
5416         * doc/ld-version-script.texi: Fix module name.
5417         * MODULES.html.sh: Add lib-symbol-versions.
5418
5419 2009-03-31  Simon Josefsson  <simon@josefsson.org>
5420
5421         * modules/u64-tests: New file.
5422         * tests/test-u64.c: New file.
5423
5424 2009-03-04  Simon Josefsson  <simon@josefsson.org>
5425
5426         * MODULES.html.sh: Mention u64.
5427         * modules/u64: New module.
5428         * modules/crypto/sha512: Depend on u64 module instead of providing
5429         u64.h.
5430
5431 2009-03-27  Eric Blake  <ebb9@byu.net>
5432
5433         test-strerror: make debugging EAI_SYSTEM easier
5434         * modules/getaddrinfo-tests (Depends-on): Add strerror.
5435         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
5436         failure was EAI_SYSTEM.
5437
5438 2009-03-25  Bruno Haible  <bruno@clisp.org>
5439
5440         Fix a problem with --enable-relocatable on Solaris 7.
5441         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
5442         since 2008-02-24.
5443
5444 2009-03-25  Eric Blake  <ebb9@byu.net>
5445
5446         test-sockets: avoid gcc warning
5447         * tests/test-sockets.c (main): Silence compiler warning.
5448
5449 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
5450
5451         New modules nproc, pthread, contributed by Glen Lenker.
5452
5453         * MODULES.html.sh: Add pthread, nproc.
5454         * lib/nproc.c: New file.
5455         * lib/nproc.h: New file.
5456         * lib/pthread.in.h: New file.
5457         * m4/pthread.m4: New file.
5458         * modules/nproc: New file.
5459         * modules/pthread: New file.
5460
5461 2009-03-24  Simon Josefsson  <simon@josefsson.org>
5462
5463         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
5464         New variable.
5465
5466 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
5467
5468         filevercmp: handle simple~ and numbered.~3~ backup suffixes
5469         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
5470         * tests/test-filevercmp.c: Add tests for backup suffixes.
5471
5472 2009-03-24  Simon Josefsson  <simon@josefsson.org>
5473
5474         * modules/stdlib (Depends-on): Add stdint, needed when defining
5475         struct random_data on, for example, HP-UX 10.20.  Reported by
5476         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5477
5478 2009-03-24  Simon Josefsson  <simon@josefsson.org>
5479
5480         * lib/readline.c (readline): Call fflush on stdout after printing
5481         prompt.
5482
5483 2009-03-20  Bruno Haible  <bruno@clisp.org>
5484
5485         Remove dependency from 'close' module to -lws2_32 on native Windows.
5486         * lib/close-hook.h: New file.
5487         * lib/close-hook.c: New file.
5488         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
5489         w32sock.h.
5490         (_gl_close_fd_maybe_socket): Remove function.
5491         (rpl_close): Invoke execute_all_close_hooks instead of
5492         _gl_close_fd_maybe_socket.
5493         * lib/sockets.c: Include close-hook.h, w32sock.h.
5494         (close_fd_maybe_socket): New function, essentially from lib/close.c.
5495         (close_sockets_hook): New variable.
5496         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
5497         (gl_sockets_cleanup): Unregister it.
5498         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
5499         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
5500         * modules/close-hook: New file.
5501         * modules/close (Files): Remove lib/w32sock.h.
5502         (Depends-on): Add close-hook.
5503         (Link): Remove section.
5504         * modules/sockets (Files): Add lib/w32sock.h.
5505         (Depends-on): Add close-hook.
5506         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
5507         invocation.
5508         * NEWS: Mention that LIB_CLOSE is gone.
5509
5510 2009-03-23  Eric Blake  <ebb9@byu.net>
5511
5512         signal-tests: test previous patch
5513         * tests/test-signal.c: New file.
5514         * modules/signal-tests: Likewise.
5515
5516         signal.h: always support 'volatile sig_atomic_t'
5517         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
5518         (gl_SIGNAL_H_DEFAULTS): Add a default.
5519         * modules/signal (Makefile.am): Substitute if needed.
5520         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
5521         users can blindly add volatile.
5522         * doc/posix-headers/signal.texi (signal.h): Document it.
5523         Reported by Matthew Woehlke.
5524
5525 2009-03-23  Jim Meyering  <meyering@redhat.com>
5526
5527         pathmax: PATH_MAX: use pathconf only when available
5528         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
5529         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
5530         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
5531         This avoids a link failure in a PSP cross-compilation environment
5532         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
5533
5534         * lib/vasnprintf.c (divide): Fix typo in comment.
5535
5536 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5537
5538         * gnulib-tool (func_filter_filelist): Fix comment.
5539
5540 2009-03-20  Bruno Haible  <bruno@clisp.org>
5541
5542         Make sockets.h self-contained.
5543         * lib/sockets.c: Include sockets.h first.
5544         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
5545
5546 2009-03-19  Eric Blake  <ebb9@byu.net>
5547
5548         doc: mention more functions added in cygwin 1.7.0
5549         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
5550         addition.
5551         * doc/posix-functions/log2f.texi: Likewise.
5552
5553 2009-03-19  Jim Meyering  <meyering@redhat.com>
5554
5555         fsusage: avoid syntax error due to statement-before-declaration
5556         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
5557         after all declarations.  Reported by Matthew Woehlke in
5558         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
5559
5560 2009-03-18  Eric Blake  <ebb9@byu.net>
5561
5562         build-aux/compile: sync from automake
5563         * build-aux/compile: New file, from automake.
5564         * config/srclist.txt: Mention build-aux/compile.
5565
5566 2009-03-17  Bruno Haible  <bruno@clisp.org>
5567
5568         * lib/git-merge-changelog.c: Fix typo in comment.
5569         Reported by Reuben Thomas <rrt@sc3d.org>.
5570
5571 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
5572
5573         * m4/regex.m4: update and improve help for
5574         --without-included-regex.
5575
5576 2009-03-17  Simon Josefsson  <simon@josefsson.org>
5577
5578         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
5579         failure on missing include files.
5580
5581 2009-03-17  Eric Blake  <ebb9@byu.net>
5582
5583         doc: mention more functions added in cygwin 1.7.0
5584         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
5585         addition.
5586         * doc/posix-functions/fwscanf.texi: Likewise.
5587         * doc/posix-functions/swprintf.texi: Likewise.
5588         * doc/posix-functions/swscanf.texi: Likewise.
5589         * doc/posix-functions/vfwprintf.texi: Likewise.
5590         * doc/posix-functions/vfwscanf.texi: Likewise.
5591         * doc/posix-functions/vswprintf.texi: Likewise.
5592         * doc/posix-functions/vswscanf.texi: Likewise.
5593         * doc/posix-functions/vwprintf.texi: Likewise.
5594         * doc/posix-functions/vwscanf.texi: Likewise.
5595         * doc/posix-functions/wcscasecmp.texi: Likewise.
5596         * doc/posix-functions/wcsdup.texi: Likewise.
5597         * doc/posix-functions/wcsftime.texi: Likewise.
5598         * doc/posix-functions/wcsncasecmp.texi: Likewise.
5599         * doc/posix-functions/wprintf.texi: Likewise.
5600         * doc/posix-functions/wscanf.texi: Likewise.
5601         * doc/glibc-functions/gethostbyname2.texi: Likewise.
5602
5603 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5604
5605         maint.mk: really add $(AM_MAKEFLAGS)
5606         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
5607         was inadvertently omitted in the last commit.
5608         Spotted by Bruno Haible.
5609
5610         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
5611         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
5612         $(AM_MAKEFLAGS)' rather than plain `make'.
5613
5614         gnulib-tool: execute $MAKE not make
5615         * gnulib-tool: Default $MAKE to 'make'.
5616         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
5617         than make.  Initialize $MAKE in the do-autobuild script.
5618
5619         gnulib-tool: use $MAKE not make in generated files
5620         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
5621         make, in generated files.  Initialize $MAKE in the do-autobuild
5622         script.
5623
5624         * top/GNUmakefile (_have-git-version-gen): Fix typo.
5625
5626         GNUmakefile: disable parallelism only for multiple, recursive targets
5627         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
5628         additions in the Makefile.
5629         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
5630         by Automake.
5631         (.NOTPARALLEL): Only disable parallel builds if multiple targets
5632         are listed on the command line and at least one of them is
5633         listed in $(ALL_RECURSIVE_TARGETS).
5634
5635 2009-03-14  Bruno Haible  <bruno@clisp.org>
5636
5637         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
5638         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
5639         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
5640         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
5641         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
5642         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
5643         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
5644         unistr/u8-uctomb.
5645         * modules/unistr/u8-strchr (Depends-on): Likewise.
5646         * modules/unistr/u8-strrchr (Depends-on): Likewise.
5647         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
5648         unistr/u16-uctomb.
5649         * modules/unistr/u16-strchr (Depends-on): Likewise.
5650         * modules/unistr/u16-strrchr (Depends-on): Likewise.
5651
5652 2009-03-12  Bruno Haible  <bruno@clisp.org>
5653
5654         Work around select() bug on Interix 3.5.
5655         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
5656         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
5657         * m4/select.m4: New file.
5658         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
5659         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
5660         * modules/select (Files): Add m4/select.m4.
5661         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
5662         * modules/nanosleep (Depends-on): Add select.
5663         * modules/poll (Depends-on): Likewise.
5664         * doc/posix-functions/select.texi: Mention the Interix bug.
5665         Reported by Markus Duft <mduft@gentoo.org>.
5666
5667         * lib/select.c: Renamed from lib/winsock-select.c.
5668         * modules/select (Files): Add lib/select.c, remove
5669         lib/winsock-select.c.
5670         (configure.ac): Update.
5671
5672 2009-03-12  Jim Meyering  <meyering@redhat.com>
5673
5674         avoid gcc warnings about unused macro definitions
5675         * lib/readtokens.c (STREQ): Remove unused definition.
5676         * lib/xmalloc.c (SIZE_MAX): Likewise.
5677         * lib/openat-die.c (N_): Likewise.
5678         * lib/mountlist.c (SIZE_MAX): Remove definition.
5679         Instead, include <stdint.h>.
5680         * lib/readutmp.c: Likewise.
5681         * modules/readutmp (Depends-on): Add stdint.
5682         * modules/mountlist (Depends-on): Add stdint.
5683         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
5684
5685 2009-03-10  Bruno Haible  <bruno@clisp.org>
5686
5687         Tests for module 'mbmemcasecoll'.
5688         * modules/mbmemcasecoll-tests: New file.
5689         * tests/test-mbmemcasecoll1.sh: New file.
5690         * tests/test-mbmemcasecoll2.sh: New file.
5691         * tests/test-mbmemcasecoll3.sh: New file.
5692         * tests/test-mbmemcasecoll.c: New file.
5693
5694         New module 'mbmemcasecoll'.
5695         * lib/mbmemcasecoll.h: New file.
5696         * lib/mbmemcasecoll.c: New file.
5697         * modules/mbmemcasecoll: New file.
5698
5699         * tests/test-mbmemcasecmp.h: New file, extracted from
5700         tests/test-mbmemcasecmp.c.
5701         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
5702         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
5703         (main): Update.
5704         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
5705
5706 2009-03-09  Bruno Haible  <bruno@clisp.org>
5707
5708         Tests for module 'mbmemcasecmp'.
5709         * modules/mbmemcasecmp-tests: New file.
5710         * tests/test-mbmemcasecmp1.sh: New file.
5711         * tests/test-mbmemcasecmp2.sh: New file.
5712         * tests/test-mbmemcasecmp3.sh: New file.
5713         * tests/test-mbmemcasecmp.c: New file.
5714
5715         New module 'mbmemcasecmp'.
5716         * lib/mbmemcasecmp.h: New file.
5717         * lib/mbmemcasecmp.c: New file.
5718         * modules/mbmemcasecmp: New file.
5719
5720 2009-03-09  Bruno Haible  <bruno@clisp.org>
5721
5722         Tests for module 'unicase/ulc-casecoll'.
5723         * modules/unicase/ulc-casecoll-tests: New file.
5724         * tests/unicase/test-ulc-casecoll1.sh: New file.
5725         * tests/unicase/test-ulc-casecoll2.sh: New file.
5726         * tests/unicase/test-ulc-casecoll.c: New file.
5727
5728         New module 'unicase/ulc-casecoll'.
5729         * lib/unicase.h (ulc_casecoll): New declaration.
5730         * lib/unicase/ulc-casecoll.c: New file.
5731         * modules/unicase/ulc-casecoll: New file.
5732
5733         New module 'unicase/ulc-casexfrm'.
5734         * lib/unicase.h (ulc_casexfrm): New declaration.
5735         * lib/unicase/ulc-casexfrm.c: New file.
5736         * modules/unicase/ulc-casexfrm: New file.
5737
5738 2009-03-09  Bruno Haible  <bruno@clisp.org>
5739
5740         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
5741         invocations.
5742
5743         * m4/mbscasecmp.m4: Remove file.
5744         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
5745         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
5746
5747         * m4/mbscasestr.m4: Remove file.
5748         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
5749         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
5750
5751         * m4/mbschr.m4: Remove file.
5752         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
5753         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
5754
5755         * m4/mbscspn.m4: Remove file.
5756         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
5757         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
5758
5759         * m4/mbslen.m4: Remove file.
5760         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
5761         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
5762
5763         * m4/mbsncasecmp.m4: Remove file.
5764         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
5765         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
5766
5767         * m4/mbsnlen.m4: Remove file.
5768         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
5769         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
5770
5771         * m4/mbspbrk.m4: Remove file.
5772         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
5773         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
5774
5775         * m4/mbspcasecmp.m4: Remove file.
5776         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
5777         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
5778
5779         * m4/mbsrchr.m4: Remove file.
5780         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
5781         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
5782
5783         * m4/mbssep.m4: Remove file.
5784         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
5785         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
5786
5787         * m4/mbsspn.m4: Remove file.
5788         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
5789         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
5790
5791         * m4/mbsstr.m4: Remove file.
5792         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
5793         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
5794
5795         * m4/mbstok_r.m4: Remove file.
5796         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
5797         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
5798
5799         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
5800
5801         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
5802         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
5803
5804         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
5805
5806 2009-03-08  Bruno Haible  <bruno@clisp.org>
5807
5808         Tests for module 'unicase/ulc-casecmp'.
5809         * modules/unicase/ulc-casecmp-tests: New file.
5810         * tests/unicase/test-ulc-casecmp1.sh: New file.
5811         * tests/unicase/test-ulc-casecmp2.sh: New file.
5812         * tests/unicase/test-ulc-casecmp.c: New file.
5813
5814         New module 'unicase/ulc-casecmp'.
5815         * lib/unicase.h (ulc_casecmp): New declaration.
5816         * lib/unicase/ulc-casecmp.c: New file.
5817         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
5818         'const SRC_UNIT *'.
5819         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
5820         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
5821         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
5822         * modules/unicase/ulc-casecmp: New file.
5823
5824         Tests for module 'unicase/u32-is-cased'.
5825         * modules/unicase/u32-is-cased-tests: New file.
5826         * tests/unicase/test-u32-is-cased.c: New file.
5827
5828         Tests for module 'unicase/u16-is-cased'.
5829         * modules/unicase/u16-is-cased-tests: New file.
5830         * tests/unicase/test-u16-is-cased.c: New file.
5831
5832         Tests for module 'unicase/u8-is-cased'.
5833         * modules/unicase/u8-is-cased-tests: New file.
5834         * tests/unicase/test-u8-is-cased.c: New file.
5835         * tests/unicase/test-is-cased.h: New file.
5836
5837         New module 'unicase/u32-is-cased'.
5838         * lib/unicase/u32-is-cased.c: New file.
5839         * modules/unicase/u32-is-cased: New file.
5840
5841         New module 'unicase/u16-is-cased'.
5842         * lib/unicase/u16-is-cased.c: New file.
5843         * modules/unicase/u16-is-cased: New file.
5844
5845         New module 'unicase/u8-is-cased'.
5846         * lib/unicase/u8-is-cased.c: New file.
5847         * lib/unicase/u-is-cased.h: New file.
5848         * modules/unicase/u8-is-cased: New file.
5849
5850         Tests for module 'unicase/u32-is-casefolded'.
5851         * modules/unicase/u32-is-casefolded-tests: New file.
5852         * tests/unicase/test-u32-is-casefolded.c: New file.
5853
5854         Tests for module 'unicase/u16-is-casefolded'.
5855         * modules/unicase/u16-is-casefolded-tests: New file.
5856         * tests/unicase/test-u16-is-casefolded.c: New file.
5857
5858         Tests for module 'unicase/u8-is-casefolded'.
5859         * modules/unicase/u8-is-casefolded-tests: New file.
5860         * tests/unicase/test-u8-is-casefolded.c: New file.
5861         * tests/unicase/test-is-casefolded.h: New file.
5862
5863         New module 'unicase/u32-is-casefolded'.
5864         * lib/unicase/u32-is-casefolded.c: New file.
5865         * modules/unicase/u32-is-casefolded: New file.
5866
5867         New module 'unicase/u16-is-casefolded'.
5868         * lib/unicase/u16-is-casefolded.c: New file.
5869         * modules/unicase/u16-is-casefolded: New file.
5870
5871         New module 'unicase/u8-is-casefolded'.
5872         * lib/unicase/u8-is-casefolded.c: New file.
5873         * modules/unicase/u8-is-casefolded: New file.
5874
5875         Tests for module 'unicase/u32-is-titlecase'.
5876         * modules/unicase/u32-is-titlecase-tests: New file.
5877         * tests/unicase/test-u32-is-titlecase.c: New file.
5878
5879         Tests for module 'unicase/u16-is-titlecase'.
5880         * modules/unicase/u16-is-titlecase-tests: New file.
5881         * tests/unicase/test-u16-is-titlecase.c: New file.
5882
5883         Tests for module 'unicase/u8-is-titlecase'.
5884         * modules/unicase/u8-is-titlecase-tests: New file.
5885         * tests/unicase/test-u8-is-titlecase.c: New file.
5886         * tests/unicase/test-is-titlecase.h: New file.
5887
5888         New module 'unicase/u32-is-titlecase'.
5889         * lib/unicase/u32-is-titlecase.c: New file.
5890         * modules/unicase/u32-is-titlecase: New file.
5891
5892         New module 'unicase/u16-is-titlecase'.
5893         * lib/unicase/u16-is-titlecase.c: New file.
5894         * modules/unicase/u16-is-titlecase: New file.
5895
5896         New module 'unicase/u8-is-titlecase'.
5897         * lib/unicase/u8-is-titlecase.c: New file.
5898         * modules/unicase/u8-is-titlecase: New file.
5899
5900         Tests for module 'unicase/u32-is-lowercase'.
5901         * modules/unicase/u32-is-lowercase-tests: New file.
5902         * tests/unicase/test-u32-is-lowercase.c: New file.
5903
5904         Tests for module 'unicase/u16-is-lowercase'.
5905         * modules/unicase/u16-is-lowercase-tests: New file.
5906         * tests/unicase/test-u16-is-lowercase.c: New file.
5907
5908         Tests for module 'unicase/u8-is-lowercase'.
5909         * modules/unicase/u8-is-lowercase-tests: New file.
5910         * tests/unicase/test-u8-is-lowercase.c: New file.
5911         * tests/unicase/test-is-lowercase.h: New file.
5912
5913         New module 'unicase/u32-is-lowercase'.
5914         * lib/unicase/u32-is-lowercase.c: New file.
5915         * modules/unicase/u32-is-lowercase: New file.
5916
5917         New module 'unicase/u16-is-lowercase'.
5918         * lib/unicase/u16-is-lowercase.c: New file.
5919         * modules/unicase/u16-is-lowercase: New file.
5920
5921         New module 'unicase/u8-is-lowercase'.
5922         * lib/unicase/u8-is-lowercase.c: New file.
5923         * modules/unicase/u8-is-lowercase: New file.
5924
5925         Tests for module 'unicase/u32-is-uppercase'.
5926         * modules/unicase/u32-is-uppercase-tests: New file.
5927         * tests/unicase/test-u32-is-uppercase.c: New file.
5928
5929         Tests for module 'unicase/u16-is-uppercase'.
5930         * modules/unicase/u16-is-uppercase-tests: New file.
5931         * tests/unicase/test-u16-is-uppercase.c: New file.
5932
5933         Tests for module 'unicase/u8-is-uppercase'.
5934         * modules/unicase/u8-is-uppercase-tests: New file.
5935         * tests/unicase/test-u8-is-uppercase.c: New file.
5936         * tests/unicase/test-is-uppercase.h: New file.
5937
5938         New module 'unicase/u32-is-uppercase'.
5939         * lib/unicase/u32-is-uppercase.c: New file.
5940         * modules/unicase/u32-is-uppercase: New file.
5941
5942         New module 'unicase/u16-is-uppercase'.
5943         * lib/unicase/u16-is-uppercase.c: New file.
5944         * modules/unicase/u16-is-uppercase: New file.
5945
5946         New module 'unicase/u8-is-uppercase'.
5947         * lib/unicase/u8-is-uppercase.c: New file.
5948         * modules/unicase/u8-is-uppercase: New file.
5949
5950         New module 'unicase/u32-is-invariant'.
5951         * lib/unicase/u32-is-invariant.c: New file.
5952         * modules/unicase/u32-is-invariant: New file.
5953
5954         New module 'unicase/u16-is-invariant'.
5955         * lib/unicase/u16-is-invariant.c: New file.
5956         * modules/unicase/u16-is-invariant: New file.
5957
5958         New module 'unicase/u8-is-invariant'.
5959         * lib/unicase/u8-is-invariant.c: New file.
5960         * lib/unicase/invariant.h: New file.
5961         * lib/unicase/u-is-invariant.h: New file.
5962         * modules/unicase/u8-is-invariant: New file.
5963
5964         Tests for module 'unicase/u32-casecoll'.
5965         * modules/unicase/u32-casecoll-tests: New file.
5966         * tests/unicase/test-u32-casecoll.c: New file.
5967
5968         Tests for module 'unicase/u16-casecoll'.
5969         * modules/unicase/u16-casecoll-tests: New file.
5970         * tests/unicase/test-u16-casecoll.c: New file.
5971
5972         Tests for module 'unicase/u8-casecoll'.
5973         * modules/unicase/u8-casecoll-tests: New file.
5974         * tests/unicase/test-u8-casecoll.c: New file.
5975
5976         New module 'unicase/u32-casecoll'.
5977         * lib/unicase/u32-casecoll.c: New file.
5978         * modules/unicase/u32-casecoll: New file.
5979
5980         New module 'unicase/u16-casecoll'.
5981         * lib/unicase/u16-casecoll.c: New file.
5982         * modules/unicase/u16-casecoll: New file.
5983
5984         New module 'unicase/u8-casecoll'.
5985         * lib/unicase/u8-casecoll.c: New file.
5986         * lib/unicase/u-casecoll.h: New file.
5987         * modules/unicase/u8-casecoll: New file.
5988
5989         New module 'unicase/u32-casexfrm'.
5990         * lib/unicase/u32-casexfrm.c: New file.
5991         * modules/unicase/u32-casexfrm: New file.
5992
5993         New module 'unicase/u16-casexfrm'.
5994         * lib/unicase/u16-casexfrm.c: New file.
5995         * modules/unicase/u16-casexfrm: New file.
5996
5997         New module 'unicase/u8-casexfrm'.
5998         * lib/unicase/u8-casexfrm.c: New file.
5999         * lib/unicase/u-casexfrm.h: New file.
6000         * modules/unicase/u8-casexfrm: New file.
6001
6002         Tests for module 'unicase/u32-casecmp'.
6003         * modules/unicase/u32-casecmp-tests: New file.
6004         * tests/unicase/test-u32-casecmp.c: New file.
6005
6006         Tests for module 'unicase/u16-casecmp'.
6007         * modules/unicase/u16-casecmp-tests: New file.
6008         * tests/unicase/test-u16-casecmp.c: New file.
6009
6010         Tests for module 'unicase/u8-casecmp'.
6011         * modules/unicase/u8-casecmp-tests: New file.
6012         * tests/unicase/test-u8-casecmp.c: New file.
6013         * tests/unicase/test-casecmp.h: New file.
6014
6015         New module 'unicase/u32-casecmp'.
6016         * lib/unicase/u32-casecmp.c: New file.
6017         * modules/unicase/u32-casecmp: New file.
6018
6019         New module 'unicase/u16-casecmp'.
6020         * lib/unicase/u16-casecmp.c: New file.
6021         * modules/unicase/u16-casecmp: New file.
6022
6023         New module 'unicase/u8-casecmp'.
6024         * lib/unicase/u8-casecmp.c: New file.
6025         * lib/unicase/u-casecmp.h: New file.
6026         * modules/unicase/u8-casecmp: New file.
6027
6028         Tests for module 'unicase/u32-casefold'.
6029         * modules/unicase/u32-casefold-tests: New file.
6030         * tests/unicase/test-u32-casefold.c: New file.
6031
6032         Tests for module 'unicase/u16-casefold'.
6033         * modules/unicase/u16-casefold-tests: New file.
6034         * tests/unicase/test-u16-casefold.c: New file.
6035
6036         Tests for module 'unicase/u8-casefold'.
6037         * modules/unicase/u8-casefold-tests: New file.
6038         * tests/unicase/test-u8-casefold.c: New file.
6039
6040         New module 'unicase/u32-casefold'.
6041         * lib/unicase/u32-casefold.c: New file.
6042         * modules/unicase/u32-casefold: New file.
6043
6044         New module 'unicase/u16-casefold'.
6045         * lib/unicase/u16-casefold.c: New file.
6046         * modules/unicase/u16-casefold: New file.
6047
6048         New module 'unicase/u8-casefold'.
6049         * lib/unicase/u8-casefold.c: New file.
6050         * lib/unicase/u-casefold.h: New file.
6051         * modules/unicase/u8-casefold: New file.
6052
6053         New module 'unicase/tocasefold'.
6054         * lib/unicase/casefold.h: New file.
6055         * lib/unicase/tocasefold.c: New file.
6056         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
6057         * modules/unicase/tocasefold: New file.
6058
6059         Tests for module 'unicase/u32-totitle'.
6060         * modules/unicase/u32-totitle-tests: New file.
6061         * tests/unicase/test-u32-totitle.c: New file.
6062
6063         Tests for module 'unicase/u16-totitle'.
6064         * modules/unicase/u16-totitle-tests: New file.
6065         * tests/unicase/test-u16-totitle.c: New file.
6066
6067         Tests for module 'unicase/u8-totitle'.
6068         * modules/unicase/u8-totitle-tests: New file.
6069         * tests/unicase/test-u8-totitle.c: New file.
6070
6071         New module 'unicase/u32-totitle'.
6072         * lib/unicase/u32-totitle.c: New file.
6073         * modules/unicase/u32-totitle: New file.
6074
6075         New module 'unicase/u16-totitle'.
6076         * lib/unicase/u16-totitle.c: New file.
6077         * modules/unicase/u16-totitle: New file.
6078
6079         New module 'unicase/u8-totitle'.
6080         * lib/unicase/u8-totitle.c: New file.
6081         * lib/unicase/u-totitle.h: New file.
6082         * modules/unicase/u8-totitle: New file.
6083
6084         Tests for module 'unicase/u32-tolower'.
6085         * modules/unicase/u32-tolower-tests: New file.
6086         * tests/unicase/test-u32-tolower.c: New file.
6087
6088         Tests for module 'unicase/u16-tolower'.
6089         * modules/unicase/u16-tolower-tests: New file.
6090         * tests/unicase/test-u16-tolower.c: New file.
6091
6092         Tests for module 'unicase/u8-tolower'.
6093         * modules/unicase/u8-tolower-tests: New file.
6094         * tests/unicase/test-u8-tolower.c: New file.
6095
6096         New module 'unicase/u32-tolower'.
6097         * lib/unicase/u32-tolower.c: New file.
6098         * modules/unicase/u32-tolower: New file.
6099
6100         New module 'unicase/u16-tolower'.
6101         * lib/unicase/u16-tolower.c: New file.
6102         * modules/unicase/u16-tolower: New file.
6103
6104         New module 'unicase/u8-tolower'.
6105         * lib/unicase/u8-tolower.c: New file.
6106         * modules/unicase/u8-tolower: New file.
6107
6108         Tests for module 'unicase/u32-toupper'.
6109         * modules/unicase/u32-toupper-tests: New file.
6110         * tests/unicase/test-u32-toupper.c: New file.
6111
6112         Tests for module 'unicase/u16-toupper'.
6113         * modules/unicase/u16-toupper-tests: New file.
6114         * tests/unicase/test-u16-toupper.c: New file.
6115
6116         Tests for module 'unicase/u8-toupper'.
6117         * modules/unicase/u8-toupper-tests: New file.
6118         * tests/unicase/test-u8-toupper.c: New file.
6119
6120         New module 'unicase/u32-toupper'.
6121         * lib/unicase/u32-toupper.c: New file.
6122         * modules/unicase/u32-toupper: New file.
6123
6124         New module 'unicase/u16-toupper'.
6125         * lib/unicase/u16-toupper.c: New file.
6126         * modules/unicase/u16-toupper: New file.
6127
6128         New module 'unicase/u8-toupper'.
6129         * lib/unicase/u8-toupper.c: New file.
6130         * modules/unicase/u8-toupper: New file.
6131
6132         New module 'unicase/u32-casemap'.
6133         * lib/unicase/u32-casemap.c: New file.
6134         * modules/unicase/u32-casemap: New file.
6135
6136         New module 'unicase/u16-casemap'.
6137         * lib/unicase/u16-casemap.c: New file.
6138         * modules/unicase/u16-casemap: New file.
6139
6140         New module 'unicase/u8-casemap'.
6141         * lib/unicase/unicasemap.h: New file.
6142         * lib/unicase/u8-casemap.c: New file.
6143         * lib/unicase/u-casemap.h: New file.
6144         * modules/unicase/u8-casemap: New file.
6145
6146         New module 'unicase/special-casing'.
6147         * lib/unicase/special-casing.h: New file.
6148         * lib/unicase/special-casing.c: New file.
6149         * lib/unicase/special-casing-table.gperf: New file, generated by
6150         gen-uni-tables.c.
6151         * modules/unicase/special-casing: New file.
6152
6153         Tests for module 'unicase/locale-language'.
6154         * modules/unicase/locale-language-tests: New file.
6155         * tests/unicase/test-locale-language.sh: New file.
6156         * tests/unicase/test-locale-language.c: New file.
6157
6158         New module 'unicase/locale-language'.
6159         * lib/unicase/locale-language.c: New file.
6160         * lib/unicase/locale-languages.gperf: New file.
6161         * modules/unicase/locale-language: New file.
6162
6163         Generate more tables for case conversion and case folding.
6164         * lib/gen-uni-tables.c (SCC_*): New enum items.
6165         (struct special_casing_rule): New type.
6166         (casing_rules, num_casing_rules, allocated_casing_rules): New
6167         variables.
6168         (add_casing_rule, fill_casing_rules): New functions.
6169         (struct casefold_rule): New type.
6170         (casefolding_rules, num_casefolding_rules,
6171         allocated_casefolding_rules): New variables.
6172         (fill_casefolding_rules): New function.
6173         (unicode_casefold): New variable.
6174         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
6175         sort_casing_rules, output_casing_rules): New functions.
6176         (main): Accept to more arguments: SpecialCasing.txt and
6177         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
6178         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
6179         Output mapping for casefolding.
6180
6181         * lib/unicase.h: Include stdbool.h, uninorm.h.
6182         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
6183         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
6184         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
6185         arguments.
6186         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
6187         resultp arguments.
6188         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
6189         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
6190         resultp arguments.
6191         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
6192         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
6193         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
6194         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
6195         declarations.
6196         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
6197
6198 2009-03-08  Bruno Haible  <bruno@clisp.org>
6199
6200         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
6201         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
6202         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
6203         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
6204
6205 2009-03-07  Bruno Haible  <bruno@clisp.org>
6206
6207         Adjust u*_normcmp, u*_normcoll API.
6208         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
6209         u16_normcoll, u32_normcoll): Change failure conventions.
6210         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
6211         errno and return -1.
6212         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
6213
6214 2009-03-07  Bruno Haible  <bruno@clisp.org>
6215
6216         Tests for module 'uninorm/u32-normcoll'.
6217         * modules/uninorm/u32-normcoll-tests: New file.
6218         * tests/uninorm/test-u32-normcoll.c: New file.
6219
6220         Tests for module 'uninorm/u16-normcoll'.
6221         * modules/uninorm/u16-normcoll-tests: New file.
6222         * tests/uninorm/test-u16-normcoll.c: New file.
6223
6224         Tests for module 'uninorm/u8-normcoll'.
6225         * modules/uninorm/u8-normcoll-tests: New file.
6226         * tests/uninorm/test-u8-normcoll.c: New file.
6227
6228 2009-03-07  Bruno Haible  <bruno@clisp.org>
6229
6230         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
6231         tests/uninorm/test-u32-normcmp.c.
6232         * tests/uninorm/test-u32-normcmp.c: Include it.
6233         (test_nonascii): New function, extracted from main. Add some more
6234         tests.
6235         (main): Invoke test_ascii and test_nonascii.
6236         * modules/uninorm/u32-normcmp-tests (Files): Add
6237         tests/uninorm/test-u32-normcmp.h.
6238         (Depends-on): Remove uninorm/u32-normcmp.
6239
6240         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
6241         tests/uninorm/test-u16-normcmp.c.
6242         * tests/uninorm/test-u16-normcmp.c: Include it.
6243         (test_nonascii): New function, extracted from main. Add some more
6244         tests.
6245         (main): Invoke test_ascii and test_nonascii.
6246         * modules/uninorm/u16-normcmp-tests (Files): Add
6247         tests/uninorm/test-u16-normcmp.h.
6248         (Depends-on): Remove uninorm/u16-normcmp.
6249
6250         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
6251         tests/uninorm/test-u8-normcmp.c.
6252         * tests/uninorm/test-u8-normcmp.c: Include it.
6253         (test_nonascii): New function, extracted from main. Add some more
6254         tests.
6255         (main): Invoke test_ascii and test_nonascii.
6256         * modules/uninorm/u8-normcmp-tests (Files): Add
6257         tests/uninorm/test-u8-normcmp.h.
6258         (Depends-on): Remove uninorm/u8-normcmp.
6259
6260 2009-03-07  Bruno Haible  <bruno@clisp.org>
6261
6262         New module 'uninorm/u32-normcoll'.
6263         * lib/uninorm/u32-normcoll.c: New file.
6264         * modules/uninorm/u32-normcoll: New file.
6265
6266         New module 'uninorm/u16-normcoll'.
6267         * lib/uninorm/u16-normcoll.c: New file.
6268         * modules/uninorm/u16-normcoll: New file.
6269
6270         New module 'uninorm/u8-normcoll'.
6271         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
6272         declarations.
6273         * lib/uninorm/u8-normcoll.c: New file.
6274         * lib/uninorm/u-normcoll.h: New file.
6275         * modules/uninorm/u8-normcoll: New file.
6276
6277         New module 'uninorm/u32-normxfrm'.
6278         * lib/uninorm/u32-normxfrm.c: New file.
6279         * modules/uninorm/u32-normxfrm: New file.
6280
6281         New module 'uninorm/u16-normxfrm'.
6282         * lib/uninorm/u16-normxfrm.c: New file.
6283         * modules/uninorm/u16-normxfrm: New file.
6284
6285         New module 'uninorm/u8-normxfrm'.
6286         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
6287         declarations.
6288         * lib/uninorm/u8-normxfrm.c: New file.
6289         * lib/uninorm/u-normxfrm.h: New file.
6290         * modules/uninorm/u8-normxfrm: New file.
6291
6292 2009-03-07  Bruno Haible  <bruno@clisp.org>
6293
6294         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
6295         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
6296         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
6297
6298 2009-03-07  Bruno Haible  <bruno@clisp.org>
6299
6300         New module 'memxfrm'.
6301         * lib/memxfrm.h: New file.
6302         * lib/memxfrm.c: New file.
6303         * modules/memxfrm: New file.
6304
6305 2009-03-07  Bruno Haible  <bruno@clisp.org>
6306
6307         New module 'memcmp2'.
6308         * lib/memcmp2.h: New file.
6309         * lib/memcmp2.c: New file.
6310         * modules/memcmp2: New file.
6311
6312 2009-03-07  Bruno Haible  <bruno@clisp.org>
6313
6314         Tests for module 'uninorm/decomposing-form'.
6315         * modules/uninorm/decomposing-form-tests: New file.
6316         * tests/uninorm/test-decomposing-form.c: New file.
6317
6318         New module 'uninorm/decomposing-form'.
6319         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
6320         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
6321         Add 'decomposing_variant' field.
6322         * lib/uninorm/decomposing-form.c: New file.
6323         * lib/uninorm/nfc.c (uninorm_nfc): Update.
6324         * lib/uninorm/nfd.c (uninorm_nfd): Update.
6325         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
6326         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
6327         * modules/uninorm/decomposing-form: New file.
6328         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
6329         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
6330
6331 2009-03-07  Bruno Haible  <bruno@clisp.org>
6332
6333         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
6334         strings.
6335
6336 2009-03-06  Bruno Haible  <bruno@clisp.org>
6337
6338         Tests for module 'uninorm/u32-normcmp'.
6339         * tests/uninorm/test-u32-normcmp.c: New file.
6340         * modules/uninorm/u32-normcmp-tests: New file.
6341
6342         Tests for module 'uninorm/u16-normcmp'.
6343         * tests/uninorm/test-u16-normcmp.c: New file.
6344         * modules/uninorm/u16-normcmp-tests: New file.
6345
6346         Tests for module 'uninorm/u8-normcmp'.
6347         * tests/uninorm/test-u8-normcmp.c: New file.
6348         * modules/uninorm/u8-normcmp-tests: New file.
6349
6350         New module 'uninorm/u32-normcmp'.
6351         * lib/uninorm/u32-normcmp.c: New file.
6352         * modules/uninorm/u32-normcmp: New file.
6353
6354         New module 'uninorm/u16-normcmp'.
6355         * lib/uninorm/u16-normcmp.c: New file.
6356         * modules/uninorm/u16-normcmp: New file.
6357
6358         New module 'uninorm/u8-normcmp'.
6359         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
6360         declarations.
6361         * lib/uninorm/u8-normcmp.c: New file.
6362         * lib/uninorm/u-normcmp.h: New file.
6363         * modules/uninorm/u8-normcmp: New file.
6364
6365 2009-03-06  Bruno Haible  <bruno@clisp.org>
6366
6367         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
6368         Reported by Eric Blake.
6369
6370 2009-03-06  Eric Blake  <ebb9@byu.net>
6371             Bruno Haible  <bruno@clisp.org>
6372
6373         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
6374         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
6375         condition.
6376         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
6377         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
6378         condition.
6379         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
6380
6381 2009-03-06  Eric Blake  <ebb9@byu.net>
6382
6383         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
6384         to avoid compiler warnings.
6385         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
6386
6387 2009-03-05  Bruno Haible  <bruno@clisp.org>
6388
6389         * tests/test-ftell.c (main): Disable test beyond end of file on
6390         FreeMiNT.
6391         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
6392
6393 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
6394
6395         * lib/filevercmp.c: Move hidden files up in ordering.
6396         * tests/test-filevercmp.c: Add tests for hidden files.
6397
6398 2009-03-04  Bruno Haible  <bruno@clisp.org>
6399
6400         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
6401         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
6402         AM_CFLAGS.
6403         Reported by Simon Josefsson.
6404
6405 2009-03-03  Bruno Haible  <bruno@clisp.org>
6406
6407         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
6408         Reported by Simon Josefsson.
6409
6410         * doc/ld-version-script.texi: Update node reference.
6411
6412 2009-03-03  Bruno Haible  <bruno@clisp.org>
6413
6414         * modules/visibility (License): Change to 'unlimited'.
6415         Suggested by Simon Josefsson.
6416
6417 2009-03-03  Jim Meyering  <meyering@redhat.com>
6418
6419         unlinkdir: cannot_unlink_dir may modify process state
6420         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
6421         it's neither thread-safe nor appropriate for use in a library.
6422
6423 2009-03-03  Eric Blake  <ebb9@byu.net>
6424
6425         test-closein: silence test under Darwin
6426         * tests/test-closein.sh: Ignore stderr from cat, since we don't
6427         care if it dies from EPIPE or EBADF.
6428
6429 2009-03-03  Bruno Haible  <bruno@clisp.org>
6430
6431         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
6432         earlier.
6433         * doc/visibility.texi: Fix @node and @section.
6434
6435 2009-03-03  Simon Josefsson  <simon@josefsson.org>
6436
6437         * doc/gnulib.texi: Link to sections for ld version script and
6438         visibility.
6439         * doc/visibility.texi: Add @node and @section.
6440         * modules/ld-version-script: New module.
6441         * m4/ld-version-script.m4: New file.
6442         * doc/ld-version-script.texi: New file.
6443
6444 2009-03-02  David Lutterkort  <lutter@redhat.com>
6445
6446         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
6447         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6448
6449 2009-03-02  Bruno Haible  <bruno@clisp.org>
6450
6451         * doc/visibility.texi: Mention libtool's -export-symbols option.
6452
6453 2009-03-02  Jim Meyering  <meyering@redhat.com>
6454
6455         announce-gen: new option: --no-print-checksums
6456         * build-aux/announce-gen (usage): Describe it.
6457         (print_checksums): Print a newline here, not in the [*] footnote.
6458         (main): Honor it.
6459
6460 2009-03-01  Bruno Haible  <bruno@clisp.org>
6461
6462         Use socklen_t in the native Windows replacements prototypes.
6463         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
6464         instead of 'int'.
6465         * lib/getsockopt.c (rpl_getsockopt): Likewise.
6466         * lib/setsockopt.c (rpl_setsockopt): Likewise.
6467         * modules/getsockopt (Depends-on): Add socklen.
6468         * modules/setsockopt (Depends-on): Add socklen.
6469
6470 2009-03-01  Bruno Haible  <bruno@clisp.org>
6471
6472         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
6473         least 4.2.
6474
6475 2009-03-01  Eric Blake  <ebb9@byu.net>
6476             Bruno Haible  <bruno@clisp.org>
6477
6478         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
6479         error messages.
6480         * lib/wait-process.c (wait_subprocess): Omit error message about
6481         deadly signal sent to the child of termsigp != NULL.
6482
6483 2009-03-01  Eric Blake  <ebb9@byu.net>
6484
6485         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
6486
6487 2009-03-01  Bruno Haible  <bruno@clisp.org>
6488
6489         Avoid a gcc warning.
6490         * tests/test-sched.c (b): Make global.
6491         Reported by Eric Blake.
6492
6493 2009-01-19  Martin Lambers  <marlam@marlam.de>
6494
6495         Provide POSIX semantics for socket timeout options on W32.
6496         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
6497         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
6498         * modules/setsockopt: Depend on sys_time module for struct timeval.
6499         * modules/getsockopt: Depend on sys_time module for struct timeval.
6500
6501 2009-03-01  Simon Josefsson  <simon@josefsson.org>
6502
6503         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
6504         __USE_GNU, for consistency with netdb.in.h.
6505         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
6506
6507 2009-03-01  Bruno Haible  <bruno@clisp.org>
6508
6509         More support for FreeMiNT.
6510         * lib/fseeko.c (rpl_fseeko): Complete last commit.
6511         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
6512
6513 2009-03-01  Bruno Haible  <bruno@clisp.org>
6514
6515         More support for FreeMiNT.
6516         * lib/fpurge.c (fpurge): Correct last commit.
6517         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
6518
6519 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6520
6521         Fix unportable awk script in vc-list-files.
6522         * build-aux/vc-list-files: In the replacement awk script, use
6523         substr with a second argument of 1, not zero.
6524         Report by Simon Josefsson.
6525
6526 2009-02-28  Bruno Haible  <bruno@clisp.org>
6527
6528         More support for FreeMiNT.
6529         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
6530         to FreeMiNT today.
6531         * lib/fwriting.c (fwriting): Likewise.
6532         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
6533
6534 2009-02-28  Bruno Haible  <bruno@clisp.org>
6535
6536         * tests/test-freadseek.c (main): Disable test beyond end of file on
6537         FreeMiNT.
6538         * tests/test-ftello.c (main): Likewise.
6539         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
6540
6541 2009-02-28  Bruno Haible  <bruno@clisp.org>
6542
6543         Add tentative support for FreeMiNT.
6544         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
6545         * lib/fpurge.c (fpurge): Likewise.
6546         * lib/freadable.c (freadable): Likewise.
6547         * lib/freading.c (freading): Likewise.
6548         * lib/freadptr.c (freadptr): Likewise.
6549         * lib/freadseek.c (freadptrinc): Likewise.
6550         * lib/fseeko.c (rpl_fseeko): Likewise.
6551         * lib/fseterr.c (fseterr): Likewise.
6552         * lib/fwritable.c (fwritable): Likewise.
6553         * lib/fwriting.c (fwriting): Likewise.
6554         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
6555         Hourihane.
6556         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
6557
6558 2009-02-28  Bruno Haible  <bruno@clisp.org>
6559
6560         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
6561         SIGCHLD.
6562         Reported by Jim Meyering.
6563
6564 2009-02-28  Bruno Haible  <bruno@clisp.org>
6565
6566         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
6567         Mention the results of these tests on various platforms.
6568         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
6569         order.
6570         * doc/posix-functions/printf.texi: Likewise.
6571         * doc/posix-functions/snprintf.texi: Likewise.
6572         * doc/posix-functions/sprintf.texi: Likewise.
6573         * doc/posix-functions/vfprintf.texi: Likewise.
6574         * doc/posix-functions/vprintf.texi: Likewise.
6575         * doc/posix-functions/vsnprintf.texi: Likewise.
6576         * doc/posix-functions/vsprintf.texi: Likewise.
6577         * doc/glibc-functions/obstack_printf.texi: Likewise.
6578         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6579
6580 2009-02-28  Bruno Haible  <bruno@clisp.org>
6581
6582         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
6583         Reported by Loïc Minier <lool@dooz.org>.
6584
6585 2009-02-27  Bruno Haible  <bruno@clisp.org>
6586
6587         * gnulib-tool (func_import): Make the sed expression used to create the
6588         sed script for updating the .gitignore file POSIX compliant.
6589         Reported by Eric Blake.
6590
6591 2009-02-27  Bruno Haible  <bruno@clisp.org>
6592
6593         * gnulib-tool (sed): Don't alias as "sed --posix".
6594         Reported by Eric Blake.
6595
6596 2009-02-27  Bruno Haible  <bruno@clisp.org>
6597
6598         Avoid test link errors.
6599         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
6600         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
6601         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
6602         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
6603         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6604
6605 2009-02-27  Bruno Haible  <bruno@clisp.org>
6606
6607         Avoid spurious "(cached)" in configure output.
6608         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
6609         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
6610         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
6611         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
6612         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
6613         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
6614         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
6615         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
6616         Reported by Eric Blake.
6617
6618 2009-02-27  Eric Blake  <ebb9@byu.net>
6619
6620         printf: fix regression in previous patch
6621         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
6622
6623 2009-02-27  Bruno Haible  <bruno@clisp.org>
6624
6625         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
6626         value.
6627         * lib/stdint.in.h: Likewise.
6628         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
6629
6630 2009-02-27  Eric Blake  <ebb9@byu.net>
6631
6632         doc: mention more functions added in cygwin 1.7.0
6633         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
6634         addition.
6635         * doc/posix-functions/open_wmemstream.texi: Likewise.
6636         * doc/posix-functions/wcsnlen.texi: Likewise.
6637         * doc/posix-functions/wcsnrtombs.texi: Likewise.
6638         * doc/posix-functions/wcstod.texi: Likewise.
6639         * doc/posix-functions/wcstof.texi: Likewise.
6640         * doc/posix-functions/wcstoimax.texi: Likewise.
6641         * doc/posix-functions/wcstok.texi: Likewise.
6642         * doc/posix-functions/wcstoumax.texi: Likewise.
6643
6644         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
6645         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
6646         * doc/posix-functions/fprintf.texi: Update.
6647         * doc/posix-functions/printf.texi: Update.
6648         * doc/posix-functions/snprintf.texi: Update.
6649         * doc/posix-functions/sprintf.texi: Update.
6650         * doc/posix-functions/vfprintf.texi: Update.
6651         * doc/posix-functions/vprintf.texi: Update.
6652         * doc/posix-functions/vsnprintf.texi: Update.
6653         * doc/posix-functions/vsprintf.texi: Update.
6654         * doc/glibc-functions/obstack_printf.texi: Update.
6655         * doc/glibc-functions/obstack_vprintf.texi: Update.
6656
6657 2009-02-26  Eric Blake  <ebb9@byu.net>
6658
6659         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
6660         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
6661         compilation bug by using runtime conversion.
6662         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6663         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
6664         * modules/ceill-tests (Files): Use nan.h.
6665         * modules/floorl-tests (Files): Likewise.
6666         * modules/frexpl-tests (Files): Likewise.
6667         * modules/isnanl-tests (Files): Likewise.
6668         * modules/ldexpl-tests (Files): Likewise.
6669         * modules/roundl-tests (Files): Likewise.
6670         * modules/truncl-tests (Files): Likewise.
6671         * tests/test-ceill.c (main): Use a working NaN.
6672         * tests/test-floorl.c (main): Likewise.
6673         * tests/test-frexpl.c (main): Likewise.
6674         * tests/test-isnan.c (test_long_double): Likewise.
6675         * tests/test-isnanl.h (main): Likewise.
6676         * tests/test-ldexpl.h (main): Likewise.
6677         * tests/test-roundl.h (main): Likewise.
6678         * tests/test-truncl.h (main): Likewise.
6679         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
6680
6681 2009-02-26  Eric Blake  <ebb9@byu.net>
6682             Bruno Haible  <bruno@clisp.org>
6683
6684         Work around a *printf bug with %ls on Solaris.
6685         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
6686         precision is specified, sprintf stops converting the wide string
6687         argument when the number of bytes that have been produced by this
6688         conversion equals or exceeds the precision.
6689         * doc/posix-functions/fprintf.texi: Update.
6690         * doc/posix-functions/printf.texi: Update.
6691         * doc/posix-functions/snprintf.texi: Update.
6692         * doc/posix-functions/sprintf.texi: Update.
6693         * doc/posix-functions/vfprintf.texi: Update.
6694         * doc/posix-functions/vprintf.texi: Update.
6695         * doc/posix-functions/vsnprintf.texi: Update.
6696         * doc/posix-functions/vsprintf.texi: Update.
6697         * doc/glibc-functions/obstack_printf.texi: Update.
6698         * doc/glibc-functions/obstack_vprintf.texi: Update.
6699
6700 2009-02-26  Eric Blake  <ebb9@byu.net>
6701
6702         stdlib: favor compiler check of random.h
6703         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
6704         to avoid an ObjC random.h installed by Swarm.
6705
6706 2009-02-26  Bruno Haible  <bruno@clisp.org>
6707
6708         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
6709         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
6710         Reported by Gary V. Vaughan <gary@gnu.org>.
6711
6712 2009-02-26  Bruno Haible  <bruno@clisp.org>
6713
6714         Fix *printf behaviour regarding the %ls directive.
6715         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
6716         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
6717         NEED_PRINTF_DIRECTIVE_LS.
6718         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
6719         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
6720         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6721         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
6722         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
6723         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
6724         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
6725         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6726         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6727         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6728         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6729         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
6730         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6731         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6732         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6733         * doc/posix-functions/fprintf.texi: Update.
6734         * doc/posix-functions/printf.texi: Update.
6735         * doc/posix-functions/snprintf.texi: Update.
6736         * doc/posix-functions/sprintf.texi: Update.
6737         * doc/posix-functions/vfprintf.texi: Update.
6738         * doc/posix-functions/vprintf.texi: Update.
6739         * doc/posix-functions/vsnprintf.texi: Update.
6740         * doc/posix-functions/vsprintf.texi: Update.
6741         * doc/glibc-functions/obstack_printf.texi: Update.
6742         * doc/glibc-functions/obstack_vprintf.texi: Update.
6743         Reported by Eric Blake.
6744
6745 2009-02-25  Bruno Haible  <bruno@clisp.org>
6746
6747         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
6748         with known value.
6749         Reported by Gary V. Vaughan <gary@gnu.org>.
6750
6751 2009-02-25  Bruno Haible  <bruno@clisp.org>
6752
6753         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
6754         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
6755         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
6756         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
6757         Reported by Gary V. Vaughan <gary@gnu.org>.
6758
6759 2009-02-25  Bruno Haible  <bruno@clisp.org>
6760
6761         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
6762         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
6763         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
6764         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
6765         Reported by Gary V. Vaughan <gary@gnu.org>.
6766
6767 2009-02-25  Eric Blake  <ebb9@byu.net>
6768
6769         tests: skip fseek/ftell tests if ungetc is broken
6770         * m4/ungetc.m4: New file.
6771         * modules/fseek-tests: Split test, so ungetc dependency is
6772         separate from rest of test.
6773         * modules/fseeko-tests: Likewise.
6774         * modules/ftell-tests: Likewise.
6775         * modules/ftello-tests: Likewise.
6776         * tests/test-fseek.c (main): Isolate ungetc dependency.
6777         * tests/test-fseeko.c (main): Likewise.
6778         * tests/test-ftell.c (main): Likewise.
6779         * tests/test-ftello.c (main): Likewise.
6780         * tests/test-fseek2.sh: New file.
6781         * tests/test-fseeko2.sh: Likewise.
6782         * tests/test-ftell2.sh: Likewise.
6783         * tests/test-ftello2.sh: Likewise.
6784
6785 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
6786
6787         test-getaddrinfo: fix usage of skip return code 77
6788         * tests/test-gettaddrinfo.c: Return skip code 77 only
6789         for first occurance of skip (4x77 is not 77)
6790
6791 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
6792
6793         strtod: avoid C99 decl-after-statement
6794         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
6795
6796 2009-02-24  Eric Blake  <ebb9@byu.net>
6797
6798         strtod: detect HP-UX 11.31 bug
6799         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
6800         Reported by Gary V. Vaughan.
6801
6802 2009-02-23  Bruno Haible  <bruno@clisp.org>
6803
6804         Fix invalid read past end of memory block.
6805         * lib/vasnprintf.c (DCHAR_SET): Define.
6806         (local_wcslen): Define only when needed.
6807         (local_strnlen, local_wcsnlen): New functions.
6808         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
6809         directives that involve a conversion ourselves.
6810         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
6811         wcsnlen, mbrtowc, wcrtomb.
6812         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
6813         * tests/test-vasprintf-posix.c (test_function): Likewise.
6814         * tests/test-snprintf-posix.h (test_function): Likewise.
6815         * tests/test-sprintf-posix.h (test_function): Likewise.
6816         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6817
6818 2009-02-22  Bruno Haible  <bruno@clisp.org>
6819
6820         Implement new clarified decomposition of Hangul syllables.
6821         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
6822         of type LTV, return only a pairwise decomposition.
6823         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
6824         Likewise.
6825         * tests/uninorm/test-decomposition.c (main): Updated expected result.
6826         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
6827         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
6828
6829 2009-02-22  Bruno Haible  <bruno@clisp.org>
6830
6831         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
6832         zero-length results and shrink excess allocated memory.
6833         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
6834         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
6835         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
6836         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
6837         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
6838         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
6839         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
6840         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
6841         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
6842         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
6843         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
6844         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
6845
6846 2009-02-21  Bruno Haible  <bruno@clisp.org>
6847
6848         * doc/gnulib.texi: Include safe-alloc.texi earlier.
6849         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
6850         spaces after a period. Put a space between a macro name and its
6851         argument list. Trivial rewordings.
6852         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
6853         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
6854         (main): Return 0 explicitly.
6855
6856 2009-02-21  Bruno Haible  <bruno@clisp.org>
6857
6858         Tests for module 'uninorm/filter'.
6859         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
6860         * modules/uninorm/filter-tests: New file.
6861
6862         New module 'uninorm/filter'.
6863         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
6864         uninorm_filter_flush, uninorm_filter_free): New declarations.
6865         * lib/uninorm/uninorm-filter.c: New file.
6866         * modules/uninorm/filter: New file.
6867
6868 2009-02-21  Bruno Haible  <bruno@clisp.org>
6869
6870         Tests for module 'uninorm/nfkc'.
6871         * tests/uninorm/test-nfkc.c: New file.
6872         * tests/uninorm/test-u8-nfkc.c: New file.
6873         * tests/uninorm/test-u16-nfkc.c: New file.
6874         * tests/uninorm/test-u32-nfkc.c: New file.
6875         * tests/uninorm/test-u32-nfkc-big.sh: New file.
6876         * tests/uninorm/test-u32-nfkc-big.c: New file.
6877         * modules/uninorm/nfkc-tests: New file.
6878
6879         New module 'uninorm/nfkc'.
6880         * lib/uninorm/nfkc.c: New file.
6881         * modules/uninorm/nfkc: New file.
6882
6883         Tests for module 'uninorm/nfkd'.
6884         * tests/uninorm/test-nfkd.c: New file.
6885         * tests/uninorm/test-u8-nfkd.c: New file.
6886         * tests/uninorm/test-u16-nfkd.c: New file.
6887         * tests/uninorm/test-u32-nfkd.c: New file.
6888         * tests/uninorm/test-u32-nfkd-big.sh: New file.
6889         * tests/uninorm/test-u32-nfkd-big.c: New file.
6890         * modules/uninorm/nfkd-tests: New file.
6891
6892         New module 'uninorm/nfkd'.
6893         * lib/uninorm/nfkd.c: New file.
6894         * modules/uninorm/nfkd: New file.
6895
6896         Tests for module 'uninorm/nfc'.
6897         * tests/uninorm/test-nfc.c: New file.
6898         * tests/uninorm/test-u8-nfc.c: New file.
6899         * tests/uninorm/test-u16-nfc.c: New file.
6900         * tests/uninorm/test-u32-nfc.c: New file.
6901         * tests/uninorm/test-u32-nfc-big.sh: New file.
6902         * tests/uninorm/test-u32-nfc-big.c: New file.
6903         * modules/uninorm/nfc-tests: New file.
6904
6905         New module 'uninorm/nfc'.
6906         * lib/uninorm/nfc.c: New file.
6907         * modules/uninorm/nfc: New file.
6908
6909         Tests for module 'uninorm/nfd'.
6910         * tests/uninorm/test-nfd.c: New file.
6911         * tests/uninorm/test-u8-nfd.c: New file.
6912         * tests/uninorm/test-u16-nfd.c: New file.
6913         * tests/uninorm/test-u32-nfd.c: New file.
6914         * tests/uninorm/test-u32-nfd-big.sh: New file.
6915         * tests/uninorm/test-u32-nfd-big.c: New file.
6916         * tests/uninorm/test-u32-normalize-big.h: New file.
6917         * tests/uninorm/test-u32-normalize-big.c: New file.
6918         * tests/uninorm/NormalizationTest.txt: New file, created from
6919         Unicode 5.1.0 NormalizationTest.txt.
6920         * modules/uninorm/nfd-tests: New file.
6921
6922         New module 'uninorm/nfd'.
6923         * lib/uninorm/nfd.c: New file.
6924         * modules/uninorm/nfd: New file.
6925
6926         New module 'uninorm/u32-normalize'.
6927         * lib/uninorm/u32-normalize.c: New file.
6928         * modules/uninorm/u32-normalize: New file.
6929
6930         New module 'uninorm/u16-normalize'.
6931         * lib/uninorm/u16-normalize.c: New file.
6932         * modules/uninorm/u16-normalize: New file.
6933
6934         New module 'uninorm/u8-normalize'.
6935         * lib/uninorm/u8-normalize.c: New file.
6936         * lib/uninorm/normalize-internal.h: New file.
6937         * lib/uninorm/u-normalize-internal.h: New file.
6938         * modules/uninorm/u8-normalize: New file.
6939
6940         New module 'uninorm/decompose-internal'.
6941         * lib/uninorm/decompose-internal.c: New file.
6942         * modules/uninorm/decompose-internal: New file.
6943
6944         Tests for module 'uninorm/composition'.
6945         * tests/uninorm/test-composition.c: New file.
6946         * modules/uninorm/composition-tests: New file.
6947
6948         New module 'uninorm/composition'.
6949         * lib/uninorm/composition.c: New file.
6950         * lib/uninorm/composition-table.gperf: New file, generated by
6951         gen-uni-tables.
6952         * modules/uninorm/composition: New file.
6953
6954         Tests for module 'uninorm/compat-decomposition'.
6955         * tests/uninorm/test-compat-decomposition.c: New file.
6956         * modules/uninorm/compat-decomposition-tests: New file.
6957
6958         New module 'uninorm/compat-decomposition'.
6959         * lib/uninorm/decompose-internal.h: New file.
6960         * lib/uninorm/compat-decomposition.c: New file.
6961         * modules/uninorm/compat-decomposition: New file.
6962
6963         Tests for module 'uninorm/canonical-decomposition'.
6964         * tests/uninorm/test-canonical-decomposition.c: New file.
6965         * modules/uninorm/canonical-decomposition-tests: New file.
6966
6967         New module 'uninorm/canonical-decomposition'.
6968         * lib/uninorm/canonical-decomposition.c: New file.
6969         * modules/uninorm/canonical-decomposition: New file.
6970
6971         Tests for module 'uninorm/decomposition'.
6972         * tests/uninorm/test-decomposition.c: New file.
6973         * modules/uninorm/decomposition-tests: New file.
6974
6975         New module 'uninorm/decomposition'.
6976         * lib/uninorm/decomposition.c: New file.
6977         * modules/uninorm/decomposition: New file.
6978
6979         New module 'uninorm/decomposition-table'.
6980         * lib/uninorm/decomposition-table.h: New file.
6981         * lib/uninorm/decomposition-table.c: New file.
6982         * lib/uninorm/decomposition-table1.h: New file, generated by
6983         gen-uni-tables.
6984         * lib/uninorm/decomposition-table2.h: New file, generated by
6985         gen-uni-tables.
6986         * modules/uninorm/decomposition-table: New file.
6987
6988         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
6989         (UC_DECOMP_*): New enumeration items.
6990         (get_decomposition): New function.
6991         (struct decomp_table): New type.
6992         (output_decomposition, output_decomposition_tables): New functions.
6993         (unicode_composition_exclusions): New variable.
6994         (fill_composition_exclusions, debug_output_composition_tables): New
6995         functions.
6996         (main): Accept one more argument. Invoke fill_composition_exclusions.
6997         Output decomposition and composition tables.
6998
6999         New module 'uninorm/base'.
7000         * lib/uninorm.h: New file.
7001         * lib/unictype.h: Update comment.
7002         * modules/uninorm/base: New file.
7003
7004 2009-02-21  David Lutterkort  <lutter@redhat.com>
7005
7006         Tests for module 'safe-alloc'.
7007         * tests/test-safe-alloc.c: New file.
7008         * modules/safe-alloc-tests: New file.
7009
7010         New module 'safe-alloc'.
7011         * lib/safe-alloc.h: New file.
7012         * lib/safe-alloc.c: New file.
7013         * m4/safe-alloc.m4: New file.
7014         * modules/safe-alloc: New file.
7015         * doc/safe-alloc.texi: New file.
7016         * doc/gnulib.texi: Include it.
7017         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
7018         safe-alloc.
7019
7020 2009-02-18  Bruno Haible  <bruno@clisp.org>
7021
7022         Fix link error on non-glibc systems.
7023         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
7024         variable.
7025         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7026
7027 2009-02-18  Jim Meyering  <meyering@redhat.com>
7028
7029         fts: avoid used-uninitialized error due to recent change
7030         * lib/fts.c (fts_read): Guard uses of the new member,
7031         parent->fts_n_dirs_remaining, since it's not relevant for
7032         the parent of a directory specified on the command-line.
7033
7034 2009-02-17  James Youngman  <jay@gnu.org>
7035             Bruno Haible  <bruno@clisp.org>
7036
7037         * m4/include_next.m4: Reformulate comment.
7038
7039 2009-02-16  Jim Meyering  <meyering@redhat.com>
7040
7041         fts: add #if guards so that the fts_lgpl module still builds
7042         * lib/fts.c: Guard just-added hash-table-using parts with
7043         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
7044         Reported by Simon Josefsson.
7045
7046 2009-02-15  Bruno Haible  <bruno@clisp.org>
7047
7048         * modules/array-mergesort-tests: New file.
7049         * tests/test-array-mergesort.c: New file.
7050
7051         New module 'array-mergesort'.
7052         * modules/array-mergesort: New file.
7053         * lib/array-mergesort.h: New file.
7054
7055 2009-02-15  Bruno Haible  <bruno@clisp.org>
7056
7057         Fix 2009-02-07 commit.
7058         * lib/gen-uni-tables.c (output_predicate, output_category,
7059         output_combclass, output_bidi_category, output_decimal_digit,
7060         output_digit, output_numeric, output_mirror, output_scripts,
7061         output_ident_category, output_simple_mapping): Fix format directives.
7062         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
7063
7064 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
7065
7066         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
7067         fixes are available from IBM.
7068
7069 2009-02-13  Jim Meyering  <meyering@redhat.com>
7070
7071         fts: arrange not to stat non-directories in more cases
7072         This makes GNU find (when it doesn't need to stat each file)
7073         *much* more efficient at traversing reiserfs file systems.
7074         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
7075         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
7076         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
7077         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
7078         (leaf_optimization_applies): New function.
7079         (LCO_hash, LCO_compare): New helper functions.
7080         (link_count_optimize_ok): New function.
7081         (fts_stat): Initialize new member (if dir).
7082         (fts_read): Decrement parent's fts_n_dirs_remaining count if
7083         we've just stat'ed a directory.  Skip the stat call when possible.
7084         ---
7085         Note this AFS-related exchange:
7086         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
7087         and note find's pioctl call in find/fstype.c.
7088         But that is necessary only if you want to enable the
7089         optimization for AFS, and for now, I don't.
7090
7091         fts: move a function definition "up" (no semantic change)
7092         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
7093         "up" to precede upcoming use of a related function.
7094
7095 2009-02-11  Jim Meyering  <meyering@redhat.com>
7096
7097         fts: correct internal computation of nlinks (optimization-related)
7098         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
7099         whether the current entry is a directory, so don't test it.
7100
7101 2009-02-10  Bruno Haible  <bruno@clisp.org>
7102
7103         Tests for module 'uniwbrk/ulc-wordbreaks'.
7104         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
7105         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
7106         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
7107
7108         Tests for module 'uniwbrk/u32-wordbreaks'.
7109         * modules/uniwbrk/u32-wordbreaks-tests: New file.
7110         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
7111
7112         Tests for module 'uniwbrk/u16-wordbreaks'.
7113         * modules/uniwbrk/u16-wordbreaks-tests: New file.
7114         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
7115
7116         Tests for module 'uniwbrk/u8-wordbreaks'.
7117         * modules/uniwbrk/u8-wordbreaks-tests: New file.
7118         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
7119
7120 2009-02-10  Bruno Haible  <bruno@clisp.org>
7121
7122         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
7123         property.
7124         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
7125         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
7126         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
7127
7128 2009-02-10  Simon Josefsson  <simon@josefsson.org>
7129
7130         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
7131         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
7132
7133 2009-02-10  Bruno Haible  <bruno@clisp.org>
7134
7135         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
7136         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
7137         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
7138         * lib/unilbrk/u8-possible-linebreaks.c: Update.
7139         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
7140         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
7141
7142 2009-02-09  Simon Josefsson  <simon@josefsson.org>
7143
7144         * lib/sockets.h (gl_fd_to_handle): New function.
7145
7146         * tests/test-sockets.c: Call gl_fd_to_handle.
7147
7148 2009-02-09  Bruno Haible  <bruno@clisp.org>
7149
7150         * doc/havelib.texi: Document the conventions on bi-arch systems.
7151
7152 2009-02-08  Bruno Haible  <bruno@clisp.org>
7153
7154         Document the AC_LIB_LINKFLAGS macro.
7155         * doc/havelib.texi: New file, mostly written on 2005-05-24.
7156         * doc/gnulib.texi: Include it.
7157
7158 2009-02-08  Bruno Haible  <bruno@clisp.org>
7159
7160         Fix wrong order of sections, compared to TOC.
7161         * doc/gnulib.texi: Include relocatable-maint.texi after the
7162         "Regular expressions" node, not before.
7163
7164 2009-02-08  Bruno Haible  <bruno@clisp.org>
7165
7166         Tests for module 'unicase/totitle'.
7167         * modules/unicase/totitle-tests: New file.
7168
7169         Tests for module 'unicase/tolower'.
7170         * modules/unicase/tolower-tests: New file.
7171
7172         Tests for module 'unicase/toupper'.
7173         * modules/unicase/toupper-tests: New file.
7174         * tests/unicase/test-mapping-part1.h: New file.
7175         * tests/unicase/test-mapping-part2.h: New file.
7176
7177         New module 'unicase/totitle'.
7178         * modules/unicase/totitle: New file.
7179         * lib/unicase/totitle.c: New file.
7180
7181         New module 'unicase/tolower'.
7182         * modules/unicase/tolower: New file.
7183         * lib/unicase/tolower.c: New file.
7184
7185         New module 'unicase/toupper'.
7186         * modules/unicase/toupper: New file.
7187         * lib/unicase/toupper.c: New file.
7188         * lib/unicase/simple-mapping.h: New file.
7189
7190         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
7191         (mapping_table): New structure.
7192         (output_simple_mapping): New function.
7193         (main): Invoke output_simple_mapping_test and output_simple_mapping.
7194         * modules/gen-uni-tables (Description): Update.
7195         * lib/unicase/toupper.h: New file, automatically generated by
7196         gen-uni-tables.
7197         * lib/unicase/tolower.h: New file, automatically generated by
7198         gen-uni-tables.
7199         * lib/unicase/totitle.h: New file, automatically generated by
7200         gen-uni-tables.
7201         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
7202         gen-uni-tables.
7203         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
7204         gen-uni-tables.
7205         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
7206         gen-uni-tables.
7207
7208         New module 'unicase/base'.
7209         * modules/unicase/base: New file.
7210         * lib/unicase.h: New file.
7211
7212 2009-02-08  Bruno Haible  <bruno@clisp.org>
7213
7214         New module 'uniwbrk/ulc-wordbreaks'.
7215         * modules/uniwbrk/ulc-wordbreaks: New file.
7216         * lib/uniwbrk/ulc-wordbreaks.c: New file.
7217
7218         New module 'uniwbrk/u32-wordbreaks'.
7219         * modules/uniwbrk/u32-wordbreaks: New file.
7220         * lib/uniwbrk/u32-wordbreaks.c: New file.
7221
7222         New module 'uniwbrk/u16-wordbreaks'.
7223         * modules/uniwbrk/u16-wordbreaks: New file.
7224         * lib/uniwbrk/u16-wordbreaks.c: New file.
7225
7226         New module 'uniwbrk/u8-wordbreaks'.
7227         * modules/uniwbrk/u8-wordbreaks: New file.
7228         * lib/uniwbrk/u8-wordbreaks.c: New file.
7229         * lib/uniwbrk/u-wordbreaks.h: New file.
7230
7231         New module 'uniwbrk/table'.
7232         * modules/uniwbrk/table: New file.
7233         * lib/uniwbrk/wbrktable.h: New file.
7234         * lib/uniwbrk/wbrktable.c: New file.
7235
7236         New module 'uniwbrk/wordbreak-property'.
7237         * modules/uniwbrk/wordbreak-property: New file.
7238         * lib/uniwbrk/wordbreak-property.c: New file.
7239
7240         * lib/gen-uni-tables.c (WBP_*): New enum items.
7241         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
7242         (unicode_org_wbp): New variable.
7243         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
7244         New functions.
7245         (wbp_table): New structure.
7246         (output_wbp, output_wbrk_tables): New functions.
7247         (main): Accept additional argument. Invoke fill_org_wbp,
7248         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
7249         output_wbrk_tables.
7250         * modules/gen-uni-tables (Description): Update.
7251         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
7252         gen-uni-tables.
7253
7254         New module 'uniwbrk/base'.
7255         * modules/uniwbrk/base: New file.
7256         * lib/uniwbrk.h: New file.
7257
7258 2009-02-08  Bruno Haible  <bruno@clisp.org>
7259
7260         Update to Unicode 5.1.0.
7261         * lib/gen-uni-tables.c (is_property_alphabetic): Include
7262         U+2185..U+2188.
7263         (is_property_default_ignorable_code_point): Don't include characters
7264         of category Cc or Cs and not-a-characters.
7265         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
7266         U+0D79, U+109E, U+109F, U+A60C.
7267         * lib/unictype/bidi_of.h: Regenerated.
7268         * lib/unictype/blocks.h: Regenerated.
7269         * lib/unictype/categ_C.h: Regenerated.
7270         * lib/unictype/categ_Cf.h: Regenerated.
7271         * lib/unictype/categ_Cn.h: Regenerated.
7272         * lib/unictype/categ_L.h: Regenerated.
7273         * lib/unictype/categ_Ll.h: Regenerated.
7274         * lib/unictype/categ_Lm.h: Regenerated.
7275         * lib/unictype/categ_Lo.h: Regenerated.
7276         * lib/unictype/categ_Lu.h: Regenerated.
7277         * lib/unictype/categ_M.h: Regenerated.
7278         * lib/unictype/categ_Mc.h: Regenerated.
7279         * lib/unictype/categ_Me.h: Regenerated.
7280         * lib/unictype/categ_Mn.h: Regenerated.
7281         * lib/unictype/categ_N.h: Regenerated.
7282         * lib/unictype/categ_Nd.h: Regenerated.
7283         * lib/unictype/categ_Nl.h: Regenerated.
7284         * lib/unictype/categ_No.h: Regenerated.
7285         * lib/unictype/categ_P.h: Regenerated.
7286         * lib/unictype/categ_Pd.h: Regenerated.
7287         * lib/unictype/categ_Pe.h: Regenerated.
7288         * lib/unictype/categ_Pf.h: Regenerated.
7289         * lib/unictype/categ_Pi.h: Regenerated.
7290         * lib/unictype/categ_Po.h: Regenerated.
7291         * lib/unictype/categ_Ps.h: Regenerated.
7292         * lib/unictype/categ_S.h: Regenerated.
7293         * lib/unictype/categ_Sk.h: Regenerated.
7294         * lib/unictype/categ_Sm.h: Regenerated.
7295         * lib/unictype/categ_So.h: Regenerated.
7296         * lib/unictype/categ_of.h: Regenerated.
7297         * lib/unictype/combining.h: Regenerated.
7298         * lib/unictype/ctype_alnum.h: Regenerated.
7299         * lib/unictype/ctype_alpha.h: Regenerated.
7300         * lib/unictype/ctype_graph.h: Regenerated.
7301         * lib/unictype/ctype_lower.h: Regenerated.
7302         * lib/unictype/ctype_print.h: Regenerated.
7303         * lib/unictype/ctype_punct.h: Regenerated.
7304         * lib/unictype/ctype_upper.h: Regenerated.
7305         * lib/unictype/decdigit.h: Regenerated.
7306         * lib/unictype/digit.h: Regenerated.
7307         * lib/unictype/mirror.h: Regenerated.
7308         * lib/unictype/numeric.h: Regenerated.
7309         * lib/unictype/pr_alphabetic.h: Regenerated.
7310         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
7311         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
7312         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
7313         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
7314         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
7315         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
7316         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
7317         * lib/unictype/pr_combining.h: Regenerated.
7318         * lib/unictype/pr_dash.h: Regenerated.
7319         * lib/unictype/pr_decimal_digit.h: Regenerated.
7320         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
7321         * lib/unictype/pr_deprecated.h: Regenerated.
7322         * lib/unictype/pr_diacritic.h: Regenerated.
7323         * lib/unictype/pr_extender.h: Regenerated.
7324         * lib/unictype/pr_format_control.h: Regenerated.
7325         * lib/unictype/pr_grapheme_base.h: Regenerated.
7326         * lib/unictype/pr_grapheme_extend.h: Regenerated.
7327         * lib/unictype/pr_grapheme_link.h: Regenerated.
7328         * lib/unictype/pr_id_continue.h: Regenerated.
7329         * lib/unictype/pr_id_start.h: Regenerated.
7330         * lib/unictype/pr_ideographic.h: Regenerated.
7331         * lib/unictype/pr_ignorable_control.h: Regenerated.
7332         * lib/unictype/pr_lowercase.h: Regenerated.
7333         * lib/unictype/pr_math.h: Regenerated.
7334         * lib/unictype/pr_numeric.h: Regenerated.
7335         * lib/unictype/pr_other_alphabetic.h: Regenerated.
7336         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
7337         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
7338         * lib/unictype/pr_other_id_continue.h: Regenerated.
7339         * lib/unictype/pr_other_lowercase.h: Regenerated.
7340         * lib/unictype/pr_other_math.h: Regenerated.
7341         * lib/unictype/pr_punctuation.h: Regenerated.
7342         * lib/unictype/pr_sentence_terminal.h: Regenerated.
7343         * lib/unictype/pr_soft_dotted.h: Regenerated.
7344         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
7345         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
7346         * lib/unictype/pr_unified_ideograph.h: Regenerated.
7347         * lib/unictype/pr_uppercase.h: Regenerated.
7348         * lib/unictype/pr_xid_continue.h: Regenerated.
7349         * lib/unictype/pr_xid_start.h: Regenerated.
7350         * lib/unictype/pr_zero_width.h: Regenerated.
7351         * lib/unictype/scripts.h: Regenerated.
7352         * lib/unictype/scripts_byname.gperf: Regenerated.
7353         * lib/unictype/sy_java_ident.h: Regenerated.
7354         * lib/unilbrk/lbrkprop1.h: Regenerated.
7355         * lib/unilbrk/lbrkprop2.h: Regenerated.
7356         * tests/unictype/test-categ_C.c: Regenerated.
7357         * tests/unictype/test-categ_Cf.c: Regenerated.
7358         * tests/unictype/test-categ_Cn.c: Regenerated.
7359         * tests/unictype/test-categ_L.c: Regenerated.
7360         * tests/unictype/test-categ_Ll.c: Regenerated.
7361         * tests/unictype/test-categ_Lm.c: Regenerated.
7362         * tests/unictype/test-categ_Lo.c: Regenerated.
7363         * tests/unictype/test-categ_Lu.c: Regenerated.
7364         * tests/unictype/test-categ_M.c: Regenerated.
7365         * tests/unictype/test-categ_Mc.c: Regenerated.
7366         * tests/unictype/test-categ_Me.c: Regenerated.
7367         * tests/unictype/test-categ_Mn.c: Regenerated.
7368         * tests/unictype/test-categ_N.c: Regenerated.
7369         * tests/unictype/test-categ_Nd.c: Regenerated.
7370         * tests/unictype/test-categ_Nl.c: Regenerated.
7371         * tests/unictype/test-categ_No.c: Regenerated.
7372         * tests/unictype/test-categ_P.c: Regenerated.
7373         * tests/unictype/test-categ_Pd.c: Regenerated.
7374         * tests/unictype/test-categ_Pe.c: Regenerated.
7375         * tests/unictype/test-categ_Pf.c: Regenerated.
7376         * tests/unictype/test-categ_Pi.c: Regenerated.
7377         * tests/unictype/test-categ_Po.c: Regenerated.
7378         * tests/unictype/test-categ_Ps.c: Regenerated.
7379         * tests/unictype/test-categ_S.c: Regenerated.
7380         * tests/unictype/test-categ_Sk.c: Regenerated.
7381         * tests/unictype/test-categ_Sm.c: Regenerated.
7382         * tests/unictype/test-categ_So.c: Regenerated.
7383         * tests/unictype/test-ctype_alnum.c: Regenerated.
7384         * tests/unictype/test-ctype_alpha.c: Regenerated.
7385         * tests/unictype/test-ctype_graph.c: Regenerated.
7386         * tests/unictype/test-ctype_lower.c: Regenerated.
7387         * tests/unictype/test-ctype_print.c: Regenerated.
7388         * tests/unictype/test-ctype_punct.c: Regenerated.
7389         * tests/unictype/test-ctype_upper.c: Regenerated.
7390         * tests/unictype/test-decdigit.h: Regenerated.
7391         * tests/unictype/test-digit.h: Regenerated.
7392         * tests/unictype/test-numeric.h: Regenerated.
7393         * tests/unictype/test-pr_alphabetic.c: Regenerated.
7394         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
7395         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
7396         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
7397         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
7398         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
7399         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
7400         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
7401         * tests/unictype/test-pr_combining.c: Regenerated.
7402         * tests/unictype/test-pr_dash.c: Regenerated.
7403         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
7404         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
7405         * tests/unictype/test-pr_deprecated.c: Regenerated.
7406         * tests/unictype/test-pr_diacritic.c: Regenerated.
7407         * tests/unictype/test-pr_extender.c: Regenerated.
7408         * tests/unictype/test-pr_format_control.c: Regenerated.
7409         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
7410         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
7411         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
7412         * tests/unictype/test-pr_id_continue.c: Regenerated.
7413         * tests/unictype/test-pr_id_start.c: Regenerated.
7414         * tests/unictype/test-pr_ideographic.c: Regenerated.
7415         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
7416         * tests/unictype/test-pr_lowercase.c: Regenerated.
7417         * tests/unictype/test-pr_math.c: Regenerated.
7418         * tests/unictype/test-pr_numeric.c: Regenerated.
7419         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
7420         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
7421         Regenerated.
7422         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
7423         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
7424         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
7425         * tests/unictype/test-pr_other_math.c: Regenerated.
7426         * tests/unictype/test-pr_punctuation.c: Regenerated.
7427         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
7428         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
7429         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
7430         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
7431         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
7432         * tests/unictype/test-pr_uppercase.c: Regenerated.
7433         * tests/unictype/test-pr_xid_continue.c: Regenerated.
7434         * tests/unictype/test-pr_xid_start.c: Regenerated.
7435         * tests/unictype/test-pr_zero_width.c: Regenerated.
7436
7437         Update to Unicode 5.1.0.
7438         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
7439         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
7440         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
7441         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
7442         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
7443         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
7444         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
7445         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
7446         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
7447         (nonspacing_table_ind): Update.
7448         * tests/uniwidth/test-uc_width2.sh: Update expected result.
7449
7450         Update to Unicode 5.1.0.
7451         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
7452         code transform.
7453         * lib/uniname/uniname.c (unicode_character_name,
7454         unicode_name_character): Add the range 0x1Fxxx to the code transform.
7455         * lib/uniname/uninames.h: Regenerated.
7456         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
7457
7458 2009-02-07  Bruno Haible  <bruno@clisp.org>
7459
7460         Merge gen-ctype and gen-lbrk into a single program.
7461         * lib/gen-uni-tables.c: New file, incorporating
7462         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
7463         Add directory prefixes to the names of the generated files.
7464         * lib/unictype/gen-ctype.c: Remove file.
7465         * lib/unilbrk/gen-lbrk.c: Remove file.
7466         * modules/gen-uni-tables: New file.
7467         * modules/unictype/gen-ctype: Remove file.
7468         * modules/unilbrk/gen-lbrk: Remove file.
7469
7470 2009-02-07  Bruno Haible  <bruno@clisp.org>
7471
7472         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
7473
7474         New module 'unistr/u32-strcoll'.
7475         * modules/unistr/u32-strcoll: New file.
7476         * lib/unistr/u32-strcoll.c: New file.
7477
7478         New module 'unistr/u16-strcoll'.
7479         * modules/unistr/u16-strcoll: New file.
7480         * lib/unistr/u16-strcoll.c: New file.
7481
7482         New module 'unistr/u8-strcoll'.
7483         * modules/unistr/u8-strcoll: New file.
7484         * lib/unistr/u8-strcoll.c: New file.
7485         * lib/unistr/u-strcoll.h: New file.
7486
7487 2009-02-07  Bruno Haible  <bruno@clisp.org>
7488
7489         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
7490         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
7491         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
7492         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
7493         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
7494         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
7495
7496 2009-02-07  Bruno Haible  <bruno@clisp.org>
7497
7498         Make 64-bit clean.
7499         * lib/unictype/gen-ctype.c (output_predicate, output_category,
7500         output_combclass, output_bidi_category, output_decimal_digit,
7501         output_digit, output_numeric, output_mirror, output_scripts,
7502         output_ident_category): Use proper width specifier in format strings.
7503
7504 2009-02-07  Bruno Haible  <bruno@clisp.org>
7505
7506         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
7507         failure behaviour.
7508
7509 2009-02-07  Jim Meyering  <meyering@redhat.com>
7510
7511         regex: avoid compilation failure with upcoming gcc-4.4
7512         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
7513         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
7514         "... error: integer overflow in preprocessor expression".
7515
7516 2009-02-05  Ben Pfaff  <blp@gnu.org>
7517
7518         Fix link errors on Windows when close module is used.
7519         * modules/close: Add $(LIB_CLOSE) to Link section.
7520         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
7521         $(LIB_CLOSE) on Windows.
7522
7523 2009-02-05  Jim Meyering  <meyering@redhat.com>
7524
7525         still avoid unused-parameter warnings, but do it cleanly
7526         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
7527         (get_fs_usage): Cast to void instead.
7528         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
7529         (dev_from_mount_options, read_file_system_list): Cast to void.
7530         Prompted by Bruno Haible.
7531
7532 2009-02-04  Jim Meyering  <meyering@redhat.com>
7533
7534         fsusage.c: correct copyright year
7535         * lib/fsusage.c: Reflect year in which the change is pushed into
7536
7537         avoid misc. warnings
7538         * lib/fsusage.c (UNUSED_PARAM): Define.
7539         (get_fs_usage): Mark parameter "disk" as unused.
7540         * lib/getugroups.c (getgrent): Use "void" in prototype.
7541         * lib/mountlist.c: Mark unused parameters.
7542         (read_file_system_list): Declare a local with "const".
7543         * lib/nanosleep.c (getnow): Declare static.
7544         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
7545
7546         dirfd: set errno upon failure
7547         * lib/dirfd.c: Include <errno.h>.
7548         Set errno to ENOTSUP when returning -1.
7549         * modules/dirfd (Depends-on): Add errno.
7550         Suggested by John Kodis <kodis@comcast.net>.
7551
7552 2009-02-01  Bruno Haible  <bruno@clisp.org>
7553
7554         Don't assume sizeof (long) >= sizeof (void *).
7555         * lib/memcmp.c: Include stdint.h.
7556         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
7557         srcp2 to 'const byte *'.
7558         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
7559         types to uintptr_t.
7560         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
7561         * modules/memcmp (Depends-on): Add stdint.
7562         Reported by Ozkan Sezer <sezeroz@gmail.com>.
7563
7564 2009-01-30  Eric Blake  <ebb9@byu.net>
7565
7566         fix more require-before-expand issues
7567         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
7568         expand, AC_PROG_AWK.
7569         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
7570
7571 2009-01-28  Eric Blake  <ebb9@byu.net>
7572
7573         version-etc: use consistent URL formatting
7574         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
7575         Improve formatting.  Use fputs for string without %.
7576
7577 2009-01-28  Jim Meyering  <meyering@redhat.com>
7578
7579         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
7580         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
7581         "underquoted definition of NAME" from autoconf-2.59.
7582
7583 2009-01-28  Bruno Haible  <bruno@clisp.org>
7584
7585         * doc/gnulib.texi: Add "Obsolete modules" to index.
7586
7587 2009-01-28  Jim Meyering  <meyering@redhat.com>
7588
7589         useless-if-before-free: recognize more variants
7590         * build-aux/useless-if-before-free: Also recognize e.g.,
7591         if (NULL != p) free (p);
7592
7593 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
7594
7595         test-getaddrinfo: skip (don't fail) this test when there's no network
7596         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
7597         on the presumption that it means you lack network access.
7598
7599 2009-01-26  Jim Meyering  <meyering@redhat.com>
7600
7601         fflush: avoid warnings on modern systems
7602         * lib/fflush.c (rpl_fflush): Move declarations of locals,
7603         pos and result, into scopes where they're used.
7604
7605 2009-01-26  Eric Blake  <ebb9@byu.net>
7606
7607         Silence warning reintroduced by recent extensions patch.
7608         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
7609         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
7610         autoconf.
7611
7612         Backport improved autoconf semantics of AC_DEFUN_ONCE.
7613         * m4/00gnulib.m4: New file.
7614         * gnulib-tool (func_get_filelist): Always use it.
7615         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
7616         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
7617
7618 2009-01-25  Bruno Haible  <bruno@clisp.org>
7619
7620         Make test-quotearg work on MacOS X and AIX.
7621         * tests/test-quotearg.sh: New file.
7622         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
7623         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
7624         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
7625         include <libintl.h>.
7626         (fake_locale): Remove variable.
7627         (gettext, dgettext, dcgettext): Remove functions.
7628         (main): Instead of setting a fake locale, set a real locale. Call
7629         textdomain and bindtextdomain.
7630         * modules/quotearg-tests (Files): Add the new files.
7631         (Depends-on): Add gettext, setenv, unsetenv.
7632         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
7633         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
7634         Augment TESTS_ENVIRONMENT.
7635
7636 2009-01-25  Bruno Haible  <bruno@clisp.org>
7637
7638         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
7639         fr_FR.ISO8859-1 locale on MacOS X.
7640         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
7641         ja_JP.eucJP locale on MacOS X.
7642         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
7643         zh_CN.GB18030 locale on MacOS X.
7644
7645 2009-01-25  Bruno Haible  <bruno@clisp.org>
7646
7647         Avoid link errors on MacOS X 10.3.
7648         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
7649         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
7650
7651 2009-01-25  Bruno Haible  <bruno@clisp.org>
7652
7653         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
7654         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
7655         * modules/pipe (Files): Remove m4/posix_spawn.m4.
7656         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
7657         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
7658         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
7659         posix_spawnattr_init, posix_spawnattr_setsigmask,
7660         posix_spawnattr_setflags, posix_spawnattr_destroy.
7661
7662         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
7663         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
7664         * modules/execute (Files): Remove m4/posix_spawn.m4.
7665         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
7666         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
7667         posix_spawnattr_init, posix_spawnattr_setsigmask,
7668         posix_spawnattr_setflags, posix_spawnattr_destroy.
7669
7670 2009-01-25  Bruno Haible  <bruno@clisp.org>
7671
7672         * lib/glthread/threadlib.c: Include <stdlib.h>.
7673
7674 2009-01-25  Bruno Haible  <bruno@clisp.org>
7675
7676         * lib/glthread/threadlib.c (dummy): New declaration.
7677
7678 2009-01-25  Bruno Haible  <bruno@clisp.org>
7679
7680         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
7681         multibyte characters also for the GB18030 encoding. Don't crash when
7682         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
7683
7684 2009-01-25  Bruno Haible  <bruno@clisp.org>
7685
7686         Avoid redefining 'struct random_data' on OSF/1 5.1.
7687         * lib/stdlib.in.h: Include <random.h> if it exists.
7688         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
7689         HAVE_RANDOM_H. Include <random.h> when testing whether
7690         'struct random_data' exists.
7691         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
7692
7693 2009-01-25  Bruno Haible  <bruno@clisp.org>
7694
7695         Don't install charset.alias on MacOS X >= 10.3.
7696         * lib/localcharset.c (DARWIN7): New macro.
7697         (get_charset_aliases): Hardcode the result for Darwin7.
7698         * modules/localcharset (install-exec-local): Don't install
7699         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
7700
7701 2009-01-25  Bruno Haible  <bruno@clisp.org>
7702
7703         Don't install charset.alias on mingw and Cygwin.
7704         * modules/localcharset (install-exec-local): Don't install
7705         charset.alias on mingw and Cygwin, if the file does not yet exist.
7706         The result for these platforms is hardcoded in localcharset.c.
7707
7708 2009-01-25  Bruno Haible  <bruno@clisp.org>
7709
7710         Make it possible again to use AC_GNU_SOURCE together with gnulib.
7711         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
7712         before requiring AC_USE_SYSTEM_EXTENSIONS.
7713
7714 2009-01-25  Jim Meyering  <meyering@redhat.com>
7715
7716         c-strtod: avoid warnings
7717         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
7718         "assignment discards qualifiers from pointer target type" warnings.
7719
7720 2009-01-24  Bruno Haible  <bruno@clisp.org>
7721
7722         Add support for non-UTF-8 locales on MacOS X.
7723         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
7724         canonical encodings. For Darwin 7 and newer, don't map traditional
7725         encodings to UTF-8.
7726         Reported by Vincent Lefevre <vincent@vinc17.org>
7727         at <http://savannah.gnu.org/bugs/?25235>.
7728
7729 2009-01-24  Bruno Haible  <bruno@clisp.org>
7730
7731         * doc/gnulib.texi (Obsolete modules): New section.
7732         Reported by Mike Frysinger <vapier@gentoo.org>.
7733
7734 2009-01-24  Bruno Haible  <bruno@clisp.org>
7735
7736         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
7737         (%.dvi): New rule.
7738
7739 2009-01-24  Bruno Haible  <bruno@clisp.org>
7740
7741         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
7742         Reported by Eric Blake.
7743
7744 2009-01-24  Bruno Haible  <bruno@clisp.org>
7745
7746         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
7747         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
7748         Reported by Gary V. Vaughan <gary@gnu.org>.
7749
7750 2009-01-24  Bruno Haible  <bruno@clisp.org>
7751
7752         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
7753
7754 2009-01-23  Bruno Haible  <bruno@clisp.org>
7755
7756         Make c-strtod, c-strtold usable in libraries.
7757         * lib/c-strtod.c: Include string.h instead of xalloc.h.
7758         (C_STRTOD): Call strdup instead of xstrdup.
7759         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
7760         * modules/c-strtold (Depends-on): Likewise.
7761         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
7762         * NEWS: Mention the change.
7763         Reported by Michael Gold <mgold@ncf.ca>.
7764
7765 2009-01-23  Jim Meyering  <meyering@redhat.com>
7766
7767         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
7768         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
7769         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
7770
7771 2009-01-23  Simon Josefsson  <simon@josefsson.org>
7772
7773         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
7774         GNU CoreUtils.
7775         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
7776         * modules/version-etc (Description): Update.
7777
7778 2009-01-22  Bruno Haible  <bruno@clisp.org>
7779
7780         Cache the C locale object.
7781         * lib/c-strtod.c (c_locale_cache): New variable.
7782         (c_locale): New function.
7783         (C_STRTOD): Use it, and don't call freelocale.
7784         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
7785         Suggested by Paolo Bonzini.
7786
7787 2009-01-21  Bruno Haible  <bruno@clisp.org>
7788
7789         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
7790         conditions other than overflow.
7791
7792 2009-01-21  Bruno Haible  <bruno@clisp.org>
7793
7794         * lib/c-strtod.c: Include errno.h.
7795         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
7796         value from STRTOD_L and STRTOD.
7797
7798 2009-01-21  Bruno Haible  <bruno@clisp.org>
7799         and Jim Meyering  <meyering@redhat.com>
7800
7801         nanosleep: skip configure test (fail it) for apple universal builds
7802         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
7803         universal builds, assume that nanosleep does not work.
7804         * modules/nanosleep (Depends-on): Add multiarch.
7805
7806         mktime: skip configure test (fail it) for apple universal builds
7807         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
7808         universal builds, assume that mktime does not work.
7809         * modules/mktime (Depends-on): Add multiarch.
7810
7811 2009-01-21  Eric Blake  <ebb9@byu.net>
7812
7813         multiarch: avoid expand-before-require warning
7814         * modules/multiarch (configure.ac): Require, rather than expand,
7815         gl_MULTIARCH.
7816         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
7817         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
7818         enforce that all clients require it.  Partial reversion of
7819         2008-12-29 patch.
7820
7821         error: avoid expand-before-require warning
7822         * modules/errno (configure.ac): Require, rather than expand,
7823         gl_HEADER_ERRNO_H.
7824         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
7825         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
7826         enforce that all clients require it.
7827
7828         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
7829         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
7830         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
7831         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
7832
7833 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
7834
7835         Revert:
7836         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
7837
7838         regex: do not depend on obsolete modules.
7839         * modules/regex: Remove memcmp and memmove.
7840
7841 2009-01-20  Bruno Haible  <bruno@clisp.org>
7842
7843         Make the 'link' module link on Windows NT 4.
7844         * lib/link.c (_WIN32_WINNT): Don't define.
7845         (CreateHardLinkFuncType): New type.
7846         (CreateHardLinkFunc, initialized): New variables.
7847         (initialize): New function.
7848         (link): Invoke CreateHardLink indirectly through the function pointer.
7849
7850 2009-01-20  Bruno Haible  <bruno@clisp.org>
7851
7852         Fix compilation failure on mingw.
7853         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
7854
7855 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
7856
7857         * doc/c-strtod.texi: Mention a couple of restrictions.
7858
7859 2009-01-20  Jim Meyering  <meyering@redhat.com>
7860
7861         gettimeofday: move more declarations out of functions
7862         * lib/gettimeofday.c: Move extern declarations of tzset and
7863         gmtime out of containing functions.  Prompted by Bruno Haible.
7864
7865 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
7866
7867         regex: do not depend on obsolete modules.
7868         * modules/regex: Remove memcmp and memmove.
7869
7870 2009-01-19  Bruno Haible  <bruno@clisp.org>
7871
7872         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
7873         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
7874         gl_BIGENDIAN, not AC_C_BIGENDIAN.
7875         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
7876         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
7877
7878 2009-01-19  Bruno Haible  <bruno@clisp.org>
7879
7880         * tests/test-link.c: Include <errno.h>.
7881         (main): Exit with code 77 when a hard link cannot be created due to
7882         the file system.
7883         * tests/test-link.sh: Skip test when a hard link cannot be created due
7884         to the file system.
7885         Suggested by Eric Blake.
7886
7887 2009-01-19  Martin Lambers  <marlam@marlam.de>
7888
7889         * modules/link-tests: New file.
7890         * tests/test-link.sh: New file.
7891         * tests/test-link.c: New file.
7892
7893 2009-01-19  Eric Blake  <ebb9@byu.net>
7894
7895         doc: mention another function added in cygwin 1.7.0
7896         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
7897         Another new function in cygwin 1.7.
7898
7899 2009-01-19  Bruno Haible  <bruno@clisp.org>
7900
7901         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
7902         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
7903         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
7904         gl_BIGENDIAN, not AC_C_BIGENDIAN.
7905         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7906         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
7907         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7908         * m4/md4.m4 (gl_MD4): Likewise.
7909         * m4/md5.m4 (gl_MD5): Likewise.
7910         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
7911         * m4/sha1.m4 (gl_SHA1): Likewise.
7912         * m4/sha256.m4 (gl_SHA256): Likewise.
7913         * m4/sha512.m4 (gl_SHA512): Likewise.
7914
7915 2009-01-19  Bruno Haible  <bruno@clisp.org>
7916
7917         * modules/uniname/uniname-tests (Depends-on): Add progname.
7918         * tests/uniname/test-uninames.c: Include progname.h.
7919         (main): Call set_program_name.
7920
7921         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
7922         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
7923         (main): Call set_program_name.
7924
7925         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
7926         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
7927         (main): Call set_program_name.
7928
7929         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
7930         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
7931         (main): Call set_program_name.
7932
7933         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
7934         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
7935         (main): Call set_program_name.
7936
7937         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
7938         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
7939         (main): Call set_program_name.
7940
7941         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
7942         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
7943         (main): Call set_program_name.
7944
7945         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
7946         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
7947         (main): Call set_program_name.
7948
7949         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
7950         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
7951         (main): Call set_program_name.
7952
7953 2009-01-19  Eric Blake  <ebb9@byu.net>
7954
7955         test-unistd: test previous patch
7956         * tests/test-unistd.c: Test *_FILENO macros.
7957
7958         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
7959         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
7960         Guarantee a definition.
7961         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
7962         * modules/unistd-safer (Depends-on): Add dependency on unistd.
7963         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
7964         * lib/dup-safer.c (STDERR_FILENO): Likewise.
7965         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
7966         Likewise.
7967         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
7968         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
7969         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
7970         Likewise.
7971         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
7972         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
7973         (STDERR_FILENO): Likewise.
7974         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
7975         (STDERR_FILENO): Likewise.
7976         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
7977         (STDERR_FILENO): Likewise.
7978         Reported by Elbert Pol.
7979
7980 2009-01-19  Eric Blake  <ebb9@byu.net>
7981
7982         doc: mention more functions added in cygwin 1.7.0
7983         * doc/posix-functions/abort.texi (abort): Update wording related
7984         to cygwin.
7985         * doc/posix-functions/daylight.texi (daylight): Likewise.
7986         * doc/posix-functions/optarg.texi (optarg): Likewise.
7987         * doc/posix-functions/optarg.texi (opterr): Likewise.
7988         * doc/posix-functions/optarg.texi (optind): Likewise.
7989         * doc/posix-functions/optarg.texi (optopt): Likewise.
7990         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
7991         worked in 1.5.x, and was withdrawn in 1.7.
7992         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
7993         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
7994         cygwin versions.
7995         * doc/posix-functions/perror.texi (perror): Likewise.
7996         * doc/posix-functions/printf.texi (printf): Likewise.
7997         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
7998         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
7999         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8000         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8001         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8002         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
8003         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
8004         Likewise.
8005         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
8006         Likewise.
8007         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
8008         this function.
8009         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
8010         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
8011         Likewise.
8012         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
8013         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
8014         * doc/posix-functions/confstr.texi (confstr): Likewise.
8015         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
8016         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
8017         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
8018         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
8019         * doc/posix-functions/fputws.texi (fputws): Likewise.
8020         * doc/posix-functions/fwide.texi (fwide): Likewise.
8021         * doc/posix-functions/getwc.texi (getwc): Likewise.
8022         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
8023         * doc/posix-functions/putwc.texi (putwc): Likewise.
8024         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
8025         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
8026         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
8027         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8028         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
8029         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
8030         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
8031         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
8032         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
8033         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
8034         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
8035
8036 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
8037
8038         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
8039         * lib/ioctl.c: Include <sys/ioctl.h>.
8040
8041 2009-01-19  Simon Josefsson  <simon@josefsson.org>
8042
8043         * modules/getdate-tests (Depends-on): Add progname.
8044         * tests/test-getdate.c: Use progname module, to avoid link errors
8045         on non-glibc systems.
8046
8047 2009-01-18  Simon Josefsson  <simon@josefsson.org>
8048
8049         * modules/filenamecat-tests (Depends-on): Add progname.
8050         * modules/fstrcmp-tests (Depends-on): Likewise.
8051
8052         * tests/test-filenamecat.c: Use progname module, to avoid link
8053         errors on non-glibc systems.
8054         * tests/test-fstrcmp.c: Likewise.
8055
8056 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
8057
8058         gettimeofday: avoid warning: nested extern declaration of 'localtime'
8059         * lib/gettimeofday.c: Move extern declaration out of function.
8060
8061 2009-01-18  Bruno Haible  <bruno@clisp.org>
8062
8063         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
8064         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
8065         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
8066
8067 2009-01-18  Bruno Haible  <bruno@clisp.org>
8068
8069         * lib/strftime.c (MEMPCPY): Remove unused macro.
8070         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
8071
8072 2009-01-18  Martin Lambers  <marlam@marlam.de>
8073
8074         New module 'link'.
8075         * lib/unistd.in.h (link): New declaration.
8076         * lib/link.c: New file.
8077         * m4/link.m4: New file.
8078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
8079         HAVE_LINK.
8080         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
8081         * modules/link: New file.
8082         * doc/posix-functions/link.texi: Mention the new module.
8083
8084 2009-01-18  Bruno Haible  <bruno@clisp.org>
8085
8086         * tests/test-avltree_list.c (main): Call set_program_name.
8087         * tests/test-avltree_oset.c (main): Likewise.
8088         * tests/test-obstack-printf.c: Include progname.h.
8089         (main): Call set_program_name.
8090         * tests/test-quotearg.c: Include progname.h.
8091         (main): Call set_program_name.
8092         * tests/test-xmemdup0.c: Include progname.h.
8093         (main): Call set_program_name.
8094
8095 2009-01-18  Bruno Haible  <bruno@clisp.org>
8096
8097         New module 'alphasort'.
8098         * lib/dirent.in.h (alphasort): New declaration.
8099         * lib/alphasort.c: New file, from glibc with modifications.
8100         * m4/alphasort.m4: New file.
8101         * modules/alphasort: New file.
8102         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
8103         HAVE_ALPHASORT.
8104         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
8105         HAVE_ALPHASORT.
8106         * doc/posix-functions/alphasort.texi: Mention the new module and the
8107         portability problems.
8108
8109 2009-01-18  Bruno Haible  <bruno@clisp.org>
8110
8111         New module 'scandir'.
8112         * lib/dirent.in.h (scandir): New declaration.
8113         * lib/scandir.c: New file, from glibc with modifications.
8114         * m4/scandir.m4: New file.
8115         * modules/scandir: New file.
8116         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
8117         HAVE_SCANDIR.
8118         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
8119         HAVE_SCANDIR.
8120         * doc/posix-functions/scandir.texi: Mention the new module and the
8121         portability problems.
8122
8123 2009-01-17  Bruno Haible  <bruno@clisp.org>
8124
8125         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
8126         Update documentation.
8127         (func_remove_suffix): Escape all dots in the suffix. Update
8128         documentation.
8129         (func_filter_filelist): Update documentation.
8130         Reported by Ralf Wildenhues.
8131
8132 2009-01-17  Bruno Haible  <bruno@clisp.org>
8133
8134         * modules/dprintf-posix-tests: New file.
8135         * tests/test-dprintf-posix.sh: New file.
8136         * tests/test-dprintf-posix.c: New file.
8137
8138         New modules 'dprintf', 'dprintf-posix'.
8139         * lib/stdio.in.h (dprintf): New declaration.
8140         * lib/dprintf.c: New file.
8141         * m4/dprintf.m4: New file.
8142         * m4/dprintf-posix.m4: New file.
8143         * modules/dprintf: New file.
8144         * modules/dprintf-posix: New file.
8145         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
8146         HAVE_DPRINTF, REPLACE_DPRINTF.
8147         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
8148         HAVE_DPRINTF, REPLACE_DPRINTF.
8149         * doc/posix-functions/dprintf.texi: Mention the new modules.
8150
8151 2009-01-17  Bruno Haible  <bruno@clisp.org>
8152
8153         * modules/vdprintf-posix-tests: New file.
8154         * tests/test-vdprintf-posix.sh: New file.
8155         * tests/test-vdprintf-posix.c: New file.
8156
8157         New modules 'vdprintf', 'vdprintf-posix'.
8158         * lib/stdio.in.h (vdprintf): New declaration.
8159         * lib/vdprintf.c: New file.
8160         * m4/vdprintf.m4: New file.
8161         * m4/vdprintf-posix.m4: New file.
8162         * modules/vdprintf: New file.
8163         * modules/vdprintf-posix: New file.
8164         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
8165         HAVE_VDPRINTF, REPLACE_VDPRINTF.
8166         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
8167         HAVE_VDPRINTF, REPLACE_VDPRINTF.
8168         * doc/posix-functions/vdprintf.texi: Mention the new modules.
8169
8170 2009-01-17  Bruno Haible  <bruno@clisp.org>
8171
8172         Fix replacement of fopen on mingw.
8173         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
8174         mingw.
8175
8176 2009-01-17  Bruno Haible  <bruno@clisp.org>
8177
8178         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
8179         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
8180
8181 2009-01-17  Bruno Haible  <bruno@clisp.org>
8182
8183         Avoid test-fflush2.sh failure on mingw.
8184         * tests/test-fflush2.c: Include binary-io.h.
8185         (main): Put standard input into binary mode.
8186         * modules/fflush-tests (Depends-on): Add binary-io.
8187
8188 2009-01-17  Bruno Haible  <bruno@clisp.org>
8189
8190         * lib/wchar.in.h: In another particular situation, include only the
8191         system's <wchar.h> file.
8192         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
8193         Reported by Albert Chin-A-Young <china@thewrittenword.com>
8194         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
8195
8196 2009-01-17  Bruno Haible  <bruno@clisp.org>
8197
8198         Support for stripping executables in --enable-relocatable.
8199         * build-aux/install-reloc: Expect one more argument, or an environment
8200         variable RELOC_STRIP_PROG. If set, strip the destination program and
8201         its wrapper.
8202         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
8203         RELOC_STRIP_PROG.
8204         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
8205         to set RELOCATABLE_STRIP.
8206         * NEWS: Mention the new Makefile requirement.
8207
8208 2009-01-17  Bruno Haible  <bruno@clisp.org>
8209
8210         * build-aux/install-reloc: Remove debugging information left over by
8211         C compiler on MacOS X.
8212
8213 2009-01-17  Bruno Haible  <bruno@clisp.org>
8214
8215         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
8216         * lib/progreloc.c (find_executable): Fix type of pointer passed to
8217         _NSGetExecutablePath.
8218
8219 2009-01-16  Jim Meyering  <meyering@redhat.com>
8220
8221         strerror: avoid warnings about discarding "const"
8222         * lib/strerror.c (rpl_strerror): Instead of returning a const
8223         string from each and every "case", use a variable, and add a single
8224         cast after the switch.
8225
8226 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
8227
8228         * lib/arpa_inet.in.h: Add extern "C" block for C++.
8229
8230 2009-01-16  Bruno Haible  <bruno@clisp.org>
8231
8232         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
8233         array initializer syntax that also works in C++ mode.
8234         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8235
8236 2009-01-16  Jim Meyering  <meyering@redhat.com>
8237
8238         poll: suppress a warning
8239         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
8240         to ignore "...unsigned expression < 0 is always false" warnings.
8241
8242 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
8243
8244         poll: remove declarations of unused variables
8245         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
8246         sockbuf and optlen.
8247
8248 2009-01-15  Bruno Haible  <bruno@clisp.org>
8249
8250         Make fflush-after-ungetc POSIX compliant on BSD systems.
8251         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
8252         (clear_ungetc_buffer): Implement also for other systems.
8253         (rpl_fflush): On glibc systems, invoke
8254         clear_ungetc_buffer_preserving_position. Otherwise, invoke
8255         clear_ungetc_buffer after fetching the stream's position, not before.
8256
8257 2009-01-15  Bruno Haible  <bruno@clisp.org>
8258
8259         Make fflush-after-ungetc POSIX compliant on glibc systems.
8260         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
8261         after ungetc.
8262         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
8263         (rpl_fflush): On glibc systems, simply call the system's fflush
8264         function after clearing the ungetc buffer.
8265         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
8266         Instead, lseek only to the end of file, then use the system's fseeko
8267         for the rest. On glibc systems, reset the EOF indicator bit.
8268
8269 2009-01-15  Jim Meyering  <meyering@redhat.com>
8270
8271         openmp.m4: revert quote-adding change, for portability to older autoconf
8272         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
8273         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
8274         Simon Josefsson noticed the problem when using autoconf-2.61.
8275
8276 2009-01-15  Bruno Haible  <bruno@clisp.org>
8277
8278         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
8279         * tests/test-fflush2.c (ASSERT): Always fail.
8280         (main): Add two tests for fflush() after ungetc(), taking into account
8281         the Austin Group's clarification.
8282         Suggested by Eric Blake.
8283
8284 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
8285
8286         mktime.m4: remove K&R-style function prototypes
8287         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
8288         for the Sun C++ compiler.
8289
8290 2009-01-14  Bruno Haible  <bruno@clisp.org>
8291
8292         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
8293         while including <wchar.h>.
8294         * lib/wchar.in.h: In two particular situations on HP-UX, include only
8295         the system's <wchar.h> file.
8296         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8297
8298 2009-01-14  Bruno Haible  <bruno@clisp.org>
8299
8300         * m4/csharp.m4: Don't mention gettext on the serial number line.
8301         * m4/csharpexec.m4: Likewise.
8302         * m4/eaccess.m4: Likewise.
8303         * m4/javaexec.m4: Likewise.
8304         * m4/sig_atomic_t.m4: Likewise.
8305         * m4/tmpdir.m4: Likewise.
8306         * m4/intldir.m4: Bump gettext version.
8307         * m4/lib-ld.m4: Likewise.
8308
8309 2009-01-14  Bruno Haible  <bruno@clisp.org>
8310
8311         * lib/progname.c (set_program_name): Add more comments.
8312         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8313
8314 2009-01-14  Simon Josefsson  <simon@josefsson.org>
8315
8316         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
8317         were sys/stat.h does not define it.
8318
8319 2009-01-14  Jim Meyering  <meyering@redhat.com>
8320
8321         many *.m4 files: improve m4 quoting
8322         99% of this change was performed by running the following commands:
8323         git ls-files | grep '\.m4$' | xargs perl -pi \
8324           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
8325           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
8326           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
8327           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
8328         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
8329         The remainder were to add Copyright dates, increment serial numbers,
8330         undo some changes in comments, exclude m4/intl.m4, and add quotes
8331         around the "1" in ",1" where the unusual spacing prohibited the
8332         above regexps from doing the job.  For more details, see
8333         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
8334         * m4/acl.m4: Modified.
8335         * m4/afs.m4: Likewise.
8336         * m4/alloca.m4: Likewise.
8337         * m4/argp.m4: Likewise.
8338         * m4/argz.m4: Likewise.
8339         * m4/atexit.m4: Likewise.
8340         * m4/bison-i18n.m4: Likewise.
8341         * m4/bison.m4: Likewise.
8342         * m4/byteswap.m4: Likewise.
8343         * m4/c-stack.m4: Likewise.
8344         * m4/c-strtod.m4: Likewise.
8345         * m4/calloc.m4: Likewise.
8346         * m4/canonicalize-lgpl.m4: Likewise.
8347         * m4/chown.m4: Likewise.
8348         * m4/clock_time.m4: Likewise.
8349         * m4/codeset.m4: Likewise.
8350         * m4/copy-file.m4: Likewise.
8351         * m4/csharp.m4: Likewise.
8352         * m4/csharpcomp.m4: Likewise.
8353         * m4/csharpexec.m4: Likewise.
8354         * m4/d-ino.m4: Likewise.
8355         * m4/d-type.m4: Likewise.
8356         * m4/dirfd.m4: Likewise.
8357         * m4/double-slash-root.m4: Likewise.
8358         * m4/eaccess.m4: Likewise.
8359         * m4/eealloc.m4: Likewise.
8360         * m4/environ.m4: Likewise.
8361         * m4/errno_h.m4: Likewise.
8362         * m4/euidaccess.m4: Likewise.
8363         * m4/execute.m4: Likewise.
8364         * m4/fatal-signal.m4: Likewise.
8365         * m4/fchdir.m4: Likewise.
8366         * m4/fcntl_h.m4: Likewise.
8367         * m4/fileblocks.m4: Likewise.
8368         * m4/filenamecat.m4: Likewise.
8369         * m4/findprog.m4: Likewise.
8370         * m4/flexmember.m4: Likewise.
8371         * m4/fnmatch.m4: Likewise.
8372         * m4/fopen.m4: Likewise.
8373         * m4/fpending.m4: Likewise.
8374         * m4/fprintf-posix.m4: Likewise.
8375         * m4/free.m4: Likewise.
8376         * m4/frexp.m4: Likewise.
8377         * m4/frexpl.m4: Likewise.
8378         * m4/fsusage.m4: Likewise.
8379         * m4/ftruncate.m4: Likewise.
8380         * m4/gc-camellia.m4: Likewise.
8381         * m4/gc-random.m4: Likewise.
8382         * m4/gc.m4: Likewise.
8383         * m4/getaddrinfo.m4: Likewise.
8384         * m4/getcwd-abort-bug.m4: Likewise.
8385         * m4/getcwd-path-max.m4: Likewise.
8386         * m4/getdate.m4: Likewise.
8387         * m4/getdomainname.m4: Likewise.
8388         * m4/getgroups.m4: Likewise.
8389         * m4/gethostname.m4: Likewise.
8390         * m4/gethrxtime.m4: Likewise.
8391         * m4/getline.m4: Likewise.
8392         * m4/getloadavg.m4: Likewise.
8393         * m4/getndelim2.m4: Likewise.
8394         * m4/getpass.m4: Likewise.
8395         * m4/gettext.m4: Likewise.
8396         * m4/gettime.m4: Likewise.
8397         * m4/gettimeofday.m4: Likewise.
8398         * m4/gnulib-common.m4: Likewise.
8399         * m4/group-member.m4: Likewise.
8400         * m4/host-os.m4: Likewise.
8401         * m4/iconv.m4: Likewise.
8402         * m4/iconv_open.m4: Likewise.
8403         * m4/inet_ntop.m4: Likewise.
8404         * m4/inet_pton.m4: Likewise.
8405         * m4/inline.m4: Likewise.
8406         * m4/intldir.m4: Likewise.
8407         * m4/intlmacosx.m4: Likewise.
8408         * m4/intmax.m4: Likewise.
8409         * m4/intmax_t.m4: Likewise.
8410         * m4/inttypes.m4: Likewise.
8411         * m4/inttypes_h.m4: Likewise.
8412         * m4/inttypes-pri.m4: Likewise.
8413         * m4/isapipe.m4: Likewise.
8414         * m4/isnand.m4: Likewise.
8415         * m4/isnanf.m4: Likewise.
8416         * m4/isnanl.m4: Likewise.
8417         * m4/javacomp.m4: Likewise.
8418         * m4/javaexec.m4: Likewise.
8419         * m4/jm-winsz1.m4: Likewise.
8420         * m4/jm-winsz2.m4: Likewise.
8421         * m4/lchown.m4: Likewise.
8422         * m4/lcmessage.m4: Likewise.
8423         * m4/ldexpl.m4: Likewise.
8424         * m4/lib-ld.m4: Likewise.
8425         * m4/lib-link.m4: Likewise.
8426         * m4/libsigsegv.m4: Likewise.
8427         * m4/link-follow.m4: Likewise.
8428         * m4/localcharset.m4: Likewise.
8429         * m4/locale-fr.m4: Likewise.
8430         * m4/locale-ja.m4: Likewise.
8431         * m4/locale-tr.m4: Likewise.
8432         * m4/locale-zh.m4: Likewise.
8433         * m4/lock.m4: Likewise.
8434         * m4/longlong.m4: Likewise.
8435         * m4/ls-mntd-fs.m4: Likewise.
8436         * m4/lstat.m4: Likewise.
8437         * m4/malloc.m4: Likewise.
8438         * m4/mathl.m4: Likewise.
8439         * m4/mbrtowc.m4: Likewise.
8440         * m4/mbstate_t.m4: Likewise.
8441         * m4/mbswidth.m4: Likewise.
8442         * m4/memchr.m4: Likewise.
8443         * m4/memcmp.m4: Likewise.
8444         * m4/memcpy.m4: Likewise.
8445         * m4/memmem.m4: Likewise.
8446         * m4/memmove.m4: Likewise.
8447         * m4/mempcpy.m4: Likewise.
8448         * m4/memrchr.m4: Likewise.
8449         * m4/memset.m4: Likewise.
8450         * m4/minmax.m4: Likewise.
8451         * m4/mkdir-slash.m4: Likewise.
8452         * m4/mkdtemp.m4: Likewise.
8453         * m4/mktime.m4: Likewise.
8454         * m4/mmap-anon.m4: Likewise.
8455         * m4/mountlist.m4: Likewise.
8456         * m4/nanosleep.m4: Likewise.
8457         * m4/nls.m4: Likewise.
8458         * m4/nocrash.m4: Likewise.
8459         * m4/open.m4: Likewise.
8460         * m4/openat.m4: Likewise.
8461         * m4/openmp.m4: Likewise.
8462         * m4/pathmax.m4: Likewise.
8463         * m4/perl.m4: Likewise.
8464         * m4/physmem.m4: Likewise.
8465         * m4/pipe.m4: Likewise.
8466         * m4/po.m4: Likewise.
8467         * m4/poll.m4: Likewise.
8468         * m4/posixtm.m4: Likewise.
8469         * m4/posixver.m4: Likewise.
8470         * m4/printf-frexp.m4: Likewise.
8471         * m4/printf-frexpl.m4: Likewise.
8472         * m4/printf-posix.m4: Likewise.
8473         * m4/printf-posix-rpl.m4: Likewise.
8474         * m4/printf.m4: Likewise.
8475         * m4/progtest.m4: Likewise.
8476         * m4/putenv.m4: Likewise.
8477         * m4/readline.m4: Likewise.
8478         * m4/readlink.m4: Likewise.
8479         * m4/readutmp.m4: Likewise.
8480         * m4/realloc.m4: Likewise.
8481         * m4/regex.m4: Likewise.
8482         * m4/relocatable.m4: Likewise.
8483         * m4/relocatable-lib.m4: Likewise.
8484         * m4/rename-dest-slash.m4: Likewise.
8485         * m4/rename.m4: Likewise.
8486         * m4/rmdir-errno.m4: Likewise.
8487         * m4/rmdir.m4: Likewise.
8488         * m4/roundf.m4: Likewise.
8489         * m4/roundl.m4: Likewise.
8490         * m4/rpmatch.m4: Likewise.
8491         * m4/save-cwd.m4: Likewise.
8492         * m4/selinux-selinux-h.m4: Likewise.
8493         * m4/setenv.m4: Likewise.
8494         * m4/settime.m4: Likewise.
8495         * m4/sig2str.m4: Likewise.
8496         * m4/sig_atomic_t.m4: Likewise.
8497         * m4/signalblocking.m4: Likewise.
8498         * m4/signbit.m4: Likewise.
8499         * m4/sigpipe.m4: Likewise.
8500         * m4/sockets.m4: Likewise.
8501         * m4/sockpfaf.m4: Likewise.
8502         * m4/st_dm_mode.m4: Likewise.
8503         * m4/stat-time.m4: Likewise.
8504         * m4/stdbool.m4: Likewise.
8505         * m4/stdint.m4: Likewise.
8506         * m4/stdint_h.m4: Likewise.
8507         * m4/stpcpy.m4: Likewise.
8508         * m4/stpncpy.m4: Likewise.
8509         * m4/strcase.m4: Likewise.
8510         * m4/strchrnul.m4: Likewise.
8511         * m4/strcspn.m4: Likewise.
8512         * m4/strdup.m4: Likewise.
8513         * m4/strftime.m4: Likewise.
8514         * m4/strndup.m4: Likewise.
8515         * m4/strnlen.m4: Likewise.
8516         * m4/strpbrk.m4: Likewise.
8517         * m4/strptime.m4: Likewise.
8518         * m4/strsep.m4: Likewise.
8519         * m4/strtod.m4: Likewise.
8520         * m4/strtoimax.m4: Likewise.
8521         * m4/strtok_r.m4: Likewise.
8522         * m4/strtol.m4: Likewise.
8523         * m4/strtoll.m4: Likewise.
8524         * m4/strtoul.m4: Likewise.
8525         * m4/strtoull.m4: Likewise.
8526         * m4/strtoumax.m4: Likewise.
8527         * m4/strverscmp.m4: Likewise.
8528         * m4/threadlib.m4: Likewise.
8529         * m4/timegm.m4: Likewise.
8530         * m4/tm_gmtoff.m4: Likewise.
8531         * m4/tmpdir.m4: Likewise.
8532         * m4/tmpfile.m4: Likewise.
8533         * m4/tzset.m4: Likewise.
8534         * m4/uintmax_t.m4: Likewise.
8535         * m4/unlinkdir.m4: Likewise.
8536         * m4/unlocked-io.m4: Likewise.
8537         * m4/uptime.m4: Likewise.
8538         * m4/userspec.m4: Likewise.
8539         * m4/utimbuf.m4: Likewise.
8540         * m4/utime.m4: Likewise.
8541         * m4/utimes-null.m4: Likewise.
8542         * m4/utimes.m4: Likewise.
8543         * m4/vararrays.m4: Likewise.
8544         * m4/vasnprintf.m4: Likewise.
8545         * m4/vfprintf-posix.m4: Likewise.
8546         * m4/vprintf-posix.m4: Likewise.
8547         * m4/wait-process.m4: Likewise.
8548         * m4/wchar_t.m4: Likewise.
8549         * m4/wint_t.m4: Likewise.
8550         * m4/write-any-file.m4: Likewise.
8551         * m4/yield.m4: Likewise.
8552
8553 2009-01-13  Bruno Haible  <bruno@clisp.org>
8554
8555         Avoid test-copy-file.sh failures when ACL support insufficient.
8556         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
8557         TESTS_ENVIRONMENT.
8558         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
8559         Reported by Jim Meyering.
8560
8561 2009-01-13  Bruno Haible  <bruno@clisp.org>
8562
8563         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
8564         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
8565         * modules/unistdio/u8-printf-parse (Files): Likewise.
8566         * modules/unistdio/u32-printf-parse (Files): Likewise.
8567         * modules/unistdio/ulc-printf-parse (Files): Likewise.
8568
8569 2009-01-13  Simon Josefsson  <simon@josefsson.org>
8570
8571         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
8572         and m4/inttypes_h.m4 too.
8573
8574 2009-01-12  Eric Blake  <ebb9@byu.net>
8575
8576         tests: IRIX 6.2 cc can't compile -0.0 into .data
8577         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
8578         rather than at compile-time.
8579         * tests/test-floorl.c (minus_zero): Likewise.
8580         * tests/test-frexpl.c (minus_zero): Likewise.
8581         * tests/test-isnan.c (minus_zerol): Likewise.
8582         * tests/test-isnanl.h (minus_zero): Likewise.
8583         * tests/test-ldexpl.c (minus_zero): Likewise.
8584         * tests/test-roundl.c (minus_zero): Likewise.
8585         * tests/test-signbit.c (minus_zerol): Likewise.
8586         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
8587         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
8588         * tests/test-truncl.c (minus_zero): Likewise.
8589         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
8590         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
8591         Reported by Tom G. Christensen and Nelson H. F. Beebe.
8592
8593 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
8594
8595         regex: fix glibc bug 9697
8596         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
8597         handling.
8598
8599 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
8600
8601         regex: fix glibc bug 697
8602         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
8603         being NULL also if there are no backreferences.
8604
8605 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
8606
8607         regex: merge glibc changes
8608         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
8609         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
8610         re_string_skip_chars, re_string_reconstruct): Likewise.
8611         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
8612
8613 2009-01-07  Jim Meyering  <meyering@redhat.com>
8614
8615         poll: filter through cppi
8616         * lib/poll.c: Indent cpp directives to reflect nesting.
8617
8618 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
8619
8620         poll: don't return uninitialized
8621         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
8622
8623 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
8624
8625         avoid compile failure on AIX 6.1
8626         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
8627         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
8628
8629 2009-01-04  Jim Meyering  <meyering@redhat.com>
8630
8631         remove duplicate inclusion of <stdio.h>
8632         * tests/test-fprintf-posix.c: Likewise.
8633         * tests/test-printf-posix.c: Likewise.
8634         * tests/test-snprintf-posix.c: Likewise.
8635         * tests/test-sprintf-posix.c: Likewise.
8636         * tests/test-vasprintf-posix.c: Likewise.
8637         * tests/test-vfprintf-posix.c: Likewise.
8638         * tests/test-vprintf-posix.c: Likewise.
8639         * tests/test-vsnprintf-posix.c: Likewise.
8640         * tests/test-vsprintf-posix.c: Likewise.
8641
8642 2009-01-03  Jim Meyering  <meyering@redhat.com>
8643
8644         gnulib-tool: fix sed-based filtering
8645         * gnulib-tool (func_filter_filelist): Remove extra backslash
8646         in sed_fff_filter definition.
8647
8648 2009-01-02  Jim Meyering  <meyering@redhat.com>
8649
8650         strftime: avoid compilation failure on Solaris 2.6
8651         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
8652         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
8653         Don't #define mbrlen or mbsinit, since now they're guaranteed to
8654         be available.  Reported by Tom G. Christensen.  Details in
8655         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
8656
8657 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8658             Bruno Haible  <bruno@clisp.org>
8659
8660         Speed up gnulib-tool by doing more string processing through shell
8661         built-ins.
8662         * gnulib-tool (fast_func_append): New variable.
8663         (func_remove_prefix, func_remove_suffix): New functions.
8664         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
8665         (func_filter_filelist): New function.
8666         (func_get_dependencies): Use func_remove_suffix instead of sed.
8667         (func_get_automake_snippet): Use func_filter_filelist instead of a
8668         subshell and sed invocation.
8669
8670 2009-01-01  Bruno Haible  <bruno@clisp.org>
8671
8672         Fix a security bug.
8673         * gnulib-tool (func_import, import, update): Don't allow the characters
8674         '"', '$', '`', '\' in macro arguments that become part of commands that
8675         are evaluated.
8676
8677 2009-01-01  Bruno Haible  <bruno@clisp.org>
8678
8679         * gnulib-tool (func_reset_sigpipe): Add more comments.
8680
8681 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8682
8683         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
8684         func_emit_tests_Makefile_am, func_import): Abort loops early if we
8685         already know the answer.
8686
8687 2009-01-01  Jim Meyering  <meyering@redhat.com>
8688
8689         * lib/version-etc.c (version_etc_va): Update copyright year.
8690
8691 2008-12-30  Bruno Haible  <bruno@clisp.org>
8692
8693         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
8694         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
8695         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
8696
8697 2008-12-29  Eric Blake  <ebb9@byu.net>
8698
8699         multiarch: avoid autoconf AC_REQUIRE bug
8700         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
8701         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
8702         2.63 and older.
8703         Reported by Bruno Haible, and analyzed in
8704         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
8705
8706 2008-12-29  Bruno Haible  <bruno@clisp.org>
8707
8708         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
8709         files in subdirectories correctly.
8710         Reported by Ralf Wildenhues.
8711
8712 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8713
8714         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
8715         rather than 'join FILE -', for Solaris join.
8716
8717 2008-12-29  Bruno Haible  <bruno@clisp.org>
8718
8719         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
8720         quoting.
8721         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
8722         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
8723         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
8724         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
8725         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8726         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
8727         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
8728         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
8729         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
8730         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
8731         * m4/nls.m4 (AM_NLS): Likewise.
8732         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
8733         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
8734         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
8735         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
8736         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
8737         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
8738         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
8739         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
8740         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
8741         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
8742         * m4/xsize.m4 (gl_XSIZE): Likewise.
8743         Suggested by Jim Meyering.
8744
8745 2008-11-17  Bruce Korb  <bkorb@gnu.org>
8746
8747         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
8748         * lib/parse-duration.c: use a switch instead of cascading if's.
8749
8750 2008-12-29  Eric Blake  <ebb9@byu.net>
8751
8752         wchar.h: supply WEOF on Irix 5.3
8753         * lib/wchar.in.h (wint_t): Also supply WEOF.
8754         * lib/wctype.in.h (wint_t): Likewise.
8755         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
8756         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
8757         Reported by Tom G. Christensen.
8758
8759 2008-12-26  Bruno Haible  <bruno@clisp.org>
8760
8761         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
8762         i486, i586, i686.
8763
8764 2008-12-26  Bruno Haible  <bruno@clisp.org>
8765
8766         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
8767
8768 2008-12-26  Bruno Haible  <bruno@clisp.org>
8769
8770         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
8771         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
8772         not __STDC_CONSTANT_MACROS.
8773         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
8774
8775 2008-12-25  Bruno Haible  <bruno@clisp.org>
8776
8777         Add support for universal builds to vasnprintf.
8778         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
8779         universal builds, guess no.
8780         * modules/vasnprintf-posix (Depends-on): Add multiarch.
8781         * modules/vasprintf-posix (Depends-on): Likewise.
8782         * modules/fprintf-posix (Depends-on): Likewise.
8783         * modules/vfprintf-posix (Depends-on): Likewise.
8784         * modules/snprintf-posix (Depends-on): Likewise.
8785         * modules/vsnprintf-posix (Depends-on): Likewise.
8786         * modules/sprintf-posix (Depends-on): Likewise.
8787         * modules/vsprintf-posix (Depends-on): Likewise.
8788         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8789         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8790         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8791         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8792         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8793         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8794         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8795
8796         Add support for universal builds to <inttypes.h>.
8797         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
8798         _SCNu64_PREFIX): In Apple
8799         universal builds, define directly, using _LP64.
8800         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
8801         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
8802         * modules/inttypes (Depends-on): Add multiarch.
8803         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
8804
8805         Add support for universal builds to <stdint.h>.
8806         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
8807         universal builds, define directly, using _LP64.
8808         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
8809         Apple universal builds, don't test for the size and suffix of ptrdiff_t
8810         and size_t.
8811         * modules/stdint (Depends-on): Add multiarch.
8812         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
8813
8814         New module 'multiarch'.
8815         * modules/multiarch: New file.
8816         * m4/multiarch.m4: New file.
8817
8818 2008-12-25  Bruno Haible  <bruno@clisp.org>
8819
8820         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
8821
8822 2008-12-25  Bruno Haible  <bruno@clisp.org>
8823
8824         * modules/btowc (License): Relicense under LGPLv2+.
8825         * modules/mbsinit (License): Likewise.
8826         * modules/mbrtowc (License): Likewise.
8827         * modules/wcrtomb (License): Likewise.
8828         * modules/streq (License): Likewise.
8829         Reported by David Lutterkort <lutter@redhat.com>.
8830
8831 2008-12-23  Bruno Haible  <bruno@clisp.org>
8832
8833         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
8834
8835 2008-12-23  Bruno Haible  <bruno@clisp.org>
8836
8837         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
8838         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
8839         GETADDRINFO_LIB, not in LIBS.
8840         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
8841         * modules/canon-host (Link): Likewise.
8842         * NEWS: Mention the change.
8843         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
8844         GETADDRINFO_LIB.
8845
8846 2008-12-22  Bruno Haible  <bruno@clisp.org>
8847
8848         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
8849         * doc/posix-functions/iswalpha_l.texi: Likewise.
8850         * doc/posix-functions/iswblank_l.texi: Likewise.
8851         * doc/posix-functions/iswcntrl_l.texi: Likewise.
8852         * doc/posix-functions/iswctype_l.texi: Likewise.
8853         * doc/posix-functions/iswdigit_l.texi: Likewise.
8854         * doc/posix-functions/iswgraph_l.texi: Likewise.
8855         * doc/posix-functions/iswlower_l.texi: Likewise.
8856         * doc/posix-functions/iswprint_l.texi: Likewise.
8857         * doc/posix-functions/iswpunct_l.texi: Likewise.
8858         * doc/posix-functions/iswspace_l.texi: Likewise.
8859         * doc/posix-functions/iswupper_l.texi: Likewise.
8860         * doc/posix-functions/iswxdigit_l.texi: Likewise.
8861         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
8862         * doc/posix-functions/open_wmemstream.texi: Likewise.
8863         * doc/posix-functions/swscanf.texi: Likewise.
8864         * doc/posix-functions/towctrans_l.texi: Likewise.
8865         * doc/posix-functions/towlower.texi: Likewise.
8866         * doc/posix-functions/towlower_l.texi: Likewise.
8867         * doc/posix-functions/towupper.texi: Likewise.
8868         * doc/posix-functions/towupper_l.texi: Likewise.
8869         * doc/posix-functions/vfwprintf.texi: Likewise.
8870         * doc/posix-functions/vfwscanf.texi: Likewise.
8871         * doc/posix-functions/vswscanf.texi: Likewise.
8872         * doc/posix-functions/vwprintf.texi: Likewise.
8873         * doc/posix-functions/vwscanf.texi: Likewise.
8874         * doc/posix-functions/wcpcpy.texi: Likewise.
8875         * doc/posix-functions/wcpncpy.texi: Likewise.
8876         * doc/posix-functions/wcscasecmp.texi: Likewise.
8877         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
8878         * doc/posix-functions/wcscoll_l.texi: Likewise.
8879         * doc/posix-functions/wcsdup.texi: Likewise.
8880         * doc/posix-functions/wcsncasecmp.texi: Likewise.
8881         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
8882         * doc/posix-functions/wcsnlen.texi: Likewise.
8883         * doc/posix-functions/wcsnrtombs.texi: Likewise.
8884         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
8885         * doc/posix-functions/wctrans_l.texi: Likewise.
8886         * doc/posix-functions/wctype_l.texi: Likewise.
8887         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
8888         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
8889         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
8890         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
8891         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
8892         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
8893         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
8894         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
8895         * doc/glibc-functions/wcschrnul.texi: Likewise.
8896         * doc/glibc-functions/wcsftime_l.texi: Likewise.
8897         * doc/glibc-functions/wcstod_l.texi: Likewise.
8898         * doc/glibc-functions/wcstof_l.texi: Likewise.
8899         * doc/glibc-functions/wcstol_l.texi: Likewise.
8900         * doc/glibc-functions/wcstold_l.texi: Likewise.
8901         * doc/glibc-functions/wcstoll_l.texi: Likewise.
8902         * doc/glibc-functions/wcstoq.texi: Likewise.
8903         * doc/glibc-functions/wcstoul_l.texi: Likewise.
8904         * doc/glibc-functions/wcstoull_l.texi: Likewise.
8905         * doc/glibc-functions/wcstouq.texi: Likewise.
8906         * doc/glibc-functions/wmempcpy.texi: Likewise.
8907
8908 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
8909             Eric Blake  <ebb9@byu.net>
8910             Paolo Bonzini  <bonzini@gnu.org>
8911             Bruno Haible  <bruno@clisp.org>
8912
8913         Make c-stack work on Haiku.
8914         * lib/c-stack.c (SA_ONSTACK): Define fallback.
8915         (c_stack_action): Use SA_ONSTACK flag.
8916
8917 2008-12-22  Bruno Haible  <bruno@clisp.org>
8918
8919         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
8920
8921 2008-12-22  Bruno Haible  <bruno@clisp.org>
8922
8923         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
8924         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
8925         being overridden.
8926         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
8927         New macros.
8928         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
8929         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
8930         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
8931         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
8932
8933 2008-12-22  Bruno Haible  <bruno@clisp.org>
8934
8935         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
8936         from test code.
8937
8938 2008-12-22  Eric Blake  <ebb9@byu.net>
8939
8940         Avoid gcc warnings on cygwin.
8941         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
8942         Avoid unused variable.
8943         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
8944         Likewise.
8945
8946 2008-12-22  Bruno Haible  <bruno@clisp.org>
8947
8948         Remove HAVE_MBRTOWC conditionals.
8949         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
8950         (mbscasecmp): Assume mbrtowc function.
8951         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
8952         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
8953         * lib/mbschr.c: Include mbuiter.h unconditionally.
8954         (mbschr): Assume mbrtowc function.
8955         * lib/mbscspn.c: Include mbuiter.h unconditionally.
8956         (mbscspn): Assume mbrtowc function.
8957         * lib/mbslen.c: Include mbuiter.h unconditionally.
8958         (mbslen): Assume mbrtowc function.
8959         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
8960         (mbsncasecmp): Assume mbrtowc function.
8961         * lib/mbsnlen.c: Include mbiter.h unconditionally.
8962         (mbsnlen): Assume mbrtowc function.
8963         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
8964         (mbspbrk): Assume mbrtowc function.
8965         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
8966         (mbspcasecmp): Assume mbrtowc function.
8967         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
8968         (mbsrchr): Assume mbrtowc function.
8969         * lib/mbssep.c: Include mbuiter.h unconditionally.
8970         (mbssep): Assume mbrtowc function.
8971         * lib/mbsspn.c: Include mbuiter.h unconditionally.
8972         (mbsspn): Assume mbrtowc function.
8973         * lib/mbsstr.c: Include mbuiter.h unconditionally.
8974         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
8975         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
8976         (mbstok_r): Assume mbrtowc function.
8977         * lib/propername.c: Include mbuiter.h unconditionally.
8978         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
8979         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
8980         (trim2): Assume mbrtowc function.
8981         * lib/mbswidth.c (mbsinit): Remove fallback definition.
8982         (mbsnwidth): Assume mbrtowc function.
8983         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
8984         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
8985         fallback definitions.
8986         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
8987
8988 2008-12-22  Bruno Haible  <bruno@clisp.org>
8989
8990         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
8991
8992 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
8993
8994         * modules/regex: Request emulations for the mb*/wc* functions we need.
8995         * m4/regex.m4: Don't look for those functions here.
8996         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
8997
8998 2008-12-22  Bruno Haible  <bruno@clisp.org>
8999
9000         * modules/fnmatch (Depends-on): Remove duplicated dependency.
9001
9002 2008-12-21  Bruno Haible  <bruno@clisp.org>
9003
9004         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
9005         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
9006         (Include): Remove conditionalization.
9007         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
9008         (Include): Remove conditionalization.
9009         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
9010         (Include): Remove conditionalization.
9011         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
9012         * m4/mbfile.m4 (gl_MBFILE): Likewise.
9013         * NEWS: Mention the change.
9014         Reported by Alan Hourihane <alanh@fairlite.co.uk>
9015         via Sergey Poznyakoff <gray@gnu.org.ua>.
9016
9017 2008-12-21  Bruno Haible  <bruno@clisp.org>
9018
9019         * MODULES.html.sh (Extended multibyte and wide character utilities
9020         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
9021         wcrtomb, wcsrtombs.
9022         (Support for systems lacking POSIX:2008): Add accept, bind, close,
9023         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
9024         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
9025         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
9026
9027 2008-12-21  Bruno Haible  <bruno@clisp.org>
9028
9029         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
9030
9031 2008-12-21  Bruno Haible  <bruno@clisp.org>
9032
9033         * modules/wcsnrtombs-tests: New file.
9034         * tests/test-wcsnrtombs1.sh: New file.
9035         * tests/test-wcsnrtombs2.sh: New file.
9036         * tests/test-wcsnrtombs3.sh: New file.
9037         * tests/test-wcsnrtombs4.sh: New file.
9038         * tests/test-wcsnrtombs.c: New file.
9039
9040         New module 'wcsnrtombs'.
9041         * lib/wchar.in.h (wcsnrtombs): New declaration.
9042         * lib/wcsnrtombs.c: New file.
9043         * lib/wcsrtombs-state.c: New file.
9044         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
9045         (internal_state): Remove variable.
9046         * m4/wcsnrtombs.m4: New file.
9047         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
9048         compilation units.
9049         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
9050         HAVE_WCSNRTOMBS.
9051         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
9052         HAVE_WCSNRTOMBS.
9053         * modules/wcsnrtombs: New file.
9054         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
9055         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
9056
9057 2008-12-21  Bruno Haible  <bruno@clisp.org>
9058
9059         * modules/wcsrtombs-tests: New file.
9060         * tests/test-wcsrtombs1.sh: New file.
9061         * tests/test-wcsrtombs2.sh: New file.
9062         * tests/test-wcsrtombs3.sh: New file.
9063         * tests/test-wcsrtombs4.sh: New file.
9064         * tests/test-wcsrtombs.c: New file.
9065
9066         New module 'wcsrtombs'.
9067         * lib/wchar.in.h (wcsrtombs): New declaration.
9068         * lib/wcsrtombs.c: New file.
9069         * m4/wcsrtombs.m4: New file.
9070         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
9071         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
9072         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
9073         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
9074         * modules/wcsrtombs: New file.
9075         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
9076         bugs.
9077
9078 2008-12-21  Bruno Haible  <bruno@clisp.org>
9079
9080         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
9081         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
9082         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
9083         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
9084         if not correct.
9085         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
9086         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
9087         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
9088         m4/locale-zh.m4, m4/codeset.m4.
9089         * doc/posix-functions/wcrtomb.texi: Document the bug.
9090
9091 2008-12-21  Bruno Haible  <bruno@clisp.org>
9092
9093         Work around a btowc() bug on IRIX 6.5.
9094         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
9095         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
9096         REPLACE_WTOBC if not.
9097         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
9098         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
9099         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
9100
9101 2008-12-21  Bruno Haible  <bruno@clisp.org>
9102
9103         * modules/wcrtomb-tests: New file.
9104         * tests/test-wcrtomb.sh: New file.
9105         * tests/test-wcrtomb.c: New file.
9106
9107         New module 'wcrtomb'.
9108         * lib/wchar.in.h (wcrtomb): New declaration.
9109         * lib/wcrtomb.c: New file.
9110         * m4/wcrtomb.m4: New file.
9111         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
9112         HAVE_WCRTOMB.
9113         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
9114         HAVE_WCRTOMB.
9115         * modules/wcrtomb: New file.
9116         * doc/posix-functions/wcrtomb.texi: Mention the new module.
9117
9118 2008-12-21  Bruno Haible  <bruno@clisp.org>
9119
9120         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
9121         * modules/mbsrtowcs (Files): Likewise.
9122         * modules/wctob (Files): Likewise.
9123         * modules/c-strcase-tests (Files): Likewise.
9124         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
9125         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
9126         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
9127         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
9128         * modules/vasnprintf-posix-tests (Files): Likewise.
9129
9130 2008-12-21  William Pursell  <bill.pursell@gmail.com>
9131
9132         gitlog-to-changelog: pass all command-line arguments to git-log
9133         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
9134         it is sometimes convenient to filter the commits in various ways.
9135         gitlog-to-changelog only allows --since to specify a start date,
9136         but git-log itself supports many other filtering mechanisms.
9137         At the moment, I want to filter by branch name.  Rather than
9138         adding a --branch option to gitlog-to-changelog, it seems more
9139         flexible to simply pass all options directly to git-log and let
9140         git do the work.  Notice that this effectively makes --since a
9141         redundant option for gitlog-to-changelog, but removing it would
9142         require current usage to change since calls would then require
9143         an additional '--'.
9144
9145 2008-12-21  Bruno Haible  <bruno@clisp.org>
9146
9147         * modules/mbsnrtowcs-tests: New file.
9148         * tests/test-mbsnrtowcs1.sh: New file.
9149         * tests/test-mbsnrtowcs2.sh: New file.
9150         * tests/test-mbsnrtowcs3.sh: New file.
9151         * tests/test-mbsnrtowcs4.sh: New file.
9152         * tests/test-mbsnrtowcs.c: New file.
9153
9154         New module 'mbsnrtowcs'.
9155         * lib/wchar.in.h (mbsnrtowcs): New declaration.
9156         * lib/mbsnrtowcs.c: New file.
9157         * lib/mbsrtowcs-state.c: New file.
9158         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
9159         (internal_state): Remove variable.
9160         * m4/mbsnrtowcs.m4: New file.
9161         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
9162         compilation units.
9163         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
9164         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
9165         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
9166         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
9167         * modules/mbsnrtowcs: New file.
9168         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
9169         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
9170         portability problem.
9171
9172 2008-12-21  Bruno Haible  <bruno@clisp.org>
9173
9174         Work around mbsrtowcs bug.
9175         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
9176         (gl_FUNC_MBSRTOWCS): Invoke it.
9177         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
9178         m4/locale-zh.m4.
9179         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
9180
9181 2008-12-21  Bruno Haible  <bruno@clisp.org>
9182
9183         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
9184
9185 2008-12-21  Bruno Haible  <bruno@clisp.org>
9186
9187         Update doc for AIX.
9188         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
9189         16-bit wchar_t type.
9190         * doc/posix-functions/btowc.texi: Likewise.
9191         * doc/posix-functions/fgetwc.texi: Likewise.
9192         * doc/posix-functions/fgetws.texi: Likewise.
9193         * doc/posix-functions/fputwc.texi: Likewise.
9194         * doc/posix-functions/fputws.texi: Likewise.
9195         * doc/posix-functions/fwide.texi: Likewise.
9196         * doc/posix-functions/fwprintf.texi: Likewise.
9197         * doc/posix-functions/fwscanf.texi: Likewise.
9198         * doc/posix-functions/getwchar.texi: Likewise.
9199         * doc/posix-functions/getwc.texi: Likewise.
9200         * doc/posix-functions/iswalnum.texi: Likewise.
9201         * doc/posix-functions/iswalpha.texi: Likewise.
9202         * doc/posix-functions/iswblank.texi: Likewise.
9203         * doc/posix-functions/iswcntrl.texi: Likewise.
9204         * doc/posix-functions/iswctype.texi: Likewise.
9205         * doc/posix-functions/iswdigit.texi: Likewise.
9206         * doc/posix-functions/iswgraph.texi: Likewise.
9207         * doc/posix-functions/iswlower.texi: Likewise.
9208         * doc/posix-functions/iswprint.texi: Likewise.
9209         * doc/posix-functions/iswpunct.texi: Likewise.
9210         * doc/posix-functions/iswspace.texi: Likewise.
9211         * doc/posix-functions/iswupper.texi: Likewise.
9212         * doc/posix-functions/iswxdigit.texi: Likewise.
9213         * doc/posix-functions/mbrtowc.texi: Likewise.
9214         * doc/posix-functions/mbsrtowcs.texi: Likewise.
9215         * doc/posix-functions/mbstowcs.texi: Likewise.
9216         * doc/posix-functions/mbtowc.texi: Likewise.
9217         * doc/posix-functions/putwchar.texi: Likewise.
9218         * doc/posix-functions/putwc.texi: Likewise.
9219         * doc/posix-functions/swprintf.texi: Likewise.
9220         * doc/posix-functions/tolower.texi: Likewise.
9221         * doc/posix-functions/toupper.texi: Likewise.
9222         * doc/posix-functions/towctrans.texi: Likewise.
9223         * doc/posix-functions/ungetwc.texi: Likewise.
9224         * doc/posix-functions/vswprintf.texi: Likewise.
9225         * doc/posix-functions/wcrtomb.texi: Likewise.
9226         * doc/posix-functions/wcscat.texi: Likewise.
9227         * doc/posix-functions/wcschr.texi: Likewise.
9228         * doc/posix-functions/wcscmp.texi: Likewise.
9229         * doc/posix-functions/wcscoll.texi: Likewise.
9230         * doc/posix-functions/wcscpy.texi: Likewise.
9231         * doc/posix-functions/wcscspn.texi: Likewise.
9232         * doc/posix-functions/wcsftime.texi: Likewise.
9233         * doc/posix-functions/wcslen.texi: Likewise.
9234         * doc/posix-functions/wcsncat.texi: Likewise.
9235         * doc/posix-functions/wcsncmp.texi: Likewise.
9236         * doc/posix-functions/wcsncpy.texi: Likewise.
9237         * doc/posix-functions/wcspbrk.texi: Likewise.
9238         * doc/posix-functions/wcsrchr.texi: Likewise.
9239         * doc/posix-functions/wcsrtombs.texi: Likewise.
9240         * doc/posix-functions/wcsspn.texi: Likewise.
9241         * doc/posix-functions/wcsstr.texi: Likewise.
9242         * doc/posix-functions/wcstod.texi: Likewise.
9243         * doc/posix-functions/wcstof.texi: Likewise.
9244         * doc/posix-functions/wcstoimax.texi: Likewise.
9245         * doc/posix-functions/wcstok.texi: Likewise.
9246         * doc/posix-functions/wcstold.texi: Likewise.
9247         * doc/posix-functions/wcstoll.texi: Likewise.
9248         * doc/posix-functions/wcstol.texi: Likewise.
9249         * doc/posix-functions/wcstombs.texi: Likewise.
9250         * doc/posix-functions/wcstoull.texi: Likewise.
9251         * doc/posix-functions/wcstoul.texi: Likewise.
9252         * doc/posix-functions/wcstoumax.texi: Likewise.
9253         * doc/posix-functions/wcswidth.texi: Likewise.
9254         * doc/posix-functions/wcsxfrm.texi: Likewise.
9255         * doc/posix-functions/wctob.texi: Likewise.
9256         * doc/posix-functions/wctomb.texi: Likewise.
9257         * doc/posix-functions/wctrans.texi: Likewise.
9258         * doc/posix-functions/wctype.texi: Likewise.
9259         * doc/posix-functions/wcwidth.texi: Likewise.
9260         * doc/posix-functions/wmemchr.texi: Likewise.
9261         * doc/posix-functions/wmemcmp.texi: Likewise.
9262         * doc/posix-functions/wmemcpy.texi: Likewise.
9263         * doc/posix-functions/wmemmove.texi: Likewise.
9264         * doc/posix-functions/wmemset.texi: Likewise.
9265         * doc/posix-functions/wprintf.texi: Likewise.
9266         * doc/posix-functions/wscanf.texi: Likewise.
9267
9268 2008-12-21  Bruno Haible  <bruno@clisp.org>
9269
9270         Update doc for HP-UX 11.11.
9271         * doc/posix-functions/btowc.texi: Clarify that the function is missing
9272         in HP-UX version 11.00, not in all versions of HP-UX 11.
9273         * doc/posix-functions/fwide.texi: Likewise.
9274         * doc/posix-functions/fwprintf.texi: Likewise.
9275         * doc/posix-functions/fwscanf.texi: Likewise.
9276         * doc/posix-functions/inet_ntop.texi: Likewise.
9277         * doc/posix-functions/inet_pton.texi: Likewise.
9278         * doc/posix-functions/mbrlen.texi: Likewise.
9279         * doc/posix-functions/mbrtowc.texi: Likewise.
9280         * doc/posix-functions/mbsinit.texi: Likewise.
9281         * doc/posix-functions/mbsrtowcs.texi: Likewise.
9282         * doc/posix-functions/swprintf.texi: Likewise.
9283         * doc/posix-functions/swscanf.texi: Likewise.
9284         * doc/posix-functions/towctrans.texi: Likewise.
9285         * doc/posix-functions/vfwprintf.texi: Likewise.
9286         * doc/posix-functions/vswprintf.texi: Likewise.
9287         * doc/posix-functions/vwprintf.texi: Likewise.
9288         * doc/posix-functions/wcrtomb.texi: Likewise.
9289         * doc/posix-functions/wcsrtombs.texi: Likewise.
9290         * doc/posix-functions/wcsstr.texi: Likewise.
9291         * doc/posix-functions/wctob.texi: Likewise.
9292         * doc/posix-functions/wctrans.texi: Likewise.
9293         * doc/posix-functions/wmemchr.texi: Likewise.
9294         * doc/posix-functions/wmemcmp.texi: Likewise.
9295         * doc/posix-functions/wmemcpy.texi: Likewise.
9296         * doc/posix-functions/wmemmove.texi: Likewise.
9297         * doc/posix-functions/wmemset.texi: Likewise.
9298         * doc/posix-functions/wprintf.texi: Likewise.
9299         * doc/posix-functions/wscanf.texi: Likewise.
9300
9301 2008-12-21  Bruno Haible  <bruno@clisp.org>
9302
9303         Work around a portability problem.
9304         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
9305         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
9306
9307 2008-12-20  Bruno Haible  <bruno@clisp.org>
9308
9309         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
9310         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
9311         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
9312         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
9313         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
9314
9315         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
9316         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
9317         set.
9318         (GNULIB_defined_mbstate_t): New macro.
9319         (mbsinit): Redefine if REPLACE_MBSINIT is set.
9320         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
9321         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
9322         reuses the system's mbrtowc function but works around the bugs.
9323         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
9324         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
9325         macros.
9326         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
9327         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
9328         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
9329         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
9330         REPLACE_MBSINIT if mbsinit needs to be overridden.
9331         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
9332         REPLACE_MBSINIT, REPLACE_MBRTOWC.
9333         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
9334         REPLACE_MBSINIT, REPLACE_MBRTOWC.
9335         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
9336         m4/locale-zh.m4.
9337         (Depends): Add mbsinit.
9338         * modules/mbsinit (Depends): Add mbrtowc.
9339         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
9340
9341 2008-12-20  Bruno Haible  <bruno@clisp.org>
9342
9343         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
9344         so that there are no conversion errors on AIX.
9345         * tests/test-mbsrtowcs.c (main): LIkewise.
9346
9347 2008-12-20  Bruno Haible  <bruno@clisp.org>
9348
9349         Work around wctob bug on Solaris <= 9.
9350         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
9351         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
9352         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
9353         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
9354         * modules/wctob (Files): Add m4/locale-fr.m4.
9355         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
9356
9357 2008-12-20  Bruno Haible  <bruno@clisp.org>
9358
9359         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
9360         /dev/null.
9361         * tests/test-select-in.sh: Likewise.
9362         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9363
9364 2008-12-20  Bruno Haible  <bruno@clisp.org>
9365
9366         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
9367         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
9368         Cygwin 1.5.x.
9369
9370 2008-12-20  Bruno Haible  <bruno@clisp.org>
9371
9372         Ensure mbstate_t is defined on HP-UX 11.11.
9373         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
9374         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
9375         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
9376         AC_USE_SYSTEM_EXTENSIONS.
9377         * modules/fnmatch (Depends-on): Add extensions.
9378         * modules/mbrlen (Depends-on): Likewise.
9379         * modules/mbrtowc (Depends-on): Likewise.
9380         * modules/mbsinit (Depends-on): Likewise.
9381         * modules/mbsrtowcs (Depends-on): Likewise.
9382         * modules/mbswidth (Depends-on): Likewise.
9383         * modules/quotearg (Depends-on): Likewise.
9384         * modules/strftime (Depends-on): Likewise.
9385
9386 2008-12-20  Bruno Haible  <bruno@clisp.org>
9387
9388         Ensure wctob is declared on IRIX 6.5.
9389         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
9390         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
9391         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
9392         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
9393         of HAVE_WCTOB.
9394         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
9395         HAVE_WCTOB.
9396         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
9397
9398 2008-12-19  Bruno Haible  <bruno@clisp.org>
9399
9400         * modules/mbsrtowcs-tests: New file.
9401         * tests/test-mbsrtowcs1.sh: New file.
9402         * tests/test-mbsrtowcs2.sh: New file.
9403         * tests/test-mbsrtowcs3.sh: New file.
9404         * tests/test-mbsrtowcs4.sh: New file.
9405         * tests/test-mbsrtowcs.c: New file.
9406
9407         New module 'mbsrtowcs'.
9408         * lib/wchar.in.h (mbsrtowcs): New declaration.
9409         * lib/mbsrtowcs.c: New file.
9410         * m4/mbsrtowcs.m4: New file.
9411         * modules/mbsrtowcs: New file.
9412         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
9413         HAVE_MBSRTOWCS.
9414         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
9415         HAVE_MBSRTOWCS.
9416         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
9417
9418 2008-12-19  Bruno Haible  <bruno@clisp.org>
9419
9420         New module 'mbrlen'.
9421         * lib/wchar.in.h (mbrlen): New declaration.
9422         * lib/mbrlen.c: New file.
9423         * m4/mbrlen.m4: New file.
9424         * modules/mbrlen: New file.
9425         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
9426         HAVE_MBRLEN.
9427         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
9428         HAVE_MBRLEN.
9429         * doc/posix-functions/mbrlen.texi: Document the new module.
9430
9431 2008-12-19  Bruno Haible  <bruno@clisp.org>
9432
9433         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
9434         * modules/mbrtowc (Depends-on): Add verify.
9435         Suggested by Paul Eggert.
9436
9437 2008-12-18  Bruno Haible  <bruno@clisp.org>
9438
9439         * modules/mbsinit-tests: New file.
9440         * tests/test-mbsinit.sh: New file.
9441         * tests/test-mbsinit.c: New file.
9442
9443 2008-12-18  Bruno Haible  <bruno@clisp.org>
9444
9445         * modules/mbrtowc-tests: New file.
9446         * tests/test-mbrtowc1.sh: New file.
9447         * tests/test-mbrtowc2.sh: New file.
9448         * tests/test-mbrtowc3.sh: New file.
9449         * tests/test-mbrtowc4.sh: New file.
9450         * tests/test-mbrtowc.c: New file.
9451
9452         New module 'mbrtowc'.
9453         * lib/wchar.in.h (mbstate_t): Override when the system does not have
9454         mbsinit and mbrtowc.
9455         (mbrtowc): New declaration.
9456         * lib/mbrtowc.c: New file.
9457         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
9458         * modules/mbrtowc: New file.
9459         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
9460         HAVE_MBRTOWC.
9461         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
9462         HAVE_MBRTOWC.
9463         * doc/posix-functions/mbrtowc.texi: Document the new module.
9464
9465 2008-12-18  Bruno Haible  <bruno@clisp.org>
9466
9467         New module 'wctob'.
9468         * lib/wchar.in.h (wctob): New declaration.
9469         * lib/wctob.c: New file.
9470         * m4/wctob.m4: New file.
9471         * modules/wctob: New file.
9472         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
9473         HAVE_WCTOB.
9474         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
9475         * doc/posix-functions/wctob.texi: Document the new module.
9476
9477 2008-12-18  Bruno Haible  <bruno@clisp.org>
9478
9479         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
9480         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
9481
9482 2008-12-18  Simon Josefsson  <simon@josefsson.org>
9483
9484         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
9485         G. Christensen" <tgc@jupiterrise.com>.
9486
9487         * lib/flock.c: Need to include errno.h.  Reported by "Tom
9488         G. Christensen" <tgc@jupiterrise.com>.
9489
9490         * lib/flock.c: Need to include string.h.  Reported by "Tom
9491         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
9492         <ebb9@byu.net>.
9493
9494 2008-12-18  Bruno Haible  <bruno@clisp.org>
9495
9496         * m4/locale-ja.m4: New file, from GNU gettext.
9497
9498 2008-12-17  Bruno Haible  <bruno@clisp.org>
9499
9500         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
9501         Suggested by Eric Blake.
9502
9503 2008-12-17  Bruno Haible  <bruno@clisp.org>
9504
9505         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
9506
9507 2008-12-17  Bruno Haible  <bruno@clisp.org>
9508
9509         * lib/mbsinit.c: Include verify.h. Verify an assumption.
9510         * modules/mbsinit (Depends-on): Add verify.
9511         Suggested by Paul Eggert.
9512
9513 2008-12-17  Bruno Haible  <bruno@clisp.org>
9514
9515         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
9516         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
9517         gl_FUNC_MBRTOWC.
9518         * m4/mbiter.m4 (gl_MBITER): LIkewise.
9519         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
9520         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
9521         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
9522         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
9523         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
9524         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
9525         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
9526         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
9527         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
9528         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
9529         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
9530         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
9531         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
9532         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
9533         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9534         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
9535         * modules/trim (configure.ac): Likewise.
9536
9537 2008-12-17  Bruno Haible  <bruno@clisp.org>
9538
9539         * modules/btowc-tests: New file.
9540         * tests/test-btowc1.sh: New file.
9541         * tests/test-btowc2.sh: New file.
9542         * tests/test-btowc.c: New file.
9543
9544         New module 'btowc'.
9545         * lib/wchar.in.h (btowc): New declaration.
9546         * lib/btowc.c: New file.
9547         * m4/btowc.m4: New file.
9548         * modules/btowc: New file.
9549         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
9550         HAVE_BTOWC.
9551         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
9552         * doc/posix-functions/btowc.texi: Document the new module.
9553
9554 2008-12-17  Bruno Haible  <bruno@clisp.org>
9555
9556         New module 'mbsinit'.
9557         * lib/wchar.in.h (mbsinit): New declaration.
9558         * lib/mbsinit.c: New file.
9559         * m4/mbsinit.m4: New file.
9560         * modules/mbsinit: New file.
9561         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
9562         HAVE_MBSINIT.
9563         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
9564         HAVE_MBSINIT.
9565         * doc/posix-functions/mbsinit.texi: Document the new module.
9566
9567 2008-12-16  Bruno Haible  <bruno@clisp.org>
9568
9569         * lib/unistd.in.h: Add comment.
9570         * tests/test-environ.c: Don't include <stdlib.h>.
9571
9572 2008-12-16  Bruno Haible  <bruno@clisp.org>
9573
9574         * lib/parse-duration.h (parse_duration): Document return value
9575         convention.
9576         * lib/parse-duration.c: Include specification header first. Add
9577         comments.
9578         (_): Remove macro.
9579         (parse_year_month_day, parse_hour_minute_second): Move side effects
9580         outside of strchr call.
9581         (parse_non_iso8601): Move side effects outside of isspace call.
9582         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
9583         call.
9584
9585 2008-12-16  Bruno Haible  <bruno@clisp.org>
9586
9587         * tests/test-parse-duration.sh: Produce no output when the test
9588         succeeds.
9589
9590 2008-12-16  Bruno Haible  <bruno@clisp.org>
9591
9592         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
9593         expressions.
9594
9595 2008-12-15  Bruno Haible  <bruno@clisp.org>
9596
9597         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
9598         * doc/glibc-functions/flistxattr.texi: Likewise.
9599         * doc/glibc-functions/fopencookie.texi: Likewise.
9600         * doc/glibc-functions/fremovexattr.texi: Likewise.
9601         * doc/glibc-functions/fsetxattr.texi: Likewise.
9602         * doc/glibc-functions/getxattr.texi: Likewise.
9603         * doc/glibc-functions/lgetxattr.texi: Likewise.
9604         * doc/glibc-functions/listxattr.texi: Likewise.
9605         * doc/glibc-functions/llistxattr.texi: Likewise.
9606         * doc/glibc-functions/lremovexattr.texi: Likewise.
9607         * doc/glibc-functions/lsetxattr.texi: Likewise.
9608         * doc/glibc-functions/removexattr.texi: Likewise.
9609         * doc/glibc-functions/setxattr.texi: Likewise.
9610         * doc/posix-functions/open_memstream.texi: Likewise.
9611
9612 2008-12-15  Eric Blake  <ebb9@byu.net>
9613
9614         Update doc for cygwin 1.7.
9615         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
9616         functions.
9617         * doc/posix-functions/fchmodat.texi: Likewise.
9618         * doc/posix-functions/fchownat.texi: Likewise.
9619         * doc/posix-functions/fdopendir.texi: Likewise.
9620         * doc/posix-functions/fmemopen.texi: Likewise.
9621         * doc/posix-functions/freeaddrinfo.texi: Likewise.
9622         * doc/posix-functions/fstatat.texi: Likewise.
9623         * doc/posix-functions/futimens.texi: Likewise.
9624         * doc/posix-functions/gai_strerror.texi: Likewise.
9625         * doc/posix-functions/getaddrinfo.texi: Likewise.
9626         * doc/posix-functions/getnameinfo.texi: Likewise.
9627         * doc/posix-functions/if_freenameindex.texi: Likewise.
9628         * doc/posix-functions/if_indextoname.texi: Likewise.
9629         * doc/posix-functions/if_nameindex.texi: Likewise.
9630         * doc/posix-functions/if_nametoindex.texi: Likewise.
9631         * doc/posix-functions/insque.texi: Likewise.
9632         * doc/posix-functions/linkat.texi: Likewise.
9633         * doc/posix-functions/llrint.texi: Likewise.
9634         * doc/posix-functions/llrintf.texi: Likewise.
9635         * doc/posix-functions/llrintl.texi: Likewise.
9636         * doc/posix-functions/lockf.texi: Likewise.
9637         * doc/posix-functions/lrintl.texi: Likewise.
9638         * doc/posix-functions/mkdirat.texi: Likewise.
9639         * doc/posix-functions/mkfifoat.texi: Likewise.
9640         * doc/posix-functions/mknodat.texi: Likewise.
9641         * doc/posix-functions/mq_close.texi: Likewise.
9642         * doc/posix-functions/mq_getattr.texi: Likewise.
9643         * doc/posix-functions/mq_notify.texi: Likewise.
9644         * doc/posix-functions/mq_open.texi: Likewise.
9645         * doc/posix-functions/mq_receive.texi: Likewise.
9646         * doc/posix-functions/mq_send.texi: Likewise.
9647         * doc/posix-functions/mq_setattr.texi: Likewise.
9648         * doc/posix-functions/mq_timedreceive.texi: Likewise.
9649         * doc/posix-functions/mq_timedsend.texi: Likewise.
9650         * doc/posix-functions/mq_unlink.texi: Likewise.
9651         * doc/posix-functions/open_memstream.texi: Likewise.
9652         * doc/posix-functions/openat.texi: Likewise.
9653         * doc/posix-functions/posix_fadvise.texi: Likewise.
9654         * doc/posix-functions/posix_fallocate.texi: Likewise.
9655         * doc/posix-functions/posix_madvise.texi: Likewise.
9656         * doc/posix-functions/posix_memalign.texi: Likewise.
9657         * doc/posix-functions/posix_openpt.texi: Likewise.
9658         * doc/posix-functions/readlinkat.texi: Likewise.
9659         * doc/posix-functions/remque.texi: Likewise.
9660         * doc/posix-functions/renameat.texi: Likewise.
9661         * doc/posix-functions/rintl.texi: Likewise.
9662         * doc/posix-functions/sem_unlink.texi: Likewise.
9663         * doc/posix-functions/shm_open.texi: Likewise.
9664         * doc/posix-functions/shm_unlink.texi: Likewise.
9665         * doc/posix-functions/signgam.texi: Likewise.
9666         * doc/posix-functions/sigset.texi: Likewise.
9667         * doc/posix-functions/stpcpy.texi: Likewise.
9668         * doc/posix-functions/stpncpy.texi: Likewise.
9669         * doc/posix-functions/strerror.texi: Likewise.
9670         * doc/posix-functions/strtod.texi: Likewise.
9671         * doc/posix-functions/symlinkat.texi: Likewise.
9672         * doc/posix-functions/unlinkat.texi: Likewise.
9673         * doc/posix-functions/utimensat.texi: Likewise.
9674         * doc/glibc-functions/bindresvport.texi: Likewise.
9675         * doc/glibc-functions/dn_expand.texi: Likewise.
9676         * doc/glibc-functions/exp10.texi: Likewise.
9677         * doc/glibc-functions/exp10f.texi: Likewise.
9678         * doc/glibc-functions/fgetxattr.texi: Likewise.
9679         * doc/glibc-functions/flistxattr.texi: Likewise.
9680         * doc/glibc-functions/fopencookie.texi: Likewise.
9681         * doc/glibc-functions/freeifaddrs.texi: Likewise.
9682         * doc/glibc-functions/fremovexattr.texi: Likewise.
9683         * doc/glibc-functions/fsetxattr.texi: Likewise.
9684         * doc/glibc-functions/getifaddrs.texi: Likewise.
9685         * doc/glibc-functions/getxattr.texi: Likewise.
9686         * doc/glibc-functions/lgetxattr.texi: Likewise.
9687         * doc/glibc-functions/listxattr.texi: Likewise.
9688         * doc/glibc-functions/llistxattr.texi: Likewise.
9689         * doc/glibc-functions/lremovexattr.texi: Likewise.
9690         * doc/glibc-functions/lsetxattr.texi: Likewise.
9691         * doc/glibc-functions/pow10.texi: Likewise.
9692         * doc/glibc-functions/pow10f.texi: Likewise.
9693         * doc/glibc-functions/rcmd_af.texi: Likewise.
9694         * doc/glibc-functions/removexattr.texi: Likewise.
9695         * doc/glibc-functions/res_init.texi: Likewise.
9696         * doc/glibc-functions/res_mkquery.texi: Likewise.
9697         * doc/glibc-functions/res_query.texi: Likewise.
9698         * doc/glibc-functions/res_querydomain.texi: Likewise.
9699         * doc/glibc-functions/res_send.texi: Likewise.
9700         * doc/glibc-functions/rresvport_af.texi: Likewise.
9701         * doc/glibc-functions/setxattr.texi: Likewise.
9702         * doc/glibc-functions/strcasestr.texi: Likewise.
9703
9704 2008-12-15  Bruno Haible  <bruno@clisp.org>
9705
9706         Fix compilation error on OSF/1 4.0.
9707         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
9708         <sys/time.h>, simply delegate to the system header.
9709         Reported by Daniel Richard G. <oss@teragram.com>.
9710
9711 2008-12-15  Bruno Haible  <bruno@clisp.org>
9712
9713         * doc/posix-functions/openat.texi: Mention the 'openat' module.
9714         * doc/posix-functions/fchmodat.texi: Likewise.
9715         * doc/posix-functions/fchownat.texi: Likewise.
9716         * doc/posix-functions/fdopendir.texi: Likewise.
9717         * doc/posix-functions/fstatat.texi: Likewise.
9718         * doc/posix-functions/mkdirat.texi: Likewise.
9719         * doc/posix-functions/unlinkat.texi: Likewise.
9720
9721 2008-12-14  Bruno Haible  <bruno@clisp.org>
9722
9723         Update doc for POSIX:2008.
9724         * doc/posix-functions/faccessat.texi: New file.
9725         * doc/posix-functions/fchmodat.texi: New file.
9726         * doc/posix-functions/fchownat.texi: New file.
9727         * doc/posix-functions/fdopendir.texi: New file.
9728         * doc/posix-functions/fstatat.texi: New file.
9729         * doc/posix-functions/futimens.texi: New file.
9730         * doc/posix-functions/linkat.texi: New file.
9731         * doc/posix-functions/mkdirat.texi: New file.
9732         * doc/posix-functions/mkfifoat.texi: New file.
9733         * doc/posix-functions/mknodat.texi: New file.
9734         * doc/posix-functions/open_wmemstream.texi: New file.
9735         * doc/posix-functions/openat.texi: New file.
9736         * doc/posix-functions/psiginfo.texi: New file.
9737         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
9738         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
9739         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
9740         * doc/posix-functions/readlinkat.texi: New file.
9741         * doc/posix-functions/renameat.texi: New file.
9742         * doc/posix-functions/strerror_l.texi: New file.
9743         * doc/posix-functions/symlinkat.texi: New file.
9744         * doc/posix-functions/unlinkat.texi: New file.
9745         * doc/posix-functions/utimensat.texi: New file.
9746         * doc/gnulib.texi (Function Substitutes): Add these subsections.
9747
9748 2008-12-14  Bruno Haible  <bruno@clisp.org>
9749
9750         Update doc for POSIX:2008.
9751         * doc/posix-functions/alphasort.texi: Renamed from
9752         doc/glibc-functions/alphasort.texi.
9753         * doc/posix-functions/dirfd.texi: Renamed from
9754         doc/glibc-functions/dirfd.texi.
9755         * doc/posix-functions/dprintf.texi: Renamed from
9756         doc/glibc-functions/dprintf.texi.
9757         * doc/posix-functions/duplocale.texi: Renamed from
9758         doc/glibc-functions/duplocale.texi.
9759         * doc/posix-functions/fexecve.texi: Renamed from
9760         doc/glibc-functions/fexecve.texi.
9761         * doc/posix-functions/fmemopen.texi: Renamed from
9762         doc/glibc-functions/fmemopen.texi.
9763         * doc/posix-functions/freelocale.texi: Renamed from
9764         doc/glibc-functions/freelocale.texi.
9765         * doc/posix-functions/getdate_err.texi: Renamed from
9766         doc/glibc-functions/getdate_err.texi.
9767         * doc/posix-functions/isalnum_l.texi: Renamed from
9768         doc/glibc-functions/isalnum_l.texi.
9769         * doc/posix-functions/isalpha_l.texi: Renamed from
9770         doc/glibc-functions/isalpha_l.texi.
9771         * doc/posix-functions/isblank_l.texi: Renamed from
9772         doc/glibc-functions/isblank_l.texi.
9773         * doc/posix-functions/iscntrl_l.texi: Renamed from
9774         doc/glibc-functions/iscntrl_l.texi.
9775         * doc/posix-functions/isdigit_l.texi: Renamed from
9776         doc/glibc-functions/isdigit_l.texi.
9777         * doc/posix-functions/isgraph_l.texi: Renamed from
9778         doc/glibc-functions/isgraph_l.texi.
9779         * doc/posix-functions/islower_l.texi: Renamed from
9780         doc/glibc-functions/islower_l.texi.
9781         * doc/posix-functions/isprint_l.texi: Renamed from
9782         doc/glibc-functions/isprint_l.texi.
9783         * doc/posix-functions/ispunct_l.texi: Renamed from
9784         doc/glibc-functions/ispunct_l.texi.
9785         * doc/posix-functions/isspace_l.texi: Renamed from
9786         doc/glibc-functions/isspace_l.texi.
9787         * doc/posix-functions/isupper_l.texi: Renamed from
9788         doc/glibc-functions/isupper_l.texi.
9789         * doc/posix-functions/iswalnum_l.texi: Renamed from
9790         doc/glibc-functions/iswalnum_l.texi.
9791         * doc/posix-functions/iswalpha_l.texi: Renamed from
9792         doc/glibc-functions/iswalpha_l.texi.
9793         * doc/posix-functions/iswblank_l.texi: Renamed from
9794         doc/glibc-functions/iswblank_l.texi.
9795         * doc/posix-functions/iswcntrl_l.texi: Renamed from
9796         doc/glibc-functions/iswcntrl_l.texi.
9797         * doc/posix-functions/iswctype_l.texi: Renamed from
9798         doc/glibc-functions/iswctype_l.texi.
9799         * doc/posix-functions/iswdigit_l.texi: Renamed from
9800         doc/glibc-functions/iswdigit_l.texi.
9801         * doc/posix-functions/iswgraph_l.texi: Renamed from
9802         doc/glibc-functions/iswgraph_l.texi.
9803         * doc/posix-functions/iswlower_l.texi: Renamed from
9804         doc/glibc-functions/iswlower_l.texi.
9805         * doc/posix-functions/iswprint_l.texi: Renamed from
9806         doc/glibc-functions/iswprint_l.texi.
9807         * doc/posix-functions/iswpunct_l.texi: Renamed from
9808         doc/glibc-functions/iswpunct_l.texi.
9809         * doc/posix-functions/iswspace_l.texi: Renamed from
9810         doc/glibc-functions/iswspace_l.texi.
9811         * doc/posix-functions/iswupper_l.texi: Renamed from
9812         doc/glibc-functions/iswupper_l.texi.
9813         * doc/posix-functions/iswxdigit_l.texi: Renamed from
9814         doc/glibc-functions/iswxdigit_l.texi.
9815         * doc/posix-functions/isxdigit_l.texi: Renamed from
9816         doc/glibc-functions/isxdigit_l.texi.
9817         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
9818         doc/glibc-functions/mbsnrtowcs.texi.
9819         * doc/posix-functions/mkdtemp.texi: Renamed from
9820         doc/glibc-functions/mkdtemp.texi.
9821         * doc/posix-functions/newlocale.texi: Renamed from
9822         doc/glibc-functions/newlocale.texi.
9823         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
9824         doc/glibc-functions/nl_langinfo_l.texi.
9825         * doc/posix-functions/open_memstream.texi: Renamed from
9826         doc/glibc-functions/open_memstream.texi.
9827         * doc/posix-functions/opterr.texi: Renamed from
9828         doc/glibc-functions/opterr.texi.
9829         * doc/posix-functions/optind.texi: Renamed from
9830         doc/glibc-functions/optind.texi.
9831         * doc/posix-functions/optopt.texi: Renamed from
9832         doc/glibc-functions/optopt.texi.
9833         * doc/posix-functions/psignal.texi: Renamed from
9834         doc/glibc-functions/psignal.texi.
9835         * doc/posix-functions/scandir.texi: Renamed from
9836         doc/glibc-functions/scandir.texi.
9837         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
9838         doc/glibc-functions/sched_get_priority_min.texi.
9839         * doc/posix-functions/signgam.texi: Renamed from
9840         doc/glibc-functions/signgam.texi.
9841         * doc/posix-functions/stpcpy.texi: Renamed from
9842         doc/glibc-functions/stpcpy.texi.
9843         * doc/posix-functions/stpncpy.texi: Renamed from
9844         doc/glibc-functions/stpncpy.texi.
9845         * doc/posix-functions/strcasecmp_l.texi: Renamed from
9846         doc/glibc-functions/strcasecmp_l.texi.
9847         * doc/posix-functions/strcoll_l.texi: Renamed from
9848         doc/glibc-functions/strcoll_l.texi.
9849         * doc/posix-functions/strfmon_l.texi: Renamed from
9850         doc/glibc-functions/strfmon_l.texi.
9851         * doc/posix-functions/strftime_l.texi: Renamed from
9852         doc/glibc-functions/strftime_l.texi.
9853         * doc/posix-functions/strncasecmp_l.texi: Renamed from
9854         doc/glibc-functions/strncasecmp_l.texi.
9855         * doc/posix-functions/strndup.texi: Renamed from
9856         doc/glibc-functions/strndup.texi.
9857         * doc/posix-functions/strnlen.texi: Renamed from
9858         doc/glibc-functions/strnlen.texi.
9859         * doc/posix-functions/strsignal.texi: Renamed from
9860         doc/glibc-functions/strsignal.texi.
9861         * doc/posix-functions/strxfrm_l.texi: Renamed from
9862         doc/glibc-functions/strxfrm_l.texi.
9863         * doc/posix-functions/timer_gettime.texi: Renamed from
9864         doc/glibc-functions/timer_gettime.texi.
9865         * doc/posix-functions/tolower_l.texi: Renamed from
9866         doc/glibc-functions/tolower_l.texi.
9867         * doc/posix-functions/toupper_l.texi: Renamed from
9868         doc/glibc-functions/toupper_l.texi.
9869         * doc/posix-functions/towctrans_l.texi: Renamed from
9870         doc/glibc-functions/towctrans_l.texi.
9871         * doc/posix-functions/towlower_l.texi: Renamed from
9872         doc/glibc-functions/towlower_l.texi.
9873         * doc/posix-functions/towupper_l.texi: Renamed from
9874         doc/glibc-functions/towupper_l.texi.
9875         * doc/posix-functions/uselocale.texi: Renamed from
9876         doc/glibc-functions/uselocale.texi.
9877         * doc/posix-functions/vdprintf.texi: Renamed from
9878         doc/glibc-functions/vdprintf.texi.
9879         * doc/posix-functions/wcpcpy.texi:
9880         Renamed from doc/glibc-functions/wcpcpy.texi.
9881         * doc/posix-functions/wcpncpy.texi: Renamed from
9882         doc/glibc-functions/wcpncpy.texi.
9883         * doc/posix-functions/wcscasecmp.texi: Renamed from
9884         doc/glibc-functions/wcscasecmp.texi.
9885         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
9886         doc/glibc-functions/wcscasecmp_l.texi.
9887         * doc/posix-functions/wcscoll_l.texi: Renamed from
9888         doc/glibc-functions/wcscoll_l.texi.
9889         * doc/posix-functions/wcsdup.texi: Renamed from
9890         doc/glibc-functions/wcsdup.texi.
9891         * doc/posix-functions/wcsncasecmp.texi: Renamed from
9892         doc/glibc-functions/wcsncasecmp.texi.
9893         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
9894         doc/glibc-functions/wcsncasecmp_l.texi.
9895         * doc/posix-functions/wcsnlen.texi: Renamed from
9896         doc/glibc-functions/wcsnlen.texi.
9897         * doc/posix-functions/wcsnrtombs.texi: Renamed from
9898         doc/glibc-functions/wcsnrtombs.texi.
9899         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
9900         doc/glibc-functions/wcsxfrm_l.texi.
9901         * doc/posix-functions/wctrans_l.texi: Renamed from
9902         doc/glibc-functions/wctrans_l.texi.
9903         * doc/posix-functions/wctype_l.texi: Renamed from
9904         doc/glibc-functions/wctype_l.texi.
9905         * doc/gnulib.texi (Function Substitutes): Add these subsections.
9906         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
9907         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
9908         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
9909         these subsections.
9910         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
9911         Remove sections.
9912
9913 2008-12-14  Bruno Haible  <bruno@clisp.org>
9914
9915         Update doc for POSIX:2008.
9916         * doc/posix-functions/*.texi: Update URL of POSIX specification.
9917
9918 2008-12-14  Bruno Haible  <bruno@clisp.org>
9919
9920         Update doc for POSIX:2008.
9921         * doc/pastposix-functions/bcmp.texi: Renamed from
9922         doc/posix-functions/bcmp.texi.
9923         * doc/pastposix-functions/bcopy.texi: Renamed from
9924         doc/posix-functions/bcopy.texi.
9925         * doc/pastposix-functions/bsd_signal.texi: Renamed from
9926         doc/posix-functions/bsd_signal.texi.
9927         * doc/pastposix-functions/bzero.texi: Renamed from
9928         doc/posix-functions/bzero.texi.
9929         * doc/pastposix-functions/ecvt.texi: Renamed from
9930         doc/posix-functions/ecvt.texi.
9931         * doc/pastposix-functions/fcvt.texi: Renamed from
9932         doc/posix-functions/fcvt.texi.
9933         * doc/pastposix-functions/ftime.texi: Renamed from
9934         doc/posix-functions/ftime.texi.
9935         * doc/pastposix-functions/gcvt.texi: Renamed from
9936         doc/posix-functions/gcvt.texi.
9937         * doc/pastposix-functions/getcontext.texi: Renamed from
9938         doc/posix-functions/getcontext.texi.
9939         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
9940         doc/posix-functions/gethostbyaddr.texi.
9941         * doc/pastposix-functions/gethostbyname.texi: Renamed from
9942         doc/posix-functions/gethostbyname.texi.
9943         * doc/pastposix-functions/getwd.texi: Renamed from
9944         doc/posix-functions/getwd.texi.
9945         * doc/pastposix-functions/h_errno.texi: Renamed from
9946         doc/posix-functions/h_errno.texi.
9947         * doc/pastposix-functions/index.texi: Renamed from
9948         doc/posix-functions/index.texi.
9949         * doc/pastposix-functions/makecontext.texi: Renamed from
9950         doc/posix-functions/makecontext.texi.
9951         * doc/pastposix-functions/mktemp.texi: Renamed from
9952         doc/posix-functions/mktemp.texi.
9953         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
9954         doc/posix-functions/pthread_attr_getstackaddr.texi.
9955         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
9956         doc/posix-functions/pthread_attr_setstackaddr.texi.
9957         * doc/pastposix-functions/rindex.texi: Renamed from
9958         doc/posix-functions/rindex.texi.
9959         * doc/pastposix-functions/scalb.texi: Renamed from
9960         doc/posix-functions/scalb.texi.
9961         * doc/pastposix-functions/setcontext.texi: Renamed from
9962         doc/posix-functions/setcontext.texi.
9963         * doc/pastposix-functions/swapcontext.texi: Renamed from
9964         doc/posix-functions/swapcontext.texi.
9965         * doc/pastposix-functions/ualarm.texi: Renamed from
9966         doc/posix-functions/ualarm.texi.
9967         * doc/pastposix-functions/usleep.texi: Renamed from
9968         doc/posix-functions/usleep.texi.
9969         * doc/pastposix-functions/vfork.texi: Renamed from
9970         doc/posix-functions/vfork.texi.
9971         * doc/pastposix-functions/wcswcs.texi: Renamed from
9972         doc/posix-functions/wcswcs.texi.
9973         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
9974         (Function Substitutes): Update.
9975
9976 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9977
9978         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
9979         m4/strerror.m4.
9980
9981 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9982             Bruno Haible  <bruno@clisp.org>
9983
9984         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
9985
9986 2008-12-13  Bruno Haible  <bruno@clisp.org>
9987
9988         * modules/strtoull (Depends-on): Remove unistd.
9989
9990 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9991
9992         * modules/strtoull (Depends-on): Add stdlib.
9993
9994 2008-12-11  Simon Josefsson  <simon@josefsson.org>
9995
9996         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
9997
9998 2008-12-10  Jim Meyering  <meyering@redhat.com>
9999
10000         gl_ASSERT: don't say assertions are disabled when they're not
10001         * m4/assert.m4 (gl_ASSERT): Do not make configure report
10002         "checking whether to enable assertions... no", when they are in
10003         fact enabled.  This is solely a bug in the output of configure.
10004         In spite of saying "no", NDEBUG was not defined in that case.
10005         Also, as noted by Eric Blake, leave assertions enabled upon
10006         --enable-assert=INVALID.
10007
10008 2008-12-10  Bruno Haible  <bruno@clisp.org>
10009
10010         Change MODULES.html to refer to POSIX:2008 where possible.
10011         * MODULES.html.sh (POSIX2008_URL): New variable.
10012         (posix_headers): Remove sys/timeb, ucontext.
10013         (posix2001_headers): New variable.
10014         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
10015         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
10016         index, makecontext, mktemp, pthread_attr_getstackaddr,
10017         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
10018         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
10019         (posix2001_functions): New variable.
10020         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
10021         otherwise.
10022
10023 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10024
10025         add missing include to parse-duration.c
10026         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
10027         * modules/parse-duration (Depends-on): Add xalloc.
10028
10029         fix sed script reading maint.mk
10030         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
10031         (syntax-check-rules): Use it.
10032
10033 2008-12-09  Bruno Haible  <bruno@clisp.org>
10034
10035         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
10036         MacOS X 10.4/PowerPC.
10037         Reported by Simon Josefsson.
10038
10039 2008-12-08  Jim Meyering  <meyering@redhat.com>
10040
10041         work around mingw's lack of some S_IF definitions
10042         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
10043         Reported by Simon Josefsson.
10044
10045 2008-12-08  Bruno Haible  <bruno@clisp.org>
10046
10047         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
10048         applied to variables. Needed on MacOS X 10.4/PowerPC.
10049         Reported by Simon Josefsson.
10050
10051 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
10052         and Eric Blake  <ebb9@byu.net>
10053
10054         assert: honor --enable-assert
10055         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
10056         order to honor --enable-assert, rather than treating it as a
10057         synonym for --disable-assert.
10058
10059 2008-12-08  Jim Meyering  <meyering@redhat.com>
10060
10061         * lib/posixtm.c: Remove now-useless declaration of mktime.
10062
10063         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
10064
10065 2008-12-07  Bruno Haible  <bruno@clisp.org>
10066
10067         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
10068         test_once): Mark functions as static.
10069         * tests/test-tls.c (test_tls): Likewise.
10070
10071 2008-12-07  Bruno Haible  <bruno@clisp.org>
10072
10073         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
10074         iconv_register_autodetect.
10075
10076 2008-12-07  Jim Meyering  <meyering@redhat.com>
10077
10078         posixtm.c: avoid a warning
10079         * lib/posixtm.c (posixtime): Don't initialize tm0.
10080         It's no longer needed to placate gcc4's -Wuninitialized,
10081         and the attempt to placate would elicit a new warning.
10082
10083         unicodeio.c: mark unused parameters
10084         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
10085         (fallback_failure_callback): Likewise.
10086
10087 2008-12-07  Bruno Haible  <bruno@clisp.org>
10088
10089         * gnulib-tool (func_create_testdir): When building the tests
10090         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
10091         Reported by Simon Josefsson.
10092
10093 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10094
10095         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
10096
10097 2008-12-06  Bruno Haible  <bruno@clisp.org>
10098
10099         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
10100         Suggested by Eric Blake.
10101
10102 2008-12-06  Bruno Haible  <bruno@clisp.org>
10103
10104         Fix a c-stack test failure on MacOS X.
10105         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
10106         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
10107         handler for SIGBUS as well.
10108         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
10109         install a signal handler for SIGBUS as well.
10110         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
10111
10112 2008-12-06  Bruno Haible  <bruno@clisp.org>
10113
10114         Advocacy documentation.
10115         * doc/gnulib-intro.texi (Benefits): New section.
10116         * doc/gnulib.texi: Update.
10117
10118 2008-12-06  Bruno Haible  <bruno@clisp.org>
10119
10120         Document the 'manywarnings' module.
10121         * doc/manywarnings.texi: New file.
10122         * doc/gnulib.texi: Include it.
10123
10124 2008-12-05  Eric Blake  <ebb9@byu.net>
10125
10126         tests: silence some gcc warnings
10127         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
10128         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
10129         type mismatches.
10130
10131 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10132             Bruno Haible  <bruno@clisp.org>
10133
10134         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
10135
10136 2008-11-29  Jim Meyering  <meyering@redhat.com>
10137
10138         unicodeio.c: mark unused parameters
10139         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
10140         (fallback_failure_callback): Likewise.
10141
10142         fts: fix a thinko
10143         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
10144         (set_stat_type): Return S_IF*-valued "type" directly.
10145         Prompted by James Youngman's spotting a related bug.
10146         Confirmed by further testing through find.
10147
10148         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
10149         * lib/fts.c (D_TYPE): Define.
10150         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
10151         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
10152         (s_ifmt_shift_bits): New function.
10153         (set_stat_type): New function.
10154         (fts_build): When not calling fts_stat, call set_stat_type
10155         to propagate dirent.d_type info to fts_read caller.
10156         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
10157         fts_statp->st_mode type information may be valid.
10158
10159 2008-11-28  Simon Josefsson  <simon@josefsson.org>
10160
10161         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
10162         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
10163         <sds@gnu.org>.
10164
10165 2008-11-20  Bruno Haible  <bruno@clisp.org>
10166
10167         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
10168         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
10169         INCLUDE_NEXT.
10170         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
10171         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
10172         * modules/math (Makefile.am): Substitute
10173         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
10174         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10175
10176 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
10177             Bruno Haible  <bruno@clisp.org>
10178
10179         * lib/stdint.in.h: Define all type macros so that their expansion is
10180         a single typedef'ed token. Fixes a compilation failure in Boost which
10181         does "using ::int8_t;".
10182
10183 2008-11-18  Simon Josefsson  <simon@josefsson.org>
10184
10185         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
10186         gl_MANYWARN_ALL_GCC.
10187         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
10188         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
10189         * modules/manywarnings: New file.
10190         * MODULES.html.sh: Mention manywarnings module.
10191
10192 2008-11-18  Bruno Haible  <bruno@clisp.org>
10193
10194         * doc/gnulib-tool.texi (Unit tests): New section.
10195
10196 2008-11-18  Simon Josefsson  <simon@josefsson.org>
10197
10198         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
10199         paths like 'lib/po/foo.po'.
10200
10201 2008-11-17  Simon Josefsson  <simon@josefsson.org>
10202
10203         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
10204         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
10205
10206 2008-11-17  Simon Josefsson  <simon@josefsson.org>
10207
10208         * m4/warnings.m4: Use CPPFLAGS to really check whether the
10209         parameter works.
10210
10211 2008-11-17  Simon Josefsson  <simon@josefsson.org>
10212
10213         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
10214
10215 2008-11-17  Bruce Korb  <bkorb@gnu.org>
10216
10217         * modules/parse-duration-tests: New file.
10218         * tests/test-parse-duration.sh: New file.
10219         * tests/test-parse-duration.c: New file.
10220
10221         New module 'parse-duration'.
10222         * lib/parse-duration.h: New file.
10223         * lib/parse-duration.c: New file.
10224         * modules/parse-duration: New file.
10225
10226 2008-11-17  Bruno Haible  <bruno@clisp.org>
10227
10228         * tests/test-select-out.sh: Comment out the first pipe test.
10229         Reported by Simon Josefsson.
10230
10231 2008-11-17  Bruno Haible  <bruno@clisp.org>
10232
10233         * modules/getaddrinfo (Depends-on): Add servent, hostent.
10234         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
10235         gl_HOSTENT.
10236
10237 2008-11-17  Bruno Haible  <bruno@clisp.org>
10238
10239         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
10240         -lnetwork and -lnet. Needed for Haiku and BeOS.
10241
10242 2008-11-16  Bruno Haible  <bruno@clisp.org>
10243
10244         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
10245
10246 2008-11-16  Bruno Haible  <bruno@clisp.org>
10247
10248         Avoid test failure on Haiku.
10249         * tests/test-fsync.c: Include <errno.h>.
10250         (main): Don't require that fsync (0) fails.
10251
10252 2008-11-15  Bruno Haible  <bruno@clisp.org>
10253
10254         New module 'hostent'.
10255         * modules/hostent: New file.
10256         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
10257
10258 2008-11-15  Bruno Haible  <bruno@clisp.org>
10259
10260         New module 'servent'.
10261         * modules/servent: New file.
10262         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
10263
10264 2008-11-15  Bruno Haible  <bruno@clisp.org>
10265
10266         Avoid generating same test program with two different rules.
10267         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
10268         test-frexp to test-frexp-nolibm.
10269         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
10270         test-frexpl to test-frexpl-nolibm.
10271
10272 2008-11-15  Bruno Haible  <bruno@clisp.org>
10273
10274         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
10275         $(FREXPL_LIBM).
10276
10277 2008-11-15  Bruno Haible  <bruno@clisp.org>
10278
10279         * lib/netdb.in.h: Activate the definitions also when the system's
10280         <netdb.h> has 'struct addrinfo'.
10281         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
10282         EAI_OVERFLOW or AI_NUMERICSERV.
10283         * doc/posix-headers/netdb.texi: Document the problem.
10284
10285 2008-11-15  Bruno Haible  <bruno@clisp.org>
10286
10287         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
10288
10289         Make the 'sched' module work on platforms where <sched.h> exists but
10290         is incomplete (such as Haiku).
10291         * lib/sched.in.h; Include the system's <sched.h> if it exists.
10292         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
10293         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
10294         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
10295         HAVE_STRUCT_SCHED_PARAM.
10296         * modules/sched (Depends-on): Add include_next.
10297         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
10298         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
10299         * doc/posix-headers/sched.texi: Document the issue.
10300
10301 2008-11-13  Jim Meyering  <meyering@redhat.com>
10302
10303         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
10304         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
10305         test would fail due to the difference in the Report bugs to ...
10306         line.  The expected address is empty, "<>", while the actual
10307         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
10308
10309 2008-11-12  Bruno Haible  <bruno@clisp.org>
10310
10311         lstat: don't compile lstat.c on systems lacking lstat
10312         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
10313         which don't have lstat; this is handled by lib/sys_stat.in.h already.
10314         Reported by Daniel P. Berrange via Jim Meyering.
10315
10316 2008-11-12  Jim Meyering  <meyering@redhat.com>
10317
10318         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
10319
10320 2008-11-12  Simon Josefsson  <simon@josefsson.org>
10321
10322         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
10323         instead.
10324
10325 2008-11-12  Bruno Haible  <bruno@clisp.org>
10326
10327         * lib/unicodeio.c: Include unistr.h.
10328         (utf8_wctomb): Remove function.
10329         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
10330
10331 2008-11-12  Simon Josefsson  <simon@josefsson.org>
10332
10333         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
10334         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
10335         <bruno@clisp.org>.
10336         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
10337
10338 2008-11-12  Simon Josefsson  <simon@josefsson.org>
10339
10340         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
10341         * doc/gnulib.texi: Add section for warnings.
10342
10343 2008-11-11  Bruno Haible  <bruno@clisp.org>
10344
10345         * lib/sockets.h: Add a comment.
10346
10347 2008-11-11  Karl Berry  <karl@gnu.org>
10348
10349         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
10350
10351 2008-11-11  Eric Blake  <ebb9@byu.net>
10352
10353         fdl.texi: avoid git symlinks
10354         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
10355
10356 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
10357
10358         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
10359
10360 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
10361
10362         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
10363         (gl_WARN_ADD): Substitute $2 if literal.
10364
10365 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
10366
10367         * m4/warning.m4: Remove.
10368
10369 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
10370
10371         * m4/warnings.m4: Almost complete rewrite. :-)
10372
10373 2008-11-10  Simon Josefsson  <simon@josefsson.org>
10374
10375         * modules/warnings: New module.
10376         * m4/warnings.m4: New file.
10377         * MODULES.html.sh: Mention warnings module.
10378         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
10379         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10380
10381 2008-11-10  Eric Blake  <ebb9@byu.net>
10382
10383         fdl.texi: make a symlink to the latest version
10384         * doc/standards.texi: Revert today's earlier change.
10385         * doc/fdl-1.2.texi: Rename from old fdl.texi...
10386         * doc/fdl.texi: ...and replace this with a symlink to the newer
10387         fdl-1.3.texi.
10388
10389 2008-11-10  Bruno Haible  <bruno@clisp.org>
10390
10391         * tests/test-select-fd.c (main): Accept the result file name as fourth
10392         argument.
10393         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
10394         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
10395
10396 2008-11-10  Bruno Haible  <bruno@clisp.org>
10397
10398         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
10399         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
10400         as autoconf-substituted macros.
10401         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
10402         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
10403         gl_NETDB_H_DEFAULTS. Set these variables.
10404         * modules/netdb (Makefile.am): Substitute these variables.
10405
10406 2008-11-10  Eric Blake  <ebb9@byu.net>
10407
10408         standards.texi: include correct file for FDL 1.3
10409         * doc/standards.texi (GNU Free Documentation License): Change
10410         include file to pull in FDL 1.3, not 1.2.
10411
10412         fdl.texi: revert accidental change to license
10413         * doc/fdl.texi: This is FDL 1.2, not 1.3.
10414
10415 2008-11-10  Bruno Haible  <bruno@clisp.org>
10416
10417         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
10418         cross-compiling guesses also when the native compile gives no result.
10419
10420 2008-11-10  Bruno Haible  <bruno@clisp.org>
10421
10422         * lib/spawni.c (__spawni): Force variable into the stack.
10423
10424 2008-11-10  Bruno Haible  <bruno@clisp.org>
10425
10426         Add support for Haiku.
10427         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
10428         glibc and BeOS, but also on Haiku.
10429         * lib/fpurge.c (fpurge): Likewise.
10430         * lib/freadable.c (freadable): Likewise.
10431         * lib/freadahead.c (freadahead): Likewise.
10432         * lib/freading.c (freading): Likewise.
10433         * lib/freadptr.c (freadptr): Likewise.
10434         * lib/freadseek.c (freadptrinc): Likewise.
10435         * lib/fseeko.c (rpl_fseeko): Likewise.
10436         * lib/fseterr.c (fseterr): Likewise.
10437         * lib/fwritable.c (fwritable): Likewise.
10438         * lib/fwriting.c (fwriting): Likewise.
10439         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
10440
10441 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
10442
10443         * lib/config.charset: Treat Haiku like BeOS.
10444
10445 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
10446
10447         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
10448         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
10449
10450 2008-11-08  Bruno Haible  <bruno@clisp.org>
10451
10452         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
10453         AC_CACHE_CHECK.
10454
10455 2008-11-08  Bruno Haible  <bruno@clisp.org>
10456
10457         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
10458
10459 2008-11-08  Bruno Haible  <bruno@clisp.org>
10460
10461         * tests/test-select-fd.c: New file.
10462         * tests/test-select-in.sh: New file.
10463         * tests/test-select-out.sh: New file.
10464         * tests/test-select-stdin.c: New file.
10465         * modules/select-tests (Files): Add the new files.
10466         (Depends-on): Add gettimeofday.
10467         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
10468         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
10469         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
10470
10471 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
10472             Bruno Haible  <bruno@clisp.org>
10473
10474         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
10475
10476 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
10477
10478         * build-aux/pmccabe2html: Added support for C++ source files.
10479
10480 2008-11-05  Ben Pfaff  <blp@gnu.org>
10481
10482         Fix lib/close.c build on Windows.
10483         * modules/close (Files): Add lib/w32sock.h.
10484
10485 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
10486
10487         Accept Bison's NEWS format.
10488         * build-aux/announce-gen (print_news_deltas): Tweak
10489         $re_prefix.
10490
10491 2008-11-04  Bruno Haible  <bruno@clisp.org>
10492
10493         * modules/random_r (Maintainer): Add glibc.
10494
10495 2008-11-04  Simon Josefsson  <simon@josefsson.org>
10496
10497         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
10498         by karl@freefriends.org (Karl Berry).
10499         * doc/alloca.texi: Likewise.
10500         * doc/c-ctype.texi: Likewise.
10501         * doc/c-strcase.texi: Likewise.
10502         * doc/c-strcaseeq.texi: Likewise.
10503         * doc/c-strcasestr.texi: Likewise.
10504         * doc/c-strstr.texi: Likewise.
10505         * doc/c-strtod.texi: Likewise.
10506         * doc/c-strtold.texi: Likewise.
10507         * doc/ctime.texi: Likewise.
10508         * doc/error.texi: Likewise.
10509         * doc/fdl.texi: Likewise.
10510         * doc/gcd.texi: Likewise.
10511         * doc/getdate.texi: Likewise.
10512         * doc/gnulib-intro.texi: Likewise.
10513         * doc/gnulib-tool.texi: Likewise.
10514         * doc/gnulib.texi: Likewise.
10515         * doc/inet_ntoa.texi: Likewise.
10516         * doc/maintain.texi: Likewise.
10517         * doc/make-stds.texi: Likewise.
10518         * doc/quote.texi: Likewise.
10519         * doc/regexprops-generic.texi: Likewise.
10520         * doc/standards.texi: Likewise.
10521         * doc/verify.texi: Likewise.
10522         * doc/visibility.texi: Likewise.
10523         * doc/gnulib.texi (GNU Free Documentation License): Include
10524         fdl-1.3.texi instead of fdl.texi.
10525
10526 2008-11-04  Simon Josefsson  <simon@josefsson.org>
10527
10528         * doc/fdl-1.3.texi: New file, from
10529         <http://www.gnu.org/licenses/fdl-1.3.texi>.
10530         * modules/fdl-1.3: Add.
10531         * MODULES.html.sh: Add fdl-1.3.
10532
10533 2008-11-03  Bruno Haible  <bruno@clisp.org>
10534
10535         Make determination of absolute name of header file work with AIX xlc.
10536         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
10537         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
10538         preprocessing.
10539         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
10540         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
10541
10542 2008-11-03  Simon Josefsson  <simon@josefsson.org>
10543
10544         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
10545         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
10546         <ludo@gnu.org>.
10547
10548 2008-11-02  Bruno Haible  <bruno@clisp.org>
10549
10550         Mark 'strpbrk' obsolete.
10551         * modules/strpbrk (Status, Notice): New sections.
10552         * modules/strtok_r (Depends-on): Add strpbrk.
10553
10554 2008-11-02  Bruno Haible  <bruno@clisp.org>
10555
10556         Mark 'strdup' obsolete.
10557         * modules/strdup (Status, Notice): New sections.
10558         * modules/findprog (Depends-on): Add strdup.
10559         * modules/getaddrinfo (Depends-on): Likewise.
10560         * modules/localename (Depends-on): Likewise.
10561         * modules/relocatable-lib (Depends-on): Likewise.
10562         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
10563         * modules/relocatable-prog (Depends-on): Likewise.
10564         * modules/trim (Depends-on): Likewise.
10565         * modules/unictype/gen-ctype (Depends-on): Likewise.
10566         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
10567
10568 2008-11-02  Bruno Haible  <bruno@clisp.org>
10569
10570         Mark 'strcspn' obsolete.
10571         * modules/strcspn (Status, Notice): New sections.
10572
10573 2008-11-02  Bruno Haible  <bruno@clisp.org>
10574
10575         Mark 'rmdir' obsolete.
10576         * modules/rmdir (Status, Notice): New sections.
10577         * modules/clean-temp (Depends-on): Add rmdir.
10578         * modules/openat (Depends-on): Likewise.
10579
10580 2008-11-02  Bruno Haible  <bruno@clisp.org>
10581
10582         Mark 'raise' obsolete.
10583         * modules/raise (Status, Notice): New sections.
10584         (Include): Specify <signal.h>.
10585         * modules/stdio (Depends-on): Add raise.
10586         * modules/write (Depends-on): Likewise.
10587
10588 2008-11-02  Bruno Haible  <bruno@clisp.org>
10589
10590         Mark 'memset' obsolete.
10591         * modules/memset (Status, Notice): New sections.
10592
10593 2008-11-02  Bruno Haible  <bruno@clisp.org>
10594
10595         Mark 'memmove' obsolete.
10596         * modules/memmove (Status, Notice): New sections.
10597         * modules/argp (Depends-on): Add memmove.
10598         * modules/argz (Depends-on): Likewise.
10599         * modules/canonicalize (Depends-on): Likewise.
10600         * modules/canonicalize-lgpl (Depends-on): Likewise.
10601         * modules/fts (Depends-on): Likewise.
10602         * modules/getcwd (Depends-on): Likewise.
10603         * modules/human (Depends-on): Likewise.
10604         * modules/regex (Depends-on): Likewise.
10605         * modules/striconveh (Depends-on): Likewise.
10606         * modules/trim (Depends-on): Likewise.
10607         * modules/unistr/u8-move (Depends-on): Likewise.
10608         * modules/unistr/u16-move (Depends-on): Likewise.
10609         * modules/unistr/u32-move (Depends-on): Likewise.
10610
10611 2008-11-02  Bruno Haible  <bruno@clisp.org>
10612
10613         Mark 'memcpy' obsolete.
10614         * modules/memcpy (Status, Notice): New sections.
10615
10616 2008-11-02  Bruno Haible  <bruno@clisp.org>
10617
10618         Mark 'memcmp' obsolete.
10619         * modules/memcmp (Status, Notice): New sections.
10620         * modules/argmatch (Depends-on): Add memchr.
10621         * modules/backupfile (Depends-on): Likewise.
10622         * modules/c-strcasestr (Depends-on): Likewise.
10623         * modules/crypto/des (Depends-on): Likewise.
10624         * modules/csharpcomp (Depends-on): Likewise.
10625         * modules/fnmatch (Depends-on): Likewise.
10626         * modules/git-merge-changelog (Depends-on): Likewise.
10627         * modules/isnand (Depends-on): Likewise.
10628         * modules/isnand-nolibm (Depends-on): Likewise.
10629         * modules/isnanf (Depends-on): Likewise.
10630         * modules/isnanf-nolibm (Depends-on): Likewise.
10631         * modules/isnanl (Depends-on): Likewise.
10632         * modules/isnanl-nolibm (Depends-on): Likewise.
10633         * modules/mbchar (Depends-on): Likewise.
10634         * modules/memcoll (Depends-on): Likewise.
10635         * modules/quotearg (Depends-on): Likewise.
10636         * modules/regex (Depends-on): Likewise.
10637         * modules/relocatable-prog (Depends-on): Likewise.
10638         * modules/same (Depends-on): Likewise.
10639         * modules/signbit (Depends-on): Likewise.
10640         * modules/strcasestr-simple (Depends-on): Likewise.
10641         * modules/unictype/gen-ctype (Depends-on): Likewise.
10642         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
10643         * modules/uniname/uniname (Depends-on): Likewise.
10644         * modules/unistr/u8-cmp (Depends-on): Likewise.
10645
10646 2008-11-02  Bruno Haible  <bruno@clisp.org>
10647
10648         Mark 'memchr' obsolete.
10649         * modules/memchr (Status, Notice): New sections.
10650         * modules/argp (Depends-on): Add memchr.
10651         * modules/base64 (Depends-on): Likewise.
10652         * modules/c-strcasestr (Depends-on): Likewise.
10653         * modules/chdir-long (Depends-on): Likewise.
10654         * modules/fnmatch (Depends-on): Likewise.
10655         * modules/getsubopt (Depends-on): Likewise.
10656         * modules/git-merge-changelog (Depends-on): Likewise.
10657         * modules/glob (Depends-on): Likewise.
10658         * modules/strcasestr-simple (Depends-on): Likewise.
10659         * modules/strnlen (Depends-on): Likewise.
10660
10661 2008-11-02  Bruno Haible  <bruno@clisp.org>
10662
10663         Mark 'atexit' obsolete.
10664         * modules/atexit (Status, Notice): New sections.
10665         * modules/chdir-long (Depends-on): Add atexit.
10666         * modules/wait-process (Depends-on): Likewise.
10667
10668 2008-11-02  Bruno Haible  <bruno@clisp.org>
10669
10670         * gnulib-tool: New option --with-obsolete.
10671         (func_usage): Document it.
10672         (func_modules_transitive_closure): Drop obsolete dependencies if
10673         incobsolete is not true.
10674         (func_import): Read and save the incobsolete variable to the cache.
10675
10676 2008-11-02  Bruno Haible  <bruno@clisp.org>
10677
10678         * modules/TEMPLATE-EXTENDED: New field 'Status'.
10679         * gnulib-tool: New option --extract-status.
10680         (func_usage): Document it.
10681         (sed_extract_prog): Recognize it.
10682         (func_get_status): New function.
10683
10684 2008-10-30  Simon Josefsson  <simon@josefsson.org>
10685
10686         * modules/sockets (License): Change from LGPL to LGPLv2+.
10687
10688 2008-10-28  Simon Josefsson  <simon@josefsson.org>
10689
10690         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
10691
10692 2008-10-28  Simon Josefsson  <simon@josefsson.org>
10693
10694         * MODULES.html.sh (Support for systems lacking POSIX:2001):
10695         Mention times and sys_times.
10696         * modules/sys_times, modules/sys_times-tests: New modules.
10697         * modules/times, modules/times-tests: Likewise
10698         * m4/sys_times_h.m4: New file.
10699         * lib/sys_times.in.h: Likewise
10700         * lib/times.c: Likewise.
10701         * tests/test-sys_times.c: Likewise.
10702         * tests/test-times.c: Likewise.
10703         * doc/posix-headers/sys_times.texi: Update.
10704         * doc/posix-functions/times.texi: Update.
10705
10706 2008-10-28  Jim Meyering  <meyering@redhat.com>
10707
10708         * modules/tempname (Depends-on): Add lstat.
10709
10710         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
10711
10712 2008-10-28  Simon Josefsson  <simon@josefsson.org>
10713
10714         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
10715         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
10716         using idiom used elsewhere in gnulib.
10717
10718 2008-10-27  Jim Meyering  <meyering@redhat.com>
10719
10720         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
10721
10722 2008-10-27  Simon Josefsson  <simon@josefsson.org>
10723
10724         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
10725         TESTS_ENVIRONMENT, for shell scripts that needs to call built
10726         programs.
10727         * tests/test-argp-2.sh: Use $EXEEXT when needed.
10728
10729 2008-10-27  Simon Josefsson  <simon@josefsson.org>
10730
10731         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
10732
10733 2008-10-27  Bruno Haible  <bruno@clisp.org>
10734
10735         * tests/test-lstat.c: Include <stdio.h>.
10736
10737 2008-10-27  Simon Josefsson  <simon@josefsson.org>
10738
10739         * modules/lstat-tests: New module.
10740         * tests/test-lstat.c: New file.
10741
10742 2008-10-26  Jim Meyering  <meyering@redhat.com>
10743
10744         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
10745
10746 2008-10-26  Simon Josefsson  <simon@josefsson.org>
10747             Bruno Haible  <bruno@clisp.org>
10748
10749         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
10750         * modules/configmake (Include): Add a note that the include must come
10751         after all system headers.
10752         * lib/javaversion.c: Include configmake.h after all other includes.
10753
10754 2008-10-26  Bruno Haible  <bruno@clisp.org>
10755
10756         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
10757         HAVE_STRUCT_RANDOM_DATA to 1.
10758         (gl_STDLIB_H): Simplify.
10759
10760 2008-10-26  Simon Josefsson  <simon@josefsson.org>
10761
10762         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
10763         substitute HAVE_STRUCT_RANDOM_DATA.
10764         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
10765         random_data.
10766         * modules/stdlib (Makefile.am): Substitute
10767         HAVE_STRUCT_RANDOM_DATA.
10768
10769 2008-10-26  Simon Josefsson  <simon@josefsson.org>
10770
10771         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
10772         * doc/gnulib-intro.texi (Copyright): Likewise.
10773
10774 2008-10-26  Simon Josefsson  <simon@josefsson.org>
10775
10776         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
10777         findings.
10778
10779 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
10780             Bruno Haible  <bruno@clisp.org>
10781
10782         * lib/unistd.in.h: Include <winsock2.h>.
10783         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
10784         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
10785         Provide dummy declarations.
10786         (gethostname): Override.
10787         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
10788         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
10789         gl_PREREQ_SYS_H_WINSOCK2.
10790         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
10791         * doc/posix-functions/gethostname.texi: More details.
10792
10793 2008-10-25  Bruno Haible  <bruno@clisp.org>
10794
10795         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
10796         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
10797         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
10798
10799         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
10800         here ...
10801         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
10802         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
10803         gl_UNISTD_H_DEFAULTS.
10804
10805 2008-10-25  Eric Blake  <ebb9@byu.net>
10806
10807         signbit: avoid spurious compiler failure
10808         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
10809         declarations inside function.
10810
10811 2008-10-24  Simon Josefsson  <simon@josefsson.org>
10812             Bruno Haible  <bruno@clisp.org>
10813
10814         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
10815         * modules/random_r (Depends-on): Add stdint.
10816
10817 2008-10-24  Bruno Haible  <bruno@clisp.org>
10818
10819         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
10820         Eggert.
10821         * modules/strerror (License): Likewise.
10822
10823 2008-10-24  Jim Meyering  <meyering@redhat.com>
10824
10825         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
10826         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
10827
10828 2008-10-24  Eric Blake  <ebb9@byu.net>
10829
10830         getgroups: fix compilation when getgroups is available
10831         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
10832         but with <config.h> override of getgroups disabled.
10833
10834 2008-10-24  Simon Josefsson  <simon@josefsson.org>
10835
10836         * doc/gnulib.texi (Header files): Add note about C++ problems.
10837         Explained by Bruno Haible <bruno@clisp.org>.
10838
10839 2008-10-23  Bruno Haible  <bruno@clisp.org>
10840
10841         Define a dummy SA_NODEFER macro on Interix.
10842         * lib/signal.in.h (SA_NODEFER): Define fallback.
10843         Reported by Aleksey Cheusov <cheusov@tut.by> via
10844         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
10845
10846 2008-10-23  Bruno Haible  <bruno@clisp.org>
10847
10848         * modules/freadahead (License): Change to LGPLv2+.
10849         Suggested by Simon Josefsson.
10850
10851 2008-10-23  Jim Meyering  <meyering@redhat.com>
10852
10853         random_r: new module
10854         * modules/random_r: New file.
10855         * m4/random_r.m4: New file.
10856         * lib/random_r.c: New file, from glibc.
10857         * modules/random_r-tests: New file.
10858         * tests/test-random_r.c: New file.
10859         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
10860          Declare.
10861         (RAND_MAX): Define.
10862         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
10863         * modules/stdlib: Substitute them, too.
10864         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
10865         * doc/glibc-functions/initstate_r.texi: Mention the new module.
10866         * doc/glibc-functions/random_r.texi: Likewise.
10867         * doc/glibc-functions/setstate_r.texi: Likewise.
10868         * doc/glibc-functions/srandom_r.texi: Likewise.
10869         * config/srclist.txt: Mention it.
10870
10871 2008-10-23  David Lutterkort  <lutter@redhat.com>
10872
10873         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
10874         link requirement
10875
10876 2008-10-23  Jim Meyering  <meyering@redhat.com>
10877
10878         selinux-h: mark parameters of stub functions as intentionally unused
10879         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
10880         * lib/se-context.in.h: Likewise.
10881
10882 2008-10-22  Simon Josefsson  <simon@josefsson.org>
10883
10884         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
10885
10886 2008-10-22  Simon Josefsson  <simon@josefsson.org>
10887
10888         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
10889
10890 2008-10-22  Eric Blake  <ebb9@byu.net>
10891
10892         glthread/thread: avoid compiler warning
10893         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
10894         Add unreachable abort to silence compiler.
10895
10896 2008-10-22  Eric Blake  <ebb9@byu.net>
10897
10898         netdb: also supply struct addrinfo for cygwin 1.5.x
10899         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
10900         older cygwin.
10901         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
10902         cygwin.
10903         * doc/posix-headers/netdb.texi (netdb.h): Document this.
10904
10905 2008-10-22  Bruno Haible  <bruno@clisp.org>
10906
10907         * users.txt: Update entry about pspp.
10908
10909 2008-10-21  Bruno Haible  <bruno@clisp.org>
10910
10911         Simplification.
10912         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
10913         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
10914
10915         Simplification.
10916         * lib/ioctl.c (ioctl): Don't undefine.
10917         * lib/socket.c (socket): Don't undefine.
10918
10919         Remove unused module indicator macros.
10920         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
10921         GNULIB_$1 as a C macro.
10922
10923         * doc/posix-functions/close.texi: Undo last change.
10924         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
10925         Windows platforms.
10926
10927 2008-10-21  Bruno Haible  <bruno@clisp.org>
10928
10929         Add gethostname() declaration to <unistd.h>.
10930         * lib/unistd.in.h (gethostname): New declaration.
10931         * lib/gethostname.c: Include <unistd.h>.
10932         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
10933         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
10934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
10935         and HAVE_GETHOSTNAME.
10936         * modules/gethostname (Depends-on): Add unistd.
10937         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10938         (Include): Specify <unistd.h>.
10939         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
10940         HAVE_GETHOSTNAME.
10941         * tests/test-gethostname.c: Include <unistd.h> first.
10942
10943 2008-10-21  Bruno Haible  <bruno@clisp.org>
10944
10945         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
10946         * modules/select-tests (Depends-on): Likewise.
10947         Reported by Simon Josefsson.
10948
10949 2008-10-21  Simon Josefsson  <simon@josefsson.org>
10950
10951         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
10952         * lib/accept.c: New file, based on winsock.c.
10953         * lib/bind.c: New file, based on winsock.c.
10954         * lib/connect.c: New file, based on winsock.c.
10955         * lib/getpeername.c: New file, based on winsock.c.
10956         * lib/getsockname.c: New file, based on winsock.c.
10957         * lib/getsockopt.c: New file, based on winsock.c.
10958         * lib/ioctl.c: New file, based on winsock.c.
10959         * lib/listen.c: New file, based on winsock.c.
10960         * lib/recv.c: New file, based on winsock.c.
10961         * lib/recvfrom.c: New file, based on winsock.c.
10962         * lib/send.c: New file, based on winsock.c.
10963         * lib/sendto.c: New file, based on winsock.c.
10964         * lib/setsockopt.c: New file, based on winsock.c.
10965         * lib/shutdown.c: New file, based on winsock.c.
10966         * lib/socket.c: New file, based on winsock.c.
10967         * lib/w32sock.h: New file, based on winsock.c.
10968         * lib/winsock.c: Remove file.
10969         * modules/accept: Likewise.
10970         * modules/bind: Likewise.
10971         * modules/connect: Likewise.
10972         * modules/getpeername: Likewise.
10973         * modules/getsockname: Likewise.
10974         * modules/getsockopt: Likewise.
10975         * modules/ioctl: Likewise.
10976         * modules/listen: Likewise.
10977         * modules/recv: Likewise.
10978         * modules/recvfrom: Likewise.
10979         * modules/send: Likewise.
10980         * modules/sendto: Likewise.
10981         * modules/setsockopt: Likewise.
10982         * modules/shutdown: Likewise.
10983         * modules/socket: Use socket.c instead of winsock.c.
10984         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
10985         * doc/posix-functions/accept.texi: Doc fix.
10986         * doc/posix-functions/bind.texi: Doc fix.
10987         * doc/posix-functions/close.texi: Doc fix.
10988         * doc/posix-functions/connect.texi: Doc fix.
10989         * doc/posix-functions/getpeername.texi: Doc fix.
10990         * doc/posix-functions/getsockname.texi: Doc fix.
10991         * doc/posix-functions/getsockopt.texi: Doc fix.
10992         * doc/posix-functions/ioctl.texi: Doc fix.
10993         * doc/posix-functions/listen.texi: Doc fix.
10994         * doc/posix-functions/recv.texi: Doc fix.
10995         * doc/posix-functions/recvfrom.texi: Doc fix.
10996         * doc/posix-functions/send.texi: Doc fix.
10997         * doc/posix-functions/sendto.texi: Doc fix.
10998         * doc/posix-functions/setsockopt.texi: Doc fix.
10999         * doc/posix-functions/shutdown.texi: Doc fix.
11000         * doc/posix-functions/socket.texi: Doc fix.
11001
11002 2008-10-20  Bruno Haible  <bruno@clisp.org>
11003
11004         Take into account the role of SIGABRT_COMPAT on Windows 2008.
11005         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
11006         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
11007         as an alias for SIGABRT.
11008         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
11009         (sigaction): Map it to SIGABRT.
11010         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
11011
11012 2008-10-20  Bruno Haible  <bruno@clisp.org>
11013
11014         * lib/fts.c: Don't include lstat.h.
11015         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
11016
11017         Move the lstat() declaration to <sys/stat.h>.
11018         * lib/lstat.h: Remove file.
11019         * lib/sys_stat.in.h: Add special invocation convention.
11020         (lstat): New declaration.
11021         * lib/lstat.c (orig_lstat): New function.
11022         (rpl_lstat): Use orig_lstat instead of lstat.
11023         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
11024         AC_C_INLINE. Set REPLACE_LSTAT.
11025         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
11026         and REPLACE_LSTAT.
11027         * modules/lstat (Files): Remove lib/lstat.h.
11028         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
11029         (Include): Specify <sys/stat.h> instead of lstat.h.
11030         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
11031         REPLACE_LSTAT.
11032         * NEWS: Mention the change.
11033
11034 2008-10-20  Bruno Haible  <bruno@clisp.org>
11035
11036         * modules/posix_spawn-tests: New file.
11037         * tests/test-posix_spawn3.c: New file.
11038
11039 2008-10-20  Bruno Haible  <bruno@clisp.org>
11040
11041         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
11042         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
11043         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
11044         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
11045         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
11046
11047 2008-10-20  Bruno Haible  <bruno@clisp.org>
11048
11049         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
11050         of posix_spawn on AIX 5.3.
11051
11052 2008-10-20  Bruno Haible  <bruno@clisp.org>
11053
11054         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
11055
11056 2008-10-20  Bruno Haible  <bruno@clisp.org>
11057
11058         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
11059         of AC_LANG_PROGRAM.
11060
11061 2008-10-20  Simon Josefsson  <simon@josefsson.org>
11062
11063         * lib/netdb.in.h: Don't define GNU specific constants until they
11064         are supported or needed.  Reported by Bruno Haible
11065         <bruno@clisp.org>.
11066
11067 2008-10-20  Simon Josefsson  <simon@josefsson.org>
11068
11069         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
11070
11071 2008-10-20  Simon Josefsson  <simon@josefsson.org>
11072
11073         * lib/getaddrinfo.h: Remove file.
11074         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
11075         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
11076         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
11077         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
11078         * modules/netdb: Substitute GNULIB_GETADDRINFO.
11079         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
11080         * tests/test-getaddrinfo.c: Likewise.
11081         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
11082         * NEWS: Mention change.
11083
11084 2008-10-19  Bruno Haible  <bruno@clisp.org>
11085
11086         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
11087
11088 2008-10-19  Bruno Haible  <bruno@clisp.org>
11089
11090         * lib/wait-process.c: Include simply <sys/wait.h>.
11091         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
11092         WIFSTOPPED): Remove fallback definitions.
11093         * modules/wait-process (Depends-on): Add sys_wait.
11094
11095         New module 'sys_wait'.
11096         * modules/sys_wait: New file.
11097         * lib/sys_wait.in.h: New file, partially copied from
11098         lib/wait-process.c.
11099         * m4/sys_wait_h.m4: New file.
11100         * doc/posix-headers/sys_wait.texi: Mention the new module.
11101
11102 2008-10-19  Bruno Haible  <bruno@clisp.org>
11103
11104         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
11105
11106 2008-10-19  Bruno Haible  <bruno@clisp.org>
11107
11108         Assume that waitpid() fills an 'int' status, not a 'union wait'.
11109         * lib/wait-process.c (WAIT_T): Remove type.
11110         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
11111         (wait_subprocess): Update.
11112
11113 2008-10-19  Bruno Haible  <bruno@clisp.org>
11114
11115         New module 'atoll'.
11116         * modules/atoll: New file.
11117         * lib/stdlib.in.h (atoll): New declaration.
11118         * lib/atoll.c: New file, from glibc with modifications.
11119         * m4/atoll.m4: New file.
11120         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
11121         HAVE_ATOLL.
11122         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
11123         * doc/posix-functions/atoll.texi: Mention the new module.
11124
11125 2008-10-19  Bruno Haible  <bruno@clisp.org>
11126
11127         Add strtoull() declaration to <stdlib.h>.
11128         * lib/stdlib.in.h (strtoull): New declaration.
11129         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
11130         Set HAVE_STRTOULL.
11131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
11132         HAVE_STRTOULL.
11133         * modules/strtoull (Depends-on): Add stdlib.
11134         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11135         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
11136         HAVE_STRTOULL.
11137
11138 2008-10-19  Bruno Haible  <bruno@clisp.org>
11139
11140         Add strtoll() declaration to <stdlib.h>.
11141         * lib/stdlib.in.h (strtoll): New declaration.
11142         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
11143         Set HAVE_STRTOLL.
11144         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
11145         HAVE_STRTOLL.
11146         * modules/strtoll (Depends-on): Add stdlib.
11147         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11148         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
11149
11150 2008-10-19  Bruno Haible  <bruno@clisp.org>
11151
11152         * modules/bcopy (Depends-on): Add strings.
11153         (Include): Specify <strings.h>.
11154
11155 2008-10-19  Bruno Haible  <bruno@clisp.org>
11156
11157         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
11158
11159 2008-10-19  Bruno Haible  <bruno@clisp.org>
11160
11161         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
11162         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
11163         mingw.
11164
11165 2008-10-19  Bruno Haible  <bruno@clisp.org>
11166
11167         * lib/atanl.c: Don't include isnanl.h.
11168         * lib/cosl.c: Likewise.
11169         * lib/ldexpl.c: Likewise.
11170         * lib/logl.c: Likewise.
11171         * lib/sinl.c: Likewise.
11172         * lib/sqrtl.c: Likewise.
11173         * lib/tanl.c: Likewise.
11174
11175         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
11176         * lib/isnanf.h: Remove file.
11177         * lib/isnand.h: Remove file.
11178         * lib/isnanl.h: Remove file.
11179         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
11180         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
11181         macros.
11182         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
11183         HAVE_ISNANF, don't define it as a C macro.
11184         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
11185         HAVE_ISNAND, don't define it as a C macro.
11186         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
11187         HAVE_ISNANL, don't define it as a C macro.
11188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
11189         HAVE_ISNAN[FDL].
11190         * modules/isnanf (Files): Remove lib/isnanf.h.
11191         (Depends-on): Add math.
11192         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11193         (Include): Specify <math.h> instead of isnanf.h.
11194         * modules/isnand (Files): Remove lib/isnand.h.
11195         (Depends-on): Add math.
11196         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11197         (Include): Specify <math.h> instead of isnand.h.
11198         * modules/isnanl (Files): Remove lib/isnanl.h.
11199         (Depends-on): Add math.
11200         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11201         (Include): Specify <math.h> instead of isnanl.h.
11202         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
11203         HAVE_ISNAN[FDL].
11204         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
11205         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
11206         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
11207         * NEWS: Mention the change.
11208
11209 2008-10-18  Bruno Haible  <bruno@clisp.org>
11210
11211         Add getusershell(), setusershell(), endusershell() declarations to
11212         <unistd.h>.
11213         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
11214         declarations.
11215         * lib/getusershell.c: Include unistd.h.
11216         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
11217         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
11218         HAVE_GETUSERSHELL.
11219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
11220         and HAVE_GETUSERSHELL.
11221         * modules/getusershell (Depends-on): Add unistd, extensions.
11222         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11223         (Include): Specify <unistd.h>.
11224         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
11225         HAVE_GETUSERSHELL.
11226
11227 2008-10-18  Bruno Haible  <bruno@clisp.org>
11228
11229         Add a getloadavg() declaration to <stdlib.h>.
11230         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
11231         getloadavg declaration.
11232         (getloadavg): New declaration.
11233         * lib/getloadavg.c: Include <stdlib.h> first.
11234         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
11235         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
11236         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
11237         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
11238         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
11239         * modules/getloadavg (Depends-on): Add stdlib, extensions.
11240         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11241         (Include): Specify <stdlib.h>.
11242         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
11243         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
11244
11245 2008-10-18  Bruno Haible  <bruno@clisp.org>
11246
11247         * lib/dirchownmod.c: Don't include lchmod.h.
11248
11249         Move the lchmod() declaration to <sys/stat.h>.
11250         * lib/lchmod.h: Remove file.
11251         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
11252         (lchmod): New declaration, moved here from lib/lchown.h.
11253         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
11254         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
11255         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
11256         and HAVE_LCHMOD.
11257         * modules/lchmod (Files): Remove lib/lchmod.h.
11258         (Depends-on): Add sys_stat, extensions.
11259         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
11260         (Include): Specify <sys/stat.h> instead of lchmod.h.
11261         * modules/sys_stat (Depends-on): Add link-warning.
11262         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
11263         definition of GL_LINK_WARNING.
11264         * NEWS: Mention the change.
11265
11266 2008-10-18  Bruno Haible  <bruno@clisp.org>
11267
11268         * lib/fchdir.c: Don't include dirfd.h.
11269         * lib/fts.c: Likewise.
11270         * lib/getcwd.c: Likewise.
11271         * lib/glob.c: Likewise.
11272
11273         Move the dirfd() declaration to <dirent.h>.
11274         * lib/dirfd.h: Remove file.
11275         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
11276         (dirfd): New declaration.
11277         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
11278         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
11279         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
11280         HAVE_DECL_DIRFD.
11281         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
11282         HAVE_DECL_DIRFD.
11283         * modules/dirfd (Files): Remove lib/dirfd.h.
11284         (Depends-on): Add dirent, extensions.
11285         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
11286         (Include): Specify <dirent.h> instead of dirfd.h.
11287         * modules/dirent (Depends-on): Add link-warning.
11288         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
11289         definition of GL_LINK_WARNING.
11290         * NEWS: Mention the change.
11291
11292 2008-10-18  Bruno Haible  <bruno@clisp.org>
11293
11294         Move the euidaccess() declaration to <unistd.h>.
11295         * lib/euidaccess.h: Remove file.
11296         * lib/unistd.in.h (euidaccess): New declaration.
11297         * lib/euidaccess.c: Don't include euidaccess.h.
11298         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
11299         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
11300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
11301         and HAVE_EUIDACCESS.
11302         * modules/euidaccess (Files): Remove lib/euidaccess.h.
11303         (Depends-on): Add unistd.
11304         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11305         (Include): Specify <unistd.h> instead of euidaccess.h.
11306         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
11307         HAVE_EUIDACCESS.
11308         * NEWS: Mention the change.
11309
11310 2008-10-18  Bruno Haible  <bruno@clisp.org>
11311
11312         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
11313
11314         Move the getdomainname() declaration to <unistd.h>.
11315         * lib/getdomainname.h: Remove file.
11316         * lib/unistd.in.h (getdomainname): New declaration.
11317         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
11318         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
11319         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
11320         HAVE_GETDOMAINNAME.
11321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11322         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
11323         * modules/getdomainname (Files): Remove lib/getdomainname.h.
11324         (Depends-on): Add unistd, extensions.
11325         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11326         (Includes): Specify <unistd.h> instead of getdomainname.h.
11327         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
11328         HAVE_GETDOMAINNAME.
11329         * NEWS: Mention the change.
11330
11331 2008-10-18  Bruno Haible  <bruno@clisp.org>
11332
11333         * modules/dirent: New file.
11334         * m4/dirent_h.m4: New file.
11335         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
11336         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
11337         * modules/fchdir (Files): Remove lib/dirent.in.h.
11338         (Depends-on): Add dirent.
11339         (Makefile.am): Move rules to modules/dirent.
11340         * doc/posix-headers/dirent.texi: Mention the new module.
11341
11342 2008-10-18  Bruno Haible  <bruno@clisp.org>
11343
11344         Avoid -Wunused-parameter warnings in public gnulib header files.
11345         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
11346         macro.
11347         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
11348
11349 2008-10-18  Bruno Haible  <bruno@clisp.org>
11350
11351         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
11352         * doc/glibc-functions/error.texi: Mention the module 'error'.
11353         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
11354         * doc/glibc-functions/getdomainname.texi: Mention the module
11355         'getdomainname'.
11356         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
11357         * doc/glibc-functions/getpagesize.texi: Mention the module
11358         'getpagesize'.
11359         * doc/glibc-functions/getusershell.texi: Mention the module
11360         'getusershell'.
11361         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
11362         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
11363         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
11364         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
11365         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
11366         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
11367         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
11368         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
11369         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
11370         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
11371         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
11372         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
11373         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
11374         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
11375
11376 2008-10-17  Bruno Haible  <bruno@clisp.org>
11377
11378         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
11379         HP-UX and IRIX, use -0.0L.
11380         * tests/test-ceill.c (minus_zero): Likewise.
11381         * tests/test-floorl.c (minus_zero): Likewise.
11382         * tests/test-frexpl.c (minus_zero): Likewise.
11383         * tests/test-isnan.c (minus_zerol): Likewise.
11384         * tests/test-isnanl.h (minus_zero): Likewise.
11385         * tests/test-ldexpl.c (minus_zero): Likewise.
11386         * tests/test-roundl.c (minus_zero): Likewise.
11387         * tests/test-signbit.c (minus_zerol): Likewise.
11388         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
11389         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
11390         * tests/test-truncl.c (minus_zero): Likewise.
11391         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
11392         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
11393         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
11394         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
11395
11396 2008-10-17  Bruno Haible  <bruno@clisp.org>
11397
11398         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
11399         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
11400         that it gets activated only for gcc >= 3.0.
11401         * lib/dirent.in.h: Likewise.
11402         * lib/errno.in.h: Likewise.
11403         * lib/fcntl.in.h: Likewise.
11404         * lib/float.in.h: Likewise.
11405         * lib/iconv.in.h: Likewise.
11406         * lib/inttypes.in.h: Likewise.
11407         * lib/locale.in.h: Likewise.
11408         * lib/math.in.h: Likewise.
11409         * lib/netdb.in.h: Likewise.
11410         * lib/netinet_in.in.h: Likewise.
11411         * lib/search.in.h: Likewise.
11412         * lib/signal.in.h: Likewise.
11413         * lib/spawn.in.h: Likewise.
11414         * lib/stdarg.in.h: Likewise.
11415         * lib/stdint.in.h: Likewise.
11416         * lib/stdio.in.h: Likewise.
11417         * lib/stdlib.in.h: Likewise.
11418         * lib/string.in.h: Likewise.
11419         * lib/strings.in.h: Likewise.
11420         * lib/sys_file.in.h: Likewise.
11421         * lib/sys_ioctl.in.h: Likewise.
11422         * lib/sys_select.in.h: Likewise.
11423         * lib/sys_socket.in.h: Likewise.
11424         * lib/sys_stat.in.h: Likewise.
11425         * lib/sys_time.in.h: Likewise.
11426         * lib/sysexits.in.h: Likewise.
11427         * lib/time.in.h: Likewise.
11428         * lib/unistd.in.h: Likewise.
11429         * lib/wchar.in.h: Likewise.
11430         * lib/wctype.in.h: Likewise.
11431         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11432
11433 2008-10-17  Jim Meyering  <meyering@redhat.com>
11434
11435         ignore-value: don't depend on inline module
11436         * modules/ignore-value (Depends-on): Remove 'inline'.
11437         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
11438         Suggestion from Bruno Haible.
11439
11440 2008-10-17  Bruno Haible  <bruno@clisp.org>
11441
11442         New implementation of condition variables for Win32.
11443         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
11444         (gl_linked_waitqueue_t): New type.
11445         (gl_cond_t): Use it.
11446         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
11447         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
11448         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
11449         (glthread_cond_init_func, glthread_cond_wait_func,
11450         glthread_cond_timedwait_func, glthread_cond_signal_func,
11451         glthread_cond_broadcast_func, glthread_cond_destroy_func):
11452         Reimplemented on the basis of gl_linked_waitqueue_t.
11453         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
11454         gl_waitqueue_t.
11455         (gl_rwlock_t): Update.
11456         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
11457
11458 2008-10-17  Simon Josefsson  <simon@josefsson.org>
11459
11460         * modules/recvfrom (Depends-on): Add dependency on getpeername.
11461         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
11462
11463 2008-10-17  Jim Meyering  <meyering@redhat.com>
11464
11465         ignore-value: new module
11466         * modules/ignore-value: New file.
11467         * lib/ignore-value.h: New file.
11468         * MODULES.html.sh (Compiler warning management): New section,
11469         just for this module.  More to come.
11470
11471 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
11472
11473         open-safer.c: avoid 'signed and unsigned in conditional...' warning
11474         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
11475         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
11476
11477 2008-10-16  Jim Meyering  <meyering@redhat.com>
11478
11479         openat-die.c: avoid 'no previous prototype' warning
11480         * lib/openat-die.c: Include "openat.h".
11481         Reported by Reuben Thomas <rrt@sc3d.org>.
11482
11483 2008-10-16  Simon Josefsson  <simon@josefsson.org>
11484
11485         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
11486         * lib/netdb.in.h: Fix typo.
11487         Reported by Bruno Haible  <bruno@clisp.org>
11488
11489         * lib/netdb.in.h: Include sys/socket.h for platforms without
11490         netdb.h, to get structures like hostent on MinGW.
11491         * modules/netdb (Depends-on): Add sys_socket.
11492
11493 2008-10-15  Simon Josefsson  <simon@josefsson.org>
11494
11495         * modules/netdb, modules/netdb-tests: New file.
11496         * m4/netdb_h.m4: New file.
11497         * lib/netdb.in.h: Add, currently just an empty file pending
11498         definitions.
11499         * tests/test-netdb.c: New file.
11500         * doc/posix-headers/netdb.texi: Mention that we replace it if
11501         needed.
11502         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11503         netdb.
11504
11505 2008-10-15  Simon Josefsson  <simon@josefsson.org>
11506
11507         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
11508         with code.
11509
11510 2008-10-13  Bruno Haible  <bruno@clisp.org>
11511
11512         * lib/glthread/cond.c (glthread_cond_wait_func,
11513         glthread_cond_timedwait_func): Add a comment.
11514
11515 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
11516
11517         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
11518         * tests/test-select.c: Likewise,
11519
11520 2008-10-13  Bruno Haible  <bruno@clisp.org>
11521
11522         * lib/glthread/cond.c (glthread_cond_wait_func,
11523         glthread_cond_timedwait_func): Fix variable name.
11524         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
11525
11526 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
11527
11528         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
11529         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
11530         struct sockaddr.sa_len.
11531         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
11532
11533 2008-10-13  Simon Josefsson  <simon@josefsson.org>
11534
11535         * build-aux/pmccabe2html: Add css and css_url parameters.
11536
11537 2008-10-12  Bruno Haible  <bruno@clisp.org>
11538
11539         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
11540         calling aclx_get.
11541         Reported by Rainer Tammer <tammer@tammer.net>.
11542
11543 2008-10-12  Bruno Haible  <bruno@clisp.org>
11544
11545         Use msvcrt aware primitives for creation/termination of Win32 threads.
11546         * lib/glthread/thread.c: Include <process.h>.
11547         (glthread_create_func): Use _beginthreadex instead of CreateThread.
11548         (wrapper_func): Update signature.
11549         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
11550
11551 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
11552             Bruno Haible  <bruno@clisp.org>
11553
11554         Provide a Win32 implementation of the 'cond' module.
11555         * lib/glthread/cond.h [USE_WIN32]: New implementation.
11556         * lib/glthread/cond.c (glthread_cond_init_func,
11557         glthread_cond_wait_func, glthread_cond_timedwait_func,
11558         glthread_cond_signal_func, glthread_cond_broadcast_func,
11559         glthread_cond_destroy_func) [USE_WIN32]: New functions.
11560         * modules/cond (Dependencies): Add gettimeofday.
11561
11562 2008-10-11  Bruno Haible  <bruno@clisp.org>
11563
11564         Make sleep work on older versions of mingw.
11565         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
11566         only whether it exists.
11567         * doc/posix-functions/sleep.texi: Mention the problem with older
11568         versions of mingw.
11569
11570 2008-10-11  Bruno Haible  <bruno@clisp.org>
11571
11572         New module 'shutdown'.
11573         * modules/shutdown: New file.
11574         * lib/sys_socket.in.h (shutdown): New declaration.
11575         * lib/winsock.c (shutdown): New function.
11576         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11577         GNULIB_SHUTDOWN.
11578         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
11579         * doc/posix-functions/shutdown.texi: Document the new module.
11580
11581 2008-10-11  Jim Meyering  <meyering@redhat.com>
11582
11583         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
11584
11585 2008-10-11  Bruno Haible  <bruno@clisp.org>
11586
11587         New module 'fclose'.
11588         * modules/fclose: New file.
11589         * lib/stdio.in.h (fclose): New declaration.
11590         * lib/fclose.c: New file.
11591         * m4/fclose.m4: New file.
11592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
11593         REPLACE_FCLOSE.
11594         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
11595         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
11596         REPLACE_FCLOSE.
11597         * modules/close (Depends-on): fclose.
11598         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
11599
11600 2008-10-11  Bruno Haible  <bruno@clisp.org>
11601
11602         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
11603         set errno and don't call _close.
11604
11605 2008-10-10  Bruno Haible  <bruno@clisp.org>
11606
11607         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
11608         ACL, not afterwards. Fixes test failure on Cygwin.
11609
11610 2008-10-09  Ben Pfaff  <blp@gnu.org>
11611
11612         * build-aux/announce-gen: Fix gnulib version related part of usage
11613         message.  Die with a useful error message if no tarballs are
11614         found.
11615
11616 2008-10-10  Jim Meyering  <meyering@redhat.com>
11617
11618         bootstrap: use git's --depth=N option only if it's supported
11619         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
11620         recognize the --depth option.  Reported by Pádraig Brady.
11621
11622 2008-10-09  Bruno Haible  <bruno@clisp.org>
11623
11624         New module 'ioctl'.
11625         * modules/ioctl: New file.
11626         * lib/sys_socket.in.h (ioctl): Remove declaration.
11627         * lib/winsock.c: Include <sys/ioctl.h>.
11628         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
11629         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
11630         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
11631         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
11632         * doc/posix-functions/ioctl.texi: Mention the new module.
11633
11634 2008-10-09  Bruno Haible  <bruno@clisp.org>
11635
11636         New module 'sys_ioctl'.
11637         * lib/sys_ioctl.in.h: New file.
11638         * m4/sys_ioctl_h.m4: New file.
11639         * modules/sys_ioctl: New file.
11640         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
11641
11642 2008-10-09  Bruno Haible  <bruno@clisp.org>
11643
11644         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
11645         * lib/winsock.c: Include <stdarg.h>.
11646         (rpl_ioctl): Change to second argument 'int' and then varargs.
11647
11648 2008-10-09  Bruno Haible  <bruno@clisp.org>
11649
11650         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
11651         when the sys_socket module is present and the system has <winsock2.h>.
11652
11653 2008-10-09  Bruno Haible  <bruno@clisp.org>
11654
11655         * doc/posix-functions/close.texi: Mention module 'close' instead of
11656         module 'sys_socket'.
11657
11658 2008-10-09  Bruno Haible  <bruno@clisp.org>
11659
11660         * doc/glibc-headers/sys_ioctl.texi: New file.
11661         * doc/gnulib.texi: Include it.
11662
11663 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
11664             Bruno Haible  <bruno@clisp.org>
11665
11666         Combine the two replacements of 'close'.
11667         * lib/sys_socket.in.h (close): Define to a reminder to include
11668         <unistd.h>.
11669         (_gl_close_fd_maybe_socket): New declaration.
11670         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
11671         * lib/winsock.c (close): Remove undefinition.
11672         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
11673         needed for the gnulib module 'close'.
11674         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
11675         define to an error symbol or to a warning, if suitable.
11676         * lib/close.c: Include <sys/socket.h>.
11677         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
11678         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
11679         UNISTD_H_HAVE_WINSOCK2_H.
11680         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
11681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11682         UNISTD_H_HAVE_WINSOCK2_H.
11683         * modules/sys_socket (Files): Add m4/unistd_h.m4.
11684         (configure.ac): Set a module indicator.
11685         (Makefile.am): Substitute GNULIB_CLOSE.
11686         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
11687         * modules/poll-tests (Depends-on): Add close.
11688         * modules/select-tests (Depends-on): Likewise.
11689
11690 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
11691             Bruno Haible  <bruno@clisp.org>
11692
11693         New module 'close'.
11694         * modules/close: New file.
11695         * lib/unistd.in.h (close): Move declaration out of the
11696         FCHDIR_REPLACEMENT scope.
11697         (_gl_unregister_fd): New declaration.
11698         * lib/close.c: New file.
11699         * lib/fchdir.c (rpl_close): Remove function.
11700         * m4/close.m4: New file.
11701         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
11702         close.
11703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
11704         REPLACE_CLOSE.
11705         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
11706         REPLACE_CLOSE.
11707         * modules/fchdir (Depends-on): Add close.
11708
11709 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
11710             Bruno Haible  <bruno@clisp.org>
11711
11712         * lib/fcntl.in.h (open): Simplify conditionals.
11713         (_gl_register_fd): New declaration.
11714         * lib/fchdir.c (rpl_open): Remove function.
11715         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
11716         also.
11717         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
11718         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
11719         open.
11720
11721 2008-10-09  Jim Meyering  <meyering@redhat.com>
11722
11723         GNUmakefile: use the more name-space-friendly "_version"
11724         * top/GNUmakefile (_dummy): Update.
11725         (_version): Rename from "version".
11726
11727 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
11728             Bruno Haible  <bruno@clisp.org>
11729
11730         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
11731         rpl_close.
11732         (_gl_register_fd): New function, extracted from rpl_open.
11733         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
11734         (rpl_open, rpl_opendir): Use _gl_register_fd.
11735
11736 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
11737
11738         Fix organization of 'open' replacement.
11739         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
11740         (gl_FUNC_OPEN): Use it.
11741         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
11742
11743 2008-10-08  Bruno Haible  <bruno@clisp.org>
11744
11745         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
11746
11747 2008-10-08  Simon Josefsson  <simon@josefsson.org>
11748
11749         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
11750         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
11751         listen).
11752
11753 2008-10-08  Eric Blake  <ebb9@byu.net>
11754
11755         GNUmakefile: add 'make version' target
11756         * top/GNUmakefile (_curr-ver): Split version update rules...
11757         (version): ...into a target.
11758
11759 2008-10-07  Bruno Haible  <bruno@clisp.org>
11760
11761         Use a more portable replacement expression for -0.0L.
11762         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
11763         instead of -0.0L. Fix m4 quotation.
11764
11765         * tests/test-signbit.c: Include <float.h>.
11766         (minus_zero): New variable.
11767         (test_signbitl): Use minus_zero instead of -zero.
11768         * modules/signbit-tests (Depends-on): Add float.
11769
11770         * tests/test-ceill.c: Include <float.h>.
11771         (zero): Remove variable.
11772         (minus_zero): New variable.
11773         (main): Use minus_zero instead of -zero.
11774         * modules/ceill-tests (Depends-on): Add float.
11775
11776         * tests/test-floorl.c: Include <float.h>.
11777         (zero): Remove variable.
11778         (minus_zero): New variable.
11779         (main): Use minus_zero instead of -zero.
11780         * modules/floorl-tests (Depends-on): Add float.
11781
11782         * tests/test-roundl.c: Include <float.h>.
11783         (zero): Remove variable.
11784         (minus_zero): New variable.
11785         (main): Use minus_zero instead of -zero.
11786         * modules/roundl-tests (Depends-on): Add float.
11787
11788         * tests/test-truncl.c: Include <float.h>.
11789         (zero): Remove variable.
11790         (minus_zero): New variable.
11791         (main): Use minus_zero instead of -zero.
11792         * modules/truncl-tests (Depends-on): Add float.
11793
11794         * tests/test-frexpl.c (zero): Remove variable.
11795         (minus_zero): New variable.
11796         (main): Use minus_zero instead of -zero.
11797         * modules/frexpl-tests (Depends-on): Add float.
11798
11799         * tests/test-isnan.c (zerol): Remove variable.
11800         (minus_zerol): New variable.
11801         (test_long_double): Use minus_zerol instead of -zerol.
11802         * modules/isnan-tests (Depends-on): Add float.
11803
11804         * tests/test-isnanl.h (zero): Remove variable.
11805         (minus_zero): New variable.
11806         (main): Use minus_zero instead of -zero.
11807         * modules/isnanl-nolibm-tests (Depends-on): Add float.
11808         * modules/isnanl-tests (Depends-on): Add float.
11809
11810         * tests/test-ldexpl.c (zero): Remove variable.
11811         (minus_zero): New variable.
11812         (main): Use minus_zero instead of -zero.
11813         * modules/ldexpl-tests (Depends-on): Add float.
11814
11815         * tests/test-snprintf-posix.h (zerol): Remove variable.
11816         (minus_zerol): New variable.
11817         (test_function): Use minus_zerol instead of -zerol.
11818         * modules/snprintf-posix-tests (Depends-on): Add float.
11819         * modules/vsnprintf-posix-tests (Depends-on): Add float.
11820
11821         * tests/test-sprintf-posix.h (zerol): Remove variable.
11822         (minus_zerol): New variable.
11823         (test_function): Use minus_zerol instead of -zerol.
11824         * modules/sprintf-posix-tests (Depends-on): Add float.
11825         * modules/vsprintf-posix-tests (Depends-on): Add float.
11826
11827         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
11828         (minus_zerol): New variable.
11829         (test_function): Use minus_zerol instead of -zerol.
11830         * modules/vasnprintf-posix-tests (Depends-on): Add float.
11831
11832         * tests/test-vasprintf-posix.c (zerol): Remove variable.
11833         (minus_zerol): New variable.
11834         (test_function): Use minus_zerol instead of -zerol.
11835         * modules/vasprintf-posix-tests (Depends-on): Add float.
11836
11837 2008-10-07  Simon Josefsson  <simon@josefsson.org>
11838
11839         * MODULES.html.sh (Support for building documentation): Mention
11840         pmccabe2html.  Sort entries.
11841
11842         Add pmccabe2html module, from gnupdf.
11843         * build-aux/pmccabe.css: New file.
11844         * build-aux/pmccabe2html: New file.
11845         * m4/pmccabe2html.m4: New file.
11846         * modules/pmccabe2html: New file.
11847
11848 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
11849
11850         flock: new module
11851         * MODULES.html.sh: Add to list of modules.
11852         * lib/flock.c: flock implementation for Windows and Unix systems
11853         which have fcntl.
11854         * doc/glibc-functions/flock.texi: Update documentation.
11855         * lib/sys_file.in.h: <sys/file.h> header file.
11856         * m4/flock.m4: M4 macros.
11857         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
11858         * modules/flock: flock module.
11859         * modules/flock-tests: flock tests module.
11860         * modules/sys_file: sys/file.h module.
11861         * tests/test-flock.c: test suite for flock.
11862
11863 2008-10-06  Jim Meyering  <meyering@redhat.com>
11864
11865         bootstrap: check for LT_INIT more portably still ;-)
11866         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
11867         Spotted by Bruno Haible.
11868
11869 2008-10-06  Eric Blake  <ebb9@byu.net>
11870
11871         test-signbit: avoid tripping Irix cc bug on -0.0L
11872         * tests/test-signbit.c (minus_zerol): Delete, and replace with
11873         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
11874         entire testsuite consistent and avoids an Irix 6.2 bug.
11875
11876 2008-10-05  Bruno Haible  <bruno@clisp.org>
11877             Jim Meyering  <jim@meyering.net>
11878
11879         Add an option for ignoring EPIPE during close_stdout.
11880         * lib/closeout.h: Include <stdbool.h>.
11881         (close_stdout_set_ignore_EPIPE): New declaration.
11882         * lib/closeout.c: Include <stdbool.h>.
11883         (ignore_EPIPE): New variable.
11884         (close_stdout_set_ignore_EPIPE): New function.
11885         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
11886         * lib/close-stream.c (close_stream): Mention the possible EPIPE
11887         failure.
11888         * modules/closeout (Depends-on): Add stdbool.
11889
11890 2008-10-05  Bruno Haible  <bruno@clisp.org>
11891
11892         * modules/accept: New file.
11893         * modules/bind: New file.
11894         * modules/connect: New file.
11895         * modules/getpeername: New file.
11896         * modules/getsockname: New file.
11897         * modules/getsockopt: New file.
11898         * modules/listen: New file.
11899         * modules/recv: New file.
11900         * modules/recvfrom: New file.
11901         * modules/send: New file.
11902         * modules/sendto: New file.
11903         * modules/setsockopt: New file.
11904         * modules/socket: New file.
11905         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
11906         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11907         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
11908         the particular module is requested. Add a link warning when the
11909         particular module is not requested.
11910         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
11911         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
11912         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
11913         the particular module is requested.
11914         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
11915         gl_SYS_SOCKET_H_DEFAULTS): New macros.
11916         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
11917         * modules/sys_socket (Depends-on): Add link-warning.
11918         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
11919         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
11920         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
11921         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
11922         GL_LINK_WARNING.
11923         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
11924         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
11925         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
11926         * doc/posix-functions/getpeername.texi: Mention the new module
11927         'getpeername'.
11928         * doc/posix-functions/getsockname.texi: Mention the new module
11929         'getsockname'.
11930         * doc/posix-functions/getsockopt.texi: Mention the new module
11931         'getsockopt'.
11932         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
11933         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
11934         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
11935         * doc/posix-functions/send.texi: Mention the new module 'send'.
11936         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
11937         * doc/posix-functions/setsockopt.texi: Mention the new module
11938         'setsockopt'.
11939         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
11940         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
11941         listen, connect, accept.
11942         * modules/select-tests (Depends-on): Likewise.
11943
11944 2008-10-05  Bruno Haible  <bruno@clisp.org>
11945
11946         * lib/winsock.c (strerror): Remove unused #undef.
11947         (rpl_close): Remove unused local variable.
11948
11949         * modules/sys_socket (Depends-on); Add errno.
11950
11951 2008-10-05  Bruno Haible  <bruno@clisp.org>
11952
11953         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
11954         (select): Add a link warning when the 'select' module is not used.
11955         * modules/sys_select (Depends-on): Add link-warning.
11956         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
11957         Suggested by Paolo Bonzini.
11958
11959 2008-10-05  Jim Meyering  <meyering@redhat.com>
11960
11961         bootstrap: check for LT_INIT more portably
11962         * build-aux/bootstrap: Avoid using grep -E, since it's not
11963         portable enough.  Suggestion from Bruno Haible.
11964
11965 2008-10-05  Bruno Haible  <bruno@clisp.org>
11966
11967         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
11968         as being fixed by gnulib.
11969
11970 2008-10-05  Bruno Haible  <bruno@clisp.org>
11971
11972         * modules/select-tests: New file, mostly copied from
11973         modules/sys_select-tests.
11974         * tests/test-select.c: New file, mostly copied from
11975         tests/test-sys_select.c.
11976         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
11977         * modules/sys_select-tests (Depends-on): Remove all dependencies.
11978         (Makefile.am): Remove test_sys_select_LDADD.
11979
11980         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
11981         to an undefined symbol, for an error message.
11982         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
11983         (gl_SYS_SELECT_H_DEFAULTS): New macro.
11984         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
11985         winsock-select.c here.
11986         * modules/sys_select (Files): Remove lib/winsock-select.c.
11987         (Depends-on): Remove alloca.
11988         (Makefile.am): Substitute GNULIB_SELECT.
11989         * modules/select: New file.
11990         * doc/posix-functions/select.texi: Update.
11991
11992 2008-10-05  Bruno Haible  <bruno@clisp.org>
11993
11994         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
11995         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
11996         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
11997         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
11998         getdtablesize.
11999         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12000         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12001
12002 2008-10-05  Bruno Haible  <bruno@clisp.org>
12003
12004         * modules/getdtablesize-tests: New file.
12005         * tests/test-getdtablesize.c: New file.
12006
12007         New module 'getdtablesize'.
12008         * lib/unistd.in.h (getdtablesize): New declaration.
12009         * lib/getdtablesize.c: New file.
12010         * m4/getdtablesize.m4: New file.
12011         * modules/getdtablesize: New file.
12012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12013         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
12014         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
12015         HAVE_GETDTABLESIZE.
12016         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
12017
12018 2008-10-05  Bruno Haible  <bruno@clisp.org>
12019
12020         * modules/sched (Makefile.am): Fix typo.
12021         Reported by Simon Josefsson.
12022
12023 2008-10-05  Jim Meyering  <meyering@redhat.com>
12024
12025         bootstrap: check for LT_INIT, too
12026         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
12027         are deprecated.  Suggestion from Ralf Wildenhues.
12028
12029 2008-10-05  Bruno Haible  <bruno@clisp.org>
12030
12031         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
12032         overriding them by ours.
12033         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
12034
12035 2008-10-05  Jim Meyering  <meyering@redhat.com>
12036
12037         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
12038         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
12039         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
12040
12041 2008-10-04  Bruno Haible  <bruno@clisp.org>
12042
12043         * modules/dup2 (License): Change to LGPLv2+.
12044         * modules/sleep (License): Likewise.
12045         * modules/perror (License): Likewise.
12046         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
12047         Blake.
12048         * modules/signal (License): Likewise.
12049         * modules/sigprocmask (License): Likewise.
12050         * modules/raise (License): Change to LGPLv2+, with approval by Jim
12051         Meyering.
12052
12053 2008-10-04  Bruno Haible  <bruno@clisp.org>
12054
12055         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
12056         Reported by Rainer Tammer <tammer@tammer.net>.
12057
12058 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
12059             Bruno Haible  <bruno@clisp.org>
12060
12061         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
12062         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
12063         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
12064
12065 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
12066
12067         filevercmp: new module
12068         * lib/filevercmp.h: New function filevercmp comparing version strings.
12069         * lib/filevercmp.c: Implementation of filevercmp function.
12070         * modules/filevercmp: Module metadata.
12071         * tests/test-filevercmp.c: Unit test for new module.
12072         * modules/filevercmp-tests: Unit test metadata.
12073         * MODULES.html.sh: Add filevercmp module.
12074
12075 2008-10-03  Bruno Haible  <bruno@clisp.org>
12076
12077         * lib/c-ctype.h: Add comment.
12078         Reported by Jim Meyering.
12079
12080 2008-10-02  Bruno Haible  <bruno@clisp.org>
12081
12082         * modules/posix_spawn-internal (Depends-on): Add 'open'.
12083
12084 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
12085
12086         * build-aux/bootstrap: Allow renaming bootstrap, and change the
12087         name of bootstrap.conf accordingly.
12088
12089 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
12090
12091         * build-aux/bootstrap: Install git-merge-changelog configuration
12092         items into .gitconfig if needed.
12093
12094 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
12095
12096         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
12097         git repository, and initialize/update it accordingly.
12098
12099 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
12100
12101         * modules/fsync-tests: New file.
12102         * tests/test-fsync.c: New file.
12103
12104         New module 'fsync'.
12105         * lib/fsync.c: New file.
12106         * m4/fsync.m4: New file.
12107         * modules/fsync: New file.
12108         * lib/unistd.in.h (fsync): New declaration.
12109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
12110         GNULIB_FSYNC and HAVE_FSYNC.
12111         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
12112         * MODULES.html.sh (posix_functions): Add fsync.
12113         * doc/posix-functions/fsync.texi: Mention the new module.
12114
12115 2008-10-02  Jim Meyering  <meyering@redhat.com>
12116
12117         fts.c: sync with similar code from coreutils' remove.c
12118         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
12119         Guard also with "#if defined __linux__", since for now at least,
12120         this code is Linux-kernel-specific.
12121
12122 2008-10-02  Jim Meyering  <meyering@redhat.com>
12123
12124         fts: bug fixes
12125         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
12126         Include <sys/vfs.h>, not <sys/statfs.h>.
12127
12128         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
12129         Include <sys/vfs.h>, not <sys/statfs.h>.
12130
12131 2008-10-01  Bruno Haible  <bruno@clisp.org>
12132
12133         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
12134         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
12135         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
12136         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
12137         * doc/posix-functions/posix_spawnp.texi: Likewise.
12138         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
12139         whether posix_spawn actually works.
12140         * m4/pipe.m4 (gl_PIPE): Likewise.
12141         * modules/execute (Files): Add m4/posix_spawn.m4.
12142         * modules/pipe (Files): Add m4/posix_spawn.m4.
12143         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
12144
12145 2008-10-01  Jim Meyering  <meyering@redhat.com>
12146
12147         remove trailing spaces
12148         * NEWS: Likewise.
12149         * lib/poll.c (poll): Likewise.
12150         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
12151         * lib/winsock.c (rpl_close): Likewise.
12152         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
12153         * modules/yield: Likewise.
12154         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
12155         * tests/test-sys_select.c (connect_to_socket): Likewise.
12156
12157         fts.c: adjust a new interface to be more generally useful
12158         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
12159         (fts_build): Adjust caller.
12160
12161 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12162
12163         * modules/cond-tests: New file.
12164         * tests/test-cond.c: New file.
12165
12166 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12167             Bruno Haible  <bruno@clisp.org>
12168
12169         * modules/cond (Dependencies): Add errno, time.
12170         * lib/glthread/cond.h: Include <time.h>.
12171         (gl_cond_define, gl_cond_define_initialized): Use the same definition
12172         across platforms.
12173
12174 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12175             Bruno Haible  <bruno@clisp.org>
12176
12177         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
12178
12179 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12180             Bruno Haible  <bruno@clisp.org>
12181
12182         * modules/tls-tests (Depends-on): Add thread, yield.
12183         (configure.ac): Remove all checks.
12184         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
12185         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
12186         gl_thread_self): Remove definitions. Include glthread/thread.h and
12187         glthread/yield.h instead.
12188         (test_tls): Pass an additional NULL argument to gl_thread_join.
12189
12190 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12191             Bruno Haible  <bruno@clisp.org>
12192
12193         * modules/lock-tests (Depends-on): Add thread, yield.
12194         (configure.ac): Remove all checks.
12195         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
12196         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
12197         gl_thread_self): Remove definitions. Include glthread/thread.h and
12198         glthread/yield.h instead.
12199         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
12200         additional NULL argument to gl_thread_join.
12201
12202 2008-09-30  Bruno Haible  <bruno@clisp.org>
12203
12204         Fix the Win32 implementation of the 'thread' module.
12205         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
12206         pointer type.
12207         (gl_thread_self): Invoke gl_thread_self_func.
12208         (gl_thread_self_func): New declaration.
12209         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
12210         (do_init_self_key, init_self_key): New functions.
12211         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
12212         Remove some fields.
12213         (running_threads, running_lock): Remove variables.
12214         (get_current_thread_handle): New function.
12215         (gl_thread_self_func, wrapper_func, glthread_create_func,
12216         glthread_join_func, gl_thread_exit_func): Largely rewritten and
12217         simplified.
12218
12219 2008-09-30  Bruno Haible  <bruno@clisp.org>
12220
12221         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
12222         files.
12223
12224 2008-09-30  Jim Meyering  <meyering@redhat.com>
12225
12226         fts.m4: correct the test for statfs.f_type
12227         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
12228         when checking for statfs.f_type.
12229
12230 2008-09-15  Simon Josefsson  <simon@josefsson.org>
12231
12232         tests: avoid some compiler warnings
12233         * tests/test-memchr.c (main): Pass NULL indirectly.
12234         * tests/test-getdate.c (main): Remove unused variable 'ret'.
12235
12236 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
12237
12238         getdate.y: disallow countable dayshifts like "4 yesterday ago"
12239         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
12240         exactly specified dayshifts.
12241         (dayshift): New rule.
12242         (rel): Add dayshift.
12243         (relative_time_table) [tomorrow, yesterday, today, now]:
12244         Use tDAY_SHIFT in place of tDAY_UNIT.
12245         * tests/test-getdate.c: Add tests for now-disallowed countable
12246         dayshifts, e.g., "4 yesterday ago".
12247
12248 2008-09-29  Bruno Haible  <bruno@clisp.org>
12249
12250         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
12251         * tests/test-posix_spawn1.in.sh: Renamed from
12252         tests/test-posix_spawn.in.sh.
12253         * tests/test-posix_spawn2.c: New file.
12254         * tests/test-posix_spawn2.in.sh: New file.
12255         * modules/posix_spawnp-tests (Files): Update.
12256         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
12257
12258 2008-09-29  Bruno Haible  <bruno@clisp.org>
12259
12260         Propagate effects of putenv/setenv/unsetenv to child processes.
12261         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
12262         * lib/pipe.c (create_pipe): Likewise.
12263
12264 2008-09-29  Bruno Haible  <bruno@clisp.org>
12265
12266         Enable use of shell scripts as executables in mingw.
12267         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
12268         run the program as a shell script.
12269         * lib/pipe.c (create_pipe): Likewise.
12270         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
12271         resulting array.
12272
12273 2008-09-29  Eric Blake  <ebb9@byu.net>
12274
12275         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
12276
12277 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
12278
12279         * doc/posix-functions/accept.texi: Update mingw problems.
12280         * doc/posix-functions/bind.texi: Update mingw problems.
12281         * doc/posix-functions/close.texi: Update mingw problems.
12282         * doc/posix-functions/connect.texi: Update mingw problems.
12283         * doc/posix-functions/getpeername.texi: Update mingw problems.
12284         * doc/posix-functions/getsockname.texi: Update mingw problems.
12285         * doc/posix-functions/getsockopt.texi: Update mingw problems.
12286         * doc/posix-functions/ioctl.texi: Update mingw problems.
12287         * doc/posix-functions/listen.texi: Update mingw problems.
12288         * doc/posix-functions/recv.texi: Update mingw problems.
12289         * doc/posix-functions/recvfrom.texi: Update mingw problems.
12290         * doc/posix-functions/select.texi: Update mingw problems.
12291         * doc/posix-functions/send.texi: Update mingw problems.
12292         * doc/posix-functions/sendto.texi: Update mingw problems.
12293         * doc/posix-functions/setsockopt.texi: Update mingw problems.
12294         * doc/posix-functions/socket.texi: Update mingw problems.
12295
12296 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
12297             Bruno Haible  <bruno@clisp.org>
12298
12299         * lib/sys_select.in.h: Include sys/time.h.
12300         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
12301         * modules/sys_select: Depend on sys_time.
12302         * tests/test-sys_select.c: Test that sys/select.h defines struct
12303         timeval fully.
12304
12305 2008-09-29  Bruno Haible  <bruno@clisp.org>
12306
12307         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
12308         * lib/sys_select.in.h: Likewise.
12309
12310 2008-09-29  Bruno Haible  <bruno@clisp.org>
12311
12312         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
12313
12314 2008-09-29  Bruno Haible  <bruno@clisp.org>
12315
12316         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
12317         Set LIBSOCKET instead of augmenting LIBS.
12318         * modules/sockets (Link): New section.
12319         * modules/sockets-tests (test_sockets_LDADD): New variable.
12320         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
12321         * modules/poll-tests (test_poll_LDADD): New variable.
12322         * NEWS: Document the change.
12323
12324 2008-09-29  Bruno Haible  <bruno@clisp.org>
12325
12326         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
12327         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
12328         ARPA_INET_H directly.
12329         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12330
12331 2008-09-28  Bruno Haible  <bruno@clisp.org>
12332
12333         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
12334         from gl_HEADER_SYS_SOCKET.
12335         (gl_HEADER_SYS_SOCKET): Invoke it.
12336         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12337
12338 2008-09-28  Bruno Haible  <bruno@clisp.org>
12339
12340         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
12341         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
12342         Needed on OSF/1 4.0.
12343
12344 2008-09-28  Bruno Haible  <bruno@clisp.org>
12345
12346         Override open more carefully.
12347         * lib/open.c (orig_open): New function.
12348         (rpl_open): Use orig_open instead of open.
12349         * lib/fcntl.in.h: Add special invocation convention.
12350         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
12351         (gl_FUNC_OPEN): Invoke it.
12352
12353         Override freopen more carefully.
12354         * lib/freopen.c (orig_freopen): New function.
12355         (rpl_freopen): Use orig_freopen instead of freopen.
12356         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
12357         (gl_FUNC_FREOPEN): Invoke it.
12358
12359         Override fopen more carefully.
12360         * lib/fopen.c (orig_fopen): New function.
12361         (rpl_fopen): Use orig_fopen instead of fopen.
12362         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
12363         (gl_FUNC_FOPEN): Invoke it.
12364         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
12365
12366 2008-09-28  Bruno Haible  <bruno@clisp.org>
12367
12368         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
12369         SIGPIPE.
12370
12371 2008-09-28  Bruno Haible  <bruno@clisp.org>
12372
12373         * tests/test-sigaction.c (handler, main): Disable the check whether
12374         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
12375         glibc systems with LinuxThreads.
12376
12377 2008-09-28  Bruno Haible  <bruno@clisp.org>
12378
12379         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
12380
12381         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
12382         with AIX xlc.
12383         * lib/fcntl.in.h (open): Likewise.
12384         Reported by Rainer Tammer <tammer@tammer.net>.
12385
12386 2008-09-28  Bruno Haible  <bruno@clisp.org>
12387
12388         * modules/posix_spawnp-tests: New file.
12389         * tests/test-posix_spawn.c: New file.
12390         * tests/test-posix_spawn.in.sh: New file.
12391
12392         New module 'posix_spawnp'.
12393         * modules/posix_spawnp: New file.
12394         * lib/spawnp.c: New file, from GNU libc with modifications.
12395         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
12396
12397         New module 'posix_spawn'.
12398         * modules/posix_spawn: New file.
12399         * lib/spawn.c: New file, from GNU libc with modifications.
12400         * doc/posix-functions/posix_spawn.texi: Mention the new module.
12401
12402         New module 'posix_spawnattr_destroy'.
12403         * modules/posix_spawnattr_destroy: New file.
12404         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
12405         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
12406         module.
12407
12408         New module 'posix_spawnattr_setsigmask'.
12409         * modules/posix_spawnattr_setsigmask: New file.
12410         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
12411         modifications.
12412         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
12413         new module.
12414
12415         New module 'posix_spawnattr_getsigmask'.
12416         * modules/posix_spawnattr_getsigmask: New file.
12417         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
12418         modifications.
12419         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
12420         new module.
12421
12422         New module 'posix_spawnattr_setsigdefault'.
12423         * modules/posix_spawnattr_setsigdefault: New file.
12424         * lib/spawnattr_setdefault.c: New file, from GNU libc with
12425         modifications.
12426         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
12427         new module.
12428
12429         New module 'posix_spawnattr_getsigdefault'.
12430         * modules/posix_spawnattr_getsigdefault: New file.
12431         * lib/spawnattr_getdefault.c: New file, from GNU libc with
12432         modifications.
12433         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
12434         new module.
12435
12436         New module 'posix_spawnattr_setschedpolicy'.
12437         * modules/posix_spawnattr_setschedpolicy: New file.
12438         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
12439         modifications.
12440         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
12441         new module.
12442
12443         New module 'posix_spawnattr_getschedpolicy'.
12444         * modules/posix_spawnattr_getschedpolicy: New file.
12445         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
12446         modifications.
12447         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
12448         new module.
12449
12450         New module 'posix_spawnattr_setschedparam'.
12451         * modules/posix_spawnattr_setschedparam: New file.
12452         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
12453         modifications.
12454         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
12455         new module.
12456
12457         New module 'posix_spawnattr_getschedparam'.
12458         * modules/posix_spawnattr_getschedparam: New file.
12459         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
12460         modifications.
12461         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
12462         new module.
12463
12464         New module 'posix_spawnattr_setpgroup'.
12465         * modules/posix_spawnattr_setpgroup: New file.
12466         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
12467         modifications.
12468         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
12469         module.
12470
12471         New module 'posix_spawnattr_getpgroup'.
12472         * modules/posix_spawnattr_getpgroup: New file.
12473         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
12474         modifications.
12475         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
12476         module.
12477
12478         New module 'posix_spawnattr_setflags'.
12479         * modules/posix_spawnattr_setflags: New file.
12480         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
12481         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
12482         module.
12483
12484         New module 'posix_spawnattr_getflags'.
12485         * modules/posix_spawnattr_getflags: New file.
12486         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
12487         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
12488         module.
12489
12490         New module 'posix_spawnattr_init'.
12491         * modules/posix_spawnattr_init: New file.
12492         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
12493         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
12494         module.
12495
12496         New module 'posix_spawn_file_actions_destroy'.
12497         * modules/posix_spawn_file_actions_destroy: New file.
12498         * lib/spawn_faction_destroy.c: New file, from GNU libc with
12499         modifications.
12500         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
12501         the new module.
12502
12503         New module 'posix_spawn_file_actions_addopen'.
12504         * modules/posix_spawn_file_actions_addopen: New file.
12505         * lib/spawn_faction_addopen.c: New file, from GNU libc with
12506         modifications.
12507         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
12508         the new module.
12509
12510         New module 'posix_spawn_file_actions_adddup2'.
12511         * modules/posix_spawn_file_actions_adddup2: New file.
12512         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
12513         modifications.
12514         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
12515         the new module.
12516
12517         New module 'posix_spawn_file_actions_addclose'.
12518         * modules/posix_spawn_file_actions_addclose: New file.
12519         * lib/spawn_faction_addclose.c: New file, from GNU libc with
12520         modifications.
12521         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
12522         the new module.
12523
12524         New module 'posix_spawn_file_actions_init'.
12525         * modules/posix_spawn_file_actions_init: New file.
12526         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
12527         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
12528         new module.
12529
12530         New module 'posix_spawn-internal'.
12531         * modules/posix_spawn-internal: New file.
12532         * lib/spawn_int.h: New file, from GNU libc with modifications.
12533         * lib/spawni.c: New file, from GNU libc with modifications.
12534         * m4/posix_spawn.m4: New file.
12535
12536         New module 'spawn'.
12537         * modules/spawn: New file.
12538         * lib/spawn.in.h: New file, from GNU libc with modifications.
12539         * m4/spawn_h.m4: New file.
12540         * doc/posix-headers/spawn.texi: Mention the new module.
12541
12542 2008-09-28  Bruno Haible  <bruno@clisp.org>
12543
12544         * modules/sched-tests: New file.
12545         * tests/test-sched.c: New file.
12546
12547         New module 'sched'.
12548         * modules/sched: New file.
12549         * lib/sched.in.h: New file.
12550         * m4/sched_h.m4: New file.
12551         * doc/posix-headers/sched.texi: Mention the new module.
12552
12553 2008-09-27  Eric Blake  <ebb9@byu.net>
12554
12555         Fix previous patch, and tweak references to $0.
12556         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
12557         (func_version, func_gnulib_dir): Don't call this program
12558         gnulib-tool.
12559         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
12560         with using $0 in function.
12561         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
12562         (func_fatal_error): Reuse the name the user invoked us with.
12563
12564 2008-09-27  Bruno Haible  <bruno@clisp.org>
12565
12566         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
12567         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
12568         (gl_ICONV_H): Not here.
12569         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
12570         instead of assigning ICONV_H directly.
12571
12572         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
12573         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
12574         WCHAR_H directly.
12575
12576 2008-09-27  Bruno Haible  <bruno@clisp.org>
12577
12578         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
12579         * modules/arpa_inet (Depends-on): Add link-warning.
12580         (Makefile.am): Insert the definition of GL_LINK-WARNING.
12581         * modules/unistd (Makefile.am): Likewise.
12582
12583 2008-09-26  Bruno Haible  <bruno@clisp.org>
12584
12585         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
12586         variables.
12587         (func_version): Essentially copied from gnulib-tool.
12588         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
12589         func_readlink): Copied from gnulib-tool.
12590
12591 2008-09-26  Bruno Haible  <bruno@clisp.org>
12592
12593         * gnulib-tool (func_version): Change directory to $gnulib_dir before
12594         invoking git-version-gen.
12595
12596 2008-09-26  Bruno Haible  <bruno@clisp.org>
12597
12598         * posix-modules: Update to directory names changed on 2008-01-19.
12599         Remove commas in output before splitting into words. No more need to
12600         avoid 'ftruncate' since 2007-02-19.
12601
12602 2008-09-26  Bruno Haible  <bruno@clisp.org>
12603
12604         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
12605
12606 2008-09-26  Bruno Haible  <bruno@clisp.org>
12607
12608         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
12609         * modules/fwriteerror (Depends-on): Add errno.
12610
12611 2008-09-26  Bruno Haible  <bruno@clisp.org>
12612
12613         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
12614         * tests/test-vc-list-files-cvs.sh: Likewise.
12615
12616 2008-09-26  Bruno Haible  <bruno@clisp.org>
12617
12618         * doc/posix-headers/sys_resource.texi: Reorder items.
12619
12620 2008-09-26  Jim Meyering  <meyering@redhat.com>
12621
12622         fts: tweak inode comparison function
12623         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
12624         inode numbers, as documented.
12625
12626         fts: sort dirent entries on inode number before traversing
12627         This avoids a quadratic, seek-related performance penalty when
12628         operating on a directory containing many entries (measurable at 10k;
12629         3.5 hours at 2 million entries with a cold cache) on certain types
12630         of file systems, including ext3 and ext4, but not tmpfs.
12631         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
12632         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
12633         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
12634         (fs_handles_readdir_ordered_dirents_efficiently): New function.
12635         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
12636         (fts_build): Set the stat.st_ino member from D_INO.
12637         If it is likely to be useful, sort dirent entries on inode number.
12638
12639         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
12640         and the struct statfs.f_type member.
12641         * modules/fts (Depends-on): Add d-ino.
12642
12643 2008-09-26  Bruno Haible  <bruno@clisp.org>
12644
12645         * modules/sigpipe-die (Depends-on): Add sigpipe.
12646
12647         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
12648         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
12649         and GNULIB_STDIO_H_SIGPIPE are set.
12650         * lib/stdio-write.c: New file.
12651         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
12652         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
12653         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
12654         REPLACE_STDIO_WRITE_FUNCS.
12655         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
12656         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
12657         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
12658         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
12659         * modules/stdio (Files): Add lib/stdio-write.c.
12660         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
12661         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
12662         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
12663         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
12664         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
12665         REPLACE_FPRINTF_POSIX.
12666         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
12667         REPLACE_PRINTF_POSIX.
12668         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
12669         REPLACE_VFPRINTF_POSIX.
12670         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
12671         REPLACE_VPRINTF_POSIX.
12672         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
12673         SIGPIPE issue.
12674         * doc/posix-functions/fputc.texi: Likewise.
12675         * doc/posix-functions/fputs.texi: Likewise.
12676         * doc/posix-functions/fwrite.texi: Likewise.
12677         * doc/posix-functions/printf.texi: Likewise.
12678         * doc/posix-functions/putc.texi: Likewise.
12679         * doc/posix-functions/putchar.texi: Likewise.
12680         * doc/posix-functions/puts.texi: Likewise.
12681         * doc/posix-functions/vfprintf.texi: Likewise.
12682         * doc/posix-functions/vprintf.texi: Likewise.
12683
12684         * modules/safe-write (Depends-on): Add write.
12685
12686         * modules/sigpipe-tests: New file.
12687         * tests/test-sigpipe.c: New file.
12688         * tests/test-sigpipe.sh: New file.
12689
12690         * modules/write: New file.
12691         * lib/unistd.in.h: Include <sys/types.h>.
12692         (write): New declaration.
12693         * lib/write.c: New file.
12694         * m4/write.m4: New file.
12695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12696         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
12697         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
12698         GNULIB_WRITE, REPLACE_WRITE.
12699         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
12700         and the SIGPIPE issue.
12701
12702         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
12703         (raise): New declaration.
12704         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
12705         (ext_signal): New function.
12706         (rpl_raise): New function.
12707         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12708         GNULIB_SIGNAL_H_SIGPIPE.
12709         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
12710         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
12711
12712         * modules/sigpipe: New file.
12713         * m4/sigpipe.m4: New file.
12714
12715 2008-09-25  Derek Price  <derek@ximbiot.com>
12716             Bruno Haible  <bruno@clisp.org>
12717
12718         * gnulib-tool (func_import): Report all license incompatibilities, not
12719         just the first one.
12720
12721 2008-09-25  Bruno Haible  <bruno@clisp.org>
12722
12723         * gnulib-tool (func_import): When computing the edits, consider not
12724         only the Makefile.ams that exist but also those that will be generated.
12725
12726 2008-09-25  Simon Josefsson  <simon@josefsson.org>
12727
12728         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
12729         fixes gnulib-tool --test warning about duplicate dependency.
12730
12731 2008-09-25  Bruno Haible  <bruno@clisp.org>
12732
12733         * gnulib-tool: Don't ask the user to perform edits in the generated
12734         Makefile.ams.
12735         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
12736         apply to the Makefile.am being generated.
12737         (func_emit_tests_Makefile_am): Execute edits that apply to the
12738         Makefile.am being generated.
12739         (func_import): Setup list of Makefile.am edits before emitting the
12740         Makefile.ams, not at the end.
12741         (func_create_testdir): Update.
12742         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
12743
12744 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12745
12746         * gnulib-tool (func_import): Store the --tests-base option in the
12747         comment in gnulib-cache.m4.
12748
12749 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
12750
12751         * NEWS: Document increased portability that sys_select now provides.
12752
12753         * lib/sys_select.in.h: Install select wrapper.
12754         * lib/sys_socket.in.h: Use more descriptive name when there is no
12755         select wrapper.
12756         * lib/winsock-select.c: New.
12757         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
12758         Require gl_HEADER_SYS_SOCKET.
12759         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
12760         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
12761         * tests/test-sys_select.c: Add functional tests.
12762
12763 2008-09-24  Eric Blake  <ebb9@byu.net>
12764
12765         open, fopen: close fd leak in last patch
12766         * lib/open.c (rpl_open): Close fd before returning error.
12767         * lib/fopen.c (rpl_fopen): Close fd before returning error.
12768         * doc/posix-functions/open.texi (open): Document that Irix also
12769         has the bug.
12770         * doc/posix-functions/fopen.texi (fopen): Likewise.
12771         Reported by Paolo Bonzini.
12772
12773 2008-09-24  Bruno Haible  <bruno@clisp.org>
12774
12775         Ensure that a filename ending in a slash cannot be used to access a
12776         non-directory.
12777         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
12778         to check whether it's really a directory.
12779         * lib/fopen.c: Include fcntl.h, unistd.h.
12780         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
12781         and fdopen().
12782         * modules/fopen (Depends-on): Add unistd.
12783         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
12784         * tests/test-fopen.c (main): Likewise.
12785         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
12786         * doc/posix-functions/fopen.texi: Likewise.
12787         Reported by Eric Blake.
12788
12789 2008-09-23  Eric Blake  <ebb9@byu.net>
12790
12791         c-stack: avoid compiler optimizations when provoking overflow
12792         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
12793         recursion harder to optimize, to ensure a stack overflow occurs.
12794         * tests/test-c-stack.c (recurse): Likewise.
12795         Borrowed from libsigsegv.
12796
12797         c-stack: work around Irix sigaltstack bug
12798         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
12799         whether sigaltstack uses wrong end of stack_t (copied in part from
12800         libsigsegv).
12801         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
12802         Irix bug, without requiring an over-allocation.
12803         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
12804         bug.
12805
12806         fopen: document mingw bug on directories
12807         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
12808         not allowing a stream visiting a directory, even though reading
12809         from such a stream is not portable.
12810
12811 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
12812
12813         * lib/poll.c: Rewrite.
12814         * modules/poll: Depend on alloca.
12815
12816 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
12817
12818         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
12819         instead define prototypes for a full set of wrappers.  Ensure
12820         that Cygwin does not use the compatibility code, which is only
12821         for MinGW.
12822         * lib/winsock.c: New.
12823         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
12824         * modules/sys_socket: Add lib/winsock.c.
12825
12826         * modules/poll-tests: Add errno and perror.
12827         * tests/test-poll.c: Use ioctl, not ioctlsocket.
12828
12829 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
12830
12831         * tests/test-poll.c: Downgrade minimum needed Winsock version.
12832
12833 2008-09-23  Bruno Haible  <bruno@clisp.org>
12834
12835         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
12836         * doc/glibc-functions/*: Likewise.
12837
12838 2008-09-23  Simon Josefsson  <simon@josefsson.org>
12839
12840         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
12841         success.
12842
12843 2008-09-22  Eric Blake  <ebb9@byu.net>
12844             Bruno Haible  <bruno@clisp.org>
12845
12846         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
12847         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
12848         supply %A but mishandle pseudo-NaN.
12849         Reported by Simon Josefsson.
12850
12851 2008-09-21  Bruno Haible  <bruno@clisp.org>
12852
12853         * tests/test-lock.c (main): Tweak skip message.
12854         * tests/test-tls.c (main): Likewise.
12855
12856 2008-09-21  Bruno Haible  <bruno@clisp.org>
12857
12858         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
12859         whether 'struct sigaction' has sa_sigaction here...
12860         (gl_PREREQ_SIG_HANDLER_H): ... not here.
12861         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
12862
12863 2008-09-21  Bruno Haible  <bruno@clisp.org>
12864
12865         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
12866         section.
12867         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
12868         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
12869         the new section.
12870         (Support for obsolete systems lacking POSIX:2001): New section.
12871         (String handling <string.h>): Move strdup to the new section.
12872         Suggested by Simon Josefsson and Paolo Bonzini.
12873
12874 2008-09-21  Bruno Haible  <bruno@clisp.org>
12875
12876         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
12877         exponents in %e and %g results on 'long double'. Needed for mingw's
12878         improved *printf functions.
12879         * tests/test-vasprintf-posix.c (test_function): Likewise.
12880         * tests/test-snprintf-posix.h (test_function): Likewise.
12881         * tests/test-sprintf-posix.h (test_function): Likewise.
12882         Reported by Eric Blake.
12883
12884 2008-09-21  Bruno Haible  <bruno@clisp.org>
12885
12886         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
12887         * tests/test-sprintf-posix.h (test_function): Likewise.
12888
12889 2008-09-21  Bruno Haible  <bruno@clisp.org>
12890
12891         * modules/getpass (Depends-on): Add strdup-posix.
12892
12893         New module 'strdup-posix'.
12894         * modules/strdup-posix: New file.
12895         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
12896         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
12897         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12898         REPLACE_STRDUP.
12899         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
12900         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
12901         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12902         strdup-posix.
12903
12904         * modules/strdup (Depends-on): Remove malloc-posix.
12905
12906 2008-09-20  Bruno Haible  <bruno@clisp.org>
12907
12908         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
12909         Wildenhues.
12910
12911 2008-09-20  Bruno Haible  <bruno@clisp.org>
12912
12913         Ensure that wint_t gets defined on IRIX 5.3.
12914         * lib/wchar.in.h (wint_t): Define if not defined by the system.
12915         * lib/wctype.in.h (wint_t): Likewise.
12916         (__wctype_wint_t): Remove type.
12917         (isw*): Use wint_t instead of __wctype_wint_t.
12918         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
12919         * modules/wchar (Files): Add m4/wint_t.m4.
12920         (Makefile.am): Substitute HAVE_WINT_T.
12921         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
12922         * tests/test-wctype.c: Check that wint_t is defined.
12923         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
12924         * doc/posix-headers/wctype.texi: Likewise.
12925         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12926
12927 2008-09-18  Bruno Haible  <bruno@clisp.org>
12928
12929         * gnulib-tool (func_exit): Update comment.
12930
12931 2008-09-18  Simon Josefsson  <simon@josefsson.org>
12932
12933         * modules/getaddrinfo (Depends-on): Remove strdup, this module
12934         assumes strdup exists and does not depend on strdup to return
12935         ENOMEM on out of memory conditions.
12936
12937 2008-09-18  Bruno Haible  <bruno@clisp.org>
12938
12939         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
12940         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
12941         digits for the exponent.
12942
12943 2008-09-18  Jim Meyering  <meyering@redhat.com>
12944             Bruno Haible  <bruno@clisp.org>
12945
12946         * lib/vasnprintf.c (decimal_point_char): Define also if
12947         NEED_PRINTF_INFINITE_LONG_DOUBLE.
12948
12949 2008-09-16  Bruno Haible  <bruno@clisp.org>
12950         and Eric Blake  <ebb9@byu.net>
12951
12952         vasnprintf: support Irix 5.3
12953         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
12954         that mishandle long double infinity.
12955         Reported by Tom G. Christensen.
12956
12957 2008-09-16  Bruno Haible  <bruno@clisp.org>
12958
12959         * doc/glibc-functions/scandir.texi: Mention the function is missing on
12960         Solaris 9.
12961         * doc/glibc-functions/alphasort.texi: Likewise.
12962         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
12963
12964 2008-09-16  Jim Meyering  <meyering@redhat.com>
12965
12966         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
12967         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
12968         a umask modification leak out of a subshell.  Otherwise, the
12969         opensolaris /bin/sh would be accepted and thus cause unwarranted
12970         failures in the coreutils test suite.
12971
12972 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
12973
12974         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
12975         to succeed.
12976
12977 2008-09-16  Jim Meyering  <meyering@redhat.com>
12978
12979         avoid spurious test failure when library is built without ACL support
12980         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
12981         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
12982         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
12983         * tests/test-copy-acl.sh: Likewise.
12984
12985 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12986
12987         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
12988         based on character occurrence counts.
12989
12990 2008-09-15  Eric Blake  <ebb9@byu.net>
12991
12992         tests: avoid some compiler warnings
12993         * tests/test-memchr.c (main): Pass NULL indirectly.
12994         * tests/test-closein.c (main): Avoid unused variable.
12995
12996 2008-09-15  Bruno Haible  <bruno@clisp.org>
12997
12998         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
12999         are missing on OpenBSD 4.0 individually.
13000         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13001
13002 2008-09-15  Bruno Haible  <bruno@clisp.org>
13003
13004         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
13005         * doc/posix-functions/strerror.texi: Mention also Cygwin.
13006         * doc/posix-functions/perror.texi: Likewise.
13007         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
13008         is missing.
13009         Reported by Eric Blake.
13010
13011         * lib/errno.in.h: Use replacement values >= 2000.
13012         Reported by Eric Blake.
13013
13014 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13015
13016         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
13017         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
13018         limit.
13019         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
13020         compareseq was aborted.
13021
13022 2008-09-14  Bruno Haible  <bruno@clisp.org>
13023
13024         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
13025         yvec_edit_count.
13026         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
13027         (fstrcmp_bounded): Simplify result computation accordingly.
13028
13029 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13030
13031         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
13032         (fstrcmp): Define in terms of fstrcmp_bounded.
13033         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
13034         lower_bound argument.
13035         Return quickly if the result is certainly < lower_bound.
13036         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
13037
13038 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13039
13040         * lib/diffseq.h (EARLY_ABORT): New macro.
13041         (compareseq): Change return type to bool. Return true when EARLY_ABORT
13042         evaluates to true.
13043
13044 2008-09-14  Bruno Haible  <bruno@clisp.org>
13045
13046         * modules/perror-tests: New file.
13047         * tests/test-perror.sh: New file.
13048         * tests/test-perror.c: New file.
13049
13050         New module 'perror'.
13051         * lib/stdio.in.h (perror): New declaration.
13052         * lib/perror.c: New file.
13053         * m4/perror.m4: New file.
13054         * modules/perror: New file.
13055         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
13056         * doc/posix-functions/perror.texi: Mention the perror module.
13057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
13058         REPLACE_PERROR.
13059         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
13060         REPLACE_PERROR.
13061
13062 2008-09-14  Bruno Haible  <bruno@clisp.org>
13063
13064         * modules/stdio (Makefile.am): Reorder to match the order in
13065         lib/stdio.in.h.
13066         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13067
13068 2008-09-13  Bruno Haible  <bruno@clisp.org>
13069
13070         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
13071
13072 2008-09-13  Bruno Haible  <bruno@clisp.org>
13073
13074         Extend strerror to cover the added errno values.
13075         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
13076         (rpl_strerror): Provide error messages for the added errno values and
13077         for the WSA* values.
13078         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
13079         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
13080         strerror.
13081         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
13082         * modules/strerror (Depends-on): Add errno.
13083         * doc/posix-functions/strerror.texi: Document the change.
13084         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
13085         and EOVERFLOW.
13086
13087 2008-09-13  Bruno Haible  <bruno@clisp.org>
13088
13089         * modules/EOVERFLOW: Remove file.
13090         * m4/eoverflow.m4: Remove file.
13091         * modules/EOVERFLOW-tests: Remove file.
13092         * tests/test-EOVERFLOW.c: Remove file.
13093         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
13094         * modules/ftell (Depends-on): Likewise.
13095         * modules/getdelim (Depends-on): Likewise.
13096         * modules/getugroups (Depends-on): Likewise.
13097         * modules/poll (Depends-on): Likewise.
13098         * modules/snprintf (Depends-on): Likewise.
13099         * modules/sprintf-posix (Depends-on): Likewise.
13100         * modules/vasnprintf (Depends-on): Likewise.
13101         * modules/vasprintf (Depends-on): Likewise.
13102         * modules/vfprintf-posix (Depends-on): Likewise.
13103         * modules/vsnprintf (Depends-on): Likewise.
13104         * modules/vsprintf-posix (Depends-on): Likewise.
13105         * modules/xvasprintf (Depends-on): Likewise.
13106         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13107         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
13108         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
13109         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
13110         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13111         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
13112         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
13113         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
13114         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13115         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
13116         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
13117         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
13118         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13119         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
13120         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
13121         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
13122         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13123         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
13124         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
13125         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
13126         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13127         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
13128         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
13129         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
13130         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
13131         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13132         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
13133         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
13134         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
13135         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
13136         * MODULES.html.sh: Remove EOVERFLOW.
13137         * NEWS: Mention the change.
13138
13139 2008-09-13  Bruno Haible  <bruno@clisp.org>
13140
13141         * modules/errno-tests: New file.
13142         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
13143
13144         * lib/errno.in.h: New file.
13145         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
13146         * modules/errno: New file.
13147         * doc/posix-headers/errno.texi: Update documentation.
13148         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
13149
13150 2008-09-13  Bruno Haible  <bruno@clisp.org>
13151
13152         * tests/test-poll.c: Use #if for native Windows, rather than testing
13153         __MSVCRT__.
13154
13155 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13156             Bruno Haible  <bruno@clisp.org>
13157
13158         * lib/glob.c: Don't include <pwd.h> on native Windows.
13159         (WINDOWS32): New macro.
13160         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
13161
13162 2008-09-13  Bruno Haible  <bruno@clisp.org>
13163
13164         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
13165         (ETIMEDOUT): Remove macro.
13166         (glthread_cond_timedwait_multithreaded): New declaration.
13167         (glthread_cond_timedwait): Use it.
13168         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
13169         (glthread_cond_timedwait_multithreaded): New function.
13170
13171 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
13172
13173         * modules/poll-tests: Do not check for io.h.
13174         * tests/test-poll.c: Check for __MSVCRT__ instead.
13175
13176 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
13177
13178         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
13179         * modules/poll-tests: Add inet_pton, stdbool, sockets.
13180         * tests/test-poll.c: Use them.  Use _pipe on Windows.
13181
13182 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
13183
13184         * modules/poll-tests: New.
13185         * tests/test-poll.c: New.
13186
13187 2008-09-12  Eric Blake  <ebb9@byu.net>
13188
13189         frexp: test for NetBSD failure on -0.0
13190         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
13191         not all, bugs from NetBSD 3.0 have been fixed.
13192         * doc/posix-functions/frexp.texi (frexp): Document bug.
13193         Reported by Thomas Klausner.
13194
13195         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
13196         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
13197         literal -0.0.
13198         Reported by Jonathan C. Patschke <jp@centtech.com>.
13199
13200 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13201
13202         * lib/glthread/cond.h: Use dummy implementation also if
13203         USE_WIN32_THREADS.
13204
13205 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13206
13207         * modules/fnmatch-posix (License): Change to LGPLv2+.
13208         * modules/fnmatch-gnu (License): Likewise.
13209
13210 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13211
13212         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
13213
13214 2008-09-11  Jim Meyering  <meyering@redhat.com>
13215
13216         * users.txt: Add gtk-vnc.
13217
13218 2008-09-08  Simon Josefsson  <simon@josefsson.org>
13219
13220         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
13221         rotate amounts.
13222
13223         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
13224         required for 16-bit and 8-bit rotates.
13225         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
13226         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
13227         UINT8_MAX instead of hard-coded constants.
13228         Suggested by Paul Eggert.
13229
13230 2008-09-07  Bruno Haible  <bruno@clisp.org>
13231
13232         * tests/test-striconveh.c (main): Check behaviour when converting from
13233         UTF-7.
13234
13235         Make striconveh work better with stateful encodings.
13236         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
13237         that iconv does not increment the inptr when returning -1/EINVAL.
13238
13239 2008-09-07  Bruno Haible  <bruno@clisp.org>
13240
13241         * build-aux/config.rpath: Update according to libtool-2.2.6.
13242         * build-aux/config.libpath: Likewise.
13243
13244 2008-09-06  Bruno Haible  <bruno@clisp.org>
13245
13246         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
13247         * lib/freadptr.c (freadptr): Likewise.
13248         * lib/freadseek.c (freadptrinc): Likewise.
13249         Reported by Simon Josefsson.
13250
13251 2008-09-06  Bruno Haible  <bruno@clisp.org>
13252
13253         * modules/freadptr (License): Change to LGPLv2+.
13254         * modules/freadseek (License): Likewise.
13255         Suggested by Eric Blake.
13256
13257         * modules/memchr2 (License): Change to LGPLv2+.
13258         Approved by Eric Blake.
13259
13260 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13261             Bruno Haible  <bruno@clisp.org>
13262
13263         Make gnulib-tool work with native 'sed' on AIX.
13264         * gnulib-tool (sed_noop): New variable.
13265         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
13266         func_add_or_update, func_create_testdir): Use it to initialize sed
13267         script variables.
13268         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13269
13270 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
13271             Bruno Haible  <bruno@clisp.org>
13272
13273         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
13274         also works after #include directives.
13275
13276 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
13277
13278         getdate.y: reject an out-of-range timezone value
13279         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
13280         the range [-24...+24].  When specified with only one or two digits,
13281         * tests/test-getdate.c: Tests for the fix.
13282         * doc/getdate.texi: Document this change.
13283
13284 2008-09-03  Bruno Haible  <bruno@clisp.org>
13285
13286         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
13287
13288 2008-09-02  Simon Josefsson  <simon@josefsson.org>
13289
13290         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
13291         <bruce.korb@gmail.com> with ideas from Ben Pfaff
13292         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
13293         Blake <ebb9@byu.net>.
13294
13295         * tests/test-bitrotate.c: Add more test vectors.
13296
13297 2008-09-02  Eric Blake  <ebb9@byu.net>
13298
13299         vasnprintf-posix: handle large precision via %.*d
13300         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
13301         when handling it ourselves.
13302         * tests/test-vasnprintf-posix.c (test_function): Add test.
13303         * tests/test-snprintf-posix.h (test_function): Likewise.
13304         * tests/test-sprintf-posix.h (test_function): Likewise.
13305         * tests/test-vasprintf-posix.c (test_function): Likewise.
13306         Reported by Alain Guibert.
13307
13308 2008-09-01  Eric Blake  <ebb9@byu.net>
13309
13310         c-stack: make configure-time check more robust
13311         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
13312         successful sigaction call.
13313         Reported by Tom G. Christensen.
13314
13315 2008-09-01  Bruno Haible  <bruno@clisp.org>
13316
13317         New module 'findprog-lgpl'.
13318         * modules/findprog-lgpl: New file.
13319         * lib/findprog-lgpl.c: New file.
13320         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
13321         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
13322         to decide whether to use strdup or xstrdup, concatenated_filename or
13323         xconcatenated_filename.
13324
13325 2008-09-01  Bruno Haible  <bruno@clisp.org>
13326
13327         Split module 'concat-filename' into 'concat-filename' (LGPL) and
13328         'xconcat-filename' (GPL).
13329         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
13330         (License): Change to LGPLv2+.
13331         * modules/xconcat-filename: New file.
13332         * lib/concat-filename.h (concatenated_filename): Change specification.
13333         (xconcatenated_filename): New declaration.
13334         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
13335         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
13336         memory situations.
13337         * lib/xconcat-filename.c: New file.
13338         * NEWS: Mention the change.
13339         * lib/findprog.c: Include concat-filename.h, not filename.h.
13340         (find_in_path): Use xconcatenated_filename instead of
13341         concatenated_filename.
13342         * lib/javacomp.c: Include concat-filename.h, not filename.h.
13343         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
13344         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
13345         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
13346         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
13347         instead of concatenated_filename.
13348         * lib/javaexec.c: Include concat-filename.h, not filename.h.
13349         (execute_java_class): Use xconcatenated_filename instead of
13350         concatenated_filename.
13351         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
13352         * modules/javacomp (Depends-on): Likewise.
13353         * modules/javaexec (Depends-on): Likewise.
13354
13355 2008-09-01  Bruno Haible  <bruno@clisp.org>
13356
13357         Split module 'filename' into 'filename' and 'concat-filename'.
13358         * modules/filename: Keep only lib/filename.h.
13359         (License): Change to LGPLv2+.
13360         * modules/concat-filename: New file, extracted from modules/filename.
13361         * lib/filename.h (concatenated_filename): Remove declaration.
13362         * lib/concat-filename.h: New file, extracted from lib/filename.h.
13363         * lib/concat-filename.c: Include concat-filename.h.
13364         * NEWS: Mention the change.
13365
13366 2008-09-01  Simon Josefsson  <simon@josefsson.org>
13367
13368         * lib/bitrotate.h (rotl8, rotr8): Add.
13369
13370         * modules/bitrotate (configure.ac): Need
13371         AC_REQUIRE([AC_C_INLINE]).
13372         (Description): Mention stdint.h.  Reported by Bruno Haible
13373         <bruno@clisp.org>.
13374
13375         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
13376         Paolo Bonzini <bonzini@gnu.org>.
13377
13378 2008-08-31  Bruno Haible  <bruno@clisp.org>
13379
13380         Assume Solaris specific bi-arch conventions on Solaris systems.
13381         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
13382         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
13383         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
13384         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
13385         like acl_libdirstem.
13386         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
13387         acl_libdirstem.
13388         * NEWS: Mention the change.
13389         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
13390
13391 2008-08-31  Jim Meyering  <meyering@redhat.com>
13392
13393         * lib/strftime.h: Add comments describing the two added arguments.
13394
13395         remove duplicate #include directives
13396         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
13397         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
13398
13399 2008-08-31  Bruno Haible  <bruno@clisp.org>
13400
13401         New module 'sigpipe-die'.
13402         * modules/sigpipe-die: New file.
13403         * lib/sigpipe-die.h: New file.
13404         * lib/sigpipe-die.c: New file.
13405         * MODULES.html.sh (Signal handling): Add sigpipe-die.
13406
13407 2008-08-31  Bruno Haible  <bruno@clisp.org>
13408
13409         Don't override previously installed signal handlers.
13410         * lib/fatal-signal.c (saved_sigactions): New variable.
13411         (uninstall_handlers): Reset the signal to the saved handler, not
13412         to SIG_DFL (except when ignored).
13413         (install_handlers): Save the previous handlers.
13414
13415 2008-08-30  Bruno Haible  <bruno@clisp.org>
13416
13417         * gnulib-tool (func_reset_sigpipe): New function.
13418         (func_get_automake_snippet, func_modules_transitive_closure,
13419         func_import): Invoke it before a join command that reads from stdin,
13420         to avoid "echo: write error: Broken pipe" error messages on stderr.
13421         Reported by Sam Steingold <sds@gnu.org>.
13422
13423 2008-08-30  Bruno Haible  <bruno@clisp.org>
13424
13425         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
13426         Code copied from m4/open.m4.
13427         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
13428         access and the filename ends in a slash. Code copied from lib/open.c.
13429         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
13430         * tests/test-fopen.c (main): Check against bug with trailing slash.
13431
13432 2008-08-29  Bruno Haible  <bruno@clisp.org>
13433
13434         Avoid some "gcc -pedantic" warnings.
13435         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
13436         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
13437         * lib/dirent.in.h: Likewise.
13438         * lib/fcntl.in.h: Likewise.
13439         * lib/float.in.h: Likewise.
13440         * lib/iconv.in.h: Likewise.
13441         * lib/inttypes.in.h: Likewise.
13442         * lib/locale.in.h: Likewise.
13443         * lib/math.in.h: Likewise.
13444         * lib/netinet_in.in.h: Likewise.
13445         * lib/search.in.h: Likewise.
13446         * lib/signal.in.h: Likewise.
13447         * lib/stdarg.in.h: Likewise.
13448         * lib/stdint.in.h: Likewise.
13449         * lib/stdio.in.h: Likewise.
13450         * lib/stdlib.in.h: Likewise.
13451         * lib/string.in.h: Likewise.
13452         * lib/strings.in.h: Likewise.
13453         * lib/sys_select.in.h: Likewise.
13454         * lib/sys_socket.in.h: Likewise.
13455         * lib/sys_stat.in.h: Likewise.
13456         * lib/sys_time.in.h: Likewise.
13457         * lib/sysexits.in.h: Likewise.
13458         * lib/time.in.h: Likewise.
13459         * lib/unistd.in.h: Likewise.
13460         * lib/wchar.in.h: Likewise.
13461         * lib/wctype.in.h: Likewise.
13462         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
13463         * modules/fchdir (Makefile.am): Likewise.
13464         * modules/fcntl (Makefile.am): Likewise.
13465         * modules/float (Makefile.am): Likewise.
13466         * modules/iconv_open (Makefile.am): Likewise.
13467         * modules/inttypes (Makefile.am): Likewise.
13468         * modules/locale (Makefile.am): Likewise.
13469         * modules/math (Makefile.am): Likewise.
13470         * modules/netinet_in (Makefile.am): Likewise.
13471         * modules/search (Makefile.am): Likewise.
13472         * modules/signal (Makefile.am): Likewise.
13473         * modules/stdarg (Makefile.am): Likewise.
13474         * modules/stdint (Makefile.am): Likewise.
13475         * modules/stdio (Makefile.am): Likewise.
13476         * modules/stdlib (Makefile.am): Likewise.
13477         * modules/string (Makefile.am): Likewise.
13478         * modules/strings (Makefile.am): Likewise.
13479         * modules/sys_select (Makefile.am): Likewise.
13480         * modules/sys_socket (Makefile.am): Likewise.
13481         * modules/sys_stat (Makefile.am): Likewise.
13482         * modules/sys_time (Makefile.am): Likewise.
13483         * modules/sysexits (Makefile.am): Likewise.
13484         * modules/time (Makefile.am): Likewise.
13485         * modules/unistd (Makefile.am): Likewise.
13486         * modules/wchar (Makefile.am): Likewise.
13487         * modules/wctype (Makefile.am): Likewise.
13488         Reported by Reuben Thomas <rrt@sc3d.org>.
13489
13490 2008-08-29  Bruno Haible  <bruno@clisp.org>
13491
13492         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
13493         any more.
13494
13495 2008-08-29  Simon Josefsson  <simon@josefsson.org>
13496
13497         * MODULES.html.sh (Misc): Add bitrotate.
13498
13499         * modules/bitrotate: New file.
13500
13501         * lib/bitrotate.h: New file.
13502
13503         * modules/bitrotate-tests: New file.
13504
13505         * tests/test-bitrotate.c: New file.
13506
13507         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
13508         on the bitrotate module.
13509
13510         * lib/arctwo.c: Use new bitrotate module.
13511
13512 2008-08-29  Jim Meyering  <meyering@redhat.com>
13513
13514         bootstrap: merge changes from coreutils
13515         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
13516         of copied files.  Remove a kludge, now that this is fixed.
13517         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
13518         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
13519         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
13520
13521 2008-08-29  Bruno Haible  <bruno@clisp.org>
13522
13523         * MODULES.html.sh: Remove --cvs-urls option.
13524
13525 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
13526
13527         maint.mk: adjust to file name change
13528         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
13529
13530 2008-08-28  Jim Meyering  <meyering@redhat.com>
13531
13532         * modules/getndelim2 (License): Relicense to LGPLv2+.
13533         Approved by Richard Stallman for the version of 1995, and by
13534         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
13535
13536 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
13537
13538         * lib/getdelim.c (flockfile, funlockfile): Make all of them
13539         dummy if one is not available.  Do not touch them if
13540         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
13541         (getc_maybe_unlocked): New.
13542         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
13543
13544 2008-08-26  Eric Blake  <ebb9@byu.net>
13545
13546         doc/INSTALL: resync from autoconf
13547         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
13548         (INSTALL_PRELUDE): Delete; this is done more efficiently by
13549         moving...
13550         * install.texi [!autoconf]: ...here.  Resync from autoconf.
13551         * INSTALL: Regenerate.
13552         * INSTALL.ISO: New file.
13553         * INSTALL.UTF-8: Likewise.
13554
13555 2008-08-26  Jim Meyering  <meyering@redhat.com>
13556
13557         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
13558         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
13559         these definitions conditional, so that they may be overridden, too.
13560
13561 2008-08-26  Bruno Haible  <bruno@clisp.org>
13562
13563         Generate INSTALL file variants with prettier quotes.
13564         * doc/Makefile (INSTALL_PRELUDE): New macro.
13565         (INSTALL): Use it.
13566         (INSTALL.ISO, INSTALL.UTF-8): New rules.
13567
13568 2008-08-26  Bruno Haible  <bruno@clisp.org>
13569
13570         Run makeinfo in an English locale.
13571         * doc/Makefile (MAKEINFO): New variable.
13572
13573 2008-08-26  Bruno Haible  <bruno@clisp.org>
13574
13575         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
13576         Suggested by Eric Blake.
13577
13578 2008-08-25  Bruno Haible  <bruno@clisp.org>
13579
13580         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
13581
13582 2008-08-25  Eric Blake  <ebb9@byu.net>
13583
13584         c-stack: test that stack overflow can be caught
13585         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
13586         that platform allows handling stack overflow; at least OS/2 EMX
13587         has sigaltstack, but crashes before transferring control to
13588         handler on stack overflow.
13589         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
13590         check for HAVE_STACK_OVERFLOW_HANDLING.
13591         Reported by Elbert Pol.
13592
13593 2008-08-25  Bruno Haible  <bruno@clisp.org>
13594
13595         * doc/posix-functions/strftime.texi: Fix description of strftime
13596         module.
13597
13598 2008-08-24  Bruno Haible  <bruno@clisp.org>
13599
13600         * tests/uniwidth/test-uc_width2.c: New file.
13601         * tests/uniwidth/test-uc_width2.sh: New file.
13602         * modules/uniwidth/width-tests (Files): Add the new files.
13603         (TESTS): Add uniwidth/test-uc_width2.sh.
13604         (TESTS_ENVIRONMENT): New variable.
13605         (check_PROGRAMS): Add test-uc_width2.
13606         (test_uc_width2_SOURCES): New variable.
13607
13608         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
13609         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
13610         not 0x00AB.
13611         Reported by Alexander V. Lukyanov <lav@netis.ru>.
13612
13613 2008-08-22  Eric Blake  <ebb9@byu.net>
13614
13615         test-lock, test-tls: mention why a test is skipped
13616         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
13617         skipped.
13618         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
13619
13620         count-one-bits: relax license
13621         * modules/count-one-bits (License): Relicense to LGPLv2+.
13622         Suggested by Ludovic Courtès, approved by Ben Pfaff.
13623
13624 2008-08-22  Andreas Schwab  <schwab@suse.de>
13625
13626         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
13627         Remove spurious space in assignment.
13628
13629 2008-08-21  Simon Josefsson  <simon@josefsson.org>
13630
13631         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
13632         Paul Eggert <eggert@CS.UCLA.EDU>.
13633
13634 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
13635
13636         * modules/gettext: Add m4/threadlib.m4.
13637
13638 2008-08-19  Eric Blake  <ebb9@byu.net>
13639
13640         test-c-stack: fix compilation failure on FreeBSD 5.0
13641         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
13642         headers before <sys/resource.h>.
13643         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
13644         the bug.
13645         Reported by Nelson H. F. Beebe.
13646
13647         strverscmp: migrate from "strverscmp.h" to <string.h>
13648         * modules/string (Makefile.am): Add new hooks.
13649         * modules/strverscmp (Files): Remove strverscmp.h.
13650         (Depends-on): Add string.
13651         (configure.ac): Add indicator.
13652         (Include): Mention new header.
13653         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
13654         defaults.
13655         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
13656         results.
13657         * lib/strverscmp.h: Delete.
13658         * lib/string.in.h (strverscmp): Provide declaration, when needed.
13659         * tests/test-strverscmp.c (includes): Adjust client.
13660         * lib/check-version.c (includes): Likewise.
13661         * NEWS: Document the change.
13662
13663         strverscmp: add unit test
13664         * modules/strverscmp-tests: New file.
13665         * tests/test-strverscmp.c: Likewise.
13666
13667 2008-08-19  Simon Josefsson  <simon@josefsson.org>
13668
13669         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
13670         regarding Windows crypto stuff, from Mono.
13671
13672 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
13673
13674         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
13675         if present, for intel RND.  Return error on failures.
13676
13677 2008-08-18  Ben Pfaff  <blp@gnu.org>
13678
13679         gitlog-to-changelog: give better diagnostic for failed pipe-open
13680         * build-aux/gitlog-to-changelog: Improve error message: suggest
13681         that the version of Git may be too old.
13682
13683 2008-08-18  Simon Josefsson  <simon@josefsson.org>
13684
13685         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
13686         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
13687
13688 2008-08-18  Bruno Haible  <bruno@clisp.org>
13689
13690         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
13691         pthread_in_use().
13692
13693 2008-08-18  Bruno Haible  <bruno@clisp.org>
13694
13695         * lib/glthread/threadlib.c: Include <pthread.h>.
13696
13697 2008-08-18  Bruno Haible  <bruno@clisp.org>
13698
13699         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
13700         glthread_recursive_lock_* macros.
13701         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
13702         Fix syntax error.
13703
13704 2008-08-18  Bruno Haible  <bruno@clisp.org>
13705
13706         * lib/glthread/thread.c: Avoid forcing a context switch right after
13707         thread creation.
13708
13709 2008-08-17  Bruno Haible  <bruno@clisp.org>
13710
13711         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
13712         * lib/glthread/thread.h: Provide Win32 specific implementation.
13713         * modules/thread (Files): Add lib/glthread/thread.c.
13714         (Depends-on): Add lock.
13715         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
13716
13717 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13718
13719         New module 'yield'.
13720         * modules/yield: New file.
13721         * lib/glthread/yield.h: New file.
13722         * m4/yield.m4: New file.
13723         * MODULES.html.sh (Multithreading): Add yield.
13724
13725 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13726
13727         New module 'thread'.
13728         * modules/thread: New file.
13729         * lib/glthread/thread.h: New file.
13730         * m4/thread.m4: New file.
13731         * MODULES.html.sh (Multithreading): Add thread.
13732
13733 2008-08-17  Bruno Haible  <bruno@clisp.org>
13734
13735         * lib/glthread/lock.h: Include <stdlib.h> always.
13736         * lib/glthread/tls.h: Likewise.
13737         * lib/glthread/cond.h: Likewise.
13738
13739 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13740
13741         New module 'cond'.
13742         * modules/cond: New file.
13743         * lib/glthread/cond.h: New file.
13744         * lib/glthread/cond.c: New file.
13745         * m4/cond.m4: New file.
13746         * MODULES.html.sh (Multithreading): Add cond.
13747
13748 2008-08-16  Eric Blake  <ebb9@byu.net>
13749
13750         c-stack: fix regression on Irix 5.3 from 2008-06-21
13751         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
13752         sa_sigaction...
13753         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
13754         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
13755         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
13756         * modules/signal (Makefile.am): Use the value.
13757         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
13758         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
13759         * doc/posix-headers/signal.texi (signal.h): Document this
13760         portability issue.
13761         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
13762         Reported by Tom G. Christensen.
13763
13764 2008-08-17  Bruno Haible  <bruno@clisp.org>
13765
13766         New module 'threadlib'.
13767         * modules/threadlib: New file.
13768         * lib/glthread/threadlib.c: New file, extracted from
13769         lib/glthread/lock.c.
13770         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
13771         functions.
13772         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
13773         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
13774         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
13775         macros.
13776         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
13777         (gl_DISABLE_THREADS): Remove macro.
13778         * modules/lock (Files): Remove build-aux/config.rpath.
13779         (Depends-on): Remove havelib. Add threadlib.
13780         (configure.ac-early): Remove section.
13781         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
13782         * modules/tls (Depends-on): Remove lock. Add threadlib.
13783         (Link): New section, copied from threadlib.
13784         * MODULES.html.sh (Multithreading): Add threadlib.
13785
13786 2008-08-14  Bruno Haible  <bruno@clisp.org>
13787
13788         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
13789         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
13790         glthread_rwlock_unlock, glthread_rwlock_destroy,
13791         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
13792         glthread_recursive_lock_destroy): Define as macros always.
13793         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
13794         glthread_lock_lock.
13795         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
13796         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
13797         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
13798         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
13799         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
13800         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
13801         (glthread_recursive_lock_lock_func): Renamed from
13802         glthread_recursive_lock_lock.
13803         (glthread_recursive_lock_unlock_func): Renamed from
13804         glthread_recursive_lock_unlock.
13805         (glthread_recursive_lock_destroy_func): Renamed from
13806         glthread_recursive_lock_destroy.
13807
13808 2008-08-14  Bruno Haible  <bruno@clisp.org>
13809
13810         * lib/glthread/lock.h: Renamed from lib/lock.h.
13811         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
13812         * lib/glthread/tls.h: Renamed from lib/tls.h.
13813         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
13814         * lib/fstrcmp.c: Update includes.
13815         * lib/strsignal.c: Update includes.
13816         * modules/lock (Files, Makefile.am): Update.
13817         (Include): Change to "glthread/lock.h".
13818         * modules/tls (Files, Makefile.am): Update.
13819         (Include): Change to "glthread/tls.h".
13820         * tests/test-lock.c: Update includes.
13821         * tests/test-tls.c: Update includes.
13822         * NEWS: Mention the renamed header files.
13823
13824 2008-08-11  Jim Meyering  <meyering@redhat.com>
13825
13826         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
13827
13828 2008-08-11  Eric Blake  <ebb9@byu.net>
13829
13830         test-c-stack: avoid C99-ism
13831         * tests/test-c-stack.c (main): Fix whitespace, move declaration
13832         before statement.
13833         Reported by Alain Guibert.
13834
13835 2008-08-10  Jim Meyering  <meyering@redhat.com>
13836
13837         ensure that return value of uinttostr et al are not ignored
13838         * lib/inttostr.h (__GNUC_PREREQ): Define.
13839         (__attribute_warn_unused_result__): Define.
13840         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
13841
13842 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
13843
13844         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
13845         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
13846
13847 2008-08-07  Jim Meyering  <meyering@redhat.com>
13848
13849         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
13850
13851         * modules/mkstemp (License): Relicense under LGPLv2+.
13852         * modules/tempname (License): Likewise.
13853
13854 2008-08-06  Bruno Haible  <bruno@clisp.org>
13855
13856         * lib/poll.c (poll): Further micro-optimization.
13857
13858 2008-08-06  Jim Meyering  <meyering@redhat.com>
13859
13860         inet_pton.c: use locale-independent tolower
13861         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
13862         (inet_pton6): Use c_tolower rather than tolower.
13863         * modules/inet_pton (Depends-on): Add c-ctype.
13864
13865 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
13866
13867         * lib/poll.c (poll): Avoid division when timeout is 0, cache
13868         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
13869
13870 2008-08-06  Jim Meyering  <meyering@redhat.com>
13871
13872         * modules/inet_pton (License): Relicense under LGPLv2+.
13873
13874 2008-08-03  Bruno Haible  <bruno@clisp.org>
13875
13876         Additional non-aborting API for lock and tls.
13877         * lib/lock.h: Include <errno.h>.
13878         (glthread_lock_init): New macro/function.
13879         (gl_lock_init): Define as wrapper around glthread_lock_init.
13880         (glthread_lock_lock): New macro/function.
13881         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
13882         (glthread_lock_unlock): New macro/function.
13883         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
13884         (glthread_lock_destroy): New macro/function.
13885         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
13886         (glthread_rwlock_init): New macro/function.
13887         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
13888         (glthread_rwlock_rdlock): New macro/function.
13889         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
13890         (glthread_rwlock_wrlock): New macro/function.
13891         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
13892         (glthread_rwlock_unlock): New macro/function.
13893         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
13894         (glthread_rwlock_destroy): New macro/function.
13895         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
13896         (glthread_recursive_lock_init): New macro/function.
13897         (gl_recursive_lock_init): Define as wrapper around
13898         glthread_recursive_lock_init.
13899         (glthread_recursive_lock_lock): New macro/function.
13900         (gl_recursive_lock_lock): Define as wrapper around
13901         glthread_recursive_lock_lock.
13902         (glthread_recursive_lock_unlock): New macro/function.
13903         (gl_recursive_lock_unlock): Define as wrapper around
13904         glthread_recursive_lock_unlock.
13905         (glthread_recursive_lock_destroy): New macro/function.
13906         (gl_recursive_lock_destroy): Define as wrapper around
13907         glthread_recursive_lock_destroy.
13908         (glthread_once): New macro/function.
13909         (gl_once): Define as wrapper around glthread_once.
13910         Update function declarations.
13911         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
13912         glthread_rwlock_init. Return error code.
13913         (glthread_rwlock_rdlock_multithreaded): Renamed from
13914         glthread_rwlock_rdlock. Return error code.
13915         (glthread_rwlock_wrlock_multithreaded): Renamed from
13916         glthread_rwlock_wrlock. Return error code.
13917         (glthread_rwlock_unlock_multithreaded): Renamed from
13918         glthread_rwlock_unlock. Return error code.
13919         (glthread_rwlock_destroy_multithreaded): Renamed from
13920         glthread_rwlock_destroy. Return error code.
13921         (glthread_recursive_lock_init_multithreaded): Renamed from
13922         glthread_recursive_lock_init. Return error code.
13923         (glthread_recursive_lock_lock_multithreaded): Renamed from
13924         glthread_recursive_lock_lock. Return error code.
13925         (glthread_recursive_lock_unlock_multithreaded): Renamed from
13926         glthread_recursive_lock_unlock. Return error code.
13927         (glthread_recursive_lock_destroy_multithreaded): Renamed from
13928         glthread_recursive_lock_destroy. Return error code.
13929         (glthread_once_call): Make static.
13930         (glthread_once_multithreaded): Renamed from glthread_once.
13931         * lib/tls.h: Include <errno.h>.
13932         (glthread_tls_key_init): New macro/function.
13933         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
13934         (glthread_tls_set): New macro/function.
13935         (gl_tls_set): Define as wrapper around glthread_tls_set.
13936         (glthread_tls_key_destroy): New macro/function.
13937         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
13938         Update function declarations.
13939         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
13940         glthread_tls_get.
13941         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
13942
13943 2008-08-04  Eric Blake  <ebb9@byu.net>
13944
13945         gnumakefile: use space, not TAB, outside of targets
13946         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
13947
13948 2008-08-02  Jim Meyering  <meyering@redhat.com>
13949
13950         getdate.y: avoid locale-dependent date parsing failure
13951         In Turkish locales, getdate would fail to recognize keywords
13952         containing a lowercase "i".  The solution is not to rely on
13953         locale-sensitive case-conversion.
13954         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
13955         (lookup_word): Use c_toupper in place of toupper.
13956         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
13957         Reported by Vefa Bicakci <bicave@superonline.com> in
13958         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
13959         * modules/getdate (Depends-on): Add c-ctype.
13960
13961 2008-08-02  Bruno Haible  <bruno@clisp.org>
13962
13963         * gnulib-tool (func_import): When updating or creating a .gitignore
13964         file, prepend each added line with a slash, and ignore leading slashes
13965         from the existing lines.
13966         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
13967
13968 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13969
13970         Portability fix for GNU make 3.79.1.
13971         * top/GNUmakefile: Avoid 'else COND', which older GNU make
13972         versions do not understand.
13973
13974 2008-08-01  Bruno Haible  <bruno@clisp.org>
13975
13976         Work around bug of HP-UX 10.20 cc with -0.0 literal.
13977         * tests/test-isnanf.h (zero): New variable.
13978         (main): Avoid literal -0.0f.
13979         * tests/test-isnand.h (zero): New variable.
13980         (main): Avoid literal -0.0.
13981         * tests/test-isnanl.h (zero): New variable.
13982         (main): Avoid literal -0.0L.
13983         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
13984         (test_float, test_double, test_long_double): Avoid literals -0.0f,
13985         -0.0, -0.0L.
13986         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
13987         (test_signbitd): Avoid literal -0.0.
13988         (test_signbitl): Avoid literal -0.0L.
13989         * tests/test-ceilf1.c (zero): New variable.
13990         (main): Avoid literal -0.0f.
13991         * tests/test-ceill.c (zero): New variable.
13992         (main): Avoid literal -0.0L.
13993         * tests/test-floorf1.c (zero): New variable.
13994         (main): Avoid literal -0.0f.
13995         * tests/test-floorl.c (zero): New variable.
13996         (main): Avoid literal -0.0L.
13997         * tests/test-roundf1.c (zero): New variable.
13998         (main): Avoid literal -0.0f.
13999         * tests/test-round1.c (zero): New variable.
14000         (main): Avoid literal -0.0.
14001         * tests/test-roundl.c (zero): New variable.
14002         (main): Avoid literal -0.0L.
14003         * tests/test-truncf1.c (zero): New variable.
14004         (main): Avoid literal -0.0f.
14005         * tests/test-trunc1.c (zero): New variable.
14006         (main): Avoid literal -0.0.
14007         * tests/test-truncl.c (zero): New variable.
14008         (main): Avoid literal -0.0L.
14009         * tests/test-frexp.c (zero): New variable.
14010         (main): Avoid literal -0.0.
14011         * tests/test-frexpl.c (zero): New variable.
14012         (main): Avoid literal -0.0L.
14013         * tests/test-ldexpl.c (zero): New variable.
14014         (main): Avoid literal -0.0L.
14015         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
14016         (zerod, zerol): New variables.
14017         (test_function): Avoid literals -0.0, -0.0L.
14018         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
14019         (zerod, zerol): New variables.
14020         (test_function): Avoid literals -0.0, -0.0L.
14021         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
14022         (zerod, zerol): New variables.
14023         (test_function): Avoid literals -0.0, -0.0L.
14024         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
14025         (zerod, zerol): New variables.
14026         (test_function): Avoid literals -0.0, -0.0L.
14027         * tests/test-strtod.c (zero): New variable.
14028         (main): Avoid literal -0.0.
14029         Reported by Jonathan C. Patschke <jp@centtech.com>.
14030
14031 2008-07-31  Jim Meyering  <meyering@redhat.com>
14032
14033         sha256.h: correct definition of SHA224_DIGEST_SIZE
14034         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
14035         Reported by Paulie Pena IV <paulie4@gmail.com>.
14036         Define as 224 / 8, rather than as a literal.
14037         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
14038         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
14039         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
14040
14041 2008-07-31  Bruno Haible  <bruno@clisp.org>
14042
14043         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
14044         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
14045         Reported by Jonathan Patschke <jp@centtech.com>.
14046
14047 2008-07-31  Bruno Haible  <bruno@clisp.org>
14048
14049         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
14050         Reported by Paolo Bonzini <bonzini@gnu.org>.
14051
14052 2008-07-30  Eric Blake  <ebb9@byu.net>
14053
14054         test-strtod: allow compilation without -lm
14055         * tests/test-strtod.c (main): Avoid link dependence on fabs.
14056         Reported by Dennis Clarke <blastwave@gmail.com>.
14057
14058 2008-07-28  Jim Meyering  <meyering@redhat.com>
14059
14060         bootstrap: work also when there are no .po files in po/
14061         * build-aux/bootstrap (update_po_files): Complete the change
14062         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
14063
14064 2008-07-27  Jim Meyering  <meyering@redhat.com>
14065
14066         * users.txt: Add zile.
14067
14068 2008-07-26  Ben Pfaff  <blp@gnu.org>
14069
14070         Add missing dependencies on new m4/exponent[fdl].m4 files.
14071         * modules/isnanf-nolibm: Add m4/exponentf.m4.
14072         * modules/isnand-nolibm: Add m4/exponentd.m4.
14073         * modules/isnanl-nolibm: Add m4/exponentl.m4.
14074         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
14075         m4/isnan[fdl].m4, because the macros actually used moved.
14076         Reported by Jim Meyering.
14077
14078 2008-07-14  Ben Pfaff  <blp@gnu.org>
14079
14080         Add isinf module.
14081         * lib/isinf.c: New file.
14082         * lib/math.in.h: Define isinf macro if we have decided to replace
14083         it.
14084         * m4/isinf.m4: New file.
14085         * m4/math_h.m4: Initialize and substitute variables for isinf
14086         module.
14087         * modules/isinf: New file.
14088         * modules/isinf-tests: New file.
14089         * modules/math: Add substitutions for new module.
14090         * tests/test-isinf.c: New file.
14091         * doc/posix-functions/isinf.texi: Mention new module.
14092         * MODULES.html.sh: Mention new module.
14093
14094 2008-07-14  Ben Pfaff  <blp@gnu.org>
14095
14096         Factor out some macros for use by additional modules.
14097         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
14098         exponentf.m4.
14099         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
14100         exponentd.m4.
14101         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
14102         file exponentl.m4.
14103         * m4/exponentf.m4: New file.
14104         * m4/exponentd.m4: New file.
14105         * m4/exponentl.m4: New file.
14106         * modules/isnanf: Use new file m4/exponentf.m4.
14107         * modules/isnand: Use new file m4/exponentd.m4.
14108         * modules/isnanl: Use new file m4/exponentl.m4.
14109
14110 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
14111
14112         mktime.c: normalize tp->tm_isdst value to -1/0/1.
14113         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
14114         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
14115         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
14116
14117         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
14118         readlink on platforms without PATH_MAX.
14119
14120 2008-07-21  Eric Blake  <ebb9@byu.net>
14121
14122         Warn, not fail, on stale version.
14123         * top/GNUmakefile (_curr-ver): Tone down previous patch.
14124
14125         Don't allow installation with stale devel version number.
14126         * top/GNUmakefile (_is-install-target): New macro.
14127         (_curr-ver): Forbid installation with stale version number.
14128
14129 2008-07-20  Bruno Haible  <bruno@clisp.org>
14130
14131         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
14132         TESTS_ENVIRONMENT.
14133         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
14134
14135 2008-07-20  Bruno Haible  <bruno@clisp.org>
14136
14137         * lib/c-stack.h (c_stack_action): Add documentation.
14138         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
14139
14140 2008-07-20  Bruno Haible  <bruno@clisp.org>
14141
14142         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
14143         * modules/readlink (License): Likewise.
14144
14145 2008-07-17  Eric Blake  <ebb9@byu.net>
14146
14147         * modules/c-stack (Link): Fix typo.
14148
14149         Make c-stack use libsigsegv, when available.
14150         * modules/c-stack (Depends-on): Add libsigsegv.
14151         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
14152         needed.
14153         * lib/c-stack.c (SIGSTKSZ): Define fallback.
14154         (segv_handler, overflow_handler, c_stack_action)
14155         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
14156         implementation when libsigsegv is available, but only when using
14157         the library is necessary.
14158         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
14159         comment, explaining why XSI check fails on Linux.
14160         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
14161         * tests/test-c-stack2.sh: Tweak skip message.
14162         * NEWS: Document new link-time requirements.
14163
14164 2008-07-16  Eric Blake  <ebb9@byu.net>
14165
14166         c-stack: Expose false positives when not using libsigsegv.
14167         * modules/c-stack-tests (Files): Expand test.
14168         * tests/test-c-stack.c (main): Add means to conditionally trigger
14169         non-overflow SIGSEGV.
14170         * tests/test-c-stack2.sh: New file.
14171
14172 2008-07-14  Bruno Haible  <bruno@clisp.org>
14173
14174         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
14175         Reported by Eric Blake.
14176
14177 2008-07-14  Sam Steingold  <sds@gnu.org>
14178             Bruno Haible  <bruno@clisp.org>
14179
14180         New module libsigsegv.
14181         * modules/libsigsegv: New file.
14182         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
14183         modifications.
14184         * MODULES.html.sh (Signal handling): New section.
14185
14186 2008-07-14  Bruno Haible  <bruno@clisp.org>
14187
14188         * modules/unictype/ctype-* (Description): Add the word "function".
14189         Improves the resulting doc in MODULES.html.
14190
14191 2008-07-12  Ben Pfaff  <blp@gnu.org>
14192
14193         Add longlong module.
14194         * modules/longlong: New file.
14195
14196 2008-07-12  Bruno Haible  <bruno@clisp.org>
14197
14198         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
14199         to empty.
14200
14201 2008-07-10  Ben Pfaff  <blp@gnu.org>
14202
14203         Add isnan module.
14204         * doc/posix-functions/isnan.texi: Mention new module.
14205         * lib/math.in.h: Define isnan macro if we have decided to replace
14206         it.
14207         * m4/isnan.m4: New file.
14208         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
14209         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
14210         also.
14211         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
14212         redundancy.
14213         * m4/math_h.m4: Initialize and substitute variables for isnan
14214         module.
14215         * modules/isnan: New file.
14216         * modules/isnan-tests: New file.
14217         * modules/math: Add substitutions for new module.
14218         * tests/test-isnan.c: New file.
14219         * MODULES.html.sh: Mention new module.
14220
14221 2008-07-10  Ben Pfaff  <blp@gnu.org>
14222
14223         Add isnanf module.
14224         * lib/isnanf.m4: New file.
14225         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
14226         (gl_HAVE_ISNANF_IN_LIBM): New macro.
14227         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
14228         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
14229         * modules/isnanf: New file.
14230         * modules/isnanf-tests: New file.
14231         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
14232         files.
14233         * tests/test-isnanf-nolibm.c: factored most of its contents into
14234         new file tests/test-isnanf.h.
14235         * tests/test-isnanf.h: New file.
14236         * tests/test-isnanf.c: New file.
14237         * MODULES.html.sh: Mention new module.
14238         * doc/glibc-functions/isnanf.texi: Mention new module.
14239
14240 2008-07-10  Ben Pfaff  <blp@gnu.org>
14241
14242         Add isnand module.
14243         * lib/isnand.h: New file.
14244         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
14245         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
14246         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
14247         functionality also.
14248         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
14249         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
14250         (gl_HAVE_ISNAND_IN_LIBM): New macro.
14251         * modules/isnand: New file.
14252         * modules/isnand-tests: New file.
14253         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
14254         files.
14255         * tests/test-isnand-nolibm.c: factored most of its contents into
14256         new file tests/test-isnand.h.
14257         * tests/test-isnand.h: New file.
14258         * tests/test-isnand.c: New file.
14259         * MODULES.html.sh: Mention new module.
14260
14261 2008-07-10  Ben Pfaff  <blp@gnu.org>
14262
14263         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
14264         * lib/isnand.h: Rename lib/isnand-nolibm.h.
14265         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
14266         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
14267         * modules/isnanf-nolibm: Update references to renamed files.
14268         * modules/isnand-nolibm: Likewise.
14269         * modules/isnanf-nolibm-tests: Likewise.
14270         * modules/isnand-nolibm-tests: Likewise.
14271         * lib/frexp.c: Likewise.
14272         * lib/isfinite.c: Likewise.
14273         * lib/signbitd.c: Likewise.
14274         * lib/signbitf.c: Likewise.
14275         * lib/vasnprintf.c: Likewise.
14276         * tests/test-ceilf1.c: Likewise.
14277         * tests/test-ceilf2.c: Likewise.
14278         * tests/test-floorf1.c: Likewise.
14279         * tests/test-floorf2.c: Likewise.
14280         * tests/test-frexp.c: Likewise.
14281         * tests/test-round1.c: Likewise.
14282         * tests/test-round2.c: Likewise.
14283         * tests/test-roundf1.c: Likewise.
14284         * tests/test-strtod.c: Likewise.
14285         * tests/test-trunc1.c: Likewise.
14286         * tests/test-trunc2.c: Likewise.
14287         * tests/test-truncf1.c: Likewise.
14288         * tests/test-truncf2.c: Likewise.
14289         * NEWS: Mention the renamed header files.
14290
14291 2008-07-11  Jim Meyering  <meyering@redhat.com>
14292
14293         vc-list-files: make the last-resort awk code more portable
14294         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
14295         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
14296         does not support it.
14297
14298 2008-07-10  Eric Blake  <ebb9@byu.net>
14299
14300         Work with tar's bootstrap.
14301         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
14302         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
14303         an m4 comment.
14304
14305 2008-07-09  Jim Meyering  <meyering@redhat.com>
14306
14307         posix-shell.m4: fix typo that made this test malfunction
14308         * m4/posix-shell.m4: Remove capitalization in variable name.
14309
14310 2008-07-08  Bruno Haible  <bruno@clisp.org>
14311
14312         * m4/onceonly.m4: Update comments.
14313         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14314
14315 2008-07-04  Jim Meyering  <meyering@redhat.com>
14316
14317         * users.txt: Add vc-dwim.
14318         (bison, coreutils): Use the gitweb URL.
14319
14320 2008-07-03  Jim Meyering  <meyering@redhat.com>
14321
14322         * users.txt: Add libffcall.  From Sam Steingold.
14323
14324 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
14325
14326         getdate.y: do not ignore TZ with relative day, month or year offset
14327         * lib/getdate.y (get_date): Move the tz-handling block to follow the
14328         relative-date-handling, since otherwise, the latter would clobber the
14329         sole output (an updated Start value) of the tz-handling block.
14330         * tests/test-getdate.c: Tests for the fix
14331
14332 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14333
14334         Recognize 'foo_LIBRARIES += libgnu.a'.
14335         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
14336         makefile snippet has already specified an installation location,
14337         also using '+='.
14338
14339 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
14340
14341         getdate.y: factor out common actions
14342         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
14343         Use them in place of open-coded actions.
14344
14345 2008-07-01  Simon Josefsson  <simon@josefsson.org>
14346
14347         Add self-test for getdate module.
14348         * modules/getdate-tests: New file.
14349         * tests/test-getdate.c: New file.
14350
14351 2008-06-29  Bruno Haible  <bruno@clisp.org>
14352
14353         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
14354         .gitignore.
14355         Reported by Sylvain Beucler <beuc@beuc.net>.
14356
14357 2008-06-29  Bruno Haible  <bruno@clisp.org>
14358
14359         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
14360         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
14361
14362 2008-06-29  Bruno Haible  <bruno@clisp.org>
14363
14364         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
14365         EXTRA_DIST.
14366         Reported by Sylvain Beucler <beuc@beuc.net>.
14367
14368 2008-06-26  Jim Meyering  <meyering@redhat.com>
14369
14370         make several modules depend on the "open" module
14371         This provides slightly increased consistency when opening-for-write
14372         the name of a non-directory spelled with a trailing slash.
14373         * modules/chdir-safer: Likewise.
14374         * modules/chown: Likewise.
14375         * modules/clean-temp: Likewise.
14376         * modules/copy-file: Likewise.
14377         * modules/fchdir: Likewise.
14378         * modules/fcntl-safer: Likewise.
14379         * modules/pipe: Likewise.
14380         * modules/utime: Likewise.
14381         Prompted by Eric Blake and Bruno Haible.
14382
14383 2008-06-24  Andreas Schwab  <schwab@suse.de>
14384
14385         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
14386         literals can be used as initializers for global variables.
14387
14388 2008-06-23  Eric Blake  <ebb9@byu.net>
14389
14390         Make gnulib-cache.m4 easier to diff.
14391         * gnulib-tool (func_import): Allow newlines when reading cached
14392         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
14393
14394 2008-06-23  Bruno Haible  <bruno@clisp.org>
14395
14396         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
14397         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
14398         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
14399         m4/signalblocking.m4.
14400         (gl_PREREQ_SIGACTION): Don't invoke it.
14401         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
14402         gl_PREREQ_SIG_HANDLER_H.
14403         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
14404         Don't check for sigaction here.
14405
14406 2008-06-23  Bruno Haible  <bruno@clisp.org>
14407
14408         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
14409         (install_handlers): Don't set the SA_RESETHAND flag.
14410
14411 2008-06-23  Bruno Haible  <bruno@clisp.org>
14412
14413         * m4/sigaction.m4: Comment fixes.
14414         * lib/signal.in.h: Likewise.
14415
14416 2008-06-23  Eric Blake  <ebb9@byu.net>
14417
14418         Fix typo.
14419         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
14420
14421         Avoid SA_ namespace.
14422         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
14423         Reported by Ralf Wildenhues.
14424
14425         Avoid test failure due to SA_RESTORER.
14426         * tests/test-sigaction.c (SA_MASK): New macro.
14427         (main): Avoid failing due to extension flags being set.
14428         Reported by Jim Meyering.
14429
14430         Revert use of sig-handler.h in sigprocmask.c.
14431         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
14432         it requires the existence of struct sigaction.
14433         * lib/sigprocmask.c (handler_t): Restore typedef.
14434         (rpl_signal, old_handlers): Use local type.
14435
14436 2008-06-22  Bruno Haible  <bruno@clisp.org>
14437
14438         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
14439         conditionally.
14440         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14441
14442 2008-06-22  Bruno Haible  <bruno@clisp.org>
14443
14444         * doc/posix-functions/siginterrupt.texi: Move note.
14445
14446         * lib/signal.in.h (SA_RESTART): New macro.
14447         * lib/sigaction.c: Update comment.
14448
14449         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
14450
14451         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
14452         (gl_PREREQ_SIGPROCMASK): Invoke it.
14453         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
14454
14455         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
14456
14457         * lib/sigprocmask.c: Update a comment.
14458
14459 2008-06-21  Eric Blake  <ebb9@byu.net>
14460
14461         Use sigaction module rather than signal().
14462         * modules/c-stack (Depends-on): Add sigaction.
14463         * modules/fatal-signal (Depends-on): Likewise.
14464         * modules/nanosleep (Depends-on): Likewise.
14465         * modules/sigprocmask (Files): Add sig-handler.h.
14466         * modules/sigaction (Files): Likewise.
14467         * lib/sig-handler.h (get_handler): New file, suggested by Paul
14468         Eggert.
14469         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
14470         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
14471         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
14472         (init_fatal_signals): Likewise.
14473         * lib/nanosleep.c (rpl_nanosleep): Likewise.
14474         (siginterrupt): Delete fallback.
14475         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
14476         instead.
14477         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
14478         siginterrupt.
14479
14480         New module sigaction, for mingw.
14481         * modules/sigaction: New module...
14482         * modules/sigaction-tests: ...and its test.
14483         * m4/sigaction.m4: New file.
14484         * lib/sigaction.c: Likewise.
14485         * tests/test-sigaction.c: Likewise.
14486         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
14487         * modules/signal (Makefile.am): Likewise.
14488         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
14489         needed.
14490         * doc/posix-headers/signal.texi (signal.h): Mention provided
14491         types.
14492         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
14493         that sigaction is preferable.
14494         * doc/posix-functions/sigaction.texi (sigaction): Mention new
14495         module.
14496         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14497         sigaction.
14498
14499         Improve robustness of sigprocmask by overriding signal.
14500         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
14501         is in use.
14502         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
14503         (SIGKILL, SIGSTOP): Provide fallbacks.
14504         (rpl_signal): Implement.
14505         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
14506         signal can be called inside handlers.
14507
14508         Fix nanosleep module on mingw.
14509         * modules/nanosleep (Depends-on): Add sys_select.
14510         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
14511
14512         Fix licensing of sigprocmask.
14513         * modules/raise (License): Relicense as LGPL.
14514
14515 2008-06-21  Bruno Haible  <bruno@clisp.org>
14516
14517         * lib/propername.c (proper_name_utf8): Don't use the transliterated
14518         result if it contains question marks.
14519         Reported by Michael Geng <linux@michaelgeng.de>.
14520
14521 2008-06-19  Bruno Haible  <bruno@clisp.org>
14522
14523         Fix CVS-ism.
14524         * doc/gnulib.texi: Include updated-stamp.texi.
14525         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
14526         (updated-stamp.texi): New rule.
14527         (gnulib.info): Depend on it.
14528         * doc/.gitignore: Add updated-stamp.texi.
14529         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
14530
14531 2008-06-19  Bruno Haible  <bruno@clisp.org>
14532
14533         * doc/Makefile (gnulib.info): Update and simplify dependencies.
14534         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14535
14536 2008-06-19  Eric Blake  <ebb9@byu.net>
14537
14538         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
14539         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
14540         Reported by Stepan Kasal.
14541
14542 2008-06-18  Bruno Haible  <bruno@clisp.org>
14543
14544         * lib/fatal-signal.c (init_fatal_signals): Add comment.
14545         Reported by Eric Blake.
14546
14547 2008-06-18  Eric Blake  <ebb9@byu.net>
14548
14549         Work around cygwin 1.5.25 strsignal bug.
14550         * tests/test-strsignal.c: Allow for const char *.
14551         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
14552
14553 2008-06-18  Simon Josefsson  <simon@josefsson.org>
14554
14555         * users.txt: Update URL to article and add author/date
14556         information.
14557
14558 2008-06-17  Bruno Haible  <bruno@clisp.org>
14559
14560         New macro gl_DISABLE_THREADS.
14561         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
14562         if the user did not pass --enable-threads or --disable-threads option.
14563         (gl_DISABLE_THREADS): New macro.
14564         Reported by Eric Blake <ebb9@byu.net>.
14565
14566 2008-06-17  Bruno Haible  <bruno@clisp.org>
14567
14568         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
14569         when the macro ignores it.
14570         Based on a patch by Eric Blake <ebb9@byu.net>.
14571
14572 2008-06-17  Bruno Haible  <bruno@clisp.org>
14573
14574         * modules/tls (License): Change to LGPLv2+.
14575         Reported by Eric Blake.
14576
14577 2008-06-17  Eric Blake  <ebb9@byu.net>
14578
14579         Simplify c-stack prerequisites.
14580         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
14581         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
14582         no longer requires <ucontext.h> to exist.  Optimize setrlimit
14583         check.
14584         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
14585         <sys/resource.h>.
14586
14587         Move c-stack test into testsuite.
14588         * modules/c-stack-tests: New file.
14589         * lib/c-stack.c [DEBUG]: Move test program...
14590         * tests/test-c-stack.c: ...into this new file.  Skip rather than
14591         fail test if sigaltstack is lacking.
14592         * tests/test-c-stack.sh: New driver file.
14593
14594 2008-06-16  Eric Blake  <ebb9@byu.net>
14595
14596         Use raise module consistently.
14597         * modules/fatal-signal (Depends-on): Add raise.
14598         * modules/sigprocmask (Depends-on): Likewise.
14599         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
14600         * lib/sigprocmask.c (sigprocmask): Likewise.
14601         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
14602         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
14603
14604         Fix compliance bug in sigpending.
14605         * lib/sigprocmask.c (sigpending): Return pending array via
14606         parameter, not return value.
14607
14608 2008-06-14  Eric Blake  <ebb9@byu.net>
14609
14610         Improve obstack-printf test code.
14611         * tests/test-obstack-printf.c (test_function): Fix comment, and
14612         simplify usage of obstack_* in macros.  Add a test for coverage.
14613         Reported by Bruno Haible.
14614
14615 2008-06-14  Bruno Haible  <bruno@clisp.org>
14616
14617         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
14618         array size as a constant, not as a const variable.
14619         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
14620         AC_USE_SYSTEM_EXTENSIONS.
14621         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14622         Test whether the obstack_printf function actually exists.
14623         * modules/obstack-printf (Depends-on): Add extensions.
14624         (Include): Remove obstack.h.
14625         * modules/obstack-printf-posix (Depends-on): Add extensions.
14626         (Include): Remove obstack.h.
14627
14628 2008-06-13  Eric Blake  <ebb9@byu.net>
14629
14630         Add obstack-printf and obstack-printf-posix modules.
14631         * modules/obstack-printf: New file.
14632         * modules/obstack-printf-posix: Likewise.
14633         * MODULES.html.sh (Misc): Mention them.
14634         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
14635         Likewise.
14636         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
14637         Likewise.
14638         * modules/stdio (Makefile.am): Accomodate new modules.
14639         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14640         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
14641         Declare.
14642         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
14643         functions.
14644         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
14645         (gl_REPLACE_OBSTACK_PRINTF): New macros
14646         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
14647         * tests/test-obstack-printf.c: New file.
14648         * modules/obstack-printf-tests: Likewise.
14649         * modules/obstack-printf-posix-tests: Likewise.
14650
14651 2008-06-11  Bruno Haible  <bruno@clisp.org>
14652
14653         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
14654         * lib/open.c: Include errno.h.
14655         (open): Fail when attempting to write to a file that has a trailing
14656         slash.
14657         * tests/test-open.c (main): Test against trailing slash bug.
14658         * doc/posix-functions/open.texi: Mention the trailing slash bug.
14659
14660 2008-06-10  Bruno Haible  <bruno@clisp.org>
14661
14662         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
14663         for $? to work inside the trap command, with various /bin/sh-s.
14664         * tests/test-vc-list-files-cvs.sh: Likewise.
14665
14666 2008-06-10  Bruno Haible  <bruno@clisp.org>
14667
14668         * lib/acl-internal.h: Don't include gettext.h here.
14669         * lib/set-mode-acl.c: Include gettext.h here.
14670         * lib/copy-acl.c: Likewise.
14671
14672 2008-06-10  Bruno Haible  <bruno@clisp.org>
14673
14674         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
14675         * lib/wait-process.c (wait_subprocess): Likewise.
14676         * lib/execute.h (execute): Add termsigp argument.
14677         * lib/execute.c (execute): Likewise.
14678         * lib/csharpcomp.c (compile_csharp_using_pnet,
14679         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
14680         * lib/csharpexec.c (execute_csharp_using_pnet,
14681         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
14682         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
14683         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
14684         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
14685         is_jikes_present): Update.
14686         * lib/javaexec.c (execute_java_class): Update.
14687         * lib/javaversion.c (execute_and_read_line): Update.
14688         * NEWS: Document the changes.
14689         Reported by Eric Blake.
14690
14691 2008-06-10  Eric Blake  <ebb9@byu.net>
14692
14693         Add missing include.
14694         * tests/test-strstr.c (includes): Add <signal.h>.
14695         * tests/test-strcasestr.c (includes): Likewise.
14696         * tests/test-memmem.c (includes): Likewise.
14697
14698 2008-06-10  Bruno Haible  <bruno@clisp.org>
14699
14700         * lib/wait-process.c (wait_subprocess): Add an assertion.
14701
14702 2008-06-10  Bruno Haible  <bruno@clisp.org>
14703
14704         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
14705
14706 2008-06-10  Bruno Haible  <bruno@clisp.org>
14707
14708         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
14709         using alarm().
14710         * tests/test-strcasestr.c (main): Likewise.
14711         * tests/test-strstr.c (main): Likewise.
14712
14713 2008-06-09  Bruno Haible  <bruno@clisp.org>
14714
14715         Work around the Solaris 10 ACE ACLs ABI change.
14716         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
14717         declare if ACL_NO_TRIVIAL is present.
14718         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
14719         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
14720         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
14721         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
14722         define if ACL_NO_TRIVIAL is present.
14723         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
14724         and use the current ABI.
14725         (file_has_acl): Use same #if condition as elsewhere.
14726         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
14727         in use, and use the current ABI.
14728         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
14729         Reported by Jim Meyering.
14730
14731 2008-06-09  Eric Blake  <ebb9@byu.net>
14732
14733         Work around environments that (stupidly) ignore SIGALRM.
14734         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
14735         before using alarm().
14736         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14737         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14738         Reported by Ian Beckwith <ianb@erislabs.net>.
14739
14740         Produce autobuild blurb earlier in log.
14741         * modules/autobuild (configure.ac-early): Move AB_INIT here.
14742
14743 2008-06-09  Jim Meyering  <meyering@redhat.com>
14744         and OndÅ™ej Vašík  <ovasik@redhat.com>
14745
14746         utimens.c: correct kernel bug work-around
14747         OndÅ™ej Vašík found that the invalid return value of 280 indicates
14748         failure, not success, and the kernel bug we're trying to work
14749         around affects not just the utimensat call, but also the fallback
14750         futimens call.
14751         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
14752         not success.
14753         [HAVE_FUTIMENS]: Use the same work-around, here.
14754
14755 2008-06-09  Jim Meyering  <meyering@redhat.com>
14756
14757         add more guards around definition of ACE_-related code
14758         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
14759         ALLOW and ACE_OWNER are also defined.
14760
14761 2008-06-08  Bruno Haible  <bruno@clisp.org>
14762
14763         * lib/acl-internal.h: Add me as co-author.
14764         * lib/file-has-acl.c: Likewise.
14765         * lib/set-mode-acl.c: Likewise.
14766         * lib/copy-acl.c: Likewise.
14767
14768 2008-06-08  Bruno Haible  <bruno@clisp.org>
14769
14770         Add support for AIX ACLs.
14771         * lib/acl-internal.h (acl_nontrivial): New declaration.
14772         * lib/file-has-acl.c (acl_nontrivial): New function.
14773         (file_has_acl): Add implementation using AIX 4 ACL API.
14774         * lib/set-mode-acl.c (qset_acl): Likewise.
14775         * lib/copy-acl.c (qcopy_acl): Likewise.
14776
14777 2008-06-08  Bruno Haible  <bruno@clisp.org>
14778
14779         Add support for HP-UX ACLs.
14780         * lib/acl-internal.h (acl_nontrivial): New declaration.
14781         * lib/file-has-acl.c (acl_nontrivial): New function.
14782         (file_has_acl): Add implementation using HP-UX 11 ACL API.
14783         * lib/set-mode-acl.c (qset_acl): Likewise.
14784         * lib/copy-acl.c (qcopy_acl): Likewise.
14785
14786 2008-06-08  Bruno Haible  <bruno@clisp.org>
14787
14788         Add support for Cygwin ACLs.
14789         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
14790         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
14791         the chmod_or_fchmod call.
14792         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
14793
14794 2008-06-08  Bruno Haible  <bruno@clisp.org>
14795
14796         Fix bug with setuid modes in Solaris 10+ code.
14797         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
14798         succeeded, when the mode contains some special bits.
14799
14800 2008-06-08  Bruno Haible  <bruno@clisp.org>
14801
14802         Add support for Solaris 7..10 ACLs.
14803         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
14804         declarations.
14805         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
14806         functions.
14807         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
14808         * lib/set-mode-acl.c (qset_acl): Likewise.
14809         * lib/copy-acl.c (qcopy_acl): Likewise.
14810
14811 2008-06-08  Bruno Haible  <bruno@clisp.org>
14812
14813         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
14814         declaration.
14815         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
14816         (acl_access_nontrivial): Remove MacOS X case.
14817         (file_has_acl): Use acl_extended_nontrivial.
14818         * lib/copy-acl.c (qcopy_acl): Likewise.
14819
14820 2008-06-08  Bruno Haible  <bruno@clisp.org>
14821
14822         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
14823
14824 2008-06-08  Jim Meyering  <meyering@redhat.com>
14825
14826         * modules/acl (Maintainer): Add Bruno Haible.
14827
14828 2008-06-07  Bruno Haible  <bruno@clisp.org>
14829
14830         Improve support for Tru64 ACLs.
14831         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
14832         ACL on OSF/1.
14833
14834 2008-06-07  Bruno Haible  <bruno@clisp.org>
14835
14836         Add support for MacOS X ACLs.
14837         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
14838         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
14839         * lib/set-mode-acl.c (qset_acl): Likewise.
14840         * lib/copy-acl.c (qcopy_acl): Likewise.
14841
14842 2008-06-07  Bruno Haible  <bruno@clisp.org>
14843
14844         Fix memory leak introduced on 2008-05-22.
14845         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
14846         use.
14847
14848 2008-06-07  Bruno Haible  <bruno@clisp.org>
14849
14850         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
14851         to construct an empty ACL.
14852
14853 2008-06-07  Bruno Haible  <bruno@clisp.org>
14854
14855         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
14856         precisely.
14857         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
14858
14859 2008-06-07  Bruno Haible  <bruno@clisp.org>
14860
14861         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
14862         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
14863
14864 2008-06-07  Bruno Haible  <bruno@clisp.org>
14865
14866         * doc/posix-functions/_setjmp.texi: Explain the use of this function
14867         regardless of POSIX.
14868         * doc/posix-functions/_longjmp.texi: Likewise.
14869         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
14870         SystemV platform in this case.
14871
14872 2008-06-06  Eric Blake  <ebb9@byu.net>
14873
14874         Document abort() bugs.
14875         * doc/posix-functions/abort.texi (abort): Mention anomalies.
14876
14877         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
14878         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
14879         sigsetjmp.
14880         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
14881         siglongjmp, but only as a macro.
14882         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
14883         is obsolete.
14884         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
14885
14886         Tweak documentation to cover cygwin argz bugs.
14887         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
14888         argz bug fix; no code change needed since no cygwin releases
14889         occurred between the last fix and the bug being tested.
14890         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
14891         module and recently fixed cygwin bugs.
14892         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
14893         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
14894         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
14895         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
14896         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
14897         Likewise.
14898         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
14899         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
14900         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
14901         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
14902         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
14903         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
14904         Likewise.
14905
14906         Avoid gcc warning on cygwin.
14907         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
14908         !ACL_NO_TRIVIAL]: Avoid unused variable.
14909
14910 2008-06-05  Eric Blake  <ebb9@byu.net>
14911
14912         Be tolerant of UNKNOWN version in gnulib-tool test dir.
14913         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
14914         git-version-gen fails to come up with a version.
14915         Reported by Simon Josefsson.
14916
14917 2008-06-05  Jim Meyering  <meyering@redhat.com>
14918             Paul Eggert  <eggert@cs.ucla.edu>
14919
14920         utimens.c: work around a probable Linux kernel bug
14921         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
14922         appears to be a kernel bug that causes utimensat to return 280
14923         instead of 0, indicating success.
14924
14925 2008-06-04  Bruno Haible  <bruno@clisp.org>
14926
14927         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
14928         2008-06-01 commit.
14929
14930 2008-06-04  Bruno Haible  <bruno@clisp.org>
14931
14932         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
14933         * lib/file-has-acl.c (acl_access_nontrivial): New function.
14934         (file_has_acl): Use it. Save errno afterwards.
14935         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
14936
14937 2008-06-03  Bruno Haible  <bruno@clisp.org>
14938
14939         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
14940         draft code. Simplify #ifs.
14941         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
14942         Put Solaris code after POSIX-draft code. Fix comments regarding
14943         Solaris 10, HP-UX. Mention Cygwin.
14944         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
14945
14946 2008-06-03  Eric Blake  <ebb9@byu.net>
14947
14948         Provide fallback for older kernels.
14949         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
14950         Provide runtime fallback if kernel lacks support.
14951         Reported by Mike Frysinger.
14952
14953 2008-06-02  Bruno Haible  <bruno@clisp.org>
14954
14955         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
14956         it exists.
14957
14958 2008-06-02  Bruno Haible  <bruno@clisp.org>
14959
14960         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
14961         * lib/copy-acl.c (qcopy_acl): Update comment.
14962
14963 2008-06-02  Bruno Haible  <bruno@clisp.org>
14964
14965         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
14966         like ACL APIs.
14967
14968 2008-06-02  Bruno Haible  <bruno@clisp.org>
14969
14970         * tests/test-file-has-acl.sh: Use different code for Cygwin.
14971         * tests/test-set-mode-acl.sh: Likewise.
14972         * tests/test-copy-acl.sh: Likewise.
14973         * tests/test-copy-file.sh: Likewise.
14974
14975 2008-06-02  Bruno Haible  <bruno@clisp.org>
14976
14977         * tests/test-file-has-acl.sh: Remove unused code.
14978
14979 2008-06-01  Bruno Haible  <bruno@clisp.org>
14980
14981         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
14982         (copy_acl): Just a wrapper around qcopy_acl that emits the error
14983         messages.
14984         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
14985
14986 2008-06-01  Bruno Haible  <bruno@clisp.org>
14987
14988         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
14989         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
14990         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
14991         APIs.
14992         * modules/acl-tests (configure.ac): Remove tests now contained in
14993         m4/acl.m4.
14994
14995 2008-06-02  Jim Meyering  <meyering@redhat.com>
14996
14997         announce-gen: use a better key-server host name
14998         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
14999         it may be more consistently reliable.  Suggested by Werner Koch
15000         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
15001
15002 2008-06-01  Bruno Haible  <bruno@clisp.org>
15003
15004         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
15005         Reported by Voroskoi Andras <voroskoi@gmail.com>.
15006
15007 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
15008
15009         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
15010
15011 2008-06-01  Bruno Haible  <bruno@clisp.org>
15012
15013         New ACL tests.
15014         * tests/test-file-has-acl.sh: New file.
15015         * tests/test-file-has-acl.c: New file.
15016         * tests/test-set-mode-acl.sh: New file.
15017         * tests/test-set-mode-acl.c: New file.
15018         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
15019         * tests/test-copy-acl.c: New file.
15020         * modules/acl-tests: New file, based on modules/copy-file-tests.
15021         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
15022         (Depends-on): Add acl-tests.
15023         (configure.ac): Remove checks.
15024         (Makefile.am): Don't create test-sameacls program here any more.
15025
15026 2008-06-01  Bruno Haible  <bruno@clisp.org>
15027
15028         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
15029         * tests/test-sameacls.c: Include progname.h.
15030         (main): Invoke set_program_name. Portability fixes for MacOS X,
15031         Solaris, HP-UX.
15032
15033 2008-06-01  Bruno Haible  <bruno@clisp.org>
15034
15035         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
15036         function.
15037         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
15038
15039 2008-06-01  Bruno Haible  <bruno@clisp.org>
15040
15041         * modules/rpmatch (Depends-on): Add strdup.
15042
15043 2008-06-01  Bruno Haible  <bruno@clisp.org>
15044
15045         * lib/pipe.c: Include unistd-safer.h.
15046         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
15047         * modules/pipe (Depends-on): Add unistd-safer.
15048
15049 2008-05-30  Simon Josefsson  <simon@josefsson.org>
15050
15051         * modules/autobuild (configure.ac): Call AB_INIT.
15052
15053 2008-05-30  Simon Josefsson  <simon@josefsson.org>
15054
15055         * tests/test-getaddrinfo.c: Don't print debug messages by default.
15056         Suggested by Bruno Haible <bruno@clisp.org>.
15057
15058 2008-05-30  Simon Josefsson  <simon@josefsson.org>
15059
15060         * tests/test-base64.c: Cast size_t to unsigned long when invoking
15061         printf.  Use %lu instead of %d.  Reported by Bruno Haible
15062         <bruno@clisp.org>.
15063
15064 2008-05-29  Eric Blake  <ebb9@byu.net>
15065
15066         Prefer new POSIX 200x interfaces over futimesat.
15067         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
15068         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
15069         when available.
15070         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
15071
15072 2008-05-28  Bruno Haible  <bruno@clisp.org>
15073
15074         * modules/stpcpy (License): Change to LGPLv2+.
15075         Requested by David Lutterkort <dlutter@redhat.com>.
15076
15077 2008-05-27  Bruno Haible  <bruno@clisp.org>
15078
15079         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
15080         current mingw.
15081         Reported by Jose E. Marchesi <jemarch@gnu.org>.
15082
15083 2008-05-27  Bruno Haible  <bruno@clisp.org>
15084
15085         * modules/iconv_open (Link): New section, from module 'iconv'.
15086         * modules/striconv (Link): Likewise.
15087         * modules/striconveh (Link): Likewise.
15088         * modules/xstriconv (Link): Likewise.
15089         * modules/unicodeio (Link): Likewise.
15090         * modules/propername (Link): Likewise.
15091         Reported by Jim Meyering.
15092
15093 2008-05-26  Jim Meyering  <meyering@redhat.com>
15094
15095         sha256: do not artificially restrict buffer length to be < 2^32
15096         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
15097         uint32_t to size_t.
15098         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
15099         to match.
15100
15101         avoid unaligned access errors, e.g., on sparc
15102         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
15103         direct access through a possibly-unaligned uint64* pointer.
15104         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
15105         direct access through a possibly-unaligned uint32* pointer.
15106         Prompted by this patch from Tom "spot" Callaway:
15107         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
15108
15109         sha512.c: fix typo in comment
15110         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
15111
15112 2008-05-25  Bruno Haible  <bruno@clisp.org>
15113
15114         * lib/set-mode-acl.c: Renamed from lib/acl.c.
15115         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
15116         (Makefile.am): Update lib_SOURCES.
15117
15118 2008-05-25  Bruno Haible  <bruno@clisp.org>
15119
15120         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
15121
15122 2008-05-25  Jim Meyering  <meyering@redhat.com>
15123
15124         useless-if-before-free: freed expr may have white-space differences
15125         * build-aux/useless-if-before-free: Recognize cases in which the
15126         freed expression differs from the tested one in embedded white
15127         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
15128         $1 was used, so we can't make any regexp shy.  Improved tests now
15129         detect this.
15130
15131         useless-if-before-free: accept white space in the expression.
15132         * build-aux/useless-if-before-free: For now, any white space
15133         in the expression must be identical in the free argument.
15134
15135         useless-if-before-free: efficiency tweak
15136         * build-aux/useless-if-before-free: Make the expression-matching
15137         regexp "shy".
15138         Make the *outer* regexp shy, not the expr-matching one.
15139
15140         update code-in-comment to accept cast of free arg
15141         * build-aux/useless-if-before-free: Update regexp.
15142
15143 2008-05-25  Bruno Haible  <bruno@clisp.org>
15144
15145         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
15146         * modules/copy-file-tests (Files, Makefile.am): Update.
15147         * tests/test-copy-file.c (func_test_copy): Update.
15148
15149 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
15150
15151         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
15152
15153 2008-05-23  Bruno Haible  <bruno@clisp.org>
15154
15155         Improve support for ACLs on OSF/1.
15156         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
15157         Remove fallback for unknown flavors of ACLs.
15158
15159 2008-05-22  Bruno Haible  <bruno@clisp.org>
15160
15161         Add support for ACLs on OSF/1.
15162         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
15163         replacements.
15164         (acl_free_text): New macro fallback.
15165         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
15166         acl_free.
15167         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
15168         acl_free_text function. Require AC_C_INLINE.
15169
15170 2008-05-22  Bruno Haible  <bruno@clisp.org>
15171
15172         Make copy_acl work on MacOS X 10.5.
15173         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
15174         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
15175         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
15176         If MODE_INSIDE_ACL, don't assume that every system has the same text
15177         representation for ACLs as FreeBSD.
15178         * lib/copy-acl.c (copy_acl): Add support for platforms with
15179         !MODE_INSIDE_ACL.
15180         * lib/file-has-acl.c (file_has_acl): Likewise.
15181         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
15182         FreeBSD, MacOS X, or IRIX, respectively.
15183
15184 2008-05-22  Bruno Haible  <bruno@clisp.org>
15185
15186         * lib/acl.h: Don't include <sys/acl.h>.
15187         (GETACLCNT): Move fallback to lib/acl-internal.h.
15188         * lib/acl-internal.h: Include <sys/acl.h> here.
15189         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
15190
15191 2008-05-22  Bruno Haible  <bruno@clisp.org>
15192
15193         Split off copy_acl function to separate file.
15194         * lib/copy-acl.c: New file, extracted from lib/acl.c.
15195         * lib/acl.c (copy_acl): Moved function to separate file.
15196         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
15197         * modules/acl (Files): Add lib/copy-acl.c.
15198         (Makefiles.am): Augment lib_SOURCES.
15199
15200 2008-05-22  Bruno Haible  <bruno@clisp.org>
15201
15202         * modules/copy-file-tests: New file.
15203         * tests/test-copy-file.sh: New file.
15204         * tests/test-copy-file.c: New file.
15205         * tests/test-copy-file-sameacls.c: New file.
15206
15207 2008-05-22  Eric Blake  <ebb9@byu.net>
15208
15209         Avoid gcc warning.
15210         * tests/test-memcmp.c (main): Pass NULL indirectly.
15211
15212 2008-05-21  Bruno Haible  <bruno@clisp.org>
15213
15214         Add reference doc about ACLs.
15215         * doc/acl-resources.txt: New file.
15216         * doc/acl-cygwin.txt: New file.
15217
15218 2008-05-21  Bruno Haible  <bruno@clisp.org>
15219
15220         Avoid one more warning from gcc.
15221         * lib/vasnprintf.c (IF_LINT): Update comments.
15222         (VASNPRINTF): Use it also for the 'prefix' array initializer.
15223
15224 2008-05-21  Jim Meyering  <meyering@redhat.com>
15225
15226         avoid a warning from gcc
15227         * lib/vasnprintf.c (IF_LINT): Define.
15228         (scale10_round_decimal_long_double):
15229         Use it to avoid a "may be used uninitialized" warning.
15230         (scale10_round_decimal_double): Likewise.
15231
15232 2008-05-21  Simon Josefsson  <simon@josefsson.org>
15233
15234         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
15235         declared.
15236
15237 2008-05-20  Bruno Haible  <bruno@clisp.org>
15238
15239         * tests/test-memcmp.c (main): Test also the sign of the result. Test
15240         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
15241
15242 2008-05-20  Simon Josefsson  <simon@josefsson.org>
15243
15244         * modules/memcmp-tests: New file.
15245         * tests/test-memcmp.c: New file.
15246
15247 2008-05-19  Bruno Haible  <bruno@clisp.org>
15248
15249         * modules/propername (Notice, configure.ac): Put quoted "..." into
15250         --keyword option.
15251         * lib/propername.h: Update comments accordingly.
15252         Reported by Eric Blake.
15253
15254 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
15255
15256         * modules/getpass-gnu (Depends-on): Add fseeko.
15257
15258 2008-05-19  Simon Josefsson  <simon@josefsson.org>
15259
15260         * modules/base64-tests: New file.
15261
15262 2008-05-19  Bo Borgerson <gigabo@gmail.com>
15263
15264         * lib/base64.c (base64_decode_ctx): If a decode context structure
15265         was passed in use it to ignore newlines.  If a context structure
15266         was _not_ passed in, continue to treat newlines as garbage (this
15267         is the historical behavior).  Formerly base64_decode.
15268         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
15269         takes a decode context structure.
15270         * lib/base64.h (base64_decode): Macro for four-argument calls.
15271         (base64_decode_alloc): Likewise.
15272         * lib/base64.c (base64_decode_ctx): If a decode context structure
15273         was passed in use it to ignore newlines.  If a context structure
15274         was _not_ passed in, continue to treat newlines as garbage (this
15275         is the historical behavior).  Formerly base64_decode.
15276         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
15277         takes a decode context structure.
15278         * lib/base64.h (base64_decode): Macro for four-argument calls.
15279         (base64_decode_alloc): Likewise.
15280
15281 2008-05-19  Jim Meyering  <meyering@redhat.com>
15282
15283         avoid a warning from gcc
15284         * lib/trim.c (IF_LINT): Define.
15285         (trim2): Use it to avoid a "may be used uninitialized" warning.
15286
15287         Fix doc typo.
15288         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
15289
15290 2008-05-19  Bruno Haible  <bruno@clisp.org>
15291
15292         * doc/glibc-functions/getpass.texi: Document limits of other
15293         implementations.
15294
15295 2008-05-19  Simon Josefsson  <simon@josefsson.org>
15296             Bruno Haible <bruno@clisp.org>
15297
15298         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
15299
15300 2008-05-18  Bruno Haible  <bruno@clisp.org>
15301
15302         * modules/propername: New file, from GNU gettext.
15303         * lib/propername.h: New file, from GNU gettext.
15304         * lib/propername.c: New file, from GNU gettext.
15305         * MODULES.html.sh (Internationalization functions): Add propername.
15306
15307 2008-05-16  Jim Meyering  <meyering@redhat.com>
15308             Bruno Haible  <bruno@clisp.org>
15309
15310         Avoid some warnings from "gcc -Wshadow".
15311         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
15312
15313 2008-05-15  Eric Blake  <ebb9@byu.net>
15314
15315         Extend previous patch to cygwin 1.7.0.
15316         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
15317         fast implementation in cygwin >= 1.7.0.
15318         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15319         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15320
15321 2008-05-15  Bruno Haible  <bruno@clisp.org>
15322
15323         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
15324         implementation in glibc >= 2.9.
15325         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15326         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15327
15328 2008-05-15  Bruno Haible  <bruno@clisp.org>
15329
15330         * MODULES.html.sh (Internationalization functions): Remove linebreak.
15331         (Unicode string functions): Add unilbrk/*.
15332         Reported by Karl Berry.
15333
15334 2008-05-15  Eric Blake  <ebb9@byu.net>
15335
15336         Fix violation of <stdbool.h> replacement in regex.
15337         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
15338         * lib/regexec.c (re_search_internal): Likewise.
15339         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
15340
15341 2008-05-15  Jim Meyering  <meyering@redhat.com>
15342
15343         avoid distracting test output when git or cvs is not found
15344         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
15345         * tests/test-vc-list-files-git.sh: Likewise.
15346
15347 2008-05-15  Eric Blake  <ebb9@byu.net>
15348
15349         Glibc finally accepted the memmem speedup code, bugzilla #5514.
15350         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
15351         glibc version.
15352         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15353         * doc/posix-functions/strstr.texi (strstr): Likewise.
15354         * lib/str-two-way.h (MAX): Sychronize with glibc.
15355
15356 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
15357
15358         * lib/regcomp.c (optimize_utf8): Add a note on why we test
15359         opr.ctx_type.
15360         (calc_first): Initialize constraint field.
15361         (duplicate_node_closure): Use it instead of special casing ANCHORS.
15362         Fix grammar.
15363         (duplicate_node): Merge constraint field for all node types.
15364         (calc_eclosure_iter): Look at constraint field for all node types.
15365         * lib/regex_internal.c (create_cd_newstate): Don't look at
15366         opr.ctx_type.
15367
15368 2008-05-14  Bruno Haible  <bruno@clisp.org>
15369
15370         Help GCC to do better code generation.
15371         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
15372         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15373         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
15374         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
15375         Declare with attribute 'malloc' if supported.
15376
15377 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
15378
15379         use "echo STR|wc -c" rather than unportable "expr length STR"
15380         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
15381         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
15382
15383 2008-05-14  Jim Meyering  <meyering@redhat.com>
15384
15385         use dd ibs=$n count=1 ... rather than less-portable head -c$n
15386         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
15387         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
15388         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
15389         via Collin Lasse.
15390
15391 2008-05-14  Eric Blake  <ebb9@byu.net>
15392
15393         Avoid quadratic growth in gl_LIBSOURCES.
15394         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
15395         Suggested by Bruno Haible.
15396
15397         Test xmemdup0.
15398         * modules/xmemdup0-tests: New file.
15399         * tests/test-xmemdup0.c: Likewise.
15400
15401 2008-05-13  Eric Blake  <ebb9@byu.net>
15402
15403         Split xmemdup0 into its own module.
15404         * modules/xmemdup0: New file.
15405         * lib/xmemdup0.h: Likewise.
15406         * lib/xmemdup0.c: Likewise.
15407         * MODULES.html.sh (Memory management functions): Add xmemdup0.
15408         * lib/xalloc.h (xmemdup0): Remove.
15409         * lib/xmalloc.c (xmemdup0): Likewise.
15410
15411 2008-05-13  Eric Blake  <ebb9@byu.net>
15412             Bruno Haible  <bruno@clisp.org>
15413
15414         Reduce number of forks required during autoconf.
15415         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
15416         and gl_LIBSOURCES_DIR.
15417         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
15418         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
15419         m4_syscmd per file.
15420         <m4_foreach_w>: Move...
15421         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
15422
15423 2008-05-13  Eric Blake  <ebb9@byu.net>
15424
15425         * gnulib-tool: Fix various comment typos.
15426
15427 2008-05-12  Bruno Haible  <bruno@clisp.org>
15428
15429         Tailor the linebreaking algorithm.
15430         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
15431
15432 2008-05-12  Bruno Haible  <bruno@clisp.org>
15433
15434         Update to Unicode 5.0.0.
15435         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
15436         LBP_JV, LBP_JT. Redistribute values.
15437         (unilbrk_table): Change size.
15438         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
15439         Unicode TR#14 rev. 22.
15440         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
15441         LBP_JV, LBP_JT. Redistribute values.
15442         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
15443         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
15444         Update.
15445         * lib/unilbrk/lbrkprop1.h: Regenerated.
15446         * lib/unilbrk/lbrkprop2.h: Regenerated.
15447         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
15448         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
15449         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
15450         Likewise.
15451         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
15452         Likewise.
15453         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
15454         result.
15455         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15456         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15457         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
15458         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
15459         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
15460         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
15461
15462 2008-05-11  Bruno Haible  <bruno@clisp.org>
15463
15464         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
15465
15466 2008-05-11  Bruno Haible  <bruno@clisp.org>
15467
15468         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
15469         * modules/unilbrk/gen-lbrk: New file.
15470
15471 2008-05-11  Bruno Haible  <bruno@clisp.org>
15472
15473         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
15474         * m4/sha512.m4 (gl_SHA512): Likewise.
15475
15476 2008-05-11  Jim Meyering  <meyering@redhat.com>
15477
15478         New modules: crypto/sha256, crypto/sha512 (from coreutils)
15479         * modules/crypto/sha256: New file.
15480         * modules/crypto/sha512: Likewise.
15481         * lib/sha256.c: Likewise.
15482         * lib/sha256.h: Likewise.
15483         * lib/sha512.c: Likewise.
15484         * lib/sha512.h: Likewise.
15485         * lib/u64.h: Likewise.
15486         * m4/sha256.m4: Likewise.
15487         * m4/sha512.m4: Likewise.
15488         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
15489
15490 2008-05-10  Bruno Haible  <bruno@clisp.org>
15491
15492         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
15493         (Input/Output <stdio.h>): Add xprintf.
15494         (Signal handling <signal.h>): Add strsignal.
15495         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
15496         (Core language properties): Add func.
15497         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
15498         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
15499         strings.
15500         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
15501         (Input/output): New section.
15502         (File system functions): Add openat-die, stat-macros.
15503         (Networking functions): Add sockets.
15504         (Unicode string functions): Add unictype/*.
15505         (Support for building libraries and executables): Add gperf.
15506         (Support for building documentation): Add agpl-3.0.
15507         (Misc): Add nocrash.
15508
15509 2008-05-10  Bruno Haible  <bruno@clisp.org>
15510
15511         * modules/unictype/gen-ctype: New file.
15512
15513 2008-05-10  Jim Meyering  <meyering@redhat.com>
15514
15515         Make chdir-safer.c more efficient on a system with no symlinks.
15516         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
15517         also if ELOOP is zero.  Suggested by Bruno Haible.
15518
15519         Make chdir-safer.c slightly safer.
15520         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
15521         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
15522
15523         Avoid compile failure on systems without ELOOP (like mingw).
15524         * lib/chdir-safer.c (ELOOP): Define if not already defined.
15525         Reported by Bruno Haible.
15526
15527 2008-05-10  Bruno Haible  <bruno@clisp.org>
15528
15529         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
15530         (is_utf8_encoding): Use a case-insensitive comparison.
15531         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
15532         streq.
15533
15534 2008-05-10  Bruno Haible  <bruno@clisp.org>
15535
15536         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
15537         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
15538         * lib/unilbrk/ulc-common.h (iconv_string_length,
15539         iconv_string_keeping_offsets): Remove declarations.
15540         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
15541         Don't include <iconv.h>, streq.h, xsize.h.
15542         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
15543         conversion.
15544         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
15545         <iconv.h>, streq.h, xsize.h.
15546         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
15547         conversion.
15548         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
15549         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
15550         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
15551         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
15552
15553 2008-05-10  Bruno Haible  <bruno@clisp.org>
15554
15555         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
15556         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
15557
15558         * modules/unilbrk/u32-width-linebreaks-tests: New file.
15559         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
15560
15561         * modules/unilbrk/u16-width-linebreaks-tests: New file.
15562         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
15563
15564         * modules/unilbrk/u8-width-linebreaks-tests: New file.
15565         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
15566
15567         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
15568         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
15569
15570         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
15571         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
15572
15573         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
15574         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
15575
15576         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
15577         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
15578
15579 2008-05-10  Bruno Haible  <bruno@clisp.org>
15580
15581         Split up 'linebreak' module.
15582         * lib/unilbrk.h: New file, based on lib/linebreak.h.
15583         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
15584         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
15585         modifications.
15586         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
15587         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
15588         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
15589         lib/linebreak.c.
15590         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
15591         lib/linebreak.c.
15592         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
15593         lib/linebreak.c.
15594         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
15595         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
15596         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
15597         lib/linebreak.c.
15598         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
15599         lib/linebreak.c.
15600         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
15601         lib/linebreak.c.
15602         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
15603         lib/linebreak.c.
15604         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
15605         lib/linebreak.c.
15606         * modules/unilbrk/base: New file.
15607         * modules/unilbrk/tables: New file.
15608         * modules/unilbrk/u8-possible-linebreaks: New file.
15609         * modules/unilbrk/u16-possible-linebreaks: New file.
15610         * modules/unilbrk/u32-possible-linebreaks: New file.
15611         * modules/unilbrk/ulc-common: New file.
15612         * modules/unilbrk/ulc-possible-linebreaks: New file.
15613         * modules/unilbrk/u8-width-linebreaks: New file.
15614         * modules/unilbrk/u16-width-linebreaks: New file.
15615         * modules/unilbrk/u32-width-linebreaks: New file.
15616         * modules/unilbrk/ulc-width-linebreaks: New file.
15617         * lib/linebreak.h: Remove file.
15618         * lib/linebreak.c: Remove file.
15619         * m4/linebreak.m4: Remove file.
15620         * modules/linebreak: Remove file.
15621         * NEWS: Mention the changes.
15622
15623 2008-05-09  Eric Blake  <ebb9@byu.net>
15624
15625         Add xmemdup0.
15626         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
15627         implementation.
15628         * lib/xmalloc.c (xmemdup0): New C implementation.
15629
15630 2008-05-08  Bruno Haible  <bruno@clisp.org>
15631
15632         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
15633
15634 2008-05-07  Eric Blake  <ebb9@byu.net>
15635
15636         Support cross-compilation of <wctype.h>.
15637         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
15638         AC_CACHE_CHECK.
15639
15640 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
15641
15642         * build-aux/vc-list-files: Add support for bzr.
15643
15644 2008-05-03  Jim Meyering  <meyering@redhat.com>
15645
15646         avoid failed assertion with tight malloc
15647         * tests/test-getndelim2.c: Correct an off-by-one assertion.
15648
15649 2008-05-03  Simon Josefsson  <simon@josefsson.org>
15650
15651         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
15652         are needed from arpa/inet.h.
15653         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
15654         Reported by Bruno Haible.
15655
15656 2008-05-02  Jim Meyering  <meyering@redhat.com>
15657
15658         avoid compilation error on FreeBSD 6
15659         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
15660
15661 2008-05-01  Jim Meyering  <meyering@redhat.com>
15662
15663         useless-if-before-free: correct --help's exit status description
15664         * build-aux/useless-if-before-free (usage): Like grep, exit 0
15665         for one or more matches, etc.  Reported by Bruno Haible.
15666
15667         vc-list-files: make the stand-alone gnulib test work
15668         * modules/vc-list-files-tests (configure.ac):
15669         Define and AC_SUBST abs_aux_dir.
15670         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
15671         $(abs_top_srcdir) to each script and having each of them
15672         duplicate the work of setting PATH, set PATH here, using
15673         the new variable, abs_aux_dir instead.
15674         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
15675         * tests/test-vc-list-files-git.sh: Likewise.
15676         Reported by Bruno Haible.
15677
15678 2008-05-01  Bruno Haible  <bruno@clisp.org>
15679
15680         * lib/getndelim2.c (getndelim2): Fix newsize computation during
15681         reallocation. Rename 'done' to 'found_delimiter'.
15682
15683 2008-05-01  Jim Meyering  <meyering@redhat.com>
15684
15685         vc-list-files: accommodate /bin/sh like the one from Solaris 10
15686         * build-aux/vc-list-files: Use `...`, not $(...).
15687
15688 2008-04-30  Jim Meyering  <meyering@redhat.com>
15689
15690         add tests for vc-list-files
15691         * modules/vc-list-files-tests: New module.
15692         * tests/test-vc-list-files-cvs.sh: New file.
15693         * tests/test-vc-list-files-git.sh: New file.
15694
15695         avoid a warning from gcc
15696         * lib/getndelim2.c (IF_LINT): Define.
15697         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
15698
15699         vc-list-files: work properly with build-aux/cvsu, too
15700         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
15701         to all cvs-based clauses.
15702
15703         vc-list-files: work properly in the CVS+awk case, too
15704         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
15705
15706         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
15707         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
15708         take more than one file argument, so .  Add quotes, just in case $dir
15709         ever contains a shell meta-character.  Prompted by Soren Hansen in
15710         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
15711
15712 2008-04-29  Eric Blake  <ebb9@byu.net>
15713
15714         Optimize getndelim2 to use block operations when possible.
15715         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
15716         freadseek, and memchr2.
15717         * lib/getndelim2.c (getndelim2): Use them for block reads.
15718
15719 2008-04-29  Bruno Haible  <bruno@clisp.org>
15720
15721         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
15722         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15723         * modules/inet_ntop (Depends-on): Add extensions.
15724         * modules/inet_pton (Depends-on): Likewise.
15725         Reported by Simon Josefsson.
15726
15727 2008-04-29  Jim Meyering  <meyering@redhat.com>
15728
15729         When the is more than one match in a block, match all of them.
15730         * build-aux/useless-if-before-free: Iterate through each block
15731         until there are no more matches.
15732
15733         Fix broken useless-if-before-free script.
15734         * build-aux/useless-if-before-free: Fix typo: missing "?" after
15735         the expression to match cast of argument to free-like function.
15736
15737 2008-04-29  Eric Blake  <ebb9@byu.net>
15738
15739         Use new header.
15740         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
15741
15742 2008-04-29  Jim Meyering  <meyering@redhat.com>
15743
15744         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
15745         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
15746         by gnulib to exist and to declare e.g., inet_ntop.
15747         Don't include "inet_ntop.h", now removed.
15748
15749         * m4/arpa_inet_h.m4: Remove trailing blanks.
15750
15751 2008-04-29  Eric Blake  <ebb9@byu.net>
15752
15753         Silence valgrind on safe reads beyond potential array bounds.
15754         * lib/rawmemchr.valgrind: New file.
15755         * lib/strchrnul.valgrind: Likewise.
15756         * modules/rawmemchr (Files): Distribute new file.
15757         * modules/strchrnul (Files): Likewise.
15758         Suggested by Bruno Haible.
15759
15760 2008-04-29  Bruno Haible  <bruno@clisp.org>
15761
15762         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
15763         (inet_ntop, inet_pton): Change portability warning's wording.
15764         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
15765         Invoke gl_CHECK_NEXT_HEADERS.
15766         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
15767         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
15768         set ARPA_INET_H.
15769         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15770         * modules/arpa_inet (Description): No longer only for systems that
15771         lack it.
15772         (Depends-on): Add include_next.
15773         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
15774         HAVE_ARPA_INET_H.
15775
15776 2008-04-29  Jim Meyering  <meyering@redhat.com>
15777
15778         * modules/mkdir (License): Re-license as LGPLv2+.
15779
15780 2008-04-29  Bruno Haible  <bruno@clisp.org>
15781
15782         * modules/rawmemchr (Maintainer): Set to Eric.
15783         * modules/strchrnul (Maintainer): Likewise.
15784
15785 2008-04-29  Simon Josefsson  <simon@josefsson.org>
15786
15787         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
15788         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
15789
15790         * modules/arpa_inet (arpa/inet.h): Use them.
15791
15792 2008-04-28  Eric Blake  <ebb9@byu.net>
15793
15794         Test getndelim2.
15795         * modules/getndelim2-tests: New file.
15796         * tests/test-getndelim2.c: Likewise.
15797         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
15798         stream.
15799         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
15800
15801         * MODULES.html.sh: Document new module.
15802
15803 2008-04-20  Bruno Haible  <bruno@clisp.org>
15804
15805         * lib/c-stack.c (die): Use raise.
15806         * modules/c-stack (Depends-on): Add raise.
15807
15808 2008-04-28  Bruno Haible  <bruno@clisp.org>
15809
15810         Expect rpmatch to be declared.
15811         * lib/yesno.c (rpmatch): Remove declaration.
15812
15813         Declare rpmatch.
15814         * lib/stdlib.in.h (rpmatch): New declaration.
15815         * lib/rpmatch.c: Include <stdlib.h> first.
15816         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
15817         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
15818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
15819         HAVE_RPMATCH.
15820         * modules/rpmatch (Depends-on): Add stdlib, extensions.
15821         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15822         (Include): Set to <stdlib.h>.
15823         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
15824         HAVE_RPMATCH.
15825         * NEWS: Document the change.
15826
15827 2008-04-28  Bruno Haible  <bruno@clisp.org>
15828
15829         Change rpmatch to use nl_langinfo when appropriate.
15830         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
15831         (N_): New macro.
15832         (localized_pattern): New function/macro.
15833         (try): Remove match, nomatch arguments. Copy the pattern into safe
15834         memory before caching it.
15835         (rpmatch): Use localized_pattern. Add translator comments.
15836         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
15837         Suggested by Eric Blake.
15838         * modules/rpmatch (Depends-on): Add stdbool.
15839
15840 2008-04-28  Eric Blake  <ebb9@byu.net>
15841
15842         Add rawmemchr module, matching glibc.
15843         * modules/string (Makefile.am): New indicator.
15844         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
15845         * lib/string.in.h (rawmemchr): Declare when appropriate.
15846         * modules/rawmemchr: New file.
15847         * m4/rawmemchr.m4: Likewise.
15848         * lib/rawmemchr.c: Likewise.
15849         * modules/rawmemchr-tests: Likewise.
15850         * tests/test-rawmemchr.c: Likewise.
15851         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
15852         module.
15853         * modules/strchrnul (Depends-on): Add rawmemchr.
15854         * lib/strchrnul.c (strchrnul): Optimize a corner case.
15855
15856         Whitespace cleanup.
15857         * tests/test-strchrnul.c: Reindent.
15858         * lib/strchrnul.c: Likewise.
15859
15860         Optimize and test strchrnul.
15861         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
15862         * modules/strchrnul-tests: New file.
15863         * tests/test-strchrnul.c: Likewise.
15864
15865         Remove intprops dependency.
15866         * modules/memchr (Depends-on): Remove intprops.
15867         * modules/memrchr (Depends-on): Likewise.
15868         * modules/memchr2 (Depends-on): Likewise.
15869         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
15870         * lib/memrchr.c (__memrchr): Likewise.
15871         * lib/memrchr2.c (memchr2): Likewise.
15872         Reported by Simon Josefsson.
15873
15874 2008-04-28  Simon Josefsson  <simon@josefsson.org>
15875
15876         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
15877         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15878
15879 2008-04-28  Simon Josefsson  <simon@josefsson.org>
15880
15881         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
15882
15883         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
15884
15885         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
15886
15887         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
15888         declarations.
15889         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
15890
15891         * m4/inet_pton.m4: Don't check for header files.
15892
15893         * m4/inet_ntop.m4: Don't check for header files.
15894
15895 2008-04-28  Simon Josefsson  <simon@josefsson.org>
15896
15897         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
15898         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
15899         trigger for cygwin).
15900         Reported by Bruno Haible  <bruno@clisp.org>.
15901
15902 2008-04-28  Bruno Haible  <bruno@clisp.org>
15903
15904         * doc/posix-functions/strdup.texi: Mention mingw problem.
15905
15906 2008-04-27  Bruno Haible  <bruno@clisp.org>
15907
15908         * modules/stat-time-tests (Depends-on): Add sleep.
15909         * tests/test-stat-time.c (force_unlink): New function.
15910         (cleanup): Use it.
15911         (test_mtime): Remove the ctime related tests.
15912         (test_ctime): New function, containing the ctime related tests.
15913         (main): Call test_ctime, except on native Windows platforms.
15914
15915 2008-04-27  Bruno Haible  <bruno@clisp.org>
15916
15917         * lib/rpmatch.c (rpmatch): Add some comments.
15918         Reported by James Youngman <jay@gnu.org>.
15919
15920 2008-04-27  Bruno Haible  <bruno@clisp.org>
15921
15922         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
15923         quiet NaNs.
15924
15925 2008-04-27  Bruno Haible  <bruno@clisp.org>
15926
15927         Make test-yesno.sh work on mingw.
15928         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
15929         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
15930         (main): Set stdin to binary mode.
15931         * modules/yesno-tests (Depends-on): Add binary-io.
15932
15933 2008-04-27  Bruno Haible  <bruno@clisp.org>
15934
15935         Fix 'isfinite' on x86, x86_64, ia64 platforms.
15936         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
15937         argument that lie outside the IEEE 854 domain.
15938         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
15939         (gl_ISFINITE): Use it.
15940         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
15941
15942 2008-04-27  Bruno Haible  <bruno@clisp.org>
15943
15944         Allow local renaming in config.h.
15945         * lib/memrchr.c (memrchr): Don't undefine outside libc.
15946
15947 2008-04-27  Bruno Haible  <bruno@clisp.org>
15948
15949         * lib/memchr.c (__memchr): Change type of 'i'.
15950         * lib/memchr2.c (memchr2): Likewise.
15951
15952 2008-04-26  Eric Blake  <ebb9@byu.net>
15953         and Bruno Haible  <bruno@clisp.org>
15954
15955         Optimize and test memrchr.
15956         * modules/memrchr (Depends-on): Add intprops.
15957         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
15958         * modules/memrchr-tests: New file.
15959         * tests/test-memrchr.c: New file.
15960
15961 2008-04-26  Bruno Haible  <bruno@clisp.org>
15962
15963         Add tentative support for DragonFly BSD.
15964         * lib/stdio-impl.h: Add macros for DragonFly BSD.
15965         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
15966         fp.
15967         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
15968         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
15969         * lib/fpurge.c (fpurge): Likewise.
15970         * lib/freadable.c (freaadable): Likewise.
15971         * lib/freadahead.c (freadahead): Likewise.
15972         * lib/freading.c (freading): Likewise.
15973         * lib/freadptr.c (freadptr): Likewise.
15974         * lib/freadseek.c (freadptrinc): Likewise.
15975         * lib/fseeko.c (fseeko): Likewise.
15976         * lib/fseterr.c (fseterr): Likewise.
15977         * lib/fwritable.c (fwritable): Likewise.
15978         * lib/fwriting.c (fwriting): Likewise.
15979
15980 2008-04-26  Bruno Haible  <bruno@clisp.org>
15981
15982         * lib/stdio-impl.h: New file.
15983         * lib/fbufmode.c: Include stdio-impl.h.
15984         (fbufmode): Use fp_, remove redundant #defines.
15985         * lib/fflush.c: Include stdio-impl.h.
15986         (clear_ungetc_buffer): Remove redundant #defines.
15987         * lib/fpurge.c: Include stdio-impl.h.
15988         (fpurge): Remove redundant #defines.
15989         * lib/freadable.c: Include stdio-impl.h.
15990         (freadable): Remove redundant #defines.
15991         * lib/freadahead.c: Include stdio-impl.h.
15992         (freadahead): Remove redundant #defines.
15993         * lib/freading.c: Include stdio-impl.h.
15994         (freading): Remove redundant #defines.
15995         * lib/freadptr.c: Include stdio-impl.h.
15996         (freadptr): Remove redundant #defines.
15997         * lib/freadseek.c: Include stdio-impl.h.
15998         (freadptrinc): Remove redundant #defines.
15999         * lib/fseeko.c: Include stdio-impl.h.
16000         (rpl_fseeko): Remove redundant #defines.
16001         * lib/fseterr.c: Include stdio-impl.h.
16002         (fseterr): Remove redundant #defines.
16003         * lib/fwritable.c: Include stdio-impl.h.
16004         (fwritable: Remove redundant #defines.
16005         * lib/fwriting.c: Include stdio-impl.h.
16006         (fwriting): Remove redundant #defines.
16007         * modules/fbufmode (Files): Add lib/stdio-impl.h.
16008         * modules/fflush (Files): Likewise.
16009         * modules/fpurge (Files): Likewise.
16010         * modules/freadable (Files): Likewise.
16011         * modules/freadahead (Files): Likewise.
16012         * modules/freading (Files): Likewise.
16013         * modules/freadptr (Files): Likewise.
16014         * modules/freadseek (Files): Likewise.
16015         * modules/fseeko (Files): Likewise.
16016         * modules/fseterr (Files): Likewise.
16017         * modules/fwritable (Files): Likewise.
16018         * modules/fwriting (Files): Likewise.
16019
16020 2008-04-26  Bruno Haible  <bruno@clisp.org>
16021
16022         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
16023         restore_seek_optimization, update_fpos_cache): New functions, extracted
16024         from rpl_fflush.
16025         (rpl_fflush): Use them.
16026         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
16027         (gl_REPLACE_FFLUSH): Use it.
16028
16029 2008-04-26  Bruno Haible  <bruno@clisp.org>
16030
16031         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
16032         on Solaris.
16033         * tests/test-xstrtoimax.sh: Likewise.
16034         * tests/test-xstrtoumax.sh: Likewise.
16035         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16036
16037 2008-04-26  Bruno Haible  <bruno@clisp.org>
16038
16039         * modules/memchr-tests: New file.
16040         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
16041
16042 2008-04-26  Eric Blake  <ebb9@byu.net>
16043             Bruno Haible  <bruno@clisp.org>
16044
16045         * lib/memchr.c: Include intprops.h.
16046         (__memchr): Optimize parallel detection of matching bytes. Rename local
16047         variables. Add explanatory comments.
16048
16049 2008-04-26  Bruno Haible  <bruno@clisp.org>
16050
16051         Fix module 'memchr', broken since 2000-10-28.
16052         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
16053
16054 2008-04-26  Bruno Haible  <bruno@clisp.org>
16055
16056         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
16057         comments.
16058
16059 2008-04-25  Eric Blake  <ebb9@byu.net>
16060
16061         Use native fstatat on cygwin 1.7.0.
16062         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
16063         first.
16064
16065 2008-04-23  Eric Blake  <ebb9@byu.net>
16066
16067         Improve memchr2 performance.
16068         * lib/memchr2.c (memchr2): Further optimize parallel detection of
16069         NUL bytes.
16070         * modules/memchr2 (Depends-on): Use intprops.h.
16071
16072 2008-04-23  Simon Josefsson  <simon@josefsson.org>
16073
16074         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
16075         an inline function instead of a CPP macro.  Patch by Ben Pfaff
16076         <blp@cs.stanford.edu>.
16077
16078 2008-04-23  Simon Josefsson  <simon@josefsson.org>
16079
16080         * lib/arpa_inet.in.h: New file.
16081
16082         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
16083         (Makefile.am): Sed in substitute header file.
16084
16085         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
16086         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
16087
16088         * modules/inet_ntop (configure.ac): Use
16089         gl_ARPA_INET_MODULE_INDICATOR.
16090
16091         * modules/inet_pton (configure.ac): Use
16092         gl_ARPA_INET_MODULE_INDICATOR.
16093
16094 2008-04-22  Jim Meyering  <meyering@redhat.com>
16095
16096         * modules/verify (License): Re-license as LGPLv2+.
16097
16098 2008-04-22  Simon Josefsson  <simon@josefsson.org>
16099
16100         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
16101         parameter to void* as per POSIX standard (MinGW uses char*).
16102
16103 2008-04-21  Bruno Haible  <bruno@clisp.org>
16104
16105         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
16106         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
16107         Define to replacements if REPLACE_ISWCNTRL is 1.
16108         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
16109         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
16110         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
16111         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
16112         what it fixes.
16113         * doc/posix-functions/iswalpha.texi: Likewise.
16114         * doc/posix-functions/iswblank.texi: Likewise.
16115         * doc/posix-functions/iswcntrl.texi: Likewise.
16116         * doc/posix-functions/iswdigit.texi: Likewise.
16117         * doc/posix-functions/iswgraph.texi: Likewise.
16118         * doc/posix-functions/iswlower.texi: Likewise.
16119         * doc/posix-functions/iswprint.texi: Likewise.
16120         * doc/posix-functions/iswpunct.texi: Likewise.
16121         * doc/posix-functions/iswspace.texi: Likewise.
16122         * doc/posix-functions/iswupper.texi: Likewise.
16123         * doc/posix-functions/iswxdigit.texi: Likewise.
16124         Reported by Alain Guibert.
16125
16126 2008-04-21  Bruno Haible  <bruno@clisp.org>
16127
16128         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
16129         Patch by Alain Guibert.
16130
16131 2008-04-21  Bruno Haible  <bruno@clisp.org>
16132
16133         Fix test failures on mingw.
16134         * tests/test-xstrtol.c (print_no_progname): New function.
16135         (main): Install it in error_print_progname hook.
16136         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
16137         * tests/test-xstrtoimax.sh: Likewise.
16138         * tests/test-xstrtoumax.sh: Likewise.
16139
16140 2008-04-21  Bruno Haible  <bruno@clisp.org>
16141
16142         Fix test failure on mingw.
16143         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
16144
16145 2008-04-21  Bruno Haible  <bruno@clisp.org>
16146
16147         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
16148         Actually assign a value.
16149
16150 2008-04-20  Bruno Haible  <bruno@clisp.org>
16151
16152         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
16153         take 2.
16154         * lib/canonicalize.c (canonicalize_file_name): Elide if the
16155         'canonicalize-lgpl' module is also used.
16156         * lib/canonicalize-lgpl.c: Undo last change.
16157         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
16158
16159 2008-04-20  Bruno Haible  <bruno@clisp.org>
16160
16161         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
16162         config.h. Provide _mkdir based fallback for mingw.
16163         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
16164         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
16165         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
16166         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
16167         rather than defining mkdir in config.h.
16168         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
16169         (gl_SYS_STAT_H_DEFAULTS): New macro.
16170         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
16171         HAVE_IO_H any more.
16172         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
16173         HAVE_DECL_MKDIR and HAVE_IO_H.
16174
16175 2008-04-20  Bruno Haible  <bruno@clisp.org>
16176
16177         * lib/isapipe.c: Port to native Windows platforms.
16178
16179 2008-04-20  Bruno Haible  <bruno@clisp.org>
16180
16181         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
16182
16183 2008-04-21  Eric Blake  <ebb9@byu.net>
16184
16185         Work around preprocessors that don't handle UINTMAX_MAX.
16186         * lib/memchr2.c (memchr2): Avoid embedded #if.
16187         Reported by Alain Guibert, fix suggested by Bruno Haible.
16188
16189 2008-04-21  Simon Josefsson  <simon@josefsson.org>
16190
16191         * doc/posix-functions/strftime.texi (strftime): Explain better
16192         Windows incompatibility.  Suggested by Micah Cowan
16193         <micah@cowan.name>.
16194
16195 2008-04-20  Bruno Haible  <bruno@clisp.org>
16196
16197         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
16198         unistr/u8-mblen.
16199
16200 2008-04-20  Bruno Haible  <bruno@clisp.org>
16201
16202         Fix test failure on platforms with non-GNU iconv.
16203         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
16204         (U_TO_U8): Use it, rather than u16_to_u8.
16205         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
16206         units at the end of the input string.
16207         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
16208
16209 2008-04-20  Bruno Haible  <bruno@clisp.org>
16210
16211         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
16212         when the resulting length is 0.
16213         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
16214
16215 2008-04-20  Bruno Haible  <bruno@clisp.org>
16216
16217         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
16218         works.
16219         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
16220
16221 2008-04-20  Bruno Haible  <bruno@clisp.org>
16222
16223         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
16224         * modules/tsearch-tests (configure.ac): Test for initstate function.
16225
16226 2008-04-20  Bruno Haible  <bruno@clisp.org>
16227
16228         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
16229         for nlink_t if missing.
16230         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
16231
16232 2008-04-19  Bruno Haible  <bruno@clisp.org>
16233
16234         Work around snprintf bug on Linux libc5.
16235         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
16236         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
16237         gl_SNPRINTF_SIZE1.
16238         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16239         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
16240         that test failed.
16241         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
16242         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
16243         * modules/snprintf (Files): Add m4/printf.m4.
16244         * modules/vsnprintf (Files): Likewise.
16245         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
16246         * doc/posix-functions/vsnprintf.texi: Likewise.
16247
16248 2008-04-19  Bruno Haible  <bruno@clisp.org>
16249
16250         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
16251         from 0.0058 to less than 10^-7.
16252
16253 2008-04-19  Bruno Haible  <bruno@clisp.org>
16254
16255         Fix rounding when a precision is given.
16256         * lib/vasnprintf.c (is_borderline): New function.
16257         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
16258         9...9x.
16259         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
16260         %e, %g.
16261         * tests/test-vasprintf-posix.c (test_function): Likewise.
16262         * tests/test-snprintf-posix.h (test_function): Likewise.
16263         * tests/test-sprintf-posix.h (test_function): Likewise.
16264         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
16265         * tests/test-printf-posix.h (test_function): Likewise.
16266         * tests/test-printf-posix.output: Update.
16267         Reported by John Darrington <john@darrington.wattle.id.au> via
16268         Ben Pfaff <blp@cs.stanford.edu>.
16269
16270 2008-04-18  Simon Josefsson  <simon@josefsson.org>
16271
16272         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
16273         Suggested by Bruno Haible <bruno@clisp.org>.
16274
16275 2008-04-17  Bruno Haible  <bruno@clisp.org>
16276
16277         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
16278         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
16279         implementation.
16280         Patch by Bruce Merry <bmerry@gmail.com>.
16281
16282 2008-04-17  Simon Josefsson  <simon@josefsson.org>
16283
16284         * doc/posix-functions/strftime.texi (strftime): Mention that %e
16285         doesn't work under Windows.
16286
16287 2008-04-16  Bruno Haible  <bruno@clisp.org>
16288
16289         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
16290         New macros.
16291         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
16292         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
16293         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
16294         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
16295         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
16296         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
16297         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
16298         macros.
16299         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
16300         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
16301         Northern Sotho, Uighur.
16302
16303 2008-04-16  Bruno Haible  <bruno@clisp.org>
16304
16305         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
16306         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
16307         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
16308         Reported by Daniel Bergström <daniel@octocode.com>.
16309
16310 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
16311             Bruno Haible  <bruno@clisp.org>
16312
16313         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
16314         function.
16315         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
16316         New functions, mostly extracted from gl_locale_name_default.
16317         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
16318
16319 2008-04-16  Eric Blake  <ebb9@byu.net>
16320
16321         Adjust strtod detection to catch glibc 2.7 bug.
16322         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
16323         Reported by John Gatewood Ham.
16324
16325 2008-04-16  Bruno Haible  <bruno@clisp.org>
16326
16327         Add tentative support for Linux libc5.
16328         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
16329         * lib/fpurge.c (fpurge): Likewise.
16330         * lib/freadable.c (freadable): Likewise.
16331         * lib/freadahead.c (freadahead): Likewise.
16332         * lib/freading.c (freading): Likewise.
16333         * lib/freadptr.c (freadptr): Likewise.
16334         * lib/freadseek.c (freadptrinc): Likewise.
16335         * lib/fseeko.c (rpl_fseeko): Likewise.
16336         * lib/fseterr.c (fseterr): Likewise.
16337         * lib/fwritable.c (fwritable): Likewise.
16338         * lib/fwriting.c (fwriting): Likewise.
16339         Reported by Alain Guibert <alguibert+bts@free.fr>.
16340
16341 2008-04-15  Bruno Haible  <bruno@clisp.org>
16342
16343         * modules/mathl (configure.ac): Define module indicator.
16344
16345 2008-04-15  Bruno Haible  <bruno@clisp.org>
16346
16347         * lib/logl.c (logl): Remove unused variables.
16348
16349 2008-04-15  Bruno Haible  <bruno@clisp.org>
16350
16351         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
16352         fails.
16353
16354 2008-04-15  Bruno Haible  <bruno@clisp.org>
16355
16356         * lib/trim.c (trim2): Fix argument of isspace() macro.
16357
16358 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
16359
16360         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
16361         to 0.
16362         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
16363
16364 2008-04-14  Bruno Haible  <bruno@clisp.org>
16365
16366         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
16367         AC_LANG_PROGRAM argument.
16368         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
16369         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
16370         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16371         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16372         * m4/math_h.m4 (gl_MATH_H): Likewise.
16373         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16374         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16375         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
16376         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
16377         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16378         * m4/regex.m4 (gl_REGEX): Likewise.
16379         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
16380         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
16381         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16382         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
16383         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
16384         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
16385         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16386         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16387
16388 2008-04-14  Jim Meyering  <meyering@redhat.com>
16389
16390         test-strtod: fix typos: s/abs/fabs/
16391         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
16392
16393 2008-04-13  Bruno Haible  <bruno@clisp.org>
16394
16395         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
16396         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
16397         module is also used and while not building the reloc-wrapper.
16398
16399 2008-04-13  Bruno Haible  <bruno@clisp.org>
16400
16401         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
16402
16403 2008-04-13  Bruno Haible  <bruno@clisp.org>
16404
16405         Fix AIX compilation failure introduced on 2008-04-02.
16406         * tests/test-frexp.c (exp): Undefine before redefining.
16407         * tests/test-frexpl.c (exp): Likewise.
16408
16409 2008-04-13  Bruno Haible  <bruno@clisp.org>
16410
16411         Work around a HP-UX stdio bug.
16412         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
16413         * tests/test-ftello.c (main): Likewise.
16414         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
16415         * doc/posix-functions/ftello.texi: Likewise.
16416
16417 2008-04-13  Bruno Haible  <bruno@clisp.org>
16418
16419         Make test-signbit pass on HP-UX/hppa.
16420         * tests/test-signbit.c (minus_zerol): New variable.
16421         (test_signbitl): Use it.
16422
16423 2008-04-13  Bruno Haible  <bruno@clisp.org>
16424
16425         Make truncl work on OSF/1 4.0.
16426         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
16427         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
16428         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
16429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
16430         HAVE_DECL_TRUNCL.
16431         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
16432         HAVE_DECL_TRUNCL.
16433         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
16434
16435 2008-04-13  Bruno Haible  <bruno@clisp.org>
16436
16437         * lib/unictype.h: Remove trailing comma from enumeration definitions.
16438
16439 2008-04-13  Bruno Haible  <bruno@clisp.org>
16440
16441         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
16442         expression, so as to avoid HP-UX 11 cc compiler bug.
16443
16444 2008-04-13  Bruno Haible  <bruno@clisp.org>
16445
16446         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
16447
16448 2008-04-13  Bruno Haible  <bruno@clisp.org>
16449
16450         * lib/git-merge-changelog.c: Remove empty declaration outside of
16451         functions.
16452
16453 2008-04-13  Bruno Haible  <bruno@clisp.org>
16454
16455         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
16456
16457 2008-04-13  Bruno Haible  <bruno@clisp.org>
16458
16459         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
16460         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
16461         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
16462         also if it exists but lacks definitions of the SHUT_* macros.
16463         * modules/sys_socket (Description): Update.
16464         Reported by Elbert Pol <e.pol@chello.nl>.
16465
16466 2008-04-13  Bruno Haible  <bruno@clisp.org>
16467
16468         * lib/localcharset.c (OS2): Don't redefine if already defined.
16469         Reported by Elbert Pol <e.pol@chello.nl>.
16470
16471 2008-04-13  Bruno Haible  <bruno@clisp.org>
16472
16473         * lib/binary-io.h [__EMX__]: Include <io.h>.
16474         Reported by Elbert Pol <e.pol@chello.nl>.
16475
16476 2008-04-12  Bruno Haible  <bruno@clisp.org>
16477
16478         * lib/fpucw.h: Enable the definitions also for x86_64.
16479         Needed for NetBSD/x86_64.
16480         Reported by Thomas Klausner <tk@giga.or.at>.
16481
16482 2008-04-12  Bruno Haible  <bruno@clisp.org>
16483
16484         * tests/test-strtod.c: Include isnand.h.
16485         (main): Use isnand instead of isnan.
16486         Reported by Jim Meyering.
16487
16488 2008-04-12  Bruno Haible  <bruno@clisp.org>
16489
16490         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
16491         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
16492
16493 2008-04-12  Jim Meyering  <meyering@redhat.com>
16494
16495         * m4/math_h.m4 (gl_MATH_H): Fix typos.
16496
16497 2008-04-12  Bruno Haible  <bruno@clisp.org>
16498
16499         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
16500         Reported by Elbert Pol <e.pol@chello.nl>.
16501
16502 2008-04-12  Eric Blake  <ebb9@byu.net>
16503
16504         Work around Solaris 10 math.h bug.
16505         * m4/math_h.m4 (gl_MATH_H): Check for bug.
16506         (gl_MATH_H_DEFAULTS): Set up default.
16507         * modules/math (Makefile.am): Replace new indicators.
16508         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
16509         * tests/test-math.c (main): Test this.
16510         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
16511         * doc/posix-headers/math.texi (math.h): Mention bug.
16512         Reported by Nelson H. F. Beebe and Jim Meyering.
16513
16514 2008-04-11  Bruno Haible  <bruno@clisp.org>
16515
16516         Adapt to future versions of Apple GCC.
16517         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
16518         Reported by Peter O'Gorman <peter@pogma.com>.
16519
16520 2008-04-11  Bruno Haible  <bruno@clisp.org>
16521
16522         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
16523
16524 2008-04-11  Bruno Haible  <bruno@clisp.org>
16525
16526         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
16527
16528         * modules/getaddrinfo-tests (Makefile.am): Define
16529         test_getaddrinfo_LDADD.
16530
16531 2008-04-11  Bruno Haible  <bruno@clisp.org>
16532
16533         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
16534         (init): Fix syntax error.
16535         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
16536         is declared.
16537
16538 2008-04-11  Bruno Haible  <bruno@clisp.org>
16539
16540         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
16541         * modules/glob (Depends-on): Add stdbool.
16542
16543 2008-04-11  Bruno Haible  <bruno@clisp.org>
16544
16545         * lib/trim.c: Include <string.h>.
16546
16547 2008-04-11  Eric Blake  <ebb9@byu.net>
16548
16549         Avoid compile failure on OS/2.
16550         * lib/regex_internal.h (internal_function): Disable optimization
16551         on OS/2 (__EMX__), where it caused compiler error.
16552         Reported by Elbert Pol.
16553
16554 2008-04-11  Bruno Haible  <bruno@clisp.org>
16555
16556         Flush the standard error stream before aborting. Needed on mingw.
16557         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
16558         * tests/test-array_list.c (ASSERT): Likewise.
16559         * tests/test-array_oset.c (ASSERT): Likewise.
16560         * tests/test-avltree_list.c (ASSERT): Likewise.
16561         * tests/test-avltree_oset.c (ASSERT): Likewise.
16562         * tests/test-avltreehash_list.c (ASSERT): Likewise.
16563         * tests/test-binary-io.c (ASSERT): Likewise.
16564         * tests/test-byteswap.c (ASSERT): Likewise.
16565         * tests/test-c-ctype.c (ASSERT): Likewise.
16566         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
16567         * tests/test-c-strcasestr.c (ASSERT): Likewise.
16568         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
16569         * tests/test-c-strstr.c (ASSERT): Likewise.
16570         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
16571         * tests/test-canonicalize.c (ASSERT): Likewise.
16572         * tests/test-carray_list.c (ASSERT): Likewise.
16573         * tests/test-ceilf1.c (ASSERT): Likewise.
16574         * tests/test-ceilf2.c (ASSERT): Likewise.
16575         * tests/test-ceill.c (ASSERT): Likewise.
16576         * tests/test-count-one-bits.c (ASSERT): Likewise.
16577         * tests/test-fbufmode.c (ASSERT): Likewise.
16578         * tests/test-fflush2.c (ASSERT): Likewise.
16579         * tests/test-floorf1.c (ASSERT): Likewise.
16580         * tests/test-floorf2.c (ASSERT): Likewise.
16581         * tests/test-floorl.c (ASSERT): Likewise.
16582         * tests/test-fopen.c (ASSERT): Likewise.
16583         * tests/test-fpending.c (ASSERT): Likewise.
16584         * tests/test-fprintf-posix.c (ASSERT): Likewise.
16585         * tests/test-fpurge.c (ASSERT): Likewise.
16586         * tests/test-freadable.c (ASSERT): Likewise.
16587         * tests/test-freadahead.c (ASSERT): Likewise.
16588         * tests/test-freading.c (ASSERT): Likewise.
16589         * tests/test-freadptr.c (ASSERT): Likewise.
16590         * tests/test-freadptr2.c (ASSERT): Likewise.
16591         * tests/test-freadseek.c (ASSERT): Likewise.
16592         * tests/test-freopen.c (ASSERT): Likewise.
16593         * tests/test-frexp.c (ASSERT): Likewise.
16594         * tests/test-frexpl.c (ASSERT): Likewise.
16595         * tests/test-fseek.c (ASSERT): Likewise.
16596         * tests/test-fseeko.c (ASSERT): Likewise.
16597         * tests/test-fstrcmp.c (ASSERT): Likewise.
16598         * tests/test-ftell.c (ASSERT): Likewise.
16599         * tests/test-ftello.c (ASSERT): Likewise.
16600         * tests/test-func.c (ASSERT): Likewise.
16601         * tests/test-fwritable.c (ASSERT): Likewise.
16602         * tests/test-fwriting.c (ASSERT): Likewise.
16603         * tests/test-getdelim.c (ASSERT): Likewise.
16604         * tests/test-getline.c (ASSERT): Likewise.
16605         * tests/test-i-ring.c (ASSERT): Likewise.
16606         * tests/test-iconv-utf.c (ASSERT): Likewise.
16607         * tests/test-iconv.c (ASSERT): Likewise.
16608         * tests/test-isfinite.c (ASSERT): Likewise.
16609         * tests/test-isnand.c (ASSERT): Likewise.
16610         * tests/test-isnanf.c (ASSERT): Likewise.
16611         * tests/test-isnanl.h (ASSERT): Likewise.
16612         * tests/test-ldexpl.c (ASSERT): Likewise.
16613         * tests/test-linked_list.c (ASSERT): Likewise.
16614         * tests/test-linkedhash_list.c (ASSERT): Likewise.
16615         * tests/test-localename.c (ASSERT): Likewise.
16616         * tests/test-lseek.c (ASSERT): Likewise.
16617         * tests/test-mbscasecmp.c (ASSERT): Likewise.
16618         * tests/test-mbscasestr1.c (ASSERT): Likewise.
16619         * tests/test-mbscasestr2.c (ASSERT): Likewise.
16620         * tests/test-mbscasestr3.c (ASSERT): Likewise.
16621         * tests/test-mbscasestr4.c (ASSERT): Likewise.
16622         * tests/test-mbschr.c (ASSERT): Likewise.
16623         * tests/test-mbscspn.c (ASSERT): Likewise.
16624         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
16625         * tests/test-mbspbrk.c (ASSERT): Likewise.
16626         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
16627         * tests/test-mbsrchr.c (ASSERT): Likewise.
16628         * tests/test-mbsspn.c (ASSERT): Likewise.
16629         * tests/test-mbsstr1.c (ASSERT): Likewise.
16630         * tests/test-mbsstr2.c (ASSERT): Likewise.
16631         * tests/test-mbsstr3.c (ASSERT): Likewise.
16632         * tests/test-memchr2.c (ASSERT): Likewise.
16633         * tests/test-memmem.c (ASSERT): Likewise.
16634         * tests/test-open.c (ASSERT): Likewise.
16635         * tests/test-printf-frexp.c (ASSERT): Likewise.
16636         * tests/test-printf-frexpl.c (ASSERT): Likewise.
16637         * tests/test-printf-posix.c (ASSERT): Likewise.
16638         * tests/test-quotearg.c (ASSERT): Likewise.
16639         * tests/test-rbtree_list.c (ASSERT): Likewise.
16640         * tests/test-rbtree_oset.c (ASSERT): Likewise.
16641         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
16642         * tests/test-round1.c (ASSERT): Likewise.
16643         * tests/test-roundf1.c (ASSERT): Likewise.
16644         * tests/test-roundl.c (ASSERT): Likewise.
16645         * tests/test-signbit.c (ASSERT): Likewise.
16646         * tests/test-sleep.c (ASSERT): Likewise.
16647         * tests/test-snprintf-posix.c (ASSERT): Likewise.
16648         * tests/test-snprintf.c (ASSERT): Likewise.
16649         * tests/test-sprintf-posix.c (ASSERT): Likewise.
16650         * tests/test-stat-time.c (ASSERT): Likewise.
16651         * tests/test-strcasestr.c (ASSERT): Likewise.
16652         * tests/test-strerror.c (ASSERT): Likewise.
16653         * tests/test-striconv.c (ASSERT): Likewise.
16654         * tests/test-striconveh.c (ASSERT): Likewise.
16655         * tests/test-striconveha.c (ASSERT): Likewise.
16656         * tests/test-strsignal.c (ASSERT): Likewise.
16657         * tests/test-strstr.c (ASSERT): Likewise.
16658         * tests/test-strtod.c (ASSERT): Likewise.
16659         * tests/test-trunc1.c (ASSERT): Likewise.
16660         * tests/test-trunc2.c (ASSERT): Likewise.
16661         * tests/test-truncf1.c (ASSERT): Likewise.
16662         * tests/test-truncf2.c (ASSERT): Likewise.
16663         * tests/test-truncl.c (ASSERT): Likewise.
16664         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
16665         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
16666         * tests/test-vasnprintf.c (ASSERT): Likewise.
16667         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
16668         * tests/test-vasprintf.c (ASSERT): Likewise.
16669         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
16670         * tests/test-vprintf-posix.c (ASSERT): Likewise.
16671         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
16672         * tests/test-vsnprintf.c (ASSERT): Likewise.
16673         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
16674         * tests/test-wcwidth.c (ASSERT): Likewise.
16675         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
16676         * tests/test-xprintf-posix.c (ASSERT): Likewise.
16677         * tests/test-xvasprintf.c (ASSERT): Likewise.
16678         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
16679         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
16680         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
16681         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
16682         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
16683         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
16684         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
16685         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
16686         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
16687         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
16688         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
16689         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
16690         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
16691         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
16692         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
16693         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
16694         * tests/unictype/test-block_list.c (ASSERT): Likewise.
16695         * tests/unictype/test-block_of.c (ASSERT): Likewise.
16696         * tests/unictype/test-block_test.c (ASSERT): Likewise.
16697         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
16698         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
16699         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
16700         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
16701         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
16702         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
16703         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
16704         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
16705         * tests/unictype/test-combining.c (ASSERT): Likewise.
16706         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
16707         * tests/unictype/test-digit.c (ASSERT): Likewise.
16708         * tests/unictype/test-mirror.c (ASSERT): Likewise.
16709         * tests/unictype/test-numeric.c (ASSERT): Likewise.
16710         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
16711         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
16712         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
16713         * tests/unictype/test-scripts.c (ASSERT): Likewise.
16714         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
16715         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
16716         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
16717         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
16718         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
16719         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
16720         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
16721         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
16722         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
16723         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
16724         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
16725         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
16726         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
16727         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
16728         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
16729         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
16730         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
16731         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
16732         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
16733         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
16734         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
16735         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
16736         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
16737         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
16738         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
16739         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
16740         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
16741         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
16742         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
16743         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
16744         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
16745         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
16746         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
16747         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
16748         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
16749         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
16750         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
16751         Reported by Eric Blake.
16752
16753 2008-04-11  Bruno Haible  <bruno@clisp.org>
16754
16755         * lib/wchar.in.h: Tweak comment.
16756
16757 2008-04-11  Bruno Haible  <bruno@clisp.org>
16758
16759         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
16760         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
16761         gl_COMMON.
16762         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
16763
16764 2008-04-11  Bruno Haible  <bruno@clisp.org>
16765
16766         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
16767
16768 2008-04-11  Simon Josefsson  <simon@josefsson.org>
16769
16770         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
16771         of attempting to use non-existing /dev/*random.  Based on patch
16772         from Adam Strzelecki <ono@java.pl> in
16773         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
16774
16775 2008-04-08  Bruno Haible  <bruno@clisp.org>
16776
16777         Add tentative support for emx+gcc.
16778         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
16779         * lib/fpurge.c (fpurge): Likewise.
16780         * lib/freadable.c (freadable): Likewise.
16781         * lib/freadahead.c (freadahead): Likewise.
16782         * lib/freading.c (freading): Likewise.
16783         * lib/freadptr.c (freadptr): Likewise.
16784         * lib/freadseek.c (freadptrinc): Likewise.
16785         * lib/fseeko.c (rpl_fseeko): Likewise.
16786         * lib/fseterr.c (fseterr): Likewise.
16787         * lib/fwritable.c (fwritable): Likewise.
16788         * lib/fwriting.c (fwriting): Likewise.
16789         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
16790
16791 2008-04-09  Eric Blake  <ebb9@byu.net>
16792
16793         Avoid some autoconf warnings.
16794         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
16795         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
16796         * m4/afs.m4 (gl_AFS): Likewise.
16797         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
16798         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
16799         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
16800         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
16801         (gl_INTEGER_TYPE_SUFFIX): Likewise.
16802         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
16803         (AC_CHECK_DECLS_ONCE): Likewise.
16804         Rename file...
16805         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
16806         gnulib-tool requires autoconf 2.59 or better.
16807         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
16808
16809 2008-04-08  Eric Blake  <ebb9@byu.net>
16810
16811         Use 'git describe --match' if present (added in git 1.5.5).
16812         * build-aux/git-version-gen: Limit result to tags that match 'v*'
16813         if possible.
16814
16815 2008-04-08  Bruno Haible  <bruno@clisp.org>
16816
16817         Add tentative support for OpenServer.
16818         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
16819         _ptr, _cnt.
16820         * lib/fpurge.c (fpurge): Likewise.
16821         * lib/freadable.c (freadable): Likewise.
16822         * lib/freadahead.c (freadahead): Likewise.
16823         * lib/freading.c (freading): Likewise.
16824         * lib/freadptr.c (freadptr): Likewise.
16825         * lib/freadseek.c (freadptrinc): Likewise.
16826         * lib/fseeko.c (rpl_fseeko): Likewise.
16827         * lib/fseterr.c (fseterr): Likewise.
16828         * lib/fwritable.c (fwritable): Likewise.
16829         * lib/fwriting.c (fwriting): Likewise.
16830         Reported by Roger Cornelius <rac@tenzing.org> and
16831         Brian K. White <brian@aljex.com>.
16832
16833 2008-04-06  Jim Meyering  <meyering@redhat.com>
16834
16835         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
16836
16837 2008-04-06  Bruno Haible  <bruno@clisp.org>
16838
16839         Avoid possible error with non-ASCII bytes in UTF-8 locales.
16840         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
16841         * tests/test-printf-posix.sh: Likewise.
16842         * tests/test-vfprintf-posix.sh: Likewise.
16843         * tests/test-vprintf-posix.sh: Likewise.
16844         * tests/test-xprintf-posix.sh: Likewise.
16845
16846 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16847
16848         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
16849         hide error from 'ls', needed on OS/2.
16850         Report by Elbert Pol <elbert.pol@gmail.com>.
16851
16852 2008-04-04  Eric Blake  <ebb9@byu.net>
16853
16854         Make test-fseeko.c failures meaningful.
16855         * tests/test-fseeko.c: Print line number on failure.
16856         * tests/test-fseek.c: Likewise.
16857         Reported by Nelson H. F. Beebe.
16858
16859         Improve strtod bug detection check.
16860         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
16861         required for Solaris 10.
16862         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
16863
16864 2008-04-04  Bruno Haible  <bruno@clisp.org>
16865
16866         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
16867         by m4/setenv.m4.
16868
16869 2008-04-03  Eric Blake  <ebb9@byu.net>
16870
16871         Ensure sane .version contents.
16872         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
16873         version string.
16874         * build-aux/git-version-gen: Improve documentation.
16875
16876         Make GNU make output nicer.
16877         * top/GNUmakefile [!_have-Makefile]: Add dependency on
16878         MAKECMDGOALS to enforce message for all command line targets.  Set
16879         srcdir for use in maint.mk.
16880
16881         Another maintainer tweak.
16882         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
16883         a target that regenerates version.
16884
16885 2008-04-03  Jim Meyering  <meyering@redhat.com>
16886
16887         vc-list-files: don't cause coreutils "make po-check" failure
16888         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
16889
16890 2008-04-03  Eric Blake  <ebb9@byu.net>
16891
16892         Allow VPATH usage of vc-list-files.
16893         * build-aux/vc-list-files (scriptversion): Add timestamp.
16894         (options): Add --help, --version, -C.
16895         (CVS): Support installed cvsu.
16896
16897 2008-04-02  Bruno Haible  <bruno@clisp.org>
16898
16899         Avoid some "statement with no effect" warnings from gcc.
16900         * tests/test-wctype.c (main): Explicitly ignore unused values.
16901         Reported by Jim Meyering.
16902
16903 2008-04-02  Jim Meyering  <meyering@redhat.com>
16904
16905         Avoid some warnings from "gcc -Wshadow".
16906         * tests/test-frexp.c (exp): Define to a different identifier.
16907         * tests/test-frexpl.c (exp): Likewise.
16908
16909 2008-04-03  Jim Meyering  <meyering@redhat.com>
16910
16911         bootstrap: remove dangling *.[ch] symlinks from lib
16912         * build-aux/bootstrap [dangling symlink removal]: Move find's
16913         -depth option to precede all others, to avoid a warning.
16914         Remove *.[ch] files too, and from "$source_base" (usually lib/).
16915
16916 2008-04-02  Bruno Haible  <bruno@clisp.org>
16917
16918         Avoid some warnings from "gcc -Wshadow".
16919         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
16920         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
16921         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
16922         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
16923         Reported by Jim Meyering.
16924
16925 2008-04-01  Bruno Haible  <bruno@clisp.org>
16926
16927         Fix test to work on IRIX 6.5 with cc.
16928         * tests/test-math.c (numeric_equal): New function.
16929         (main): Use it.
16930
16931 2008-04-01  Bruno Haible  <bruno@clisp.org>
16932
16933         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
16934
16935 2008-04-01  Bruno Haible  <bruno@clisp.org>
16936
16937         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
16938         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
16939         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
16940         (Depends-on): Remove math.
16941
16942         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
16943         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
16944         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
16945         (Depends-on): Remove math.
16946
16947         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
16948         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
16949         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
16950         (Depends-on): Remove math.
16951         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
16952         (Depends-on): Remove math.
16953
16954         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
16955         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
16956         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
16957         (Depends-on): Remove math.
16958         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
16959         (Depends-on): Remove math.
16960
16961         * tests/test-round1.c: Include nan.h.
16962         (main): Use NaNd instead of NAN.
16963         * modules/round-tests (Files): Add tests/nan.h.
16964
16965         * tests/test-trunc1.c: Include nan.h.
16966         (main): Use NaNd instead of NAN.
16967         * modules/trunc-tests (Files): Add tests/nan.h.
16968
16969         * tests/test-roundf1.c: Include nan.h.
16970         (main): Use NaNf instead of NAN.
16971         * modules/roundf-tests (Files): Add tests/nan.h.
16972
16973         * tests/test-truncf1.c: Include nan.h.
16974         (main): Use NaNf instead of NAN.
16975         * modules/truncf-tests (Files): Add tests/nan.h.
16976
16977         * tests/test-ceilf1.c: Include nan.h.
16978         (main): Use NaNf instead of NAN.
16979         * modules/ceilf-tests (Files): Add tests/nan.h.
16980
16981         * tests/test-floorf1.c: Include nan.h.
16982         (main): Use NaNf instead of NAN.
16983         * modules/floorf-tests (Files): Add tests/nan.h.
16984
16985         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
16986         (main): Use NaNf instead of NAN.
16987         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
16988
16989         * tests/test-isnand.c: Include nan.h instead of <math.h>.
16990         (main): Use NaNd instead of NAN.
16991         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
16992
16993         * tests/test-frexp.c: Include nan.h.
16994         (main): Use NaNd instead of NAN.
16995         * modules/frexp-tests (Files): Add tests/nan.h.
16996
16997         * lib/isnan.c: Don't include <math.h>.
16998         (FUNC): Don't use NAN macro.
16999         * modules/isnand-nolibm (Depends-on): Remove math.
17000         * modules/isnanf-nolibm (Depends-on): Remove math.
17001         * modules/isnanl (Depends-on): Remove math.
17002         * modules/isnanl-nolibm (Depends-on): Remove math.
17003
17004         * tests/nan.h: New file.
17005
17006 2008-04-01  Eric Blake  <ebb9@byu.net>
17007
17008         Fix typos.
17009         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
17010         values to be the right type.
17011
17012         For now, cater to gnulib strtod inaccuracies.
17013         * tests/test-strtod.c (main): Allow 1-ulp error on expected
17014         fractional results.  While not as nice from a QoI perspective, it
17015         is a quicker patch than correctly implementing decimal to binary
17016         rounding.
17017
17018 2008-03-31  Eric Blake  <ebb9@byu.net>
17019
17020         Guarantee a definition of NAN.
17021         * lib/math.in.h (NAN): Define if missing.
17022         * tests/test-math.c (main): Test it.
17023         * doc/posix-headers/math.texi (math.h): Document this.
17024         * lib/isnan.c (rpl_isnand): Use it.
17025         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
17026         * tests/test-floorf1.c (NaN): Likewise.
17027         * tests/test-frexp.c (NaN): Likewise.
17028         * tests/test-isnand.c (NaN): Likewise.
17029         * tests/test-isnanf.c (NaN): Likewise.
17030         * tests/test-round1.c (NaN): Likewise.
17031         * tests/test-roundf1.c (NaN): Likewise.
17032         * tests/test-snprintf-posix.h (NaN): Likewise.
17033         * tests/test-sprintf-posix.h (NaN): Likewise.
17034         * tests/test-trunc1.c (NaN): Likewise.
17035         * tests/test-truncf1.c (NaN): Likewise.
17036         * tests/test-vasnprintf-posix.c (NaN): Likewise.
17037         * tests/test-vasprintf-posix.c (NaN): Likewise.
17038         * modules/isnand-nolibm (Depends-on): Add math.
17039         * modules/isnanf-nolibm (Depends-on): Likewise.
17040         * modules/isnanl (Depends-on): Likewise.
17041         * modules/isnanl-nolibm (Depends-on): Likewise.
17042         * modules/snprintf-posix-tests (Depends-on): Likewise.
17043         * modules/sprintf-posix-tests (Depends-on): Likewise.
17044         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
17045         * modules/vsprintf-posix-tests (Depends-on): Likewise.
17046         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
17047         * modules/vasprintf-posix-tests (Depends-on): Likewise.
17048
17049 2008-03-31  Bruno Haible  <bruno@clisp.org>
17050
17051         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
17052         * doc/posix-functions/strtod.texi: Likewise.
17053
17054 2008-03-31  Bruno Haible  <bruno@clisp.org>
17055
17056         * tests/test-strtod.c (main): Don't use C99 syntax.
17057
17058 2008-03-31  Bruno Haible  <bruno@clisp.org>
17059
17060         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
17061         Reported by Eric Blake.
17062
17063 2008-03-31  Jim Meyering  <meyering@redhat.com>
17064
17065         Don't compare actual signbit return values.
17066         * tests/test-strtod.c (main): Rather, compare only their
17067         zero/non-zero nature.
17068
17069 2008-03-31  Eric Blake  <ebb9@byu.net>
17070
17071         More strtod documentation.
17072         * doc/posix-functions/strtod.texi (strtod): Interpret more test
17073         failures as distinct bugs.
17074
17075 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
17076
17077         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
17078         Problem reported by Erik Benada in
17079         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
17080
17081 2008-03-30  Bruno Haible  <bruno@clisp.org>
17082
17083         * tests/test-strtod.c: Add comments about which assertion fails on which
17084         platform.
17085         * doc/posix-functions/strtod.texi: Add info about many more platforms.
17086
17087 2008-03-30  Eric Blake  <ebb9@byu.net>
17088
17089         Test signbit behavior on zeros.
17090         * tests/test-signbit.c (test_signbitf): Add tests for zero.
17091         (test_signbitd, test_signbitl): Likewise.
17092
17093         More strtod touchups.
17094         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
17095         sign of negative underflow, for now.  Use .5, not .1.
17096         * doc/posix-functions/strtod.texi (strtod): Mention these
17097         limitations.
17098         Reported by Jim Meyering.
17099
17100 2008-03-30  Bruno Haible  <bruno@clisp.org>
17101
17102         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
17103         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
17104
17105 2008-03-30  Bruno Haible  <bruno@clisp.org>
17106
17107         Avoid failure when attempting to return empty iconv results on some
17108         platforms.
17109         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
17110         allocation, don't report ENOMEM when the resulting string is empty.
17111
17112 2008-03-30  Bruno Haible  <bruno@clisp.org>
17113
17114         Fix buffer overrun.
17115         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
17116         Don't consider the width for tmp_length. Check count against tmp_length
17117         before doing the padding. Ensure enough allocation during padding.
17118
17119 2008-03-30  Eric Blake  <ebb9@byu.net>
17120
17121         strtod touchups.
17122         * lib/strtod.c (strtod): Avoid compiler warnings.
17123         Reported by Jim Meyering.
17124
17125 2008-03-30  Bruno Haible  <bruno@clisp.org>
17126
17127         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
17128         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
17129         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
17130         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
17131         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
17132         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
17133         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
17134         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
17135
17136         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
17137         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
17138         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
17139         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
17140         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
17141         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
17142         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
17143         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
17144
17145         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
17146         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
17147         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
17148         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
17149         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
17150         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
17151         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
17152         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
17153
17154         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
17155         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
17156
17157         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
17158         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
17159
17160         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
17161         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
17162
17163         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
17164         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
17165         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
17166
17167         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
17168         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
17169         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
17170
17171         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
17172         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
17173         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
17174
17175         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
17176         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
17177         * modules/vasprintf (Depends-on): Add EOVERFLOW.
17178
17179         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
17180         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
17181         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
17182         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
17183         (Depends-on): Add EOVERFLOW.
17184         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
17185         (Depends-on): Add EOVERFLOW.
17186         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
17187         (Depends-on): Add EOVERFLOW.
17188         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
17189         (Depends-on): Add EOVERFLOW.
17190         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
17191         (Depends-on): Add EOVERFLOW.
17192         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
17193         (Depends-on): Add EOVERFLOW.
17194         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
17195         (Depends-on): Add EOVERFLOW.
17196         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
17197         (Depends-on): Add EOVERFLOW.
17198
17199         * lib/sprintf.c (EOVERFLOW): Remove fallback.
17200         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
17201         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
17202
17203         * lib/snprintf.c (EOVERFLOW): Remove fallback.
17204         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
17205         * modules/snprintf (Depends-on): Add EOVERFLOW.
17206
17207         * lib/poll.c (EOVERFLOW): Remove fallback.
17208         * modules/poll (Depends-on): Add EOVERFLOW.
17209
17210         * lib/getugroups.c (EOVERFLOW): Remove fallback.
17211         * modules/getugroups (Depends-on): Add EOVERFLOW.
17212
17213         * lib/getdelim.c (EOVERFLOW): Remove fallback.
17214         * modules/getdelim (Depends-on): Add EOVERFLOW.
17215
17216         * lib/ftell.c (EOVERFLOW): Remove fallback.
17217         * modules/ftell (Depends-on): Add EOVERFLOW.
17218
17219         * lib/fprintf.c (EOVERFLOW): Remove fallback.
17220         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
17221         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
17222
17223         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
17224
17225         * modules/EOVERFLOW-tests: New file.
17226         * tests/test-EOVERFLOW.c: New file.
17227
17228         * modules/EOVERFLOW: New file.
17229         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
17230
17231 2008-03-30  Bruno Haible  <bruno@clisp.org>
17232
17233         Fix bug introduced on 2007-06-10.
17234         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
17235         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
17236
17237 2008-03-30  Bruno Haible  <bruno@clisp.org>
17238
17239         Improve freadseek's efficiency after ungetc.
17240         * lib/freadseek.c: Include freadahead.h.
17241         (freadptrinc): New function, extracted from freadseek.
17242         (freadseek): Use it in a loop. Use freadahead to determine the number
17243         of loop iterations.
17244         * modules/freadseek (Depends-on): Add freadahead.
17245         (configure.ac): Require AC_C_INLINE.
17246
17247 2008-03-30  Bruno Haible  <bruno@clisp.org>
17248
17249         * lib/freadseek.c (freadseek): Don't ignore the return value of
17250         freadptr.
17251
17252 2008-03-29  Eric Blake  <ebb9@byu.net>
17253
17254         Add hex float support.
17255         * modules/strtod (Depends-on): Add c-ctype.
17256         (Link): Mention POW_LIB.
17257         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
17258         whitespace between 'e' and exponent.
17259         * tests/test-strtod.c (main): Enable hex float tests.
17260         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
17261         now provides.
17262
17263         Document various strtod bugs, with some fixes.
17264         * doc/posix-functions/strtod.texi (strtod): Document bugs with
17265         "-0x", "inf", "nan", and hex constants.
17266         * doc/posix-functions/atof.texi (atof): Likewise.
17267         * modules/stdlib (Makefile.am): Support strtod.
17268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
17269         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
17270         detect additional strtod bugs.
17271         * lib/stdlib.in.h (rpl_strtod): Add declarations.
17272         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
17273         bool where appropriate.  Parse 'inf' and 'nan'.
17274         * tests/test-strtod.c: New file.
17275         * modules/strtod (Depends-on): Add stdbool, stdlib.
17276         (configure.ac): Turn on module indicator.
17277         * modules/strtod-tests: New module.
17278
17279 2008-03-29  Eric Blake  <ebb9@byu.net>
17280
17281         Fix ftell on mingw.
17282         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
17283         * modules/ftell-tests (Depends-on): Add binary-io.
17284         * modules/ftello-tests (Depends-on): Likewise.
17285         * tests/test-ftell.c (main): Enhance test to cover behavior after
17286         ungetc.  Enforce binary mode.
17287         * tests/test-ftello.c (main): Likewise.
17288
17289         Pass test-freadseek on cygwin.
17290         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
17291         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
17292         ungetc buffer.
17293
17294         * tests/test-fflush2.c (main): Fix typo.
17295
17296 2008-03-29  Bruno Haible  <bruno@clisp.org>
17297
17298         * tests/test-fflush2.c (main): Temporarily disable the contents of
17299         this test.
17300         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
17301         Reported by Eric Blake.
17302
17303 2008-03-28  Simon Josefsson  <simon@josefsson.org>
17304
17305         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
17306         (GC_SHA224_DIGEST_SIZE): Add.
17307
17308         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
17309         (gc_hash_digest_length): Likewise.
17310         (gc_hash_buffer): Likewise.
17311
17312 2008-03-25  Bruno Haible  <bruno@clisp.org>
17313
17314         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
17315         detail which gettext release to use.
17316         Reported by Simon Josefsson.
17317
17318 2008-03-26  Jim Meyering  <meyering@redhat.com>
17319
17320         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
17321         * modules/gnumakefile (clean-GNUmakefile): Also, use
17322         test ... && ... || : syntax rather than if-then ... fi.
17323
17324         gnumakefile: Don't double-quote-expand $(VPATH) value.
17325         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
17326
17327 2008-03-24  Eric Blake  <ebb9@byu.net>
17328
17329         Alter GNUmakefile to install into top directory.
17330         * modules/maintainer-makefile: Split, and add dependency...
17331         * modules/gnumakefile: to this new module.
17332         * build-aux/GNUmakefile: Move...
17333         * top/GNUmakefile: ...here.
17334         * build-aux/maint.mk: Move...
17335         * top/maint.mk: ...here.
17336         * MODULES.html.sh (Support for maintaining...): Document new
17337         module.
17338
17339 2008-03-23  Bruno Haible  <bruno@clisp.org>
17340
17341         * gnulib-tool: New options --vc-files, --no-vc-files.
17342         (func_usage): Document them.
17343         (vc_files): New variable.
17344         (func_import): Consider vc_files.
17345         (func_create_testdir): Set vc_files to empty.
17346         Suggested by Jim Meyering and Karl Berry.
17347
17348 2008-03-23  Bruno Haible  <bruno@clisp.org>
17349
17350         Fix regex compilation error on HP-UX 11.
17351         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
17352         * modules/regex (Files): Add m4/mbstate_t.m4.
17353         Reported by Ton Voon <ton.voon@altinity.com>.
17354
17355 2008-03-23  Bruno Haible  <bruno@clisp.org>
17356
17357         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
17358
17359 2008-03-23  Eric Blake  <ebb9@byu.net>
17360             Bruno Haible  <bruno@clisp.org>
17361
17362         Install files from top/ in the destination directory.
17363         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
17364         augmentation also for the files from top/.
17365         (func_import, func_create_testdir): Rewrite file names:
17366         top/filename -> filename.
17367
17368 2008-03-23  Bruno Haible  <bruno@clisp.org>
17369
17370         Tweak "gnulib --version" output.
17371         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
17372
17373 2008-03-23  Bruno Haible  <bruno@clisp.org>
17374
17375         Tweak "gnulib --version" output.
17376         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
17377         rather than contents of ChangeLog, when possible.
17378
17379 2008-03-21  Eric Blake  <ebb9@byu.net>
17380
17381         More --version tweaks.
17382         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
17383         date of last ChangeLog entry.
17384
17385 2008-03-21  Jim Meyering  <meyering@redhat.com>
17386
17387         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
17388
17389 2008-03-20  Eric Blake  <ebb9@byu.net>
17390
17391         VPATH fix.
17392         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
17393
17394 2008-03-20  Simon Josefsson  <simon@josefsson.org>
17395
17396         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
17397         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
17398
17399 2008-03-20  Eric Blake  <ebb9@byu.net>
17400
17401         Sync GNUmakefile with coreutils.
17402         * build-aux/GNUmakefile (have-Makefile): Rename...
17403         (_have-Makefile): ...to this, for namespace consideration.
17404         (GNUmakefile.cfg): Include, if present.
17405         (_autoreconf): Define a default.
17406         (_is-dist-target): New rule for rebuilds to pick up intra-release
17407         version.
17408         (maint-cfg.mk): Rename...
17409         (cfg.mk): ...to this.
17410
17411 2008-03-18  Jim Meyering  <meyering@redhat.com>
17412
17413         New script and module: mktempd
17414         * MODULES.html.sh (maint+release support): Add mktempd.
17415         * build-aux/mktempd: New file.
17416         * modules/mktempd: New file.
17417
17418 2008-03-15  Jim Meyering  <meyering@redhat.com>
17419
17420         Undo last change.
17421         * lib/sha1.c, lib/md5.c: 63 != ~63.
17422         Reported by Andreas Schwab.
17423
17424         sha1.c, md5.c: Hoist a redundant expression.
17425         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
17426         "ctx->buflen" only once, before calling *_process_block.
17427         * lib/md5.c (md5_process_bytes): Likewise.
17428
17429 2008-03-14  Eric Blake  <ebb9@byu.net>
17430
17431         Bump copyright year in files generated by gnulib-tool.
17432         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
17433         gnulib-tool, rather than hard-coding it.
17434
17435         Fix 'gnulib-tool --version' output to work with git.
17436         * gnulib-tool (func_gnulib_dir): New function, extracted from...
17437         (startup): ...here.
17438         (func_version): Use it to invoke git-version-gen, rather than
17439         relying on CVS keyword expansion.  Modernize wording.
17440         (cvsdatestamp, last_checkin_date, version): Kill unused
17441         variables.
17442
17443 2008-03-12  Jim Meyering  <meyering@redhat.com>
17444
17445         Recognize optional cast of the argument to free.
17446         * build-aux/useless-if-before-free: Update regexps.
17447
17448         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
17449
17450 2008-03-11  Bruno Haible  <bruno@clisp.org>
17451
17452         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
17453         by a single package.
17454         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
17455         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
17456         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
17457         Reported by Sam Steingold <sds@gnu.org>.
17458
17459 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17460
17461         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
17462         repositories.
17463
17464 2008-03-11  Bruno Haible  <bruno@clisp.org>
17465
17466         Avoid conflicts between local macro definitions.
17467         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
17468         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
17469
17470 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
17471             Bruno Haible  <bruno@clisp.org>
17472
17473         Make va_copy work with some version of xlc on AIX 5.1.
17474         * lib/stdarg.in.h: New file.
17475         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
17476         On AIX, use a <stdarg.h> file substitute.
17477         * modules/stdarg (Files): Add lib/stdarg.in.h.
17478         (Depends-on): Add include_next.
17479         (Makefile.am): Build a stdarg.h substitute if requested.
17480         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
17481
17482 2008-03-10  Bruno Haible  <bruno@clisp.org>
17483
17484         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
17485         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17486         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
17487
17488 2008-03-10  Bruno Haible  <bruno@clisp.org>
17489
17490         * modules/stdlib (Depends-on): Add include_next, remove
17491         absolute-header.
17492
17493 2008-03-09  Bruno Haible  <bruno@clisp.org>
17494
17495         * lib/freadahead.h (freadahead): Document more precisely.
17496         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
17497         the sum of both buffer sizes.
17498         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
17499         * NEWS: Document the change.
17500
17501 2008-03-09  Bruno Haible  <bruno@clisp.org>
17502
17503         Extend freadptr to return also the buffer size.
17504         * lib/freadptr.h (freadptr): Add sizep argument.
17505         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
17506         (freadptr): Add sizep argument. Determine buffer size like freadahead
17507         does.
17508         * tests/test-freadptr.c: Don't include freadahead.h.
17509         (main): Adapt for new calling convention of freadptr.
17510         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
17511         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
17512         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
17513         tests/test-freadptr2.sh.
17514         (Depends): Remove freadahead.
17515         (TESTS): Add test-freadptr2.sh.
17516         (check_PROGRAMS): Add test-freadptr2.
17517
17518 2008-03-09  Bruno Haible  <bruno@clisp.org>
17519
17520         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
17521         Report and solution by Simon Josefsson.
17522
17523 2008-03-06  Bruno Haible  <bruno@clisp.org>
17524
17525         Make fflush after ungetc work on BSD platforms.
17526         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
17527         * tests/test-fflush2.c: New file.
17528         * tests/test-fflush2.sh: New file.
17529         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
17530         tests/test-fflush2.c.
17531         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
17532         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
17533
17534 2008-03-06  Eric Blake  <ebb9@byu.net>
17535
17536         Likewise for ftello.
17537         * modules/ftello (Dependencies): Add extensions.
17538         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
17539
17540 2008-03-06  Bruno Haible  <bruno@clisp.org>
17541
17542         * modules/fseeko (Dependencies): Add extensions.
17543         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
17544         Needed on glibc systems.
17545
17546 2008-03-06  Bruno Haible  <bruno@clisp.org>
17547
17548         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
17549         email address.
17550         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17551
17552 2008-03-06  Bruno Haible  <bruno@clisp.org>
17553
17554         * users.txt: Add libgnupdf.
17555
17556 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17557
17558         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
17559         (Header File Substitutes, Function Substitutes,
17560         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
17561         (Build robot for gnulib): Fix typo.
17562
17563 2008-03-06  Bruno Haible  <bruno@clisp.org>
17564
17565         * doc/gnulib-tool.texi (VCS Issues): Small updates.
17566         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17567
17568 2008-03-06  Bruno Haible  <bruno@clisp.org>
17569
17570         * doc/func.texi: New file, extracted from doc/gnulib.texi.
17571         * doc/gnulib.texi: Include it.
17572
17573 2008-03-06  Simon Josefsson  <simon@josefsson.org>
17574
17575         * modules/func (License): Change license to unlimited; there was
17576         no LGPL parts in the module anyway.
17577
17578 2008-03-06  Simon Josefsson  <simon@josefsson.org>
17579
17580         * modules/__func__: Renamed to modules/func.
17581         * modules/__func__-tests: Renamed to modules/func-tests.
17582         * tests/test-__func__.c: Renamed to tests/test-func.c.
17583         * m4/__func__.m4: Renamed to m4/func.m4.
17584         * doc/gnulib.texi (__func__): Section renamed to func.
17585         Suggested by Eric Blake <ebb9@byu.net>.
17586
17587 2008-03-06  Simon Josefsson  <simon@josefsson.org>
17588
17589         * doc/gnulib.texi (__func__): Use C99 terminology when talking
17590         about __func__.  Make example self-contained.  Suggested by Eric
17591         Blake <ebb9@byu.net>.
17592
17593         * tests/test-__func__.c (main): Avoid extraneous () around __func.
17594         Suggested by Eric Blake <ebb9@byu.net>.
17595
17596 2008-03-06  Simon Josefsson  <simon@josefsson.org>
17597
17598         * modules/__func__: New file.
17599         * modules/__func__-tests: New file.
17600         * tests/test-__func__.c: New file.
17601         * m4/__func__.m4: New file.
17602         * doc/gnulib.texi (__func__): Document __func__ module.
17603
17604 2008-03-05  Simon Josefsson  <simon@josefsson.org>
17605
17606         * modules/byteswap (License): Re-license as LGPLv2+.
17607
17608 2008-03-05  Simon Josefsson  <simon@josefsson.org>
17609
17610         * doc/Makefile: Add pdf target.
17611
17612 2008-03-05  Simon Josefsson  <simon@josefsson.org>
17613
17614         * modules/inline (License): Use 'unlimited', since there are only
17615         *.m4 files in this module.
17616
17617 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
17618             Bruno Haible  <bruno@clisp.org>
17619
17620         Add support for HP C 7.1 on OpenVMS 8.3.
17621         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
17622
17623 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
17624
17625         Update VMS specifics.
17626         * lib/getopt.c [VMS]: Remove include of unixlib.h.
17627
17628 2008-03-02  Jim Meyering  <meyering@redhat.com>
17629
17630         Remove the last dependency on the "free" module.
17631         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
17632         Reported by Bob Proulx.
17633
17634         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
17635
17636         Remove useless "if" tests before free.  Deprecate "free" module.
17637         * doc/posix-functions/free.texi: Mention that this
17638         module is no longer useful.
17639         * modules/free (Notice): Say this module is obsolete.
17640         * modules/readutmp (Depends-on): Remove free.
17641         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
17642         * lib/putenv.c (putenv): Likewise.
17643         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
17644         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
17645         * tests/test-c-strcasestr.c (main): Likewise.
17646         * tests/test-c-strstr.c (main): Likewise.
17647         * tests/test-mbscasestr1.c (main): Likewise.
17648         * tests/test-mbscasestr2.c (main): Likewise.
17649         * tests/test-mbsstr1.c (main): Likewise.
17650         * tests/test-mbsstr2.c (main): Likewise.
17651         * tests/test-memmem.c (main): Likewise.
17652         * tests/test-strcasestr.c (main): Likewise.
17653         * tests/test-striconv.c (main): Likewise.
17654         * tests/test-striconveh.c (main): Likewise.
17655         * tests/test-striconveha.c (main): Likewise.
17656         * tests/test-strstr.c (main): Likewise.
17657
17658         * build-aux/git-version-gen: Adjust a comment and the Usage string.
17659
17660         bootstrap: sync from coreutils again
17661         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
17662
17663 2008-03-01  Jim Meyering  <meyering@redhat.com>
17664
17665         bootstrap: sync from coreutils
17666         * build-aux/bootstrap (update_po_files): Copy a .po file into place
17667         also when the target doesn't exist.
17668
17669 2008-03-01  Eric Blake  <ebb9@byu.net>
17670
17671         Fix bugs in last patch.
17672         * lib/memchr2.c (memchr2): Fix typo.
17673         * tests/test-memchr2.c: Test previous bug, and don't use GNU
17674         extension.
17675         Reported by Bruce Korb.
17676
17677         New module 'memchr2'.
17678         * modules/memchr2: New file.
17679         * modules/memchr2-tests: Likewise.
17680         * lib/memchr2.h: Likewise.
17681         * lib/memchr2.c: Likewise, based on memchr.c.
17682         * tests/test-memchr2.c: New test.
17683         * MODULES.html.sh (String handling): Add memchr2.
17684
17685 2008-02-29  Bruno Haible  <bruno@clisp.org>
17686
17687         * modules/freadseek-tests: New file.
17688         * tests/test-freadseek.sh: New file.
17689         * tests/test-freadseek.c: New file.
17690
17691         New module 'freadseek'.
17692         * modules/freadseek: New file.
17693         * lib/freadseek.h: New file.
17694         * lib/freadseek.c: New file.
17695         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
17696
17697 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
17698
17699         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
17700         wydawca.
17701
17702         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
17703         program_invocation_name and program_invocation_short_name are
17704         present.
17705
17706 2008-02-28  Bruno Haible  <bruno@clisp.org>
17707
17708         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
17709         * tests/test-freadptr.sh: Also test non-seekable stdin.
17710
17711 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
17712
17713         * build-aux/bootstrap (source_base, m4_base)
17714         (doc_base, tests_base): New variables.
17715         (gnulib_tool_options): Do not hardcode base directories, use
17716         the above variables instead.
17717
17718 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
17719
17720         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
17721
17722 2008-02-28  Bruno Haible  <bruno@clisp.org>
17723
17724         * modules/freadptr-tests: New file.
17725         * tests/test-freadptr.sh: New file.
17726         * tests/test-freadptr.c: New file.
17727
17728         New module 'freadptr'.
17729         * modules/freadptr: New file.
17730         * lib/freadptr.h: New file.
17731         * lib/freadptr.c: New file.
17732         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
17733
17734 2008-02-26  Karl Berry  <karl@freefriends.org>
17735
17736         Sync from Libtool:
17737         * libltdl/argz.c (argz_add, argz_count): New functions.
17738         * libltdl/argz.in.h: Declare them.
17739         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
17740
17741 2008-02-22  Bruno Haible  <bruno@clisp.org>
17742
17743         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
17744         is a pointer type.  Needed for HP-UX 10.
17745         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
17746         * doc/posix-functions/gmtime_r.texi: Likewise.
17747         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
17748
17749 2008-02-24  Bruno Haible  <bruno@clisp.org>
17750
17751         * modules/environ-tests: New file.
17752         * tests/test-environ.c: New file.
17753
17754         New module 'environ'.
17755         * modules/environ: New file.
17756         * lib/unistd.in.h (environ): New declaration.
17757         * m4/environ.m4: New file.
17758         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
17759         after use.
17760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
17761         HAVE_DECL_ENVIRON.
17762         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
17763         HAVE_DECL_ENVIRON.
17764         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
17765         wrong claim that 'environ' is missing on some systems.
17766         * modules/execute (Depends-on): Add environ.
17767         * lib/execute.c (environ): Remove fallback declaration.
17768         * modules/pipe (Depends-on): Add environ.
17769         * lib/pipe.c (environ): Remove fallback declaration.
17770         * modules/setenv (Depends-on): Add environ.
17771         * lib/setenv.c (environ): Remove fallback declaration.
17772         * modules/unsetenv (Depends-on): Add environ.
17773         * lib/unsetenv.c (environ): Remove fallback declaration.
17774         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
17775         m4/environ.m4.
17776         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
17777         (gl_PREREQ_UNSETENV): Likewise.
17778
17779 2008-02-24  Bruno Haible  <bruno@clisp.org>
17780
17781         * doc/posix-functions/environ.texi: Document the MacOS X problem.
17782
17783 2008-02-20  Bob Proulx  <bob@proulx.com>
17784
17785         Enable use of older two part flavor 'git describe'.
17786         * build-aux/git-version-gen: If using the older two part flavor of
17787         git version then recreate the third part now present in the
17788         newer three part flavor of git describe.
17789
17790 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
17791
17792         * lib/fts.c (fts_build): Typo correction to comment.
17793
17794 2008-02-17  Bruno Haible  <bruno@clisp.org>
17795
17796         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
17797         generating no-op conflicts.
17798
17799 2008-02-17  Bruno Haible  <bruno@clisp.org>
17800
17801         Speed up by 10%.
17802         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
17803         result_entries, rather than an index-based loop.
17804
17805 2008-02-17  Bruno Haible  <bruno@clisp.org>
17806
17807         Speed up by 25%.
17808         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
17809         'hashcode_cached'.
17810         (entry_create): New function.
17811         (entry_hashcode): Use the cached hashcode if possible.
17812         (read_changelog_file, try_split_merged_entry): Use entry_create.
17813
17814 2008-02-17  Bruno Haible  <bruno@clisp.org>
17815
17816         Speed up from O(n^2) to O(n) for long ChangeLog files.
17817         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
17818         (read_changelog_file): Change implementation of entries_reversed list
17819         to rbtreehash.
17820         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
17821
17822 2008-02-17  Bruno Haible  <bruno@clisp.org>
17823
17824         New option --split-merged-entry.
17825         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
17826         (find_paragraph_end, try_split_merged_entry): New functions.
17827         (long_options): Add option --split-merged-entry.
17828         (usage): Document option --split-merged-entry.
17829         (main): Implement option --split-merged-entry.
17830         Reported by Eric Blake.
17831
17832 2008-02-17  Bruno Haible  <bruno@clisp.org>
17833
17834         * lib/git-merge-changelog.c: Include c-strstr.h.
17835         (main): Support the "git pull --rebase" situation.
17836         * modules/git-merge-changelog (Depends-on): Add c-strstr.
17837         Reported by Eric Blake.
17838
17839 2008-02-16  Eric Blake  <ebb9@byu.net>
17840
17841         Avoid doubling \ in common case of "c-maybe" quoting style.
17842         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
17843         eliding outer quotes.
17844         * lib/quotearg.h: Document this.
17845         * tests/test-quotearg.c (result_strings, inputs, results_g)
17846         (flag_results, locale_results): Test it by adding a new string to
17847         each test group.
17848         (compare_strings): Test new string.
17849
17850 2008-02-13  Eric Blake  <ebb9@byu.net>
17851
17852         Avoid trigraph quoting in default output.
17853         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
17854         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
17855         unless explicitly requested.
17856         * tests/test-quotearg.c (flag_results, main): Add additional tests.
17857
17858 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
17859
17860         Don't rely on signed integer overflowing to negative value.
17861         * lib/getugroups.c (getugroups): Include <limits.h>.
17862         Instead, compare against INT_MAX, and increment only if the test passes.
17863
17864 2008-02-13  Jim Meyering  <meyering@redhat.com>
17865         and Eric Blake  <ebb9@byu.net>
17866
17867         Avoid shadowing warning and compile errors on Linux.
17868         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
17869         forwarding macros on Linux.
17870         (dcgettext): Define a stub, for Linux.
17871         (results_g, main): Avoid warnings.
17872
17873 2008-02-12  Eric Blake  <ebb9@byu.net>
17874
17875         Silence warning in last patch.
17876         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
17877
17878         Quotearg part 4: add tests, fix c-maybe colon quoting.
17879         * lib/quotearg.h: Improve documentation.
17880         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
17881         escapes when adding outer quotes.  When quoting trigraphs, use
17882         valid C notation.  When quoting NUL, omit extra characters if next
17883         character is not digit.  Alter prototype.
17884         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
17885         callers.
17886         * modules/quotearg-tests: New module.
17887         * tests/test-quotearg.c: New test.
17888
17889 2008-02-07  Eric Blake  <ebb9@byu.net>
17890
17891         Quotearg part 3: add flag to control outer quote elision.
17892         * lib/quotearg.h (c_maybe_quoting_style): New style.
17893         (enum quoting_flags): Better documentation of flags.
17894         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
17895         c-maybe style.
17896         (quotearg_buffer_restyled): Handle new flag to elide outer
17897         quotes.
17898
17899         Quotearg part 2: add flag that can control NUL elision.
17900         * lib/quotearg.h (set_quoting_flags): New prototype.
17901         * lib/quotearg.c (struct quoting_options): Add flag field.
17902         (set_quoting_flags): New function.
17903         (quotearg_buffer_restyled): Add flags parameter.
17904         (quotearg_alloc_mem): Set the flag if length cannot be returned.
17905         (quotearg_n_options): Set the flag, since length cannot be
17906         returned.
17907         (quoting_options_from_style): Default flags correctly.
17908
17909         Quotearg part 1: more wrappers, restore quotearg_char state.
17910         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
17911         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
17912         (quotearg_colon_mem): New wrappers.
17913         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
17914         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
17915         functions.
17916         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
17917         (quotearg_colon_mem): New functions.
17918
17919 2008-02-11  Bruno Haible  <bruno@clisp.org>
17920
17921         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
17922         library in the current directory: it does not work with parallel make.
17923         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17924
17925 2008-02-11  Bruno Haible  <bruno@clisp.org>
17926
17927         * .gitattributes: New file.
17928
17929 2008-02-11  Jim Meyering  <meyering@redhat.com>
17930
17931         useless-if-before-free: Fix reversed exit values.
17932         * build-aux/useless-if-before-free: Use correct values
17933         for EXIT_MATCH and EXIT_NO_MATCH.
17934
17935         * build-aux/useless-if-before-free: Close stdout carefully.
17936
17937 2008-02-10  Bruno Haible  <bruno@clisp.org>
17938
17939         New module 'git-merge-changelog'.
17940         * modules/git-merge-changelog: New file.
17941         * lib/git-merge-changelog.c: New file.
17942
17943 2008-02-10  Jim Meyering  <meyering@redhat.com>
17944
17945         useless-if-before-free: New option: --list (-l).
17946
17947         useless-if-before-free: Don't exit immediately upon open failure.
17948         * build-aux/useless-if-before-free: Exit 2 for errors.
17949         Upon failure to open a file, don't exit immediately.
17950         Rather, just warn and continue with any remaining files.
17951
17952 2008-02-10  Bruno Haible  <bruno@clisp.org>
17953
17954         New abstract list operation 'node_set_value'.
17955         * lib/gl_list.h (gl_list_node_set_value): New function.
17956         (struct gl_list_implementation): New field node_set_value.
17957         * lib/gl_list.c (gl_list_node_set_value): New function.
17958         * lib/gl_array_list.c (gl_array_node_set_value): New function.
17959         (gl_array_list_implementation): Update.
17960         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
17961         (gl_carray_list_implementation): Update.
17962         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
17963         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
17964         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
17965         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
17966         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
17967         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
17968         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
17969         Update.
17970         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
17971         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
17972         (gl_sublist_list_implementation): Update.
17973
17974 2008-02-10  Bruno Haible  <bruno@clisp.org>
17975
17976         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
17977         Needed when ELEMENT is #defined to 'some_type *'.
17978
17979 2008-02-10  Jim Meyering  <meyering@redhat.com>
17980
17981         New script and module: useless-if-before-free
17982         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
17983         * build-aux/useless-if-before-free: New file.
17984         * modules/useless-if-before-free: New file.
17985
17986         * build-aux/gitlog-to-changelog: Use committer date, not author date.
17987
17988         xstrtol_error: Fix typo.
17989         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
17990         s/exit_failure/exit_status/.
17991
17992 2008-02-09  Jim Meyering  <meyering@redhat.com>
17993
17994         New script and module: gitlog-to-changelog
17995         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
17996         * modules/gitlog-to-changelog: New file.
17997         * build-aux/gitlog-to-changelog: New file.
17998
17999 2008-02-08  Jim Meyering  <meyering@redhat.com>
18000
18001         Avoid two "parameter unused" warnings.
18002         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
18003         Mark "st" as used.
18004
18005         Use "git COMMAND", not "git-COMMAND".
18006         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
18007         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
18008         * build-aux/git-version-gen: Use "git status", not "git-status".
18009
18010 2008-02-07  Bruno Haible  <bruno@clisp.org>
18011
18012         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
18013         Avoids a crash on Windows Vista.
18014         Reported by Adam Strzelecki <ono@java.pl> via
18015         Simon Josefsson <simon@josefsson.org>.
18016
18017 2008-02-06  Bruno Haible  <bruno@clisp.org>
18018
18019         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
18020         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
18021         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
18022         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
18023         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
18024         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
18025         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
18026         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
18027         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
18028         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
18029         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
18030         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
18031         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
18032         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
18033         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
18034         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
18035         left-adjust flag.
18036         * tests/test-snprintf-posix.h (test_function): Likewise.
18037         * tests/test-sprintf-posix.h (test_function): Likewise.
18038         * tests/test-vasprintf-posix.c (test_function): Likewise.
18039         * doc/posix-functions/fprintf.texi: Update.
18040         * doc/posix-functions/printf.texi: Update.
18041         * doc/posix-functions/snprintf.texi: Update.
18042         * doc/posix-functions/sprintf.texi: Update.
18043         * doc/posix-functions/vfprintf.texi: Update.
18044         * doc/posix-functions/vprintf.texi: Update.
18045         * doc/posix-functions/vsnprintf.texi: Update.
18046         * doc/posix-functions/vsprintf.texi: Update.
18047         Reported by Peter Fales <psfales@alcatel-lucent.com>.
18048
18049 2008-02-06  Bruno Haible  <bruno@clisp.org>
18050
18051         Fix bug introduced on 2008-01-26.
18052         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
18053
18054 2008-02-06  Bruno Haible  <bruno@clisp.org>
18055
18056         Fix bug introduced on 2007-06-10.
18057         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
18058         !NEED_PRINTF_FLAG_ZERO.
18059
18060 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
18061
18062         getloadavg: use libperfstat on AIX5
18063         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
18064
18065 2008-02-03  Bruno Haible  <bruno@clisp.org>
18066
18067         * lib/diffseq.h: Add comments about required #includes.
18068         Reported by Michael Biggs <gnulib@doubleplum.net>.
18069
18070 2008-02-01  Bruno Haible  <bruno@clisp.org>
18071
18072         * users.txt: Add gnuit.
18073
18074 2008-01-31  Bruno Haible  <bruno@clisp.org>
18075
18076         * lib/md4.c (set_uint32): Mark as inline.
18077         * lib/md5.c (set_uint32): Likewise.
18078         * lib/sha1.c (set_uint32): Likewise.
18079         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
18080         * m4/md5.m4 (gl_MD5): Likewise.
18081         * m4/sha1.m4 (gl_SHA1): Likewise.
18082
18083 2008-01-31  Jim Meyering  <meyering@redhat.com>
18084
18085         Use "sizeof VAR", rather than a literal "4".
18086         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
18087         * lib/md4.c (md4_read_ctx): Likewise.
18088         * lib/sha1.c (sha1_read_ctx): Likewise.
18089
18090 2008-01-31  Simon Josefsson  <simon@josefsson.org>
18091
18092         * tests/test-sha1.c: New file, based on test-md5.c.
18093
18094         * modules/crypto/sha1-tests: New file.
18095
18096 2008-01-31  Simon Josefsson  <simon@josefsson.org>
18097
18098         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
18099
18100 2008-01-31  Jim Meyering  <meyering@redhat.com>
18101
18102         Prefer "sizeof v" over the equivalent "4".
18103         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
18104         * lib/md5.c (set_uint32): Likewise.
18105         * lib/sha1.c (set_uint32): Likewise.
18106
18107 2008-01-31  Simon Josefsson  <simon@josefsson.org>
18108
18109         * lib/sha1.c (set_uint32): Mark function as static.
18110
18111 2008-01-31  Simon Josefsson  <simon@josefsson.org>
18112
18113         md2: clarify comments to say that alignment is not required.
18114         * lib/md2.h: Remove warning about alignment in comment.
18115         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
18116         never been required.
18117
18118 2008-01-31  Simon Josefsson  <simon@josefsson.org>
18119
18120         md4: adapt alignment constraint fix from sha1.
18121         * lib/md4.c (set_uint32): New function, from sha1.c
18122         (md4_read_ctx): Use it.
18123         (md4_finish_ctx): Doc fix.
18124         * lib/md4.h: Doc fix.
18125
18126 2008-01-31  Simon Josefsson  <simon@josefsson.org>
18127
18128         md5: adapt alignment constraint fix from sha1.
18129         * lib/md5.c (set_uint32): New function, from sha1.c
18130         (md5_read_ctx): Use it.
18131         (md5_finish_ctx): Doc fix.
18132         * lib/md5.h: Doc fix.
18133
18134 2008-01-30  Peter Palfrader  <weasel@debian.org>
18135
18136         sha1: remove the result buffer alignment constraint
18137         * lib/sha1.c (set_uint32): New function.
18138         (sha1_read_ctx): Rewrite to remove the result buffer alignment
18139         constraint.
18140         (sha1_finish_ctx): Remove comment warning about alignment constraint.
18141         * lib/sha1.h: Likewise.
18142
18143 2008-01-30  Andreas Schwab  <schwab@suse.de>
18144             Bruno Haible  <bruno@clisp.org>
18145
18146         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
18147         correct definition of LDBL_MIN_EXP.
18148
18149 2008-01-30  Karl Berry  <karl@gnu.org>
18150
18151         * config/srclist-update: try to preserve x bit on updates.
18152         * config/srclistvars.sh: update for karl.
18153
18154 2008-01-29  Jim Meyering  <meyering@redhat.com>
18155
18156         vasnprintf.c: Avoid warning about unused label
18157         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
18158         "overflow" label definition and associated code with the
18159         same cpp condition that guards the sole use of that label.
18160
18161 2008-01-26  Bruno Haible  <bruno@clisp.org>
18162
18163         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
18164         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
18165         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
18166         * lib/isnanl-nolibm.h (isnanl): Likewise.
18167         Reported by Paul Eggert <eggert@cs.ucla.edu>.
18168
18169 2008-01-26  Bruno Haible  <bruno@clisp.org>
18170
18171         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
18172         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
18173
18174 2008-01-26  Bruno Haible  <bruno@clisp.org>
18175
18176         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
18177         GCC >= 4.0 built-in.
18178         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
18179
18180 2008-01-26  Bruno Haible  <bruno@clisp.org>
18181
18182         Rename isnan, applicable to 'double' only, to isnand.
18183         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
18184         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
18185         (configure.ac): Update.
18186         (Include): Replace "isnan.h" with "isnand.h".
18187         * m4/isnand.m4: Renamed from m4/isnan.m4.
18188         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
18189         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
18190         instead of isnan.c.
18191         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
18192         instead of HAVE_ISNAN_IN_LIBC.
18193         (isnand): Renamed from isnan.
18194         * lib/isnand.c: New file.
18195         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
18196         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
18197         (Makefile.am): Update.
18198         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
18199         Include isnand.h instead of isnan.h.
18200         (main): Test isnand instead of isnan.
18201         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
18202         isnan-nolibm.
18203         * modules/frexp (Depends-on): Likewise.
18204         * modules/frexp-tests (Depends-on): Likewise.
18205         * modules/frexp-nolibm (Depends-on): Likewise.
18206         * modules/frexp-nolibm-tests (Depends-on): Likewise.
18207         * modules/isfinite (Depends-on): Likewise.
18208         * modules/round-tests (Depends-on): Likewise.
18209         * modules/signbit (Depends-on): Likewise.
18210         * modules/signbit-tests (Depends-on): Likewise.
18211         * modules/snprintf-posix (Depends-on): Likewise.
18212         * modules/sprintf-posix (Depends-on): Likewise.
18213         * modules/trunc-tests (Depends-on): Likewise.
18214         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18215         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18216         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18217         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18218         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18219         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18220         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18221         * modules/vasnprintf-posix (Depends-on): Likewise.
18222         * modules/vasprintf-posix (Depends-on): Likewise.
18223         * modules/vfprintf-posix (Depends-on): Likewise.
18224         * modules/vsnprintf-posix (Depends-on): Likewise.
18225         * modules/vsprintf-posix (Depends-on): Likewise.
18226         * lib/frexp.c: Include isnand.h instead of isnan.h.
18227         (ISNAN): Set to isnand instead of isnan.
18228         * lib/isfinite.c: Include isnand.h instead of isnan.h.
18229         (gl_isfinited): Use isnand instead of isnan.
18230         * lib/signbitd.c: Include isnand.h instead of isnan.h.
18231         (gl_signbitd): Use isnand instead of isnan.
18232         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
18233         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
18234         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
18235         (main): Use isnand instead of isnan.
18236         * tests/test-round1.c: Include isnand.h.
18237         (main): Use isnand instead of isnan.
18238         * tests/test-round2.c: Include isnand.h instead of isnan.h.
18239         (ISNAN): Set to isnand instead of isnan.
18240         * tests/test-trunc1.c: Include isnand.h.
18241         (main): Use isnand instead of isnan.
18242         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
18243         (equal): Use isnand instead of isnan.
18244         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
18245         isnand-nolibm.
18246         * NEWS: Mention the change.
18247
18248 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
18249             Bruno Haible  <bruno@clisp.org>
18250
18251         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
18252         the GCC builtins for signbits are present and set
18253         REPLACE_SIGNBIT_USING_GCC if so.
18254         * lib/math.in.h (signbit): Define using GCC builtins if
18255         REPLACE_SIGNBIT_USING_GCC is set.
18256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
18257         REPLACE_SIGNBIT_USING_GCC.
18258         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
18259
18260 2008-01-25  Jim Meyering  <meyering@redhat.com>
18261
18262         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
18263         * lib/poll.c: Include <config.h>, not "config.h".
18264         * tests/test-getaddrinfo.c: Likewise.
18265
18266 2008-01-25  Simon Josefsson  <simon@josefsson.org>
18267
18268         * modules/sockets-tests: New file.
18269
18270 2008-01-24  Simon Josefsson  <simon@josefsson.org>
18271
18272         * modules/sockets: New module, can be used to call WSA_Startup and
18273         WSA_Cleanup when needed.
18274
18275         * lib/sockets.h, lib/sockets.c: New files.
18276
18277         * m4/sockets.m4: New file.
18278
18279         * tests/test-sockets.c: New file.
18280
18281 2008-01-19  Bruno Haible  <bruno@clisp.org>
18282
18283         * doc/posix-headers: Renamed from doc/headers.
18284         * doc/posix-functions: Renamed from doc/functions.
18285         * doc/gnulib.texi: Update.
18286
18287 2008-01-19  Bruno Haible  <bruno@clisp.org>
18288
18289         * doc/glibc-functions/strcasestr.texi: Include contents of
18290         doc/functions/strcasestr.texi, fixing the list of platforms.
18291         * doc/functions/strcasestr.texi: Remove file.
18292
18293 2008-01-19  Bruno Haible  <bruno@clisp.org>
18294
18295         * doc/glibc-functions/memmem.texi: Include contents of
18296         doc/functions/memmem.texi.
18297         * doc/functions/memmem.texi: Remove file.
18298
18299 2008-01-18  Bruno Haible  <bruno@clisp.org>
18300
18301         * doc/glibc-functions/*.texi: New files.
18302         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
18303         to use the new files.
18304
18305 2008-01-17  Bruno Haible  <bruno@clisp.org>
18306
18307         * tests/test-gethostname.c (main): Fix printf statement.
18308
18309 2008-01-17  Simon Josefsson  <simon@josefsson.org>
18310
18311         * modules/gethostname-tests: New file.
18312
18313         * tests/test-gethostname.c: New file.
18314
18315 2008-01-17  Simon Josefsson  <simon@josefsson.org>
18316
18317         * lib/gethostname.c: Include string.h unconditionally, strncpy is
18318         used by the UNAME case.  Reported by Bruno Haible
18319         <bruno@clisp.org>.
18320
18321 2008-01-17  Eric Blake  <ebb9@byu.net>
18322
18323         Convert c-strcasestr to be more efficient.
18324         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
18325         (Depends-on): Add c-strcase, remove malloca, strnlen.
18326         * tests/test-c-strcasestr.c (main): Enhance test.
18327         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
18328
18329 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
18330
18331         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
18332         Use it in creating po/Makevars.
18333
18334 2008-01-15  Simon Josefsson  <simon@josefsson.org>
18335
18336         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
18337         Applications that requires it should initialize libgcrypt
18338         manually.
18339
18340 2008-01-16  Simon Josefsson  <simon@josefsson.org>
18341
18342         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
18343
18344 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
18345
18346         Fix problem with getdate on mingw32 reported by Simon Josefsson
18347         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
18348         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
18349         tzname", when deciding whether to declare tzname.
18350         * lib/strftime.c (tzname): Likewise.
18351
18352 2008-01-15  Bruno Haible  <bruno@clisp.org>
18353
18354         Work around a MacOS X 10.5 bug in frexpl().
18355         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
18356         * doc/functions/frexpl.texi: Document the bug.
18357         Reported by Elias Pipping <pipping@gentoo.org>.
18358
18359 2008-01-14  Eric Blake  <ebb9@byu.net>
18360
18361         Touch up previous patch.
18362         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
18363         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
18364
18365         Convert strcasestr module to use Two-Way algorithm.
18366         * modules/strcasestr-simple: New module, based on the old
18367         strcasestr, but with Two-Way rather than KMP.
18368         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
18369         * lib/string.in.h (rpl_strcasestr): Declare.
18370         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
18371         performance.
18372         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
18373         * modules/string (Makefile.am): Support strcasestr.
18374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
18375         * modules/strcasestr-tests (Depends-on): Check for alarm.
18376         * tests/test-strcasestr.c: Augment test.
18377         * lib/str-two-way.h: Clean up stray macro.
18378         * NEWS: Document new module.
18379         * MODULES.html.sh (string handling): Likewise.
18380         * doc/functions/strcasestr.texi: New file.
18381         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
18382         here, since it is not a POSIX function.
18383
18384 2008-01-14  Colin Watson  <cjwatson@debian.org>
18385             Bruno Haible  <bruno@clisp.org>
18386
18387         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
18388         works fine; if not, set REPLACE_STRSIGNAL.
18389         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
18390         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18391         REPLACE_STRSIGNAL.
18392         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
18393         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
18394         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
18395
18396 2008-01-14  Bruno Haible  <bruno@clisp.org>
18397
18398         * modules/strsignal (Include): Change to <string.h>.
18399
18400 2008-01-14  Colin Watson  <cjwatson@debian.org>
18401
18402         * modules/argp (Notice): Add a notice recommending to change
18403         XGETTEXT_OPTIONS.
18404         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
18405
18406 2008-01-13  Colin Watson  <cjwatson@debian.org>
18407
18408         * modules/strsignal-tests: New file.
18409         * tests/test-strsignal.c: New file.
18410
18411         * lib/strsignal.c: New file, from glibc with modifications.
18412         * lib/siglist.h: New file, from glibc with modifications.
18413         * lib/string.in.h (strsignal): New declaration.
18414         * m4/strsignal.m4: New file.
18415         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18416         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
18417         * modules/strsignal: New file.
18418         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
18419         HAVE_DECL_STRSIGNAL.
18420
18421 2008-01-13  Bruno Haible  <bruno@clisp.org>
18422
18423         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
18424         locale encoding is not ASCII. Needed for OpenBSD 4.0.
18425         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
18426         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18427
18428 2008-01-13  Bruno Haible  <bruno@clisp.org>
18429
18430         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
18431         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
18432         * lib/argp.h (__attribute__): Likewise.
18433         * lib/c-stack.c (__attribute__): Likewise.
18434         * lib/error.h (__attribute__): Likewise.
18435         * lib/fts.c (__attribute__): Likewise.
18436         * lib/openat.h (__attribute__): Likewise.
18437         * lib/stdio.in.h (__attribute__): Likewise.
18438         * lib/string.in.h (__attribute__): Likewise.
18439         * lib/utimens.c (__attribute__): Likewise.
18440         * lib/vasnprintf.h (__attribute__): Likewise.
18441         * lib/xalloc.h (__attribute__): Likewise.
18442         * lib/xprintf.h (__attribute__): Likewise.
18443         * lib/xstrtol.h (__attribute__): Likewise.
18444         * lib/xvasprintf.h (__attribute__): Likewise.
18445
18446 2008-01-12  Bruno Haible  <bruno@clisp.org>
18447
18448         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
18449         * doc/glibc-headers/a.out.texi: New file.
18450         * doc/glibc-headers/aliases.texi: New file.
18451         * doc/glibc-headers/alloca.texi: New file.
18452         * doc/glibc-headers/ar.texi: New file.
18453         * doc/glibc-headers/argp.texi: New file.
18454         * doc/glibc-headers/argz.texi: New file.
18455         * doc/glibc-headers/byteswap.texi: New file.
18456         * doc/glibc-headers/crypt.texi: New file.
18457         * doc/glibc-headers/endian.texi: New file.
18458         * doc/glibc-headers/envz.texi: New file.
18459         * doc/glibc-headers/err.texi: New file.
18460         * doc/glibc-headers/error.texi: New file.
18461         * doc/glibc-headers/execinfo.texi: New file.
18462         * doc/glibc-headers/fpu_control.texi: New file.
18463         * doc/glibc-headers/fstab.texi: New file.
18464         * doc/glibc-headers/fts.texi: New file.
18465         * doc/glibc-headers/getopt.texi: New file.
18466         * doc/glibc-headers/ieee754.texi: New file.
18467         * doc/glibc-headers/ifaddrs.texi: New file.
18468         * doc/glibc-headers/libintl.texi: New file.
18469         * doc/glibc-headers/mcheck.texi: New file.
18470         * doc/glibc-headers/mntent.texi: New file.
18471         * doc/glibc-headers/obstack.texi: New file.
18472         * doc/glibc-headers/paths.texi: New file.
18473         * doc/glibc-headers/printf.texi: New file.
18474         * doc/glibc-headers/pty.texi: New file.
18475         * doc/glibc-headers/resolv.texi: New file.
18476         * doc/glibc-headers/shadow.texi: New file.
18477         * doc/glibc-headers/sysexits.texi: New file.
18478         * doc/glibc-headers/ttyent.texi: New file.
18479
18480 2008-01-12  Jim Meyering  <meyering@redhat.com>
18481
18482         announce-gen: emit Gnulib's git-based version string.
18483         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
18484         New option --gnulib-version=V, where V is expected to be
18485         the output of running git describe in the gnulib directory.
18486         (get_tool_versions): Request feedback on xdelta.  I suspect it's
18487         not useful, and plan to stop publishing an xdelta file with each
18488         coreutils release.
18489
18490         * build-aux/announce-gen: Also check for lzma-compressed files.
18491
18492 2008-01-11  Bruno Haible  <bruno@clisp.org>
18493
18494         * tests/test-memmem.c (main): Increase maximum allowed time.
18495         * tests/test-strstr.c (main): Likewise.
18496
18497 2008-01-11  Bruno Haible  <bruno@clisp.org>
18498
18499         * doc/functions/memmem.texi: Add more precisions about platforms.
18500         * doc/functions/strstr.texi: Likewise.
18501
18502 2008-01-10  Eric Blake  <ebb9@byu.net>
18503
18504         * m4/strstr.m4: Delete cruft from copy-n-paste.
18505         Reported by Bruno Haible.
18506
18507 2008-01-10  Bruno Haible  <bruno@clisp.org>
18508
18509         Make c-strstr rely on strstr.
18510         * lib/c-strstr.c: Don't include str-kmp.h.
18511         (c_strstr): Define in terms of strstr.
18512         * modules/c-strstr (Files): Remove lib/str-kmp.h.
18513         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
18514
18515 2008-01-10  Bruno Haible  <bruno@clisp.org>
18516
18517         * doc/gnulib.texi (String Functions in C Locale): New section.
18518         * doc/c-ctype.texi: New file.
18519         * doc/c-strcase.texi: New file.
18520         * doc/c-strcaseeq.texi: New file.
18521         * doc/c-strcasestr.texi: New file.
18522         * doc/c-strstr.texi: New file.
18523         * doc/c-strtod.texi: New file.
18524         * doc/c-strtold.texi: New file.
18525
18526 2008-01-10  Eric Blake  <ebb9@byu.net>
18527
18528         * lib/relocatable.h: Fix a comment.
18529
18530 2008-01-10  Eric Blake  <ebb9@byu.net>
18531
18532         Share two-way algorithm.
18533         * lib/str-two-way.h: New file, merged from...
18534         * lib/memmem.c: ...here...
18535         * lib/strstr.c: ...and here.
18536         * modules/memmem (Files): Use it.
18537         * modules/strstr (Files): Likewise.
18538
18539         Avoid quadratic strstr implementations.
18540         * lib/strstr.c: New file.
18541         * m4/strstr.m4: Likewise.
18542         * modules/strstr: Likewise.
18543         * modules/strstr-tests: Likewise.
18544         * tests/test-strstr.c: Likewise.
18545         * lib/string.in.h (rpl_strstr): Declare.
18546         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
18547         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
18548         * modules/string (Makefile.am): Likewise.
18549         * MODULES.html.sh (string handling): Mention new module.
18550         * doc/functions/strstr.texi (strstr): Document the bug.
18551
18552 2008-01-10  Bruno Haible  <bruno@clisp.org>
18553
18554         * lib/relocatable.h (relocate): State whether result is freshly
18555         allocated or not.
18556         * lib/relocatable.c (relocate): Return a freshly allocated string
18557         instead of a pointer to a privately held string.
18558         Reported by Sylvain Beucler <beuc@gnu.org>.
18559
18560 2008-01-10  Colin Watson  <cjwatson@debian.org>
18561
18562         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
18563         s/S_ISNLK/S_ISLNK/.
18564
18565 2008-01-09  Bruno Haible  <bruno@clisp.org>
18566
18567         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
18568         and other files.
18569         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
18570         if it's only a guess.
18571         * modules/memmem: Simplify by depending on memmem-simple.
18572
18573 2008-01-09  Bruno Haible  <bruno@clisp.org>
18574
18575         Work around OpenBSD 4.0 tdelete() bug.
18576         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
18577         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
18578         macros and don't redefine the enum values.
18579         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
18580         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
18581         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
18582
18583 2008-01-09  Bruno Haible  <bruno@clisp.org>
18584
18585         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
18586         (main): Don't perform the tests if setlocale did not install a UTF-8
18587         locale. Needed on OpenBSD 4.0.
18588         * modules/wcwidth-tests (Depends-on): Add localcharset.
18589
18590 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
18591
18592         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
18593         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
18594         * NEWS: announce this.
18595         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
18596
18597 2008-01-09  Simon Josefsson  <simon@josefsson.org>
18598         and Eric Blake  <ebb9@byu.net>
18599
18600         Add memmem-simple module.
18601         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
18602         (gl_FUNC_MEMMEM): Separate performance from presence checks.
18603         * modules/memmem-simple: New file.
18604         * modules/memmem (Description): Tweak.
18605         * MODULES.html.sh (string handling): Mention new module.
18606         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
18607         addressed by memmem-simple.
18608         * NEWS: Document the difference.
18609
18610 2008-01-09  Eric Blake  <ebb9@byu.net>
18611
18612         Give gcc some memmem optimization hints.
18613         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
18614         (strcasestr): Declare as pure.
18615         * modules/memmem (Maintainer): Claim my implementation.
18616
18617 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18618
18619         Support AIX 6.1 and higher.
18620         * build-aux/config.libpath: Likewise.
18621         * build-aux/config.rpath: Likewise.
18622
18623 2008-01-08  Jim Meyering  <meyering@redhat.com>
18624             Bruno Haible  <bruno@clisp.org>
18625
18626         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
18627         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
18628         Reported by Peter Fales in
18629         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
18630
18631 2008-01-08  Bruno Haible  <bruno@clisp.org>
18632
18633         * modules/unictype/category-of (Depends-on): Add
18634         unictype/category-none.
18635         * modules/unictype/category-and-tests (Depends-on): Add
18636         unictype/category-{L,N,Lu,Nd}.
18637         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
18638         * modules/unictype/category-or-tests (Depends-on): Add
18639         unictype/category-{L,N}.
18640         * modules/unictype/category-name-tests (Depends-on): Add
18641         unictype/category-{Z,Nl}.
18642         Reported by Simon Josefsson.
18643
18644 2008-01-08  Bruno Haible  <bruno@clisp.org>
18645
18646         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
18647         convention better.
18648         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
18649         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
18650         Reported by Peter Miller <millerp@canb.auug.org.au>.
18651
18652 2008-01-08  Eric Blake  <ebb9@byu.net>
18653
18654         Rewrite memmem to guarantee linear complexity without malloc.
18655         * lib/memmem.c (memmem): Use Two-Way rather than
18656         Knuth-Morris-Pratt, to allow O(1) space usage.
18657         (critical_factorization, two_way_short_needle)
18658         (two_way_long_needle): New functions.
18659         (knuth_morris_pratt): Delete.
18660         * modules/memmem (Depends-on): No longer need malloca or stdbool.
18661         Add stdint.
18662         * tests/test-memmem.c (main): Add tests for periodic needle and
18663         sublinear performance.
18664         * doc/functions/memmem.texi (memmem): Document other deficiencies
18665         in cygwin and older glibc.
18666
18667 2008-01-08  Bruno Haible  <bruno@clisp.org>
18668
18669         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
18670         augmentation.
18671
18672 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
18673
18674         Add a configure time option: --disable-acl.
18675         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
18676         AC_ARG_ENABLE(acl).
18677
18678 2008-01-06  Simon Josefsson  <simon@josefsson.org>
18679
18680         * tests/test-localename.c: Don't include obsolete "setenv.h".
18681
18682         * modules/localename-tests (Depends-on): Need unsetenv.
18683
18684 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18685
18686         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
18687
18688 2008-01-06  Colin Watson  <cjwatson@debian.org>
18689
18690         * users.txt: Add man-db.
18691
18692 2008-01-07  Bruno Haible  <bruno@clisp.org>
18693
18694         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
18695         previous section name.
18696
18697 2008-01-07  Bruno Haible  <bruno@clisp.org>
18698
18699         * lib/progname.c (set_program_name): Don't strip off a leading
18700         "lt-" prefix outside a .libs directory.
18701         Suggested by Paul Eggert.
18702
18703 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
18704             Bruno Haible  <bruno@clisp.org>
18705
18706         Improve memory cleanup in 'relocatable' module.
18707         * lib/relocatable.h (compute_curr_prefix): Change return type to
18708         'char *'.
18709         * lib/relocatable.c (compute_curr_prefix): Change return type to
18710         'char *'. Free curr_installdir after use.
18711         (relocate): Free curr_prefix_better after use.
18712         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
18713
18714 2008-01-01  Bruno Haible  <bruno@clisp.org>
18715
18716         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
18717         failure on older glibc systems.
18718         Reported by Peter Fales <psfales@alcatel-lucent.com>.
18719
18720 2008-01-05  Eric Blake  <ebb9@byu.net>
18721
18722         Avoid quadratic system memmem.
18723         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
18724         Reported by Ralf Wildenhues.
18725
18726         Fix memmem test for mingw.
18727         * modules/memmem-tests (configure.ac): Check for alarm.
18728         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
18729         it.
18730         * doc/functions/memmem.texi: New file.
18731         * doc/gnulib.texi (Function Substitutes): Add memmem.
18732         Reported by Bruno Haible.
18733
18734 2008-01-04  Bruno Haible  <bruno@clisp.org>
18735
18736         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
18737         Require gl_HEADER_STRINGS_H_DEFAULTS, not
18738         gl_HEADER_STRING_H_DEFAULTS.
18739
18740 2008-01-04  Eric Blake  <ebb9@byu.net>
18741
18742         Shorten duration of memmem test.
18743         * tests/test-memmem.c (main): Use alarm to declare failure if test
18744         is taking too long.
18745         Reported by Ralf Wildenhues.
18746
18747 2007-12-21  Simon Josefsson  <simon@josefsson.org>
18748
18749         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
18750         string, needed by strerror.
18751
18752 2008-01-03  Colin Watson  <cjwatson@debian.org>
18753             Bruno Haible  <bruno@clisp.org>
18754
18755         * doc/gnulib-tool.texi (Localization): New section.
18756
18757 2008-01-02  Bruno Haible  <bruno@clisp.org>
18758
18759         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
18760         variables to 'unsigned char *' type.
18761         Reported by Paul Eggert.
18762
18763 2008-01-02  Jim Meyering  <jim@meyering.net>
18764
18765         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
18766
18767 2007-12-31  Jim Meyering  <jim@meyering.net>
18768
18769         Avoid use of private FTS type name.
18770         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
18771
18772 2007-12-30  Karl Berry  <karl@gnu.org>
18773
18774         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
18775         work around defect in Texinfo and/or the standalone Info browser.
18776
18777 2007-12-30  Bruno Haible  <bruno@clisp.org>
18778
18779         Unify 5 copies of the KMP code.
18780         * lib/str-kmp.h: New file.
18781         * lib/c-strcasestr.c: Include str-kmp.h.
18782         (knuth_morris_pratt): Remove function.
18783         (c_strcasestr): Update.
18784         * lib/c-strstr.c: Include str-kmp.h.
18785         (knuth_morris_pratt): Remove function.
18786         (c_strcasestr): Update.
18787         * lib/mbscasestr.c: Include str-kmp.h.
18788         (knuth_morris_pratt_unibyte): Remove function.
18789         * lib/mbsstr.c: Include str-kmp.h.
18790         (knuth_morris_pratt_unibyte): Remove function.
18791         * lib/strcasestr.c: Include str-kmp.h.
18792         (knuth_morris_pratt): Remove function.
18793         (strcasestr): Update.
18794         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
18795         * modules/c-strstr (Files): Likewise.
18796         * modules/mbscasestr (Files): Likewise.
18797         * modules/mbsstr (Files): Likewise.
18798         * modules/strcasestr (Files): Likewise.
18799         Suggested by Paul Eggert.
18800
18801 2007-12-30  Bruno Haible  <bruno@clisp.org>
18802
18803         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
18804         defined.
18805
18806 2007-12-30  Bruno Haible  <bruno@clisp.org>
18807
18808         * lib/xmalloca.h: Include xalloc.h.
18809         (xnmalloca): New macro.
18810
18811 2007-12-30  Bruno Haible  <bruno@clisp.org>
18812
18813         * lib/malloca.h (nmalloca): New macro.
18814         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
18815         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
18816         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
18817         knuth_morris_pratt_multibyte): Likewise.
18818         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
18819         knuth_morris_pratt_multibyte): Likewise.
18820         * lib/memmem.c (knuth_morris_pratt): Likewise.
18821         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
18822
18823 2007-12-25  Bruno Haible  <bruno@clisp.org>
18824
18825         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
18826         * lib/glob.c: Don't include openat.h.
18827         (link_exists2_p): Add back the code that deals with the
18828         !GLOB_ALTDIRFUNC case.
18829         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
18830         let it do the filename concatenation.
18831         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
18832         * modules/glob (Depends-on): Remove openat.
18833
18834 2007-12-31  Bruno Haible  <bruno@clisp.org>
18835
18836         * modules/dirfd (License): Change to LGPLv2+.
18837         Approved by Jim Meyering.
18838
18839 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18840
18841         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
18842         when multiplying M by sizeof (size_t).
18843
18844 2007-12-10  Martin Lambers  <marlam@marlam.de>
18845
18846         Override getpagesize on mingw.
18847         * lib/getpagesize.c: New file.
18848         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
18849         * modules/getpagesize (Files): Add lib/getpagesize.c.
18850         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
18851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18852         REPLACE_GETPAGESIZE.
18853         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
18854
18855 2007-12-25  Bruno Haible  <bruno@clisp.org>
18856
18857         * modules/localcharset (Notice): New field.
18858         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
18859         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18860
18861 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18862             Bruno Haible  <bruno@clisp.org>
18863
18864         Avoid using the syntax symbol() in formatted documentation.
18865         * MODULES.html.sh (func_module): When replacing symbol() with a
18866         hyperlink, remove the parentheses. Show an error if some remain.
18867         Recognize and render the '...' syntax.
18868         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
18869         Rework. Add paragraph about GCC's inlining.
18870         * doc/alloca.texi: Likewise.
18871         * doc/error.texi: Remove parentheses from symbol reference.
18872         * doc/gnulib-intro.texi: Likewise.
18873         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
18874         * modules/fnmatch (Description): Reword to say "the ... function".
18875         * modules/full-read (Description): Likewise.
18876         * modules/full-write (Description): Likewise.
18877         * modules/safe-read (Description): Likewise.
18878         * modules/safe-write (Description): Likewise.
18879         * modules/strchrnul (Description): Likewise.
18880         * modules/trim (Description): Likewise.
18881         * modules/error (Description): Remove parentheses from symbol
18882         references.
18883         * modules/verror (Description): Likewise.
18884         Reported by Karl Berry.
18885
18886 2007-12-25  Bruno Haible  <bruno@clisp.org>
18887
18888         Fixup after 2007-10-16 commit.
18889         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
18890
18891 2007-12-24  Bruno Haible  <bruno@clisp.org>
18892
18893         Make --enable-relocatable work with DESTDIR.
18894         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
18895         to compute installdir from destprog.
18896         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
18897         also set the RELOC_DESTDIR variable.
18898         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
18899
18900 2007-12-24  Bruno Haible  <bruno@clisp.org>
18901
18902         Fix link error due to xalloc_die().
18903         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
18904         of xreadlink.
18905         * lib/relocwrapper.c: Update comments.
18906         * build-aux/install-reloc: Remove xreadlink.c from file list.
18907         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
18908         xreadlink.c.
18909         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
18910
18911 2007-12-24  Bruno Haible  <bruno@clisp.org>
18912
18913         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
18914         * lib/setenv.h: Remove file.
18915         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
18916         lib/setenv.h.
18917         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
18918         (Depends-on): Add stdlib.
18919         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
18920         gl_FUNC_UNSETENV.
18921         (Include): Replace setenv.h with <stdlib.h>.
18922         * modules/unsetenv: New file.
18923         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
18924         * lib/unsetenv.c: Include <stdlib.h> first.
18925         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
18926         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
18927         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
18928         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
18929         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
18930         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
18931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
18932         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
18933         * doc/functions/unsetenv.texi: Update.
18934         * modules/xsetenv (Depends-on): Add unsetenv.
18935         * modules/getdate (Depends-on): Likewise.
18936         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
18937         * lib/xsetenv.c: Don't include setenv.h.
18938         * lib/getdate.y: Likewise.
18939         * lib/relocwrapper.c: Likewise.
18940         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
18941         (Depends-on): Add stdlib.
18942         * NEWS: Mention the changes.
18943         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
18944
18945 2007-12-23  Bruno Haible  <bruno@clisp.org>
18946
18947         * lib/memmem.c (memmem): Use lowercase variable names. Tab
18948         indentation.
18949
18950 2007-12-23  Bruno Haible  <bruno@clisp.org>
18951
18952         * lib/c-strcasestr.c: Add more comments.
18953         * lib/c-strstr.c: Likewise.
18954         * lib/mbscasestr.c: Likewise.
18955         * lib/mbsstr.c: Likewise.
18956         * lib/strcasestr.c: Likewise.
18957         * lib/memmem.c: Likewise.
18958
18959 2007-12-23  Bruno Haible  <bruno@clisp.org>
18960
18961         * tests/test-memmem.c: Include <string.h> first.
18962
18963 2007-12-22  Bruno Haible  <bruno@clisp.org>
18964
18965         * gnulib-tool (func_create_testdir): Change $auxdir while generating
18966         the contents of $testsbase.
18967         Reported by Ralf Wildenhues.
18968
18969 2007-12-22  Bruno Haible  <bruno@clisp.org>
18970
18971         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
18972         two variables local_ldadd_before, local_ldadd_last.
18973
18974 2007-12-20  Eric Blake  <ebb9@byu.net>
18975
18976         Work around circular library issue when cross-compiling.
18977         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
18978         that progname.o does not need to pull in rpl_memcmp.
18979
18980 2007-12-19  Eric Blake  <ebb9@byu.net>
18981
18982         Fix memmem to avoid O(n^2) worst-case complexity.
18983         * lib/memmem.c (knuth_morris_pratt): New function.
18984         (memmem): Use it if first few naive iterations fail.
18985         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
18986         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
18987         * modules/memchr (License): Likewise.
18988         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
18989         malloca.
18990         * tests/test-memmem.c: Rewrite, borrowing ideas from
18991         test-mbsstr1.c; the old version wouldn't even compile!
18992         * modules/memmem-tests: New file.
18993         * lib/string.in.h (rpl_memmem): Add declaration.
18994         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
18995         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
18996         REPLACE_MEMMEM.
18997
18998 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18999
19000         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
19001         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
19002         before any system include files, and undef after them all.  This
19003         should fix a problem on VMS reported by John E. Malmberg in
19004         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
19005
19006 2007-12-17  Eric Blake  <ebb9@byu.net>
19007
19008         Revert addition of verify, for BSD/OS.
19009         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
19010         can't handle large files, for the sake of obsolete platforms.
19011         * modules/fseeko (Depends-on): Remove verify.
19012         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
19013         * doc/functions/ftello.texi (ftello): Likewise.
19014         * doc/functions/fgetpos.texi (fgetpos): Likewise.
19015         Reported by Larry Jones.
19016
19017 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
19018
19019         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
19020         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
19021
19022 2007-12-17  Jim Meyering  <meyering@redhat.com>
19023
19024         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
19025         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
19026         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
19027         * modules/getcwd (Depends-on): Add openat.
19028         Reported by Petr Salinger.
19029
19030 2007-12-17  Bruno Haible  <bruno@clisp.org>
19031
19032         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
19033         avoid a segmentation fault of the configure test on x86_64 systems.
19034
19035 2007-12-15  Jim Meyering  <meyering@redhat.com>
19036
19037         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
19038
19039 2007-12-13  Eric Blake  <ebb9@byu.net>
19040
19041         Another fseek test.
19042         * tests/test-fseek.c (main): Also test ungetc handling.
19043         * tests/test-fseeko.c (main): Likewise.
19044         * modules/fseeko (Depends-on): Add verify.
19045         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
19046         large.
19047         Reported by Larry Jones.
19048
19049         Fix fseeko on mingw.
19050         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
19051         seek.
19052
19053         Beef up fseek tests.
19054         * tests/test-fseek.c (main): Also test eof handling.
19055         * tests/test-fseeko.c (main): Likewise.
19056         Reported by Larry Jones.
19057
19058 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
19059
19060         Fix fseeko on BSD-based platforms.
19061         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
19062         successful seek.
19063
19064 2007-12-12  Eric Blake  <ebb9@byu.net>
19065
19066         Allow circular dependency of separate libtests.a
19067         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
19068         when use_libtests.
19069
19070 2007-12-11  Eric Blake  <ebb9@byu.net>
19071
19072         Fix bug with -0.0L in previous patch.
19073         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
19074         * tests/test-isnan.c (main): Also test on zeroes.
19075         * tests/test-isnanf.c (main): Likewise.
19076         * tests/test-isnanl.h (main): Likewise.
19077
19078         Detect pseudo-denormals on x86 even when cross-compiling.
19079         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
19080         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
19081         invalid bit patterns that happen to satisfy ==.
19082
19083         Avoid link failures with separate libtests.a.
19084         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
19085         last, to satisfy circular dependencies.
19086
19087 2007-12-11  Eric Blake  <ebb9@byu.net>
19088         and Bruno Haible  <bruno@clisp.org>
19089
19090         Fix OpenBSD 4.0 <float.h> handling of long double.
19091         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
19092         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
19093         * doc/headers/float.texi (float.h): Document OpenBSD bug.
19094
19095 2007-12-11  Jim Meyering  <meyering@redhat.com>
19096
19097         * users.txt: Add libvirt.
19098
19099         Support versions of autoconf prior to 2.59c.
19100         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
19101         if it is not already defined.
19102
19103 2007-12-09  Bruno Haible  <bruno@clisp.org>
19104
19105         Let 'gnulib-tool --import' collect sources needed for the tests in
19106         tests/ rather than in lib/.
19107         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
19108         argument. If true, add rules to generate libtests.a, and put libtests.a
19109         into $(LDADD). Consider source files in subdirectories and set
19110         uses_subdirs.
19111         (func_emit_initmacro_start, func_emit_initmacro_end,
19112         func_emit_initmacro_done): Pass all arguments explicitly.
19113         (func_import): Determine two module lists main_modules,
19114         testsrelated_modules. Determine use_libtests. Determine two variables
19115         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
19116         instead of just sed_transform_lib_file. Determine two variables
19117         main_files and testsrelated_files. Compute 'files' as the union of
19118         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
19119         func_add_or_update. In the generated gnulib-comp.m4, collect the
19120         object files for tests/ in different variables than those for lib/.
19121         Substitute LIBTESTS_LIBDEPS.
19122         (func_create_testdir): Combine the uses_subdirs results from
19123         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
19124
19125 2007-12-09  Bruno Haible  <bruno@clisp.org>
19126
19127         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
19128         the build-aux directory.
19129
19130 2007-12-09  Bruno Haible  <bruno@clisp.org>
19131
19132         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
19133         introduced on 2006-09-09.
19134
19135 2007-12-07  Jim Meyering  <meyering@redhat.com>
19136
19137         Let these macros work also with autoconf-2.59.
19138         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
19139         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
19140         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19141
19142 2007-12-06  Jim Meyering  <meyering@redhat.com>
19143
19144         Avoid a configure-time syntax error in gl_FUNC_ACL.
19145         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
19146         function in each branch, before testing the cache variable.
19147
19148 2007-12-04  Eric Blake  <ebb9@byu.net>
19149
19150         Make scripts executable.
19151         * build-aux/config.guess: Add execute permissions.
19152         * build-aux/config.sub: Likewise.
19153         * build-aux/gendocs.sh: Likewise.
19154
19155         Fix frexp on mingw.
19156         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
19157         cross-compiling.
19158         * doc/functions/frexp.texi (frexp): Document the bug.
19159
19160         Make cygwin fseeko check more reliable.
19161         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
19162         version numbers, rather than unrelated feature check.
19163         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
19164         * doc/functions/ftello.texi (ftello): Likewise.
19165         Reported by Bruno Haible.
19166
19167         * m4/strerror.m4: Bump version number.
19168
19169 2007-12-03  Bruno Haible  <bruno@clisp.org>
19170
19171         * doc/functions/mprotect.texi: Mention the mingw problem.
19172
19173 2007-12-03  Eric Blake  <ebb9@byu.net>
19174
19175         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
19176         REPLACE_STRERROR is initialized before this macro.
19177
19178 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
19179
19180         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
19181         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
19182         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
19183         put -lsec in even for programs other than 'ls'.  This fixes a problem
19184         for gettext reported by Bruno Haible in
19185         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
19186         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
19187         Add support for Solaris 10.  This isn't efficient, but should get the
19188         job done for now.
19189
19190 2007-12-03  James Youngman  <jay@gnu.org>
19191
19192         * doc/regexprops-generic.texi: change "an close-group" to "a
19193         close-group" and "illegal" to "not allowed".
19194
19195 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19196
19197         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
19198         pr_byname.h. Needed for the rare case when the maintainer has done
19199         "make maintainer-clean" in the source directory and then attempts a
19200         build outside the source directory.
19201         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
19202         scripts_byname.h.
19203
19204 2007-12-02  Martin Lambers <marlam@marlam.de>
19205             Bruno Haible  <bruno@clisp.org>
19206
19207         * lib/getpagesize.h: Remove file.
19208         * lib/unistd.in.h: Include declaration of getpagesize here.
19209         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
19210         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
19211         HAVE_SYS_PARAM_H.
19212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
19213         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
19214         * modules/getpagesize (Files): Remove lib/getpagesize.h.
19215         (Depends-on): Add unistd.
19216         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19217         (Include): Use <unistd.h> instead of getpagesize.h.
19218         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
19219         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
19220         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
19221         gl_GETPAGESIZE invocation, already handled by module dependency.
19222         * lib/pagealign_alloc.c: Don't include getpagesize.h.
19223
19224 2007-12-02  Bruno Haible  <bruno@clisp.org>
19225
19226         * modules/strings-tests: New file.
19227         * tests/test-strings.c: New file.
19228
19229         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
19230         * lib/strings.in.h: New file.
19231         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
19232         * m4/strings_h.m4: New file.
19233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
19234         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
19235         * modules/strings: New file.
19236         * modules/string (Makefile.am): Update.
19237         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
19238         Reported by Karl Berry.
19239
19240 2007-12-01  Eric Blake  <ebb9@byu.net>
19241
19242         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
19243         accomodate fix in cygwin 1.5.25.
19244
19245 2007-12-01  Jim Meyering  <meyering@redhat.com>
19246
19247         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
19248         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
19249         that would inhibit utf8-optimization of a regexp containing line-
19250         or buffer-anchors, e.g., `^', `$'.
19251
19252 2007-11-30  Bruno Haible  <bruno@clisp.org>
19253
19254         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
19255         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
19256         glthread_recursive_lock_init.
19257         * lib/lock.c (glthread_recursive_lock_init)
19258         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
19259         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19260
19261 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
19262
19263         New function qset_acl, like set_acl but with syscall semantics.
19264         * lib/acl.h (qset_acl): New decl.
19265         * lib/acl.c (qset_acl): New function.
19266         (set_acl): Use new function.  Use more-consistent diagnostics.
19267
19268 2007-11-28  Jim Meyering  <meyering@redhat.com>
19269
19270         * modules/physmem (License): Change from GPL to LGPLv2+.
19271
19272 2007-11-26  Bruno Haible  <bruno@clisp.org>
19273
19274         * lib/vasnprintf.c (decode_long_double): Don't abort if the
19275         'long double' type has excess precision.
19276         Reported by Jim Meyering in
19277         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
19278
19279 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19280
19281         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
19282         Sync from <http://gnu.org/licenses>.
19283         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
19284         with license text from same location.
19285         * doc/maintain.texi, doc/standards.texi:  Sync from
19286         <http://savannah.gnu.org/projects/gnustandards>.
19287
19288 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
19289         and Jim Meyering  <meyering@redhat.com>
19290
19291         Adjust getdate' grammar to accept a slightly more regular language.
19292         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
19293         Before, the former was rejected.
19294         * lib/getdate.y (digits_to_date_time): New function, factored
19295         out of ...
19296         (number): ...here.  Just call digits_to_date_time.
19297         (hybrid): New non-terminal to handle an <unsigned number,
19298         signed relative offset> sequence consistently.
19299
19300 2007-11-18  Jim Meyering  <meyering@redhat.com>
19301
19302         Pull my changes from coreutils:
19303         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
19304         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
19305         use of $gnulib_tool_option_extras, so that it's separated from the
19306         preceding argument.
19307
19308         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
19309         * build-aux/bootstrap (cp_mark_as_generated): Create any required
19310         parent destination directories before copying a file into place.
19311
19312 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
19313
19314         bootstrap: work also with 4-argument variant of AC_INIT
19315         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
19316
19317 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
19318
19319         Port test-getaddrinfo to Solaris.
19320         Problem reported by Bruno Haible in
19321         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
19322         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
19323         explanation of setting 'hints'.
19324         Don't reject an implementation merely because it returns EAI_SERVICE.
19325         (EAI_SERVICE): Define to 0 if not defined.
19326
19327 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19328
19329         The license of gnu-make and posix-shell is now "GPLed build tool".
19330         * modules/gnu-make (License): Likewise.
19331         * modules/posix-shell (License): Likewise.
19332
19333         New module posix-shell, for determining a POSIX shell
19334         or perhaps something that is close enough to a POSIX shell.
19335         * m4/posix-shell.m4: New file.
19336         * modules/posix-shell: New file.
19337
19338         * MODULES.html.sh: Mention new module.
19339
19340         New module gnu-make, for determining whether we're using GNU Make.
19341         * m4/gnu-make.m4: New file.
19342         * modules/gnu-make: New file.
19343         * MODULES.html.sh: Mention new module.
19344
19345 2007-11-14  Jim Meyering  <meyering@redhat.com>
19346
19347         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
19348         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
19349         use this macro to create a function _definition_.
19350         Remove useless "#undef ARGMATCH_DIE".
19351
19352 2007-11-14  Bruno Haible  <bruno@clisp.org>
19353
19354         * lib/config.charset: Update for OpenBSD 4.1.
19355         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
19356
19357 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
19358
19359         Document 64-bit #if problems in stdint.texi.
19360         * doc/headers/stdint.texi (stdint.h): Mention problems with
19361         64-bit-#if, and how to work around them.
19362
19363         Don't insist on 'long long int' support in the preprocessor.  It
19364         breaks too many things.  For example, PRIdMAX still uses a 'long
19365         long int' format with the latest Sun compiler, even though
19366         HAVE_LONG_LONG_INT isn't defined due to that compiler's
19367         preprocessor problem.  This causes the latest coreutils to dump
19368         core on Solaris 10 sparc with the Sun C compiler.
19369         Instead, fix the 2007-10-16 problem in a different way, by evaluating
19370         the troublesome expressions at configure-time, not at #if-time.
19371         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
19372         preprocessor.
19373         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
19374         compile-time C checks, done at 'configure'-time.
19375         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
19376         * modules/inttypes (Makefile): Substitute the new symbols that
19377         gl_INTTYPES_H now generates.
19378         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
19379
19380 2007-11-12  Bruno Haible  <bruno@clisp.org>
19381
19382         Tests for Unicode character classification functions.
19383
19384         * modules/unictype/bidicategory-byname-tests: New file.
19385         * modules/unictype/bidicategory-name-tests: New file.
19386         * modules/unictype/bidicategory-of-tests: New file.
19387         * modules/unictype/bidicategory-test-tests: New file.
19388         * modules/unictype/block-list-tests: New file.
19389         * modules/unictype/block-of-tests: New file.
19390         * modules/unictype/block-test-tests: New file.
19391         * modules/unictype/category-C-tests: New file.
19392         * modules/unictype/category-Cc-tests: New file.
19393         * modules/unictype/category-Cf-tests: New file.
19394         * modules/unictype/category-Cn-tests: New file.
19395         * modules/unictype/category-Co-tests: New file.
19396         * modules/unictype/category-Cs-tests: New file.
19397         * modules/unictype/category-L-tests: New file.
19398         * modules/unictype/category-Ll-tests: New file.
19399         * modules/unictype/category-Lm-tests: New file.
19400         * modules/unictype/category-Lo-tests: New file.
19401         * modules/unictype/category-Lt-tests: New file.
19402         * modules/unictype/category-Lu-tests: New file.
19403         * modules/unictype/category-M-tests: New file.
19404         * modules/unictype/category-Mc-tests: New file.
19405         * modules/unictype/category-Me-tests: New file.
19406         * modules/unictype/category-Mn-tests: New file.
19407         * modules/unictype/category-N-tests: New file.
19408         * modules/unictype/category-Nd-tests: New file.
19409         * modules/unictype/category-Nl-tests: New file.
19410         * modules/unictype/category-No-tests: New file.
19411         * modules/unictype/category-P-tests: New file.
19412         * modules/unictype/category-Pc-tests: New file.
19413         * modules/unictype/category-Pd-tests: New file.
19414         * modules/unictype/category-Pe-tests: New file.
19415         * modules/unictype/category-Pf-tests: New file.
19416         * modules/unictype/category-Pi-tests: New file.
19417         * modules/unictype/category-Po-tests: New file.
19418         * modules/unictype/category-Ps-tests: New file.
19419         * modules/unictype/category-S-tests: New file.
19420         * modules/unictype/category-Sc-tests: New file.
19421         * modules/unictype/category-Sk-tests: New file.
19422         * modules/unictype/category-Sm-tests: New file.
19423         * modules/unictype/category-So-tests: New file.
19424         * modules/unictype/category-Z-tests: New file.
19425         * modules/unictype/category-Zl-tests: New file.
19426         * modules/unictype/category-Zp-tests: New file.
19427         * modules/unictype/category-Zs-tests: New file.
19428         * modules/unictype/category-and-not-tests: New file.
19429         * modules/unictype/category-and-tests: New file.
19430         * modules/unictype/category-byname-tests: New file.
19431         * modules/unictype/category-name-tests: New file.
19432         * modules/unictype/category-none-tests: New file.
19433         * modules/unictype/category-of-tests: New file.
19434         * modules/unictype/category-or-tests: New file.
19435         * modules/unictype/category-test-withtable-tests: New file.
19436         * modules/unictype/combining-class-tests: New file.
19437         * modules/unictype/ctype-alnum-tests: New file.
19438         * modules/unictype/ctype-alpha-tests: New file.
19439         * modules/unictype/ctype-blank-tests: New file.
19440         * modules/unictype/ctype-cntrl-tests: New file.
19441         * modules/unictype/ctype-digit-tests: New file.
19442         * modules/unictype/ctype-graph-tests: New file.
19443         * modules/unictype/ctype-lower-tests: New file.
19444         * modules/unictype/ctype-print-tests: New file.
19445         * modules/unictype/ctype-punct-tests: New file.
19446         * modules/unictype/ctype-space-tests: New file.
19447         * modules/unictype/ctype-upper-tests: New file.
19448         * modules/unictype/ctype-xdigit-tests: New file.
19449         * modules/unictype/decimal-digit-tests: New file.
19450         * modules/unictype/digit-tests: New file.
19451         * modules/unictype/mirror-tests: New file.
19452         * modules/unictype/numeric-tests: New file.
19453         * modules/unictype/property-alphabetic-tests: New file.
19454         * modules/unictype/property-ascii-hex-digit-tests: New file.
19455         * modules/unictype/property-bidi-arabic-digit-tests: New file.
19456         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
19457         * modules/unictype/property-bidi-block-separator-tests: New file.
19458         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
19459         * modules/unictype/property-bidi-common-separator-tests: New file.
19460         * modules/unictype/property-bidi-control-tests: New file.
19461         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
19462         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
19463         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
19464         * modules/unictype/property-bidi-european-digit-tests: New file.
19465         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
19466         * modules/unictype/property-bidi-left-to-right-tests: New file.
19467         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
19468         * modules/unictype/property-bidi-other-neutral-tests: New file.
19469         * modules/unictype/property-bidi-pdf-tests: New file.
19470         * modules/unictype/property-bidi-segment-separator-tests: New file.
19471         * modules/unictype/property-bidi-whitespace-tests: New file.
19472         * modules/unictype/property-byname-tests: New file.
19473         * modules/unictype/property-combining-tests: New file.
19474         * modules/unictype/property-composite-tests: New file.
19475         * modules/unictype/property-currency-symbol-tests: New file.
19476         * modules/unictype/property-dash-tests: New file.
19477         * modules/unictype/property-decimal-digit-tests: New file.
19478         * modules/unictype/property-default-ignorable-code-point-tests: New file.
19479         * modules/unictype/property-deprecated-tests: New file.
19480         * modules/unictype/property-diacritic-tests: New file.
19481         * modules/unictype/property-extender-tests: New file.
19482         * modules/unictype/property-format-control-tests: New file.
19483         * modules/unictype/property-grapheme-base-tests: New file.
19484         * modules/unictype/property-grapheme-extend-tests: New file.
19485         * modules/unictype/property-grapheme-link-tests: New file.
19486         * modules/unictype/property-hex-digit-tests: New file.
19487         * modules/unictype/property-hyphen-tests: New file.
19488         * modules/unictype/property-id-continue-tests: New file.
19489         * modules/unictype/property-id-start-tests: New file.
19490         * modules/unictype/property-ideographic-tests: New file.
19491         * modules/unictype/property-ids-binary-operator-tests: New file.
19492         * modules/unictype/property-ids-trinary-operator-tests: New file.
19493         * modules/unictype/property-ignorable-control-tests: New file.
19494         * modules/unictype/property-iso-control-tests: New file.
19495         * modules/unictype/property-join-control-tests: New file.
19496         * modules/unictype/property-left-of-pair-tests: New file.
19497         * modules/unictype/property-line-separator-tests: New file.
19498         * modules/unictype/property-logical-order-exception-tests: New file.
19499         * modules/unictype/property-lowercase-tests: New file.
19500         * modules/unictype/property-math-tests: New file.
19501         * modules/unictype/property-non-break-tests: New file.
19502         * modules/unictype/property-not-a-character-tests: New file.
19503         * modules/unictype/property-numeric-tests: New file.
19504         * modules/unictype/property-other-alphabetic-tests: New file.
19505         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
19506         * modules/unictype/property-other-grapheme-extend-tests: New file.
19507         * modules/unictype/property-other-id-continue-tests: New file.
19508         * modules/unictype/property-other-id-start-tests: New file.
19509         * modules/unictype/property-other-lowercase-tests: New file.
19510         * modules/unictype/property-other-math-tests: New file.
19511         * modules/unictype/property-other-uppercase-tests: New file.
19512         * modules/unictype/property-paired-punctuation-tests: New file.
19513         * modules/unictype/property-paragraph-separator-tests: New file.
19514         * modules/unictype/property-pattern-syntax-tests: New file.
19515         * modules/unictype/property-pattern-white-space-tests: New file.
19516         * modules/unictype/property-private-use-tests: New file.
19517         * modules/unictype/property-punctuation-tests: New file.
19518         * modules/unictype/property-quotation-mark-tests: New file.
19519         * modules/unictype/property-radical-tests: New file.
19520         * modules/unictype/property-sentence-terminal-tests: New file.
19521         * modules/unictype/property-soft-dotted-tests: New file.
19522         * modules/unictype/property-space-tests: New file.
19523         * modules/unictype/property-terminal-punctuation-tests: New file.
19524         * modules/unictype/property-test-tests: New file.
19525         * modules/unictype/property-titlecase-tests: New file.
19526         * modules/unictype/property-unassigned-code-value-tests: New file.
19527         * modules/unictype/property-unified-ideograph-tests: New file.
19528         * modules/unictype/property-uppercase-tests: New file.
19529         * modules/unictype/property-variation-selector-tests: New file.
19530         * modules/unictype/property-white-space-tests: New file.
19531         * modules/unictype/property-xid-continue-tests: New file.
19532         * modules/unictype/property-xid-start-tests: New file.
19533         * modules/unictype/property-zero-width-tests: New file.
19534         * modules/unictype/scripts-tests: New file.
19535         * modules/unictype/syntax-c-ident-tests: New file.
19536         * modules/unictype/syntax-c-whitespace-tests: New file.
19537         * modules/unictype/syntax-java-ident-tests: New file.
19538         * modules/unictype/syntax-java-whitespace-tests: New file.
19539         * tests/unictype/test-bidi_byname.c: New file.
19540         * tests/unictype/test-bidi_name.c: New file.
19541         * tests/unictype/test-bidi_of.c: New file.
19542         * tests/unictype/test-bidi_test.c: New file.
19543         * tests/unictype/test-block_list.c: New file.
19544         * tests/unictype/test-block_of.c: New file.
19545         * tests/unictype/test-block_test.c: New file.
19546         * tests/unictype/test-categ_and.c: New file.
19547         * tests/unictype/test-categ_and_not.c: New file.
19548         * tests/unictype/test-categ_byname.c: New file.
19549         * tests/unictype/test-categ_name.c: New file.
19550         * tests/unictype/test-categ_none.c: New file.
19551         * tests/unictype/test-categ_of.c: New file.
19552         * tests/unictype/test-categ_or.c: New file.
19553         * tests/unictype/test-categ_test_withtable.c: New file.
19554         * tests/unictype/test-combining.c: New file.
19555         * tests/unictype/test-decdigit.c: New file.
19556         * tests/unictype/test-digit.c: New file.
19557         * tests/unictype/test-mirror.c: New file.
19558         * tests/unictype/test-numeric.c: New file.
19559         * tests/unictype/test-pr_byname.c: New file.
19560         * tests/unictype/test-pr_test.c: New file.
19561         * tests/unictype/test-predicate-part1.h: New file.
19562         * tests/unictype/test-predicate-part2.h: New file.
19563         * tests/unictype/test-scripts.c: New file.
19564         * tests/unictype/test-sy_c_ident.c: New file.
19565         * tests/unictype/test-sy_java_ident.c: New file.
19566
19567         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
19568         for Unicode 5.0.0.
19569         * tests/unictype/test-categ_Cc.c: Likewise.
19570         * tests/unictype/test-categ_Cf.c: Likewise.
19571         * tests/unictype/test-categ_Cn.c: Likewise.
19572         * tests/unictype/test-categ_Co.c: Likewise.
19573         * tests/unictype/test-categ_Cs.c: Likewise.
19574         * tests/unictype/test-categ_L.c: Likewise.
19575         * tests/unictype/test-categ_Ll.c: Likewise.
19576         * tests/unictype/test-categ_Lm.c: Likewise.
19577         * tests/unictype/test-categ_Lo.c: Likewise.
19578         * tests/unictype/test-categ_Lt.c: Likewise.
19579         * tests/unictype/test-categ_Lu.c: Likewise.
19580         * tests/unictype/test-categ_M.c: Likewise.
19581         * tests/unictype/test-categ_Mc.c: Likewise.
19582         * tests/unictype/test-categ_Me.c: Likewise.
19583         * tests/unictype/test-categ_Mn.c: Likewise.
19584         * tests/unictype/test-categ_N.c: Likewise.
19585         * tests/unictype/test-categ_Nd.c: Likewise.
19586         * tests/unictype/test-categ_Nl.c: Likewise.
19587         * tests/unictype/test-categ_No.c: Likewise.
19588         * tests/unictype/test-categ_P.c: Likewise.
19589         * tests/unictype/test-categ_Pc.c: Likewise.
19590         * tests/unictype/test-categ_Pd.c: Likewise.
19591         * tests/unictype/test-categ_Pe.c: Likewise.
19592         * tests/unictype/test-categ_Pf.c: Likewise.
19593         * tests/unictype/test-categ_Pi.c: Likewise.
19594         * tests/unictype/test-categ_Po.c: Likewise.
19595         * tests/unictype/test-categ_Ps.c: Likewise.
19596         * tests/unictype/test-categ_S.c: Likewise.
19597         * tests/unictype/test-categ_Sc.c: Likewise.
19598         * tests/unictype/test-categ_Sk.c: Likewise.
19599         * tests/unictype/test-categ_Sm.c: Likewise.
19600         * tests/unictype/test-categ_So.c: Likewise.
19601         * tests/unictype/test-categ_Z.c: Likewise.
19602         * tests/unictype/test-categ_Zl.c: Likewise.
19603         * tests/unictype/test-categ_Zp.c: Likewise.
19604         * tests/unictype/test-categ_Zs.c: Likewise.
19605         * tests/unictype/test-ctype_alnum.c: Likewise.
19606         * tests/unictype/test-ctype_alpha.c: Likewise.
19607         * tests/unictype/test-ctype_blank.c: Likewise.
19608         * tests/unictype/test-ctype_cntrl.c: Likewise.
19609         * tests/unictype/test-ctype_digit.c: Likewise.
19610         * tests/unictype/test-ctype_graph.c: Likewise.
19611         * tests/unictype/test-ctype_lower.c: Likewise.
19612         * tests/unictype/test-ctype_print.c: Likewise.
19613         * tests/unictype/test-ctype_punct.c: Likewise.
19614         * tests/unictype/test-ctype_space.c: Likewise.
19615         * tests/unictype/test-ctype_upper.c: Likewise.
19616         * tests/unictype/test-ctype_xdigit.c: Likewise.
19617         * tests/unictype/test-decdigit.h: Likewise.
19618         * tests/unictype/test-digit.h: Likewise.
19619         * tests/unictype/test-numeric.h: Likewise.
19620         * tests/unictype/test-pr_alphabetic.c: Likewise.
19621         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
19622         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
19623         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
19624         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
19625         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
19626         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
19627         * tests/unictype/test-pr_bidi_control.c: Likewise.
19628         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
19629         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
19630         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
19631         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
19632         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
19633         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
19634         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
19635         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
19636         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
19637         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
19638         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
19639         * tests/unictype/test-pr_combining.c: Likewise.
19640         * tests/unictype/test-pr_composite.c: Likewise.
19641         * tests/unictype/test-pr_currency_symbol.c: Likewise.
19642         * tests/unictype/test-pr_dash.c: Likewise.
19643         * tests/unictype/test-pr_decimal_digit.c: Likewise.
19644         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
19645         * tests/unictype/test-pr_deprecated.c: Likewise.
19646         * tests/unictype/test-pr_diacritic.c: Likewise.
19647         * tests/unictype/test-pr_extender.c: Likewise.
19648         * tests/unictype/test-pr_format_control.c: Likewise.
19649         * tests/unictype/test-pr_grapheme_base.c: Likewise.
19650         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
19651         * tests/unictype/test-pr_grapheme_link.c: Likewise.
19652         * tests/unictype/test-pr_hex_digit.c: Likewise.
19653         * tests/unictype/test-pr_hyphen.c: Likewise.
19654         * tests/unictype/test-pr_id_continue.c: Likewise.
19655         * tests/unictype/test-pr_id_start.c: Likewise.
19656         * tests/unictype/test-pr_ideographic.c: Likewise.
19657         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
19658         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
19659         * tests/unictype/test-pr_ignorable_control.c: Likewise.
19660         * tests/unictype/test-pr_iso_control.c: Likewise.
19661         * tests/unictype/test-pr_join_control.c: Likewise.
19662         * tests/unictype/test-pr_left_of_pair.c: Likewise.
19663         * tests/unictype/test-pr_line_separator.c: Likewise.
19664         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
19665         * tests/unictype/test-pr_lowercase.c: Likewise.
19666         * tests/unictype/test-pr_math.c: Likewise.
19667         * tests/unictype/test-pr_non_break.c: Likewise.
19668         * tests/unictype/test-pr_not_a_character.c: Likewise.
19669         * tests/unictype/test-pr_numeric.c: Likewise.
19670         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
19671         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
19672         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
19673         * tests/unictype/test-pr_other_id_continue.c: Likewise.
19674         * tests/unictype/test-pr_other_id_start.c: Likewise.
19675         * tests/unictype/test-pr_other_lowercase.c: Likewise.
19676         * tests/unictype/test-pr_other_math.c: Likewise.
19677         * tests/unictype/test-pr_other_uppercase.c: Likewise.
19678         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
19679         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
19680         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
19681         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
19682         * tests/unictype/test-pr_private_use.c: Likewise.
19683         * tests/unictype/test-pr_punctuation.c: Likewise.
19684         * tests/unictype/test-pr_quotation_mark.c: Likewise.
19685         * tests/unictype/test-pr_radical.c: Likewise.
19686         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
19687         * tests/unictype/test-pr_soft_dotted.c: Likewise.
19688         * tests/unictype/test-pr_space.c: Likewise.
19689         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
19690         * tests/unictype/test-pr_titlecase.c: Likewise.
19691         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
19692         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
19693         * tests/unictype/test-pr_uppercase.c: Likewise.
19694         * tests/unictype/test-pr_variation_selector.c: Likewise.
19695         * tests/unictype/test-pr_white_space.c: Likewise.
19696         * tests/unictype/test-pr_xid_continue.c: Likewise.
19697         * tests/unictype/test-pr_xid_start.c: Likewise.
19698         * tests/unictype/test-pr_zero_width.c: Likewise.
19699         * tests/unictype/test-sy_c_whitespace.c: Likewise.
19700         * tests/unictype/test-sy_java_whitespace.c: Likewise.
19701
19702 2007-11-12  Bruno Haible  <bruno@clisp.org>
19703
19704         Unicode character classification functions.
19705         * lib/unictype.h: New file.
19706         * modules/unictype/base: New file.
19707         * modules/unictype/category-L: New file.
19708         * modules/unictype/category-Lu: New file.
19709         * modules/unictype/category-Ll: New file.
19710         * modules/unictype/category-Lt: New file.
19711         * modules/unictype/category-Lm: New file.
19712         * modules/unictype/category-Lo: New file.
19713         * modules/unictype/category-M: New file.
19714         * modules/unictype/category-Mn: New file.
19715         * modules/unictype/category-Mc: New file.
19716         * modules/unictype/category-Me: New file.
19717         * modules/unictype/category-N: New file.
19718         * modules/unictype/category-Nd: New file.
19719         * modules/unictype/category-Nl: New file.
19720         * modules/unictype/category-No: New file.
19721         * modules/unictype/category-P: New file.
19722         * modules/unictype/category-Pc: New file.
19723         * modules/unictype/category-Pd: New file.
19724         * modules/unictype/category-Ps: New file.
19725         * modules/unictype/category-Pe: New file.
19726         * modules/unictype/category-Pi: New file.
19727         * modules/unictype/category-Pf: New file.
19728         * modules/unictype/category-Po: New file.
19729         * modules/unictype/category-S: New file.
19730         * modules/unictype/category-Sm: New file.
19731         * modules/unictype/category-Sc: New file.
19732         * modules/unictype/category-Sk: New file.
19733         * modules/unictype/category-So: New file.
19734         * modules/unictype/category-Z: New file.
19735         * modules/unictype/category-Zs: New file.
19736         * modules/unictype/category-Zl: New file.
19737         * modules/unictype/category-Zp: New file.
19738         * modules/unictype/category-C: New file.
19739         * modules/unictype/category-Cc: New file.
19740         * modules/unictype/category-Cf: New file.
19741         * modules/unictype/category-Cs: New file.
19742         * modules/unictype/category-Co: New file.
19743         * modules/unictype/category-Cn: New file.
19744         * modules/unictype/category-or: New file.
19745         * modules/unictype/category-of: New file.
19746         * modules/unictype/category-test: New file.
19747         * modules/unictype/category-test-withtable: New file.
19748         * modules/unictype/category-byname: New file.
19749         * modules/unictype/category-none: New file.
19750         * modules/unictype/category-and: New file.
19751         * modules/unictype/category-and-not: New file.
19752         * modules/unictype/category-name: New file.
19753         * modules/unictype/combining-class: New file.
19754         * modules/unictype/category-all: New file.
19755         * modules/unictype/bidicategory-all: New file.
19756         * modules/unictype/bidicategory-byname: New file.
19757         * modules/unictype/bidicategory-name: New file.
19758         * modules/unictype/bidicategory-of: New file.
19759         * modules/unictype/bidicategory-test: New file.
19760         * modules/unictype/decimal-digit: New file.
19761         * modules/unictype/digit: New file.
19762         * modules/unictype/numeric: New file.
19763         * modules/unictype/mirror: New file.
19764         * modules/unictype/property-white-space: New file.
19765         * modules/unictype/property-alphabetic: New file.
19766         * modules/unictype/property-other-alphabetic: New file.
19767         * modules/unictype/property-not-a-character: New file.
19768         * modules/unictype/property-default-ignorable-code-point: New file.
19769         * modules/unictype/property-other-default-ignorable-code-point: New
19770         file.
19771         * modules/unictype/property-deprecated: New file.
19772         * modules/unictype/property-logical-order-exception: New file.
19773         * modules/unictype/property-variation-selector: New file.
19774         * modules/unictype/property-private-use: New file.
19775         * modules/unictype/property-unassigned-code-value: New file.
19776         * modules/unictype/property-uppercase: New file.
19777         * modules/unictype/property-other-uppercase: New file.
19778         * modules/unictype/property-lowercase: New file.
19779         * modules/unictype/property-other-lowercase: New file.
19780         * modules/unictype/property-titlecase: New file.
19781         * modules/unictype/property-soft-dotted: New file.
19782         * modules/unictype/property-id-start: New file.
19783         * modules/unictype/property-other-id-start: New file.
19784         * modules/unictype/property-id-continue: New file.
19785         * modules/unictype/property-other-id-continue: New file.
19786         * modules/unictype/property-xid-start: New file.
19787         * modules/unictype/property-xid-continue: New file.
19788         * modules/unictype/property-pattern-white-space: New file.
19789         * modules/unictype/property-pattern-syntax: New file.
19790         * modules/unictype/property-join-control: New file.
19791         * modules/unictype/property-grapheme-base: New file.
19792         * modules/unictype/property-grapheme-extend: New file.
19793         * modules/unictype/property-other-grapheme-extend: New file.
19794         * modules/unictype/property-grapheme-link: New file.
19795         * modules/unictype/property-bidi-control: New file.
19796         * modules/unictype/property-bidi-left-to-right: New file.
19797         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
19798         * modules/unictype/property-bidi-arabic-right-to-left: New file.
19799         * modules/unictype/property-bidi-european-digit: New file.
19800         * modules/unictype/property-bidi-eur-num-separator: New file.
19801         * modules/unictype/property-bidi-eur-num-terminator: New file.
19802         * modules/unictype/property-bidi-arabic-digit: New file.
19803         * modules/unictype/property-bidi-common-separator: New file.
19804         * modules/unictype/property-bidi-block-separator: New file.
19805         * modules/unictype/property-bidi-segment-separator: New file.
19806         * modules/unictype/property-bidi-whitespace: New file.
19807         * modules/unictype/property-bidi-non-spacing-mark: New file.
19808         * modules/unictype/property-bidi-boundary-neutral: New file.
19809         * modules/unictype/property-bidi-pdf: New file.
19810         * modules/unictype/property-bidi-embedding-or-override: New file.
19811         * modules/unictype/property-bidi-other-neutral: New file.
19812         * modules/unictype/property-hex-digit: New file.
19813         * modules/unictype/property-ascii-hex-digit: New file.
19814         * modules/unictype/property-ideographic: New file.
19815         * modules/unictype/property-unified-ideograph: New file.
19816         * modules/unictype/property-radical: New file.
19817         * modules/unictype/property-ids-binary-operator: New file.
19818         * modules/unictype/property-ids-trinary-operator: New file.
19819         * modules/unictype/property-zero-width: New file.
19820         * modules/unictype/property-space: New file.
19821         * modules/unictype/property-non-break: New file.
19822         * modules/unictype/property-iso-control: New file.
19823         * modules/unictype/property-format-control: New file.
19824         * modules/unictype/property-dash: New file.
19825         * modules/unictype/property-hyphen: New file.
19826         * modules/unictype/property-punctuation: New file.
19827         * modules/unictype/property-line-separator: New file.
19828         * modules/unictype/property-paragraph-separator: New file.
19829         * modules/unictype/property-quotation-mark: New file.
19830         * modules/unictype/property-sentence-terminal: New file.
19831         * modules/unictype/property-terminal-punctuation: New file.
19832         * modules/unictype/property-currency-symbol: New file.
19833         * modules/unictype/property-math: New file.
19834         * modules/unictype/property-other-math: New file.
19835         * modules/unictype/property-paired-punctuation: New file.
19836         * modules/unictype/property-left-of-pair: New file.
19837         * modules/unictype/property-combining: New file.
19838         * modules/unictype/property-composite: New file.
19839         * modules/unictype/property-decimal-digit: New file.
19840         * modules/unictype/property-numeric: New file.
19841         * modules/unictype/property-diacritic: New file.
19842         * modules/unictype/property-extender: New file.
19843         * modules/unictype/property-ignorable-control: New file.
19844         * modules/unictype/property-test: New file.
19845         * modules/unictype/property-byname: New file.
19846         * modules/unictype/property-all: New file.
19847         * modules/unictype/scripts: New file.
19848         * modules/unictype/scripts-all: New file.
19849         * modules/unictype/block-of: New file.
19850         * modules/unictype/block-test: New file.
19851         * modules/unictype/block-list: New file.
19852         * modules/unictype/block-all: New file.
19853         * modules/unictype/syntax-c-whitespace: New file.
19854         * modules/unictype/syntax-java-whitespace: New file.
19855         * modules/unictype/syntax-c-ident: New file.
19856         * modules/unictype/syntax-java-ident: New file.
19857         * modules/unictype/ctype-alnum: New file.
19858         * modules/unictype/ctype-alpha: New file.
19859         * modules/unictype/ctype-cntrl: New file.
19860         * modules/unictype/ctype-digit: New file.
19861         * modules/unictype/ctype-graph: New file.
19862         * modules/unictype/ctype-lower: New file.
19863         * modules/unictype/ctype-print: New file.
19864         * modules/unictype/ctype-punct: New file.
19865         * modules/unictype/ctype-space: New file.
19866         * modules/unictype/ctype-upper: New file.
19867         * modules/unictype/ctype-xdigit: New file.
19868         * modules/unictype/ctype-blank: New file.
19869         * lib/unictype/bidi_byname.c: New file.
19870         * lib/unictype/bidi_name.c: New file.
19871         * lib/unictype/bidi_of.c: New file.
19872         * lib/unictype/bidi_test.c: New file.
19873         * lib/unictype/bitmap.h: New file.
19874         * lib/unictype/block_test.c: New file.
19875         * lib/unictype/blocks.c: New file.
19876         * lib/unictype/categ_C.c: New file.
19877         * lib/unictype/categ_Cc.c: New file.
19878         * lib/unictype/categ_Cf.c: New file.
19879         * lib/unictype/categ_Cn.c: New file.
19880         * lib/unictype/categ_Co.c: New file.
19881         * lib/unictype/categ_Cs.c: New file.
19882         * lib/unictype/categ_L.c: New file.
19883         * lib/unictype/categ_Ll.c: New file.
19884         * lib/unictype/categ_Lm.c: New file.
19885         * lib/unictype/categ_Lo.c: New file.
19886         * lib/unictype/categ_Lt.c: New file.
19887         * lib/unictype/categ_Lu.c: New file.
19888         * lib/unictype/categ_M.c: New file.
19889         * lib/unictype/categ_Mc.c: New file.
19890         * lib/unictype/categ_Me.c: New file.
19891         * lib/unictype/categ_Mn.c: New file.
19892         * lib/unictype/categ_N.c: New file.
19893         * lib/unictype/categ_Nd.c: New file.
19894         * lib/unictype/categ_Nl.c: New file.
19895         * lib/unictype/categ_No.c: New file.
19896         * lib/unictype/categ_P.c: New file.
19897         * lib/unictype/categ_Pc.c: New file.
19898         * lib/unictype/categ_Pd.c: New file.
19899         * lib/unictype/categ_Pe.c: New file.
19900         * lib/unictype/categ_Pf.c: New file.
19901         * lib/unictype/categ_Pi.c: New file.
19902         * lib/unictype/categ_Po.c: New file.
19903         * lib/unictype/categ_Ps.c: New file.
19904         * lib/unictype/categ_S.c: New file.
19905         * lib/unictype/categ_Sc.c: New file.
19906         * lib/unictype/categ_Sk.c: New file.
19907         * lib/unictype/categ_Sm.c: New file.
19908         * lib/unictype/categ_So.c: New file.
19909         * lib/unictype/categ_Z.c: New file.
19910         * lib/unictype/categ_Zl.c: New file.
19911         * lib/unictype/categ_Zp.c: New file.
19912         * lib/unictype/categ_Zs.c: New file.
19913         * lib/unictype/categ_and.c: New file.
19914         * lib/unictype/categ_and_not.c: New file.
19915         * lib/unictype/categ_byname.c: New file.
19916         * lib/unictype/categ_name.c: New file.
19917         * lib/unictype/categ_none.c: New file.
19918         * lib/unictype/categ_of.c: New file.
19919         * lib/unictype/categ_or.c: New file.
19920         * lib/unictype/categ_test.c: New file.
19921         * lib/unictype/combining.c: New file.
19922         * lib/unictype/ctype_alnum.c: New file.
19923         * lib/unictype/ctype_alpha.c: New file.
19924         * lib/unictype/ctype_blank.c: New file.
19925         * lib/unictype/ctype_cntrl.c: New file.
19926         * lib/unictype/ctype_digit.c: New file.
19927         * lib/unictype/ctype_graph.c: New file.
19928         * lib/unictype/ctype_lower.c: New file.
19929         * lib/unictype/ctype_print.c: New file.
19930         * lib/unictype/ctype_punct.c: New file.
19931         * lib/unictype/ctype_space.c: New file.
19932         * lib/unictype/ctype_upper.c: New file.
19933         * lib/unictype/ctype_xdigit.c: New file.
19934         * lib/unictype/decdigit.c: New file.
19935         * lib/unictype/digit.c: New file.
19936         * lib/unictype/identsyntaxmap.h: New file.
19937         * lib/unictype/mirror.c: New file.
19938         * lib/unictype/numeric.c: New file.
19939         * lib/unictype/pr_alphabetic.c: New file.
19940         * lib/unictype/pr_ascii_hex_digit.c: New file.
19941         * lib/unictype/pr_bidi_arabic_digit.c: New file.
19942         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
19943         * lib/unictype/pr_bidi_block_separator.c: New file.
19944         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
19945         * lib/unictype/pr_bidi_common_separator.c: New file.
19946         * lib/unictype/pr_bidi_control.c: New file.
19947         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
19948         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
19949         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
19950         * lib/unictype/pr_bidi_european_digit.c: New file.
19951         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
19952         * lib/unictype/pr_bidi_left_to_right.c: New file.
19953         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
19954         * lib/unictype/pr_bidi_other_neutral.c: New file.
19955         * lib/unictype/pr_bidi_pdf.c: New file.
19956         * lib/unictype/pr_bidi_segment_separator.c: New file.
19957         * lib/unictype/pr_bidi_whitespace.c: New file.
19958         * lib/unictype/pr_byname.c: New file.
19959         * lib/unictype/pr_byname.gperf: New file.
19960         * lib/unictype/pr_combining.c: New file.
19961         * lib/unictype/pr_composite.c: New file.
19962         * lib/unictype/pr_currency_symbol.c: New file.
19963         * lib/unictype/pr_dash.c: New file.
19964         * lib/unictype/pr_decimal_digit.c: New file.
19965         * lib/unictype/pr_default_ignorable_code_point.c: New file.
19966         * lib/unictype/pr_deprecated.c: New file.
19967         * lib/unictype/pr_diacritic.c: New file.
19968         * lib/unictype/pr_extender.c: New file.
19969         * lib/unictype/pr_format_control.c: New file.
19970         * lib/unictype/pr_grapheme_base.c: New file.
19971         * lib/unictype/pr_grapheme_extend.c: New file.
19972         * lib/unictype/pr_grapheme_link.c: New file.
19973         * lib/unictype/pr_hex_digit.c: New file.
19974         * lib/unictype/pr_hyphen.c: New file.
19975         * lib/unictype/pr_id_continue.c: New file.
19976         * lib/unictype/pr_id_start.c: New file.
19977         * lib/unictype/pr_ideographic.c: New file.
19978         * lib/unictype/pr_ids_binary_operator.c: New file.
19979         * lib/unictype/pr_ids_trinary_operator.c: New file.
19980         * lib/unictype/pr_ignorable_control.c: New file.
19981         * lib/unictype/pr_iso_control.c: New file.
19982         * lib/unictype/pr_join_control.c: New file.
19983         * lib/unictype/pr_left_of_pair.c: New file.
19984         * lib/unictype/pr_line_separator.c: New file.
19985         * lib/unictype/pr_logical_order_exception.c: New file.
19986         * lib/unictype/pr_lowercase.c: New file.
19987         * lib/unictype/pr_math.c: New file.
19988         * lib/unictype/pr_non_break.c: New file.
19989         * lib/unictype/pr_not_a_character.c: New file.
19990         * lib/unictype/pr_numeric.c: New file.
19991         * lib/unictype/pr_other_alphabetic.c: New file.
19992         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
19993         * lib/unictype/pr_other_grapheme_extend.c: New file.
19994         * lib/unictype/pr_other_id_continue.c: New file.
19995         * lib/unictype/pr_other_id_start.c: New file.
19996         * lib/unictype/pr_other_lowercase.c: New file.
19997         * lib/unictype/pr_other_math.c: New file.
19998         * lib/unictype/pr_other_uppercase.c: New file.
19999         * lib/unictype/pr_paired_punctuation.c: New file.
20000         * lib/unictype/pr_paragraph_separator.c: New file.
20001         * lib/unictype/pr_pattern_syntax.c: New file.
20002         * lib/unictype/pr_pattern_white_space.c: New file.
20003         * lib/unictype/pr_private_use.c: New file.
20004         * lib/unictype/pr_punctuation.c: New file.
20005         * lib/unictype/pr_quotation_mark.c: New file.
20006         * lib/unictype/pr_radical.c: New file.
20007         * lib/unictype/pr_sentence_terminal.c: New file.
20008         * lib/unictype/pr_soft_dotted.c: New file.
20009         * lib/unictype/pr_space.c: New file.
20010         * lib/unictype/pr_terminal_punctuation.c: New file.
20011         * lib/unictype/pr_test.c: New file.
20012         * lib/unictype/pr_titlecase.c: New file.
20013         * lib/unictype/pr_unassigned_code_value.c: New file.
20014         * lib/unictype/pr_unified_ideograph.c: New file.
20015         * lib/unictype/pr_uppercase.c: New file.
20016         * lib/unictype/pr_variation_selector.c: New file.
20017         * lib/unictype/pr_white_space.c: New file.
20018         * lib/unictype/pr_xid_continue.c: New file.
20019         * lib/unictype/pr_xid_start.c: New file.
20020         * lib/unictype/pr_zero_width.c: New file.
20021         * lib/unictype/scripts.c: New file.
20022         * lib/unictype/sy_c_ident.c: New file.
20023         * lib/unictype/sy_c_whitespace.c: New file.
20024         * lib/unictype/sy_java_ident.c: New file.
20025         * lib/unictype/sy_java_whitespace.c: New file.
20026
20027         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
20028         Unicode 5.0.0.
20029         * lib/unictype/blocks.h: Likewise.
20030         * lib/unictype/categ_C.h: Likewise.
20031         * lib/unictype/categ_Cc.h: Likewise.
20032         * lib/unictype/categ_Cf.h: Likewise.
20033         * lib/unictype/categ_Cn.h: Likewise.
20034         * lib/unictype/categ_Co.h: Likewise.
20035         * lib/unictype/categ_Cs.h: Likewise.
20036         * lib/unictype/categ_L.h: Likewise.
20037         * lib/unictype/categ_Ll.h: Likewise.
20038         * lib/unictype/categ_Lm.h: Likewise.
20039         * lib/unictype/categ_Lo.h: Likewise.
20040         * lib/unictype/categ_Lt.h: Likewise.
20041         * lib/unictype/categ_Lu.h: Likewise.
20042         * lib/unictype/categ_M.h: Likewise.
20043         * lib/unictype/categ_Mc.h: Likewise.
20044         * lib/unictype/categ_Me.h: Likewise.
20045         * lib/unictype/categ_Mn.h: Likewise.
20046         * lib/unictype/categ_N.h: Likewise.
20047         * lib/unictype/categ_Nd.h: Likewise.
20048         * lib/unictype/categ_Nl.h: Likewise.
20049         * lib/unictype/categ_No.h: Likewise.
20050         * lib/unictype/categ_P.h: Likewise.
20051         * lib/unictype/categ_Pc.h: Likewise.
20052         * lib/unictype/categ_Pd.h: Likewise.
20053         * lib/unictype/categ_Pe.h: Likewise.
20054         * lib/unictype/categ_Pf.h: Likewise.
20055         * lib/unictype/categ_Pi.h: Likewise.
20056         * lib/unictype/categ_Po.h: Likewise.
20057         * lib/unictype/categ_Ps.h: Likewise.
20058         * lib/unictype/categ_S.h: Likewise.
20059         * lib/unictype/categ_Sc.h: Likewise.
20060         * lib/unictype/categ_Sk.h: Likewise.
20061         * lib/unictype/categ_Sm.h: Likewise.
20062         * lib/unictype/categ_So.h: Likewise.
20063         * lib/unictype/categ_Z.h: Likewise.
20064         * lib/unictype/categ_Zl.h: Likewise.
20065         * lib/unictype/categ_Zp.h: Likewise.
20066         * lib/unictype/categ_Zs.h: Likewise.
20067         * lib/unictype/categ_of.h: Likewise.
20068         * lib/unictype/combining.h: Likewise.
20069         * lib/unictype/ctype_alnum.h: Likewise.
20070         * lib/unictype/ctype_alpha.h: Likewise.
20071         * lib/unictype/ctype_blank.h: Likewise.
20072         * lib/unictype/ctype_cntrl.h: Likewise.
20073         * lib/unictype/ctype_digit.h: Likewise.
20074         * lib/unictype/ctype_graph.h: Likewise.
20075         * lib/unictype/ctype_lower.h: Likewise.
20076         * lib/unictype/ctype_print.h: Likewise.
20077         * lib/unictype/ctype_punct.h: Likewise.
20078         * lib/unictype/ctype_space.h: Likewise.
20079         * lib/unictype/ctype_upper.h: Likewise.
20080         * lib/unictype/ctype_xdigit.h: Likewise.
20081         * lib/unictype/decdigit.h: Likewise.
20082         * lib/unictype/digit.h: Likewise.
20083         * lib/unictype/mirror.h: Likewise.
20084         * lib/unictype/numeric.h: Likewise.
20085         * lib/unictype/pr_alphabetic.h: Likewise.
20086         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20087         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20088         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20089         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20090         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20091         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20092         * lib/unictype/pr_bidi_control.h: Likewise.
20093         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20094         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20095         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20096         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20097         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20098         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20099         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20100         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20101         * lib/unictype/pr_bidi_pdf.h: Likewise.
20102         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20103         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20104         * lib/unictype/pr_combining.h: Likewise.
20105         * lib/unictype/pr_composite.h: Likewise.
20106         * lib/unictype/pr_currency_symbol.h: Likewise.
20107         * lib/unictype/pr_dash.h: Likewise.
20108         * lib/unictype/pr_decimal_digit.h: Likewise.
20109         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20110         * lib/unictype/pr_deprecated.h: Likewise.
20111         * lib/unictype/pr_diacritic.h: Likewise.
20112         * lib/unictype/pr_extender.h: Likewise.
20113         * lib/unictype/pr_format_control.h: Likewise.
20114         * lib/unictype/pr_grapheme_base.h: Likewise.
20115         * lib/unictype/pr_grapheme_extend.h: Likewise.
20116         * lib/unictype/pr_grapheme_link.h: Likewise.
20117         * lib/unictype/pr_hex_digit.h: Likewise.
20118         * lib/unictype/pr_hyphen.h: Likewise.
20119         * lib/unictype/pr_id_continue.h: Likewise.
20120         * lib/unictype/pr_id_start.h: Likewise.
20121         * lib/unictype/pr_ideographic.h: Likewise.
20122         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20123         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20124         * lib/unictype/pr_ignorable_control.h: Likewise.
20125         * lib/unictype/pr_iso_control.h: Likewise.
20126         * lib/unictype/pr_join_control.h: Likewise.
20127         * lib/unictype/pr_left_of_pair.h: Likewise.
20128         * lib/unictype/pr_line_separator.h: Likewise.
20129         * lib/unictype/pr_logical_order_exception.h: Likewise.
20130         * lib/unictype/pr_lowercase.h: Likewise.
20131         * lib/unictype/pr_math.h: Likewise.
20132         * lib/unictype/pr_non_break.h: Likewise.
20133         * lib/unictype/pr_not_a_character.h: Likewise.
20134         * lib/unictype/pr_numeric.h: Likewise.
20135         * lib/unictype/pr_other_alphabetic.h: Likewise.
20136         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20137         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20138         * lib/unictype/pr_other_id_continue.h: Likewise.
20139         * lib/unictype/pr_other_id_start.h: Likewise.
20140         * lib/unictype/pr_other_lowercase.h: Likewise.
20141         * lib/unictype/pr_other_math.h: Likewise.
20142         * lib/unictype/pr_other_uppercase.h: Likewise.
20143         * lib/unictype/pr_paired_punctuation.h: Likewise.
20144         * lib/unictype/pr_paragraph_separator.h: Likewise.
20145         * lib/unictype/pr_pattern_syntax.h: Likewise.
20146         * lib/unictype/pr_pattern_white_space.h: Likewise.
20147         * lib/unictype/pr_private_use.h: Likewise.
20148         * lib/unictype/pr_punctuation.h: Likewise.
20149         * lib/unictype/pr_quotation_mark.h: Likewise.
20150         * lib/unictype/pr_radical.h: Likewise.
20151         * lib/unictype/pr_sentence_terminal.h: Likewise.
20152         * lib/unictype/pr_soft_dotted.h: Likewise.
20153         * lib/unictype/pr_space.h: Likewise.
20154         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20155         * lib/unictype/pr_titlecase.h: Likewise.
20156         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20157         * lib/unictype/pr_unified_ideograph.h: Likewise.
20158         * lib/unictype/pr_uppercase.h: Likewise.
20159         * lib/unictype/pr_variation_selector.h: Likewise.
20160         * lib/unictype/pr_white_space.h: Likewise.
20161         * lib/unictype/pr_xid_continue.h: Likewise.
20162         * lib/unictype/pr_xid_start.h: Likewise.
20163         * lib/unictype/pr_zero_width.h: Likewise.
20164         * lib/unictype/scripts.h: Likewise.
20165         * lib/unictype/scripts_byname.gperf: Likewise.
20166         * lib/unictype/sy_c_ident.h: Likewise.
20167         * lib/unictype/sy_c_whitespace.h: Likewise.
20168         * lib/unictype/sy_java_ident.h: Likewise.
20169         * lib/unictype/sy_java_whitespace.h: Likewise.
20170
20171         * lib/unictype/Makefile: New file.
20172         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
20173         glibc.
20174         * lib/unictype/3level.h: New file, copied from glibc.
20175         * lib/unictype/3levelbit.h: New file.
20176
20177 2007-11-11  Bruno Haible  <bruno@clisp.org>
20178
20179         * modules/gperf: New file.
20180         * modules/iconv_open (Depends-on): Add it.
20181         (Makefile.am): Remove the GPERF definition.
20182
20183 2007-11-11  Bruno Haible  <bruno@clisp.org>
20184
20185         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
20186         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
20187
20188 2007-11-11  Bruno Haible  <bruno@clisp.org>
20189
20190         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
20191         (usage): Remove function.
20192
20193 2007-11-11  Bruno Haible  <bruno@clisp.org>
20194
20195         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
20196         gl_FUNC_CEILF_LIBS.
20197         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
20198         gl_FUNC_CEIL_LIBS.
20199         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
20200         gl_FUNC_CEILL_LIBS.
20201         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
20202         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
20203         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
20204
20205 2007-11-11  Bruno Haible  <bruno@clisp.org>
20206
20207         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
20208         roundf were declared but do not exist on functions.
20209         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
20210         roundl were declared but do not exist on functions.
20211         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
20212         HAVE_FLOORL_AND_CEILL, respectively.
20213         Needed for Sun C on Solaris 10.
20214
20215 2007-11-11  Bruno Haible  <bruno@clisp.org>
20216
20217         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
20218         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
20219         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
20220         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
20221         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
20222         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
20223         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
20224         HAVE_DECL_ROUNDF.
20225         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
20226         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
20227         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
20228         of HAVE_DECL_ROUND*.
20229         * modules/math (Makefile.am): Update.
20230
20231 2007-11-10  Bruno Haible  <bruno@clisp.org>
20232
20233         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
20234         ptrdiff_t as m4/intl.m4.
20235
20236 2007-11-10  Jim Meyering  <meyering@redhat.com>
20237
20238         Avoid link failure for the argmatch test.
20239         * tests/test-argmatch.c (usage): Define function to avoid a link
20240         failure: argmatch_die requires a usage function.
20241
20242 2007-11-09  Bruno Haible  <bruno@clisp.org>
20243
20244         * doc/functions/snprintf.texi: Mention BeOS deficiency.
20245         * doc/functions/vsnprintf.texi: Likewise.
20246         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
20247         with a size argument < 2.
20248
20249 2007-11-09  Bruno Haible  <bruno@clisp.org>
20250
20251         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
20252         buffer. Fixes an inefficiency introduced on 2007-11-03.
20253
20254 2007-11-09  Bruno Haible  <bruno@clisp.org>
20255
20256         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
20257         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
20258
20259 2007-11-08  Jim Meyering  <meyering@redhat.com>
20260
20261         Change cache variable name prefix "jm_" to "gl_" everywhere.
20262         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
20263         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
20264         * m4/uptime.m4: s/gl_/jm_/
20265
20266 2007-11-07  Bruno Haible  <bruno@clisp.org>
20267
20268         Update to GNU gettext 0.17.
20269         * m4/intl.m4: Update to GNU gettext 0.17.
20270         * m4/po.m4: Likewise.
20271         * modules/gettext (Files): Remove m4/ulonglong.m4.
20272         (configure.ac): Require gettext infrastructure from version 0.17.
20273
20274 2007-11-06  Bruno Haible  <bruno@clisp.org>
20275
20276         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
20277         symbolic values are not defined in a public header.
20278         * lib/freadable.c (freadable) [QNX]: Likewise.
20279         * lib/freadahead.c (freadahead) [QNX]: Likewise.
20280         * lib/freading.c (freading) [QNX]: Likewise.
20281         * lib/fseterr.c (fseterr) [QNX]: Likewise.
20282         * lib/fwritable.c (fwritable) [QNX]: Likewise.
20283         * lib/fwriting.c (fwriting) [QNX]: Likewise.
20284         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
20285         Reported by Alain Magloire.
20286
20287         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
20288
20289 2007-11-05  Bruno Haible  <bruno@clisp.org>
20290
20291         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
20292         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
20293         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
20294         Reported by Eric Blake.
20295
20296 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20297             Bruno Haible  <bruno@clisp.org>
20298
20299         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
20300         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
20301         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
20302         (malloc): Undefine also before including <stdlib.h>.
20303         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
20304         Needed on OSF/1 4.0.
20305
20306 2007-11-05  Jim Meyering  <meyering@redhat.com>
20307
20308         git-version-gen: sync from coreutils.
20309         * build-aux/git-version-gen: Add comments.
20310         Change the first '-' to '.' in the snapshot version string,
20311         e.g., 6.9-377-08144 -> 6.9.377-08144
20312         Remove first parameter.
20313         Don't declare a version "-dirty" merely because a time
20314         stamp has changed.
20315
20316 2007-11-04  Bruno Haible  <bruno@clisp.org>
20317
20318         * lib/lock.h: Protect all macro definitions containing an 'if'
20319         statement through a "do { ... } while (0)".
20320         * lib/tls.h: Likewise.
20321
20322 2007-11-04  Bruno Haible  <bruno@clisp.org>
20323
20324         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
20325
20326 2007-11-04  Bruno Haible  <bruno@clisp.org>
20327
20328         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
20329         * modules/fprintf-posix (Depends-on): Add nocrash.
20330         * modules/snprintf-posix (Depends-on): Likewise.
20331         * modules/sprintf-posix (Depends-on): Likewise.
20332         * modules/vasnprintf-posix (Depends-on): Likewise.
20333         * modules/vasprintf-posix (Depends-on): Likewise.
20334         * modules/vfprintf-posix (Depends-on): Likewise.
20335         * modules/vsnprintf-posix (Depends-on): Likewise.
20336         * modules/vsprintf-posix (Depends-on): Likewise.
20337         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20338         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20339         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20340         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20341         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20342         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20343         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20344
20345 2007-11-04  Bruno Haible  <bruno@clisp.org>
20346
20347         * modules/nocrash: New file.
20348         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
20349         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
20350
20351 2007-11-04  Bruno Haible  <bruno@clisp.org>
20352
20353         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
20354         precision handling.
20355         * tests/test-vasprintf-posix.c (test_function): Likewise.
20356         * tests/test-snprintf-posix.h (test_function): Likewise.
20357         * tests/test-sprintf-posix.h (test_function): Likewise.
20358
20359         Fix *printf behaviour for large precisions on mingw and BeOS.
20360         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
20361         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
20362         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
20363         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20364         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20365         gl_PRINTF_PRECISION and test its result. Invoke
20366         gl_PREREQ_VASNPRINTF_PRECISION.
20367         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20368         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20369         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20370         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20371         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20372         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20373         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20374         * doc/functions/fprintf.texi: Update.
20375         * doc/functions/printf.texi: Update.
20376         * doc/functions/snprintf.texi: Update.
20377         * doc/functions/sprintf.texi: Update.
20378         * doc/functions/vfprintf.texi: Update.
20379         * doc/functions/vprintf.texi: Update.
20380         * doc/functions/vsnprintf.texi: Update.
20381         * doc/functions/vsprintf.texi: Update.
20382
20383 2007-11-04  Bruno Haible  <bruno@clisp.org>
20384
20385         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
20386
20387 2007-11-04  Bruno Haible  <bruno@clisp.org>
20388
20389         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
20390         Reported by Sylvain Beucler <beuc@gnu.org>.
20391
20392 2007-11-03  Bruno Haible  <bruno@clisp.org>
20393
20394         * tests/test-fprintf-posix2.sh: New file.
20395         * tests/test-fprintf-posix2.c: New file.
20396         * modules/fprintf-posix-tests (Files): Add them.
20397         (TESTS): Add test-fprintf-posix2.sh.
20398         (configure.ac): Check for getrlimit and setrlimit.
20399         (check_PROGRAMS): Add test-fprintf-posix2.
20400
20401         * tests/test-printf-posix2.sh: New file.
20402         * tests/test-printf-posix2.c: New file.
20403         * modules/printf-posix-tests (Files): Add them.
20404         (TESTS): Add test-printf-posix2.sh.
20405         (configure.ac): Check for getrlimit and setrlimit.
20406         (check_PROGRAMS): Add test-printf-posix2.
20407
20408         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
20409         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
20410         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
20411         (decode_double): New function, copied from decode_long_double.
20412         (scale10_round_decimal_decoded): New function, extracted from
20413         scale10_round_decimal_long_double.
20414         (scale10_round_decimal_long_double): Use it.
20415         (scale10_round_decimal_double): New function.
20416         (floorlog10): New function.
20417         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
20418         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
20419         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20420         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20421         gl_PRINTF_ENOMEM and test its result. Invoke
20422         gl_PREREQ_VASNPRINTF_ENOMEM.
20423         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20424         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20425         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20426         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20427         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20428         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20429         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20430         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
20431         * modules/snprintf-posix (Depends-on): Likewise.
20432         * modules/sprintf-posix (Depends-on): Likewise.
20433         * modules/vasnprintf-posix (Depends-on): Likewise.
20434         * modules/vasprintf-posix (Depends-on): Likewise.
20435         * modules/vfprintf-posix (Depends-on): Likewise.
20436         * modules/vsnprintf-posix (Depends-on): Likewise.
20437         * modules/vsprintf-posix (Depends-on): Likewise.
20438         * doc/functions/fprintf.texi: Update.
20439         * doc/functions/printf.texi: Update.
20440         * doc/functions/snprintf.texi: Update.
20441         * doc/functions/sprintf.texi: Update.
20442         * doc/functions/vfprintf.texi: Update.
20443         * doc/functions/vprintf.texi: Update.
20444         * doc/functions/vsnprintf.texi: Update.
20445         * doc/functions/vsprintf.texi: Update.
20446
20447 2007-11-03  Bruno Haible  <bruno@clisp.org>
20448
20449         * modules/frexp-nolibm-tests: New file.
20450
20451         * modules/frexp-nolibm: New file.
20452         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
20453
20454 2007-11-03  Bruno Haible  <bruno@clisp.org>
20455
20456         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
20457         value is C99 compliant.
20458         Needed for OSF/1 5.1.
20459
20460 2007-11-03  Bruno Haible  <bruno@clisp.org>
20461
20462         Fix out-of-memory handling of vasnprintf.
20463         * lib/printf-parse.c: Include <errno.h>.
20464         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
20465         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
20466         is already set.
20467
20468 2007-11-02  Eric Blake  <ebb9@byu.net>
20469
20470         Fix tests on cygwin.
20471         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
20472
20473 2007-11-01  Bruno Haible  <bruno@clisp.org>
20474
20475         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
20476         warning.
20477         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
20478         needed for POSIX compatibility.
20479
20480 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
20481
20482         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
20483         for compatibility with GNU.
20484
20485 2007-11-01  Bruno Haible  <bruno@clisp.org>
20486
20487         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
20488         (putenv): Renamed from rpl_putenv. Change argument type from
20489         'const char *' to 'char *'.
20490         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
20491         of defining putenv in config.h, just set REPLACE_PUTENV.
20492         * modules/putenv (Depends-on): Add stdlib.
20493         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20494         (Include): Use <stdlib.h>.
20495         * lib/stdlib.in.h (putenv): New declaration.
20496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
20497         REPLACE_PUTENV.
20498         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
20499         REPLACE_PUTENV.
20500         Needed for MacOS X 10.5.0.
20501         Reported by Peter O'Gorman <peter@pogma.com>.
20502
20503 2007-11-01  Jim Meyering  <meyering@redhat.com>
20504
20505         Treat an empty date string exactly like "0".
20506         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
20507         if the remaining date string (to be parsed) is empty, use "0".
20508         Reported by Mischa Molhoek and discussed in this thread:
20509         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
20510
20511 2007-10-31  Bruno Haible  <bruno@clisp.org>
20512
20513         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
20514         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
20515         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
20516         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
20517         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
20518         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
20519
20520 2007-10-31  Bruno Haible  <bruno@clisp.org>
20521
20522         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
20523         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
20524         (AC_TYPE_LONG_LONG_INT): Use it.
20525         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
20526         it as well.
20527         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
20528         to m4/longlong.m4.
20529         * modules/stdint (Files): Remove m4/ulonglong.m4.
20530         * modules/strtoull (Files): Use m4/longlong.m4 instead of
20531         m4/ulonglong.m4.
20532         * modules/strtoumax (Files): Likewise.
20533
20534 2007-10-30  Bruno Haible  <bruno@clisp.org>
20535
20536         * modules/xvasprintf-posix: New file.
20537         Suggested by Eric Blake.
20538
20539 2007-10-30  Bruno Haible  <bruno@clisp.org>
20540
20541         * modules/xprintf-posix-tests: New file.
20542         * tests/test-xprintf-posix.sh: New file.
20543         * tests/test-xprintf-posix.c: New file.
20544         * tests/test-xfprintf-posix.c: New file.
20545
20546         * modules/xprintf-posix: New file.
20547
20548 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20549
20550         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
20551         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
20552         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
20553
20554 2007-10-29  Bruno Haible  <bruno@clisp.org>
20555
20556         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
20557         contain the special marker '_cv_'.
20558         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20559         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20560         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20561         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20562         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20563         Reported by Ralf Wildenhues.
20564
20565 2007-10-29  Bruno Haible  <bruno@clisp.org>
20566
20567         * gnulib-tool (func_import): When --lgpl is not specified, set
20568         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
20569         GPLv3.
20570         Reported by Simon Josefsson.
20571
20572 2007-10-28  Bruno Haible  <bruno@clisp.org>
20573
20574         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
20575         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
20576         HAVE_DECL_ISFINITE.
20577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
20578         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
20579         HAVE_DECL_ISFINITE.
20580
20581 2007-10-28  Bruno Haible  <bruno@clisp.org>
20582
20583         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
20584         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
20585
20586 2007-10-28  Bruno Haible  <bruno@clisp.org>
20587
20588         Fix link errors with Sun C 5.0 on Solaris 10.
20589         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
20590         function is declared but not present in the compiler's libm.
20591         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
20592         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
20593         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
20594         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
20595         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
20596         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
20597         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
20598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
20599         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
20600         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
20601         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
20602         HAVE_DECL_FLOORL.
20603
20604 2007-10-28  Bruno Haible  <bruno@clisp.org>
20605
20606         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
20607         gl_FUNC_FLOORL. Cache the result.
20608         (gl_FUNC_FLOORL): Use it.
20609         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
20610         gl_FUNC_CEILL. Cache the result.
20611         (gl_FUNC_CEILL): Use it.
20612
20613         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
20614         gl_FUNC_FLOOR. Cache the result.
20615         (gl_FUNC_FLOOR): Use it.
20616         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
20617         gl_FUNC_CEIL. Cache the result.
20618         (gl_FUNC_CEIL): Use it.
20619
20620         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
20621         gl_FUNC_FLOORF. Cache the result.
20622         (gl_FUNC_FLOORF): Use it.
20623         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
20624         gl_FUNC_CEILF. Cache the result.
20625         (gl_FUNC_CEILF): Use it.
20626
20627 2007-10-28  Bruno Haible  <bruno@clisp.org>
20628
20629         * gnulib-tool: Allow specifying the LGPL version number through
20630         --lgpl=2 or --lgpl=3.
20631         (func_usage): Document --lgpl with argument.
20632         Handle --lgpl=... arguments.
20633         (func_import): Recognize also gl_LGPL calls with an argument. When
20634         --lgpl=2 is used and the module's license is just LGPL, report an
20635         error. Set sed_transform_lib_file according to the lgpl variable. In
20636         the generated files, use --lgpl or gl_LGPL invocations with argument,
20637         if necessary.
20638         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
20639         an LGPv2+ license.
20640         * doc/gnulib-tool.texi (Modified imports): Update explanation of
20641         gl_LGPL macro.
20642
20643 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20644             Bruno Haible  <bruno@clisp.org>
20645
20646         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
20647         (u16_uctomb_aux): Likewise.
20648         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
20649         !HAVE_INLINE.
20650         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
20651
20652 2007-10-28  Bruno Haible  <bruno@clisp.org>
20653
20654         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
20655         Invoke AM_GETTEXT_OPTION if it exists.
20656         * modules/vasprintf: Likewise.
20657         * modules/verror: Likewise.
20658         * modules/xprintf: Likewise.
20659         * modules/xvasprintf: Likewise.
20660
20661 2007-10-27  Ben Pfaff  <blp@gnu.org>
20662
20663         * lib/math.in.h: Define isfinite macro and prototypes for
20664         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
20665         implementations.
20666         * m4/math_h.m4: New substitutions for isfinite module.
20667         * lib/isfinite.c: New file.
20668         * m4/isfinite.m4: New file.
20669         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
20670         * modules/isfinite: New file.
20671         * modules/isfinite-tests: New file.
20672         * tests/tests-isfinite.c: New file.
20673         * doc/functions/isfinite.texi: Mention isfinite module.
20674         * MODULES.html.sh: Mention new module.
20675
20676 2007-10-27  Ben Pfaff  <blp@gnu.org>
20677
20678         Ralf Wildenhues reported that Tru64 4.0D declares the round
20679         functions but does not have definitions.
20680         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
20681         cannot be found in any library, set the output variable to
20682         "missing" instead of "".
20683         * m4/round.m4: Also use our substitute if we cannot find round in
20684         any library, even if it is declared.
20685         * m4/roundf.m4: Likewise for roundf.
20686         * m4/roundl.m4: Likewise for roundl.
20687         * lib/math.in.h: Undefine roundf, round, roundl before defining
20688         their replacements, to allow for hypothetical systems where these
20689         may be defined as macros but not available in libraries.
20690
20691 2007-10-27  Bruno Haible  <bruno@clisp.org>
20692
20693         * doc/gnulib.texi: Invoke @firstparagraphindent.
20694         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
20695         changes in gnulib.
20696         (Source changes): New section.
20697
20698 2007-10-26  Bruno Haible  <bruno@clisp.org>
20699
20700         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
20701         borrowed from autoconf.
20702
20703 2007-10-26  Bruno Haible  <bruno@clisp.org>
20704
20705         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
20706         strerror returned the empty string. Needed on HP-UX 11.00.
20707
20708 2007-10-24  Micah Cowan  <micah@cowan.name>
20709
20710         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
20711         * build-aux/bootstrap: Remove support for now-unnecessary option,
20712         --cvs-user, and envvars CVS_USER, CVS_RSH.
20713
20714 2007-10-24  Jim Meyering  <meyering@redhat.com>
20715
20716         Avoid diagnostics from sha1sum when there is no cached checksum.
20717         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
20718         if the po.s1 file hasn't been created yet.
20719
20720         * build-aux/bootstrap: Sync from coreutils:
20721         2007-10-24  Jim Meyering  <meyering@redhat.com>
20722         Get gnulib from the git repository, not from an obsolete cvs one.
20723         * build-aux/bootstrap: Suggestion from Micah Cowan.
20724         2007-10-04  Jim Meyering  <jim@meyering.net>
20725         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
20726         (update_po_files): Work also when there are no .po files in po/.
20727
20728 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
20729
20730         * README: Append ".git" to git and cg examples.
20731         Problem reported by Benoit Sigoure.
20732
20733 2007-10-23  Micah Cowan  <micah@cowan.name>
20734
20735         * users.txt: Add wget.
20736
20737 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20738
20739         Fix linking of some unistdio tests on FreeBSD.
20740         * modules/unistdio/u16-vsnprintf-tests
20741         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
20742         * modules/unistdio/u16-vsprintf-tests
20743         (test_u16_vsnprintf1_LDADD): Likewise.
20744         * modules/unistdio/u32-vsnprintf-tests
20745         (test_u32_vsnprintf1_LDADD): Likewise.
20746         * modules/unistdio/u32-vsprintf-tests
20747         (test_u32_vsprintf1_LDADD): Likewise.
20748         * modules/unistdio/u8-vsnprintf-tests
20749         (test_u8_vsnprintf1_LDADD): Likewise.
20750         * modules/unistdio/u8-vsprintf-tests
20751         (test_u8_vsprintf1_LDADD): Likewise.
20752         * modules/unistdio/ulc-vsnprintf-tests
20753         (test_ulc_vsnprintf1_LDADD): Likewise.
20754         * modules/unistdio/ulc-vsprintf-tests
20755         (test_ulc_vsprintf1_LDADD): Likewise.
20756
20757         Fix linking of some uniconv tests on FreeBSD.
20758         * modules/uniconv/u16-conv-from-enc-tests
20759         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
20760         * modules/uniconv/u16-conv-to-enc-tests
20761         (test_u16_conv_to_enc_LDADD): Likewise.
20762         * modules/uniconv/u16-strconv-from-enc-tests
20763         (test_u16_strconv_from_enc_LDADD): Likewise.
20764         * modules/uniconv/u16-strconv-to-enc-tests
20765         (test_u16_strconv_to_enc_LDADD): Likewise.
20766         * modules/uniconv/u32-conv-from-enc-tests
20767         (test_u32_conv_from_enc_LDADD): Likewise.
20768         * modules/uniconv/u32-conv-to-enc-tests
20769         (test_u32_conv_to_enc_LDADD): Likewise.
20770         * modules/uniconv/u32-strconv-from-enc-tests
20771         (test_u32_strconv_from_enc_LDADD): Likewise.
20772         * modules/uniconv/u32-strconv-to-enc-tests
20773         (test_u32_strconv_to_enc_LDADD): Likewise.
20774         * modules/uniconv/u8-conv-from-enc-tests
20775         (test_u8_conv_from_enc_LDADD): Likewise.
20776         * modules/uniconv/u8-conv-to-enc-tests
20777         (test_u8_conv_to_enc_LDADD): Likewise.
20778         * modules/uniconv/u8-strconv-from-enc-tests
20779         (test_u8_strconv_from_enc_LDADD): Likewise.
20780         * modules/uniconv/u8-strconv-to-enc-tests
20781         (test_u8_strconv_to_enc_LDADD): Likewise.
20782
20783 2007-10-22  Bruno Haible  <bruno@clisp.org>
20784
20785         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
20786         size.
20787
20788 2007-10-22  Eric Blake  <ebb9@byu.net>
20789
20790         Tweak x*printf documentation.
20791         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
20792         variable name and comments.
20793         Suggested by Bruno Haible.
20794
20795 2007-10-22  Bruno Haible  <bruno@clisp.org>
20796
20797         * lib/acl.c (copy_acl): Fix file name in comment.
20798
20799 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
20800
20801         Fix Tru64 problem with stdbool.h.
20802         * lib/stdbool.in.h (false, true):
20803         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
20804         Don't declare as an enum in this situation; it runs afoul of Tru64.
20805         Problem reported by Steven M. Schweda in
20806         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
20807
20808 2007-10-22  Eric Blake  <ebb9@byu.net>
20809
20810         Also wrap vf?printf.
20811         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
20812         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
20813         (xvprintf, xvfprintf): New functions.
20814
20815 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20816
20817         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
20818         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
20819
20820         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
20821         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
20822
20823 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
20824
20825         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
20826         by Bruno Haible.
20827
20828 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20829
20830         * lib/getloadavg.c
20831         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
20832         Undef `sys' after including sys/table.h, for Tru64 4.0D.
20833
20834         * tests/test-i-ring.c: Work for C89.
20835
20836 2007-10-22  Bruno Haible  <bruno@clisp.org>
20837
20838         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
20839         -1u, in preprocessor expression, so that we don't test for the bug
20840         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
20841         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
20842
20843 2007-10-22  Eric Blake  <ebb9@byu.net>
20844
20845         * tests/test-yesno.sh: Silence stderr during test.
20846
20847 2007-10-22  Simon Josefsson  <simon@josefsson.org>
20848
20849         * modules/crypto/gc-camellia: New file.
20850
20851         * m4/gc-camellia.m4: New file.
20852
20853         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
20854
20855         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
20856
20857 2007-10-22  Simon Josefsson  <simon@josefsson.org>
20858
20859         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
20860         --help to stdout.  Reported by sms@antinode.org (Steven
20861         M. Schweda).
20862
20863 2007-10-22  Simon Josefsson  <simon@josefsson.org>
20864
20865         * users.txt: Fix link to libksba.
20866
20867 2007-10-21  Ben Pfaff  <blp@gnu.org>
20868
20869         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
20870         round.c roundf implementation that depends on floorf and ceilf to
20871         be tested unconditionally.
20872
20873 2007-10-21  Ben Pfaff  <blp@gnu.org>
20874
20875         * m4/check-libm-func.m4: Removed.
20876         * m4/check-math-lib.m4: New file.
20877         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
20878         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
20879         definition and lack of AC_LIBOBJ([roundf]).
20880         * m4/roundl.m4: Ditto, and similarly for roundl.
20881         * modules/round: Reference new m4 file.
20882         * modules/roundf: Ditto.
20883         * modules/roundl: Ditto.
20884         * tests/test-round2.c (main): Use ROUND instead of round.
20885         Bug report from Bruno Haible.
20886
20887 2007-10-21  Bruno Haible  <bruno@clisp.org>
20888
20889         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
20890         context.
20891
20892 2007-10-21  Bruno Haible  <bruno@clisp.org>
20893
20894         * tests/test-wcwidth.c (main): Allow negative result for some control
20895         characters.
20896
20897         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
20898         Needed on OSF/1 5.1.
20899
20900 2007-10-21  Bruno Haible  <bruno@clisp.org>
20901
20902         * tests/test-floorf1.c: Include isnanf.h.
20903         (main): Use isnanf() instead of isnan().
20904         * tests/test-ceilf1.c: Include isnanf.h.
20905         (main): Use isnanf() instead of isnan().
20906         * tests/test-truncf1.c: Include isnanf.h.
20907         (main): Use isnanf() instead of isnan().
20908         * tests/test-roundf1.c: Include isnanf.h.
20909         (main): Use isnanf() instead of isnan().
20910
20911 2007-10-21  Eric Blake  <ebb9@byu.net>
20912
20913         * users.txt: Update URL for m4.
20914
20915 2007-10-21  Bruno Haible  <bruno@clisp.org>
20916
20917         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
20918
20919 2007-10-21  Bruno Haible  <bruno@clisp.org>
20920
20921         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
20922         Git's management files if the CVS files are not present.
20923
20924 2007-10-20  Bruno Haible  <bruno@clisp.org>
20925
20926         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
20927         gcc-3.4.x.
20928
20929 2007-10-20  Ben Pfaff  <blp@gnu.org>
20930
20931         * lib/math.in.h: Declare round, roundf, roundl if we are providing
20932         implementations.
20933         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
20934         * lib/round.c: New file.
20935         * lib/roundf.c: New file.
20936         * lib/roundl.c: New file.
20937         * m4/round.m4: New file.
20938         * m4/roundf.m4: New file.
20939         * m4/roundl.m4: New file.
20940         * m4/check-libm-func-m4: New file.
20941         * modules/math: Replace round, roundf, roundl related @VARS@ in
20942         math.in.h.
20943         * modules/round: New file.
20944         * modules/round-tests: New file.
20945         * modules/roundf: New file.
20946         * modules/roundf-tests: New file.
20947         * modules/roundl: New file.
20948         * modules/roundl-tests: New file.
20949         * tests/test-round1.c: New file.
20950         * tests/test-round2.c: New file.
20951         * tests/test-roundf1.c: New file.
20952         * tests/test-roundf2.c: New file.
20953         * tests/test-roundl.c: New file.
20954         * doc/functions/round.texi: Mention round module.
20955         * doc/functions/roundf.texi: Mention roundf module.
20956         * doc/functions/roundl.texi: Mention roundl module.
20957         * MODULES.html.sh: Mention new modules.
20958         Thanks to Bruno Haible for suggestions.
20959
20960 2007-10-20  Jim Meyering  <meyering@redhat.com>
20961
20962         * lib/xprintf.c: Include <config.h> unconditionally.
20963
20964         Change xprintf's license to GPL.
20965         * modules/xprintf (License): s/LGPL/GPL/, since this module
20966         depends on modules (exit and exitfail) which are GPL.
20967         Suggestion from Bruno Haible.
20968
20969         xprintf fixes.
20970         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
20971         Use a clearer diagnostic.
20972         Patch from Bruno Haible.
20973
20974 2007-10-20  Bruno Haible  <bruno@clisp.org>
20975
20976         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
20977         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
20978         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20979
20980 2007-10-20  Bruno Haible  <bruno@clisp.org>
20981
20982         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
20983         precision in the comparison result > x - 1 or similar.
20984         * tests/test-ceilf2.c (correct_result_p): Likewise.
20985         * tests/test-truncf2.c (correct_result_p): Likewise.
20986         * tests/test-trunc2.c (correct_result_p): Likewise.
20987         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20988
20989 2007-10-20  Bruno Haible  <bruno@clisp.org>
20990
20991         * modules/ceil: New file.
20992         * m4/ceil.m4: New file.
20993         * doc/functions/ceil.texi: Mention the 'ceil' module.
20994
20995 2007-10-20  Bruno Haible  <bruno@clisp.org>
20996
20997         * modules/floor: New file.
20998         * m4/floor.m4: New file.
20999         * doc/functions/floor.texi: Mention the 'floor' module.
21000
21001 2007-10-20  Bruno Haible  <bruno@clisp.org>
21002
21003         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
21004         of %a.
21005         * modules/floorf-tests (Depends-on): Likewise.
21006         * modules/truncf-tests (Depends-on): Likewise.
21007         * modules/trunc-tests (Depends-on): Likewise.
21008         Reported by Ben Pfaff.
21009
21010 2007-10-19  Jim Meyering  <meyering@redhat.com>
21011
21012         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
21013         Don't bother testing specific errno values.  Just test ferror.
21014
21015         New module: xprintf
21016         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
21017
21018 2007-10-19  Bruno Haible  <bruno@clisp.org>
21019
21020         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
21021         syntax.
21022         * modules/javaexec (Makefile.am): Likewise.
21023         * modules/relocatable-prog (Makefile.am): Likewise.
21024         Suggested by Jim Meyering.
21025
21026 2007-10-18  Bruno Haible  <bruno@clisp.org>
21027
21028         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
21029         Reported by Jim Meyering.
21030
21031 2007-10-18  Eric Blake  <ebb9@byu.net>
21032
21033         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
21034
21035 2007-10-18  Bruno Haible  <bruno@clisp.org>
21036
21037         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
21038         the format string into writable memory. Needed in Fortify conditions.
21039
21040 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
21041             Bruno Haible  <bruno@clisp.org>
21042
21043         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
21044         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
21045         * modules/trim (Depends-on): Add mbchar.
21046         (configure.ac): Add gl_FUNC_MBRTOWC.
21047         (Makefile.am): Augment lib_SOURCES.
21048
21049 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
21050
21051         Modify glob.c to use fstatat and dirfd, to simplify it.
21052         Suggested by Eric Blake.
21053         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
21054         Don't include <stdbool.h>; not used.
21055         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
21056         (link_exists_p): Simplify implementation, since we can now assume
21057         dirfd and fstatat.
21058         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
21059
21060 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21061
21062         * gnulib-tool (func_get_dependencies): Fix sed script to
21063         match only tests.
21064
21065 2007-10-17  Bruno Haible  <bruno@clisp.org>
21066
21067         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
21068         allow locale names without encoding suffix.
21069         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21070         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21071
21072 2007-10-16  Bruno Haible  <bruno@clisp.org>
21073
21074         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
21075         * lib/getgroups.c (getgroups): Likewise.
21076         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
21077
21078 2007-10-16  Bruno Haible  <bruno@clisp.org>
21079
21080         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
21081         * modules/malloc-posix (License): Likewise.
21082         * modules/realloc-posix (License): Likewise.
21083         * modules/calloc-posix (License): Likewise.
21084         * modules/intprops (License): Change from GPL to LGPL, with
21085         Paul Eggert's approval.
21086
21087 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21088
21089         Merge glibc changes into lib/glob.c.
21090
21091         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
21092         2007-10-15 04:59:03 UTC.  Here are the changes:
21093
21094         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
21095
21096         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
21097
21098         * lib/glob.c: Add some branch prediction throughout.
21099
21100         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
21101
21102         [BZ #5103]
21103         * lib/glob.c (glob): Recognize patterns starting \/.
21104
21105         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
21106
21107         [BZ #3996]
21108         * lib/glob.c (attribute_hidden): Define if not defined.
21109         (glob): Unescape dirname, filename or username when needed and not
21110         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
21111         is NULL.  Handle unescaped [ in pattern without closing ].
21112         Don't pass GLOB_CHECK down to recursive glob for directories.
21113         (__glob_pattern_type): New function.
21114         (__glob_pattern_p): Implement using __glob_pattern_type.
21115         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
21116         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
21117         Remove unreachable code.
21118
21119         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
21120
21121         * lib/glob.c (glob_in_dir): Add some comments and asserts to
21122         explain why there are no leaks.
21123
21124         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
21125
21126         [BZ #3253]
21127         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
21128         time, rather allocate increasingly bigger arrays of pointers, if
21129         possible with alloca, if too large with malloc.
21130
21131 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21132
21133         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
21134         Problem reported by H.Merijn Brand in
21135         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
21136         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
21137         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
21138
21139 2007-10-15  Bruno Haible  <bruno@clisp.org>
21140
21141         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
21142         with explicit rpl_ prefix.
21143         * lib/fopen.c (fopen): Likewise.
21144         * lib/freopen.c (freopen): Likewise.
21145         * lib/iconv.c (iconv): Likewise.
21146         * lib/iconv_close.c (iconv_close): Likewise.
21147
21148 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21149
21150         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
21151
21152 2007-10-15  Bruno Haible  <bruno@clisp.org>
21153
21154         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
21155         <stddef.h> instead of <stdlib.h> since we only need NULL.
21156         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21157
21158 2007-10-15  Bruno Haible  <bruno@clisp.org>
21159
21160         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
21161         Replace paragraph talking about LIBOBJS.
21162         Reported by Colin Watson <cjwatson@debian.org>.
21163
21164 2007-10-15  Bruno Haible  <bruno@clisp.org>
21165
21166         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
21167         <stdlib.h> before using NULL.
21168
21169 2007-10-15  Simon Josefsson  <simon@josefsson.org>
21170
21171         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
21172         Reported by Albert Chin <china@thewrittenword.com>.
21173
21174 2007-10-14  Bruno Haible  <bruno@clisp.org>
21175
21176         * modules/iconv_open-utf-tests: New file.
21177         * tests/test-iconv-utf.c: New file.
21178
21179         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
21180         * modules/iconv_open-utf: New file.
21181         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
21182         (iconv, iconv_close): New declarations.
21183         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
21184         be defined.
21185         (iconv_open): Add special handling of conversion between UTF-8 and
21186         UTF-{16,32}{BE,LE}.
21187         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
21188         * lib/iconv_close.c: New file.
21189         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
21190         gl_FUNC_ICONV_OPEN.
21191         (gl_FUNC_ICONV_OPEN): Use it.
21192         (gl_FUNC_ICONV_OPEN_UTF): New macro.
21193         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
21194         and REPLACE_ICONV_UTF.
21195         * modules/iconv_open (Depends-on): Add c-strcase.
21196         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
21197         ICONV_CONST.
21198         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
21199
21200 2007-10-13  Albert Chin  <china@thewrittenword.com>
21201             Bruno Haible  <bruno@clisp.org>
21202
21203         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
21204         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
21205
21206 2007-10-13  Bruno Haible  <bruno@clisp.org>
21207
21208         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
21209         defined, use the ISO C99 inline semantics.
21210         * lib/argp.h (ARGP_EI): Likewise.
21211
21212 2007-10-13  Bruno Haible  <bruno@clisp.org>
21213
21214         Handle 'inline' change in gcc 4.3.0.
21215         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
21216         argp_fmtstream_write, argp_fmtstream_set_lmargin,
21217         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
21218         argp_fmtstream_point): Disable 'extern' declaration if the function
21219         definition is going to be provided inline.
21220         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
21221         semantics, not the ISO C99 inline semantics.
21222         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
21223         'extern' declaration if the function definition is going to be provided
21224         inline.
21225         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
21226         the GNU C inline semantics, not the ISO C99 inline semantics. With
21227         GCC 4.2, avoid a warning.
21228
21229 2007-10-13  Bruno Haible  <bruno@clisp.org>
21230
21231         * lib/freading.h (freading): Enable the use of __freading for
21232         glibc >= 2.7.
21233         * lib/freading.c (freading): Likewise.
21234
21235 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21236
21237         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
21238         "warning: C99 inline functions are not supported; using GNU89".
21239
21240 2007-10-12  Bruno Haible  <bruno@clisp.org>
21241
21242         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
21243         of 2.
21244         * tests/test-ceilf2.c: New file.
21245         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
21246
21247         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
21248         * modules/ceilf-tests: Update.
21249
21250 2007-10-12  Bruno Haible  <bruno@clisp.org>
21251
21252         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
21253         of 2.
21254         * tests/test-floorf2.c: New file.
21255         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
21256
21257         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
21258         * modules/floorf-tests: Update.
21259
21260 2007-10-12  Bruno Haible  <bruno@clisp.org>
21261
21262         * tests/test-trunc2.c: New file.
21263         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
21264
21265         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
21266         * modules/trunc-tests: Update.
21267
21268 2007-10-12  Bruno Haible  <bruno@clisp.org>
21269
21270         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
21271         of 2.
21272         * tests/test-truncf2.c: New file.
21273         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
21274
21275         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
21276         * modules/truncf-tests: Update.
21277
21278 2007-10-11  Eric Blake  <ebb9@byu.net>
21279
21280         Don't claim strerror is broken on Interix.
21281         * doc/functions/strerror.texi (strerror): Known broken systems are
21282         now Solaris 8, and not Interix.
21283         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
21284         Interix on cross-compile.
21285         Reported by Martin Koeppe in
21286         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
21287
21288 2007-10-11  Bruno Haible  <bruno@clisp.org>
21289
21290         * modules/i-ring-tests: New file.
21291         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
21292         instead of assert.
21293
21294 2007-10-11  Bruno Haible  <bruno@clisp.org>
21295
21296         * modules/filenamecat-tests: New file.
21297         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
21298         * lib/filenamecat.c: Remove test code.
21299
21300 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21301
21302         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
21303
21304         * lib/strerror.c: Include <string.h> always, to test interface,
21305         and to remove the need for the dummy.
21306         Include intprops.h to compute width instead of doing it ourselves
21307         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
21308         (strerror): Define it to return NULL if there's no system strerror.
21309         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
21310         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
21311         ancient pre-strerror Unix systems well any more.  Saying "unknown
21312         system error" is enough.
21313         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
21314         simpler strerror.c implementation.
21315         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
21316         Simplify the tests to reflect the simpler strerror implementation.
21317         * modules/strerror (Depends-on): Add intprops.
21318
21319 2007-10-09  Eric Blake  <ebb9@byu.net>
21320
21321         Silence test-fpending.
21322         * modules/fpending-tests (Files): Add wrapper script.
21323         * tests/test-fpending.sh: New file.
21324
21325 2007-10-09  Bruno Haible  <bruno@clisp.org>
21326
21327         * MODULES.html.sh (func_module): Don't create a hyperlink for
21328         function names like 'printf_frexp'.
21329         (Misc): Add crc, memxor.
21330         (Characteristics of floating types): New section.
21331         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
21332         isnanf-nolibm, signbit, trunc, truncf, truncl.
21333         (Enhancements for ISO C 99 functions): New subsection Input/output.
21334         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
21335         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
21336         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
21337         (Compatibility checks for POSIX:2001 functions): Add clock-time.
21338         (Enhancements for POSIX:2001 functions): Add chdir-long.
21339         (File system functions): Add areadlink, chdir-safer, read-file.
21340         Remove cycle-check.
21341         (File system as inode set): New section.
21342         (Date and time): Add gethrxtime.
21343         (Multithreading): Add openmp.
21344         (Internationalization functions): Add localename.
21345         (Unicode string functions): Add unistr/u*-mbsnlen.
21346         (Support for maintaining and releasing projects): Add git-version-gen.
21347         (Lone files): Remove directories.
21348
21349 2007-10-08  Ben Pfaff  <blp@gnu.org>
21350
21351         * lib/xmalloca.h: Fix typo in comment.
21352
21353 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
21354
21355         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
21356         when avoiding problems with integer overflow.  Use a portable test
21357         instead.
21358
21359 2007-10-08  Simon Josefsson  <simon@josefsson.org>
21360
21361         * modules/dummy (License): Change to LGPLv2+.
21362         * modules/float (License): Likewise
21363         * modules/realloc (License): Likewise
21364         * modules/stdlib (License): Likewise
21365
21366 2007-10-07  Bruno Haible  <bruno@clisp.org>
21367
21368         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
21369         * floor.c (TWO_MANT_DIG): Likewise.
21370         * ceil.c (TWO_MANT_DIG): Likewise.
21371         Reported by Ben Pfaff.
21372
21373 2007-10-07  Bruno Haible  <bruno@clisp.org>
21374
21375         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
21376         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
21377         * lib/frexp.c (FUNC): Likewise.
21378         * lib/printf-frexp.h (printf_frexp): Likewise.
21379         * lib/printf-frexpl.h (printf_frexpl): Likewise.
21380         * lib/printf-frexp.c (FUNC): Likewise.
21381         Suggested by Jim Meyering.
21382
21383 2007-10-07  Jim Meyering  <meyering@redhat.com>
21384
21385         Make xnanosleep's integer overflow test more robust.
21386         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
21387         so that gcc-4.3.0 doesn't optimize away this test for overflow.
21388
21389 2007-10-07  Bruno Haible  <bruno@clisp.org>
21390
21391         * NEWS: Mention the license change.
21392
21393         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
21394         abbreviations in the modules files.
21395
21396         Change copyright notice from GPLv2+ to GPLv3+.
21397         * README: Change copyright notice.
21398         * MODULES.html.sh: Likewise.
21399         * build-aux/bootstrap.conf: Likewise.
21400         * build-aux/config.libpath: Likewise.
21401         * build-aux/csharpcomp.sh.in: Likewise.
21402         * build-aux/csharpexec.sh.in: Likewise.
21403         * build-aux/install-reloc: Likewise.
21404         * build-aux/javacomp.sh.in: Likewise.
21405         * build-aux/javaexec.sh.in: Likewise.
21406         * build-aux/ldd.sh.in: Likewise.
21407         * build-aux/reloc-ldflags: Likewise.
21408         * build-aux/relocatable.sh.in: Likewise.
21409         * build-aux/x-to-1.in: Likewise.
21410         * check-module: Likewise.
21411         * config/srclistvars.sh: Likewise.
21412         * gnulib-tool: Likewise.
21413         * lib/acl-internal.h: Likewise.
21414         * lib/acl.c: Likewise.
21415         * lib/acl.h: Likewise.
21416         * lib/acl_entries.c: Likewise.
21417         * lib/areadlink-with-size.c: Likewise.
21418         * lib/areadlink.c: Likewise.
21419         * lib/areadlink.h: Likewise.
21420         * lib/argmatch.c: Likewise.
21421         * lib/argmatch.h: Likewise.
21422         * lib/argp-ba.c: Likewise.
21423         * lib/argp-eexst.c: Likewise.
21424         * lib/argp-fmtstream.c: Likewise.
21425         * lib/argp-fmtstream.h: Likewise.
21426         * lib/argp-fs-xinl.c: Likewise.
21427         * lib/argp-help.c: Likewise.
21428         * lib/argp-namefrob.h: Likewise.
21429         * lib/argp-parse.c: Likewise.
21430         * lib/argp-pin.c: Likewise.
21431         * lib/argp-pv.c: Likewise.
21432         * lib/argp-pvh.c: Likewise.
21433         * lib/argp-xinl.c: Likewise.
21434         * lib/argp.h: Likewise.
21435         * lib/at-func.c: Likewise.
21436         * lib/atanl.c: Likewise.
21437         * lib/backupfile.c: Likewise.
21438         * lib/backupfile.h: Likewise.
21439         * lib/basename.c: Likewise.
21440         * lib/binary-io.h: Likewise.
21441         * lib/byteswap.in.h: Likewise.
21442         * lib/c-stack.c: Likewise.
21443         * lib/c-stack.h: Likewise.
21444         * lib/c-strcasestr.c: Likewise.
21445         * lib/c-strcasestr.h: Likewise.
21446         * lib/c-strstr.c: Likewise.
21447         * lib/c-strstr.h: Likewise.
21448         * lib/c-strtod.c: Likewise.
21449         * lib/calloc.c: Likewise.
21450         * lib/canon-host.c: Likewise.
21451         * lib/canon-host.h: Likewise.
21452         * lib/canonicalize-lgpl.c: Likewise.
21453         * lib/canonicalize.c: Likewise.
21454         * lib/canonicalize.h: Likewise.
21455         * lib/ceil.c: Likewise.
21456         * lib/ceilf.c: Likewise.
21457         * lib/ceill.c: Likewise.
21458         * lib/chdir-long.c: Likewise.
21459         * lib/chdir-long.h: Likewise.
21460         * lib/chdir-safer.c: Likewise.
21461         * lib/chdir-safer.h: Likewise.
21462         * lib/chown.c: Likewise.
21463         * lib/classpath.c: Likewise.
21464         * lib/classpath.h: Likewise.
21465         * lib/clean-temp.c: Likewise.
21466         * lib/clean-temp.h: Likewise.
21467         * lib/cloexec.c: Likewise.
21468         * lib/close-stream.c: Likewise.
21469         * lib/closein.c: Likewise.
21470         * lib/closein.h: Likewise.
21471         * lib/closeout.c: Likewise.
21472         * lib/closeout.h: Likewise.
21473         * lib/concat-filename.c: Likewise.
21474         * lib/copy-file.c: Likewise.
21475         * lib/copy-file.h: Likewise.
21476         * lib/count-one-bits.h: Likewise.
21477         * lib/crc.c: Likewise.
21478         * lib/crc.h: Likewise.
21479         * lib/creat-safer.c: Likewise.
21480         * lib/csharpcomp.c: Likewise.
21481         * lib/csharpcomp.h: Likewise.
21482         * lib/csharpexec.c: Likewise.
21483         * lib/csharpexec.h: Likewise.
21484         * lib/cycle-check.c: Likewise.
21485         * lib/cycle-check.h: Likewise.
21486         * lib/diacrit.c: Likewise.
21487         * lib/diacrit.h: Likewise.
21488         * lib/diffseq.h: Likewise.
21489         * lib/dirchownmod.c: Likewise.
21490         * lib/dirent.in.h: Likewise.
21491         * lib/dirfd.c: Likewise.
21492         * lib/dirfd.h: Likewise.
21493         * lib/dirname.c: Likewise.
21494         * lib/dirname.h: Likewise.
21495         * lib/dummy.c: Likewise.
21496         * lib/dup-safer.c: Likewise.
21497         * lib/dup2.c: Likewise.
21498         * lib/eealloc.h: Likewise.
21499         * lib/error.c: Likewise.
21500         * lib/error.h: Likewise.
21501         * lib/euidaccess.c: Likewise.
21502         * lib/exclude.c: Likewise.
21503         * lib/exclude.h: Likewise.
21504         * lib/execute.c: Likewise.
21505         * lib/execute.h: Likewise.
21506         * lib/exitfail.c: Likewise.
21507         * lib/exitfail.h: Likewise.
21508         * lib/expl.c: Likewise.
21509         * lib/fatal-signal.c: Likewise.
21510         * lib/fatal-signal.h: Likewise.
21511         * lib/fbufmode.c: Likewise.
21512         * lib/fbufmode.h: Likewise.
21513         * lib/fchdir.c: Likewise.
21514         * lib/fchmodat.c: Likewise.
21515         * lib/fchownat.c: Likewise.
21516         * lib/fcntl--.h: Likewise.
21517         * lib/fcntl-safer.h: Likewise.
21518         * lib/fcntl.in.h: Likewise.
21519         * lib/fd-safer.c: Likewise.
21520         * lib/fflush.c: Likewise.
21521         * lib/file-has-acl.c: Likewise.
21522         * lib/file-set.c: Likewise.
21523         * lib/file-type.c: Likewise.
21524         * lib/file-type.h: Likewise.
21525         * lib/fileblocks.c: Likewise.
21526         * lib/filemode.c: Likewise.
21527         * lib/filemode.h: Likewise.
21528         * lib/filename.h: Likewise.
21529         * lib/filenamecat.c: Likewise.
21530         * lib/filenamecat.h: Likewise.
21531         * lib/findprog.c: Likewise.
21532         * lib/findprog.h: Likewise.
21533         * lib/float.in.h: Likewise.
21534         * lib/floor.c: Likewise.
21535         * lib/floorf.c: Likewise.
21536         * lib/floorl.c: Likewise.
21537         * lib/fopen-safer.c: Likewise.
21538         * lib/fopen.c: Likewise.
21539         * lib/fpending.c: Likewise.
21540         * lib/fpending.h: Likewise.
21541         * lib/fprintf.c: Likewise.
21542         * lib/fprintftime.h: Likewise.
21543         * lib/fpucw.h: Likewise.
21544         * lib/fpurge.c: Likewise.
21545         * lib/fpurge.h: Likewise.
21546         * lib/freadable.c: Likewise.
21547         * lib/freadable.h: Likewise.
21548         * lib/freadahead.c: Likewise.
21549         * lib/freadahead.h: Likewise.
21550         * lib/freading.c: Likewise.
21551         * lib/freading.h: Likewise.
21552         * lib/free.c: Likewise.
21553         * lib/freopen.c: Likewise.
21554         * lib/frexp.c: Likewise.
21555         * lib/frexpl.c: Likewise.
21556         * lib/fseek.c: Likewise.
21557         * lib/fseterr.c: Likewise.
21558         * lib/fseterr.h: Likewise.
21559         * lib/fstatat.c: Likewise.
21560         * lib/fstrcmp.c: Likewise.
21561         * lib/fstrcmp.h: Likewise.
21562         * lib/fsusage.c: Likewise.
21563         * lib/fsusage.h: Likewise.
21564         * lib/ftell.c: Likewise.
21565         * lib/ftello.c: Likewise.
21566         * lib/fts-cycle.c: Likewise.
21567         * lib/fts.c: Likewise.
21568         * lib/fts_.h: Likewise.
21569         * lib/full-read.c: Likewise.
21570         * lib/full-read.h: Likewise.
21571         * lib/full-write.c: Likewise.
21572         * lib/full-write.h: Likewise.
21573         * lib/fwritable.c: Likewise.
21574         * lib/fwritable.h: Likewise.
21575         * lib/fwriteerror.c: Likewise.
21576         * lib/fwriteerror.h: Likewise.
21577         * lib/fwriting.c: Likewise.
21578         * lib/fwriting.h: Likewise.
21579         * lib/gcd.c: Likewise.
21580         * lib/gcd.h: Likewise.
21581         * lib/getcwd.c: Likewise.
21582         * lib/getdate.h: Likewise.
21583         * lib/getdate.y: Likewise.
21584         * lib/getdomainname.c: Likewise.
21585         * lib/getdomainname.h: Likewise.
21586         * lib/getgroups.c: Likewise.
21587         * lib/gethostname.c: Likewise.
21588         * lib/gethrxtime.c: Likewise.
21589         * lib/gethrxtime.h: Likewise.
21590         * lib/getloadavg.c: Likewise.
21591         * lib/getndelim2.c: Likewise.
21592         * lib/getndelim2.h: Likewise.
21593         * lib/getnline.c: Likewise.
21594         * lib/getnline.h: Likewise.
21595         * lib/getopt.c: Likewise.
21596         * lib/getopt.in.h: Likewise.
21597         * lib/getopt1.c: Likewise.
21598         * lib/getopt_int.h: Likewise.
21599         * lib/getpagesize.h: Likewise.
21600         * lib/getsubopt.c: Likewise.
21601         * lib/gettime.c: Likewise.
21602         * lib/getugroups.c: Likewise.
21603         * lib/getugroups.h: Likewise.
21604         * lib/getusershell.c: Likewise.
21605         * lib/gl_anyavltree_list1.h: Likewise.
21606         * lib/gl_anyavltree_list2.h: Likewise.
21607         * lib/gl_anyhash_list1.h: Likewise.
21608         * lib/gl_anyhash_list2.h: Likewise.
21609         * lib/gl_anylinked_list1.h: Likewise.
21610         * lib/gl_anylinked_list2.h: Likewise.
21611         * lib/gl_anyrbtree_list1.h: Likewise.
21612         * lib/gl_anyrbtree_list2.h: Likewise.
21613         * lib/gl_anytree_list1.h: Likewise.
21614         * lib/gl_anytree_list2.h: Likewise.
21615         * lib/gl_anytree_oset.h: Likewise.
21616         * lib/gl_anytreehash_list1.h: Likewise.
21617         * lib/gl_anytreehash_list2.h: Likewise.
21618         * lib/gl_array_list.c: Likewise.
21619         * lib/gl_array_list.h: Likewise.
21620         * lib/gl_array_oset.c: Likewise.
21621         * lib/gl_array_oset.h: Likewise.
21622         * lib/gl_avltree_list.c: Likewise.
21623         * lib/gl_avltree_list.h: Likewise.
21624         * lib/gl_avltree_oset.c: Likewise.
21625         * lib/gl_avltree_oset.h: Likewise.
21626         * lib/gl_avltreehash_list.c: Likewise.
21627         * lib/gl_avltreehash_list.h: Likewise.
21628         * lib/gl_carray_list.c: Likewise.
21629         * lib/gl_carray_list.h: Likewise.
21630         * lib/gl_linked_list.c: Likewise.
21631         * lib/gl_linked_list.h: Likewise.
21632         * lib/gl_linkedhash_list.c: Likewise.
21633         * lib/gl_linkedhash_list.h: Likewise.
21634         * lib/gl_list.c: Likewise.
21635         * lib/gl_list.h: Likewise.
21636         * lib/gl_oset.c: Likewise.
21637         * lib/gl_oset.h: Likewise.
21638         * lib/gl_rbtree_list.c: Likewise.
21639         * lib/gl_rbtree_list.h: Likewise.
21640         * lib/gl_rbtree_oset.c: Likewise.
21641         * lib/gl_rbtree_oset.h: Likewise.
21642         * lib/gl_rbtreehash_list.c: Likewise.
21643         * lib/gl_rbtreehash_list.h: Likewise.
21644         * lib/gl_sublist.c: Likewise.
21645         * lib/gl_sublist.h: Likewise.
21646         * lib/group-member.c: Likewise.
21647         * lib/group-member.h: Likewise.
21648         * lib/hard-locale.c: Likewise.
21649         * lib/hard-locale.h: Likewise.
21650         * lib/hash-pjw.c: Likewise.
21651         * lib/hash-pjw.h: Likewise.
21652         * lib/hash-triple.c: Likewise.
21653         * lib/hash.c: Likewise.
21654         * lib/hash.h: Likewise.
21655         * lib/human.c: Likewise.
21656         * lib/human.h: Likewise.
21657         * lib/i-ring.c: Likewise.
21658         * lib/i-ring.h: Likewise.
21659         * lib/idcache.c: Likewise.
21660         * lib/imaxabs.c: Likewise.
21661         * lib/imaxdiv.c: Likewise.
21662         * lib/inet_pton.c: Likewise.
21663         * lib/inet_pton.h: Likewise.
21664         * lib/intprops.h: Likewise.
21665         * lib/inttostr.c: Likewise.
21666         * lib/inttostr.h: Likewise.
21667         * lib/inttypes.in.h: Likewise.
21668         * lib/isapipe.c: Likewise.
21669         * lib/isdir.c: Likewise.
21670         * lib/isnan.c: Likewise.
21671         * lib/isnan.h: Likewise.
21672         * lib/isnanf.c: Likewise.
21673         * lib/isnanf.h: Likewise.
21674         * lib/isnanl-nolibm.h: Likewise.
21675         * lib/isnanl.c: Likewise.
21676         * lib/isnanl.h: Likewise.
21677         * lib/javacomp.c: Likewise.
21678         * lib/javacomp.h: Likewise.
21679         * lib/javaexec.c: Likewise.
21680         * lib/javaexec.h: Likewise.
21681         * lib/javaversion.c: Likewise.
21682         * lib/javaversion.h: Likewise.
21683         * lib/javaversion.java: Likewise.
21684         * lib/lbrkprop.h: Likewise.
21685         * lib/lchmod.h: Likewise.
21686         * lib/lchown.c: Likewise.
21687         * lib/ldexpl.c: Likewise.
21688         * lib/linebreak.c: Likewise.
21689         * lib/linebreak.h: Likewise.
21690         * lib/linebuffer.c: Likewise.
21691         * lib/linebuffer.h: Likewise.
21692         * lib/locale.in.h: Likewise.
21693         * lib/logl.c: Likewise.
21694         * lib/long-options.c: Likewise.
21695         * lib/long-options.h: Likewise.
21696         * lib/lstat.c: Likewise.
21697         * lib/lstat.h: Likewise.
21698         * lib/math.in.h: Likewise.
21699         * lib/mbchar.c: Likewise.
21700         * lib/mbchar.h: Likewise.
21701         * lib/mbfile.h: Likewise.
21702         * lib/mbiter.h: Likewise.
21703         * lib/mbscasecmp.c: Likewise.
21704         * lib/mbscasestr.c: Likewise.
21705         * lib/mbschr.c: Likewise.
21706         * lib/mbscspn.c: Likewise.
21707         * lib/mbslen.c: Likewise.
21708         * lib/mbsncasecmp.c: Likewise.
21709         * lib/mbsnlen.c: Likewise.
21710         * lib/mbspbrk.c: Likewise.
21711         * lib/mbspcasecmp.c: Likewise.
21712         * lib/mbsrchr.c: Likewise.
21713         * lib/mbssep.c: Likewise.
21714         * lib/mbsspn.c: Likewise.
21715         * lib/mbsstr.c: Likewise.
21716         * lib/mbstok_r.c: Likewise.
21717         * lib/mbswidth.c: Likewise.
21718         * lib/mbswidth.h: Likewise.
21719         * lib/mbuiter.h: Likewise.
21720         * lib/memcasecmp.c: Likewise.
21721         * lib/memcasecmp.h: Likewise.
21722         * lib/memchr.c: Likewise.
21723         * lib/memcmp.c: Likewise.
21724         * lib/memcoll.c: Likewise.
21725         * lib/memcoll.h: Likewise.
21726         * lib/memcpy.c: Likewise.
21727         * lib/memrchr.c: Likewise.
21728         * lib/mkancesdirs.c: Likewise.
21729         * lib/mkdir-p.c: Likewise.
21730         * lib/mkdir-p.h: Likewise.
21731         * lib/mkdir.c: Likewise.
21732         * lib/mkdirat.c: Likewise.
21733         * lib/mkdtemp.c: Likewise.
21734         * lib/mkstemp-safer.c: Likewise.
21735         * lib/mkstemp.c: Likewise.
21736         * lib/modechange.c: Likewise.
21737         * lib/modechange.h: Likewise.
21738         * lib/mountlist.c: Likewise.
21739         * lib/mountlist.h: Likewise.
21740         * lib/mpsort.c: Likewise.
21741         * lib/nanosleep.c: Likewise.
21742         * lib/obstack.c: Likewise.
21743         * lib/obstack.h: Likewise.
21744         * lib/open-safer.c: Likewise.
21745         * lib/open.c: Likewise.
21746         * lib/openat-die.c: Likewise.
21747         * lib/openat-priv.h: Likewise.
21748         * lib/openat-proc.c: Likewise.
21749         * lib/openat.c: Likewise.
21750         * lib/openat.h: Likewise.
21751         * lib/pagealign_alloc.c: Likewise.
21752         * lib/pagealign_alloc.h: Likewise.
21753         * lib/physmem.c: Likewise.
21754         * lib/physmem.h: Likewise.
21755         * lib/pipe-safer.c: Likewise.
21756         * lib/pipe.c: Likewise.
21757         * lib/pipe.h: Likewise.
21758         * lib/posixtm.c: Likewise.
21759         * lib/posixtm.h: Likewise.
21760         * lib/posixver.c: Likewise.
21761         * lib/printf-frexp.c: Likewise.
21762         * lib/printf-frexp.h: Likewise.
21763         * lib/printf-frexpl.c: Likewise.
21764         * lib/printf-frexpl.h: Likewise.
21765         * lib/printf.c: Likewise.
21766         * lib/progname.c: Likewise.
21767         * lib/progname.h: Likewise.
21768         * lib/progreloc.c: Likewise.
21769         * lib/putenv.c: Likewise.
21770         * lib/quote.c: Likewise.
21771         * lib/quote.h: Likewise.
21772         * lib/quotearg.c: Likewise.
21773         * lib/quotearg.h: Likewise.
21774         * lib/raise.c: Likewise.
21775         * lib/readline.c: Likewise.
21776         * lib/readline.h: Likewise.
21777         * lib/readlink.c: Likewise.
21778         * lib/readtokens.c: Likewise.
21779         * lib/readtokens.h: Likewise.
21780         * lib/readtokens0.c: Likewise.
21781         * lib/readtokens0.h: Likewise.
21782         * lib/readutmp.c: Likewise.
21783         * lib/readutmp.h: Likewise.
21784         * lib/realloc.c: Likewise.
21785         * lib/relocwrapper.c: Likewise.
21786         * lib/rename-dest-slash.c: Likewise.
21787         * lib/rename.c: Likewise.
21788         * lib/rmdir.c: Likewise.
21789         * lib/rpmatch.c: Likewise.
21790         * lib/safe-read.c: Likewise.
21791         * lib/safe-read.h: Likewise.
21792         * lib/safe-write.c: Likewise.
21793         * lib/safe-write.h: Likewise.
21794         * lib/same-inode.h: Likewise.
21795         * lib/same.c: Likewise.
21796         * lib/same.h: Likewise.
21797         * lib/save-cwd.c: Likewise.
21798         * lib/save-cwd.h: Likewise.
21799         * lib/savedir.c: Likewise.
21800         * lib/savedir.h: Likewise.
21801         * lib/savewd.c: Likewise.
21802         * lib/savewd.h: Likewise.
21803         * lib/search.in.h: Likewise.
21804         * lib/setenv.c: Likewise.
21805         * lib/setenv.h: Likewise.
21806         * lib/settime.c: Likewise.
21807         * lib/sh-quote.c: Likewise.
21808         * lib/sh-quote.h: Likewise.
21809         * lib/sig2str.c: Likewise.
21810         * lib/sig2str.h: Likewise.
21811         * lib/signal.in.h: Likewise.
21812         * lib/signbitd.c: Likewise.
21813         * lib/signbitf.c: Likewise.
21814         * lib/signbitl.c: Likewise.
21815         * lib/sigprocmask.c: Likewise.
21816         * lib/sincosl.c: Likewise.
21817         * lib/sleep.c: Likewise.
21818         * lib/sprintf.c: Likewise.
21819         * lib/sqrtl.c: Likewise.
21820         * lib/stat-time.h: Likewise.
21821         * lib/stdio--.h: Likewise.
21822         * lib/stdio-safer.h: Likewise.
21823         * lib/stdlib--.h: Likewise.
21824         * lib/stdlib-safer.h: Likewise.
21825         * lib/stdlib.in.h: Likewise.
21826         * lib/stpcpy.c: Likewise.
21827         * lib/stpncpy.c: Likewise.
21828         * lib/strchrnul.c: Likewise.
21829         * lib/strcspn.c: Likewise.
21830         * lib/strerror.c: Likewise.
21831         * lib/strftime.c: Likewise.
21832         * lib/strftime.h: Likewise.
21833         * lib/striconveh.c: Likewise.
21834         * lib/striconveh.h: Likewise.
21835         * lib/striconveha.c: Likewise.
21836         * lib/striconveha.h: Likewise.
21837         * lib/stripslash.c: Likewise.
21838         * lib/strnlen1.c: Likewise.
21839         * lib/strnlen1.h: Likewise.
21840         * lib/strtod.c: Likewise.
21841         * lib/strtoimax.c: Likewise.
21842         * lib/strtok_r.c: Likewise.
21843         * lib/strtol.c: Likewise.
21844         * lib/strtoll.c: Likewise.
21845         * lib/strtoul.c: Likewise.
21846         * lib/strtoull.c: Likewise.
21847         * lib/sysexits.in.h: Likewise.
21848         * lib/tempname.c: Likewise.
21849         * lib/tempname.h: Likewise.
21850         * lib/timespec.h: Likewise.
21851         * lib/tls.c: Likewise.
21852         * lib/tls.h: Likewise.
21853         * lib/tmpdir.c: Likewise.
21854         * lib/tmpdir.h: Likewise.
21855         * lib/tmpfile-safer.c: Likewise.
21856         * lib/tmpfile.c: Likewise.
21857         * lib/trigl.c: Likewise.
21858         * lib/trigl.h: Likewise.
21859         * lib/trim.c: Likewise.
21860         * lib/trim.h: Likewise.
21861         * lib/trunc.c: Likewise.
21862         * lib/truncf.c: Likewise.
21863         * lib/truncl.c: Likewise.
21864         * lib/tsearch.c: Likewise.
21865         * lib/unicodeio.c: Likewise.
21866         * lib/unicodeio.h: Likewise.
21867         * lib/unistd--.h: Likewise.
21868         * lib/unistd-safer.h: Likewise.
21869         * lib/unistdio/ulc-fprintf.c: Likewise.
21870         * lib/unistdio/ulc-vfprintf.c: Likewise.
21871         * lib/unlinkdir.c: Likewise.
21872         * lib/unlinkdir.h: Likewise.
21873         * lib/unlocked-io.h: Likewise.
21874         * lib/unsetenv.c: Likewise.
21875         * lib/userspec.c: Likewise.
21876         * lib/utime.c: Likewise.
21877         * lib/utimecmp.c: Likewise.
21878         * lib/utimecmp.h: Likewise.
21879         * lib/utimens.c: Likewise.
21880         * lib/verify.h: Likewise.
21881         * lib/verror.c: Likewise.
21882         * lib/verror.h: Likewise.
21883         * lib/version-etc-fsf.c: Likewise.
21884         * lib/version-etc.c: Likewise.
21885         * lib/version-etc.h: Likewise.
21886         * lib/vfprintf.c: Likewise.
21887         * lib/vprintf.c: Likewise.
21888         * lib/vsprintf.c: Likewise.
21889         * lib/w32spawn.h: Likewise.
21890         * lib/wait-process.c: Likewise.
21891         * lib/wait-process.h: Likewise.
21892         * lib/wcwidth.c: Likewise.
21893         * lib/write-any-file.c: Likewise.
21894         * lib/xalloc-die.c: Likewise.
21895         * lib/xalloc.h: Likewise.
21896         * lib/xasprintf.c: Likewise.
21897         * lib/xgetcwd.c: Likewise.
21898         * lib/xgetcwd.h: Likewise.
21899         * lib/xgetdomainname.c: Likewise.
21900         * lib/xgetdomainname.h: Likewise.
21901         * lib/xgethostname.c: Likewise.
21902         * lib/xmalloc.c: Likewise.
21903         * lib/xmalloca.c: Likewise.
21904         * lib/xmalloca.h: Likewise.
21905         * lib/xmemcoll.c: Likewise.
21906         * lib/xnanosleep.c: Likewise.
21907         * lib/xreadlink.c: Likewise.
21908         * lib/xreadlink.h: Likewise.
21909         * lib/xsetenv.c: Likewise.
21910         * lib/xsetenv.h: Likewise.
21911         * lib/xstriconv.c: Likewise.
21912         * lib/xstriconv.h: Likewise.
21913         * lib/xstrndup.c: Likewise.
21914         * lib/xstrndup.h: Likewise.
21915         * lib/xstrtod.c: Likewise.
21916         * lib/xstrtod.h: Likewise.
21917         * lib/xstrtol-error.c: Likewise.
21918         * lib/xstrtol.c: Likewise.
21919         * lib/xstrtol.h: Likewise.
21920         * lib/xtime.h: Likewise.
21921         * lib/xvasprintf.c: Likewise.
21922         * lib/xvasprintf.h: Likewise.
21923         * lib/yesno.c: Likewise.
21924         * lib/yesno.h: Likewise.
21925         * posix-modules: Likewise.
21926         * tests/test-alloca-opt.c: Likewise.
21927         * tests/test-arcfour.c: Likewise.
21928         * tests/test-arctwo.c: Likewise.
21929         * tests/test-argmatch.c: Likewise.
21930         * tests/test-argp-2.sh: Likewise.
21931         * tests/test-argp.c: Likewise.
21932         * tests/test-arpa_inet.c: Likewise.
21933         * tests/test-array_list.c: Likewise.
21934         * tests/test-array_oset.c: Likewise.
21935         * tests/test-atexit.c: Likewise.
21936         * tests/test-avltree_list.c: Likewise.
21937         * tests/test-avltree_oset.c: Likewise.
21938         * tests/test-avltreehash_list.c: Likewise.
21939         * tests/test-base64.c: Likewise.
21940         * tests/test-binary-io.c: Likewise.
21941         * tests/test-byteswap.c: Likewise.
21942         * tests/test-c-ctype.c: Likewise.
21943         * tests/test-c-strcasecmp.c: Likewise.
21944         * tests/test-c-strcasestr.c: Likewise.
21945         * tests/test-c-strncasecmp.c: Likewise.
21946         * tests/test-c-strstr.c: Likewise.
21947         * tests/test-canonicalize-lgpl.c: Likewise.
21948         * tests/test-canonicalize.c: Likewise.
21949         * tests/test-carray_list.c: Likewise.
21950         * tests/test-ceilf.c: Likewise.
21951         * tests/test-ceill.c: Likewise.
21952         * tests/test-count-one-bits.c: Likewise.
21953         * tests/test-crc.c: Likewise.
21954         * tests/test-dirname.c: Likewise.
21955         * tests/test-fbufmode.c: Likewise.
21956         * tests/test-fcntl.c: Likewise.
21957         * tests/test-fflush.c: Likewise.
21958         * tests/test-floorf.c: Likewise.
21959         * tests/test-floorl.c: Likewise.
21960         * tests/test-fopen.c: Likewise.
21961         * tests/test-fprintf-posix.c: Likewise.
21962         * tests/test-fprintf-posix.h: Likewise.
21963         * tests/test-fpurge.c: Likewise.
21964         * tests/test-freadable.c: Likewise.
21965         * tests/test-freadahead.c: Likewise.
21966         * tests/test-freading.c: Likewise.
21967         * tests/test-freopen.c: Likewise.
21968         * tests/test-frexp.c: Likewise.
21969         * tests/test-frexpl.c: Likewise.
21970         * tests/test-fseek.c: Likewise.
21971         * tests/test-fseeko.c: Likewise.
21972         * tests/test-fseterr.c: Likewise.
21973         * tests/test-fstrcmp.c: Likewise.
21974         * tests/test-ftell.c: Likewise.
21975         * tests/test-ftello.c: Likewise.
21976         * tests/test-fwritable.c: Likewise.
21977         * tests/test-fwriting.c: Likewise.
21978         * tests/test-getaddrinfo.c: Likewise.
21979         * tests/test-getpass.c: Likewise.
21980         * tests/test-gettimeofday.c: Likewise.
21981         * tests/test-hmac-md5.c: Likewise.
21982         * tests/test-hmac-sha1.c: Likewise.
21983         * tests/test-iconv.c: Likewise.
21984         * tests/test-iconvme.c: Likewise.
21985         * tests/test-inttypes.c: Likewise.
21986         * tests/test-isnan.c: Likewise.
21987         * tests/test-isnanf.c: Likewise.
21988         * tests/test-isnanl-nolibm.c: Likewise.
21989         * tests/test-isnanl.c: Likewise.
21990         * tests/test-isnanl.h: Likewise.
21991         * tests/test-ldexpl.c: Likewise.
21992         * tests/test-linked_list.c: Likewise.
21993         * tests/test-linkedhash_list.c: Likewise.
21994         * tests/test-locale.c: Likewise.
21995         * tests/test-localename.c: Likewise.
21996         * tests/test-lock.c: Likewise.
21997         * tests/test-lseek.c: Likewise.
21998         * tests/test-malloca.c: Likewise.
21999         * tests/test-math.c: Likewise.
22000         * tests/test-mbscasecmp.c: Likewise.
22001         * tests/test-mbscasestr1.c: Likewise.
22002         * tests/test-mbscasestr2.c: Likewise.
22003         * tests/test-mbscasestr3.c: Likewise.
22004         * tests/test-mbscasestr4.c: Likewise.
22005         * tests/test-mbschr.c: Likewise.
22006         * tests/test-mbscspn.c: Likewise.
22007         * tests/test-mbsncasecmp.c: Likewise.
22008         * tests/test-mbspbrk.c: Likewise.
22009         * tests/test-mbspcasecmp.c: Likewise.
22010         * tests/test-mbsrchr.c: Likewise.
22011         * tests/test-mbsspn.c: Likewise.
22012         * tests/test-mbsstr1.c: Likewise.
22013         * tests/test-mbsstr2.c: Likewise.
22014         * tests/test-mbsstr3.c: Likewise.
22015         * tests/test-md5.c: Likewise.
22016         * tests/test-memmem.c: Likewise.
22017         * tests/test-netinet_in.c: Likewise.
22018         * tests/test-open.c: Likewise.
22019         * tests/test-printf-frexp.c: Likewise.
22020         * tests/test-printf-frexpl.c: Likewise.
22021         * tests/test-printf-posix.c: Likewise.
22022         * tests/test-printf-posix.h: Likewise.
22023         * tests/test-rbtree_list.c: Likewise.
22024         * tests/test-rbtree_oset.c: Likewise.
22025         * tests/test-rbtreehash_list.c: Likewise.
22026         * tests/test-read-file.c: Likewise.
22027         * tests/test-rijndael.c: Likewise.
22028         * tests/test-search.c: Likewise.
22029         * tests/test-signbit.c: Likewise.
22030         * tests/test-sleep.c: Likewise.
22031         * tests/test-snprintf-posix.c: Likewise.
22032         * tests/test-snprintf-posix.h: Likewise.
22033         * tests/test-snprintf.c: Likewise.
22034         * tests/test-sprintf-posix.c: Likewise.
22035         * tests/test-sprintf-posix.h: Likewise.
22036         * tests/test-stat-time.c: Likewise.
22037         * tests/test-stdbool.c: Likewise.
22038         * tests/test-stdint.c: Likewise.
22039         * tests/test-stdio.c: Likewise.
22040         * tests/test-stdlib.c: Likewise.
22041         * tests/test-stpncpy.c: Likewise.
22042         * tests/test-strcasestr.c: Likewise.
22043         * tests/test-striconv.c: Likewise.
22044         * tests/test-striconveh.c: Likewise.
22045         * tests/test-striconveha.c: Likewise.
22046         * tests/test-string.c: Likewise.
22047         * tests/test-sys_select.c: Likewise.
22048         * tests/test-sys_socket.c: Likewise.
22049         * tests/test-sys_stat.c: Likewise.
22050         * tests/test-sys_time.c: Likewise.
22051         * tests/test-sysexits.c: Likewise.
22052         * tests/test-time.c: Likewise.
22053         * tests/test-tls.c: Likewise.
22054         * tests/test-trunc.c: Likewise.
22055         * tests/test-truncf.c: Likewise.
22056         * tests/test-truncl.c: Likewise.
22057         * tests/test-unistd.c: Likewise.
22058         * tests/test-vasnprintf-posix.c: Likewise.
22059         * tests/test-vasnprintf-posix2.c: Likewise.
22060         * tests/test-vasnprintf.c: Likewise.
22061         * tests/test-vasprintf-posix.c: Likewise.
22062         * tests/test-vasprintf.c: Likewise.
22063         * tests/test-verify.c: Likewise.
22064         * tests/test-vfprintf-posix.c: Likewise.
22065         * tests/test-vprintf-posix.c: Likewise.
22066         * tests/test-vsnprintf-posix.c: Likewise.
22067         * tests/test-vsnprintf.c: Likewise.
22068         * tests/test-vsprintf-posix.c: Likewise.
22069         * tests/test-wchar.c: Likewise.
22070         * tests/test-wctype.c: Likewise.
22071         * tests/test-wcwidth.c: Likewise.
22072         * tests/test-xstrtol.c: Likewise.
22073         * tests/test-xvasprintf.c: Likewise.
22074         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
22075         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
22076         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
22077         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
22078         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
22079         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
22080         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
22081         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
22082         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
22083         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
22084         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
22085         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
22086         * tests/uniname/test-uninames.c: Likewise.
22087         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
22088         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
22089         * tests/unistdio/test-u16-printf1.h: Likewise.
22090         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
22091         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
22092         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
22093         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
22094         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
22095         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
22096         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
22097         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
22098         * tests/unistdio/test-u32-printf1.h: Likewise.
22099         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
22100         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
22101         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
22102         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
22103         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
22104         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
22105         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
22106         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
22107         * tests/unistdio/test-u8-printf1.h: Likewise.
22108         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
22109         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
22110         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
22111         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
22112         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
22113         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
22114         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
22115         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
22116         * tests/unistdio/test-ulc-printf1.h: Likewise.
22117         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
22118         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
22119         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
22120         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
22121         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
22122         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
22123         * tests/uniwidth/test-u16-strwidth.c: Likewise.
22124         * tests/uniwidth/test-u16-width.c: Likewise.
22125         * tests/uniwidth/test-u32-strwidth.c: Likewise.
22126         * tests/uniwidth/test-u32-width.c: Likewise.
22127         * tests/uniwidth/test-u8-strwidth.c: Likewise.
22128         * tests/uniwidth/test-u8-width.c: Likewise.
22129         * tests/uniwidth/test-uc_width.c: Likewise.
22130         * config/srclist-update: Likewise.
22131         (fixlicense): Update to GPLv3+.
22132
22133         Change copyright notice from LGPLv2.1+ to LGPLv3+.
22134         * tests/test-tsearch.c: Change copyright notice.
22135
22136         Change copyright notice from LGPLv2.0+ to LGPLv3+.
22137         * lib/c-strcaseeq.h: Change copyright notice.
22138         * lib/streq.h: Likewise.
22139         * lib/uniconv.h: Likewise.
22140         * lib/uniconv/u-conv-from-enc.h: Likewise.
22141         * lib/uniconv/u-conv-to-enc.h: Likewise.
22142         * lib/uniconv/u-strconv-from-enc.h: Likewise.
22143         * lib/uniconv/u-strconv-to-enc.h: Likewise.
22144         * lib/uniconv/u16-conv-from-enc.c: Likewise.
22145         * lib/uniconv/u16-conv-to-enc.c: Likewise.
22146         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
22147         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
22148         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
22149         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
22150         * lib/uniconv/u32-conv-from-enc.c: Likewise.
22151         * lib/uniconv/u32-conv-to-enc.c: Likewise.
22152         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
22153         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
22154         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
22155         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
22156         * lib/uniconv/u8-conv-from-enc.c: Likewise.
22157         * lib/uniconv/u8-conv-to-enc.c: Likewise.
22158         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
22159         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
22160         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
22161         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
22162         * lib/uniname.h: Likewise.
22163         * lib/uniname/uniname.c: Likewise.
22164         * lib/unistdio.h: Likewise.
22165         * lib/unistdio/u-asnprintf.h: Likewise.
22166         * lib/unistdio/u-asprintf.h: Likewise.
22167         * lib/unistdio/u-printf-args.c: Likewise.
22168         * lib/unistdio/u-printf-args.h: Likewise.
22169         * lib/unistdio/u-printf-parse.h: Likewise.
22170         * lib/unistdio/u-snprintf.h: Likewise.
22171         * lib/unistdio/u-sprintf.h: Likewise.
22172         * lib/unistdio/u-vasprintf.h: Likewise.
22173         * lib/unistdio/u-vsnprintf.h: Likewise.
22174         * lib/unistdio/u-vsprintf.h: Likewise.
22175         * lib/unistdio/u16-asnprintf.c: Likewise.
22176         * lib/unistdio/u16-asprintf.c: Likewise.
22177         * lib/unistdio/u16-printf-parse.c: Likewise.
22178         * lib/unistdio/u16-snprintf.c: Likewise.
22179         * lib/unistdio/u16-sprintf.c: Likewise.
22180         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
22181         * lib/unistdio/u16-u16-asprintf.c: Likewise.
22182         * lib/unistdio/u16-u16-snprintf.c: Likewise.
22183         * lib/unistdio/u16-u16-sprintf.c: Likewise.
22184         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
22185         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
22186         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
22187         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
22188         * lib/unistdio/u16-vasnprintf.c: Likewise.
22189         * lib/unistdio/u16-vasprintf.c: Likewise.
22190         * lib/unistdio/u16-vsnprintf.c: Likewise.
22191         * lib/unistdio/u16-vsprintf.c: Likewise.
22192         * lib/unistdio/u32-asnprintf.c: Likewise.
22193         * lib/unistdio/u32-asprintf.c: Likewise.
22194         * lib/unistdio/u32-printf-parse.c: Likewise.
22195         * lib/unistdio/u32-snprintf.c: Likewise.
22196         * lib/unistdio/u32-sprintf.c: Likewise.
22197         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
22198         * lib/unistdio/u32-u32-asprintf.c: Likewise.
22199         * lib/unistdio/u32-u32-snprintf.c: Likewise.
22200         * lib/unistdio/u32-u32-sprintf.c: Likewise.
22201         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
22202         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
22203         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
22204         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
22205         * lib/unistdio/u32-vasnprintf.c: Likewise.
22206         * lib/unistdio/u32-vasprintf.c: Likewise.
22207         * lib/unistdio/u32-vsnprintf.c: Likewise.
22208         * lib/unistdio/u32-vsprintf.c: Likewise.
22209         * lib/unistdio/u8-asnprintf.c: Likewise.
22210         * lib/unistdio/u8-asprintf.c: Likewise.
22211         * lib/unistdio/u8-printf-parse.c: Likewise.
22212         * lib/unistdio/u8-snprintf.c: Likewise.
22213         * lib/unistdio/u8-sprintf.c: Likewise.
22214         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
22215         * lib/unistdio/u8-u8-asprintf.c: Likewise.
22216         * lib/unistdio/u8-u8-snprintf.c: Likewise.
22217         * lib/unistdio/u8-u8-sprintf.c: Likewise.
22218         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
22219         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
22220         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
22221         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
22222         * lib/unistdio/u8-vasnprintf.c: Likewise.
22223         * lib/unistdio/u8-vasprintf.c: Likewise.
22224         * lib/unistdio/u8-vsnprintf.c: Likewise.
22225         * lib/unistdio/u8-vsprintf.c: Likewise.
22226         * lib/unistdio/ulc-asnprintf.c: Likewise.
22227         * lib/unistdio/ulc-asprintf.c: Likewise.
22228         * lib/unistdio/ulc-printf-parse.c: Likewise.
22229         * lib/unistdio/ulc-snprintf.c: Likewise.
22230         * lib/unistdio/ulc-sprintf.c: Likewise.
22231         * lib/unistdio/ulc-vasnprintf.c: Likewise.
22232         * lib/unistdio/ulc-vasprintf.c: Likewise.
22233         * lib/unistdio/ulc-vsnprintf.c: Likewise.
22234         * lib/unistdio/ulc-vsprintf.c: Likewise.
22235         * lib/unistr.h: Likewise.
22236         * lib/unistr/u-cpy-alloc.h: Likewise.
22237         * lib/unistr/u-cpy.h: Likewise.
22238         * lib/unistr/u-endswith.h: Likewise.
22239         * lib/unistr/u-move.h: Likewise.
22240         * lib/unistr/u-set.h: Likewise.
22241         * lib/unistr/u-startswith.h: Likewise.
22242         * lib/unistr/u-stpcpy.h: Likewise.
22243         * lib/unistr/u-stpncpy.h: Likewise.
22244         * lib/unistr/u-strcat.h: Likewise.
22245         * lib/unistr/u-strcpy.h: Likewise.
22246         * lib/unistr/u-strcspn.h: Likewise.
22247         * lib/unistr/u-strdup.h: Likewise.
22248         * lib/unistr/u-strlen.h: Likewise.
22249         * lib/unistr/u-strncat.h: Likewise.
22250         * lib/unistr/u-strncpy.h: Likewise.
22251         * lib/unistr/u-strnlen.h: Likewise.
22252         * lib/unistr/u-strpbrk.h: Likewise.
22253         * lib/unistr/u-strspn.h: Likewise.
22254         * lib/unistr/u-strstr.h: Likewise.
22255         * lib/unistr/u-strtok.h: Likewise.
22256         * lib/unistr/u16-check.c: Likewise.
22257         * lib/unistr/u16-chr.c: Likewise.
22258         * lib/unistr/u16-cmp.c: Likewise.
22259         * lib/unistr/u16-cpy-alloc.c: Likewise.
22260         * lib/unistr/u16-cpy.c: Likewise.
22261         * lib/unistr/u16-endswith.c: Likewise.
22262         * lib/unistr/u16-mblen.c: Likewise.
22263         * lib/unistr/u16-mbsnlen.c: Likewise.
22264         * lib/unistr/u16-mbtouc-aux.c: Likewise.
22265         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
22266         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
22267         * lib/unistr/u16-mbtouc.c: Likewise.
22268         * lib/unistr/u16-mbtoucr.c: Likewise.
22269         * lib/unistr/u16-move.c: Likewise.
22270         * lib/unistr/u16-next.c: Likewise.
22271         * lib/unistr/u16-prev.c: Likewise.
22272         * lib/unistr/u16-set.c: Likewise.
22273         * lib/unistr/u16-startswith.c: Likewise.
22274         * lib/unistr/u16-stpcpy.c: Likewise.
22275         * lib/unistr/u16-stpncpy.c: Likewise.
22276         * lib/unistr/u16-strcat.c: Likewise.
22277         * lib/unistr/u16-strchr.c: Likewise.
22278         * lib/unistr/u16-strcmp.c: Likewise.
22279         * lib/unistr/u16-strcpy.c: Likewise.
22280         * lib/unistr/u16-strcspn.c: Likewise.
22281         * lib/unistr/u16-strdup.c: Likewise.
22282         * lib/unistr/u16-strlen.c: Likewise.
22283         * lib/unistr/u16-strmblen.c: Likewise.
22284         * lib/unistr/u16-strmbtouc.c: Likewise.
22285         * lib/unistr/u16-strncat.c: Likewise.
22286         * lib/unistr/u16-strncmp.c: Likewise.
22287         * lib/unistr/u16-strncpy.c: Likewise.
22288         * lib/unistr/u16-strnlen.c: Likewise.
22289         * lib/unistr/u16-strpbrk.c: Likewise.
22290         * lib/unistr/u16-strrchr.c: Likewise.
22291         * lib/unistr/u16-strspn.c: Likewise.
22292         * lib/unistr/u16-strstr.c: Likewise.
22293         * lib/unistr/u16-strtok.c: Likewise.
22294         * lib/unistr/u16-to-u32.c: Likewise.
22295         * lib/unistr/u16-to-u8.c: Likewise.
22296         * lib/unistr/u16-uctomb-aux.c: Likewise.
22297         * lib/unistr/u16-uctomb.c: Likewise.
22298         * lib/unistr/u32-check.c: Likewise.
22299         * lib/unistr/u32-chr.c: Likewise.
22300         * lib/unistr/u32-cmp.c: Likewise.
22301         * lib/unistr/u32-cpy-alloc.c: Likewise.
22302         * lib/unistr/u32-cpy.c: Likewise.
22303         * lib/unistr/u32-endswith.c: Likewise.
22304         * lib/unistr/u32-mblen.c: Likewise.
22305         * lib/unistr/u32-mbsnlen.c: Likewise.
22306         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
22307         * lib/unistr/u32-mbtouc.c: Likewise.
22308         * lib/unistr/u32-mbtoucr.c: Likewise.
22309         * lib/unistr/u32-move.c: Likewise.
22310         * lib/unistr/u32-next.c: Likewise.
22311         * lib/unistr/u32-prev.c: Likewise.
22312         * lib/unistr/u32-set.c: Likewise.
22313         * lib/unistr/u32-startswith.c: Likewise.
22314         * lib/unistr/u32-stpcpy.c: Likewise.
22315         * lib/unistr/u32-stpncpy.c: Likewise.
22316         * lib/unistr/u32-strcat.c: Likewise.
22317         * lib/unistr/u32-strchr.c: Likewise.
22318         * lib/unistr/u32-strcmp.c: Likewise.
22319         * lib/unistr/u32-strcpy.c: Likewise.
22320         * lib/unistr/u32-strcspn.c: Likewise.
22321         * lib/unistr/u32-strdup.c: Likewise.
22322         * lib/unistr/u32-strlen.c: Likewise.
22323         * lib/unistr/u32-strmblen.c: Likewise.
22324         * lib/unistr/u32-strmbtouc.c: Likewise.
22325         * lib/unistr/u32-strncat.c: Likewise.
22326         * lib/unistr/u32-strncmp.c: Likewise.
22327         * lib/unistr/u32-strncpy.c: Likewise.
22328         * lib/unistr/u32-strnlen.c: Likewise.
22329         * lib/unistr/u32-strpbrk.c: Likewise.
22330         * lib/unistr/u32-strrchr.c: Likewise.
22331         * lib/unistr/u32-strspn.c: Likewise.
22332         * lib/unistr/u32-strstr.c: Likewise.
22333         * lib/unistr/u32-strtok.c: Likewise.
22334         * lib/unistr/u32-to-u16.c: Likewise.
22335         * lib/unistr/u32-to-u8.c: Likewise.
22336         * lib/unistr/u32-uctomb.c: Likewise.
22337         * lib/unistr/u8-check.c: Likewise.
22338         * lib/unistr/u8-chr.c: Likewise.
22339         * lib/unistr/u8-cmp.c: Likewise.
22340         * lib/unistr/u8-cpy-alloc.c: Likewise.
22341         * lib/unistr/u8-cpy.c: Likewise.
22342         * lib/unistr/u8-endswith.c: Likewise.
22343         * lib/unistr/u8-mblen.c: Likewise.
22344         * lib/unistr/u8-mbsnlen.c: Likewise.
22345         * lib/unistr/u8-mbtouc-aux.c: Likewise.
22346         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
22347         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
22348         * lib/unistr/u8-mbtouc.c: Likewise.
22349         * lib/unistr/u8-mbtoucr.c: Likewise.
22350         * lib/unistr/u8-move.c: Likewise.
22351         * lib/unistr/u8-next.c: Likewise.
22352         * lib/unistr/u8-prev.c: Likewise.
22353         * lib/unistr/u8-set.c: Likewise.
22354         * lib/unistr/u8-startswith.c: Likewise.
22355         * lib/unistr/u8-stpcpy.c: Likewise.
22356         * lib/unistr/u8-stpncpy.c: Likewise.
22357         * lib/unistr/u8-strcat.c: Likewise.
22358         * lib/unistr/u8-strchr.c: Likewise.
22359         * lib/unistr/u8-strcmp.c: Likewise.
22360         * lib/unistr/u8-strcpy.c: Likewise.
22361         * lib/unistr/u8-strcspn.c: Likewise.
22362         * lib/unistr/u8-strdup.c: Likewise.
22363         * lib/unistr/u8-strlen.c: Likewise.
22364         * lib/unistr/u8-strmblen.c: Likewise.
22365         * lib/unistr/u8-strmbtouc.c: Likewise.
22366         * lib/unistr/u8-strncat.c: Likewise.
22367         * lib/unistr/u8-strncmp.c: Likewise.
22368         * lib/unistr/u8-strncpy.c: Likewise.
22369         * lib/unistr/u8-strnlen.c: Likewise.
22370         * lib/unistr/u8-strpbrk.c: Likewise.
22371         * lib/unistr/u8-strrchr.c: Likewise.
22372         * lib/unistr/u8-strspn.c: Likewise.
22373         * lib/unistr/u8-strstr.c: Likewise.
22374         * lib/unistr/u8-strtok.c: Likewise.
22375         * lib/unistr/u8-to-u16.c: Likewise.
22376         * lib/unistr/u8-to-u32.c: Likewise.
22377         * lib/unistr/u8-uctomb-aux.c: Likewise.
22378         * lib/unistr/u8-uctomb.c: Likewise.
22379         * lib/unitypes.h: Likewise.
22380         * lib/uniwidth.h: Likewise.
22381         * lib/uniwidth/cjk.h: Likewise.
22382         * lib/uniwidth/u16-strwidth.c: Likewise.
22383         * lib/uniwidth/u16-width.c: Likewise.
22384         * lib/uniwidth/u32-strwidth.c: Likewise.
22385         * lib/uniwidth/u32-width.c: Likewise.
22386         * lib/uniwidth/u8-strwidth.c: Likewise.
22387         * lib/uniwidth/u8-width.c: Likewise.
22388         * lib/uniwidth/width.c: Likewise.
22389
22390 2007-10-07  Bruno Haible  <bruno@clisp.org>
22391
22392         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
22393         The file is still under LGPL (see modules/inttypes).
22394
22395 2007-10-06  Bruno Haible  <bruno@clisp.org>
22396
22397         * modules/trunc (Dependencies): Add 'extensions'.
22398         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
22399         Reported by Ben Pfaff <blp@gnu.org>.
22400
22401 2007-10-06  Bruno Haible  <bruno@clisp.org>
22402
22403         * modules/freopen-tests: New file.
22404         * tests/test-freopen.c: New file.
22405
22406         * modules/fopen-tests: New file.
22407         * tests/test-fopen.c: New file.
22408
22409         * modules/fopen: New file.
22410         * lib/fopen.c: New file.
22411         * m4/fopen.m4: New file.
22412         * modules/freopen: New file.
22413         * lib/freopen.c: New file.
22414         * m4/freopen.m4: New file.
22415         * lib/stdio.in.h (fopen, freopen): New declarations.
22416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
22417         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
22418         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
22419         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
22420         * doc/functions/fopen.texi: Mention the 'fopen' module.
22421         * doc/functions/freopen.texi: Mention the 'freopen' module.
22422
22423 2007-10-06  Bruno Haible  <bruno@clisp.org>
22424
22425         * modules/open-tests: New file.
22426         * tests/test-open.c: New file.
22427
22428         * modules/open: New file.
22429         * lib/open.c: New file.
22430         * m4/open.m4: New file.
22431         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
22432         lib/open.c does.
22433         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
22434         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
22435         macros.
22436         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
22437         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
22438         REPLACE_OPEN.
22439         * doc/functions/open.texi: Mention the 'open' module.
22440
22441 2007-10-04  Bruno Haible  <bruno@clisp.org>
22442
22443         * modules/ceill-tests: New file.
22444         * tests/test-ceill.c: New file.
22445
22446         * modules/ceill: New file.
22447         * lib/ceill.c: Replace entire file.
22448         * m4/ceill.m4: New file.
22449         * lib/math.in.h (ceill): Replace declaration.
22450         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
22451         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
22452         * doc/functions/ceill.texi: Mention the 'ceill' module.
22453         * modules/mathl (Files): Remove lib/ceill.c.
22454         (Depends-on): Add ceill.
22455
22456 2007-10-04  Bruno Haible  <bruno@clisp.org>
22457
22458         * modules/ceilf-tests: New file.
22459         * tests/test-ceilf.c: New file.
22460
22461         * modules/ceilf: New file.
22462         * lib/ceil.c: New file.
22463         * lib/ceilf.c: New file.
22464         * m4/ceilf.m4: New file.
22465         * lib/math.in.h (ceilf): New declaration.
22466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
22467         HAVE_DECL_CEILF.
22468         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
22469         HAVE_DECL_CEILF.
22470         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
22471
22472 2007-10-04  Bruno Haible  <bruno@clisp.org>
22473
22474         * modules/floorl-tests: New file.
22475         * tests/test-floorl.c: New file.
22476
22477         * modules/floorl: New file.
22478         * lib/floorl.c: Replace entire file.
22479         * m4/floorl.m4: New file.
22480         * lib/math.in.h (floorl): Replace declaration.
22481         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
22482         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
22483         * doc/functions/floorl.texi: Mention the 'floorl' module.
22484         * modules/mathl (Files): Remove lib/floorl.c.
22485         (Depends-on): Add floorl.
22486
22487 2007-10-04  Bruno Haible  <bruno@clisp.org>
22488
22489         * modules/floorf-tests: New file.
22490         * tests/test-floorf.c: New file.
22491
22492         * modules/floorf: New file.
22493         * lib/floor.c: New file.
22494         * lib/floorf.c: New file.
22495         * m4/floorf.m4: New file.
22496         * lib/math.in.h (floorf): New declaration.
22497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
22498         HAVE_DECL_FLOORF.
22499         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
22500         HAVE_DECL_FLOORF.
22501         * doc/functions/floorf.texi: Mention the 'floorf' module.
22502
22503 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
22504             Bruno Haible  <bruno@clisp.org>
22505
22506         Advertise for the Git server instead of the CVS server.
22507         * doc/gnulib-intro.texi (Steady Development): Mention the Git
22508         repository instead of the CVS one.
22509         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
22510         about all VCS systems generically.
22511         * doc/gnulib.texi (Introduction): Capitalize `Git'.
22512
22513 2007-10-04  Bruno Haible  <bruno@clisp.org>
22514
22515         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
22516         means.
22517         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
22518
22519 2007-10-04  Bruno Haible  <bruno@clisp.org>
22520
22521         * modules/truncl-tests: New file.
22522         * tests/test-truncl.c: New file.
22523
22524         * modules/truncl: New file.
22525         * lib/truncl.c: New file.
22526         * m4/truncl.m4: New file.
22527         * lib/math.in.h (truncl): New declaration.
22528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
22529         HAVE_DECL_TRUNCL.
22530         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
22531         HAVE_DECL_TRUNCL.
22532         * doc/functions/truncl.texi: Mention the 'truncl' module.
22533
22534 2007-10-04  Bruno Haible  <bruno@clisp.org>
22535
22536         * modules/truncf-tests: New file.
22537         * tests/test-truncf.c: New file.
22538
22539         * modules/truncf: New file.
22540         * lib/trunc.c: Make paramerizable through USE_* macros.
22541         * lib/truncf.c: New file.
22542         * m4/truncf.m4: New file.
22543         * lib/math.in.h (truncf): New declaration.
22544         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
22545         HAVE_DECL_TRUNCF.
22546         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
22547         HAVE_DECL_TRUNCF.
22548         * doc/functions/truncf.texi: Mention the 'truncf' module.
22549
22550 2007-10-03  Bruno Haible  <bruno@clisp.org>
22551
22552         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
22553         augmentation also for tests modules.
22554         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
22555         * modules/atexit-tests (Makefile.am): Likewise.
22556         * modules/binary-io-tests (Makefile.am): Likewise.
22557         * modules/c-strcase-tests (Makefile.am): Likewise.
22558         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
22559         * modules/canonicalize-tests (Makefile.am): Likewise.
22560         * modules/closein-tests (Makefile.am): Likewise.
22561         * modules/fprintf-posix-tests (Makefile.am): Likewise.
22562         * modules/freadahead-tests (Makefile.am): Likewise.
22563         * modules/fseek-tests (Makefile.am): Likewise.
22564         * modules/fseeko-tests (Makefile.am): Likewise.
22565         * modules/ftell-tests (Makefile.am): Likewise.
22566         * modules/ftello-tests (Makefile.am): Likewise.
22567         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
22568         * modules/isnanl-tests (Makefile.am): Likewise.
22569         * modules/lseek-tests (Makefile.am): Likewise.
22570         * modules/mbscasecmp-tests (Makefile.am): Likewise.
22571         * modules/mbscasestr-tests (Makefile.am): Likewise.
22572         * modules/mbschr-tests (Makefile.am): Likewise.
22573         * modules/mbscspn-tests (Makefile.am): Likewise.
22574         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
22575         * modules/mbspbrk-tests (Makefile.am): Likewise.
22576         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
22577         * modules/mbsrchr-tests (Makefile.am): Likewise.
22578         * modules/mbsspn-tests (Makefile.am): Likewise.
22579         * modules/mbsstr-tests (Makefile.am): Likewise.
22580         * modules/printf-posix-tests (Makefile.am): Likewise.
22581         * modules/snprintf-posix-tests (Makefile.am): Likewise.
22582         * modules/sprintf-posix-tests (Makefile.am): Likewise.
22583         * modules/tsearch-tests (Makefile.am): Likewise.
22584         * modules/uniname/uniname-tests (Makefile.am): Likewise.
22585         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
22586         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
22587         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
22588         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
22589         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
22590         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
22591         * modules/vprintf-posix-tests (Makefile.am): Likewise.
22592         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
22593         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
22594         * modules/xstrtoimax-tests (Makefile.am): Likewise.
22595         * modules/xstrtol-tests (Makefile.am): Likewise.
22596         * modules/xstrtoumax-tests (Makefile.am): Likewise.
22597         * modules/yesno-tests (Makefile.am): Likewise.
22598
22599 2007-10-03  Bruno Haible  <bruno@clisp.org>
22600
22601         * modules/trunc-tests: New file.
22602         * tests/test-trunc.c: New file.
22603
22604         * modules/trunc: New file.
22605         * lib/trunc.c: New file.
22606         * m4/trunc.m4: New file.
22607         * lib/math.in.h (trunc): New declaration.
22608         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
22609         HAVE_DECL_TRUNC.
22610         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
22611         HAVE_DECL_TRUNC.
22612         * doc/functions/trunc.texi: Mention the 'trunc' module.
22613
22614 2007-10-03  Bruno Haible  <bruno@clisp.org>
22615
22616         * tests/test-fpending.c: New file, mostly copied
22617         from coreutils/lib/t-fpending.c.
22618         * modules/fpending-tests: New file.
22619
22620 2007-10-03  Bruno Haible  <bruno@clisp.org>
22621
22622         Port the stdio extensions to QNX (untested).
22623         * lib/fseterr.c (fseterr): Add support for QNX.
22624         * lib/fbufmode.c (fbufmode): Likewise.
22625         * lib/freadable.c (freadable): Likewise.
22626         * lib/fwritable.c (fwritable): Likewise.
22627         * lib/freading.c (freading): Likewise.
22628         * lib/fwriting.c (fwriting): Likewise.
22629         * lib/freadahead.c (freadahed): Likewise.
22630         * lib/fpurge.c (fpurge): Likewise.
22631         * lib/fseeko.c (rpl_fseeko): Likewise.
22632
22633 2007-10-03  Bruno Haible  <bruno@clisp.org>
22634             Jim Meyering  <jim@meyering.net>
22635             Eric Blake  <ebb9@byu.net>
22636
22637         * doc/relocatable.texi: Use @command instead of @program.
22638
22639 2007-10-02  Jim Meyering  <jim@meyering.net>
22640
22641         Perform one more "_.h" -> ".in.h" substitution.
22642         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
22643         instead of unistd_.h here, too.
22644
22645 2007-10-01  Bruno Haible  <bruno@clisp.org>
22646
22647         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
22648         Needed for the alloca-opt module.
22649
22650 2007-09-30  Bruno Haible  <bruno@clisp.org>
22651
22652         * lib/alloca.in.h: Renamed from lib/alloca_.h.
22653         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
22654         alloca_.h.
22655         * lib/argz.in.h: Renamed from lib/argz_.h.
22656         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
22657         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
22658         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
22659         byteswap_.h.
22660         * lib/dirent.in.h: Renamed from lib/dirent_.h.
22661         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
22662         dirent_.h.
22663         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
22664         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
22665         fcntl_.h.
22666         * lib/float.in.h: Renamed from lib/float_.h.
22667         * modules/float (Files, Makefile.am): Use float.in.h instead of
22668         float_.h.
22669         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
22670         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
22671         fnmatch_.h.
22672         * lib/getopt.in.h: Renamed from lib/getopt_.h.
22673         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
22674         getopt_.h.
22675         * lib/glob.in.h: Renamed from lib/glob_.h.
22676         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
22677         * lib/iconv.in.h: Renamed from lib/iconv_.h.
22678         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
22679         iconv_.h.
22680         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
22681         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
22682         inttypes_.h.
22683         * lib/locale.in.h: Renamed from lib/locale_.h.
22684         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
22685         locale_.h.
22686         * lib/math.in.h: Renamed from lib/math_.h.
22687         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
22688         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
22689         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
22690         of netinet_in_.h. Add dependency.
22691         * lib/poll.in.h: Renamed from lib/poll_.h.
22692         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
22693         * lib/search.in.h: Renamed from lib/search_.h.
22694         * modules/search (Files, Makefile.am): Use search.in.h instead of
22695         search_.h.
22696         * lib/signal.in.h: Renamed from lib/signal_.h.
22697         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
22698         _signal.h.
22699         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
22700         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
22701         stdbool_.h.
22702         * lib/stdint.in.h: Renamed from lib/stdint_.h.
22703         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
22704         stdint_.h.
22705         * lib/stdio.in.h: Renamed from lib/stdio_.h.
22706         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
22707         stdio_.h.
22708         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
22709         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
22710         stdlib_.h.
22711         * lib/string.in.h: Renamed from lib/string_.h.
22712         * modules/string (Files, Makefile.am): Use string.in.h instead of
22713         string_.h.
22714         * doc/gnulib-tool.texi (Initial import): Update.
22715         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
22716         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
22717         of sys_select_.h. Add dependency.
22718         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
22719         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
22720         of sys_socket_.h.
22721         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
22722         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
22723         sys_stat_.h.
22724         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
22725         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
22726         sys_time_.h.
22727         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
22728         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
22729         sysexits_.h.
22730         * lib/time.in.h: Renamed from lib/time_.h.
22731         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
22732         * lib/unistd.in.h: Renamed from lib/unistd_.h.
22733         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
22734         unistd_.h.
22735         * lib/wchar.in.h: Renamed from lib/wchar_.h.
22736         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
22737         wchar_.h.
22738         * lib/wctype.in.h: Renamed from lib/wctype_.h.
22739         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
22740         wctype_.h.
22741         * build-aux/bootstrap (slurp): Update.
22742         * lib/.cppi-disable: Update.
22743
22744 2007-09-30  Bruno Haible  <bruno@clisp.org>
22745
22746         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
22747         Needed on BeOS.
22748
22749 2007-09-30  Bruno Haible  <bruno@clisp.org>
22750
22751         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
22752
22753 2007-09-29  Bruno Haible  <bruno@clisp.org>
22754
22755         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
22756
22757 2007-09-29  Bruno Haible  <bruno@clisp.org>
22758
22759         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
22760         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
22761         * build-aux/install-reloc: Compile also areadlink.c.
22762         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
22763
22764 2007-09-29  Bruno Haible  <bruno@clisp.org>
22765
22766         * gnulib-tool (func_emit_initmacro_done): Indentation.
22767
22768 2007-09-29  Bruno Haible  <bruno@clisp.org>
22769
22770         * README: Add CVS checkout update instructions.
22771         Info from Bob Proulx <bob@proulx.com>.
22772
22773 2007-09-28  Eric Blake  <ebb9@byu.net>
22774
22775         Provide move-if-change.
22776         * build-aux/move-if-change: New file, based on best practice
22777         rather than any canonical upstream location.
22778
22779 2007-09-28  Jim Meyering  <jim@meyering.net>
22780
22781         Fix canonicalize loop-detection corner case.
22782         Do not attempt to stat the symlink values stored via seen_triple.
22783         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
22784         on linux-2.6.18, (but not 2.6.22).
22785         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
22786         triple_compare.  The former compares dev,ino,filename, while the latter
22787         would actually stat dirname(filename) when dev and ino were equal.
22788         * lib/hash-triple.c: Install <string.h>.
22789         (STREQ): Define.
22790         (triple_compare_ino_str): New function.
22791         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
22792
22793 2007-09-28  Eric Blake  <ebb9@byu.net>
22794
22795         Enforce that AC_REPLACE_FUNCS files exist.
22796         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
22797         override check for typos.
22798
22799         Fix test-closein on Solaris 10.
22800         * tests/test-closein.c (main): Don't assume stdin can be inherited
22801         closed on all systems.
22802         * tests/test-closein.sh: Likewise.
22803         Reported by Piotr Tarnowski.
22804
22805 2007-09-28  Jim Meyering  <jim@meyering.net>
22806
22807         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
22808
22809 2007-09-27  Jim Meyering  <jim@meyering.net>
22810
22811         canonicalize: Avoid a false-positive cycle failure.
22812         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
22813         Sort.  Remove cycle-check.
22814         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
22815         not cycle-check.h.
22816         (seen_triple): New function.
22817         (canonicalize_filename_mode): Use it instead of cycle-check.
22818         * tests/test-canonicalize.c: Add a test for this bug.
22819         * tests/test-canonicalize.sh: Set up and run the test.
22820
22821         New module, file-set, from coreutils.
22822         * modules/file-set: Define it.
22823         * lib/file-set.c, lib/file-set.h: Implement.
22824
22825         New module, hash-triple, from coreutils.
22826         * modules/hash-triple: Define it.
22827         * lib/hash-triple.c, lib/hash-triple.h: Implement.
22828
22829 2007-09-25  Eric Blake  <ebb9@byu.net>
22830
22831         Fix strerror on Interix.
22832         * lib/string_.h (strerror): Declare replacement.
22833         * doc/functions/strerror.texi (strerror): Document the Interix
22834         shortcoming.
22835         * modules/string (Makefile.am): Support new hooks.
22836         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
22837         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
22838         gl_FUNC_STRERROR_SEPARATE.
22839         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
22840         * lib/strerror.c (rpl_strerror): Provide replacement.
22841         * modules/strerror (Depends-on): Add string.
22842         (configure.ac): Detect use of module.
22843         * tests/test-strerror.c: New file.
22844         * modules/strerror-tests: New test module.
22845         * modules/argp (Depends-on): Add strerror.
22846         * modules/error (Depends-on): Likewise.
22847         Reported by Martin Koeppe.
22848
22849 2007-09-24  Bruno Haible  <bruno@clisp.org>
22850
22851         * README: Update git instructions.
22852
22853 2007-09-24  Eric Blake  <ebb9@byu.net>
22854
22855         Revert fpending breakage from 2007-09-08.
22856         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
22857         __fpending.c.
22858
22859 2007-09-24  Jim Meyering  <jim@meyering.net>
22860
22861         filenamecat.c: Add a test.
22862         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
22863         showing how the function works when DIR is the empty string.
22864
22865 2007-09-21  Simon Josefsson  <simon@josefsson.org>
22866
22867         * tests/test-canonicalize.sh: Turn on executable bit.
22868
22869 2007-09-19  Eric Blake  <ebb9@byu.net>
22870
22871         * README: Update CVS instructions.
22872
22873 2007-09-18  Bruno Haible  <bruno@clisp.org>
22874
22875         * modules/areadlink: New file.
22876         * lib/areadlink.h (areadlink): New declaration.
22877         * lib/areadlink.c: New file, based on lib/xreadlink.c.
22878
22879 2007-09-17  Jim Meyering  <jim@meyering.net>
22880
22881         * lib/savewd.c (ESTALE) [!defined]: Define.
22882         Reported to be required on Interix by Martin Koeppe.
22883
22884 2007-09-17  Bruno Haible  <bruno@clisp.org>
22885
22886         * gnulib-tool (func_version): Use $version.
22887
22888 2007-09-16  Bruno Haible  <bruno@clisp.org>
22889
22890         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
22891         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
22892         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
22893         Reported by Greg Schafer <gschafer@zip.com.au>.
22894
22895 2007-09-15  Bruno Haible  <bruno@clisp.org>
22896
22897         * gnulib-tool (sed): Try a little harder to make bash understand the
22898         alias.
22899         Reported by Bruce Korb <bruce.korb@gmail.com>.
22900
22901 2007-09-13  Eric Blake  <ebb9@byu.net>
22902
22903         * ChangeLog: Remove conflict markers.
22904
22905 2007-09-13  Simon Josefsson  <simon@josefsson.org>
22906
22907         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
22908         Reported by Bruno Haible <bruno@clisp.org>.
22909
22910 2007-09-12  Bruno Haible  <bruno@clisp.org>
22911
22912         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
22913         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
22914         is not defined.
22915
22916 2007-09-12  Eric Blake  <ebb9@byu.net>
22917
22918         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
22919         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
22920         Autoconf definition.
22921         * modules/euidaccess (Depends-on): Add extensions, for
22922         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
22923         * modules/fnmatch (Depends-on): Likewise.
22924         * modules/getaddrinfo (Depends-on): Likewise.
22925         * modules/getdelim (Depends-on): Likewise.
22926         * modules/getline (Depends-on): Likewise.
22927         * modules/getsubopt (Depends-on): Likewise.
22928         * modules/gettext (Depends-on): Likewise.
22929         * modules/group-member (Depends-on): Likewise.
22930         * modules/mbchar (Depends-on): Likewise.
22931         * modules/memmem (Depends-on): Likewise.
22932         * modules/mempcpy (Depends-on): Likewise.
22933         * modules/memrchr (Depends-on): Likewise.
22934         * modules/pagealign_alloc (Depends-on): Likewise.
22935         * modules/readutmp (Depends-on): Likewise.
22936         * modules/stpcpy (Depends-on): Likewise.
22937         * modules/stpncpy (Depends-on): Likewise.
22938         * modules/strchrnul (Depends-on): Likewise.
22939         * modules/strndup (Depends-on): Likewise.
22940         * modules/strsep (Depends-on): Likewise.
22941         * modules/strverscmp (Depends-on): Likewise.
22942         * modules/vasprintf (Depends-on): Likewise.
22943         * modules/wcwidth (Depends-on): Likewise.
22944         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
22945         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
22946         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
22947         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
22948         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22949         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22950         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
22951         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
22952         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
22953         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
22954         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22955         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
22956         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
22957         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
22958         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
22959         * m4/readutmp.m4 (gl_READUTMP): Likewise.
22960         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
22961         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
22962         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22963         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
22964         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
22965         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
22966         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
22967         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
22968         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
22969         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22970         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
22971         so that lock.m4 can be used in gettext without extensions module.
22972
22973 2007-09-11  Bruno Haible  <bruno@clisp.org>
22974
22975         * m4/isc-posix.m4: Remove file.
22976         Suggested by Eric Blake.
22977
22978 2007-09-11  Eric Blake  <ebb9@byu.net>
22979
22980         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
22981
22982 2007-09-10  Bruno Haible  <bruno@clisp.org>
22983
22984         * posix-modules: Fix typo in error message.
22985         Reported by Matt <mkraai@beckman.com>.
22986
22987 2007-09-09  Bruno Haible  <bruno@clisp.org>
22988
22989         * doc/functions/getdelim.texi: Update list of platforms lacking the
22990         function.
22991         * doc/functions/getline.texi: Likewise.
22992
22993 2007-09-09  Jim Meyering  <jim@meyering.net>
22994
22995         * lib/hash.c (hash_initialize): Detect calloc failure.
22996         Reported by Bruno Haible.
22997
22998 2007-09-09  Bruno Haible  <bruno@clisp.org>
22999
23000         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
23001         malloc or realloc fails.
23002
23003 2007-09-09  Bruno Haible  <bruno@clisp.org>
23004
23005         * modules/getcwd (Depends-on): Add malloc-posix.
23006         * modules/glob (Depends-on): Likewise.
23007         * modules/putenv (Depends-on): Likewise.
23008         * modules/strdup (Depends-on): Likewise.
23009         * modules/getdelim (Depends-on): Add realloc-posix.
23010         * modules/read-file (Depends-on): Likewise.
23011
23012 2007-09-09  Bruno Haible  <bruno@clisp.org>
23013
23014         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
23015         (gl_FUNC_MALLOC_POSIX): Require it.
23016         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
23017         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
23018         * modules/realloc (Files): Add m4/malloc.m4.
23019         * modules/calloc (Files): Likewise.
23020
23021 2007-09-09  Bruno Haible  <bruno@clisp.org>
23022
23023         * modules/malloc-posix: New file.
23024         * modules/malloc (Depends-on): Add malloc-posix.
23025         * lib/malloc.c: Include errno.h.
23026         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
23027         and a POSIX-compatible malloc into a single function. Set ENOMEM
23028         when returning NULL.
23029         * m4/malloc.m4: New file.
23030         * doc/functions/malloc.texi: Mention the malloc-posix module.
23031         * lib/stdlib_.h (malloc): New declaration.
23032         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
23033         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
23034         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
23035         and HAVE_MALLOC_POSIX.
23036
23037 2007-09-09  Bruno Haible  <bruno@clisp.org>
23038
23039         * modules/realloc-posix: New file.
23040         * modules/realloc (Depends-on): Add realloc-posix.
23041         * lib/realloc.c: Include errno.h.
23042         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
23043         and a POSIX-compatible realloc into a single function. Set ENOMEM
23044         when returning NULL.
23045         * m4/realloc.m4: New file.
23046         * doc/functions/realloc.texi: Mention the realloc-posix module.
23047         * lib/stdlib_.h (realloc): New declaration.
23048         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
23049         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
23050         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
23051         and HAVE_REALLOC_POSIX.
23052
23053 2007-09-09  Bruno Haible  <bruno@clisp.org>
23054
23055         * modules/calloc-posix: New file.
23056         * modules/calloc (Depends-on): Add calloc-posix.
23057         * lib/calloc.c: Include errno.h.
23058         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
23059         and a POSIX-compatible calloc into a single function. Set ENOMEM
23060         when returning NULL.
23061         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
23062         * doc/functions/calloc.texi: Mention the calloc-posix module.
23063         * lib/stdlib_.h (calloc): New declaration.
23064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
23065         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
23066         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
23067         and HAVE_CALLOC_POSIX.
23068
23069 2007-09-09  Bruno Haible  <bruno@clisp.org>
23070
23071         Allow for modules to show an arbitrary notice.
23072         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
23073         * gnulib-tool: New option --extract-notice.
23074         (func_usage): Document it.
23075         (sed_extract_prog): Update.
23076         (func_get_notice): New function.
23077         (func_modules_notice): New function.
23078         (func_import, func_create_testdir): Invoke it.
23079         Suggested by Jim Meyering.
23080
23081 2007-09-09  Bruno Haible  <bruno@clisp.org>
23082
23083         * gnulib-tool: New options --verbose, --quiet.
23084         (func_usage): Document them.
23085         (verbose): New variable.
23086         (func_execute_command): New function.
23087         (func_import): Don't show the module list and the file list if
23088         $verbose < 0.
23089         (func_create_testdir): Likewise. Use func_execute_command.
23090         (func_create_megatestdir): Use func_execute_command.
23091
23092 2007-09-08  Bruno Haible  <bruno@clisp.org>
23093
23094         * gnulib-tool (func_import): Prefer rsync over wget when available,
23095         for fetching the PO files.
23096
23097 2007-09-08  Bruno Haible  <bruno@clisp.org>
23098
23099         * posix-modules: New file. Portions copied from gnulib-tool.
23100         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
23101
23102 2007-09-08  Jim Meyering  <jim@meyering.net>
23103
23104         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
23105         * lib/fpending.h: Rename from __fpending.h.
23106         * lib/fpending.c: Rename from __fpending.c.
23107         Include "fpending.h", not "__fpending.h".
23108         * lib/__fpending.h, lib/__fpending.c: Remove files.
23109         * modules/fpending (Files): Reflect new file names.
23110         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
23111
23112 2007-09-08  Bruno Haible  <bruno@clisp.org>
23113
23114         * m4/inttypes-h.m4: Remove stub file.
23115
23116 2007-09-07  Simon Josefsson  <simon@josefsson.org>
23117
23118         * doc/headers/stdint.texi: Discuss #include_next issue.
23119
23120 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
23121
23122         * build-aux/bootstrap: Remove obsolete comment about wget --help.
23123
23124 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23125
23126         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
23127         in variable name.
23128
23129 2007-09-03  Jim Meyering  <jim@meyering.net>
23130
23131         New module: git-version-gen.
23132         * modules/git-version-gen: New file.
23133
23134         Import changes from coreutils for bootstrap script.
23135
23136         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
23137
23138         bootstrap: uses rsync to download the .po files
23139         * build-aux/bootstrap (po_download_command_format): New global.
23140         (download_po_files): Use rsync.
23141         (update_po_files): Don't remove .po files after download,
23142         so future rsync runs can take advantage of the copies.
23143
23144         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
23145
23146         Solve the unnecessary-.po-file-regeneration problem once and for all.
23147         * build-aux/bootstrap (download_po_files): New function, renamed from
23148         get_translations.  Now, downloads, but doesn't update LINGUAS.
23149         (update_po_files): New function.
23150
23151         bootstrap: Ignore more.
23152         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
23153         uniwidth to e.g., lib/.gitignore.
23154         (slurp): Handle the sys_stat_.h -> sys mapping, too.
23155
23156         * build-aux/bootstrap: New setting: vc_ignore.
23157         (insert_sorted_if_absent): Create $file if absent.
23158         Adapt to new, possibly empty, list: $vc_ignore.
23159
23160         bootstrap: generate more ignorable names
23161         * build-aux/bootstrap (slurp): When generating ignorable names,
23162         also map .sin to .sed, .gperf to .c, and .y to .c.
23163
23164 2007-09-03  Jim Meyering  <jim@meyering.net>
23165
23166         * build-aux/git-version-gen: New file, from coreutils.  For details, see
23167         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
23168
23169 2007-09-02  Bruno Haible  <bruno@clisp.org>
23170
23171         Fix mis-recognition of 'mcs' on QNX 6.
23172         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
23173         output contains the string "Mono".
23174         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
23175         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
23176
23177 2007-09-01  Bruno Haible  <bruno@clisp.org>
23178
23179         Fix collision between uniwidth/* and linebreak modules.
23180         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
23181         u32_width): Remove declarations.
23182         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
23183         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
23184         streq3, streq2, streq1, streq0): Remove functions.
23185         (STREQ): Remove macro.
23186         (is_cjk_encoding): Remove function.
23187         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
23188         (uc_width, u8_width, u16_width, u32_width): Remove functions.
23189         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
23190         * NEWS: Document the change.
23191
23192 2007-09-01  Bruno Haible  <bruno@clisp.org>
23193
23194         * lib/streq.h: Add double-inclusion guard.
23195
23196 2007-09-01  Karl Berry  <karl@gnu.org>
23197
23198         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
23199
23200 2007-08-28  Jim Meyering  <jim@meyering.net>
23201
23202         Rename mreadlink_with_size to areadlink_with_size.
23203         * NEWS: Document the change.
23204         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
23205         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
23206         * lib/mreadlink.h: Rename this to...
23207         * lib/areadlink.h: ...this.
23208         * modules/mreadlink-with-size: Rename this to...
23209         * modules/areadlink-with-size: ...this.
23210         * lib/canonicalize.c: Reflect the renaming.
23211         * modules/canonicalize: Likewise.
23212
23213 2007-08-26  Bruno Haible  <bruno@clisp.org>
23214
23215         * gnulib-tool (func_import): When deciding which files to remove,
23216         consider also dangling symbolic links.
23217         Reported by Eric Blake.
23218
23219 2007-08-26  Bruno Haible  <bruno@clisp.org>
23220
23221         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
23222
23223 2007-08-23  Simon Josefsson  <simon@josefsson.org>
23224
23225         * lib/readline.c: Don't include getline.h, the prototype is now
23226         found in stdio.h.
23227
23228 2007-08-23  Jim Meyering  <jim@meyering.net>
23229
23230         Getdelim touchup.
23231         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
23232         around the funlockfile call, since funlockfile never sets errno.
23233         Don't set errno upon failed realloc.
23234
23235 2007-08-22  Eric Blake  <ebb9@byu.net>
23236
23237         Getline touchups.
23238         * lib/getdelim.c (getdelim): Revert regression that required *n to
23239         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
23240         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
23241         getdelim, rather than whether implementation is missing.
23242         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
23243         * lib/stdio_.h (getline): Also declare if replacement is
23244         required.
23245         * doc/functions/getdelim.texi: New file.
23246         * doc/functions/getline.texi: Likewise.
23247         * doc/gnulib.texi (Function Substitutes): Add new files.
23248         Reported by Bruno Haible.
23249
23250 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
23251
23252         * users.txt: Add Guile.
23253
23254 2007-08-22  Eric Blake  <ebb9@byu.net>
23255
23256         * tests/test-getdelim.c (main): Use remove, not unlink.
23257         * tests/test-getline.c (main): Likewise.
23258
23259         Move getline and getdelim into stdio.h, per POSIX 200x.
23260         * modules/getline (Files): Remove getline.h.
23261         (Depends-on): Add stdio.
23262         (configure.ac): Add module indicator.
23263         * modules/getdelim (Files): Remove getdelim.h.
23264         (Depends-on): Add stdio.
23265         (configure.ac): Add module indicator.
23266         * modules/stdio (Makefile.am): Work with new indicators.
23267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
23268         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
23269         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23270         * lib/getdelim.h: Delete.
23271         * lib/getline.h: Delete.
23272         * lib/stdio_.h (getdelim, getline): Declare.
23273         * modules/getdelim-tests: New module.
23274         * modules/getline-tests: Likewise.
23275         * tests/test-getdelim.c: New file.
23276         * tests/test-getline.c: Likewise.
23277         * NEWS: Document the change.
23278         * lib/getline.c: Update choice of header.
23279         * lib/csharpcomp.c: Likewise.
23280         * lib/getpass.c: Likewise.
23281         * lib/javacomp.c: Likewise.
23282         * lib/javaversion.c: Likewise.
23283         * lib/yesno.c: Likewise.
23284         * lib/getdelim.c: Likewise.
23285         (getdelim): Set errno on failure, and avoid memory leak.
23286
23287 2007-08-19  Bruno Haible  <bruno@clisp.org>
23288
23289         * modules/closein (Depends-on): Add freadahead.
23290         * lib/closein.c: Include freadahead.h.
23291         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
23292         is zero.
23293
23294 2007-08-19  Bruno Haible  <bruno@clisp.org>
23295
23296         * modules/freadahead-tests: New file.
23297         * tests/test-freadahead.sh: New file.
23298         * tests/test-freadahead.c: New file.
23299
23300         * modules/freadahead: New file.
23301         * lib/freadahead.h: New file.
23302         * lib/freadahead.c: New file.
23303         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
23304         fbufmode, fpurge, freadable, fwritable.
23305
23306 2007-08-19  Eric Blake  <ebb9@byu.net>
23307
23308         Test yesno in combination with closein.
23309         * lib/yesno.c (yesno): Document use of stdin.
23310         * modules/yesno-tests (Files): New module.
23311         * tests/test-yesno.c (main): New file.
23312         * tests/test-yesno.sh: Likewise.
23313
23314 2007-08-19  Bruno Haible  <bruno@clisp.org>
23315
23316         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
23317         * lib/fseeko.c (rpl_fseeko): Likewise.
23318         * lib/fseterr.c (fseterr): Likewise.
23319
23320 2007-08-19  Bruno Haible  <bruno@clisp.org>
23321
23322         * tests/test-lseek.c (main): Disable a test for BeOS.
23323         * doc/functions/lseek.texi: Document the BeOS bug.
23324
23325 2007-08-19  Bruno Haible  <bruno@clisp.org>
23326             Eric Blake  <ebb9@byu.net>
23327
23328         * lib/lseek.c: Include <sys/stat.h>.
23329         (rpl_lseek): Add workaround code also for Unix platforms.
23330         Needed for BeOS.
23331         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
23332         * doc/functions/lseek.texi: Document BeOS definiency.
23333
23334 2007-08-18  Bruno Haible  <bruno@clisp.org>
23335
23336         * modules/fstrcmp-tests: New file.
23337         * tests/test-fstrcmp.c: New file.
23338
23339 2007-08-18  Bruno Haible  <bruno@clisp.org>
23340
23341         * modules/fstrcmp: New file, from GNU gettext with modifications.
23342         * lib/fstrcmp.h: New file, from GNU gettext.
23343         * lib/fstrcmp.c: New file, from GNU gettext.
23344         * MODULES.html.sh (String handling): Add fstrcmp.
23345
23346 2007-08-18  Bruno Haible  <bruno@clisp.org>
23347
23348         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
23349         'bool'.
23350         (diag, compareseq): Remove const from the ctxt argument.
23351         (USE_HEURISTIC): Undefine at the end.
23352
23353 2007-08-18  Jim Meyering  <jim@meyering.net>
23354
23355         New file: lib/idcache.h
23356         * NEWS: Mention the addition.
23357         * modules/idcache (Files): Add lib/idcache.h
23358         * lib/idcache.c: Include "idcache.h".
23359         Don't include <sys/types.h>.
23360         Add a FIXME comment.
23361         Move file-scoped "static" declarations to the top.
23362         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
23363
23364 2007-08-17  Bruno Haible  <bruno@clisp.org>
23365         and Paul Eggert  <eggert@cs.ucla.edu>
23366
23367         * MODULES.html.sh: Add diffseq.
23368         * modules/diffseq: New file.
23369         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
23370         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
23371
23372 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23373
23374         Import changes from coreutils for bootstrap script.
23375
23376         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
23377
23378         * build-aux/bootstrap (slurp): Work even in environments where
23379         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
23380         current code does not slurp files whose names start with ".", and
23381         this looks like it might be a troublesome area.
23382
23383         2007-07-11  Jim Meyering  <jim@meyering.net>
23384
23385         If there's a GPL vN copyright comment, require that N == 3.
23386
23387         2007-07-08  Jim Meyering  <jim@meyering.net>
23388
23389         Run the coreutils-specific code only if tests/Makefile.am.in exists.
23390         * build-aux/bootstrap (mam_template): Move definition out of loop.
23391
23392         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
23393
23394         * build-aux/bootstrap (symlink_to_dir): Rename function from
23395         symlink_to_gnulib.  Add a directory parameter.  Update all
23396         callers.
23397         (cp_mark_as_generated): Also check for -- and link to -- files in
23398         gl/.
23399
23400         2007-07-08  Jim Meyering  <jim@meyering.net>
23401
23402         Adapt to deeper hierarchy in gnulib.
23403         * build-aux/bootstrap (symlink_to_dir): If the destination
23404         directory doesn't exist, create it. This is required at least for
23405         "lib/uniwidth/cjk.h".
23406
23407         2007-05-15  Jim Meyering  <jim@meyering.net>
23408
23409         * build-aux/bootstrap: Now that generated Makefile.am files
23410         are no longer under version control, they must be created at
23411         bootstrap time.
23412
23413 2007-08-14  Ben Pfaff  <blp@gnu.org>
23414
23415         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
23416
23417 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23418
23419         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
23420         given the changes below.
23421         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
23422         even on hosts that have padding bits beyond the supported 64.
23423
23424 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23425
23426         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
23427         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
23428         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
23429         depends on it.
23430         (xstrtol_error): Remove.
23431         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
23432         but with a different signature.
23433         (ATTRIBUTE_NORETURN, __attribute__): New macros.
23434         * lib/xstrtol-error.c: Include exitfail.h.
23435         (xstrtol_fatal): New function, with a different signature from the
23436         old xstrtol_error, so that the caller need not worry about passing
23437         in an exit status, or about storage management of the option argument.
23438         (xstrtol_error): Now a static function.  Redo signature to
23439         implement xstrtol_fatal.  Output the correct number of hyphens in
23440         front of the option so that the caller need not worry about
23441         storage management.
23442         (N_): New macro.
23443         (_): Remove; not used now.
23444         * modules/xstrtol: Depend on getopt.
23445         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
23446         of old STRTOL_FATAL_ERROR macro.
23447         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
23448         of test program.
23449         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
23450         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
23451
23452 2007-08-08  Eric Blake  <ebb9@byu.net>
23453
23454         * lib/xstrtol-error.c: Add missing include.
23455
23456         Move xstrtol messages into gnulib domain, when --pobase is used.
23457         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
23458         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
23459         * modules/xstrtol (Files): Distribute new file.
23460         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
23461         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
23462         * tests/test-xstrtol.c: ...into new file.
23463         * tests/test-xstrtoul.c: Also test xstrtoul.
23464         * tests/test-xstrtoimax.c: Also test xstrtoimax.
23465         * tests/test-xstrtoumax.c: Also test xstrtoumax.
23466         * tests/test-xstrtol.sh: Drive the tests.
23467         * tests/test-xstrtoimax.sh: Likewise.
23468         * tests/test-xstrtoumax.sh: Likewise.
23469         * modules/xstrtol-tests: New module.
23470         * modules/xstrtoimax-tests: Likewise.
23471         * modules/xstrtoumax-tests: Likewise.
23472
23473 2007-08-08  Jim Meyering  <jim@meyering.net>
23474
23475         New function: mfile_name_concat.
23476         * lib/filenamecat.c (mfile_name_concat): New function, just like
23477         file_name_concat, but return NULL upon failure rather than exiting
23478         with a diagnostic.
23479         * lib/filenamecat.h: Declare it.
23480
23481 2007-08-07  Bruno Haible  <bruno@clisp.org>
23482
23483         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
23484         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
23485         warning from gcc.
23486         Reported by Eric Blake.
23487
23488 2007-08-07  Simon Josefsson  <simon@josefsson.org>
23489
23490         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
23491         * modules/crypto/arcfour (License): Likewise.
23492         * modules/crypto/des-tests (License): Likewise.
23493         * modules/crypto/gc-arctwo-tests (License): Likewise.
23494         * modules/crypto/gc-des-tests (License): Likewise.
23495         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
23496         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
23497         * modules/crypto/gc-md2-tests (License): Likewise.
23498         * modules/crypto/gc-md4-tests (License): Likewise.
23499         * modules/crypto/gc-md5-tests (License): Likewise.
23500         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
23501         * modules/crypto/gc-rijndael-tests (License): Likewise.
23502         * modules/crypto/gc-sha1-tests (License): Likewise.
23503         * modules/crypto/gc-tests (License): Likewise.
23504         * modules/crypto/hmac-md5 (License): Likewise.
23505         * modules/crypto/hmac-sha1 (License): Likewise.
23506         * modules/crypto/md2-tests (License): Likewise.
23507         * modules/crypto/md4-tests (License): Likewise.
23508         * modules/crypto/md5 (License): Likewise.
23509         * modules/crypto/rijndael (License): Likewise.
23510         * modules/crypto/sha1 (License): Likewise.
23511         * modules/memxor (License): Likewise.
23512
23513 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
23514         and Bruno Haible  <bruno@clisp.org>
23515
23516         * NEWS: Describe interface changes to human, xstrtol.
23517         * lib/human.h: Include <xstrtol.h>.
23518         (human_options): Return enum strtol_error, not int.  Remove
23519         bool arg; take int * instead.
23520         * lib/human.c: Don't include "gettext.h".
23521         (_): Remove; no longer used.
23522         Don't include <xstrtol.h>, since human.h does it.
23523         (human_options): Adjust to abovementioned interface changes.
23524         Do not report error to stderr; that's now the caller's
23525         responsibility.
23526         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
23527         interface change.
23528         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
23529         Str, Argument_type_string.  All uses changed.  Put " argument"
23530         in diagnostics to make them clearer.  Change wording of suffix
23531         message for clarity.
23532         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
23533         Argument_type_string.
23534         (STRTOL_FATAL_WARN): Remove; no longer used.
23535         * modules/human (Depends-on): Remove gettext-h.
23536
23537 2007-08-06  Simon Josefsson  <simon@josefsson.org>
23538
23539         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
23540
23541 2007-07-31  Bruno Haible  <bruno@clisp.org>
23542
23543         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
23544         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
23545         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
23546
23547 2007-07-31  Bruno Haible  <bruno@clisp.org>
23548
23549         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
23550         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
23551
23552 2007-07-30  Bruno Haible  <bruno@clisp.org>
23553
23554         * modules/base64 (License): Use the synonymous term "LGPLv2+".
23555         * modules/c-ctype (License): Likewise.
23556         * modules/c-strcase (License): Likewise.
23557         * modules/check-version (License): Likewise.
23558         * modules/iconv (License): Likewise.
23559         * modules/iconv_open (License): Likewise.
23560         * modules/read-file (License): Likewise.
23561         * modules/striconv (License): Likewise.
23562         * modules/strverscmp (License): Likewise.
23563         * modules/vasprintf (License): Likewise.
23564         * modules/crypto/des (License): Likewise.
23565         * modules/crypto/gc (License): Likewise.
23566         * modules/crypto/gc-arcfour (License): Likewise.
23567         * modules/crypto/gc-arctwo (License): Likewise.
23568         * modules/crypto/gc-des (License): Likewise.
23569         * modules/crypto/gc-hmac-md5 (License): Likewise.
23570         * modules/crypto/gc-hmac-sha1 (License): Likewise.
23571         * modules/crypto/gc-md2 (License): Likewise.
23572         * modules/crypto/gc-md4 (License): Likewise.
23573         * modules/crypto/gc-md5 (License): Likewise.
23574         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
23575         * modules/crypto/gc-random (License): Likewise.
23576         * modules/crypto/gc-rijndael (License): Likewise.
23577         * modules/crypto/gc-sha1 (License): Likewise.
23578         * modules/crypto/md2 (License): Likewise.
23579         * modules/crypto/md4 (License): Likewise.
23580
23581 2007-07-30  Jim Meyering  <jim@meyering.net>
23582
23583         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
23584         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
23585         it has valid stat data.  This bug would cause du not to count the
23586         sizes of inaccessible directories.
23587         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
23588         in <http://bugzilla.redhat.com/250077>.
23589
23590 2007-07-25  Peter O'Gorman  <peter@pogma.com>
23591             Bruno Haible  <bruno@clisp.org>
23592
23593         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
23594         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
23595         #include_next, gives a diagnostic about it, but reports no error in
23596         the exit code.
23597         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
23598
23599 2007-07-24  Ben Pfaff  <blp@gnu.org>
23600
23601         Improve name: "count-one-bits" is better than "popcount".
23602         * MODULES.html.sh: Update name.
23603         * lib/popcount.h: Renamed lib/count-one-bits.h.
23604         (popcount): Renamed count_one_bits.
23605         (popcountl): Renamed count_one_bits_l.
23606         (popcountll): Renamed count_one_bits_ll.
23607         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
23608         * modules/popcount: Renamed module/count-one-bits.
23609         * modules/popcount-tests: Renamed module/count-one-bits-tests.
23610         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
23611
23612 2007-07-23  Ben Pfaff  <blp@gnu.org>
23613
23614         * lib/popcount.h (popcount32): Reduce size of constants, to allow
23615         better code generation, and add U to large constants to avoid
23616         warnings, in non-GCC case.
23617         Suggested by Bruno Haible.
23618
23619 2007-07-23  Ben Pfaff  <blp@gnu.org>
23620
23621         * lib/popcount.h: Use verify_true instead of if...abort.
23622         * modules/popcount: Depend on verify module.
23623         Suggested by Jim Meyering.
23624
23625 2007-07-23  Bruno Haible  <bruno@clisp.org>
23626
23627         * gnulib-tool (func_import): Create a .cvsignore file also when the
23628         directory is not yet in CVS but the toplevel directory is. When
23629         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
23630         Reported by Karl Berry.
23631
23632 2007-07-22  Ben Pfaff  <blp@gnu.org>
23633
23634         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
23635         case.
23636         Suggested by Eric Blake.
23637
23638 2007-07-22  Ben Pfaff  <blp@gnu.org>
23639
23640         New module: popcount.
23641         * MODULES.html.sh: Add popcount.
23642         * modules/popcount: New file.
23643         * modules/popcount-tests: New file.
23644         * tests/test-popcount.c: New file.
23645         * lib/popcount.h: New file.
23646         * m4/popcount.m4: New file.
23647
23648 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23649
23650         * build-aux/announce-gen: Update to GPLv3.
23651
23652         * build-aux/config.guess: Update from config.
23653
23654 2007-07-21  Bruno Haible  <bruno@clisp.org>
23655
23656         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
23657         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
23658
23659 2007-07-20  Jim Meyering  <jim@meyering.net>
23660
23661         * check-module: Diagnose a self-dependency.
23662
23663 2007-07-19  Bruno Haible  <bruno@clisp.org>
23664
23665         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
23666         empty.
23667         Reported by Eric Blake.
23668
23669 2007-07-18  Bruno Haible  <bruno@clisp.org>
23670
23671         * gnulib-tool: New options --po-base, --po-domain.
23672         (func_usage): Document them.
23673         (pobase, po_domain): New variables.
23674         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
23675         DEFAULT_TEXT_DOMAIN.
23676         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
23677         (func_import): Consider pobase and po_domain. Create a po/ directory.
23678         (func_create_testdir): Set pobase and po_domain to empty.
23679         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
23680         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
23681
23682 2007-07-18  Bruno Haible  <bruno@clisp.org>
23683
23684         * gnulib-tool (func_get_automake_snippet): Synthesize also an
23685         EXTRA_DIST augmentation for files in build-aux/.
23686
23687 2007-07-16  Bruno Haible  <bruno@clisp.org>
23688
23689         * modules/lseek (License): Use the synonymous term "LGPLv2+".
23690         * modules/getdelim (License): Likewise.
23691
23692 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23693
23694         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
23695         * modules/d-type (License): Likewise.
23696         * modules/extensions (License): Likewise.
23697         * modules/fnmatch (License): Likewise.
23698         * modules/fseeko (License): Likewise.
23699         * modules/getaddrinfo (License): Likewise.
23700         * modules/getline (License): Likewise.
23701         * modules/getlogin_r (License): Likewise.
23702         * modules/getpass (License): Likewise.
23703         * modules/gettimeofday (License): Likewise.
23704         * modules/glob (License): Likewise.
23705         * modules/inet_ntop (License): Likewise.
23706         * modules/malloc (License): Likewise.
23707         * modules/malloca (License): Likewise.
23708         * modules/memmem (License): Likewise.
23709         * modules/mempcpy (License): Likewise.
23710         * modules/memset (License): Likewise.
23711         * modules/minmax (License): Likewise.
23712         * modules/mktime (License): Likewise.
23713         * modules/netinet_in (License): Likewise.
23714         * modules/pathmax (License): Likewise.
23715         * modules/poll (License): Likewise.
23716         * modules/regex (License): Likewise.
23717         * modules/snprintf (License): Likewise.
23718         * modules/stdbool (License): Likewise.
23719         * modules/stdint (License): Likewise.
23720         * modules/stdio (License): Likewise.
23721         * modules/strcase (License): Likewise.
23722         * modules/strcasestr (License): Likewise.
23723         * modules/strdup (License): Likewise.
23724         * modules/string (License): Likewise.
23725         * modules/strndup (License): Likewise.
23726         * modules/strnlen (License): Likewise.
23727         * modules/strpbrk (License): Likewise.
23728         * modules/strptime (License): Likewise.
23729         * modules/strsep (License): Likewise.
23730         * modules/sys_select (License): Likewise.
23731         * modules/sys_socket (License): Likewise.
23732         * modules/sys_stat (License): Likewise.
23733         * modules/sys_time (License): Likewise.
23734         * modules/time (License): Likewise.
23735         * modules/time_r (License): Likewise.
23736         * modules/timegm (License): Likewise.
23737         * modules/unistd (License): Likewise.
23738         * modules/vsnprintf (License): Likewise.
23739         * modules/wctype (License): Likewise.
23740
23741 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23742
23743         * modules/argz (License): LGPLv2+.
23744
23745 2007-07-15  Karl Berry  <karl@gnu.org>
23746
23747         * doc/gnulib.texi: revise node structure per new fdl.texi.
23748
23749 2007-07-14  Bruno Haible  <bruno@clisp.org>
23750
23751         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
23752         the output file.
23753         * lib/uniname/uninames.h: Regenerated.
23754
23755 2007-07-14  Karl Berry  <karl@gnu.org>
23756
23757         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
23758         omitting sectioning and index commands.
23759
23760 2007-07-13  Bruno Haible  <bruno@clisp.org>
23761
23762         New gnulib-tool option --more-symlinks.
23763         * gnulib-tool (func_usage): Document --more-symlinks.
23764         (do_copyrights): New variable.
23765         Recognize option --more-symlinks.
23766         (func_import): Don't add a copyright notice transform to
23767         sed_transform_lib_file if do_copyrights is empty.
23768
23769 2007-07-13  Bruno Haible  <bruno@clisp.org>
23770
23771         * lib/vasnprintf.c (decimal_point_char): Define also if
23772         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
23773         && !NEED_PRINTF_DIRECTIVE_A.
23774         Reported by Clemens Koller <clemens.koller@anagramm.de> via
23775         Gary V. Vaughan <gary@gnu.org>.
23776
23777 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
23778
23779         * lib/inttypes_.h: Undo previous change, since it was fixed
23780         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
23781
23782 2007-07-13  Bruno Haible  <bruno@clisp.org>
23783
23784         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
23785         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
23786
23787 2007-07-13  Jim Meyering  <jim@meyering.net>
23788
23789         df: Don't fail for Tru64's "file-on-file mount".
23790         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
23791         so we fall through and use statfs instead.  Details here:
23792         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
23793         Reported by Albert Chin.
23794
23795 2007-07-13  Bruno Haible  <bruno@clisp.org>
23796
23797         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
23798         * modules/configmake (License): Likewise.
23799         * modules/gettext (License): Likewise.
23800         * modules/gettext-h (License): Likewise.
23801         * modules/include_next (License): Likewise.
23802         * modules/link-warning (License): Likewise.
23803         * modules/localcharset (License): Likewise.
23804         * modules/localename (License): Likewise.
23805         * modules/lock (License): Likewise.
23806         * modules/relocatable-lib-lgpl (License): Likewise.
23807         * modules/size_max (License): Likewise.
23808         * modules/vasnprintf (License): Likewise.
23809         * modules/wchar (License): Likewise.
23810         * modules/xsize (License): Likewise.
23811
23812 2007-07-13  Bruno Haible  <bruno@clisp.org>
23813
23814         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
23815         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
23816
23817 2007-07-12  Bruno Haible  <bruno@clisp.org>
23818
23819         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
23820         in the modules files.
23821
23822 2007-07-11  Karl Berry  <karl@gnu.org>
23823
23824         * MODULES.html.sh (func_module): use
23825          sed -e '\|^'"${includefile}"'$|d'
23826          instead of /.../d, to avoid errors on $includefile's containing /.
23827
23828 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
23829
23830         * gnulib-tool (func_import): Avoid duplication of --avoid
23831         statements
23832         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
23833         names to `_' in variable names.
23834
23835 2007-07-10  Eric Blake  <ebb9@byu.net>
23836
23837         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
23838         * NEWS: Document this change.
23839
23840 2007-07-08  Bruno Haible  <bruno@clisp.org>
23841
23842         Update to Unicode 5.0.
23843         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
23844         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
23845         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
23846         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
23847         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
23848         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
23849         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
23850         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
23851         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
23852         U+10A3F, U+1D242..U+1D244.
23853         (nonspacing_table_ind): Update.
23854         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
23855         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
23856
23857 2007-07-08  Bruno Haible  <bruno@clisp.org>
23858
23859         Update to Unicode 5.0.
23860         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
23861         code transform. Extend the name index field of unicode_name_to_code and
23862         unicode_code_to_name from 16 to 24 bits.
23863         * lib/uniname/uniname.c (unicode_character_name,
23864         unicode_name_character): Add the range 0x12xxx to the code transform.
23865         * lib/uniname/uninames.h: Regenerated.
23866         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
23867
23868 2007-07-07  Bruno Haible  <bruno@clisp.org>
23869
23870         * modules/wcwidth-tests: New file.
23871         * tests/test-wcwidth.c: New file.
23872
23873         Work around MacOS X wcwidth() bug.
23874         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
23875         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
23876         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
23877         original wcwidth in non-UTF-8 locales.
23878         * modules/wcwidth (Depends-on): Add localcharset, streq,
23879         uniwidth/width.
23880         * doc/functions/wcwidth.texi: Update.
23881
23882 2007-07-07  Bruno Haible  <bruno@clisp.org>
23883
23884         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
23885         (wcwidth): New declaration.
23886         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
23887         macros.
23888         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
23889         here. Prepare for creating <wchar.h> unconditionally.
23890         * modules/wchar (Depends-on): Add link-warning.
23891         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
23892         REPLACE_WCWIDTH, and GL_LINK_WARNING.
23893         * lib/wcwidth.h: Remove file.
23894         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
23895         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
23896         * modules/wcwidth (Files): Remove lib/wcwidth.h.
23897         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
23898         (Include): Replace wcwidth.h with <wchar.h>.
23899         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
23900         * lib/mbchar.h: Don't include wcwidth.h.
23901         * lib/mbswidth.c: Likewise.
23902         * NEWS: Mention the change.
23903
23904 2007-07-07  Bruno Haible  <bruno@clisp.org>
23905
23906         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
23907         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
23908         definition with an external declaration.
23909         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
23910         defined as a function. Remove AC_C_INLINE requirement.
23911         * modules/wcwidth (Files): Add lib/wcwidth.c.
23912         (Makefile.am): Remove redundant statement.
23913
23914 2007-07-07  Bruno Haible  <bruno@clisp.org>
23915
23916         * MODULES.html.sh (Unicode string functions): Add the new modules.
23917
23918         * tests/uniwidth/test-u32-strwidth.c: New file.
23919         * modules/uniwidth/u32-strwidth-tests: New file.
23920
23921         * lib/uniwidth/u32-strwidth.c: New file.
23922         * modules/uniwidth/u32-strwidth: New file.
23923
23924         * tests/uniwidth/test-u16-strwidth.c: New file.
23925         * modules/uniwidth/u16-strwidth-tests: New file.
23926
23927         * lib/uniwidth/u16-strwidth.c: New file.
23928         * modules/uniwidth/u16-strwidth: New file.
23929
23930         * tests/uniwidth/test-u8-strwidth.c: New file.
23931         * modules/uniwidth/u8-strwidth-tests: New file.
23932
23933         * lib/uniwidth/u8-strwidth.c: New file.
23934         * modules/uniwidth/u8-strwidth: New file.
23935
23936         * tests/uniwidth/test-u32-width.c: New file.
23937         * modules/uniwidth/u32-width-tests: New file.
23938
23939         * lib/uniwidth/u32-width.c: New file.
23940         * modules/uniwidth/u32-width: New file.
23941
23942         * tests/uniwidth/test-u16-width.c: New file.
23943         * modules/uniwidth/u16-width-tests: New file.
23944
23945         * lib/uniwidth/u16-width.c: New file.
23946         * modules/uniwidth/u16-width: New file.
23947
23948         * tests/uniwidth/test-u8-width.c: New file.
23949         * modules/uniwidth/u8-width-tests: New file.
23950
23951         * lib/uniwidth/u8-width.c: New file.
23952         * modules/uniwidth/u8-width: New file.
23953
23954         * tests/uniwidth/test-uc_width.c: New file.
23955         * modules/uniwidth/width-tests: New file.
23956
23957         * lib/uniwidth/width.c: New file, from GNU libiconv.
23958         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
23959         * modules/uniwidth/width: New file.
23960
23961         * lib/uniwidth.h: New file, from GNU libiconv.
23962         * modules/uniwidth/base: New file.
23963
23964 2007-07-07  Bruno Haible  <bruno@clisp.org>
23965
23966         * lib/uniname.h: New file, from GNU gettext.
23967         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
23968         * lib/uniname/uninames.h: New file, from GNU gettext.
23969         * lib/uniname/uniname.c: New file, from GNU gettext.
23970         * tests/uniname/test-uninames.sh: New file.
23971         * tests/uniname/test-uninames.c: New file, from GNU gettext.
23972         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
23973         * modules/uniname/base: New file.
23974         * modules/uniname/uniname: New file.
23975         * modules/uniname/uniname-tests: New file.
23976         * MODULES.html.sh (Unicode string functions): Add the new modules.
23977
23978 2007-07-06  Bruno Haible  <bruno@clisp.org>
23979
23980         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
23981
23982 2007-07-06  Bruno Haible  <bruno@clisp.org>
23983
23984         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
23985         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
23986         includes <cygwin/sys_time.h> which includes <sys/select.h> which
23987         include <sys/time.h>.
23988         Reported by Eric Blake.
23989
23990 2007-07-06  Eric Blake  <ebb9@byu.net>
23991
23992         Fix testing canonicalize on cygwin.
23993         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
23994         Revert patch from 2007-06-19.
23995         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
23996         canonicalize module is also in use.
23997         * tests/test-canonicalize.c: New file.
23998         * tests/test-canonicalize.sh: Likewise.
23999         * modules/canonicalize-tests: Likewise.
24000
24001 2007-07-06  Jim Meyering  <jim@meyering.net>
24002
24003         * lib/getugroups.c (getugroups): Detect getgrent failure.
24004         Adjust comment to reflect reality: this function may return -1.
24005
24006 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
24007
24008         * build-aux/bootstrap (TP_URL,get_translations): Update to use
24009         the new TP address.
24010         (usage): Fix typo
24011         (gnulib_mk): New variable.
24012
24013 2007-07-05  Jim Meyering  <jim@meyering.net>
24014
24015         Don't let endgrent clobber errno, no matter how improbable.
24016         * lib/getugroups.c (getugroups): Save and restore errno around
24017         endgrent call.
24018
24019         Close the group DB even when failing with 2^31 or more members.
24020         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
24021
24022 2007-07-04  Jim Meyering  <jim@meyering.net>
24023
24024         * lib/getugroups.h: New file.
24025         * lib/getugroups.c: Include "getugroups.h".
24026         Remove uses of "register" keyword.
24027         Move local variable, "cp", down into scope where used.
24028         Give "username" parameter the "const" attribute.
24029         * modules/getugroups (Files): Add lib/getugroups.h
24030
24031 2007-07-04  Karl Berry  <karl@gnu.org>
24032
24033         * MODULES.html.sh (func_all_modules): Complete rename of
24034         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
24035
24036 2007-07-02  Bruno Haible  <bruno@clisp.org>
24037
24038         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
24039         mode, when inttypes.h comes from gnulib.
24040         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
24041
24042 2007-07-02  Simon Josefsson  <simon@josefsson.org>
24043
24044         * NEWS: Mention lgpl module name change.
24045
24046         * modules/lgpl-2.1: Renamed from lgpl.
24047
24048         * NEWS: Mention gpl module name change.
24049
24050         * modules/gpl-3.0: New file, based on gpl-2.0.
24051
24052         * modules/gpl-2.0: Renamed from gpl.
24053
24054         * modules/gpl: Fix filename, doc/gpl.texi is now found at
24055         doc/gpl-2.0.texi.
24056
24057 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24058
24059         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
24060         #define __STDC_LIMIT_MACROS temporarily while including
24061         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
24062         Problem reported by Joel E. Denny in
24063         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
24064
24065 2007-07-01  Bruno Haible  <bruno@clisp.org>
24066
24067         * lib/unistdio.h: New file.
24068         * lib/unistdio/u-asnprintf.h: New file.
24069         * lib/unistdio/u-asprintf.h: New file.
24070         * lib/unistdio/u-printf-args.c: New file.
24071         * lib/unistdio/u-printf-args.h: New file.
24072         * lib/unistdio/u-printf-parse.h: New file.
24073         * lib/unistdio/u-snprintf.h: New file.
24074         * lib/unistdio/u-sprintf.h: New file.
24075         * lib/unistdio/u-vasprintf.h: New file.
24076         * lib/unistdio/u-vsnprintf.h: New file.
24077         * lib/unistdio/u-vsprintf.h: New file.
24078         * lib/unistdio/ulc-asnprintf.c: New file.
24079         * lib/unistdio/ulc-asprintf.c: New file.
24080         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
24081         * lib/unistdio/ulc-printf-parse.c: New file.
24082         * lib/unistdio/ulc-snprintf.c: New file.
24083         * lib/unistdio/ulc-sprintf.c: New file.
24084         * lib/unistdio/ulc-vasnprintf.c: New file.
24085         * lib/unistdio/ulc-vasprintf.c: New file.
24086         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
24087         * lib/unistdio/ulc-vsnprintf.c: New file.
24088         * lib/unistdio/ulc-vsprintf.c: New file.
24089         * lib/unistdio/u8-asnprintf.c: New file.
24090         * lib/unistdio/u8-asprintf.c: New file.
24091         * lib/unistdio/u8-printf-parse.c: New file.
24092         * lib/unistdio/u8-snprintf.c: New file.
24093         * lib/unistdio/u8-sprintf.c: New file.
24094         * lib/unistdio/u8-vasnprintf.c: New file.
24095         * lib/unistdio/u8-vasprintf.c: New file.
24096         * lib/unistdio/u8-vsnprintf.c: New file.
24097         * lib/unistdio/u8-vsprintf.c: New file.
24098         * lib/unistdio/u8-u8-asnprintf.c: New file.
24099         * lib/unistdio/u8-u8-asprintf.c: New file.
24100         * lib/unistdio/u8-u8-snprintf.c: New file.
24101         * lib/unistdio/u8-u8-sprintf.c: New file.
24102         * lib/unistdio/u8-u8-vasnprintf.c: New file.
24103         * lib/unistdio/u8-u8-vasprintf.c: New file.
24104         * lib/unistdio/u8-u8-vsnprintf.c: New file.
24105         * lib/unistdio/u8-u8-vsprintf.c: New file.
24106         * lib/unistdio/u16-asnprintf.c: New file.
24107         * lib/unistdio/u16-asprintf.c: New file.
24108         * lib/unistdio/u16-printf-parse.c: New file.
24109         * lib/unistdio/u16-snprintf.c: New file.
24110         * lib/unistdio/u16-sprintf.c: New file.
24111         * lib/unistdio/u16-vasnprintf.c: New file.
24112         * lib/unistdio/u16-vasprintf.c: New file.
24113         * lib/unistdio/u16-vsnprintf.c: New file.
24114         * lib/unistdio/u16-vsprintf.c: New file.
24115         * lib/unistdio/u16-u16-asnprintf.c: New file.
24116         * lib/unistdio/u16-u16-asprintf.c: New file.
24117         * lib/unistdio/u16-u16-snprintf.c: New file.
24118         * lib/unistdio/u16-u16-sprintf.c: New file.
24119         * lib/unistdio/u16-u16-vasnprintf.c: New file.
24120         * lib/unistdio/u16-u16-vasprintf.c: New file.
24121         * lib/unistdio/u16-u16-vsnprintf.c: New file.
24122         * lib/unistdio/u16-u16-vsprintf.c: New file.
24123         * lib/unistdio/u32-asnprintf.c: New file.
24124         * lib/unistdio/u32-asprintf.c: New file.
24125         * lib/unistdio/u32-printf-parse.c: New file.
24126         * lib/unistdio/u32-snprintf.c: New file.
24127         * lib/unistdio/u32-sprintf.c: New file.
24128         * lib/unistdio/u32-vasnprintf.c: New file.
24129         * lib/unistdio/u32-vasprintf.c: New file.
24130         * lib/unistdio/u32-vsnprintf.c: New file.
24131         * lib/unistdio/u32-vsprintf.c: New file.
24132         * lib/unistdio/u32-u32-asnprintf.c: New file.
24133         * lib/unistdio/u32-u32-asprintf.c: New file.
24134         * lib/unistdio/u32-u32-snprintf.c: New file.
24135         * lib/unistdio/u32-u32-sprintf.c: New file.
24136         * lib/unistdio/u32-u32-vasnprintf.c: New file.
24137         * lib/unistdio/u32-u32-vasprintf.c: New file.
24138         * lib/unistdio/u32-u32-vsnprintf.c: New file.
24139         * lib/unistdio/u32-u32-vsprintf.c: New file.
24140         * tests/unistdio/test-ulc-asnprintf1.c: New file.
24141         * tests/unistdio/test-ulc-asnprintf1.h: New file.
24142         * tests/unistdio/test-ulc-printf1.h: New file.
24143         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
24144         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
24145         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
24146         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
24147         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
24148         * tests/unistdio/test-ulc-vasprintf1.c: New file.
24149         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
24150         * tests/unistdio/test-ulc-vsprintf1.c: New file.
24151         * tests/unistdio/test-u8-asnprintf1.c: New file.
24152         * tests/unistdio/test-u8-asnprintf1.h: New file.
24153         * tests/unistdio/test-u8-printf1.h: New file.
24154         * tests/unistdio/test-u8-vasnprintf1.c: New file.
24155         * tests/unistdio/test-u8-vasnprintf2.c: New file.
24156         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
24157         * tests/unistdio/test-u8-vasnprintf3.c: New file.
24158         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
24159         * tests/unistdio/test-u8-vasprintf1.c: New file.
24160         * tests/unistdio/test-u8-vsnprintf1.c: New file.
24161         * tests/unistdio/test-u8-vsprintf1.c: New file.
24162         * tests/unistdio/test-u16-asnprintf1.c: New file.
24163         * tests/unistdio/test-u16-asnprintf1.h: New file.
24164         * tests/unistdio/test-u16-printf1.h: New file.
24165         * tests/unistdio/test-u16-vasnprintf1.c: New file.
24166         * tests/unistdio/test-u16-vasnprintf2.c: New file.
24167         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
24168         * tests/unistdio/test-u16-vasnprintf3.c: New file.
24169         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
24170         * tests/unistdio/test-u16-vasprintf1.c: New file.
24171         * tests/unistdio/test-u16-vsnprintf1.c: New file.
24172         * tests/unistdio/test-u16-vsprintf1.c: New file.
24173         * tests/unistdio/test-u32-asnprintf1.c: New file.
24174         * tests/unistdio/test-u32-asnprintf1.h: New file.
24175         * tests/unistdio/test-u32-printf1.h: New file.
24176         * tests/unistdio/test-u32-vasnprintf1.c: New file.
24177         * tests/unistdio/test-u32-vasnprintf2.c: New file.
24178         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
24179         * tests/unistdio/test-u32-vasnprintf3.c: New file.
24180         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
24181         * tests/unistdio/test-u32-vasprintf1.c: New file.
24182         * tests/unistdio/test-u32-vsnprintf1.c: New file.
24183         * tests/unistdio/test-u32-vsprintf1.c: New file.
24184         * modules/unistdio/base: New file.
24185         * modules/unistdio/u-printf-args: New file.
24186         * modules/unistdio/ulc-asnprintf: New file.
24187         * modules/unistdio/ulc-asprintf: New file.
24188         * modules/unistdio/ulc-fprintf: New file.
24189         * modules/unistdio/ulc-printf-parse: New file.
24190         * modules/unistdio/ulc-snprintf: New file.
24191         * modules/unistdio/ulc-sprintf: New file.
24192         * modules/unistdio/ulc-vasnprintf: New file.
24193         * modules/unistdio/ulc-vasprintf: New file.
24194         * modules/unistdio/ulc-vfprintf: New file.
24195         * modules/unistdio/ulc-vsnprintf: New file.
24196         * modules/unistdio/ulc-vsprintf: New file.
24197         * modules/unistdio/u8-asnprintf: New file.
24198         * modules/unistdio/u8-asprintf: New file.
24199         * modules/unistdio/u8-printf-parse: New file.
24200         * modules/unistdio/u8-snprintf: New file.
24201         * modules/unistdio/u8-sprintf: New file.
24202         * modules/unistdio/u8-vasnprintf: New file.
24203         * modules/unistdio/u8-vasprintf: New file.
24204         * modules/unistdio/u8-vsnprintf: New file.
24205         * modules/unistdio/u8-vsprintf: New file.
24206         * modules/unistdio/u8-u8-asnprintf: New file.
24207         * modules/unistdio/u8-u8-asprintf: New file.
24208         * modules/unistdio/u8-u8-snprintf: New file.
24209         * modules/unistdio/u8-u8-sprintf: New file.
24210         * modules/unistdio/u8-u8-vasnprintf: New file.
24211         * modules/unistdio/u8-u8-vasprintf: New file.
24212         * modules/unistdio/u8-u8-vsnprintf: New file.
24213         * modules/unistdio/u8-u8-vsprintf: New file.
24214         * modules/unistdio/u16-asnprintf: New file.
24215         * modules/unistdio/u16-asprintf: New file.
24216         * modules/unistdio/u16-printf-parse: New file.
24217         * modules/unistdio/u16-snprintf: New file.
24218         * modules/unistdio/u16-sprintf: New file.
24219         * modules/unistdio/u16-vasnprintf: New file.
24220         * modules/unistdio/u16-vasprintf: New file.
24221         * modules/unistdio/u16-vsnprintf: New file.
24222         * modules/unistdio/u16-vsprintf: New file.
24223         * modules/unistdio/u16-u16-asnprintf: New file.
24224         * modules/unistdio/u16-u16-asprintf: New file.
24225         * modules/unistdio/u16-u16-snprintf: New file.
24226         * modules/unistdio/u16-u16-sprintf: New file.
24227         * modules/unistdio/u16-u16-vasnprintf: New file.
24228         * modules/unistdio/u16-u16-vasprintf: New file.
24229         * modules/unistdio/u16-u16-vsnprintf: New file.
24230         * modules/unistdio/u16-u16-vsprintf: New file.
24231         * modules/unistdio/u32-asnprintf: New file.
24232         * modules/unistdio/u32-asprintf: New file.
24233         * modules/unistdio/u32-printf-parse: New file.
24234         * modules/unistdio/u32-snprintf: New file.
24235         * modules/unistdio/u32-sprintf: New file.
24236         * modules/unistdio/u32-vasnprintf: New file.
24237         * modules/unistdio/u32-vasprintf: New file.
24238         * modules/unistdio/u32-vsnprintf: New file.
24239         * modules/unistdio/u32-vsprintf: New file.
24240         * modules/unistdio/u32-u32-asnprintf: New file.
24241         * modules/unistdio/u32-u32-asprintf: New file.
24242         * modules/unistdio/u32-u32-snprintf: New file.
24243         * modules/unistdio/u32-u32-sprintf: New file.
24244         * modules/unistdio/u32-u32-vasnprintf: New file.
24245         * modules/unistdio/u32-u32-vasprintf: New file.
24246         * modules/unistdio/u32-u32-vsnprintf: New file.
24247         * modules/unistdio/u32-u32-vsprintf: New file.
24248         * modules/unistdio/ulc-asnprintf-tests: New file.
24249         * modules/unistdio/ulc-vasnprintf-tests: New file.
24250         * modules/unistdio/ulc-vasprintf-tests: New file.
24251         * modules/unistdio/ulc-vsnprintf-tests: New file.
24252         * modules/unistdio/ulc-vsprintf-tests: New file.
24253         * modules/unistdio/u8-asnprintf-tests: New file.
24254         * modules/unistdio/u8-vasnprintf-tests: New file.
24255         * modules/unistdio/u8-vasprintf-tests: New file.
24256         * modules/unistdio/u8-vsnprintf-tests: New file.
24257         * modules/unistdio/u8-vsprintf-tests: New file.
24258         * modules/unistdio/u16-asnprintf-tests: New file.
24259         * modules/unistdio/u16-vasnprintf-tests: New file.
24260         * modules/unistdio/u16-vasprintf-tests: New file.
24261         * modules/unistdio/u16-vsnprintf-tests: New file.
24262         * modules/unistdio/u16-vsprintf-tests: New file.
24263         * modules/unistdio/u32-asnprintf-tests: New file.
24264         * modules/unistdio/u32-vasnprintf-tests: New file.
24265         * modules/unistdio/u32-vasprintf-tests: New file.
24266         * modules/unistdio/u32-vsnprintf-tests: New file.
24267         * modules/unistdio/u32-vsprintf-tests: New file.
24268         * MODULES.html.sh (Unicode string functions): Add the new modules.
24269
24270 2007-07-01  Bruno Haible  <bruno@clisp.org>
24271
24272         * lib/sprintf.c (sprintf): Limit the available length estimation,
24273         to avoid address wraparound.
24274         * lib/vsprintf.c (vsprintf): Likewise.
24275         * modules/sprintf-posix (Dependencies): Add stdint.
24276         * modules/vsprintf-posix (Dependencies): Likewise.
24277
24278 2007-07-01  Bruno Haible  <bruno@clisp.org>
24279
24280         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
24281         Windows PATH as well. Conservative double-quoting. Comments.
24282
24283 2007-07-01  Bruno Haible  <bruno@clisp.org>
24284             Eric Blake  <ebb9@byu.net>
24285             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24286
24287         * gnulib-tool (self_abspathname): Fix algorithm to cope with
24288         empty components in $PATH, denoting '.'.
24289
24290 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24291
24292         * gnulib-tool: Fix indentation.
24293         (func_create_megatestdir): Likewise.
24294         Report by Bruno Haible.
24295
24296 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24297
24298         Sync from Automake.
24299         * build-aux/gnupload: Fix shell portability issues with for loops.
24300         Report by Karl Berry.
24301
24302 2007-06-29  Simon Josefsson  <simon@josefsson.org>
24303
24304         * build-aux/maint.mk (POURL): Use translationproject.org.
24305
24306 2007-06-27  Simon Josefsson  <simon@josefsson.org>
24307             Bruno Haible  <bruno@clisp.org>
24308
24309         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
24310         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
24311         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
24312         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
24313         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
24314
24315 2007-06-27  Bruno Haible  <bruno@clisp.org>
24316
24317         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
24318         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
24319
24320 2007-06-26  Karl Berry  <karl@gnu.org>
24321
24322         * MODULES.html.sh: remove xreadlink-with-size.
24323
24324 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
24325
24326         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
24327         method that I hope also handles the double-include problem noted
24328         by Bruno Haible in
24329         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
24330
24331 2007-06-23  Bruno Haible  <bruno@clisp.org>
24332
24333         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24334         Don't let the 'mostlyclean' target fail if the last subdirectory could
24335         not be removed.
24336         Reported by Karl Berry.
24337
24338 2007-06-23  Bruno Haible  <bruno@clisp.org>
24339
24340         * gnulib-tool (echo): Add a speedier workaround for ksh.
24341         * tests/test-echo.sh: Likewise.
24342
24343 2007-06-23  Bruno Haible  <bruno@clisp.org>
24344
24345         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
24346         * tests/test-echo.sh: Likewise.
24347
24348 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24349
24350         * gnulib-tool (IFS): Initialize early, so we don't set it to
24351         empty later.
24352         (self_abspathname): Rewrite algorithm to set it, reindent.
24353         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
24354         (func_create_megatestdir): Merge some sed scripts.
24355
24356 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
24357
24358         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
24359         exposed by Sun Studio 11 cc on Solaris 8.
24360
24361 2007-06-22  Bruno Haible  <bruno@clisp.org>
24362
24363         * gnulib-tool (echo): Ensure the echo primitive does not interpret
24364         backslashes.
24365         * tests/test-echo.sh: New file.
24366
24367 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24368
24369         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
24370         simplify `sed_replace_build_aux' scripts, they are portable but
24371         echoing them with `echo' is not.
24372         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
24373
24374 2007-06-21  Karl Berry  <karl@gnu.org>
24375
24376         * config/srclist.txt: guess we can't handle the licenses via
24377         srclist at the moment.
24378
24379 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
24380
24381         * MODULES.html.sh: Add include_next.
24382         * modules/include_next: New file.
24383
24384 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
24385
24386         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
24387         INCLUDE_NEXT.
24388         (gl_CHECK_NEXT_HEADERS): New macro.
24389         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
24390         the obsolescent gl_ABSOLUTE_HEADER.
24391         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
24392         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
24393         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
24394         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24395         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24396         * m4/math_h.m4 (gl_MATH_H): Likewise.
24397         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24398         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24399         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24400         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24401         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24402         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24403         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24404         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24405         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24406         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24407         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
24408         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
24409         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
24410         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24411         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24412         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
24413         * m4/inttypes.m4 (gl_INTTYPES_H): Define
24414         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
24415         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
24416         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
24417         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
24418         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
24419         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
24420         * lib/float_.h: Likewise.
24421         * lib/inttypes_.h: Likewise.
24422         * lib/math_.h: Likewise.
24423         * lib/search_.h: Likewise.
24424         * lib/signal_.h: Likewise.
24425         * lib/stdint_.h: Likewise.
24426         * lib/stdio_.h: Likewise.
24427         * lib/stdlib_.h: Likewise.
24428         * lib/string_.h: Likewise.
24429         * lib/sys_stat_.h: Likewise.
24430         * lib/sys_time_.h: Likewise.
24431         * lib/time_.h: Likewise.
24432         * lib/unistd_.h: Likewise.
24433         * lib/wchar_.h: Likewise.
24434         * lib/wctype_.h: Likewise.
24435         * lib/dirent_.h: Likewise.
24436         * lib/iconv_.h: Likewise.
24437         * lib/locale_.h: Likewise.
24438         * lib/netinet_in_.h: Likewise.
24439         * lib/sys_select_.h: Likewise.
24440         * lib/sys_socket_.h: Likewise.
24441         * lib/sysexits_.h: Likewise.
24442         * modules/fcntl (Depends-on): Depend on include_next, not
24443         absolute_header.
24444         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
24445         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
24446         * modules/fchdir: Likewise.
24447         * modules/float: Likewise.
24448         * modules/iconv_open: Likewise.
24449         * modules/inttypes: Likewise.
24450         * modules/locale: Likewise.
24451         * modules/math: Likewise.
24452         * modules/netinet_in: Likewise.
24453         * modules/search: Likewise.
24454         * modules/signal: Likewise.
24455         * modules/stdint: Likewise.
24456         * modules/stdio: Likewise.
24457         * modules/stdlib: Likewise.
24458         * modules/string: Likewise.
24459         * modules/sys_select: Likewise.
24460         * modules/sys_socket: Likewise.
24461         * modules/sys_stat: Likewise.
24462         * modules/sys_time: Likewise.
24463         * modules/sysexits: Likewise.
24464         * modules/time: Likewise.
24465         * modules/unistd: Likewise.
24466         * modules/wchar: Likewise.
24467         * modules/wctype: Likewise.
24468         * modules/sys_stat: Change maintainer to "all".
24469         * modules/unistd: Likewise.
24470
24471 2007-06-20  Karl Berry  <karl@gnu.org>
24472
24473         * config/srclist.txt: track www changes in license files.
24474
24475 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
24476
24477         * build-aux/bootstrap: Remove stray dot.
24478         Make sure build_aux settings are honored when linking
24479         gnulib_extra_files.
24480
24481 2007-06-19  Eric Blake  <ebb9@byu.net>
24482
24483         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
24484         Allow compilation on cygwin.
24485
24486 2007-06-19  Jim Meyering  <jim@meyering.net>
24487
24488         xreadlink-with-size: Remove module.  No longer used.
24489         Ex-callers now use xreadlink or mreadlink-with-size.
24490         * modules/xreadlink-with-size: Remove module.
24491         * lib/xreadlink-with-size.c: Remove file.
24492         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
24493         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
24494         just before the function definition *is* accurate.
24495
24496         Eliminate one way canonicalize_filename_mode could exit.
24497         * lib/canonicalize.c (canonicalize_filename_mode):
24498         Use mreadlink_with_size, not xreadlink_with_size.
24499
24500 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
24501
24502         Detect porting problems to FreeBSD/arm, which has time_t wider than
24503         long int.  Original problem reported for GNU diff by Xin Li in
24504         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
24505         * modules/getdate (Depends-on): Add intprops, verify.
24506         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
24507         is an integer type no wider than long int.
24508
24509 2007-06-18  Jim Meyering  <jim@meyering.net>
24510
24511         New module: mreadlink-with-size.
24512         * MODULES.html.sh: Add mreadlink-with-size.
24513         * modules/mreadlink-with-size: New module
24514         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
24515         not xreadlink-with-size.
24516         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
24517
24518 2007-06-16  Bruno Haible  <bruno@clisp.org>
24519
24520         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
24521         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
24522         Reported by Gary V. Vaughan <gary@gnu.org>.
24523
24524 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
24525
24526         Revamp lchown so that it lives in unistd.h where it belongs.
24527         * lib/lchown.h: Remove.
24528         * lib/dirchownmod.c: Don't include lib/lchown.h.
24529         * lib/fchownat.c: Likewise.
24530         * lib/openat.c: Likewise.
24531         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
24532         does not follow symlinks.
24533         (EOPNOTSUPP): Define if not defined.
24534         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
24535         is defined to 0.
24536         (lchown): New decl.
24537         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
24538         Do not check for lchown decl.
24539         Set REPLACE_LCHOWN.
24540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
24541         REPLACE_LCHOWN.
24542         * modules/chown: Make it clear it follows symlinks.
24543         * modules/lchown: Make it clear it doesn't follow symlinks.
24544         (Files): Remove lib/lchown.h
24545         (Depends-on): Add unistd.
24546         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
24547         (Include): Include <unistd.h>, not "lchown.h".
24548         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
24549         REPLACE_LCHOWN.
24550
24551 2007-06-15  Jim Meyering  <jim@meyering.net>
24552
24553         Change license (GPL to LGPL) of fsusage and dependents.
24554         * modules/fsusage (License): Change to LGPL.
24555         * modules/full-read (License): Likewise.
24556         * modules/full-write (License): Likewise.
24557         * modules/safe-read (License): Likewise.
24558         * modules/safe-write (License): Likewise.
24559
24560 2007-06-14  Ben Pfaff  <blp@gnu.org>
24561
24562         Missing part of allocsa -> malloca transition.
24563         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
24564         gl_MALLOCA.
24565
24566 2007-06-12  Bruno Haible  <bruno@clisp.org>
24567
24568         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
24569         to ia64, x86_64, i386.
24570         Reported by Eric Blake.
24571
24572 2007-06-12  Bruno Haible  <bruno@clisp.org>
24573
24574         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
24575         cross-compiling to x86_64.
24576
24577 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
24578
24579         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
24580         glitch reported by Ralf Wildenhues in
24581         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
24582
24583         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
24584         Vin Shelton.
24585
24586 2007-06-11  Bruno Haible  <bruno@clisp.org>
24587
24588         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
24589         replacement string.
24590         Reported by Eric Blake.
24591
24592 2007-06-10  Bruno Haible  <bruno@clisp.org>
24593
24594         Prepare vasnprintf code for use with Unicode strings.
24595         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
24596         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
24597         TYPE_U32_STRING.
24598         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
24599         a_u32_string variants.
24600         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
24601         * lib/printf-args.c: Don't include config.h and the specification
24602         header if PRINTF_FETCHARGS is already defined.
24603         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
24604         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
24605         TYPE_U16_STRING, TYPE_U32_STRING.
24606         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
24607         u16_directive, u16_directives, u32_directive, u32_directives): New
24608         types.
24609         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
24610         New declarations.
24611         * lib/printf-parse.c: Don't include config.h and the specification
24612         header if PRINTF_PARSE is already defined. Eliminate the set of
24613         parameters for WIDE_CHAR_VERSION; the user of this file must provide
24614         them now. Include c-ctype.h.
24615         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
24616         directive and CHAR_T_ONLY_ASCII.
24617         * lib/vasnprintf.c: Don't include config.h and the specification header
24618         if VASNPRINTF is already defined.
24619         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
24620         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
24621         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
24622         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
24623         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
24624         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
24625         code accordingly.
24626         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
24627         pad_ourselves also in this case, with the 'c' and 's' directives, and
24628         with a different notion of "width".
24629         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
24630
24631 2007-06-10  Bruno Haible  <bruno@clisp.org>
24632
24633         * modules/unistr/u32-mbsnlen: New file.
24634         * lib/unistr/u32-mbsnlen.c: New file.
24635
24636         * modules/unistr/u16-mbsnlen: New file.
24637         * lib/unistr/u16-mbsnlen.c: New file.
24638
24639         * modules/unistr/u8-mbsnlen: New file.
24640         * lib/unistr/u8-mbsnlen.c: New file.
24641
24642         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
24643         declarations.
24644
24645 2007-06-10  Bruno Haible  <bruno@clisp.org>
24646
24647         * lib/string_.h (mbsnlen): New declaration.
24648         * lib/mbsnlen.c: New file.
24649         * m4/mbsnlen.m4: New file.
24650         * modules/mbsnlen: New file.
24651         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
24652         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
24653         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
24654
24655 2007-06-10  Bruno Haible  <bruno@clisp.org>
24656
24657         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
24658
24659 2007-06-10  Bruno Haible  <bruno@clisp.org>
24660
24661         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
24662         * lib/mbuiter.h: Likewise.
24663
24664 2007-06-10  Bruno Haible  <bruno@clisp.org>
24665
24666         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
24667         declaration.
24668
24669 2007-06-10  Karl Berry  <karl@gnu.org>
24670
24671         * config/srclist.txt: remove gettext entries, Bruno prefers
24672         to update individually.
24673
24674 2007-06-10  Bruno Haible  <bruno@clisp.org>
24675
24676         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
24677         'maxlen'. Ensure only length + width bytes are allocated, not
24678         length + 1 + width.
24679
24680 2007-06-09  Bruno Haible  <bruno@clisp.org>
24681
24682         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
24683         (CHAR_T): Remove macro.
24684         (VASNPRINTF): Update.
24685
24686 2007-06-09  Bruno Haible  <bruno@clisp.org>
24687
24688         * MODULES.html.sh (Unicode string functions): Add the new modules.
24689
24690         * modules/uniconv/u32-conv-to-enc: New file.
24691         * lib/uniconv/u32-conv-to-enc.c: New file.
24692         * modules/uniconv/u32-conv-to-enc-tests: New file.
24693         * tests/uniconv/test-u32-conv-to-enc.c: New file.
24694
24695         * modules/uniconv/u16-conv-to-enc: New file.
24696         * lib/uniconv/u16-conv-to-enc.c: New file.
24697         * lib/uniconv/u-conv-to-enc.h: New file.
24698         * modules/uniconv/u16-conv-to-enc-tests: New file.
24699         * tests/uniconv/test-u16-conv-to-enc.c: New file.
24700
24701         * modules/uniconv/u8-conv-to-enc: New file.
24702         * lib/uniconv/u8-conv-to-enc.c: New file.
24703         * modules/uniconv/u8-conv-to-enc-tests: New file.
24704         * tests/uniconv/test-u8-conv-to-enc.c: New file.
24705
24706         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
24707         u32_conv_to_encoding): New declarations.
24708
24709 2007-06-09  Bruno Haible  <bruno@clisp.org>
24710
24711         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
24712
24713 2007-06-09  Bruno Haible  <bruno@clisp.org>
24714
24715         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
24716         * modules/malloca: Renamed from modules/allocsa, updated.
24717         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
24718         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
24719         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
24720         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
24721         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
24722         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
24723         * modules/xmalloca: Renamed from modules/xallocsa, updated.
24724         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
24725         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
24726         * modules/c-strcasestr (Depends-on): Update.
24727         * lib/c-strcasestr.c: Update.
24728         * modules/c-strstr (Depends-on): Update.
24729         * lib/c-strstr.c: Update.
24730         * modules/canonicalize-lgpl (Depends-on): Update.
24731         * lib/canonicalize-lgpl.c: Update.
24732         * modules/clean-temp (Depends-on): Update.
24733         * lib/clean-temp.c: Update.
24734         * modules/csharpcomp (Depends-on): Update.
24735         * lib/csharpcomp.c: Update.
24736         * modules/csharpexec (Depends-on): Update.
24737         * lib/csharpexec.c: Update.
24738         * modules/javacomp (Depends-on): Update.
24739         * lib/javacomp.c: Update.
24740         * modules/javaexec (Depends-on): Update.
24741         * lib/javaexec.c: Update.
24742         * modules/mbscasestr (Depends-on): Update.
24743         * lib/mbscasestr.c: Update.
24744         * modules/mbsstr (Depends-on): Update.
24745         * lib/mbsstr.c: Update.
24746         * modules/setenv (Depends-on): Update.
24747         * lib/setenv.c: Update.
24748         * modules/strcasestr (Depends-on): Update.
24749         * lib/strcasestr.c: Update.
24750         * modules/striconveha (Depends-on): Update.
24751         * lib/striconveha.c: Update.
24752         * modules/relocatable-prog-wrapper (Files): Update.
24753         * lib/relocwrapper.c: Update.
24754         * build-aux/install-reloc: Update.
24755         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
24756
24757 2007-06-08  Bruno Haible  <bruno@clisp.org>
24758
24759         Port to uClibc.
24760         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
24761         * lib/fpurge.c (fpurge): Likewise.
24762         * lib/freading.c (freading): Likewise.
24763         * lib/fseeko.c (rpl_fseeko): Likewise.
24764         * lib/fseterr.c (fseterr): Likewise.
24765         * lib/fwriting.c (fwriting): Likewise.
24766         * tests/test-fflush.c (main): Avoid a failure on uClibc.
24767
24768 2007-06-08  Bruno Haible  <bruno@clisp.org>
24769
24770         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
24771         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
24772         * modules/gettext (Files): Add m4/intlmacosx.m4.
24773
24774 2007-06-07  Bruno Haible  <bruno@clisp.org>
24775
24776         * modules/localename-tests: New file.
24777         * tests/test-localename.c: New file.
24778
24779         New module 'localename'.
24780         * lib/localename.h: New file.
24781         * lib/localename.c: New file, from GNU gettext.
24782         * m4/localename.m4: New file.
24783         * modules/localename: New file.
24784
24785 2007-06-07  Bruno Haible  <bruno@clisp.org>
24786
24787         Work around the lack of <wchar.h> on some builds of uClibc.
24788         * doc/headers/wchar.texi: Update.
24789         * lib/wchar_.h: Include <wchar.h> only if it exists.
24790         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
24791         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
24792         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
24793         doesn't exist.
24794         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
24795         * modules/mbfile (Depends-on): Add wchar.
24796         * modules/mbiter (Depends-on): Likewise.
24797         * modules/mbuiter (Depends-on): Likewise.
24798         Reported by Simon Josefsson.
24799
24800 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
24801
24802         Work around problem reported by Steven M. Schweda in
24803         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
24804         Tru64 5.1B with the Compaq compiler environment installed declares
24805         an 'isblank' function but does not define it in the C library.
24806         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
24807         * lib/regex_internal.h (isblank): Likewise.
24808         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
24809         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
24810
24811 2007-06-05  Bruno Haible  <bruno@clisp.org>
24812
24813         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
24814         ia64.
24815         * modules/printf-safe: New file.
24816         * modules/fprintf-posix (Depends-on): Add printf-safe.
24817         * modules/printf-posix (Depends-on): Likewise.
24818         * modules/snprintf-posix (Depends-on): Likewise.
24819         * modules/sprintf-posix (Depends-on): Likewise.
24820         * modules/vasnprintf-posix (Depends-on): Likewise.
24821         * modules/vasprintf-posix (Depends-on): Likewise.
24822         * modules/vfprintf-posix (Depends-on): Likewise.
24823         * modules/vprintf-posix (Depends-on): Likewise.
24824         * modules/vsnprintf-posix (Depends-on): Likewise.
24825         * modules/vsprintf-posix (Depends-on): Likewise.
24826         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
24827         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
24828         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
24829         "no" on i386, x86_64, ia64.
24830         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
24831         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
24832         on i386, x86_64, ia64.
24833         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
24834         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
24835         on i386, x86_64, ia64.
24836         * tests/test-vasnprintf-posix.c: Include float.h.
24837         (LDBL80_WORDS): New macro.
24838         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
24839         on i386, x86_64, ia64.
24840         * tests/test-vasprintf-posix.c: Include float.h.
24841         (LDBL80_WORDS): New macro.
24842         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
24843         on i386, x86_64, ia64.
24844         * tests/test-snprintf-posix.c: Include float.h.
24845         * tests/test-sprintf-posix.c: Likewise.
24846         * tests/test-vsnprintf-posix.c: Likewise.
24847         * tests/test-vsprintf-posix.c: Likewise.
24848
24849 2007-06-05  Bruno Haible  <bruno@clisp.org>
24850
24851         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
24852         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
24853         non-IEEE numbers on i386, x86_64, ia64.
24854         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
24855         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
24856         * tests/test-isnanl.h: Include float.h.
24857         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
24858
24859 2007-06-05  Bruno Haible  <bruno@clisp.org>
24860
24861         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
24862         also the %a / %A. Handle the %a / %A code before this extra handling.
24863
24864 2007-06-05  Bruno Haible  <bruno@clisp.org>
24865
24866         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
24867         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
24868
24869 2007-06-05  Bruno Haible  <bruno@clisp.org>
24870
24871         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
24872         typo in variable name.
24873
24874 2007-06-05  Eric Blake  <ebb9@byu.net>
24875
24876         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
24877         Reported by Simon Josefsson.
24878
24879 2007-06-04  Bruno Haible  <bruno@clisp.org>
24880
24881         Avoid test failures on some PowerPC platforms.
24882         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
24883         Define differently for PowerPC.
24884         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
24885         Reported by Gary V. Vaughan <gary@gnu.org>.
24886
24887 2007-06-02  Bruno Haible  <bruno@clisp.org>
24888
24889         Fix test-stdint failure on FreeBSD/ia64.
24890         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
24891         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
24892         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
24893         * doc/headers/stdint.texi: Update.
24894
24895 2007-06-01  Bruno Haible  <bruno@clisp.org>
24896
24897         * tests/test-binary-io.c (main): Pass a third argument to open().
24898         Reported by Gary V. Vaughan <gary@gnu.org>.
24899
24900 2007-06-01  Bruno Haible  <bruno@clisp.org>
24901
24902         * doc/functions/frexpl.texi: Update for mingw.
24903
24904 2007-06-01  Bruno Haible  <bruno@clisp.org>
24905
24906         * tests/test-lseek.c (main): Disable test of errno for invalid third
24907         argument.
24908         * doc/functions/lseek.texi: Update.
24909         Reported by Gary V. Vaughan <gary@gnu.org>.
24910
24911 2007-05-28  Bruno Haible  <bruno@clisp.org>
24912
24913         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
24914
24915 2007-05-31  Eric Blake  <ebb9@byu.net>
24916
24917         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
24918         cross compiling.
24919
24920 2007-05-30  Eric Blake  <ebb9@byu.net>
24921         and Bruno Haible  <bruno@clisp.org>
24922
24923         Work around mingw test failures exposed by m4-1.4.9b.
24924         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
24925         * tests/test-unistd.c: Disable uid_t and git_t tests for the
24926         moment.
24927
24928 2007-05-30  Bruno Haible  <bruno@clisp.org>
24929
24930         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
24931         assuming that they are closed. Needed on HP-UX 11.
24932
24933 2007-05-29  Bruno Haible  <bruno@clisp.org>
24934
24935         Fix a problem with #include_next.
24936         * lib/dirent_.h: Split the double-inclusion guard.
24937         * lib/fcntl_.h: Likewise.
24938         * lib/float_.h: Likewise.
24939         * lib/iconv_.h: Likewise.
24940         * lib/inttypes_.h: Likewise.
24941         * lib/locale_.h: Likewise.
24942         * lib/math_.h: Likewise.
24943         * lib/netinet_in_.h: Likewise.
24944         * lib/search_.h: Likewise.
24945         * lib/signal_.h: Likewise.
24946         * lib/stdint_.h: Likewise.
24947         * lib/stdio_.h: Likewise.
24948         * lib/stdlib_.h: Likewise.
24949         * lib/string_.h: Likewise.
24950         * lib/sys_select_.h: Likewise.
24951         * lib/sys_socket_.h: Likewise.
24952         * lib/sys_stat_.h: Likewise.
24953         * lib/sys_time_.h: Likewise.
24954         * lib/sysexits_.h: Likewise.
24955         * lib/time_.h: Likewise.
24956         * lib/unistd_.h: Likewise.
24957         * lib/wchar_.h: Likewise.
24958         * lib/wctype_.h: Likewise.
24959
24960 2007-05-29  Bruno Haible  <bruno@clisp.org>
24961
24962         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
24963         for the moment.
24964
24965 2007-05-29  Bruno Haible  <bruno@clisp.org>
24966
24967         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
24968         invocation.
24969         Reported by Eric Blake.
24970
24971 2007-05-29  Bruno Haible  <bruno@clisp.org>
24972
24973         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
24974         compiling case.
24975
24976 2007-05-29  Eric Blake  <ebb9@byu.net>
24977             Bruno Haible  <bruno@clisp.org>
24978
24979         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
24980         cross compiles.
24981
24982 2007-05-28  Eric Blake  <ebb9@byu.net>
24983
24984         * modules/closein-tests (test_closein_LDADD): Support test on
24985         cygwin with libtool.
24986
24987 2007-05-28  Bruno Haible  <bruno@clisp.org>
24988
24989         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
24990         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24991         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24992         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24993         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24994         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24995         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24996         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24997         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24998
24999 2007-05-28  Eric Blake  <ebb9@byu.net>
25000
25001         Unconditionally include <config.h> in unit tests.
25002         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
25003         * tests/test-allocsa.c, tests/test-arcfour.c,
25004         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
25005         tests/test-array_list.c, tests/test-array_oset.c,
25006         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
25007         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
25008         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
25009         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
25010         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
25011         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
25012         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
25013         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
25014         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
25015         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
25016         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
25017         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
25018         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
25019         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
25020         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
25021         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
25022         test-md5.c, test-memmem.c, test-printf-posix.c,
25023         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
25024         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
25025         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
25026         test-strcasestr.c, test-striconv.c, test-striconveh.c,
25027         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
25028         test-vasnprintf-posix2.c, test-vasnprintf.c,
25029         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
25030         test-vfprintf-posix.c, test-vprintf-posix.c,
25031         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
25032         test-xvasprintf.c: Likewise.
25033
25034 2007-05-28  Bruno Haible  <bruno@clisp.org>
25035
25036         * gnulib-tool (func_import): Remember the --with-tests command-line
25037         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
25038         Reported by Eric Blake.
25039
25040 2007-05-28  Bruno Haible  <bruno@clisp.org>
25041
25042         * modules/ftell-tests: New file.
25043         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
25044         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
25045
25046         * lib/ftell.c: New file.
25047         * modules/ftell: New file.
25048         * m4/ftell.m4: New file.
25049         * doc/functions/ftell.texi: Update.
25050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
25051         REPLACE_FTELL.
25052         * lib/stdio_.h (rpl_ftell): New declaration.
25053         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
25054         REPLACE_FTELL.
25055
25056 2007-05-28  Eric Blake  <ebb9@byu.net>
25057
25058         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
25059
25060 2007-05-28  Bruno Haible  <bruno@clisp.org>
25061
25062         * modules/fseek-tests: New file.
25063         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
25064         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
25065
25066         * lib/fseek.c: New file.
25067         * modules/fseek: New file.
25068         * m4/fseek.m4: New file.
25069         * doc/functions/fseek.texi: Update.
25070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
25071         REPLACE_FSEEK.
25072         * lib/stdio_.h (rpl_fseek): New declaration.
25073         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
25074         REPLACE_FSEEK.
25075
25076 2007-05-28  Bruno Haible  <bruno@clisp.org>
25077
25078         * lib/stdio_.h (fflush): More comments.
25079
25080 2007-05-28  Bruno Haible  <bruno@clisp.org>
25081
25082         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
25083         runtime test.
25084
25085 2007-05-28  Eric Blake  <ebb9@byu.net>
25086
25087         Improve lseek module.
25088         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
25089         * lib/unistd_.h (lseek): Scale back link warning message.
25090         * tests/test-lseek.c: Beef up test.
25091         * tests/test-lseek.sh: Exercise more facets of lseek.
25092         Reported by Bruno Haible.
25093
25094 2007-05-28  Bruno Haible  <bruno@clisp.org>
25095
25096         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
25097         to define.
25098
25099 2007-05-27  Bruno Haible  <bruno@clisp.org>
25100
25101         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
25102
25103 2007-05-27  Bruno Haible  <bruno@clisp.org>
25104
25105         * modules/openmp: New file.
25106         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
25107         Noah Misch.
25108
25109 2007-05-26  Bruno Haible  <bruno@clisp.org>
25110
25111         * modules/chdir-long (Depends-on): Add fchdir.
25112         * modules/chdir-safer (Depends-on): Likewise.
25113         * modules/fts (Depends-on): Likewise.
25114         * modules/fts-lgpl (Depends-on): Likewise.
25115         * modules/openat (Depends-on): Likewise.
25116         * modules/savewd (Depends-on): Likewise.
25117
25118 2007-05-24  Eric Blake  <ebb9@byu.net>
25119
25120         Fix lseek on mingw.
25121         * modules/lseek: New module.
25122         * m4/lseek.m4: New file.
25123         * lib/lseek.c: New file.
25124         * modules/lseek-tests: New file.
25125         * tests/test-lseek.c: New file.
25126         * tests/test-lseek.sh: New file.
25127         * MODULES.html.sh: Document lseek module.
25128         * modules/fflush (Depends-on): Add lseek, fseeko.
25129         * modules/fseeko (Depends-on): Likewise.
25130         * modules/ftello (Depends-on): Likewise.
25131         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
25132         broken.
25133         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
25134         broken.
25135         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
25136         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
25137         * lib/ftello.c (rpl_ftello): Likewise.
25138         * tests/test-fseeko.c (main): Test this.
25139         * tests/test-fseeko.sh: Likewise.
25140         * tests/test-ftello.c (main): Likewise.
25141         * tests/test-ftello.sh: Likewise.
25142         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
25143         implies replacing fseek.
25144         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
25145         HAVE_FTELLO.
25146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
25147         * modules/unistd (Makefile.am): Likewise.
25148         * lib/unistd_.h (lseek): Declare a replacement.
25149         * doc/functions/lseek.texi (lseek): Document this fix.
25150         * doc/functions/fseek.texi (fseek): Likewise.
25151         * doc/functions/ftell.texi (ftell): Likewise.
25152
25153 2007-05-24  Bruno Haible  <bruno@clisp.org>
25154
25155         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
25156         in the printed representation of a NaN.
25157         * tests/test-vasprintf-posix.c (test_function): Likewise.
25158         * tests/test-snprintf-posix.h (test_function): Likewise.
25159         * tests/test-sprintf-posix.h (test_function): Likewise.
25160         Reported by Eric Blake.
25161
25162 2007-05-23  Eric Blake  <ebb9@byu.net>
25163
25164         Fix fseeko/ftello on cygwin 1.5.24.
25165         * doc/functions/fseeko.texi (fseeko): Document the fix.
25166         * doc/functions/ftello.texi (ftello): Document the fix.
25167         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
25168         * doc/functions/stdout.text (stdout): New file.
25169         * doc/functions/stderr.text (stderr): New file.
25170         * doc/gnulib.texi (Function Substitutes): Use new files.
25171         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
25172         prior to 1.7.0.
25173         * tests/test-ftello.c (main): Likewise for ftello.
25174         * tests/test-fseeko.sh: New file.
25175         * tests/test-ftello.sh: New file.
25176         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
25177         with seekable stdin.
25178         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
25179         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
25180         (gl_REPLACE_FSEEKO): New macro.
25181         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
25182         * modules/fseeko (Files): Distribute fseeko.c.
25183         * modules/ftello (Files): Distribute ftello.c.
25184         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
25185         mode.
25186         * lib/ftello.c (rpl_ftello): New file.
25187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
25188         fseeko, ftello.
25189         (gl_STDIN_LARGE_OFFSET): New macro.
25190         * modules/stdio (Makefile.am): Perform the replacement.
25191         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
25192
25193 2007-05-23  Bruno Haible  <bruno@clisp.org>
25194
25195         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
25196         GNULIB_POSIXCHECK is defined.
25197
25198 2007-05-21  Bruno Haible  <bruno@clisp.org>
25199
25200         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
25201         Check also the output for NaN arguments. When cross-compiling, guess
25202         no on IRIX.
25203         * lib/vasnprintf.c: Update comments.
25204         * tests/test-vasnprintf-posix.c (strisnan): New function.
25205         (test_function): Use it.
25206         * tests/test-vasprintf-posix.c (strisnan): New function.
25207         (test_function): Use it.
25208         * tests/test-snprintf-posix.h (strisnan): New function.
25209         (test_function): Use it.
25210         * tests/test-sprintf-posix.h (strisnan): New function.
25211         (test_function): Use it.
25212         Reported by Eric Blake.
25213
25214 2007-05-20  Bruno Haible  <bruno@clisp.org>
25215
25216         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
25217         numbers that fails on BeOS.
25218         * doc/functions/frexpl.texi: Update.
25219
25220 2007-05-20  Jim Meyering  <jim@meyering.net>
25221
25222         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
25223         forced upon us by glibc-2.6.
25224
25225 2007-05-20  Bruno Haible  <bruno@clisp.org>
25226
25227         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
25228         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
25229         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
25230         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
25231         NEED_PRINTF_INFINITE.
25232         (is_infinitel): New function.
25233         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
25234         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
25235         gl_PREREQ_VASNPRINTF_INFINITE.
25236         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
25237         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25238         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
25239         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
25240         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
25241         gl_PREREQ_VASNPRINTF_INFINITE.
25242         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25243         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25244         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25245         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25246         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25247         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25248         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25249         * doc/functions/fprintf.texi: Update.
25250         * doc/functions/printf.texi: Update.
25251         * doc/functions/snprintf.texi: Update.
25252         * doc/functions/sprintf.texi: Update.
25253         * doc/functions/vfprintf.texi: Update.
25254         * doc/functions/vprintf.texi: Update.
25255         * doc/functions/vsnprintf.texi: Update.
25256         * doc/functions/vsprintf.texi: Update.
25257
25258 2007-05-20  Bruno Haible  <bruno@clisp.org>
25259
25260         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
25261         was not found in libc.
25262         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
25263
25264 2007-05-20  Bruno Haible  <bruno@clisp.org>
25265
25266         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
25267         printed as "-nan" instead of "nan".
25268         * tests/test-vasprintf-posix.c (test_function): Likewise.
25269         * tests/test-snprintf-posix.h (test_function): Likewise.
25270         * tests/test-sprintf-posix.h (test_function): Likewise.
25271         Needed for HP-UX 11.
25272
25273 2007-05-20  Jim Meyering  <jim@meyering.net>
25274
25275         Fix buggy test for the fchownat-deref bug.
25276         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
25277         symlink required for the run-test.  Without it, this test would
25278         always declare that fchownat doesn't work, and client code would
25279         unnecessarily use the replacement function with fixed libc.
25280         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
25281         Reported by Greg Schafer.
25282
25283 2007-05-19  Bruno Haible  <bruno@clisp.org>
25284
25285         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
25286         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
25287         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
25288         Needed for IRIX 6.5 and Solaris 2.5.1.
25289
25290 2007-05-19  Bruno Haible  <bruno@clisp.org>
25291
25292         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
25293         (test_function): Skip tests involving -0.0 on platforms where
25294         -0.0 = 0.0.
25295         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
25296         (test_function): Skip tests involving -0.0 on platforms where
25297         -0.0 = 0.0.
25298         * tests/test-snprintf-posix.h (have_minus_zero): New function.
25299         (test_function): Skip tests involving -0.0 on platforms where
25300         -0.0 = 0.0.
25301         * tests/test-sprintf-posix.h (have_minus_zero): New function.
25302         (test_function): Skip tests involving -0.0 on platforms where
25303         -0.0 = 0.0.
25304         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
25305         tests.
25306         * tests/test-printf-posix.h (test_function): Likewise.
25307         * tests/test-printf-posix.output: Remove all -0.0 related results.
25308         Needed for IRIX 6.5.
25309
25310 2007-05-19  Bruno Haible  <bruno@clisp.org>
25311
25312         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
25313         printed as "nan0x7fffffff" instead of "nan".
25314         * tests/test-vasprintf-posix.c (test_function): Likewise.
25315         * tests/test-snprintf-posix.h (test_function): Likewise.
25316         * tests/test-sprintf-posix.h (test_function): Likewise.
25317         * tests/test-fprintf-posix.h (NaN): Remove macro.
25318         (test_function): Remove all NaN related tests.
25319         * tests/test-printf-posix.h (NaN): Remove macro.
25320         (test_function): Remove all NaN related tests.
25321         * tests/test-printf-posix.output: Remove all NaN related results.
25322         Needed for IRIX 6.5.
25323
25324 2007-05-19  Bruno Haible  <bruno@clisp.org>
25325
25326         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
25327         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25328
25329 2007-05-19  Bruno Haible  <bruno@clisp.org>
25330
25331         * lib/float_.h: New file.
25332         * m4/float_h.m4: New file.
25333         * modules/float: New file.
25334         * modules/isnanl (Dependencies): Add float.
25335         * modules/isnanl-nolibm (Dependencies): Likewise.
25336         * modules/mathl (Dependencies): Likewise.
25337         * modules/printf-frexpl (Dependencies): Likewise.
25338         * modules/signbit (Dependencies): Likewise.
25339         * modules/vasnprintf (Dependencies): Likewise.
25340         * doc/headers/float.texi: Update.
25341
25342 2007-05-19  Jim Meyering  <jim@meyering.net>
25343
25344         * lib/utimens.c (gl_futimens): Rename from futimens,
25345         now that glibc-2.6 declares futimens.
25346         * lib/utimens.h: Likewise.
25347
25348 2007-05-19  Bruno Haible  <bruno@clisp.org>
25349
25350         Avoid test failures on mingw.
25351         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
25352         * tests/test-printf-posix.sh: Likewise.
25353         * tests/test-vfprintf-posix.sh: Likewise.
25354         * tests/test-vprintf-posix.sh: Likewise.
25355
25356 2007-05-19  Bruno Haible  <bruno@clisp.org>
25357
25358         Fix *printf result for NaN, Inf, -0.0 on mingw.
25359         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
25360         * lib/vasnprintf.c: Include math.h and isnan.h.
25361         (is_infinite_or_zero): New function.
25362         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
25363         values in the %f, %F, %e, %E, %g, %G directives.
25364         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
25365         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25366         gl_PRINTF_INFINITE and test its result. Invoke
25367         gl_PREREQ_VASNPRINTF_INFINITE.
25368         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25369         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25370         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25371         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25372         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25373         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25374         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25375         * doc/functions/fprintf.texi: Update.
25376         * doc/functions/printf.texi: Update.
25377         * doc/functions/snprintf.texi: Update.
25378         * doc/functions/sprintf.texi: Update.
25379         * doc/functions/vfprintf.texi: Update.
25380         * doc/functions/vprintf.texi: Update.
25381         * doc/functions/vsnprintf.texi: Update.
25382         * doc/functions/vsprintf.texi: Update.
25383
25384 2007-05-19  Bruno Haible  <bruno@clisp.org>
25385
25386         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
25387         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
25388         Instead of multiplying with 10^k, set extra_zeroes to k.
25389         (scale10_round_long_double): Remove function.
25390
25391 2007-05-18  Bruno Haible  <bruno@clisp.org>
25392
25393         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
25394         introduced on 2007-05-06.
25395
25396 2007-05-18  Bruno Haible  <bruno@clisp.org>
25397
25398         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
25399         %g directives.
25400         * tests/test-vasprintf-posix.c (test_function): Likewise.
25401         * tests/test-snprintf-posix.h (test_function): Likewise.
25402         * tests/test-sprintf-posix.h (test_function): Likewise.
25403
25404 2007-05-18  Bruno Haible  <bruno@clisp.org>
25405
25406         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
25407         (strmatch): New function.
25408         (test_function): Test the %f directive on numbers of various exponents.
25409         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
25410         (strmatch): New function.
25411         (test_function): Test the %f directive on numbers of various exponents.
25412         * tests/test-snprintf-posix.h (strmatch): New function.
25413         (test_function): Test the %f directive on numbers of various exponents.
25414         * tests/test-sprintf-posix.h (strmatch): New function.
25415         (test_function): Test the %f directive on numbers of various exponents.
25416         * tests/test-snprintf-posix.c (SIZEOF): New macro.
25417         * tests/test-sprintf-posix.c (SIZEOF): New macro.
25418         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
25419         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
25420
25421 2007-05-18  Bruno Haible  <bruno@clisp.org>
25422
25423         Add support for 'long double' number output.
25424         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
25425         * lib/vasnprintf.c: Include math.h and float+.h.
25426         (mp_limb_t): New type.
25427         (GMP_LIMB_BITS): New macro.
25428         (mp_twolimb_t): New type.
25429         (GMP_TWOLIMB_BITS): New macro.
25430         (mpn_t): New type.
25431         (multiply, divide, convert_to_decimal, decode_long_double,
25432         scale10_round_long_double, scale10_round_decimal_long_double,
25433         floorlog10l): New functions.
25434         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
25435         for the %f, %F, %e, %E, %g, %G directives.
25436         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
25437         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25438         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
25439         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
25440         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25441         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25442         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25443         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25444         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25445         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25446         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25447         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
25448         * modules/snprintf-posix (Depends-on): Likewise.
25449         * modules/sprintf-posix (Depends-on): Likewise.
25450         * modules/vasnprintf-posix (Depends-on): Likewise.
25451         * modules/vasprintf-posix (Depends-on): Likewise.
25452         * modules/vfprintf-posix (Depends-on): Likewise.
25453         * modules/vsnprintf-posix (Depends-on): Likewise.
25454         * modules/vsprintf-posix (Depends-on): Likewise.
25455         * modules/vasnprintf (Files): Add lib/float+.h.
25456         * doc/functions/fprintf.texi: Update.
25457         * doc/functions/printf.texi: Update.
25458         * doc/functions/snprintf.texi: Update.
25459         * doc/functions/sprintf.texi: Update.
25460         * doc/functions/vfprintf.texi: Update.
25461         * doc/functions/vprintf.texi: Update.
25462         * doc/functions/vsnprintf.texi: Update.
25463         * doc/functions/vsprintf.texi: Update.
25464
25465 2007-05-18  Bruno Haible  <bruno@clisp.org>
25466
25467         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
25468
25469 2007-05-18  Bruno Haible  <bruno@clisp.org>
25470
25471         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
25472         for printing 64-bit integers. Needed for mingw.
25473
25474 2007-05-18  Bruno Haible  <bruno@clisp.org>
25475
25476         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
25477         gl_FUNC_FREXPL_WORKS.
25478         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
25479
25480 2007-05-18  Bruno Haible  <bruno@clisp.org>
25481
25482         * modules/frexpl-nolibm-tests: New file.
25483
25484         * modules/frexpl-nolibm: New file.
25485         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
25486
25487 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
25488
25489         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
25490         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
25491         GCC 4.2, which otherwise issues a lot of warnings.
25492         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
25493         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
25494         Likewise.
25495         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
25496         * modules/iconv_open (iconv.h): Likewise.
25497         * modules/locale (locale.h): Likewise.
25498         * modules/netinet_in (netinet/in.h): Likewise.
25499         * modules/sys_select (sys_select.h): Likewise.
25500         * modules/sys_socket (sys/socket.h): Likewise.
25501         * modules/sys_stat (sys/stat.h): Likewise.
25502         * modules/sysexits (sysexits.h): Likewise.
25503         * modules/unistd (unistd.h): Likewise.
25504
25505 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25506
25507         * modules/closein-tests (Makefile.am): Distribute
25508         `test-closein.sh'.
25509
25510 2007-05-17  Bruno Haible  <bruno@clisp.org>
25511
25512         * tests/test-printf-posix.output: Renamed from
25513         tests/test-fprintf-posix.out.
25514         * modules/fprintf-posix-tests: Update.
25515         * modules/printf-posix-tests: Update.
25516         * modules/vfprintf-posix-tests: Update.
25517         * modules/vprintf-posix-tests: Update.
25518         * tests/test-fprintf-posix.sh: Update.
25519         * tests/test-printf-posix.sh: Update.
25520         * tests/test-vfprintf-posix.sh: Update.
25521         * tests/test-vprintf-posix.sh: Update.
25522         Reported by Ralf Wildenhues.
25523
25524 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
25525
25526         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
25527         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
25528         GCC 4.2, which otherwise issues a lot of warnings.
25529         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
25530         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
25531         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
25532         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
25533         it should no longer be needed.
25534         * lib/string_.h: Likewise.
25535         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
25536         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
25537         * modules/inttypes (inttypes.h): Likewise.
25538         * modules/math (math.h): Likewise.
25539         * modules/search (search.h): Likewise.
25540         * modules/signal (signal.h): Likewise.
25541         * modules/stdint (stdint.h): Likewise.
25542         * modules/stdio (stdio.h): Likewise.
25543         * modules/stdlib (stdlib.h): Likewise.
25544         * modules/string (string.h): Likewise.
25545         * modules/sys_time (sys/time.h): Likewise.
25546         * modules/time (time.h): Likewise.
25547         * modules/wchar (wchar.h): Likewise.
25548         * modules/wctype (wtype.h): Likewise.
25549
25550 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25551
25552         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
25553
25554 2007-05-13  Bruno Haible  <bruno@clisp.org>
25555
25556         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
25557         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25558         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
25559         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
25560         (gl_PREREQ_STRTOK_R): Don't require it here.
25561
25562 2007-05-13  Bruno Haible  <bruno@clisp.org>
25563
25564         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
25565         when used in C++ mode.
25566
25567 2007-05-12  Bruno Haible  <bruno@clisp.org>
25568
25569         * lib/linebuffer.h: Tweak doc.
25570         * lib/linebuffer.c: Likewise.
25571
25572 2007-05-12  James Youngman  <jay@gnu.org>
25573
25574         * lib/linebuffer.c (readlinebuffer_delim): New function,
25575         like readlinebuffer, but use a caller-specified delimiter.
25576         (readlinebuffer): Just call readlinebuffer_delim with '\n'
25577         as the delimiter.
25578         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
25579
25580 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25581
25582         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
25583         * modules/openat (Files): Remove openat-die.c.
25584         (Depends-on): Add openat-die.
25585         * modules/openat-die: New module.
25586
25587 2007-05-06  Bruno Haible  <bruno@clisp.org>
25588
25589         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
25590         Update with info about Cygwin.
25591         * doc/functions/fprintf.texi: Update.
25592         * doc/functions/printf.texi: Update.
25593         * doc/functions/snprintf.texi: Update.
25594         * doc/functions/sprintf.texi: Update.
25595         * doc/functions/vfprintf.texi: Update.
25596         * doc/functions/vprintf.texi: Update.
25597         * doc/functions/vsnprintf.texi: Update.
25598         * doc/functions/vsprintf.texi: Update.
25599         Reported by Eric Blake.
25600
25601 2007-05-06  Bruno Haible  <bruno@clisp.org>
25602
25603         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
25604         padding ourselves for the floating-point directives.
25605         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
25606         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
25607         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25608         gl_PRINTF_FLAG_ZERO and test its result. Invoke
25609         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
25610         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25611         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
25612         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25613         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25614         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25615         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25616         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25617         * tests/test-snprintf-posix.h (test_function): Also check the width
25618         and some flags in the %f directive.
25619         * tests/test-sprintf-posix.h (test_function): Likewise.
25620         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25621         * tests/test-vasprintf-posix.c (test_function): Likewise.
25622         * doc/functions/fprintf.texi: Update.
25623         * doc/functions/printf.texi: Update.
25624         * doc/functions/snprintf.texi: Update.
25625         * doc/functions/sprintf.texi: Update.
25626         * doc/functions/vfprintf.texi: Update.
25627         * doc/functions/vprintf.texi: Update.
25628         * doc/functions/vsnprintf.texi: Update.
25629         * doc/functions/vsprintf.texi: Update.
25630
25631 2007-05-06  Bruno Haible  <bruno@clisp.org>
25632
25633         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
25634         pass the ' flag character to sprintf or snprintf.
25635         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
25636         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
25637         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25638         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
25639         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
25640         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25641         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
25642         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25643         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25644         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25645         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25646         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25647         * tests/test-snprintf-posix.h (test_function): Also check the grouping
25648         flag.
25649         * tests/test-sprintf-posix.h (test_function): Likewise.
25650         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25651         * tests/test-vasprintf-posix.c (test_function): Likewise.
25652         * doc/functions/fprintf.texi: Update.
25653         * doc/functions/printf.texi: Update.
25654         * doc/functions/snprintf.texi: Update.
25655         * doc/functions/sprintf.texi: Update.
25656         * doc/functions/vfprintf.texi: Update.
25657         * doc/functions/vprintf.texi: Update.
25658         * doc/functions/vsnprintf.texi: Update.
25659         * doc/functions/vsprintf.texi: Update.
25660
25661 2007-05-01  Bruno Haible  <bruno@clisp.org>
25662
25663         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
25664
25665 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
25666
25667         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
25668         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
25669
25670 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25671
25672         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
25673         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
25674         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
25675
25676 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
25677
25678         * lib/argp-help.c (struct hol_entry): New member `ord'.
25679         (HOL_ENTRY_PTRCMP): Use ord for comparison
25680         (hol_sort): Initialize ord.
25681
25682 2007-05-01  Bruno Haible  <bruno@clisp.org>
25683
25684         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
25685         Reported by Eric Blake.
25686         * doc/gnulib.texi (Function Substitutes): Update.
25687
25688 2007-05-01  Bruno Haible  <bruno@clisp.org>
25689
25690         * doc/functions.texi: Remove file, now redundant through
25691         doc/functions/*.texi.
25692
25693 2007-05-01  Bruno Haible  <bruno@clisp.org>
25694
25695         * modules/argp (Depends-on): Add sleep.
25696
25697 2007-05-01  Bruno Haible  <bruno@clisp.org>
25698
25699         * modules/sleep-tests: New file.
25700         * tests/test-sleep.c: New file.
25701
25702         * modules/sleep: New file.
25703         * lib/sleep.c: New file.
25704         * m4/sleep.m4: New file.
25705         * lib/unistd_.h (sleep): New declaration.
25706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
25707         HAVE_SLEEP.
25708         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
25709         * doc/functions/sleep.texi: Document the sleep module.
25710
25711 2007-05-01  Bruno Haible  <bruno@clisp.org>
25712
25713         * lib/sigprocmask.h: Remove file.
25714         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
25715         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
25716         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
25717         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
25718         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
25719         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
25720         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
25721         HAVE_SIGSET_T as a shell variable.
25722         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
25723         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
25724         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
25725         (Depends-on): Add signal. Remove verify.
25726         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
25727         (Include): Mention <signal.h> instead of sigprocmask.h.
25728         * NEWS: Mention the change.
25729         * lib/fatal-signal.c: Don't include sigprocmask.h.
25730
25731 2007-05-01  Bruno Haible  <bruno@clisp.org>
25732
25733         * modules/signal: New file.
25734         * lib/signal_.h: New file.
25735         * m4/signal_h.m4: New file.
25736
25737 2007-05-01  Bruno Haible  <bruno@clisp.org>
25738
25739         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
25740         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
25741         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
25742         HAVE_WCTYPE_CTMP_BUG into wctype.h.
25743
25744 2007-05-01  Bruno Haible  <bruno@clisp.org>
25745
25746         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
25747         configure time.
25748         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
25749         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
25750         * modules/sys_stat (Makefile.am): Substitute their values into
25751         sys/stat.h.
25752
25753 2007-05-01  Bruno Haible  <bruno@clisp.org>
25754
25755         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
25756         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
25757         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
25758
25759 2007-05-01  Bruno Haible  <bruno@clisp.org>
25760
25761         * doc/header/assert.texi: Undo last change: don't mention the gnulib
25762         'assert' module here.
25763
25764 2007-05-01  Bruno Haible  <bruno@clisp.org>
25765
25766         * doc/functions/*.texi: New files.
25767         * doc/functions/google-ranking.txt: New file.
25768         * doc/gnulib.texi (Function Substitutes): New chapter.
25769         (ctime, inet_ntoa): Remove sections.
25770         * doc/ctime.texi: Remove file.
25771         * doc/inet_ntoa.texi: Remove file.
25772         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
25773         dependencies.
25774         (%.info): New rule, specifying a --reference-limit.
25775
25776 2007-05-01  Bruno Haible  <bruno@clisp.org>
25777
25778         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
25779
25780 2007-05-01  Bruno Haible  <bruno@clisp.org>
25781
25782         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
25783         the portability of 'mkdir' to mingw systems.
25784
25785 2007-05-01  Bruno Haible  <bruno@clisp.org>
25786
25787         * doc/headers/google-ranking.txt: New file.
25788
25789 2007-04-30  Eric Blake  <ebb9@byu.net>
25790
25791         Prefer fseeko to fseek.
25792         * modules/getpass (Depends-on): Add fseeko.
25793         * lib/getpass.c (getpass): Use fseeko, not fseek.
25794
25795 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
25796
25797         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
25798         assumes the sorting is stable, while most qsort implementations
25799         are not.  Use argument addresses to ensure they never compare as
25800         equal.
25801
25802         * tests/test-argp-2.sh (usage-indent test): Fix output
25803         (func_compare): Restore diff options
25804         * tests/test-argp.c: Restore #include "progname.h"
25805
25806 2007-04-29  Bruno Haible  <bruno@clisp.org>
25807
25808         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
25809         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25810         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
25811         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25812         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
25813         (configure.ac): Define CHECK_SNPRINTF_POSIX.
25814         (TESTS, check_PROGRAMS): Add test-snprintf.
25815         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
25816         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
25817         (TESTS, check_PROGRAMS): Add test-vsnprintf.
25818         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
25819         assertions that fail on HP-UX, OSF/1, or IRIX.
25820         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
25821
25822 2007-04-29  Bruno Haible  <bruno@clisp.org>
25823
25824         * MODULES.html.sh (posix_functions): Remove 'contents'.
25825
25826 2007-04-29  Karl Berry  <karl@gnu.org>
25827
25828         * config/srclist.txt (gendocs_template_min): new entry.
25829
25830 2007-04-29  Bruno Haible  <bruno@clisp.org>
25831
25832         Work around fpurge bug on BSD systems.
25833         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
25834         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
25835         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
25836         fpurge to rpl_fpurge if the system already has this function.
25837         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
25838         the case where the system already has this function. Correct invariants
25839         on BSD systems.
25840         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
25841         BSD systems.
25842
25843 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
25844
25845         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
25846         proposed by Sven Verdoolaege.
25847
25848         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
25849         options.
25850         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
25851         (usage and help tests): Update
25852
25853 2007-04-29  Bruno Haible  <bruno@clisp.org>
25854
25855         * tests/test-fflush.c (main): Use a file of size 17, not 10.
25856         Print more information in case of failure. Disable a test on BeOS.
25857
25858 2007-04-29  Bruno Haible  <bruno@clisp.org>
25859
25860         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
25861         This helps debugging on systems on which no gdb is available.
25862
25863 2007-04-29  Bruno Haible  <bruno@clisp.org>
25864
25865         * lib/freading.h: Improve comments.
25866         * lib/fwriting.h: Likewise.
25867         * tests/test-freading.c (main): Don't check freading immediately after
25868         repositioning. Needed for glibc.
25869
25870 2007-04-29  Bruno Haible  <bruno@clisp.org>
25871
25872         * lib/freading.c (freading): Trivial simplification.
25873
25874 2007-04-28  Bruno Haible  <bruno@clisp.org>
25875
25876         * tests/test-fwriting.c (main): Also test the interaction between
25877         fflush and fwriting.
25878         * modules/fwriting-tests (Depends-on): Add fflush.
25879
25880         * tests/test-freading.c (main): Also test the interaction between
25881         fflush and freading.
25882         * modules/freading-tests (Depends-on): Add fflush.
25883
25884 2007-04-28  Bruno Haible  <bruno@clisp.org>
25885
25886         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
25887         fseeko and ftello.
25888         Suggested by Eric Blake.
25889
25890 2007-04-28  Jim Meyering  <jim@meyering.net>
25891
25892         Avoid false-negative in gl_STDINT_H's C99 conformance test.
25893         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
25894         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
25895
25896 2007-04-27  Eric Blake  <ebb9@byu.net>
25897
25898         * doc/headers/assert.texi (assert.h): Document assert module use.
25899
25900 2007-04-27  Bruno Haible  <bruno@clisp.org>
25901
25902         * doc/headers/*.texi: New files.
25903         * doc/gnulib.texi (Header File Substitutes): New chapter.
25904         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
25905         dependencies.
25906         (standards.info ,standards.html, standards.dvi): Update dependencies.
25907         (mostlyclean, clean): New targets.
25908
25909 2007-04-27  Bruno Haible  <bruno@clisp.org>
25910
25911         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
25912         * modules/sysexits (Files, Makefile.am): Update.
25913
25914         * lib/sys_socket_.h: Renamed from lib/socket_.h.
25915         * modules/sys_socket (Files, Makefile.am): Update.
25916
25917         * lib/sys_stat_.h: Renamed from lib/stat_.h.
25918         * modules/sys_stat (Files, Makefile.am): Update.
25919
25920 2007-04-27  Eric Blake  <ebb9@byu.net>
25921
25922         * lib/freading.h: Improve comments.
25923         * lib/fwriting.h: Likewise.
25924         * lib/fflush.c: Likewise.
25925
25926         Fix closein for mingw.
25927         * modules/closein-tests: Add tests for closein.
25928         * tests/test-closein.c: New file.
25929         * tests/test-closein.sh: Likewise.
25930         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
25931         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
25932
25933 2007-04-27  Bruno Haible  <bruno@clisp.org>
25934
25935         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
25936         version is < 6.
25937         * lib/math_.h [__DECC]: Likewise.
25938         * lib/stdio_.h [__DECC]: Likewise.
25939         * lib/stdlib_.h [__DECC]: Likewise.
25940         * lib/string_.h [__DECC]: Likewise.
25941         * lib/time_.h [__DECC]: Likewise.
25942         * lib/wchar_.h [__DECC]: Likewise.
25943         * lib/wctype_.h [__DECC]: Likewise.
25944
25945 2007-04-27  Bruno Haible  <bruno@clisp.org>
25946
25947         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
25948
25949 2007-04-27  Bruno Haible  <bruno@clisp.org>
25950
25951         * lib/fflush.c: Add comments.
25952         * modules/fpurge-tests (Depends-on): Add fflush.
25953         * modules/freadable-tests (Depends-on): Likewise.
25954         * modules/fwritable-tests (Depends-on): Likewise.
25955
25956 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
25957
25958         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
25959         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
25960         Report by Bruno Haible <bruno@clisp.org>.
25961
25962 2007-04-26  Eric Blake  <ebb9@byu.net>
25963
25964         Fix fflush on mingw.
25965         * modules/fflush (Depends-on): Add freading.
25966         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
25967         but unread data.
25968
25969 2007-04-26  Eric Blake  <ebb9@byu.net>
25970         and Bruno Haible  <bruno@clisp.org>
25971
25972         Implement freading and fwriting.
25973         * lib/freading.c: New file.
25974         * lib/freading.h: Likewise.
25975         * m4/freading.m4: Likewise.
25976         * modules/freading: Likewise.
25977         * modules/freading-tests: Likewise.
25978         * tests/test-freading.c: Likewise.
25979         * lib/fwriting.c: New file.
25980         * lib/fwriting.h: Likewise.
25981         * m4/fwriting.m4: Likewise.
25982         * modules/fwriting: Likewise.
25983         * modules/fwriting-tests: Likewise.
25984         * tests/test-fwriting.c: Likewise.
25985         * MODULES.html.sh (File stream based Input/Output): Mention them.
25986
25987 2007-04-26  Bruno Haible  <bruno@clisp.org>
25988
25989         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
25990         'long' when we assume it.
25991         Suggested by Eric Blake.
25992
25993 2007-04-26  Bruno Haible  <bruno@clisp.org>
25994
25995         Ensure fseeko, ftello are declared on glibc systems.
25996         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
25997         * modules/fseeko (configure.ac-early): Likewise.
25998         * modules/ftello (configure.ac-early): Likewise.
25999         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
26000         AC_FUNC_FSEEKO for this.
26001         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
26002         (gl_CHECK_FSEEKO): Remove macro.
26003
26004 2007-04-26  Bruno Haible  <bruno@clisp.org>
26005
26006         * tests/test-fflush.c (main): Also check the ftell result after
26007         fflush and fseek/fseeko.
26008         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
26009         file descriptor position cache in the stream.
26010         * lib/fseeko.c (rpl_fseeko): Likewise.
26011
26012 2007-04-26  Bruno Haible  <bruno@clisp.org>
26013
26014         * modules/fflush-tests (Depends-on): Add fseeko.
26015
26016 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
26017             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26018
26019         * lib/argz_.h: ensure error_t definition is obtained in same
26020         mechanism system argz.h would have.
26021         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
26022         argz facilities are known bad.  Err on the side of caution if
26023         cross-compiling.
26024
26025 2007-04-25  Eric Blake  <ebb9@byu.net>
26026
26027         * lib/fpurge.c (includes): Use stdlib.h for free.
26028         * tests/test-fflush.c (main): Also test fflush-fseeko.
26029
26030 2007-04-25  Bruno Haible  <bruno@clisp.org>
26031
26032         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
26033         * lib/fseeko.c: New file.
26034         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
26035         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
26036         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
26037         gl_FUNC_FSEEKO.
26038         (gl_FUNC_FSEEKO): Invoke it.
26039         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
26040         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
26041         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
26042
26043 2007-04-25  Bruno Haible  <bruno@clisp.org>
26044
26045         * modules/fflush (Depends-on): Add ftello.
26046
26047 2007-04-25  Bruno Haible  <bruno@clisp.org>
26048
26049         * modules/ftello-tests: New file.
26050         * tests/test-ftello.c: New file.
26051
26052         * modules/ftello: New file.
26053         * m4/ftello.m4: New file.
26054         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
26055         HAVE_FTELLO.
26056         * lib/stdio_.h (ftello): New declaration.
26057         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
26058         HAVE_FTELLO.
26059
26060 2007-04-25  Bruno Haible  <bruno@clisp.org>
26061
26062         * modules/fseeko-tests: New file.
26063         * tests/test-fseeko.c: New file.
26064
26065         * modules/fseeko: New file.
26066         * m4/fseeko.m4: New file.
26067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
26068         HAVE_FSEEKO.
26069         * lib/stdio_.h (fseeko): New declaration.
26070         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
26071         HAVE_FSEEKO.
26072
26073 2007-04-25  Bruno Haible  <bruno@clisp.org>
26074
26075         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
26076
26077 2007-04-25  Bruno Haible  <bruno@clisp.org>
26078
26079         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
26080         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
26081         * tests/test-unistd.c: Likewise.
26082         * tests/test-fcntl.c: Likewise.
26083
26084 2007-04-23  Eric Blake  <ebb9@byu.net>
26085
26086         * lib/fflush.c: Fix missing include.
26087         Reported by Bruno Haible.
26088
26089 2007-04-23  Bruno Haible  <bruno@clisp.org>
26090
26091         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
26092         Reported by Eric Blake.
26093
26094 2007-04-23  Bruno Haible  <bruno@clisp.org>
26095
26096         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
26097
26098 2007-04-23  Bruno Haible  <bruno@clisp.org>
26099
26100         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
26101
26102 2007-04-23  Bruno Haible  <bruno@clisp.org>
26103
26104         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
26105         Needed on HP-UX 11.
26106
26107 2007-04-16  Eric Blake  <ebb9@byu.net>
26108
26109         Make fflush rely on fpurge.
26110         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
26111         open coding all variants.
26112         * modules/fflush (Depends-on): Add fpurge and unistd.
26113         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
26114         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
26115
26116         Fix --with-tests compilation on cygwin.
26117         * modules/argmatch-tests (Makefile.am): List gnulib library first
26118         in LDADD.
26119         * modules/argp-tests (Makefile.am): Likewise.
26120         * modules/array-list-tests (Makefile.am): Likewise.
26121         * modules/array-oset-tests (Makefile.am): Likewise.
26122         * modules/avltree-list-tests (Makefile.am): Likewise.
26123         * modules/avltree-oset-tests (Makefile.am): Likewise.
26124         * modules/avltreehash-list-tests (Makefile.am): Likewise.
26125         * modules/carray-list-tests (Makefile.am): Likewise.
26126         * modules/dirname-tests (Makefile.am): Likewise.
26127         * modules/frexp-tests (Makefile.am): Likewise.
26128         * modules/isnanl-tests (Makefile.am): Likewise.
26129         * modules/linked-list-tests (Makefile.am): Likewise.
26130         * modules/linkedhash-list-tests (Makefile.am): Likewise.
26131         * modules/lock-tests (Makefile.am): Likewise.
26132         * modules/rbtree-list-tests (Makefile.am): Likewise.
26133         * modules/rbtree-oset-tests (Makefile.am): Likewise.
26134         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
26135         * modules/tls-tests (Makefile.am): Likewise.
26136         * modules/tsearch-tests (Makefile.am): Likewise.
26137         * modules/xvasprintf-tests (Makefile.am): Likewise.
26138
26139         Fix fpurge for cygwin.
26140         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
26141         value.
26142         * modules/fpurge-tests (Depends-on): Clean up trash.
26143
26144 2007-04-16  Simon Josefsson  <simon@josefsson.org>
26145
26146         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
26147
26148         * m4/autobuild.m4: Re-indent.
26149
26150 2007-04-13  Bruno Haible  <bruno@clisp.org>
26151
26152         * modules/fpurge-tests: New file.
26153         * tests/test-fpurge.c: New file.
26154
26155         * modules/fpurge: New file.
26156         * lib/fpurge.h: New file.
26157         * lib/fpurge.c: New file.
26158         * m4/fpurge.m4: New file.
26159
26160 2007-04-13  Bruno Haible  <bruno@clisp.org>
26161
26162         * modules/fbufmode-tests: New file.
26163         * tests/test-fbufmode.c: New file.
26164
26165         * modules/fbufmode: New file.
26166         * lib/fbufmode.h: New file.
26167         * lib/fbufmode.c: New file.
26168         * m4/fbufmode.m4: New file.
26169
26170 2007-04-13  Bruno Haible  <bruno@clisp.org>
26171
26172         * modules/fwritable-tests: New file.
26173         * tests/test-fwritable.c: New file.
26174
26175         * modules/fwritable: New file.
26176         * lib/fwritable.h: New file.
26177         * lib/fwritable.c: New file.
26178         * m4/fwritable.m4: New file.
26179
26180 2007-04-13  Bruno Haible  <bruno@clisp.org>
26181
26182         * modules/freadable-tests: New file.
26183         * tests/test-freadable.c: New file.
26184
26185         * modules/freadable: New file.
26186         * lib/freadable.h: New file.
26187         * lib/freadable.c: New file.
26188         * m4/freadable.m4: New file.
26189
26190 2007-04-13  Bruno Haible  <bruno@clisp.org>
26191
26192         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
26193         MOSTLYCLEANFILES.
26194
26195 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
26196
26197         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
26198         gzip bootstrap.conf to avoid dragging in i18n machinery.
26199         (gnulib_tool_option): Use it.
26200
26201 2007-04-13  Bruno Haible  <bruno@clisp.org>
26202
26203         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
26204         %F directives.
26205         * tests/test-vasprintf-posix.c (test_function): Likewise.
26206         * tests/test-snprintf-posix.h (test_function): Likewise.
26207         * tests/test-sprintf-posix.h (test_function): Likewise.
26208         * tests/test-fprintf-posix.h (test_function): Likewise.
26209         * tests/test-printf-posix.h (test_function): Likewise.
26210         * tests/test-fprintf-posix.out: Likewise.
26211
26212 2007-04-13  Bruno Haible  <bruno@clisp.org>
26213
26214         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
26215         * modules/tls-tests (configure.ac): Likewise.
26216         Reported by Arto C. Nirkko <anirkko@insel.ch>.
26217
26218 2007-04-13  Bruno Haible  <bruno@clisp.org>
26219
26220         * lib/tls.c (glthread_tls_get): Fix return type.
26221         Patch by Arto C. Nirkko <anirkko@insel.ch>.
26222
26223 2007-04-12  Eric Blake  <ebb9@byu.net>
26224
26225         * modules/gettime (Depends-on): Remove gettime.
26226         Reported by Dmitry V. Levin.
26227
26228 2007-04-12  Bruno Haible  <bruno@clisp.org>
26229
26230         * modules/fflush (Include): Mention <stdio.h>.
26231         * modules/strtoimax (Include): Mention <inttypes.h>.
26232         * modules/strtoumax (Include): Likewise.
26233
26234 2007-04-12  Eric Blake  <ebb9@byu.net>
26235
26236         * .cvsignore: New file.
26237         * .gitignore: Likewise.
26238
26239 2007-04-12  Bruno Haible  <bruno@clisp.org>
26240
26241         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
26242         not before, since $(LDADD) often contains libgnu.a.
26243         * modules/striconv-tests (test_striconv_LDADD): Likewise.
26244         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
26245         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
26246         Needed on Cygwin.
26247
26248 2007-04-12  Eric Blake  <ebb9@byu.net>
26249
26250         Work around glibc's failure to flush stdin on fclose.
26251         * lib/closein.c (close_stdin): Flush stdin before closing.
26252
26253         Work around glibc's failure to reset seekable stdin on exit.
26254         * modules/closein: New module.
26255         * lib/closein.c: New file.
26256         * lib/closein.h: Likewise.
26257         * m4/closein.m4: Likewise.
26258         * MODULES.html.sh (File stream based Input/Output): Document it.
26259
26260 2007-04-12  Simon Josefsson  <simon@josefsson.org>
26261
26262         * gnulib-tool: Rename generated 'autobuild' script to
26263         'do-autobuild' in --create-megatestdir output.
26264
26265         * doc/gnulib.texi (Build robot for gnulib): Fix.
26266
26267 2007-04-12  Simon Josefsson  <simon@josefsson.org>
26268
26269         * modules/sysexits (Depends-on): Add absolute-header.
26270
26271 2007-04-12  Eric Blake  <ebb9@byu.net>
26272
26273         No need to preserve errno on success.
26274         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
26275         Reported by Bruno Haible.
26276
26277 2007-04-12  Simon Josefsson  <simon@josefsson.org>
26278
26279         * MODULES.html.sh (Support for maintaining and releasing
26280         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
26281
26282 2007-04-12  Simon Josefsson  <simon@josefsson.org>
26283
26284         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
26285
26286 2007-04-12  Simon Josefsson  <simon@josefsson.org>
26287
26288         * modules/autobuild: New module.
26289
26290         * m4/autobuild.m4: New file.
26291
26292 2007-04-11  Bruno Haible  <bruno@clisp.org>
26293
26294         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
26295         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
26296         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
26297         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
26298         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26299         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26300         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26301         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
26302         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26303         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26304         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
26305         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26306         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26307         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
26308         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26309         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26310         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
26311         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26312         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26313         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
26314         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26315         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26316         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
26317         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26318         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26319         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
26320         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26321         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26322         Reported by Eric Blake.
26323
26324 2007-04-11  Bruno Haible  <bruno@clisp.org>
26325
26326         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
26327
26328 2007-04-10  Bruno Haible  <bruno@clisp.org>
26329
26330         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
26331         for NaN and Infinity. Needed on FreeBSD 6.1.
26332         * tests/test-vasnprintf-posix.c (test_function): Undo last change
26333         regarding results for "%010a" of Infinity and NaN.
26334         * tests/test-vasprintf-posix.c (test_function): Likewise.
26335         * tests/test-snprintf-posix.h (test_function): Likewise.
26336         * tests/test-sprintf-posix.h (test_function): Likewise.
26337         * tests/test-fprintf-posix.h (test_function): Likewise.
26338         * tests/test-printf-posix.h (test_function): Likewise.
26339         * tests/test-fprintf-posix.out: Likewise.
26340
26341 2007-04-10  Bruno Haible  <bruno@clisp.org>
26342
26343         * modules/locale-tests: New file.
26344         * tests/test-locale.c: New file.
26345
26346         * modules/locale: New file.
26347         * lib/locale_.h: New file.
26348         * m4/locale_h.m4: New file.
26349
26350 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
26351             Bruno Haible  <bruno@clisp.org>
26352
26353         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
26354         be determined, test for availability of the copysignf, copysign,
26355         copysignl functions.
26356         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
26357         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
26358         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
26359
26360 2007-04-09  Eric Blake  <ebb9@byu.net>
26361
26362         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
26363         * modules/stdio (Makefile.am): Support fflush.
26364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26365         * modules/fflush: New file.
26366         * lib/fflush.c: Likewise.
26367         * m4/fflush.m4: Likewise.
26368         * modules/fflush-tests: New test.
26369         * tests/test-fflush.c: Likewise.
26370         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
26371
26372 2007-04-06  Bruno Haible  <bruno@clisp.org>
26373
26374         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
26375         (VASNPRINTF): Use signbit for faster determination whether to print a
26376         minus sign.
26377         * modules/vasnprintf (Files): Remove lib/float+.h.
26378         * modules/fprintf-posix (Depends-on): Add signbit.
26379         * modules/snprintf-posix (Depends-on): Likewise.
26380         * modules/sprintf-posix (Depends-on): Likewise.
26381         * modules/vasnprintf-posix (Depends-on): Likewise.
26382         * modules/vasprintf-posix (Depends-on): Likewise.
26383         * modules/vfprintf-posix (Depends-on): Likewise.
26384         * modules/vsnprintf-posix (Depends-on): Likewise.
26385         * modules/vsprintf-posix (Depends-on): Likewise.
26386
26387 2007-04-06  Bruno Haible  <bruno@clisp.org>
26388
26389         * tests/test-frexp.c (main): Test also the sign bit of zero results.
26390         * tests/test-frexpl.c (main): Likewise.
26391         * tests/test-ldexpl.c (main): Likewise.
26392         * modules/frexp-tests (Depends-on): Add signbit.
26393         * modules/frexpl-tests (Depdends-on): Likewise.
26394         * modules/ldexpl-tests (Depdends-on): Likewise.
26395
26396 2007-04-06  Bruno Haible  <bruno@clisp.org>
26397
26398         * modules/signbit-tests: New file.
26399         * tests/test-signbit.c: New file.
26400
26401         * modules/signbit: New file.
26402         * lib/signbitf.c: New file.
26403         * lib/signbitd.c: New file.
26404         * lib/signbitl.c: New file.
26405         * m4/signbit.m4: New file.
26406         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
26407         (signbit): New macro.
26408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
26409         REPLACE_SIGNBIT.
26410         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
26411         REPLACE_FREXPL into math.h.
26412
26413 2007-04-06  Bruno Haible  <bruno@clisp.org>
26414
26415         * modules/isnanf-nolibm-tests: New file.
26416         * tests/test-isnanf.c: New file.
26417
26418         * modules/isnanf-nolibm: New file.
26419         * lib/isnanf.h: New file.
26420         * lib/isnanf.c: New file.
26421         * lib/isnan.c: Consider the USE_FLOAT macro.
26422         * m4/isnanf.m4: New file.
26423
26424 2007-04-06  Bruno Haible  <bruno@clisp.org>
26425
26426         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
26427         (Link): New section.
26428
26429         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
26430
26431 2007-04-06  Bruno Haible  <bruno@clisp.org>
26432
26433         Assume the 'long double' type.
26434         * m4/longdouble.m4: Remove file.
26435         * config/srclist.txt: Don't mention longdouble.m4.
26436         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
26437         * lib/float+.h: Likewise.
26438         * lib/frexp.c: Likewise.
26439         * lib/printf-args.h: Likewise.
26440         * lib/printf-args.c: Likewise.
26441         * lib/printf-frexp.c: Likewise.
26442         * lib/printf-parse.c: Likewise.
26443         * lib/vasnprintf.c: Likewise.
26444         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
26445         * m4/intl.m4: Likewise.
26446         * m4/isnanl.m4: Likewise.
26447         * m4/printf.m4: Likewise.
26448         * m4/printf-frexpl.m4: Likewise.
26449         * m4/vasnprintf.m4: Likewise.
26450         * modules/allocsa (Files): Remove m4/longdouble.m4.
26451         * modules/gettext (Files): Likewise.
26452         * modules/relocatable-prog-wrapper (Files): Likewise.
26453         * modules/vasnprintf (Files): Likewise.
26454         * modules/isnanl (Files): Likewise.
26455         (Include): Simplify.
26456         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
26457         (Include): Simplify.
26458         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
26459         (Include): Simplify.
26460         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
26461         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26462         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
26463         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26464         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
26465         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26466         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
26467         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26468         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
26469         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26470         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
26471         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26472         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
26473         * tests/test-isnanl.c: Likewise.
26474         * tests/test-snprintf-posix.h: Likewise.
26475         * tests/test-sprintf-posix.h: Likewise.
26476         * tests/test-vasnprintf-posix.c: Likewise.
26477         * tests/test-vasnprintf-posix2.c: Likewise.
26478         * tests/test-vasprintf-posix.c: Likewise.
26479
26480 2007-04-06  Bruno Haible  <bruno@clisp.org>
26481
26482         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
26483         * lib/math_.h [__DECC]: Include the overridden include file through
26484         #include_next, outside the double-inclusion guard.
26485         * lib/stdio_.h [__DECC]: Likewise.
26486         * lib/stdlib_.h [__DECC]: Likewise.
26487         * lib/string_.h [__DECC]: Likewise.
26488         * lib/time_.h [__DECC]: Likewise.
26489         * lib/wchar_.h [__DECC]: Likewise.
26490         * lib/wctype_.h [__DECC]: Likewise.
26491         * lib/inttypes_.h [__DECC]: Likewise.
26492         Reported by Albert Chin <china@thewrittenword.com> in
26493         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
26494
26495 2007-04-04  Eric Blake  <ebb9@byu.net>
26496
26497         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
26498         1.5.x.
26499
26500 2007-04-04  Bruno Haible  <bruno@clisp.org>
26501
26502         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
26503         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
26504
26505 2007-04-04  Bruno Haible  <bruno@clisp.org>
26506
26507         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
26508         results for "%010a" of Infinity and NaN.
26509         * tests/test-vasprintf-posix.c (test_function): Likewise.
26510         * tests/test-snprintf-posix.h (test_function): Likewise.
26511         * tests/test-sprintf-posix.h (test_function): Likewise.
26512         * tests/test-fprintf-posix.h (test_function): Remove these tests.
26513         * tests/test-printf-posix.h (test_function): Likewise.
26514         * tests/test-fprintf-posix.out: Update.
26515         Needed for FreeBSD 6.1.
26516
26517 2007-04-04  Bruno Haible  <bruno@clisp.org>
26518
26519         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
26520         directly used by the gnulib modules nor by gnulib-tool.
26521
26522 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
26523
26524         * DEPENDENCIES: Give overall description of version dependency
26525         desirability.  Use more-typical names for apps.
26526         Add shell, coreutils, diffutils, grep, tar, gzip.
26527
26528 2007-04-04  Simon Josefsson  <simon@josefsson.org>
26529
26530         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
26531
26532 2007-04-04  Karl Berry  <karl@gnu.org>
26533
26534         * MODULES.html.sh (func_module): missing '.
26535
26536 2007-04-03  Bruno Haible  <bruno@clisp.org>
26537
26538         * modules/argmatch-tests (Makefile.am): New variable
26539         test_argmatch_LDADD.
26540         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
26541         * modules/array-list-tests (Makefile.am): New variable
26542         test_array_list_LDADD.
26543         * modules/array-oset-tests (Makefile.am): New variable
26544         test_array_oset_LDADD.
26545         * modules/avltree-list-tests (Makefile.am): New variable
26546         test_avltree_list_LDADD.
26547         * modules/avltree-oset-tests (Makefile.am): New variable
26548         test_avltree_oset_LDADD.
26549         * modules/avltreehash-list-tests (Makefile.am): New variable
26550         test_avltreehash_list_LDADD.
26551         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
26552         test_canonicalize_lgpl_LDADD.
26553         * modules/carray-list-tests (Makefile.am): New variable
26554         test_carray_list_LDADD.
26555         * modules/dirname-tests (Makefile.am): New variable
26556         test_dirname_LDADD.
26557         * modules/linked-list-tests (Makefile.am): New variable
26558         test_linked_list_LDADD.
26559         * modules/linkedhash-list-tests (Makefile.am): New variable
26560         test_linkedhash_list_LDADD.
26561         * modules/rbtree-list-tests (Makefile.am): New variable
26562         test_rbtree_list_LDADD.
26563         * modules/rbtree-oset-tests (Makefile.am): New variable
26564         test_rbtree_oset_LDADD.
26565         * modules/rbtreehash-list-tests (Makefile.am): New variable
26566         test_rbtreehash_list_LDADD.
26567         * modules/xvasprintf-tests (Makefile.am): New variable
26568         test_xvasprintf_LDADD.
26569         Reported by Eric Blake.
26570
26571 2007-04-03  Eric Blake  <ebb9@byu.net>
26572
26573         * DEPENDENCIES: Weaken m4 requirements.
26574
26575 2007-04-03  Bruno Haible  <bruno@clisp.org>
26576
26577         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
26578         * modules/isnanl-tests (configure.ac): Likewise.
26579
26580 2007-04-03  Ben Pfaff  <blp@gnu.org>
26581
26582         * modules/iconv_open: Add $(srcdir)/ to source directory
26583         references in Makefile fragments that call gperf, to fix VPATH
26584         builds.
26585
26586 2007-04-03  Bruno Haible  <bruno@clisp.org>
26587
26588         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
26589         * lib/ldexpl.c: Undo last change.
26590
26591 2007-04-03  Bruno Haible  <bruno@clisp.org>
26592
26593         * modules/printf-frexpl (Depends-on): Undo last change.
26594         (Files): Add m4/ldexpl.m4.
26595
26596 2007-04-03  Bruno Haible  <bruno@clisp.org>
26597
26598         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
26599         * modules/isnanl (Link): New section.
26600
26601         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
26602         * modules/frexp (Link): New section.
26603
26604         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
26605         * modules/frexpl (Link): New section.
26606
26607         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
26608         * modules/ldexpl (Link): New section.
26609
26610 2007-04-03  Bruno Haible  <bruno@clisp.org>
26611
26612         * modules/TEMPLATE-EXTENDED: New file.
26613         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
26614
26615 2007-04-03  Bruno Haible  <bruno@clisp.org>
26616
26617         * DEPENDENCIES: New file.
26618         Suggested by Simon Josefsson.
26619
26620 2007-04-03  Bruno Haible  <bruno@clisp.org>
26621
26622         * doc/gnulib.texi: Escape @.
26623
26624 2007-04-03  James Youngman  <jay@gnu.org>
26625         and Paul Eggert  <eggert@cs.ucla.edu>
26626
26627         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
26628         birthtime on all systems that have birthtime, not just those which
26629         use st_birthtimensec rather than st_birthtim.  Putting zero in
26630         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
26631         that the birth time is not available for files on an NFS mount.
26632
26633 2007-04-03  Simon Josefsson  <simon@josefsson.org>
26634
26635         * modules/memxor: Move back from crypto/, suggested by Bruno.
26636         * modules/crypto/hmac-sha1: Fix memxor dependency.
26637
26638         * modules/crypto/gc: Moved from ../.
26639
26640 2007-04-02  Eric Blake  <ebb9@byu.net>
26641
26642         * lib/ldexpl.c (includes): Avoid libm.
26643
26644         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
26645
26646 2007-04-02  Bruno Haible  <bruno@clisp.org>
26647
26648         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
26649         on IRIX.
26650
26651 2007-04-02  Bruno Haible  <bruno@clisp.org>
26652
26653         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
26654         x86 or x86_64 platforms running MacOS X.
26655         Reported by Ryan Schmidt <@ryandesign.com>.
26656
26657 2007-04-02  Bruno Haible  <bruno@clisp.org>
26658
26659         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
26660         i386.
26661
26662 2007-04-01  Simon Josefsson  <simon@josefsson.org>
26663
26664         * modules/crypto/arcfour: Moved from ../.
26665         * modules/crypto/arcfour-tests: Moved from ../.
26666         * modules/crypto/arctwo: Moved from ../.
26667         * modules/crypto/arctwo-tests: Moved from ../.
26668         * modules/crypto/des: Moved from ../.
26669         * modules/crypto/des-tests: Moved from ../.
26670         * modules/crypto/gc-arcfour: Moved from ../.
26671         * modules/crypto/gc-arcfour-tests: Moved from ../.
26672         * modules/crypto/gc-arctwo: Moved from ../.
26673         * modules/crypto/gc-arctwo-tests: Moved from ../.
26674         * modules/crypto/gc-des: Moved from ../.
26675         * modules/crypto/gc-des-tests: Moved from ../.
26676         * modules/crypto/gc-hmac-md5: Moved from ../.
26677         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
26678         * modules/crypto/gc-hmac-sha1: Moved from ../.
26679         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
26680         * modules/crypto/gc-md2: Moved from ../.
26681         * modules/crypto/gc-md2-tests: Moved from ../.
26682         * modules/crypto/gc-md4: Moved from ../.
26683         * modules/crypto/gc-md4-tests: Moved from ../.
26684         * modules/crypto/gc-md5: Moved from ../.
26685         * modules/crypto/gc-md5-tests: Moved from ../.
26686         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
26687         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
26688         * modules/crypto/gc-random: Moved from ../.
26689         * modules/crypto/gc-rijndael: Moved from ../.
26690         * modules/crypto/gc-rijndael-tests: Moved from ../.
26691         * modules/crypto/gc-sha1: Moved from ../.
26692         * modules/crypto/gc-sha1-tests: Moved from ../.
26693         * modules/crypto/gc-tests: Moved from ../.
26694         * modules/crypto/hmac-md5: Moved from ../.
26695         * modules/crypto/hmac-md5-tests: Moved from ../.
26696         * modules/crypto/hmac-sha1: Moved from ../.
26697         * modules/crypto/hmac-sha1-tests: Moved from ../.
26698         * modules/crypto/md2: Moved from ../.
26699         * modules/crypto/md2-tests: Moved from ../.
26700         * modules/crypto/md4: Moved from ../.
26701         * modules/crypto/md4-tests: Moved from ../.
26702         * modules/crypto/md5: Moved from ../.
26703         * modules/crypto/md5-tests: Moved from ../.
26704         * modules/crypto/memxor: Moved from ../.
26705         * modules/crypto/rijndael: Moved from ../.
26706         * modules/crypto/rijndael-tests: Moved from ../.
26707         * modules/crypto/sha1: Moved from ../.
26708
26709 2007-03-30  James Youngman  <jay@gnu.org>
26710
26711         * tests/test-stat-time.c (prepare_test): use chmod() rather than
26712         rename() to change the ctime of a file (because ctime is unaffected
26713         by rename on jfs2 on AIX 5.1).
26714         (main): Start by doing cleanup, in case a previous run failed leaving
26715         test files behind.
26716
26717 2007-03-31  Bruno Haible  <bruno@clisp.org>
26718
26719         Support old proprietary implementations of iconv.
26720         * modules/iconv_open: New file.
26721         * lib/iconv_.h: New file.
26722         * m4/iconv_h.m4: New file.
26723         * lib/iconv_open.c: New file.
26724         * lib/iconv_open-aix.gperf: New file.
26725         * lib/iconv_open-hpux.gperf: New file.
26726         * lib/iconv_open-irix.gperf: New file.
26727         * lib/iconv_open-osf.gperf: New file.
26728         * m4/iconv_open.m4: New file.
26729         * modules/linebreak (Depends-on): Add iconv_open.
26730         * modules/striconv (Depends-on): Likewise.
26731         * modules/striconveh (Depends-on): Likewise.
26732         * modules/unicodeio (Depends-on): Likewise.
26733         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
26734         (iconv_t)(-1).
26735         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
26736         conversion if cd is (iconv_t)(-1).
26737         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
26738         is not possible.
26739
26740 2007-03-31  Bruno Haible  <bruno@clisp.org>
26741
26742         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
26743         work on Solaris either. Protect also second use of "autodetect_jp".
26744
26745 2007-03-31  Bruno Haible  <bruno@clisp.org>
26746
26747         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
26748         the function is not present.
26749
26750 2007-03-31  Bruno Haible  <bruno@clisp.org>
26751
26752         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
26753         the function is not present.
26754
26755 2007-03-31  Bruno Haible  <bruno@clisp.org>
26756
26757         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
26758         a bug in HP-UX iconv_open().
26759
26760 2007-03-31  Bruno Haible  <bruno@clisp.org>
26761
26762         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
26763         (Mathematics <math.h>): New section, add fpieee.
26764         (Input/output <stdio.h>): Add fseterr.
26765         (Mathematics <math.h>): New section, add printf-frexp.
26766         (Container data structures): Add sublist.
26767         (Core language properties): Add fpucw, inline.
26768         (Functions for greatest-width integer types <inttypes.h>): Add
26769         imaxabs, imaxdiv, inttypes.
26770         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
26771         isnanl-nolibm, ldexp.
26772         (Mathematics <math.h>): New section, add printf-frexpl.
26773         (Support for systems lacking POSIX:2001): Add fprintf-posix,
26774         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
26775         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
26776         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
26777         (Unicode string functions): Add unistr/u*-mbtoucr.
26778         (Java): Add javacomp-script, javaexec-script.
26779         (C#): Add csharpcomp-script, csharpexec-script.
26780         (Support for building libraries and executables): Add havelib,
26781         relocatable-*.
26782         (Support for maintaining and releasing projects): Renamed from
26783         'Support for maintaining and release projects'. Add announce-gen.
26784
26785 2007-03-31  Bruno Haible  <bruno@clisp.org>
26786
26787         * README: Talk primarily about git.
26788         (git and CVS): Renamed from CVS.
26789         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
26790         gnulib is available through git.
26791         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
26792
26793 2007-03-30  Bruno Haible  <bruno@clisp.org>
26794
26795         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
26796         * lib/poll_.h: Likewise.
26797         * lib/stat_.h: Likewise.
26798         * lib/sys_time_.h: Likewise.
26799         * lib/sysexit_.h: Likewise.
26800         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
26801         * lib/stdbool_.h: Likewise.
26802         * lib/byteswap_.h: Add double-inclusion guard.
26803
26804 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
26805
26806         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
26807
26808 2007-03-30  Karl Berry  <karl@gnu.org>
26809
26810         * config/srclist-update: double space after USA in the license
26811         substitution, since that's how it's usually (?) written.
26812
26813 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
26814
26815         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
26816         reported by Bruno Haible.
26817
26818 2007-03-29  Bruno Haible  <bruno@clisp.org>
26819
26820         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
26821         a bug in AIX iconv().
26822
26823 2007-03-29  Bruno Haible  <bruno@clisp.org>
26824
26825         * modules/ldexpl-tests: New file.
26826         * tests/test-ldexpl.c: New file.
26827
26828 2007-03-29  Bruno Haible  <bruno@clisp.org>
26829
26830         * lib/ldexpl.c: Include fpucw.h.
26831         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
26832         multiplication.
26833         * modules/ldexpl (Depends-on): Add fpucw.
26834
26835 2007-03-29  Bruno Haible  <bruno@clisp.org>
26836
26837         * modules/ldexpl: New file.
26838         * m4/ldexpl.m4: New file.
26839         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
26840         set.
26841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
26842         REPLACE_LDEXPL.
26843         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
26844         REPLACE_LDEXPL.
26845         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
26846         gl_FUNC_LDEXPL_WORKS.
26847         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
26848         * modules/mathl (Files): Remove lib/ldexpl.c.
26849         (Depends-on): Add ldexpl.
26850
26851 2007-03-29  Bruno Haible  <bruno@clisp.org>
26852
26853         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
26854
26855 2007-03-29  Bruno Haible  <bruno@clisp.org>
26856
26857         * tests/test-striconveh.c (main): Don't assume that a direct conversion
26858         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
26859         and possibly also HP-UX.
26860         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
26861         work on AIX, IRIX, HP-UX, OSF/1.
26862         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
26863         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
26864         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
26865         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
26866         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
26867         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
26868
26869 2007-03-29  Bruno Haible  <bruno@clisp.org>
26870
26871         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
26872
26873 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
26874
26875         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
26876         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
26877
26878 2007-03-29  Eric Blake  <ebb9@byu.net>
26879
26880         * lib/acl-internal.h: Remove redundant include.
26881         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
26882         Cygwin when a file is locked.
26883
26884 2007-03-29  Bruno Haible  <bruno@clisp.org>
26885
26886         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
26887         file.
26888         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
26889
26890 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
26891
26892         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
26893         try to remove a parent directory if the child couldn't be removed
26894         (except for the first rmdir, which could fail because the child
26895         doesn't exist).  Problem reported by Jeff Blaine in
26896         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
26897
26898 2007-03-28  Bruno Haible  <bruno@clisp.org>
26899
26900         * lib/striconveh.c (utf8conv_carefully): New function.
26901         (mem_cd_iconveh_internal): Invoke it.
26902
26903 2007-03-28  Bruno Haible  <bruno@clisp.org>
26904
26905         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
26906         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
26907         input.
26908         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
26909         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
26910         unistr/u8-uctomb.
26911
26912 2007-03-28  Bruno Haible  <bruno@clisp.org>
26913
26914         * modules/unistr/u8-mbtoucr: New file.
26915         * lib/unistr/u8-mbtoucr.c: New file.
26916         * modules/unistr/u16-mbtoucr: New file.
26917         * lib/unistr/u16-mbtoucr.c: New file.
26918         * modules/unistr/u16-mbtoucr: New file.
26919         * lib/unistr/u16-mbtoucr.c: New file.
26920         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
26921
26922 2007-03-27  Simon Josefsson  <simon@josefsson.org>
26923             Bruno Haible  <bruno@clisp.org>
26924
26925         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
26926         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
26927         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
26928
26929         * m4/stdio_h.m4: Add stubs for vasprintf too.
26930
26931         * modules/stdio: Support vasprintf in sed command.
26932
26933         * modules/vasprintf: Depend on stdio for prototypes.  Remove
26934         vasprintf.h.  Add stdio module indicator.
26935
26936         * lib/stdio_.h: Declare asprintf and vasprintf, based on
26937         vasprintf.h.
26938
26939         * lib/vasprintf.h: File removed.
26940
26941         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
26942         * lib/vasprintf.c: Ditto.
26943         * lib/xvasprintf.c: Ditto.
26944         * tests/test-vasprintf-posix.c: Ditto.
26945         * tests/test-vasprintf.c: Ditto.
26946
26947 2007-03-27  Bruno Haible  <bruno@clisp.org>
26948
26949         Make vasnprintf multithread-safe.
26950         * lib/vasnprintf.c (decimal_point_char): New function.
26951         (VASNPRINTF): Use it.
26952         Suggested by Simon Josefsson.
26953
26954 2007-03-27  Eric Blake  <ebb9@byu.net>
26955
26956         Support sub-second birthtime on cygwin.
26957         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
26958         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
26959         (get_stat_birthtime): Also work with st_birthtim.
26960
26961 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
26962
26963         * lib/stat-time.h (USE_BIRTHTIME): Remove.
26964         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
26965         (get_stat_birthtime_ns): Do not try to use "spare" fields.
26966         (get_stat_birthtime_ns): Simplify compile-time tests.
26967         (get_stat_birthtime): Change the API to look like
26968         get_stat_mtime etc., except return a negative tv_nsec on error.
26969         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
26970         Don't check for "spare" fields.
26971         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
26972         or for struct stat.st_birthtime, as these tests aren't used.
26973         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
26974
26975 2007-03-27  Bruno Haible  <bruno@clisp.org>
26976
26977         * lib/stat-time.h: Include <sys/stat.h>.
26978
26979 2007-03-27  James Youngman  <jay@gnu.org>
26980
26981         * lib/stat-time.h (get_stat_birthtime): New function for
26982           retrieving st_birthtime as provided by UFS2 (hence *BSD).
26983         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
26984           and its variants.
26985         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
26986         * modules/stat-time-test: New file.
26987         * tests/test-stat-time.c: New test, devised by Bruno Haible.
26988
26989 2007-03-26  Bruno Haible  <bruno@clisp.org>
26990
26991         Better support of signalling NaNs.
26992         * lib/atanl.c: Include isnanl.h.
26993         (atanl): Perform test for NaN at the beginning of the function and
26994         through a call to isnanl.
26995         * lib/cosl.c: Include isnanl.h.
26996         (cosl): Perform test for NaN at the beginning of the function and
26997         through a call to isnanl.
26998         * lib/ldexpl.c: Include isnanl.h.
26999         (ldexpl): Perform test for NaN through a call to isnanl.
27000         * lib/logl.c: Include isnanl.h.
27001         (logl): Perform test for NaN at the beginning of the function and
27002         through a call to isnanl.
27003         * lib/sinl.c: Include isnanl.h.
27004         (sinl): Perform test for NaN at the beginning of the function and
27005         through a call to isnanl.
27006         * lib/sqrtl.c: Include isnanl.h.
27007         (sqrtl): Perform test for NaN at the beginning of the function and
27008         through a call to isnanl.
27009         * lib/tanl.c: Include isnanl.h.
27010         (tanl): Perform test for NaN at the beginning of the function and
27011         through a call to isnanl.
27012         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
27013         * modules/mathl (Depends-on): Add isnanl.
27014
27015 2007-03-26  Eric Blake  <ebb9@byu.net>
27016
27017         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
27018         regression in logic sense of previous patch.
27019
27020 2007-03-26  Bruno Haible  <bruno@clisp.org>
27021
27022         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
27023         unportable shell command "if ! ...".
27024         Reported by Ralf Wildenhues.
27025
27026 2007-03-25  Bruno Haible  <bruno@clisp.org>
27027
27028         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
27029         <sysexits.h> file, and only add EX_CONFIG.
27030         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
27031         absolute file name and whether it is sufficient. Substitute also
27032         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
27033         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
27034         ABSOLUTE_SYSEXITS_H into sysexits.h.
27035
27036 2007-03-25  Bruno Haible  <bruno@clisp.org>
27037
27038         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
27039         hints is NULL.
27040
27041 2007-03-25  Bruno Haible  <bruno@clisp.org>
27042
27043         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
27044         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
27045
27046 2007-03-25  Bruno Haible  <bruno@clisp.org>
27047
27048         * lib/vasnprintf.c: Include langinfo.h.
27049         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
27050         multithread-safe.
27051         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
27052         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
27053         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27054         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27055         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27056         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27057         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27058         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
27059         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27060         Reported by Simon Josefsson.
27061
27062 2007-03-25  Bruno Haible  <bruno@clisp.org>
27063
27064         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
27065         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
27066         * modules/vasnprintf (Depends-on): Add stdint.
27067
27068 2007-03-25  Bruno Haible  <bruno@clisp.org>
27069
27070         * modules/fpieee: New file.
27071         * m4/fpieee.m4: New file.
27072         * modules/isnan-nolibm (Depends-on): Add fpieee.
27073         * modules/isnanl-nolibm (Depends-on): Add fpieee.
27074         * modules/isnanl (Depends-on): Add fpieee.
27075
27076 2007-03-25  Bruno Haible  <bruno@clisp.org>
27077
27078         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
27079
27080 2007-03-25  Bruno Haible  <bruno@clisp.org>
27081
27082         Avoid test failures on IRIX 6.5.
27083         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
27084         (main): Use it.
27085         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
27086         macros.
27087         (main): Use them.
27088
27089 2007-03-25  Bruno Haible  <bruno@clisp.org>
27090
27091         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
27092         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
27093         exists but doesn't work.
27094         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
27095         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
27096         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
27097         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
27098
27099 2007-03-25  Bruno Haible  <bruno@clisp.org>
27100
27101         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
27102         returns inf. Needed on IRIX 6.5.
27103
27104 2007-03-25  Bruno Haible  <bruno@clisp.org>
27105
27106         * tests/test-frexpl.c: Include isnanl-nolibm.h.
27107         (main): Use isnanl instead of x != x idiom.
27108         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
27109
27110         * tests/test-frexp.c: Include isnan.h.
27111         (main): Use isnan instead of x != x idiom.
27112         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
27113
27114 2007-03-25  Bruno Haible  <bruno@clisp.org>
27115
27116         * tests/test-frexp.c (NaN): New function/macro.
27117         (main): Use it instead of 0.0 / 0.0.
27118         * tests/test-isnan.c (NaN): New function/macro.
27119         (main): Use it instead of 0.0 / 0.0.
27120         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
27121         (test_function): Use it instead of 0.0 / 0.0.
27122         * tests/test-vasprintf-posix.c (NaN): New function/macro.
27123         (test_function): Use it instead of 0.0 / 0.0.
27124         * tests/test-snprintf-posix.h (NaN): New function/macro.
27125         (test_function): Use it instead of 0.0 / 0.0.
27126         * tests/test-sprintf-posix.h (NaN): New function/macro.
27127         (test_function): Use it instead of 0.0 / 0.0.
27128         * tests/test-fprintf-posix.h (NaN): New function/macro.
27129         (test_function): Use it instead of 0.0 / 0.0.
27130         * tests/test-printf-posix.h (NaN): New function/macro.
27131         (test_function): Use it instead of 0.0 / 0.0.
27132
27133         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
27134
27135 2007-03-25  Bruno Haible  <bruno@clisp.org>
27136
27137         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
27138
27139 2007-03-25  Bruno Haible  <bruno@clisp.org>
27140
27141         * lib/regexec.c (merge_state_with_log): Make static.
27142
27143 2007-03-25  Bruno Haible  <bruno@clisp.org>
27144
27145         * lib/trigl.c (kernel_rem_pio2): Make static.
27146
27147 2007-03-25  Bruno Haible  <bruno@clisp.org>
27148
27149         * lib/sincosl.c (sincosl_table): Make static.
27150
27151 2007-03-25  Bruno Haible  <bruno@clisp.org>
27152
27153         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
27154         if the compiler does not support C99.
27155
27156 2007-03-25  Bruno Haible  <bruno@clisp.org>
27157
27158         * modules/time (Makefile.am): Ensure all rule action lines start with a
27159         tab.
27160
27161 2007-03-24  Bruno Haible  <bruno@clisp.org>
27162
27163         * modules/tsearch-tests: New file.
27164         * tests/test-tsearch.sh: New file.
27165         * tests/test-tsearch.c: New file, mostly copied from glibc.
27166
27167         * modules/search-tests: New file.
27168         * tests/test-search.c: New file.
27169
27170         * modules/search: New file.
27171         * lib/search_.h: New file, incorporating lib/tsearch.h.
27172         * m4/search_h.m4: New file.
27173         * lib/tsearch.h: Remove file.
27174         * lib/tsearch.c: Include search.h instead of tsearch.h.
27175         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
27176         HAVE_TSEARCH.
27177         * modules/tsearch (Files): Remove lib/tsearch.h.
27178         (Depends-on): Add search.
27179         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
27180         (Include): Change tsearch.h into search.h.
27181
27182 2007-03-24  Bruno Haible  <bruno@clisp.org>
27183
27184         * modules/fpucw: New file.
27185         * lib/fpucw.h: New file.
27186         * lib/frexp.c: Include fpucw.h.
27187         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
27188         (FUNC): Use them.
27189         * lib/printf-frexp.c: Include fpucw.h.
27190         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
27191         (FUNC): Use them.
27192         * lib/vasnprintf.c: Include fpucw.h.
27193         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
27194         'long double' calculations.
27195         * tests/test-frexpl.c: Include fpucw.h.
27196         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
27197         * tests/test-printf-frexpl.c: Include fpucw.h.
27198         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
27199         * modules/frexpl (Depends-on): Add fpucw.
27200         * modules/printf-frexpl (Depends-on): Likewise.
27201         * modules/fprintf-posix (Depends-on): Likewise.
27202         * modules/snprintf-posix (Depends-on): Likewise.
27203         * modules/sprintf-posix (Depends-on): Likewise.
27204         * modules/vasnprintf-posix (Depends-on): Likewise.
27205         * modules/vasprintf-posix (Depends-on): Likewise.
27206         * modules/vfprintf-posix (Depends-on): Likewise.
27207         * modules/vsnprintf-posix (Depends-on): Likewise.
27208         * modules/vsprintf-posix (Depends-on): Likewise.
27209         * modules/frexpl-tests (Depends-on): Likewise.
27210         * modules/printf-frexpl-tests (Depends-on): Likewise.
27211
27212 2007-03-24  Bruno Haible  <bruno@clisp.org>
27213
27214         * lib/float+.h: New file.
27215         * lib/isnan.c: Include float+.h.
27216         (SIZE): New macro.
27217         (FUNC): Compare only SIZE bytes of the value.
27218         * lib/vasnprintf.c: Include float+.h.
27219         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
27220         SIZEOF_LDBL or SIZEOF_DBL bytes.
27221         * modules/isnan-nolibm (Files): Add lib/float+.h.
27222         * modules/isnanl-nolibm (Files): Add lib/float+.h.
27223         * modules/isnanl (Files): Add lib/float+.h.
27224         * modules/vasnprintf (Files): Add lib/float+.h.
27225
27226 2007-03-24  Bruno Haible  <bruno@clisp.org>
27227
27228         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
27229         include isnanl-nolibm.h.
27230
27231 2007-03-24  Bruno Haible  <bruno@clisp.org>
27232
27233         * tests/test-read-file.c (main): Don't produce spurious output for
27234         expected situations. Make the test fail if it encountered unexpected
27235         results.
27236
27237 2007-03-24  Bruno Haible  <bruno@clisp.org>
27238
27239         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
27240         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
27241
27242 2007-03-24  Bruno Haible  <bruno@clisp.org>
27243
27244         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
27245
27246 2007-03-24  Bruno Haible  <bruno@clisp.org>
27247
27248         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
27249         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
27250
27251         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
27252         * modules/utf8-ucs4: Turn into a symbolic link to module
27253         unistr/u8-mbtouc.
27254
27255         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
27256         utf8-ucs4-unsafe.
27257         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
27258         unistr/u8-mbtouc-unsafe.
27259
27260         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
27261         * modules/utf16-ucs4: Turn into a symbolic link to module
27262         unistr/u16-mbtouc.
27263
27264         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
27265         utf16-ucs4-unsafe.
27266         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
27267         unistr/u16-mbtouc-unsafe.
27268
27269         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
27270         * modules/ucs4-utf8: Turn into a symbolic link to module
27271         unistr/u8-ubtomb.
27272
27273         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
27274         * modules/ucs4-utf16: Turn into a symbolic link to module
27275         unistr/u16-ubtomb.
27276
27277 2007-03-24  Bruno Haible  <bruno@clisp.org>
27278
27279         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
27280         Enable the function only if HAVE_INLINE.
27281         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
27282         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
27283         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
27284         Enable the function only if HAVE_INLINE.
27285         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
27286         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
27287         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
27288         Enable the function only if HAVE_INLINE.
27289         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
27290         Enable the function only if HAVE_INLINE.
27291         * modules/utf8-ucs4: Update.
27292         * modules/utf8-ucs4-unsafe: Update.
27293         * modules/utf16-ucs4: Update.
27294         * modules/utf16-ucs4-unsafe: Update.
27295         * modules/ucs4-utf8: Update.
27296         * modules/ucs4-utf16: Update.
27297
27298 2007-03-24  Bruno Haible  <bruno@clisp.org>
27299
27300         * lib/utf8-ucs4.h: Remove file.
27301         * lib/utf8-ucs4-unsafe.h: Remove file.
27302         * lib/utf16-ucs4.h: Remove file.
27303         * lib/utf16-ucs4-unsafe.h: Remove file.
27304         * lib/ucs4-utf8.h: Remove file.
27305         * lib/ucs4-utf16.h: Remove file.
27306         * lib/unistr.h: Include their previous contents.
27307         * m4/utf-ucs4.m4: Remove file.
27308         * m4/ucs4-utf.m4: Remove file.
27309         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
27310         (Depends-on): Add unistr/base.
27311         (configure.ac): Remove gl_UTF_UCS4.
27312         (Makefile.am): Update.
27313         (Include): Change to unistr.h.
27314         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
27315         (Depends-on): Add unistr/base.
27316         (configure.ac): Remove gl_UTF_UCS4.
27317         (Makefile.am): Update.
27318         (Include): Change to unistr.h.
27319         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
27320         (Depends-on): Add unistr/base.
27321         (configure.ac): Remove gl_UTF_UCS4.
27322         (Makefile.am): Update.
27323         (Include): Change to unistr.h.
27324         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
27325         (Depends-on): Add unistr/base.
27326         (configure.ac): Remove gl_UTF_UCS4.
27327         (Makefile.am): Update.
27328         (Include): Change to unistr.h.
27329         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
27330         (Depends-on): Add unistr/base.
27331         (configure.ac): Remove gl_UCS4_UTF.
27332         (Makefile.am): Update.
27333         (Include): Change to unistr.h.
27334         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
27335         (Depends-on): Add unistr/base.
27336         (configure.ac): Remove gl_UCS4_UTF.
27337         (Makefile.am): Update.
27338         (Include): Change to unistr.h.
27339         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
27340         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
27341         utf8-ucs4-unsafe.h.
27342         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
27343         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
27344         utf16-ucs4-unsafe.h.
27345         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
27346         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
27347         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
27348         * lib/unistr/u8-strchr.c: Likewise.
27349         * lib/unistr/u8-strrchr.c: Likewise.
27350         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
27351         * lib/unistr/u16-strchr.c: Likewise.
27352         * lib/unistr/u16-strrchr.c: Likewise.
27353         * lib/striconveh.c: Update.
27354         * lib/linebreak.c: Update.
27355
27356 2007-03-24  Bruno Haible  <bruno@clisp.org>
27357
27358         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
27359         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
27360
27361 2007-03-22  Bruno Haible  <bruno@clisp.org>
27362
27363         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
27364
27365 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
27366
27367         * MODULES.html.sh (File system functions): New module write-any-file.
27368         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
27369         * m4/write-any-file.m4: New files.
27370
27371 2007-03-23  Eric Blake  <ebb9@byu.net>
27372
27373         * gnulib-tool: Rearrange space-tab sequences, since some editors
27374         like to eat them.
27375
27376 2007-03-23  Eric Blake  <ebb9@byu.net>
27377
27378         * lib/version-etc.c (version_etc_va): Update license wording to
27379         be more concise.  Recommended by Richard Stallman.
27380
27381 2007-03-22  Bruno Haible  <bruno@clisp.org>
27382
27383         * lib/poll.c (MSG_PEEK): New fallback definition.
27384
27385 2007-03-22  Bruno Haible  <bruno@clisp.org>
27386
27387         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
27388         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
27389         (main): Update.
27390         Fixes a compilation error on BeOS.
27391
27392 2007-03-22  Bruno Haible  <bruno@clisp.org>
27393
27394         * modules/frexpl-tests: New file.
27395         * tests/test-frexpl.c: New file.
27396
27397         * modules/frexpl: New file.
27398         * m4/frexpl.m4: New file.
27399         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
27400         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
27401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
27402         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
27403         (Depends-on): Add frexpl. Remove isnanl-nolibm.
27404         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
27405
27406 2007-03-22  Bruno Haible  <bruno@clisp.org>
27407
27408         * lib/frexpl.c: Share code with lib/frexp.c.
27409         * modules/mathl (Files): Add lib/frexp.c.
27410         (Depends-on): Add isnanl-nolibm.
27411
27412 2007-03-22  Bruno Haible  <bruno@clisp.org>
27413
27414         * modules/printf-frexp (Files): Add m4/frexp.m4.
27415         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
27416         only if the found frexp function actually works.
27417
27418 2007-03-22  Bruno Haible  <bruno@clisp.org>
27419
27420         * lib/frexp.c: Remove older implementation that uses divisions.
27421
27422 2007-03-21  Bruno Haible  <bruno@clisp.org>
27423
27424         * modules/frexp-tests: New file.
27425         * tests/test-frexp.c: New file.
27426
27427         * modules/frexp: New file.
27428         * lib/frexp.c: New file.
27429         * m4/frexp.m4: New file.
27430         * lib/math_.h (frexp): New declaration.
27431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
27432         REPLACE_FREXP.
27433         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
27434
27435 2007-03-21  Bruno Haible  <bruno@clisp.org>
27436
27437         * modules/isnanl-tests: New file.
27438         * tests/test-isnanl.c: New file.
27439
27440         * modules/isnanl: New file.
27441         * lib/isnanl.h: New file.
27442         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
27443         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
27444         gl_FUNC_ISNANL_WORKS.
27445         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
27446         New macros.
27447
27448 2007-03-21  Bruno Haible  <bruno@clisp.org>
27449
27450         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
27451         lib/isnanl.h.
27452         (Include): Update.
27453         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
27454         * lib/vasnprintf.c: Update.
27455         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
27456         tests/test-isnanl.h, remove tests/test-isnanl.c.
27457         (Makefile.am): Update.
27458         * tests/test-isnanl-nolibm.c: New file.
27459         * tests/test-isnanl.h: New file.
27460         * tests/test-isnanl.c: Remove file.
27461
27462 2007-03-21  Jim Meyering  <jim@meyering.net>
27463
27464         When trying to open ".", treat ESTALE like EACCES.
27465         * lib/savewd.c (savewd_save): Resort to forking not just upon
27466         failure with EACCES, but also when errno is ESTALE.
27467
27468 2007-03-20  Bruno Haible  <bruno@clisp.org>
27469
27470         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
27471         Needed on AIX 5.1. Reported by Matthew Woehlke.
27472
27473 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
27474
27475         Suggestions by Bruno Haible:
27476         * lib/acl-internal.h: Include "gettext.h" rather than rolling
27477         our own.
27478         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
27479         * modules/acl (Depends-on): Add gettext.
27480
27481 2007-03-19  Bruno Haible  <bruno@clisp.org>
27482
27483         * modules/iconvme: Remove file.
27484         * lib/iconvme.h: Remove file.
27485         * lib/iconvme.c: Remove file.
27486         * m4/iconvme.m4: Remove file.
27487
27488 2007-03-19  Bruno Haible  <bruno@clisp.org>
27489
27490         * doc/relocatable-maint.texi: Break long shell script line.
27491         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
27492
27493 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
27494
27495         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
27496         handle file_has_acl.
27497         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
27498         * lib/acl.c: Move header inclusions and related macro defns into
27499         lib/acl-internal.h.
27500         (S_ISLNK): Remove defn, since that's now done for us.
27501         (file_has_acl): Move to lib/file-has-acl.c.
27502         Call acl_trivial if available.  This is the crucial part of the fix.
27503         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
27504         shared within the library.  Rewrite a bit, partly to make it compatible
27505         with the GNU coding style.
27506         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
27507         Remove unnecessary double-quotes.
27508         Don't test for acl_to_text; the build will catch that.
27509         Replace acl_entries if it doesn't exist and it is needed.
27510         Check for -lsec and acl_trivial (as used on Solaris 10).
27511         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
27512         lib/file-has-acl.c.
27513         (Depends-on): Add sys_stat, for S_ISLNK.
27514
27515 2007-03-19  Ben Pfaff  <blp@gnu.org>
27516
27517         * doc/gnulib.texi: Fix typos.
27518         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
27519
27520 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
27521
27522         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
27523         If size is zero here, buf must be zero.
27524
27525 2007-03-19  Simon Josefsson  <simon@josefsson.org>
27526
27527         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
27528         <bruno@clisp.org>.
27529
27530 2007-03-18  Bruno Haible  <bruno@clisp.org>
27531
27532         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
27533         Suggested by Eric Blake.
27534
27535 2007-03-18  Ben Pfaff  <blp@gnu.org>
27536
27537         * doc/relocatable.texi: Recommend using as prefix a directory
27538         that does not exist and will never be created.  Based on
27539         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
27540         and others.
27541
27542 2007-03-17  Bruno Haible  <bruno@clisp.org>
27543
27544         * lib/fchownat.c: Include lchown.h.
27545
27546 2007-03-17  Bruno Haible  <bruno@clisp.org>
27547
27548         Fix endless loop when the given allocated size was > INT_MAX.
27549         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
27550         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
27551         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
27552         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
27553         * lib/sprintf.c (sprintf): Likewise.
27554
27555 2007-03-17  Bruno Haible  <bruno@clisp.org>
27556
27557         * tests/test-argp-2.sh (func_compare): Output a context diff.
27558
27559 2007-03-17  Bruno Haible  <bruno@clisp.org>
27560
27561         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
27562         locale's decimal-point character.
27563
27564 2007-03-17  Bruno Haible  <bruno@clisp.org>
27565
27566         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
27567         before comparing it. Needed because on some platforms (e.g. x86) a
27568         'long double' occupies less bytes than sizeof (long double).
27569
27570 2007-03-17  Bruno Haible  <bruno@clisp.org>
27571
27572         * tests/test-crc.c (main): Make printf statements 64-bit clean.
27573         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
27574         * tests/test-getaddrinfo.c (simple): Likewise.
27575         * tests/test-read-file.c (main): Likewise.
27576
27577 2007-03-17  Bruno Haible  <bruno@clisp.org>
27578
27579         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
27580
27581 2007-03-17  Bruno Haible  <bruno@clisp.org>
27582
27583         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
27584         unused variable.
27585
27586 2007-03-17  Bruno Haible  <bruno@clisp.org>
27587
27588         * tests/test-c-strcasecmp.c: Include c-strcase.h.
27589         * tests/test-c-strncasecmp.c: Likewise.
27590
27591 2007-03-17  Bruno Haible  <bruno@clisp.org>
27592
27593         * modules/stdlib (Depends-on): Add unistd.
27594         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
27595         Needed for MacOS X 10.3.
27596
27597 2007-03-17  Bruno Haible  <bruno@clisp.org>
27598
27599         * lib/unistr/u-strdup.h: Include <stdlib.h>.
27600
27601 2007-03-17  Bruno Haible  <bruno@clisp.org>
27602
27603         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
27604
27605 2007-03-17  Bruno Haible  <bruno@clisp.org>
27606
27607         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
27608         to reflect files copied from gnulib (with or without modifications).
27609         Suggested by Jim Meyering.
27610
27611 2007-03-17  Eric Blake  <ebb9@byu.net>
27612
27613         * NEWS: Document stdlib change from 2007-02-18.
27614
27615 2007-03-17  Jim Meyering  <jim@meyering.net>
27616
27617         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
27618         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
27619         someone uses a name containing shell meta-characters.
27620         Reported by Alfred M. Szmidt.
27621
27622         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
27623
27624 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
27625
27626         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
27627         and copy gettext configuration files only if configure.ac contains
27628         a use of AM_GNU_GETTEXT_VERSION.
27629
27630 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
27631
27632         * build-aux/bootstrap (gnulib_name): New variable.
27633         (gnulib_tool_options): Use it.
27634
27635 2007-03-13  Simon Josefsson  <simon@josefsson.org>
27636
27637         * tests/test-des.c: Use new namespace.
27638
27639 2007-03-15  Bruno Haible  <bruno@clisp.org>
27640
27641         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
27642         Reported by James Youngman <jay@gnu.org>.
27643
27644 2007-03-15  Bruno Haible  <bruno@clisp.org>
27645
27646         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
27647         declared prototype. Needed with cc on OSF/1 5.1.
27648
27649 2007-03-15  Bruno Haible  <bruno@clisp.org>
27650
27651         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
27652         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
27653         (struct gl_list_implementation): Add dispose_fn argument to the
27654         'create_empty', 'create' methods.
27655         (struct gl_list_impl_base): Add field 'dispose_fn'.
27656         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
27657         argument.
27658         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
27659         dispose_fn argument.
27660         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
27661         dispose_fn on the dropped values.
27662         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
27663         dispose_fn argument.
27664         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
27665         dropped values.
27666         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
27667         (gl_tree_remove_node): Call dispose_fn on the dropped value.
27668         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
27669         (gl_tree_remove_node): Call dispose_fn on the dropped value.
27670         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
27671         argument.
27672         (gl_tree_list_free): Call dispose_fn on the dropped values.
27673         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
27674         the dropped values.
27675         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
27676         Add dispose_fn argument.
27677         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
27678         Call dispose_fn on the dropped values.
27679         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
27680         Add dispose_fn argument.
27681         (gl_sublist_create): Initialize the 'dispose_fn' field.
27682         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
27683         * tests/test-array_list.c (main): Update.
27684         * tests/test-carray_list.c (main): Update.
27685         * tests/test-avltree_list.c (main): Update.
27686         * tests/test-rbtree_list.c (main): Update.
27687         * tests/test-avltreehash_list.c (main): Update.
27688         * tests/test-rbtreehash_list.c (main): Update.
27689         * tests/test-linked_list.c (main): Update.
27690         * tests/test-linkedhash_list.c (main): Update.
27691         * tests/test-array_oset.c (main): Update.
27692
27693 2007-03-15  Bruno Haible  <bruno@clisp.org>
27694
27695         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
27696         (gl_oset_create_empty): Add dispose_fn argument.
27697         (struct gl_oset_implementation): Add dispose_fn argument to
27698         'create_empty' method.
27699         (struct gl_oset_impl_base): Add dispose_fn field.
27700         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
27701         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
27702         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
27703         values.
27704         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
27705         (gl_tree_oset_free): Call dispose_fn on the dropped values.
27706         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
27707         dropped value.
27708         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
27709         dropped value.
27710         * tests/test-array_oset.c (main): Update.
27711         * tests/test-avltree_oset.c (main): Update.
27712         * tests/test-rbtree_oset.c (main): Update.
27713         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
27714
27715 2007-03-13  Bruno Haible  <bruno@clisp.org>
27716
27717         * tests/test-stdbool.c (i): Update after last patch.
27718
27719 2007-03-12  Bruno Haible  <bruno@clisp.org>
27720
27721         * lib/quotearg.c: Include <wctype.h> early, before the definition of
27722         the iswprint macro. Needed on Solaris 2.5.1.
27723
27724 2007-03-12  Bruno Haible  <bruno@clisp.org>
27725
27726         * tests/test-printf-frexp.c (main): Declare x as volatile.
27727
27728 2007-03-12  Simon Josefsson  <simon@josefsson.org>
27729
27730         * doc/gnulib.texi (Build robot for gnulib): New section.
27731
27732 2007-03-12  Jim Meyering  <jim@meyering.net>
27733
27734         * build-aux/bootstrap: New file.
27735         * build-aux/bootstrap.conf: New file, from coreutils.
27736
27737 2007-03-11  Bruno Haible  <bruno@clisp.org>
27738
27739         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
27740
27741 2007-03-12  Simon Josefsson  <simon@josefsson.org>
27742
27743         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
27744         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
27745         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
27746
27747 2007-03-11  Bruno Haible  <bruno@clisp.org>
27748
27749         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
27750         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
27751
27752 2007-03-11  Bruno Haible  <bruno@clisp.org>
27753
27754         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
27755         formula. Needed for SunPRO C 5.0.
27756
27757 2007-03-11  Bruno Haible  <bruno@clisp.org>
27758
27759         * modules/long-options (Depends-on): Add getopt.
27760
27761 2007-03-11  Bruno Haible  <bruno@clisp.org>
27762
27763         * modules/modechange (Depends-on): Add stdbool.
27764
27765 2007-03-11  Bruno Haible  <bruno@clisp.org>
27766
27767         * modules/i-ring (Depends-on): Add stdbool.
27768
27769 2007-03-11  Bruno Haible  <bruno@clisp.org>
27770
27771         * modules/gc-des (Depends-on): Add stdbool.
27772
27773 2007-03-11  Bruno Haible  <bruno@clisp.org>
27774
27775         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
27776
27777 2007-03-11  Bruno Haible  <bruno@clisp.org>
27778
27779         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
27780
27781 2007-03-11  Bruno Haible  <bruno@clisp.org>
27782
27783         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
27784
27785 2007-03-11  Bruno Haible  <bruno@clisp.org>
27786
27787         * lib/vasnprintf.c (sprintf): Undefine.
27788
27789 2007-03-11  Bruno Haible  <bruno@clisp.org>
27790
27791         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
27792         initializers in SunPRO C and Compaq C compilers.
27793
27794 2007-03-11  Bruno Haible  <bruno@clisp.org>
27795
27796         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
27797         decrementing code ANSI C compliant.
27798
27799 2007-03-11  Bruno Haible  <bruno@clisp.org>
27800
27801         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
27802         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
27803
27804 2007-03-11  Bruno Haible  <bruno@clisp.org>
27805
27806         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
27807         <stdbool.h> substitute doesn't pass.
27808
27809 2007-03-11  Bruno Haible  <bruno@clisp.org>
27810
27811         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
27812
27813 2007-03-11  Bruno Haible  <bruno@clisp.org>
27814
27815         * gnulib-tool (func_create_megatestdir): Create also an autobuild
27816         script, for submission to autobuild.josefsson.org.
27817
27818 2007-03-10  Bruno Haible  <bruno@clisp.org>
27819
27820         * modules/canonicalize-lgpl-tests: New file.
27821         * tests/test-canonicalize-lgpl.sh: New file.
27822         * tests/test-canonicalize-lgpl.c: New file.
27823
27824         * modules/c-strcase-tests: New file.
27825         * tests/test-c-strcase.sh: New file.
27826         * tests/test-c-strcasecmp.c: New file.
27827         * tests/test-c-strncasecmp.c: New file.
27828
27829         * modules/atexit-tests: New file.
27830         * tests/test-atexit.sh: New file.
27831         * tests/test-atexit.c: New file.
27832
27833 2007-03-10  Bruno Haible  <bruno@clisp.org>
27834
27835         * tests/test-binary-io.sh: Use temporary filenames that are not so
27836         likely to clash with those of other tests (in a parallel make).
27837         * tests/test-binary-io.c: Likewise.
27838
27839 2007-03-10  Bruno Haible  <bruno@clisp.org>
27840
27841         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
27842         fallback; use #error instead.
27843         Suggested by Simon Josefsson.
27844
27845 2007-03-10  Bruno Haible  <bruno@clisp.org>
27846
27847         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
27848         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
27849         first and the last.
27850
27851 2007-03-10  Bruno Haible  <bruno@clisp.org>
27852
27853         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
27854
27855 2007-03-10  Bruno Haible  <bruno@clisp.org>
27856
27857         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
27858         "make distcheck".
27859         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
27860         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
27861         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
27862
27863 2007-03-10  Bruno Haible  <bruno@clisp.org>
27864
27865         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
27866         variable.
27867         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
27868         variable.
27869
27870 2007-03-09  Eric Blake  <ebb9@byu.net>
27871         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
27872
27873         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
27874         types are not being provided by gnulib.
27875         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
27876         types are supported.
27877
27878 2007-03-10  Bruno Haible  <bruno@clisp.org>
27879
27880         * lib/stdio_.h (__attribute__): New macro.
27881         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
27882         vsprintf): Specify __attribute__ __format__ for GCC.
27883         Suggested by Eric Blake.
27884
27885 2007-03-09  Bruno Haible  <bruno@clisp.org>
27886
27887         * modules/printf-posix-tests: New file.
27888         * tests/test-printf-posix.sh: New file.
27889         * tests/test-printf-posix.c: New file.
27890
27891         * modules/printf-posix: New file.
27892         * lib/printf.c: New file.
27893         * m4/printf-posix-rpl.m4: New file.
27894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
27895         REPLACE_PRINTF.
27896         * lib/stdio_.h (printf): New declaration.
27897         (format, __format__, ____printf____, ____scanf____, ____strftime____,
27898         ____strfmon____): New macros.
27899         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
27900         REPLACE_PRINTF.
27901
27902 2007-03-09  Bruno Haible  <bruno@clisp.org>
27903
27904         * tests/test-vasnprintf-posix2.sh: New file.
27905         * tests/test-vasnprintf-posix2.c: New file.
27906         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
27907         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
27908         (Makefile.am): Activate test-vasnprintf-posix2.sh.
27909
27910         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
27911         a locale dependent decimal point, rather than always '.'.
27912
27913 2007-03-09  Eric Blake  <ebb9@byu.net>
27914
27915         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
27916         spite of platforms like Tandem/NSK that define it to -1.
27917
27918 2007-03-08  Bruno Haible  <bruno@clisp.org>
27919
27920         * modules/vprintf-posix-tests: New file.
27921         * tests/test-vprintf-posix.sh: New file.
27922         * tests/test-vprintf-posix.c: New file.
27923         * tests/test-printf-posix.h: New file.
27924
27925         * modules/vprintf-posix: New file.
27926         * lib/vprintf.c: New file.
27927         * m4/vprintf-posix.m4: New file.
27928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
27929         REPLACE_VPRINTF.
27930         * lib/stdio_.h (vprintf): New declaration.
27931         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
27932         REPLACE_VPRINTF.
27933
27934 2007-03-08  Bruno Haible  <bruno@clisp.org>
27935
27936         * modules/fprintf-posix-tests: New file.
27937         * tests/test-fprintf-posix.sh: New file.
27938         * tests/test-fprintf-posix.c: New file.
27939
27940         * modules/fprintf-posix: New file.
27941         * lib/fprintf.c: New file.
27942         * m4/fprintf-posix.m4: New file.
27943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
27944         REPLACE_FPRINTF.
27945         * lib/stdio_.h (fprintf): New declaration.
27946         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
27947         REPLACE_FPRINTF.
27948
27949 2007-03-08  Bruno Haible  <bruno@clisp.org>
27950
27951         * modules/vfprintf-posix-tests: New file.
27952         * tests/test-vfprintf-posix.sh: New file.
27953         * tests/test-vfprintf-posix.c: New file.
27954         * tests/test-fprintf-posix.h: New file.
27955         * tests/test-fprintf-posix.out: New file.
27956
27957         * modules/vfprintf-posix: New file.
27958         * lib/vfprintf.c: New file.
27959         * m4/vfprintf-posix.m4: New file.
27960         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
27961         REPLACE_VFPRINTF.
27962         * lib/stdio_.h (vfprintf): New declaration.
27963         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
27964         REPLACE_VFPRINTF.
27965
27966 2007-03-08  Bruno Haible  <bruno@clisp.org>
27967
27968         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
27969
27970 2007-03-08  Bruno Haible  <bruno@clisp.org>
27971
27972         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
27973         instead of 'expr' invocations.
27974         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27975         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27976         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27977         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27978         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27979         Suggested by Paul Eggert.
27980
27981 2007-03-08  Bruno Haible  <bruno@clisp.org>
27982
27983         * modules/fseterr-tests: New file.
27984         * tests/test-fseterr.c: New file.
27985
27986         * modules/fseterr: New file.
27987         * lib/fseterr.h: New file.
27988         * lib/fseterr.c: New file.
27989
27990 2007-03-08  Bruno Haible  <bruno@clisp.org>
27991
27992         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
27993         * lib/getopt_.h: Likewise.
27994         * lib/mbswidth.h: Likewise.
27995         * lib/setenv.h: Likewise.
27996         * lib/vasnprintf.h: Likewise.
27997         * lib/vasprintf.h: Likewise.
27998         * lib/verror.h: Likewise.
27999         * lib/xsetenv.h: Likewise.
28000         * lib/xvasprintf.h: Likewise.
28001
28002 2007-03-08  Jim Meyering  <jim@meyering.net>
28003
28004         * users.txt: Add parted.
28005
28006         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
28007
28008 2007-03-07  Bruno Haible  <bruno@clisp.org>
28009
28010         * m4/printf.m4: Make the shell script snippets copy&pastable.
28011
28012 2007-03-02  Bruno Haible  <bruno@clisp.org>
28013
28014         * lib/netinet_in_.h: New file.
28015         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
28016         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
28017         * modules/netinet_in (Files): Add lib/netinet_in_.h.
28018         (Depends-on): Add absolute-header.
28019         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
28020         into netinet/in.h.
28021
28022 2007-03-03  Bruno Haible  <bruno@clisp.org>
28023
28024         * lib/sys_select_.h: New file.
28025         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
28026         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
28027         * modules/sys_select (Files): Add lib/sys_select_.h.
28028         (Depends-on): Add absolute-header.
28029         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
28030         into sys/select.h.
28031
28032 2007-03-02  Bruno Haible  <bruno@clisp.org>
28033
28034         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
28035         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
28036         values.
28037         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
28038         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
28039         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
28040         * modules/sys_socket (Depends-on): Add absolute-header.
28041         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
28042         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
28043         (Include): Remove requirement of inclusion of <sys/types.h>.
28044
28045 2007-03-02  Bruno Haible  <bruno@clisp.org>
28046
28047         * lib/byteswap_.h (bswap_32): Fix formula.
28048
28049 2007-03-06  Bruno Haible  <bruno@clisp.org>
28050
28051         * modules/sprintf-posix-tests: New file.
28052         * tests/test-sprintf-posix.c: New file.
28053
28054         * modules/sprintf-posix: New file.
28055         * lib/sprintf.c: New file.
28056         * m4/sprintf-posix.m4: New file.
28057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
28058         REPLACE_SPRINTF.
28059         * lib/stdio_.h (sprintf): New declaration.
28060         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
28061         REPLACE_SPRINTF.
28062
28063 2007-03-06  Bruno Haible  <bruno@clisp.org>
28064
28065         * modules/vsprintf-posix-tests: New file.
28066         * tests/test-vsprintf-posix.c: New file.
28067         * tests/test-sprintf-posix.h: New file.
28068
28069         * modules/vsprintf-posix: New file.
28070         * lib/vsprintf.c: New file.
28071         * m4/vsprintf-posix.m4: New file.
28072         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
28073         REPLACE_VSPRINTF.
28074         * lib/stdio_.h (vsprintf): New declaration.
28075         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
28076         REPLACE_VSPRINTF.
28077
28078 2007-03-06  Bruno Haible  <bruno@clisp.org>
28079
28080         * modules/vsnprintf (Depend-on): Remove minmax.
28081
28082 2007-03-06  Bruno Haible  <bruno@clisp.org>
28083
28084         * modules/snprintf-posix-tests: New file.
28085         * tests/test-snprintf-posix.c: New file.
28086
28087         * modules/snprintf-posix: New file.
28088         * m4/snprintf-posix.m4: New file.
28089         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
28090         gl_FUNC_SNPRINTF.
28091         (gl_FUNC_SNPRINTF): Invoke it.
28092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
28093         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
28094         is set.
28095         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
28096
28097 2007-03-06  Bruno Haible  <bruno@clisp.org>
28098
28099         * modules/vsnprintf-posix-tests: New file.
28100         * tests/test-vsnprintf-posix.c: New file.
28101         * tests/test-snprintf-posix.h: New file.
28102
28103         * modules/vsnprintf-posix: New file.
28104         * m4/vsnprintf-posix.m4: New file.
28105         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
28106         gl_FUNC_VSNPRINTF.
28107         (gl_FUNC_VSNPRINTF): Invoke it.
28108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
28109         * lib/stdio_.h (vsnprintf): Define as a replacement if
28110         REPLACE_VSNPRINTF is set.
28111         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
28112
28113 2007-03-06  Bruno Haible  <bruno@clisp.org>
28114
28115         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
28116         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
28117
28118 2007-03-06  Bruno Haible  <bruno@clisp.org>
28119
28120         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
28121         (asinl): Declare also if HAVE_DECL_ASINL is set.
28122         (atanl): Declare also if HAVE_DECL_ATANL is set.
28123         (ceill): Declare also if HAVE_DECL_CEILL is set.
28124         (cosl): Declare also if HAVE_DECL_COSL is set.
28125         (expl): Declare also if HAVE_DECL_EXPL is set.
28126         (floorl): Declare also if HAVE_DECL_FLOORL is set.
28127         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
28128         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
28129         (logl): Declare also if HAVE_DECL_LOGL is set.
28130         (sinl): Declare also if HAVE_DECL_SINL is set.
28131         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
28132         (tanl): Declare also if HAVE_DECL_TANL is set.
28133         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
28134         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
28135         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
28136         declaration of frexpl, ldexpl.
28137         * modules/printf-frexpl (Depends-on): Add math.
28138         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
28139
28140 2007-03-05  Bruno Haible  <bruno@clisp.org>
28141
28142         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
28143         frexpl and ldexpl are declared.
28144         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
28145
28146 2007-03-05  Bruno Haible  <bruno@clisp.org>
28147
28148         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
28149         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
28150
28151 2007-03-05  Bruno Haible  <bruno@clisp.org>
28152
28153         * lib/stdio_.h: Include <stddef.h>.
28154
28155 2007-03-05  Bruno Haible  <bruno@clisp.org>
28156
28157         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
28158
28159 2007-03-05  Bruno Haible  <bruno@clisp.org>
28160
28161         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
28162         NetBSD 4, from Ralf Wildenhues.
28163
28164 2007-03-04  Bruno Haible  <bruno@clisp.org>
28165
28166         * lib/vasprintf.h: Update #if logic for the case when the functions
28167         exist but are overridden.
28168
28169 2007-03-04  Bruno Haible  <bruno@clisp.org>
28170
28171         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
28172         implementations: glibc-2.4 and MacOS X 10.3.
28173         * tests/test-vasnprintf-posix.c (test_function): Test also the case
28174         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
28175         * tests/test-vasprintf-posix.c (test_function): Likewise.
28176
28177 2007-03-04  Bruno Haible  <bruno@clisp.org>
28178
28179         * modules/vasprintf-posix-tests: New file.
28180         * tests/test-vasprintf-posix.c: New file.
28181
28182         * modules/vasprintf-posix: New file.
28183         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
28184         defined.
28185         * m4/vasprintf-posix.m4: New file.
28186         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
28187         gl_FUNC_VASPRINTF.
28188         (gl_FUNC_VASPRINTF): Invoke it.
28189         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
28190         here.
28191         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
28192
28193 2007-03-04  Bruno Haible  <bruno@clisp.org>
28194
28195         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
28196         REPLACE_GETTIMEOFDAY.
28197         * modules/sys_time (Makefile.am): Likewise.
28198         * m4/sys_time_h.m4: Likewise.
28199         * m4/gettimeofday.m4: Likewise.
28200
28201 2007-03-04  Bruno Haible  <bruno@clisp.org>
28202
28203         * modules/vasnprintf-posix-tests: New file.
28204         * tests/test-vasnprintf-posix.c: New file.
28205
28206         * modules/vasnprintf-posix: New file.
28207         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
28208         printf-frexpl.h.
28209         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
28210         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
28211         REPLACE_VASNPRINTF is defined.
28212         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
28213         gl_FUNC_VASNPRINTF.
28214         (gl_FUNC_VASNPRINTF): Invoke it.
28215         * m4/vasnprintf-posix.m4: New file.
28216         * m4/printf.m4: New file.
28217
28218 2007-03-04  Bruno Haible  <bruno@clisp.org>
28219
28220         Compile progreloc.c only if --enable-relocatable is specified.
28221         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
28222         if --enable-relocatable was specified.
28223         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
28224         lib_SOURCES.
28225
28226 2007-03-04  Jim Meyering  <jim@meyering.net>
28227
28228         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
28229         Use it consistently, rather than enumerating errno constants.
28230
28231 2007-03-04  Bruno Haible  <bruno@clisp.org>
28232
28233         * modules/xvasprintf-tests: New file.
28234         * tests/test-xvasprintf.c: New file.
28235
28236         * modules/vasprintf-tests: New file.
28237         * tests/test-vasprintf.c: New file.
28238
28239         * modules/vasnprintf-tests: New file.
28240         * tests/test-vasnprintf.c: New file.
28241
28242         * modules/vsnprintf-tests: New file.
28243         * tests/test-vsnprintf.c: New file.
28244
28245         * modules/snprintf-tests: New file.
28246         * tests/test-snprintf.c: New file.
28247
28248 2007-03-04  Bruno Haible  <bruno@clisp.org>
28249
28250         Compile relocatable.c only if --enable-relocatable is specified.
28251         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
28252         gl_RELOCATABLE_LIBRARY.
28253         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
28254         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
28255         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
28256         gl_RELOCATABLE_LIBRARY.
28257         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
28258         (Makefile.am): Remove lib_SOURCES.
28259         * modules/relocatable-lib-lgpl (configure.ac): Invoke
28260         gl_RELOCATABLE_LIBRARY.
28261         (Makefile.am): Remove lib_SOURCES.
28262         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
28263         always.
28264         * modules/relocatable-prog-wrapper (configure.ac): Invoke
28265         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
28266
28267 2007-03-04  Bruno Haible  <bruno@clisp.org>
28268
28269         * modules/argmatch-tests: New file.
28270         * tests/test-argmatch.c: New file.
28271
28272         * tests/test-allocsa.c (main): Halve the number of loop runs.
28273
28274         * modules/alloca-opt-tests: New file.
28275         * tests/test-alloca-opt.c: New file.
28276
28277 2007-03-04  Jim Meyering  <jim@meyering.net>
28278
28279         Work around difference between Linux ACLs and Solaris 10 ZFS.
28280         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
28281         for EINVAL.
28282
28283 2007-03-03  Bruno Haible  <bruno@clisp.org>
28284
28285         * modules/relocatable-prog (Depends-on): Add back progreloc's
28286         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
28287
28288 2007-03-03  Bruno Haible  <bruno@clisp.org>
28289
28290         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
28291         * modules/relocatable-lib: New file.
28292
28293 2007-03-03  Bruno Haible  <bruno@clisp.org>
28294
28295         * modules/relocatable-prog: Renamed from modules/relocatable.
28296         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
28297
28298 2007-03-03  Bruno Haible  <bruno@clisp.org>
28299
28300         * modules/relocatable-script (Files): Add doc/relocatable.texi,
28301         m4/relocatable-lib.m4.
28302         (Depends-on): Remove 'relocatable'.
28303         (configure.ac): Add gl_RELOCATABLE_NOP.
28304
28305 2007-03-03  Bruno Haible  <bruno@clisp.org>
28306
28307         * modules/relocatable-prog-wrapper: New file.
28308         * modules/relocatable (Depends-on): Add it. Remove all other
28309         dependencies except progname.
28310         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
28311
28312         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
28313         (gl_FUNC_STRERROR): Nop.
28314         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
28315
28316         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
28317         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
28318
28319         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
28320         (gl_FUNC_READLINK): Update.
28321
28322         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
28323
28324 2007-03-03  Bruno Haible  <bruno@clisp.org>
28325
28326         * lib/xreadlink.c: Include <unistd.h> unconditionally.
28327         * modules/xreadlink (Depends-on): Add unistd.
28328         * modules/xreadlink-with-size (Depends-on): Likewise.
28329
28330 2007-03-03  Bruno Haible  <bruno@clisp.org>
28331
28332         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
28333         extracted from gt_FUNC_SETENV.
28334         (gt_FUNC_SETENV): Remove macro.
28335         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
28336         remove gt_FUNC_SETENV.
28337
28338 2007-03-03  Bruno Haible  <bruno@clisp.org>
28339
28340         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
28341         ENABLE_RELOCATABLE here.
28342         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
28343
28344 2007-03-03  Bruno Haible  <bruno@clisp.org>
28345
28346         * modules/rbtreehash-list-tests (Depends-on): Add progname.
28347         * tests/test-rbtreehash_list.c: Include progname.h.
28348         (main): Call set_program_name.
28349
28350         * modules/rbtree-oset-tests (Depends-on): Add progname.
28351         * tests/test-rbtree_oset.c: Include progname.h.
28352         (main): Call set_program_name.
28353
28354         * modules/rbtree-list-tests (Depends-on): Add progname.
28355         * tests/test-rbtree_list.c: Include progname.h.
28356         (main): Call set_program_name.
28357
28358         * modules/linked-list-tests (Depends-on): Add progname.
28359         * tests/test-linked_list.c: Include progname.h.
28360         (main): Call set_program_name.
28361
28362 2007-03-03  Bruno Haible  <bruno@clisp.org>
28363
28364         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
28365         All uses of __restrict changed to _Restrict_.
28366         * lib/glob_.h (__restrict): Remove macro.
28367
28368 2007-03-02  Bruno Haible  <bruno@clisp.org>
28369
28370         * modules/gettext (configure.ac): Require gettext infrastructure
28371         from version 0.16.1.
28372
28373 2007-03-02  Bruno Haible  <bruno@clisp.org>
28374
28375         * modules/linkedhash-list-tests (Depends-on): Add progname.
28376         * tests/test-linkedhash_list.c: Include progname.h.
28377         (main): Call set_program_name.
28378
28379         * modules/carray-list-tests (Depends-on): Add progname.
28380         * tests/test-carray_list.c: Include progname.h.
28381         (main): Call set_program_name.
28382
28383         * modules/avltreehash-list-tests (Depends-on): Add progname.
28384         * tests/test-avltreehash_list.c: Include progname.h.
28385         (main): Call set_program_name.
28386
28387         * modules/avltree-oset-tests (Depends-on): Add progname.
28388         * tests/test-avltree_oset.c: Include progname.h.
28389         (main): Call set_program_name.
28390
28391         * modules/avltree-list-tests (Depends-on): Add progname.
28392         * tests/test-avltree_list.c: Include progname.h.
28393         (main): Call set_program_name.
28394
28395         * modules/array-oset-tests (Depends-on): Add progname.
28396         * tests/test-array_oset.c: Include progname.h.
28397         (main): Call set_program_name.
28398
28399         * modules/array-list-tests (Depends-on): Add progname.
28400         * tests/test-array_list.c: Include progname.h.
28401         (main): Call set_program_name.
28402
28403         * modules/argp-tests (Depends-on): Add progname.
28404         * tests/test-argp.c: Include argp.h first. Include progname.h.
28405         (main): Call set_program_name.
28406
28407 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
28408
28409         * doc/gnulib-tool.texi (Initial import): Reword description of
28410         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
28411         limited effect even if defined after the first system include.
28412
28413 2007-03-01  Bruno Haible  <bruno@clisp.org>
28414
28415         * build-aux/config.libpath: Update to libtool-1.5.22.
28416         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28417
28418 2007-03-01  Bruno Haible  <bruno@clisp.org>
28419
28420         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
28421         foo_CFLAGS.
28422         Reported by Ralf Wildenhues.
28423
28424 2007-03-01  Bruno Haible  <bruno@clisp.org>
28425
28426         * build-aux/install-reloc: Remove object files left over by some
28427         compilers.
28428         Reported by Ralf Wildenhues.
28429
28430 2007-03-01  Bruno Haible  <bruno@clisp.org>
28431
28432         * build-aux/install-reloc: Break long lines.
28433
28434 2007-03-01  Bruno Haible  <bruno@clisp.org>
28435
28436         * doc/relocatable.texi: Document that it may not work on OpenBSD.
28437         Reported by Ralf Wildenhues.
28438
28439 2007-03-01  Bruno Haible  <bruno@clisp.org>
28440
28441         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
28442         include ordering constraints.
28443
28444 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
28445
28446         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
28447         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
28448         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
28449         as another example.
28450         * lib/time_.h: Fix misspelling.
28451         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
28452         Require gl_HEADER_TIME_H_DEFAULTS.
28453         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
28454         * m4/time_r.m4 (gl_TIME_R): Likewise.
28455         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
28456
28457 2007-03-01  Bruno Haible  <bruno@clisp.org>
28458
28459         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
28460         * m4/utimens.m4 (gl_UTIMENS): Likewise.
28461
28462 2007-03-01  Jim Meyering  <jim@meyering.net>
28463
28464         * modules/xreadlink (Maintainer): Add my name.
28465         * modules/xreadlink-with-size (Depends-on): Alphabetize.
28466
28467 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
28468             Bruno Haible  <bruno@clisp.org>
28469
28470         * build-aux/install-reloc: Compile also c-ctype.c.
28471         * build-aux/relocatable.sh.in: New file.
28472         * doc/relocatable.texi: New file.
28473         * doc/relocatable-maint.texi: New file.
28474         * doc/gnulib.texi: Include relocatable-maint.texi.
28475         * lib/progreloc.c: Include unistd.h unconditionally.
28476         * lib/relocwrapper.c: Include unistd.h unconditionally.
28477         Include c-ctype.h.
28478         (add_dotbin): Use c_tolower.
28479         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
28480         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
28481         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
28482         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
28483         to m4/relocatable-lib.m4.
28484         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
28485         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
28486         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
28487         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
28488         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
28489         * modules/relocatable: New file.
28490         * modules/relocatable-lib: New file.
28491         * modules/relocatable-script: New file.
28492
28493 2007-02-28  Bruno Haible  <bruno@clisp.org>
28494
28495         Import --enable-relocatable infrastructure.
28496         * build-aux/config.libpath: New file, from GNU gettext.
28497         * build-aux/install-reloc: New file, from GNU gettext.
28498         * build-aux/reloc-ldflags: New file, from GNU gettext.
28499         * lib/relocatable.h: New file, from GNU gettext.
28500         * lib/relocatable.c: New file, from GNU gettext.
28501         * lib/relocwrapper.c: New file, from GNU gettext.
28502         * m4/relocatable.m4: New file, from GNU gettext.
28503
28504 2007-02-28  Bruno Haible  <bruno@clisp.org>
28505
28506         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
28507
28508         * modules/xreadlink: New file, from GNU gettext with modifications.
28509         * lib/xreadlink.c: New file, from GNU gettext.
28510         * lib/xreadlink.h: Add comments.
28511         (xreadlink): New declaration.
28512
28513         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
28514         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
28515         lib/xreadlink-with-size.c.
28516         (configure.ac): Remove gl_XREADLINK invocation.
28517         (Makefile.am): Augment lib_SOURCES.
28518         * m4/xreadlink.m4: Remove file.
28519         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
28520         (xreadlink_with_size): Renamed from xreadink.
28521         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
28522         * modules/canonicalize (Depends-on): Replace xreadlink with
28523         xreadlink-with-size.
28524         * lib/canonicalize.c (canonicalize_filename_mode): Update.
28525
28526 2007-02-25  Jim Meyering  <jim@meyering.net>
28527
28528         * build-aux/announce-gen: When complaining about excess arguments,
28529         list them.
28530
28531 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
28532
28533         * README: Document signed integer overflow situation more
28534         accurately.
28535
28536 2007-02-25  Bruno Haible  <bruno@clisp.org>
28537
28538         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
28539         'a' or 'A' conversion.
28540
28541 2007-02-25  Bruno Haible  <bruno@clisp.org>
28542
28543         * modules/filename: Renamed from modules/pathname.
28544         (Files): Replace lib/pathname.h with lib/filename.h. Replace
28545         lib/concatpath.c with lib/concat-filename.c.
28546         (Makefile.am): Update.
28547         (Include): Replace pathname.h with filename.h.
28548         * lib/filename.h: Renamed from lib/pathname.h.
28549         (concatenated_filename): Renamed from concatenated_pathname.
28550         * lib/concat-filename.c: Renamed from lib/concatpath.c.
28551         (concatenated_filename): Renamed from concatenated_pathname.
28552         * lib/findprog.c: Include filename.h instead of pathname.h.
28553         (find_in_path): Update.
28554         * lib/javacomp.c: Include filename.h instead of pathname.h.
28555         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
28556         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
28557         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
28558         is_oldgcj_14_13_usable, is_javac_usable): Update.
28559         * lib/javaexec.c: Include filename.h instead of pathname.h.
28560         (execute_java_class): Update.
28561         * modules/findprog: Update.
28562         * modules/javacomp: Update.
28563         * modules/javaexec: Update.
28564         * MODULES.html.sh (File system functions): Add 'filename', remove
28565         'pathname'.
28566
28567 2007-02-25  Bruno Haible  <bruno@clisp.org>
28568
28569         * modules/printf-frexpl-tests: New file.
28570         * tests/test-printf-frexpl.c: New file.
28571
28572         * modules/printf-frexpl: New file.
28573         * lib/printf-frexpl.h: New file.
28574         * lib/printf-frexpl.c: New file.
28575         * m4/printf-frexpl.m4: New file.
28576
28577 2007-02-25  Bruno Haible  <bruno@clisp.org>
28578
28579         * modules/printf-frexp-tests: New file.
28580         * tests/test-printf-frexp.c: New file.
28581
28582         * modules/printf-frexp: New file.
28583         * lib/printf-frexp.h: New file.
28584         * lib/printf-frexp.c: New file.
28585         * m4/printf-frexp.m4: New file.
28586
28587 2007-02-25  Bruno Haible  <bruno@clisp.org>
28588
28589         Assume automake >= 1.10 for the tests.
28590         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
28591         * modules/arctwo-tests: Likewise.
28592         * modules/argp-tests: Likewise.
28593         * modules/avltree-list-tests: Likewise.
28594         * modules/avltree-oset-tests: Likewise.
28595         * modules/avltreehash-list-tests: Likewise.
28596         * modules/carray-list-tests: Likewise.
28597         * modules/crc-tests: Likewise.
28598         * modules/des-tests: Likewise.
28599         * modules/gc-arcfour-tests: Likewise.
28600         * modules/gc-arctwo-tests: Likewise.
28601         * modules/gc-des-tests: Likewise.
28602         * modules/gc-hmac-md5-tests: Likewise.
28603         * modules/gc-hmac-sha1-tests: Likewise.
28604         * modules/gc-md2-tests: Likewise.
28605         * modules/gc-md4-tests: Likewise.
28606         * modules/gc-md5-tests: Likewise.
28607         * modules/gc-pbkdf2-sha1-tests: Likewise.
28608         * modules/gc-rijndael-tests: Likewise.
28609         * modules/gc-sha1-tests: Likewise.
28610         * modules/gc-tests: Likewise.
28611         * modules/getaddrinfo-tests: Likewise.
28612         * modules/hmac-md5-tests: Likewise.
28613         * modules/hmac-sha1-tests: Likewise.
28614         * modules/linked-list-tests: Likewise.
28615         * modules/linkedhash-list-tests: Likewise.
28616         * modules/lock-tests: Likewise.
28617         * modules/md2-tests: Likewise.
28618         * modules/md4-tests: Likewise.
28619         * modules/md5-tests: Likewise.
28620         * modules/rbtree-list-tests: Likewise.
28621         * modules/rbtree-oset-tests: Likewise.
28622         * modules/rbtreehash-list-tests: Likewise.
28623         * modules/read-file-tests: Likewise.
28624         * modules/rijndael-tests: Likewise.
28625         * modules/stdint-tests: Likewise.
28626         * modules/tls-tests: Likewise.
28627
28628 2007-02-24  Bruno Haible  <bruno@clisp.org>
28629
28630         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
28631         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
28632         function; instead check whether isnan with a double argument links.
28633         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
28634         function; instead check whether isnan with a 'long double' argument
28635         links.
28636         Reported by Eric Blake <ebb9@byu.net>.
28637
28638 2007-02-24  Bruno Haible  <bruno@clisp.org>
28639
28640         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
28641         defined.
28642         * lib/isnanl.c: Remove all code. Just include isnan.c.
28643         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
28644
28645 2007-02-25  Jim Meyering  <jim@meyering.net>
28646
28647         Avoid conflicting types for 'unsetenv' on FreeBSD.
28648         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
28649         conflicting with FreeBSD's (5.0 and 6.1) function declaration
28650         in stdlib.h.
28651
28652 2007-02-24  Bruno Haible  <bruno@clisp.org>
28653
28654         * modules/isnanl-nolibm-tests: New file.
28655         * tests/test-isnanl.c: New file.
28656
28657         * modules/isnanl-nolibm: New file.
28658         * lib/isnanl.h: New file.
28659         * lib/isnanl.c: New file.
28660         * m4/isnanl.m4: New file.
28661
28662 2007-02-24  Bruno Haible  <bruno@clisp.org>
28663
28664         * modules/isnan-nolibm-tests: New file.
28665         * tests/test-isnan.c: New file.
28666
28667         * modules/isnan-nolibm: New file.
28668         * lib/isnan.h: New file.
28669         * lib/isnan.c: New file.
28670         * m4/isnan.m4: New file.
28671
28672 2007-02-24  Bruno Haible  <bruno@clisp.org>
28673
28674         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
28675         assume that an exponent fits in 20 bits.
28676
28677 2007-02-24  Jim Meyering  <jim@meyering.net>
28678
28679         * m4/regex.m4: Update the description of the configure-time option,
28680         --without-included-regex, to state accurately what the defaults are,
28681         and perhaps to give people an idea why using this option is risky.
28682
28683 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
28684
28685         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
28686         loops on small arguments.  This attempts to avoid the problem
28687         Bruno Haible reported for AIX 4.3.2 in
28688         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
28689
28690 2007-02-23  Bruno Haible  <bruno@clisp.org>
28691
28692         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
28693         Needed for help2man.
28694
28695 2007-02-23  Karl Berry  <karl@gnu.org>
28696
28697         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
28698         exists, foo.h should be cvs-ignored, not committed.
28699
28700 2007-02-23  Eric Blake  <ebb9@byu.net>
28701
28702         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
28703         * lib/stat-time.h (includes): Likewise.
28704         * lib/utimecmp.c (includes): Likewise.
28705         * lib/utimens.h (includes): Likewise.
28706         * lib/getdate.y (includes): Also include "timespec.h" for use
28707         internal to the module.
28708         * modules/utimens (Depends-on): Revert yesterday's patch.
28709         * modules/nanosleep (Depends-on): Add missing dependency.
28710
28711 2007-02-22  Bruno Haible  <bruno@clisp.org>
28712
28713         * lib/glob.c: Don't include getlogin_r.h.
28714
28715 2007-02-22  Jim Meyering  <jim@meyering.net>
28716
28717         * modules/utimens (Depends-on): Add timespec, required for
28718         utimens.h's inclusion of timespec.h.
28719
28720 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
28721
28722         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
28723         long unreadable paths in GNU/Linux.  Problem reported by Andreas
28724         Schwab in
28725         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
28726         I'll try to think of a better way to fix the Solaris problem.
28727
28728         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
28729         like glibc; on Solaris 10, it fails with errno == EINVAL.
28730         POSIX says the behavior is unspecified if the first argument is NULL,
28731         so play it safe and never pass NULL to the system getcwd.
28732
28733 2007-02-21  Jim Meyering  <jim@meyering.net>
28734
28735         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
28736         of gettimeofday.  It would conflict with the one now always
28737         provided via sys_time_.h.  Reported by Matthew Woehlke, as
28738         an IRIX 6.5 build failure.
28739
28740 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
28741
28742         Minor fixups to port to Solaris 10 with Sun C 5.8.
28743         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
28744         * modules/getcwd (Depends-on): Add dirfd.
28745         * lib/putenv.c (putenv): #undef it.
28746         (rpl_putenv): New decl.
28747         (malloc, free): Include <stdlib.h> rather than prototyping separately.
28748
28749 2007-02-20  Bruno Haible  <bruno@clisp.org>
28750
28751         * modules/stdio-tests: New file.
28752         * tests/test-stdio.c: New file.
28753
28754         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
28755         (Depends-on): Add stdio.
28756         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
28757         (Include): Use <stdio.h> instead of vsnprintf.h.
28758         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
28759         HAVE_DECL_VSNPRINTF.
28760         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
28761
28762         * modules/snprintf (Files): Remove lib/snprintf.h.
28763         (Depends-on): Add stdio.
28764         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
28765         (Include): Use <stdio.h> instead of snprintf.h.
28766         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
28767         HAVE_DECL_SNPRINTF.
28768         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
28769         * lib/getaddrinfo.c: Likewise.
28770
28771         * modules/stdio: New file.
28772         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
28773         * lib/snprintf.h: Remove file.
28774         * lib/vsnprintf.h: Remove file.
28775         * lib/.cppi-disable: Remove snprintf.h.
28776         * m4/stdio_h.m4: New file.
28777         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
28778
28779 2007-02-20  Jim Meyering  <jim@meyering.net>
28780
28781         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
28782         used by e.g., mingw.  From Bruno Haible.
28783
28784 2007-02-19  Bruno Haible  <bruno@clisp.org>
28785
28786         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
28787         warnings.
28788         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28789
28790 2007-02-19  Bruno Haible  <bruno@clisp.org>
28791
28792         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
28793         from mingw users.
28794
28795 2007-02-19  Bruno Haible  <bruno@clisp.org>
28796
28797         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
28798         warnings.
28799         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
28800
28801 2007-02-19  Jim Meyering  <jim@meyering.net>
28802
28803         Don't use FD after a successful "fdopendir (fd)".
28804         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
28805         Reset it by calling dirfd on the just-obtained DIR*.
28806
28807         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
28808         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
28809
28810 2007-02-18  Bruno Haible  <bruno@clisp.org>
28811
28812         * lib/readlink.c: Include <unistd.h>.
28813         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
28814         HAVE_READLINK.
28815         * modules/readlink (Depends-on): Add unistd.
28816         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28817         (Include): Add <unistd.h>.
28818
28819         * lib/getlogin_r.h: Remove file.
28820         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
28821         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
28822         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
28823         HAVE_DECL_GETLOGIN_R.
28824         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
28825         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28826         (Include): Use <unistd.h> instead of getlogin_r.h.
28827
28828         * lib/getcwd.h: Remove file.
28829         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
28830         * lib/xgetcwd.c: Likewise.
28831         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
28832         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
28833         * modules/getcwd (Files): Remove lib/getcwd.h.
28834         (Depends-on): Add unistd.
28835         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28836         (Include): Use <unistd.h> instad of getcwd.h.
28837
28838         * lib/ftruncate.c: Include <unistd.h> first.
28839         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
28840         Set HAVE_FTRUNCATE.
28841         * modules/ftruncate (Depends-on): Add unistd.
28842         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28843
28844         * lib/fchdir.c: Include <unistd.h> first.
28845         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
28846         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
28847         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
28848         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28849         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
28850
28851         * lib/dup2.c: Include <unistd.h> first.
28852         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
28853         HAVE_DUP2.
28854         * modules/dup2 (Depends-on): Add unistd.
28855         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28856
28857         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
28858         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
28859         REPLACE_CHOWN. Don't define chown as a macro here.
28860         * modules/chown (Depends-on): Add unistd.
28861         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28862
28863         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
28864         Add definition for GL_LINK_WARNING.
28865         (chown, dup2): New declarations.
28866         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
28867         link warning.
28868         (ftruncate): New declaration.
28869         (getcwd): New declaration, taken from old getcwd.h.
28870         (getlogin_r): New declaration, taken from old getlogin_r.h.
28871         (readlink): New declaration.
28872         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
28873         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
28874         (gl_PREREQ_UNISTD): Remove macro.
28875         (gl_UNISTD_MODULE_INDICATOR): New macro.
28876         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
28877         many new variables. Don't set UNISTD_H.
28878         * modules/unistd (Description): Change.
28879         (Depends-on): Add link-warning.
28880         (configure.ac): Update.
28881         (Makefile.am): Create unistd.h always. Substitute many new variables
28882         into it.
28883
28884 2007-02-18  Bruno Haible  <bruno@clisp.org>
28885
28886         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
28887         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
28888         HAVE_GETSUBOPT.
28889         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
28890         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
28891         * lib/getsubopt.h: Remove file.
28892         * modules/getsubopt (Files): Remove lib/getsubopt.h.
28893         (Depends-on): Add stdlib.
28894         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28895         (Includes): Use <stdlib.h> instead of getsubopt.h.
28896         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
28897         Set HAVE_GETSUBOPT.
28898         * lib/getsubopt.c: Don't include getsubopt.h.
28899
28900 2007-02-18  Bruno Haible  <bruno@clisp.org>
28901
28902         * modules/fchdir (Depends-on): Add dup2.
28903
28904 2007-02-18  Bruno Haible  <bruno@clisp.org>
28905
28906         * lib/stdlib_.h: Handle glibc's special invocation convention
28907         specially.
28908
28909 2007-02-18  Bruno Haible  <bruno@clisp.org>
28910
28911         * modules/stdlib-tests: New file.
28912         * tests/test-stdlib.c: New file.
28913
28914         * modules/mkstemp (Files): Remove lib/mkstemp.h.
28915         (Depends-on): Add stdlib.
28916         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28917         (Includes): Use <stdlib.h> instead of mkstemp.h.
28918         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
28919         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
28920         * lib/mkstemp.c: Don't include mkstemp.h.
28921         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
28922         * lib/stdlib--.h: Don't include mkstemp.h.
28923
28924         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
28925         (Depends-on): Add stdlib.
28926         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28927         (Includes): Use <stdlib.h> instead of mkdtemp.h.
28928         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
28929         HAVE_MKDTEMP.
28930         * lib/mkdtemp.c: Don't include mkdtemp.h.
28931         * lib/clean-temp.c: Don't include mkdtemp.h.
28932
28933         * modules/exit (Files): Remove lib/exit.h.
28934         (Depends-on): Add stdlib.
28935         (Makefile.am): Remove lib_SOURCES.
28936         (Include): Use <stdlib.h> instead of exit.h.
28937         * lib/argmatch.c: Don't include exit.h.
28938         * lib/execute.c: Likewise.
28939         * lib/pagealign_alloc.c: Likewise.
28940         * lib/pipe.c: Likewise.
28941         * lib/wait-process.c: Likewise.
28942         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
28943         * lib/exitfail.c: Likewise.
28944         * lib/savewd.c: Likewise.
28945         * lib/xsetenv.c: Likewise.
28946
28947         * modules/stdlib: New file.
28948         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
28949         and extra comments about mkstemp().
28950         * lib/exit.h: Remove file.
28951         * lib/mkdtemp.h: Remove file.
28952         * lib/mkstemp.h: Remove file.
28953         * m4/stdlib_h.m4: New file.
28954         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
28955
28956 2007-02-18  Bruno Haible  <bruno@clisp.org>
28957
28958         * modules/math-tests: New file.
28959         * tests/test-math.c: New file.
28960
28961         * modules/math: New file.
28962         * modules/mathl (Files): Remove lib/mathl.h.
28963         (Depends-on): Add math.
28964         (Makefile.am): Don't mention mathl.h.
28965         (Include): Use <math.h> instead of mathl.h.
28966         * lib/math_.h: New file.
28967         * lib/mathl.h: Remove file.
28968         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
28969         mathl.h.
28970         * lib/asinl.c: Likewise.
28971         * lib/atanl.c: Likewise.
28972         * lib/ceill.c: Likewise.
28973         * lib/cosl.c: Likewise.
28974         * lib/expl.c: Likewise.
28975         * lib/floorl.c: Likewise.
28976         * lib/frexpl.c: Likewise.
28977         * lib/ldexpl.c: Likewise.
28978         * lib/logl.c: Likewise.
28979         * lib/sincosl.c: Likewise.
28980         * lib/sinl.c: Likewise.
28981         * lib/sqrtl.c: Likewise.
28982         * lib/tanl.c: Likewise.
28983         * lib/trigl.c: Likewise.
28984         * m4/math_h.m4: New file.
28985         * MODULES.html.sh (Mathematics): Add math.
28986
28987 2007-02-17  Bruno Haible  <bruno@clisp.org>
28988
28989         * modules/wctype-tests: New file.
28990         * tests/test-wctype.c: New file.
28991
28992         * modules/wchar-tests: New file.
28993         * tests/test-wchar.c: New file.
28994
28995         * modules/unistd-tests: New file.
28996         * tests/test-unistd.c: New file.
28997
28998         * modules/time-tests: New file.
28999         * tests/test-time.c: New file.
29000
29001         * modules/sysexits-tests: New file.
29002         * tests/test-sysexits.c: New file.
29003
29004         * modules/sys_time-tests: New file.
29005         * tests/test-sys_time.c: New file.
29006
29007         * modules/sys_stat-tests: New file.
29008         * tests/test-sys_stat.c: New file.
29009
29010         * modules/sys_socket-tests: New file.
29011         * tests/test-sys_socket.c: New file.
29012
29013         * modules/sys_select-tests: New file.
29014         * tests/test-sys_select.c: New file.
29015
29016         * modules/string-tests: New file.
29017         * tests/test-string.c: New file.
29018
29019         * modules/stdbool-tests: New file.
29020         * tests/test-stdbool.c: New file.
29021
29022         * modules/netinet_in-tests: New file.
29023         * tests/test-netinet_in.c: New file.
29024
29025         * modules/inttypes-tests: New file.
29026         * tests/test-inttypes.c: New file.
29027
29028         * modules/fcntl-tests: New file.
29029         * tests/test-fcntl.c: New file.
29030
29031         * modules/byteswap-tests: New file.
29032         * tests/test-byteswap.c: New file.
29033
29034         * modules/arpa_inet-tests: New file.
29035         * tests/test-arpa_inet.c: New file.
29036
29037 2007-02-17  Bruno Haible  <bruno@clisp.org>
29038
29039         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
29040         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
29041         if the corresponding module is not enabled. Emit link warnings if
29042         the function is used nevertheless.
29043         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
29044         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
29045         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
29046         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
29047         * modules/inttypes (Depends-on): Add link-warning.
29048         (Makefile.am): Copy the contents of build-aux/link-warning.h into
29049         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
29050         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
29051         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
29052         * modules/imaxdiv (configure.ac): Likewise.
29053         * modules/strtoimax (configure.ac): Likewise.
29054         * modules/strtoumax (configure.ac): Likewise.
29055
29056 2007-02-17  Bruno Haible  <bruno@clisp.org>
29057
29058         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
29059         gl_STRING_MODULE_INDICATOR_DEFAULTS.
29060         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
29061         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
29062
29063 2007-02-17  Bruno Haible  <bruno@clisp.org>
29064
29065         * modules/link-warning: New file.
29066         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
29067         * lib/string_.h (GL_LINK_WARNING): Remove definition.
29068         * modules/string (Depends-on): Add link-warning.
29069         (Makefile.am): Copy the contents of build-aux/link-warning.h into
29070         string.h.
29071         * MODULES.html.sh (Support for building libraries and executables): Add
29072         link-warning.
29073
29074 2007-02-17  Bruno Haible  <bruno@clisp.org>
29075
29076         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
29077         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
29078         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
29079         long lines.
29080
29081 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
29082             Bruno Haible  <bruno@clisp.org>
29083
29084         * modules/tmpfile: New file.
29085         * lib/tmpfile.c: New file.
29086         * m4/tmpfile.m4: New file.
29087         * MODULES.html.sh (func_all_modules): New section "Input/output".
29088
29089 2007-02-15  Bruno Haible  <bruno@clisp.org>
29090
29091         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
29092         (supports_delete_on_close): New function.
29093         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
29094
29095 2007-02-14  Bruno Haible  <bruno@clisp.org>
29096
29097         * modules/mbspcasecmp-tests: New file.
29098         * tests/test-mbspcasecmp.sh: New file.
29099         * tests/test-mbspcasecmp.c: New file.
29100
29101         New module mbspcasecmp.
29102         * modules/mbspcasecmp: New file.
29103         * lib/mbspcasecmp.c: New file.
29104         * lib/string_.h (strncasecmp): Change warning message.
29105         (mbspcasecmp): New declaration.
29106         * m4/mbspcasecmp.m4: New file.
29107         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29108         GNULIB_MBSPCASECMP.
29109         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
29110         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
29111
29112 2007-02-14  Bruno Haible  <bruno@clisp.org>
29113
29114         * modules/mbsncasecmp-tests: New file.
29115         * tests/test-mbsncasecmp.sh: New file.
29116         * tests/test-mbsncasecmp.c: New file.
29117
29118         New module mbsncasecmp.
29119         * modules/mbsncasecmp: New file.
29120         * lib/mbsncasecmp.c: New file.
29121         * lib/string_.h (mbsncasecmp): New declaration.
29122         * m4/mbsncasecmp.m4: New file.
29123         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29124         GNULIB_MBSNCASECMP.
29125         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
29126         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
29127
29128 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
29129
29130         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
29131         Verify that it doesn't overlap with our flags.
29132         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
29133         do not have the desired effect in multibyte locales; instead, use
29134         mbscasecmp.
29135         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
29136         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
29137         we don't require GNU fnmatch ourselves (if our users require it, they
29138         should do so explicitly).
29139
29140         Fix regex code so it doesn't rely on strcasecmp.
29141         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
29142         Otherwise, include gnulib's langinfo.h.
29143         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
29144         undesirable behavior in non-C locales.  Instead, rely on localecharset.
29145         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
29146         * modules/regex (FILES): Remove m4/codeset.m4.
29147         (Depends-on): Add localcharset.  Remove strcase.
29148
29149 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29150
29151         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
29152         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
29153
29154 2007-02-13  Bruno Haible  <bruno@clisp.org>
29155
29156         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
29157         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29158
29159 2007-02-12  Bruno Haible  <bruno@clisp.org>
29160
29161         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
29162         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
29163         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
29164         time warning rather than a link error.
29165
29166 2007-02-12  Bruno Haible  <bruno@clisp.org>
29167
29168         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
29169         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29170         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29171
29172 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
29173
29174         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
29175         args, not 2.
29176
29177 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
29178
29179         New module 'time', so that apps can include <time.h> as per
29180         POSIX and GNU instead of separate include files like time_r.h
29181         and timegm.h.  This implementation tries out a simpler approach
29182         for replacing decls in standard include files (as compared to
29183         the string module), somewhat as an experiment.
29184
29185         * config/srclist.txt: Comment out mktime.c for now.
29186         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
29187         since it doesn't apply any more.  Use generic wording instead.
29188         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
29189         'time'.
29190         * lib/time_.h, m4/time_h.m4, modules/time: New files.
29191         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
29192         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
29193         Don't include <sys/types.h>; no longer needed since we assume C89.
29194         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
29195         * lib/strftime.c: Likewise.
29196         * lib/time_r.c: Likewise.
29197         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
29198         * lib/nanosleep.c: Include <time.h> first, to check interface.
29199         * lib/strptime.c: Likewise.
29200         * lib/time_r.c: Likewise.
29201         * lib/timegm.c: Likewise.
29202         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
29203         needed.
29204         * lib/timegm.c: Don't include timegm.h; no longer needed.
29205         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
29206         time.h now handles any problems in that area.
29207         (struct timespec, nanosleep): Remove; time.h now arranges for these.
29208         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
29209         that time.h defines struct timespec.
29210         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
29211         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
29212         handles that.
29213         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
29214         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
29215         needed.  Set REPLACE_LOCALTIME.
29216         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
29217         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
29218         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
29219         nanosleep; time_h.m4 now does that.  Don't require
29220         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
29221         module handles this now.
29222         * modules/getdate (Depends-on): Remove timespec.  Add time.
29223         * modules/nanosleep (Depends-on): Likewise.
29224         * modules/stat-time (Depends-on): Likewise.
29225         * modules/nanosleep (Include): Include time.h, not timespec.h.
29226         * modules/strptime (Files): Remove lib/strptime.h.
29227         (Depends-on): Add extensions, time.
29228         (Include): Include time.h, not strptime.h.
29229         * modules/time_r (Files): Remove lib/time_r.h.
29230         (Depends-on): Add time.
29231         (Include): Include time.h, not time_r.h.
29232         * modules/timegm: Likewise.
29233         * modules/timespec (Description): Now does timespec-related decls
29234         of our own, instead of struct timespec itself.
29235         (Depends-on): Add time; remove extensions.
29236         (Maintainer): Add self.
29237         * modules/utimecmp (Depends-on): Add time; remove timespec.
29238         * modules/utimens (Depends-on): Likewise.
29239         * modules/xnanosleep (Depends-on): Likewise.
29240
29241 2007-02-11  Bruno Haible  <bruno@clisp.org>
29242
29243         * lib/c-strstr.c: Include allocsa.h.
29244         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
29245         * lib/c-strcasestr.c: Include allocsa.h.
29246         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
29247         * lib/strcasestr.c: Include allocsa.h.
29248         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
29249         * lib/mbsstr.c: Include allocsa.h.
29250         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
29251         allocsa/freesa instead of malloc/free.
29252         * lib/mbscasestr.c: Include allocsa.h.
29253         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
29254         allocsa/freesa instead of malloc/free.
29255         * modules/c-strstr (Depends-on): Add allocsa.
29256         * modules/c-strcasestr (Depends-on): Likewise.
29257         * modules/strcasestr (Depends-on): Likewise.
29258         * modules/mbsstr (Depends-on): Likewise.
29259         * modules/mbscasestr (Depends-on): Likewise.
29260
29261 2007-02-11  Bruno Haible  <bruno@clisp.org>
29262
29263         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
29264
29265         * modules/mbsspn-tests: New file.
29266         * tests/test-mbsspn.sh: New file.
29267         * tests/test-mbsspn.c: New file.
29268
29269 2007-02-11  Bruno Haible  <bruno@clisp.org>
29270
29271         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
29272
29273         * modules/mbspbrk-tests: New file.
29274         * tests/test-mbspbrk.sh: New file.
29275         * tests/test-mbspbrk.c: New file.
29276
29277 2007-02-11  Bruno Haible  <bruno@clisp.org>
29278
29279         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
29280         unneeded cast.
29281
29282         * modules/mbscspn-tests: New file.
29283         * tests/test-mbscspn.sh: New file.
29284         * tests/test-mbscspn.c: New file.
29285
29286 2007-02-11  Bruno Haible  <bruno@clisp.org>
29287
29288         * modules/mbscasecmp-tests: New file.
29289         * tests/test-mbscasecmp.sh: New file.
29290         * tests/test-mbscasecmp.c: New file.
29291
29292 2007-02-11  Bruno Haible  <bruno@clisp.org>
29293
29294         Ensure O(n) worst-case complexity of mbscasestr.
29295         * lib/mbscasestr.c: Include stdbool.h.
29296         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
29297         functions.
29298         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
29299         the bookkeeping indicates that it's worth it.
29300         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
29301
29302         * modules/mbscasestr-tests: New file.
29303         * tests/test-mbscasestr1.c: New file.
29304         * tests/test-mbscasestr2.sh: New file.
29305         * tests/test-mbscasestr2.c: New file.
29306         * tests/test-mbscasestr3.sh: New file.
29307         * tests/test-mbscasestr3.c: New file.
29308         * tests/test-mbscasestr4.sh: New file.
29309         * tests/test-mbscasestr4.c: New file.
29310         * m4/locale-tr.m4: New file.
29311
29312 2007-02-11  Bruno Haible  <bruno@clisp.org>
29313
29314         Ensure O(n) worst-case complexity of mbsstr.
29315         * lib/mbsstr.c: Include stdbool.h.
29316         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
29317         functions.
29318         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
29319         bookkeeping indicates that it's worth it.
29320         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
29321
29322         * modules/mbsstr-tests: New file.
29323         * tests/test-mbsstr1.c: New file.
29324         * tests/test-mbsstr2.sh: New file.
29325         * tests/test-mbsstr2.c: New file.
29326         * tests/test-mbsstr3.sh: New file.
29327         * tests/test-mbsstr3.c: New file.
29328         * m4/locale-fr.m4: New file.
29329
29330 2007-02-11  Bruno Haible  <bruno@clisp.org>
29331
29332         * lib/mbsrchr.c (mbsrchr): Fix bug.
29333
29334         * modules/mbsrchr-tests: New file.
29335         * tests/test-mbsrchr.sh: New file.
29336         * tests/test-mbsrchr.c: New file.
29337
29338 2007-02-11  Bruno Haible  <bruno@clisp.org>
29339
29340         * lib/mbschr.c (mbschr): Fix bug.
29341
29342         * modules/mbschr-tests: New file.
29343         * tests/test-mbschr.sh: New file.
29344         * tests/test-mbschr.c: New file.
29345         * m4/locale-zh.m4: New file.
29346
29347 2007-02-11  Bruno Haible  <bruno@clisp.org>
29348
29349         Support for copying multibyte string iterators.
29350         * lib/mbiter.h: Include <string.h>.
29351         (mbiter_multi_copy): New function.
29352         (mbi_copy): New macro.
29353         * lib/mbuiter.h: Include <string.h>.
29354         (mbuiter_multi_copy): New function.
29355         (mbui_copy): New macro.
29356
29357 2007-02-11  Bruno Haible  <bruno@clisp.org>
29358
29359         New module mbslen.
29360         * modules/mbslen: New file.
29361         * lib/mbslen.c: New file.
29362         * lib/string_.h (mbslen): New declaration.
29363         * m4/mbslen.m4: New file.
29364         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29365         GNULIB_MBSLEN.
29366         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
29367         * MODULES.html.sh (Internationalization functions): Add mbslen.
29368
29369 2007-02-11  Bruno Haible  <bruno@clisp.org>
29370
29371         Ensure O(n) worst-case complexity of strcasestr substitute.
29372         * lib/strcasestr.c: Include stdbool.h.
29373         (knuth_morris_pratt): New function.
29374         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
29375         bookkeeping indicates that it's worth it.
29376         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
29377
29378         * modules/strcasestr-tests: New file.
29379         * tests/test-strcasestr.c: New file.
29380
29381 2007-02-11  Bruno Haible  <bruno@clisp.org>
29382
29383         Ensure O(n) worst-case complexity of c_strcasestr.
29384         * lib/c-strcasestr.c: Include stdbool.h, string.h.
29385         (knuth_morris_pratt): New function.
29386         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
29387         the bookkeeping indicates that it's worth it.
29388         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
29389
29390         * modules/c-strcasestr-tests: New file.
29391         * tests/test-c-strcasestr.c: New file.
29392
29393 2007-02-11  Bruno Haible  <bruno@clisp.org>
29394
29395         Ensure O(n) worst-case complexity of c_strstr.
29396         * lib/c-strstr.c: Include stdbool.h, string.h.
29397         (knuth_morris_pratt): New function.
29398         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
29399         bookkeeping indicates that it's worth it.
29400         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
29401
29402         * lib/c-strstr.c: Complete rewrite for maintainability.
29403
29404         * modules/c-strstr-tests: New file.
29405         * tests/test-c-strstr.c: New file.
29406
29407 2007-02-11  Bruno Haible  <bruno@clisp.org>
29408
29409         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
29410         5.2.1 and earlier, whereby \055 was treated just like the range
29411         delimiter '-'.
29412         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29413
29414 2007-02-08  Bruno Haible  <bruno@clisp.org>
29415
29416         * modules/regex (Depends-on): Add stdbool.
29417         Reported by Dalibor Topic <robilad@kaffe.org>.
29418
29419 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
29420
29421         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
29422         Prefer returning from main to exiting from it.
29423         Remove unnecessary parens after sizeof.
29424
29425 2007-02-05  Bruno Haible  <bruno@clisp.org>
29426
29427         New module mbssep.
29428         * modules/mbssep: New file.
29429         * lib/mbssep.c: New file.
29430         * lib/string_.h (strsep): Add a conditional link warning.
29431         (mbssep): New declaration.
29432         * m4/mbssep.m4: New file.
29433         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29434         GNULIB_MBSSEP.
29435         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
29436         * MODULES.html.sh (Internationalization functions): Add mbssep.
29437
29438 2007-02-05  Bruno Haible  <bruno@clisp.org>
29439
29440         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
29441         Optimize search in case of 1 delimiter.
29442
29443 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
29444
29445         * lib/acl.h: Include sys/types.h before sys/acl.h.
29446
29447 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
29448
29449         Merge upstream fix for glibc bugzilla #3957:
29450
29451         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
29452
29453         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
29454         bit for RE_HAT_LISTS_NOT_NEWLINE.
29455         (build_charclass_op): Remove bogus comment.
29456
29457 2007-02-05  Simon Josefsson  <simon@josefsson.org>
29458
29459         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
29460
29461 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
29462
29463         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
29464         * lib/memmem.c [!defined _LIBC]: Include config.h.
29465
29466 2007-02-04  Bruno Haible  <bruno@clisp.org>
29467
29468         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
29469         warning message.
29470
29471 2007-02-04  Bruno Haible  <bruno@clisp.org>
29472
29473         New module mbstok_r.
29474         * modules/mbstok_r: New file.
29475         * lib/mbstok_r.c: New file.
29476         * lib/string_.h (strtok_r): Change argument names to match the
29477         comments. Add a conditional link warning.
29478         (mbstok_r): New declaration.
29479         * m4/mbstok_r.m4: New file.
29480         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29481         GNULIB_MBSTOK_R.
29482         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
29483         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
29484
29485 2007-02-04  Bruno Haible  <bruno@clisp.org>
29486
29487         New module mbsspn.
29488         * modules/mbsspn: New file.
29489         * lib/mbsspn.c: New file.
29490         * lib/string_.h (strspn): Add a conditional link warning.
29491         (mbsspn): New declaration.
29492         * m4/mbsspn.m4: New file.
29493         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29494         GNULIB_MBSSPN.
29495         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
29496         * MODULES.html.sh (Internationalization functions): Add mbsspn.
29497
29498 2007-02-04  Bruno Haible  <bruno@clisp.org>
29499
29500         New module mbspbrk.
29501         * modules/mbspbrk: New file.
29502         * lib/mbspbrk.c: New file.
29503         * lib/string_.h (strpbrk): Add a conditional link warning.
29504         (mbspbrk): New declaration.
29505         * m4/mbspbrk.m4: New file.
29506         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29507         GNULIB_MBSPBRK.
29508         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
29509         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
29510
29511 2007-02-04  Bruno Haible  <bruno@clisp.org>
29512
29513         New module mbscspn.
29514         * modules/mbscspn: New file.
29515         * lib/mbscspn.c: New file.
29516         * lib/string_.h (strcspn): Add a conditional link warning.
29517         (mbscspn): New declaration.
29518         * m4/mbscspn.m4: New file.
29519         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29520         GNULIB_MBSCSPN.
29521         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
29522         * MODULES.html.sh (Internationalization functions): Add mbscspn.
29523
29524 2007-02-04  Bruno Haible  <bruno@clisp.org>
29525
29526         New module mbscasestr, reduced goal of strcasestr.
29527         * modules/mbscasestr: New file.
29528         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
29529         (mbscasestr): Renamed from strcasestr.
29530         * lib/strcasestr.c: Don't include mbuiter.h.
29531         (strcasestr): Remove support for multibyte locales.
29532         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
29533         Change the conditional link warning.
29534         (mbscasestr): New declaration.
29535         * m4/mbscasestr.m4: New file.
29536         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
29537         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
29538         REPLACE_STRCASESTR.
29539         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
29540         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29541         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
29542         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
29543         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
29544         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
29545         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
29546         (Depends-on): Remove mbuiter.
29547         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
29548
29549 2007-02-04  Bruno Haible  <bruno@clisp.org>
29550
29551         Simplify handling of strncasecmp.
29552         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
29553         the conditional link warning.
29554         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29555         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
29556         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
29557         * modules/strcase (configure.ac): Don't invoke
29558         gl_STRING_MODULE_INDICATOR.
29559         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
29560
29561 2007-02-04  Bruno Haible  <bruno@clisp.org>
29562
29563         New module mbscasecmp, reduced goal of strcasecmp.
29564         * modules/mbscasecmp: New file.
29565         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
29566         (mbscasecmp): Renamed from strcasecmp.
29567         * lib/strcasecmp.c: Don't include mbuiter.h.
29568         (strcasecmp): Remove support for multibyte locales.
29569         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
29570         Change the conditional link warning.
29571         (mbscasecmp): New declaration.
29572         * m4/mbscasecmp.m4: New file.
29573         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
29574         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
29575         REPLACE_STRCASECMP.
29576         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
29577         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29578         GNULIB_MBSCASECMP.
29579         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
29580         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
29581         * modules/strcase (Files): Remove m4/mbrtowc.m4.
29582         (Depends-on): Remove mbuiter.
29583         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
29584
29585 2007-02-04  Bruno Haible  <bruno@clisp.org>
29586
29587         New module mbsstr. Remove module strstr.
29588         * modules/mbsstr: New file.
29589         * modules/strstr: Remove file.
29590         * lib/mbsstr.c: Renamed from lib/strstr.c.
29591         (mbsstr): Renamed from strstr.
29592         * lib/string_.h (strstr): Remove declaration. Change the conditional
29593         link warning.
29594         (mbsstr): New declaration.
29595         * m4/mbsstr.m4: New file.
29596         * m4/strstr.m4: Remove file.
29597         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29598         REPLACE_STRSTR.
29599         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
29600         Don't initialize GNULIB_STRSTR.
29601         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
29602         substitute GNULIB_STRSTR and REPLACE_STRSTR.
29603         * MODULES.html.sh (Internationalization functions): Add mbsstr.
29604         (Support for systems lacking ANSI C 89): Remove strstr.
29605
29606 2007-02-04  Bruno Haible  <bruno@clisp.org>
29607
29608         New module mbsrchr.
29609         * modules/mbsrchr: New file.
29610         * lib/mbsrchr.c: New file.
29611         * lib/string_.h (strrchr): Add a conditional link warning.
29612         (mbsrchr): New declaration.
29613         * m4/mbsrchr.m4: New file.
29614         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29615         GNULIB_MBSRCHR.
29616         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
29617         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
29618
29619 2007-02-04  Bruno Haible  <bruno@clisp.org>
29620
29621         New module mbschr.
29622         * modules/mbschr: New file.
29623         * lib/mbschr.c: New file.
29624         * lib/string_.h (strchr): Add a conditional link warning.
29625         (mbschr): New declaration.
29626         * m4/mbschr.m4: New file.
29627         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29628         GNULIB_MBSCHR.
29629         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
29630         * MODULES.html.sh (Internationalization functions): Add mbschr.
29631
29632 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
29633
29634         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
29635
29636         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
29637
29638 2007-02-04  Bruno Haible  <bruno@clisp.org>
29639
29640         New module description section 'configure.ac-early'.
29641         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
29642         (func_get_autoconf_early_snippet): New function.
29643         (func_import, func_create_testdir): Use it. Remove special cases for
29644         modules 'extensions' and 'lock'.
29645         * modules/extensions (configure.ac-early): Require
29646         gl_USE_SYSTEM_EXTENSIONS.
29647         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
29648
29649 2007-02-04  Bruno Haible  <bruno@clisp.org>
29650
29651         Make use of gcj-4.3's -fsource and -ftarget option.
29652         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
29653         and if so try the options -fsource and -ftarget.
29654         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
29655         source_version, ftarget_option, target_version arguments.
29656         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
29657         (is_envjavac_oldgcj_14_14_usable): Renamed from
29658         is_envjavac_gcj_14_14_usable.
29659         (is_envjavac_oldgcj_14_13_usable): Renamed from
29660         is_envjavac_gcj_14_13_usable.
29661         (is_gcj_present): Update.
29662         (is_gcj_43, is_gcj43_usable): New functions.
29663         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
29664         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
29665         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
29666         try the options -fsource and -ftarget.
29667
29668 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
29669
29670         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
29671         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
29672         larger value.
29673
29674 2007-02-03  Jim Meyering  <jim@meyering.net>
29675
29676         Give tools a better chance to allocate space for very large buffers.
29677         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
29678
29679         Make pwd and readlink work also when run with an unreadable parent dir
29680         on systems with openat support.
29681         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
29682         provided getcwd function, even when we have openat support.
29683         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
29684
29685 2007-02-02  Bruno Haible  <bruno@clisp.org>
29686
29687         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
29688         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
29689         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
29690         portability problems if one of these functions is only used on specific
29691         platforms.
29692         Reported by Paul Eggert.
29693
29694 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
29695
29696         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
29697         is causing more trouble than it's curing.
29698         * lib/regex_internal.h (__mempcpy): Remove.
29699         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
29700         (and make the code a tad smaller to boot).
29701         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
29702
29703 2007-02-02  Jim Meyering  <jim@meyering.net>
29704
29705         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
29706         section, not in the Makefile.am: one.
29707
29708 2007-02-02  Eric Blake  <ebb9@byu.net>
29709
29710         * lib/strchrnul.c: Always include config.h first.
29711
29712         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
29713         gnulib strstr is not necessary here.
29714
29715 2007-02-02  Simon Josefsson  <simon@josefsson.org>
29716
29717         * m4/socklen.m4: Fix typo.
29718
29719 2007-02-02  Eric Blake  <ebb9@byu.net>
29720
29721         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
29722         * modules/netinet_in (Makefile.am): Likewise.
29723
29724 2007-02-01  Bruno Haible  <bruno@clisp.org>
29725
29726         * lib/string_.h (GL_LINK_WARNING): New macro.
29727         (strcasecmp, strstr, strcasestr): If provided by the system,
29728         conditionally define as a macro that leads to a warning instead of to
29729         an error.
29730         (strncasecmp): Conditionally define as a macro that leads to a warning.
29731
29732 2007-02-01  Karl Berry  <karl@gnu.org>
29733
29734         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
29735
29736 2007-02-01  Bruno Haible  <bruno@clisp.org>
29737
29738         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
29739         renamings.
29740
29741 2007-02-01  Eric Blake  <ebb9@byu.net>
29742
29743         * modules/regex (Depends-on): Revert dependence on mempcpy.
29744         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
29745         module's definition of mempcpy.
29746         Reported by Paul Eggert.
29747
29748 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
29749
29750         * lib/string_.h: If the gnulib module XYZ is not present, undefine
29751         the symbol XYZ before redefining it.  This fixes a problem with
29752         programs that don't use XYZ, when compiled on systems that define
29753         XYZ to something else.
29754
29755 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
29756
29757         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
29758         occurs when "mkdir -m foo" creates a setgid directory that is (1)
29759         writeable to group or other and (2) is intended to have a special
29760         mode bit that is set or cleared.  In such a case, the directory
29761         should be neither group- nor other-writeable until the special
29762         mode bits are right.
29763
29764 2007-01-31  Eric Blake  <ebb9@byu.net>
29765
29766         * modules/mountlist (Depends-on): Add strstr.
29767
29768         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
29769         bug.
29770         * modules/string (Makefile.am): Remove redundant replacement.
29771         * modules/regex (Depends-on): Add mempcpy.
29772
29773 2007-01-31  Bruno Haible  <bruno@clisp.org>
29774
29775         New module description field 'Link'.
29776         * gnulib-tool (func_usage): Document --extract-link-directive.
29777         (sed_extract_prog): Recognize 'Link' directive.
29778         (func_get_link_directive): New function.
29779         (func_import): Show summary of link directives.
29780         Handle --extract-link-directive option.
29781         * modules/acl (Link): New section.
29782         * modules/clock-time (Link): New section.
29783         * modules/euidaccess (Link): New section.
29784         * modules/gettext (Link): New section.
29785         * modules/iconv (Link): New section.
29786         * modules/lock (Link): New section.
29787         * modules/nanosleep (Link): New section.
29788         * modules/readline (Link): New section.
29789
29790 2007-01-27  Bruno Haible  <bruno@clisp.org>
29791
29792         Enforce the use of gnulib modules for unportable <string.h> functions.
29793         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
29794         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
29795         (gl_HEADER_STRING_H_BODY): Require it.
29796         * lib/string_.h: If the gnulib module XYZ is not present, redefine
29797         the symbol XYZ to one that gives a link error.
29798         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
29799         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
29800         * modules/mempcpy (configure.ac): Likewise.
29801         * modules/memrchr (configure.ac): Likewise.
29802         * modules/stpcpy (configure.ac): Likewise.
29803         * modules/stpncpy (configure.ac): Likewise.
29804         * modules/strcase (configure.ac): Likewise.
29805         * modules/strcasestr (configure.ac): Likewise.
29806         * modules/strchrnul (configure.ac): Likewise.
29807         * modules/strdup (configure.ac): Likewise.
29808         * modules/strndup (configure.ac): Likewise.
29809         * modules/strnlen (configure.ac): Likewise.
29810         * modules/strpbrk (configure.ac): Likewise.
29811         * modules/strsep (configure.ac): Likewise.
29812         * modules/strstr (configure.ac): Likewise.
29813         * modules/strtok_r (configure.ac): Likewise.
29814
29815 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
29816
29817         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
29818
29819 2007-01-30  Jim Meyering  <jim@meyering.net>
29820
29821         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
29822
29823 2007-01-29  Bruno Haible  <bruno@clisp.org>
29824
29825         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
29826         * lib/execute.c: Likewise.
29827         * lib/pipe.c: Likewise.
29828         * lib/printf-args.h: Likewise.
29829         * lib/printf-args.c: Likewise.
29830         * lib/printf-parse.c: Likewise.
29831         * lib/vasnprintf.c: Likewise.
29832
29833 2007-01-29  Eric Blake  <ebb9@byu.net>
29834
29835         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
29836         declaration.
29837
29838 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
29839
29840         * lib/strptime.h (strptime): Use 'restrict' for args where
29841         POSIX requires this.
29842         * lib/strptime.c (strptime): Likewise.
29843         Change license notice from LGPL to GPL, since gnulib-tool will
29844         change this as needed.
29845         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
29846         defined.
29847         Include "strptime.h" first, to check interface.
29848         Do not #undef _LIBC and _NL_CURRENT.
29849         Do not include <stdlib.h>; no longer needed.
29850         Include "time_r.h" and declare ptime_locale_status
29851         only if _LIBC is not defined.
29852         (__P): Remove unused macro.
29853         (match_string): Bring back glibc version, but use it only if _LIBC
29854         is defined.
29855         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
29856         Remove unnecessary assertion and abort() call.
29857         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
29858         * m4/strptime.m4: Fix serial number comment.
29859         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
29860         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
29861         (Depends-on): Add time_r.
29862
29863 2007-01-29  Bruno Haible  <bruno@clisp.org>
29864
29865         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29866         strptime.
29867         * modules/strptime (Depends-on): Add stdbool.
29868         * lib/strptime.h: Include <time.h> always. Add comments.
29869
29870 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29871
29872         * modules/strptime: New file.
29873         * lib/strptime.h: New file.
29874         * lib/strptime.c: New file.
29875         * m4/strptime.m4: New file.
29876
29877 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
29878
29879         * MODULES.html.sh: New module mpsort.
29880         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
29881
29882         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
29883         a circularity problem with HP-UX ia64 reported by Bob Proulx in
29884         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
29885         All uses changed.
29886         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
29887         All uses changed.
29888         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
29889         to _Restrict_.
29890         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
29891         the parameter matches the prototype.
29892
29893 2007-01-28  Jim Meyering  <jim@meyering.net>
29894
29895         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
29896         sys/time.h here, reverting that part of the previous patch:
29897         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
29898
29899 2007-01-28  Bruno Haible  <bruno@clisp.org>
29900
29901         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
29902         value of $(SYS_TIME_H).
29903         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
29904         remove it conditionally, too. [added by Jim Meyering]
29905         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
29906         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
29907         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
29908         GETTIMEOFDAY_REPLACEMENT to 1.
29909
29910 2007-01-28  Bruno Haible  <bruno@clisp.org>
29911
29912         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
29913         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
29914         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
29915         Set UNISTD_H instead of UNISTD_H2.
29916         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
29917
29918 2007-01-28  Bruno Haible  <bruno@clisp.org>
29919
29920         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
29921         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
29922
29923 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29924
29925         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
29926         (func_create_testdir): Ensure C locale for `grep' and `tr'
29927         character ranges.
29928         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
29929         ACLOCAL_AMFLAGS parsing state machine.
29930
29931 2007-01-27  Bruno Haible  <bruno@clisp.org>
29932
29933         * modules/unistr/base: Update.
29934
29935 2007-01-27  Bruno Haible  <bruno@clisp.org>
29936
29937         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
29938         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
29939         * modules/unistr/u32-mbtouc-unsafe: Renamed from
29940         modules/unistr/u32-mbtouc.
29941         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
29942         * lib/unistr.h: Update.
29943         * lib/linebreak.c: Update.
29944         * modules/unistr/u32-mbtouc: Renamed from
29945         modules/unistr/u32-mbtouc-safe.
29946         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
29947         * lib/unistr.h: Update.
29948         * lib/unistr/u32-to-u8.c: Update.
29949         * lib/unistr/u32-to-u16.c: Update.
29950
29951 2007-01-27  Bruno Haible  <bruno@clisp.org>
29952
29953         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
29954         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
29955         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
29956         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
29957         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
29958         * modules/unistr/u16-mbtouc-unsafe: Renamed from
29959         modules/unistr/u16-mbtouc.
29960         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
29961         * lib/unistr.h: Update.
29962         * lib/linebreak.c: Update.
29963         * modules/linebreak: Update.
29964         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
29965         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
29966         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
29967         * modules/unistr/u16-mbtouc: Renamed from
29968         modules/unistr/u16-mbtouc-safe.
29969         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
29970         * lib/unistr.h: Update.
29971         * lib/unistr/u16-to-u8.c: Update.
29972         * modules/unistr/u16-to-u8: Update.
29973         * lib/unistr/u16-to-u32.c: Update.
29974         * modules/unistr/u16-to-u32: Update.
29975
29976 2007-01-27  Bruno Haible  <bruno@clisp.org>
29977
29978         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
29979         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
29980         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
29981         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
29982         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
29983         * modules/unistr/u8-mbtouc-unsafe: Renamed from
29984         modules/unistr/u8-mbtouc.
29985         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
29986         * lib/unistr.h: Update.
29987         * lib/striconveh.c: Update.
29988         * modules/striconveh: Update.
29989         * lib/linebreak.c: Update.
29990         * modules/linebreak: Update.
29991         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
29992         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
29993         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
29994         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
29995         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
29996         * lib/unistr.h: Update.
29997         * lib/striconveh.c: Update.
29998         * modules/striconveh: Update.
29999         * lib/unistr/u8-to-u16.c: Update.
30000         * modules/unistr/u8-to-u16: Update.
30001         * lib/unistr/u8-to-u32.c: Update.
30002         * modules/unistr/u8-to-u32: Update.
30003
30004 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30005
30006         Sync from Libtool.
30007         * lib/argz.c: Do not include strings.h nor memory.h, include
30008         string.h unconditionally.  Patch by Simon Josefsson.
30009
30010 2007-01-27  Bruno Haible  <bruno@clisp.org>
30011
30012         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
30013         from gl_HEADER_STRING_H_BODY.
30014         (gl_HEADER_STRING_H_BODY): Require it.
30015         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
30016         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
30017         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
30018         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
30019         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30020         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
30021         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30022         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
30023         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
30024         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30025         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
30026         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
30027         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
30028         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30029         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
30030
30031 2007-01-27  Bruno Haible  <bruno@clisp.org>
30032
30033         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
30034         check_PROGRAMS into noinst_PROGRAMS.
30035         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
30036         check_PROGRAMS in this case.
30037         (func_import): Set for_test to false.
30038         (func_create_testdir): Set for_test to true.
30039
30040 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
30041             Bruno Haible  <bruno@clisp.org>
30042
30043         * modules/strcasestr (Files): Remove lib/strcasestr.h.
30044         (Depends-on): Add string.
30045         (Includes): Use <string.h> instead of strcasestr.h.
30046         * modules/string (Makefile.am): Also substitute the value of
30047         REPLACE_STRCASESTR.
30048         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
30049         assume strcasestr is declared in <string.h> not <strings.h>. Also
30050         set REPLACE_STRCASESTR.
30051         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
30052         REPLACE_STRCASESTR.
30053         * lib/strcasestr.h: Remove file.
30054         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
30055         * lib/string_.h (strcasestr): New declaration.
30056
30057 2007-01-27  Bruno Haible  <bruno@clisp.org>
30058
30059         * lib/string_.h: Use 'extern'.
30060
30061 2007-01-27  Jim Meyering  <jim@meyering.net>
30062
30063         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
30064         of set-but-not-used local, "q".
30065
30066         * lib/mempcpy.c: Include <config.h> before <string.h>.
30067         This fixes a compilation error on HP-UX, due to the system's
30068         "restrict"-using mempcpy prototype.
30069
30070 2007-01-26  Bruno Haible  <bruno@clisp.org>
30071
30072         Small optimization.
30073         * lib/javacomp.c: Include c-strstr.h.
30074          (is_envjavac_gcj): Use c_strstr instead of strstr.
30075         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
30076
30077 2007-01-26  Bruno Haible  <bruno@clisp.org>
30078
30079         * MODULES.html.sh (Unicode string functions): Add the new modules.
30080
30081         * modules/uniconv/u32-strconv-to-locale: New file.
30082         * lib/uniconv/u32-strconv-to-locale.c: New file.
30083
30084         * modules/uniconv/u16-strconv-to-locale: New file.
30085         * lib/uniconv/u16-strconv-to-locale.c: New file.
30086
30087         * modules/uniconv/u8-strconv-to-locale: New file.
30088         * lib/uniconv/u8-strconv-to-locale.c: New file.
30089
30090         * modules/uniconv/u32-strconv-from-locale: New file.
30091         * lib/uniconv/u32-strconv-from-locale.c: New file.
30092
30093         * modules/uniconv/u16-strconv-from-locale: New file.
30094         * lib/uniconv/u16-strconv-from-locale.c: New file.
30095
30096         * modules/uniconv/u8-strconv-from-locale: New file.
30097         * lib/uniconv/u8-strconv-from-locale.c: New file.
30098
30099         * modules/uniconv/u32-strconv-to-enc: New file.
30100         * lib/uniconv/u32-strconv-to-enc.c: New file.
30101         * modules/uniconv/u32-strconv-to-enc-tests: New file.
30102         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
30103
30104         * modules/uniconv/u16-strconv-to-enc: New file.
30105         * lib/uniconv/u16-strconv-to-enc.c: New file.
30106         * lib/uniconv/u-strconv-to-enc.h: New file.
30107         * modules/uniconv/u16-strconv-to-enc-tests: New file.
30108         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
30109
30110         * modules/uniconv/u8-strconv-to-enc: New file.
30111         * lib/uniconv/u8-strconv-to-enc.c: New file.
30112         * modules/uniconv/u8-strconv-to-enc-tests: New file.
30113         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
30114
30115         * modules/uniconv/u32-strconv-from-enc: New file.
30116         * lib/uniconv/u32-strconv-from-enc.c: New file.
30117         * modules/uniconv/u32-strconv-from-enc-tests: New file.
30118         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
30119
30120         * modules/uniconv/u16-strconv-from-enc: New file.
30121         * lib/uniconv/u16-strconv-from-enc.c: New file.
30122         * modules/uniconv/u16-strconv-from-enc-tests: New file.
30123         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
30124
30125         * modules/uniconv/u8-strconv-from-enc: New file.
30126         * lib/uniconv/u8-strconv-from-enc.c: New file.
30127         * lib/uniconv/u-strconv-from-enc.h: New file.
30128         * modules/uniconv/u8-strconv-from-enc-tests: New file.
30129         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
30130
30131         * modules/uniconv/u32-conv-from-enc: New file.
30132         * lib/uniconv/u32-conv-from-enc.c: New file.
30133         * modules/uniconv/u32-conv-from-enc-tests: New file.
30134         * tests/uniconv/test-u32-conv-from-enc.c: New file.
30135
30136         * modules/uniconv/u16-conv-from-enc: New file.
30137         * lib/uniconv/u16-conv-from-enc.c: New file.
30138         * lib/uniconv/u-conv-from-enc.h: New file.
30139         * modules/uniconv/u16-conv-from-enc-tests: New file.
30140         * tests/uniconv/test-u16-conv-from-enc.c: New file.
30141
30142         * modules/uniconv/u8-conv-from-enc: New file.
30143         * lib/uniconv/u8-conv-from-enc.c: New file.
30144         * modules/uniconv/u8-conv-from-enc-tests: New file.
30145         * tests/uniconv/test-u8-conv-from-enc.c: New file.
30146
30147         * modules/uniconv/base: New file.
30148         * lib/uniconv.h: New file.
30149
30150 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
30151
30152         * doc/gnulib-tool.texi (Initial import): Update to match current
30153         behavior with strdup module.
30154         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
30155         * lib/memmem.h: Remove; all uses removed.  This is now done
30156         by <string.h>.
30157         * lib/mempcpy.h: Likewise.
30158         * lib/memrchr.h: Likewise.
30159         * lib/stpcpy.h: Likewise.
30160         * lib/stpncpy.h: Likewise.
30161         * lib/strcase.h: Likewise.
30162         * lib/strchrnul.h: Likewise.
30163         * lib/strdup.h: Likewise.
30164         * lib/strndup.h: Likewise.
30165         * lib/strnlen.h: Likewise.
30166         * lib/strpbrk.h: Likewise.
30167         * lib/strsep.h: Likewise.
30168         * lib/strstr.h: Likewise.
30169         * lib/strtok_r.h: Likewise.
30170         * lib/string_.h: New file.
30171         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
30172         Rely on <string.h> instead.
30173         * lib/canon-host.c: Likewise.
30174         * lib/chdir-long.c: Likewise.
30175         * lib/concatpath.c: Likewise.
30176         * lib/exclude.c: Likewise.
30177         * lib/fchdir.c: Likewise.
30178         * lib/getaddrinfo.c: Likewise.
30179         * lib/getcwd.c: Likewise.
30180         * lib/getsubopt.c: Likewise.
30181         * lib/glob.c: Likewise.
30182         * lib/hard-locale.c: Likewise.
30183         * lib/iconvme.c: Likewise.
30184         * lib/javacomp.c: Likewise.
30185         * lib/mempcpy.c: Likewise.
30186         * lib/memrchr.c: Likewise.
30187         * lib/regex_internal.h: Likewise.
30188         * lib/stpncpy.c: Likewise.
30189         * lib/strcasecmp.c: Likewise.
30190         * lib/strchrnul.c: Likewise.
30191         * lib/strdup.c: Likewise.
30192         * lib/striconv.c: Likewise.
30193         * lib/striconveh.c: Likewise.
30194         * lib/striconveha.c: Likewise.
30195         * lib/strncasecmp.c: Likewise.
30196         * lib/strndup.c: Likewise.
30197         * lib/strnlen.c: Likewise.
30198         * lib/strsep.c: Likewise.
30199         * lib/strstr.c: Likewise.
30200         * lib/strtok_r.c: Likewise.
30201         * lib/userspec.c: Likewise.
30202         * lib/w32spawn.h: Likewise.
30203         * lib/xstrndup.c: Likewise.
30204         * lib/mountlist.c (strstr): Remove decl.
30205         * m4/string_h.m4: New file.
30206         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
30207         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
30208         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
30209         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
30210         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
30211         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
30212         Set REPLACE_STRCASECMP if necessary.
30213         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
30214         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
30215         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
30216         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
30217         HAVE_DECL_STRDUP if necessary.
30218         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
30219         since gl_FUNC_STRNDUP does that now.
30220         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
30221         Check for decl here...
30222         (gl_PREREQ_STRNLEN): ... not here.
30223         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
30224         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
30225         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
30226         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
30227         necessary.
30228         * modules/string: New file.
30229         * modules/memmem (Files): Remove special-purpose include file.
30230         (Depends-on): Add string.
30231         (Include): Include <string.h>, not the removed file.
30232         * modules/mempcpy: Likewise.
30233         * modules/memrchr: Likewise.
30234         * modules/stpcpy: Likewise.
30235         * modules/stpncpy: Likewise.
30236         * modules/strcase: Likewise.
30237         * modules/strchrnul: Likewise.
30238         * modules/strdup: Likewise.
30239         * modules/strndup: Likewise.
30240         * modules/strnlen: Likewise.
30241         * modules/strpbrk: Likewise.
30242         * modules/strsep: Likewise.
30243         * modules/strstr: Likewise.
30244         * modules/strtok_r: Likewise.
30245         * tests/test-dirname.c: Don't include "strdup.h", since
30246         <string.h> now suffices.
30247         * tests/test-memmem.c: Don't include "memmem.h", since
30248         <string.h> now suffices.
30249
30250 2007-01-25  Bruno Haible  <bruno@clisp.org>
30251
30252         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
30253         *resultp is 0.
30254
30255         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
30256         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
30257         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
30258         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
30259
30260         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
30261         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
30262         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
30263         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
30264         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
30265         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
30266
30267 2007-01-24  Bruno Haible  <bruno@clisp.org>
30268
30269         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
30270         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
30271         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
30272         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
30273         gl_FUNC_FTS_CORE.
30274         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
30275         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
30276         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30277         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
30278         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
30279         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
30280         gl_FUNC_FCHOWNAT.
30281         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
30282         gl_FUNC_STRFTIME.
30283         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
30284         Reported by Ralf Wildenhues.
30285
30286 2007-01-24  Bruno Haible  <bruno@clisp.org>
30287
30288         Drop AC_REQUIRE calls that are redundant with the module dependencies.
30289         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
30290         gl_GETADDRINFO.
30291         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
30292         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
30293         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
30294
30295 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
30296
30297         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
30298         Don't use 'exit'; just return from 'main'.
30299         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
30300
30301         * lib/fnmatch_.h: Readjust white space and comments to match
30302         glibc, to avoid spurious diffs.
30303
30304 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
30305
30306         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
30307         2004-12-01 change by Jakub Jelinek, since this code won't compile
30308         if !LIBC.  Problem reported by Bob Proulx.
30309
30310 2007-01-23  Bruno Haible  <bruno@clisp.org>
30311
30312         * lib/striconveh.c: Include c-strcaseeq.h.
30313         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
30314         * modules/striconveh (Depends-on): Add c-strcaseeq.
30315
30316 2007-01-23  Bruno Haible  <bruno@clisp.org>
30317
30318         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
30319
30320         * modules/c-strcaseeq: New file.
30321         * lib/c-strcaseeq.h: New file.
30322
30323         * modules/streq: New file.
30324         * lib/streq.h: New file.
30325
30326 2007-01-23  Bruno Haible  <bruno@clisp.org>
30327
30328         * modules/striconveha-tests: New file.
30329         * tests/test-striconveha.c: New file.
30330
30331         * lib/striconveha.h: Include <stdbool.h>.
30332         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
30333         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
30334         (mem_iconveha_notranslit): Renamed from mem_iconveha.
30335         (mem_iconveha): New function.
30336         (str_iconveha_notranslit): Renamed from str_iconveha.
30337         (str_iconveha): New function.
30338         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
30339         c-strcase.
30340
30341 2007-01-23  Bruno Haible  <bruno@clisp.org>
30342
30343         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
30344         encodings without forgiving before trying any encoding with handler.
30345         (str_iconveha): Try all encodings without forgiving before trying any
30346         encoding with handler.
30347
30348 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
30349
30350         Import the following changes from libc.
30351
30352         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
30353
30354         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
30355
30356         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
30357
30358         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
30359         normal_bracket label.
30360
30361         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
30362
30363         [BZ #361]
30364         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
30365         to normal_bracket after fetching the next character.
30366
30367 2007-01-22  Bruno Haible  <bruno@clisp.org>
30368
30369         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
30370         argument.
30371         * lib/striconveh.c (iconv_carefully_1): New function.
30372         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
30373         argument.
30374         (str_cd_iconveh): Update.
30375         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
30376         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
30377         * tests/test-striconveh.c (MAGIC): New macro.
30378         (new_offsets): New function.
30379         (main): Test call with and without offsets.
30380
30381 2007-01-22  Bruno Haible  <bruno@clisp.org>
30382
30383         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
30384         * modules/sys_select (Makefile.am): Likewise.
30385         * modules/sys_socket (Makefile.am): Likewise.
30386         * modules/sys_time (Makefile.am): Likewise.
30387
30388 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
30389
30390         * modules/gettimeofday (License): Change from GPL to LGPL, since
30391         gettimeofday is a library function.
30392
30393 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30394
30395         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
30396
30397 2007-01-21  Bruno Haible  <bruno@clisp.org>
30398
30399         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
30400
30401 2007-01-21  Bruno Haible  <bruno@clisp.org>
30402
30403         * modules/striconveha: New file.
30404         * lib/striconveha.h: New file.
30405         * lib/striconveha.c: New file.
30406         * MODULES.html.sh (Internationalization functions): Add striconveha.
30407         * lib/striconv.c (str_iconv): Optimize the case of an empty input
30408         string.
30409         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
30410
30411 2007-01-21  Bruno Haible  <bruno@clisp.org>
30412
30413         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
30414         * lib/striconveh.c (str_iconveh): Likewise.
30415
30416 2007-01-21  Bruno Haible  <bruno@clisp.org>
30417
30418         * lib/striconveh.h (mem_iconveh): New declaration.
30419         * lib/striconveh.c (mem_iconveh): New function.
30420         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
30421
30422 2007-01-21  Bruno Haible  <bruno@clisp.org>
30423
30424         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
30425
30426         * lib/striconveh.h (mem_cd_iconveh): Change specification.
30427         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
30428         original result buffer.
30429         (str_cd_iconveh): Update.
30430         * tests/test-striconveh.c (main): Update.
30431
30432         * lib/striconv.h (mem_cd_iconv): Change specification.
30433         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
30434         result buffer.
30435         (str_cd_iconv): Update.
30436         * tests/test-striconv.c (main): Update.
30437
30438 2007-01-21  Bruno Haible  <bruno@clisp.org>
30439
30440         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
30441
30442 2007-01-20  Jim Meyering  <jim@meyering.net>
30443
30444         * lib/userspec.c (parse_with_separator): If a user or group string
30445         starts with "+", skip the corresponding name-to-ID look-up, since
30446         such a look-up must fail: user and group names may not include "+".
30447
30448 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
30449
30450         * lib/poll.c: Include sys/time.h and time.h unconditionally,
30451         since we now assume the sys_time module.
30452         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
30453         check for sys/time.h; no longer needed.
30454         * modules/poll (Depends-on): Depend on sys_time.
30455
30456 2007-01-18  Bruno Haible  <bruno@clisp.org>
30457
30458         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
30459         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
30460
30461         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
30462         gettimeofday.
30463
30464         * tests/test-gettimeofday.c: Include <time.h>.
30465         (dummy): Remove variable.
30466
30467         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
30468         gl_HEADER_SYS_TIME_H.
30469         (gl_HEADER_SYS_TIME_H): New macro.
30470
30471         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
30472         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30473         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
30474         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
30475         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30476         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
30477         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
30478         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30479         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
30480         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
30481         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30482
30483         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
30484         last change; it caused a compilation error when cross-compiling to
30485         Cygwin.
30486
30487 2007-01-18  Jim Meyering  <jim@meyering.net>
30488
30489         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
30490         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
30491         than the race-prone "test -d sys || mkdir sys".
30492         (configure.ac): Use AC_PROG_MKDIR_P.
30493         * modules/sys_select: Likewise.
30494         * modules/sys_socket: Likewise.
30495         * modules/sys_time: Likewise.
30496
30497 2007-01-18  Eric Blake  <ebb9@byu.net>
30498
30499         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
30500         replace gettimeofday.
30501         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
30502         name, to avoid infinite recursion.
30503
30504 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
30505
30506         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
30507         module sys_time.
30508         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
30509         assume timespec.h defines struct timeval.
30510         * lib/settime.c: Likewise.
30511         * lib/utimens.c: Likewise.
30512         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
30513         since we now assume the gettimeofday module.
30514         * lib/tempname.c (__gen_tempname): Likewise.
30515         * lib/gettimeofday.h: Remove.
30516         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
30517         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
30518         Include <time.h>, for 'time()'.
30519         (localtime_buffer_addr): Also use this workaround if
30520         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
30521         to simplify the uses.  All uses changed.
30522         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
30523         that #undef is inside {}, and 'const' follows type name consistently.
30524         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
30525         (gettimeofday): Do not use the maximum possible value for
30526         tv->tv_usec, since that might break usages other than ls.c.
30527         Instead, we'll leave ls.c alone.  This undoes today's patch
30528         by Bruno.  Add a compile-time warning for 1s-clock resolution;
30529         we've never observed the problem but might as well keep the
30530         canary.
30531         * lib/nanosleep.c: Include timespec.h first, for interface check.
30532         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
30533         now assume the sys_time module.
30534         * lib/tempname.c: Likewise.
30535         * lib/timespec.h: Likewise.
30536         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
30537         needed.
30538         * lib/strftime.c: Likewise.
30539         * lib/timespec.h: Likewise.
30540         * lib/posixtm.c: Include posixtm.h first, for interface check.
30541         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
30542         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
30543         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
30544         * lib/sys_time_.h: New file.
30545         * lib/timespec.h (struct timespec): Use long int, not long.
30546         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
30547         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
30548         Remove obsolescent call to AC_HEADER_TIME.
30549         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
30550         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30551         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
30552         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
30553         Likewise.
30554         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
30555         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
30556         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
30557         into the sys_time module.  Check for gettimeofday just once.
30558         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
30559         for gettimeofday signature to just check the signature.  Merely
30560         compile it, since linking doesn't test signature.  Improve test for
30561         whether gettimeofday.o is actually needed.
30562         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
30563         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
30564         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
30565         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30566         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
30567         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
30568         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
30569         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
30570         than worrying about sys/time.h.
30571         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
30572         Don't bother worrying about TIME_WITH_SYS_TIME.
30573         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30574         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
30575         * m4/sys_time_h.m4: New file.
30576         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
30577         Don't include sys/time.h.  Return from main rather than exiting.
30578         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
30579         all uses changed.
30580         * modules/gethrxtime (Depends-on): Add sys_time.
30581         * modules/gettime (Depends-on): Likewise.
30582         * modules/gettimeofday (Depends-on): Likewise.
30583         * modules/nanosleep (Depends-on): Likewise.
30584         * modules/settime (Depends-on): Likewise.
30585         * modules/tempname (Depends-on): Likewise.
30586         * modules/utimens (Depends-on): Likewise.
30587         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
30588         (Include:) Change back to <sys/time.h>.
30589         (Maintainer:) Add self.
30590         * modules/sys_time: New file.
30591         * modules/tempname (Depends-on): Add gettimeofday.
30592         * tests/test-gettimeofday.c: Include <sys/time.h>
30593         rather than gettimeofday.h.
30594
30595 2007-01-17  Bruno Haible  <bruno@clisp.org>
30596
30597         * gnulib-tool (func_get_license): Revert last patch. Instead, let
30598         the license default to GPL.
30599         (func_create_testdir): Don't complain if a module is LGPL and its
30600         tests module depends on GPLed modules.
30601
30602 2007-01-17  Bruno Haible  <bruno@clisp.org>
30603
30604         * lib/gettimeofday.c (gettimeofday): Add code for the case
30605         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
30606         maximum possible value for tv->tv_usec, rather than the minimum one.
30607
30608 2005-10-08  Martin Lambers  <marlam@marlam.de>
30609 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30610 2007-01-16  Bruno Haible  <bruno@clisp.org>
30611
30612         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
30613         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
30614         gl_FUNC_GETTIMEOFDAY.
30615         (Include): Add gettimeofday.h.
30616         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
30617         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
30618         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
30619         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
30620         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
30621         * lib/gettimeofday.h: New file.
30622         * lib/gettimeofday.c: Include <sys/timeb.h>.
30623         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
30624         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30625         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
30626         fall back on time().
30627
30628         * tests/test-gettimeofday.c: New file.
30629         * modules/gettimeofday-tests: New file.
30630
30631 2007-01-16  Eric Blake  <ebb9@byu.net>
30632
30633         * modules/fnmatch (Depends-on): Depend on wchar.
30634         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
30635         * m4/fnmatch.m4: Likewise.
30636         * modules/mbchar (Makefile.am): Assume <wchar.h>.
30637         * m4/mbchar.m4: Likewise.
30638         * modules/mbswidth (Depends-on): Depend on wchar.
30639         * lib/mbswidth.c: Assume <wchar.h>.
30640         * m4/mbswidth.m4: Likewise.
30641         * modules/quotearg (Depends-on): Depend on wchar.
30642         * lib/quotearg.c: Assume <wchar.h>.
30643         * m4/quotearg.m4: Likewise.
30644         * modules/regex (Depends-on): Depend on wchar.
30645         * lib/regex_internal.h: Assume <wchar.h>.
30646         * m4/regex.m4: Likewise.
30647         * modules/stdint (Depends-on): Depend on wchar.
30648         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
30649         * m4/stdint.m4: Likewise.
30650         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
30651         * modules/strftime (Depends-on): Depend on wchar.
30652         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
30653         * modules/strtol (Depends-on): Depend on wchar.
30654         * lib/strtol.c: Assume <wchar.h>.
30655         * modules/wcwidth (Depends-on): Depend on wchar.
30656         * lib/wcwidth.h: Assume <wchar.h>.
30657         * m4/wcwidth.m4: Likewise.
30658
30659 2007-01-16  Bruno Haible  <bruno@clisp.org>
30660
30661         * modules/csharpexec-script: New, created from...
30662         * modules/csharpexec: ... this.
30663
30664 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
30665
30666         * modules/javaexec-script: New, created from...
30667         * modules/javaexec: ... this.
30668
30669 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30670
30671         * modules/poll (Dependencies): Add sys_select.
30672
30673 2007-01-15  Jim Meyering  <jim@meyering.net>
30674
30675         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
30676         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
30677         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
30678         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
30679
30680 2007-01-15  Bruno Haible  <bruno@clisp.org>
30681
30682         * modules/striconveh: New file.
30683         * lib/striconveh.h: New file.
30684         * lib/striconveh.c: New file.
30685         * MODULES.html.sh (Internationalization functions): Add striconveh.
30686
30687         * modules/striconveh-tests: New file.
30688         * tests/test-striconveh.c: New file.
30689
30690 2007-01-15  Bruno Haible  <bruno@clisp.org>
30691
30692         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
30693         not from GNU libiconv or GNU libc.
30694
30695 2007-01-15  Bruno Haible  <bruno@clisp.org>
30696
30697         * doc/gnulib-intro.texi (Copyright): Explain the different license
30698         terms for module descriptions, autoconf macros, tests, documentation.
30699
30700 2007-01-14  Bruno Haible  <bruno@clisp.org>
30701
30702         * modules/striconv-tests: New file.
30703         * tests/test-striconv.c: New file.
30704
30705 2007-01-14  Bruno Haible  <bruno@clisp.org>
30706
30707         * modules/iconv-tests: New file.
30708         * tests/test-iconv.c: New file.
30709
30710 2007-01-14  Bruno Haible  <bruno@clisp.org>
30711
30712         * gnulib-tool (func_get_license): For test modules, use the license of
30713         the main module.
30714
30715 2007-01-14  Bruno Haible  <bruno@clisp.org>
30716
30717         * modules/iconv (Include): Clarify that <iconv.h> can only be included
30718         if iconv is found to exist.
30719
30720 2007-01-14  Bruno Haible  <bruno@clisp.org>
30721
30722         * modules/c-ctype-tests: New file.
30723         * tests/test-c-ctype.c: New file.
30724
30725 2007-01-14  Bruno Haible  <bruno@clisp.org>
30726
30727         * modules/binary-io-tests: New file.
30728         * tests/test-binary-io.sh: New file.
30729         * tests/test-binary-io.c: New file.
30730
30731 2007-01-14  Bruno Haible  <bruno@clisp.org>
30732
30733         * modules/array-oset-tests: New file.
30734         * tests/test-array_oset.c: New file.
30735
30736 2007-01-14  Bruno Haible  <bruno@clisp.org>
30737
30738         * modules/array-list-tests: New file.
30739         * tests/test-array_list.c: New file.
30740
30741 2007-01-14  Bruno Haible  <bruno@clisp.org>
30742
30743         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
30744         and make.
30745         Reported by Simon Josefsson in
30746         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
30747
30748 2007-01-14  Bruno Haible  <bruno@clisp.org>
30749
30750         * modules/allocsa-tests: New file.
30751         * tests/test-allocsa.c: New file.
30752
30753 2007-01-14  Bruno Haible  <bruno@clisp.org>
30754
30755         * modules/fchdir (Depends-on): Add absolute-header.
30756         * modules/unistd (Depends-on): Likewise.
30757
30758 2006-12-30  Bruno Haible  <bruno@clisp.org>
30759
30760         * modules/fchdir: New file.
30761         * modules/unistd (Files): Add lib/unistd_.h.
30762         (Makefile.am): Generate unistd.h from unistd_.h.
30763         * lib/fchdir.c: New file.
30764         * lib/dirent_.h: New file.
30765         * lib/unistd_.h: New file.
30766         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
30767         * m4/fchdir.m4: New file.
30768         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
30769         (gl_HEADER_UNISTD): Invoke it.
30770         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
30771         function.
30772         * lib/backupfile.c (opendir, closedir): Undefine.
30773         * lib/chown.c (open, close): Undefine.
30774         * lib/clean-temp.c (open, close): Undefine.
30775         * lib/copy-file.c (open, close): Undefine.
30776         * lib/execute.c (open, close): Undefine.
30777         * lib/fsusage.c (open, close): Undefine.
30778         * lib/gc-gnulib.c (open, close): Undefine.
30779         * lib/getcwd.c (opendir, closedir): Undefine.
30780         * lib/glob.c (opendir, closedir): Undefine.
30781         * lib/javacomp.c (open, close): Undefine.
30782         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
30783         * lib/openat-proc.c (open, close): Undefine.
30784         * lib/pagealign_alloc.c (open, close): Undefine.
30785         * lib/pipe.c (open, close): Undefine.
30786         * lib/progreloc.c (open, close): Undefine.
30787         * lib/savedir.c (opendir, closedir): Undefine.
30788         * lib/utime.c (open, close): Undefine.
30789         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
30790
30791 2007-01-10  Bruno Haible  <bruno@clisp.org>
30792
30793         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
30794
30795 2007-01-12  Eric Blake  <ebb9@byu.net>
30796
30797         Provide a robust <wchar.h>.  Further simplifications are now
30798         possible in other modules, but not included here.
30799         * modules/wchar: New module.
30800         * m4/wchar.m4: New file.
30801         * lib/wchar_.h: Likewise.
30802         * modules/mbchar (Depends-on): Depend on wchar, as the first use
30803         of the new module.
30804         * MODULES.html.sh (Extended multibyte and wide character utilities):
30805         New section.
30806
30807 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
30808
30809         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
30810         to a reasonable default for memory allocation.
30811         (xreadlink): Don't allocate a huge buffer, to work around a buggy
30812         file system that reports garbage st_size values for symlinks.
30813         Problem reported by Liyang Hu.
30814
30815 2007-01-11  Simon Josefsson  <simon@josefsson.org>
30816
30817         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
30818         Emacs .#* auto-save files).
30819
30820 2007-01-11  Bruno Haible  <bruno@clisp.org>
30821
30822         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
30823         directory.
30824
30825 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
30826
30827         Use @...@ consistently in lib/wctype_.h.
30828         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
30829         on it being set to 1 or 0.
30830         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
30831         go back to AC_SUBSTing it.
30832         * modules/wctype (Makefile.am): Undo previous change.
30833
30834 2007-01-10  Eric Blake  <ebb9@byu.net>
30835
30836         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
30837         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
30838         * modules/wctype (Makefile.am): Likewise.
30839         Reported by Chris McGuire.
30840
30841 2007-01-10  Jim Meyering  <jim@meyering.net>
30842
30843         fts.c: a small readability/maintainability improvement
30844         * lib/fts.c (fts_read): Make this code slightly more readable and
30845         maintainable by hoisting the "sp->fts_cur = p" assignments to
30846         immediately follow the statements that set P.  Derived from
30847         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
30848
30849 2007-01-10  Eric Blake  <ebb9@byu.net>
30850
30851         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
30852         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
30853         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30854         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30855         Reported by Chris McGuire.
30856
30857 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30858
30859         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
30860         in sed script.
30861
30862 2007-01-09  Bruno Haible  <bruno@clisp.org>
30863
30864         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
30865         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
30866         variables.
30867         (func_module): Use them.
30868
30869 2007-01-09  Bruno Haible  <bruno@clisp.org>
30870
30871         * modules/unistr/base: New file.
30872         * lib/unistr.h: New file.
30873
30874         * modules/unistr/u8-to-u16: New file.
30875         * lib/unistr/u8-to-u16.c: New file.
30876
30877         * modules/unistr/u8-to-u32: New file.
30878         * lib/unistr/u8-to-u32.c: New file.
30879
30880         * modules/unistr/u16-to-u8: New file.
30881         * lib/unistr/u16-to-u8.c: New file.
30882
30883         * modules/unistr/u16-to-u32: New file.
30884         * lib/unistr/u16-to-u32.c: New file.
30885
30886         * modules/unistr/u32-to-u8: New file.
30887         * lib/unistr/u32-to-u8.c: New file.
30888
30889         * modules/unistr/u32-to-u16: New file.
30890         * lib/unistr/u32-to-u16.c: New file.
30891
30892         * modules/unistr/u8-check: New file.
30893         * modules/unistr/u16-check: New file.
30894         * modules/unistr/u32-check: New file.
30895         * lib/unistr/u8-check.c: New file.
30896         * lib/unistr/u16-check.c: New file.
30897         * lib/unistr/u32-check.c: New file.
30898
30899         * modules/unistr/u8-chr: New file.
30900         * modules/unistr/u16-chr: New file.
30901         * modules/unistr/u32-chr: New file.
30902         * lib/unistr/u8-chr.c: New file.
30903         * lib/unistr/u16-chr.c: New file.
30904         * lib/unistr/u32-chr.c: New file.
30905
30906         * modules/unistr/u8-cmp: New file.
30907         * modules/unistr/u16-cmp: New file.
30908         * modules/unistr/u32-cmp: New file.
30909         * lib/unistr/u8-cmp.c: New file.
30910         * lib/unistr/u16-cmp.c: New file.
30911         * lib/unistr/u32-cmp.c: New file.
30912
30913         * modules/unistr/u8-cpy: New file.
30914         * modules/unistr/u16-cpy: New file.
30915         * modules/unistr/u32-cpy: New file.
30916         * lib/unistr/u8-cpy.c: New file.
30917         * lib/unistr/u16-cpy.c: New file.
30918         * lib/unistr/u32-cpy.c: New file.
30919         * lib/unistr/u-cpy.h: New file.
30920
30921         * modules/unistr/u8-cpy-alloc: New file.
30922         * modules/unistr/u16-cpy-alloc: New file.
30923         * modules/unistr/u32-cpy-alloc: New file.
30924         * lib/unistr/u8-cpy-alloc.c: New file.
30925         * lib/unistr/u16-cpy-alloc.c: New file.
30926         * lib/unistr/u32-cpy-alloc.c: New file.
30927         * lib/unistr/u-cpy-alloc.h: New file.
30928
30929         * modules/unistr/u8-endswith: New file.
30930         * modules/unistr/u16-endswith: New file.
30931         * modules/unistr/u32-endswith: New file.
30932         * lib/unistr/u8-endswith.c: New file.
30933         * lib/unistr/u16-endswith.c: New file.
30934         * lib/unistr/u32-endswith.c: New file.
30935         * lib/unistr/u-endswith.h: New file.
30936
30937         * modules/unistr/u8-mblen: New file.
30938         * modules/unistr/u16-mblen: New file.
30939         * modules/unistr/u32-mblen: New file.
30940         * lib/unistr/u8-mblen.c: New file.
30941         * lib/unistr/u16-mblen.c: New file.
30942         * lib/unistr/u32-mblen.c: New file.
30943
30944         * modules/unistr/u8-mbtouc: New file.
30945         * modules/unistr/u16-mbtouc: New file.
30946         * modules/unistr/u32-mbtouc: New file.
30947         * lib/unistr/u8-mbtouc.c: New file.
30948         * lib/unistr/u16-mbtouc.c: New file.
30949         * lib/unistr/u32-mbtouc.c: New file.
30950
30951         * modules/unistr/u8-mbtouc-safe: New file.
30952         * modules/unistr/u16-mbtouc-safe: New file.
30953         * modules/unistr/u32-mbtouc-safe: New file.
30954         * lib/unistr/u8-mbtouc-safe.c: New file.
30955         * lib/unistr/u16-mbtouc-safe.c: New file.
30956         * lib/unistr/u32-mbtouc-safe.c: New file.
30957
30958         * modules/unistr/u8-move: New file.
30959         * modules/unistr/u16-move: New file.
30960         * modules/unistr/u32-move: New file.
30961         * lib/unistr/u8-move.c: New file.
30962         * lib/unistr/u16-move.c: New file.
30963         * lib/unistr/u32-move.c: New file.
30964         * lib/unistr/u-move.h: New file.
30965
30966         * modules/unistr/u8-next: New file.
30967         * modules/unistr/u16-next: New file.
30968         * modules/unistr/u32-next: New file.
30969         * lib/unistr/u8-next.c: New file.
30970         * lib/unistr/u16-next.c: New file.
30971         * lib/unistr/u32-next.c: New file.
30972
30973         * modules/unistr/u8-prev: New file.
30974         * modules/unistr/u16-prev: New file.
30975         * modules/unistr/u32-prev: New file.
30976         * lib/unistr/u8-prev.c: New file.
30977         * lib/unistr/u16-prev.c: New file.
30978         * lib/unistr/u32-prev.c: New file.
30979
30980         * modules/unistr/u8-set: New file.
30981         * modules/unistr/u16-set: New file.
30982         * modules/unistr/u32-set: New file.
30983         * lib/unistr/u8-set.c: New file.
30984         * lib/unistr/u16-set.c: New file.
30985         * lib/unistr/u32-set.c: New file.
30986         * lib/unistr/u-set.h: New file.
30987
30988         * modules/unistr/u8-startswith: New file.
30989         * modules/unistr/u16-startswith: New file.
30990         * modules/unistr/u32-startswith: New file.
30991         * lib/unistr/u8-startswith.c: New file.
30992         * lib/unistr/u16-startswith.c: New file.
30993         * lib/unistr/u32-startswith.c: New file.
30994         * lib/unistr/u-startswith.h: New file.
30995
30996         * modules/unistr/u8-stpcpy: New file.
30997         * modules/unistr/u16-stpcpy: New file.
30998         * modules/unistr/u32-stpcpy: New file.
30999         * lib/unistr/u8-stpcpy.c: New file.
31000         * lib/unistr/u16-stpcpy.c: New file.
31001         * lib/unistr/u32-stpcpy.c: New file.
31002         * lib/unistr/u-stpcpy.h: New file.
31003
31004         * modules/unistr/u8-stpncpy: New file.
31005         * modules/unistr/u16-stpncpy: New file.
31006         * modules/unistr/u32-stpncpy: New file.
31007         * lib/unistr/u8-stpncpy.c: New file.
31008         * lib/unistr/u16-stpncpy.c: New file.
31009         * lib/unistr/u32-stpncpy.c: New file.
31010         * lib/unistr/u-stpncpy.h: New file.
31011
31012         * modules/unistr/u8-strcat: New file.
31013         * modules/unistr/u16-strcat: New file.
31014         * modules/unistr/u32-strcat: New file.
31015         * lib/unistr/u8-strcat.c: New file.
31016         * lib/unistr/u16-strcat.c: New file.
31017         * lib/unistr/u32-strcat.c: New file.
31018         * lib/unistr/u-strcat.h: New file.
31019
31020         * modules/unistr/u8-strchr: New file.
31021         * modules/unistr/u16-strchr: New file.
31022         * modules/unistr/u32-strchr: New file.
31023         * lib/unistr/u8-strchr.c: New file.
31024         * lib/unistr/u16-strchr.c: New file.
31025         * lib/unistr/u32-strchr.c: New file.
31026
31027         * modules/unistr/u8-strcmp: New file.
31028         * modules/unistr/u16-strcmp: New file.
31029         * modules/unistr/u32-strcmp: New file.
31030         * lib/unistr/u8-strcmp.c: New file.
31031         * lib/unistr/u16-strcmp.c: New file.
31032         * lib/unistr/u32-strcmp.c: New file.
31033
31034         * modules/unistr/u8-strcpy: New file.
31035         * modules/unistr/u16-strcpy: New file.
31036         * modules/unistr/u32-strcpy: New file.
31037         * lib/unistr/u8-strcpy.c: New file.
31038         * lib/unistr/u16-strcpy.c: New file.
31039         * lib/unistr/u32-strcpy.c: New file.
31040         * lib/unistr/u-strcpy.h: New file.
31041
31042         * modules/unistr/u8-strcspn: New file.
31043         * modules/unistr/u16-strcspn: New file.
31044         * modules/unistr/u32-strcspn: New file.
31045         * lib/unistr/u8-strcspn.c: New file.
31046         * lib/unistr/u16-strcspn.c: New file.
31047         * lib/unistr/u32-strcspn.c: New file.
31048         * lib/unistr/u-strcspn.h: New file.
31049
31050         * modules/unistr/u8-strdup: New file.
31051         * modules/unistr/u16-strdup: New file.
31052         * modules/unistr/u32-strdup: New file.
31053         * lib/unistr/u8-strdup.c: New file.
31054         * lib/unistr/u16-strdup.c: New file.
31055         * lib/unistr/u32-strdup.c: New file.
31056         * lib/unistr/u-strdup.h: New file.
31057
31058         * modules/unistr/u8-strlen: New file.
31059         * modules/unistr/u16-strlen: New file.
31060         * modules/unistr/u32-strlen: New file.
31061         * lib/unistr/u8-strlen.c: New file.
31062         * lib/unistr/u16-strlen.c: New file.
31063         * lib/unistr/u32-strlen.c: New file.
31064         * lib/unistr/u-strlen.h: New file.
31065
31066         * modules/unistr/u8-strmblen: New file.
31067         * modules/unistr/u16-strmblen: New file.
31068         * modules/unistr/u32-strmblen: New file.
31069         * lib/unistr/u8-strmblen.c: New file.
31070         * lib/unistr/u16-strmblen.c: New file.
31071         * lib/unistr/u32-strmblen.c: New file.
31072
31073         * modules/unistr/u8-strmbtouc: New file.
31074         * modules/unistr/u16-strmbtouc: New file.
31075         * modules/unistr/u32-strmbtouc: New file.
31076         * lib/unistr/u8-strmbtouc.c: New file.
31077         * lib/unistr/u16-strmbtouc.c: New file.
31078         * lib/unistr/u32-strmbtouc.c: New file.
31079
31080         * modules/unistr/u8-strncat: New file.
31081         * modules/unistr/u16-strncat: New file.
31082         * modules/unistr/u32-strncat: New file.
31083         * lib/unistr/u8-strncat.c: New file.
31084         * lib/unistr/u16-strncat.c: New file.
31085         * lib/unistr/u32-strncat.c: New file.
31086         * lib/unistr/u-strncat.h: New file.
31087
31088         * modules/unistr/u8-strncmp: New file.
31089         * modules/unistr/u16-strncmp: New file.
31090         * modules/unistr/u32-strncmp: New file.
31091         * lib/unistr/u8-strncmp.c: New file.
31092         * lib/unistr/u16-strncmp.c: New file.
31093         * lib/unistr/u32-strncmp.c: New file.
31094
31095         * modules/unistr/u8-strncpy: New file.
31096         * modules/unistr/u16-strncpy: New file.
31097         * modules/unistr/u32-strncpy: New file.
31098         * lib/unistr/u8-strncpy.c: New file.
31099         * lib/unistr/u16-strncpy.c: New file.
31100         * lib/unistr/u32-strncpy.c: New file.
31101         * lib/unistr/u-strncpy.h: New file.
31102
31103         * modules/unistr/u8-strnlen: New file.
31104         * modules/unistr/u16-strnlen: New file.
31105         * modules/unistr/u32-strnlen: New file.
31106         * lib/unistr/u8-strnlen.c: New file.
31107         * lib/unistr/u16-strnlen.c: New file.
31108         * lib/unistr/u32-strnlen.c: New file.
31109         * lib/unistr/u-strnlen.h: New file.
31110
31111         * modules/unistr/u8-strpbrk: New file.
31112         * modules/unistr/u16-strpbrk: New file.
31113         * modules/unistr/u32-strpbrk: New file.
31114         * lib/unistr/u8-strpbrk.c: New file.
31115         * lib/unistr/u16-strpbrk.c: New file.
31116         * lib/unistr/u32-strpbrk.c: New file.
31117         * lib/unistr/u-strpbrk.h: New file.
31118
31119         * modules/unistr/u8-strrchr: New file.
31120         * modules/unistr/u16-strrchr: New file.
31121         * modules/unistr/u32-strrchr: New file.
31122         * lib/unistr/u8-strrchr.c: New file.
31123         * lib/unistr/u16-strrchr.c: New file.
31124         * lib/unistr/u32-strrchr.c: New file.
31125
31126         * modules/unistr/u8-strspn: New file.
31127         * modules/unistr/u16-strspn: New file.
31128         * modules/unistr/u32-strspn: New file.
31129         * lib/unistr/u8-strspn.c: New file.
31130         * lib/unistr/u16-strspn.c: New file.
31131         * lib/unistr/u32-strspn.c: New file.
31132         * lib/unistr/u-strspn.h: New file.
31133
31134         * modules/unistr/u8-strstr: New file.
31135         * modules/unistr/u16-strstr: New file.
31136         * modules/unistr/u32-strstr: New file.
31137         * lib/unistr/u8-strstr.c: New file.
31138         * lib/unistr/u16-strstr.c: New file.
31139         * lib/unistr/u32-strstr.c: New file.
31140         * lib/unistr/u-strstr.h: New file.
31141
31142         * modules/unistr/u8-strtok: New file.
31143         * modules/unistr/u16-strtok: New file.
31144         * modules/unistr/u32-strtok: New file.
31145         * lib/unistr/u8-strtok.c: New file.
31146         * lib/unistr/u16-strtok.c: New file.
31147         * lib/unistr/u32-strtok.c: New file.
31148         * lib/unistr/u-strtok.h: New file.
31149
31150         * modules/unistr/u8-uctomb: New file.
31151         * modules/unistr/u16-uctomb: New file.
31152         * modules/unistr/u32-uctomb: New file.
31153         * lib/unistr/u8-uctomb.c: New file.
31154         * lib/unistr/u16-uctomb.c: New file.
31155         * lib/unistr/u32-uctomb.c: New file.
31156
31157         * MODULES.html.sh (Unicode string functions): Add the new modules.
31158
31159 2007-01-08  Bruno Haible  <bruno@clisp.org>
31160
31161         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
31162         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
31163         subdirectories.
31164
31165 2007-01-08  Karl Berry  <karl@gnu.org>
31166
31167         * doc/error.texi: mention that main() fns must set program_name
31168         when progname is used.
31169
31170 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
31171
31172         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
31173         WCTYPE_H is empty, for the benefit of builds from non-distclean
31174         directories.  Problem reported by Eric Blake in
31175         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
31176
31177 2007-01-08  Bruno Haible  <bruno@clisp.org>
31178
31179         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
31180         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
31181         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
31182         PROVIDE_CANONICALIZE_FILENAME_MODE.
31183         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
31184
31185 2007-01-08  Bruno Haible  <bruno@clisp.org>
31186
31187         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
31188         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
31189         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
31190         * lib/fts.c: Likewise.
31191         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
31192
31193 2006-12-25  Bruno Haible  <bruno@clisp.org>
31194
31195         * modules/utf8-ucs4-safe: New file.
31196         * lib/utf8-ucs4-safe.h: New file.
31197         * lib/unistr/utf8-ucs4-safe.c: New file.
31198
31199         * modules/utf16-ucs4-safe: New file.
31200         * lib/utf16-ucs4-safe.h: New file.
31201         * lib/unistr/utf16-ucs4-safe.c: New file.
31202
31203         * MODULES.html.sh (Unicode string functions): Add the new modules.
31204
31205 2007-01-08  Bruno Haible  <bruno@clisp.org>
31206
31207         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
31208         (Depends-on): Add unitypes.
31209         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
31210         (u8_mbtouc_aux): Move out to separate file.
31211         (u8_mbtouc): Use ucs4_t, uint8_t types.
31212         * lib/unistr/utf8-ucs4.c: New file.
31213
31214         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
31215         (Depends-on): Add unitypes.
31216         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
31217         (u16_mbtouc_aux): Move out to separate file.
31218         (u16_mbtouc): Use ucs4_t, uint16_t types.
31219         * lib/unistr/utf16-ucs4.c: New file.
31220
31221         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
31222         (Depends-on): Add unitypes.
31223         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
31224         (u8_uctomb_aux): Move out to separate file.
31225         (u8_uctomb): Use ucs4_t, uint8_t types.
31226         * lib/unistr/ucs4-utf8.c: New file.
31227
31228         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
31229         (Depends-on): Add unitypes.
31230         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
31231         (u16_uctomb_aux): Move out to separate file.
31232         (u16_uctomb): Use ucs4_t, uint16_t types.
31233         * lib/unistr/ucs4-utf16.c: New file.
31234
31235 2006-12-25  Bruno Haible  <bruno@clisp.org>
31236
31237         * modules/unitypes: New file.
31238         * lib/unitypes.h: New file.
31239         * MODULES.html.sh (func_all_modules): New section "Unicode string
31240         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
31241         this section. Add unitypes.
31242
31243 2007-01-08  Bruno Haible  <bruno@clisp.org>
31244
31245         Avoid variable names that conflict with those from libtool.
31246         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
31247         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
31248         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
31249         library_names_spec to acl_library_names_spec, hardcode_* to
31250         acl_hardcode_*.
31251         Reported by Ralf Wildenhues.
31252
31253 2007-01-08  Bruno Haible  <bruno@clisp.org>
31254
31255         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
31256         definition.
31257         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
31258         definition.
31259         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
31260         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
31261         definition.
31262         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
31263         definition.
31264         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
31265         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
31266         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
31267         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
31268         definition.
31269         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
31270         definition.
31271         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
31272         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
31273         GC_USE_<algorithm>.
31274         * lib/gc-libgcrypt.c: Likewise.
31275         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
31276         * modules/gc-arctwo (configure.ac): Likewise.
31277         * modules/gc-des (configure.ac): Likewise.
31278         * modules/gc-hmac-md5 (configure.ac): Likewise.
31279         * modules/gc-hmac-sha1 (configure.ac): Likewise.
31280         * modules/gc-md2 (configure.ac): Likewise.
31281         * modules/gc-md4 (configure.ac): Likewise.
31282         * modules/gc-md5 (configure.ac): Likewise.
31283         * modules/gc-random (configure.ac): Likewise.
31284         * modules/gc-rijndael (configure.ac): Likewise.
31285         * modules/gc-sha1 (configure.ac): Likewise.
31286
31287 2007-01-08  Bruno Haible  <bruno@clisp.org>
31288
31289         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
31290         macro definition.
31291         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
31292         definition.
31293         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
31294         definition.
31295         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
31296         * modules/fcntl-safer (configure.ac): Likewise.
31297         * modules/fopen-safer (configure.ac): Likewise.
31298         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
31299         GNULIB_FWRITEERROR macro definition.
31300
31301 2007-01-08  Bruno Haible  <bruno@clisp.org>
31302
31303         * m4/gnulib-common.m4: New file.
31304         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
31305         (func_get_filelist): Add m4/gnulib-common.m4.
31306
31307 2007-01-08  Bruno Haible  <bruno@clisp.org>
31308
31309         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
31310         command.
31311
31312 2007-01-08  Jim Meyering  <jim@meyering.net>
31313
31314         Use a more robust test for a "can't happen" condition.
31315         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
31316         narrowed the st_size value.  Presuming the "can't happen" condition
31317         is true, that narrowing could conceivably convert an invalid st_size
31318         value into a valid one.  Instead, use a change based on Matthew
31319         Woehlke's original patch.
31320
31321         Slight readability improvement: use an assert-like macro
31322         in place of literal "abort ()" uses.
31323         * lib/fts.c (fts_assert): Define.
31324         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
31325         Use this macro instead of a bare 'abort'.
31326
31327 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
31328
31329         Don't worry about using IRIX 5.3's wctype.h broken definitions;
31330         simply work around them.
31331         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
31332         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
31333         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
31334         declaring.
31335         Don't bother to define as macros, since the standard doesn't require it.
31336         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
31337         longer worry about IRIX 5.3.
31338         (HAVE_WCTYPE_CTMP_BUG): Remove.
31339
31340 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31341
31342         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
31343         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
31344         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31345         Problems reported by Georg Schwarz for IRIX 5.3.
31346
31347         * gnulib-tool (autoconf_minversion): Take the maximum version number
31348         found, not the minimum.  Problem reported by James Youngman.
31349
31350 2007-01-03  Karl Berry  <karl@gnu.org>
31351
31352         * doc/error.texi: new file, explaining interaction with progname.
31353         * doc/gnulib.texi: include it.  Update copyright.
31354
31355 2007-01-03  Simon Josefsson  <simon@josefsson.org>
31356
31357         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
31358         AC_CANONICAL_HOST, to improve autobuild outputs.
31359
31360 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
31361             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31362
31363         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
31364         sockets, server sockets, and other file descriptors.  Count errors
31365         to compute the return value.  Reorder the code a bit to be easier
31366         to follow.  Don't set event bits that were not requested (except
31367         POLLERR and POLLHUP).
31368
31369 2007-01-01  Bruno Haible  <bruno@clisp.org>
31370
31371         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
31372
31373 2007-01-03  Jim Meyering  <jim@meyering.net>
31374
31375         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
31376
31377 2007-01-02  Bruno Haible  <bruno@clisp.org>
31378
31379         * modules/settime (Include): Require timespec.h.
31380         * modules/nanosleep (Include): Likewise.
31381
31382 2007-01-01  Bruno Haible  <bruno@clisp.org>
31383
31384         * gnulib-tool (func_emit_copyright_notice): Bump year.
31385         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
31386
31387 2007-01-01  Bruno Haible  <bruno@clisp.org>
31388
31389         Improve support for OpenBSD.
31390         * build-aux/config.rpath (libname_spec): Export.
31391         (library_names_spec): New variable. Export.
31392         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
31393         library_names_spec from the config.rpath output. Locate shared library
31394         through the name pattern in library_names_spec.
31395
31396 2007-01-01  Eric Blake  <ebb9@byu.net>
31397
31398         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
31399
31400 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
31401
31402         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
31403         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
31404         assume the C locale, and avoid an "eval" that could cause trouble.
31405         Problem with SORT reported by Bob Proulx.
31406
31407         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
31408         Define.  Trivial patch from Henning Nielsen Lund, originally
31409         sent to bug-grep@gnu.org today.
31410
31411 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
31412
31413         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
31414         struct stat.  Problem reported by Henning Nielsen Lund.
31415         * lib/acl.c: Include acl.h first, to check interface.  Don't
31416         bother to include sys/types.h and sys/stat.h again.
31417
31418 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31419
31420         Import the following change from libc; problem reported by
31421         Sven Verdoolaege.
31422
31423         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
31424
31425         [BZ #1373]
31426         * lib/argp.h: Remove __NTH for __argp_usage inline function.
31427
31428 2006-12-28  Jim Meyering  <jim@meyering.net>
31429
31430         * build-aux/announce-gen: Do not assume that the package
31431         builds any of tar.gz, tar.bz2, and .xdelta files.
31432         Suggestion from Simon Josefsson.
31433
31434 2006-12-28  Simon Josefsson  <simon@josefsson.org>
31435
31436         * modules/announce-gen: New file.
31437
31438 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
31439
31440         * lib/mbchar.h: Just include <wctype.h>; the wctype module
31441         handles its gotchas now.
31442         * lib/mbswidth.c: Likewise.
31443         * lib/wcwidth.h: Likewise.
31444         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
31445         and iswcntrl; the wctype module does this stuff now.
31446         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31447         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31448         * modules/mbchar (Depends-on): Add wctype.
31449         * modules/mbswidth (Depends-on): Likewise.
31450         * modules/wcwidth (Depends-on): Likewise.
31451
31452 2006-12-27  Eric Blake  <ebb9@byu.net>
31453
31454         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
31455         module uses more than what <wctype.h> is required to provide.
31456
31457 2006-12-26  Eric Blake  <ebb9@byu.net>
31458
31459         * gnulib-tool (sed_extract_prog): Avoid space-tab.
31460
31461 2006-12-26  Eric Blake  <ebb9@byu.net>
31462
31463         * modules/absolute-header: New module.
31464         * modules/fcntl (Depends-on): Depend on it.
31465         * modules/inttypes (Depends-on): Likewise.
31466         * modules/stdint (Depends-on): Likewise.
31467         * modules/sys_stat (Depends-on): Likewise.
31468         * modules/wctype (Depends-on): Likewise.
31469         * MODULES.html.sh (Support for building libraries and
31470         executables): Document it.
31471
31472 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
31473
31474         * gnulib-tool (SED): Remove, undoing previous change.
31475         The problem was that it broke coreutils on Solaris, because
31476         "sed --posix" leaked into a makefile.
31477         (sed): New alias, if 'alias' and GNU sed.
31478
31479 2006-12-24  Jim Meyering  <jim@meyering.net>
31480
31481         Work around an fchownat bug in glibc-2.4:
31482         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
31483         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
31484         in spite of the -P option.
31485         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
31486         New macros.
31487         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
31488         * modules/openat (Files): Add lib/fchownat.c.
31489         * lib/openat.c (fchownat): Don't define here.  Move to...
31490         * lib/fchownat.c: ...this new file.
31491
31492 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31493
31494         Fix bug reported by Bruno Haible in
31495         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
31496         where quotearg.c didn't compile on Mac OS X 10.2 because it
31497         lacks <wchar.h> and wint_t.
31498         * lib/wctype_.h (__wctype_wint_t): New type.
31499         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
31500         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
31501         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
31502         Arg is now of type __wctype_wint_t, not wint_t.
31503         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
31504         substitute HAVE_WINT_T.
31505         * modules/wctype (Files): Add m4/wint_t.m4.
31506         (wctype.h): Substitute HAVE_WINT_T.
31507
31508 2006-12-23  Bruno Haible  <bruno@clisp.org>
31509
31510         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
31511
31512 2006-12-23  Bruno Haible  <bruno@clisp.org>
31513
31514         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
31515         S_ISLNK.
31516         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
31517         mingw.
31518
31519 2006-12-22  Bruno Haible  <bruno@clisp.org>
31520
31521         * lib/copy-file.c: Include acl.h.
31522         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
31523         Close the file descriptors only after being done with copy_acl.
31524         * modules/copy-file (Depends-on): Add acl.
31525
31526 2006-12-22  Bruno Haible  <bruno@clisp.org>
31527
31528         * gnulib-tool (SED): New variable.
31529         Use $SED instead of sed everywhere.
31530
31531 2006-12-22  Bruno Haible  <bruno@clisp.org>
31532
31533         * modules/no-c++: New file.
31534         * m4/no-c++.m4: New file.
31535         * MODULES.html.sh (Support for building libraries and executables):
31536         Add no-c++.
31537
31538 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
31539
31540         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
31541         Include <limits.h>, and use its INT_MAX to rewrite the
31542         j loop so that it does not overflow 'int'.  Problem reported by
31543         Ralf Wildenhues in
31544         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
31545         Play it safe by shifting left by 1 rather than multiplying by 2,
31546         as GCC is less likely to optimize this away when the value
31547         is signed (when it assumes overflow leads to undefined behavior).
31548         Also, don't assume time_t uses two's complement.
31549
31550 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
31551
31552         * MODULES.html.sh: New module wctype.
31553         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
31554         * lib/fnmatch.c: Don't bother to include <wchar.h> before
31555         <wctype.h>, since the new wctype module should fix this.
31556         * lib/quotearg.c: Include <wctype.h> unconditionally, since
31557         the wctype module should arrange for it.
31558         * lib/regex_internal.h: Likewise.
31559         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
31560         since the wctype module should handle this now.
31561         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
31562         * modules/fnmatch (Depends-on): Add wctype.
31563         * modules/quotearg (Depends-on): Likewise.
31564         * modules/regex (Depends-on): Likewise.
31565
31566 2006-12-19  Bruno Haible  <bruno@clisp.org>
31567
31568         * lib/strdup.h [C++]: Wrap definitions in extern "C".
31569         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
31570
31571 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31572
31573         * modules/savewd (Depends-on): Fix dependency on fcntl.
31574
31575 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
31576
31577         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
31578         conforms to C99, rather than relying on the user's environment
31579         setting of STDINT_H.
31580
31581 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
31582         and Eric Blake  <ebb9@byu.net>
31583
31584         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
31585         This is more consistent with the other defines here.
31586         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
31587         Port to z/OS.  Problem reported by Paul Gilmartin.
31588         Change local vars to use gl_ prefix rather than ac_.
31589         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
31590         with other defines.
31591         * modules/double-slash-root: New module.
31592         * modules/dirname (Files): Remove m4/double-slash-root.m4.
31593         (Depends-on): Add double-slash-root.
31594         * MODULES.html.sh (File system functions): Mention new module.
31595
31596 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
31597
31598         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
31599         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
31600         This is for the benefit of gzip, which doesn't do i18n.
31601
31602 2006-12-12  Jim Meyering  <jim@meyering.net>
31603
31604         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
31605         Reported by Andreas Schwab <schwab@suse.de>.
31606
31607 2006-12-12  Bruno Haible  <bruno@clisp.org>
31608
31609         Merge these changes.
31610         2006-09-05  Bruno Haible  <bruno@clisp.org>
31611         * lib/iconvme.c (iconv_string): No need to save and restore errno when
31612         iconv_alloc succeeded.
31613         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
31614         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
31615         test for " && dest " at the end - dest is always != NULL there. Call
31616         iconv with 4xNULL arguments initially, to reset the state. Call iconv
31617         with 2xNULL arguments, also to flush the state storage. Handle the
31618         IRIX iconv behaviour. Realloc the final result, to throw away unused
31619         memory.
31620
31621 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
31622
31623         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
31624         and fchmodat unconditionally, since glibc 2.4 has them.
31625         Problem reported by Arkadiusz Miskiewicz.
31626
31627 2006-12-10  Bruno Haible  <bruno@clisp.org>
31628
31629         * gnulib-tool (func_import): Show the include files only for those
31630         modules that are copied and specified.
31631         Reported by Karl Berry.
31632
31633 2006-12-08  Jim Meyering  <jim@meyering.net>
31634
31635         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
31636         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
31637
31638         * build-aux/announce-gen: Add two new options, both optional:
31639         --bootstrap-tools=TOOL_LIST
31640               a comma-separated list of tools, e.g.,
31641               autoconf,automake,bison,gnulib
31642         --gnulib-snapshot-date=DATE
31643               if gnulib is in the bootstrap tool list,
31644               then report this as the snapshot date.
31645               If not specified, use the current date/time.
31646               If you specify a date here, be sure it's UTC.
31647
31648 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31649
31650         * tests/test-argp-2.sh: Fix test to match actual output.
31651         (func_compare): Fix sed script to be portable.
31652
31653 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
31654
31655         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
31656         workaround for this case.  It is not autoconfigured now; offhand
31657         it's hard to see how to autoconfigure it.
31658
31659 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
31660
31661         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
31662         a directory that is about to be chowned.  Such a directory's
31663         initial file permissions should permit the owner only and this
31664         should not be changed until after the chown, since the group and
31665         other bits would be incorrect if they granted permission before
31666         the chown.
31667
31668         Fix porting problem for iswctype reported by Georg Schwarz in:
31669         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
31670         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
31671         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
31672         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
31673         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31674
31675 2006-12-03  Jim Meyering  <jim@meyering.net>
31676
31677         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
31678         p->fts_statp may not yet be defined.
31679         (fts_read): Instead, set it in the caller, once p->fts_statp is
31680         sure to be defined, and corresponds to a top-level directory.
31681         This bug made du -x fail.  Here's the coreutils test case:
31682         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
31683         Reported by Mike Frysinger.
31684
31685 2006-12-01  Jim Meyering  <jim@meyering.net>
31686
31687         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
31688         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
31689         Reported by Simon Josefsson.
31690
31691 2006-11-30  Jim Meyering  <jim@meyering.net>
31692
31693         * m4/warning.m4: Use the all-permissive copyright notice
31694         recommended by RMS (rather than LGPL).
31695         * m4/vararrays.m4: Likewise.
31696         * m4/flexmember.m4: Likewise.
31697
31698 2006-11-29  Bruno Haible  <bruno@clisp.org>
31699
31700         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
31701         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
31702         using +=.
31703         Reported by Simon Josefsson <simon@josefsson.org>.
31704
31705 2006-11-28  James Youngman <jay@gnu.org>
31706
31707         * README: Advise users that they might find the bug-gnulib@gnu.org
31708         and autotools-announce@gnu.org mailing lists useful.
31709
31710 2006-11-28  Bruno Haible  <bruno@clisp.org>
31711
31712         * m4/ptrdiff_max.m4: Remove file.
31713
31714 2006-11-21  Bruno Haible  <bruno@clisp.org>
31715
31716         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
31717         _AC_COMPUTE_INT.
31718         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
31719         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
31720         _AC_COMPUTE_INT.
31721         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
31722         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
31723         _AC_COMPUTE_INT.
31724         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
31725
31726 2006-11-28  Jim Meyering  <jim@meyering.net>
31727
31728         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
31729         warning from "gcc -Wshadow" about shadowing the builtin.
31730
31731 2006-11-27  Bruno Haible  <bruno@clisp.org>
31732
31733         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
31734         _AC_COMPUTE_INT.
31735         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
31736
31737 2006-11-27  Bruno Haible  <bruno@clisp.org>
31738             Paul Eggert  <eggert@cs.ucla.edu>
31739
31740         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
31741
31742 2006-11-26  Bruno Haible  <bruno@clisp.org>
31743
31744         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
31745         noinst_LTLIBRARIES.
31746
31747 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
31748             Bruno Haible  <bruno@clisp.org>
31749
31750         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
31751         if compiling with "gcc -ansi".
31752
31753 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
31754
31755         Fix some incompatibilities with gcc -ansi -pedantic.
31756         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
31757         if compiling pedantically with GCC, unless it's C99 or later.
31758         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
31759         it mishandles gcc -ansi -pedantic as well.
31760         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
31761         if gcc -pedantic.
31762         * lib/regexec.c (check_node_accept_bytes): Don't use auto
31763         initializers for struct if -pedantic, unless it's C99 or later.
31764
31765 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
31766
31767         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
31768         Don't close an fd more than once. Identical atimes indicate
31769         success, not failure.
31770
31771 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
31772
31773         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
31774
31775 2006-11-23  Jim Meyering  <jim@meyering.net>
31776
31777         * build-aux/announce-gen: New file.  From coreutils.
31778
31779 2006-11-22  Jim Meyering  <jim@meyering.net>
31780
31781         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
31782         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
31783         (fts_read): Use a temporary to narrow the overused st_size member
31784         before using it in a switch statement.  Reported by Matthew Woehlke.
31785
31786         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
31787         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31788
31789 2006-11-20  Bruno Haible  <bruno@clisp.org>
31790
31791         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
31792         changequote instead of pairs of brackets.
31793         Reported by Andreas Schwab <schwab@suse.de>.
31794
31795 2006-11-21  Jim Meyering  <jim@meyering.net>
31796
31797         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
31798         so as to remain compatible with older compilers.
31799         Patch from Michael Deutschmann.
31800
31801 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
31802
31803         * MODULES.html.sh (File system functions): Add openat.
31804
31805         * lib/openat.h (rpl_fstatat): New macro, if
31806         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
31807         (fstatat): Define to rpl_fstatat under the same conditions,
31808         unless COMPILING_FSTATAT.
31809         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
31810         seems to have the bug.
31811         * lib/fstatat.c: New file.
31812         * modules/openat (Files): Add it.
31813
31814 2006-11-20  Bruno Haible  <bruno@clisp.org>
31815
31816         * Makefile: New file.
31817
31818 2006-11-20  Jim Meyering  <jim@meyering.net>
31819
31820         The beginnings of syntax-related checks for gnulib.
31821         * lib/Makefile: New file.
31822         * lib/t-idcache: New script.  Ensure that the two halves of
31823         idcache.c stay in sync.
31824
31825         * lib/idcache.c: Adjust comments in user- and group- portions to
31826         be more accurate, and to be consistent with one another.
31827
31828 2006-11-20  Jim Meyering  <jim@meyering.net>
31829
31830         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
31831         continue using the flexible array member (thus, this module performs
31832         half as many malloc calls), with the addition that...
31833         (getgroup, getuser): Consistently record a non-match via an empty
31834         "name" string, and map an empty string match to a NULL return value.
31835         * modules/idcache (Depends-on): Re-add flexmember.
31836
31837         * lib/idcache.c (getuser): Remove all uses of the register keyword.
31838         (getuidbyname, getgroup, getgidbyname): Likewise.
31839
31840         Use cleaner syntax: NULL rather than 0.
31841         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
31842
31843 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
31844
31845         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
31846         It mishandled the case where the group was missing.
31847         Problem reported by Greg Schafer.
31848         * modules/idcache: Likewise.
31849
31850 2006-11-18  Jim Meyering  <jim@meyering.net>
31851
31852         * check-module (%exempt_header): Add exception for some
31853         conditionally-included headers.
31854
31855         * modules/i-ring (Depends-on): Add verify.
31856         (License): Change to LGPL.
31857
31858 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31859
31860         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
31861         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
31862         and inttostr.h.  Use snprintf rather than uinttostr, so that
31863         LGPLed code doesn't depend on GPLed.
31864
31865 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
31866
31867         * modules/inline (License): Change from GPL to LGPL.
31868
31869 2006-11-17  Jim Meyering  <jim@meyering.net>
31870
31871         * modules/d-type (License): Switch to LGPL.
31872
31873 2006-11-15  Bruno Haible  <bruno@clisp.org>
31874
31875         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
31876
31877 2006-11-15  Eric Blake  <ebb9@byu.net>
31878
31879         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
31880         the module dependency.
31881
31882 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31883             Bruno Haible  <bruno@clisp.org>
31884
31885         * gnulib-tool (func_create_testdir): Add license consistency check.
31886
31887 2006-11-15  Eric Blake  <ebb9@byu.net>
31888
31889         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
31890         random "(cached)" in configure output.
31891
31892 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31893
31894         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
31895         test for conforming inttypes.h is both announced and cached.
31896
31897         * MODULES.html.sh (seen_modules, seen_files): New variables.
31898         (func_module): Rewrite to use a few less gnulib-tool and sed
31899         invocations.  Avoid a couple of quadratic algorithms for ...
31900         (missed_modules, missed_files): ... these, with ...
31901         (func_append, func_tmpdir): ... these new functions, from
31902         gnulib-tool.  Analogously, install traps for cleanup.
31903
31904         * tests/test-gc.c (main): Remove unused variables.
31905         * tests/test-read-file.c: Include stdlib.h, for 'free'.
31906
31907 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
31908
31909         * modules/inttostr (License): Change to LGPL.
31910
31911 2006-11-14  Eric Blake  <ebb9@byu.net>
31912
31913         * modules/tempname (License): Change to LGPL.
31914
31915 2006-11-14  Eric Blake  <ebb9@byu.net>
31916
31917         * doc/functions.texi (Function Portability): *printf functions on
31918         Cygwin now understand all POSIX size specifiers.
31919
31920 2006-11-14  Bruno Haible  <bruno@clisp.org>
31921
31922         * modules/c-ctype (License): Change to LGPL.
31923
31924 2006-11-12  Bruno Haible  <bruno@clisp.org>
31925
31926         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31927         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
31928         for GNOME libraries, for which the include files are installed in
31929         subdirectories of $prefix/include.
31930
31931 2006-11-12  Bruno Haible  <bruno@clisp.org>
31932
31933         * m4/lib-link.m4: Require at least autoconf-2.54.
31934         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
31935         name to underscores for the --with option.
31936
31937 2006-11-13  Bruno Haible  <bruno@clisp.org>
31938
31939         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
31940         the tests directory.
31941         Reported by Ralf Wildenhues.
31942
31943 2006-11-13  Bruno Haible  <bruno@clisp.org>
31944
31945         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
31946         (func_emit_initmacro_end): Undo the override here.
31947         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
31948         Works around the famous automake error in coreutils.
31949
31950 2006-11-13  Eric Blake  <ebb9@byu.net>
31951
31952         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
31953         element, not its node.
31954
31955 2006-11-12  Bruno Haible  <bruno@clisp.org>
31956
31957         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
31958         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
31959
31960 2006-11-12  Bruno Haible  <bruno@clisp.org>
31961
31962         * gnulib-tool: New option --local-symlink.
31963         (func_usage): Document it.
31964         (lsymbolic): New variable.
31965         (func_import, func_create_testdir): If --symlink was not specified,
31966         test whether --local-symlink was specified and the file comes from
31967         the local_gnulib_dir.
31968
31969 2006-11-12  Bruno Haible  <bruno@clisp.org>
31970
31971         * gnulib-tool (func_ln): New function.
31972         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
31973
31974 2006-11-12  Bruno Haible  <bruno@clisp.org>
31975
31976         Finish support for source files in subdirectories.
31977         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
31978         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
31979         AUTOMAKE_OPTIONS.
31980         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
31981
31982 2006-11-12  Bruno Haible  <bruno@clisp.org>
31983
31984         * gnulib-tool (func_get_automake_snippet): Synthesize also an
31985         EXTRA_lib_SOURCES augmentation.
31986         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
31987
31988 2006-11-12  Jim Meyering  <jim@meyering.net>
31989
31990         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
31991         file descriptors.  This also averts a failure on systems with
31992         native openat support when a traversed directory lacks "x" access.
31993         * lib/fts_.h: Include "i-ring.h"
31994         (struct FTS) [fts_fd_ring]: New member.
31995         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
31996         (FCHDIR): Add parentheses.
31997         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
31998         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
31999         When descending, rather than simply closing the previous
32000         fts_cwd_fd value, push that file descriptor onto the ring.
32001         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
32002         (fts_open): Initialize the new fd_ring member.
32003         (fts_close): Clear the ring.
32004         (fts_safe_changedir): When possible, use our new fd_ring to skip
32005         the diropen and fstat and dev/ino comparison that would normally
32006         accompany a virtual `chdir ("..")'.
32007
32008         * modules/fts (Depends-on): Add i-ring.
32009         * modules/i-ring: New module.
32010         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
32011         * m4/i-ring.m4: New file.
32012
32013 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32014
32015         * gnulib-tool (func_create_testdir): Fix replacement of
32016         `build-aux' in configure.ac.  Run autotools in gltests
32017         subdirectory.
32018         (func_create_testdir, func_create_megatestdir, test): There is
32019         no need for '--force' in most autotool invocations in a new
32020         tree.  Actually fail the whole test if any of the tools, or the
32021         configure or make stages fail.
32022
32023         Sync from Automake.
32024         * build-aux/gnupload: Revert last change.  Add pointer to upload
32025         instructions of the GNU Maintenance Instructions.
32026         Suggestion by Karl Berry.
32027
32028 2006-11-10  Jim Meyering  <jim@meyering.net>
32029
32030         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
32031
32032 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32033
32034         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
32035         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
32036         (bind_textdomain_codeset) [! ENABLE_NLS]:
32037         Evaluate all the arguments.  That way, callers get compatible behavior
32038         if the arguments have side effects.  Also, it avoids some GCC
32039         diagnostics in some cases; Joel E. Denny reported problems when Bison
32040         was configured with --enable-gcc-warnigs.
32041
32042 2006-11-10  Jim Meyering  <jim@meyering.net>
32043
32044         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
32045         relevant options in CFLAGS (like -O, -fno-inline) are taken into
32046         account.
32047
32048 2006-11-10  Jim Meyering  <jim@meyering.net>
32049
32050         * modules/inline: New file/module.
32051         * modules/xalloc (Files): Remove m4/inline.m4.
32052         (Depends-on): Add inline, instead.
32053         * modules/oset: Likewise.
32054         * modules/list: Likewise.
32055
32056 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32057
32058         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
32059         Problem reported by Matthew Woehlke.
32060
32061 2006-11-09  Bruno Haible  <bruno@clisp.org>
32062
32063         * lib/tempname.c (gen_tempname): Remove variant that invokes
32064         __gen_tempname.
32065         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
32066         __gen_tempname.
32067
32068 2006-11-08  Bruno Haible  <bruno@clisp.org>
32069
32070         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
32071         to 'yes' instead of 'cross-compiling'.
32072
32073 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
32074
32075         * lib/quotearg.h (quotearg_free): New decl.
32076         * lib/quotearg.c (quotearg_free): New function.
32077         (slot0, nslots, slotvec0, slotvec):
32078         Now file-scope so that quotearg_free can get at them.
32079
32080 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32081
32082         Sync from Automake.
32083         * build-aux/gnupload: Add missing 'gnu' to example URL.
32084         Report by Karl Berry.
32085
32086 2006-11-08  Bruno Haible  <bruno@clisp.org>
32087
32088         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
32089         Suggested by Paul Eggert.
32090
32091 2006-11-08  Jim Meyering  <jim@meyering.net>
32092
32093         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
32094         It's already included if !_LIBC.
32095         (fts_safe_changedir): Add a comment.
32096
32097 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
32098
32099         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
32100         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
32101         Matthew Woehlke.
32102
32103         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
32104         definitions up, to avoid colliding with change below.
32105         (static_inline) [HAVE_INLINE]: New macro.
32106         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
32107         Provide extern decls when !HAVE_INLINE.  Do not define unless
32108         static_inline is defined, either by us or by xmalloc.c.  Use
32109         static_inline rather than static inline.
32110         (XCALLOC): Optimize sizeof(T) = 1 case.
32111         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
32112
32113 2006-11-07  Bruno Haible  <bruno@clisp.org>
32114
32115         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
32116         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
32117         AC_C_INLINE.
32118         * modules/xalloc (Files): Add m4/inline.m4.
32119
32120 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32121
32122         * README: Fix typo.
32123         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
32124         (Miscellanous Notes): ...from this.
32125
32126 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
32127
32128         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
32129         Mention that offsetof should be used instead of sizeof.
32130         From Bruno Haible.
32131
32132 2006-11-07  Bruno Haible  <bruno@clisp.org>
32133
32134         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
32135
32136 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
32137
32138         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
32139         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
32140         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
32141         (gl_tree_add_before, gl_tree_add_after):
32142         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
32143         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
32144         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
32145         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
32146         (gl_linked_add_after, gl_linked_add_at): Likewise.
32147         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
32148         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
32149         (gl_tree_add_before, gl_tree_add_after): Likewise.
32150         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
32151         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
32152         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32153
32154 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32155
32156         * lib/gl_oset.h: Use C comment style, not C++ comment style.
32157
32158 2006-11-06  Bruno Haible  <bruno@clisp.org>
32159
32160         * m4/inline.m4: New file.
32161         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
32162         * modules/list (Files): Add m4/inline.m4.
32163         * modules/oset (Files): Likewise.
32164
32165 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
32166
32167         * lib/idcache.c: Include <stddef.h>, for offsetof.
32168         (struct userid.name): Change from char * to a flexible array member.
32169         All uses changed.
32170         * modules/idcache (Depends-on): Add flexmember.
32171
32172         * MODULES.html.sh (Core language properties): New module flexmember.
32173         * modules/flexmember, m4/flexmember.m4: New files.
32174
32175         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
32176         inline functions that are identical with the old xnmalloc_inline,
32177         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
32178         that we can avoid some unnecessary integer multiplications and
32179         divisions in the common case where the element size is known at
32180         compile time.
32181         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
32182         needed.
32183         (xnboundedmalloc): Remove.
32184         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
32185         arguments, for consistency with rest of this header.
32186         (xcharalloc): Rewrite using XNMALLOC.
32187         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
32188         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
32189         versions have been moved to lib/xalloc.h and renamed to be the
32190         non-*_inline versions.
32191         (xmalloc, xrealloc): Implement without reference to the xnmalloc
32192         and xnrealloc functions, since those functions are now inline and
32193         now call us.
32194         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
32195         renaming described above.
32196         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
32197         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
32198         captures the dependency in AC_C_INLINE.
32199
32200         New module canonicalize-lgpl, proposed by Charles Wilson in
32201         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
32202         with a few small changes afterwards.
32203         * MODULES.html.sh (File system functions): New module
32204         canonicalize-lgpl.
32205         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
32206         and canonicalize_file_name.
32207         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
32208         * modules/canonicalize-lgpl: New files.
32209
32210 2006-11-05  Bruno Haible  <bruno@clisp.org>
32211
32212         * gnulib-tool (func_import, func_create_testdir): Create directories
32213         also for files in subdirectories of lib/.
32214
32215 2006-11-05  Bruno Haible  <bruno@clisp.org>
32216
32217         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
32218         ANSI C compliant.
32219
32220 2006-11-03  Bruno Haible  <bruno@clisp.org>
32221
32222         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
32223         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
32224         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
32225         (xnboundedmalloc): New inline function.
32226         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
32227         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
32228         xmalloc.
32229         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
32230         xmalloc.
32231         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
32232         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
32233         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
32234         xmalloc.
32235         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
32236         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
32237         xmalloc.
32238         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
32239         gl_tree_add_after): Use XMALLOC instead of xmalloc.
32240         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
32241         xmalloc.
32242         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
32243         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
32244         gl_tree_add_after): Use XMALLOC instead of xmalloc.
32245         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
32246         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
32247         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
32248         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
32249
32250 2006-11-03  Bruno Haible  <bruno@clisp.org>
32251
32252         * lib/c-ctype.h [C++]: Define functions without name mangling.
32253         * lib/fwriteerror.h [C++]: Likewise.
32254         * lib/gcd.h [C++]: Likewise.
32255         * lib/linebreak.h [C++]: Likewise.
32256
32257 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32258
32259         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
32260         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
32261         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
32262         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
32263         Check for functions and headers just once.
32264         Check for declaration of canonicalize_file_name.
32265         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
32266
32267 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
32268
32269         * gnulib-tool (func_import): Fix typo in actioncmd.
32270
32271 2006-11-02  Bruno Haible  <bruno@clisp.org>
32272
32273         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
32274         newline sequence in the Makefile.am snippet as a space, like "make"
32275         does.
32276         Reported by Roger Persson <perrog@gmail.com>.
32277
32278 2006-11-01  Bruno Haible  <bruno@clisp.org>
32279
32280         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
32281         already declared in <string.h>.
32282         * lib/strcase.h (strncasecmp): Don't declare it if yes.
32283
32284 2006-11-01  Bruno Haible  <bruno@clisp.org>
32285
32286         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
32287         * lib/strcase.h: Include <string.h>.
32288         (strcasecmp): Define to rpl_strcasecmp here.
32289
32290 2006-11-01  Bruno Haible  <bruno@clisp.org>
32291
32292         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
32293
32294 2006-11-01  Eric Blake  <ebb9@byu.net>
32295
32296         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
32297
32298         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
32299
32300 2006-10-29  Bruno Haible  <bruno@clisp.org>
32301
32302         Make it compile in C++ mode.
32303         * lib/full-write.c (full_rw): Add a cast.
32304
32305 2006-11-01  Bruno Haible  <bruno@clisp.org>
32306
32307         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
32308         be POSIX compliant.
32309         Reported by Roger Persson <perrog@gmail.com>.
32310
32311 2006-11-01  Eric Blake  <ebb9@byu.net>
32312
32313         * lib/getopt_.h: Fix comments.
32314
32315 2006-10-31  Eric Blake  <ebb9@byu.net>
32316
32317         * modules/tmpdir (Depends-on): Add sys_stat.
32318         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
32319         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
32320         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
32321         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
32322         tempname.
32323
32324 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
32325
32326         Avoid some C++ diagnostics reported by Bruno Haible.
32327         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
32328         xmalloc.
32329         (quotearg_alloc): Use xcharalloc rather than xmalloc.
32330         (struct slotvec): Move to top level.
32331         (quotearg_n_options): Rewrite to avoid xmalloc.
32332         * lib/xalloc.h (xcharalloc): New function.
32333         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
32334         [defined __cplusplus]: Add function template that provides result
32335         type propagation.  This part of the change is from Bruno Haible.
32336
32337 2006-10-29  Bruno Haible  <bruno@clisp.org>
32338
32339         Make it compile in C++ mode.
32340         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
32341         * lib/strnlen1.c (strnlen1): Cast memchr result.
32342         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
32343         * lib/clean-temp.c (string_equals, string_hash): Add casts.
32344         (create_temp_dir): Rename local variable 'template'.
32345         (compile_csharp_using_sscli): Add cast.
32346         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
32347         * lib/findprog.c (find_in_path): Likewise.
32348         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
32349         * lib/wait-process.c (register_slave_subprocess): Likewise.
32350
32351 2006-10-22  Bruno Haible  <bruno@clisp.org>
32352
32353         * modules/tsearch: New file.
32354         * lib/tsearch.h: New file.
32355         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
32356         * m4/tsearch.m4: New file.
32357         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
32358
32359 2006-10-29  Eric Blake  <ebb9@byu.net>
32360
32361         * lib/arcfour.c: Assume config.h.
32362         * lib/arctwo.c: Likewise.
32363         * lib/base64.c: Likewise.
32364         * lib/check-version.c: Likewise.
32365         * lib/crc.c: Likewise.
32366         * lib/des.c: Likewise.
32367         * lib/gc-gnulib.c: Likewise.
32368         * lib/gc-libgcrypt.c: Likewise.
32369         * lib/gc-pbkdf2-sha1.c: Likewise.
32370         * lib/getaddrinfo.c: Likewise.
32371         * lib/getdelim.c: Likewise.
32372         * lib/getline.c: Likewise.
32373         * lib/hmac-md5.c: Likewise.
32374         * lib/hmac-sha1.c: Likewise.
32375         * lib/iconvme.c: Likewise.
32376         * lib/md2.c: Likewise.
32377         * lib/md4.c: Likewise.
32378         * lib/memxor.c: Likewise.
32379         * lib/read-file.c: Likewise.
32380         * lib/readline.c: Likewise.
32381         * lib/rijndael-alg-fst.c: Likewise.
32382         * lib/rijndael-api-fst.c: Likewise.
32383         * lib/xgetdomainname.c: Likewise.
32384
32385 2006-10-28  Eric Blake  <ebb9@byu.net>
32386
32387         * lib/xstrndup.c: Assume config.h.
32388
32389 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
32390
32391         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
32392         stat-macros.h is now for our own macros, whereas stat_h is for
32393         macros in the <sys/stat.h> name space.
32394         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
32395         (STAT_MACROS_H): Remove.
32396         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
32397         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
32398         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
32399         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
32400         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
32401         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
32402         Move these macros to ...
32403         * lib/stat_.h: here.  Don't include stat-macros.h.
32404         * lib/canonicalize.c: Don't include stat-macros.h.
32405         * lib/chown.c: Likewise.
32406         * lib/euidaccess.c: Likewise.
32407         * lib/file-type.c: Likewise.
32408         * lib/filemode.c: Likewise.
32409         * lib/glob.c: Likewise.
32410         * lib/isapipe.c: Likewise.
32411         * lib/lchown.c: Likewise.
32412         * lib/lstat.c: Likewise.
32413         * lib/mkdir-p.c: Likewise.
32414         * lib/rmdir.c: Likewise.
32415         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
32416         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
32417         unless mkdir isn't declared, to speed up 'configure'.
32418         Always create sys/stat.h, since it's unlikely any real sys/stat.h
32419         would define all the S_* symbols.
32420         * modules/canonicalize (Depends-on):
32421         Depend on sys_stat, not stat-macros.
32422         * modules/chown: Likewise.
32423         * modules/euidaccess: Likewise.
32424         * modules/filemode: Likewise.
32425         * modules/file-type: Likewise.
32426         * modules/glob: Likewise.
32427         * modules/isapipe: Likewise.
32428         * modules/lchown: Likewise.
32429         * modules/lstat: Likewise.
32430         * modules/mkancesdirs: Likewise.
32431         * modules/rmdir: Likewise.
32432         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
32433         * modules/modechange: Likewise.
32434         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
32435         (configure.ac): Remove gl_STAT_MACROS.
32436         * modules/sys_stat (Depends-on): Remove stat-macros.
32437
32438 2006-10-27  Bruno Haible  <bruno@clisp.org>
32439
32440         * m4/signed.m4: Remove file.
32441         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
32442         invocation.
32443         * modules/vasnprintf (Files): Remove m4/signed.m4.
32444
32445 2006-10-27  Bruno Haible  <bruno@clisp.org>
32446
32447         Update to GNU gettext 0.16.
32448         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
32449         m4/inttypes-h.m4, m4/signed.m4.
32450         * m4/gettext.m4: Update to GNU gettext 0.16.
32451         * m4/intl.m4: New file, from GNU gettext.
32452         * m4/intldir.m4: New file, from GNU gettext.
32453         * config/srclist.txt: Update
32454
32455 2006-10-27  Eric Blake  <ebb9@byu.net>
32456
32457         * MODULES.html.sh: Document tempname.
32458         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
32459         dependencies.
32460         (Files): Move lib/tempname.c...
32461         * modules/tempname: ...to this new module.
32462         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
32463         (gl_PREREQ_TEMPNAME): Move...
32464         * m4/tempname.m4: ...to this new file.
32465         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
32466         * modules/sys_stat (Depends-on): Add stat-macros.
32467         * lib/stat_.h (includes): Pick up stat macros.
32468         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
32469         if stat macros are broken.
32470         * lib/tempname.c (includes): No need to include "stat-macros.h".
32471         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
32472         (direxists, __path_search) [!_LIBC]: Don't compile these in
32473         gnulib; the tmpdir module covers that.
32474         * lib/tempname.h: New file.
32475
32476 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
32477
32478         * COPYING: Explain how gnulib-tool converts licence headers.
32479         Almost all wording by Eric Blake.
32480
32481 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
32482
32483         * lib/mbchar.h (is_basic_table): Make read-only.
32484         * lib/mbchar.c (is_basic_table): Likewise.
32485         Reported by John Darrington.
32486
32487 2006-10-25  Bruno Haible  <bruno@clisp.org>
32488
32489         * lib/progname.h (set_program_name): Undefine before defining.
32490
32491 2006-10-25  Bruno Haible  <bruno@clisp.org>
32492
32493         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
32494         false for non-gcc C++ compilers.
32495         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32496
32497 2006-10-24  Bruno Haible  <bruno@clisp.org>
32498
32499         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
32500         iconv implementations like Irix iconv.
32501
32502 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32503
32504         * modules/vararrays: New file.
32505         * m4/vararrays.m4: New file, taken from diffutils.
32506         * MODULES.html.sh: New module vararrays.
32507
32508 2006-10-24  Karl Berry  <karl@gnu.org>
32509
32510         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
32511         Don't call GNU Unix.
32512
32513 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32514
32515         * users.txt: Add Libtool.
32516
32517         Sync from Libtool:
32518
32519         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32520
32521         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
32522         to gnulib's policy of including config.h unconditionally.
32523
32524 2006-10-24  Bruno Haible  <bruno@clisp.org>
32525
32526         * modules/wcwidth (Files): Add m4/wint_t.m4.
32527         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
32528         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
32529
32530 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32531
32532         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
32533         to pacify GCC with some -W flags enabled.  Problem reported by
32534         Bruno Haible.
32535
32536 2006-10-24  Jim Meyering  <jim@meyering.net>
32537
32538         * MODULES.html.sh: Remove uinttostr.  It's not a module.
32539         Reported by Karl Berry.
32540
32541 2006-10-23  Bruno Haible  <bruno@clisp.org>
32542
32543         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
32544
32545 2006-10-24  Bruno Haible  <bruno@clisp.org>
32546
32547         * lib/gl_list.h: Use C comment style, not C++ comment style.
32548
32549 2006-10-23  Eric Blake  <ebb9@byu.net>
32550
32551         * lib/getaddrinfo.c (includes): Add missing include.
32552
32553 2006-10-23  Bruno Haible  <bruno@clisp.org>
32554             Paul Eggert  <eggert@cs.ucla.edu>
32555
32556         Ability to rename obstack_free.
32557         * lib/obstack.h (__obstack_free): New macro. Declare instead of
32558         obstack_free.
32559         (obstack_free): Invoke the __obstack_free macro.
32560         * lib/obstack.c (obstack_free): Use __obstack_free macro.
32561
32562 2006-10-23  Bruno Haible  <bruno@clisp.org>
32563             Paul Eggert  <eggert@cs.ucla.edu>
32564
32565         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
32566         __argc, __argv from the declaration. (They are defined as macros on
32567         mingw.)
32568
32569 2006-10-22  Bruno Haible  <bruno@clisp.org>
32570
32571         * doc/gnulib-intro.texi: New file.
32572         * doc/gnulib.texi: Include it.
32573
32574 2006-10-21  Bruno Haible  <bruno@clisp.org>
32575
32576         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
32577         "Introduction", "Miscellanous Notes", "Particular Modules".
32578
32579 2006-10-21  Bruno Haible  <bruno@clisp.org>
32580
32581         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32582         Change mostlyclean-local rule to avoid sh syntax error from bash
32583         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
32584
32585 2006-10-23  Jim Meyering  <jim@meyering.net>
32586
32587         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
32588         in place of snprintf.
32589
32590         * modules/inttostr (Files): Add lib/uinttostr.c.
32591         * lib/uinttostr.c (inttostr): New file/function.
32592         * lib/inttostr.h (uinttostr): Declare.
32593         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
32594         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
32595         Add uinttostr.
32596         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
32597
32598 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
32599
32600         * lib/canonicalize.c (ELOOP): Define if not already defined.
32601         Problem reported by Bruno Haible in
32602         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
32603
32604 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
32605
32606         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
32607         Problem reported by Perry Smith and Ville Laurikari.
32608
32609         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
32610         uses.
32611
32612 2006-10-19  Bruno Haible  <bruno@clisp.org>
32613
32614         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
32615         for mingw.
32616
32617 2006-10-19  Bruno Haible  <bruno@clisp.org>
32618
32619         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
32620         Needed for mingw.
32621
32622 2006-10-19  Bruno Haible  <bruno@clisp.org>
32623
32624         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
32625
32626 2006-10-19  Bruno Haible  <bruno@clisp.org>
32627
32628         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
32629         it.
32630
32631 2006-10-19  Bruno Haible  <bruno@clisp.org>
32632
32633         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
32634         invocation.
32635
32636 2006-10-19  Bruno Haible  <bruno@clisp.org>
32637
32638         * gnulib-tool (func_create_testdir): Don't include ftruncate and
32639         mountlist by default.
32640
32641 2006-10-16  Bruno Haible  <bruno@clisp.org>
32642
32643         * lib/c-strstr.c: Include c-strstr.h.
32644
32645 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
32646
32647         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
32648         in a slash.
32649
32650 2006-10-18  Bruno Haible  <bruno@clisp.org>
32651
32652         * lib/lock.h [C++]: Wrap definitions in extern "C".
32653
32654 2006-10-18  Bruno Haible  <bruno@clisp.org>
32655
32656         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
32657         gl_LIBOBJS list.
32658
32659 2006-10-18  Bruno Haible  <bruno@clisp.org>
32660
32661         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
32662
32663 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
32664
32665         * lib/xstrtol.h: Include gettext.h.
32666         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
32667         Problem reported by Eric Blake.
32668         * modules/xstrtol (Depends-on): Add gettext-h.
32669
32670 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
32671
32672         * lib/strftime.c (advance): New macro.
32673         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
32674         incomplete type, so you can't add 0 to it.  Problem and patch
32675         reported by Eelco Dolstra for dietlibc.
32676
32677 2006-10-18  Jim Meyering  <jim@meyering.net>
32678
32679         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
32680         type for a local, and rename it: s/up/user_proc/.
32681
32682 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
32683
32684         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
32685         READ_UTMP_USER_PROCESS.
32686         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
32687
32688 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
32689
32690         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
32691         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
32692
32693 2006-10-17  Eric Blake  <ebb9@byu.net>
32694
32695         * lib/sigprocmask.c (sigprocmask): Fix typo.
32696
32697         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
32698
32699         * modules/clean-temp (Makefile.am): Don't add to make output...
32700         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
32701         config.h.
32702
32703 2006-10-17  Bruno Haible  <bruno@clisp.org>
32704
32705         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
32706         differently if DEFAULT_TEXT_DOMAIN is set.
32707
32708 2006-10-16  Bruno Haible  <bruno@clisp.org>
32709
32710         * lib/clean-temp.c: Include fwriteerror.h.
32711
32712 2006-10-16  Bruno Haible  <bruno@clisp.org>
32713
32714         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
32715
32716 2006-10-16  Bruno Haible  <bruno@clisp.org>
32717
32718         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
32719         * lib/sigprocmask.h: Include <sys/types.h>.
32720         (sigset_t): Use the system's definition if present.
32721
32722 2006-10-17  Eric Blake  <ebb9@byu.net>
32723
32724         * lib/xvasprintf.c (includes): Assume config.h.
32725         * lib/xasprintf.c (includes): Likewise.
32726
32727 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
32728
32729         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
32730         at least as wide as intmax_t.
32731
32732 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
32733
32734         (Imported from Automake.)
32735         * build-aux/gnupload: Update to version 1.1 of directive file.
32736
32737 2006-10-16  Eric Blake  <ebb9@byu.net>
32738
32739         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
32740         match Automake 1.10a.
32741
32742 2006-10-14  Bruno Haible  <bruno@clisp.org>
32743
32744         * modules/sigprocmask: New file.
32745         * lib/sigprocmask.h: New file.
32746         * lib/sigprocmask.c: New file.
32747         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
32748         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
32749         request sigprocmask.o.
32750         (gl_PREREQ_SIGPROCMASK): New macro.
32751         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
32752         (Depends-on): Add sigprocmask.
32753         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
32754         gt_SIGNALBLOCKING. Test for 'raise' only once.
32755         * lib/fatal-signal.c: Include sigprocmask.h.
32756         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
32757         unblock_fatal_signals): Define always.
32758         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32759         sigprocmask.
32760
32761 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
32762
32763         Sync from Automake.
32764         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
32765         which incorrectly sets the mode of an existing destination
32766         directory.  In some cases the unpatched install-sh could do the
32767         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
32768         system.  We hope this is rare in practice, but it's clearly worth
32769         fixing.  Problem reported by Alex Unleashed in
32770         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
32771         Also, don't bother to check for -m bugs unless we're using -m;
32772         suggested by Stepan Kasal.
32773
32774 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32775
32776         Sync from Automake.
32777         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
32778         `-c' flag, so they appear at the same position as in %FASTDEP%
32779         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
32780         which ignores unknown options only after the first non-option.
32781         Bug report against M4 by Nelson H. F. Beebe.
32782
32783 2006-10-13  Jim Meyering  <jim@meyering.net>
32784
32785         Fix a bug in yesterday's change.
32786         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
32787         p->fts_statp->st_dev would be used uninitialized.
32788         Ensures that we always call fts_stat on the very first entry.
32789         Miklos Szeredi reported that find -xdev stopped working.
32790
32791 2006-10-12  Bruno Haible  <bruno@clisp.org>
32792
32793         * gnulib-tool (func_get_automake_snippet): Append an automatically
32794         computed EXTRA_DIST augmentation.
32795         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
32796         * modules/alloca-opt (Makefile.am): Likewise.
32797         * modules/allocsa (Makefile.am): Likewise.
32798         * modules/arcfour (Makefile.am): Likewise.
32799         * modules/arctwo (Makefile.am): Likewise.
32800         * modules/argmatch (Makefile.am): Likewise.
32801         * modules/argz (Makefile.am): Likewise.
32802         * modules/atexit (Makefile.am): Likewise.
32803         * modules/backupfile (Makefile.am): Likewise.
32804         * modules/byteswap (Makefile.am): Likewise.
32805         * modules/c-strtod (Makefile.am): Likewise.
32806         * modules/c-strtold (Makefile.am): Likewise.
32807         * modules/calloc (Makefile.am): Likewise.
32808         * modules/canon-host (Makefile.am): Likewise.
32809         * modules/canonicalize (Makefile.am): Likewise.
32810         * modules/chdir-long (Makefile.am): Likewise.
32811         * modules/chdir-safer (Makefile.am): Likewise.
32812         * modules/check-version (Makefile.am): Likewise.
32813         * modules/chown (Makefile.am): Likewise.
32814         * modules/cloexec (Makefile.am): Likewise.
32815         * modules/close-stream (Makefile.am): Likewise.
32816         * modules/closeout (Makefile.am): Likewise.
32817         * modules/crc (Makefile.am): Likewise.
32818         * modules/csharpexec (Makefile.am): Likewise.
32819         * modules/cycle-check (Makefile.am): Likewise.
32820         * modules/des (Makefile.am): Likewise.
32821         * modules/dev-ino (Makefile.am): Likewise.
32822         * modules/dirfd (Makefile.am): Likewise.
32823         * modules/dirname (Makefile.am): Likewise.
32824         * modules/dup2 (Makefile.am): Likewise.
32825         * modules/eealloc (Makefile.am): Likewise.
32826         * modules/error (Makefile.am): Likewise.
32827         * modules/euidaccess (Makefile.am): Likewise.
32828         * modules/exclude (Makefile.am): Likewise.
32829         * modules/exitfail (Makefile.am): Likewise.
32830         * modules/fcntl-safer (Makefile.am): Likewise.
32831         * modules/fcntl (Makefile.am): Likewise.
32832         * modules/file-type (Makefile.am): Likewise.
32833         * modules/fileblocks (Makefile.am): Likewise.
32834         * modules/filemode (Makefile.am): Likewise.
32835         * modules/filenamecat (Makefile.am): Likewise.
32836         * modules/fnmatch (Makefile.am): Likewise.
32837         * modules/fopen-safer (Makefile.am): Likewise.
32838         * modules/fpending (Makefile.am): Likewise.
32839         * modules/fprintftime (Makefile.am): Likewise.
32840         * modules/free (Makefile.am): Likewise.
32841         * modules/fsusage (Makefile.am): Likewise.
32842         * modules/ftruncate (Makefile.am): Likewise.
32843         * modules/fts (Makefile.am): Likewise.
32844         * modules/gc-arcfour (Makefile.am): Likewise.
32845         * modules/gc-des (Makefile.am): Likewise.
32846         * modules/gc-hmac-md5 (Makefile.am): Likewise.
32847         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
32848         * modules/gc-md4 (Makefile.am): Likewise.
32849         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
32850         * modules/gc-sha1 (Makefile.am): Likewise.
32851         * modules/gc (Makefile.am): Likewise.
32852         * modules/getaddrinfo (Makefile.am): Likewise.
32853         * modules/getcwd (Makefile.am): Likewise.
32854         * modules/getdelim (Makefile.am): Likewise.
32855         * modules/getdomainname (Makefile.am): Likewise.
32856         * modules/getgroups (Makefile.am): Likewise.
32857         * modules/gethostname (Makefile.am): Likewise.
32858         * modules/gethrxtime (Makefile.am): Likewise.
32859         * modules/getline (Makefile.am): Likewise.
32860         * modules/getloadavg (Makefile.am): Likewise.
32861         * modules/getlogin_r (Makefile.am): Likewise.
32862         * modules/getndelim2 (Makefile.am): Likewise.
32863         * modules/getopt (Makefile.am): Likewise.
32864         * modules/getpagesize (Makefile.am): Likewise.
32865         * modules/getpass-gnu (Makefile.am): Likewise.
32866         * modules/getpass (Makefile.am): Likewise.
32867         * modules/getsubopt (Makefile.am): Likewise.
32868         * modules/gettime (Makefile.am): Likewise.
32869         * modules/gettimeofday (Makefile.am): Likewise.
32870         * modules/getugroups (Makefile.am): Likewise.
32871         * modules/getusershell (Makefile.am): Likewise.
32872         * modules/glob (Makefile.am): Likewise.
32873         * modules/group-member (Makefile.am): Likewise.
32874         * modules/hard-locale (Makefile.am): Likewise.
32875         * modules/hash (Makefile.am): Likewise.
32876         * modules/hmac-md5 (Makefile.am): Likewise.
32877         * modules/hmac-sha1 (Makefile.am): Likewise.
32878         * modules/human (Makefile.am): Likewise.
32879         * modules/idcache (Makefile.am): Likewise.
32880         * modules/imaxabs (Makefile.am): Likewise.
32881         * modules/imaxdiv (Makefile.am): Likewise.
32882         * modules/inet_ntop (Makefile.am): Likewise.
32883         * modules/inet_pton (Makefile.am): Likewise.
32884         * modules/intprops (Makefile.am): Likewise.
32885         * modules/inttostr (Makefile.am): Likewise.
32886         * modules/inttypes (Makefile.am): Likewise.
32887         * modules/isapipe (Makefile.am): Likewise.
32888         * modules/javaversion (Makefile.am): Likewise.
32889         * modules/lchmod (Makefile.am): Likewise.
32890         * modules/lchown (Makefile.am): Likewise.
32891         * modules/localcharset (Makefile.am): Likewise.
32892         * modules/long-options (Makefile.am): Likewise.
32893         * modules/lstat (Makefile.am): Likewise.
32894         * modules/malloc (Makefile.am): Likewise.
32895         * modules/mathl (Makefile.am): Likewise.
32896         * modules/mbchar (Makefile.am): Likewise.
32897         * modules/md2 (Makefile.am): Likewise.
32898         * modules/md4 (Makefile.am): Likewise.
32899         * modules/md5 (Makefile.am): Likewise.
32900         * modules/memcasecmp (Makefile.am): Likewise.
32901         * modules/memchr (Makefile.am): Likewise.
32902         * modules/memcmp (Makefile.am): Likewise.
32903         * modules/memcoll (Makefile.am): Likewise.
32904         * modules/memcpy (Makefile.am): Likewise.
32905         * modules/memmem (Makefile.am): Likewise.
32906         * modules/memmove (Makefile.am): Likewise.
32907         * modules/mempcpy (Makefile.am): Likewise.
32908         * modules/memrchr (Makefile.am): Likewise.
32909         * modules/memset (Makefile.am): Likewise.
32910         * modules/memxor (Makefile.am): Likewise.
32911         * modules/mkancesdirs (Makefile.am): Likewise.
32912         * modules/mkdir-p (Makefile.am): Likewise.
32913         * modules/mkdir (Makefile.am): Likewise.
32914         * modules/mkdtemp (Makefile.am): Likewise.
32915         * modules/mkstemp (Makefile.am): Likewise.
32916         * modules/mktime (Makefile.am): Likewise.
32917         * modules/modechange (Makefile.am): Likewise.
32918         * modules/mountlist (Makefile.am): Likewise.
32919         * modules/nanosleep (Makefile.am): Likewise.
32920         * modules/obstack (Makefile.am): Likewise.
32921         * modules/openat (Makefile.am): Likewise.
32922         * modules/pagealign_alloc (Makefile.am): Likewise.
32923         * modules/pathmax (Makefile.am): Likewise.
32924         * modules/physmem (Makefile.am): Likewise.
32925         * modules/poll (Makefile.am): Likewise.
32926         * modules/posixtm (Makefile.am): Likewise.
32927         * modules/posixver (Makefile.am): Likewise.
32928         * modules/putenv (Makefile.am): Likewise.
32929         * modules/quote (Makefile.am): Likewise.
32930         * modules/quotearg (Makefile.am): Likewise.
32931         * modules/raise (Makefile.am): Likewise.
32932         * modules/read-file (Makefile.am): Likewise.
32933         * modules/readline (Makefile.am): Likewise.
32934         * modules/readlink (Makefile.am): Likewise.
32935         * modules/readtokens (Makefile.am): Likewise.
32936         * modules/readutmp (Makefile.am): Likewise.
32937         * modules/realloc (Makefile.am): Likewise.
32938         * modules/regex (Makefile.am): Likewise.
32939         * modules/rename-dest-slash (Makefile.am): Likewise.
32940         * modules/rename (Makefile.am): Likewise.
32941         * modules/rijndael (Makefile.am): Likewise.
32942         * modules/rmdir (Makefile.am): Likewise.
32943         * modules/rpmatch (Makefile.am): Likewise.
32944         * modules/safe-read (Makefile.am): Likewise.
32945         * modules/safe-write (Makefile.am): Likewise.
32946         * modules/same-inode (Makefile.am): Likewise.
32947         * modules/same (Makefile.am): Likewise.
32948         * modules/save-cwd (Makefile.am): Likewise.
32949         * modules/savedir (Makefile.am): Likewise.
32950         * modules/setenv (Makefile.am): Likewise.
32951         * modules/settime (Makefile.am): Likewise.
32952         * modules/sha1 (Makefile.am): Likewise.
32953         * modules/sig2str (Makefile.am): Likewise.
32954         * modules/snprintf (Makefile.am): Likewise.
32955         * modules/stat-macros (Makefile.am): Likewise.
32956         * modules/stat-time (Makefile.am): Likewise.
32957         * modules/stdbool (Makefile.am): Likewise.
32958         * modules/stdint (Makefile.am): Likewise.
32959         * modules/stdlib-safer (Makefile.am): Likewise.
32960         * modules/stpcpy (Makefile.am): Likewise.
32961         * modules/stpncpy (Makefile.am): Likewise.
32962         * modules/strcase (Makefile.am): Likewise.
32963         * modules/strcasestr (Makefile.am): Likewise.
32964         * modules/strchrnul (Makefile.am): Likewise.
32965         * modules/strcspn (Makefile.am): Likewise.
32966         * modules/strdup (Makefile.am): Likewise.
32967         * modules/strerror (Makefile.am): Likewise.
32968         * modules/strftime (Makefile.am): Likewise.
32969         * modules/strndup (Makefile.am): Likewise.
32970         * modules/strnlen (Makefile.am): Likewise.
32971         * modules/strpbrk (Makefile.am): Likewise.
32972         * modules/strsep (Makefile.am): Likewise.
32973         * modules/strstr (Makefile.am): Likewise.
32974         * modules/strtod (Makefile.am): Likewise.
32975         * modules/strtoimax (Makefile.am): Likewise.
32976         * modules/strtok_r (Makefile.am): Likewise.
32977         * modules/strtol (Makefile.am): Likewise.
32978         * modules/strtoll (Makefile.am): Likewise.
32979         * modules/strtoul (Makefile.am): Likewise.
32980         * modules/strtoull (Makefile.am): Likewise.
32981         * modules/strtoumax (Makefile.am): Likewise.
32982         * modules/strverscmp (Makefile.am): Likewise.
32983         * modules/sys_socket (Makefile.am): Likewise.
32984         * modules/sys_stat (Makefile.am): Likewise.
32985         * modules/sysexits (Makefile.am): Likewise.
32986         * modules/time_r (Makefile.am): Likewise.
32987         * modules/timegm (Makefile.am): Likewise.
32988         * modules/timespec (Makefile.am): Likewise.
32989         * modules/tmpfile-safer (Makefile.am): Likewise.
32990         * modules/trim (Makefile.am): Likewise.
32991         * modules/unistd-safer (Makefile.am): Likewise.
32992         * modules/unlinkdir (Makefile.am): Likewise.
32993         * modules/unlocked-io (Makefile.am): Likewise.
32994         * modules/userspec (Makefile.am): Likewise.
32995         * modules/utime (Makefile.am): Likewise.
32996         * modules/utimecmp (Makefile.am): Likewise.
32997         * modules/utimens (Makefile.am): Likewise.
32998         * modules/vasnprintf (Makefile.am): Likewise.
32999         * modules/vasprintf (Makefile.am): Likewise.
33000         * modules/vsnprintf (Makefile.am): Likewise.
33001         * modules/xalloc (Makefile.am): Likewise.
33002         * modules/xgetcwd (Makefile.am): Likewise.
33003         * modules/xnanosleep (Makefile.am): Likewise.
33004         * modules/xreadlink (Makefile.am): Likewise.
33005         * modules/xstrtod (Makefile.am): Likewise.
33006         * modules/xstrtol (Makefile.am): Likewise.
33007         * modules/xstrtold (Makefile.am): Likewise.
33008         * modules/yesno (Makefile.am): Likewise.
33009         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
33010
33011 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33012
33013         * modules/error (Makefile.am): Distribute files through
33014         EXTRA_DIST, not lib_SOURCES.
33015
33016 2006-10-12  Eric Blake  <ebb9@byu.net>
33017
33018         * modules/error (Makefile.am): Distribute files in /lib.
33019         * modules/obstack (Makefile.am): Likewise.
33020
33021 2006-10-12  Bruno Haible  <bruno@clisp.org>
33022
33023         * modules/acl (Makefile.am): Distribute all files in lib/ through
33024         EXTRA_DIST.
33025         * modules/arcfour (Makefile.am): Likewise.
33026         * modules/arctwo (Makefile.am): Likewise.
33027         * modules/argmatch (Makefile.am): Likewise.
33028         * modules/argz (Makefile.am): Likewise.
33029         * modules/atexit (Makefile.am): Likewise.
33030         * modules/backupfile (Makefile.am): Likewise.
33031         * modules/c-strtod (Makefile.am): Likewise.
33032         * modules/c-strtold (Makefile.am): Likewise.
33033         * modules/calloc (Makefile.am): Likewise.
33034         * modules/canon-host (Makefile.am): Likewise.
33035         * modules/canonicalize (Makefile.am): Likewise.
33036         * modules/chdir-long (Makefile.am): Likewise.
33037         * modules/chdir-safer (Makefile.am): Likewise.
33038         * modules/check-version (Makefile.am): Likewise.
33039         * modules/chown (Makefile.am): Likewise.
33040         * modules/cloexec (Makefile.am): Likewise.
33041         * modules/close-stream (Makefile.am): Likewise.
33042         * modules/closeout (Makefile.am): Likewise.
33043         * modules/crc (Makefile.am): Likewise.
33044         * modules/cycle-check (Makefile.am): Likewise.
33045         * modules/des (Makefile.am): Likewise.
33046         * modules/dirfd (Makefile.am): Likewise.
33047         * modules/dirname (Makefile.am): Likewise.
33048         * modules/dup2 (Makefile.am): Likewise.
33049         * modules/euidaccess (Makefile.am): Likewise.
33050         * modules/exclude (Makefile.am): Likewise.
33051         * modules/exitfail (Makefile.am): Likewise.
33052         * modules/fcntl-safer (Makefile.am): Likewise.
33053         * modules/file-type (Makefile.am): Likewise.
33054         * modules/fileblocks (Makefile.am): Likewise.
33055         * modules/filemode (Makefile.am): Likewise.
33056         * modules/filenamecat (Makefile.am): Likewise.
33057         * modules/fnmatch (Makefile.am): Likewise.
33058         * modules/fopen-safer (Makefile.am): Likewise.
33059         * modules/fpending (Makefile.am): Likewise.
33060         * modules/fprintftime (Makefile.am): Likewise.
33061         * modules/free (Makefile.am): Likewise.
33062         * modules/fsusage (Makefile.am): Likewise.
33063         * modules/ftruncate (Makefile.am): Likewise.
33064         * modules/fts (Makefile.am): Likewise.
33065         * modules/gc (Makefile.am): Likewise.
33066         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
33067         * modules/getaddrinfo (Makefile.am): Likewise.
33068         * modules/getcwd (Makefile.am): Likewise.
33069         * modules/getdelim (Makefile.am): Likewise.
33070         * modules/getdomainname (Makefile.am): Likewise.
33071         * modules/getgroups (Makefile.am): Likewise.
33072         * modules/gethostname (Makefile.am): Likewise.
33073         * modules/gethrxtime (Makefile.am): Likewise.
33074         * modules/getline (Makefile.am): Likewise.
33075         * modules/getloadavg (Makefile.am): Likewise.
33076         * modules/getlogin_r (Makefile.am): Likewise.
33077         * modules/getopt (Makefile.am): Likewise.
33078         * modules/getpass (Makefile.am): Likewise.
33079         * modules/getpass-gnu (Makefile.am): Likewise.
33080         * modules/getsubopt (Makefile.am): Likewise.
33081         * modules/gettime (Makefile.am): Likewise.
33082         * modules/gettimeofday (Makefile.am): Likewise.
33083         * modules/getugroups (Makefile.am): Likewise.
33084         * modules/getusershell (Makefile.am): Likewise.
33085         * modules/glob (Makefile.am): Likewise.
33086         * modules/group-member (Makefile.am): Likewise.
33087         * modules/hard-locale (Makefile.am): Likewise.
33088         * modules/hash (Makefile.am): Likewise.
33089         * modules/hmac-md5 (Makefile.am): Likewise.
33090         * modules/hmac-sha1 (Makefile.am): Likewise.
33091         * modules/human (Makefile.am): Likewise.
33092         * modules/idcache (Makefile.am): Likewise.
33093         * modules/imaxabs (Makefile.am): Likewise.
33094         * modules/imaxdiv (Makefile.am): Likewise.
33095         * modules/inet_ntop (Makefile.am): Likewise.
33096         * modules/inet_pton (Makefile.am): Likewise.
33097         * modules/inttostr (Makefile.am): Likewise.
33098         * modules/isapipe (Makefile.am): Likewise.
33099         * modules/lchown (Makefile.am): Likewise.
33100         * modules/long-options (Makefile.am): Likewise.
33101         * modules/lstat (Makefile.am): Likewise.
33102         * modules/malloc (Makefile.am): Likewise.
33103         * modules/mathl (Makefile.am): Likewise.
33104         * modules/mbchar (Makefile.am): Likewise.
33105         * modules/md2 (Makefile.am): Likewise.
33106         * modules/md4 (Makefile.am): Likewise.
33107         * modules/md5 (Makefile.am): Likewise.
33108         * modules/memcasecmp (Makefile.am): Likewise.
33109         * modules/memchr (Makefile.am): Likewise.
33110         * modules/memcmp (Makefile.am): Likewise.
33111         * modules/memcoll (Makefile.am): Likewise.
33112         * modules/memcpy (Makefile.am): Likewise.
33113         * modules/memmem (Makefile.am): Likewise.
33114         * modules/memmove (Makefile.am): Likewise.
33115         * modules/mempcpy (Makefile.am): Likewise.
33116         * modules/memrchr (Makefile.am): Likewise.
33117         * modules/memset (Makefile.am): Likewise.
33118         * modules/memxor (Makefile.am): Likewise.
33119         * modules/mkancesdirs (Makefile.am): Likewise.
33120         * modules/mkdir (Makefile.am): Likewise.
33121         * modules/mkdir-p (Makefile.am): Likewise.
33122         * modules/mkdtemp (Makefile.am): Likewise.
33123         * modules/mkstemp (Makefile.am): Likewise.
33124         * modules/mktime (Makefile.am): Likewise.
33125         * modules/modechange (Makefile.am): Likewise.
33126         * modules/mountlist (Makefile.am): Likewise.
33127         * modules/nanosleep (Makefile.am): Likewise.
33128         * modules/openat (Makefile.am): Likewise.
33129         * modules/pagealign_alloc (Makefile.am): Likewise.
33130         * modules/physmem (Makefile.am): Likewise.
33131         * modules/poll (Makefile.am): Likewise.
33132         * modules/posixtm (Makefile.am): Likewise.
33133         * modules/posixver (Makefile.am): Likewise.
33134         * modules/putenv (Makefile.am): Likewise.
33135         * modules/quote (Makefile.am): Likewise.
33136         * modules/quotearg (Makefile.am): Likewise.
33137         * modules/raise (Makefile.am): Likewise.
33138         * modules/read-file (Makefile.am): Likewise.
33139         * modules/readline (Makefile.am): Likewise.
33140         * modules/readlink (Makefile.am): Likewise.
33141         * modules/readtokens (Makefile.am): Likewise.
33142         * modules/readutmp (Makefile.am): Likewise.
33143         * modules/realloc (Makefile.am): Likewise.
33144         * modules/regex (Makefile.am): Likewise.
33145         * modules/rename (Makefile.am): Likewise.
33146         * modules/rename-dest-slash (Makefile.am): Likewise.
33147         * modules/rijndael (Makefile.am): Likewise.
33148         * modules/rmdir (Makefile.am): Likewise.
33149         * modules/rpmatch (Makefile.am): Likewise.
33150         * modules/safe-read (Makefile.am): Likewise.
33151         * modules/safe-write (Makefile.am): Likewise.
33152         * modules/same (Makefile.am): Likewise.
33153         * modules/save-cwd (Makefile.am): Likewise.
33154         * modules/savedir (Makefile.am): Likewise.
33155         * modules/setenv (Makefile.am): Likewise.
33156         * modules/settime (Makefile.am): Likewise.
33157         * modules/sha1 (Makefile.am): Likewise.
33158         * modules/sig2str (Makefile.am): Likewise.
33159         * modules/snprintf (Makefile.am): Likewise.
33160         * modules/stdlib-safer (Makefile.am): Likewise.
33161         * modules/stpcpy (Makefile.am): Likewise.
33162         * modules/stpncpy (Makefile.am): Likewise.
33163         * modules/strcase (Makefile.am): Likewise.
33164         * modules/strcasestr (Makefile.am): Likewise.
33165         * modules/strchrnul (Makefile.am): Likewise.
33166         * modules/strcspn (Makefile.am): Likewise.
33167         * modules/strdup (Makefile.am): Likewise.
33168         * modules/strerror (Makefile.am): Likewise.
33169         * modules/strftime (Makefile.am): Likewise.
33170         * modules/strndup (Makefile.am): Likewise.
33171         * modules/strnlen (Makefile.am): Likewise.
33172         * modules/strpbrk (Makefile.am): Likewise.
33173         * modules/strsep (Makefile.am): Likewise.
33174         * modules/strstr (Makefile.am): Likewise.
33175         * modules/strtod (Makefile.am): Likewise.
33176         * modules/strtoimax (Makefile.am): Likewise.
33177         * modules/strtok_r (Makefile.am): Likewise.
33178         * modules/strtol (Makefile.am): Likewise.
33179         * modules/strtoll (Makefile.am): Likewise.
33180         * modules/strtoul (Makefile.am): Likewise.
33181         * modules/strtoull (Makefile.am): Likewise.
33182         * modules/strtoumax (Makefile.am): Likewise.
33183         * modules/strverscmp (Makefile.am): Likewise.
33184         * modules/time_r (Makefile.am): Likewise.
33185         * modules/timegm (Makefile.am): Likewise.
33186         * modules/tmpfile-safer (Makefile.am): Likewise.
33187         * modules/unistd-safer (Makefile.am): Likewise.
33188         * modules/unlinkdir (Makefile.am): Likewise.
33189         * modules/userspec (Makefile.am): Likewise.
33190         * modules/utime (Makefile.am): Likewise.
33191         * modules/utimecmp (Makefile.am): Likewise.
33192         * modules/utimens (Makefile.am): Likewise.
33193         * modules/vasnprintf (Makefile.am): Likewise.
33194         * modules/vasprintf (Makefile.am): Likewise.
33195         * modules/vsnprintf (Makefile.am): Likewise.
33196         * modules/xalloc (Makefile.am): Likewise.
33197         * modules/xgetcwd (Makefile.am): Likewise.
33198         * modules/xnanosleep (Makefile.am): Likewise.
33199         * modules/xreadlink (Makefile.am): Likewise.
33200         * modules/xstrtod (Makefile.am): Likewise.
33201         * modules/xstrtol (Makefile.am): Likewise.
33202         * modules/xstrtold (Makefile.am): Likewise.
33203         * modules/yesno (Makefile.am): Likewise.
33204
33205 2006-10-12  Jim Meyering  <jim@meyering.net>
33206
33207         * m4/getloadavg.m4: Revert the change below.
33208
33209         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
33210         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
33211         fail with a symlink, which is what coreutils' ./bootstrap now
33212         creates by default.
33213
33214 2006-10-12  Bruno Haible  <bruno@clisp.org>
33215
33216         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
33217         mingw.
33218         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
33219         MSVC and mingw explicitly.
33220
33221 2006-10-11  Simon Josefsson  <jas@extundo.com>
33222             Bruno Haible  <bruno@clisp.org>
33223
33224         Add support for multiple gnulib-tool invocations in the scope of a
33225         single configure.ac file.
33226         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
33227         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
33228         with the same contents as the _LIBADD variable.
33229         (func_emit_initmacro_start, func_emit_initmacro_end,
33230         func_emit_initmacro_done): New functions.
33231         (func_import, func_create_testdir): Invoke them. Allow the identifiers
33232         gl_LIBOBJS and gl_LTLIBOBJS.
33233
33234 2006-10-11  Bruno Haible  <bruno@clisp.org>
33235
33236         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
33237         (func_create_testdir): Don't create po/Makefile.am, don't invoke
33238         autoreconf. Instead, invoke autopoint explicitly but move back the
33239         *.m4 files from gnulib.
33240
33241 2006-10-11  Bruno Haible  <bruno@clisp.org>
33242
33243         * gnulib-tool (func_usage): Make module names after --create-testdir
33244         optional.
33245         (func_create_testdir): If no module was specified, use nearly all
33246         modules.
33247
33248 2006-10-12  Jim Meyering  <jim@meyering.net>
33249
33250         Big performance improvement for fts-based tools that use FTS_NOSTAT.
33251         Avoid spurious inode-mismatch problems on non-POSIX file systems.
33252         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
33253         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
33254         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
33255         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
33256         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
33257         (fts_set_stat_required): New function.
33258         (fts_open): Defer the calls to fts_stat, if possible or requested.
33259         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
33260         into fts_stat itself.
33261         (fts_read): Perform any required (deferred) fts_stat call.
33262         (fts_build): Likewise, for the directory we're about to open and read.
33263         In the readdir loop, carefully decide whether each entry will require
33264         an eventual call to fts_stat, using dirent.d_type info if available.
33265         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
33266         a command line argument into this function.  Update all callers.
33267         Map a return value of FTS_DOT to FTS_D for a command line argument.
33268         * modules/fts (Depends-on): Add d-type.  Alphabetize.
33269         Thanks to Miklos Szeredi for his tenacity and for the initial
33270         bug report about "find" failing on a FUSE-based file system.
33271
33272         * lib/fts.c (fts_open): Use consistent indentation.
33273
33274 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33275
33276         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
33277         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
33278         reported by Jim Meyering.  All uses of cache variables renamed
33279         to match Autoconf's.
33280         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
33281         the other one.
33282
33283         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
33284         Fix misspelling in diagnostic.
33285
33286 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
33287
33288         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
33289         defined.  Problem reported by Matthew Woehlke.
33290
33291         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
33292         Add support for Tandem NonStop R series.
33293         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
33294         Use new macro.
33295
33296         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
33297         (has_trailing_slash): Omit size arg; all callers changed.
33298         Omit 'inline', since it doesn't help performance and we'd
33299         need to configure it.
33300         Don't count //, ///, etc. as having a trailing slash.
33301         As a side effect, this removes a C99ism reported by Matthew Woehlke.
33302         (rpl_rename_dest_slash): On failure, use rename's errno rather
33303         than (in some cases) an incorrect or junk errno.
33304         Simplify code by removing need to compute length; this does
33305         cause it to make two passes instead of one over the file name,
33306         but it's worth it.
33307
33308         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
33309         change, since Autoconf's version may no longer be appropriate now
33310         that we are using CVS Autoconf's version.  Add support for Tandem.
33311
33312 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
33313             Bruno Haible  <bruno@clisp.org>
33314
33315         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
33316         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
33317         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
33318         gl_AC_TYPE_LONG_LONG.
33319
33320         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
33321         instead of HAVE_LONG_LONG.
33322         * lib/printf-args.c (printf_fetchargs): Likewise.
33323         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
33324         * lib/vasnprintf.c (VASNPRINTF): Likewise.
33325         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
33326         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
33327         gl_AC_TYPE_LONG_LONG.
33328
33329 2006-10-11  Bruno Haible  <bruno@clisp.org>
33330
33331         * m4/longlong.m4: Add comments.
33332         * m4/ulonglong.m4: Likewise.
33333
33334 2006-10-10  Bruno Haible  <bruno@clisp.org>
33335
33336         Make it possible to #define stpcpy, strdup to aliases.
33337         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
33338         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
33339
33340 2006-10-10  Bruno Haible  <bruno@clisp.org>
33341
33342         Make it possible to #define gcd to an alias.
33343         * lib/gcd.c: Include config.h.
33344
33345 2006-10-10  Bruno Haible  <bruno@clisp.org>
33346
33347         Make it possible to #define c_isascii to an alias.
33348         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
33349         defined. Undefine the macros before defining them, to avoid gcc
33350         warnings.
33351         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
33352         define NO_C_CTYPE_MACROS early.
33353
33354 2006-10-10  Bruno Haible  <bruno@clisp.org>
33355
33356         Make it possible to #define set_program_name to an alias.
33357         * lib/progname.c: Don't undefine set_program_name; instead, undefine
33358         ENABLE_RELOCATABLE early.
33359
33360 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33361
33362         Port to Tandem NSK OSS, which has 64-bit signed int but at most
33363         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
33364         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
33365         More generally, don't assume that 64-bit signed int is available
33366         if unsigned int is, and vice versa.
33367         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
33368         unsigned symbols, not on their signed counterparts.
33369         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
33370         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
33371         (UINT64_C, UINTMAX_C):
33372         Likewise.
33373         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
33374         unsigned counterparts.
33375         (Have_long_long, Unsigned): New macros.
33376         (Int): Renamed from INT.
33377         (strtoimax): Use the new macros.
33378         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
33379         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
33380         * modules/inttypes (inttypes.h): Substitute
33381         HAVE_UNSIGNED_LONG_LONG_INT.
33382         * modules/stdint (stdint.h): Likewise.
33383         (Files): Add m4/ulonglong.m4.
33384
33385 2006-10-10  Bruno Haible  <bruno@clisp.org>
33386
33387         Fix a gcc -Wshadow warning.
33388         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
33389         to 'bucket'.
33390         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
33391         gl_linked_indexof_from_to): Likewise.
33392         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
33393         Likewise.
33394         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
33395         Likewise.
33396         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
33397         Reported by Eric Blake.
33398
33399 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
33400
33401         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
33402         for NetBSD.  Problem reported by Bruno Haible.
33403
33404 2006-10-09  Jim Meyering  <jim@meyering.net>
33405
33406         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
33407         Patch from Bruno Haible.
33408
33409 2006-10-09  Jim Meyering  <jim@meyering.net>
33410
33411         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
33412         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
33413         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
33414
33415 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
33416
33417         Don't include <config.h> twice; this doesn't work in some cases,
33418         e.g., when config.h has "#define intmax_t long long int" and
33419         we include <config.h>, <inttypes.h>, <config.h> in that order.
33420         Problem reported by Matthew Woehlke in:
33421         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
33422         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
33423         * lib/fts-cycle.c: Don't include config.h.
33424         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
33425         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
33426         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
33427         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
33428         inttypes.h.
33429         * lib/xstrtoumax.c: Likewise.
33430         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
33431         __strtol and the like, so that this module is more like its siblings.
33432         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
33433         Remove; no longer needed now that we assume gnulib inttypes.h.
33434
33435 2006-10-08  Bruno Haible  <bruno@clisp.org>
33436
33437         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
33438         option.
33439
33440 2006-10-07  Jim Meyering  <jim@meyering.net>
33441
33442         * modules/inttypes (inttypes.h): Revert what seems to have been
33443         an inadvertent part of today's change: use "|", not "/" in the
33444         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
33445
33446 2006-10-07  Bruno Haible  <bruno@clisp.org>
33447
33448         * modules/sublist: New file.
33449
33450 2006-10-07  Bruno Haible  <bruno@clisp.org>
33451
33452         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
33453         * modules/argz (argz.h): Likewise.
33454         * modules/arpa_inet (arpa/inet.h): Likewise.
33455         * modules/byteswap (byteswap.h): Likewise.
33456         * modules/configmake (configmake.h): Likewise.
33457         * modules/fcntl (fcntl.h): Likewise.
33458         * modules/fnmatch (fnmatch.h): Likewise.
33459         * modules/getopt (getopt.h): Likewise.
33460         * modules/glob (glob.h): Likewise.
33461         * modules/inttypes (inttypes.h): Likewise.
33462         * modules/netinet_in (netinet/in.h): Likewise.
33463         * modules/poll (poll.h): Likewise.
33464         * modules/stdbool (stdbool.h): Likewise.
33465         * modules/stdint (stdint.h): Likewise.
33466         * modules/sys_select (sys/select.h): Likewise.
33467         * modules/sys_socket (sys/socket.h): Likewise.
33468         * modules/sys_stat (sys/stat.h): Likewise.
33469         * modules/sysexits (sysexits.h): Likewise.
33470         * modules/unistd (unistd.h): Likewise.
33471         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33472         Add a "DO NOT EDIT" comment to the generated file.
33473         (func_import): Likewise for gnulib-comp.m4.
33474
33475 2006-10-07  Bruno Haible  <bruno@clisp.org>
33476
33477         * lib/gl_sublist.h: New file.
33478         * lib/gl_sublist.c: New file.
33479
33480 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33481
33482         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
33483         name (relative to the original working directory) and the file
33484         name component (relative to the temporary working directory).  All
33485         callers changed.
33486         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
33487         * lib/mkdir-p.c (make_dir_parents): Likewise.
33488         * lib/mkdir-p.h (make_dir_parents): Likewise.
33489
33490 2006-10-06  Eric Blake  <ebb9@byu.net>
33491
33492         Define several macros for use by the clean-temp module.
33493         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
33494         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
33495         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
33496
33497         * lib/clean-temp.h (close_stream_temp): New declaration.
33498         * lib/clean-temp.c (includes): Pull in headers according to what
33499         other modules are in use.
33500         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
33501
33502 2006-10-06  Bruno Haible  <bruno@clisp.org>
33503
33504         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
33505         instead of fopen, fwriteerror.
33506
33507 2006-10-06  Bruno Haible  <bruno@clisp.org>
33508
33509         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
33510         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
33511         int.
33512         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
33513         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
33514         Return an error indicator.
33515         Suggested by Eric Blake.
33516
33517 2006-10-06  Bruno Haible  <bruno@clisp.org>
33518
33519         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
33520         Reported by Eric Blake.
33521
33522 2006-10-06  Bruno Haible  <bruno@clisp.org>
33523
33524         * modules/closeout (Description): Mention stderr too.
33525
33526 2006-10-06  Bruno Haible  <bruno@clisp.org>
33527         and Paul Eggert  <eggert@cs.ucla.edu>
33528
33529         * lib/closeout.c (close_stdout): Also close stderr.
33530         * lib/closeout.h: Update comment.
33531
33532 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
33533
33534         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
33535         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
33536         * lib/dirchownmod.c: Include lchown.h.
33537         * lib/lchown.c: Don't include files that lchown.h now includes.
33538         Don't declare chown, since lchown.h now does that.
33539         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
33540         (lchown): Define to rpl_chown if lchown is declared but
33541         does not exist.  Declare using a prototype if lchown is not
33542         declared.  Add a copyright notice.
33543         * lib/mkstemp.h: Include <unistd.h>.
33544         * lib/openat.c: Include lchown.h.
33545
33546         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
33547         we now test for that separately.
33548         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
33549         rather than O_NOFOLLOW, when testing whether it's possible to
33550         avoid a race condition reliably.
33551         * lib/savewd.c (savewd_chdir): Likewise.
33552
33553         Remove macros that are no longer needed now that stdint.h is
33554         reliable.
33555         * lib/fsusage.c (UINTMAX_MAX): Remove.
33556         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
33557         * lib/utimecmp.c (SIZE_MAX): Remove.
33558
33559         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
33560
33561         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
33562         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
33563         O_NOATIME works.
33564
33565 2006-10-05  Bruno Haible  <bruno@clisp.org>
33566
33567         * lib/gl_list.h (gl_sortedlist_search_from_to,
33568         gl_sortedlist_indexof_from_to): New declarations.
33569         (gl_list_implementation): New fields sortedlist_search_from_to,
33570         sortedlist_indexof_from_to.
33571         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
33572         inline functions.
33573         * lib/gl_list.c (gl_sortedlist_search_from_to,
33574         gl_sortedlist_indexof_from_to): New functions.
33575         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
33576         function.
33577         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
33578         (gl_array_sortedlist_search_from_to): New function.
33579         (gl_array_list_implementation): Update.
33580         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
33581         function.
33582         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
33583         (gl_carray_sortedlist_search_from_to): New function.
33584         (gl_carray_list_implementation): Update.
33585         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
33586         gl_linked_sortedlist_indexof_from_to): New functions.
33587         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
33588         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
33589         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
33590         gl_tree_sortedlist_indexof_from_to): New functions.
33591         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
33592         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
33593         Update.
33594         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
33595         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
33596         Update.
33597
33598 2006-10-05  Bruno Haible  <bruno@clisp.org>
33599
33600         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
33601         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
33602         (struct gl_list_implementation): Add fields search_from_to,
33603         indexof_from_to. Remove fields search, indexof.
33604         (gl_list_search): Use the search_from_to method.
33605         (gl_list_search_from, gl_list_search_from_to): New functions.
33606         (gl_list_indexof): Use the indexof_from_to method.
33607         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
33608         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
33609         (gl_list_search_from, gl_list_search_from_to): New functions.
33610         (gl_list_indexof): Use the indexof_from_to method.
33611         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
33612         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
33613         gl_array_indexof. Add start_index, end_index arguments.
33614         (gl_array_search_from_to): Renamed from gl_array_search. Add
33615         start_index, end_index arguments.
33616         (gl_array_remove, gl_array_list_implementation): Update.
33617         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
33618         gl_carray_indexof. Add start_index, end_index arguments.
33619         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
33620         start_index, end_index arguments.
33621         (gl_carray_remove, gl_carray_list_implementation): Update.
33622         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
33623         gl_linked_search. Add start_index, end_index arguments.
33624         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
33625         start_index, end_index arguments.
33626         (gl_linked_remove): Update.
33627         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
33628         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
33629         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
33630         field to 'size_t'.
33631         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
33632         gl_tree_search. Add start_index, end_index arguments.
33633         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
33634         start_index, end_index arguments.
33635         (gl_tree_remove): Update.
33636         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
33637         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
33638         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
33639         function.
33640         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
33641         gl_tree_search. Add start_index, end_index arguments.
33642         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
33643         start_index, end_index arguments.
33644         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
33645         Update.
33646         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
33647
33648 2006-10-05  Bruno Haible  <bruno@clisp.org>
33649
33650         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
33651
33652         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
33653         fwriteerror_temp): New declarations.
33654         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
33655         (descriptors): New variable.
33656         (cleanup): First, close the descriptors.
33657         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
33658         fclose_temp, fwriteerror_temp): New functions.
33659
33660 2006-10-04  Jim Meyering  <jim@meyering.net>
33661
33662         * lib/fts.c (fts_open): Tiny comment change.
33663
33664 2006-10-04  Bruno Haible  <bruno@clisp.org>
33665
33666         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
33667         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
33668         gl_LOCK_BODY.
33669         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
33670         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
33671         gl_LOCK_EARLY_BODY.
33672         (gl_LOCK): Require gl_LOCK_BODY.
33673
33674 2006-10-04  Bruno Haible  <bruno@clisp.org>
33675
33676         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
33677         (gl_oset_search_atleast): New declaration.
33678         (struct gl_oset_implementation): Add field 'search_atleast'.
33679         (gl_oset_search_atleast): New inline function.
33680         * lib/gl_oset.c (gl_oset_search_atleast): New function.
33681         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
33682         (gl_array_oset_implementation): Update.
33683         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
33684         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
33685         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
33686
33687 2006-10-04  Bruno Haible  <bruno@clisp.org>
33688
33689         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
33690
33691 2006-10-03  Bruno Haible  <bruno@clisp.org>
33692
33693         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
33694         from gl_avltreehash_list_implementation.
33695
33696 2006-10-03  Bruno Haible  <bruno@clisp.org>
33697
33698         * lib/gl_oset.c (gl_oset_add): Fix return type.
33699
33700 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
33701
33702         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
33703
33704 2006-10-02  Eric Blake  <ebb9@byu.net>
33705
33706         * modules/strnlen (Depends-on): Add extensions.
33707
33708 2006-10-02  Eric Blake  <ebb9@byu.net>
33709
33710         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
33711         definition in 2.60+.
33712
33713 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
33714
33715         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
33716         checks.
33717
33718 2006-10-02  Bruno Haible  <bruno@clisp.org>
33719
33720         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
33721         to the AUTOMAKE_OPTIONS.
33722         Reported by Jim Meyering.
33723
33724 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
33725
33726         Work around bug in Solaris 10 /proc file system:
33727         /proc/self/fd/NNN/.. isn't the parent directory of
33728         the directory whose file descriptor is NNN.  This needs to
33729         be worked around at run time, not compile time, since a
33730         program might be built on Solaris 8, where things work, and
33731         run on Solaris 10.
33732         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
33733         to use the following interface instead:
33734         (OPENAT_BUFFER_SIZE): New macro.
33735         (openat_proc_name): New function.
33736         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
33737         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
33738         Likewise.
33739         * lib/openat-proc.c: New file.
33740         * modules/openat (Files): Add lib/openat-proc.c.
33741         (Depends-on): Add same-inode, stdbool.
33742         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
33743
33744 2006-09-29  Bruno Haible  <bruno@clisp.org>
33745
33746         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
33747         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
33748         argument. Set stdout_closed before testing for ferror, not after.
33749         (fwriteerror, fwriteerror_no_ebadf): New functions.
33750
33751 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33752
33753         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
33754
33755 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
33756
33757         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
33758         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
33759
33760 2006-09-28  Jim Meyering  <jim@meyering.net>
33761
33762         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
33763         Include <unistd.h>.
33764
33765 2006-09-28  Bruno Haible  <bruno@clisp.org>
33766
33767         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
33768         * modules/linkedhash-list (Depends-on): Likewise.
33769         * modules/rbtreehash-list (Depends-on): Likewise.
33770
33771 2006-09-28  Bruno Haible  <bruno@clisp.org>
33772
33773         * lib/strndup.h: Simplify the redefinition of strndup.
33774         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
33775         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
33776
33777 2006-09-28  Bruno Haible  <bruno@clisp.org>
33778
33779         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
33780         * lib/gl_linkedhash_list.c: Likewise.
33781         * lib/gl_rbtreehash_list.c: Likewise.
33782
33783 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
33784
33785         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
33786         getaddrinfo.
33787
33788         * lib/__fpending.h: Don't include <stdio_ext.h> unless
33789         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
33790         it causes <stdio_ext.h> to cause a compile-time error.
33791         Problem reported by Nelson H. F. Beebe.
33792         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
33793         of HAVE_DECL___PENDING.
33794
33795         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
33796         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
33797         declaration.
33798
33799 2006-09-27  Jim Meyering  <jim@meyering.net>
33800
33801         This file could end up with a definition for a function
33802         named __strndup, rather than rpl_strndup on a system with
33803         incomplete weak_alias support.
33804         * lib/strndup.c (strndup): Rename from __strndup.
33805         Remove #defines that used to map __strndup to strndup.
33806         Don't use K&R prototypes.
33807         Remove LIBC-related code, since this file is not sync'd with glibc.
33808         * lib/strndup.h: Revamp, accordingly.
33809         * m4/strndup.m4: Modernize.
33810
33811 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
33812
33813         * modules/savewd (Depends-on): Add 'raise'.
33814         * lib/savewd.c: Include <signal.h>, for 'raise'.
33815
33816 2006-09-26  Jim Meyering  <jim@meyering.net>
33817
33818         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
33819         when we detect Darwin 8.7.0's acl_get_file bug.
33820         Rearrange to perform the new (below) run-test while $LIBS
33821         contains any acl-related library.  Set USE_ACL at the end.
33822         (gl_ACL_GET_FILE): New function.
33823
33824 2006-09-26  Eric Blake  <ebb9@byu.net>
33825
33826         * lib/verror.c: Include <config.h> unconditionally.
33827
33828 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
33829
33830         * modules/clock-time (Maintainer): Add self.
33831         * modules/getlogin_r (Depends-on): Add extensions.
33832
33833 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33834
33835         * modules/clock-time: New module.
33836         * modules/nanosleep (Depends-on): Add clock-time.
33837         * modules/gethrxtime (Depends-on): Likewise.
33838         * modules/gettime (Depends-on): Likewise.
33839         * modules/settime (Depends-on): Likewise.
33840
33841         * modules/fts-lgpl: Depend on openat.
33842         * modules/mkancesdirs: Depend on savewd.
33843         * modules/mkdir-p: Likewise.
33844
33845 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33846
33847         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
33848
33849         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
33850         `gl_have_arbitrary_file_name_length_limit' to
33851         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
33852         actually works between configure runs.
33853
33854 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33855             Bruno Haible  <bruno@clisp.org>
33856
33857         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
33858
33859 2006-09-25  Jim Meyering  <jim@meyering.net>
33860
33861         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
33862         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
33863
33864 2006-09-25  Eric Blake  <ebb9@byu.net>
33865
33866         * gnulib-tool (func_import, func_create_testdir): Fix typos in
33867         exec's in 2006-09-18 patch when shuffling fds.
33868
33869 2006-09-25  Bruno Haible  <bruno@clisp.org>
33870
33871         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
33872         Reported by Jim Meyering.
33873
33874 2006-09-24  Jim Meyering  <jim@meyering.net>
33875
33876         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
33877         compare a pointer against a literal "0".  That caused failures with
33878         at least HP-UX's hpcc.
33879
33880 2006-09-22  Simon Josefsson  <jas@extundo.com>
33881
33882         * modules/gc-sha1:
33883         * modules/gc-md4:
33884         * modules/gc-hmac-sha1:
33885         * modules/gc-hmac-md5:
33886         * modules/gc-des:
33887         * modules/gc-arcfour: Distribute more files.
33888
33889 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33890
33891         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
33892         (gl_linked_iterator_from_to): Initialize struct completely.
33893         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
33894         (gl_tree_iterator_from_to): Likewise
33895         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
33896         * lib/gl_array_list.c [lint] (gl_array_iterator)
33897         (gl_array_iterator_from_to): Likewise.
33898         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
33899         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
33900         (gl_carray_iterator_from_to): Likewise.
33901
33902         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
33903         * lib/md4.c (md4_process_block): Remove unused variable.
33904         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
33905         parentheses for clarity.
33906
33907 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33908
33909         * modules/bison-i18n (Depends-on): Add gettext.
33910
33911 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33912
33913         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
33914         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
33915         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
33916         also add missing comma that caused broken test.
33917         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
33918         stdlib.h, for `abort'.
33919         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
33920         variables.
33921         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
33922         include unistd.h if present, for `rmdir'.
33923         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
33924         variables.
33925         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
33926         in the process include standard headers for prototypes.
33927         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
33928         gets declared on GNU/Linux.
33929         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
33930         unistd.h, for `rmdir'.
33931         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
33932
33933         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
33934         always true.
33935         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
33936
33937         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
33938
33939 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33940
33941         * gnulib-tool (func_version): Create output all at once.  This
33942         may help avoid triggering unnecessary SIGPIPEs, and at any
33943         rate it doesn't hurt.
33944
33945 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33946             Bruno Haible  <bruno@clisp.org>
33947
33948         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
33949         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
33950         * m4/signed.m4 (bh_C_SIGNED): Likewise.
33951
33952         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
33953         (gl_FUNC_VASPRINTF): Invoke it.
33954
33955 2006-09-22  Bruno Haible  <bruno@clisp.org>
33956
33957         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
33958         getloadavg.c as first argument.
33959
33960 2006-09-22  Bruno Haible  <bruno@clisp.org>
33961
33962         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
33963         at the beginning of the gl_INIT macro.
33964         * modules/getloadavg (configure.ac): Pass $gl_source_base to
33965         gl_GETLOADAVG.
33966
33967 2006-09-22  Bruno Haible  <bruno@clisp.org>
33968
33969         * gnulib-tool (func_create_megatestdir): Don't include the config-h
33970         module.
33971         Suggested by Ralf Wildenhues.
33972
33973 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
33974
33975         Import this patch from libc:
33976
33977         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
33978
33979         * lib/regex_internal.c (re_string_reconstruct): Handle
33980         offset < pstr->valid_raw_len && pstr->offsets_needed case.
33981         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
33982         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
33983         re_string_context_at.
33984
33985         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
33986         now requires it.
33987         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
33988         gl_REGEX now does it for us.
33989         (gl_REGEX): Add test taken from
33990         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
33991
33992         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
33993         Check that large offsets work.  Modernize Autoconf usages.
33994         Prefer "yes" to mean a good thing rather than a bad.
33995         Don't put "#define mkstemp" in config.h, as this might interfere
33996         with standard system headers that "#define mkstemp mkstemp64".
33997
33998         * modules/mkstemp (Depends-on): Add extensions, so that
33999         mkstemp is visible on some platforms.
34000         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
34001         (Include): Change to "mkstemp.h" from <stdlib.h>.
34002         (Files): Add mkstemp.h.
34003
34004         * lib/mkstemp.h: New file, since some standard headers
34005         #define mkstemp.
34006         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
34007         Include "mkstemp.h".
34008         Make the _LIBC code resemble glibc original more,
34009         e.g., use K&R style.
34010         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
34011         (mkstemp): Remove, since mkstemp.h does this for us.
34012         * lib/stdlib--.h: Include mkstemp.h.
34013
34014         Import this patch from libc:
34015
34016         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
34017
34018         * lib/tempname.c (__gen_tempname): Change attempts_min
34019         into a macro.  Use preprocessor to decide how to initialize
34020         attempts [Coverity CID 67].
34021
34022 2006-09-20  Bruno Haible  <bruno@clisp.org>
34023
34024         * lib/mkdtemp.c: Import from libc.
34025         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
34026                 * sysdeps/posix/tempname.c (__gen_tempname): Change
34027                 attempts_min into a macro.  Use preprocessor to decide how to
34028                 initialize attempts [Coverity CID 67].
34029         2001-11-27  Paul Eggert  <eggert@twinsun.com>
34030                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
34031                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
34032
34033 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34034
34035         * gnulib-tool (func_exit): New function, to allow to pass the
34036         exit status portably through the trap.  Use everywhere.
34037         (--help, --version): Signal a write error.
34038         (trap): catch SIGPIPE, for write errors.
34039         Exit at the end of the trap, with the correct exit status.
34040
34041 2006-09-19  Karl Berry  <karl@gnu.org>
34042
34043         * doc/gnulib.texi: note about the license texinfo files.
34044
34045 2006-09-19  Eric Blake  <ebb9@byu.net>
34046
34047         * gnulib-tool: Avoid space-tab.
34048
34049 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
34050
34051         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
34052         that prevented coreutils 6.1 from building.  Problem reported
34053         by Petter Reinholdtsen.
34054
34055 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
34056
34057         * gnulib-tool (avoidlist): Fix typo that broke options like
34058         --avoid=lock that are used by coreutils bootstrap.
34059
34060 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
34061
34062         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
34063         more systematically.
34064
34065 2006-09-18  Jim Meyering  <jim@meyering.net>
34066
34067         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
34068
34069 2006-09-18  Bruno Haible  <bruno@clisp.org>
34070
34071         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
34072
34073 2006-09-18  Bruno Haible  <bruno@clisp.org>
34074
34075         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
34076         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
34077         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
34078         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
34079         * m4/gettext.m4: Require autoconf >= 2.52.
34080         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
34081         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
34082         of gl_cv_header_inttypes_h.
34083
34084 2006-09-18  Bruno Haible  <bruno@clisp.org>
34085
34086         * lib/javaversion.c: Include configmake.h.
34087
34088 2006-09-18  Bruno Haible  <bruno@clisp.org>
34089
34090         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
34091         avoid that the while loops be executed in a subshell.
34092
34093 2006-09-18  Bruno Haible  <bruno@clisp.org>
34094
34095         * MODULES.html.sh (func_module): Break long lines.
34096         Suggested by Bruce Korb <bkorb@gnu.org>.
34097
34098 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34099
34100         Speed up by a factor of 1.12.
34101         * gnulib-tool (nl): New variable.
34102         (func_import): Rewrite include directive extraction to only read each
34103         directive once.
34104
34105 2006-09-17  Bruno Haible  <bruno@clisp.org>
34106
34107         * modules/javaversion (Makefile.am): Remove DEFS setting.
34108         (Depends-on): Add configmake, for PKGDATADIR definition.
34109
34110 2006-09-17  Bruno Haible  <bruno@clisp.org>
34111
34112         * gnulib-tool (func_create_testdir): Rewrite all files at once.
34113
34114 2006-09-17  Bruno Haible  <bruno@clisp.org>
34115
34116         * gnulib-tool (func_append): New function, stolen from libtool.m4.
34117         (func_modules_transitive_closure, func_modules_add_dummy,
34118         func_modules_to_filelist, func_import, func_create_testdir,
34119         func_create_megatestdir, ...): Use it wherever possible.
34120         Suggested by Ralf Wildenhues.
34121
34122 2006-09-16  Karl Berry  <karl@gnu.org>
34123
34124         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
34125         to avoid sectioning errors.
34126         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
34127         [ifinfo]: blank line after @center-ed titles.
34128         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
34129         Spell FSF address consistently with others.
34130         (These changes approved by rms.)
34131
34132 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34133
34134         Speed up by a factor of 1.61.
34135         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
34136         already checked module names again.
34137
34138 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34139
34140         Speed up by a factor of 1.13.
34141         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
34142         for new_files, and the input to func_add_or_update.
34143
34144 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34145
34146         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
34147         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
34148
34149 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
34150
34151         * modules/mkancesdirs (Depends-on): Add fcntl.
34152         * modules/savewd: New file.
34153         * MODULES.html.sh (File system functions): Add savewd.
34154
34155         * modules/configmake (Makefile.am): Add support for the
34156         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
34157
34158 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
34159
34160         * m4/savewd.m4: New file.
34161
34162 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
34163
34164         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
34165         (dirchownmod): New arg FD.  All callers changed.
34166         Use FD rather than opening the directory ourself, as opening is
34167         now the caller's responsibility.
34168         * lib/dirchownmod.h: Likewise.
34169         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
34170         hosts that require <sys/types.h> before <sys/stat.h>.  Include
34171         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
34172         (test_dir): Remove.
34173         (mkancesdirs): Return length of prefix of FILE that has already
34174         been made, or -2 if there is a child doing the work.  Redo
34175         algorithm so that it is O(N) rather than O(N**2).  Optimize away
34176         ".", and treat ".." specially since it might stray back into
34177         already-created areas.  Use a subprocess if necessary.  New arg
34178         WD; all users changed.  MAKE_DIR function should now return 1
34179         if it creates a directory that is not readable.  Return -2 if
34180         a child process is spun off.
34181         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
34182         Adjust signature to match code.
34183         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
34184         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
34185         all users changed.
34186         * lib/savewd.c, lib/savewd.h: New files.
34187
34188 2006-09-15  Jim Meyering  <jim@meyering.net>
34189
34190         * modules/rename-dest-slash: New module.
34191         * MODULES.html.sh (posix_compat): Add it here.
34192
34193         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
34194
34195 2006-09-15  Jim Meyering  <jim@meyering.net>
34196
34197         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
34198         file.
34199
34200         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
34201
34202 2006-09-15  Jim Meyering  <jim@meyering.net>
34203
34204         * lib/rename-dest-slash.c (has_trailing_slash): Use
34205         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
34206         (rpl_rename_dest_slash): Perform the cheaper trailing slash
34207         test before testing whether SRC is a directory.
34208         Suggestions from Bruno Haible.
34209
34210         Avoid a warning about an unused variable.
34211         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
34212         into the #ifdef block where it's used.
34213
34214         * lib/rename-dest-slash.c: New file.
34215
34216 2006-09-14  Bruno Haible  <bruno@clisp.org>
34217
34218         * lib/allocsa.c: Include <config.h> unconditionally.
34219         * lib/asnprintf.c: Likewise.
34220         * lib/asprintf.c: Likewise.
34221         * lib/c-strcasecmp.c: Likewise.
34222         * lib/c-strcasestr.c: Likewise.
34223         * lib/c-strncasecmp.c: Likewise.
34224         * lib/c-strstr.c: Likewise.
34225         * lib/classpath.c: Likewise.
34226         * lib/clean-temp.c: Likewise.
34227         * lib/concatpath.c: Likewise.
34228         * lib/copy-file.c: Likewise.
34229         * lib/csharpcomp.c: Likewise.
34230         * lib/csharpexec.c: Likewise.
34231         * lib/execute.c: Likewise.
34232         * lib/fatal-signal.c: Likewise.
34233         * lib/findprog.c: Likewise.
34234         * lib/fwriteerror.c: Likewise.
34235         * lib/gl_array_list.c: Likewise.
34236         * lib/gl_array_oset.c: Likewise.
34237         * lib/gl_avltree_list.c: Likewise.
34238         * lib/gl_avltree_oset.c: Likewise.
34239         * lib/gl_avltreehash_list.c: Likewise.
34240         * lib/gl_carray_list.c: Likewise.
34241         * lib/gl_linked_list.c: Likewise.
34242         * lib/gl_linkedhash_list.c: Likewise.
34243         * lib/gl_list.c: Likewise.
34244         * lib/gl_oset.c: Likewise.
34245         * lib/gl_rbtree_list.c: Likewise.
34246         * lib/gl_rbtree_oset.c: Likewise.
34247         * lib/gl_rbtreehash_list.c: Likewise.
34248         * lib/imaxabs.c: Likewise.
34249         * lib/imaxdiv.c: Likewise.
34250         * lib/javacomp.c: Likewise.
34251         * lib/javaexec.c: Likewise.
34252         * lib/javaversion.c: Likewise.
34253         * lib/linebreak.c: Likewise.
34254         * lib/localcharset.c: Likewise.
34255         * lib/lock.c: Likewise.
34256         * lib/mbchar.c: Likewise.
34257         * lib/mbswidth.c: Likewise.
34258         * lib/mkdtemp.c: Likewise.
34259         * lib/pipe.c: Likewise.
34260         * lib/printf-args.c: Likewise.
34261         * lib/printf-parse.c: Likewise.
34262         * lib/progname.c: Likewise.
34263         * lib/progreloc.c: Likewise.
34264         * lib/readlink.c: Likewise.
34265         * lib/sh-quote.c: Likewise.
34266         * lib/stpcpy.c: Likewise.
34267         * lib/stpncpy.c: Likewise.
34268         * lib/strcasecmp.c: Likewise.
34269         * lib/strcasestr.c: Likewise.
34270         * lib/strcspn.c: Likewise.
34271         * lib/striconv.c: Likewise.
34272         * lib/strncasecmp.c: Likewise.
34273         * lib/strnlen1.c: Likewise.
34274         * lib/strstr.c: Likewise.
34275         * lib/strtok_r.c: Likewise.
34276         * lib/tls.c: Likewise.
34277         * lib/tmpdir.c: Likewise.
34278         * lib/unicodeio.c: Likewise.
34279         * lib/unsetenv.c: Likewise.
34280         * lib/vasnprintf.c: Likewise.
34281         * lib/vasprintf.c: Likewise.
34282         * lib/wait-process.c: Likewise.
34283         * lib/xallocsa.c: Likewise.
34284         * lib/xsetenv.c: Likewise.
34285         * lib/xstriconv.c: Likewise.
34286
34287 2006-09-13  Simon Josefsson  <jas@extundo.com>
34288
34289         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
34290         that internally, suggested by Ralf Wildenhues
34291         <Ralf.Wildenhues@gmx.de>.
34292
34293 2006-09-13  Simon Josefsson  <jas@extundo.com>
34294
34295         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
34296         @LIBOBJS@.
34297         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34298
34299 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
34300
34301         * lib/_fpending.c: Include <config.h> unconditionally, since we no
34302         longer worry about uses that don't define HAVE_CONFIG_H.
34303         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
34304         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
34305         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
34306         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
34307         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
34308         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
34309         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
34310         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
34311         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
34312         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
34313         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
34314         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
34315         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
34316         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
34317         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
34318         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
34319         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
34320         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
34321         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
34322         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
34323         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
34324         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
34325         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
34326         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
34327         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
34328         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
34329         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
34330         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
34331         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
34332         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
34333         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
34334         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
34335         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
34336         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
34337         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
34338         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
34339         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
34340         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
34341         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
34342         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
34343         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
34344         Likewise.
34345
34346 2006-09-13  Eric Blake  <ebb9@byu.net>
34347
34348         * lib/getopt.c: Fix typo in last commit.
34349
34350 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34351
34352         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
34353         dgettext.
34354
34355 2006-09-12  Jim Meyering  <jim@meyering.net>
34356
34357         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
34358         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
34359         Reported by Nelson H. F. Beebe.
34360
34361 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
34362
34363         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
34364         program_invocation_name and program_invocation_short_name are
34365         initialized.
34366         * lib/argp-namefrob.h: Move declarations of program_invocation_name
34367         and program_invocation_short_name to argp.h, so they are visible
34368         to user programs.
34369         * lib/argp.h: Likewise
34370
34371 2006-09-10  Bruno Haible  <bruno@clisp.org>
34372
34373         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
34374         m4/inttypes_h.m4, m4/uintmax_t.m4.
34375
34376 2006-09-10  Bruno Haible  <bruno@clisp.org>
34377
34378         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
34379         gl_AC_TYPE_UINTMAX_T.
34380
34381 2006-09-10  Bruno Haible  <bruno@clisp.org>
34382
34383         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
34384
34385 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
34386
34387         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
34388         convention.  Text proposed by Bruno Haible.
34389         (struct argp_option): Document the use of N_() wrappers.
34390
34391         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
34392         '\v', and translate the two parts separately, instead of feeding
34393         the whole string to gettext.  This allows to exclude
34394         '\v' from the strings visible to the translator by writing doc
34395         strings as N_("..") "\v" N_("..").
34396
34397 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
34398
34399         * config/srclist.txt: Undo latest change; the bug was fixed.
34400
34401 2006-09-09  Bruno Haible  <bruno@clisp.org>
34402
34403         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
34404         assignments if building a library without libtool.
34405         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
34406         in func_emit_lib_Makefile_am.
34407         (func_import): When building a static library libfoo.a, arrange to
34408         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
34409         (func_create_testdir): Likewise.
34410         * modules/gc (configure.ac, Makefile.am): If building statically,
34411         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
34412         * modules/iconvme (configure.ac, Makefile.am): Likewise.
34413         * modules/striconv (configure.ac, Makefile.am): Likewise.
34414         Based on a suggestion by Ralf Wildenhues.
34415
34416 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
34417
34418         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
34419         Check for unistd.h too, since Autoconf doesn't assume POSIX.
34420         Also:
34421
34422         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
34423         Add year_2050_test to catch glibc bug 2821
34424         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
34425
34426         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
34427         Prefer #ifdef to #if.
34428
34429         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
34430         Return from 'main' instead of calling 'exit'.
34431
34432 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
34433
34434         * lib/mktime.c (guess_time_tm): Fix bug where mktime
34435         returned the maximum time_t value rather than (time_t) -1.
34436         Problem originally reported by William Bardwell
34437         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
34438
34439         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
34440         Moved to here ...
34441         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
34442         ... from here.
34443
34444 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
34445
34446         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
34447         2821 is fixed.
34448
34449 2006-09-08  Jim Meyering  <jim@meyering.net>
34450
34451         Don't make generated files read-only.  That would bother too many
34452         people.  However, do retain the ability to work when targets are
34453         read-only: remove the destination and temporary files before writing
34454         them (when generated via sed or echo), or by using the -f option for
34455         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
34456         * modules/alloca-opt, modules/argz, modules/arpa_inet:
34457         * modules/byteswap, modules/configmake, modules/fcntl:
34458         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
34459         * modules/localcharset, modules/netinet_in, modules/poll:
34460         * modules/stdbool, modules/stdint, modules/sys_select:
34461         * modules/sys_socket, modules/sys_stat, modules/sysexits:
34462
34463 2006-09-08  Jim Meyering  <jim@meyering.net>
34464
34465         Avoid new build failure on FreeBSD 6.0.
34466         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
34467         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
34468         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
34469
34470 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34471
34472         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
34473
34474 2006-09-07  Jim Meyering  <jim@meyering.net>
34475
34476         Fix global typo in last change: use chmod u-w, not chmod u-x.
34477         Spotted by Paul Eggert and Bruce Korb.
34478         * modules/alloca-opt, modules/argz, modules/arpa_inet:
34479         * modules/byteswap, modules/configmake, modules/fcntl:
34480         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
34481         * modules/localcharset, modules/netinet_in, modules/poll:
34482         * modules/stdbool, modules/stdint, modules/sys_select:
34483         * modules/sys_socket, modules/sys_stat, modules/sysexits:
34484
34485 2006-09-06  Jim Meyering  <jim@meyering.net>
34486
34487         Make generated files be read-only.
34488         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
34489         Ensure that each generated file is now read-only.
34490         * modules/argz: Likewise.
34491         * modules/arpa_inet: Likewise.
34492         * modules/byteswap: Likewise.
34493         * modules/configmake: Likewise.
34494         * modules/fcntl: Likewise.
34495         * modules/fnmatch: Likewise.
34496         * modules/getopt: Likewise.
34497         * modules/glob: Likewise.
34498         * modules/inttypes: Likewise.
34499         * modules/netinet_in: Likewise.
34500         * modules/poll: Likewise.
34501         * modules/stdbool: Likewise.
34502         * modules/stdint: Likewise.
34503         * modules/sys_select: Likewise.
34504         * modules/sys_socket: Likewise.
34505         * modules/sys_stat: Likewise.
34506         * modules/sysexits: Likewise.
34507         * modules/localcharset: Same as above, but continue using temporary
34508         file named "t-$@" (why different?) rather than the "$@-t" used
34509         everywhere else.
34510
34511         * modules/sysexits (Makefile.am): Replace literal occurrences
34512         of "sysexit.h" more readable, and more consistent, "$@".
34513
34514 2006-09-06  Bruno Haible  <bruno@clisp.org>
34515
34516         * modules/striconv: New file.
34517         * modules/xstriconv: New file.
34518         * MODULES.html.sh (Internationalization functions): Add striconv,
34519         xstriconv.
34520
34521 2006-09-06  Bruno Haible  <bruno@clisp.org>
34522
34523         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
34524         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
34525         not using libtool correctly.
34526
34527 2006-09-06  Bruno Haible  <bruno@clisp.org>
34528
34529         * lib/striconv.h: New file.
34530         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
34531         iconvstring.c.
34532         * lib/xstriconv.h: New file.
34533         * lib/xstriconv.c: New file.
34534
34535 2006-09-06  Bruno Haible  <bruno@clisp.org>
34536
34537         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
34538         lib_..._LDFLAGS.
34539
34540 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34541
34542         * lib/argz_.h: Sync from Libtool.
34543
34544         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
34545                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34546
34547         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
34548
34549 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
34550
34551         * modules/trim: New file.
34552
34553 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
34554
34555         * lib/trim.h: New file.
34556         * lib/trim.c: New file.
34557
34558 2006-09-05  Bruno Haible  <bruno@clisp.org>
34559
34560         * MODULES.html.sh (String handling): Add trim.
34561
34562 2006-09-04  Karl Berry  <karl@gnu.org>
34563
34564         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
34565         until next release.
34566
34567 2006-09-03  Bruno Haible  <bruno@clisp.org>
34568
34569         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
34570         correctly.
34571
34572 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
34573
34574         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
34575         not gl_GETLOADAVG.  Omit unneeded semicolons.
34576         Problems reported by Ralf Wildenhues in
34577         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
34578         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
34579         at the end, which is the usual gnulib style.
34580
34581         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
34582         of doing all the work ourselves.
34583         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
34584         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
34585
34586 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
34587
34588         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
34589         Problem reported by Ralf Wildenhues in
34590         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
34591
34592         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
34593         HAVE_STRUCT_STATFS_F_FSTYPENAME.
34594
34595 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
34596
34597         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
34598         yesterday's patch by changing test -n to test -z.
34599
34600 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
34601
34602         * modules/getloadavg (Files): Add m4/getloadavg.m4.
34603         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
34604         the former is now obsolescent.
34605
34606         * modules/chdir-long (Depends-on): Add fcntl.
34607
34608 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
34609
34610         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
34611         obsolescent, and programs should use gnulib instead.
34612         * m4/getloadavg.m4: New file, with contents taken from Autoconf
34613         but with prefixes changed.
34614
34615 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
34616
34617         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
34618         or stdbool.h, because they might not exist while configuring.
34619
34620         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
34621         Don't include unistd.h or limits.h; not needed, since chdir-long.h
34622         does that for us.
34623         (O_DIRECTORY): Remove.
34624
34625 2006-08-31  Eric Blake  <ebb9@byu.net>
34626
34627         * gnulib-tool: Don't let emacs change spaces to TAB.
34628
34629 2006-08-31  Bruno Haible  <bruno@clisp.org>
34630
34631         * gnulib-tool: When calling func_import more than once, do it in a
34632         subshell.
34633         Reported by Eric Blake <ebb9@byu.net>.
34634
34635 2006-08-31  Bruno Haible  <bruno@clisp.org>
34636
34637         * gnulib-tool (nl): Remove variable.
34638         (sed_transform_lib_file): Use more robust test for config-h module.
34639         (func_import): Fix typo in 2006-08-25 patch.
34640
34641 2006-08-31  Bruno Haible  <bruno@clisp.org>
34642
34643         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
34644         specified, augment Makefile.am variables instead of assigning them.
34645
34646 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
34647
34648         Work around a bug in both the Linux and SunOS 64-bit kernels:
34649         nanosleep mishandles sleeps for longer than 2**31 seconds.
34650         Problem reported by Frank v Waveren in
34651         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
34652         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
34653         Check for nanosleep bug.
34654         (LIB_NANOSLEEP): Append clock_gettime library if needed.
34655
34656 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
34657
34658         Work around a bug in both the Linux and SunOS 64-bit kernels:
34659         nanosleep mishandles sleeps for longer than 2**31 seconds.
34660         Problem reported by Frank v Waveren in
34661         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
34662         * lib/nanosleep.c (BILLION): New constant.
34663         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
34664         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
34665         implementation.
34666
34667 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
34668
34669         * modules/nanosleep (Depends-on): Add gettime.
34670
34671 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
34672         and Simon Josefsson  <jas@extundo.com>
34673         and Oskar Liljeblad  <oskar@osk.mine.nu>
34674
34675         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
34676         * gnulib-tool (func_import): New license type 'unmodifiable license
34677         text'.
34678         * modules/fdl: Use it.  Longer description.
34679         * module/gpl, module/lgpl: New files.
34680
34681 2006-08-30  Jim Meyering  <jim@meyering.net>
34682
34683         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
34684         shadowing the parameter.
34685
34686 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34687
34688         Sync from Libtool:
34689
34690         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34691
34692         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
34693         sharing with gnulib.  Report by Eric Blake.
34694
34695 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
34696
34697         * modules/isapipe: New file.
34698         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
34699
34700 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
34701
34702         * modules/configmake (Makefile.am): Add a comment, and omit
34703         the CONFIGMAKE_ prefix from generated macro names.  Suggested
34704         by Bruno Haible.
34705
34706 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
34707
34708         * m4/isapipe.m4: New file.
34709
34710 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
34711
34712         * lib/isapipe.c, lib/isapipe.h: New files.
34713
34714 2006-08-29  Jim Meyering  <jim@meyering.net>
34715
34716         * modules/configmake (Makefile.am): Make configmake.h depend on
34717         Makefile.  Otherwise, a stale configmake.h could hang around.
34718
34719 2006-08-29  Eric Blake  <ebb9@byu.net>
34720
34721         * lib/error.c (error_at_line, print_errno_message): Match libc, after
34722         resolution of upstream bug 3044.
34723
34724 2006-08-29  Bruno Haible  <bruno@clisp.org>
34725
34726         * modules/localcharset (Depends-on): Add configmake.
34727         (Makefile.am): Remove setting of LIBDIR through DEFS.
34728
34729 2006-08-29  Bruno Haible  <bruno@clisp.org>
34730
34731         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
34732         defined.
34733
34734 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
34735
34736         * modules/fcntl: New file.
34737         * modules/chdir-safer (Depends-on): Add fcntl.
34738         * modules/fts: Likewise.
34739         * modules/mkdir-p: Likewise.
34740
34741         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
34742         This undoes the most recent change, since we're now addressing the
34743         problem in a different way.
34744
34745         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
34746         into output, since the output might be called Makefile.am even
34747         if $makefile_name is something different.
34748         (func_import): Use $makefile_am rather than
34749         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
34750         empty.
34751
34752         * modules/inttypes (Files): Add m4/inttypes-h.m4.
34753
34754 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
34755
34756         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
34757         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
34758         recent change to stdint.m4, since we're now addressing the problem in a
34759         different way.
34760
34761 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
34762
34763         * m4/fcntl_h.m4: New file.
34764
34765 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
34766
34767         * lib/fcntl_.h: New file.
34768         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
34769         the fcntl module.
34770         * lib/dirchownmod.c: Likewise.
34771         * lib/fts.c: Likewise.
34772
34773         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
34774         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
34775         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
34776         just before including <inttypes.h>, to avoid circular inclusion.
34777
34778 2006-08-28  Jim Meyering  <jim@meyering.net>
34779
34780         * doc/visibility.texi: Actually read and correct the grammar of the
34781         sentence affected by yesterday's change.
34782
34783 2006-08-28  Eric Blake  <ebb9@byu.net>
34784
34785         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
34786         needs wrapper.
34787
34788 2006-08-28  Eric Blake  <ebb9@byu.net>
34789
34790         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
34791
34792 2006-08-28  Eric Blake  <ebb9@byu.net>
34793
34794         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
34795
34796 2006-08-28  Bruno Haible  <bruno@clisp.org>
34797
34798         * modules/c-strstr: New file, from GNU gettext.
34799         * MODULES.html.sh (String handling): Add c-strstr.
34800
34801 2006-08-28  Bruno Haible  <bruno@clisp.org>
34802
34803         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
34804         macros.
34805         Reported by Eric Blake.
34806
34807 2006-08-28  Bruno Haible  <bruno@clisp.org>
34808
34809         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
34810         (VASNPRINTF): Return a string of length > INT_MAX without failing.
34811         * lib/vasprintf.c: Include errno.h, limits.h.
34812         (EOVERFLOW): New fallback definition.
34813         (vasprintf): Test here whether the string length is > INT_MAX.
34814         * lib/vsnprintf.c: Include errno.h, limits.h.
34815         (EOVERFLOW): New fallback definition.
34816         (vsnprintf): Fix bug when generated string was too long for the buffer.
34817         Test here whether the string length is > INT_MAX.
34818
34819 2006-08-28  Bruno Haible  <bruno@clisp.org>
34820
34821         * lib/inttypes_.h (SCNX*): Remove definitions.
34822         Reported by Eric Blake.
34823
34824 2006-08-28  Bruno Haible  <bruno@clisp.org>
34825
34826         * lib/c-strstr.h: New file, from GNU gettext.
34827         * lib/c-strstr.c: New file, from GNU gettext.
34828
34829 2006-08-28  Bruno Haible  <bruno@clisp.org>
34830
34831         * gnulib-tool: Reorder some statements.
34832
34833 2006-08-28  Bruno Haible  <bruno@clisp.org>
34834
34835         * gnulib-tool: New option --makefile-name.
34836         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
34837         $makefile_name.
34838         (func_import): Write $makefile_name to the cache file, and read it from
34839         there unless explicitly specified. Use $makefile_name as file name
34840         instead of Makefile.am. Adjust the recommendations accordingly.
34841
34842 2006-08-28  Bruno Haible  <bruno@clisp.org>
34843
34844         * gnulib-tool (func_verify_module): Check against misapplying patch.
34845
34846 2006-08-28  Bruno Haible  <bruno@clisp.org>
34847
34848         * gnulib-tool (func_relativize, func_relconcat): New functions.
34849         Give an error if --local-dir is given with --update.
34850         Remove trailing slashes from $local_gnulib_dir.
34851         (func_import): Store the relativized $local_gnulib_dir in
34852         gnulib-cache.m4, and read it from there if not specified explicitly.
34853
34854 2006-08-28  Bruno Haible  <bruno@clisp.org>
34855
34856         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
34857         is the current directory. Respect also $local_gnulib_dir.
34858
34859 2006-08-28  Bruno Haible  <bruno@clisp.org>
34860             Simon Josefsson  <jas@extundo.com>
34861
34862         BeOS portability.
34863         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
34864
34865 2006-08-27  Jim Meyering  <jim@meyering.net>
34866
34867         * doc/visibility.texi: Remove duplicate word: "pointer".
34868
34869 2006-08-26  Bruno Haible  <bruno@clisp.org>
34870
34871         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
34872         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
34873         (Makefile.am): Create inttypes.h from inttypes_.h.
34874         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
34875
34876         * modules/imaxabs: New file.
34877
34878         * modules/imaxdiv: New file.
34879
34880 2006-08-26  Bruno Haible  <bruno@clisp.org>
34881
34882         * m4/inttypes.m4: New file.
34883         * m4/_inttypes_h.m4: Remove file.
34884         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
34885         PRI_MACROS_BROKEN.
34886         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
34887
34888         * m4/imaxabs.m4: New file.
34889
34890         * m4/imaxdiv.m4: New file.
34891
34892 2006-08-26  Bruno Haible  <bruno@clisp.org>
34893
34894         * lib/inttypes_.h: New file.
34895         * lib/inttypes.h: Remove file.
34896         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
34897
34898         * lib/imaxabs.c: New file.
34899
34900         * lib/imaxdiv.c: New file.
34901
34902 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
34903
34904         New config-h module, so that "make" output needn't be cluttered
34905         by -DHAVE_CONFIG_H.
34906         * MODULES.html.sh (Support for building libraries and executables):
34907         Add config-h.
34908         * modules/config-h: New file.
34909         * gnulib-tool (nl, sed_transform_lib_file): New vars.
34910         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
34911         the config-h module is used.
34912
34913         New configmake module, so that "make" output needn't be cluttered
34914         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
34915         * MODULES.html.sh (Support for building libraries and executables):
34916         Add configmake.
34917         * modules/configmake: New file.
34918
34919 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
34920
34921         * m4/config-h.m4: New file.
34922
34923 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
34924
34925         * config/srclist.txt: Add elisp-comp.
34926
34927 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
34928
34929         * MODULES.html.sh (Support for building libraries and executables):
34930         Add elisp-comp.
34931         * build-aux/elisp-comp: New file.
34932         * modules/elisp-comp: New file.
34933
34934 2006-08-24  Bruno Haible  <bruno@clisp.org>
34935
34936         * gnulib-tool (func_create_testdir): Use non-default values of
34937         sourcebase and m4base.
34938
34939 2006-08-24  Bruno Haible  <bruno@clisp.org>
34940
34941         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
34942         HTML structure.
34943
34944 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
34945
34946         * modules/openat (Depends-on): Add lchown.
34947
34948 2006-08-23  Bruno Haible  <bruno@clisp.org>
34949
34950         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
34951         of gl_LOCK_EARLY instead of gl_LOCK.
34952
34953 2006-08-23  Bruno Haible  <bruno@clisp.org>
34954
34955         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
34956         on OSF/1 to no.
34957         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
34958
34959 2006-08-23  Bruno Haible  <bruno@clisp.org>
34960
34961         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
34962         as unusable.
34963
34964         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
34965         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
34966         (gl_LOCK): New macro.
34967
34968 2006-08-22  Simon Josefsson  <jas@extundo.com>
34969
34970         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
34971         to md5 module.
34972
34973 2006-08-22  Simon Josefsson  <jas@extundo.com>
34974
34975         * MODULES.html.sh: Add "Support for maintaining and release
34976         projects".
34977
34978         * build-aux/gnupload: New file, from coreutils.
34979
34980 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
34981
34982         Avoid the need for AC_LIBSOURCES in m4 macros.
34983         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
34984         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
34985         * modules/check-version (EXTRA_DIST): Add check-version.h.
34986         * modules/crc (EXTRA_DIST): Add crc.h.
34987         * modules/des (EXTRA_DIST): Add des.h.
34988         * modules/gc (EXTRA_DIST): Add gc.h.
34989         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
34990         * modules/getline (EXTRA_DIST): Add getline.h.
34991         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
34992         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
34993         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
34994         * modules/md2 (EXTRA_DIST): Add md2.h.
34995         * modules/md4 (EXTRA_DIST): Add md4.h.
34996         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
34997         * modules/read-file (EXTRA_DIST): Add read-file.h.
34998         * modules/readline (EXTRA_DIST): Add readline.h.
34999         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
35000         rijndael-api-fst.h.
35001
35002 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
35003
35004         * m4/rijndael.m4 (gl_ARCFOUR):
35005         * m4/arctwo.m4 (gl_ARCTWO):
35006         * m4/check-version.m4 (gl_CHECK_VERSION):
35007         * m4/crc.m4 (gl_CRC):
35008         * m4/des.m4 (gl_DES):
35009         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
35010         * m4/gc.m4 (gl_GC):
35011         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
35012         * m4/getline.m4 (gl_FUNC_GETLINE):
35013         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
35014         * m4/hmac-md5.m4 (gl_HMAC_MD5):
35015         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
35016         * m4/md2.m4 (gl_MD2):
35017         * m4/md4.m4 (gl_MD4):
35018         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
35019         * m4/read-file.m4 (gl_FUNC_READ_FILE):
35020         * m4/readline.m4 (gl_FUNC_READLINE):
35021         * m4/rijndael.m4 (gl_RIJNDAEL):
35022         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
35023         to get the necessary .h files and whatnot.
35024
35025 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
35026
35027         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
35028         gnulib rather than the other way around.
35029         * config/srclistvars.sh (COREUTILS): Remove.
35030
35031 2006-08-22  Jim Meyering  <jim@meyering.net>
35032
35033         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
35034
35035         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
35036
35037 2006-08-22  Eric Blake  <ebb9@byu.net>
35038
35039         * modules/regexprops-generic: New file.
35040         * MODULES.html.sh (Support for building documentation): List it.
35041
35042 2006-08-22  Eric Blake  <ebb9@byu.net>
35043
35044         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
35045         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
35046         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
35047         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
35048
35049 2006-08-22  Bruno Haible  <bruno@clisp.org>
35050
35051         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
35052         and lib_LTLIBRARIES like the other lib_* variables.
35053
35054 2006-08-22  Bruno Haible  <bruno@clisp.org>
35055
35056         * build-aux/x-to-1.in: New file, from GNU gettext.
35057
35058 2006-08-22  Bruno Haible  <bruno@clisp.org>
35059
35060         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
35061         <utmpx.h> exists.
35062
35063 2006-08-22  Bruno Haible  <bruno@clisp.org>
35064
35065         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
35066         <utmpx.h> exists.
35067
35068 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
35069
35070         BeOS portability.
35071         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
35072         exist.
35073         Problem reported by Bruno Haible.
35074
35075 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
35076
35077         Avoid the need for AC_LIBSOURCES in m4 macros.
35078         * modules/acl (EXTRA_DIST): Add acl.h.
35079         * modules/argmatch (Files): Add m4/argmatch.m4.
35080         (configure.ac): Add gl_ARGMATCH.
35081         (EXTRA_DIST): Renamed from lib_SOURCES, for
35082         consistency with the other modules.  Remove argmatch.c.
35083         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
35084         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
35085         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
35086         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
35087         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
35088         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
35089         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
35090         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
35091         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
35092         * modules/closeout (EXTRA_DIST): Add closeout.h.
35093         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
35094         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
35095         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
35096         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
35097         dirname.h; remove basename.c and stripslash.c.
35098         * modules/exclude (EXTRA_DIST): Add exclude.h.
35099         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
35100         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
35101         * modules/file-type (EXTRA_DIST): Add file-type.h.
35102         * modules/filemode (EXTRA_DIST): Add filemode.h.
35103         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
35104         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
35105         * modules/fpending (EXTRA_DIST): Add __fpending.h.
35106         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
35107         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
35108         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
35109         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
35110         * modules/getdate (EXTRA_DIST): Add getdate.c.
35111         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
35112         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
35113         * modules/getpass (EXTRA_DIST): Add getpass.h.
35114         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
35115         * modules/group-member (EXTRA_DIST): Add group-member.h.
35116         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
35117         * modules/hash (EXTRA_DIST): Add hash.h.
35118         * modules/human (EXTRA_DIST): Add human.h.
35119         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
35120         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
35121         * modules/lchown (EXTRA_DIST): Add lchown.h.
35122         * modules/long-options (EXTRA_DIST): Add long-options.h.
35123         * modules/lstat (EXTRA_DIST): Add lstat.h.
35124         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
35125         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
35126         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
35127         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
35128         * modules/memxor (EXTRA_DIST): Add memxor.h.
35129         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
35130         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
35131         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
35132         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
35133         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
35134         * modules/physmem (EXTRA_DIST): Add physmem.h.
35135         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
35136         * modules/posixver (EXTRA_DIST): Add posixver.h.
35137         * modules/quote (EXTRA_DIST): Add quote.h.
35138         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
35139         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
35140         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
35141         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
35142         regex_internal.h regexec.c.
35143         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
35144         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
35145         * modules/same (EXTRA_DIST): Add same.h.
35146         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
35147         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
35148         * modules/savedir (EXTRA_DIST): Add savedir.h.
35149         * modules/sha1 (EXTRA_DIST): Add sha1.h.
35150         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
35151         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
35152         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
35153         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
35154         * modules/strdup (EXTRA_DIST): Add strdup.h.
35155         * modules/strftime (EXTRA_DIST): Add strftime.h.
35156         * modules/strndup (EXTRA_DIST): Add strndup.h.
35157         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
35158         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
35159         * modules/time_r (EXTRA_DIST): Add time_r.h.
35160         * modules/timespec (EXTRA_DIST): Add timespec.h.
35161         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
35162         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
35163         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
35164         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
35165         * modules/userspec (EXTRA_DIST): Add userspec.h.
35166         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
35167         * modules/utimens (EXTRA_DIST): Add utimens.h.
35168         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
35169         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
35170         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
35171         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
35172         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
35173         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
35174         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
35175         * modules/yesno (EXTRA_DIST): Add yesno.h.
35176
35177 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
35178
35179         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
35180
35181         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
35182         * m4/dev-ino.m4, same-inode.m4: Remove.
35183
35184         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
35185         * m4/acl.m4 (AC_FUNC_ACL):
35186         * m4/backupfile.m4 (gl_BACKUPFILE):
35187         * m4/c-strtod.m4 (gl_C99_STRTOLD):
35188         * m4/canon-host.m4 (gl_CANON_HOST):
35189         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
35190         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
35191         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
35192         * m4/cloexec.m4 (gl_CLOEXEC):
35193         * m4/close-stream.m4 (gl_CLOSE_STREAM):
35194         * m4/closeout.m4 (gl_CLOSEOUT):
35195         * m4/dirfd.m4 (gl_FUNC_DIRFD):
35196         * m4/dirname.m4 (gl_DIRNAME):
35197         * m4/exclude.m4 (gl_EXCLUDE):
35198         * m4/exitfail.m4 (gl_EXITFAIL):
35199         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
35200         * m4/file-type.m4 (gl_FILE_TYPE):
35201         * m4/filemode.m4 (gl_FILEMODE):
35202         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
35203         * m4/fpending.m4 (gl_FUNC_FPENDING):
35204         * m4/fprintftime.m4 (gl_FPRINTFTIME):
35205         * m4/fts.m4 (gl_FUNC_FTS):
35206         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
35207         * m4/getdate.m4 (gl_GETDATE):
35208         * m4/gethrxtime.m4 (gl_GETHRXTIME):
35209         * m4/getpagesize.m4 (gl_GETPAGESIZE):
35210         * m4/getpass.m4 (gl_FUNC_GETPASS):
35211         * m4/gettime.m4 (gl_GETTIME):
35212         * m4/getugroups.m4 (gl_GETUGROUPS):
35213         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
35214         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
35215         * m4/hard-locale.m4 (gl_HARD_LOCALE):
35216         * m4/hash.m4 (gl_HASH):
35217         * m4/idcache.m4 (gl_IDCACHE):
35218         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
35219         * m4/lchown.m4 (gl_FUNC_LCHOWN):
35220         * m4/long-options.m4 (gl_LONG_OPTIONS):
35221         * m4/lstat.m4 (gl_FUNC_LSTAT):
35222         * m4/md5.m4 (gl_MD5):
35223         * m4/memcasecmp.m4 (gl_MEMCASECMP):
35224         * m4/memcoll.m4 (gl_MEMCOLL):
35225         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
35226         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
35227         * m4/memxor.m4 (gl_MEMXOR):
35228         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
35229         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
35230         * m4/modechange.m4 (gl_MODECHANGE):
35231         * m4/mountlist.m4 (gl_MOUNTLIST):
35232         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
35233         * m4/openat.m4 (gl_FUNC_OPENAT):
35234         * m4/pathmax.m4 (gl_PATHMAX):
35235         * m4/physmem.m4 (gl_PHYSMEM):
35236         * m4/posixtm.m4 (gl_POSIXTM):
35237         * m4/posixver.m4 (gl_POSIXVER):
35238         * m4/quote.m4 (gl_QUOTE):
35239         * m4/quotearg.m4 (gl_QUOTEARG):
35240         * m4/readtokens.m4 (gl_READTOKENS):
35241         * m4/readutmp.m4 (gl_READUTMP):
35242         * m4/regex.m4 (gl_REGEX):
35243         * m4/safe-read.m4 (gl_SAFE_READ):
35244         * m4/safe-write.m4 (gl_SAFE_WRITE):
35245         * m4/same.m4 (gl_SAME):
35246         * m4/save-cwd.m4 (gl_SAVE_CWD):
35247         * m4/savedir.m4 (gl_SAVEDIR):
35248         * m4/settime.m4 (gl_SETTIME):
35249         * m4/sha1.m4 (gl_SHA1):
35250         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
35251         * m4/stat-macros.m4 (gl_STAT_MACROS):
35252         * m4/stat-time.m4 (gl_STAT_TIME):
35253         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
35254         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
35255         * m4/strdup.m4 (gl_FUNC_STRDUP):
35256         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
35257         * m4/strndup.m4 (gl_FUNC_STRNDUP):
35258         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
35259         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
35260         * m4/time_r.m4 (gl_TIME_R):
35261         * m4/timespec.m4 (gl_TIMESPEC):
35262         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
35263         * m4/unlinkdir.m4 (gl_UNLINKDIR):
35264         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
35265         * m4/userspec.m4 (gl_USERSPEC):
35266         * m4/utimecmp.m4 (gl_UTIMECMP):
35267         * m4/utimens.m4 (gl_UTIMENS):
35268         * m4/xalloc.m4 (gl_XALLOC):
35269         * m4/xgetcwd.m4 (gl_XGETCWD):
35270         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
35271         * m4/xreadlink.m4 (gl_XREADLINK):
35272         * m4/xstrtod.m4 (gl_XSTRTOD):
35273         * m4/yesno.m4 (gl_YESNO):
35274         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
35275         to get the necessary .h files and whatnot.
35276
35277 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
35278             Bruno Haible  <bruno@clisp.org>
35279
35280         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
35281         /bin/sh understanding of '!' conditional negation.
35282
35283 2006-08-21  Jim Meyering  <jim@meyering.net>
35284
35285         * modules/openat (Depends-on): Really alphabetize.
35286
35287         * modules/acl (Depends-on): Add error and quote.
35288
35289         * check-module (find_included_lib_files): Add at-func.c to the
35290         ok-to-include-more-than-once white list.
35291
35292         * modules/openat (Depends-on): Add lstat.  Alphabetize.
35293
35294 2006-08-21  Bruno Haible  <bruno@clisp.org>
35295
35296         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35297         Emit a pkgdata_DATA variable only if some snippets add contents to it.
35298         Reported by Martin Lambers <marlam@marlam.de>.
35299
35300 2006-08-21  Bruno Haible  <bruno@clisp.org>
35301
35302         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
35303         specify an installation location, don't emit a noinst_LIBRARIES or
35304         noinst_LTLIBRARIES assignment.
35305
35306 2006-08-21  Bruno Haible  <bruno@clisp.org>
35307
35308         BeOS portability.
35309         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
35310         BeOS has mbrtowc() but no <wctype.h>.
35311
35312 2006-08-21  Bruno Haible  <bruno@clisp.org>
35313
35314         BeOS portability.
35315         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
35316         exist.
35317
35318 2006-08-21  Bruno Haible  <bruno@clisp.org>
35319
35320         BeOS portability.
35321         * lib/mbchar.h: Include <wctype.h> only if it exists.
35322
35323 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
35324
35325         Remove files that are no longer needed by their respective modules.
35326         * m4/obstack.m4: Remove.
35327         * m4/strerror_r.m4: Remove.
35328         * m4/uint32_t.m4: Remove.
35329         * m4/uintptr_t.m4: Remove.
35330         * m4/ullong_max.m4: Remove.
35331         * m4/xstrtoimax.m4: Remove.
35332         * m4/xstrtoumax.m4: Remove.
35333
35334         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
35335         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
35336         dependencies now capture this.
35337
35338         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
35339         Do not use AC_LIBSOURCES, since gnulib modules now do this.
35340         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
35341         * m4/human.m4 (gl_HUMAN): Likewise.
35342         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
35343         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
35344
35345         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
35346
35347         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
35348         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
35349         stdint.
35350         * m4/human.m4 (gl_HUMAN): Likewise.
35351         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
35352         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
35353         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
35354         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
35355         * m4/xstrtol (gl_XSTRTOL): Likewise.
35356
35357         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
35358         AC_TYPE_LONG_LONG_INT.
35359         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
35360         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
35361         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
35362         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
35363
35364         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
35365         on stdbool.
35366
35367         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
35368         (gl_PREREQ_XSTRTOUL): Remove.
35369
35370         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
35371
35372         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
35373         mode.
35374
35375 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
35376
35377         Add and change modules to make it easier for coreutils to use
35378         gnulib-tool.
35379         * modules/backupfile (Files): Remove m4/d-ino.m4.
35380         (Depends-on): Add d-ino.
35381         * modules/cycle-check (Depends-on): Add stdint.
35382         (lib_SOURCES): Add cycle-check.h.
35383         * modules/d-ino: New module.
35384         * modules/d-type: New module.
35385         * modules/error (Files): Remove m4/strerror_r.m4.
35386         * modules/filemode (Files): Add m4/st_dm_mode.m4.
35387         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
35388         m4/inttypes_h.m4, m4/uintmax_t.m4.
35389         (Depends-on): Add stdint.
35390         (lib_SOURCES): Add fsusage.h.
35391         * modules/getcwd (Files): Remove d-ino.m4.
35392         (Depends-on): Add d-ino.
35393         * modules/getndelim2 (Depends-on): Add stdint.
35394         * modules/glob (Files): Remove m4/d-type.m4.
35395         (Depends-on): Add d-type.
35396         * modules/host-os: New module.
35397         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
35398         m4/inttypes_h.m4, m4/uintmax_t.m4.
35399         * Depends-on: Add stdint.
35400         (lib_SOURCES): Add human.h.
35401         * modules/inttostr (Files): Remove m4/intmax_t.m4,
35402         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
35403         m4/uintmax_t.m4, m4/ulonglong.m4.
35404         (Depends-on): Add stdint.
35405         (EXTRA_DIST): Add inttostr.h.
35406         * modules/lchmod: New module.
35407         * modules/link-follow: New module.
35408         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
35409         (Depends-on): Add lchmod.
35410         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
35411         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
35412         (Depends-on): Add stdint.
35413         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
35414         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
35415         (Depends-on): Add stdint.
35416         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
35417         * modules/perl: New module.
35418         * modules/regex (Depends-on): Add stdint.
35419         * modules/rmdir-errno: New module.
35420         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
35421         m4/intmax_t.m4.
35422         (Depends-on): Add stdint.
35423         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
35424         m4/uintmax_t.m4.
35425         (Depends-on): Add stdint.
35426         * modules/unlink-busy: New module.
35427         * modules/utimecmp (Depends-on): Add stdint.
35428         * modules/uptime: New module.
35429         * modules/winsz-ioctl: New module.
35430         * modules/winsz-termios: New module.
35431         * modules/xnanosleep (Depends-on): Add nanosleep.
35432         * modules/ullong_max: Remove.
35433         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
35434         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
35435         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
35436         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
35437         (Depends-on): Add inttypes.
35438         (lib_SOURCES): Add xstrtol.h.
35439         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
35440         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
35441         * MODULES.html.sh: Move 'assert' into the assert section.
35442         Move 'dummy' into the linking section.
35443         Remove ullong_max.
35444         Add section for compatibility checks for POSIX:2001 functions,
35445         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
35446         winsz-ioctl, and winsz-termios into it.
35447         Add lchmod.
35448         Add top-level Misc section and put host-os, perl, and uptime
35449         into it.
35450
35451 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
35452
35453         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
35454         now assume the stdint module.  Do not include inttypes.h.
35455         * lib/fsusage.h: Likewise.
35456         * lib/getndelim2.c: Likewise.
35457         * lib/human.h: Likewise.
35458         * lib/inttostr.h: Likewise.
35459         * lib/obstack.c: Likewise.
35460         * lib/regex_internal.h: Likewise.
35461         * lib/tempname.c: Likewise.
35462         * lib/utimecmp.c: Likewise.
35463         * lib/xstrtol.h: Likewise.
35464
35465         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
35466
35467         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
35468         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
35469         * lib/xtime.h: Likewise.
35470
35471 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35472
35473         * modules/openat (Files): Add lib/fchmodat.c.
35474         Fixes problem reported by Jay Youngman.
35475
35476 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35477
35478         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
35479         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
35480
35481 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
35482             Bruno Haible  <bruno@clisp.org>
35483
35484         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
35485         and is a script that invokes bison. Tighten the code. Add comments.
35486
35487 2006-08-18  Jim Meyering  <jim@meyering.net>
35488
35489         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
35490         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
35491         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
35492         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
35493
35494 2006-08-18  Bruno Haible  <bruno@clisp.org>
35495
35496         * modules/bison-i18n: New file.
35497         * MODULES.html.sh (Internationalization functions): Add it.
35498
35499 2006-08-18  Bruno Haible  <bruno@clisp.org>
35500
35501         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
35502         sys/statvfs.h. When getmntinfo was found, check its declaration and
35503         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
35504
35505 2006-08-18  Bruno Haible  <bruno@clisp.org>
35506
35507         * m4/bison-i18n.m4: New file, from bison.
35508
35509 2006-08-18  Bruno Haible  <bruno@clisp.org>
35510
35511         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
35512         (ME_DUMMY): Treat "kernfs" as a dummy.
35513         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
35514
35515 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
35516
35517         Update from coreutils.
35518
35519         2006-08-15  Jim Meyering  <jim@meyering.net>
35520
35521         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
35522
35523         2006-01-17  Jim Meyering  <jim@meyering.net>
35524
35525         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
35526
35527         2006-01-11  Jim Meyering  <jim@meyering.net>
35528
35529         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
35530         Check for the lchmod function.
35531
35532 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
35533
35534         Update from coreutils.
35535
35536         * lib/__fpending.h: Add copyright notice.
35537         * lib/fprintftime.h: Likewise.
35538         * lib/savedir.c: Use (C) in copyright notice.
35539         * lib/savedir.h: Likewise.
35540
35541         2006-08-15  Jim Meyering  <jim@meyering.net>
35542
35543         * lib/at-func.c: New file, with the logic of all emulated at-functions.
35544         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
35545         in support of the EXPECTED_ERRNO macro.
35546         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
35547         definitions.  Instead, define the appropriate symbols and include
35548         "at-func.c".
35549         * lib/mkdirat.c (mkdirat): Likewise.
35550         * lib/fchmodat.c (fchmodat): Likewise.
35551         (ENOSYS): Remove definition.
35552         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
35553         it.  Don't include "unistd--.h" -- it wasn't ever used.
35554
35555         2006-01-17  Jim Meyering  <jim@meyering.net>
35556
35557         Rewrite fts.c not to change the current working directory,
35558         by using openat, fstatat, fdopendir, etc..
35559
35560         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
35561         (HAVE_OPENAT_SUPPORT): Define.
35562         [_LIBC] (fchdir): Don't undef or define; no longer used.
35563         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
35564         Now, this `function' always succeeds, and consumes its file descriptor
35565         parameter -- so callers must not close such FDs.  Update callers.
35566         (diropen_fd, opendirat, cwd_advance_fd): New functions.
35567         (diropen): Add parameter, SP.  Adjust all callers.
35568         Implement using diropen_fd, rather than open.
35569         (fts_open): Initialize new member, fts_cwd_fd.
35570         Remove fts_rft-setting code.
35571         (fts_close): Close fts_cwd_fd, if necessary.
35572         (__opendir2): Define in terms of opendir or opendirat,
35573         depending on whether the FST_NOCHDIR flag is set.
35574         (fts_build): Since fts_safe_changedir consumes its FD, and since
35575         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
35576         and close the dup'd file descriptor upon failure.
35577         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
35578         (fts_safe_changedir): Tweak semantics to reflect that this function
35579         now calls cwd_advance_fd and hence consumes its FD argument.
35580         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
35581         [struct FTS] (fts_rft): Remove now-unused member.
35582         [struct FTS] (fts_cycle.state): Improve comment.
35583
35584         * lib/openat.c (openat_needs_fchdir): New function.
35585         * lib/openat.h (openat_needs_fchdir): Declare it.
35586
35587 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
35588
35589         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
35590         Problem and fix reported by Pádraig Brady in
35591         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
35592
35593 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
35594
35595         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
35596
35597 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
35598
35599         * lib/memcoll.c (memcoll): Optimize for the common case where the
35600         arguments are bytewise equal.
35601
35602 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
35603
35604         * doc/regexprops-generic.texi: Add a copyright notice.
35605
35606 2006-08-15  Bruno Haible  <bruno@clisp.org>
35607
35608         * modules/tmpdir (License): Change to LGPL.
35609
35610 2006-08-15  Bruno Haible  <bruno@clisp.org>
35611
35612         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
35613         module.
35614
35615 2006-08-14  Simon Josefsson  <jas@extundo.com>
35616
35617         * config/srclist.txt: Add gnupload.
35618
35619 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
35620
35621         Change copyright notice from LGPL 2 to GPL 2, since that's the
35622         standard form used in the gnulib repository.
35623         * tests/test-lock.c: Likewise.
35624         * tests/test-stdint.c: Likewise.
35625         * tests/test-tls.c: Likewise.
35626
35627         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
35628         prelude-manager.  User shorter URLs for GNU projects, without '?'.
35629         Add copyright notice.
35630
35631         * check-module: Add copyright notice.  Output a copyright
35632         notice if "--version" is specified.
35633         * modules/COPYING: New file.
35634         * tests/test-getaddrinfo.c: Add copyright notice.
35635         * tests/test-verify.c: Likewise.
35636
35637 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
35638
35639         Change copyright notice from LGPL 2 to GPL 2, since that's the
35640         standard form used in the gnulib repository.
35641         * lib/lock.c: LGPL -> GPL.
35642         * lib/lock.h: Likewise.
35643         * lib/strnlen1.c: Likewise.
35644         * lib/strnlen1.h: Likewise.
35645         * lib/tls.c: Likewise.
35646         * lib/tls.h: Likewise.
35647         * lib/tmpdir.c: Likewise.
35648
35649         * lib/TODO: Remove; this belongs only in coreutils.
35650
35651 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
35652
35653         Add copyright notices to long-enough files that lack them, since
35654         otherwise the files aren't clearly free.  Use the same notice that
35655         getdate.texi already uses.
35656         * doc/alloca-opt.texi: Add copyright notice.
35657         * doc/alloca.texi: Likewise.
35658         * doc/ctime.texi: Likewise.
35659         * doc/functions.texi: Likewise.
35660         * doc/gcd.texi: Likewise.
35661         * doc/gnulib-tool.texi: Likewise.
35662         * doc/inet_ntoa.texi: Likewise.
35663         * doc/visibility.texi: Likewise.
35664
35665         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
35666         * doc/quote.texi: Add copyright notice.
35667
35668         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
35669         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
35670         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
35671         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
35672         is now obsolete, and give a pointer to the Sun list.
35673         Add copyright notice.
35674
35675 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
35676
35677         * config/srclistvars.sh: Add copyright notice.
35678
35679 2006-08-14  Eric Blake  <ebb9@byu.net>
35680
35681         Import the following change from libc:
35682
35683         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
35684
35685         Upstream bug 2997.
35686         * lib/misc/error.c: Add space between program name and message if file
35687         name is missing.
35688
35689 2006-08-12  Karl Berry  <karl@gnu.org>
35690
35691         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
35692         remove, these originate in gnulib now.
35693
35694 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35695
35696         * doc/Makefile (standards.info standards.html standards.dvi):
35697         Also depend on make-stds.texi.
35698
35699 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35700
35701         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
35702         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
35703
35704         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
35705         in wchar_t.  Problem reported by Eric Blake.
35706
35707         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
35708         LEN is smaller than SIZE.  Suggested by Bruno Haible.
35709         Also, help the compiler to keep LEN in a register.
35710
35711 2006-08-11  Eric Blake  <ebb9@byu.net>
35712
35713         * users.txt: Sort.  Add tar.
35714
35715 2006-08-11  Bruno Haible  <bruno@clisp.org>
35716
35717         * users.txt: New file.
35718
35719 2006-08-11  Bruno Haible  <bruno@clisp.org>
35720
35721         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
35722         before <wchar.h>. Needed for OSF/1 and BSD/OS.
35723
35724 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
35725
35726         * modules/snprintf (Depends-on): Remove minmax.
35727         (Maintainer): Add self and Bruno.
35728
35729 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
35730
35731         * lib/.cppi-disable: Add snprintf.h, socket_.h.
35732         * lib/snprintf.c: Include <errno.h> and <limits.h>.
35733         (EOVERFLOW): Define if the system does not.
35734         Do not include "minmax.h"; it wasn't used.
35735         (snprintf): Don't assume size_t promotes to an unsigned type.
35736         Fix bug when generated string was too long for the buffer: the
35737         buffer's contents are supposed to be the initial prefix of the
35738         output.  Don't assume vasnprintf returns EOVERFLOW if the size
35739         exceeds INT_MAX; do the check ourselves.
35740
35741         Import the following changes from libc:
35742
35743         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
35744
35745         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
35746         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
35747         set wc to the byte which couldn't be converted.
35748         (re_string_reconstruct): Don't clear valid_raw_len before calling
35749         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
35750         tip_context using re_string_context_at.
35751
35752         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
35753
35754         * lib/posix/regex.h: g++ still cannot handled [restrict].
35755
35756         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
35757
35758         * lib/posix/regex.h: Remove special handling for VMS.
35759
35760 2006-08-10  Jim Meyering  <jim@meyering.net>
35761
35762         * modules/same-inode: New module.
35763         * modules/dev-ino: New module.
35764         * modules/cycle-check: Depend on these modules, rather than simply
35765         including their .h files.
35766         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
35767         required via m4/cycle-check.m4.
35768         * modules/same: Depend on new same-inode module, rather than
35769         including same-inode.h.
35770         * modules/chdir-safer: New file.
35771
35772         * modules/chown (Depends-on): Add stat-macros.
35773
35774 2006-08-10  Jim Meyering  <jim@meyering.net>
35775
35776         * m4/cycle-check.m4: New file.
35777         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
35778         * m4/dev-ino.m4, m4/same-inode.m4: New files.
35779
35780 2006-08-10  Eric Blake  <ebb9@byu.net>
35781
35782         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
35783         in from original proposal.
35784
35785 2006-08-10  Eric Blake  <ebb9@byu.net>
35786         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35787
35788         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
35789         namespace.
35790
35791 2006-08-10  Bruno Haible  <bruno@clisp.org>
35792
35793         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
35794         as well.
35795
35796 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
35797
35798         Sync from coreutils.
35799
35800         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
35801
35802         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
35803         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
35804
35805 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
35806
35807         * modules/restrict: Remove; no longer needed now that we assume
35808         Autoconf 2.59 or later.
35809         * MODULES.html.sh: Remove 'restrict'.
35810         * modules/argp (Depends-on): Remove 'restrict'.
35811         * modules/base64 (Depends-on): Likewise.
35812         * modules/gc (Depends-on): Likewise.
35813         * modules/getaddrinfo (Depends-on): Likewise.
35814         * modules/glob (Depends-on): Likewise.
35815         * modules/inet_ntop (Depends-on): Likewise.
35816         * modules/inet_pton (Depends-on): Likewise.
35817         * modules/memxor (Depends-on): Likewise.
35818         * modules/regex (Depends-on): Likewise.
35819         * modules/strtok_r (Depends-on): Likewise.
35820         * modules/time_r (Depends-on): Likewise.
35821
35822 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
35823
35824         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
35825         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
35826         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
35827         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
35828         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
35829         * m4/memxor.m4 (gl_MEMXOR): Likewise.
35830         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
35831         gl_C_RESTRICT replaced by AC_C_RESTRICT.
35832
35833         Merge from coreutils.
35834         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
35835         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
35836         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35837         * m4/time_r.m4 (gl_TIME_R): Likewise.
35838
35839 2006-08-09  Karl Berry  <karl@gnu.org>
35840
35841         * config/srclist.txt: no more gettext-tools, per Bruno.
35842
35843 2006-08-08  Eric Blake  <ebb9@byu.net>
35844
35845         * modules/verror: New module.
35846         * MODULES.html.sh: Document it.
35847
35848 2006-08-08  Eric Blake  <ebb9@byu.net>
35849
35850         * lib/verror.h, lib/verror.c: New files.
35851
35852 2006-08-08  Eric Blake  <ebb9@byu.net>
35853
35854         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
35855         verror_at_line output complies with GNU Coding Standards even when
35856         file is NULL.
35857
35858 2006-08-07  Bruno Haible  <bruno@clisp.org>
35859
35860         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
35861         versions of AIX.
35862         Reported by Ralf Wildenhues.
35863
35864 2006-08-07  Bruno Haible  <bruno@clisp.org>
35865
35866         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
35867         in an AC_DEFUN. Needed so that the autoconf snippets can use
35868         AC_REQUIRE.
35869
35870 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35871
35872         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35873         Initialize pkgdata_DATA.
35874         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
35875         overriding it.
35876
35877 2006-08-06  Eric Blake  <ebb9@byu.net>
35878
35879         * lib/error.h: Fold in some upstream changes from glibc.
35880         * lib/error.c: Likewise.
35881
35882 2006-08-04  Bruno Haible  <bruno@clisp.org>
35883
35884         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35885         Make the mostlyclean-local rule depend on mostlyclean-generic.
35886         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
35887
35888 2006-07-31  Bruno Haible  <bruno@clisp.org>
35889
35890         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
35891         <stdlib.h>, <string.h>.
35892
35893 2006-07-30  Bruno Haible  <bruno@clisp.org>
35894
35895         * modules/readlink (License): Change to LGPL.
35896
35897 2006-07-30  Bruno Haible  <bruno@clisp.org>
35898
35899         * modules/javaversion (Makefile.am): Distribute javaversion.java and
35900         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
35901         set PKGDATADIR to point to it.
35902
35903 2006-07-30  Bruno Haible  <bruno@clisp.org>
35904
35905         * modules/csharpexec (configure.ac): Comment out macro invocation.
35906         * modules/javaexec (configure.ac): Likewise.
35907         * modules/javacomp-script (configure.ac): Likewise.
35908
35909         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
35910
35911 2006-07-30  Bruno Haible  <bruno@clisp.org>
35912
35913         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
35914         linked-list.
35915
35916 2006-07-30  Bruno Haible  <bruno@clisp.org>
35917
35918         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
35919
35920 2006-07-30  Bruno Haible  <bruno@clisp.org>
35921
35922         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35923         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
35924         get removed.
35925
35926 2006-07-29  Bruno Haible  <bruno@clisp.org>
35927
35928         Make it possible for gnulib-tool to work with locally modified or
35929         augmented gnulib repositories.
35930         * gnulib-tool (func_usage): Document --local-dir option.
35931         (local_gnulib_dir): New variable.
35932         Handle --local-dir option.
35933         (func_lookup_file): New function.
35934         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
35935         (func_get_description, func_get_filelist, func_get_description,
35936         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
35937         func_get_automake_snippet, func_get_include_directive,
35938         func_get_license, func_get_maintainer): Use func_lookup_file.
35939         (func_import, func_create_testdir): Use func_lookup_file.
35940
35941 2006-07-29  Bruno Haible  <bruno@clisp.org>
35942
35943         * modules/setenv (Depends-on): Add unistd.
35944
35945 2006-07-29  Bruno Haible  <bruno@clisp.org>
35946
35947         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
35948
35949 2006-07-29  Bruno Haible  <bruno@clisp.org>
35950
35951         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
35952
35953 2006-07-29  Bruno Haible  <bruno@clisp.org>
35954
35955         * gnulib-tool (import, update): If there is no Makefile.am, look at
35956         aclocal.m4, instead of bailing out.
35957
35958 2006-07-29  Bruno Haible  <bruno@clisp.org>
35959
35960         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
35961         Categorize the options by when they are useful.
35962
35963 2006-07-29  Bruno Haible  <bruno@clisp.org>
35964
35965         * gnulib-tool (func_usage): Document option --no-libtool.
35966         Handle option --no-libtool.
35967         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
35968         for changed semantics of $libtool variable.
35969         (func_import): Likewise. If libtool is not used, show this through
35970         an option --no-libtool.
35971         (func_create_testdir): Update.
35972
35973 2006-07-29  Bruno Haible  <bruno@clisp.org>
35974
35975         * gnulib-tool (func_import): Extend error message about missing
35976         --doc-base.
35977
35978 2006-07-29  Bruno Haible  <bruno@clisp.org>
35979
35980         * gnulib-tool (func_import): Don't create the $docbase directory if
35981         there is no file to store there.
35982
35983 2006-07-29  Bruno Haible  <bruno@clisp.org>
35984
35985         * gnulib-tool (autoconf_minversion): If a --dir option is given and
35986         relevant, look for configure.ac there, not in the current directory.
35987         Also use a simple search for AC_PREREQ, not "autoconf --trace".
35988
35989 2006-07-29  Bruno Haible  <bruno@clisp.org>
35990
35991         * gnulib-tool (SORT): New variable.
35992         (func_usage): Undocument --assume-autoconf option.
35993         Remove --assume-autoconf option handling.
35994         (autoconf_minversion): Determine from the contents of configure.ac.
35995         (func_import): Remove autoconf_minversion handling.
35996         Suggested by Eric Blake.
35997
35998 2006-07-29  Bruno Haible  <bruno@clisp.org>
35999
36000         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
36001
36002 2006-07-29  Bruno Haible  <bruno@clisp.org>
36003
36004         * config/srclist.txt (*setenv.[ch]): Remove rules.
36005
36006 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36007
36008         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
36009
36010 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36011
36012         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
36013         arpa/inet.h.
36014
36015 2006-07-28  Simon Josefsson  <jas@extundo.com>
36016
36017         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
36018         * modules/inet_pton (Depends-on): Likewise.
36019
36020 2006-07-28  Simon Josefsson  <jas@extundo.com>
36021
36022         * m4/netinet_in_h.m4: New file.
36023
36024 2006-07-28  Simon Josefsson  <jas@extundo.com>
36025
36026         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
36027         #include's.
36028
36029 2006-07-28  Simon Josefsson  <jas@extundo.com>
36030
36031         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
36032         #include's.
36033
36034 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
36035
36036         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
36037         setgid on directories only if they set these bits.
36038         * lib/modechange.h: Remove obsolete comment about masks.
36039
36040 2006-07-28  Eric Blake  <ebb9@byu.net>
36041
36042         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
36043         macro expansion.
36044
36045 2006-07-28  Bruno Haible  <bruno@clisp.org>
36046
36047         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
36048
36049 2006-07-28  Bruno Haible  <bruno@clisp.org>
36050
36051         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
36052
36053 2006-07-28  Bruno Haible  <bruno@clisp.org>
36054
36055         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
36056         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
36057         Define fallbacks.
36058         Avoids link error on FreeBSD 4.x.
36059         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36060
36061         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
36062         encoding.
36063         * lib/mbswidth.c (iswcntrl): Likewise.
36064
36065 2006-07-27  Bruno Haible  <bruno@clisp.org>
36066
36067         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
36068         test.
36069
36070 2006-07-27  Bruno Haible  <bruno@clisp.org>
36071
36072         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
36073         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
36074         defined.
36075
36076 2006-07-26  Eric Blake  <ebb9@byu.net>
36077
36078         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
36079
36080 2006-07-26  Eric Blake  <ebb9@byu.net>
36081
36082         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
36083         like mingw that lack mkstemp.
36084         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
36085         avoid compilation warning on mingw.
36086
36087 2006-07-26  Bruno Haible  <bruno@clisp.org>
36088
36089         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
36090         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
36091         INT_FAST*_MIN, INTPTR_MIN.
36092
36093 2006-07-25  Bruno Haible  <bruno@clisp.org>
36094
36095         * modules/version-etc (Depends-on): Add stdarg.
36096
36097 2006-07-25  Bruno Haible  <bruno@clisp.org>
36098
36099         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
36100         complex commands.
36101
36102 2006-07-25  Bruno Haible  <bruno@clisp.org>
36103
36104         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
36105         defined in <stdarg.h> or config.h.
36106
36107 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
36108
36109         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
36110         (gl_STDIO_SAFER): Remove.
36111
36112 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
36113
36114         * MODULES.html.sh (File stream based Input/Output):
36115         Add fopen-safer, tmpfile-safer; remove stdio-safer.
36116         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
36117         * modules/fopen-safer, modules/tmpfile-safer: New files.
36118         * modules/stdio-safer: Remove.
36119
36120 2006-07-24  Bruno Haible  <bruno@clisp.org>
36121
36122         * modules/tmpdir: New file.
36123         * MODULES.html.sh (File system functions): Add it.
36124
36125 2006-07-24  Bruno Haible  <bruno@clisp.org>
36126
36127         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
36128         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
36129
36130 2006-07-24  Bruno Haible  <bruno@clisp.org>
36131
36132         * modules/clean-temp: New file.
36133
36134 2006-07-24  Bruno Haible  <bruno@clisp.org>
36135
36136         * m4/tmpdir.m4: New file, from GNU gettext.
36137
36138 2006-07-24  Bruno Haible  <bruno@clisp.org>
36139
36140         * lib/tmpdir.h: New file, from GNU gettext.
36141         * lib/tmpdir.c: New file, from GNU gettext.
36142
36143 2006-07-24  Bruno Haible  <bruno@clisp.org>
36144
36145         * lib/clean-temp.h: New file, from GNU gettext.
36146         * lib/clean-temp.c: New file, from GNU gettext.
36147
36148 2006-07-23  Eric Blake  <ebb9@byu.net>
36149
36150         * modules/stdio-safer (Files): Add tmpfile-safer.c.
36151         (Depends-on): Add binary-io.
36152
36153 2006-07-23  Eric Blake  <ebb9@byu.net>
36154
36155         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
36156
36157 2006-07-23  Eric Blake  <ebb9@byu.net>
36158
36159         * lib/tmpfile-safer.c: New file.
36160         * lib/stdio-safer.h (fopen_safer): Add prototype.
36161         * lib/stdio--.h (tmpfile): Make safer.
36162
36163 2006-07-23  Bruno Haible  <bruno@clisp.org>
36164
36165         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
36166         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
36167         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
36168         gl_linked_remove_at): Use it.
36169
36170 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36171         and Simon Josefsson <jas@extundo.com>
36172
36173         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
36174
36175         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
36176
36177 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
36178
36179         * modules/close-stream: New file.
36180         * modules/closeout (Description): Make it clear that it exits
36181         with a diagnostic on error.
36182         (Depends-on): Add close-stream.  Remove fpending, stdbool.
36183         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
36184
36185 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
36186
36187         * m4/close-stream.m4: New file.
36188
36189 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
36190
36191         * lib/close-stream.c, lib/close-stream.h: New files.
36192
36193 2006-07-22  Bruno Haible  <bruno@clisp.org>
36194
36195         Merge from GNU gettext 0.15.
36196
36197         2006-05-01  Bruno Haible  <bruno@clisp.org>
36198
36199                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
36200
36201         2006-07-22  Bruno Haible  <bruno@clisp.org>
36202
36203                 * modules/javaversion: New file.
36204                 * MODULES.html.sh (Java): Add javaversion.
36205
36206         2006-03-12  Bruno Haible  <bruno@clisp.org>
36207
36208                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
36209
36210         2005-12-04  Bruno Haible  <bruno@clisp.org>
36211
36212                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
36213                 (untested).
36214
36215         2006-06-21  Bruno Haible  <bruno@clisp.org>
36216
36217                 Avoid warnings from recent versions of mcs.
36218                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
36219                 -o, -L, -r any more. Use options documented since mcs-1.0
36220                 instead. Similarly for -g.
36221
36222         2005-12-04  Bruno Haible  <bruno@clisp.org>
36223
36224                 * build-aux/csharpcomp.sh.in: Suffix for resources is
36225                 .resources, not .resource.
36226
36227         2005-07-09  Bruno Haible  <bruno@clisp.org>
36228
36229                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
36230                 add a .dll suffix.
36231                 Reported by Mark Junker <mjscod@gmx.de>.
36232
36233         2006-07-22  Bruno Haible  <bruno@clisp.org>
36234
36235                 * modules/gettext: Upgrade to gettext-0.15.
36236                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
36237                 m4/visibility.m4.
36238                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
36239
36240 2006-07-22  Bruno Haible  <bruno@clisp.org>
36241
36242         Merge from GNU gettext 0.15.
36243
36244         2006-03-25  Bruno Haible  <bruno@clisp.org>
36245
36246                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
36247
36248         2006-07-21  Bruno Haible  <bruno@clisp.org>
36249
36250                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
36251                 "1.1".
36252
36253         2006-05-09  Bruno Haible  <bruno@clisp.org>
36254
36255                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
36256                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
36257                 for the conftestver execution.
36258
36259         2006-05-01  Bruno Haible  <bruno@clisp.org>
36260
36261                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
36262                 optional target-version argument. Verify that the compiler
36263                 groks source of the specified source-version, or add -source
36264                 option as necessary. Verify that the compiler produces
36265                 bytecode in the specified target-version, or add -target and
36266                 -source options as necessary. Make the result of the test
36267                 available as variable CONF_JAVAC. Also log error output in
36268                 config.log.
36269
36270         2006-03-11  Bruno Haible  <bruno@clisp.org>
36271
36272                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
36273
36274         2006-05-09  Bruno Haible  <bruno@clisp.org>
36275
36276                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
36277                 CLASSPATH_SEPARATOR to a semicolon.
36278
36279         2006-03-12  Bruno Haible  <bruno@clisp.org>
36280
36281                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
36282                 available as variable CONF_JAVA, for subsequent autoconf
36283                 tests. Also log error output in config.log.
36284
36285         2006-07-19  Bruno Haible  <bruno@clisp.org>
36286
36287                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
36288                 that getline works on glibc2 systems. Needed to avoid trouble
36289                 in relocatable.c.
36290                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
36291
36292         2005-12-04  Bruno Haible  <bruno@clisp.org>
36293
36294                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
36295                 launcher (untested).
36296
36297         2005-12-04  Bruno Haible  <bruno@clisp.org>
36298
36299                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
36300
36301         2006-07-22  Bruno Haible  <bruno@clisp.org>
36302
36303                 * gettext.m4: Update from GNU gettext-0.15.
36304                 * nls.m4: Likewise.
36305                 * po.m4: Likewise.
36306                 * inttypes-pri.m4: Likewise.
36307                 * inttypes-h.m4: Renamed from inttypes.m4.
36308                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
36309
36310 2006-07-22  Bruno Haible  <bruno@clisp.org>
36311
36312         Merge from GNU gettext 0.15.
36313
36314         2005-07-05  Bruno Haible  <bruno@clisp.org>
36315
36316                 * printf-args.c (printf_fetchargs): Work around broken
36317                 definition of wint_t on mingw.
36318
36319         2005-02-12  Bruno Haible  <bruno@clisp.org>
36320
36321                 * xallocsa.h: Add extern "C" for C++.
36322
36323         2006-05-17  Bruno Haible  <bruno@clisp.org>
36324
36325                 Cygwin portability.
36326                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
36327
36328         2006-04-30  Bruno Haible  <bruno@clisp.org>
36329
36330                 * progreloc.c: Include <mach-o/dyld.h> if available.
36331                 (find_executable): Use _NSGetExecutablePath when possible.
36332
36333         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
36334
36335                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
36336                 function.
36337
36338         2005-12-29  Bruno Haible  <bruno@clisp.org>
36339
36340                 * progreloc.c (set_program_name_and_installdir): Fix
36341                 compilation error.
36342
36343         2005-12-04  Bruno Haible  <bruno@clisp.org>
36344
36345                 Cygwin portability.
36346                 * progreloc.c: Include <windows.h> also on Cygwin.
36347                 (find_executable): Add support for Cygwin.
36348                 (set_program_name_and_installdir): Handle also platforms with
36349                 nonempty EXEEXT.
36350
36351         2006-07-11  Bruno Haible  <bruno@clisp.org>
36352
36353                 * javacomp.c: Fix a comment.
36354                 Reported by Jim Meyering.
36355
36356         2006-04-30  Bruno Haible  <bruno@clisp.org>
36357
36358                 * javacomp.h (compile_java_class): Add source_version,
36359                 target_version arguments.
36360                 * javacomp.c: Rewritten to choose only a compiler that
36361                 respects the specified source_version and target_version.
36362
36363         2006-06-27  Bruno Haible  <bruno@clisp.org>
36364
36365                 Assume correct S_ISDIR macro.
36366                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
36367
36368         2006-07-22  Bruno Haible  <bruno@clisp.org>
36369
36370                 * javaversion.h: New file, from GNU gettext.
36371                 * javaversion.c: New file, from GNU gettext.
36372                 * javaversion.java: New file, from GNU gettext.
36373                 * javaversion.class: New file, from GNU gettext.
36374
36375         2006-05-17  Bruno Haible  <bruno@clisp.org>
36376
36377                 Cygwin portability.
36378                 * javaexec.c (execute_java_class): Test for jview program
36379                 also on Cygwin.
36380
36381         2006-04-09  Bruno Haible  <bruno@clisp.org>
36382
36383                 * fatal-signal.c: Don't include string.h.
36384                 (at_fatal_signal): Use a copying loop instead of memcpy.
36385
36386         2005-12-04  Bruno Haible  <bruno@clisp.org>
36387
36388                 * csharpexec.c: Add support for 'clix' launcher (untested).
36389                 (execute_csharp_using_sscli): New function.
36390                 (execute_csharp_program): Call it.
36391
36392         2006-06-21  Bruno Haible  <bruno@clisp.org>
36393
36394                 Avoid warnings from recent versions of mcs.
36395                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
36396                 -o, -L, -r any more. Use options documented since mcs-1.0
36397                 instead. Similarly for -g.
36398
36399         2005-07-09  Bruno Haible  <bruno@clisp.org>
36400
36401                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
36402                 add a .dll suffix.
36403                 Reported by Mark Junker <mjscod@gmx.de>.
36404
36405         2006-06-17  Bruno Haible  <bruno@clisp.org>
36406
36407                 * config.charset: Update for NetBSD 3.0.
36408
36409         2006-05-17  Bruno Haible  <bruno@clisp.org>
36410
36411                 Cygwin portability.
36412                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
36413
36414         2006-05-16  Bruno Haible  <bruno@clisp.org>
36415
36416                 * localcharset.c [CYGWIN]: Include <windows.h>.
36417                 (get_charset_aliases): For Cygwin, return the same CPxxx
36418                 aliases list as under WIN32.
36419                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
36420                 the environment variables. Fall back to GetACP().
36421
36422         2006-04-05  Bruno Haible  <bruno@clisp.org>
36423
36424                 * config.charset: Update Juan Manuel Guerrero's address.
36425
36426         2005-02-12  Bruno Haible  <bruno@clisp.org>
36427
36428                 * allocsa.h: Add extern "C" for C++.
36429
36430         2005-02-10  Bruno Haible  <bruno@clisp.org>
36431
36432                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
36433                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
36434
36435         2006-07-22  Bruno Haible  <bruno@clisp.org>
36436
36437                 * gettext.h: Update to GNU gettext-0.15.
36438
36439 2006-07-22  Bruno Haible  <bruno@clisp.org>
36440
36441         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
36442         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
36443         lib-prefix.m4, longdouble.m4, ssize_t.m4.
36444
36445 2006-07-21  Eric Blake  <ebb9@byu.net>
36446
36447         * modules/stdlib-safer: New file.
36448         * MODULES.html.sh (File stream based Input/Output): Add
36449         stdlib-safer.
36450
36451 2006-07-21  Eric Blake  <ebb9@byu.net>
36452
36453         * lib/stdlib-safer.h: New file from coreutils, required by
36454         stdlib--.h.
36455
36456 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
36457
36458         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
36459
36460 2006-07-20  Bruno Haible  <bruno@clisp.org>
36461
36462         * gnulib-tool: Recognize new option --assume-autoconf.
36463         (autoconf_minversion): New variable.
36464         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
36465
36466 2006-07-20  Bruno Haible  <bruno@clisp.org>
36467
36468         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
36469
36470 2006-07-19  Derek R. Price  <derek@ximbiot.com>
36471
36472         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
36473         Reindent and repaginate.
36474
36475 2006-07-19  Derek Price  <derek@ximbiot.com>
36476
36477         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
36478         Correct grammar.
36479
36480 2006-07-17  Bruno Haible  <bruno@clisp.org>
36481
36482         * modules/list: New file.
36483         * modules/array-list: New file.
36484         * modules/carray-list, modules/carray-list-tests: New files.
36485         * modules/linked-list, modules/linked-list-tests: New files.
36486         * modules/avltree-list, modules/avltree-list-tests: New files.
36487         * modules/rbtree-list, modules/rbtree-list-tests: New files.
36488         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
36489         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
36490         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
36491         * modules/oset: New file.
36492         * modules/array-oset: New file.
36493         * modules/avltree-oset, modules/avltree-oset-tests: New files.
36494         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
36495         * tests/test-carray_list.c: New file.
36496         * tests/test-linked_list.c: New file.
36497         * tests/test-avltree_list.c: New file.
36498         * tests/test-rbtree_list.c: New file.
36499         * tests/test-linkedhash_list.c: New file.
36500         * tests/test-avltreehash_list.c: New file.
36501         * tests/test-rbtreehash_list.c: New file.
36502         * tests/test-avltree_oset.c: New file.
36503         * tests/test-rbtree_oset.c: New file.
36504         * MODULES.html.sh (Container data structures): New section.
36505
36506 2006-07-17  Bruno Haible  <bruno@clisp.org>
36507
36508         * m4/gl_list.m4: New file.
36509
36510 2006-07-17  Bruno Haible  <bruno@clisp.org>
36511
36512         * lib/gl_list.h: New file.
36513         * lib/gl_list.c: New file.
36514         * lib/gl_array_list.h: New file.
36515         * lib/gl_array_list.c: New file.
36516         * lib/gl_carray_list.h: New file.
36517         * lib/gl_carray_list.c: New file.
36518         * lib/gl_linked_list.h: New file.
36519         * lib/gl_linked_list.c: New file.
36520         * lib/gl_anylinked_list1.h: New file.
36521         * lib/gl_anylinked_list2.h: New file.
36522         * lib/gl_avltree_list.h: New file.
36523         * lib/gl_avltree_list.c: New file.
36524         * lib/gl_anyavltree_list1.h: New file.
36525         * lib/gl_anyavltree_list2.h: New file.
36526         * lib/gl_rbtree_list.h: New file.
36527         * lib/gl_rbtree_list.c: New file.
36528         * lib/gl_anyrbtree_list1.h: New file.
36529         * lib/gl_anyrbtree_list2.h: New file.
36530         * lib/gl_anytree_list1.h: New file.
36531         * lib/gl_anytree_list2.h: New file.
36532         * lib/gl_linkedhash_list.h: New file.
36533         * lib/gl_linkedhash_list.c: New file.
36534         * lib/gl_anyhash_list1.h: New file.
36535         * lib/gl_anyhash_list2.h: New file.
36536         * lib/gl_avltreehash_list.h: New file.
36537         * lib/gl_avltreehash_list.c: New file.
36538         * lib/gl_rbtreehash_list.h: New file.
36539         * lib/gl_rbtreehash_list.c: New file.
36540         * lib/gl_anytreehash_list1.h: New file.
36541         * lib/gl_anytreehash_list2.h: New file.
36542
36543         * lib/gl_oset.h: New file.
36544         * lib/gl_oset.c: New file.
36545         * lib/gl_array_oset.h: New file.
36546         * lib/gl_array_oset.c: New file.
36547         * lib/gl_avltree_oset.h: New file.
36548         * lib/gl_avltree_oset.c: New file.
36549         * lib/gl_rbtree_oset.h: New file.
36550         * lib/gl_rbtree_oset.c: New file.
36551         * lib/gl_anytree_oset.h: New file.
36552
36553 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
36554
36555         * m4/mkancesdirs.m4: New file.
36556         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
36557         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
36558         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
36559         it.
36560
36561 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
36562
36563         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
36564         * lib/mkancesdirs.h: New files.
36565         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
36566         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
36567         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
36568         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
36569         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
36570         callers changed.  Revamp internals significantly, by not
36571         attempting to create directories that are temporarily more
36572         permissive than the final results.  Do not attempt to use
36573         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
36574         This removes some race conditions, fixes some bugs, and simplifies
36575         things.  Use new dirchownmod function to do owner and mode changes.
36576         * lib/mkdir-p.h: Likewise.
36577         * lib/modechange.c (octal_to_mode): New function.
36578         (struct mode_change): New member mentioned.
36579         (make_node_op_equals): New arg mentioned.  All callers changed.
36580         (mode_compile): Keep track of which mode bits the user has explicitly
36581         mentioned.
36582         (mode_adjust): New arg DIR, so that we implement the X op correctly.
36583         New arg PMODE_BITS, to keep track of which mode bits the user
36584         mentioned; it treats S_ISUID and S_ISGID speciall.
36585         All callers changed.
36586         * lib/modechange.h: Likewise.
36587
36588 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
36589
36590         * MODULES.html.sh: Add mkancestors.
36591         * modules/mkancesdirs: New module.
36592         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
36593         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
36594         The chdir-safer and afs files are now orphans; I'll remove them
36595         unless someone speaks up.
36596         Add lib/dirchownmod.c, lib/dirchownmod.h.
36597         (Depends-on): Remove alloca, chown, save-cwd, dirname.
36598         Add lchown, mkancesdirs.
36599         (Maintainer): Add self.
36600
36601 2006-07-15  Karl Berry  <karl@gnu.org>
36602
36603         * gnulib-tool: help message wording/arrangement.
36604
36605 2006-07-14  Simon Josefsson  <jas@extundo.com>
36606
36607         * doc/gnulib.texi (Libtool and Windows): New section.
36608
36609 2006-07-12  Simon Josefsson  <jas@extundo.com>
36610
36611         * modules/gendocs (License): Fix license, approved by Karl.
36612
36613 2006-07-12  Eric Blake  <ebb9@byu.net>
36614
36615         * MODULES.html.sh: Add gendocs.
36616
36617 2006-07-11  Eric Blake  <ebb9@byu.net>
36618
36619         * modules/fdl: New module, to install doc/fdl.texi.
36620         * MODULES.html.sh: Add new section for documentation modules.
36621         * gnulib-tool: Avoid space-tab.
36622         (--doc-base): New option, to manage files from doc.
36623
36624 2006-07-11  Eric Blake  <ebb9@byu.net>
36625
36626         * m4/absolute-header.m4: Fix comments to match recent change.
36627
36628 2006-07-11  Eric Blake  <ebb9@byu.net>
36629
36630         * gnulib-tool: List --doc-base before --tests-base.
36631
36632 2006-07-11  Derek R. Price  <derek@ximbiot.com>
36633
36634         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
36635
36636 2006-07-11  Bruno Haible  <bruno@clisp.org>
36637
36638         * README: Mention where to put documentation.
36639
36640 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36641
36642         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
36643
36644 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
36645
36646         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
36647         to stdint.m4.
36648
36649 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
36650
36651         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
36652         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
36653         "no/such/file/stdint.h" when there is no such file, so that
36654         the resulting C code can be parsed by dodgy compilers.
36655         Problems reported by Bob Proulx.
36656
36657 2006-07-10  Derek R. Price  <derek@ximbiot.com>
36658
36659         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
36660         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
36661         macros into the GNU _D_EXACT_NAMLEN.
36662         * lib/savedir.c:  Likewise.
36663         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
36664
36665 2006-07-10  Derek R. Price  <derek@ximbiot.com>
36666         and Paul Eggert  <eggert@cs.ucla.edu>
36667
36668         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
36669         * m4/savedir.m4:
36670         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
36671         macros into the GNU _D_EXACT_NAMLEN.
36672
36673 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
36674
36675         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
36676         around the absolute name, to work around a problem with the HP-UX
36677         11.23 native C compiler, reported by Bob Proulx.
36678
36679 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
36680
36681         * doc/maintain.texi, make-stds.texi: Sync from
36682         <http://savannah.gnu.org/projects/gnustandards>.
36683
36684 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
36685
36686         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
36687
36688 2006-07-09  Jim Meyering  <jim@meyering.net>
36689
36690         * m4/glob.m4: Remove a doubled word in a comment.
36691
36692 2006-07-09  Jim Meyering  <jim@meyering.net>
36693
36694         * lib/argp-pv.c: Remove a doubled word in a comment.
36695         * lib/check-version.c (check_version): Likewise.
36696         * lib/javacomp.c (compile_java_class): Likewise.
36697
36698 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
36699
36700         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
36701         for the benefit of people using Autoconf 2.60.  If you want to
36702         support older Autoconf versions you can copy m4/onceonly_2_57.m4
36703         (or m4/onceonly.m4, if pre-2.57) manually.
36704
36705 2006-07-08  Jim Meyering  <jim@meyering.net>
36706
36707         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
36708         comment.
36709         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
36710         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
36711         comment.
36712
36713 2006-07-08  Jim Meyering  <jim@meyering.net>
36714
36715         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
36716
36717 2006-07-07  Simon Josefsson  <jas@extundo.com>
36718
36719         * tests/test-crc.c: Change expected crc value, the test vector
36720         were probably computed using the old broken crc.c?
36721
36722 2006-07-06  Simon Josefsson  <jas@extundo.com>
36723
36724         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
36725         now the canonical place for the M4 file).
36726
36727         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
36728         from the sys_socket dependency now.
36729
36730         * modules/inet_pton (Files): Ditto.
36731
36732         * modules/inet_ntop (Files): Ditto.
36733
36734 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
36735
36736         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
36737         not gl_PREREQ_GETUSERSHELL.
36738
36739 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36740
36741         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
36742         with only one argument, for Autoconf 2.60.
36743         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
36744         expand to nothing, so add a shell command to avoid syntax error.
36745         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
36746
36747 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36748
36749         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
36750
36751 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
36752
36753         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
36754         no longer needed.  Check for isblank decl.
36755         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
36756         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
36757         of existence.
36758
36759 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
36760
36761         * lib/getloadavg.c: Use __VMS, not VMS.
36762         * lib/getopt.c: Likewise.
36763         * lib/getpagesize.h: Likewise.
36764         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
36765         and probably does not work.
36766
36767 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
36768
36769         * lib/.cppi-disable: Add wcwidth.
36770         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
36771         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
36772         (ISGRAPH): Remove.  All uses changed to isgraph.
36773         (FOLD) [!defined _LIBC]: Remove special case.
36774         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
36775         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
36776         HAVE_ISBLANK.
36777         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
36778         case.
36779
36780 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
36781
36782         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
36783         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
36784         brackets.  Other minor changes to suppress some compiler
36785         warnings.
36786
36787 2006-07-06  Derek R. Price  <derek@ximbiot.com>
36788         and Paul Eggert  <eggert@cs.ucla.edu>
36789
36790         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
36791         of invoking obsolescent AC_HEADER_DIRENT macro.
36792         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
36793         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
36794         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36795         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
36796         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
36797         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
36798         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
36799         * m4/readdir.m4: Remove; no longer needed.
36800
36801 2006-07-06  Derek R. Price  <derek@ximbiot.com>
36802         and Paul Eggert  <eggert@cs.ucla.edu>
36803
36804         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
36805         Don't worry about this obsolete case any more.
36806         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
36807         directories.
36808         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
36809         worry about this obsolete case any more.
36810         * lib/fts.c: Likewise.
36811         * lib/getcwd.c: Likewise.
36812         * lib/glob.h: Likewise.
36813         * lib/savedir.c: Likewise.
36814
36815 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
36816
36817         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
36818         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
36819         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
36820         needed.
36821         All uses removed.
36822         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
36823         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
36824         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
36825         needed.
36826         * m4/getdate.m4 (gl_GETDATE): Likewise.
36827         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
36828         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
36829         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
36830         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
36831         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
36832         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
36833         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
36834         needed.
36835
36836 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
36837
36838         * lib/memcasecmp.c: Include <limits.h>.
36839         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
36840         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
36841         Don't assume isdigit succeeds only on '0' through '9'.
36842
36843 2006-07-05  Eric Blake  <ebb9@byu.net>
36844
36845         * modules/getaddrinfo (Depends-on): Add snprintf.
36846
36847 2006-07-05  Eric Blake  <ebb9@byu.net>
36848
36849         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
36850         to avoid 'header present but could not be compiled' on cygwin.
36851
36852 2006-07-05  Eric Blake  <ebb9@byu.net>
36853
36854         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
36855         missing from netdb.h.
36856         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
36857
36858 2006-07-05  Derek R. Price  <derek@ximbiot.com>
36859
36860         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
36861         no longer needed.
36862         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
36863         * m4/getdate.m4 (gl_GETDATE): Likewise.
36864         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
36865         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
36866         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
36867         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
36868         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
36869
36870 2006-07-05  Derek R. Price  <derek@ximbiot.com>
36871
36872         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
36873         All uses of is_space replaced by isspace.
36874         * lib/exit.h: Don't talk about STDC_HEADERS.
36875         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
36876         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
36877         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
36878         replaced by isprint etc.
36879         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
36880         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
36881         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
36882         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
36883         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
36884         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
36885
36886 2006-07-05  Bruno Haible  <bruno@clisp.org>
36887
36888         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
36889         the function exists, before testing against AIX.
36890         Reported by Martin Lambers <marlam@marlam.de>.
36891
36892 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
36893
36894         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
36895         From Mark D. Baushke.
36896
36897 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
36898
36899         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
36900         to the absolute name, not just one, to bypass Sun C 5.8's
36901         "warning: #include of /usr/include/... may be non-portable".
36902
36903 2006-07-04  Eric Blake  <ebb9@byu.net>
36904
36905         * modules/dirname-tests: New test module.
36906         * tests/test-dirname.c: New file, replacing dirname.c
36907         TEST_DIRNAME section that was recently deleted.
36908
36909 2006-07-04  Bruno Haible  <bruno@clisp.org>
36910
36911         Assume ANSI C header files and <ctype.h> functions.
36912         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
36913         (mbsnwidth): Use isprint, iscntrl instead.
36914
36915 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
36916
36917         Merge from coreutils.
36918         * MODULES.html.sh: Add xstrtold.
36919         * modules/xstrtold: New file.
36920         * modules/cycle-check (Files): Add lib/same-inode.h.
36921         * modules/dirname (Files): Add m4/double-slash-root.m4.
36922         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
36923         * modules/mkdir-p (Files): Add lib/same-inode.h.
36924         * modules/same (Files): Add lib/same-inode.h.
36925
36926 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
36927
36928         * m4/absolute-header.m4: Renamed from full-header-path.m4.
36929         This is to keep the terminology clean; POSIX talks about
36930         "absolute pathnames", not "full pathnames", but the GNU
36931         Coding Standards say to use "path" for something else;
36932         so use "absolute" to keep both sides happy.
36933         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
36934         Set gl_absolute_header, not gl_full_header_path.
36935         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
36936         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
36937         All uses changed.
36938
36939         Merge from coreutils.
36940
36941         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
36942
36943         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
36944         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
36945         want to require the building of c-strtod.o.
36946         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
36947         needs -lm directly.
36948         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
36949
36950         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
36951
36952         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
36953         --as-needed option if available.  Problem reported by Albert Chin in
36954         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
36955         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
36956         cc merely issues a bunch of annoying warnings for --as-needed
36957         (this problem was reported by Bob Proulx).  Also, try linking with
36958         -lm to detect a bug in binutils 2.16 (this problem was reported
36959         by Ralf Wildenhues).
36960
36961         2006-06-18  Jim Meyering  <jim@meyering.net>
36962
36963         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
36964         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
36965         macro.
36966         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
36967         also check for glibc-2.4's abort-inducing bug.
36968
36969         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
36970         Low-probability clean-up should be to use rmdir to get rid of
36971         the just-created directory, not unlink.
36972
36973         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
36974         configure fail, and request a bug report to inform us about it.
36975         Add a comment that, barring reports to the contrary, in 2007 we'll
36976         assume ftruncate is universally available.
36977
36978         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
36979
36980         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
36981
36982         2006-03-12  Jim Meyering  <jim@meyering.net>
36983
36984         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
36985         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
36986         * m4/same.m4 (gl_SAME): Likewise.
36987         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
36988
36989         2006-03-11  Eric Blake  <ebb9@byu.net>
36990
36991         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
36992         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
36993         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
36994         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
36995
36996 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
36997
36998         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
36999         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
37000         reported by Mark D. Baushke, one in
37001         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
37002
37003         Merge from coreutils.
37004
37005         * lib/.cppi-disable: Add stdint_.h.
37006         * lib/.cvsignore: Add stdint.h.
37007
37008         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
37009
37010         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
37011         both double and long double versions.
37012         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
37013         * lib/xstrtold.c: New file.
37014         * lib/xstrtod.h (xstrtold): New decl.
37015
37016         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
37017
37018         * lib/filemode.c (setst): Remove.
37019         (strmode): Rewrite to avoid setst.  This makes the code shorter,
37020         (arguably) clearer, and the generated code is a bit smaller on my
37021         Debian GNU/Linux stable x86 host.
37022
37023         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
37024
37025         * lib/filemode.c: Include "filemode.h" first, to test the interface.
37026         Assume that filemode.h includes sys/types.h and sys/stat.h.
37027         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
37028         (ftypelet): Reorder to put common cases first, for efficiency.
37029         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
37030         to do 'M'.
37031         (strmode): Renamed from mode_string, and now stores 12 bytes instead
37032         of 10, for compatibility with FreeBSD.  All callers changed.
37033         (filemodestring): Now stores 12 bytes instead of 10, and sets file
37034         types that can't be deduced solely from st_mode.  First arg is now a
37035         const pointer.
37036         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
37037         (strmode): Renamed from mode_string.
37038         (filemodestring): New decl.
37039         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
37040         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
37041         needed.
37042         (S_ISPORT, S_ISWHT): New macros, if not already defined.
37043
37044         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
37045
37046         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
37047         fsusage.h now does that.  Include fsusage.h first, to test interface.
37048         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
37049         at most one method (the old code could have generated decls that
37050         didn't conform to C89, not that this was ever exercised).
37051         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
37052
37053         2006-03-19  Jim Meyering  <jim@meyering.net>
37054
37055         Work even in a chroot where d_ino values for entries in "/"
37056         don't match the stat.st_ino values for the same names.
37057         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
37058         number, iterate through all entries again, using lstat instead.
37059         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
37060         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
37061
37062         * lib/getcwd.c (__getcwd): Clarify a comment.
37063         Use memcpy in place of a call to strcpy.
37064
37065         2006-03-12  Jim Meyering  <jim@meyering.net>
37066
37067         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
37068         matches that of the current directory (which we're about to chdir ".."
37069         out of), then save the dev-ino of the parent, instead.
37070
37071         * lib/same-inode.h (SAME_INODE): New file/macro.
37072         * lib/chdir-safer.c (SAME_INODE): Remove definition.
37073         Include "same-inode.h", instead.
37074         * lib/same.c: Likewise.
37075         * lib/cycle-check.h: Include "same-inode.h".
37076         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
37077         * lib/cycle-check.c (SAME_INODE): Remove definition.
37078         * lib/root-dev-ino.h: Include "same-inode.h".
37079
37080         2006-03-11  Eric Blake  <ebb9@byu.net>
37081
37082         * lib/same.c (same_name): s/base_name/last_component/
37083         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
37084         * lib/filenamecat.c (file_name_concat): Likewise.
37085
37086         2006-03-11  Eric Blake  <ebb9@byu.net>,
37087                     Paul Eggert  <eggert@cs.ucla.edu>
37088
37089         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
37090         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
37091         drive prefix.
37092         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
37093         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
37094         (last_component): New method.
37095         * lib/dirname.c (dir_len): Determine when drive letters need a
37096         subsequent slash.  Preserve // when it is special.
37097         (dir_name): Don't append dot when drive letter is absolute.
37098         [TEST_DIRNAME]: Move into a full-blown gnulib test.
37099         * lib/basename.c (base_name): New semantics - malloc the result.
37100         Preserve // when it is special.  Preserve relative files that look
37101         like drive letters.
37102         (base_len): Preserve // when it is special.
37103         (last_component): New method, similar to old base_name semantics.
37104         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
37105         base_name.  Strip redundant slashes from ///.
37106
37107 2006-07-03  Jim Meyering  <jim@meyering.net>
37108
37109         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
37110         macro is used before the first cycle_check call.
37111
37112 2006-07-03  Eric Blake  <ebb9@byu.net>
37113
37114         * modules/dirname (Depends-on): Add xstrndup.
37115
37116 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
37117
37118         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
37119         test cases, so that config.log is a bit easier to follow.
37120
37121 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
37122
37123         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
37124         both are 64 bits, since this seems to be the tradition, and this
37125         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
37126         we ever run into a host that prefers long long to long in this
37127         case, we'll need another configure-time test.  Problem reported by
37128         Jim Meyering.
37129
37130 2006-07-02  Eric Blake  <ebb9@byu.net>
37131
37132         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
37133
37134 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
37135
37136         * modules/inttypes (Depends-on): No longer depends on stdint.
37137         * modules/stdint (Description): Say more about assumptions.
37138         Say that the fast types might differ.  Say macros are used.
37139         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
37140         (Makefile.am): Revise list of substituted symbols to match
37141         new stdint.m4.
37142         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
37143         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
37144         * tests/test-stdint.c (verify_same_types)
37145         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
37146         the code conforms to C99/C89.
37147         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
37148         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
37149
37150 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
37151
37152         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
37153         but fix a bug, by requiring at least 64 bits.
37154         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
37155         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
37156         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
37157         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
37158
37159         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
37160         changes.  Make 2.59 a prerequisite.  Check and substitute for
37161         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
37162         inttypes.h.  Do not use special include files; just use the
37163         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
37164         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
37165         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
37166         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
37167         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
37168         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
37169         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
37170         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
37171         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
37172         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
37173         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
37174         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
37175         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
37176         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
37177         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
37178         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
37179         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
37180         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
37181         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
37182         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
37183         WINT_MAX.  Check for C99 conformance more strictly, by detecting
37184         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
37185         not check for things that C99 does not require, e.g., int8_t.  If
37186         a test isn't needed unless <stdint.h> isn't working, and is
37187         unlikely to be needed for any other reason, then don't do it
37188         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
37189         size_t, since we assume C89 freestanding at least.  Do not check
37190         for sig_atomic_t, wchar_t, or wint_t, since the code now does
37191         the right thing even if the types are not defined.  Instead use:
37192         (gl_STDINT_TYPE_PROPERTIES): New macro.
37193         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
37194         testing whether <sys/types.h> clashes, as Autoconf does this for
37195         us now.  All uses removed.
37196         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
37197         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
37198         (gl_CHECK_TYPE_SAME):
37199         Remove; no longer needed.
37200         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
37201         exists, since we'll return 0 anyway in that case.
37202         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
37203
37204 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
37205
37206         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
37207         possible collision with system files.
37208         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
37209         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
37210         WCHAR_MIN and WCHAR_MAX in this case.
37211         (<stddef.h>): Do not include; no longer needed.
37212         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
37213         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
37214         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
37215         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
37216         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
37217         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
37218         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
37219         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
37220         !defined(__c99))]: Include in this case too, since it's harmless
37221         now.
37222         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
37223         dangerous to do so.
37224         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
37225         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
37226         (_STDINT_MIN, _STDINT_MAX): New macros.
37227         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
37228         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
37229         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
37230         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
37231         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
37232         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
37233         macros, not typedefs; this simplifies things quite a bit.
37234         Use long int for all types narrower than int64_t.
37235         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
37236         Define in terms of long long int or int64_t or long int,
37237         not int64_t or int32_t.  This saves some compile-time testing.
37238         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
37239         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
37240         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
37241         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
37242         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
37243         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
37244         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
37245         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
37246         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
37247         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
37248         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
37249         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
37250         undef any previous version and define our own version, for
37251         simplicity and consistency with the new macros for types.
37252         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
37253         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
37254         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
37255         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
37256         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
37257         @WINT_T_SUFFIX@ to keep things simple here.
37258         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
37259         Simplify by assuming typical 8/16/32/64 host, since we're
37260         already doing that elsewhere anyway.
37261         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
37262         and assume long long int is 64 bits if available.  This
37263         speeds up 'configure'.
37264
37265 2006-07-01  Eric Blake  <ebb9@byu.net>
37266
37267         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
37268         Reported by Andreas Buening.
37269
37270 2006-07-01  Eric Blake  <ebb9@byu.net>
37271
37272         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
37273
37274 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
37275
37276         * lib/getaddrinfo.c: fixed typo
37277
37278 2006-06-29  Jim Meyering  <jim@meyering.net>
37279
37280         * modules/strftime (Maintainer): Add my name, since with the
37281         FPRINTFTIME changes strftime.c has forked from glibc.
37282
37283 2006-06-29  Eric Blake  <ebb9@byu.net>
37284
37285         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
37286
37287 2006-06-29  Eric Blake  <ebb9@byu.net>
37288
37289         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
37290
37291 2006-06-29  Eric Blake  <ebb9@byu.net>
37292
37293         * lib/stat_.h: New file.
37294
37295 2006-06-29  Eric Blake  <ebb9@byu.net>
37296
37297         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
37298         unused static function.
37299
37300 2006-06-29  Eric Blake  <ebb9@byu.net>
37301
37302         * doc/functions.texi (Function Portability): Document missing lstat
37303         on mingw.
37304
37305 2006-06-29  Eric Blake  <ebb9@byu.net>
37306
37307         * MODULES.html.sh: Add sys_stat.
37308         * modules/sys_stat: New module.
37309         * modules/mkstemp (Depends-on): Add sys_stat.
37310
37311 2006-06-29  Derek R. Price  <derek@ximbiot.com>
37312
37313         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
37314
37315 2006-06-29  Derek R. Price  <derek@ximbiot.com>
37316
37317         * m4/c-bs-a.m4: Removed.
37318
37319 2006-06-29  Derek R. Price  <derek@ximbiot.com>
37320
37321         * lib/strftime.c: Assume strftime() exists.
37322
37323 2006-06-29  Derek Price  <derek@ximbiot.com>
37324
37325         * modules/c-bs-a: Removed - \a is C89.
37326         * MODULES.html.sh: Remove c-bs-a.
37327
37328 2006-06-29  Bruno Haible  <bruno@clisp.org>
37329
37330         * modules/wcwidth (License): Change to LGPL.
37331
37332 2006-06-28  Simon Josefsson  <jas@extundo.com>
37333
37334         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
37335         on _WIN32.
37336
37337         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
37338         getnameinfo.
37339
37340 2006-06-28  Simon Josefsson  <jas@extundo.com>
37341
37342         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
37343
37344 2006-06-28  Simon Josefsson  <jas@extundo.com>
37345
37346         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
37347         functions there.  It will succeed on Windows XP, but on Windows
37348         2000 and (presumably) earlier, it will fail, and use the internal
37349         re-implementation.
37350         (use_win32_p): New function.
37351         (getaddrinfo): Use strtoul on servname, to support numeric ports.
37352         Support AI_NUMERICSERV to disable getservbyname.
37353         (getnameinfo): New function, only supports
37354         NI_NUMERICHOST|NI_NUMERICSERV for now.
37355
37356         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
37357         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
37358         getnameinfo.
37359
37360 2006-06-28  Eric Blake  <ebb9@byu.net>
37361
37362         * modules/wcwidth: New file.
37363         * modules/mbchar (Depends-on): Add wcwidth.
37364         * modules/mbswidth (Depends-on): Add wcwidth.
37365         * MODULES.html.sh: Add wcwidth.
37366
37367 2006-06-28  Eric Blake  <ebb9@byu.net>
37368
37369         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
37370         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
37371
37372 2006-06-28  Eric Blake  <ebb9@byu.net>
37373
37374         * lib/xvasprintf.h: Fix comments.
37375
37376 2006-06-28  Eric Blake  <ebb9@byu.net>
37377
37378         * lib/mbchar.h (wcwidth): Include wcwidth.h.
37379         * lib/mbswidth.c (wcwidth): Move from here...
37380         * lib/wcwidth.h: ...to this new file.
37381
37382 2006-06-28  Derek R. Price  <derek@ximbiot.com>
37383
37384         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
37385
37386         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
37387         it's obsolete.
37388         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
37389
37390 2006-06-28  Derek R. Price  <derek@ximbiot.com>
37391
37392         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
37393         Autoconf 2.60 says this stuff was obsolete.
37394
37395 2006-06-28  Bruno Haible  <bruno@clisp.org>
37396
37397         * modules/wcwidth (Files): Add m4/wchar_t.m4.
37398
37399 2006-06-28  Bruno Haible  <bruno@clisp.org>
37400
37401         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
37402         gt_TYPE_WCHAR_T.
37403
37404 2006-06-28  Bruno Haible  <bruno@clisp.org>
37405
37406         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
37407         declaration for wcwidth.
37408         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
37409
37410 2006-06-28  Bruno Haible  <bruno@clisp.org>
37411
37412         * lib/mkdtemp.c [MINGW]: Include <io.h>.
37413         (mkdir): Define using _mkdir.
37414
37415 2006-06-28  Bruno Haible  <bruno@clisp.org>
37416
37417         * lib/getaddrinfo.h: Fix POSIX URL.
37418         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
37419         _WIN32.
37420         (use_win32_p): Make static.
37421         (getaddrinfo): Reject service name if it is empty or does not consist
37422         solely of decimal digits, or if its value is > 65535.
37423         (getnameinfo): Remove useless casts.
37424
37425 2006-06-27  Simon Josefsson  <jas@extundo.com>
37426
37427         * modules/sys_select: New file, suggested by Bruno Haible, Paul
37428         Eggert and Martin Lambers.
37429
37430 2006-06-27  Simon Josefsson  <jas@extundo.com>
37431
37432         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
37433         Eggert and Martin Lambers.
37434
37435 2006-06-27  Bruno Haible  <bruno@clisp.org>
37436
37437         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
37438         result to 0, not to empty.
37439         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
37440
37441 2006-06-27  Bruno Haible  <bruno@clisp.org>
37442
37443         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
37444
37445 2006-06-26  Simon Josefsson  <jas@extundo.com>
37446
37447         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
37448         present.
37449
37450 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
37451
37452         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
37453         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
37454         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
37455
37456 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
37457
37458         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
37459
37460 2006-06-26  Bruno Haible  <bruno@clisp.org>
37461
37462         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
37463
37464 2006-06-26  Bruno Haible  <bruno@clisp.org>
37465
37466         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
37467
37468 2006-06-26  Bruno Haible  <bruno@clisp.org>
37469
37470         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
37471         SGI C compiler in pre-C99 mode.
37472         Suggested by Mark D. Baushke and Larry Jones.
37473
37474 2006-06-26  Bruno Haible  <bruno@clisp.org>
37475
37476         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
37477         WCHAR_MAX.
37478         Reported by Mark D. Baushke and Larry Jones.
37479
37480 2006-06-26  Bruno Haible  <bruno@clisp.org>
37481
37482         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
37483         in pre-C99 mode.
37484         Suggested by Mark D. Baushke and Larry Jones.
37485
37486 2006-06-23  Simon Josefsson  <jas@extundo.com>
37487             Bruno Haible  <bruno@clisp.org>
37488
37489         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
37490         Emit mostlyclean-local rule.
37491         (func_emit_tests_Makefile_am): Likewise.
37492         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
37493
37494 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
37495
37496         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
37497
37498 2006-06-23  Bruno Haible  <bruno@clisp.org>
37499
37500         * tests/test-stdint.c: Update to match ISO C 99 Technical
37501         Corrigendum 1.
37502
37503 2006-06-23  Bruno Haible  <bruno@clisp.org>
37504
37505         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
37506
37507 2006-06-23  Bruno Haible  <bruno@clisp.org>
37508
37509         * lib/stdint_.h: Treat IRIX like OpenBSD.
37510
37511 2006-06-23  Bruno Haible  <bruno@clisp.org>
37512
37513         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
37514         ISO C 99 Technical Corrigendum 1.
37515
37516 2006-06-22  Simon Josefsson  <jas@extundo.com>
37517
37518         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
37519         MinGW.
37520
37521 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37522
37523         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
37524         needed.  Some compiler complained about some of them.  Problem reported
37525         by Larry Jones in
37526         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
37527
37528 2006-06-21  Simon Josefsson  <jas@extundo.com>
37529
37530         * tests/test-getaddrinfo.c: New file.
37531
37532         * modules/getaddrinfo-tests: New file.
37533
37534         * MODULES.html.sh: Add inet_pton.
37535
37536         * modules/inet_pton: New file.
37537
37538 2006-06-21  Simon Josefsson  <jas@extundo.com>
37539
37540         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
37541         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
37542         of using the (limited) gnulib implementation on Windows XP.
37543
37544         * m4/inet_pton.m4: New file.
37545
37546 2006-06-21  Simon Josefsson  <jas@extundo.com>
37547
37548         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
37549         variable.
37550
37551         * lib/socket_.h: Don't define WINVER.
37552
37553         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
37554         slightly modified to work in gnulib.
37555
37556 2006-06-21  Simon Josefsson  <jas@extundo.com>
37557
37558         * doc/gnulib.texi (Windows sockets): Add.
37559
37560 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
37561
37562         * lib/read-file.c (fread_file): Start with buffer allocation of
37563         0 bytes rather than 1 byte; this simplifies the code.
37564         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
37565         code to free buffer and save/restore errno.
37566         (internal_read_file): Remove unused local.
37567
37568 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
37569
37570         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
37571         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
37572         Problem reported by Denis Excoffier in
37573         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
37574
37575 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37576
37577         * modules/sys_socket, modules/socklen: Include sys/types since
37578         FreeBSD 4.x's sys/socket.h needs it.
37579
37580 2006-06-19  Simon Josefsson  <jas@extundo.com>
37581
37582         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
37583
37584 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
37585
37586         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
37587
37588 2006-06-19  Bruno Haible  <bruno@clisp.org>
37589
37590         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
37591         and FULL_PATH_INTTYPES_H in angle brackets.
37592         Reported by Mark D. Baushke <mdb@gnu.org>.
37593
37594 2006-06-17  Eric Blake  <ebb9@byu.net>
37595
37596         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
37597         errno.
37598
37599 2006-06-17  Bruno Haible  <bruno@clisp.org>
37600
37601         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
37602         <sys/inttypes.h>.
37603
37604 2006-06-17  Bruno Haible  <bruno@clisp.org>
37605
37606         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
37607         whether errno is declared. Assume <errno.h> declares errno.
37608
37609 2006-06-17  Bruno Haible  <bruno@clisp.org>
37610
37611         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
37612
37613 2006-06-17  Bruno Haible  <bruno@clisp.org>
37614
37615         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
37616         problem on Solaris 2.5.1.
37617
37618 2006-06-16  Eric Blake  <ebb9@byu.net>
37619
37620         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
37621         * lib/unicodeio.c [!defined errno]: Likewise.
37622         * lib/strtol.c [!defined errno]: Likewise.
37623         * lib/strtod.c [!defined errno]: Likewise.
37624
37625 2006-06-15  Eric Blake  <ebb9@byu.net>
37626
37627         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
37628
37629 2006-06-15  Eric Blake  <ebb9@byu.net>
37630
37631         * config/srclist.txt (ssize_t.m4): Lose sync.
37632
37633 2006-06-15  Bruno Haible  <bruno@clisp.org>
37634
37635         * modules/stdint (Files): Include m4/full-header-path.m4,
37636         m4/size_max.m4, m4/wchar_t.m4.
37637         (Makefile.am): Many more substitutions.
37638         * modules/stdint-tests: New file.
37639         * tests/test-stdint.c: New file.
37640
37641 2006-06-15  Bruno Haible  <bruno@clisp.org>
37642
37643         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
37644         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
37645         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
37646         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
37647         gl_CHECK_TYPE_SAME): New macros.
37648
37649 2006-06-15  Bruno Haible  <bruno@clisp.org>
37650
37651         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
37652
37653 2006-06-15  Bruno Haible  <bruno@clisp.org>
37654
37655         * lib/stdint_.h: Rewritten to be fully auto-configured.
37656         Fixes bug on HP-UX/IA64.
37657
37658 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
37659
37660         * lib/getdate.y (__attribute__): Don't define if already defined.
37661         Problem reported by Larry Jones.
37662         * lib/utimens.c (__attribute__): Likewise.
37663
37664 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
37665
37666         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
37667         reported by Andreas Schwab.
37668
37669 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37670             Bruno Haible  <bruno@clisp.org>
37671
37672         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
37673         check for the declaration of strnlen and a run test that exposes the
37674         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
37675         rpl_strndup.
37676
37677 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37678             Bruno Haible  <bruno@clisp.org>
37679
37680         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
37681
37682 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37683
37684         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
37685         compile test, for Tru64 4.0D.
37686
37687 2006-05-28  Karl Berry  <karl@gnu.org>
37688
37689         * config/srclist.txt (printf-args.c): lose sync.
37690
37691 2006-05-26  Martin Lambers  <marlam@marlam.de>
37692
37693         * lib/getpass.c: Updates the test for the native W32 API, and adds
37694         missing includes, thus fixing compilation warnings.
37695
37696 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37697
37698         * lib/exclude.c (exclude_fnmatch): New function.
37699         (excluded_file_name): Call exclude_fnmatch.
37700         * lib/exclude.h (excluded_file_name): New prototype
37701
37702 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
37703
37704         * lib/tempname.c (small_open, large_open): New macros.
37705         (__open, __open64) [!_LIBC]: Remove.
37706         (__gen_tempname): Use small_open and large_open instead of __open
37707         and __open64.  This fixes a portability bug on HP-UX 11.11i
37708         reported by Simon Wing-Tang in
37709         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
37710
37711 2006-05-24  Bruno Haible  <bruno@clisp.org>
37712
37713         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
37714         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
37715         Reported by Thorsten Maerz <torte@netztorte.de> via
37716         Aaron Stone <aaron@serendipity.cx>.
37717
37718 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
37719
37720         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
37721         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
37722         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
37723         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
37724         not really conditional on the cache.
37725         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
37726
37727 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
37728
37729         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
37730         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
37731         (my_usleep): Don't mishandle maximum value.
37732
37733 2006-05-19  Jim Meyering  <jim@meyering.net>
37734
37735         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
37736
37737 2006-05-17  Bruno Haible  <bruno@clisp.org>
37738
37739         Cygwin portability.
37740         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
37741
37742 2006-05-17  Bruno Haible  <bruno@clisp.org>
37743
37744         * lib/stdint_.h: Fix recognition of Cygwin.
37745
37746 2006-05-15  Bruno Haible  <bruno@clisp.org>
37747
37748         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
37749         on libtool patch by Ralf Wildenhues.
37750
37751 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37752
37753         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
37754         test for C99 conformance; (bool) 0.5 is an integer constant
37755         expression, but (bool) -0.5 is not.  Problem reported by Fedor
37756         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
37757
37758 2006-05-11  Simon Josefsson  <jas@extundo.com>
37759
37760         * m4/xvasprintf.m4: Fix obvious typo.
37761
37762 2006-05-11  Jim Meyering  <jim@meyering.net>
37763
37764         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
37765         James Lemley.
37766
37767 2006-05-10  Simon Josefsson  <jas@extundo.com>
37768
37769         * lib/md4.c: Typo fix, update copyright years.
37770         (K1, K2): Don't use L because it turn computations into 64-bit on
37771         64-bit platforms.
37772
37773 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
37774
37775         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
37776         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
37777         unwanted sign propagation, e.g., on hosts with 64-bit int.
37778         There still are some problems with reeelly weird theoretical hosts
37779         (e.g., 33-bit int) but it's not worth worrying about now.
37780         * lib/sha1.c (rol): Likewise.
37781         (K1, K2, K3, K4): Remove unnecessary L suffix.
37782
37783 2006-05-10  Bruno Haible  <bruno@clisp.org>
37784
37785         * lib/des.c: Cast to avoid warnings.
37786
37787 2006-05-09  Bruno Haible  <bruno@clisp.org>
37788
37789         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
37790         (Depends-on): Depend also on xsize, stdarg.
37791         (configure.ac): Add gl_XVASPRINTF.
37792
37793 2006-05-09  Bruno Haible  <bruno@clisp.org>
37794
37795         * m4/xvasprintf.m4: New file.
37796
37797 2006-05-09  Bruno Haible  <bruno@clisp.org>
37798
37799         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
37800         (EOVERFLOW): Define fallback value.
37801         (xstrcat): New function.
37802         (xvasprintf): Recognize the special case of a string concatenation.
37803
37804 2006-05-08  Eric Blake  <ebb9@byu.net>
37805
37806         * gnulib-tool (func_version): Base copyright year on CVS date.
37807         (func_emit_copyright_notice): New function.
37808         (func_emit_lib_Makefile_am): Use it.
37809         (func_emit_tests_Makefile_am): Likewise.
37810         (func_import): Likewise.
37811
37812 2006-05-08  Bruno Haible  <bruno@clisp.org>
37813
37814         * modules/stdarg: New file.
37815         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
37816
37817 2006-05-08  Bruno Haible  <bruno@clisp.org>
37818
37819         * m4/stdarg.m4: New file, from GNU gettext.
37820
37821 2006-05-08  Bruno Haible  <bruno@clisp.org>
37822
37823         * config/srclist.txt (build-aux/config.rpath): different from latest
37824         release.
37825
37826 2006-05-08  Bruno Haible  <bruno@clisp.org>
37827
37828         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
37829
37830 2006-05-05  Jim Meyering  <jim@meyering.net>
37831
37832         * m4/warning.m4: New file, derived from bison's file by the same name.
37833
37834 2006-05-03  Bruno Haible  <bruno@clisp.org>
37835
37836         * lib/stdint_.h: Shorter URL.
37837         * lib/inttypes.h: Likewise.
37838
37839 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
37840
37841         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
37842
37843 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
37844
37845         * lib/verify.h: Document the internals better.  Most of this change
37846         was written by Bruno Haible.
37847
37848 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
37849
37850         * doc/verify.texi: New file, partly based on a proposal by
37851         Bruno Haible.
37852
37853 2006-05-02  Bruno Haible  <bruno@clisp.org>
37854
37855         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
37856         test from here...
37857         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
37858
37859 2006-04-29  Bruno Haible  <bruno@clisp.org>
37860
37861         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
37862         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
37863
37864 2006-04-29  Bruno Haible  <bruno@clisp.org>
37865
37866         * gnulib-tool: Make --update option actually work.
37867
37868 2006-04-29  Bruno Haible  <bruno@clisp.org>
37869
37870         * doc/gcd.texi: New file.
37871         * doc/gnulib.texi: Include it.
37872
37873 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
37874
37875         * lib/getdate.y (get_date): When adding relative date, start with the
37876         initial time, not with the result of the first mktime call.
37877
37878 2006-04-25  Bruno Haible  <bruno@clisp.org>
37879
37880         * gnulib-tool (func_import): Output the include directives in three
37881         blocks, sorted separately.
37882         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37883
37884 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
37885
37886         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
37887         to define main with arguments, for C++.  Reported by Eric Blake.
37888         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
37889         Prefer 'int main ()' to 'int main (void)', for C++.
37890         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
37891         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
37892         for 'main', for C99 and C++.
37893
37894 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
37895
37896         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
37897         Don't assume that exit status -1 is valid.
37898         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37899         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
37900         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37901         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
37902         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
37903         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
37904         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
37905         functions can be used without declaring them, or that you can
37906         exit with status -1.
37907         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37908
37909 2006-04-24  Karl Berry  <karl@gnu.org>
37910
37911         * config/srclist.txt (longdouble.m4): sync lost.
37912
37913 2006-04-24  Eric Blake  <ebb9@byu.net>
37914
37915         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
37916
37917 2006-04-24  Bruno Haible  <bruno@clisp.org>
37918
37919         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
37920         poll() implementation in AIX.
37921         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37922
37923 2006-04-24  Bruno Haible  <bruno@clisp.org>
37924
37925         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
37926         assigned exactly once.
37927
37928 2006-04-23  Claudio Fontana  <claudio@gnu.org>
37929             Bruno Haible  <bruno@clisp.org>
37930
37931         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
37932         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
37933         for AM_CPPFLAGS.
37934
37935 2006-04-23  Bruno Haible  <bruno@clisp.org>
37936
37937         * modules/copy-file: Depend on unistd.
37938         * modules/execute: Likewise.
37939         * modules/fatal-signal: Likewise.
37940         * modules/findprog: Likewise.
37941         * modules/mkdtemp : Likewise.
37942         * modules/pipe: Likewise.
37943         * modules/wait-process: Likewise.
37944
37945 2006-04-23  Bruno Haible  <bruno@clisp.org>
37946
37947         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
37948         condition was already detected.
37949         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37950
37951 2006-04-23  Bruno Haible  <bruno@clisp.org>
37952
37953         * lib/copy-file.c: Include <unistd.h> unconditionally.
37954         * lib/execute.c: Likewise.
37955         * lib/fatal-signal.c: Likewise.
37956         * lib/findprog.c: Likewise.
37957         * lib/mkdtemp.c: Likewise.
37958         * lib/pipe.h: Likewise.
37959         * lib/pipe.c: Likewise.
37960         * lib/wait-process.h: Likewise.
37961
37962 2006-04-23  Bruno Haible  <bruno@clisp.org>
37963
37964         * gnulib-tool (func_usage): Fix --import description. Document
37965         --update.
37966         (func_import): Create temporary file in a temporary directory, if
37967         --dry-run is specified. Silence errors from 'grep' when there are no
37968         m4 files in $m4dir.
37969         (func_create_testdir): Silence errors from 'grep' when there are no
37970         m4 files in $m4dir.
37971         Reported by Karl Berry <karl@freefriends.org>.
37972
37973 2006-04-20  Bruno Haible  <bruno@clisp.org>
37974
37975         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
37976         one argument, so that the code will be portable to Autoconf 2.60.
37977         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
37978         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
37979         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
37980
37981 2006-04-19  Derek Price  <derek@ximbiot.com>
37982             Eric Blake  <ebb9@byu.net>
37983
37984         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
37985         rather than "/full/path.h".  Update comment to match.  Shorten &
37986         generalize m4_translit call via AS_TR_CPP.
37987
37988 2006-04-19  Derek Price  <derek@ximbiot.com>
37989             Eric Blake  <ebb9@byu.net>
37990
37991         * lib/inttypes.h: Correct grammar in comment.
37992
37993 2006-04-18  Derek Price  <derek@ximbiot.com>
37994             Paul Eggert  <eggert@cs.ucla.edu>
37995
37996         * modules/inttypes: New file.
37997         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
37998
37999 2006-04-18  Derek Price  <derek@ximbiot.com>
38000             Paul Eggert  <eggert@cs.ucla.edu>
38001
38002         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
38003         New files.
38004
38005 2006-04-18  Derek Price  <derek@ximbiot.com>
38006             Paul Eggert  <eggert@cs.ucla.edu>
38007
38008         * lib/inttypes.h: New file.
38009         * lib/strtoimax.c: Assume <inttypes.h>.
38010
38011 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
38012
38013         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
38014         isn't mounted.  Problem reported by Kir Kolyshkin.
38015
38016 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
38017
38018         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
38019         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
38020         Derek R. Price.
38021         * lib/regex.h (RE_DUP_MAX): Update comment to match current
38022         implementation.
38023
38024 2006-04-12  Eric Blake  <ebb9@byu.net>
38025
38026         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
38027         is now done automatically by the corresponding Autoconf macro.
38028
38029 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
38030
38031         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
38032         time_r.h.
38033
38034 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
38035
38036         Merge regex changes from libc, removing some of our
38037         POSIX-conformance changes that were rejected and redoing them in a
38038         less-intrusive way.
38039
38040         * lib/regcomp.c (re_compile_internal, init_dfa):
38041         Length arg is now size_t, not Idx.  All uses changed.
38042         (peek_token): Forward decl now says internal_function.
38043         (__re_error_msgid, __re_error_msgid_idx):
38044         Now static rather than extern with attribute_hidden.
38045         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
38046         For some reason libc prefers K&R style defns for external functions.
38047         (regerror) [!defined _LIBC]: Likewise.
38048         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
38049         (seek_collating_symbol_entry, lookup_collation_sequence_value):
38050         (build_range_exp, build_collating_symbol):
38051         Use K&R-style defn.
38052         (re_compile_fastmap): Use '\0' to memset, not 0.
38053         (utf8_sb_map): Make the calculations more obvious.
38054         (init_dfa, parse_bracket_exp, build_charclass_op):
38055         Call calloc and cast result, as glibc does.
38056         (init_word_char, fetch_token, peek_token, peek_token_bracket):
38057         (build_range_exp, build_collating_symbol):
38058         Now internal functions.
38059
38060         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
38061
38062         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
38063         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
38064         Don't depend on VMS; depend on __VMS instead, for POSIX
38065         namespace cleanness.
38066         (regoff_t): Define to ssize_t, not long int.
38067
38068         Remove the REG_ macros named below.  Instead, make the old names
38069         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
38070         __USE_GNU_REGEX.
38071         (REG_BACKSLASH_ESCAPE_IN_LISTS):
38072         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
38073         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
38074         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
38075         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
38076         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
38077         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
38078         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
38079         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
38080         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
38081         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
38082         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
38083         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
38084         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
38085         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
38086         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
38087         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
38088         (REG_NREGS):
38089         Remove.  All uses replaced by the old RE_* names.
38090         (RE_BACKSLASH_ESCAPE_IN_LISTS):
38091         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
38092         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
38093         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
38094         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
38095         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
38096         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
38097         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
38098         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
38099         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
38100         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
38101         Don't bother having these macros be independent of each others'
38102         values, since they no longer exist in the POSIX name space.
38103
38104         Rename the following member names back to their old names,
38105         unless !__USE_GNU_REGEX.  All uses changed back.
38106         (buffer): Renamed from re_buffer.
38107         (allocated): Renamed from re_allocated.
38108         (used): Renamed from re_used.
38109         (syntax): Renamed from re_syntax.
38110         (fastmap): Renamed from re_fastmap.
38111         (translate): Renamed from re_translate.
38112         (can_be_null): Renamed from re_can_be_null.
38113         (regs_allocated): Renamed from re_regs_allocated.
38114         (fastmap_accurate): Renamed from re_fastmap_accurate.
38115         (no_sub): Renamed from re_no_sub.
38116         (not_bol): Renamed from re_not_bol.
38117         (not_eol): Renamed from re_not_eol.
38118         (newline_anchor): Renamed from re_newline_anchor.
38119         (num_regs): Renamed from rm_num_regs.
38120         (start): Renamed from rm_start.
38121         (end): Renamed from rm_end.
38122
38123         (free_state): Move up a bit.
38124
38125         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
38126         #define to be empty.
38127         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
38128         when that is what is intended.
38129         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
38130         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
38131         (MAX): New macro.
38132         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
38133         All uses changed back to re_malloc, etc.  It's now the caller's
38134         responsibility to check for overflow; all callers changed.
38135         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
38136         (re_x2nrealloc): Remove.
38137         (free_state): Remove decl.
38138
38139         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
38140         (re_set_registers, re_exec):
38141         Use K&R-style defn.
38142
38143         2006-01-31  Roland McGrath  <roland@redhat.com>
38144
38145         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
38146         Reported by Mike Frysinger <vapier@gentoo.org>.
38147
38148         2006-01-15  Andreas Jaeger  <aj@suse.de>
38149
38150         [BZ #1950]
38151         * lib/regex_internal.c (re_string_reconstruct): Adjust for
38152         build_wcs_upper_buffer change.
38153         (build_wcs_upper_buffer): Change return type.
38154
38155         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
38156
38157         * lib/regex_internal.h: Include <stdint.h> if available.
38158
38159         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
38160
38161         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
38162
38163         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
38164
38165         * lib/regcomp.c: Adjust for changed secondary hash function.
38166
38167         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
38168
38169         * lib/regex.h: Pretty printing.
38170         Clean up namespace a bit.
38171
38172         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
38173
38174         * lib/regexec.c (update_cur_sifted_state, check_arrival,
38175         check_arrival_add_next_nodes): Avoid using uninitialized variable.
38176
38177         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
38178                     Ulrich Drepper  <drepper@redhat.com>
38179
38180         [BZ #1302]
38181         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
38182         changed.
38183         (bitset_word_t): Renamed from bitset_word.  All uses changed.
38184
38185         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
38186
38187         [BZ #281]
38188         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
38189         * lib/regcomp.c: Remove unnecessary uses of
38190         unsigned RE_TRANSLATE_TYPE.
38191         * lib/regex_internal.h: Likewise.
38192         * lib/regex_internal.c: Likewise.
38193         * lib/regexec.c: Likewise.
38194         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
38195
38196         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
38197
38198         * lib/regexec.c (find_recover_state): Remove unnecessary
38199         initialization.
38200         (transit_state_bkref): Make DFA a const pointer.
38201         (get_subexp): Likewise.
38202         (check_arrival): Likewise.
38203         (update_cur_sifted_state): Likewise.
38204         (re_search_internal): Likewise.
38205         (prune_impossible_nodes): Likewise.
38206         (acquire_init_state_context): Likewise.
38207         (proceed_next_node): Likewise.
38208         (set_regs): Likewise.
38209         (free_fail_stack_return): Likewise.
38210         (check_arrival_expand_ecl): Mark DFA parameter as const.
38211         (check_arrival_expand_ecl_sub): Likewise.
38212         (check_subexp_limits): Likewise.
38213         (sub_epsilon_src_nodes):  Likewise.
38214         (add_epsilon_src_nodes):  Likewise.
38215         (merge_state_array): Likewise.
38216         (update_regs): Likewise.
38217         (build_trtable): Likewise.
38218         (sift_states_backward): Mark MCTX parameter as const.
38219         (build_sifted_states): Likewise.
38220         (update_cur_sifted_state): Likewise.
38221         (sift_states_mkref): Likewise.
38222         (check_arrival_expand_ecl): Mark eclosure as const.
38223         (check_dst_limits_calc_pos_1): Likewise.
38224         * lib/regex_internal.h (re_match_context_t): Make dfa a const
38225         pointer.
38226
38227         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
38228
38229         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
38230         (transit_state_sb): Likewise.
38231         (transit_state_mb): Likewise.
38232         (sift_states_iter_mb): Likewise.
38233         (check_arrival_add_next_nodes): Likewise.
38234         (check_node_accept_bytes): Change first parameter to pointer-to-const.
38235         [_LIBC] (re_search_2_stub): Use mempcpy.
38236
38237         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
38238         mbrtowc for very simple UTF-8 case.
38239
38240         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
38241         a pointer-to-const.
38242         (re_acquire_state_context): Likewise.
38243         * lib/regex_internal.h: Adjust prototypes.
38244
38245         * lib/regex.c: Prevent using C++ compilers.
38246
38247         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
38248         (re_acquire_state_context): Likewise.
38249
38250 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
38251
38252         * modules/regex (Depends-on): Add ssize_t.
38253
38254 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
38255
38256         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
38257         translation table.
38258
38259 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
38260
38261         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
38262
38263 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
38264             Bruno Haible  <bruno@clisp.org>
38265
38266         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
38267         <sys/types.h> and <inttypes.h>.
38268
38269 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38270
38271         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
38272         `__error_t_defined', so argp.h will not typedef the former.
38273
38274 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
38275
38276         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
38277         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
38278         glibc names.  Even if glibc is changed to conform to POSIX, the
38279         traditional names will be available anyway, since regex depends on
38280         the extensions module.  Also, fix a longstanding typo in the
38281         implementation of Spencer ERE test #75 from grep 2.3.  Problems
38282         reported by Emanuele Giaquinta.  Also, change sense of cached
38283         variable, so that the message makes sense.
38284
38285 2006-03-24  Simon Josefsson  <jas@extundo.com>
38286
38287         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
38288         including some doc fixes.
38289         (base64_encode_alloc): Fix +1 bug on allocation failures.
38290
38291 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38292
38293         * lib/base64.c (base64_encode): Do not read past end of array with
38294         unsanitized input on systems with CHAR_BIT > 8.
38295
38296 2006-03-24  Eric Blake  <ebb9@byu.net>
38297
38298         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
38299
38300 2006-03-22  Karl Berry  <karl@gnu.org>
38301
38302         * config/srclist.txt (*setenv.[ch]): get from coreutils.
38303         * config/srclistvars.sh (COREUTILS): new var.
38304
38305 2006-03-17  Jim Meyering  <jim@meyering.net>
38306
38307         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
38308         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
38309
38310 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
38311
38312         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
38313         no longer needs it.  Instead, check that regoff_t is as least
38314         as wide as ptrdiff_t.
38315
38316         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
38317         so that our regex.h stays compatible with the installed regex.
38318         This is helpful for installers who configure --without-included-regex.
38319         Problem reported by Emanuele Giaquinta.
38320
38321 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
38322
38323         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
38324         Typedef to long int, not to off_, as POSIX will likely change
38325         in that direction.
38326
38327 2006-03-15  Eric Blake  <ebb9@byu.net>
38328
38329         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
38330
38331 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
38332
38333         * lib/argp-help.c (validate_uparams): Fix typo
38334         * lib/argp-parse.c (argp_default_options): Consistently begin help
38335         messages with a lowercase letter.
38336
38337 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
38338
38339         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
38340         overrun buffers and shouldn't be used (much as gets shouldn't be
38341         used).
38342         * lib/time_r.c (asctime_r, ctime_r): Likewise.
38343
38344 2006-03-08  Simon Josefsson  <jas@extundo.com>
38345
38346         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
38347         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38348
38349 2006-03-08  Simon Josefsson  <jas@extundo.com>
38350
38351         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
38352         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38353
38354 2006-03-08  Simon Josefsson  <jas@extundo.com>
38355
38356         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
38357         signal that configure disabled the device.
38358
38359 2006-03-08  Simon Josefsson  <jas@extundo.com>
38360
38361         * build-aux/maint.mk: Fix refresh-po, to handle no translated
38362         languages.
38363
38364 2006-03-07  Simon Josefsson  <jas@extundo.com>
38365
38366         * modules/getopt (Depends-on): Add unistd.
38367
38368         * modules/unistd: New file.
38369
38370 2006-03-07  Simon Josefsson  <jas@extundo.com>
38371
38372         * modules/gc-random: New file.
38373
38374 2006-03-07  Simon Josefsson  <jas@extundo.com>
38375
38376         * m4/unistd_h.m4: New file.
38377
38378 2006-03-07  Simon Josefsson  <jas@extundo.com>
38379
38380         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
38381         test to be side-effect free by storing the result in the cache
38382         variable gl_cv_lib_readline, and moving the assignment of
38383         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
38384         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38385
38386 2006-03-07  Simon Josefsson  <jas@extundo.com>
38387
38388         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
38389         error on missing devices (the functions will return an error).
38390
38391         * m4/gc.m4: Move random stuff to gc-random.m4
38392
38393 2006-03-07  Simon Josefsson  <jas@extundo.com>
38394
38395         * lib/unistd_.h: New file.
38396
38397 2006-03-07  Simon Josefsson  <jas@extundo.com>
38398
38399         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
38400
38401 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
38402
38403         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
38404         Problem reported by Juan Manuel Guerrero.
38405
38406 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
38407
38408         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
38409         the unistd module.
38410         * lib/getlogin_r.c: Likewise.
38411         * lib/getlogin_r.h: Likewise.
38412         * lib/glob.c: Likewise.
38413         * lib/pagealign_alloc.c: Likewise.
38414         * lib/unistd_.h: Remove; no longer needed.
38415
38416 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
38417
38418         * MODULES.html.sh (Support for systems lacking POSIX:2001):
38419         Add unistd.
38420         * modules/c-stack (Depends-on): Add unistd.
38421         * modules/getlogin_r: Likewise.
38422         * modules/glob: Likewise.
38423         * modules/pagealign_alloc: Likewise.
38424         * modules/unistd (Files): Remove lib/unistd_.h.
38425         (EXTRA_DIST): Remove.
38426         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
38427         need unistd_.h.
38428         (MOSTLYCLEANFILES): Remove unistd.h-t.
38429
38430 2006-03-03  Simon Josefsson  <jas@extundo.com>
38431
38432         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
38433
38434 2006-03-03  Simon Josefsson  <jas@extundo.com>
38435
38436         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
38437         libidn and bison.
38438
38439 2006-03-03  Simon Josefsson  <jas@extundo.com>
38440
38441         * build-aux/maint.mk: Add indent target.
38442
38443 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
38444
38445         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
38446         our replacement poll.h in any case, to avoid a differing
38447         declaration from a system header.  Seen on AIX.
38448
38449 2006-03-01  Simon Josefsson  <jas@extundo.com>
38450
38451         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
38452         <kasal@ucw.cz>.
38453
38454 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38455
38456         * modules/gettime (Depends-on): Add extensions module.
38457         * modules/nanosleep (Depends-on): Likewise.
38458         * modules/settime (Depends-on): Likewise.
38459
38460 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38461
38462         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
38463         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
38464         pedantically.
38465         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38466         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
38467
38468         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
38469         not "==".  Reported by Ralf Wildenhues.
38470
38471 2006-03-01  Karl Berry  <karl@gnu.org>
38472
38473         * doc/Copyright/request-*: new files, synced from gnuorg.
38474
38475 2006-03-01  Karl Berry  <karl@gnu.org>
38476
38477         * config/srclist.txt (Copyright/*): new entries.
38478
38479 2006-02-28  Simon Josefsson  <jas@extundo.com>
38480
38481         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
38482
38483 2006-02-27  Simon Josefsson  <jas@extundo.com>
38484
38485         * lib/base64.h: Indent #define's.  From Jim Meyering
38486         <jim@meyering.net>.
38487
38488 2006-02-27  Jim Meyering  <jim@meyering.net>
38489
38490         Revert the change of 2006-02-24, so these files can continue
38491         to be sync'd from gettext.
38492         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
38493         of `config.h'.
38494
38495 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
38496
38497         * modules/intprops: New file.
38498         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
38499         Add intprops.
38500         * modules/getloadavg (Files): Remove lib/intprops.h.
38501         (Depends-on): Add intprops.
38502         * modules/human: Likewise.
38503         * modules/inttostr: Likewise.
38504         * modules/openat: Likewise.
38505         * modules/sig2str: Likewise.
38506         * modules/userspec: Likewise.
38507         * modules/utimecmp: Likewise.
38508         * modules/xnanosleep: Likewise.
38509         * modules/xstrtol: Likewise.
38510
38511 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
38512
38513         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
38514         * modules/lock-tests (TESTS): Use $(EXEEXT).
38515         * modules/tls-tests: Likewise.
38516         * modules/argp-tests: Likewise.
38517         (check_PROGRAMS): New var, replacing...
38518         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
38519
38520 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38521
38522         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
38523         `config.h'.
38524
38525 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38526
38527         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
38528
38529 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38530
38531         Sync from coreutils.
38532         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
38533         gl_CHDIR_SAFER.
38534
38535 2006-02-22  Jim Meyering  <jim@meyering.net>
38536
38537         Sync from coreutils.
38538         * m4/chdir-safer.m4: New file.
38539
38540 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38541
38542         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
38543         AT_FDCWD exceeds INT_MAX.
38544         * lib/openat.h (AT_FDCWD): Likewise.
38545
38546 2006-02-17  Eric Blake  <address@hidden>
38547
38548         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
38549
38550 2006-02-16  Simon Josefsson  <jas@extundo.com>
38551
38552         * modules/getaddrinfo (Depends-on): Add sys_socket.
38553
38554 2006-02-15  Simon Josefsson  <jas@extundo.com>
38555
38556         * build-aux/maint.mk: Add dsyntax-check rule.
38557
38558 2006-02-15  Eric Blake  <ebb9@byu.net>
38559
38560         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
38561         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
38562         'present but cannot compile' warnings on cygwin.
38563         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
38564         use ws2tcpip.h if sys/socket.h works.
38565         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
38566         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
38567
38568 2006-02-14  Simon Josefsson  <jas@extundo.com>
38569
38570         * modules/maintainer-makefile (Files): Rename.
38571
38572         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
38573         and (the local) Makefile.cfg to maint-cfg.mk.
38574
38575         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
38576         to the latter.
38577
38578         * modules/maintainer-makefile: New module.
38579
38580         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
38581         severaly stripped to make it possible to build it up from scratch
38582         with reliable tests.
38583
38584         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
38585         fixes to permit overriding the default actions when configure and
38586         makefile are not available.
38587
38588 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
38589
38590         Sync from coreutils.
38591         * modules/lstat (Depends-on): Don't depend on xalloc.
38592         (License): Change from GPL to LGPL, since this is now simply a
38593         replacement for a libc function.
38594
38595 2006-02-14  Jim Meyering  <jim@meyering.net>
38596
38597         Sync from coreutils.
38598
38599         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
38600         failure on deficient systems, and simplify gnulib lgpl dependencies.
38601         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
38602         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
38603
38604         * lib/xalloc-die.c: Remove unused definition of N_.
38605
38606 2006-02-14  Jim Meyering  <jim@meyering.net>
38607
38608         Sync from coreutils.
38609         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
38610         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
38611         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
38612         double-quote uses of that variable, to accommodate the rare case in
38613         which getmntent is available in none of the libraries checked.  This
38614         happens at least on FreeBSD 5.0.
38615
38616 2006-02-13  Simon Josefsson  <jas@extundo.com>
38617
38618         * gnulib-tool (Usage): Fix --import, from
38619         karl@freefriends.org (Karl Berry).
38620
38621 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
38622
38623         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
38624
38625 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
38626
38627         * lib/argp-namefrob.h: Restore changes accidentally lost during the
38628         "autoupdate" on 2005-12-12.
38629
38630 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
38631
38632         * modules/closeout (Depends-on): Remove atexit.
38633
38634 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
38635
38636         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
38637         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
38638
38639 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
38640
38641         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
38642         __EXTENSIONS__ if this causes compilation to fail.  Problem
38643         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
38644         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
38645
38646 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
38647
38648         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
38649         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
38650         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
38651         All uses changed.
38652
38653 2006-01-26  Simon Josefsson  <jas@extundo.com>
38654
38655         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
38656         prototype is visible on mingw32.
38657
38658         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
38659         for mingw32.
38660
38661         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
38662         mingw32).
38663
38664 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
38665
38666         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
38667         attempt to open for write; this always fails, at least on POSIX
38668         hosts.  This reinstates the 2006-01-09 change, which was
38669         inadvertently removed.
38670
38671 2006-01-26  Bruno Haible  <bruno@clisp.org>
38672
38673         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
38674         Reported by Paul Eggert.
38675
38676 2006-01-26  Bruno Haible  <bruno@clisp.org>
38677             Paul Eggert  <eggert@cs.ucla.edu>
38678
38679         * lib/stdbool_.h (_Bool)
38680         [(! (defined __cplusplus || defined __BEOS__)
38681           && !defined __GNUC__
38682           && !(defined __HP_cc || defined __xlc__
38683                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
38684                || defined __sgi))]:
38685         #define to signed char in these cases too; this simplifies
38686         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
38687         etc., separately) and makes it more conservative.
38688
38689 2006-01-25  Simon Josefsson  <jas@extundo.com>
38690
38691         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
38692         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
38693         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
38694
38695 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38696
38697         * lib/argp-namefrob.h: Bugfix. Remove stray #
38698
38699 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
38700
38701         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
38702         so that we test the test.
38703         Check for yet another HP-UX cc bug involving *bool |= bool.
38704
38705 2006-01-25  Karl Berry  <karl@gnu.org>
38706
38707         * config/srclist.txt (vasnprintf.c): sync lost.
38708
38709 2006-01-25  Jim Meyering  <jim@meyering.net>
38710
38711         Sync from the stable (b5) branch of coreutils:
38712
38713         * lib/fts.c (fts_children): Don't let close() clobber errno from
38714         failed fchdir().
38715
38716         * lib/fts.c (fts_stat): When following a symlink-to-directory,
38717         don't necessarily interpret stat-fails+lstat-succeeds as indicating
38718         a dangling symlink.  That can also happen at least for ELOOP.
38719         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
38720         FYI, this bug predates the inclusion of fts.c in coreutils.
38721
38722         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
38723         in their own block, so pre-c99 compilers don't object.
38724
38725         Avoid the double-free (first in fts_read, second in fts_close) that
38726         would occur when an `active' directory is made inaccessible (e.g.,
38727         via chmod a-x) during a traversal.
38728         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
38729         before returning.  Reproduce this failure by
38730         mkdir -p a/b; cd a; chmod a-x . b
38731         Reported by Stavros Passas.
38732
38733 2006-01-25  Jim Meyering  <jim@meyering.net>
38734
38735         * lib/fileblocks.c: Remove more useless parentheses.
38736         * lib/readutmp.h: Likewise.
38737
38738 2006-01-25  Bruno Haible  <bruno@clisp.org>
38739
38740         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
38741         warnings.
38742         Reported by Paul Eggert.
38743
38744 2006-01-25  Bruno Haible  <bruno@clisp.org>
38745
38746         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
38747         rid of a trap command. For Solaris sh.
38748         Reported by Mark D. Baushke <mdb@gnu.org>.
38749
38750 2006-01-24  Simon Josefsson  <jas@extundo.com>
38751
38752         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
38753         Bruno.
38754
38755 2006-01-24  Karl Berry  <karl@gnu.org>
38756
38757         * config/srclist.txt (argp-namefrob.h): sync lost.
38758
38759 2006-01-24  Jim Meyering  <jim@meyering.net>
38760
38761         * modules/openat (Files): Add lib/intprops.h.
38762         From Mark D. Baushke.
38763
38764 2006-01-24  Jim Meyering  <jim@meyering.net>
38765
38766         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
38767         Reported by Mark D. Baushke.
38768
38769 2006-01-24  Jim Meyering  <jim@meyering.net>
38770
38771         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
38772
38773 2006-01-24  Bruno Haible  <bruno@clisp.org>
38774
38775         * modules/strnlen (Maintainer): Change from glibc to all.
38776
38777 2006-01-24  Bruno Haible  <bruno@clisp.org>
38778
38779         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
38780         Patch by Paul Eggert.
38781
38782 2006-01-24  Bruno Haible  <bruno@clisp.org>
38783
38784         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
38785         already has it.
38786         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
38787         2005-11-26.
38788
38789         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
38790         'signed char' to avoid problems with the built-in _Bool type.
38791         Reported by Paul Eggert on 2005-11-26.
38792
38793 2006-01-24  Bruno Haible  <bruno@clisp.org>
38794
38795         * gnulib-tool (func_import): Avoid constructing complicated sed
38796         expressions inside backquote.
38797         Report and solution by Mark D. Baushke <mdb@gnu.org>.
38798
38799 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
38800
38801         These changes imported from libc.
38802         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
38803         test and two separate function calls.
38804         * lib/strndup.c (__strndup): Add libc_hidden_def.
38805
38806 2006-01-23  Simon Josefsson  <jas@extundo.com>
38807
38808         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
38809         Remove the test_*_SOURCES variable: automake infers it by default.
38810         * modules/tls-tests: Likewise.
38811
38812 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38813
38814         Work around porting bugs reported by Dieter in
38815         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
38816         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
38817         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
38818         Include "getopt.h" first, to check interface.
38819         (getenv): Declare only if defined HAVE_DECL_GETENV &&
38820         !HAVE_DECL_GETENV.
38821         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
38822         (__strndup): Revert to K&R-style function dfns, the glibc style.
38823         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
38824         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
38825         Include strnlen.h first, to get prototype properly.
38826         (strnlen): Renamed from __strnlen.
38827         Remove weak alias.
38828
38829 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38830
38831         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
38832
38833 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38834
38835         * config/srclist.txt: Adjust to reflect glibc reorganization.
38836         This affects only comments.
38837
38838 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
38839
38840          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
38841          Reported by Bruce Korb <bkorb@gnu.org>.
38842
38843 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
38844
38845         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
38846         to pacify gcc -Wswitch-default.
38847
38848 2006-01-22  Bruno Haible  <bruno@clisp.org>
38849
38850         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
38851         temporary buffer for sprintf, take into account the precision also
38852         for 'd', 'i', 'u', 'o', 'x', 'X'.
38853
38854 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
38855
38856         * modules/argp-tests: New module
38857         * tests/test-argp.c: New file
38858         * tests/test-argp-2.sh: New file
38859
38860 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
38861
38862         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
38863         (__argp_base_name): Removed
38864         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
38865         typo.
38866         (__argp_base_name): Provide macro definition or extern declaration
38867         depending on the configuration
38868
38869 2006-01-20  Simon Josefsson  <jas@extundo.com>
38870
38871         * modules/inet_ntop (Depends-on): Depend on sys_socket.
38872
38873 2006-01-20  Simon Josefsson  <jas@extundo.com>
38874
38875         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
38876
38877 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
38878
38879         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
38880         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
38881         Suggested by Bruno Haible.
38882
38883 2006-01-20  Karl Berry  <karl@gnu.org>
38884
38885         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
38886         until changes propagate, I guess.
38887
38888 2006-01-19  Simon Josefsson  <jas@extundo.com>
38889
38890         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
38891
38892 2006-01-19  Simon Josefsson  <jas@extundo.com>
38893
38894         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
38895
38896 2006-01-19  Simon Josefsson  <jas@extundo.com>
38897
38898         * gnulib-tool: Set check_PROGRAMS.
38899
38900         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
38901         modules/des-tests, modules/gc-arcfour-tests,
38902         modules/gc-arctwo-tests, modules/gc-des-tests,
38903         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
38904         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
38905         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
38906         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
38907         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
38908         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
38909         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
38910         test_*_SOURCES.
38911
38912 2006-01-18  Simon Josefsson  <jas@extundo.com>
38913
38914         * modules/socklen (Depends-on): Depend on sys_socket.
38915
38916 2006-01-18  Simon Josefsson  <jas@extundo.com>
38917
38918         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
38919         modules/des-tests, modules/gc-arcfour-tests,
38920         modules/gc-arctwo-tests, modules/gc-des-tests,
38921         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
38922         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
38923         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
38924         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
38925         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
38926         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
38927         $(EXEEXT) to automake TESTS variable, for mingw32.
38928
38929 2006-01-17  Simon Josefsson  <jas@extundo.com>
38930
38931         * modules/socklen (Include): Need sys/socket.h.
38932
38933 2006-01-17  Bruno Haible  <bruno@clisp.org>
38934
38935         * modules/ssize_t (Include): Add <sys/types.h>.
38936
38937 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
38938
38939         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
38940         it's not portable and it doesn't work with cross-compiles.
38941         Problem reported by Bruno Haible.  Fix missing-$ typo in
38942         'test "gl_cv_ignore_unused_libraries" ...' that prevented
38943         -zignore from being used with Sun's C compiler.
38944
38945 2006-01-12  Simon Josefsson  <jas@extundo.com>
38946
38947         * lib/base64.c: Fix warning, reported by Bruno Haible
38948         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
38949
38950 2006-01-12  Bruno Haible  <bruno@clisp.org>
38951
38952         * modules/ldd: New file.
38953         * build-aux/ldd.sh.in: New file.
38954         * MODULES.html.sh (Support for building libraries and executables): Add
38955         ldd.
38956
38957 2006-01-12  Bruno Haible  <bruno@clisp.org>
38958
38959         * m4/ldd.m4: New file.
38960
38961 2006-01-12  Bruno Haible  <bruno@clisp.org>
38962
38963         * gnulib-tool (func_import, func_create_testdir): Don't go into an
38964         endless loop while replacing $auxdir with build-aux.
38965
38966 2006-01-11  Simon Josefsson  <jas@extundo.com>
38967
38968         * lib/stdint_.h (SIZE_MAX): Add missing (.
38969
38970 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
38971
38972         Sync from coreutils.
38973         * lib/md5.c: Fix commentary typos.
38974         (alignof, UNALIGNED_P): No need for a GCC-specific version.
38975         * lib/md5.h (__attribute__): Remove; unused.
38976         * lib/sha1.c: Fix commentary to match md5 better.
38977         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
38978         so that we don't need to worry about alignment.  All uses changed.
38979         This merges the 2005-10-28 md5 change into sha1.
38980
38981 2006-01-11  Jim Meyering  <jim@meyering.net>
38982
38983         Sync from coreutils.
38984         * lib/md5.c (OP): Fix spacing.
38985
38986 2006-01-11  Bruno Haible  <bruno@clisp.org>
38987
38988         Ensure automatic ordering between gl_LOCK and gl_ARGP.
38989         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
38990         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
38991
38992 2006-01-11  Bruno Haible  <bruno@clisp.org>
38993
38994         Ensure automatic ordering between gl_LOCK and gl_ARGP.
38995         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
38996         the "early" section as well.
38997
38998 2006-01-11  Bruno Haible  <bruno@clisp.org>
38999
39000         Avoid "ar: no archive members specified" error on MacOS X.
39001         * gnulib-tool (func_modules_add_dummy): New function.
39002         (func_import, func_create_testdir): Invoke it.
39003
39004 2006-01-11  Bruno Haible  <bruno@clisp.org>
39005
39006         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
39007         with $auxdir in AC_CONFIG_FILES statements.
39008
39009 2006-01-11  Bruno Haible  <bruno@clisp.org>
39010
39011         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39012         Initialize also noinst_HEADERS to empty.
39013
39014 2006-01-11  Bruno Haible  <bruno@clisp.org>
39015
39016         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
39017         variables.
39018         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
39019         autoreconf.
39020
39021 2006-01-11  Bruno Haible  <bruno@clisp.org>
39022
39023         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
39024         overridable by the user.
39025         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39026
39027 2006-01-10  Simon Josefsson  <jas@extundo.com>
39028
39029         * modules/sys_socket: New file.
39030
39031 2006-01-10  Simon Josefsson  <jas@extundo.com>
39032
39033         * m4/sys_socket_h.m4: New file.
39034
39035 2006-01-10  Simon Josefsson  <jas@extundo.com>
39036
39037         * lib/socket_.h: New file.
39038
39039 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39040
39041         * modules/readutmp (Maintainer): Add myself.
39042
39043 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39044
39045         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
39046         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
39047         People who are still concerned with buggy memcmp implementations
39048         can invoke gl_FUNC_MEMCMP themselves.
39049
39050 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39051
39052         * lib/regex_internal.h (BITSET_WORD_BITS):
39053         Work around a bug in 64-bit PGC (before version 6.1-2), where the
39054         preprocessor mishandles large unsigned values as if they were signed.
39055         Problem reported by Claudio Fontana in
39056         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
39057
39058 2006-01-10  Jim Meyering  <jim@meyering.net>
39059
39060         Avoid the double-free (first in fts_read, second in fts_close) that
39061         would occur when an `active' directory is made inaccessible (e.g.,
39062         via chmod a-x) during a traversal.
39063         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
39064         before returning.  Reproduce this failure by
39065         mkdir -p a/b; cd a; chmod a-x . b
39066         Reported by Stavros Passas.
39067
39068         Sync from coreutils.
39069         * lib/sha1.c: Tweak grammar in a comment.
39070
39071 2006-01-10  Jim Meyering  <jim@meyering.net>
39072
39073         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
39074         Patch by Joerg Sonnenberger.
39075
39076 2006-01-10  Bruno Haible  <bruno@clisp.org>
39077
39078         * modules/readutmp: Depend on module free.
39079         * modules/strtok_r: Depend on module restrict.
39080
39081 2006-01-10  Bruno Haible  <bruno@clisp.org>
39082
39083         * modules/gettext (configure.ac): Add an invocation of
39084         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
39085
39086 2006-01-10  Bruno Haible  <bruno@clisp.org>
39087
39088         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
39089         Reported by Werner Lemberg <wl@gnu.org>.
39090
39091 2006-01-10  Bruno Haible  <bruno@clisp.org>
39092
39093         * lib/localcharset.c: Update from GNU gettext.
39094
39095 2006-01-10  Bruno Haible  <bruno@clisp.org>
39096
39097         * lib/argp.h (__const): Remove macro. Use const instead.
39098         * lib/argp-fmtstream.h (__const): Likewise.
39099         * lib/glob_.h (__const): Remove macro.
39100         * lib/glob-libc.h: Use const instead of __const.
39101
39102 2006-01-10  Bruno Haible  <bruno@clisp.org>
39103
39104         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
39105         variable.
39106         Needed to avoid an automake error regarding the 'gettext' module.
39107
39108 2006-01-09  Simon Josefsson  <jas@extundo.com>
39109
39110         * modules/inet_ntop (Depends-on): Add restrict.
39111
39112 2006-01-09  Simon Josefsson  <jas@extundo.com>
39113
39114         * modules/gc-rijndael-tests (License): Put under LGPL.
39115
39116         * modules/gc-des-tests (License): Likewise.
39117
39118         * modules/gc-arcfour-tests (License): Likewise.
39119
39120         * modules/gc-arctwo-tests (License): Likewise.
39121
39122         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
39123
39124         * modules/gc-hmac-sha1-tests (Files): Likewise.
39125
39126         * modules/gc-hmac-md5-tests (License): Likewise.
39127
39128         * modules/gc-sha1-tests (License): Likewise.
39129
39130         * modules/gc-md5-tests (License): Likewise.
39131
39132         * modules/gc-md4-tests (License): Likewise.
39133
39134         * modules/gc-md2-tests (License): Likewise.
39135
39136         * modules/gc-tests (License): Likewise.
39137
39138         * modules/des-tests (License): Likewise.
39139
39140         * modules/md4-tests (License): Likewise.
39141
39142         * modules/md2-tests (License): Likewise.
39143
39144 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
39145
39146         Sync from coreutils:
39147
39148         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
39149         * modules/lib-ignore: New file.
39150         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
39151         chdir-safer.m4, lchmod.m4.
39152         * modules/openat: Add mkdirat.c, openat-priv.h.
39153
39154 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
39155
39156         Sync from coreutils.
39157         * m4/lib-ignore.m4: New file.
39158         * m4/lchmod.m4: New file.
39159
39160 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
39161
39162         Sync from coreutils.
39163         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
39164         for write access: POSIX says that must fail.
39165         * lib/fts.c (diropen): Likewise.
39166         * lib/save-cwd.c (save_cwd): Likewise.
39167         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
39168         well, for minor improvements on hosts that lack O_DIRECTORY.
39169         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
39170         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
39171         Fall back on chown if open failed with EACCES.
39172
39173         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
39174         Report an error at compile-time if only a 1-second nominal clock
39175         resolution is found.
39176
39177         * lib/lchmod.h: New file.
39178         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
39179         (make_dir_parents): Use lchown rather than chown, and
39180         lchmod rather than chmod.
39181
39182         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
39183         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
39184         "proc" reported by n0dalus.
39185
39186         * lib/mountlist.c: Include <limits.h>.
39187         (dev_from_mount_options)
39188         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
39189         New function.  It no longer assumes "dev=" has the System V meaning
39190         on Linux (since it doesn't).  It also parses "dev=" more carefully.
39191         (read_file_system_list)
39192         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
39193         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
39194         dev= in that case.
39195
39196         * lib/posixtm.h (PDS_PRE_2000): New macro.
39197         * lib/posixtm.c (year): Arg is now syntax_bits rather than
39198         allow_century.  All usages changed.  Reject dates outside the range
39199         1969-1999 if PDS_PRE_2000 is used.
39200
39201 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
39202
39203         Sync from coreutils.
39204         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
39205         (Time of day items): Mention the possibility of leap seconds.
39206         Problem reported by Dr. David Alan Gilbert.
39207
39208 2006-01-09  Jim Meyering  <jim@meyering.net>
39209
39210         Sync from coreutils.
39211
39212         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
39213
39214         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
39215
39216         * lib/modechange.c (mode_compile): Reject an invalid mode string
39217         that starts with an octal digit.  From Andreas Gruenbacher.
39218
39219         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
39220         and dup to open_safer and dup_safer, respectively.
39221         (openat_permissive): Fix typo in comment.
39222
39223         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
39224         "gettext.h"; either no longer needed or are guaranteed by openat.h.
39225         (_): Remove; no longer needed.
39226         (openat): Renamed from rpl_openat; no need for rpl_openat
39227         since openat.h renames openat for us.
39228         Replace most of the body with a call to openat_permissive,
39229         to avoid duplicate code.
39230         Port to (probably hypothetical) environments were mode_t is
39231         wider than int.
39232         (openat_permissive): Require mode arg, so that we can check
39233         types better.  Put it just after flags.  Change cwd failure
39234         indicator from pointer-to-bool to pointer-to-errno-value.
39235         All callers changed.
39236         Invoke openat_save_fail and/or openat_restore_fail if
39237         cwd_errno is null, so that openat can call us.
39238         (openat_permissive, fdopendir, fstatat, unlinkat):
39239         Simplify errno handling to avoid some duplicate code,
39240         as it's OK to set errno on success.
39241         * lib/openat.h: Revamp code so that function macros depend on
39242         __OPENAT_PREFIX only, not also on AT_FDCWD.
39243         (openat_ro): Remove.  Caller changed to use openat_permissive.
39244         (openat_permissive): Now a macro, if not a function.
39245         (openat_restore_fail, openat_save_fail): Now always functions,
39246         since mkdirat needs them even if __OPENAT_PREFIX is defined.
39247
39248         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
39249         and openat.c.
39250         * lib/mkdirat.c: Include openat-priv.h.
39251         Remove definitions of macros defined therein.
39252         * lib/openat.c: Likewise.
39253
39254         * lib/mkdirat.c (mkdirat): New file and function.
39255         * lib/openat.h (mkdirat): Declare.
39256
39257         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
39258
39259         * lib/openat.h (openat_permissive): Declare.
39260         (openat_ro): Define.
39261
39262         * lib/openat.c (EXPECTED_ERRNO): New macro.
39263         (openat_permissive): New function -- used in remove.c rewrite.
39264         (all functions): Set errno just before returning, only if there
39265         was an actual failure.
39266         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
39267
39268         Emulate openat-family functions using Linux's procfs, if possible.
39269         Idea and some code based on Ulrich Drepper's glibc changes.
39270
39271         * lib/openat.c: (BUILD_PROC_NAME): New macro.
39272         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
39273         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
39274         before falling back on save_cwd and restore_cwd.
39275         (fdopendir, fstatat, unlinkat): Likewise.
39276
39277         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
39278         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
39279
39280         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
39281         as second argument to va_arg.  Otherwise, some versions of gcc
39282         warn that `if this code is reached, the program will abort'.
39283
39284 2006-01-09  Jim Meyering  <jim@meyering.net>
39285
39286         Sync from coreutils.
39287         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
39288         Require openat-priv.h.
39289
39290 2006-01-09  Bruno Haible  <bruno@clisp.org>
39291
39292         * modules/strnlen (Include): Use strnlen.h.
39293
39294 2006-01-09  Bruno Haible  <bruno@clisp.org>
39295
39296         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
39297
39298 2006-01-09  Bruno Haible  <bruno@clisp.org>
39299
39300         * lib/sysexit_.h (EX_OK): New macro.
39301         Suggested by Martin Lambers <marlam@marlam.de>.
39302
39303 2006-01-09  Bruno Haible  <bruno@clisp.org>
39304
39305         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
39306         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
39307
39308 2006-01-09  Bruno Haible  <bruno@clisp.org>
39309
39310         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
39311         numbers.
39312
39313 2006-01-09  Bruno Haible  <bruno@clisp.org>
39314
39315         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
39316         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
39317         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
39318         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
39319
39320 2006-01-09  Bruno Haible  <bruno@clisp.org>
39321
39322         * build-aux/javacomp.sh.in: New file, moved from lib/.
39323         * modules/javacomp-script (Files): Update.
39324         (configure.ac): Add AC_CONFIG_FILES invocation.
39325         (EXTRA_DIST): Remove variable.
39326
39327         * build-aux/javaexec.sh.in: New file, moved from lib/.
39328         * modules/javaexec (Files): Update.
39329         (configure.ac): Add AC_CONFIG_FILES invocation.
39330         (EXTRA_DIST): Remove javaexec.sh.in.
39331
39332         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
39333         * modules/csharpcomp-script (Files): Update.
39334         (configure.ac): Add AC_CONFIG_FILES invocation.
39335         (EXTRA_DIST): Remove variable.
39336
39337         * build-aux/csharpexec.sh.in: New file, moved from lib/.
39338         * modules/csharpexec (Files): Update.
39339         (configure.ac): Add AC_CONFIG_FILES invocation.
39340         (EXTRA_DIST): Remove csharpexec.sh.in.
39341
39342 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
39343
39344         Sync from coreutils.
39345
39346         Add POSIX ACL support
39347         * lib/acl.h (copy_acl, set_acl): Add declarations.
39348         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
39349         systems other than Linux.
39350         (chmod_or_fchmod): New function: use fchmod when possible,
39351         and chmod otherwise.
39352         (file_has_acl): Add a POSIX ACL implementation, with a
39353         Linux-specific subcase.
39354         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
39355         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
39356         acls are unsupported.
39357         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
39358         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
39359         are unsupported.
39360
39361 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
39362
39363         Sync from coreutils.
39364         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
39365
39366 2006-01-07  Bruno Haible  <bruno@clisp.org>
39367
39368         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
39369         gl_EARLY.
39370
39371 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39372
39373         * lib/strftime.c (tzname): Don't declare if it is already #defined.
39374         Problem reported for Mingw by Mark Junker.
39375
39376 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39377
39378         * README: Gnulib normally doesn't generate a tarball.
39379
39380 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
39381
39382         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
39383         long int, not int, for nanosecond counts, so that people who are
39384         used to POSIX struct timespec won't be surprised.  Reported by Jim
39385         Meyering.
39386
39387 2005-12-28  Bruno Haible  <bruno@clisp.org>
39388
39389         * build-aux/config.rpath: Update from GNU gettext.
39390
39391 2005-12-16  Jim Meyering  <jim@meyering.net>
39392
39393         * modules/fprintftime: New module.
39394         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
39395
39396 2005-12-16  Jim Meyering  <jim@meyering.net>
39397
39398         * m4/fprintftime.m4: New file.
39399
39400 2005-12-16  Jim Meyering  <jim@meyering.net>
39401
39402         * lib/fprintftime.c, lib/fprintftime.h: New files.
39403
39404 2005-12-15  Simon Josefsson  <jas@extundo.com>
39405
39406         * modules/socklen (configure.ac): Fix M4 macro name, to align with
39407         new m4/socklen.m4.
39408
39409 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
39410
39411         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
39412         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
39413
39414 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
39415
39416         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
39417         * lib/argp-help.c (fill_in_uparams): Check if the constructed
39418         struct uparams is valid. Fall back to the default values if it is
39419         not.
39420
39421 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
39422
39423         * modules/argp (Files): Add argp-pin.c
39424         (Depends-on): dirname
39425         (lib_SOURCES): Add argp-pin.c
39426
39427 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
39428
39429         * m4/argp.m4:  Check if program_invocation_name and
39430         program_invocation_short_name are declared and define appropriate
39431         macros if they are not.
39432
39433 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
39434
39435         * lib/argp-help.c (__argp_base_name): New function
39436         (__argp_short_program_name): Rewrite using __argp_base_name
39437         * lib/argp-namefrob.h: Define program_invocation_name and
39438         program_invocation_short_name if requested
39439         (__argp_base_name): Add prototype
39440         * lib/argp-parse.c (argp_def): Use gettext wrappers
39441         (argp_default_parser): Use __argp_base_name
39442         * lib/argp-pin.c: New file. Defines program_invocation_name and
39443         program_invocation_short_name on systems that lack them.
39444
39445 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
39446
39447         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
39448         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
39449         porting problem reported by Georg Schwarz in
39450         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
39451
39452 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
39453
39454         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
39455         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
39456         porting problem reported by Georg Schwarz in
39457         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
39458
39459 2005-12-05  Bruno Haible  <bruno@clisp.org>
39460
39461         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
39462         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
39463         Reported by Mark Junker <mjscod@gmx.de>.
39464
39465 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
39466
39467         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
39468         Use implementation from Albert Chin, with some
39469         comments/corrections by Stepan Kasal and myself.
39470
39471 2005-12-02  Bruno Haible  <bruno@clisp.org>
39472
39473         * gnulib-tool (func_import): Accept GPLed build tool modules when
39474         --lgpl is given.
39475         * modules/csharpcomp-script: New file.
39476         * modules/csharpcomp: Depend on it.
39477         * modules/javacomp-script: New file.
39478         * modules/javacomp: Depend on it.
39479         Suggested by Simon Josefsson.
39480
39481 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
39482
39483         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
39484         statement, to work around an HP-UX 10.20 compiler bug reported by
39485         Peter O'Gorman.
39486
39487 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
39488
39489         * modules/savedir (Depends-on): Add openat.
39490
39491 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
39492
39493         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
39494         (uintmax_t) [defined uintmax_t]: Do not declare.
39495         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
39496         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
39497         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
39498         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
39499         sake of portability to weird hosts that C allows (though we don't
39500         know of any practical examples).
39501
39502         * lib/savedir.h (fdsavedir): New decl.
39503         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
39504         contains most of the former guts of savedir.
39505         (savedir): Use savedirstream.
39506         Include "openat.h".
39507
39508 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
39509
39510         * modules/obstack (Files): Add m4/ulonglong.m4.
39511         Problem reported by Davide Angelocola.
39512
39513 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
39514
39515         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
39516         coreutils no longer futzes with rounding modes.
39517
39518 2005-11-14  Jim Meyering  <jim@meyering.net>
39519
39520         * lib/mkstemp-safer.c: Include <config.h>, required for possible
39521         replacement of mkstemp.
39522
39523 2005-11-10  Simon Josefsson  <jas@extundo.com>
39524
39525         * lib/readline.c: Remove EOL.
39526
39527 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
39528
39529         * modules/gethrxtime (Depends-on): Add gettime.
39530
39531 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
39532
39533         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
39534         or gettimeofday; no longer needed.
39535
39536 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
39537
39538         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
39539         time business.
39540         (gethrxtime) [! (HAVE_NANOUPTIME
39541         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
39542         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
39543         our own approximation.
39544
39545 2005-11-08  Eric Blake  <ebb9@byu.net>
39546
39547         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
39548
39549 2005-11-08  Eric Blake  <ebb9@byu.net>
39550
39551         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
39552
39553 2005-11-04  Bruno Haible  <bruno@clisp.org>
39554
39555         * gnulib-tool: Implement --update mode.
39556
39557 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
39558
39559         Fix porting problem reported by Theodoros V. Kalamatianos.
39560         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
39561         Don't assume that futimes failing means we must fail.
39562
39563 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
39564
39565         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
39566         variables to suggest the intended function of the PATH_MAX check.
39567
39568 2005-10-30  Kean Johnston  <jkj@sco.com>
39569
39570         Trivial changes to support SCO systems.
39571         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
39572         as PATH_MAX.
39573         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
39574         where __ptr is null when no I/O is pending.
39575
39576 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
39577
39578         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
39579         leave errno alone.  Problem reported by Dmitry V. Levin.
39580
39581 2005-10-28  Simon Josefsson  <jas@extundo.com>
39582
39583         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
39584         Test more.
39585
39586         * tests/test-gc-md2.c, tests/test-md2.c: New files.
39587
39588         * modules/md2, modules/md2-tests: New files.
39589
39590 2005-10-28  Simon Josefsson  <jas@extundo.com>
39591
39592         * m4/inet_ntop.m4: More tests.
39593
39594         * m4/gc-md2.m4, md2.m4: New file.
39595
39596 2005-10-28  Simon Josefsson  <jas@extundo.com>
39597
39598         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
39599         "restrict" keywords, as per POSIX.  Protect the function
39600         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
39601         Don't use K&R prototypes.  Check the sprintf return values.
39602         Re-define EAFNOSUPPORT if not present.  Indent.
39603
39604         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
39605         suggested by Bruno Haible <bruno@clisp.org>.
39606
39607         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
39608
39609         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
39610
39611         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
39612         libgcrypt).
39613
39614         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
39615
39616         * lib/md2.h, lib/md2.c: New files.
39617
39618 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
39619
39620         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
39621         errno alone.  Problem reported by Frederic Jolliton.
39622
39623 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
39624
39625         * modules/verify (License): Change from GPL to LGPL.  This is a
39626         tiny module and there are apparently near-equivalents that are
39627         under the BSD license.
39628
39629 2005-10-24  Simon Josefsson  <jas@extundo.com>
39630
39631         * modules/sha1: Relicense to LGPL.
39632
39633 2005-10-24  Simon Josefsson  <jas@extundo.com>
39634
39635         * lib/md4.h: Shrink buffer size, now that we changed the type.
39636
39637 2005-10-23  Simon Josefsson  <jas@extundo.com>
39638
39639         * gnulib-tool (func_import): Fix --tests-base.
39640
39641 2005-10-22  Simon Josefsson  <jas@extundo.com>
39642
39643         * modules/arcfour (Depends-on): Need stdint.
39644
39645 2005-10-22  Simon Josefsson  <jas@extundo.com>
39646
39647         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
39648         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
39649
39650 2005-10-22  Simon Josefsson  <jas@extundo.com>
39651
39652         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
39653         suggested by Bruno Haible <bruno@clisp.org>.
39654
39655 2005-10-22  Simon Josefsson  <jas@extundo.com>
39656
39657         * lib/crc.h: Include stddef.h, for size_t.
39658
39659 2005-10-22  Simon Josefsson  <jas@extundo.com>
39660
39661         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
39662         arcfour_context struct (simplify test vector testing in GNU
39663         Shishi).
39664
39665 2005-10-21  Simon Josefsson  <jas@extundo.com>
39666
39667         * modules/des, modules/des-tests: New files.
39668
39669         * modules/gc-des, modules/gc-des-tests: New files.
39670
39671         * tests/test-des.c, tests/test-gc-des.c: New file.
39672
39673 2005-10-21  Simon Josefsson  <jas@extundo.com>
39674
39675         * modules/arctwo, modules/arctwo-tests: New files.
39676
39677         * tests/test-arctwo.c: New file.
39678
39679         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
39680
39681         * tests/test-gc-arctwo.c: New file.
39682
39683 2005-10-21  Simon Josefsson  <jas@extundo.com>
39684
39685         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
39686         Bruno Haible <bruno@clisp.org>.
39687
39688         * m4/gc-des.m4: New file.
39689
39690 2005-10-21  Simon Josefsson  <jas@extundo.com>
39691
39692         * m4/arctwo.m4: New file.
39693
39694         * m4/gc-arctwo.m4: New file.
39695
39696 2005-10-21  Simon Josefsson  <jas@extundo.com>
39697
39698         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
39699         block.
39700
39701 2005-10-21  Simon Josefsson  <jas@extundo.com>
39702
39703         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
39704         <bruno@clisp.org>.
39705
39706         * lib/hmac-sha1.c (hmac_sha1): Likewise.
39707
39708         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
39709         Bruno Haible <bruno@clisp.org>.
39710
39711         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
39712         <bruno@clisp.org>.
39713
39714 2005-10-21  Simon Josefsson  <jas@extundo.com>
39715
39716         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
39717
39718 2005-10-21  Simon Josefsson  <jas@extundo.com>
39719
39720         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
39721
39722 2005-10-21  Simon Josefsson  <jas@extundo.com>
39723
39724         * lib/des.h, lib/des.c: New files.
39725
39726         * lib/gc-gnulib.c: Support DES.c
39727
39728 2005-10-21  Simon Josefsson  <jas@extundo.com>
39729
39730         * lib/arctwo.h, lib/arctwo.c: New files.
39731
39732         * lib/gc-gnulib.c: Support ARCTWO.
39733
39734 2005-10-21  Simon Josefsson  <jas@extundo.com>
39735
39736         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
39737         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39738
39739 2005-10-21  Simon Josefsson  <jas@extundo.com>
39740
39741         * gnulib-tool (func_import, func_create_testdir): Define automake
39742         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
39743         Makefile.am snippet),
39744         suggested by Bruno Haible <bruno@clisp.org>.
39745
39746         * modules/gc (Makefile.am): Use it.
39747
39748 2005-10-21  Bruno Haible  <bruno@clisp.org>
39749
39750         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
39751         patch.
39752
39753 2005-10-19  Simon Josefsson  <jas@extundo.com>
39754
39755         * tests/test-gc-rijndael.c: New file.
39756
39757         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
39758
39759 2005-10-19  Simon Josefsson  <jas@extundo.com>
39760
39761         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
39762         interface too.
39763
39764 2005-10-19  Simon Josefsson  <jas@extundo.com>
39765
39766         * tests/test-gc-arcfour.c: New file.
39767
39768         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
39769
39770 2005-10-19  Simon Josefsson  <jas@extundo.com>
39771
39772         * modules/gc-md4, modules/gc-md4-tests: New file.
39773
39774         * tests/test-gc-md4.c: New file.
39775
39776 2005-10-19  Simon Josefsson  <jas@extundo.com>
39777
39778         * m4/gc-md4.m4: New file.
39779
39780 2005-10-19  Simon Josefsson  <jas@extundo.com>
39781
39782         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
39783         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
39784         <kasal@ucw.cz>.
39785
39786 2005-10-19  Simon Josefsson  <jas@extundo.com>
39787
39788         * m4/gc-arcfour.m4: New file.
39789
39790         * m4/gc-rijndael.m4: New file.
39791
39792 2005-10-19  Simon Josefsson  <jas@extundo.com>
39793
39794         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
39795
39796 2005-10-19  Simon Josefsson  <jas@extundo.com>
39797
39798         * lib/gc-gnulib.c: Support ARCFOUR.
39799
39800 2005-10-19  Simon Josefsson  <jas@extundo.com>
39801
39802         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
39803         support.
39804
39805         * lib/gc.h: Add ECB enum type.
39806
39807         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
39808
39809 2005-10-18  Simon Josefsson  <jas@extundo.com>
39810
39811         * tests/test-md5.c: New file.
39812
39813         * modules/md5-tests: New file.
39814
39815 2005-10-18  Simon Josefsson  <jas@extundo.com>
39816
39817         * tests/test-md4.c: New file.
39818
39819         * modules/md4, modules/md4-tests: New files.
39820
39821 2005-10-18  Simon Josefsson  <jas@extundo.com>
39822
39823         * m4/md4.m4: New file.
39824
39825 2005-10-18  Simon Josefsson  <jas@extundo.com>
39826
39827         * lib/md4.h, lib/md4.c: New files, based on md5.?.
39828
39829 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
39830
39831         * gnulib-tool (func_create_testdir): Omit the second check whether
39832         BUILT_SOURCES in nonempty.
39833
39834 2005-10-17  Simon Josefsson  <jas@extundo.com>
39835
39836         * tests/test-rijndael.c: New file.
39837
39838 2005-10-17  Simon Josefsson  <jas@extundo.com>
39839
39840         * modules/sha1: Depend on stdint instead of md5.
39841
39842         * modules/md5: Depend on stdint, remove uint32_t.
39843
39844 2005-10-17  Simon Josefsson  <jas@extundo.com>
39845
39846         * modules/gc-sha1-tests: New file.
39847
39848         * tests/test-gc-sha1.c: New file.
39849
39850 2005-10-17  Simon Josefsson  <jas@extundo.com>
39851
39852         * m4/md5.m4: Remove call to uint32_t.m4.
39853
39854 2005-10-17  Simon Josefsson  <jas@extundo.com>
39855
39856         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
39857
39858         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
39859         md5.h.
39860
39861         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
39862
39863         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
39864
39865 2005-10-17  Simon Josefsson  <jas@extundo.com>
39866
39867         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
39868
39869 2005-10-17  Simon Josefsson  <jas@extundo.com>
39870
39871         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
39872
39873 2005-10-17  Simon Josefsson  <jas@extundo.com>
39874
39875         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
39876
39877         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
39878
39879 2005-10-17  Bruno Haible  <bruno@clisp.org>
39880
39881         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
39882         that it can also be used in a test.
39883
39884 2005-10-16  Bruno Haible  <bruno@clisp.org>
39885
39886         * gnulib-tool (func_emit_tests_Makefile_am): Also define
39887         TESTS_ENVIRONMENT, so that individual tests can augment it.
39888
39889         * gnulib-tool (func_create_testdir): Use an intermediate target for
39890         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
39891         macros, like $(ALLOCA_H), which cannot be passed through the command
39892         line.
39893
39894 2005-10-15  Simon Josefsson  <jas@extundo.com>
39895
39896         * modules/rijndael-tests: New file.
39897
39898         * modules/rijndael: New file.
39899
39900 2005-10-15  Simon Josefsson  <jas@extundo.com>
39901
39902         * m4/rijndael.m4: New file.
39903
39904 2005-10-15  Simon Josefsson  <jas@extundo.com>
39905
39906         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
39907
39908         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
39909
39910 2005-10-14  Simon Josefsson  <jas@extundo.com>
39911
39912         * tests/test-arcfour.c: New file.
39913
39914         * modules/arcfour, modules/arcfour-tests: New files.
39915
39916 2005-10-14  Simon Josefsson  <jas@extundo.com>
39917
39918         * m4/arcfour.m4: New file.
39919
39920 2005-10-14  Simon Josefsson  <jas@extundo.com>
39921
39922         * lib/arcfour.h, lib/arcfour.c: New files.
39923
39924 2005-10-14  Roland McGrath  <roland@redhat.com>
39925
39926         Import from libc.  [BZ #1331]
39927         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
39928         macro argument.
39929         Reported by Matej Vela <vela@debian.org>.
39930
39931 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
39932
39933         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
39934         include <wchar.h>; no longer needed.
39935
39936 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
39937
39938         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
39939
39940 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
39941         and  Ulrich Drepper  <drepper@redhat.com>
39942
39943         Import from libc.
39944         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
39945         instead of inline stream orientation test and two separate
39946         function calls.  Pay no attention to USE_IN_LIBIO.
39947
39948 2005-10-13  Simon Josefsson  <jas@extundo.com>
39949
39950         * modules/gc-hmac-md5-tests: New file.
39951
39952         * tests/test-gc-hmac-sha1.c: New file.
39953
39954         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
39955
39956         * modules/gc-hmac-md5-tests: New file.
39957
39958         * tests/test-gc-md5.c: New file.
39959
39960         * modules/gc-md5-tests: New file.
39961
39962 2005-10-13  Simon Josefsson  <jas@extundo.com>
39963
39964         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
39965         Move memory allocation outside of loop.
39966
39967 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
39968
39969         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
39970         intermediate directory is in a read-only file system.  Problem
39971         reported by Eric Blake.
39972
39973 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
39974
39975         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
39976
39977 2005-10-12  Simon Josefsson  <jas@extundo.com>
39978
39979         * tests/test-hmac-sha1.c: New file.
39980
39981         * modules/hmac-sha1-tests: New file.
39982
39983         * modules/hmac-sha1: New file.
39984
39985 2005-10-12  Simon Josefsson  <jas@extundo.com>
39986
39987         * modules/gc-sha1: New file.
39988
39989 2005-10-12  Simon Josefsson  <jas@extundo.com>
39990
39991         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
39992
39993         * tests/test-gc-pbkdf2-sha1.c: New file.
39994
39995 2005-10-12  Simon Josefsson  <jas@extundo.com>
39996
39997         * modules/gc-md5, modules/gc-hmac-md5: New files.
39998
39999         * modules/gc (Files): Remove md5, memxor and hmac files.
40000
40001 2005-10-12  Simon Josefsson  <jas@extundo.com>
40002
40003         * m4/gc-pbkdf2-sha1.m4: New file.
40004
40005         * m4/gc-hmac-sha1.m4: New file.
40006
40007         * m4/gc-sha1: New file.
40008
40009         * m4/hmac-sha1.m4: New file.
40010
40011 2005-10-12  Simon Josefsson  <jas@extundo.com>
40012
40013         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
40014
40015         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
40016
40017 2005-10-12  Simon Josefsson  <jas@extundo.com>
40018
40019         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
40020         suggested by Bruno Haible <bruno@clisp.org>.
40021
40022 2005-10-12  Simon Josefsson  <jas@extundo.com>
40023
40024         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
40025
40026 2005-10-12  Simon Josefsson  <jas@extundo.com>
40027
40028         * lib/gc-pbkdf2-sha1.c: New file.
40029
40030         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
40031
40032 2005-10-12  Simon Josefsson  <jas@extundo.com>
40033
40034         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
40035
40036         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
40037
40038 2005-10-12  Simon Josefsson  <jas@extundo.com>
40039
40040         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
40041         GC_USE_HMAC_MD5, respectively.
40042
40043         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
40044         (gc_md5): Fix typo.
40045
40046         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
40047
40048         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
40049
40050         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
40051
40052 2005-10-12  Bruno Haible  <bruno@clisp.org>
40053
40054         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
40055         Reported by Stepan Kasal <kasal@ucw.cz>.
40056
40057 2005-10-11  Simon Josefsson  <jas@extundo.com>
40058
40059         * tests/test-crc.c: New file.
40060
40061         * modules/crc, modules/crc-tests: New files.
40062
40063 2005-10-11  Simon Josefsson  <jas@extundo.com>
40064
40065         * m4/crc.m4: New file.
40066
40067 2005-10-11  Simon Josefsson  <jas@extundo.com>
40068
40069         * lib/gc.h: Add gc_hash and gc_hash_buffer.
40070
40071         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
40072
40073         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
40074
40075 2005-10-11  Simon Josefsson  <jas@extundo.com>
40076
40077         * lib/crc.h, lib/crc.c: New files.
40078
40079         * lib/gc.h (gc_hash_buffer): Add doc.
40080
40081 2005-10-11  Bruno Haible  <bruno@clisp.org>
40082
40083         * modules/c-strcasestr: New file.
40084         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
40085
40086 2005-10-11  Bruno Haible  <bruno@clisp.org>
40087
40088         * modules/c-strcase: New file.
40089         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
40090
40091 2005-10-11  Bruno Haible  <bruno@clisp.org>
40092
40093         * lib/strcasecmp.c: Include limits.h.
40094         (strcasecmp): Avoid integer overflow on exotic platforms.
40095         * lib/strncasecmp.c: Include limits.h.
40096         (strncasecmp): Avoid integer overflow on exotic platforms.
40097         Reported by Paul Eggert.
40098
40099 2005-10-11  Bruno Haible  <bruno@clisp.org>
40100
40101         * lib/c-strcasestr.h: New file, from GNU gettext.
40102         * lib/c-strcasestr.c: New file, from GNU gettext.
40103
40104 2005-10-11  Bruno Haible  <bruno@clisp.org>
40105
40106         * lib/c-strcase.h: New file, from GNU gettext.
40107         * lib/c-strcasecmp.c: New file, from GNU gettext.
40108         * lib/c-strncasecmp.c: New file, from GNU gettext.
40109
40110 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
40111
40112         * modules/mempcpy (License): GPL -> LGPL.
40113         * modules/strchrnul (License): Likewise.
40114         * modules/sysexits (License): Likewise.
40115
40116 2005-10-08  Simon Josefsson  <jas@extundo.com>
40117
40118         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
40119
40120 2005-10-07  Simon Josefsson  <jas@extundo.com>
40121
40122         * m4/memxor.m4: Remove gl_C_RESTRICT call.
40123
40124 2005-10-06  Simon Josefsson  <jas@extundo.com>
40125
40126         * tests/test-hmac-md5.c: New file.
40127
40128         * modules/hmac-md5-tests: New file.
40129
40130         * modules/hmac-md5: New file.
40131
40132 2005-10-06  Simon Josefsson  <jas@extundo.com>
40133
40134         * m4/hmac-md5.m4: New file.
40135
40136         * m4/memxor.m4: Require gl_C_RESTRICT.
40137
40138 2005-10-06  Simon Josefsson  <jas@extundo.com>
40139
40140         * lib/memxor.c (memxor): Avoid casts and warnings.
40141
40142 2005-10-06  Simon Josefsson  <jas@extundo.com>
40143
40144         * lib/hmac-md5.c: New file.
40145
40146         * lib/hmac.h: New file.
40147
40148 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
40149
40150         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
40151         promotes to int, not unsigned int, to catch the AIX 5.3
40152         compiler bug.
40153
40154 2005-10-05  Simon Josefsson  <jas@extundo.com>
40155
40156         * modules/memxor: New file.
40157
40158         * modules/iconv (Files): Move config.rpath to havelib, it is used
40159         there.
40160
40161         * modules/havelib (Files): Add config.rpath.
40162
40163 2005-10-05  Simon Josefsson  <jas@extundo.com>
40164
40165         * m4/memxor.m4: New file.
40166
40167 2005-10-05  Simon Josefsson  <jas@extundo.com>
40168
40169         * lib/memxor.c (memxor): Fix compiler error.
40170
40171         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
40172         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
40173
40174         * lib/memxor.h, lib/memxor.c: New files.
40175
40176         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
40177         we assume all systems have it, suggested by Jim Meyering
40178         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
40179         any systems lack sys/socket.h; mingw32 is known to lack it, but we
40180         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
40181         same reasons.
40182
40183 2005-10-05  Simon Josefsson  <jas@extundo.com>
40184
40185         * config/srclist.txt: Add glibc bug 1423 for md5.h.
40186
40187 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
40188
40189         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
40190         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
40191         needed, since the source code now assumes these .h files.
40192
40193 2005-10-05  Derek Price  <derek@ximbiot.com>
40194
40195         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
40196
40197 2005-10-05  Bruno Haible  <bruno@clisp.org>
40198
40199         * modules/stdint (License): Change to LGPL.
40200
40201 2005-10-04  Simon Josefsson  <jas@extundo.com>
40202
40203         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
40204         D. Baushke" <mdb@gnu.org>.
40205
40206 2005-10-04  Bruno Haible  <bruno@clisp.org>
40207
40208         * lib/verify.h (verify_true): Provide alternative definition for C++.
40209
40210 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
40211
40212         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
40213         (SSIZE_MAX): New macro, if not already defined.
40214         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
40215         than 2 GiB.
40216
40217 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
40218
40219         Sync from coreutils.
40220         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
40221         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
40222         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
40223         ULLONG_MAX doesn't work with 2.7.2.1.
40224
40225 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
40226
40227         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
40228         From Ben Pfaff.
40229
40230         * modules/exclude (Depends-on): Depend on verify.
40231         * modules/strtoimax (Depends-on): Likewise.
40232         * modules/utimecmp (Depends-on): Likewise.
40233
40234 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
40235
40236         * lib/exclude.c: Include verify.h.
40237         (verify): Remove.  All callers changed to use verify.h's version.
40238         * lib/strtoimax.c: Likewise.
40239         * lib/utimecmp.c: Likewis.e
40240
40241         Sync from coreutils.
40242         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
40243         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
40244         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
40245         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
40246         bother returning ENOSYS if settimeofday or stime fails; just let
40247         them return whatever errno they want to return.
40248         * lib/utimens.c: Include unistd.h, for dup2.
40249         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
40250         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
40251
40252 2005-10-02  Jim Meyering  <jim@meyering.net>
40253
40254         Sync from coreutils.
40255         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
40256         from glibc-2.2.5 that fails for read-only files.
40257
40258 2005-10-02  Jim Meyering  <jim@meyering.net>
40259
40260         Sync from coreutils.
40261         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
40262         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
40263         `#if HAVE_CONFIG_H'.
40264         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
40265         Remove AT_FDCWD test.
40266         Do not consume the fd unless successful.
40267         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
40268         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
40269         block, so that we don't even try to compile it if settimeofday is
40270         available.  This works around a compilation failure on OSF1 V5.1,
40271         due to stime requiring a `long int*' while tv_sec is `int'.
40272
40273 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
40274
40275         Sync from coreutils.
40276         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
40277         against `yes', rather than just testing for nonempty.
40278
40279 2005-10-01  Simon Josefsson  <jas@extundo.com>
40280
40281         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
40282         and Darwin.
40283
40284         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
40285         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
40286         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
40287         freeaddrinfo and gai_strerror are declared by the POSIX headers.
40288         Check if struct addrinfo is declared.
40289
40290 2005-10-01  Simon Josefsson  <jas@extundo.com>
40291
40292         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
40293         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
40294         AI_* and EAI_* definitions.  Protect function declarations.
40295
40296 2005-10-01  Jim Meyering  <jim@meyering.net>
40297
40298         Sync from coreutils.
40299
40300         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
40301         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
40302         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
40303         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
40304         in the inet and nsl libraries.  Required on Solaris 5.7.
40305
40306 2005-10-01  Jim Meyering  <jim@meyering.net>
40307
40308         Sync from coreutils.
40309         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
40310         in the inet and nsl libraries.  Required on Solaris 5.7.
40311
40312 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
40313
40314         * lib/getdelim.c (getdelim): Remove unused variables.
40315
40316 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
40317
40318         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
40319         so that the code works even with ancient cpp.  Portability problem
40320         with GCC 2.7.2.1 reported by Thomas M.Ott.
40321
40322 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
40323
40324         * modules/regex (Depends-on): Add strcase.
40325
40326         * modules/gethostname (Licence): Change from GPL to LGPL, since
40327         gethostname.c is a trivial implementation of a standard library
40328         function.
40329         * modules/poll (License): Change from GPL to LGPL, since it's
40330         derived from LGPL code.
40331
40332 2005-09-27  Jim Meyering  <jim@meyering.net>
40333
40334         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
40335         HAVE_CONFIG_H.
40336
40337         * lib/intprops.h (signed_type_or_expr__): Define.
40338         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
40339         for unsigned types.
40340
40341 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
40342
40343         * lib/verify.h (verify_expr): Remove, replacing with:
40344         (verify_true): New macro that returns true instead of void.
40345         (verify_type__): Remove.
40346         (verify): Use verify_true rather than verify_type__.
40347
40348 2005-09-26  Bruno Haible  <bruno@clisp.org>
40349
40350         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
40351         is necessary.
40352         (lib_SOURCES): Remove mbchar.c.
40353         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
40354         (Files): Add m4/mbrtowc.m4.
40355         * modules/mbiter: Likewise.
40356         * modules/mbuiter: Likewise.
40357
40358 2005-09-26  Bruno Haible  <bruno@clisp.org>
40359
40360         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
40361         compile mbchar.c if they are not both present.
40362         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
40363         * m4/mbiter.m4 (gl_MBITER): Likewise.
40364         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
40365         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
40366         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
40367
40368 2005-09-25  Jim Meyering  <jim@meyering.net>
40369
40370         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
40371         also uses socklen_t.
40372
40373 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
40374
40375         * lib/utimens.c (ENOSYS): Define if not already defined.
40376         (futimens): Support having a null PATH if the file descriptor
40377         is nonnegative.
40378
40379         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
40380         Remove.
40381         (__attribute): Define to empty unless GCC 3.1 or later.
40382         This works around a core dump on OpenBSD 3.4, which has GCC
40383         2.95.3, which dumps core when given __attribute__(()).  It also
40384         simplifies other tests, since we really don't want to bother with
40385         worrying about which ancient version of GCC supported what.
40386         Original problem reported by Yoann Vandoorselaere, with part of
40387         the fix suggested by Derek Price.
40388
40389 2005-09-24  Jim Meyering  <jim@meyering.net>
40390
40391         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
40392         so we can once again use a positive bitfield width of 1 -- now we
40393         don't have to explain why we were using a bitfield width of 2.
40394
40395 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
40396
40397         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
40398         and similarly for the other external symbols.  Problem reported
40399         by James Gallager.
40400
40401         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
40402         bug reported by Jim Meyering.
40403
40404         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
40405         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
40406         not needed, since socklen is a prerequisite module.
40407
40408 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
40409
40410         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
40411         Problem reported by Eric Blake.
40412         (getaddrinfo): Initialize se so that it's not garbage.
40413         Redo internal storage allocation so that it doesn't make unportable
40414         assumptions about alignment.
40415         Fix a memory leak.
40416
40417         * lib/utimens.c (futimens): Use futimesat if available.
40418         Prefer it to futimes since it doesn't have the futimes bug.
40419
40420         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
40421         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
40422         Instead, declare a function that returns a pointer to an array,
40423         and use verify_type__ to declare the size of the array.
40424         Problem and germ of a solution reported by Bruno Haible.
40425         (verify_type__): Use 2, not 1, for bitfield size, to avoid
40426         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
40427
40428 2005-09-23  Jim Meyering  <jim@meyering.net>
40429
40430         Sync from coreutils.
40431         Correct build failure (socklen_t not defined) on at least
40432         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
40433         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
40434
40435 2005-09-23  Jim Meyering  <jim@meyering.net>
40436
40437         * modules/getaddrinfo (Depends-on): Add socklen.
40438
40439 2005-09-23  Bruno Haible  <bruno@clisp.org>
40440
40441         * tests/test-verify.c: New file.
40442
40443 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
40444
40445         Sync from coreutils.
40446
40447         * modules/argmatch (Depends-on): Add verify.
40448         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
40449         unistd-safer.
40450         * modules/save-cwd (Depends-on): Likewise.
40451
40452         * modules/openat (Files): Add lib/openat-die.c.
40453         (Depends-on): Remove error, exitfail.
40454         Add dirname.
40455
40456         * modules/verify: New file.
40457         * MODULES.html.sh (Diagnostics <assert.h>): New section,
40458         with "verify" module.
40459
40460 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
40461
40462         Sync from coreutils.
40463
40464         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
40465         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
40466         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
40467         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
40468         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
40469         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
40470         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
40471         Don't bother checking for string.h, stdlib.h, unistd.h.
40472         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
40473         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
40474         module's job.
40475         * m4/jm-macros.m4 (gl_MACROS): Likewise.
40476         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
40477
40478         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
40479         (gl_GETDATE): Use it.
40480
40481         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
40482
40483 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
40484
40485         Sync from coreutils.
40486
40487         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
40488         stat-time.h.
40489         * lib/argmatch.h: Include verify.h
40490         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
40491         (ARGMATCH_ASSERT): Remove; unused.
40492         * lib/canonicalize.c: Assume STDC_HEADERS.
40493         * lib/exclude.c: Include "strcase.h".
40494         * lib/regex_internal.h [!defined _LIBC]: Likewise.
40495         * lib/getusershell.c: Include stdio--.h rather than stdio.h
40496         and stdio-safer.h.
40497         (getusershell): Call fopen, not fopen_safer.
40498         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
40499         Do not include unistd-safer.h.
40500         (save_cwd): Don't call fd_safer; no longer needed
40501         now that we include fcntl--.h.
40502
40503         * lib/getdate.y (relative_time): New type.
40504         (RELATIVE_TIME_0): New constant.
40505         (parser_control): Use relative_time instead of doing it ourselves.
40506         (%union): Add new relative_time rel member.
40507         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
40508         Now typeless.
40509         (relunit, relunit_snumber): Now of type rel.
40510         (zone, rel, relunit, get_date): Adjust to above changes.
40511
40512         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
40513         Do not include unistd-safer.h.
40514         (getloadavg): Don't call fd_safer; no longer needed
40515         now that we include fcntl--.h.
40516
40517         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
40518         (make_dir_parents): Treat ENOSYS like EEXIST.
40519
40520         Improve quality of diagnostics on restore_cwd failure.
40521         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
40522         (make_dir_parents): Last arg is now int * (for errno), not bool *.
40523         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
40524         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
40525         each time through the loop.  Do not diagnose restore_cwd failure;
40526         that is the caller's job (and perhaps the caller does not care).
40527
40528         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
40529         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
40530         If the file already exists but is not a directory, don't bother
40531         to try to make its parents.
40532         Close potential file descriptor leak if we can't chdir("/") (!).
40533         Don't always return true if chdir($PWD) fails; return true only
40534         if the requested action was done successfully (except for the
40535         chdir($PWD)).
40536         Don't log final directory unless we actually made it.
40537         Refactor to avoid duplicate code to fix up permissions.
40538         Don't attempt to fix up parent permissions if chdir($PWD) fails.
40539
40540         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
40541         to make it a bit faster and (I hope) clearer.
40542         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
40543         Fix bug in formats like %2N.
40544
40545         * lib/verify.h: New file.
40546
40547 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
40548
40549         Sync from coreutils.
40550         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
40551
40552 2005-09-22  Jim Meyering  <jim@meyering.net>
40553
40554         Sync from coreutils.
40555
40556         * m4/lstat.m4 (gl_FUNC_LSTAT):
40557         Use AC_LIBSOURCES to require lstat.c and lstat.h.
40558         Remove obsolete comment.
40559         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
40560         * m4/xstrtod.m4: Likewise.
40561
40562         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
40563
40564 2005-09-22  Jim Meyering  <jim@meyering.net>
40565
40566         Sync from coreutils.
40567
40568         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
40569
40570         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
40571         the .tm_year member, since otherwise gcc-4.0 would now warn about
40572         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
40573
40574         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
40575         order to avoid an unsuppressible warning from gcc on 64-bit systems.
40576
40577         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
40578         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
40579         when run in a time zone for which daylight savings time is in effect
40580         for the starting date.
40581
40582         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
40583         stop us from restricting permissions of just-created absolute-named
40584         directories.
40585         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
40586         to restore initial working directory.
40587         * lib/mkdir-p.c (make_dir_parents): New parameter:
40588         different_working_dir, to tell caller if/when we change the working
40589         directory and are unable to return to the initial one.
40590         * lib/mkdir-p.h (make_dir_parents): Update prototype.
40591         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
40592         `return false'.  This fixes a bug introduced on 2004-07-30.
40593
40594         * lib/openat.c (fdopendir): Be sure to close the supplied
40595         file descriptor before returning.  This makes our replacement
40596         implementation a little closer to Solaris's, where fdopendir
40597         ties the file descriptor to the returned DIR* pointer.
40598         * lib/openat.c (unlinkat): New function.
40599         * lib/openat.h (unlinkat): Add prototype.
40600         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
40601         (openat_restore_fail): Rename from openat_restore_die.
40602         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
40603
40604         Provide an alternative to exiting immediately upon save_cwd or
40605         restore_cwd failure.  Now, an application can arrange e.g.,
40606         to perform a longjump in that case.
40607         * lib/openat.c: Include dirname.h.
40608         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
40609         (rpl_openat, fdopendir, fstatat): Call openat_save_die
40610         and openat_restore_die rather than calling error directly.
40611         Don't include "error.h" or "exitfail.h"; they're no longer needed.
40612
40613         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
40614         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
40615         define.
40616
40617         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
40618         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
40619                             int utc, int nanoseconds);
40620         Background:
40621         date should not have to allocate a megabyte of virtual memory to
40622         handle a format argument like +%1048575T.  When implemented with
40623         strftime, it must allocate such a buffer, use strftime to fill it
40624         in, print it, then free it.
40625         With fprintftime, it simply prints everything and exits.
40626         With no need for memory allocation, that's one fewer way to fail.
40627         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
40628         optional field width, not before, so we accept %9:z, not %:9z.
40629         (my_strftime): Be sure to use L_('x') for literals.
40630
40631         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
40632         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
40633         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
40634         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
40635         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
40636         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
40637         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
40638         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
40639         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
40640         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
40641         * lib/xgethostname.c, lib/xreadlink.c:
40642         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
40643
40644         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
40645         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
40646         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
40647         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
40648         and don't include <sys/file.h>).
40649
40650 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
40651
40652         Sync from coreutils.
40653
40654         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
40655         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
40656         [!LDAV_DONE]: Avoid unused variable warning.
40657
40658 2005-09-21  Bruno Haible  <bruno@clisp.org>
40659
40660         * lib/unicodeio.h (unicode_to_mb): New declaration.
40661
40662 2005-09-20  Derek Price  <derek@ximbiot.com>
40663
40664         * lib/getaddrinfo.c: Don't include <netdb.h> included from
40665         getaddrinfo.h.
40666
40667 2005-09-20  Bruno Haible  <bruno@clisp.org>
40668
40669         * gnulib-tool: Remove trailing slashes from the values specified for
40670         --source-base, --m4-base, --tests-base, --aux-dir.
40671         Suggested by Simon Josefsson <jas@extundo.com>.
40672
40673 2005-09-20  Bruno Haible  <bruno@clisp.org>
40674
40675         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
40676         func_modules_to_filelist, func_import, func_create_testdir): Make all
40677         sorting results locale-independent, so that gnulib-cache.m4 doesn't
40678         change when gnulib-tool is invoked in a different locale.
40679
40680 2005-09-19  Simon Josefsson  <jas@extundo.com>
40681
40682         * m4/socklen.m4: Fix typo.
40683
40684 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40685
40686         Use a consistent style for including <config.h>.
40687         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
40688         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
40689         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
40690         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
40691         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
40692         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
40693         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
40694         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
40695         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
40696         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
40697         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
40698         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
40699         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
40700         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
40701         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
40702         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
40703         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
40704         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
40705         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
40706         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
40707         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
40708         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
40709         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
40710         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
40711         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
40712         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
40713         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
40714         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
40715         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
40716         lib/xstrtoumax.c, lib/yesno.c:
40717         Standardize inclusion of config.h.
40718         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
40719         lib/inttostr.h:  Removed inclusion of config.h from header files.
40720         * lib/inttostr.c:  Adjusted in-tree users.
40721         * lib/timespec.h: Remove superfluous warning to include config.h.
40722         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
40723         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
40724         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
40725         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
40726         config.h with HAVE_CONFIG_H.
40727
40728 2005-09-19  Jim Meyering  <jim@meyering.net>
40729
40730         * modules/pathmax (License): Change to LGPL.
40731
40732 2005-09-19  Derek Price  <derek@ximbiot.com>
40733
40734         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
40735
40736 2005-09-19  Bruno Haible  <bruno@clisp.org>
40737
40738         * gnulib-tool (import): Provide default for --tests-base.
40739
40740 2005-09-19  Bruno Haible  <bruno@clisp.org>
40741
40742         * doc/quote.texi: New file, extracted from gnulib.texi.
40743         * doc/ctime.texi: New file, extracted from gnulib.texi.
40744         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
40745         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
40746         * doc/gnulib.texi: Include them.
40747
40748 2005-09-18  Bruno Haible  <bruno@clisp.org>
40749
40750         Portability fix.
40751         * gnulib-tool (func_readlink): New function.
40752         (func_ln_if_changed): Use it.
40753
40754 2005-09-18  Bruno Haible  <bruno@clisp.org>
40755
40756         * gnulib-tool: Support --with-tests also with --import.
40757         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
40758         (func_import): Use variables $testsbase and $inctests. Emit a
40759         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
40760         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
40761         SUBDIRS += $testsdir.
40762         (func_create_testdir): Update.
40763
40764 2005-09-18  Bruno Haible  <bruno@clisp.org>
40765
40766         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
40767         instead of $dry_run.
40768         (func_cp_if_changed, func_mv_if_changed): Remove functions.
40769         (func_ln_if_changed): Don't handle dry-run here.
40770         (func_import): In dry-run mode, detect more precisely which actions
40771         would be performed, and don't use "...ing" verbs.
40772
40773 2005-09-18  Bruno Haible  <bruno@clisp.org>
40774
40775         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
40776         (func_import): Use join on two temporary files instead of three nested
40777         loops, in order to determine which files are new or old.
40778
40779 2005-09-18  Bruno Haible  <bruno@clisp.org>
40780
40781         * gnulib-tool (func_import): Comment out code that spits out the
40782         new files with --dry-run.
40783
40784 2005-09-18  Bruno Haible  <bruno@clisp.org>
40785
40786         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
40787
40788 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
40789
40790         * lib/stat-time.h: New file.
40791         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
40792         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
40793         in a different way.
40794         (timespec_cmp): New function.
40795         * lib/utimecmp.c: Include stat-time.h.
40796         (SYSCALL_RESOLUTION): Depend on whether various struct stat
40797         members exist, not on the obsolescent ST_MTIM_NSEC.
40798         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
40799
40800 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
40801
40802         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
40803
40804 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
40805
40806         * MODULES.html.sh (File system functions): Add stat-time.
40807         * modules/stat-time: New file.
40808         * modules/timespec (Files): Remove m4/st_mtim.m4; this
40809         is now done in a different way, by the stat-time module.
40810         * modules/utimecmp (Depends-on): Add stat-time.
40811
40812 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
40813
40814         * m4/st_mtim.m4: Remove.  Superseded by...
40815         * m4/stat-time.m4: New file.
40816         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
40817         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
40818
40819 2005-09-15  Derek Price  <derek@ximbiot.com>
40820
40821         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
40822
40823 2005-09-15  Derek Price  <derek@ximbiot.com>
40824
40825         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
40826         * lib/regex_internal.c: Ditto, using this...
40827         (__GNUC_PREREQ): ...new macro.
40828         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
40829         using...
40830         (__GNUC_PREREQ): ...this new macro.
40831
40832         * lib/strstr.h: Include string.h. Define strstr as a macro here.
40833
40834 2005-09-15  Derek Price  <derek@ximbiot.com>
40835             Paul Eggert  <eggert@cs.ucla.edu>
40836
40837         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
40838         changes, consolidating in...
40839         * lib/regex_internal.h: ...this file.
40840
40841 2005-09-13  Jim Meyering  <jim@meyering.net>
40842
40843         * lib/canon-host.c: Filter through gnu indent and reword comments
40844         slightly.
40845         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
40846
40847 2005-09-13  Derek Price  <derek@ximbiot.com>
40848
40849         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
40850         failure.
40851         Reported by Jim Meyering  <jim@meyering.net>.
40852
40853 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
40854
40855         * lib/base64.c: Typo.
40856         (base64_encode): Put b64str in initialized data section.
40857
40858 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
40859
40860         Merge glibc and coreutils changes into gnulib, plus a few
40861         extra fixes.
40862         * lib/md5.c: Use #error rather than a string.
40863         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
40864         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
40865         (__attribute__): Define to empty for non recent-GCC.
40866         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
40867         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
40868         Renamed from their non-__ counterparts, with new macros replacing
40869         them if not _LIBC.  Add __THROW attribute.
40870         (rol): Remove.
40871         (struct md5_ctx): Align buffer if using GCC.
40872         * lib/sha1.h (struct sha1_ctx): Likewise.
40873         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
40874         The old name was backwards.
40875         (NOTSWAP): Remove; not used.
40876         (rol): New macro, moved here from md5.h.
40877         (sha1_process_block): Remove a FIXME that doesn't make sense.
40878
40879 2005-09-12  Derek Price  <derek@ximbiot.com>
40880
40881         Return usable errors from canon-host.
40882         * lib/canon-host.h: New file.
40883         * lib/canon-host.c (canon_host): Wrap...
40884         (canon_host_r): ...this new function, which now relies exclusively on
40885         getaddrinfo.
40886         (ch_strerror): New function.
40887         (last_cherror): New global.
40888         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
40889         interface.
40890         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
40891         void *.
40892         (freeaddrinfo): Free ai->ai_canonname when set.
40893
40894 2005-09-12  Derek Price  <derek@ximbiot.com>
40895
40896         Make canon-host require getaddrinfo.
40897         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
40898         AC_LIBSOURCE canon-host.h.  Call...
40899         (gl_PREREQ_CANON_HOST): ...this new function, which requires
40900         gl_GETADDRINFO.
40901         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
40902
40903 2005-09-12  Derek Price  <derek@ximbiot.com>
40904
40905         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
40906         LGPL.
40907         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
40908
40909 2005-09-12  Derek Price  <derek@ximbiot.com>
40910
40911         * lib/gai_strerror.c: Include config.h when available.  Include
40912         getaddrinfo.h before other headers to test interface.
40913         Reported by Larry Jones <lawrence.jones@ugs.com>.
40914
40915 2005-09-12  Derek Price  <derek@ximbiot.com>
40916             Paul Eggert  <eggert@cs.ucla.edu>
40917
40918         * modules/glob (Files): Add glob-libc.h.
40919
40920 2005-09-12  Derek Price  <derek@ximbiot.com>
40921             Paul Eggert  <eggert@cs.ucla.edu>
40922
40923         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
40924         glob_.h, glob-libc.h.
40925         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
40926
40927 2005-09-12  Derek Price  <derek@ximbiot.com>
40928             Paul Eggert  <eggert@cs.ucla.edu>
40929
40930         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
40931         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
40932         protecting things that should be done only in gnulib contexts.
40933         * lib/glob_.h: New file, containing only the glob things needed for
40934         gnulib.
40935         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
40936         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
40937         (glob, globfree, glob_pattern_p): Now defined simply in terms of
40938         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
40939         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
40940         and to respect the namespace rules better.
40941
40942 2005-09-08  Simon Josefsson  <jas@extundo.com>
40943
40944         * modules/socklen: New file.
40945
40946 2005-09-08  Simon Josefsson  <jas@extundo.com>
40947
40948         * m4/socklen.m4: New file.
40949
40950 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
40951
40952         * modules/utimens (Files): Add m4/utimbuf.m4, since
40953         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
40954         Reported by Sergey Poznyakoff.
40955
40956 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
40957
40958         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
40959         definitions, since that's the preferred style in glibc.
40960         Fix a minor spacing issue, and update copyright notice to match
40961         glibc's.
40962
40963 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
40964
40965         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
40966
40967 2005-09-06  Simon Josefsson  <jas@extundo.com>
40968
40969         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
40970         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
40971
40972 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
40973
40974         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
40975         warning.
40976
40977 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
40978
40979         * config/srclist.txt: Add glibc bug 1302.
40980
40981 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
40982
40983         Change bitset word type from unsigned int to unsigned long int,
40984         as this has better performance on typical 64-bit hosts.
40985         Port bitset code to hosts with unusual word sizes.
40986         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
40987         (build_collating_symbol):
40988         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
40989         argument is a bitset.  This is merely a style issue, but it makes
40990         it clearer that an entire array is expected.
40991         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
40992         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
40993         Port to the case where bitset_word is not the same as unsigned int.
40994         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
40995         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
40996         Likewise.
40997         * lib/regexec.c (check_dst_limits_calc_pos_1,
40998         check_subexp_matching_top):
40999         (build_trtable, group_nodes_into_DFAstates):
41000         Likewise.
41001         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
41002         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
41003         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
41004         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
41005         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
41006         * lib/regcomp.c (optimize_subexps, lower_subexp):
41007         Work even if bitset_word has holes in its bitwise representation.
41008         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
41009         * lib/regexec.c (check_dst_limits_calc_pos_1,
41010         check_subexp_matching_top):
41011         Likewise.
41012         * lib/regex_internal.c (re_string_reconstruct):
41013         Don't assume UCHAR_MAX == 255.
41014         * lib/regex_internal.h (bitset_set_all): Likewise.
41015         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
41016         All uses changed.
41017         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
41018         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
41019         All uses changed.
41020         (BITSET_WORD_MAX): New macro.
41021         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
41022         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
41023         (bitset_empty, bitset_copy):
41024         Prefer sizeof (bitset) to multiplying it out ourselves.
41025         (bitset_not_merge): Remove; unused.
41026         (bitset_contain): Return bool, not unsigned int with one bit on.
41027         All callers changed.
41028         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
41029         alignment than re_node_set; do this by defining a new internal
41030         type struct dests_alloc and using it to allocate memory.
41031
41032 2005-09-05  Bruno Haible  <bruno@clisp.org>
41033
41034         * gnulib-tool (func_import): Fix comparison in handling of symbolic
41035         links.
41036
41037 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
41038
41039         * modules/size_max (Makefile.am): Add size_max.h
41040
41041 2005-09-04  Derek Price  <derek@ximbiot.com>
41042
41043         * gnulib-tool (func_import): Fix reversed $symbolic logic.
41044
41045 2005-09-03  Simon Josefsson  <jas@extundo.com>
41046
41047         * gnulib-tool: Fix typo.
41048
41049 2005-09-03  Simon Josefsson  <jas@extundo.com>
41050
41051         * config/srclist.txt: Add glibc bug 1293.
41052
41053 2005-09-03  Derek Price  <derek@ximbiot.com>
41054
41055         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
41056         From Larry Jones <lawrence.jones@ugs.com>.
41057
41058 2005-09-02  Simon Josefsson  <jas@extundo.com>
41059
41060         * modules/socklen: New file.
41061
41062 2005-09-02  Simon Josefsson  <jas@extundo.com>
41063
41064         * modules/havelib: New module.
41065
41066         * modules/gettext, modules/iconv, modules/lock, modules/readline:
41067         Use havelib.
41068
41069 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
41070
41071         Check for arithmetic overflow when calculating sizes, to prevent
41072         some buffer-overflow issues.  These patches are conservative, in the
41073         sense that when I couldn't determine whether an overflow was possible,
41074         I inserted a run-time check.
41075         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
41076         macros.
41077         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
41078         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
41079         (re_xnrealloc, re_x2nrealloc): New inline functions.
41080         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
41081         parse_bracket_exp):
41082         (build_equiv_class, build_charclass): Check for arithmetic overflow
41083         in size expression calculations.
41084         * lib/regex_internal.c (re_string_realloc_buffers):
41085         (build_wcs_upper_buffer, re_node_set_add_intersect):
41086         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
41087         (re_dfa_add_node, register_state): Likewise.
41088         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
41089         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
41090         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
41091         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
41092
41093 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
41094
41095         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
41096         m4/ulonglong.m4.  Problem reported by Martin Lambers.
41097
41098 2005-09-02  Bruno Haible  <bruno@clisp.org>
41099
41100         Support for lib vs. lib64 distinction on biarch platforms.
41101         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
41102         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
41103         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
41104
41105 2005-09-02  Bruno Haible  <bruno@clisp.org>
41106
41107         * gnulib-tool (import): In the other first-use case, provide defaults
41108         as well.
41109
41110 2005-09-02  Bruno Haible  <bruno@clisp.org>
41111
41112         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
41113         patches not yet found in the latest gettext release.
41114
41115 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41116
41117         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
41118         to avoid a collision with bits/local_lim.h in glibc.
41119         All uses changed.  Problem reported by Dmitry V. Levin in
41120         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
41121
41122         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
41123         bugs in int versus size_t comparisons.
41124         (re_string_context_at): Fix bug where the code assumed that
41125         Idx is signed.
41126
41127         Use bool where appropriate.
41128         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
41129         All callers changed.
41130         (calc_eclosure_iter): Likewise, for ROOT arg.
41131         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
41132         (build_charclass_op): Likewise, for NON_MATCH arg.
41133         * lib/regex_internal.c (re_string_allocate, re_string_construct):
41134         (re_string_construct_common): Likewise, for ICASE arg.
41135         * lib/regexec.c (re_search_2_stub, re_search_stub):
41136         Likewise, for RET_LEN arg.
41137         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
41138         (set_regs): Likewise, for FL_BACKTRACK arg.
41139         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
41140         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
41141         (calc_eclosure_iter, parse_bracket_exp):
41142         Use bool for internal variables that are booleans.
41143         * lib/regexec.c (re_search_internal, check_matching,
41144         proceed_next_node):
41145         (set_regs, build_sifted_states, sift_states_bkref):
41146         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
41147         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
41148         (find_collation_sequence_value):
41149         Likewise.
41150         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
41151         (re_node_set_compare):
41152         Return bool, not int. All callers changed.
41153         * lib/regexec.c (check_halt_node_context, check_dst_limits):
41154         (build_trtable, check_node_accept): Likewise.
41155         * lib/regex_internal.h: Include stdbool.h.
41156
41157         Fix bugs uncovered when converting to bool.
41158         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
41159         failure instead of charging ahead blindly.
41160         * lib/regex_internal.c (register_state): Likewise.
41161         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
41162         for freeing internal storage.
41163         (group_nodes_into_DFA_states): Use unsigned int, not int, for
41164         bitset pieces used as boolean, to avoid undefined behavior
41165         on hosts that do int overflow checking.
41166
41167 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41168
41169         * config/srclist.txt: Add glibc bugs 1285-1287.
41170
41171 2005-09-01  Jim Meyering  <jim@meyering.net>
41172
41173         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
41174         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
41175         Require gl_STAT_MACROS, too.
41176
41177 2005-09-01  Bruno Haible  <bruno@clisp.org>
41178
41179         * gnulib-tool (import): In the first-use case, provide defaults.
41180
41181 2005-09-01  Bruno Haible  <bruno@clisp.org>
41182
41183         * gnulib-tool (func_import): Remove the .tmp files.
41184
41185 2005-09-01  Bruno Haible  <bruno@clisp.org>
41186
41187         * gnulib-tool (func_import): Fix handling of symbolic links.
41188
41189 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41190
41191         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
41192         old glibc regex code mishandles strings longer than 2**31 bytes.
41193         This patch fixes this when the regex code is used in gnulib
41194         (i.e., outside glibc).
41195
41196         This patch should not affect the use of the regex code inside
41197         glibc.  No doubt this problem also needs to be handled for glibc
41198         as well, but the result will be an incompatible change to the
41199         glibc ABI, and the old ABI will have to be supported too.  That
41200         can be the the subject for another patch.
41201
41202         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
41203         governing whether the rest of this patch is active.  By default,
41204         the macro is disabled and the patch has no effect.
41205         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
41206         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
41207         (struct re_pattern_buffer, re_search, re_search_2, re_match):
41208         (re_match_2, re_set_registers): Use the new types.
41209         * lib/regex_internal.h (Idx, re_hashval_t): New types.
41210         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
41211         New macros.
41212         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
41213         (re_string_context_at, bin_tree_t, re_dfastate_t):
41214         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
41215         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
41216         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
41217         (re_string_char_size_at, re_string_wchar_at):
41218         (re_string_elem_size_at):
41219         Use the new types and macros to port to 64-bit hosts.
41220         Use unsigned types for internal values, so that the code
41221         mostly works even for arrays larger than SSIZE_MAX.
41222         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
41223         (search_duplicated_node, calc_eclosure_iter, fetch_number):
41224         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
41225         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
41226         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
41227         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
41228         (calc_inveclosure, parse_dup_op, build_range_exp):
41229         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
41230         (fetch_number, create_token_tree, mark_opt_subexp):
41231         Likewise.
41232         * lib/regex_internal.c (re_string_construct_common,
41233         create_ci_newstate):
41234         (create_cd_newstate, re_string_allocate, re_string_construct):
41235         (re_string_realloc_buffers, build_wcs_upper_buffer):
41236         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
41237         (re_string_reconstruct, re_string_peek_byte_case):
41238         (re_string_fetch_byte_case, re_string_context_at):
41239         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
41240         (re_node_set_init_copy, re_node_set_add_intersect):
41241         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
41242         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
41243         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
41244         (re_acquire_state, re_acquire_state_context, register_state):
41245         Likewise.
41246         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
41247         search_cur_bkref_entry):
41248         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
41249         (re_search_internal, re_search_2_stub, re_search_stub)
41250         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
41251         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
41252         (update_cur_sifted_state, check_dst_limits):
41253         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
41254         (check_subexp_limits, sift_states_bkref, merge_state_array):
41255         (check_subexp_matching_top, get_subexp, get_subexp_sub):
41256         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
41257         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
41258         (expand_bkref_cache, check_node_accept_bytes):
41259         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
41260         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
41261         (acquire_init_state_context, check_halt_node_context):
41262         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
41263         (sift_states_backward, clean_state_log_if_needed):
41264         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
41265         (find_recover_state, transit_state_sb, transit_state_mb):
41266         (transit_state_bkref, build_trtable, match_ctx_clean):
41267         Likewise.
41268         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
41269         to work around an assumption that REG_MISSING is negative.
41270
41271         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
41272         (seek_collating_symbol_entry) [defined _LIBC]:
41273         (lookup_collation_sequence_value) [defined _LIBC]:
41274         (build_range_exp, build_collating_symbol) [defined _LIBC]:
41275         Use prototypes rather than old-style function definitions.
41276         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
41277         (transit_state_sb) [0]:
41278         (find_collation_sequence_value) [defined _LIBC]: Likewise.
41279
41280         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
41281         rm_eo.
41282
41283         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
41284         (optimize_subexps, lower_subexp):
41285         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
41286         since the signed shift might overflow.  Use 1u<<31 instead.
41287         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
41288         Likewise.
41289         * lib/regexec.c (check_dst_limits_calc_pos_1,
41290         check_subexp_matching_top): Likewise.
41291
41292         * lib/regcomp.c (optimize_subexps, lower_subexp):
41293         Use CHAR_BIT rather than 8, for clarity.
41294         * lib/regexec.c (check_dst_limits_calc_pos_1):
41295         (check_subexp_matching_top): Likewise.
41296         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
41297         have to worry about portability issues when shifting it left.
41298         Remove no-longer-needed test for table_size > 0.
41299         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
41300         in a word, as the resulting behavior is undefined.
41301         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
41302         in one case, a <= should have been an <, and in another case the
41303         whole test was missing.
41304         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
41305         the standard name CHAR_BIT.
41306         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
41307         this is not true on one's complement and signed-magnitude hosts.
41308
41309         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
41310         next_last_offset.
41311         (struct re_dfa_t): Remove unused member states_alloc.
41312         * lib/regcomp.c (init_dfa): Don't initialize unused members.
41313
41314 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41315
41316         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
41317         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
41318         and large-file glibc and in 32-bit large-file Solaris.
41319
41320 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41321
41322         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
41323         lengths fit in regoff_t; this isn't true if regoff_t is the same
41324         width as size_t.
41325         * lib/regex.c (re_search_internal): 5th arg is LAST_START
41326         (= START + RANGE) instead of RANGE.  This avoids overflow
41327         problems when regoff_t is the same width as size_t.
41328         All callers changed.
41329         (re_search_2_stub): Check for overflow when adding the
41330         sizes of the two strings.
41331         (re_search_stub): Check for overflow when adding START
41332         to RANGE; if it occurs, substitute the extreme value.
41333
41334 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41335
41336         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
41337
41338 2005-08-31  Jim Meyering  <jim@meyering.net>
41339
41340         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
41341         a pointer-to-const.
41342         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
41343         (register_state): Likewise.
41344         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
41345         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
41346         (group_nodes_into_DFAstates): Likewise.
41347
41348 2005-08-31  Jim Meyering  <jim@meyering.net>
41349
41350         * check-module: Add a FIXME comment.
41351
41352 2005-08-31  Eric Blake  <ebb9@byu.net>
41353
41354         * modules/unistd-safer (Files): Add unistd--.h.
41355         * modules/stdio-safer (Files): Add stdio--.h.
41356
41357 2005-08-31  Derek Price  <derek@ximbiot.com>
41358
41359         * lib/getdelim.c (getdelim): Return EOF on EOF.
41360         Reported by Larry Jones <lawrence.jones@ugs.com>.
41361
41362 2005-08-31  Bruno Haible  <bruno@clisp.org>
41363
41364         Avoid unnecessary diffs in the generated lib/Makefile.am.
41365         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
41366         the generated files.
41367         (func_import): Don't set cmd.
41368
41369 2005-08-31  Bruno Haible  <bruno@clisp.org>
41370
41371         * lib/strstr.c: Include <stddef.h>, for NULL.
41372         * lib/strcasestr.c: Likewise.
41373         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41374
41375 2005-08-31  Bruno Haible  <bruno@clisp.org>
41376
41377         * gnulib-tool: New option --macro-prefix.
41378         (func_import): Use macro_prefix.
41379         (import): Handle option --macro-prefix.
41380
41381 2005-08-31  Bruno Haible  <bruno@clisp.org>
41382
41383         * gnulib-tool (import): Rename most ac_* variables to cached_*.
41384         Also use new variables cached_lgpl, cached_libtool.
41385
41386 2005-08-31  Bruno Haible  <bruno@clisp.org>
41387
41388         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
41389         always instantiating them.
41390
41391 2005-08-31  Bruno Haible  <bruno@clisp.org>
41392
41393         * gnulib-tool (func_import): Read the previous cached settings
41394         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
41395         earlier added by gnulib but are now dropped. Warn when a gnulib file
41396         overwrites a non-gnulib file.
41397
41398 2005-08-31  Bruno Haible  <bruno@clisp.org>
41399
41400         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
41401         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
41402         projects that don't keep autogenerated files in CVS. Put into
41403         actioncmd only the specified modules, not the transitive closure.
41404
41405 2005-08-31  Bruno Haible  <bruno@clisp.org>
41406
41407         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
41408         Create directories that shall be filled.
41409         (import): Don't look for gl_* macros in configure.ac. Recurse across
41410         all directories containing a gnulib-cache.m4 files, if meaningful.
41411
41412 2005-08-31  Bruno Haible  <bruno@clisp.org>
41413
41414         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
41415         (import): Set seen_libtool when we see gl_LIBTOOL.
41416
41417 2005-08-31  Bruno Haible  <bruno@clisp.org>
41418
41419         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
41420         declaration macro definitions from generated gnulib.m4.
41421
41422 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
41423
41424         * lib/iconvme.h: Add prototype for iconv_alloc.
41425
41426 2005-08-29  Simon Josefsson  <jas@extundo.com>
41427
41428         * lib/iconvme.c: Fix errno.
41429
41430 2005-08-29  Bruno Haible  <bruno@clisp.org>
41431
41432         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
41433         that it works when the directory contains spaces.
41434
41435 2005-08-29  Bruno Haible  <bruno@clisp.org>
41436
41437         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
41438
41439 2005-08-29  Bruno Haible  <bruno@clisp.org>
41440
41441         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
41442         Emit more advice.
41443
41444 2005-08-29  Bruno Haible  <bruno@clisp.org>
41445         and Stepan Kasal  <kasal@ucw.cz>
41446
41447         * check-module: If more parameters are given, check each of them
41448         separately; add more exceptions, as noted by Jim Meyering.
41449         (check_module): New procedure.
41450         (%exempt_header): Now contains all exceptions.
41451
41452 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
41453
41454         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
41455
41456 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
41457
41458         * lib/iconvme.c: Split iconv_string into iconv_alloc.
41459
41460 2005-08-28  Bruno Haible  <bruno@clisp.org>
41461
41462         * m4/gnulib-tool.m4: New file.
41463
41464 2005-08-27  Jim Meyering  <jim@meyering.net>
41465
41466         * modules/unistd-safer (Files): Add pipe-safer.c.
41467         * modules/fcntl-safer (Files): Add creat-safer.c.
41468
41469 2005-08-27  Jim Meyering  <jim@meyering.net>
41470
41471         * m4/stdlib-safer.m4: New file.  From coreutils.
41472         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
41473         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
41474         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
41475         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
41476         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
41477
41478 2005-08-27  Jim Meyering  <jim@meyering.net>
41479
41480         * lib/fopen-safer.c: Merge minor changes from coreutils.
41481         * lib/dup-safer.c: Likewise.
41482         * lib/fd-safer.c: Likewise.
41483
41484         Merge from coreutils.
41485         * lib/stdio--.h: New file.
41486         * lib/stdlib--.h: New file.
41487         * lib/mkstemp-safer.c: New file.
41488
41489         GNU tar needs these.
41490         * lib/pipe-safer.c: New file.
41491         * lib/creat-safer.c: New file.
41492         * lib/fcntl--.h (creat): Define to creat_safer.
41493         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
41494         * lib/unistd--.h (pipe): Define to pipe_safer.
41495         * lib/unistd-safer.h: Declare pipe_safer.
41496
41497 2005-08-26  Simon Josefsson  <jas@extundo.com>
41498
41499         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
41500         Haible <bruno@clisp.org>.
41501
41502 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
41503
41504         * lib/regex_internal.h: Remove all references to
41505         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
41506         or better.
41507         (bitset_not, bitset_merge, bitset_not_merge):
41508         (bitset_mask, re_string_allocate, re_string_construct):
41509         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
41510         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
41511         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
41512         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
41513         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
41514         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
41515         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
41516         (re_acquire_state_context):
41517         Remove unnecessary forward decls.
41518         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
41519         Put __attribute at function definition,
41520         now that the function decl has been removed.
41521         * lib/regex_internal.c (re_string_peek_byte_case):
41522         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
41523         Likewise.
41524
41525 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
41526
41527         * m4/regex.m4: Add AC_PREREQ(2.50).
41528         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
41529
41530 2005-08-25  Simon Josefsson  <jas@extundo.com>
41531
41532         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
41533         __fsetlocking.
41534
41535 2005-08-25  Simon Josefsson  <jas@extundo.com>
41536
41537         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
41538         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
41539         GLIBC specific code.
41540
41541 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
41542
41543         Make regex safe for g++.  This fixes one real bug (an "err"
41544         that should have been "*err").  g++ problem reported by
41545         Sam Steingold.
41546         * lib/regex_internal.h (re_calloc): New macro, consistent with
41547         re_malloc etc.  All callers of calloc changed to use re_calloc.
41548         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
41549         not int.  All callers changed.
41550         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
41551         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
41552         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
41553         (find_recover_state): Change "err" to "*err"; this fixes what
41554         appears to be a real bug.
41555         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
41556         versus int.
41557
41558 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
41559
41560         * modules/regex (Depends-on): Add malloc, since the code
41561         assumes that !malloc(0) means failure.
41562
41563 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
41564
41565         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
41566
41567         alloca modernization/simplification for regex.
41568         * lib/regex.c: Remove portability cruft for alloca.  This no longer
41569         needs to be at the start of the file, and can be moved into
41570         regex_internal.h and simplified.
41571         * lib/regex_internal.h: Include <alloca.h>.
41572         (__libc_use_alloca) [!defined _LIBC]: New macro.
41573         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
41574         now works outside glibc.
41575
41576 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
41577
41578         * config/srclist.txt: Add glibc bugs 1241, 1245.
41579
41580 2005-08-25  Jim Meyering  <jim@meyering.net>
41581
41582         * lib/open-safer.c: Include <config.h>.
41583         Otherwise, we'd lose LARGEFILE support in any file using
41584         e.g. "fcntl--.h"
41585
41586 2005-08-25  Bruno Haible  <bruno@clisp.org>
41587
41588         * m4/minmax.m4: Require autoconf 2.52.
41589         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
41590         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
41591         alternatives of translit over the alphabet.
41592         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
41593
41594 2005-08-24  Simon Josefsson  <jas@extundo.com>
41595
41596         * tests/test-getpass.c: New file.
41597
41598 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
41599
41600         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
41601         for GNU regex features.
41602
41603 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
41604
41605         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
41606         * lib/regex.h (regerror): Likewise.
41607
41608         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
41609         requires this.  (The code never needed it.)
41610
41611         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
41612         All uses of recently-renamed identifiers changed to use the new,
41613         POSIX-compliant names.  The code will build and run just fine
41614         without these changes, but it's better to eat our own dog food
41615         and use the standard-conforming names.
41616
41617         * lib/regex.h: Fix a multitude of POSIX name space violations.
41618         These changes have an effect only for programs that define
41619         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
41620         do not change anything for programs compiled in the normal way.
41621         Also, there is no effect on the ABI.
41622
41623         (_REGEX_SOURCE): New macro.
41624         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
41625         defined and _GNU_SOURCE is not; this fixes a name space violation.
41626
41627         Rename the following macros to obey POSIX requirements.
41628         The old names are still visible as macros if _REGEX_SOURCE is defined.
41629         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
41630         RE_BACKSLASH_ESCAPE_IN_LISTS.
41631         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
41632         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
41633         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
41634         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
41635         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
41636         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
41637         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
41638         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
41639         (REG_INTERVALS): renamed from RE_INTERVALS.
41640         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
41641         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
41642         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
41643         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
41644         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
41645         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
41646         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
41647         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
41648         RE_UNMATCHED_RIGHT_PAREN_ORD.
41649         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
41650         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
41651         (REG_DEBUG): renamed from RE_DEBUG.
41652         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
41653         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
41654         unusual, since we can't clash with the POSIX REG_ICASE.
41655         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
41656         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
41657         (REG_NO_SUB): renamed from RE_NO_SUB.
41658         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
41659         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
41660         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
41661         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
41662         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
41663         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
41664         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
41665         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
41666         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
41667         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
41668         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
41669         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
41670         RE_SYNTAX_POSIX_MINIMAL_BASIC.
41671         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
41672         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
41673         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
41674         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
41675         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
41676         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
41677         (REG_FIXED): Renamed from REGS_FIXED.
41678         (REG_NREGS): Renamed from RE_NREGS.
41679
41680         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
41681         of other REG_* macros, since POSIX says the user is allowed to
41682         #undef these macros selectively.
41683
41684         (reg_errcode_t): Update comment stating what other tables need
41685         to be consistent.
41686
41687         Rename the following enum values to obey POSIX requirements.
41688         The old names are still visible as macros.
41689         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
41690         is not defined, since GNU is supposed to be a superset of POSIX as
41691         much as possible, and since we want reg_errcode_t to be a signed
41692         type for implementation consistency.
41693         (_REG_NOERROR): Renamed from REG_NOERROR.
41694         (_REG_NOMATCH): Renamed from REG_NOMATCH.
41695         (_REG_BADPAT): Renamed from REG_BADPAT.
41696         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
41697         (_REG_ECTYPE): Renamed from REG_ECTYPE.
41698         (_REG_EESCAPE): Renamed from REG_EESCAPE.
41699         (_REG_ESUBREG): Renamed from REG_ESUBREG.
41700         (_REG_EBRACK): Renamed from REG_EBRACK.
41701         (_REG_EPAREN): Renamed from REG_EPAREN.
41702         (_REG_EBRACE): Renamed from REG_EBRACE.
41703         (_REG_BADBR): Renamed from REG_BADBR.
41704         (_REG_ERANGE): Renamed from REG_ERANGE.
41705         (_REG_ESPACE): Renamed from REG_ESPACE.
41706         (_REG_BADRPT): Renamed from REG_BADRPT.
41707         (_REG_EEND): Renamed from REG_EEND.
41708         (_REG_ESIZE): Renamed from REG_ESIZE.
41709         (_REG_ERPAREN): Renamed from REG_ERPAREN.
41710         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
41711         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
41712         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
41713         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
41714
41715         (_REG_RE_NAME, _REG_RM_NAME): New macros.
41716         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
41717         changed.  But support the old name if the new one is not defined
41718         and if _REGEX_SOURCE.
41719
41720         Change the following member names in struct re_pattern_buffer.
41721         The old names are still supported if !_REGEX_SOURCE.
41722         The new names are always supported, regardless of _REGEX_SOURCE.
41723         (re_buffer): Renamed from buffer.
41724         (re_allocated): Renamed from allocated.
41725         (re_used): Renamed from used.
41726         (re_syntax): Renamed from syntax.
41727         (re_fastmap): Renamed from fastmap.
41728         (re_translate): Renamed from translate.
41729         (re_can_be_null): Renamed from can_be_null.
41730         (re_regs_allocated): Renamed from regs_allocated.
41731         (re_fastmap_accurate): Renamed from fastmap_accurate.
41732         (re_no_sub): Renamed from no_sub.
41733         (re_not_bol): Renamed from not_bol.
41734         (re_not_eol): Renamed from not_eol.
41735         (re_newline_anchor): Renamed from newline_anchor.
41736
41737         Change the following member names in struct re_registers.
41738         The old names are still supported if !_REGEX_SOURCE.
41739         The new names are always supported, regardless of _REGEX_SOURCE.
41740         (rm_num_regs): Renamed from num_regs.
41741         (rm_start): Renamed from start.
41742         (rm_end): Renamed from end.
41743
41744         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
41745         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
41746         Prepend __ to parameter names.
41747
41748         Undo yesterday's changes.
41749
41750 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
41751
41752         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
41753         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
41754         lib/regex.c.
41755
41756 2005-08-24  Jim Meyering  <jim@meyering.net>
41757
41758         Sync from coreutils.
41759         * m4/fcntl-safer.m4: New file.
41760
41761         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
41762         and object files for this module.
41763
41764 2005-08-24  Jim Meyering  <jim@meyering.net>
41765
41766         Sync from coreutils.
41767         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
41768
41769 2005-08-24  Jim Meyering  <jim@meyering.net>
41770
41771         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
41772         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
41773
41774 2005-08-24  Jim Meyering  <jim@meyering.net>
41775
41776         * modules/fcntl-safer: New module.
41777         * modules/fts (Depends-on): Add fcntl-safer.
41778         * MODULES.html.sh (File descriptor based Input/Output):
41779         Add fcntl-safer.
41780
41781 2005-08-24  Bruno Haible  <bruno@clisp.org>
41782
41783         Support for unit test modules.
41784         * modules/README: Mention tests modules.
41785         * modules/TEMPLATE-TESTS: New file.
41786         * gnulib-tool: New options --extract-tests-module, --with-tests and
41787         --tests-base (unused for the moment).
41788         (testsbase, inctests): New variables.
41789         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
41790         (func_verify_module): Exclude TEMPLATE-TESTS.
41791         (func_verify_nontests_module, func_verify_tests_module): New functions.
41792         (func_get_dependencies): Add implicit dependency for tests modules.
41793         (func_get_tests_module): New function.
41794         (func_modules_transitive_closure): When --with-tests was specified,
41795         include the unit tests as well, unless explicitly avoided.
41796         (func_emit_lib_Makefile_am): Ignore the tests modules here.
41797         (func_emit_tests_Makefile_am): New function.
41798         (func_create_testdir): When --with-tests was specified, emit a
41799         tests/ directory.
41800         * MODULES.html.sh (Future developments): Update.
41801
41802 2005-08-24  Bruno Haible  <bruno@clisp.org>
41803
41804         * modules/tls-tests: New file.
41805         * tests/test-tls.c: New file, from GNU gettext.
41806
41807 2005-08-24  Bruno Haible  <bruno@clisp.org>
41808
41809         * modules/lock-tests: New file.
41810         * tests/test-lock.c: New file, from GNU gettext.
41811
41812 2005-08-24  Bruno Haible  <bruno@clisp.org>
41813
41814         * lib/lock.h: Add multiple inclusion guard.
41815         * lib/tls.h: Add multiple inclusion guard.
41816
41817 2005-08-24  Bruno Haible  <bruno@clisp.org>
41818
41819         * gnulib-tool: Add support for the --aux-dir option to
41820         --create-testdir, --create-megatestdir, --test, --megatest.
41821         (func_create_testdir, func_create_megatestdir): Optionally emit a
41822         AC_CONFIG_AUX_DIR directive.
41823         (create-testdir, create-megatestdir, test, megatest): Provide a
41824         default value for $auxdir.
41825
41826 2005-08-24  Bruno Haible  <bruno@clisp.org>
41827
41828         * gnulib-tool (import): Use compound statement instead of subshell
41829         where possible.
41830
41831 2005-08-24  Bruno Haible  <bruno@clisp.org>
41832
41833         * gnulib-tool (import): Change --aux-dir default to "build-aux".
41834
41835 2005-08-24  Bruno Haible  <bruno@clisp.org>
41836
41837         * gnulib-tool (func_version): Update.
41838
41839 2005-08-24  Bruno Haible  <bruno@clisp.org>
41840
41841         * gnulib-tool (func_import, func_create_testdir,
41842         func_create_megatestdir): Quote all autoconf macro arguments.
41843
41844 2005-08-24  Bruno Haible  <bruno@clisp.org>
41845
41846         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
41847         option --force, because --force causes the aclocal.m4 of each
41848         subdirectory to be newer than the corresponding config.h.in.
41849
41850 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
41851
41852         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
41853         All contents moved to gl_REGEX.
41854         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
41855         assume that it does.
41856
41857 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
41858
41859         * lib/regex.h (REG_NOSYS)
41860         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
41861         Define, since POSIX requires it as of 2001.
41862         (_REG_ENOSYS)
41863         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
41864         New private symbol, used to keep the enum signed in all cases.
41865         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
41866         Youngman in
41867         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
41868
41869         * lib/regex_internal.c (re_string_skip_chars, register_state):
41870         (calc_state_hash):
41871         Remove forward decls; no longer needed now that we use prototypes.
41872         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
41873         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
41874         (clean_state_log_if_needed): Likewise.
41875
41876 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
41877
41878         * config/srclist.txt: Add glibc bugs 1231-1233.
41879
41880 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
41881
41882         Fix problems reported by Sam Steingold in
41883         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
41884         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
41885         assumed that reg_errcode_t is a signed type, which is not
41886         necessarily true if _XOPEN_SOURCE is not defined.
41887         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
41888         since some compilers warn about it otherwise.
41889
41890 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
41891
41892         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
41893         (init_word_char, create_initial_state, duplicate_node_closure):
41894         (fetch_token, peek_token_bracket, build_range_exp):
41895         (build_collating_symbol): Remove forward decls; no longer needed
41896         now that we use prototypes.
41897
41898         * lib/regcomp.c:
41899         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
41900         (re_compile_fastmap_iter, regcomp, regerror, regfree):
41901         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
41902         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
41903         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
41904         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
41905         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
41906         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
41907         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
41908         (build_range_exp, build_collating_symbol, parse_bracket_exp):
41909         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
41910         (build_charclass, build_charclass_op, fetch_number, create_tree):
41911         (create_token_tree, mark_opt_subexp, duplicate_tree):
41912         Use prototypes rather than old-style definitions.
41913
41914         * lib/regex_internal.c:
41915         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
41916         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
41917         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
41918         (re_string_reconstruct, re_string_peek_byte_case):
41919         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
41920         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
41921         (re_node_set_init_copy, re_node_set_add_intersect):
41922         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
41923         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
41924         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
41925         (re_acquire_state, re_acquire_state_context, register_state):
41926         (create_ci_newstate, create_cd_newstate, free_state):
41927         Likewise.
41928         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
41929         re_search_2):
41930         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
41931         (re_search_internal, prune_impossible_nodes):
41932         (acquire_init_state_context, check_matching, static):
41933         (check_halt_node_context, check_halt_state_context, proceed_next_node):
41934         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
41935         (update_regs, sift_states_backward, build_sifted_states):
41936         (clean_state_log_if_needed, merge_state_array):
41937         (update_cur_sifted_state, add_epsilon_src_nodes):
41938         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
41939         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
41940         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
41941         (find_recover_state, check_subexp_matching_top, transit_state_mb):
41942         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
41943         (check_arrival, check_arrival_add_next_nodes):
41944         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
41945         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
41946         (check_node_accept_bytes, check_node_accept, extend_buffers):
41947         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
41948         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
41949         (sift_ctx_init):
41950         Likewise.
41951
41952         * lib/regex_internal.h:
41953         (re_string_allocate, re_string_construct, re_string_reconstruct):
41954         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
41955         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
41956         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
41957         (re_string_context_at, re_string_peek_byte_case):
41958         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
41959         is defined, since we now use prototypes always.
41960
41961         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
41962         C89 or better.  All uses removed.
41963
41964 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
41965
41966         * config/srclist.txt: Add glibc bugs 1220-1227.
41967
41968 2005-08-20  Jim Meyering  <jim@meyering.net>
41969
41970         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
41971         of unused local, dfa.
41972
41973 2005-08-20  Bruno Haible  <bruno@clisp.org>
41974
41975         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
41976
41977 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
41978
41979         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
41980         (re_node_set_insert_last, re_dfa_add_node):
41981         Rename local variables to avoid GCC shadowing warnings.
41982
41983 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
41984
41985         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
41986         [defined lint]: Suppress bogus uninitialized-variable warnings.
41987
41988         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
41989         and let the caller return REG_ESPACE if out of space.  This
41990         removes an uninitialied-variable warning with GCC 4.0.1, and also
41991         avoids taking the address of a local variable.  All callers
41992         changed.
41993
41994 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
41995
41996         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
41997         $LIBCSRC/posix/regexec.c.
41998         Add glibc bug 1217 for regcomp.c.
41999
42000 2005-08-19  Jim Meyering  <jim@meyering.net>
42001
42002         * lib/regexec.c (proceed_next_node): Redo local variables to
42003         avoid GCC shadowing warnings.
42004
42005 2005-08-18  Bruno Haible  <bruno@clisp.org>
42006
42007         * lib/strstr.c (strstr): Fix return value in multibyte case.
42008         * lib/strcasestr.c (strcasestr): Likewise.
42009
42010 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
42011
42012         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
42013
42014 2005-08-17  Jim Meyering  <jim@meyering.net>
42015
42016         Make the %s format (seconds since the epoch) work for a negative
42017         number and when used with a zero-padded field width, e.g. %015s.
42018
42019         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
42020         label so that it precedes the code to set `digits'.  Otherwise,
42021         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
42022         print `00-22'.  Now, it prints `-0022', as it should.
42023
42024 2005-08-17  Bruno Haible  <bruno@clisp.org>
42025
42026         * modules/strstr (Files): Add m4/mbrtowc.m4.
42027         (Depends-on): Add mbuiter.
42028
42029 2005-08-17  Bruno Haible  <bruno@clisp.org>
42030
42031         * modules/strcasestr: New file.
42032         * MODULES.html.sh (String handling, based on ANSI C 89): Add
42033         strcasestr.
42034
42035 2005-08-17  Bruno Haible  <bruno@clisp.org>
42036
42037         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
42038
42039 2005-08-17  Bruno Haible  <bruno@clisp.org>
42040
42041         * modules/mbuiter: New file.
42042         * MODULES.html.sh (Extended multibyte and wide character utilities):
42043         Add mbuiter.
42044
42045 2005-08-17  Bruno Haible  <bruno@clisp.org>
42046
42047         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
42048         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
42049
42050 2005-08-17  Bruno Haible  <bruno@clisp.org>
42051
42052         * m4/strcasestr.m4: New file.
42053
42054 2005-08-17  Bruno Haible  <bruno@clisp.org>
42055
42056         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
42057         * lib/strstr.c: Completely rewritten, with multibyte locale support.
42058
42059 2005-08-17  Bruno Haible  <bruno@clisp.org>
42060
42061         * lib/strcasestr.h: New file.
42062         * lib/strcasestr.c: New file.
42063
42064 2005-08-17  Bruno Haible  <bruno@clisp.org>
42065
42066         * lib/strcasecmp.c: Use mbuiter.h.
42067
42068 2005-08-17  Bruno Haible  <bruno@clisp.org>
42069
42070         * lib/mbuiter.h: New file.
42071
42072 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
42073
42074         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
42075         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
42076         and gl_GETOPT are both invoked via different paths (as happens
42077         with GNU tar CVS because it uses both argp and getopt), the former
42078         wins.
42079
42080 2005-08-16  Bruno Haible  <bruno@clisp.org>
42081
42082         * modules/tls: New file.
42083         * MODULES.html.sh (Multithreading): Add tls.
42084
42085 2005-08-16  Bruno Haible  <bruno@clisp.org>
42086
42087         * modules/strnlen1: New file.
42088         * MODULES.html.sh (String handling): Add strnlen1.
42089
42090 2005-08-16  Bruno Haible  <bruno@clisp.org>
42091
42092         * modules/strcase (Files): Add m4/mbrtowc.m4.
42093         (Depends-on): Add strnlen1, mbchar.
42094
42095 2005-08-16  Bruno Haible  <bruno@clisp.org>
42096
42097         * modules/mbiter: New file.
42098         * MODULES.html.sh (Extended multibyte and wide character utilities):
42099         Add mbiter.
42100
42101 2005-08-16  Bruno Haible  <bruno@clisp.org>
42102
42103         * modules/mbfile: New file.
42104         * MODULES.html.sh (Extended multibyte and wide character utilities):
42105         Add mbfile.
42106
42107 2005-08-16  Bruno Haible  <bruno@clisp.org>
42108
42109         * modules/mbchar: New file.
42110         * MODULES.html.sh (Extended multibyte and wide character utilities):
42111         New section.
42112
42113 2005-08-16  Bruno Haible  <bruno@clisp.org>
42114
42115         * m4/tls.m4: New file, from GNU gettext.
42116
42117 2005-08-16  Bruno Haible  <bruno@clisp.org>
42118
42119         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
42120         always.
42121         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
42122
42123 2005-08-16  Bruno Haible  <bruno@clisp.org>
42124
42125         * m4/mbiter.m4: New file.
42126
42127 2005-08-16  Bruno Haible  <bruno@clisp.org>
42128
42129         * m4/mbfile.m4: New file.
42130
42131 2005-08-16  Bruno Haible  <bruno@clisp.org>
42132
42133         * m4/mbchar.m4: New file.
42134
42135 2005-08-16  Bruno Haible  <bruno@clisp.org>
42136
42137         * lib/tls.h: New file, from GNU gettext.
42138         * lib/tls.c: New file, from GNU gettext.
42139
42140 2005-08-16  Bruno Haible  <bruno@clisp.org>
42141
42142         * lib/strnlen1.h: New file.
42143         * lib/strnlen1.c: New file.
42144
42145 2005-08-16  Bruno Haible  <bruno@clisp.org>
42146
42147         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
42148         (mbi_init): Update.
42149         (mbi_avail, mbi_advance): Let the iteration end before the terminating
42150         NUL byte, not after it.
42151
42152 2005-08-16  Bruno Haible  <bruno@clisp.org>
42153
42154         * lib/strcase.h (strcasecmp): Add note in comments.
42155         * lib/strncasecmp.c: Use code from strcasecmp.c.
42156         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
42157         (strcasecmp): Work correctly in multibyte locales.
42158
42159 2005-08-16  Bruno Haible  <bruno@clisp.org>
42160
42161         * lib/mbiter.h: New file.
42162
42163 2005-08-16  Bruno Haible  <bruno@clisp.org>
42164
42165         * lib/mbfile.h: New file.
42166
42167 2005-08-16  Bruno Haible  <bruno@clisp.org>
42168
42169         * lib/mbchar.h: New file.
42170         * lib/mbchar.c: New file.
42171
42172 2005-08-16  Bruno Haible  <bruno@clisp.org>
42173
42174         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
42175         the valid ones. Makes the comparison operations transitive:
42176         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
42177         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
42178
42179 2005-08-15  Simon Josefsson  <jas@extundo.com>
42180
42181         * modules/ssize_t (License): Change to 'unlimited'.
42182
42183         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
42184
42185 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42186
42187         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
42188         Add comments for each pending glibc patch.
42189
42190 2005-08-15  Bruno Haible  <bruno@clisp.org>
42191
42192         * lib/regex.h (__restrict_arr): Don't define to __restrict if
42193         __cplusplus is defined.
42194
42195 2005-08-14  Jim Meyering  <jim@meyering.net>
42196
42197         Sync from coreutils.
42198
42199         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
42200         Use the hash-table-based cycle-detection code not just when
42201         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
42202         Reported by James Youngman in
42203         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
42204         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
42205         FTS_TIGHT_CYCLE_CHECK.
42206         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
42207         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
42208         once again.
42209         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
42210         * lib/fts.c (fd_safer): Remove decl.
42211         Include fcntl--.h rather than unistd-safer.h
42212         (fts_safe_changedir): Don't call fd_safer; no longer needed
42213         now that we include fcntl--.h.
42214
42215 2005-08-12  Simon Josefsson  <jas@extundo.com>
42216
42217         * modules/getndelim2: Use ssize_t module.
42218         * modules/getnline: Likewise.
42219         * modules/safe-read: Likewise.
42220         * modules/xreadlink: Likewise.
42221
42222         * modules/ssize_t: New file.
42223
42224 2005-08-12  Simon Josefsson  <jas@extundo.com>
42225
42226         * m4/readline.m4: Look for termcap, curses or ncurses if required.
42227
42228 2005-08-12  Simon Josefsson  <jas@extundo.com>
42229
42230         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42231         ssize_t.
42232
42233 2005-08-12  Simon Josefsson  <jas@extundo.com>
42234
42235         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
42236         readline, getdelim and check_version.
42237         (Support for systems lacking ISO C 99: Sizes of integer types):
42238         Add size_max.
42239
42240 2005-08-12  Bruno Haible  <bruno@clisp.org>
42241
42242         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
42243
42244 2005-08-11  Simon Josefsson  <jas@extundo.com>
42245
42246         * modules/readline: New file.
42247
42248         * modules/strnlen (Files): Add strnlen.h.
42249
42250 2005-08-11  Simon Josefsson  <jas@extundo.com>
42251
42252         * m4/readline.m4: New file.
42253
42254 2005-08-11  Simon Josefsson  <jas@extundo.com>
42255
42256         * lib/readline.h, readline.c: New file.
42257
42258 2005-08-11  Simon Josefsson  <jas@extundo.com>
42259
42260         * doc/gnulib.texi (Initial import, Finishing touches): Mention
42261         gl_AVOID.
42262
42263 2005-08-11  Bruno Haible  <bruno@clisp.org>
42264
42265         * lib/strnlen.h (strnlen): Change parameter name to match comment.
42266
42267 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
42268
42269         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
42270
42271 2005-08-10  Simon Josefsson  <jas@extundo.com>
42272
42273         * tests/test-iconvme.c: New file.
42274
42275 2005-08-10  Simon Josefsson  <jas@extundo.com>
42276
42277         * m4/strnlen.m4: New file.
42278
42279         * m4/strndup.m4: Don't check for strnlen declaration, done in
42280         strnlen.m4.
42281
42282 2005-08-10  Simon Josefsson  <jas@extundo.com>
42283
42284         * lib/strndup.c: Use strnlen.h.
42285
42286         * lib/strnlen.h: New file.
42287
42288 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
42289
42290         * README: Typos.
42291
42292 2005-08-02  Simon Josefsson  <jas@extundo.com>
42293
42294         * modules/readline: New file.
42295
42296 2005-08-02  Simon Josefsson  <jas@extundo.com>
42297
42298         * modules/getdelim: New file.
42299
42300         * modules/getline: Rewrite, don't use getndelim2.
42301
42302 2005-08-02  Simon Josefsson  <jas@extundo.com>
42303
42304         * m4/getline.m4: Separate out getdelim stuff into separate module.
42305
42306         * m4/getdelim.m4: New file.
42307
42308 2005-08-02  Simon Josefsson  <jas@extundo.com>
42309
42310         * lib/getline.h, getline.c: Rewrite.
42311
42312         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
42313
42314 2005-07-31  Bruno Haible  <bruno@clisp.org>
42315
42316         * lib/lock.h (gl_lock_initializer): New macro.
42317         (gl_lock_define_initialized): Use it.
42318         (gl_rwlock_initializer): New macro.
42319         (gl_rwlock_define_initialized): Use it.
42320         (gl_recursive_lock_initializer): New macro.
42321         (gl_recursive_lock_define_initialized): Use it.
42322
42323 2005-07-30  Karl Berry  <karl@gnu.org>
42324
42325         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
42326         Report from Ben Pfaff, regarding getopt.
42327
42328 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
42329
42330         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
42331         normal way.
42332         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
42333         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
42334         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
42335         (gl_GETOPT): Use the new macros.  Most of the implementation
42336         is moved to the new macros.  This is for programs like Emacs
42337         that don't want all the functionality of gl_GETOPT.
42338
42339 2005-07-26  Bruno Haible  <bruno@clisp.org>
42340
42341         * m4/lock.m4: Update from GNU gettext.
42342
42343 2005-07-26  Bruno Haible  <bruno@clisp.org>
42344
42345         * lib/lock.h: Update from GNU gettext.
42346         * lib/lock.c: Update from GNU gettext.
42347
42348 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
42349
42350         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
42351         obsolescent AC_TRY_RUN.  Include the default includes files, for
42352         'exit'.
42353
42354 2005-07-24  Bruno Haible  <bruno@clisp.org>
42355
42356         * modules/visibility: New file.
42357         * MODULES.html.sh (Misc): Add visibility.
42358
42359 2005-07-24  Bruno Haible  <bruno@clisp.org>
42360
42361         * m4/visibility.m4: New file.
42362
42363 2005-07-24  Bruno Haible  <bruno@clisp.org>
42364
42365         * doc/visibility.texi: New file.
42366
42367 2005-07-22  Bruno Haible  <bruno@clisp.org>
42368
42369         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
42370         $(ALLOCA_H), redundant through BUILT_SOURCES.
42371         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
42372         redundant through BUILT_SOURCES.
42373         * modules/byteswap (Makefile.am): Remove explicit dependency on
42374         $(BYTESWAP_H), redundant through BUILT_SOURCES.
42375         * modules/fnmatch (Makefile.am): Remove explicit dependency on
42376         $(FNMATCH_H), redundant through BUILT_SOURCES.
42377         * modules/getopt (Makefile.am): Remove explicit dependency on
42378         $(GETOPT_H), redundant through BUILT_SOURCES.
42379         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
42380         redundant through BUILT_SOURCES.
42381         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
42382         redundant through BUILT_SOURCES.
42383         * modules/stdbool (Makefile.am): Remove explicit dependency on
42384         $(STDBOOL_H), redundant through BUILT_SOURCES.
42385         * modules/stdint (Makefile.am): Remove explicit dependency on
42386         $(STDINT_H), redundant through BUILT_SOURCES.
42387         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
42388         Remove explicit dependency on $(SYSEXITS_H).
42389         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
42390
42391 2005-07-18  Simon Josefsson  <jas@extundo.com>
42392
42393         * lib/check-version.c (check_version): Accept identical versions too.
42394
42395 2005-07-18  Bruno Haible  <bruno@clisp.org>
42396
42397         * modules/lock: New file.
42398         * MODULES.html.sh (Multithreading): New section.
42399
42400 2005-07-18  Bruno Haible  <bruno@clisp.org>
42401
42402         * m4/lock.m4: New file, from GNU gettext.
42403
42404 2005-07-18  Bruno Haible  <bruno@clisp.org>
42405
42406         * lib/lock.h: New file, from GNU gettext.
42407         * lib/lock.c: New file, from GNU gettext.
42408
42409 2005-07-18  Bruno Haible  <bruno@clisp.org>
42410
42411         * lib/lock.h (gl_once_t): New type.
42412         (gl_once_define, gl_once): New macros.
42413         * lib/lock.c (fresh_once): New variable.
42414         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
42415         functions.
42416
42417 2005-07-16  Simon Josefsson  <jas@extundo.com>
42418
42419         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
42420         workaround, suggested by Bruno.
42421
42422 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
42423
42424         * modules/xalloc (Depends-on): Add xalloc-die.
42425         * modules/xvasprintf (Depends-on): Add xalloc-die.
42426
42427 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
42428
42429         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
42430         with a minor change.
42431
42432 2005-07-15  Bruno Haible  <bruno@clisp.org>
42433
42434         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
42435         When using lib/poll.c, define poll as rpl_poll.
42436
42437 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
42438
42439         * modules/argp (Depends-on): Remove unlocked-io.
42440
42441 2005-07-14  Derek Price  <derek@ximbiot.com>
42442
42443         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
42444         for glob symlink bug.
42445
42446 2005-07-14  Bruno Haible  <bruno@clisp.org>
42447
42448         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
42449         Instead, test for *_unlocked function declarations directly.
42450
42451 2005-07-11  Simon Josefsson  <jas@extundo.com>
42452
42453         * modules/size_max: New file.
42454
42455         * modules/xsize: Depend on size_max module for size_max.m4.
42456
42457 2005-07-11  Simon Josefsson  <jas@extundo.com>
42458
42459         * lib/size_max.h: New file.
42460
42461 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
42462
42463         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
42464         copyright symbol and the year.
42465         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
42466         (version_etc_va): Use parameterized copyright notice.
42467         Reword to conform to the current GNU coding standards.
42468
42469 2005-07-11  Karl Berry  <karl@gnu.org>
42470
42471         * doc/gnulib.texi (Quoting): new node.
42472         (Initial import): more info, from Patrice.
42473
42474 2005-07-11  Bruno Haible  <bruno@clisp.org>
42475
42476         * gnulib-tool (func_usage): Document option --avoid.
42477         (Command line options): Handle --avoid.
42478         (func_acceptable): New function.
42479         (func_modules_transitive_closure): Use it.
42480
42481 2005-07-11  Bruno Haible  <bruno@clisp.org>
42482
42483         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
42484         Reported by Jim Meyering.
42485
42486 2005-07-10  Bruno Haible  <bruno@clisp.org>
42487
42488         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
42489         Needed when size_t is smaller than 'unsigned int'.
42490         Reported by Paul Eggert.
42491
42492 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42493
42494         * modules/argp (Depends-on): Add unlocked-io
42495
42496 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42497
42498         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
42499         block of defines.
42500
42501 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
42502
42503         * config/srclist.txt: Comment out regcomp.c, since we have a porting
42504         fix now.
42505
42506 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
42507         and Paul Eggert  <eggert@cs.ucla.edu>
42508
42509         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
42510         in wint_t, not wchar_t.  Remove now-unnecessary cast.
42511
42512 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
42513
42514         * modules/regex (Files): Add lib/regex_internal.c,
42515         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
42516         (Depends-on): Add extensions.
42517         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
42518
42519 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
42520
42521         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
42522         pathconf.
42523         * m4/same.m4 (gl_SAME): Likewise.
42524         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
42525
42526         * m4/regex.m4: Adjust to new libc regex implementation.
42527         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
42528         all the .c and .h parts of (the new) regex.
42529         Quote the m4 stuff better.
42530         Check for RE_ICASE bug of old gnulib.
42531         Check for REG_STARTEND of recent libc.
42532         Rename local variables from jm_* to gl_*.
42533         Quote operand of "test -f".
42534         Say "recent enough" version of libc, not "version 2".
42535         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
42536         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
42537         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
42538         Remove check for btowc, isascii.
42539         Require AM_LANGINFO_CODESET.
42540
42541 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
42542
42543         * lib/regex.c, regex.h: Sync from libc.
42544         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
42545         * lib/regexec.c:
42546         New files, synced from libc, except that regex_internal.h
42547         currently has a small porting fix.
42548
42549 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
42550
42551         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
42552         regex_internal.c, regexec.c.
42553         Add regex_internal.h too, but as a comment, since the libc version
42554         is currently broken in gnulib mode.
42555
42556 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42557
42558         Support programs like Emacs that use gnulib but not gettext.
42559         * MODULES.html.sh (Internationalization functions): Add gettext-h.
42560         * modules/gettext-h: New file.
42561         * modules/gettext (Files): Remove lib/gettext.h.
42562         (Depends-on): Add gettext-h.
42563         (Makefile.am): Remove lib_SOURCES.
42564         * modules/argmatch, modules/c-stack, modules/closeout:
42565         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
42566         * modules/execute, modules/file-type, modules/getaddrinfo:
42567         * modules/getopt, modules/human, modules/javacomp:
42568         * modules/javaexec, modules/mkdir-p, modules/obstack:
42569         * modules/openat, modules/pagealign_alloc, modules/pipe:
42570         * modules/quotearg, modules/regex, modules/rpmatch:
42571         * modules/unicodeio, modules/userspec, modules/version-etc:
42572         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
42573         * modules/xsetenv:
42574         Depend on gettext-h, not gettext.
42575
42576 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
42577
42578         * gnulib-tool (func_import): Add support for 'public domain' license.
42579         * modules/alloca, modules/atexit, modules/memmove:
42580         Now public domain, not GPL.
42581         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
42582         * modules/realloc, modules/strerror, modules/strtod:
42583         Now LGPL, not GPL.
42584
42585 2005-07-05  Bruno Haible  <bruno@clisp.org>
42586
42587         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
42588         autoconf CVS. Needed for mingw.
42589
42590 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42591
42592         Remove the dependency of the strftime module on the tzset module.
42593         * modules/strftime (Depends-on): Remove dependency on tzset.
42594
42595 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42596
42597         Remove the dependency of the strftime module on the tzset module.
42598         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
42599         gl_FUNC_TZSET_CLOBBER.
42600
42601 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42602
42603         Remove the dependency of the strftime module on the tzset module.
42604         * lib/strftime.c (my_strftime)
42605         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
42606         Copy the input structure, to work around some of the bug with
42607         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
42608         Solaris releases, you should also use the tzset module, but we won't
42609         require it as a dependency any more since we don't want LGPLed code
42610         to depend on GPLed code.
42611
42612 2005-07-02  Jim Meyering  <jim@meyering.net>
42613
42614         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
42615         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
42616         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
42617         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
42618
42619 2005-07-02  Jim Meyering  <jim@meyering.net>
42620
42621         * lib/backupfile.c (backup_args): Change a `0' to NULL.
42622
42623 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
42624
42625         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
42626         declares only 'struct timespec;' (!).
42627
42628 2005-07-01  Jim Meyering  <jim@meyering.net>
42629
42630         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
42631         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
42632         * lib/save-cwd.c, tempname.c:
42633         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
42634         and don't include <sys/file.h>).
42635
42636 2005-06-29  Jim Meyering  <jim@meyering.net>
42637
42638         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
42639         type name.  Use the variable name instead.
42640         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
42641         Likewise.
42642
42643 2005-06-28  Simon Josefsson  <jas@extundo.com>
42644
42645         * modules/check-version (Files): Add check-version.m4.
42646
42647 2005-06-28  Simon Josefsson  <jas@extundo.com>
42648
42649         * m4/check-version.m4: New file, suggested by Jim Meyering
42650         <jim@meyering.net>.
42651
42652 2005-06-28  Simon Josefsson  <jas@extundo.com>
42653
42654         * lib/check-version.h, lib/check-version.c: New files.
42655
42656 2005-06-28  Simon Josefsson  <jas@extundo.com>
42657
42658         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
42659         collision with global variable.  Better indentation.  Don't
42660         increment buffer pointer beyond buffer end.  Based on comments
42661         from Paul Eggert <eggert@cs.ucla.edu>.
42662
42663         * lib/base64.h: Indent.
42664
42665 2005-06-28  Simon Josefsson  <jas@extundo.com>
42666
42667         * doc/gnulib.texi (Library version handling): New section.
42668
42669 2005-06-28  Jim Meyering  <jim@meyering.net>
42670
42671         * check-module (find_included_lib_files): Hard-code another
42672         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
42673         but modules/fts-lgpl (correctly) does not list those files.
42674
42675         * modules/canonicalize (Files): Add lib/pathmax.h.
42676
42677 2005-06-25  Simon Josefsson  <jas@extundo.com>
42678
42679         * modules/check-version: New file.
42680
42681 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
42682
42683         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
42684         initializer of struct addrinfo, as an indication that we don't
42685         care how many members the structure has.
42686
42687 2005-06-24  Derek Price  <derek@ximbiot.com>
42688         and Bruno Haible  <bruno@clisp.org>
42689
42690         Remove stat module & update lstat.
42691         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
42692         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42693         * m4/stat.m4: Remove this file.
42694
42695 2005-06-24  Derek Price  <derek@ximbiot.com>
42696         and Bruno Haible  <bruno@clisp.org>
42697
42698         Remove stat module & update lstat.
42699         * lib/stat.c: Remove this file...
42700         (slash_aware_lstat): ...moving this content and its support...
42701         * lib/lstat.c (rpl_lstat): ...into here.
42702         * lib/lstat.h: New file.
42703
42704 2005-06-24  Derek Price  <derek@ximbiot.com>
42705         and Bruno Haible  <bruno@clisp.org>
42706
42707         Remove stat module & update lstat.
42708         * config/srclist.txt (libc sources): Remove stat.
42709
42710 2005-06-24  Derek Price  <derek@ximbiot.com>
42711         and Bruno Haible  <bruno@clisp.org>
42712
42713         Remove stat module & update lstat.
42714         * MODULES.html.sh (stat): Remove.
42715         * MODULES.html: Regenerated.
42716         * modules/lstat (Description): Correct function name.
42717         (Files): Add "lstat.h".
42718         (Depends-on): Remove stat, add xalloc, stat-macros.
42719         * modules/stat: Remove this file.
42720         (Include): Add "lstat.h", remove <sys/stat.h>.
42721
42722 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
42723
42724         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
42725         (ranged_convert): Don't save conversion in a temporary struct.
42726         This causes a warning with GCC 4.0.0, and anyway in the typical
42727         case it's not worth the extra 100 bytes or so of code.
42728         (ranged_convert, __mktime_internal): When calling a function via a
42729         pointer P, use P () rather than (*P) (), as we now assume C89 or
42730         better.
42731
42732 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
42733
42734         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
42735         "who -r" failed to give output.  Problem reported by Tim Waugh.
42736
42737         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
42738         (xcalloc): Use it to avoid needless tests.
42739         Problem reported by Jim Meyering.
42740
42741 2005-06-20  Derek Price  <derek@ximbiot.com>
42742
42743         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
42744         unnecessary for Autoconfs > 2.59c.
42745
42746 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42747
42748         * lib/argp.h (__option_is_short): Check upper limit of
42749         __key. Isprint() requires its argument to have the value
42750         of an unsigned char or EOF.
42751
42752 2005-06-16  Jim Meyering  <jim@meyering.net>
42753
42754         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
42755         when either N or S is zero.
42756
42757 2005-06-16  Derek Price  <derek@ximbiot.com>
42758
42759         * m4/bison.m4: Declare YACC & YFLAGS precious.
42760
42761 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
42762
42763         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
42764         multibyte string or pattern, fall back on unibyte matching.
42765         Problem reported by James Youngman.
42766
42767 2005-06-08  Bruno Haible  <bruno@clisp.org>
42768
42769         * modules/csharpcomp: New file.
42770         * MODULES.html.sh (C#): Add csharpcomp.
42771
42772 2005-06-08  Bruno Haible  <bruno@clisp.org>
42773
42774         * m4/csharpcomp.m4: New file, from GNU gettext.
42775
42776 2005-06-08  Bruno Haible  <bruno@clisp.org>
42777
42778         * lib/csharpcomp.h: New file, from GNU gettext.
42779         * lib/csharpcomp.c: New file, from GNU gettext.
42780         * lib/csharpcomp.sh.in: New file, from GNU gettext.
42781
42782 2005-06-08  Bruno Haible  <bruno@clisp.org>
42783
42784         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
42785         warning on mingw.
42786
42787 2005-06-07  Derek Price  <derek@ximbiot.com>
42788
42789         Sync from CVS.
42790         * lib/glob_.h: Indent nested #ifdef.
42791
42792 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
42793
42794         Sync from coreutils.
42795         Use "file name" when talking about file names, instead of "filename"
42796         or "path", as per the GNU coding standards.
42797         * lib/mkdir-p.c: Renamed from makepath.c.
42798         (make_dir_parents): Renamed from make_path.  All callers changed.
42799         * lib/mkdir-p.h: Likewise.  All includers changed.
42800         * lib/filenamecat.c: Renamed from path-concat.c.
42801         (file_name_concat): Renamed from path_concat.  All callers changed.
42802         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
42803         * lib/filenamecat.h: Likewise.  All includers changed.
42804         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
42805         in comments or local variable names.
42806         * lib/basename.c: Likewise.
42807         * lib/canonicalize.c, canonicalize.h: Likewise.
42808         * lib/dirname.c, dirname.h: Likewise.
42809         * lib/euidaccess.c: Likewise.
42810         * lib/exclude.c: Likewise
42811         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
42812         * lib/fsusage.c, fsuage.h: Likewise.
42813         * lib/fts.c, fts_.h: Likewise.
42814         * lib/getcwd.c: Likewise.
42815         * lib/getloadavg.c: Likewise.
42816         * lib/mkstemp.c: Likewise.
42817         * lib/mountlist.c, mountlist.h: Likewise.
42818         * lib/openat.c, openat.h: Likewise.
42819         * lib/readlink-stub.c: Likewise.
42820         * lib/readutmp.c, readutmp.h: Likewise.
42821         * lib/rename.c: Likewise.
42822         * lib/rmdir.c: Likewise.
42823         * lib/same.c: Likewise.
42824         * lib/savedir.c: Likewise.
42825         * lib/stripslash.c: Likewise.
42826         * lib/tempname.c: Likewise.
42827         * lib/xreadlink.c: Likewise.
42828         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
42829         All uses changed.
42830         * lib/exclude.h: Likewise.
42831
42832         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
42833         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
42834         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
42835         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
42836         * lib/pathmax.h: Include <limits.h> unconditionally, since other
42837         files have been getting away with it for years (MORE/BSD 4.3
42838         is extinct now).
42839         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
42840         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
42841
42842         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
42843         Define to 256, not 255, as per modern POSIX.
42844
42845 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
42846
42847         Sync from coreutils.
42848         Use "file name" when talking about file names, instead of "filename"
42849         or "path", as per the GNU coding standards.
42850         * MODULES.html.sh: mkdir-p renamed from makepath.
42851         filenamecat renamed from path-concat.
42852         * modules/filenamecat: Renamed from modules/path-concat.
42853         (Files): filenamecat.h and filenamecat.c renamed from
42854         path-concat.h and path-concat.c.
42855         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
42856         (Include): filenamecat.h, not path-concat.h.
42857         * modules/mkdir-p: Renamed from modules/makepath.
42858         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
42859         makepath.c.
42860         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
42861         (Include): mkdir-p.h, not makepath.h.
42862
42863 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
42864
42865         Sync from coreutils.
42866         * m4/mkdir-p.m4: Renamed from makepath.m4.
42867         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
42868         Rename files from makepath.c to mkdir-p.c, and from
42869         makepath.h to mkdir-p.h.
42870         * m4/filenamecat.m4: Renamed from path-concat.m4.
42871         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
42872         Rename files from path-concat.c to filenamecat.c,
42873         and from path-concat.h to filenamecat.h.
42874         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
42875         "file name" in local variables or comments.
42876         * m4/rename.m4: Likewise.
42877
42878 2005-06-01  Bruno Haible  <bruno@clisp.org>
42879
42880         * modules/csharpexec: New file.
42881         * MODULES.html.sh (C#): New section.
42882
42883 2005-06-01  Bruno Haible  <bruno@clisp.org>
42884
42885         * m4/csharp.m4: New file, from GNU gettext.
42886         * m4/csharpexec.m4: New file, from GNU gettext.
42887
42888 2005-06-01  Bruno Haible  <bruno@clisp.org>
42889
42890         * lib/csharpexec.h: New file, from GNU gettext.
42891         * lib/csharpexec.c: New file, from GNU gettext.
42892         * lib/csharpexec.sh.in: New file, from GNU gettext.
42893
42894 2005-05-31  Derek Price  <derek@ximbiot.com>
42895             Paul Eggert  <eggert@cs.ucla.edu>
42896
42897         Sync from cvs.
42898         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
42899
42900 2005-05-31  Derek Price  <derek@ximbiot.com>
42901             Paul Eggert  <eggert@cs.ucla.edu>
42902
42903         Sync from cvs.
42904         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
42905
42906 2005-05-29  Derek Price  <derek@ximbiot.com>
42907
42908         * config/srclist.txt (glob_.h, glob.c): Add these files.
42909
42910 2005-05-29  Derek Price  <derek@ximbiot.com>
42911
42912         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
42913         * modules/glob: New file.
42914         * modules/getlogin_r: Add link to POSIX spec in description.
42915
42916 2005-05-29  Derek Price  <derek@ximbiot.com>
42917             Paul Eggert  <eggert@cs.ucla.edu>
42918
42919         * m4/glob.m4: New file.
42920
42921 2005-05-29  Derek Price  <derek@ximbiot.com>
42922             Paul Eggert  <eggert@cs.ucla.edu>
42923
42924         * lib/glob_.h, lib/glob.c: New files.
42925
42926 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
42927
42928         * modules/fts (Files): Remove m4/inttypes-pri.m4.
42929         * modules/fts-lgpl (Depends-on): Remove gettext.
42930
42931 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
42932
42933         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
42934         and don't require gt_INTTYPES_PRI.
42935
42936 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
42937
42938         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
42939
42940         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
42941         the configuration hassle isn't worth it.
42942         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
42943         (LONGEST_MODIFIER, PRIuMAX): Remove.
42944
42945 2005-05-27  Bruno Haible  <bruno@clisp.org>
42946
42947         * lib/getlogin_r.h: Remove second include of <stddef.h>.
42948
42949 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
42950
42951         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
42952         _POSIX_PTHREAD_SEMANTICS for Solaris.
42953
42954 2005-05-25  Derek Price  <derek@ximbiot.com>
42955
42956         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
42957
42958 2005-05-25  Derek Price  <derek@ximbiot.com>
42959             Paul Eggert  <eggert@cs.ucla.edu>
42960
42961         * modules/getlogin_r, m4/getlogin_r.m4: New files.
42962         * lib/getlogin_r.c, getlogin_r.h: New files.
42963
42964 2005-05-25  Bruno Haible  <bruno@clisp.org>
42965             Derek Price  <derek@ximbiot.com>
42966
42967         * lib/getlogin_r.h: Simplify API documentation.
42968
42969 2005-05-23  Derek Price  <derek@ximbiot.com>
42970
42971         * modules/minmax (Files): Add m4/minmax.m4.
42972         (configure.ac): Add gl_MINMAX.
42973
42974 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
42975
42976         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
42977         so that unistd-safer.h (GPL'ed code) need not be included.
42978
42979 2005-05-22  Bruno Haible  <bruno@clisp.org>
42980
42981         * m4/minmax.m4: New file.
42982         Based on a patch by Derek Price <derek@ximbiot.com>.
42983
42984 2005-05-22  Bruno Haible  <bruno@clisp.org>
42985
42986         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
42987         (INT64_MIN): Fix definition.
42988         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
42989
42990         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
42991         NEED_SIGNED_INT_TYPES.
42992
42993         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
42994         HAVE_SYSTEM_INTTYPES.
42995
42996 2005-05-22  Bruno Haible  <bruno@clisp.org>
42997
42998         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
42999         Also include <sys/param.h> if it defines MIN, MAX.
43000         Based on a patch by Derek Price <derek@ximbiot.com>.
43001
43002 2005-05-21  Jim Meyering  <jim@meyering.net>
43003
43004         * modules/fts (Files): Add m4/inttypes-pri.m4.
43005         (Depends-on): Add lstat and remove gettext.  Alphabetize.
43006
43007 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
43008
43009         New fts module.
43010         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
43011         (setup_dir, free_dir): New functions.
43012         (enter_dir, leave_dir): Define trivial
43013         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
43014         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
43015         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
43016         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
43017         Move to fts-cycle.c.
43018         (fts_open): Use setup_dir.
43019         (fts_close): Use free_dir.
43020         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
43021         This adds a label and some gotos, but the alternatives were messier.
43022         Check for memory allocation failure when entering a dir.
43023         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
43024         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
43025         (FTS): New member fts_cycle, that is a union that contains the
43026         old active_dir_ht and cycle_state.  All uses changed to mention
43027         fts_cycle.ht and fts_cycle.state.
43028         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
43029         fts.c, with the following changes:
43030         (setup_dir, free_dir): New functions.
43031         (enter_dir): Now returns bool.  Return true if successful, false
43032         if memory exhausted.  All callers changed.
43033         Do not bother partly cleaning up on
43034         memory allocation failure; that is free_dir's job.
43035         However, free ad if hash_insert fails, to avoid memory leak.
43036         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
43037         fts->fts_options to see which union member to use.
43038
43039 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
43040
43041         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
43042         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
43043
43044 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
43045
43046         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
43047
43048 2005-05-20  Jim Meyering  <jim@meyering.net>
43049
43050         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
43051         Now a macro, to pacify GCC.
43052
43053 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
43054
43055         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
43056         of -1.
43057
43058 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
43059
43060         * lib/chown.c (rpl_chown): Return -1 on failure.
43061
43062 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
43063
43064         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
43065         Don't check for stddef.h.
43066         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
43067         don't use its results.
43068         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
43069         since we include them unconditionally.  Don't require
43070         AM_STDBOOL_H, since stdbool is a prerequisite.
43071         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
43072         since we assume C89 or better.
43073         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
43074         as we don't use their results.
43075         Don't check for fchdir, memmove, memset, strrchr, as we use
43076         them unconditionally.
43077         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
43078         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
43079
43080 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
43081
43082         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
43083         Include <stddef.h> unconditionally, since we assume C89 now.
43084         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
43085         * lib/fts.c: Include fts_.h first, to check interface.
43086         Do not include intprops.h; no longer needed.
43087         Include cycle-check.h and hash.h, since fts_.h no longer does.
43088         Remove unnecessary casts of closedir to void.
43089         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
43090         decide whether to decrement nlinks.
43091         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
43092         (FTS): Use struct hash_table * instead of Hash_table, so that
43093         we no longer need to include hash.h here.
43094
43095 2005-05-18  Jim Meyering  <jim@meyering.net>
43096
43097         * modules/dirfd (License): Change to LGPL.  Most of the code
43098         is already in the public domain.
43099
43100 2005-05-18  Jim Meyering  <jim@meyering.net>
43101
43102         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
43103         Reported by Yoann Vandoorselaere.
43104
43105 2005-05-17  Jim Meyering  <jim@meyering.net>
43106
43107         * m4/fts.m4: New file, from coreutils.
43108
43109 2005-05-17  Jim Meyering  <jim@meyering.net>
43110
43111         * lib/fts.c, lib/fts_.h: New files, from coreutils.
43112
43113 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
43114
43115         Sync from coreutils.
43116         * m4/unlinkdir.m4: New file.
43117
43118 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
43119
43120         Sync from coreutils.
43121         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
43122         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
43123         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
43124         White space changes only.
43125         * lib/makepath.c (make_path): Port to hosts where leading "//" is
43126         special.
43127         * lib/yesno.c: Include getline.h, not ctype.h.
43128         (yesno): Don't remove leading white space; POSIX doesn't allow it.
43129         Use getline to remove arbitrary restriction on response length.
43130
43131 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
43132
43133         * config/srclist-update: Spell out "Street" in FSF postal
43134         mail address; this is the style the FSF seems to prefer.
43135
43136         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
43137         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
43138         this updates FSF postal mail address.
43139
43140         Sync from coreutils.
43141         * modules/unlinkdir: New file.
43142         * modules/yesno (Depends-on): Add getline.
43143         * MODULES.html.sh (File system functions): Add unlinkdir.
43144
43145 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
43146
43147         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
43148         lib/strsep.h:
43149         Change the initial comment to refer to GPL, not LGPL.
43150         gnulib-tool will change it to LGPL as needed.
43151
43152         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
43153         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
43154         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
43155         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
43156         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
43157         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
43158         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
43159         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
43160         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
43161         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
43162         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
43163         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
43164         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
43165         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
43166         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
43167         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
43168         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
43169         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
43170         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
43171         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
43172         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
43173         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
43174         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
43175         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
43176         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
43177         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
43178         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
43179         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
43180         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
43181         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
43182         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
43183         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
43184         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
43185         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
43186         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
43187         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
43188         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
43189         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
43190         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
43191         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
43192         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
43193         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
43194         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
43195         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
43196         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
43197         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
43198         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
43199         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
43200         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
43201         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
43202         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
43203         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
43204         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
43205         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
43206         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
43207         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
43208         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
43209         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
43210         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
43211         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
43212         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
43213         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
43214         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
43215         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
43216         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
43217         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
43218         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
43219         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
43220         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
43221         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
43222         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
43223         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
43224         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
43225         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
43226         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
43227         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
43228         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
43229         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
43230         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
43231         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
43232         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
43233         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
43234         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
43235         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
43236         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
43237         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
43238         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
43239         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
43240         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
43241         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
43242         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
43243         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
43244         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
43245         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
43246         lib/yesno.c, lib/yesno.h:
43247         Update FSF postal mail address.
43248
43249 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
43250
43251         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
43252         tests/test-memmem.c, tests/test-stpncpy.c:
43253         Update FSF postal mail address.
43254
43255 2005-05-13  Bruno Haible  <bruno@clisp.org>
43256
43257         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
43258         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
43259         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
43260         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
43261         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
43262         Add support for 64-bit integers in the MSVC compiler.
43263
43264 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
43265
43266         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
43267
43268 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
43269
43270         * gnulib-tool (func_import): Sort and uniquify recommended includes.
43271
43272 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
43273
43274         * doc/getdate.texi (General date syntax): Don't say that date
43275         date --iso-8601=ns generates acceptable dates; it doesn't yet.
43276         Problem reported by Nic Ferrier.
43277
43278 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43279
43280         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
43281         specified in ai_socktype. Fix invalid ai_protocol
43282         check. ai_protocol is usually set to 0 or depending on
43283         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
43284         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
43285         ai_socktype / ai_protocol in the returned addrinfo structure.
43286
43287 2005-05-10  Simon Josefsson  <jas@extundo.com>
43288
43289         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
43290         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43291
43292 2005-05-10  Karl Berry  <karl@gnu.org>
43293
43294         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
43295         (from http://www.gnu.org/licenses).
43296         * doc/COPYING.LIB: also rename to COPYING.LESSER.
43297         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
43298         fdl.texi suffices.
43299
43300 2005-05-10  Karl Berry  <karl@gnu.org>
43301
43302         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
43303         (COPYING.DOC): remove.
43304
43305         * config/srclist-update: new FSF address.
43306
43307 2005-05-10  Derek Price  <derek@ximbiot.com>
43308
43309         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
43310         possible.
43311
43312 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43313             Bruno Haible  <bruno@clisp.org>
43314
43315         * modules/inet_ntop: New file.
43316         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43317         inet_ntop.
43318
43319 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43320             Bruno Haible  <bruno@clisp.org>
43321
43322         * m4/inet_ntop.m4: New file.
43323
43324 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43325             Bruno Haible  <bruno@clisp.org>
43326
43327         * lib/inet_ntop.h: New file.
43328         * lib/inet_ntop.c: New file, from glibc with modifications.
43329
43330 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
43331
43332         * modules/time_r (License): Change to LGPL.
43333         * modules/extensions (License): Change to LGPL.  Actually,
43334         the license is more permissive than that, but currently gnulib-tool
43335         doesn't know how to handle more-permissive licenses.
43336
43337         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
43338         Problem reported by Dave Love.
43339
43340 2005-05-08  Jim Meyering  <jim@meyering.net>
43341
43342         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
43343         blank.
43344
43345 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
43346
43347         * modules/argmatch (Depends-on): Add stdbool.
43348         * modules/backupfile (Depends-on): Likewise.
43349         * modules/chdir-long (Depends-on): Likewise.
43350         * modules/closeout (Depends-on): Likewise.
43351         * modules/cycle-check (Depends-on): Likewise.
43352         * modules/dirname (Depends-on): Likewise.
43353         * modules/fnmatch (Depends-on): Likewise.
43354         * modules/fsusage (Depends-on): Likewise.
43355         * modules/fwriteerror (Depends-on): Likewise.
43356         * modules/getcwd (Depends-on): Likewise.
43357         * modules/getloadavg (Depends-on): Likewise.
43358         * modules/hard-locale (Depends-on): Likewise.
43359         * modules/makepath (Depends-on): Likewise.
43360         * modules/mountlist (Depends-on): Likewise.
43361         * modules/nanosleep (Depends-on): Likewise.
43362         * modules/posixtm (Depends-on): Likewise.
43363         * modules/quotearg (Depends-on): Likewise.
43364         * modules/readtokens (Depends-on): Likewise.
43365         * modules/readtokens0 (Depends-on): Likewise.
43366         * modules/readutmp (Depends-on): Likewise.
43367         * modules/save-cwd (Depends-on): Likewise.
43368         * modules/strftime (Depends-on): Likewise.
43369         * modules/userspec (Depends-on): Likewise.
43370         * modules/utimecmp (Depends-on): Likewise.
43371         * modules/xgetcwd (Depends-on): Likewise.
43372         * modules/xnanosleep (Depends-on): Likewise.
43373         * modules/xstrtod (Depends-on): Likewise.
43374         * modules/yesno (Depends-on): Likewise.
43375
43376 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
43377
43378         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
43379         needless checks.
43380
43381 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
43382
43383         Merge from coreutils.  Among other things,
43384         add bulletproofing for cases where stdin, stdout, or stderr are closed.
43385         * lib/fd-safer.c: New file.
43386         * lib/fcntl-safer.h, open-safer.c: Remove.
43387         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
43388         * lib/dup-safer.c: Include unistd-safer.h first.
43389         Don't include errno.h.
43390         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
43391         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
43392         * lib/file-type.c: Rely on file-type.h change.
43393         * lib/getloadavg.c: Include unistd-safer.h.
43394         (getloadavg): Use safer open.
43395         * lib/getusershell.c: Include "stdio-safer.h".
43396         (getusershell): Use safer fopen.
43397         * lib/long-options.c (long_options): Use NULL rather than 0.
43398         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
43399         'free'.
43400         * lib/modechange.c: Likewise.
43401         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
43402         (MODE_DONE): New constant.
43403         (struct mode_change): Remove 'next' member.
43404         (make_node_op_equals): New function; like the old one of the
43405         same name, except it allocates an array.
43406         (mode_compile, mode_create_from_ref): Use it.
43407         (mode_compile): Allocate result as an array, not a linked list.
43408         Parse octal string ourself, so that we catch mistakes like "+0".
43409         (mode_adjust): Arg is an array, not a linked list.
43410         * lib/modechange.c: Include stat-macros.h, xalloc.h.
43411         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
43412         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
43413         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
43414         Remove.  This is now stat-macros.h's job.
43415         (talloc): Remove.  All callers replaced by xalloc, so that
43416         our invokers don't have to worry about reporting memory failures.
43417         (make_node_op_equals): Remove.
43418         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
43419         New constants.
43420         (struct mode_change): Moved here from modechange.h.
43421         (mode_append_entry): Remove.
43422         (mode_compile): Remove MASKED_OPS arg, since it encouraged
43423         apps to have incorrect behavior.  Use simpler algorithm for head
43424         and tail.  Don't futz with umask; that's now the job of mode_adjust.
43425         Detect more invalid usages rather than having somewhat-random behavior.
43426         Don't insert an "a=" action, as that leads to incorrect behavior.
43427         (mode_compile, mode_create_from_ref): Return NULL on error instead
43428         of an enum, since now there's only one way to have an error.  All
43429         callers changed.
43430         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
43431         at the correct time.  Simplify calculation of "+u" and its ilk.
43432         Don't mishandle "+X".
43433         (mode_free): Remove "register" and localize decls.
43434         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
43435         (struct mode_change): Move to modechange.c; callers don't
43436         need to see this stuff.
43437         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
43438         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
43439         (mode_change, mode_adjust): Reflect the new signatures noted above.
43440         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
43441         that might redefine system include files.
43442         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
43443         (my_usleep): Use NULL rather than (void *) 0.
43444         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
43445         Use siginterrupt to specify that system calls should be interrupted.
43446         (rpl_nanosleep): Move initialization of suspended closer to call of
43447         my_usleep.
43448         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
43449         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
43450         (desirable_utmp_entry): New function.
43451         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
43452         using x2nrealloc, to simplify logic.
43453         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
43454         size calculation.  Do not assume utmp file is a regular file.
43455         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
43456         (READ_UTMP_CHECK_PIDS): New constant.
43457         * lib/save-cwd.c: Include unistd-safer.h.
43458         (save_cwd): Use fd_safer.
43459         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
43460         [!_LIBC] Include "stat-macros.h" instead.
43461         * lib/unistd-safer.h (fd_safer): New decl.
43462
43463 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
43464
43465         * modules/getloadavg (Depends-on): Add unistd-safer.
43466         * modules/getusershell (Depends-on): Add stdio-safer.
43467         * modules/lstat (Depends-on): Remove xalloc.
43468         * modules/mkstemp (Depends-on): Add stat-macros.
43469         * modules/modechange (Depends-on): Remove xstrtol.
43470         Add stat-macros, xalloc.
43471         * modules/save-cwd (Depends-on): Add unistd-safer.
43472         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
43473         * modules/unistd-safer (Files): Add lib/fd-safer.c
43474         (Makefile.am): Remove lib_SOURCES.
43475
43476         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
43477         Remove fcntl-safer; unistd-safer supersedes it.
43478
43479 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
43480
43481         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
43482         AC_HEADER_STAT.
43483         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
43484         (gl_PREREQ_CHOWN): Remove.
43485         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
43486         it.  Don't require AC_HEADER_STAT.
43487         (gl_PREREQ_LSTAT): Remove.
43488         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
43489         Don't require AC_HEADER_STAT.
43490         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
43491         (gl_PREREQ_RMDIR): Remove.
43492         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
43493         mention stat-macros.h or AC_HEADER_STAT, since we'll make
43494         the stat-macros module a prerequisite.
43495         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
43496         * m4/filemode.m4 (gl_FILEMODE): Likewise.
43497         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
43498         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
43499         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
43500         variable names.
43501         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
43502         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
43503         variable prefixes.
43504         * m4/fcntl-safer.m4: Remove.
43505         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
43506         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
43507         Invoke gl_PREREQ_FD_SAFER.
43508         (gl_PREREQ_FD_SAFER): New macro.
43509         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
43510         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
43511         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
43512         Remove duplicate call to AC_LIBOBJ(readutmp).
43513         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
43514
43515         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
43516         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
43517
43518 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
43519
43520         * MODULES.html.sh (Misc): Add byteswap.
43521
43522 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
43523
43524         * modules/getcwd (Depends-on): Add extensions.
43525         * modules/openat (Depends-on): Likewise.
43526
43527 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
43528
43529         * modules/byteswap: New file.
43530
43531 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
43532
43533         * m4/byteswap.m4: New file.
43534
43535 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
43536
43537         * lib/byteswap_.h: New file.
43538
43539 2005-04-25  Karl Berry  <karl@gnu.org>
43540
43541         * m4/gettext.m4: Update from GNU gettext 0.14.4.
43542
43543 2005-04-25  Albert Chin  <china@thewrittenword.com>
43544
43545         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
43546         Toolkit C bug.
43547
43548 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
43549
43550         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
43551         (func_ln_if_changed) Remove forcibly for no error message
43552         in case file does not exist.
43553
43554 2005-04-19  Simon Josefsson  <jas@extundo.com>
43555
43556         * gnulib-tool (Options): Make --symlink mean --symbolic.
43557
43558 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
43559
43560         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
43561
43562 2005-04-16  Simon Josefsson  <jas@extundo.com>
43563
43564         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
43565
43566 2005-04-15  Simon Josefsson  <jas@extundo.com>
43567
43568         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
43569
43570 2005-04-15  Simon Josefsson  <jas@extundo.com>
43571
43572         * gnulib-tool: Rename --symlink to --symbolic.
43573
43574 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
43575
43576         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
43577         symbolic links to files instead of copying/moving.  Add --aux-dir,
43578         specifying directory relative --dir where auxiliary build tools
43579         are placed.
43580
43581 2005-04-14  Bruno Haible  <bruno@clisp.org>
43582
43583         * modules/allocsa (License): Change to LGPL.
43584         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43585
43586 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
43587
43588         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
43589         that "UTC +1 second" continues to work.  Problem reported
43590         by Dmitry V. Levin.
43591         (relunit_snumber): New rule.
43592         (relunit): Use it.
43593
43594 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
43595
43596         * lib/getdate.y (universal_time_zone_table): New constant.
43597         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
43598         universal_time_zone_table.
43599         (lookup_zone): Prefer universal_time_zone_table to
43600         local_time_zone_table, so that "GMT" time stamps are allowed in
43601         London during the summer.  Problem reported by Ian Abbott.
43602
43603 2005-04-12  Jim Meyering  <jim@meyering.net>
43604
43605         * lib/human.c (humblock): Set *options even when returning due to
43606         xstrtoumax conversion failure.  Thanks to a used-uninitialized
43607         warning from gcc-4.
43608
43609 2005-04-09  Jim Meyering  <jim@meyering.net>
43610
43611         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
43612         -Wuninitialized: initialize tm0.tm_year.
43613
43614 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
43615
43616         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
43617         count, since there's no maximum.  All uses changed.
43618         Add member dsts_seen.
43619         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
43620         not being INT_MAX.
43621         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
43622         Use pc_rels_seen to decide whther a date is absolute.
43623
43624         * lib/getdate.y (number): Don't overwrite year.
43625         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
43626         check.
43627
43628 2005-04-02  Simon Josefsson  <jas@extundo.com>
43629
43630         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
43631         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
43632
43633 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
43634
43635         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
43636         where no absolute path name can be longer than PATH_MAX.
43637
43638 2005-03-27  Jim Meyering  <jim@meyering.net>
43639
43640         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
43641
43642 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
43643
43644         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
43645         "one's complement" -> "ones' complement" in comment, as per Knuth.
43646         "value of type" -> "type or expression" in comment.
43647         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
43648
43649 2005-03-26  Jim Meyering  <jim@meyering.net>
43650
43651         Comment nits.
43652         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
43653         Correct typos: s/or/of/.
43654
43655 2005-03-26  Jim Meyering  <jim@meyering.net>
43656
43657         * modules/check-include-files: Move to ../ and rename to...
43658         * check-module: ...this.
43659
43660 2005-03-25  Jim Meyering  <jim@meyering.net>
43661
43662         * modules/xvasprintf (Files): Add xalloc.h.
43663
43664 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
43665
43666         * modules/gettext (Files): config/config.rpath ->
43667         build-aux/config.rpath
43668         * modules/iconv (Files): Likewise.
43669         Problem reported by Oskar Liljeblad.
43670
43671 2005-03-23  Jim Meyering  <jim@meyering.net>
43672
43673         * modules/check-include-files: New script to check for
43674         missing dependencies, multiple includes, etc.
43675
43676         * modules/c-strtold (Depends-on): Add xalloc.
43677         * modules/c-strtod (Depends-on): Add xalloc.
43678         * modules/hash (Depends-on): Add xalloc.
43679         (Files): Remove lib/xalloc.h.
43680
43681         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
43682         * modules/userspec (Files): Add lib/inttostr.h.
43683
43684 2005-03-23  Jim Meyering  <jim@meyering.net>
43685
43686         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
43687
43688 2005-03-22  Jim Meyering  <jim@meyering.net>
43689
43690         * modules/stat-macros: New module.
43691         * modules/canonicalize, modules/euidaccess, modules/file-type,
43692         * modules/filemode, modules/lchown, modules/makepath,
43693         * modules/rmdir, modules/stat: Depend on new stat-macros module
43694         rather than listing lib/stat-macros.h manually.
43695         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
43696
43697 2005-03-22  Jim Meyering  <jim@meyering.net>
43698
43699         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
43700
43701 2005-03-22  Bruno Haible  <bruno@clisp.org>
43702
43703         * config/srclist.txt: Replace target directory 'config' with
43704         'build-aux'.
43705         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
43706         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
43707         ../build-aux/.
43708
43709 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
43710
43711         * modules/chdir-long (Depends-on): Add mempcpy.
43712
43713         * modules/acl, modules/backupfile, modules/c-strtod,
43714         modules/c-strtold, modules/canon-host, modules/canonicalize,
43715         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
43716         modules/exclude, modules/exitfail, modules/file-type,
43717         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
43718         modules/getdate, modules/getline, modules/getpagesize,
43719         modules/getpass, modules/getugroups, modules/group-member,
43720         modules/hard-locale, modules/hash, modules/human, modules/idcache,
43721         modules/inttostr, modules/long-options, modules/makepath,
43722         modules/md5, modules/memcasecmp, modules/memcoll,
43723         modules/modechange, modules/mountlist, modules/path-concat,
43724         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
43725         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
43726         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
43727         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
43728         modules/strftime, modules/strndup, modules/strverscmp,
43729         modules/timespec, modules/unlocked-io, modules/userspec,
43730         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
43731         modules/yesno:
43732         Remove lib_SOURCES line from Makefile.am section, as this is now
43733         done automatically by the corresponding Autoconf macro.
43734
43735 2005-03-21  Jim Meyering  <jim@meyering.net>
43736
43737         Changes imported from coreutils.
43738
43739         * lib/cycle-check.c: Don't include xalloc.h.
43740
43741         * lib/path-concat.c: Don't include assert.h.
43742         (path_concat): Remove assertion that would have triggered
43743         for ABASE starting with more than one slash.
43744         Reported by Andreas Schwab.
43745
43746         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
43747         properly when ABASE is an absolute file name.
43748         Correct the description of this function.
43749         Include <assert.h>.
43750         Add an assertion and a test driver.
43751         This fixes a bug introduced on 2004-07-02.
43752         Andreas Schwab reported the resulting failure of cp --parents:
43753         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
43754
43755 2005-03-21  Jim Meyering  <jim@meyering.net>
43756
43757         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
43758         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
43759
43760 2005-03-21  Jim Meyering  <jim@meyering.net>
43761         and  Paul Eggert  <eggert@cs.ucla.edu>
43762
43763         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
43764         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
43765         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
43766         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
43767         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
43768         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
43769         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
43770         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
43771         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
43772         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
43773         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
43774         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
43775         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
43776         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
43777         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
43778         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
43779         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
43780         for these modules.
43781
43782 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
43783
43784         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
43785         (which shouldn't happen), generate nothing instead of returning 0
43786         immediately, so that nstrftime (NULL, ...) doesn't return 0.
43787
43788 2005-03-16  Bruno Haible  <bruno@clisp.org>
43789
43790         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
43791         HAVE_LONGLONG_64BIT.
43792
43793 2005-03-16  Bruno Haible  <bruno@clisp.org>
43794
43795         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
43796         HAVE_LONGLONG_64BIT.
43797
43798 2005-03-16  Bruno Haible  <bruno@clisp.org>
43799
43800         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
43801         HAVE_LONGLONG_64BIT.
43802
43803 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
43804
43805         * lib/strftime.c (my_strftime): Prepend space to format so that we can
43806         reliably distinguish strftime failure from empty output on POSIX
43807         hosts.
43808
43809 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
43810
43811         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
43812         (iconv_string): Don't guess a size-zero buffer, as that might cause
43813         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
43814         result would be 'too large', where 'too large' is (heuristically)
43815         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
43816         overflow concerns.  This will prevent some unwanted malloc failures
43817         when the inputs are very large.
43818
43819 2005-03-15  Karl Berry  <karl@gnu.org>
43820
43821         * config/srclist.txt (config.rpath): from gettext.
43822         * config/config.rpath: update.
43823
43824 2005-03-15  Bruno Haible  <bruno@clisp.org>
43825
43826         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
43827         to 'negate'.
43828
43829         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
43830         variable.
43831
43832         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
43833         results.
43834
43835 2005-03-14  Simon Josefsson  <jas@extundo.com>
43836
43837         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
43838         <fx@gnu.org>.
43839
43840 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
43841
43842         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
43843         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
43844         intprops.h.
43845         * lib/strtol.c: Likewise.
43846
43847 2005-03-14  Jim Meyering  <jim@meyering.net>
43848
43849         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
43850         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
43851         to be nonzero so that we (and caller) can detect the difference
43852         between a valid zero-length expansion and an error return, even
43853         when the underlying strftime fails before writing anything into
43854         that location.
43855
43856 2005-03-14  Bruno Haible  <bruno@clisp.org>
43857
43858         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
43859         Update from GNU gettext 0.14.3.
43860
43861 2005-03-10  Jim Meyering  <jim@meyering.net>
43862
43863         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
43864
43865 2005-03-10  Jim Meyering  <jim@meyering.net>
43866
43867         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
43868         so that this module works on systems without fchdir.
43869
43870 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
43871
43872         Factor int-properties macros into a single file, except for
43873         glibc-related files.
43874         * lib/intprops.h: New file.
43875         * lib/getloadavg.c: Include it instead of limits.h.
43876         (INT_STRLEN_BOUND): Remove.
43877         * lib/human.c: Include intprops.h.
43878         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
43879         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
43880         302/1000.
43881         * lib/inttostr.h: Include intprops.h instead of limits.h.
43882         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
43883         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
43884         for consistency with intprops.h.
43885         (time_t_is_integer, twos_complement_arithmetic): Use them.
43886         * lib/sig2str.h: Include <signal.h>, intprops.h.
43887         (INT_STRLEN_BOUND): Remove.
43888         * lib/strftime.c (TYPE_SIGNED): Remove.
43889         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
43890         * lib/strtol.c: Adjust comments to match intprops.h.
43891         * lib/userspec.c: Include intprops.h.
43892         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
43893         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
43894         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
43895         instead of rolling our own expressions.
43896         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
43897
43898         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
43899         instead of int.
43900         (my_strftime): Do not mishandle years close to INT_MAX, by doing
43901         the right thing even if adding 1900 would overflow.  Similarly
43902         for tm_mon + 1 and tm_yday + 1.
43903         Make %Y always equivalent to %C%y, and similarly for %G and %g.
43904         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
43905         (DO_SIGNED_NUMBER): New macro.
43906         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
43907
43908 2005-03-07  Bruno Haible  <bruno@clisp.org>
43909
43910         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
43911
43912 2005-03-07  Bruno Haible  <bruno@clisp.org>
43913
43914         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
43915
43916 2005-03-04  Derek R. Price  <derek@ximbiot.com>
43917
43918         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
43919         (func_import): Only replace files via --import when they have actually
43920         changed.
43921
43922 2005-03-03  Derek R. Price  <derek@ximbiot.com>
43923
43924         * m4/mmap-anon.m4: New file.
43925         * m4/pagealign_alloc.m4: New file.
43926
43927 2005-03-03  Derek R. Price  <derek@ximbiot.com>
43928             Bruno Haible  <bruno@clisp.org>
43929
43930         * modules/pagealign_alloc: New file.
43931         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
43932
43933 2005-03-03  Derek R. Price  <derek@ximbiot.com>
43934             Bruno Haible  <bruno@clisp.org>
43935
43936         * lib/pagealign_alloc.h: New file.
43937         * lib/pagealign_alloc.c: New file.
43938
43939 2005-03-03  Bruno Haible  <bruno@clisp.org>
43940
43941         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
43942         Use an all-permissive copyright notice, recommended by RMS.
43943
43944 2005-03-02  Bruno Haible  <bruno@clisp.org>
43945
43946         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
43947         of AIX, the replacement has to be done only after <string.h> is
43948         included, therefore not in config.h. stpncpy.h does the replacement,
43949         and stpncpy.c uses it.
43950
43951 2005-03-02  Bruno Haible  <bruno@clisp.org>
43952
43953         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
43954         stpncpy.c uses it.
43955
43956 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
43957
43958         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
43959         The workaround isn't strictly needed for POSIX conformance, and
43960         it's too much of a pain to configure and maintain.  We'll ask
43961         people to fix their kernels instead.
43962         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
43963         (NANOSLEEP_BUG_WORKAROUND): Remove.
43964         (xnanosleep): Remove the workaround.
43965
43966 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
43967
43968         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
43969         Reported by Derek Price.
43970         (Include): Add "timespec.h".
43971
43972         * modules/xnanosleep (Depends-on): Remove gethrxtime.
43973
43974 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
43975
43976         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
43977         to detect nanosleep bug.
43978
43979 2005-03-01  Bruno Haible  <bruno@clisp.org>
43980
43981         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
43982
43983 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
43984
43985         * modules/gethrxtime: New file.
43986         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
43987         (Depends-on): Add gethrxtime.
43988         (configure.ac): Add gl_XNANOSLEEP.
43989         (Makefile.am): Remove lib_SOURCES line.
43990
43991 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
43992
43993         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
43994         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
43995
43996 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
43997
43998         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
43999         * lib/timespec.h (gettime): Return void, since it always
44000         succeeds now.  All uses changed.
44001         * lib/gettime.c (gettime) Likewise.
44002         [HAVE_NANOTIME]: Prefer nanotime.
44003         Assume gettimeofday succeeds, as POSIX requires.
44004         Assime time () succeeds, since other code already does.
44005         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
44006         (timespec_subtract): Remove.
44007         (NANOSLEEP_BUG_WORKAROUND): New constant.
44008         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
44009         things considerably.  Use it only on GNU/Linux hosts, since the
44010         workaround shouldn't be needed elsewhere.
44011
44012 2005-02-24  Bruno Haible  <bruno@clisp.org>
44013
44014         * modules/gettext (Files): Add m4/glibc2.m4.
44015
44016 2005-02-24  Bruno Haible  <bruno@clisp.org>
44017
44018         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
44019         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
44020         * m4/progtest.m4:
44021         Update from GNU gettext 0.14.2.
44022         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
44023
44024 2005-02-24  Bruno Haible  <bruno@clisp.org>
44025
44026         * lib/localcharset.c: Update from GNU gettext 0.14.2.
44027         * lib/config.charset: Update from GNU gettext 0.14.2.
44028
44029 2005-02-24  Bruno Haible  <bruno@clisp.org>
44030
44031         * lib/gettext.h: Update from GNU gettext 0.14.2.
44032
44033 2005-02-23  Simon Josefsson  <jas@extundo.com>
44034
44035         * m4/iconvme.m4: New file.
44036
44037 2005-02-23  Jim Meyering  <jim@meyering.net>
44038
44039         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
44040         change.
44041         Thanks to Bruno Haible for catching it.
44042
44043 2005-02-22  Simon Josefsson  <jas@extundo.com>
44044
44045         * modules/iconvme: New file.
44046
44047         * MODULES.html.sh: Add iconvme.
44048
44049 2005-02-22  Simon Josefsson  <jas@extundo.com>
44050
44051         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
44052
44053 2005-02-22  Simon Josefsson  <jas@extundo.com>
44054
44055         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
44056
44057 2005-02-22  Jim Meyering  <jim@meyering.net>
44058
44059         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
44060         s/ifndef/ifdef/.
44061
44062 2005-02-20  Neil Conway  <neilc@samurai.com>
44063
44064         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
44065         returned by OSX/Darwin if the specified buffer is not large
44066         enough for the hostname.
44067
44068 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44069
44070         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
44071         pass it to _help, otherwise the latter coredumps trying to
44072         dereference state.root_argp.
44073
44074 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
44075
44076         * modules/chdir-long (Depends-on): Add memrchr.
44077         * modules/memrchr (Files): Add lib/memrchr.h.
44078         (Include): "memrchr.h".
44079
44080 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
44081
44082         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
44083
44084 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
44085
44086         * lib/memrchr.h: New file.
44087         * lib/chdir-long.c: Include it.
44088         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
44089         Don't bother including stddef.h.
44090
44091 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
44092
44093         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
44094         inclusion.
44095         Include <sys/types.h>, for dev_t.
44096         (ME_DUMMY, ME_REMOTE): Move from here....
44097         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
44098         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
44099         Dmitry V. Levin.
44100         Include mountlist.h first, to test the interface.
44101
44102 2005-01-29  Bruno Haible  <bruno@clisp.org>
44103
44104         * lib/progname.c (program_name): Initialize.
44105         Needed when linking statically on MacOS X.
44106
44107 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44108
44109         Sync from coreutils.
44110         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
44111         (Depends-on): Add c-strtod.
44112         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
44113
44114 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44115
44116         Sync from coreutils.
44117         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
44118
44119         Remove files that are specific to coreutils.
44120         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
44121
44122 2005-01-28  Bruno Haible  <bruno@clisp.org>
44123
44124         * modules/javacomp: New file.
44125         * MODULES.html.sh (Java): Add javacomp.
44126
44127 2005-01-28  Bruno Haible  <bruno@clisp.org>
44128
44129         * m4/javacomp.m4: New file, from GNU gettext.
44130
44131 2005-01-28  Bruno Haible  <bruno@clisp.org>
44132
44133         * lib/javacomp.sh.in: New file, from GNU gettext.
44134         * lib/javacomp.h: New file, from GNU gettext.
44135         * lib/javacomp.c: New file, from GNU gettext.
44136
44137 2005-01-26  Simon Josefsson  <jas@extundo.com>
44138
44139         * lib/gai_strerror.c: Use GPL in header.
44140
44141 2005-01-26  Bruno Haible  <bruno@clisp.org>
44142
44143         * modules/javaexec: New file.
44144         * MODULES.html.sh (Java): Add javaexec.
44145
44146 2005-01-26  Bruno Haible  <bruno@clisp.org>
44147
44148         * m4/javaexec.m4: New file, from GNU gettext.
44149
44150 2005-01-26  Bruno Haible  <bruno@clisp.org>
44151
44152         * lib/javaexec.sh.in: New file, from GNU gettext.
44153         * lib/javaexec.h: New file, from GNU gettext.
44154         * lib/javaexec.c: New file, from GNU gettext.
44155
44156 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44157
44158         * modules/lchown (Depends-on): Remove lchown.h
44159
44160 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44161
44162         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
44163         must be defined if the header file was not found, in order
44164         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
44165
44166 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44167
44168         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
44169         initializers for struct pentry_state.
44170         (__argp_error): Check return value of __asprintf
44171         (__argp_failure): Translate error message
44172
44173         * lib/argp-parse.c: Removed braces around the expansion of N_()
44174
44175 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44176
44177         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
44178         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
44179         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
44180         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
44181         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
44182         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
44183         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
44184         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
44185         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
44186         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
44187         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
44188         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
44189         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
44190         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
44191         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
44192         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
44193         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
44194         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
44195         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
44196         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
44197         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
44198         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
44199         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
44200         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
44201         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
44202         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
44203         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
44204         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
44205         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
44206         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
44207         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
44208         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
44209         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
44210         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
44211         xstrtol.m4, xstrtoumax.m4, yesno.m4:
44212         Use an all-permissive copyright notice, recommended by RMS.
44213
44214 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
44215
44216         * modules/chdir-long (Depends-on): Remove mempcpy.
44217
44218 2005-01-21  Jim Meyering  <jim@meyering.net>
44219
44220         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
44221         same value as for Solaris 9.
44222
44223         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
44224         component length.  This included changing the parameter to be
44225         of type `char *' rather than `char const *'.
44226         * lib/chdir-long.h (chdir_long): Update prototype.
44227
44228         * lib/openat.c (fdopendir, fstatat): New functions.
44229         * lib/openat.h: Include headers required for use of DIR and struct
44230         stat.
44231         [AT_SYMLINK_NOFOLLOW]: Define.
44232         (fdopendir, fstatat): Add prototypes.
44233
44234 2005-01-21  Bruno Haible  <bruno@clisp.org>
44235
44236         * modules/classpath: New file.
44237         * MODULES.html.sh (Java): Add classpath.
44238
44239 2005-01-21  Bruno Haible  <bruno@clisp.org>
44240
44241         * lib/classpath.h: New file, from GNU gettext.
44242         * lib/classpath.c: New file, from GNU gettext.
44243
44244 2005-01-20  Simon Josefsson  <jas@extundo.com>
44245
44246         * modules/version-etc-fsf: New file.
44247
44248 2005-01-20  Simon Josefsson  <jas@extundo.com>
44249
44250         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
44251         * lib/version-etc.c: Remove version_etc_copyright.
44252         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
44253         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
44254
44255 2005-01-20  Simon Josefsson  <jas@extundo.com>
44256
44257         * lib/base64.h (isbase64): Add.
44258
44259         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
44260         using a unsigned prototype, don't inline.
44261         (base64_decode): Use it.
44262
44263 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
44264
44265         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
44266         it.
44267
44268 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
44269
44270         * lib/save-cwd.c (save_cwd): Remove code to support the case
44271         where fchdir is missing or flaky.
44272
44273 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
44274
44275         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
44276
44277 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44278
44279         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
44280         AC_LIBSOURCES now does this.
44281         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
44282         with new ullong_max module.
44283
44284 2005-01-19  Bruno Haible  <bruno@clisp.org>
44285
44286         * modules/sh-quote: New file.
44287         * MODULES.html.sh (Executing programs): Add sh-quote.
44288
44289 2005-01-19  Bruno Haible  <bruno@clisp.org>
44290
44291         * lib/sh-quote.h: New file, from GNU gettext.
44292         * lib/sh-quote.c: New file, from GNU gettext.
44293
44294 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44295
44296         Merge from coreutils.
44297         * m4/ullong_max.m4: New file.
44298         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
44299         (gl_MACROS): Assume localeconv exists.
44300
44301 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44302
44303         Merge changes from coreutils, as described below in several
44304         changelogs dated today.
44305
44306         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
44307         (O_DIRECTORY): Remove; not needed here, since "." must be
44308         a directory.  All uses removed.
44309         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
44310         universal on Suns, and we also need to test for IRIX.
44311         Revamp code to use 'if' rather than '#if'.
44312         Avoid unnecessary comparison of cwd->desc to 0.
44313
44314         * lib/utimens.c (futimens): Robustify the previous patch, by checking
44315         for known valid error numbers rather than observed invalid ones.
44316
44317 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44318
44319         * modules/ullong_max: New file.
44320
44321         * modules/chdir-long, modules/openat: New files.
44322         * modules/save-cwd (Depends-on): Depend on chdir-long.
44323         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
44324
44325 2005-01-18  Jim Meyering  <jim@meyering.net>
44326
44327         Merge from coreutils.
44328         * m4/chdir-long.m4, m4/openat.m4: New files.
44329         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
44330         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
44331         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
44332         is sane and DOES follow symlinks.  Besides, testing 20 different
44333         systems found no broken chown implementations.
44334         Prompted by a change in rsync's copy of this macro.
44335         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
44336
44337         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
44338
44339         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
44340         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
44341         NULL-means-set-to-current-time semantics.
44342         Remove temporary file immediately, rather than waiting
44343         for configure's at-exit trap code to do it.
44344
44345 2005-01-18  Jim Meyering  <jim@meyering.net>
44346
44347         * lib/version-etc.c (version_etc_copyright): Update copyright date.
44348
44349         * lib/utimens.c (futimens): Account for the fact that futimes
44350         can also fail with errno == ENOSYS or errno == ENOENT.
44351         Patch from Dmitry V. Levin.
44352
44353         Change the name of the robust chdir function from chdir to chdir_long.
44354         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
44355         (restore_cwd): Use chdir_long, not chdir.
44356         * lib/chdir-long.c: Renamed from chdir.c.
44357         * lib/chdir-long.h: Renamed from chdir.h.
44358         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
44359         Hurd.
44360
44361 2005-01-18  Bruno Haible  <bruno@clisp.org>
44362
44363         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
44364         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
44365         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
44366         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
44367         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
44368         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
44369         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
44370         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
44371         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
44372         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
44373         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
44374         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
44375         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
44376         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
44377         Use an all-permissive copyright notice, recommended by RMS.
44378
44379 2005-01-18  Bob Proulx  <bob@proulx.com>
44380
44381         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
44382         simplify offsetof() macro construct to avoid compile failure with
44383         native HP-UX 11.0 ANSI C compiler.
44384
44385 2005-01-17  Bruno Haible  <bruno@clisp.org>
44386
44387         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
44388         redundant because stpncpy.m4 takes care of it.
44389
44390 2005-01-17  Bruno Haible  <bruno@clisp.org>
44391
44392         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
44393
44394 2005-01-17  Bruno Haible  <bruno@clisp.org>
44395
44396         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
44397         used.
44398
44399 2005-01-17  Bruno Haible  <bruno@clisp.org>
44400
44401         * lib/fwriteerror.h (fwriteerror): Change specification to include
44402         fclose.
44403         * lib/fwriteerror.c: Include <stdbool.h>.
44404         (fwriteerror): At the end, close the file stream. Record whether
44405         stdout was already closed.
44406
44407 2005-01-17  Bruno Haible  <bruno@clisp.org>
44408
44409         * lib/execute.c (environ): Declare if needed.
44410         * lib/pipe.c (environ): Likewise.
44411         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
44412
44413 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44414
44415         * modules/argp: Depend on vsnprintf
44416
44417 2005-01-10  Jim Meyering  <jim@meyering.net>
44418
44419         * modules/closeout (Depends-on): Add atexit.
44420
44421 2005-01-06  Bruno Haible  <bruno@clisp.org>
44422
44423         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
44424
44425 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44426
44427         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
44428         definitions to be after all include files, to avoid collisions.
44429         Problem reported by Bob Proulx.
44430
44431 2005-01-04  Jim Meyering  <jim@meyering.net>
44432
44433         Changes imported from coreutils.
44434         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
44435         as the mkstemp template, use a temporary directory and an
44436         8.3-friendly template to avoid trouble on systems like DJGPP.
44437         Reported by Juan M. Guerrero via Stepan Kasal.
44438         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
44439         close. Remove the temporary directory right away, rather than waiting
44440         for configure's at-exit trap code to do it.
44441         Suggestion from Stepan Kasal.
44442
44443 2005-01-01  Simon Josefsson  <jas@extundo.com>
44444
44445         * gnulib-tool: Print #include directives when --import'ing.
44446
44447 2004-12-28  Simon Josefsson  <jas@extundo.com>
44448
44449         * tests/test-base64.c: Include required header files.  Remove
44450         unused variables.
44451
44452 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
44453
44454         * modules/error (Depends-on): Remove gettext.
44455
44456 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
44457
44458         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
44459         not needed.  This removes a dependency on the gettext module.
44460         [defined _LIBC]: Do not include <libintl.h>; not needed.
44461
44462 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
44463
44464         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
44465         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
44466
44467 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
44468
44469         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
44470         HAVE_DECL_STRTOLD.
44471
44472 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
44473
44474         * modules/getdate (Depends-on): Remove alloca-opt.
44475
44476 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
44477
44478         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
44479
44480 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
44481
44482         * lib/argp-parse.c: Include <stddef.h>.
44483         (alignof, alignto): New macros.
44484         (parser_init): Don't assume that void * is aligned sufficiently
44485         for struct option.
44486
44487         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
44488         need to extend the stack.
44489         (YYINITDEPTH): New macro, so that the initial stack isn't overly
44490         large.
44491
44492 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44493
44494         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
44495
44496 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
44497
44498         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
44499         (2004-10-24) change.  Apparently this was a false alarm.
44500
44501         * modules/getdate: Depend on alloca-opt, not alloca.
44502
44503 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
44504
44505         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
44506         Remove now-obsolete comment about AIX.
44507         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
44508         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
44509         (YYMAXDEPTH): New macro.
44510
44511 2004-12-18  Simon Josefsson  <jas@extundo.com>
44512
44513         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
44514
44515 2004-12-18  Bruno Haible  <bruno@clisp.org>
44516
44517         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
44518
44519 2004-12-18  Bruno Haible  <bruno@clisp.org>
44520
44521         * lib/fatal-signal.c (fatal_signals): Make non-const.
44522         (init_fatal_signals): New function.
44523         (uninstall_handlers, install_handlers): Ignore signals that were set to
44524         SIG_IGN.
44525         (at_fatal_signal): Call init_fatal_signals.
44526         (init_fatal_signal_set): Likewise. Ignore signals that were set to
44527         SIG_IGN.
44528         Reported by Paul Eggert.
44529
44530 2004-12-18  Bruno Haible  <bruno@clisp.org>
44531
44532         * doc/alloca.texi: New file.
44533         * doc/alloca-opt.texi: New file.
44534
44535 2004-12-17  Jim Meyering  <jim@meyering.net>
44536
44537         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
44538         Otherwise, install-sh could exit with improper exit status when
44539         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
44540
44541 2004-12-16  Simon Josefsson  <jas@extundo.com>
44542
44543         * tests/test-base64.c: Add license.
44544
44545 2004-12-15  Stepan Kasal  <address@hidden>
44546
44547         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
44548
44549 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
44550
44551         * modules/getcwd (Files): Add m4/d-ino.m4.
44552         Suggested by Mark D. Baushke.
44553
44554 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
44555
44556         * lib/getdate.y (textint): New member "negative".
44557         (time_zone_hhmm): New function.
44558         Expect 14 shift-reduce conflicts, not 13.
44559         (o_colon_minutes): New rule.
44560         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
44561         (yylex): Set the "negative" member of signed numbers.
44562
44563 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
44564
44565         * doc/getdate.texi (Time of day items, Time zone items):
44566         Describe new formats +00:00, UTC+00:00.
44567
44568 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
44569
44570         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
44571         spurious "-l"s.  Problem reported by Stepan Kasal.
44572
44573 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
44574
44575         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
44576         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
44577
44578 2004-12-04  Simon Josefsson  <jas@extundo.com>
44579
44580         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
44581         Vandoorselaere <yoann@prelude-ids.org>.
44582
44583 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
44584
44585         Changes imported from coreutils.
44586         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
44587         exist.
44588         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
44589
44590 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
44591
44592         Changes imported from coreutils.
44593         * lib/hard-locale.c: Assume <locale.h> exists.
44594         Include "strdup.h".
44595         (GLIBC_VERSION): New macro.
44596         (hard_locale): Assume setlocale exists.
44597         Rewrite to avoid #ifdef.
44598         Use strdup rather than malloc + strcpy.
44599         * lib/human.c: Assume <locale.h> exists.
44600         (human_readable): Assume localeconv exists.
44601
44602 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
44603
44604         * modules/hard-locale (Depends-on): Add strdup.
44605
44606 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
44607
44608         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
44609         convert T2, not T.  (Imported from libc.)
44610
44611 2004-11-30  Simon Josefsson  <jas@extundo.com>
44612
44613         * modules/restrict (License): Change to LGPL.
44614
44615 2004-11-30  Simon Josefsson  <jas@extundo.com>
44616
44617         * m4/restrict.m4: Add copyright and copying conditions.
44618
44619 2004-11-30  Simon Josefsson  <jas@extundo.com>
44620
44621         * m4/base64.m4: New file.
44622
44623 2004-11-30  Simon Josefsson  <jas@extundo.com>
44624
44625         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
44626         base64.
44627
44628         * tests/test-base64.c: New file.
44629
44630         * modules/base64: New file.
44631
44632 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
44633
44634         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
44635         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
44636
44637         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
44638
44639 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
44640
44641         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
44642         (__getcwd.c): Don't restore errno; glibc doesn't.
44643         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
44644         first, falling back to our code only if its results look suspicious.
44645         Ensure that the resulting buffer is only as large as necessary.
44646
44647         * lib/readutmp.c: Include readutmp.h first.
44648         Include <errno.h>, since readutmp.h no longer does that.
44649         * lib/readutmp.h: Don't include <errno.h>,
44650         <sys/param.h>, <time.h>; not needed to establish interface.
44651         (errno): Remove decl.
44652         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
44653         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
44654         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
44655
44656 2004-11-28  Simon Josefsson  <jas@extundo.com>
44657
44658         * lib/base64.h, base64.c: New file.
44659
44660 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
44661
44662         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
44663
44664 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
44665
44666         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
44667         (Depends-on): Remove pathmax, same.  Add mempcpy.
44668         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
44669         (Makefile.am): Append getcwd.h to lib_SOURCES.
44670         (Include): Add getcwd.h.
44671         (Maintainer): Change from Jim Meyering to "all, glibc",
44672         since getdate now uses intended-for-glibc code.
44673         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
44674         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
44675
44676 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
44677
44678         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
44679         HP's ANSI C compiler.
44680         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
44681         Declaring int functions causes warnings on some modern systems and
44682         shouldn't be needed to compile on ancient ones.
44683         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
44684         defined.
44685
44686         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
44687         with the following changes.
44688         (__set_errno): Parenthesize properly.
44689         Include <stdbool.h>.
44690         (MIN, MAX, MATCHING_INO): New macros.
44691         (__getcwd): Define with prototype, not K&R form.
44692         Use heuristics to allocate default buffer on stack if possible.
44693         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
44694         behavior, and to avoid the PATH_MAX limit when computing
44695         ../../../../...
44696         Use MATCHING_INO to compare inode number to file.
44697         Check for arithmetic overflow in size calculations.
44698         Fix bug in reallocation of dot array that caused getcwd to fail
44699         on directories nested deeper than 75.
44700         Be more careful about saving errno on error.
44701         Do not use realloc; use only free+malloc, as this is a bit
44702         more flexible and avoids a needless copy operation.
44703         Do not inspect st_dev and st_ino for symbolic links; POSIX
44704         doesn't specify the latter.
44705         Check for closedir errors.
44706         Avoid needless casts.
44707         Use "#ifdef weak_alias" around weak_alias, to be like other
44708         glibc code.
44709         The following changes to getcwd.c have effect only when used in
44710         gnulib; they have no effect inside glibc proper.
44711         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
44712         as alloca isn't used.
44713         (alloca, __alloca): Likewise.
44714         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
44715         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
44716         unconditionally, as gnulib assumes C89 or better.
44717         Do not include <sys/param.h>.
44718         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
44719         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
44720         better.
44721         (NULL) [!defined NULL]: Remove; we assume C89 or better.
44722         Include <dirent.h> in a way that is compatible with modern Autoconf.
44723         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
44724         New macros, if not already defined.
44725         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
44726         Use "_LIBC", not "defined _LIBC", for consistency.
44727         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
44728         a mempcpy module.
44729         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
44730         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
44731         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
44732         credit only to Jim Meyering and adjust the copyright dates.
44733         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
44734         <stdlib.h>, <unistd.h>, "pathmax.h".
44735         Instead, include "xgetcwd.h" (first) and "getcwd.h".
44736         (INITIAL_BUFFER_SIZE): Remove.
44737         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
44738
44739 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
44740
44741         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
44742         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
44743         Use the _ONCE methods, for efficiency.
44744         Check for fcntl.h.  In test program, include <errno.h>
44745         and <fcntl.h> if available.  Remove old K&R cruft from
44746         test program.  Check for common errors in GNU/Linux,
44747         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
44748         don't do AC_LIBOBJ, as that's getcwd.m4's job.
44749         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
44750         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
44751         name accordingly.
44752         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
44753         accommodate new getcwd.c.
44754         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
44755         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
44756         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
44757         that's all we need now.
44758
44759 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44760
44761         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
44762         argp-parse.c depends on getopt internals, that means we should
44763         always use our getopt, to be on the safe side.
44764         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
44765         order not to spoil the result of an eventual previous invocation
44766         of gl_GETOPT_SUBSTITUTE.
44767
44768 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44769
44770         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
44771         redefinition warnings. To avoid them, include the defines
44772         in `#if !defined __need_getopt ... #endif'. The only place
44773         where __getopt_argv_const is used is in definitions
44774         of getopt_long and getopt_long_only below, which are as well
44775         protected by `#ifndef __need_getopt'.
44776         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
44777         __need_getopt after including <stdio.h> and <unistd.h> These
44778         headers might have defined it.
44779
44780 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
44781
44782         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
44783
44784 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
44785
44786         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
44787         (futimens): New function, which uses futimes if available.
44788         (futimens, utimens): Support timespec==NULL, with same semantics
44789         as utime and utimens.
44790         * lib/utimens.h (futimens): New decl.
44791
44792 2004-11-23  Jim Meyering  <jim@meyering.net>
44793
44794         * lib/getopt_.h: Remove trailing blanks.
44795
44796 2004-11-23  Jim Meyering  <jim@meyering.net>
44797
44798         * lib/__fpending.c: Add comment.
44799
44800 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
44801
44802         * modules/canonicalize (Depends-on): Add xreadlink.
44803         Problem reported by James Youngman.
44804
44805 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
44806
44807         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
44808         New macros.
44809         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
44810         optopt): Use them instead of invoking ## directly; otherwise, the
44811         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
44812
44813 2004-11-19  Bruno Haible  <bruno@clisp.org>
44814
44815         * lib/strtok_r.c: Move comments from here...
44816         * lib/strtok_r.h: ... to here.
44817
44818 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44819
44820         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
44821         implementations that mishandle size_t overflow.
44822
44823 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44824
44825         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
44826         might fail.  Problem reported by Yoann Vandoorselaere.
44827         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
44828         implementations that mishandle size_t overflow.
44829
44830 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44831
44832         * modules/canon-host (Depends-on): Add strdup.
44833
44834 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44835
44836         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
44837
44838 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44839
44840         * lib/canon-host.c: Include "strdup.h".
44841         (canon_host): Use getaddrinfo if available, so that IPv6 works.
44842         Use strdup instead of malloc/strcpy to duplicate strings.
44843
44844         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
44845         (human_space_before_unit): New constant.
44846         * lib/human.c (human_readable): Support it.
44847
44848         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
44849         (xgetcwd): Set errno correctly when failing.
44850         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
44851         the failure is actually due to a PATH_MAX problem.
44852
44853         Further getopt changes to make it more likely that glibc will
44854         buy the changes back.
44855         * lib/getopt.c (POSIXLY_CORRECT): New constant.
44856         (getopt): Use it, so to preserve glibc semantic
44857         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
44858         when compiling for libc.
44859         * lib/getopt_.h (__getopt_argv_const): Bring it back.
44860         (getopt_long, getopt_long_only): Use it.
44861
44862         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
44863         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
44864         (getopt): Argv is now char * const *, as per standard.
44865         (_getopt_internal_r, _getopt_internal): Argv is now char **,
44866         not char *__getopt_argv_const *.
44867         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
44868         _getopt_long_only_r): Likewise.
44869         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
44870         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
44871         _getopt_long_r, _getopt_long_only_r): Likewise.
44872         * lib/getopt_.h (__getopt_argv_const): Remove.
44873         (getopt): Argv is now char * const *, as per standard.
44874
44875         * lib/getdate.y (tORDINAL): New token.
44876         (day, relunit): Allow it for relative times.
44877         (relative_time_table): Use tORDINAL for ordinals.
44878
44879 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44880
44881         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
44882         Document that "second" isn't allowed as an ordinal number.
44883
44884 2004-11-16  Jim Meyering  <jim@meyering.net>
44885
44886         * modules/closeout (Depends-on): Add fpending.
44887
44888 2004-11-15  Jim Meyering  <jim@meyering.net>
44889
44890         * lib/closeout.c: Include "__fpending.h" once again.
44891         Include <stdbool.h>.
44892         (close_stdout): Don't fail just because stdout was closed initially,
44893         since some programs don't write to stdout in the normal course of
44894         operation (other than --version and --help), and we don't want this
44895         function to make e.g. `touch file >&-' fail.
44896         But do fail if it was closed and someone has tried to write to it.
44897         E.g., `printf foo >&-' must fail.
44898
44899 2004-11-13  Jim Meyering  <jim@meyering.net>
44900
44901         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
44902
44903 2004-11-12  Simon Josefsson  <jas@extundo.com>
44904
44905         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
44906         small doc fix is still pending.
44907
44908 2004-11-11  Simon Josefsson  <jas@extundo.com>
44909
44910         * modules/strtok_r: New file.
44911
44912         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44913         strtok_r.
44914
44915 2004-11-11  Simon Josefsson  <jas@extundo.com>
44916
44917         * m4/strtok_r.m4: New file.
44918
44919         * m4/getopt.m4: Replace opterr.
44920
44921 2004-11-11  Simon Josefsson  <jas@extundo.com>
44922
44923         * lib/strtok_r.h, strtok_r.c: New file.
44924
44925 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
44926
44927         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
44928         of replacing opterr, getopt, etc.  This should handle the
44929         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
44930
44931 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
44932
44933         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
44934         we can stop lying to compilers about the constness of argv when we
44935         are compiled outside glibc.
44936         (getopt, getopt_long, getopt_long_only): Use it.
44937         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
44938         _getopt_internal, getopt): Likewise.
44939         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
44940         _getopt_long_only_r): Likewise.
44941         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
44942         _getopt_long_r, _getopt_long_only_r): Likewise.
44943
44944         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
44945         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
44946         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
44947         the other external symbols.
44948         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
44949         declaration, since the above renaming now works around collisions.
44950
44951 2004-11-11  Jim Meyering  <jim@meyering.net>
44952
44953         * lib/linebreak.c: Remove trailing blanks.
44954         * lib/alloca_.h: Likewise.
44955         * lib/acosl.c: Likewise.
44956         * lib/euidaccess.c: Likewise.
44957         * lib/allocsa.h: Likewise.
44958
44959 2004-11-10  Simon Josefsson  <jas@extundo.com>
44960
44961         * m4/getaddrinfo.m4: New file.
44962
44963 2004-11-10  Simon Josefsson  <jas@extundo.com>
44964
44965         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
44966
44967 2004-11-10  Simon Josefsson  <jas@extundo.com>
44968
44969         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44970         getaddrinfo.
44971
44972         * modules/getaddrinfo: New file.
44973
44974 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
44975
44976         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
44977
44978 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
44979
44980         * lib/mktime.c (SHR): New macro, which is a portable
44981         substitute for >> that should work even on Crays.
44982         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
44983         Problem reported by Mark D. Baushke in
44984         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
44985         * lib/getdate.y (SHR): Likewise.
44986         (tm_diff): Use it.
44987         * lib/strftime.c (SHR): Likewise.
44988         (tm_diff): Use it.
44989         * lib/quotearg.c (struct quoting_options): Use unsigned int for
44990         quote_these_too, so that right shifts are well defined.  All uses
44991         changed.
44992
44993 2004-11-10  Jim Meyering  <jim@meyering.net>
44994
44995         Ensure that no close failure goes unreported.
44996         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
44997         return early when it seems there's nothing to flush.
44998         Don't include __fpending.h.
44999
45000 2004-11-10  Jim Meyering  <jim@meyering.net>
45001
45002         * modules/closeout (Depends-on): Remove fpending.
45003
45004 2004-11-10  Jim Meyering  <jim@meyering.net>
45005
45006         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
45007
45008 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
45009
45010         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
45011         gl_FUNC_STRFTIME.
45012         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
45013         and AC_REQUIRE when possible, to avoid duplicate checks.
45014         Check for <wchar.h>.
45015
45016 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
45017
45018         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
45019
45020 2004-11-09  Bruno Haible  <bruno@clisp.org>
45021
45022         * m4/sockpfaf.m4: New file.
45023
45024 2004-11-05  Bruno Haible  <bruno@clisp.org>
45025
45026         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
45027         Reported by Mark D. Baushke <mdb@cvshome.org>.
45028
45029 2004-11-04  Bruno Haible  <bruno@clisp.org>
45030
45031         2004-09-11  Bruno Haible  <bruno@clisp.org>
45032                 * allocsa.valgrind: New file.
45033         2004-02-06  Bruno Haible  <bruno@clisp.org>
45034                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
45035                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
45036                 Reported by Christopher Seip <chris.seip@hp.com>.
45037
45038 2004-11-04  Bruno Haible  <bruno@clisp.org>
45039
45040         * modules/allocsa (Files): Add lib/allocsa.valgrind.
45041         (Makefile.am): Distribute it.
45042
45043 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
45044
45045         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
45046         with errno == ERANGE if the buffer is too small.
45047         Problem reported by Mark D. Baushke.
45048
45049 2004-11-03  Albert Chin  <china@thewrittenword.com>
45050             Paul Eggert  <eggert@cs.ucla.edu>
45051
45052         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
45053         equivalent, substitute $ac_type for equivalent type rather than
45054         blindly using uint32_t *always* which won't work if uint32_t is not
45055         available.  Define _UINT32_T to work around typedef of uint32_t if
45056         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
45057         2.5.1.
45058
45059 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
45060
45061         * m4/jm-macros.m4: Sync from coreutils.
45062         (gl_MACROS): Check for mbrlen, for pathchk.
45063         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
45064
45065 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
45066
45067         * lib/xreadlink.c (MAXSIZE): New macro.
45068         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
45069         size does not exceed MAXSIZE.  Avoid cast.
45070         As suggested by Mark D. Baushke in
45071         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
45072         if readlink fails with buffer size just under MAXSIZE, try again
45073         with MAXSIZE.
45074
45075 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
45076
45077         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
45078
45079 2004-11-02  Derek R. Price  <derek@ximbiot.com>
45080         and  Paul Eggert  <eggert@cs.ucla.edu>
45081
45082         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
45083         (get_date): Overparenthesize to avoid GCC warning.
45084
45085 2004-11-02  Bruno Haible  <bruno@clisp.org>
45086
45087         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
45088         returns void.
45089
45090 2004-11-02  Bruno Haible  <bruno@clisp.org>
45091
45092         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
45093         function returns void.
45094
45095 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45096
45097         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
45098         fflush_unlocked, flockfile, funlockfile, funlockfile,
45099         fputs_unlocked, putc_unlocked.
45100
45101 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45102
45103         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
45104         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
45105         already declared.
45106
45107 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
45108
45109         * modules/getdate (Files): Add doc/getdate.texi.
45110         (Depends-on): Add setenv, xalloc.
45111
45112 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
45113
45114         * lib/getdate.y: Add support for TZ="foo" within a date string.
45115         Fix some bugs near time_t boundaries.  Reject dates with
45116         out-of-range components, e.g., "Sept 31".
45117         Include <stdlib.h>, "setenv.h", "xalloc.h".
45118         (ISDIGIT_LOCALE): Remove; unused.
45119         Note that the TZ and time functions used here are not reentrant.
45120         (mktime_ok, get_tz): New functions.
45121         (TZBUFSIZE): New constant.
45122         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
45123         This requires that we sometimes generate our own TZ="XXX..." setting.
45124
45125 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
45126
45127         * doc/getdate.texi: New file, from coreutils with modifications for
45128         the new TZ parsing.
45129
45130 2004-10-27  Derek R. Price  <derek@ximbiot.com>
45131
45132         * lib/mktime.c (not_equal_tm): Remove redundant check.
45133
45134 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45135
45136         * modules/regex (lib_SOURCES): Add regex.c.
45137         Reported by James Youngman in
45138         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
45139
45140 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45141
45142         * lib/getdate.y: Use Bison 1.875 features, and some minor
45143         code cleanups.  This change does not affect semantics.
45144         Don't include <stdlib.h>; no longer needed.
45145         Don't include unlocked-io.h; only the "#if TEST" code uses
45146         stdio, and performance isn't crucial there.
45147         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
45148         Bison 1.875 features as described below.
45149         All uses of "PC." replaced by "pc->".
45150         (YYSTYPE): Add a forward declaration.
45151         (yylex, yyerror): Use full prototypes in forward decls.
45152         Use "%pure-parser" rather than obsolescent "%pure_parser".
45153         Use %parse-param and %lex-param instead of obsolescent
45154         YYPARSE_PARAM and YYLEX_PARAM.
45155         (meridian_table, month_and_day_table, time_units_table,
45156         relative_time_table, time_zone_table, military_table,
45157         lookup_zone, lookup_word, get_date):
45158         Use NULL instead of 0 where appropriate.
45159         (to_hour): Avoid abort (), to avoid a dependency on
45160         stdlib.h.
45161         (yyerror, yylex): Now accepts parser_control * arg.
45162         (main) [TEST]: Use '\0' rather than 0 for char.
45163
45164 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45165
45166         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
45167
45168 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45169
45170         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
45171         It's now the caller's responsibility to handle the case where
45172         !HAVE_GETPAGESIZE && !defined getpagesize.
45173
45174         * lib/mktime.c (leapyear): Arg is long int, not int.
45175
45176 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
45177
45178         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
45179
45180 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45181
45182         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
45183         missing.  Problem reported by James Youngman.
45184
45185 2004-10-16  Simon Josefsson  <jas@extundo.com>
45186
45187         * gnulib-tool: Fix comments.  Fix parse problem.
45188         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
45189
45190 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
45191
45192         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
45193         implementation of getopt_long.  Problem reported by Alexander Taler in:
45194         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
45195
45196 2004-10-15  Bruno Haible  <bruno@clisp.org>
45197
45198         * gnulib-tool: Untabify. Initialize supplied_libname.
45199         (func_usage): More homogenous output.
45200         (func_modules_transitive_closure, func_modules_to_filelist,
45201         func_emit_lib_Makefile_am): New functions.
45202         (func_import): New function, extracted from big case statement. Use
45203         func_get_license, func_modules_transitive_closure,
45204         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
45205         opt_lgpl. Don't use test -a, as it's not portable.
45206         (func_create_testdir): Use func_modules_transitive_closure,
45207         func_modules_to_filelist, func_emit_lib_Makefile_am.
45208
45209 2004-10-15  Bruno Haible  <bruno@clisp.org>
45210
45211         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
45212
45213 2004-10-15  Bruno Haible  <bruno@clisp.org>
45214
45215         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
45216         the portions belonging to each module.
45217         Suggested by Derek Robert Price <derek@ximbiot.com>.
45218
45219 2004-10-12  Simon Josefsson  <jas@extundo.com>
45220
45221         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
45222         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
45223         to real functions.
45224
45225 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45226
45227         * modules/vsnprintf: New file.
45228
45229 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45230
45231         * m4/vsnprintf.m4: New file.
45232
45233 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45234
45235         * lib/vsnprintf.h: New file.
45236         * lib/vsnprintf.c: New file.
45237
45238 2004-10-11  Bruno Haible  <bruno@clisp.org>
45239
45240         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
45241         vsnprintf.
45242
45243 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
45244
45245         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
45246
45247 2004-10-07  Bruno Haible  <bruno@clisp.org>
45248
45249         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
45250         fits into the provided buffer.
45251
45252 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
45253
45254         * lib/diacrit.c, diacrit.h: Add GPL notice.
45255
45256         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
45257         notice.
45258         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
45259         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
45260         This avoids a potential constant-folding bug.
45261
45262 2004-10-05  Bruno Haible  <bruno@clisp.org>
45263
45264         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
45265         for the declaration of strsep.
45266
45267 2004-10-05  Bruno Haible  <bruno@clisp.org>
45268
45269         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
45270
45271 2004-10-04  Simon Josefsson  <jas@extundo.com>
45272
45273         * modules/memmem: New file.
45274         * tests/test-memmem.c: New file.
45275         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
45276
45277 2004-10-04  Simon Josefsson  <jas@extundo.com>
45278
45279         * m4/memmem.m4: New file.
45280
45281 2004-10-04  Simon Josefsson  <jas@extundo.com>
45282
45283         * lib/memmem.h: New file.
45284         * lib/memmem.c: New file, taken from glibc.
45285
45286 2004-10-04  Simon Josefsson  <jas@extundo.com>
45287
45288         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
45289         '#ifdef USE_UNLOCKED_IO'.
45290
45291 2004-10-04  Simon Josefsson  <jas@extundo.com>
45292
45293         * config/srclist.txt: Add memmem from glibc.
45294
45295 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
45296
45297         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
45298
45299         * modules/argmatch, modules/argp, modules/closeout, modules/error,
45300         modules/exclude, modules/getdate, modules/getline,
45301         modules/getndelim2, modules/getpass, modules/getpass-gnu,
45302         modules/getusershell, modules/linebuffer, modules/md5,
45303         modules/mountlist, modules/posixtm, modules/readtokens,
45304         modules/readutmp, modules/regex, modules/sha1,
45305         modules/version-etc, modules/yesno:
45306         Remove dependency on unlocked-io.
45307
45308 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
45309
45310         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
45311
45312         * m4/unlocked-io.m4: Add copyright notice.
45313         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
45314
45315 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
45316
45317         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
45318         * lib/xmalloc.c (xmemdup): Likewise.
45319         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
45320         XFREE): Remove these long-obsolescent macros.
45321         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
45322         * lib/xstrdup.c: Remove.
45323
45324         * lib/regex.c (re_comp): Cast gettext return value to char *,
45325         Problem reported by Martin Neitzel via Mark D. Baushke.
45326
45327 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
45328
45329         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
45330         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
45331         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
45332         regex.c, sha1.c, version-etc.c, yesno.c:
45333         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
45334         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
45335         the includer's responsibility.
45336
45337         Sync from coreutils.
45338
45339         * lib/modechange.c (mode_compile): Don't decrement a pointer that
45340         points to the start of a string, as the C Standard says the
45341         resulting behavior is undefined.
45342
45343         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
45344         simple -> simple_backups, numbered_existing ->
45345         numbered_existing_backups, numbered -> numbered_backups
45346         to avoid shadowing problems.  All uses changed.
45347         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
45348         * lib/backupfile.c (check_extension, numbered_backup):
45349         Rename locals to avoid shadowing 'basename'.
45350         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
45351         once.
45352
45353         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
45354         * lib/.cvsignore: Add getopt.h.
45355
45356 2004-10-04  Bruno Haible  <bruno@clisp.org>
45357
45358         * modules/README: New file.
45359         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
45360         not a module.
45361
45362 2004-10-02  Jim Meyering  <jim@meyering.net>
45363
45364         * lib/dirfd.h, getpagesize.h: Add copyright notice.
45365
45366 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45367
45368         * modules/strsep: New file.
45369
45370 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45371
45372         * m4/strsep.m4: New file.
45373
45374 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45375
45376         * lib/strsep.h: New file.
45377         * lib/strsep.c: New file.
45378
45379 2004-10-01  Simon Josefsson  <jas@extundo.com>
45380
45381         * lib/snprintf.c (snprintf): Handle size==0.
45382
45383 2004-10-01  Simon Josefsson  <jas@extundo.com>
45384             Bruno Haible  <bruno@clisp.org>
45385
45386         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
45387         (snprintf): Declare 'args'.
45388
45389 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
45390
45391         * lib/snprintf.c: Remove comments as to why each header is needed.
45392
45393 2004-10-01  Bruno Haible  <bruno@clisp.org>
45394
45395         * MODULES.html.sh: Add strsep.
45396
45397 2004-09-30  Simon Josefsson  <jas@extundo.com>
45398
45399         * modules/snprintf: New file.
45400
45401 2004-09-30  Simon Josefsson  <jas@extundo.com>
45402
45403         * m4/snprintf.m4: New file.
45404
45405 2004-09-30  Simon Josefsson  <jas@extundo.com>
45406
45407         * lib/snprintf.h, lib/snprintf.c: New files.
45408
45409 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
45410
45411         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
45412         (hol_entry_help): Never translate an empty string.
45413         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
45414         * lib/argp.h (OPTION_NO_TRANS): New option.
45415
45416 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
45417
45418         * modules/argp (Maintainer): Replace Simon Josefsson
45419         by Sergey Poznyakoff.
45420
45421 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
45422
45423         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
45424         changes merged back into glibc.
45425
45426 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
45427
45428         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
45429
45430 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
45431
45432         * lib/xvasprintf.c: Include xalloc.h.
45433         (xvasprintf): Use xalloc_die, not xmalloc_die.
45434
45435 2004-09-29  Bruno Haible  <bruno@clisp.org>
45436
45437         * modules/alloca-opt: New file, derived from modules/alloca.
45438         * modules/allocsa: Depend on alloca-opt instead of alloca.
45439         * modules/setenv: Likewise.
45440         * modules/vasnprintf: Likewise.
45441         * MODULES.html.sh: Add alloca-opt.
45442
45443 2004-09-28  Simon Josefsson  <jas@extundo.com>
45444
45445         * gnulib-tool: New parameter --lgpl, to asseert that modules are
45446         LGPL, and to replace license template from GPL to LGPL.
45447
45448 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
45449
45450         * modules/dummy: Change license to LGPL.
45451
45452 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
45453
45454         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
45455
45456 2004-09-24  Simon Josefsson  <jas@extundo.com>
45457
45458         * modules/minmax (License): Change from GPL to LGPL.
45459
45460 2004-09-23  Simon Josefsson  <jas@extundo.com>
45461
45462         * gnulib-tool (--import): Typo.
45463
45464 2004-09-23  Simon Josefsson  <jas@extundo.com>
45465
45466         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
45467
45468 2004-09-22  Bruno Haible  <bruno@clisp.org>
45469
45470         * modules/*: Add 'License' field.
45471         * gnulib-tool: Accept --extract-license option.
45472         (func_get_license): New function.
45473
45474 2004-09-21  Bruno Haible  <bruno@clisp.org>
45475
45476         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
45477         Reported by Simon Josefsson.
45478
45479 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
45480
45481         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
45482         gl_AC_TYPE_LONG_LONG.
45483
45484 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
45485
45486         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
45487
45488 2004-09-18  Simon Josefsson  <jas@extundo.com>
45489         and  Paul Eggert  <eggert@cs.ucla.edu>
45490
45491         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
45492         calls with autoreconf.  Define GL_LIB.
45493
45494 2004-09-14  Karl Berry  <karl@gnu.org>
45495
45496         * config/srclist.txt: unsync setenv.c, sigh.
45497
45498 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
45499
45500         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
45501         Problem reported by Bruno Haible in:
45502         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
45503
45504 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
45505
45506         * config/srclist.txt: Comment out argp-pvh.c.
45507
45508 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
45509
45510         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
45511         in case some system header has #define'd it.  Problem reported by
45512         Soeren D. Schulze in
45513         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
45514
45515 2004-09-09  Karl Berry  <karl@gnu.org>
45516
45517         * regex.[ch]: delete from the root.  These were supposed to be
45518                 synced with emacs cvs, but this has not happened for about
45519                 a year, and anyway nothing else uses emacs regex.[ch].
45520                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
45521                 lib/regex[.ch] is untouched.
45522
45523 2004-09-09  Bruno Haible  <bruno@clisp.org>
45524
45525         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
45526
45527 2004-09-09  Bruno Haible  <bruno@clisp.org>
45528
45529         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
45530         modifications.
45531         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
45532
45533 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
45534
45535         * modules/xvasprintf: New file.
45536         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
45537
45538 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
45539
45540         * lib/xvasprintf.h: New file.
45541         * lib/xvasprintf.c: New file.
45542         * lib/xasprintf.c: New file.
45543
45544 2004-09-08  Bruno Haible  <bruno@clisp.org>
45545
45546         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
45547
45548 2004-09-08  Bruno Haible  <bruno@clisp.org>
45549
45550         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
45551         length is > INT_MAX.
45552         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
45553         more.
45554
45555 2004-09-08  Bruno Haible  <bruno@clisp.org>
45556
45557         * lib/stdint_.h: New file, taken from GNU clisp.
45558
45559 2004-09-08  Bruno Haible  <bruno@clisp.org>
45560             Oskar Liljeblad  <oskar@osk.mine.nu>
45561
45562         * modules/stdint: New file.
45563         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
45564
45565 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45566
45567         Import from coreutils.
45568         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
45569         strings on unbounded length.  alloca's performance benefits aren't
45570         that important here.
45571         (V_STRDUP): Remove.
45572         (parse_with_separator): New function, with most of the internals
45573         of the old parse_user_spec.  Allow user to omit both user and group,
45574         for compatibility with FreeBSD.
45575         Clone only the user name, not the entire spec.
45576         Do not set *uid, *gid unless entirely successful.
45577         Avoid memory leak in some failing cases.
45578         Fix regression for USER.GROUP reported by Dmitry V. Levin in
45579         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
45580         (parse_user_spec): Rewrite to use parse_with_separator.
45581
45582 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45583
45584         * modules/userspec: Don't depend on alloca.
45585
45586 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45587
45588         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
45589
45590 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45591
45592         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
45593         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
45594         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
45595
45596 2004-08-16  Simon Josefsson  <jas@extundo.com>
45597
45598         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
45599         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
45600         Add --dry-run for --import.
45601         Let user provided command line parameters override configure.ac
45602         settings.
45603
45604 2004-08-12  Simon Josefsson  <jas@extundo.com>
45605
45606         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
45607         as discussed with Paul Eggert in threads rooted at
45608         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
45609         and
45610         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
45611         Before, the test was empty, and relied on ELIDE_CODE in source
45612         code.)
45613         (gl_PREREQ_GETOPT): New macro.
45614         (gl_GETOPT): Use them.
45615
45616 2004-08-12  Simon Josefsson  <jas@extundo.com>
45617
45618         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
45619         * lib/getopt_.h: Renamed from getopt.h.
45620
45621 2004-08-12  Simon Josefsson  <jas@extundo.com>
45622
45623         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
45624         Change default library name from libfoo to libgnu.
45625         Now, if you have a configure.ac that says:
45626                 gl_SOURCE_BASE(gl)
45627                 gl_M4_BASE(gl/m4)
45628                 gl_MODULES(error getopt etcetera)
45629                 gl_INIT
45630         you can import all you need by running:
45631                 ../gnulib/gnulib-tool --import
45632
45633         * modules/getopt (Files): Rename getopt.h to getopt_.h.
45634         (Makefile.am): Rewrite, use logic from argz.
45635         (Include): Use <getopt.h> instead of "getopt.h".
45636
45637 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
45638
45639         * modules/argp (Files): Add m4/unlocked-io.m4.
45640         (Depends-on): Add extensions.
45641
45642 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
45643
45644         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
45645         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
45646         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
45647         Check for program_invocation_name, program_invocation_short_name,
45648         flockfile, funlockfile, features.h, _getopt_long_only_r.
45649
45650 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
45651
45652         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
45653         its complicated substitute.
45654         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
45655         and program_invocation_name.
45656         (__argp_basename) [!_LIBC]: Remove; the only use was
45657         replaced by its body.
45658         (__argp_short_program_name): Change condition from
45659         !defined __argp_short_program_name to
45660         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
45661         to match argp-namefrob.h.
45662         (__argp_failure): Don't assume strerror_r returns char *.
45663         * lib/argp-parse.c (N_): Define unconditionally.
45664         (argp_default_options): Fill out initializers with 0 to avoid
45665         gcc warnings.
45666
45667 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
45668
45669         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
45670         getopt1.c.
45671
45672 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45673
45674         Merge from coreutils.
45675
45676         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
45677
45678         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
45679         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
45680
45681 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45682
45683         Merge from coreutils.
45684
45685         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
45686         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
45687         for Reliant Unix 5.43.
45688
45689         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
45690         (union fooround): Use uintmax_t, not long int.
45691         The rest is a merge from libc:
45692         [defined _LIBC]: Include <shlib-compat.h>.
45693         (_obstack) [defined _LIBC]: Remove after 2.3.4.
45694
45695         * lib/settime.c (settime): Recode to avoid warning with
45696         Sun Forte C 6U2.
45697
45698         * lib/strverscmp.c: Convert to UTF-8.
45699
45700 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45701
45702         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
45703         m4/uintmax_t.m4.
45704
45705 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45706
45707         * modules/xalloc-die: New file.
45708         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
45709
45710         * modules/md5 (Files): Add m4/uint32_t.m4.
45711         * modules/sha1: Renamed from modules/sha.
45712         (Files):
45713         Rename lib/sha.h to lib/sha1.h.
45714         Rename lib/sha.c to lib/sha1.c.
45715         Rename m4/sha.m4 to m4/sha1.m4.
45716         (lib_SOURCES): Likewise.
45717         (configure.ac): Rename gl_SHA to gl_SHA1.
45718         (Include): sha.h -> sha1.h.
45719
45720 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45721
45722         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
45723         * m4/sha1.m4: Renamed from sha.m4.
45724         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
45725
45726 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45727
45728         * lib/obstack.h (obstack_empty_p):
45729         Don't assume that chunk->contents is suitably aligned.
45730         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
45731         Likewise. Problem reported by Benno in
45732         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
45733
45734         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
45735         readable.  This could be improved further but it'd take some work.
45736
45737 2004-08-08  Simon Josefsson  <jas@extundo.com>
45738
45739         * modules/xgethostname (Depends-on): Remove exit and error (not
45740         used).
45741
45742         * modules/getpass-gnu: Add getpass.h.
45743         (Depends-on): Add stdbool.
45744         * modules/getpass: Add getpass.h.
45745
45746 2004-08-08  Simon Josefsson  <jas@extundo.com>
45747
45748         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
45749         Check getpass declaration.
45750
45751 2004-08-08  Simon Josefsson  <jas@extundo.com>
45752
45753         * lib/xgethostname.c: Don't include error.h (not used).
45754
45755         * lib/getpass.h: Add.
45756         * lib/getpass.c: Include getpass.h first.
45757
45758 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
45759
45760         * lib/xalloc-die.c: New file.
45761         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
45762         All uses removed.
45763         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
45764         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
45765         xalloc-die.c.
45766         (_, N_, xalloc_die): Move to xalloc-die.c.
45767         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
45768         so that we needn't mess with xalloc_msg_memory_exhausted.
45769
45770         * lib/sha1.h: Renamed from sha.h.
45771         (SHA1_H): Renamed from _SHA_H.
45772         (sha1_ctx): Renamed from sha_ctx.
45773         (sha1_init_ctx): Renamed from sha_init_ctx.
45774         (sha1_process_block): Renamed from sha_process_block.
45775         (sha1_process_bytes): Renamed from sha_process_bytes.
45776         (sha1_finish_ctx): Renamed from sha_finish_ctx.
45777         (sha1_read_ctx): Renamed from sha_read_ctx.
45778         (sha1_stream): Renamed from sha_stream.
45779         (sha1_buffer): Renamed from sha_buffer.
45780         * lib/sha1.c: Likewise; renamed from sha.c.
45781         Do not include <sys/types.h>.
45782         Include <stddef.h> rather than <stdlib.h>.
45783
45784 2004-08-08  Bruno Haible  <bruno@clisp.org>
45785
45786         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
45787         FILESYSTEM_PREFIX_LEN.
45788         * lib/progreloc.c: Likewise.
45789         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
45790
45791 2004-08-06  Simon Josefsson  <jas@extundo.com>
45792
45793         * modules/progname (Depends-on): Don't depend on stdbool.
45794
45795 2004-08-06  Simon Josefsson  <jas@extundo.com>
45796
45797         * modules/getsubopt: New file.
45798         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45799         getsubopt.
45800
45801 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
45802
45803         More merge from coreutils.
45804
45805         * m4/utimens.m4, m4/utimecmp.m4: New files.
45806         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
45807         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
45808         prereq.m4, sha.m4: Import changes from coreutils.
45809
45810 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
45811
45812         More merge from coreutils.
45813         * modules/raise, modules/readtokens0, modules/utimens:
45814         * modules/utimecmp, module/xnanosleep: New files.
45815         * modules/strftime: Add lib/strftime.h.
45816         Change include from <time.h> to "strftime.h".
45817         * modules/yesno: Add lib/yesno.h.
45818         * modules/backupfile: Remove lib/addext.c.
45819         * modules/euidaccess: Add stat-macros.h.
45820         * modules/canonicalize, modules/euidaccess,
45821         modules/filemode, modules/lchown, modules/makepath,
45822         modules/rmdir, modules/stat: Likewise.
45823
45824 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
45825
45826         Merge from tar.
45827         * lib/argp-help.c (make_hol, hol_append): Don't assume that
45828         SIZE_MAX is a valid preprocessor constant.
45829         (__argp_basename): Change from "#ifndef _LIBC"
45830         to "#ifndef __argp_short_program_name", so that
45831         we don't compile these functions for tar.
45832
45833         More merges from coreutils.
45834         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
45835         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
45836         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
45837         * lib/addext.c: Remove; no longer needed.
45838         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
45839         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
45840         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
45841         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
45842         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
45843         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
45844         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
45845         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
45846         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
45847         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
45848         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
45849         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
45850         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
45851         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
45852         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
45853         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
45854         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
45855         Import changes from coreutils.
45856
45857 2004-08-05  Simon Josefsson  <jas@extundo.com>
45858
45859         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
45860
45861 2004-08-05  Simon Josefsson  <jas@extundo.com>
45862
45863         * m4/getsubopt.m4: New file.
45864
45865 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
45866
45867         Merge from coreutils.
45868
45869         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
45870         * m4/getcwd-path-max.m4: New files.
45871
45872         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
45873         FILESYSTEM_PREFIX_LEN ->
45874         FILE_SYSTEM_PREFIX_LEN.
45875         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
45876         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
45877         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
45878         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
45879
45880         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
45881         prerequisite modules now handle the DOS stuff.
45882         Don't check for unistd.h.
45883
45884 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
45885
45886         Merge from coreutils.
45887
45888         * lib/.gdb-history: Remove; this doesn't belong here.
45889
45890         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
45891         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
45892         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
45893         * lib/getcwd.c: New files.
45894
45895         * lib/dirname.h: Include <stdbool.h>.
45896         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
45897         for consistency with POSIX terminology.  All uses changed.
45898         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
45899         (strip_trailing_slashes): Use bool for booleans.
45900         * lib/stripslash.c (strip_trailing_slashes): Likewise.
45901
45902         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
45903         sometimes returns a positive errno value even when it succeeds.
45904         (print_errno_message) [!LIBC]: Fall back on strerror if
45905         __strerror_r fails.
45906
45907         * lib/path-concat.c (mempcpy): Don't define if a system header defines
45908         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
45909         (longest_relative_suffix): New function.
45910         (path_concat): Use it.  Assume first argument is not NULL.
45911         Port to DOS.  Omit redundant separators.
45912         Report an error instead of returning NULL.
45913         Use mempcpy instead of memcpy.
45914         (xpath_concat): Remove: not declared or used.
45915
45916         * lib/same.h: Include <stdbool.h>
45917         (same_name): Return bool, not int.
45918         * lib/same.c (same_name): Likewise.
45919         (errno): Don't declare; we assume C89 or better now.
45920
45921         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
45922         if not already defined.
45923
45924         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
45925         * lib/dup-safer.c (errno): Likewise.
45926
45927 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
45928
45929         Merge from coreutils.
45930         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
45931         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
45932         * modules/path-concat: Don't depend on strdup.
45933
45934 2004-08-03  Simon Josefsson  <jas@extundo.com>
45935
45936         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
45937         * lib/progname.h: Don't include stdbool.h.
45938
45939 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
45940
45941         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
45942         * MODULES.html.sh (func_all_modules): Remove fatal.
45943
45944 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
45945
45946         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
45947
45948 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
45949
45950         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
45951         working.
45952
45953 2004-08-02  Simon Josefsson  <jas@extundo.com>
45954
45955         * lib/getsubopt.h: New file, with comments from Bruno Haible.
45956         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
45957         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
45958
45959 2004-08-01  Simon Josefsson  <jas@extundo.com>
45960
45961         * lib/xgetdomainname.c: Include stdlib.h, for free().
45962
45963 2004-07-19  Bruno Haible  <bruno@clisp.org>
45964
45965         * MODULES.html.sh (func_all_modules): Add dummy.
45966
45967 2004-07-16  Simon Josefsson  <jas@extundo.com>
45968
45969         * modules/dummy: New file.
45970
45971 2004-07-16  Simon Josefsson  <jas@extundo.com>
45972
45973         * lib/dummy.c: New file.
45974
45975 2004-07-16  Bruno Haible  <bruno@clisp.org>
45976
45977         * lib/backupfile.h: Add extern "C" for C++.
45978         * lib/closeout.h: Likewise.
45979         * lib/copy-file.h: Likewise.
45980         * lib/findprog.h: Likewise.
45981         * lib/full-write.h: Likewise.
45982         * lib/pathname.h: Likewise.
45983         * lib/progname.h: Likewise.
45984         * lib/stpcpy.h: Likewise.
45985         * lib/stpncpy.h: Likewise.
45986         * lib/strcase.h: Likewise.
45987         * lib/strstr.h: Likewise.
45988         * lib/xalloc.h: Likewise.
45989
45990         * lib/mbswidth.h: Add extern "C" for C++.
45991         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
45992
45993 2004-07-13  Robert Millan  <robertmh@gnu.org>
45994
45995         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
45996
45997 2004-07-09  Simon Josefsson  <jas@extundo.com>
45998
45999         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
46000         failed without this.)
46001
46002 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46003
46004         * modules/chown (Files): Add lib/fchown-stub.c, since
46005         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
46006
46007 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46008
46009         * lib/fchown-stub.c: New file.
46010
46011 2004-06-24  Jim Meyering  <jim@meyering.net>
46012
46013         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
46014
46015 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46016
46017         * modules/argz: Omit "#include".
46018
46019         * MODULES.html.sh (func_all_modules): Add calloc, to match
46020         2004-06-01 addition of calloc module.
46021
46022 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46023
46024         * m4/argz.m4: New file, which is autoupdated from libtool.
46025
46026 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46027
46028         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
46029         libtool.
46030
46031 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46032
46033         * config/srclist-update: Don't insist on "USA." before the
46034         close-comment, as libtool omits the period and puts the */ on a
46035         separate line.
46036         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
46037         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
46038
46039 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
46040
46041         * modules/argz: New file.
46042         * MODULES.html.sh (func_all_modules): Add argz.
46043
46044 2004-06-12  Jim Meyering  <jim@meyering.net>
46045         and  Paul Eggert  <eggert@cs.ucla.edu>
46046
46047         * modules/hash (Files): Add lib/xalloc.h.
46048         * modules/pipe (Depends-on): Add wait-process.
46049         * modules/stat (Depends-on): Add xalloc.
46050         * modules/userspec (Files): Add lib/userspec.h.
46051         * modules/xstrto
46052
46053         Upgrade from gettext-0.13.
46054         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
46055         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
46056         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
46057
46058 2004-06-10  Jim Meyering  <jim@meyering.net>
46059
46060         * lib/calloc.c: New file.
46061
46062 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
46063
46064         * lib/getdate.y (yylex): Allow space between sign and number.
46065         Problem reported by Dan Jacobson.
46066
46067 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
46068
46069         Merge from coreutils CVS.
46070
46071         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
46072         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
46073         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
46074         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
46075         xstrtol.m4: Fix copyright date and/or serial number.
46076
46077         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
46078         See if we need an fchown replacement.
46079         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
46080         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
46081         and use the replacement function if we detect either defect.
46082
46083         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
46084         gl_UTIMECMP.
46085
46086 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
46087         and  Jim Meyering  <jim@meyering.net>
46088
46089         Merge from coreutils CVS.
46090
46091         * lib/stat-macros.h: New file, with contents from file-type.h
46092         and coreutils' system.h.
46093         * lib/file-type.c: Include "stat-macros.h".
46094         * lib/file-type.h (file_type): Move all macro definitions to new file,
46095         stat-macros.h.
46096
46097         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
46098         Wrap old code with this conditional.
46099         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
46100         function that does not dereference symlinks.
46101         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
46102
46103         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
46104         dependency problems.
46105         (xreadlink): Accept new arg SIZE, for efficiency.
46106         All decls and uses changed.
46107         * lib/xreadlink.h: Include <stddef.h>, for size_t.
46108
46109         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
46110         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
46111
46112         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
46113         sysexits.h.
46114
46115 2004-06-01  Jim Meyering  <jim@meyering.net>
46116
46117         * m4/calloc.m4: New file.
46118
46119 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
46120
46121         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
46122         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
46123         Also, fix a typo in a diagnostic.
46124
46125 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
46126
46127         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
46128         or AC_FUNC_REALLOC.
46129
46130 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
46131
46132         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
46133         macros to be defined.
46134         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
46135         the allocator returns NULL because the requested size is zero.
46136
46137 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
46138
46139         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
46140         var.  Add comment explaining why libc still defines it.  This
46141         merges the following patch from glibc:
46142         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
46143
46144 2004-05-20  Andreas Schwab  <schwab@suse.de>
46145
46146         * m4/free.m4: Replace free if it not known to work, not the other
46147         way round.
46148
46149 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46150
46151         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
46152         present in glibc since revision 1.1 of this file.
46153         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
46154         obstack_alignment_mask, obstack_alloc, obstack_base,
46155         obstack_blank, obstack_blank_fast, obstack_chunk_size,
46156         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
46157         obstack_grow0, obstack_init, obstack_int_grow,
46158         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
46159         obstack_next_free, obstack_object_size, obstack_ptr_grow,
46160         obstack_ptr_grow_fast, obstack_room): Remove declarations of
46161         nonexistent functions.
46162
46163 2004-05-18  Karl Berry  <karl@gnu.org>
46164
46165         * config/srclist.txt: break link for vasnprintf.c.
46166
46167 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
46168
46169         Port obstack to the AS/400, where pointers are 16 bytes wide and
46170         you cannot cast an integer to a valid pointer.  This patch is
46171         currently waiting to be integrated into glibc; see
46172         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
46173
46174         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
46175         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
46176         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
46177         (struct obstack): temp member is now a union of a pointer and
46178         an integer, instead of an integer.  All integer uses changed.
46179         This does not affect the physical layout of struct obstack,
46180         except on hosts (like the AS/400) where the size or alignment of
46181         void * is greater than that of ptrdiff_t.
46182         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
46183         __STDC__)]: Store temporary in pointer member of union, not
46184         integer member.
46185         * lib/obstack.c: Include <stddef.h>, for offsetof.
46186         (struct fooalign): Remove; it doesn't need a name.
46187         (union fooround): Change double to long double, and add void *.
46188         (DEFAULT_ALIGNMENT): Use offsetof to compute.
46189         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
46190         not a macro.  Hence the values are always int; so remove all
46191         casts-to-int in uses.
46192
46193 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
46194
46195         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
46196         we can get this patch merged into glibc.
46197
46198 2004-05-17  Derek R. Price  <derek@ximbiot.com>
46199             Paul Eggert  <eggert@cs.ucla.edu>
46200
46201         * m4/argp: Depend on alloca.
46202
46203 2004-05-17  Derek R. Price  <derek@ximbiot.com>
46204             Paul Eggert  <eggert@cs.ucla.edu>
46205
46206         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
46207         freecoding.
46208
46209 2004-05-17  Bruno Haible  <bruno@clisp.org>
46210
46211         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
46212         precision that consists of a '.' followed by an empty digit string.
46213         Patch by Tor Lillqvist <tml@iki.fi>.
46214
46215 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
46216
46217         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
46218         for backward compatibility with older code.  We need our own
46219         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
46220         it under some other name, and our alloca.h will define it.
46221
46222 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
46223             Derek Price  <derek@ximbiot.com>
46224
46225         * lib/alloca.c: Include <alloca.h>, to get our interface.
46226         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
46227         include <alloca.h> first.  Use C89 prototype for alloca; this
46228         requires including <stddef.h> for size_t.  Use extern "C" if C++.
46229         Use #elif for simplicity, since we can assume C89 now.
46230         Don't try to source the system alloca.h since it will not be found
46231         and to prevent recursively including its replacement.
46232         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
46233         * lib/regex.c: Likewise.
46234
46235 2004-05-16  Derek Price  <derek@ximbiot.com>
46236             Paul Eggert  <eggert@cs.ucla.edu>
46237
46238         getline cleanup.  This changes the getndelim2 API: both order of
46239         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
46240         no delimiter).
46241
46242         * lib/getline.c: Don't include stddef.h or stdio.h, since our
46243         interface does that.
46244         (getline): Always use getdelim, so that we don't have two
46245         copies of this code.
46246         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
46247         if available.
46248         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
46249         (GETNDELIM2_MAXIMUM): New macro.
46250         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
46251         instead of the old practice of delim2==0.  All callers changed.
46252         Return -1 on overflow, instead of returning junk.
46253         Do not set *linesize unless allocation succeeds.
46254         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
46255         that we include sys/types.h.
46256         * lib/getnline.h: Likewise.
46257         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
46258         (getndelim2): Reorder arguments.
46259         * lib/getnline.c (getnline, getndelim):
46260         Don't discard the NMAX argument.
46261         (getnline): Invoke getndelim, to avoid code duplication.
46262         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
46263         of (size_t) -1 by callers of the getnline family.
46264
46265 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
46266
46267         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
46268         Check for gettimeofday.
46269         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
46270         Check for settimeofday, stime.
46271
46272 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
46273
46274         * lib/nanosleep.c (suspended): Change its type from int to
46275         sig_atomic_t volatile.
46276         (first_call): Make it private to rpl_nanosleep, and have it
46277         be zero initially as that's a bit faster.
46278         (my_usleep): Round up fractional times instead of truncating them,
46279         as this is the usual meaning for 'sleep'.
46280
46281         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
46282         doesn't work.
46283         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
46284         (ENOSYS): Define if not defined.
46285         (settime): Fall back on stime if it exists and settimeofday fails.
46286         But don't bother with fallbacks if a method fails with errno == EPERM.
46287
46288 2004-05-11  Jim Meyering  <jim@meyering.net>
46289
46290         Prior to this change, the save_cwd caller required read access to the
46291         current directory on most systems (ones with the fchdir function).
46292
46293         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
46294         fails, try write-only, and finally, resort to using xgetcwd.
46295
46296 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
46297
46298         * lib/obstack.c, obstack.h: Import changes from libc.
46299
46300 2004-04-28  Bruno Haible  <bruno@clisp.org>
46301
46302         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
46303         also implicitly appends .exe to executables.
46304         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
46305         accepts Windows pathnames.
46306         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
46307         Treat Cygwin like Windows, since it now accepts Windows pathnames.
46308         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
46309         Treat Cygwin like Windows, since it now accepts Windows pathnames.
46310         Reported by Derek Robert Price <derek@ximbiot.com>.
46311
46312 2004-04-21  Karl Berry  <karl@gnu.org>
46313
46314         * config/srclist.txt (localcharset.c): break sync.
46315
46316 2004-04-20  Paul Eggert  <eggert@twinsun.com>
46317
46318         * m4/host-os.m4: Add a copyright notice.
46319
46320 2004-04-20  Jim Meyering  <jim@meyering.net>
46321
46322         Change UTILS_ to gl_ in AC_DEFINE'd names.
46323         Change utils_- and jm_-prefixed variables, too.
46324         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
46325         UTILS_FUNC_MKDIR_TRAILING_SLASH.
46326         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
46327
46328         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
46329         Don't emit trailing blanks.
46330         Also rename jm_-prefixed variables to have gl_ prefix.
46331
46332         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
46333         Also rename jm_-prefixed variables to have gl_ prefix.
46334
46335         * m4/jm-macros.m4: Reflect the renamings.
46336         * m4/prereq.m4: Likewise.
46337
46338 2004-04-20  Jim Meyering  <jim@meyering.net>
46339
46340         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
46341         memory.
46342
46343 2004-04-20  Jim Meyering  <jim@meyering.net>
46344             Bruno Haible  <bruno@clisp.org>
46345
46346         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
46347         memory when realloc fails.
46348
46349 2004-04-19  Jim Meyering  <jim@meyering.net>
46350
46351         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
46352         now that readutmp.c may call `free (0)'.
46353
46354 2004-04-19  Bruno Haible  <bruno@clisp.org>
46355
46356         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
46357         * m4/inttypes_h.m4: Likewise.
46358         * m4/stdint_h.m4: Likewise.
46359         * m4/intmax_t.m4: Likewise.
46360         * m4/uintmax_t.m4: Likewise.
46361
46362 2004-04-18  Jim Meyering  <jim@meyering.net>
46363
46364         * m4/prereq.m4: Don't forbid jm_ prefix.
46365
46366         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
46367         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
46368         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
46369         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
46370         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
46371         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
46372         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
46373         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
46374         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
46375         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
46376         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
46377         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
46378         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
46379         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
46380         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
46381         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
46382         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
46383         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
46384         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
46385
46386 2004-04-18  Jim Meyering  <jim@meyering.net>
46387
46388         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
46389         failure, don't leak memory and do call END_UTMP_ENT.
46390
46391 2004-04-16  Jim Meyering  <jim@meyering.net>
46392
46393         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
46394         coreutils' stat program.
46395         (gl_PREREQ): Don't require jm_PREREQ_STAT.
46396
46397 2004-04-11  Paul Eggert  <eggert@twinsun.com>
46398
46399         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
46400         C89.
46401         (CHAR_BIT): Remove, since we assume C89.
46402         Include <stdint.h> if available, as per current Autoconf CVS advice.
46403
46404 2004-03-31  Jim Meyering  <jim@meyering.net>
46405
46406         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
46407         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
46408         * m4/xalloc.m4: Likewise.
46409
46410 2004-03-30  Paul Eggert  <eggert@twinsun.com>
46411
46412         Merge from coreutils.
46413
46414         * m4/inttostr.m4: New file.
46415         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
46416         Require AM_STDBOOL_H and gl_TIMESPEC instead.
46417         Require gl_CLOCK_TIME.
46418         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
46419
46420 2004-03-30  Paul Eggert  <eggert@twinsun.com>
46421
46422         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
46423         not bool, to be more consistent with Unix conventions.
46424         Suggested by Bruno Haible.
46425
46426         Merge from coreutils.
46427
46428         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
46429         * lib/umaxtostr.c: New files.
46430
46431         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
46432         the usual <time.h> dance.
46433         (get_date): Change signature to support fractional time stamps.
46434         All callers changed.
46435         * lib/getdate.y: Include "getdate.h" first, as we can now
46436         assume C89 and don't need to worry about 'const'.
46437         Similarly, include "unlocked-io.h" near start, not in middle.
46438         Include <limits.h>.
46439         (textint.value): Use long int rather than int.
46440         (textint.digits): Use size_t rather than int.
46441         (BILLION, LOG10_BILLION): New constants.
46442         (parser_control): New member rel_ns.  Members day_ordinal,
46443         time_zone, month, day, hour, minutes, rel_year, rel_month,
46444         rel_day, rel_hour, rel_minutes, rel_seconds
46445         are now long int, not int.  Member seconds is now struct timespec,
46446         not int.  New member timespec_seen.  Members dates_seen, days_seen,
46447         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
46448         not int.
46449         (%union.intval): Now long int, not int.
46450         New member timespec.
46451         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
46452         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
46453         (spec): Now is a timespec or an item list.
46454         (timespec, items): New nonterminals.
46455         (time, rel, relunit, number, get_date):
46456         Add support for fractional seconds.
46457         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
46458         (gmtime, localtime, mktime): Remove decls; not needed with C89.
46459         (to_hour): First arg is now long int, not int.
46460         (to_year): Returns long int, not int.
46461         Don't treat year -70 like 70.
46462         (tm_diff): Returns long int, not int.
46463         (lookup_word): Use bool instead of int when appropriate.
46464         (yylex): Use size_t for count, not int.
46465         Detect overflow when parsing large integer constants.
46466         Add support for fractions.
46467         (get_date): Make pointers 'const' if possible.
46468         Use more-portable code to detect integer overflow.
46469         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
46470         Don't use ctime; it's not reliable if the year has >4 digits.
46471
46472         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
46473         This is for compatibility with BSD.
46474
46475         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
46476         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
46477         From coreutils' system.h.
46478
46479         * lib/userspec.c: Don't include "posixver.h".
46480         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
46481         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
46482         compatible extension.  Simplify code by removing a boolean int
46483         that was always nonzero if a string was nonnull.
46484
46485 2004-03-30  Jim Meyering  <jim@meyering.net>
46486
46487         Merge from coreutils.
46488
46489         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
46490         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
46491         on some systems one must include <grp.h> before it.
46492         Reported by Christian Krackowizer.
46493
46494 2004-03-30  Jim Meyering  <jim@meyering.net>
46495
46496         Merge from coreutils.
46497
46498         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
46499
46500         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
46501         an empty input stream.
46502
46503         * lib/readtokens.c: Include <stdbool.h>.
46504         (readtoken): Use `size_t' rather than int/long.
46505         All callers adjusted.
46506         Use `bool' rather than `int' where appropriate.
46507         Use memset rather than an explicit loop.
46508         Use x2nrealloc rather than xrealloc.
46509         Allow the use of `\0' as a delimiter.
46510         (readtokens): Likewise.
46511         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
46512
46513 2004-03-30  Jim Meyering  <jim@meyering.net>
46514
46515         * m4/realloc.m4: Remove file, since now it does no more than
46516         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
46517         the `configure.ac' section of module/realloc.
46518         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
46519
46520 2004-03-30  Bruno Haible  <bruno@clisp.org>
46521
46522         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
46523         nonnull.
46524
46525 2004-03-29  Paul Eggert  <eggert@twinsun.com>
46526
46527         Merge changes to getloadavg.c from coreutils and Emacs.
46528
46529         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
46530         Define to an expression, not to the empty string.
46531         Include cloexec.h and xalloc.h.
46532         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
46533         Use set_cloexec_flag rather than rolling our own.
46534         * lib/cloexec.c, lib/cloexec.h: New files.
46535
46536 2004-03-29  Paul Eggert  <eggert@twinsun.com>
46537
46538         * m4/cloexec.m4: New file.
46539
46540 2004-03-18  Paul Eggert  <eggert@twinsun.com>
46541
46542         * lib/getopt.h: Sync with libc CVS.
46543
46544 2004-03-18  Paul Eggert  <eggert@twinsun.com>
46545             Bruno Haible  <bruno@clisp.org>
46546
46547         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
46548         mbswidth.
46549
46550 2004-03-18  Paul Eggert  <eggert@twinsun.com>
46551             Bruno Haible  <bruno@clisp.org>
46552
46553         * lib/mbswidth.h: Include <wchar.h> only if
46554         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
46555         <wchar.h>.
46556         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
46557
46558 2004-03-09  Paul Eggert  <eggert@twinsun.com>
46559
46560         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
46561         Sync with libc CVS.
46562         * lib/getopt_int.h: New file, also synced from libc.
46563
46564 2004-03-09  Paul Eggert  <eggert@twinsun.com>
46565
46566         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
46567         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
46568         Bring back getopt.c, getopt.h, getopt1.c.
46569
46570 2004-03-07  Paul Eggert  <eggert@twinsun.com>
46571
46572         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
46573         All uses changed.  Check for sa_sigaction member; this fixes
46574         a bug first reported by Jason Andrade in
46575         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
46576
46577 2004-03-07  Paul Eggert  <eggert@twinsun.com>
46578
46579         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
46580         '#if' expressions.  Unlike the code it replaces, it does not
46581         depend on (defined _SC_PAGESIZE).  However, it does depend on
46582         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
46583         first reported by Jason Andrade in
46584         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
46585
46586 2004-02-25  Simon Josefsson  <jas@extundo.com>
46587
46588         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
46589
46590 2004-02-25  Simon Josefsson  <jas@extundo.com>
46591
46592         * lib/strdup.h: New file.
46593         * lib/strdup.c: Include it.
46594         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
46595         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
46596
46597 2004-02-23  Karl Berry  <karl@gnu.org>
46598
46599         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
46600         (from fencepost.gnu.org:/gd/gnuorg).
46601
46602 2004-02-23  Karl Berry  <karl@gnu.org>
46603
46604         * config/srclistvars.sh (GNUORG) [karl]: redefine.
46605         * config/srclist.txt: add maintain/standards documents.
46606
46607 2004-02-18  Bruno Haible  <bruno@clisp.org>
46608
46609         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
46610         Reported by Derek Robert Price <derek@ximbiot.com>.
46611
46612 2004-02-16  Karl Berry  <karl@gnu.org>
46613
46614         * config/mkinstalldirs, install-sh: update from automake.
46615
46616 2004-02-06  Karl Berry  <karl@gnu.org>
46617
46618         * m4/po.m4: update from gettext 0.14.1.
46619
46620 2004-02-06  Karl Berry  <karl@gnu.org>
46621
46622         * lib/config.charset: update from gettext 0.14.1.
46623
46624 2004-02-05  Paul Eggert  <eggert@twinsun.com>
46625
46626         Add comments and code, prompted by suggestions from Bruno Haible
46627         for sh-quote.
46628         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
46629         describing the enum quoting_style values.
46630         * lib/quotearg.c (quotearg_alloc): New function.
46631         (quotearg_buffer_restyled): Treat lone { and } as special.
46632         Treat = as special.  Work around bug with older shells
46633         that "see" a '\' that is really the 2nd byte of a multibyte char.
46634         Quote empty string with shell_quoting_style.
46635
46636 2004-02-03  Bruno Haible  <bruno@clisp.org>
46637
46638         * m4/pipe.m4: New file, from GNU gettext.
46639
46640 2004-02-03  Bruno Haible  <bruno@clisp.org>
46641
46642         * lib/pipe.h: New file, from GNU gettext.
46643         * lib/pipe.c: New file, from GNU gettext.
46644
46645 2004-01-27  Bruno Haible  <bruno@clisp.org>
46646
46647         * m4/execute.m4: New file, from GNU gettext.
46648
46649 2004-01-27  Bruno Haible  <bruno@clisp.org>
46650
46651         * lib/execute.h: New file, from GNU gettext.
46652         * lib/execute.c: New file, from GNU gettext.
46653         * lib/w32spawn.h: New file, from GNU gettext.
46654
46655 2004-01-24  Paul Eggert  <eggert@twinsun.com>
46656
46657         Merge from diffutils.
46658
46659         * lib/file-type.c (file_type): Add typed memory objects.
46660         * lib/file-type.h (S_TYPEISTMO): New macro.
46661
46662         * lib/c-stack.h (c_stack_action): Remove argv argument.
46663         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
46664         (die): Don't calculate message unless segv_action returns.
46665         (get_stack_location, min_address_from_argv, max_address_from_argv,
46666         volatile stack_base, volatile_stack_size): Remove.
46667         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
46668         that every segmentation violation is a stack overflow.  (Ouch!)
46669         See Debian bug 136249 (still outstanding) for more info about why
46670         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
46671
46672 2004-01-24  Paul Eggert  <eggert@twinsun.com>
46673
46674         Exit-status fix from coreutils.
46675
46676         Use exit_failure consistently in place of EXIT_FAILURE,
46677         so that program exit statuses are consistent on failure.
46678
46679         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
46680         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
46681         * lib/argmatch.h: Comment fix to match the above.
46682         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
46683         Now a macro referring to exit_failure, instead of a separate
46684         variable.  Include "exitfail.h" to get it.
46685         * lib/xstrtol.h: Include "exitfail.h".
46686         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
46687
46688         * lib/long-options.c (parse_long_options): Use prototype
46689         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
46690         for clarity.
46691
46692 2004-01-21  Jim Meyering  <jim@meyering.net>
46693
46694         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
46695         so as not to conflict with a different-sized __mktime_internal
46696         function in GNU libc.
46697         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
46698         Problem building statically-linked `ls' reported by Michael Brunnbauer.
46699
46700 2004-01-20  Karl Berry  <karl@gnu.org>
46701
46702         * config/config.guess: update from config.
46703
46704         * config/srclistvars.sh: GNUWWWLICENSES for karl.
46705
46706 2004-01-20  Bruno Haible  <bruno@clisp.org>
46707
46708         Safer stack allocation.
46709         * lib/setenv.c: Include allocsa.h.
46710         (alloca): Remove fallback definition.
46711         (freea): Remove macro.
46712         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
46713         instead of freea.
46714
46715 2004-01-20  Bruno Haible  <bruno@clisp.org>
46716
46717         * m4/eealloc.m4: New file, from GNU gettext.
46718
46719 2004-01-20  Bruno Haible  <bruno@clisp.org>
46720
46721         * m4/allocsa.m4: New file, from GNU gettext.
46722
46723 2004-01-20  Bruno Haible  <bruno@clisp.org>
46724
46725         * lib/xallocsa.h: New file, from GNU gettext.
46726         * lib/xallocsa.c: New file, from GNU gettext.
46727
46728 2004-01-20  Bruno Haible  <bruno@clisp.org>
46729
46730         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
46731
46732 2004-01-20  Bruno Haible  <bruno@clisp.org>
46733
46734         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
46735         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
46736         specially.
46737
46738 2004-01-20  Bruno Haible  <bruno@clisp.org>
46739
46740         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
46741         patch.
46742
46743 2004-01-20  Bruno Haible  <bruno@clisp.org>
46744
46745         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
46746
46747 2004-01-20  Bruno Haible  <bruno@clisp.org>
46748
46749         * lib/eealloc.h: New file.
46750
46751 2004-01-20  Bruno Haible  <bruno@clisp.org>
46752
46753         * lib/binary-io.h: Avoid warnings on Cygwin.
46754
46755 2004-01-20  Bruno Haible  <bruno@clisp.org>
46756
46757         * lib/allocsa.h: New file, from GNU gettext.
46758         * lib/allocsa.c: New file, from GNU gettext.
46759
46760 2004-01-18  Karl Berry  <karl@gnu.org>
46761
46762         * doc/gpl.texi, doc/lgpl.texi: new files.
46763
46764 2004-01-18  Karl Berry  <karl@gnu.org>
46765
46766         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
46767         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
46768
46769 2004-01-15  Paul Eggert  <eggert@twinsun.com>
46770
46771         Merge from coreutils.
46772
46773         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
46774         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
46775         (gl_DEFAULT_POSIX2_VERSION): Move
46776         the documentation from 'configure' into 'config.hin',
46777         so that 'configure --help' isn't burdened by it and
46778         we don't have to worry about its formatting there.
46779         Reword the documentation so that it's more succinct
46780         and can be run together into a single paragraph.
46781         * m4/same.m4 (gl_SAME): Check for pathconf.
46782
46783 2004-01-15  Paul Eggert  <eggert@twinsun.com>
46784
46785         Merge from coreutils.
46786
46787         * lib/posixver.c: Include posixver.h.
46788
46789         * lib/same.c: Include <stdbool.h>, <limits.h>.
46790         (_POSIX_NAME_MAX): Define if not defined.
46791         (MIN): New macro.
46792         (same_name): If file names are silently truncated, report
46793         that the file names are the same if they are the same after
46794         the silent truncation.
46795
46796         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
46797         conversion function.
46798         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
46799         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
46800         longer needed.
46801
46802 2004-01-15  Jim Meyering  <jim@meyering.net>
46803
46804         Merge from coreutils.
46805
46806         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
46807         if no library is required.
46808         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
46809         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
46810         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
46811         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
46812         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
46813         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
46814         value, $ac_cv_search_crypt, if it's "none required".
46815         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
46816         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
46817         not gl_FUNC_GETLOADAVG.
46818         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
46819         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
46820
46821 2004-01-15  Jim Meyering  <jim@meyering.net>
46822
46823         Merge from coreutils.
46824
46825         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
46826         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
46827         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
46828
46829         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
46830         optional configure-time default.
46831
46832         * lib/version-etc.c (version_etc_copyright): Update copyright date.
46833
46834         * lib/xreadlink.c (xreadlink): Correct outdated comment.
46835
46836 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
46837
46838         Merge from coreutils.
46839
46840         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
46841         value, $ac_cv_search_nanosleep, if it's "none required".
46842
46843 2004-01-14  Paul Eggert  <eggert@twinsun.com>
46844
46845         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
46846         with like-named macro in fnmatch.c.
46847         (EXT): Use an internal constant instead.
46848
46849         Merge fnmatch patches from glibc.
46850         * lib/fnmatch.c (mbsinit): Remove define.
46851         Add libc_hidden_ver (__fnmatch, fnmatch).
46852         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
46853         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
46854
46855 2004-01-14  Karl Berry  <karl@gnu.org>
46856
46857         * config/install-sh: update from automake.
46858
46859 2004-01-13  Karl Berry  <karl@gnu.org>
46860
46861         * config/install-sh: update from automake.
46862
46863 2004-01-09  Karl Berry  <karl@gnu.org>
46864
46865         * config/install-sh: update from automake.
46866
46867 2004-01-05  Karl Berry  <karl@gnu.org>
46868
46869         * config/config.{sub,guess}: update from config.
46870
46871 2003-12-31  Karl Berry  <karl@gnu.org>
46872
46873         * config/depcomp: update from automake.
46874
46875 2003-12-14  Karl Berry  <karl@gnu.org>
46876
46877         * lib/config.charset: update from gettext-runtime.
46878
46879 2003-12-03  Paul Eggert  <eggert@twinsun.com>
46880
46881         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
46882         Bug reported by Alfred M. Szmidt.
46883
46884 2003-12-03  Bruno Haible  <bruno@clisp.org>
46885
46886         * m4/gettext.m4: Upgrade from gettext-0.13.
46887         * m4/po.m4: Upgrade from gettext-0.13.
46888         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
46889         * m4/intmax.m4: New file, from gettext-0.13.
46890         * m4/printf-posix.m4: New file, from gettext-0.13.
46891
46892 2003-11-29  Karl Berry  <karl@gnu.org>
46893
46894         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
46895
46896 2003-11-25  Paul Eggert  <eggert@twinsun.com>
46897             Bruno Haible  <bruno@clisp.org>
46898
46899         * lib/printf-parse.h: Don't include sys/types.h.
46900         (ARG_NONE): New macro.
46901         (char_directive): Change type of *arg_index fields to size_t.
46902         * lib/printf-parse.c: Don't include sys/types.h.
46903         (SSIZE_MAX): Remove macro.
46904         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
46905         Remove unnecessary overflow check.
46906         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
46907         fields.
46908
46909 2003-11-25  Bruno Haible  <bruno@clisp.org>
46910
46911         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
46912
46913 2003-11-25  Bruno Haible  <bruno@clisp.org>
46914
46915         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
46916         gt_TYPE_SSIZE_T.
46917
46918 2003-11-24  Paul Eggert  <eggert@twinsun.com>
46919
46920         * modules/alloca: Remove dependency on xalloc.
46921
46922 2003-11-24  Paul Eggert  <eggert@twinsun.com>
46923
46924         * lib/alloca.c: Remove dependency on xalloc module.
46925         (xalloc_die): Remove.
46926         (memory_full) [!defined emacs]: New macro.
46927         [!defined emacs]: Don't include xalloc.h.
46928         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
46929         address arithmetic overflows.  Change datatypes a bit to avoid
46930         unnecessary casts.
46931
46932 2003-11-22  Jim Meyering  <jim@meyering.net>
46933
46934         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
46935         s/size/size_t/.
46936
46937 2003-11-21  Karl Berry  <karl@gnu.org>
46938
46939         * config/config.{sub,guess}: update from config.
46940
46941 2003-11-18  Karl Berry  <karl@gnu.org>
46942
46943         * config/config.{sub,guess}: update from config.
46944
46945         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
46946
46947 2003-11-17  Paul Eggert  <eggert@twinsun.com>
46948
46949         * README: Mention that S+T cannot overflow if S is the size of
46950         an existing object and T is sufficiently small.
46951
46952 2003-11-17  Jim Meyering  <jim@meyering.net>
46953
46954         On systems without utime and without a utimes function capable of
46955         dealing with a NULL struct utimbuf* argument, this utime replacement
46956         could -- in unusual circumstances -- leak a file descriptor.
46957         * lib/utime.c: Include <unistd.h> and <errno.h>.
46958         (utime_null): Be sure to close `fd' and to preserve errno.
46959         Reported by Geoff Collyer via Arnold Robbins.
46960
46961 2003-11-17  Bruno Haible  <bruno@clisp.org>
46962
46963         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
46964         (Depends-on): Add xsize.
46965
46966 2003-11-17  Bruno Haible  <bruno@clisp.org>
46967
46968         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
46969
46970 2003-11-17  Bruno Haible  <bruno@clisp.org>
46971
46972         * lib/vasnprintf.c (alloca): Remove fallback definition.
46973         (freea): Remove definition.
46974         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
46975         Reported by Paul Eggert.
46976
46977 2003-11-16  Paul Eggert  <eggert@twinsun.com>
46978             Bruno Haible  <bruno@clisp.org>
46979
46980         Protect against address arithmetic overflow.
46981         * lib/printf-args.h: Include stddef.h.
46982         (arguments): Change type of field 'count' to size_t.
46983         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
46984         'unsigned int' where appropriate.
46985         * lib/printf-parse.h: Include sys/types.h.
46986         (char_directive): Change type of *arg_index fields to ssize_t.
46987         (char_directives): Change type of fields 'count', max_*_length to
46988         size_t.
46989         * lib/printf-parse.c: Include sys/types.h and xsize.h.
46990         (SSIZE_MAX): Define fallback value.
46991         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
46992         instead of 'int' where appropriate. Check a_allocated, d_allocated
46993         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
46994         * lib/vasnprintf.c: Include xsize.h.
46995         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
46996         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
46997         overflow. Avoid wraparound when converting a width or precision from
46998         decimal to binary.
46999
47000 2003-11-16  Bruno Haible  <bruno@clisp.org>
47001
47002         Update from GNU gettext.
47003         * lib/printf-parse.c: Generalize to it can be compiled for wide
47004         strings.
47005         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
47006         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
47007         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
47008         SNPRINTF): New macros.
47009         Don't include <alloca.h> if the file is used inside libintl.
47010         (local_wcslen): New function, for Solaris 2.5.1.
47011         (VASNPRINTF): Use it instead of wcslen.
47012
47013 2003-11-16  Bruno Haible  <bruno@clisp.org>
47014
47015         * lib/xsize.h (xmax): New function.
47016         (xsum, xsum3, xsum4): Declare as "pure" functions.
47017
47018 2003-11-12  Paul Eggert  <eggert@twinsun.com>
47019
47020         * modules/xalloc (Files): Undo latest change, since xalloc.h
47021         no longer needs SIZE_MAX or PTRDIFF_MAX.
47022
47023 2003-11-12  Paul Eggert  <eggert@twinsun.com>
47024
47025         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
47026         gl_PTRDIFF_MAX.
47027
47028 2003-11-12  Paul Eggert  <eggert@twinsun.com>
47029
47030         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
47031         "return", to pacify some unknown compiler.  Problem reported
47032         by Joerg Schilling.
47033
47034 2003-11-12  Paul Eggert  <eggert@twinsun.com>
47035
47036         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
47037         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
47038         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
47039         heuristic is just as accurate as far as we know, and it removes a
47040         dependency on size_max.m4 and ptrdiff_max.m4.
47041
47042 2003-11-11  Bruno Haible  <bruno@clisp.org>
47043
47044         * modules/xsize (Files): Add m4/size_max.m4.
47045         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
47046
47047 2003-11-11  Bruno Haible  <bruno@clisp.org>
47048
47049         * m4/size_max.m4: New file.
47050         * m4/ptrdiff_max.m4: New file.
47051         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
47052         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
47053         (gl_XALLOC): Invoke it.
47054
47055 2003-11-11  Bruno Haible  <bruno@clisp.org>
47056
47057         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
47058         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
47059         defined.
47060
47061 2003-11-10  Paul Eggert  <eggert@twinsun.com>
47062
47063         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
47064         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
47065         rejected some allocations of exactly SIZE_MAX - 2 bytes.
47066         From Bruno Haible.
47067         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
47068         not (size_t) -1, since it's defined here.
47069
47070 2003-11-09  Karl Berry  <karl@gnu.org>
47071
47072         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
47073
47074 2003-11-06  Paul Eggert  <eggert@twinsun.com>
47075
47076         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
47077         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
47078         Reject sizes of exactly SIZE_MAX bytes.
47079         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
47080         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
47081
47082 2003-11-05  Bruno Haible  <bruno@clisp.org>
47083
47084         * lib/xsize.h: Include limits.h, to avoid a possible collision with
47085         SIZE_MAX defined in <limits.h> on Solaris.
47086
47087 2003-11-04  Jim Meyering  <jim@meyering.net>
47088
47089         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
47090         variable names, rather than @VAR@.
47091         * modules/poll: Likewise.
47092
47093 2003-11-04  Bruno Haible  <bruno@clisp.org>
47094
47095         * modules/xsize: New file.
47096         * modules/linebreak: Depend on xsize.
47097         * MODULES.html.sh (func_all_modules): Add xsize.
47098
47099 2003-11-04  Bruno Haible  <bruno@clisp.org>
47100
47101         * m4/xsize.m4: New file.
47102
47103 2003-11-04  Bruno Haible  <bruno@clisp.org>
47104
47105         * lib/xsize.h: New file.
47106         * lib/linebreak.c: Include xsize.h.
47107         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
47108         argument for overflow.
47109         Suggested by Paul Eggert.
47110
47111 2003-11-03  Karl Berry  <karl@gnu.org>
47112
47113         * config/config.{guess,sub}: update from config.
47114
47115 2003-11-03  Jim Meyering  <jim@meyering.net>
47116
47117         * modules/userspec (lib_SOURCES): Add userspec.h.
47118         (Include): Add "userspec.h".
47119         Improve description.
47120
47121 2003-11-03  Jim Meyering  <jim@meyering.net>
47122
47123         * lib/userspec.c: Include "userspec.h".
47124         * lib/userspec.h: New file.
47125
47126 2003-11-03  Bruno Haible  <bruno@clisp.org>
47127
47128         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
47129
47130 2003-11-03  Bruno Haible  <bruno@clisp.org>
47131
47132         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
47133         available, to avoid (extremely rare) race condition.
47134         Suggested by Paul Eggert.
47135
47136 2003-11-02  Karl Berry  <karl@gnu.org>
47137
47138         * config/srclist.txt (vasprintf.c): sync broken, sigh.
47139
47140 2003-10-31  Paul Eggert  <eggert@twinsun.com>
47141
47142         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
47143         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
47144         (read_filesystem_list): Set and use me_type_malloced.
47145         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
47146         whatever the type happens to be), for brevity and consistency.
47147         Check for size calculation overflow on Alphas running OSF/1.
47148
47149 2003-10-31  Jim Meyering  <jim@meyering.net>
47150
47151         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
47152
47153         * lib/linebuffer.c: Include <string.h> for declaration of memset.
47154
47155 2003-10-30  Paul Eggert  <eggert@twinsun.com>
47156             Bruno Haible  <bruno@clisp.org>
47157
47158         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
47159         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
47160
47161 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
47162
47163         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
47164         netbsd*-gnu*.  Suggested by Robert Millan.
47165
47166 2003-10-29  Paul Eggert  <eggert@twinsun.com>
47167
47168         * modules/group-member: Depend on stdbool.
47169
47170 2003-10-29  Paul Eggert  <eggert@twinsun.com>
47171
47172         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
47173
47174 2003-10-29  Paul Eggert  <eggert@twinsun.com>
47175
47176         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
47177         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
47178         after the 'gnu' in these cases.  This fixes some bugs in the
47179         previous change, and is based on suggestions by Robert Millan.
47180
47181 2003-10-29  Paul Eggert  <eggert@twinsun.com>
47182
47183         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
47184         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
47185         no longer needed.
47186         * lib/quotearg.c (quotearg_n_options): Use it.
47187         * lib/group-member.c: Include <stdbool.h>.
47188         (free_group_info): Arg is now const *; don't free arg.
47189         (get_group_info): Now returns bool and accepts struct group_info *,
47190         rather than returning a malloc'ed struct group_info *.
47191         All uses changed.  Check for overflow in internal size calculation.
47192
47193         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
47194         rather than xmalloc/xrealloc.
47195         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
47196         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
47197         conformance bug: the old code used a pointer after freeing the
47198         storage that it addressed.
47199         * lib/hash.c (hash_initialize): Simplify the code by using
47200         xalloc_oversized rather than doing it by hand.
47201         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
47202         the buffer preserved.  Use free and xmalloc instead.
47203         * lib/quotearg.c (quotearg_n_options): Likewise.
47204         Use a simpler test for size overflow.  Don't use xalloc_oversized
47205         because unsigned int might be wider than size_t (!); this suggests
47206         that we should switch from unsigned int to size_t for slot numbers.
47207
47208 2003-10-28  Paul Eggert  <eggert@twinsun.com>
47209
47210         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
47211         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
47212         NetBSD kernels.  Requested by Richard Stallman.
47213
47214 2003-10-27  Paul Eggert  <eggert@twinsun.com>
47215
47216         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
47217         to allocate the returned structure.  Do not allocate a subarray,
47218         as x2nrealloc will do that.
47219         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
47220         instead of xnrealloc.
47221         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
47222
47223 2003-10-27  Bruno Haible  <bruno@clisp.org>
47224
47225         * lib/stdbool_.h: Better support for BeOS.
47226
47227 2003-10-26  Paul Eggert  <eggert@twinsun.com>
47228
47229         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
47230         now uses inline.
47231
47232 2003-10-26  Paul Eggert  <eggert@twinsun.com>
47233
47234         * lib/xalloc.h (xalloc_oversized): New static inline function, for
47235         callers that want to do their own size-overflow checking.  Include
47236         <stdbool.h>, since xalloc_oversized returns bool.
47237         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
47238         to use xalloc_oversized.
47239
47240         Add two functions x2realloc, x2nrealloc, for programs that grow
47241         arrays dynamically by doubling their sizes.
47242         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
47243         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
47244         New functions.
47245
47246         Port to C99 semantics for 'inline' of external functions.
47247         Bug reported by Bruno Haible.
47248         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
47249         with the old contents of xnmalloc.
47250         (xnmalloc, xmalloc): Use it.
47251         (xnrealloc_inline): New static inline function,
47252         with the old contents of xnrealloc.
47253         (xnrealloc, xrealloc): Use it.
47254
47255         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
47256         that.
47257
47258 2003-10-26  Karl Berry  <karl@gnu.org>
47259
47260         * config/srclist.txt (COPYING.DOC): no longer available from
47261         /gd/gnuorg; don't know where the ultimate source is.
47262
47263 2003-10-25  Paul Eggert  <eggert@twinsun.com>
47264
47265         Fix several address-calculation bugs in the hash modules,
47266         plus some minor code cleanup.
47267
47268         * lib/hash.h: Include <stdbool.h>, for bool.
47269         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
47270         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
47271         hash_get_n_entries, hash_get_max_bucket_length,
47272         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
47273         hash_rehash): Use size_t rather than unsigned.
47274         * lib/hash.c (struct hash_table, hash_get_n_buckets,
47275         hash_get_n_buckets_used, hash_get_n_entries,
47276         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
47277         hash_get_entries, hash_do_for_each, hash_string, is_prime,
47278         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
47279         Likewise.
47280         (SIZE_MAX): Define if not defined.
47281         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
47282         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
47283         hash_print):
47284         Use const * when possible.
47285         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
47286         (check_tuning): Fix bug: if tuning parameters were very close to
47287         0 or 1, rounding errors could have caused subscript violations.
47288         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
47289         (hash_initialize): Add 'fail:' label
47290         to free table and return NULL, and use it to simplify code.
47291         Use calloc rather than clearing the storage ourself.
47292         (hash_initialize, hash_rehash): Check for arithmetic overflow in
47293         buffer size calculations.
47294         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
47295         Include <stddef.h>, for size_t.
47296         * lib/hash-pjw.c (hash_pjw): Likewise.
47297         Switch to method described by Bruno Haible.
47298         Include <limits.h>, for CHAR_BIT.
47299         (SIZE_BITS): New macro.
47300
47301 2003-10-23  Paul Eggert  <eggert@twinsun.com>
47302
47303         * m4/getline.m4 (AM_FUNC_GETLINE):
47304         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
47305         hosts.  Problem reported by Derek Robert Price in
47306         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
47307         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
47308         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
47309
47310 2003-10-21  Paul Eggert  <eggert@twinsun.com>
47311
47312         * lib/getndelim2.c (getndelim2): When size calculation overflows,
47313         ceiling the allocation at NMAX bytes rather than silently
47314         discarding input bytes before NMAX is reached.  This makes
47315         a difference only if NMAX exceeds SIZE_MAX / 2.
47316
47317         * lib/obstack.c: Merge from glibc.
47318         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
47319         Add libc_hidden_def (_obstack_newchunk).
47320         (_obstack_free) [! defined _LIBC]: Remove.
47321         [defined _LIBC]: Make a strong alias from obstack_free, rather than
47322         a clone of the function body.
47323         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
47324         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
47325
47326         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
47327         glibc.
47328         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
47329         arg to memcpy.
47330
47331         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
47332         (obstack_ptr_grow_fast, obstack_int_grow_fast):
47333         Don't use lvalue casts, as GCC plans to remove support for them
47334         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
47335         was also present in the non-GCC version, indicating that this
47336         code had always been buggy and had never been widely used.
47337         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
47338         Use the fast variant of each macro, rather than copying the
47339         definiens of the fast variant; that way, we'll be more likely to
47340         catch future bugs in the fast variants.
47341
47342 2003-10-20  Bruno Haible  <bruno@clisp.org>
47343
47344         * modules/wait-process: New file.
47345         * MODULES.html.sh (func_all_modules): Add wait-process.
47346
47347 2003-10-20  Bruno Haible  <bruno@clisp.org>
47348
47349         * m4/wait-process.m4: New file.
47350
47351 2003-10-20  Bruno Haible  <bruno@clisp.org>
47352
47353         * lib/wait-process.h: New file, from GNU gettext.
47354         * lib/wait-process.c: New file, from GNU gettext.
47355
47356 2003-10-19  Jim Meyering  <jim@meyering.net>
47357
47358         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
47359         HPUX 10.20.
47360
47361 2003-10-18  Karl Berry  <karl@gnu.org>
47362
47363         * config/config.guess: update from config.
47364
47365 2003-10-16  Paul Eggert  <eggert@twinsun.com>
47366
47367         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
47368         (getgroups): First arg is int, not size_t.
47369         Don't let 'free' mangle errno.
47370
47371 2003-10-16  Paul Eggert  <eggert@twinsun.com>
47372
47373         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
47374
47375 2003-10-16  Karl Berry  <karl@gnu.org>
47376
47377         * config/config.{guess,sub}: update from config.
47378
47379 2003-10-16  Jim Meyering  <jim@meyering.net>
47380
47381         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
47382         memcpy.
47383
47384 2003-10-15  Paul Eggert  <eggert@twinsun.com>
47385
47386         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
47387         (SIZE_MAX): Remove.
47388         (new_exclude, add_exclude_file): Initial size no longer needs to
47389         be a power of 2.
47390         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
47391         our own address arithmetic overflow checking.
47392
47393         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
47394         (fnmatch): Do not alloca more than 2000 wide characters;
47395         instead, use malloc for large buffers.
47396         Check for address arithmetic overflow, and return -1
47397         with errno set to ENOMEM in that case.
47398         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
47399         (NEW_PATTERN): Do not alloca more than 8000 bytes;
47400         instead, return -1.  Check for address arithmetic overflow.
47401
47402 2003-10-14  Paul Eggert  <eggert@twinsun.com>
47403
47404         Handle invalid suffixes and overflow independently, so that
47405         callers can treat them independently as needed.  Fix some bugs in
47406         suffix handling, e.g., "100k@" was not diagnosed as an invalid
47407         suffix for a human-readable blocksize.  The major caller-visible
47408         change is the addition of a new
47409         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
47410         that both overflow and suffix chars were found.
47411
47412         * lib/human.c (humblock): Don't check separately for invalid suffix
47413         char; that is xstrtoumax's job (now that its bug is fixed).
47414         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
47415         INTMAX_MAX]: New macros.
47416         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
47417         TYPE_MAXIMUM): New macros.
47418         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
47419         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
47420         if overflow occurs, as it's what __strtol does and it's more useful
47421         in practice.
47422         (__xstrtol): If __strtol reports some error other than ERANGE,
47423         reflect it to the caller as LONGINT_INVALID.  If it reports
47424         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
47425         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
47426         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
47427         value.
47428         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
47429         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
47430         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
47431         [defined UINTMAX_MAX]: New macros.
47432
47433 2003-10-14  Bruno Haible  <bruno@clisp.org>
47434
47435         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
47436
47437 2003-10-14  Bruno Haible  <bruno@clisp.org>
47438
47439         * m4/sig_atomic_t: New file, from GNU gettext.
47440         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
47441
47442 2003-10-14  Bruno Haible  <bruno@clisp.org>
47443
47444         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
47445         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
47446         Also use volatile where needed.
47447
47448 2003-10-12  Paul Eggert  <eggert@twinsun.com>
47449
47450         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
47451         Change maintainer from Bruno Haible to 'all'.
47452
47453 2003-10-12  Paul Eggert  <eggert@twinsun.com>
47454
47455         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
47456
47457 2003-10-12  Paul Eggert  <eggert@twinsun.com>
47458
47459         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
47460         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
47461         and define in terms of the other primitives.
47462         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
47463         (SIZE_MAX): Define if not already defined.
47464         (array_size_overflow): New function.
47465         (xalloc_die): Abort instead of exiting if 'error' returns.
47466         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
47467         (xmalloc, xrealloc): Use them.
47468         (xcalloc): Check for address arithmetic overflow.
47469         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
47470         a bit faster than strcpy.
47471
47472 2003-10-10  Simon Josefsson  <jas@extundo.com>
47473
47474         * modules/argp (Depends-on): Add restrict and strcase.
47475
47476 2003-10-10  Simon Josefsson  <jas@extundo.com>
47477
47478         * m4/argp.m4: Add AC_C_INLINE.
47479
47480 2003-10-08  Paul Eggert  <eggert@twinsun.com>
47481
47482         Merge getpass from libc, plus a few fixes.
47483
47484         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
47485         Include <stdbool.h>.
47486         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
47487         __fsetlocking to empty.
47488         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
47489         do include <bits/libc-lock.h>.
47490         Do not include <fcntl.h>; not needed.
47491         [_LIBC]: Include <wchar.h>.
47492         (NOTCANCEL_MODE): New macro.
47493         (flockfile, funlockfile) [_LIBC]: New macros.
47494         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
47495         [!_LIBC]: New macros.
47496         (call_fclose): New function.
47497         (getpass): Use it.  Save tty stream separately; this simplifies the
47498         code and makes it more reliable if stdin happens to equal stdout.
47499         Invoke __fsetlocking on tty.
47500         Handle thread cancellation if needed.
47501         Namespace cleanup (use __tcgetattr, __getline).
47502         Use bool for Booleans.
47503         [USE_IN_LIBIO]: Handle wide streams.
47504         [!_LIBC]: Unconditionally do the fseek, since we don't know what
47505         stream might go where.
47506
47507         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
47508         doesn't have to include <stdio.h> before us.
47509         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
47510         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
47511         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
47512         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
47513         if not declared, so that we can use getpass.c code from libc without
47514         rewriting it.
47515         (flockfile, ftrylockfile, funlockfile): New macros.
47516
47517 2003-10-08  Paul Eggert  <eggert@twinsun.com>
47518
47519         * modules/getpass: Depend on stdbool.
47520
47521 2003-10-08  Paul Eggert  <eggert@twinsun.com>
47522
47523         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
47524
47525 2003-10-07  Karl Berry  <karl@gnu.org>
47526
47527         * config/config.{guess,sub}: update from config.
47528
47529 2003-10-06  Jim Meyering  <jim@meyering.net>
47530             Bruno Haible  <bruno@clisp.org>
47531
47532         This lets translators provide better translations for the
47533         "Written by ..." part of --version output.
47534         * lib/version-etc.h: Include stdarg.h.
47535         (version_etc_copyright): Declare as readonly.
47536         (version_etc): Make this function variadic with a NULL-terminated list
47537         of author name strings.
47538         (version_etc_va): New declaration.
47539         * lib/version-etc.c: Include stdarg.h, stdlib.h.
47540         (version_etc_copyright): Declare as readonly.
47541         (version_etc_va): New function. Provide a different translatable string
47542         for each possible number of authors < 10. Abbreviate when there are 10
47543         authors or more.
47544         (version_etc): Make this function variadic. Call version_etc_va.
47545         Suggestion from Gary V. Vaughan.
47546
47547         * lib/long-options.h (parse_long_options): Change prototype: the
47548         authors string is moved to the end and becomes variadic.
47549         * lib/long-options.c: Include stdarg.h.
47550         (parse_long_options): Make this function variadic, too.
47551         Call version_etc_va, not version_etc.
47552
47553 2003-10-06  Bruno Haible  <bruno@clisp.org>
47554
47555         * modules/version-etc-2: Remove file.
47556         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
47557
47558 2003-10-06  Bruno Haible  <bruno@clisp.org>
47559
47560         * modules/fatal-signal: New file.
47561         * MODULES.html.sh (func_all_modules): Add fatal-signal.
47562
47563 2003-10-06  Bruno Haible  <bruno@clisp.org>
47564
47565         * m4/fatal-signal.m4: New file.
47566         * m4/signalblocking.m4: New file, from GNU gettext.
47567
47568 2003-10-06  Bruno Haible  <bruno@clisp.org>
47569
47570         * lib/version-etc-2.h: Remove file.
47571         * lib/version-etc-2.c: Remove file.
47572
47573 2003-10-06  Bruno Haible  <bruno@clisp.org>
47574
47575         * lib/fatal-signal.h: New file, from GNU gettext.
47576         * lib/fatal-signal.c: New file, from GNU gettext.
47577
47578 2003-10-05  Paul Eggert  <eggert@twinsun.com>
47579
47580         * README: Rework advice for preventing empty .o files.
47581         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
47582         not <sys/types.h>.
47583
47584 2003-10-04  Karl Berry  <karl@gnu.org>
47585
47586         * lib/argp*: update from libc.
47587
47588 2003-10-04  Karl Berry  <karl@gnu.org>
47589
47590         * config/config.{guess,sub}: update from config.
47591
47592 2003-10-02  Bruno Haible  <bruno@clisp.org>
47593
47594         * modules/lchown (Include): Add lchown.h.
47595         * modules/time_r (Include): Use "..." syntax.
47596         * modules/xgetdomainname (Include): Add xgetdomainname.h.
47597
47598 2003-10-01  Simon Josefsson  <jas@extundo.com>
47599
47600         * MODULES.html.sh (func_all_modules): Move gethostname from section
47601         'based on' to section 'lacking' POSIX:2001.
47602
47603 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
47604
47605         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
47606         to output mode on the same stream.
47607
47608 2003-09-29  Paul Eggert  <eggert@twinsun.com>
47609
47610         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
47611         Fix arg typo in previous patch.
47612
47613 2003-09-28  Jim Meyering  <jim@meyering.net>
47614
47615         * lib/error.c: Correct cpp indentation.
47616
47617 2003-09-27  Paul Eggert  <eggert@twinsun.com>
47618
47619         * modules/free: New file.
47620
47621 2003-09-27  Paul Eggert  <eggert@twinsun.com>
47622
47623         * m4/free.m4: New file.
47624
47625 2003-09-27  Paul Eggert  <eggert@twinsun.com>
47626
47627         * lib/minmax.h (MIN, MAX)
47628         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
47629         Omit the special code that used __typeof__, since we worry that
47630         it could be more trouble than it's worth.  See:
47631         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
47632         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
47633
47634         * lib/free.c: New file.
47635
47636 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
47637
47638         Trivial fixes to Makefile.am parts of module listings.
47639         * modules/strstr: Append strstr.h to lib_SOURCES.
47640         * modules/strcase: Likewise, for strcase.h.
47641
47642 2003-09-27  Karl Berry  <karl@gnu.org>
47643
47644         * config/mkinstalldirs: update from automake.
47645
47646 2003-09-26  Paul Eggert  <eggert@twinsun.com>
47647
47648         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
47649         (error_tail): Do not loop, reallocating temporary buffer, since
47650         the output cannot contain more wide characters than the input
47651         contains bytes, the size must be big enough already.  This avoids
47652         one potential size overflow calculation.  Check for size overflow
47653         when calculating temporary buffer size.  Free temporary buffer
47654         when done, if it was allocated with malloc; this plugs a memory
47655         leak.  Remove casts from void * to pointers, that are no longer
47656         needed now that we're assuming C89 or better.
47657
47658         Merge error changes from glibc.
47659
47660         * lib/error.c, error.h: Update copyright notice header to match glibc.
47661         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
47662         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
47663         Disable cancellation while printing error.
47664         * lib/error.h: Prepend __ to parameter names.
47665
47666 2003-09-26  Jim Meyering  <jim@meyering.net>
47667
47668         * lib/error.c (error_tail): Move some declarations
47669         into inner scope where the local variables are used.
47670
47671 2003-09-26  Bruno Haible  <bruno@clisp.org>
47672
47673         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
47674         stpncpy().
47675         Don't define stpncpy through config.h; it's now done through stpncpy.h.
47676
47677 2003-09-26  Bruno Haible  <bruno@clisp.org>
47678
47679         * lib/stpncpy.h (gnu_stpncpy): New declaration.
47680         (stpncpy): Define as alias for gnu_stpncpy.
47681         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
47682
47683 2003-09-25  Simon Josefsson  <jas@extundo.com>
47684
47685         * lib/xgetdomainname.h: New file.
47686         * lib/xgetdomainname.c: New file.
47687
47688 2003-09-25  Simon Josefsson  <jas@extundo.com>
47689             Bruno Haible  <bruno@clisp.org>
47690
47691         * modules/getdomainname: New file.
47692         * modules/xgetdomainname: New file.
47693         * MODULES.html.sh (func_all_modules): Add getdomainname,
47694         xgetdomainname.
47695
47696 2003-09-25  Simon Josefsson  <jas@extundo.com>
47697             Bruno Haible  <bruno@clisp.org>
47698
47699         * m4/getdomainname.m4: New file.
47700
47701 2003-09-25  Simon Josefsson  <jas@extundo.com>
47702             Bruno Haible  <bruno@clisp.org>
47703
47704         * lib/getdomainname.h: New file.
47705         * lib/getdomainname.c: New file.
47706
47707 2003-09-25  Karl Berry  <karl@gnu.org>
47708
47709         * lib/argp-fmtstream.c, argp-help.c: update from libc.
47710
47711 2003-09-25  Karl Berry  <karl@gnu.org>
47712
47713         * config/install-sh: update from automake.
47714
47715 2003-09-25  Bruno Haible  <bruno@clisp.org>
47716
47717         * modules/version-etc-2: New file, from modules/version-etc with
47718         modifications.
47719         * MODULES.html.sh (func_all_modules): Add version-etc-2.
47720
47721 2003-09-25  Bruno Haible  <bruno@clisp.org>
47722
47723         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
47724         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
47725
47726 2003-09-24  Simon Josefsson  <jas@extundo.com>
47727
47728         * modules/xgethostname: Add xgethostname.h.
47729
47730 2003-09-24  Paul Eggert  <eggert@twinsun.com>
47731
47732         * lib/linebuffer.c (freebuffer): Don't free the argument, just
47733         the buffer associated with the argument.  Bug reported by
47734         Simon Josefsson.
47735
47736 2003-09-24  Paul Eggert  <eggert@twinsun.com>
47737
47738         * README: Document assumptions that 'int' is at least 32 bits
47739         wide, that integer arithmetic is 2's complement without overflow,
47740         that there are no holes in integer values, that adding sizes of
47741         two nonoverlapping objects can't overflow, and that all-bits-zero
47742         yields scalar zero.  Fix spelling and capitalization typos.
47743
47744 2003-09-19  Karl Berry  <karl@gnu.org>
47745
47746         * lib/argp.h: update from libc.
47747
47748 2003-09-17  Paul Eggert  <eggert@twinsun.com>
47749
47750         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
47751         to avoid spurious warnings like "AC_RUN_IFELSE was called before
47752         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
47753
47754 2003-09-17  Paul Eggert  <eggert@twinsun.com>
47755
47756         * gnulib-tool: Use "test -h", not "test -L", for portability
47757         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
47758         (tags_regexp): Remove, since \| doesn't conform to POSIX.
47759         (sed_extract_prog): Issue s commands one-by-one, rather than
47760         using \| in one s command.
47761
47762 2003-09-16  Paul Eggert  <eggert@twinsun.com>
47763
47764         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
47765         input error, instead of returning NULL the next time we are called
47766         (and therefore losing track of errno).
47767
47768 2003-09-16  Bruno Haible  <bruno@clisp.org>
47769
47770         * gnulib-tool (func_create_testdir): Warn about duplicated
47771         dependencies.
47772
47773 2003-09-15  Paul Eggert  <eggert@twinsun.com>
47774
47775         * modules/argmatch, modules/fatal, modules/obstack,
47776         modules/xalloc, modules/xgethostname: Sort dependencies by
47777         importance, not alphabetically.
47778
47779 2003-09-15  Paul Eggert  <eggert@twinsun.com>
47780
47781         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
47782         fails, so that the caller gets the proper errno.
47783
47784         * lib/readutmp.c (read_utmp): Likewise.
47785         Check for fstat error.  Close stream and free storage
47786         when failing.
47787
47788 2003-09-14  Karl Berry  <karl@gnu.org>
47789
47790         * config/srclist.txt (strdup.c): disable for c89 changes.
47791
47792 2003-09-14  Jim Meyering  <jim@meyering.net>
47793
47794         * lib/getloadavg.c: Correct cpp indentation.
47795         * lib/strdup.c: Likewise.
47796         * lib/vasnprintf.c: Likewise.
47797
47798 2003-09-14  Bruno Haible  <bruno@clisp.org>
47799
47800         * modules/fwriteerror: New file.
47801         * MODULES.html.sh (func_all_modules): Add fwriteerror.
47802
47803 2003-09-14  Bruno Haible  <bruno@clisp.org>
47804
47805         * lib/fwriteerror.h: New file.
47806         * lib/fwriteerror.c: New file.
47807
47808 2003-09-12  Paul Eggert  <eggert@twinsun.com>
47809
47810         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
47811         modules/xgethostname, modules/xalloc: Depend on exit.
47812
47813 2003-09-12  Paul Eggert  <eggert@twinsun.com>
47814
47815         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
47816
47817         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
47818         and AC_MINIX, too, so that their extensions are available.
47819
47820         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
47821         This macro has been superseded by gl_BACKUPFILE.
47822
47823         More patches to assume C89 or better.
47824
47825         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
47826
47827         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
47828         unconditionally.
47829         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
47830         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
47831         Include <string.h>, <stdlib.h> unconditionally.
47832         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
47833         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
47834         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
47835         headers or for string.h.
47836         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
47837         or strtoul.
47838
47839         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
47840         headers.
47841         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
47842         * m4/userspec.m4 (gl_USERSPEC): Likewise.
47843         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
47844         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
47845         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
47846         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
47847         memcpy, memset.
47848         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
47849         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
47850         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
47851         strtol.
47852         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
47853         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
47854         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
47855         strtoul.
47856
47857 2003-09-12  Paul Eggert  <eggert@twinsun.com>
47858
47859         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
47860         * lib/obstack.c [!defined _LIBC]: Likewise.
47861         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
47862         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
47863         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
47864
47865         More changes to assume C89 or better.
47866
47867         * lib/error.c (error_tail): Assume vprintf.
47868
47869         * lib/argmatch.c (getenv): Remove decl.
47870         * lib/progreloc.c (get_full_program_name): Define via prototype.
47871         * lib/setenv.c (clearenv): Likewise.
47872         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
47873         needed.
47874         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
47875         (malloc, memcpy): Remove decls.
47876         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
47877         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
47878         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
47879         (memcpy): Remove macro.
47880         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
47881         (__P): Remove.  All uses removed.
47882         (PTR): Remove.  All uses changed to void *.
47883         (CHAR_BIT, NULL): Remove.
47884         (spaces, zeros, memset_space, memset_zero)
47885         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
47886         Remove.
47887         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
47888         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
47889         Define with prototype.
47890         Remove now-unnecessary prototype decl.
47891         (extra_args_spec): Assume ANSI C.  All uses changed.
47892         (extra_args_spec_iso): Remove.
47893         (my_strftime, emacs_strftimeu): Define via prototype.
47894         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
47895         unconditionally.
47896         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
47897         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
47898         (strtoul, strtol): Remove decls.
47899         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
47900         LONG_MAX): Remove.
47901         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
47902         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
47903         (LOCALE_PARAM_PROTO): New macro.
47904         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
47905         (INTERNAL (strtol), strtol): Define with a prototype.
47906         (PARAMS): Remove.  All uses removed.
47907         * lib/tempname.c: Include <string.h> unconditionally.
47908         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
47909         * lib/xgethostname.c (main): Define with a prototype.
47910         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
47911         Include <stdlib.h> unconditionally.
47912         (calloc, malloc, realloc, free): Remove decls.
47913         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
47914         Include <stdlib.h> unconditionally.  Sort include file names.
47915         (strtod): Remove.
47916         (xstrtod): Define with a prototype.
47917         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
47918         (strtol, strtoul): Remove decls.
47919
47920 2003-09-11  Paul Eggert  <eggert@twinsun.com>
47921
47922         More patches to assume C89 or better.
47923         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
47924         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
47925         string.h, memchr, STDC_HEADERS.
47926
47927 2003-09-11  Paul Eggert  <eggert@twinsun.com>
47928
47929         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
47930         Include <stdlib.h>, <string.h> unconditionally.
47931         Remove now-unnecessary cast to char *.
47932         * lib/strnlen.c: Include <string.h> unconditionally.
47933         * lib/yesno.c (yesno): Define with a prototype.
47934
47935 2003-09-11  Bruno Haible  <bruno@clisp.org>
47936
47937         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
47938
47939 2003-09-10  Jim Meyering  <jim@meyering.net>
47940
47941         * lib/error.c: Correct indentation of cpp directives.
47942
47943 2003-09-10  Bruno Haible  <bruno@clisp.org>
47944
47945         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
47946         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
47947         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
47948         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
47949         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
47950         <stdlib.h> and <string.h> checks.
47951         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
47952         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
47953
47954 2003-09-10  Bruno Haible  <bruno@clisp.org>
47955
47956         * lib/strcspn.c: Include <string.h> unconditionally.
47957         * lib/strpbrk.c: Include <string.h> unconditionally.
47958         * lib/strstr.c: Include <string.h> unconditionally.
47959         * lib/unicodeio.c: Include <string.h> unconditionally.
47960         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
47961         * lib/unsetenv.c: Likewise.
47962         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
47963         * lib/yesno.c: Include <stdlib.h> unconditionally.
47964         (rpmatch): Add prototype.
47965
47966 2003-09-09  Paul Eggert  <eggert@twinsun.com>
47967
47968         More patches to assume C89 or better.
47969         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
47970         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
47971         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
47972         or for string.h.
47973         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
47974         stdlib.h.
47975         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
47976         C headers.
47977         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
47978         string.h.
47979         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
47980         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
47981         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
47982         or for string.h.
47983         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
47984         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
47985         C headers.
47986         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
47987         memcpy.
47988         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
47989         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
47990         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
47991         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
47992         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
47993         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
47994         string.h, free.
47995         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
47996         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
47997         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
47998         C headers, or for string.h.
47999         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
48000         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
48001         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
48002         headers, memory.h, stdlib.h, string.h, strings.h.
48003         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
48004         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
48005         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
48006         strchr.
48007         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
48008         headers, memory.h, string.h.
48009         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
48010         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
48011         free.
48012         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
48013         headers.
48014         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
48015         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
48016         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
48017         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
48018         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
48019
48020 2003-09-09  Paul Eggert  <eggert@twinsun.com>
48021
48022         More K&R removal.
48023
48024         * lib/acosl.c (main): Use a prototype.
48025         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
48026         tanl.c: Likewise.
48027
48028         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
48029
48030         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
48031         (getopt, etopt_long, getopt_long_only, _getopt_internal)
48032         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
48033         with a prototype.
48034         * lib/getopt.c (const): Remove macro.
48035         Include <string.h> unconditionally.
48036         (my_index): Remove; all uses changed to strchr.
48037         (strlen): Remove decl.
48038         (exchange): Remove forward decl; no longer needed.
48039         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
48040         Define with prototype.
48041         * lib/getopt1.c (const): Remove macro.
48042         (getopt_long, getopt_long_only, main): Define with prototype.
48043
48044         * lib/getugroups.c: Include <string.h> unconditionally.
48045
48046         * lib/getusershell.c: Include <stdlib.h> unconditionally.
48047         (getusershell, setusershell, endusershell, readname, main):
48048         Define with prototypes.
48049
48050         * lib/group-member.c: Include group-member.h first.
48051         Include <stdlib.h> unconditionally.
48052
48053         * lib/hard-locale.c: Include hard-locale.h first.
48054         Include <stdlib.h>, <string.h> unconditionally.
48055
48056         * lib/hash.c (free, malloc): Remove decls.
48057         Include <stdlib.h> unconditionally.
48058
48059         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
48060         (getenv): Do not declare.
48061
48062         * lib/idcache.c: Include <string.h> unconditionally.
48063
48064         * lib/long-options.c: Include long-options.h first, to test interface.
48065         Include <stdlib.h> unconditionally.
48066
48067         * lib/makepath.c: Include makepath.h first, to test interface.
48068         Include <stdlib.h> and <string.h> unconditionally.
48069
48070         * lib/linebuffer.c: Include <stdlib.h>.
48071         (free): Remove decl.
48072
48073         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
48074         stddef.h. rpl_malloc returns void *, not char *.
48075         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
48076         prototype.
48077
48078         * lib/md5.h: Include <limits.h> unconditionally.
48079         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
48080         (__P): Remove; all uses removed.
48081         * lib/md5.c: Include "md5.h" first.
48082         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
48083         md5_buffer, md5_process_bytes, md5_process_block):
48084         Define with prototypes.
48085         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
48086         * lib/sha.c: Include "sha.h" first.
48087         Include <stdlib.h>, <string.h> unconditionally.
48088
48089         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
48090         * lib/memcmp.c (__ptr_t): Likewise.
48091         * lib/memrchr.c (__ptr_t): Likewise.
48092         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
48093         Include <string.h> unconditionally.
48094         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
48095         * lib/memchr.c: Include <stdlib.h> unconditionally.
48096         * lib/memchr.c (LONG_MAX): Remove.
48097         * lib/memrchr.c (LONG_MAX): Likewise.
48098         * lib/memchr.c (__memchr): Define via a prototype.
48099         * lib/memrchr.c (__memrchr): Likewise.
48100         * lib/memcmp.c (__P): Remove, and remove all uses.
48101         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
48102         Remove forward decls; no longer needed.
48103         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
48104         Use types required by C89 in prototype.
48105
48106         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
48107         * lib/savedir.c: Likewise.
48108         * lib/mkdir.c (free): Remove decl.
48109         * lib/rmdir.c (rmdir): Define with a prototype.
48110         * lib/savedir.c: Include savedir.h first, to test interface.
48111
48112         * lib/mktime.c (STDC_HEADERS): Remove.
48113         Include <stdlib.h>, <string.h> unconditionally.
48114
48115         * lib/modechange.c: Include <stdlib.h> unconditionally.
48116         (malloc): Remove decl.
48117
48118         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
48119         (free): Remove decl.
48120
48121         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
48122         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
48123         (This type really should be intptr_t, but that's a C99ism.)
48124         (_obstack_memcpy): Remove: all uses changed to memcpy.
48125         Include <string.h> unconditionally.
48126         (struct obstack): Assume __STDC__ for types of members
48127         chunkfun, freefun, extra_arg.
48128         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
48129         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
48130         obstack_begin, obstack_specify_allocation,
48131         obstack_specify_allocation_with_arg, obstack_chunkfun,
48132         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
48133         Remove unprototyped decls and the macros that use them.
48134         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
48135         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
48136         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
48137         (defined __STDC__ && __STDC__)]:
48138         Remove nonprototyped code.
48139         Include <stdlib.h> unconditionally.
48140         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
48141         _obstack_allocated_p, _obstack_free, obstack_free,
48142         _obstack_memory_used, print_and_abort):
48143         Define using prototypes.
48144         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
48145         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
48146         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
48147         obstack_next_free, obstack_object_size, obstack_room) [0]:
48148         Remove unused, unprototyped code.
48149
48150         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
48151
48152         * lib/physmem.c (physmem_total, physmem_available, main): Define
48153         with prototypes.
48154
48155         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
48156         (main): Define with a prototype.
48157
48158         * lib/posixver.c (getenv): Remove decl.
48159
48160         * lib/putenv.c (malloc): Returns void *, not char *.
48161         Include <string.h> unconditionally.
48162         (strchr, memcpy, NULL): Do not define.
48163
48164         * lib/readtokens.c: Include readtokens.h first, to test interface.
48165         Include <stdlib.h>, <string.h> unconditionally.
48166         (init_tokenbuffer): Define with a prototype.
48167
48168         * lib/regex.c (PARAMS): Remove.  All uses removed.
48169         All uses of _RE_ARGS removed, too.
48170         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
48171         unconditionally.
48172         (bzero): Assume memset exists.
48173         (memcmp, memcpy, NULL): Remove.
48174         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
48175         char, or assignments to local vars of type signed char.
48176         (init_syntax_once, PREFIX(extract_number_and_incr),
48177         PREFIX(print_partial_compiled_pattern),
48178         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
48179         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
48180         PREFIX(regex_grow_registers), PREFIX(regex_compile),
48181         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
48182         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
48183         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
48184         wcs_compile_range, byte_compile_range, truncate_wchar,
48185         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
48186         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
48187         count_mbs_length, wcs_re_match_2_internal,
48188         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
48189         PREFIX(alt_match_null_string_p),
48190         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
48191         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
48192         regfree, PREFIX(extract_number)): Define with prototype.  Remove
48193         now-unnecessary declaration, if any.
48194         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
48195         regcomp, regexec):
48196         Remove now-unnecessary casts among pointer types.
48197         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
48198
48199         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
48200         (free): Remove decl.
48201
48202         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
48203
48204         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
48205         (free): Remove decl.
48206
48207         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
48208         * lib/xgetcwd.c: Likewise.
48209
48210         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
48211         (free): Remove decl.
48212
48213         * lib/strchrnul.c (strchrnul): Define with a prototype.
48214         Fix bug: c_in was not converted to char before searching.
48215
48216         The following changes are not K&R related:
48217
48218         * lib/group-member.h: Include <sys/types.h>, so that this file is
48219         self-contained.
48220         * lib/makepath.h: Likewise.
48221
48222         * lib/getusershell.c (readname, default_index, line_size, readname):
48223         Use size_t, not int, for sizes.
48224         (readname): If the size overflows, report an error instead of
48225         looping forever.
48226
48227 2003-09-09  Paul Eggert  <eggert@twinsun.com>
48228
48229         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
48230         libc.
48231
48232 2003-09-09  Paul Eggert  <eggert@twinsun.com>
48233
48234         * README: New section: portability guidelines.
48235
48236 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
48237
48238         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
48239         C89 spec.
48240
48241 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
48242
48243         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
48244
48245 2003-09-08  Paul Eggert  <eggert@twinsun.com>
48246
48247         Assume C89 or better; remove K&R cruft.
48248         A few of these changes were first proposed by Derek Robert Price
48249         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
48250
48251         * lib/addext.c: Include <string.h> unconditionally.
48252         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
48253         Don't declare getenv or malloc.
48254
48255         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
48256         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
48257         (NULL): Remove.
48258         (find_stack_direction, alloca): Use prototypes.
48259
48260         * lib/atexit.c (atexit): Define using a prototype.
48261
48262         * lib/basename.c, dirname.c, stripslash.c:
48263         Include <string.h> unconditionally.
48264
48265         * lib/bcopy.c: Include <stddef.h>.
48266         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
48267
48268         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
48269
48270         * lib/error.h (error, error_at_line, error_print_progname)
48271         [! (defined (__STDC__) && __STDC__)]: Remove decls.
48272         * lib/error.c: Include error.h first, to check interface.
48273         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
48274         (VA_START): Remove; all uses changeed to va_start.
48275         (exit, strerror): Remove decls.
48276         (error_print_progname): Prototype uncondionally.
48277         Don't include <errno.h>; no longer needed.
48278         (private_strerror): Remove.
48279         (error_tail): Always define.
48280         (error, error_at_line): Assume C89 or better; always use prototypes.
48281         * lib/fatal.c: Include "fatal.h" first, to test interface.
48282         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
48283         (VA_START): Remove; all uses changed to va_start.
48284         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
48285         this case.
48286         (exit): Remove decl.
48287         (fatal): Prototype unconditionally.  Assume va_start works.
48288         Abort at end, to pacify gcc.
48289
48290         * lib/euidaccess.c (main): Define with a prototype.
48291
48292         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
48293
48294         * lib/exitfail.c: Include <stdlib.h> unconditionally.
48295
48296         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
48297         prototypes.
48298         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
48299         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
48300         (getenv): Remove decl.
48301         (fnmatch): Define using a prototype.
48302         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
48303         (FCT): Define using a prototype.
48304
48305         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
48306
48307         * lib/gethostname.c: Include <stddef.h>.
48308         (gethostname): Define with prototype.  Length is size_t, not int.
48309
48310 2003-09-08  Paul Eggert  <eggert@twinsun.com>
48311
48312         Assume C89 or better; remove K&R cruft.
48313         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
48314         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
48315         string.h, getenv, malloc.
48316         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
48317         headers.
48318         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
48319         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
48320         do not check for strerror.
48321         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
48322         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
48323         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
48324         do not check for doprnt or vprintf.
48325         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
48326         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
48327
48328 2003-09-08  Paul Eggert  <eggert@twinsun.com>
48329
48330         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
48331         getversion.c should have been removed then, but was accidentally
48332         preserved.
48333
48334         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
48335         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
48336
48337 2003-09-08  Karl Berry  <karl@gnu.org>
48338
48339         * config/config.sub, config.guess, srclistvars.sh: update from savannah
48340                 config, forget about prep.
48341
48342         * config/depcomp, missing: update from automake.
48343
48344 2003-09-07  Paul Eggert  <eggert@twinsun.com>
48345
48346         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
48347         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
48348
48349 2003-09-07  Paul Eggert  <eggert@twinsun.com>
48350
48351         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
48352         copy_tm_result.  Bug reported by Simon Josefsson in
48353         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
48354
48355 2003-09-06  Paul Eggert  <eggert@twinsun.com>
48356
48357         * m4/time_r.m4: New file.
48358         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
48359         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
48360         is. Check for timegm declaration.
48361         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
48362         Do not check for gmtime_r.
48363         Replace mktime if __mktime_internal does not exist and if mktime
48364         hasn't been replaced already.
48365
48366 2003-09-06  Paul Eggert  <eggert@twinsun.com>
48367
48368         * lib/time_r.c, lib/time_r.h: New files.
48369
48370         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
48371         __localtime_r.
48372         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
48373         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
48374
48375         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
48376         __gmtime_r.
48377         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
48378         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
48379         Include <time_r.h>.
48380
48381         * lib/timegm.c: Switch to glibc implementation, with the following
48382         changes:
48383         [defined HAVE_CONFIG_H]: Include <config.h>.
48384         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
48385         (__mktime_internal) [!defined _LIBC]: New decl.
48386         (__gmtime_r) [!defined _LIBC]: New macro and function.
48387         (timegm): Use a prototype, since gnulib assumes C89.
48388         Do not bother declaring tmp to be const, as it's not really usefu.
48389         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
48390         (timegm): Declare only if HAVE_DECL_TIMEGM.
48391
48392 2003-09-06  Paul Eggert  <eggert@twinsun.com>
48393
48394         * MODULES.html.sh (func_all_modules): Add time_r.
48395         * modules/time_r: New file.
48396         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
48397         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
48398
48399 2003-09-03  Paul Eggert  <eggert@twinsun.com>
48400
48401         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
48402         Bug reported by Lute Kamstra in
48403         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
48404
48405         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
48406         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
48407         course with correspondingly smaller numbers for tomorrow and
48408         yesterday.  From Tadayoshi Funaba.  Originally installed into
48409         sh-utils on 1999-08-07, but the patch got lost (I guess during the
48410         coreutils merge?).
48411
48412 2003-08-31  Simon Josefsson  <jas@extundo.com>
48413
48414         * modules/timegm: New file.
48415         * MODULES.html.sh (func_all_modules): Add timegm.
48416
48417 2003-08-31  Simon Josefsson  <jas@extundo.com>
48418
48419         * m4/timegm.m4: New file.
48420
48421 2003-08-31  Simon Josefsson  <jas@extundo.com>
48422
48423         * lib/timegm.h: New file.
48424         * lib/timegm.c: New file.  Based on
48425         wget-1.8.2/src/http.c:mktime_from_utc.
48426
48427 2003-08-31  Karl Berry  <karl@gnu.org>
48428
48429         * lib/argp.h: update from libc.
48430
48431 2003-08-28  Bruno Haible  <bruno@clisp.org>
48432
48433         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
48434         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
48435         followed by '#define fnmatch fnmatch_posix' gives an error.
48436
48437 2003-08-28  Bruno Haible  <bruno@clisp.org>
48438
48439         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
48440         warning on QNX, which defines O_BINARY to 000000.
48441
48442 2003-08-27  Jim Meyering  <jim@meyering.net>
48443
48444         * m4/mkstemp.m4: Require that the system mkstemp be able to create
48445         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
48446         would fail after 32.  Reported by Danny Levinson.  Details here:
48447         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
48448
48449 2003-08-24  Bruno Haible  <bruno@clisp.org>
48450
48451         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
48452         MSVC7 <stdio.h> is included later.
48453
48454 2003-08-22  Simon Josefsson  <jas@extundo.com>
48455
48456         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
48457
48458 2003-08-20  Karl Berry  <karl@gnu.org>
48459
48460         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
48461
48462 2003-08-20  Bruno Haible  <bruno@clisp.org>
48463
48464         * modules/progname: New file.
48465         * MODULES.html.sh (func_all_modules): Add progname.
48466
48467 2003-08-20  Bruno Haible  <bruno@clisp.org>
48468
48469         * lib/progname.h: New file, from GNU gettext.
48470         * lib/progname.c: New file, from GNU gettext.
48471         * lib/progreloc.c: New file, from GNU gettext.
48472
48473 2003-08-19  Jim Meyering  <jim@meyering.net>
48474
48475         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
48476         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
48477
48478 2003-08-19  Bruno Haible  <bruno@clisp.org>
48479
48480         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
48481         more.
48482
48483 2003-08-19  Bruno Haible  <bruno@clisp.org>
48484
48485         * lib/xstrdup.c: Assume <string.h> exists.
48486
48487 2003-08-18  Paul Eggert  <eggert@twinsun.com>
48488
48489         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
48490         in makefile rules.
48491
48492 2003-08-18  Jim Meyering  <jim@meyering.net>
48493
48494         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
48495         * m4/lib-ld.m4: Likewise.
48496
48497 2003-08-18  Jim Meyering  <jim@meyering.net>
48498
48499         * lib/setenv.h: Indent nested cpp directive.
48500         * lib/vasnprintf.c: Remove trailing blanks.
48501
48502 2003-08-17  Simon Josefsson  <jas@extundo.com>
48503
48504         * modules/xstrndup: New file.
48505         * MODULES.html.sh (func_all_modules): Add xstrndup.
48506
48507 2003-08-17  Simon Josefsson  <jas@extundo.com>
48508
48509         * modules/argp: Fix autoconf macro name. Add more dependencies.
48510
48511 2003-08-17  Simon Josefsson  <jas@extundo.com>
48512
48513         * m4/xstrndup.m4: New file.
48514
48515 2003-08-17  Simon Josefsson  <jas@extundo.com>
48516
48517         * m4/argp.m4: New file.
48518
48519 2003-08-17  Simon Josefsson  <jas@extundo.com>
48520             Bruno Haible  <bruno@clisp.org>
48521
48522         * lib/xstrndup.h: New file.
48523         * lib/xstrndup.c: New file.
48524
48525 2003-08-17  Bruno Haible  <bruno@clisp.org>
48526
48527         * modules/strndup (Files, Include): Add lib/strndup.h.
48528
48529 2003-08-17  Bruno Haible  <bruno@clisp.org>
48530
48531         * modules/euidaccess (Files): Add lib/euidaccess.h.
48532
48533 2003-08-17  Bruno Haible  <bruno@clisp.org>
48534
48535         * lib/strndup.h: New file.
48536
48537 2003-08-17  Bruno Haible  <bruno@clisp.org>
48538
48539         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
48540         like AC_GNU_SOURCE.
48541         * modules/extensions (configure.ac): Comment out the invocation of
48542         gl_USE_SYSTEM_EXTENSIONS.
48543
48544 2003-08-16  Paul Eggert  <eggert@twinsun.com>
48545
48546         Merges from coreutils, etc.
48547         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
48548         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
48549         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
48550         fixing a typo.
48551         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
48552         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
48553
48554 2003-08-16  Paul Eggert  <eggert@twinsun.com>
48555
48556         Document merge from coreutils.
48557         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
48558         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
48559         * modules/utime: Add m4/utimes-null.m4.
48560
48561 2003-08-16  Paul Eggert  <eggert@twinsun.com>
48562
48563         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
48564         space, undoing this 2003-08-12 change:
48565         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
48566
48567 2003-08-16  Paul Eggert  <eggert@twinsun.com>
48568
48569         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
48570         strtoul.c from libc, undoing this 2003-08-12 change:
48571         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
48572
48573 2003-08-16  Jim Meyering  <jim@meyering.net>
48574
48575         Merges from coreutils.
48576         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
48577         prefix.  Adjust cache variables similarly.  Create 500 rather than
48578         just 300 files, to exercise bug on Darwin6.5, too.
48579         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
48580         $missing_dir.
48581         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
48582         AM_SYS_POSIX_TERMIOS.
48583         Reported by mkc@mathdogs.com.
48584         Also change use of $am_cv_sys_posix_termios
48585         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
48586         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
48587         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
48588         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
48589         in /proc/mounts until it finds one with matching device number.  This
48590         is unnecessary when the FILE argument *is* a mount point.  No stat call
48591         is necessary in that case.  So, disable the statvfs-testing code on
48592         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
48593         as RedHat bug# 84846.
48594         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
48595         to 1MB, so as not to render systems with no stack size limit (e.g.,
48596         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
48597         Include <unistd.h>.  On some systems,
48598         it is required for the definition of _SC_PAGESIZE.
48599
48600 2003-08-16  Jim Meyering  <jim@meyering.net>
48601
48602         Merge from coreutils.
48603         * lib/xstrtoimax.c: #else #if -> #elif.
48604         * lib/xstrtoumax.c: Likewise.
48605
48606 2003-08-16  Jim Meyering  <jim@meyering.net>
48607
48608         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
48609         * m4/utimes.m4: Removed.
48610         * m4/utimes-null.m4: Renamed from utimes.m4.
48611
48612         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
48613         to 1MB, so as not to render systems with no stack size limit (e.g.,
48614         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
48615         Include <unistd.h>.  On some systems,
48616         it is required for the definition of _SC_PAGESIZE.
48617
48618 2003-08-16  Jim Meyering  <jim@meyering.net>
48619         and Paul Eggert  <eggert@cs.ucla.edu>
48620
48621         Merges from coreutils, etc.
48622
48623         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
48624         using the latest version from cvs.  This avoids problems with #line
48625         directives using a vendor (Sun) compiler.
48626         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
48627         Don't set GETGROUPS_LIB here; now it's
48628         done via getgroups.m4's wrapper function.
48629         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
48630         rather than just in sh-util/configure.in, so that the
48631         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
48632         same.
48633         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
48634         AC_FUNC_GETLOADAVG where to find getloadavg.c.
48635         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
48636         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
48637         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
48638         Remove code that is now done by the newly-required macros.
48639         Append $(EXEEXT) to DF_PROG.
48640         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
48641         Do not invoke or require the following here,
48642         since prereq.m4 or some gnulib .m4 now does this for us:
48643         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
48644         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
48645         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
48646         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
48647         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
48648         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
48649         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
48650         AC_FUNC_OBSTACK.
48651         Do not replace the following functions, as this is now the job
48652         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
48653         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
48654         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
48655         atexit getpass, strdup, getpagesize.
48656         Replace 'raise'.
48657         Do not check for the following functions, as this is now the job
48658         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
48659         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
48660         setregid.
48661         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
48662         Check for sys/sysctl.h.
48663         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
48664         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
48665         of checking for ssize_t ourselves.
48666
48667         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
48668         Require every macro that gnulib/modules/* suggests for us.
48669         (jm_PREREQ_ADDEXT): New macro.
48670         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
48671         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
48672
48673         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
48674         (gl_PHYSMEM): Use it.
48675         Also check for `table' function.
48676         Check for new headers and functions.
48677         Add check for sys/sysmp.h.
48678         With suggestions from Kaveh Ghazi.
48679         Ignore headers that are present but cannot be compiled.  This
48680         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
48681         C 5.4.
48682
48683 2003-08-15  Paul Eggert  <eggert@twinsun.com>
48684
48685         Document merge from coreutils.
48686         * modules/userspec: Depend on posixver.
48687         * modules/strftime: Depend on tzset.
48688
48689 2003-08-15  Paul Eggert  <eggert@twinsun.com>
48690
48691         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
48692         rather than tab, after '#' in shell-script copyright notices.
48693         Suggested by Bruno Haible.
48694
48695 2003-08-15  Paul Eggert  <eggert@twinsun.com>
48696
48697         * config/srclist-update: Use three spaces, rather than tab, after '#'
48698         in shell-script copyright notices.  Suggested by Bruno Haible.
48699         Remove unnecessary parenthesization in regular expression.
48700
48701 2003-08-15  Jim Meyering  <jim@meyering.net>
48702
48703         Merge from coreutils.
48704         * lib/xgethostname.c: Include <stdlib.h>.
48705         (xghostname): Don't exit for anything other than memory-related
48706         failure; just return NULL.
48707         * lib/userspec.c: Include "posixver.h".
48708         (parse_user_spec): Accept `.' as a separator only
48709         in pre-POSIX-200112 mode.
48710         * lib/strtoimax.c: Use #elif rather than #else #if.
48711         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
48712         Remove function, now that we can rely on a working tzset function.
48713         [!_LIBC]: Ensure that the required autoconf test has been run.
48714         [!defined _NL_CURRENT && HAVE_STRFTIME]:
48715         Use underlying_strftime for %r.
48716         * lib/sha.c: Merge in some clean-up and optimization changes from
48717         glibc.
48718         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
48719         Ensure that it is a multiple of 64.
48720         Rearrange loop exit tests so as to avoid performing an
48721         additional fread after encountering an error or EOF.
48722         * lib/realloc.c: Update copyright date.
48723
48724 2003-08-15  Jim Meyering  <jim@meyering.net>
48725         and Paul Eggert  <eggert@twinsun.com>
48726
48727         Merge from coreutils.
48728         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
48729         member but strut utmpx does not.  Needed for AIX 4.3.3.
48730         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
48731
48732 2003-08-15  Jim Meyering  <jim@meyering.net>
48733         and Paul Eggert  <eggert@cs.ucla.edu>
48734
48735         Merges from coreutils, etc.
48736         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
48737         Require gl_FUNC_TZSET_CLOBBER.
48738         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
48739         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
48740         members.
48741
48742 2003-08-14  Paul Eggert  <eggert@twinsun.com>
48743
48744         Help the merge from coreutils.
48745         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
48746         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
48747         * m4/tzset.m4: Use it too.
48748
48749 2003-08-14  Paul Eggert  <eggert@twinsun.com>
48750
48751         * modules/tzset: New file.
48752
48753 2003-08-14  Jim Meyering  <jim@meyering.net>
48754
48755         Merges from coreutils.
48756         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
48757         variable names, rather than @FNMATCH_H@.
48758         * modules/alloca: Likewise for $(ALLOCA_H).
48759
48760         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
48761         the three copies of the literal target, `fnmatch.h'.
48762         * modules/alloca (alloca.h): Likewise.
48763
48764 2003-08-14  Jim Meyering  <jim@meyering.net>
48765
48766         Merge from coreutils.
48767         * m4/tzset.m4: New file.
48768         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
48769         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
48770         otherwise, AIX 5.1 systems would end up using the latter.
48771         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
48772         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
48773         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
48774         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
48775
48776 2003-08-14  Jim Meyering  <jim@meyering.net>
48777
48778         Merge from coreutils.
48779         * lib/obstack.h: Whitespace changes.
48780         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
48781         and xcalloc return values.
48782         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
48783         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
48784         hang on OSF/1 5.1 for DIR on both local and remote file systems.
48785         Reported by (and fix confirmed by) Nelson H. F. Beebe.
48786         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
48787         error from mntctl.
48788         Use mntctl's return value to drive the entry-processing loop, since
48789         we can't rely on the value of the vmt_length member in the last
48790         entry.  On some systems doing so could result in exhausting
48791         virtual memory.  Based in part on a patch from Mike Jetzer.
48792
48793 2003-08-14  Jim Meyering  <jim@meyering.net>
48794         and Paul Eggert  <eggert@twinsun.com>
48795
48796         Merges from coreutils, plus other fixes.
48797         * lib/physmem.c: Merge in portability changes from gcc/libiberty
48798         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
48799         for credits and details.  Thanks to Kaveh Ghazi for helping
48800         to keep these files in sync.
48801         (ARRAY_SIZE): Define it.
48802         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
48803         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
48804         (memcasecmp): Don't assume size_t fits in unsigned int.
48805         Remove casts and duplicate code.
48806         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
48807         (memcpy): Remove definition.
48808         Merge in some clean-up and optimization changes from glibc.
48809         [BLOCKSIZE]: Move definition to top of file.
48810         Ensure that it is a multiple of 64.
48811         Rearrange loop exit tests so as to avoid performing an
48812         additional fread after encountering an error or EOF.
48813         * lib/md5.h (md5_uintptr): Define.
48814         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
48815         return to the initial working directory.  Preserve errno
48816         for caller.
48817         * lib/idcache.c: Include "xalloc.h".
48818         (xmalloc, xrealloc): Remove decls.
48819         (getuser): Remove casts no longer required in C89.
48820         * lib/human.c: Include stdio.h, for sprintf.
48821         * lib/group-member.c: Include "xalloc.h".
48822         (xmalloc, xrealloc): Remove decls.
48823         (get_group_info): Remove casts no longer required in C89.
48824         * lib/getusershell.c (readname): Remove casts no longer required in
48825         C89.
48826         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
48827         * lib/getline.c: Whitespace fix, from coreutils.
48828
48829 2003-08-13  Paul Eggert  <eggert@twinsun.com>
48830
48831         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
48832         Check for isascii.
48833
48834         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
48835         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
48836         Undo previous (whitespace-only) change.
48837
48838 2003-08-13  Paul Eggert  <eggert@twinsun.com>
48839
48840         * lib/exclude.c: Include <ctype.h>
48841         (IN_CTYPE_DOMAIN): New macro.
48842         (is_space): New fn.
48843         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
48844         and empty lines.
48845
48846         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
48847         Undo previous (whitespace-only) change.
48848
48849 2003-08-13  Paul Eggert  <eggert@twinsun.com>
48850
48851         * config/srclist-update: Change update back to the old behavior,
48852         leaving whitespace alone.  Use one 'sed' command rather than a
48853         pipeline.
48854         (fixlicense): Now a variable, not a function.
48855         (remove_trailing_blanks): Remove.
48856         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
48857         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
48858         Undo previous (whitespace-only) change.
48859
48860 2003-08-12  Paul Eggert  <eggert@twinsun.com>
48861
48862         Merge from coreutils.
48863         * modules/euidaccess: Add lib_SOURCES, include for new
48864         file euidaccess.h
48865
48866 2003-08-12  Paul Eggert  <eggert@twinsun.com>
48867
48868         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
48869         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
48870         Normalize leading white space and remove trailing white space.
48871
48872         Merge from coreutils
48873         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
48874
48875         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
48876         0.12.1.  These files are now being upgraded automatically by
48877         ../config/srclist-update.
48878
48879 2003-08-12  Paul Eggert  <eggert@twinsun.com>
48880
48881         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
48882         Normalize leading white space and remove trailing white space.
48883         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
48884         notice, as per ../config/srclist-update.
48885
48886         Merge from coreutils.
48887         * lib/euidaccess.h: New file.
48888         * lib/euidaccess.c: Include it.
48889         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
48890         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
48891         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
48892
48893 2003-08-12  Paul Eggert  <eggert@twinsun.com>
48894
48895         * config/srclist-update: Add copyright notice.
48896         (remove_id_lines, remove_trailing_blanks): New constants.
48897         (fixfile): Use them to normalize spacing a bit in copied files.
48898         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
48899         Normalize leading white space and remove trailing white space.
48900
48901         * config/texinfo.tex: Sync with texinfo.
48902
48903         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
48904         strtoul.c from libc, to merge coreutils whitespace changes.
48905
48906         * config/srclist.txt: Get the following m4 files from gettext:
48907         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
48908         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
48909         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
48910         wint_t.m4.
48911
48912 2003-08-12  Karl Berry  <karl@gnu.org>
48913
48914         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
48915         been made.
48916
48917 2003-08-11  Paul Eggert  <eggert@twinsun.com>
48918
48919         * modules/gnu-source, m4/gnu-source.m4:
48920         Remove; we're assuming Autoconf 2.54 or later now.
48921         Suggested by Bruno Haible.
48922         * MODULES.html.sh (func_all_modules): Remove gnu-source.
48923
48924 2003-08-11  Bruno Haible  <bruno@clisp.org>
48925
48926         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
48927
48928 2003-08-11  Bruno Haible  <bruno@clisp.org>
48929
48930         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
48931         (vasnprintf): Use it instead of wcslen.
48932
48933 2003-08-11  Bruno Haible  <bruno@clisp.org>
48934
48935         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
48936         value to ensure that _Bool promotes to int. Use #define for _Bool when
48937         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
48938
48939 2003-08-10  Karl Berry  <karl@gnu.org>
48940
48941         * lib/regex.h: update from libc (whitespace fix).
48942
48943 2003-08-09  Paul Eggert  <eggert@twinsun.com>
48944
48945         Merge some files from coreutils.  These changes were
48946         originally made by Jim Meyering.
48947         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
48948         many older Unixes require this.
48949         * lib/alloca.c (alloca): Remove cast to argument of free;
48950         no longer needed in C89.
48951         * lib/alloca_.h, regex.h: Fix white space to match
48952         what GNU indent does.
48953
48954 2003-08-09  Paul Eggert  <eggert@twinsun.com>
48955
48956         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
48957         apparently Emacs's Unicode mode got confused before my 2003-08-05
48958         checkin.
48959
48960 2003-08-08  Paul Eggert  <eggert@twinsun.com>
48961
48962         * m4/extensions.m4: New file.
48963         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
48964         Require gl_USE_SYSTEM_EXTENSIONS.
48965         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
48966         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
48967
48968 2003-08-08  Paul Eggert  <eggert@twinsun.com>
48969
48970         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
48971         * modules/extensions, modules/gnu-source: New files.
48972         * modules/timespec, modules/unlocked-io: Depend on extensions.
48973
48974 2003-08-07  Paul Eggert  <eggert@twinsun.com>
48975
48976         * modules/restrict: New file.
48977         * MODULES.html.sh (func_all_modules): Add restrict.
48978         * modules/regex: Depend on restrict.
48979
48980 2003-08-07  Paul Eggert  <eggert@twinsun.com>
48981
48982         * m4/restrict.m4: New file.
48983         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
48984
48985 2003-08-07  Bruno Haible  <bruno@clisp.org>
48986
48987         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
48988         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
48989
48990 2003-08-07  Bruno Haible  <bruno@clisp.org>
48991
48992         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
48993         makes the module 'getndelim2' compatible with the module 'getline'.
48994
48995 2003-08-05  Paul Eggert  <eggert@twinsun.com>
48996
48997         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
48998         byte with "\201" to avoid glitches when editing that source file
48999         with multi-gnome-terminal.
49000
49001 2003-08-05  Paul Eggert  <eggert@twinsun.com>
49002
49003         * lib/bumpalloc.h: Remove.
49004
49005 2003-08-05  Paul Eggert  <eggert@twinsun.com>
49006
49007         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
49008         * modules/bumpalloc: Remove.
49009
49010 2003-08-04  Paul Eggert  <eggert@twinsun.com>
49011
49012         * lib/getloadavg.c: Change copyright notice and spacing to conform to
49013         GNU coding style.
49014
49015         Merge from coreutils.
49016         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
49017         1. From glibc.
49018         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
49019         from Karl Berry, implemented by Jim Meyering.
49020         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
49021         from Dmitry V. Levin.
49022         Remove anachronistic cast of xrealloc.
49023         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
49024         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
49025         type. Otherwise, it wouldn't compile with at least /bin/cc on
49026         ymp-cray-unicos9.0.2.X.
49027         Combine two mostly-identical uses of alloca into one.
49028         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
49029
49030 2003-08-04  Dave Love  <d.love@dl.ac.uk>
49031
49032         [From Emacs.]
49033
49034         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
49035         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
49036         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
49037         obsolete NLIST_NAME_UNION.
49038         [__GNU__]: Undef BSD and FSCALE.
49039         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
49040
49041 2003-08-03  Paul Eggert  <eggert@twinsun.com>
49042
49043         * lib/stdbool_.h (_Bool): Make it signed char, instead of
49044         an enum type, so that it's guaranteed to promote to int.  See:
49045         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
49046
49047 2003-08-03  Karl Berry  <karl@gnu.org>
49048
49049         * config/depcomp: update from automake.
49050
49051 2003-07-31  Paul Eggert  <eggert@twinsun.com>
49052
49053         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
49054         (strerror): Don't assume that a printable int fits in 14 bytes.
49055
49056 2003-07-31  Bruno Haible  <bruno@clisp.org>
49057
49058         * modules/getpass-gnu: New file.
49059         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
49060
49061 2003-07-31  Bruno Haible  <bruno@clisp.org>
49062
49063         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
49064
49065 2003-07-24  Karl Berry  <karl@gnu.org>
49066
49067         * config/missing: update from automake.
49068
49069 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
49070             Bruno Haible  <bruno@clisp.org>
49071
49072         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
49073         * lib/getline.c (getline, getdelim): Likewise.
49074         Remove _GNU_SOURCE define; now it's defined in config.h through
49075         m4/getline.m4.
49076
49077 2003-07-23  Karl Berry  <karl@gnu.org>
49078
49079         * config/config.sub: update from prep.
49080
49081 2003-07-22  Paul Eggert  <eggert@twinsun.com>
49082
49083         * modules/xalloc (Depends-on): Add exitfail.
49084         * modules/xmemcoll: Likewise.
49085
49086 2003-07-22  Paul Eggert  <eggert@twinsun.com>
49087
49088         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
49089         over-parenthesization in macros.
49090
49091         Sync with coreutils.
49092
49093         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
49094         required by C99.
49095
49096         Use `exit_failure' for xalloc and xmemcoll instead of their own
49097         private exit-failure variables.
49098         * lib/xalloc.h (xalloc_exit_failure): Remove.
49099         * lib/xmalloc.c: Likewise.  Include exitfail.h.
49100         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
49101         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
49102         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
49103         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
49104
49105 2003-07-20  Jim Meyering  <jim@meyering.net>
49106
49107         * modules/closeout (Depends-on): Add exitfail.
49108         Suggestion from Bruno Haible.
49109
49110 2003-07-19  Karl Berry  <karl@gnu.org>
49111
49112         * config/config.sub: update from prep.
49113
49114 2003-07-18  Paul Eggert  <eggert@twinsun.com>
49115
49116         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
49117         Remove.
49118         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
49119         to test that it can stand by itself.  Include "exitfail.h".
49120         Clients should set exit_failure instead.
49121         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
49122
49123 2003-07-18  Bruno Haible  <bruno@clisp.org>
49124
49125         * modules/getndelim2: New file.
49126         * modules/getline: Share files with module getndelim2.
49127         * modules/getnline: Depend on getndelim2 instead of sharing files with
49128         it. Add getnline.c to lib_SOURCES.
49129         * MODULES.html.sh (func_all_modules): Add getndelim2.
49130
49131 2003-07-18  Bruno Haible  <bruno@clisp.org>
49132
49133         * m4/getndelim2.m4: New file.
49134         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
49135         invoke gl_PREREQ_GETNDELIM2.
49136         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
49137         gl_PREREQ_GETNDELIM2.
49138         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
49139         gl_GETNDELIM2.
49140
49141 2003-07-18  Bruno Haible  <bruno@clisp.org>
49142
49143         * lib/getndelim2.h: New file.
49144         * lib/getndelim2.c: Make into a module of its own. Include config.h,
49145         getndelim2.h.
49146         (getndelim2): Make non-static. Change return type to ssize_t.
49147         * lib/getline.h: Change argument names.
49148         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
49149         * lib/getnline.c: Include getndelim2.h.
49150
49151 2003-07-18  Andreas Schwab  <schwab@suse.de>
49152
49153         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
49154
49155 2003-07-17  Karl Berry  <karl@gnu.org>
49156
49157         * config/config.sub: update from prep.
49158
49159 2003-07-17  Bruno Haible  <bruno@clisp.org>
49160
49161         * modules/getnline: New file.
49162         * modules/getline: Add lib/getndelim2.c to source file list.
49163         * MODULES.html.sh (func_all_modules): Add getnline.
49164
49165 2003-07-17  Bruno Haible  <bruno@clisp.org>
49166
49167         * m4/getnline.m4: New file.
49168
49169 2003-07-17  Bruno Haible  <bruno@clisp.org>
49170
49171         * m4/Makefile.am.in: Remove file.
49172         * m4/Makefile.am: Remove file.
49173         * m4/Makefile.in: Remove file.
49174
49175 2003-07-17  Bruno Haible  <bruno@clisp.org>
49176
49177         * lib/getnline.h: New file.
49178         * lib/getnline.c: New file.
49179         * lib/getndelim2.c: New file, extracted from getline.c.
49180         (getndelim2): Renamed from getdelim2, with added nmax argument.
49181         * lib/getline.c: Include getndelim2.c.
49182         (getdelim2): Moved out to getndelim2.c.
49183         (getline, getdelim): Update.
49184
49185 2003-07-17  Bruno Haible  <bruno@clisp.org>
49186
49187         * lib/Makefile.am: Remove file.
49188         * lib/Makefile.in: Remove file.
49189
49190 2003-07-17  Bruno Haible  <bruno@clisp.org>
49191
49192         * configure.in: Remove file.
49193         * Makefile.in: Remove file.
49194
49195 2003-07-17  Bruno Haible  <bruno@clisp.org>
49196
49197         * MODULES.html.sh: Put the </BODY> right before </HTML>.
49198
49199 2003-07-16  Karl Berry  <karl@gnu.org>
49200
49201         * config/srclist-update: was running fixlicense twice, which caused
49202                 texinfo.tex to be nullified for some reason.  Simplify,
49203                 $gplsrc is no longer needed as far as I can see?
49204
49205 2003-07-16  Jim Meyering  <jim@meyering.net>
49206
49207         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
49208
49209 2003-07-15  Paul Eggert  <eggert@twinsun.com>
49210
49211         * config/srclist.txt: Get the following files from gettext-runtime/intl
49212         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
49213         ref-del.sin.  From Bruno Haible.
49214         * config/srclist-update (fixfile): Change grep pattern again, since the
49215         previous fix didn't work (there was another trailing $).  Use
49216         '[$]' to escape the $s.
49217
49218 2003-07-15  Karl Berry  <karl@gnu.org>
49219
49220         * lib/vasnprintf.c: update from gettext.
49221
49222 2003-07-15  Karl Berry  <karl@gnu.org>
49223
49224         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
49225         gets expanded when surrounded by '$'.
49226
49227 2003-07-15  Jim Meyering  <jim@meyering.net>
49228
49229         * modules/save-cwd: Don't depend on error.  From Derek Price.
49230
49231 2003-07-15  Jim Meyering  <jim@meyering.net>
49232
49233         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
49234
49235 2003-07-14  Simon Josefsson  <jas@extundo.com>
49236
49237         * modules/mempcpy: New file.
49238         * MODULES.html.sh (func_all_modules): Add mempcpy.
49239
49240 2003-07-14  Simon Josefsson  <jas@extundo.com>
49241
49242         * m4/mempcpy.m4: New file.
49243
49244 2003-07-14  Simon Josefsson  <jas@extundo.com>
49245
49246         * lib/mempcpy.h: New file.
49247         * lib/mempcpy.c: New file.
49248
49249 2003-07-14  Paul Eggert  <eggert@twinsun.com>
49250
49251         * modules/getdate, modules/posixtm: Depend on mktime.
49252
49253 2003-07-14  Paul Eggert  <eggert@twinsun.com>
49254
49255         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
49256         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
49257         unicodeio.c, unicodeio.h, unlocked-io.h:
49258         Switch from LGPL to GPL.
49259
49260 2003-07-14  Paul Eggert  <eggert@twinsun.com>
49261
49262         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
49263         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
49264         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
49265         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
49266         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
49267         updated automatically by ../config/srclist-update.  This changes
49268         their license from LPGL to GPL.
49269
49270 2003-07-14  Paul Eggert  <eggert@twinsun.com>
49271
49272         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
49273         assumed to refer to the root of the most recent stable gettext version.
49274         * config/srclistvars.sh: Add defaults for eggert.
49275         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
49276         Match "This program" as well as "The program".  This is needed
49277         for gettext.
49278
49279 2003-07-14  Jim Meyering  <jim@meyering.net>
49280
49281         Don't emit diagnostics.  Let callers do that.
49282         * lib/save-cwd.c: Don't include "error.h".
49283         (save_cwd): Don't call error.  Ensure that errno is valid
49284         when returning nonzero.
49285
49286         * lib/save-cwd.h (restore_cwd): Update prototype.
49287         * lib/save-cwd.c (restore_cwd): Remove two parameters.
49288         Simplify.  Don't call error upon failure.  Let callers do that.
49289         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
49290         when auditing is enabled.  But don't bother updating the #if.
49291
49292 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
49293
49294         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
49295         it breaks C++ compilation.
49296         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
49297
49298 2003-07-10  Simon Josefsson  <jas@extundo.com>
49299
49300         * modules/strchrnul (Makefile.am): Add strchrnul.h.
49301
49302 2003-07-10  Jim Meyering  <jim@meyering.net>
49303
49304         * m4/clock_time.m4: Remove trailing blank.
49305         * m4/intmax_t.m4: Likewise.
49306
49307 2003-07-10  Jim Meyering  <jim@meyering.net>
49308
49309         * lib/vasnprintf.c: Remove trailing blanks.
49310         Make cpp indentation consistent.
49311
49312 2003-07-09  Paul Eggert  <eggert@twinsun.com>
49313
49314         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
49315         posixver.c, strftime.c, strnlen.c, strverscmp.c:
49316         Switch from LGPL to GPL.
49317
49318 2003-07-09  Paul Eggert  <eggert@twinsun.com>
49319
49320         * config/srclist.txt: Sort sublists.  Add
49321         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
49322         that differ from gnulib for one reason or another; we'd like this list
49323         to be smaller but for now let's document what we have.
49324
49325 2003-07-08  Paul Eggert  <eggert@twinsun.com>
49326
49327         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
49328         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
49329         and sweeter "eval x=$x".
49330         * config/srclist.txt: Get lib/argp* from glibc.
49331
49332 2003-07-07  Paul Eggert  <eggert@twinsun.com>
49333
49334         * lib/mktime.c: Fix some boundary cases and remove need for floating
49335         point.
49336
49337         Issue a compile-time diagnostic if time_t is floating point, or if
49338         two's complement arithmetic is not in effect, or if arithmetic
49339         right shift does not propagate the sign.  These assumptions were
49340         all in the original code but they weren't checked.
49341
49342         (TIME_T_MIDPOINT, verify): New macros.
49343         (__isleap): Remove; it has integer overflow problems.
49344         (leapyear): New function, without those problems.
49345         (ydhms_tm_diff): Remove; splitting into two parts.
49346         (ydhms_diff): New function, containing the arithmetic part of
49347         the old ydhms_tm_diff function.  Issue a compile-time
49348         diagnostic if we are not using C99 integer division.
49349         Avoid casts when possible.
49350         (guess_time_tm): New function, containing the checking part of
49351         the old ydhms_tm_diff function.  Return the new value, rather than
49352         the difference between it and the old.  Accept a new argument T
49353         so that *T specifies the old value.  Check for overflow in the result.
49354
49355         (__mktime_internal): Use a time_t offset, not a long int offset.
49356         This undoes the 2003-06-04 change, which is no longer needed now
49357         that we have better overflow checking.
49358         (localtime_offset): Likewise.
49359
49360         (__mktime_internal): Avoid harmful overflow on hosts where time_t
49361         and long are 64-bit but int is only 32-bit.
49362         (ydhms_diff): Use long int to store year1 and yday1.
49363         Issue a compile-time diagnostic if long int is not wide enough.
49364
49365         (__mktime_internal): Use long int to store adjusted year and yday.
49366         Use plain C rather than preprocessor commands, if that doesn't
49367         affect efficiency.
49368         Check for overflow (and try to repair) after each probe
49369         rather than checking only at the very end.  This avoids some bugs
49370         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
49371         does not equal GMT offset at maximum time).
49372         Use integer to check for overflow rather than floating point; this
49373         is more portable to non-IEEE hosts, and is a tad faster.
49374         When we detect that we are oscillating between two values,
49375         don't check whether tm_isdst has the requested value, since
49376         we already know the answer.  When tm_isdst has the wrong value,
49377         use a different heuristic to find the right one, based on the
49378         extreme values actually observed in practice in tz2003a,
49379         rather than the (overly optimistic) "previous 3 calendar quarters".
49380
49381         (not_equal_tm, print_tm, check_result): Use "const T" rather than
49382         "T const" to accommodate glibc style.
49383         (check_result): Use less-confusing report format.  "long" -> "long int.
49384         (main): Likewise.
49385         Don't loop if the iteration overflows time_t.
49386         Allow a negative step in the iteration.
49387
49388 2003-07-06  Karl Berry  <karl@gnu.org>
49389
49390         * config/depcomp: update from automake.
49391         * config/config.sub: update from prep.
49392
49393 2003-07-03  Karl Berry  <karl@gnu.org>
49394
49395         * config/config.guess: update from prep.
49396
49397 2003-07-01  Paul Eggert  <eggert@twinsun.com>
49398
49399         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
49400         xreadlink.c now includes it unconditionally.
49401
49402 2003-07-01  Paul Eggert  <eggert@twinsun.com>
49403
49404         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
49405         having it depend on HAVE_SYS_TYPES_H.
49406
49407 2003-07-01  Bruno Haible  <bruno@clisp.org>
49408
49409         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
49410         <sys/types.h> should be sufficient.
49411         Reported by Paul Eggert.
49412
49413 2003-06-26  Karl Berry  <karl@gnu.org>
49414
49415         * config/depcomp: update from automake.
49416
49417 2003-06-26  Bruno Haible  <bruno@clisp.org>
49418
49419         * modules/human: Depend on module stdbool.
49420
49421 2003-06-25  Bruno Haible  <bruno@clisp.org>
49422
49423         * modules/readlink: New file.
49424         * modules/xreadlink: Depend on it.
49425         * MODULES.html.sh (func_all_modules): Add readlink.
49426
49427 2003-06-25  Bruno Haible  <bruno@clisp.org>
49428
49429         * m4/readlink.m4: New file.
49430
49431 2003-06-25  Bruno Haible  <bruno@clisp.org>
49432
49433         * lib/readlink.c: New file.
49434
49435 2003-06-22  Karl Berry  <karl@gnu.org>
49436
49437         * config/srclist.txt: update mkinstalldirs from automake.
49438         * config/mkinstalldirs: update.
49439
49440 2003-06-22  Bruno Haible  <bruno@clisp.org>
49441
49442         Portability to mingw32.
49443         * m4/ssize_t.m4: New file, from GNU gettext.
49444         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
49445         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
49446
49447 2003-06-22  Bruno Haible  <bruno@clisp.org>
49448
49449         * modules/safe-read: Add m4/ssize_t.m4.
49450         * modules/xreadlink: Add m4/ssize_t.m4.
49451
49452 2003-06-20  Bruno Haible  <bruno@clisp.org>
49453
49454         Assume C89, so PARAMS isn't needed.
49455         * lib/unicodeio.h (PARAMS): Remove.
49456         * lib/unicodeio.c: Don't use PARAMS.
49457
49458 2003-06-18  Karl Berry  <karl@gnu.org>
49459
49460         * config/config.{guess,sub}: update from prep.
49461
49462 2003-06-18  Jim Meyering  <jim@meyering.net>
49463
49464         Merge changes from coreutils.
49465         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
49466         Remove explicit declarations of xmalloc and realloc.
49467         Include xalloc.h.
49468         (read_utmp): Remove anachronistic cast of xmalloc.
49469
49470 2003-06-17  Paul Eggert  <eggert@twinsun.com>
49471
49472         Assume C89, so PARAMS isn't needed.
49473         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
49474         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
49475         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
49476         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
49477         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
49478         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
49479         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
49480         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
49481         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
49482         lib/xstrtod.h, lib/xstrtol.h: Likewise.
49483         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
49484         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
49485         no longer needed. Anyway, config.h should always be included before any
49486         other file.
49487
49488 2003-06-11  Simon Josefsson  <jas@extundo.com>
49489
49490         * modules/sysexits: New file.
49491         * MODULES.html.sh (func_all_modules): Add sysexits.
49492
49493 2003-06-11  Simon Josefsson  <jas@extundo.com>
49494
49495         * lib/sysexit_.h: New file.
49496
49497 2003-06-11  Derek Price  <derek@ximbiot.com>
49498
49499         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
49500         necessary.
49501
49502 2003-06-11  Bruno Haible  <bruno@clisp.org>
49503
49504         * m4/sysexits.m4: New file.
49505
49506 2003-06-10  Simon Josefsson  <jas@extundo.com>
49507
49508         * lib/argp.h: New file, from glibc.
49509         * lib/argp-ba.c: New file, from glibc.
49510         * lib/argp-eexst.c: New file, from glibc.
49511         * lib/argp-fmtstream.c: New file, from glibc.
49512         * lib/argp-fmtstream.h: New file, from glibc.
49513         * lib/argp-fs-xinl.c: New file, from glibc.
49514         * lib/argp-help.c: New file, from glibc.
49515         * lib/argp-namefrob.h: New file, from glibc.
49516         * lib/argp-parse.c: New file, from glibc.
49517         * lib/argp-pv.c: New file, from glibc.
49518         * lib/argp-pvh.c: New file, from glibc.
49519         * lib/argp-xinl.c: New file, from glibc.
49520
49521 2003-06-10  Simon Josefsson  <jas@extundo.com>
49522
49523         * modules/strchrnul: New file.
49524
49525 2003-06-10  Simon Josefsson  <jas@extundo.com>
49526
49527         * modules/argp: New file.
49528
49529 2003-06-10  Simon Josefsson  <jas@extundo.com>
49530
49531         * m4/strchrnul.m4: New file.
49532
49533 2003-06-10  Simon Josefsson  <jas@extundo.com>
49534
49535         * lib/strchrnul.h: New file.
49536         * lib/strchrnul.c: New file.
49537
49538 2003-06-10  Bruno Haible  <bruno@clisp.org>
49539
49540         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
49541
49542 2003-06-07  Karl Berry  <karl@gnu.org>
49543
49544         * config/config.{guess,sub}: update from prep.
49545
49546 2003-06-07  Jim Meyering  <jim@meyering.net>
49547
49548         * modules/strtod: Use $(...) notation, not @...@ for
49549         AC_REPLACE'd variables.
49550         * modules/localcharset: Likewise.
49551
49552 2003-06-07  Jim Meyering  <jim@meyering.net>
49553
49554         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
49555         in place of my name in the copyright comment.
49556         Remove definition and uses of __P.
49557
49558         From coreutils.
49559         * lib/stat.c: Don't declare xmalloc explicitly.
49560         Instead, include "xalloc.h".
49561         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
49562         xrealloc, and xcalloc return values.
49563         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
49564         Improve comment.
49565         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
49566
49567 2003-06-07  Bruno Haible  <bruno@clisp.org>
49568
49569         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
49570         avoid AC_CONFIG_LINKS.
49571         * modules/fnmatch (Makefile.am): Use explicit creation rule for
49572         fnmatch.h, to avoid AC_CONFIG_LINKS.
49573         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
49574
49575 2003-06-07  Bruno Haible  <bruno@clisp.org>
49576
49577         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
49578         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
49579         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
49580         directory.
49581         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
49582         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
49583         directory.
49584
49585 2003-06-06  Jim Meyering  <jim@meyering.net>
49586
49587         Merge from coreutils.
49588         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
49589         Consolidate declarations and initializations of *_base* locals.
49590
49591         Merge from coreutils.
49592         This avoids a core dump on systems without GNU putenv,
49593         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
49594         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
49595         (unsetenv): New static function, from GNU libc.
49596         (rpl_putenv): Use it.
49597
49598         * lib/modechange.c: Remove trailing blanks.
49599
49600         Merge from coreutils.
49601         * lib/fsusage.c: Remove declaration of statfs.
49602         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
49603
49604         * lib/posixtm.c: Include <stdbool.h> unconditionally.
49605
49606 2003-06-06  Jim Meyering  <jim@meyering.net>
49607
49608         * lib/stdbool_.h: Renamed from stdbool.h.in.
49609
49610 2003-06-06  Jim Meyering  <jim@meyering.net>
49611             Bruno Haible  <bruno@clisp.org>
49612
49613         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
49614         Adjust Makefile.am snippet not to redirect directly to target.
49615         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
49616
49617 2003-06-05  Paul Eggert  <eggert@twinsun.com>
49618
49619         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
49620         mismatch, look in future quarters as well as past.  This fixes a
49621         bug when processing fall-backwards gaps immediately after a long
49622         period of daylight-saving time.
49623
49624         * lib/mktime.c: Assume freestanding C89 or better.
49625         (HAVE_LIMITS_H): Remove.  Assume it's 1.
49626         (__P): Remove; not used.
49627         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
49628         (mktime, not_equal_tm, print_tm, check_result,
49629         main): Use prototypes.  Use const * where appropriate.
49630         (main): Fix typo in testing code that uncovered by above changes.
49631         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
49632
49633 2003-06-04  Paul Eggert  <eggert@twinsun.com>
49634
49635         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
49636         locale.h, localeconv.  This merges changes from coreutils.
49637
49638         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
49639         It can be removed after the next Autoconf is released.
49640         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
49641         needed.
49642
49643 2003-06-04  Paul Eggert  <eggert@twinsun.com>
49644
49645         * lib/mktime.c: Fix Debian bug 177940
49646         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
49647         (localtime_offset): Now long int, not time_t, because we want it
49648         to be guaranteed to be signed.  All uses changed.
49649         (__mktime_internal): If overflow would occur when adding offset,
49650         don't add it.
49651
49652         Merge 'human' changes from coreutils.  Rewrite to support
49653         locale-specific notations like thousands separators.
49654         * lib/human.c: Simplify authorship notice.
49655         Include human.h immediately after config.h.
49656         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
49657         <limits.h>: Do not include, since human.h does.
49658         (SIZE_MAX, UINTMAX_MAX): New macros.
49659         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
49660         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
49661         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
49662         (power_letter): Renamed from suffixes.
49663         (generate_suffix_backwards): Remove.
49664         (adjust_value): Now takes int style (because of human.h changes)
49665         and long double value (for greater precision on some platforms).
49666         (group_number): New function.
49667         (human_readable): Use it.  Use integer options, not enum.
49668         Put the options before the sizes in the arg list.
49669         Support all the new options.
49670         The old human_readable function has been removed;
49671         use inttostr.h instead.
49672         (human_readable, default_block_size, humblock):
49673         Use uintmax_t, not int, for block sizes.
49674         (human_readable_inexact, block_size_types): Remove.
49675         (block_size_opts): New constant.
49676         (human_options): Renamed from human_block_size, with new signature
49677         that allows block sizes up to UINTMAX_MAX.  All callers changed.
49678         * lib/human.h: Add copyright and authorship notice.
49679         Include <limits.h> and <stdbool.h> unconditionally.
49680         (PARAMS): Remove.  All uses removed.
49681         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
49682         (enum human_inexact_style): Remove tag; now a nameless enum.
49683         (human_floor, human_ceiling, human_round_to_even): Now have
49684         values 2, 0, 1 rather than -1, 1, 0.
49685         (human_group_digits, human_suppress_point_zero, human_autoscale,
49686         human_base_1024, human_SI, human_B): New constants.
49687         (human_readable_inexact, human_block_size): Remove.
49688         (human_readable): Size args are now uintmax_t, not int.
49689         (human_options): New decl.
49690
49691         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
49692         unnecessary now that we assume C89 or better.  This change
49693         imported from coreutils.
49694
49695         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
49696         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
49697         in the 2003-05-30 sync from glibc.
49698
49699         .h files should stand alone, but we shouldn't include <sys/types.h>
49700         if we can get away with just <stddef.h>.
49701
49702         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
49703         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
49704         rather than <sys/types.h>, as we merely need size_t.
49705         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
49706         to get size_t.
49707         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
49708         Include <stdio.h>, to get FILE.
49709         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
49710         memcasecmp.h has included <stddef.h> and all we need is size_t.
49711         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
49712         our interface, instead of including <sys/types.h>
49713
49714 2003-06-04  Paul Eggert  <eggert@twinsun.com>
49715
49716         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
49717         now, as glibc mktime is buggy on non-glibc systems.
49718
49719 2003-06-03  Karl Berry  <karl@gnu.org>
49720
49721         * config/config.sub: update from prep.
49722
49723 2003-06-02  Paul Eggert  <eggert@twinsun.com>
49724
49725         [from coreutils]
49726         Fix some minor time-related bugs with POSIX time arguments.
49727         Some valid time stamps were being rejected (notably -1, and
49728         time stamps before 1900 on 64-bit hosts).  And some invalid
49729         time stamps were being accepted, e.g. September 31.
49730
49731         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
49732         that we can return (time_t) -1 successfully.
49733         * lib/posixtm.c: Likewise.
49734         [HAVE_STDBOOL_H]: Include <stdbool.h>.
49735         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
49736         (t): Remove static var.
49737         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
49738         of static var.  All uses changed.
49739         (year): Do not reject years before 1900; they can occur with
49740         64-bit time_t.
49741         (posix_time_parse): Do not check for out-of-range components;
49742         that is now the caller's responsibility, since our checks were
49743         only approximations.
49744         (posixtime): Use mktime to check for out-of-range components,
49745         since it knows them exactly.
49746         If mktime returns (time_t) -1, check whether an error actually occurred
49747         by invoking localtime on -1.
49748         (main) [TEST_POSIXTIME]: Check for input data errors, and report
49749         posixtime failures better.
49750         Improve the test data (in comments only).
49751
49752 2003-06-02  Karl Berry  <karl@gnu.org>
49753
49754         * config/mkinstalldirs (version): new variable.
49755         (--version): new option.
49756         (usage): improve message.
49757
49758 2003-05-30  Karl Berry  <karl@gnu.org>
49759
49760         * lib/mktime.c: update from libc.
49761
49762 2003-05-30  Bruno Haible  <bruno@clisp.org>
49763
49764         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
49765         * config/config.rpath: Upgrade to gettext-0.12.1.
49766
49767 2003-05-30  Bruno Haible  <bruno@clisp.org>
49768
49769         * m4/gettext.m4: Upgrade to gettext-0.12.1.
49770         * m4/nls.m4: New file, from gettext-0.12.1.
49771         * m4/po.m4: New file, from gettext-0.12.1.
49772         * m4/progtest.m4: Upgrade to gettext-0.12.1.
49773
49774 2003-05-30  Bruno Haible  <bruno@clisp.org>
49775
49776         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
49777         * lib/localcharset.h: Likewise.
49778         * lib/localcharset.c: Likewise.
49779
49780 2003-05-29  Karl Berry  <karl@gnu.org>
49781
49782         * config/config.rpath: update from gettext.
49783
49784 2003-05-28  Paul Eggert  <eggert@twinsun.com>
49785
49786         Assume the headers required for C89 freestanding compilers.
49787         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
49788         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
49789         * m4/human.m4 (gl_HUMAN): Likewise.
49790         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
49791         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
49792         * m4/userspec.m4 (gl_USERSPEC): Likewise.
49793         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
49794         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49795         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
49796
49797 2003-05-28  Paul Eggert  <eggert@twinsun.com>
49798
49799         Assume the headers required for C89 freestanding compilers.
49800         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
49801         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
49802         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
49803         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
49804         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
49805         define, since <limits.h> is guaranteed to do that.
49806         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
49807         * lib/exclude.c: Include <stdbool.h> unconditionally.
49808         * lib/tempname.c: Include <stddef.h> unconditionally.
49809         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
49810         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
49811         <stddef.h> does that.
49812         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
49813         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
49814         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
49815         needed.
49816         * lib/xstrtol.c: Likewise.
49817         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
49818         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
49819
49820         * lib/addext.c (addext): Use assignment rather than cast, to avoid
49821         warnings on some platforms.
49822
49823         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
49824         arbitrarily.
49825
49826 2003-05-26  Jim Meyering  <jim@meyering.net>
49827
49828         Merge in a change from coreutils:
49829         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
49830         that is guaranteed to be `no'.  Use `no_such_member' to indicate
49831         that condition, rather than `-1' which is slightly misleading.
49832         Change the name of the cache variable to have the gl_ prefix.
49833         Prompted by a patch from Richard Dawe for DJGPP.
49834
49835 2003-05-24  Karl Berry  <karl@gnu.org>
49836
49837         * config/config.guess: update from prep.
49838
49839 2003-05-22  Karl Berry  <karl@gnu.org>
49840
49841         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
49842
49843 2003-05-20  Karl Berry  <karl@gnu.org>
49844
49845         * config/config.guess: update from prep.
49846
49847 2003-05-18  Karl Berry  <karl@gnu.org>
49848
49849         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
49850         might actually be set by the user.
49851
49852         * config/depcomp, install-sh, mdate-sh: update from automake.
49853
49854 2003-05-17  Bruno Haible  <bruno@clisp.org>
49855
49856         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
49857         invalid expansion for AC_EGREP_CPP.
49858         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
49859         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
49860         Suggested by Akim Demaille <akim@epita.fr> in
49861         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
49862
49863 2003-05-12  Jim Meyering  <jim@meyering.net>
49864
49865         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
49866         the space-padded-by-default conversion specifiers, %e, %k, %l.
49867
49868 2003-05-12  Bruno Haible  <bruno@clisp.org>
49869
49870         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
49871         the string is longer than 4 KB.
49872
49873 2003-05-11  Karl Berry  <karl@gnu.org>
49874
49875         * config/config.{guess,sub}: update from prep.
49876
49877 2003-05-09  Bruno Haible  <bruno@clisp.org>
49878
49879         * modules/error: Add m4/strerror_r.m4 to file list.
49880
49881 2003-05-03  Bruno Haible  <bruno@clisp.org>
49882
49883         Upgrade to Unicode-4.0.
49884         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
49885         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
49886         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
49887         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
49888         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
49889         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
49890         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
49891         Change width of U+E0100..U+E01EF from 1 to 0.
49892
49893 2003-04-25  Jim Meyering  <jim@meyering.net>
49894
49895         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
49896         of type size_t, not int.
49897
49898 2003-04-25  Bruno Haible  <bruno@clisp.org>
49899
49900         * lib/copy-file.c: Include <stddef.h>, for size_t.
49901
49902 2003-04-21  Paul Eggert  <eggert@twinsun.com>
49903
49904         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
49905         code which expansion is under static control.  Patch imported from
49906         Akim Demaille's patch to Bison; see
49907         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
49908
49909 2003-04-14  Bruno Haible  <bruno@clisp.org>
49910
49911         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
49912
49913 2003-04-11  Jim Meyering  <jim@meyering.net>
49914
49915         Merge changes from Coreutils.
49916
49917         2003-03-22  Jim Meyering  <jim@meyering.net>
49918
49919         * lib/strftime.c (widen): Cast alloca return value to proper type.
49920
49921         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
49922
49923         From GNU libc.
49924         * lib/strftime.c (my_strftime): Handle very large width
49925         specifications for numeric values correctly.  Improve checks for
49926         overflow.
49927
49928         2003-01-19  Jim Meyering  <jim@meyering.net>
49929
49930         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
49931         definitions.
49932         (nl_get_alt_digit) [! defined my_strftime]: Define.
49933         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
49934         _nl_get_alt_digit and _nl_get_walt_digit.
49935
49936         * lib/strftime.c (my_strftime): Merge in locale-related changes from
49937         libc. These changes have no effect outside of _LIBC.
49938
49939 2003-04-10  Bruno Haible  <bruno@clisp.org>
49940
49941         * modules/findprog: New file.
49942         * MODULES.html.sh (func_all_modules): Add it.
49943
49944 2003-04-10  Bruno Haible  <bruno@clisp.org>
49945
49946         * m4/findprog.m4: New file.
49947         * m4/eaccess.m4: New file.
49948
49949 2003-04-10  Bruno Haible  <bruno@clisp.org>
49950
49951         * lib/findprog.h: New file, from GNU gettext.
49952         * lib/findprog.c: New file, from GNU gettext.
49953
49954 2003-04-05  Jim Meyering  <jim@meyering.net>
49955
49956         Merge changes from Coreutils.
49957
49958         * lib/exclude.h (PARAMS): Remove definition and uses.
49959         * lib/exclude.c: Remove uses of `PARAMS'.
49960
49961         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
49962         Add test-cases for DOS filenames. Declare program_name.
49963         (main): Set up program_name.  Patch by Rich Dawe.
49964
49965         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
49966         error from mntctl.
49967         Use mntctl's return value to drive the entry-processing loop, since
49968         we can't rely on the value of the vmt_length member in the last
49969         entry.  On some systems doing so could result in exhausting
49970         virtual memory.  Based in part on a patch from Mike Jetzer.
49971
49972 2003-04-04  Bruno Haible  <bruno@clisp.org>
49973
49974         * modules/linebreak: New file.
49975         * MODULES.html.sh (func_all_modules): Add it.
49976
49977 2003-04-04  Bruno Haible  <bruno@clisp.org>
49978
49979         * m4/linebreak.m4: New file.
49980
49981 2003-04-04  Bruno Haible  <bruno@clisp.org>
49982
49983         * lib/linebreak.h: New file, from GNU gettext.
49984         * lib/linebreak.c: New file, from GNU gettext with slight
49985         modifications.
49986         * lib/lbrkprop.h: New file, from GNU gettext.
49987
49988 2003-04-03  Bruno Haible  <bruno@clisp.org>
49989
49990         * modules/utf8-ucs4: New file.
49991         * modules/utf16-ucs4: New file.
49992         * modules/ucs4-utf8: New file.
49993         * modules/ucs4-utf16: New file.
49994         * MODULES.html.sh (func_all_modules): Add them.
49995
49996 2003-04-03  Bruno Haible  <bruno@clisp.org>
49997
49998         * m4/utf-ucs4.m4: New file.
49999         * m4/ucs4-utf.m4: New file.
50000
50001 2003-04-03  Bruno Haible  <bruno@clisp.org>
50002
50003         * lib/utf8-ucs4.h: New file, from GNU gettext.
50004         * lib/utf16-ucs4.h: New file, from GNU gettext.
50005         * lib/ucs4-utf8.h: New file, from GNU gettext.
50006         * lib/ucs4-utf16.h: New file, from GNU gettext.
50007
50008 2003-04-02  Bruno Haible  <bruno@clisp.org>
50009
50010         * modules/binary-io: New file.
50011         * MODULES.html.sh (func_all_modules): Add it.
50012
50013 2003-04-02  Bruno Haible  <bruno@clisp.org>
50014
50015         * lib/binary-io.h: New file, from GNU gettext.
50016
50017 2003-04-01  Bruno Haible  <bruno@clisp.org>
50018
50019         * modules/pathname: New file.
50020         * MODULES.html.sh (func_all_modules): Add it.
50021
50022 2003-04-01  Bruno Haible  <bruno@clisp.org>
50023
50024         * lib/pathname.h: New file, from GNU gettext.
50025         * lib/concatpath.c: New file, from GNU gettext.
50026
50027 2003-03-30  Bruno Haible  <bruno@clisp.org>
50028
50029         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
50030
50031 2003-03-30  Bruno Haible  <bruno@clisp.org>
50032
50033         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
50034         function chown() doesn't exist.
50035
50036 2003-03-28  Bruno Haible  <bruno@clisp.org>
50037
50038         * modules/copy-file: New file.
50039         * MODULES.html.sh (func_all_modules): Add it.
50040
50041 2003-03-28  Bruno Haible  <bruno@clisp.org>
50042
50043         * m4/copy-file.m4: New file.
50044
50045 2003-03-28  Bruno Haible  <bruno@clisp.org>
50046
50047         * lib/copy-file.h: New file, from GNU gettext.
50048         * lib/copy-file.c: New file, from GNU gettext.
50049
50050 2003-03-18  Jim Meyering  <jim@meyering.net>
50051
50052         * lib/quote.c (quote_n): Fix typo in comment.
50053
50054 2003-03-18  Bruno Haible  <bruno@clisp.org>
50055
50056         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
50057         checking.
50058         * m4/onceonly_2_57.m4: Likewise.
50059
50060 2003-03-17  Bruno Haible  <bruno@clisp.org>
50061
50062         * m4/onceonly.m4: Require autoconf 2.54 or newer.
50063         (m4_quote): Remove macro.
50064         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
50065
50066 2003-03-14  Jim Meyering  <jim@meyering.net>
50067
50068         Merge changes from Coreutils.
50069         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
50070         to be const, in order to avoid warnings.
50071         (obstack_room): Likewise.
50072         (obstack_empty_p): Likewise.
50073
50074 2003-03-14  Bruno Haible  <bruno@clisp.org>
50075
50076         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
50077         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
50078
50079 2003-03-13  Paul Eggert  <eggert@twinsun.com>
50080
50081         Merge changes from Bison.
50082         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
50083         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
50084         when compiling Bison 1.875's `bitset bset = obstack_alloc
50085         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
50086         * lib/hash.c: Include <stdbool.h> unconditionally.
50087
50088 2003-03-13  Paul Eggert  <eggert@twinsun.com>
50089
50090         * m4/onceonly.m4 (m4_quote): New macro.
50091         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
50092         Quote AC_FOREACH variable-expansions properly.
50093
50094 2003-03-13  Paul Eggert  <eggert@twinsun.com>
50095
50096         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
50097
50098 2003-03-09  Paul Eggert  <eggert@twinsun.com>
50099
50100         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
50101         Reported by Bruce Becker; see:
50102         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
50103
50104 2003-03-03  Paul Eggert  <eggert@twinsun.com>
50105             Bruno Haible  <bruno@clisp.org>
50106
50107         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
50108         Reported by John Hughes, see
50109         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
50110
50111 2003-02-20  Bruno Haible  <bruno@clisp.org>
50112
50113         * MODULES.html.sh (func_all_modules): Add poll.
50114
50115 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
50116
50117         * modules/poll: New file.
50118
50119 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
50120
50121         * lib/poll_.h: New file.
50122         * lib/poll.c: New file.
50123
50124 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
50125
50126         * m4/poll.m4: New file.
50127
50128 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
50129
50130         * modules/mathl: New file.
50131
50132 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
50133
50134         * lib/mathl.h: New file.
50135         * lib/acosl.c: New file.
50136         * lib/asinl.c: New file.
50137         * lib/atanl.c: New file.
50138         * lib/ceill.c: New file.
50139         * lib/cosl.c: New file.
50140         * lib/expl.c: New file.
50141         * lib/floorl.c: New file.
50142         * lib/frexpl.c: New file.
50143         * lib/ldexpl.c: New file.
50144         * lib/logl.c: New file.
50145         * lib/sincosl.c: New file.
50146         * lib/sinl.c: New file.
50147         * lib/sqrtl.c: New file.
50148         * lib/tanl.c: New file.
50149         * lib/trigl.c: New file.
50150         * lib/trigl.h: New file.
50151
50152 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
50153
50154         * m4/mathl.m4: New file.
50155
50156 2003-02-18  Bruno Haible  <bruno@clisp.org>
50157
50158         * MODULES.html.sh (func_all_modules): Add mathl.
50159
50160 2003-02-17  Bruno Haible  <bruno@clisp.org>
50161
50162         * modules/mkdtemp: New module.
50163         * MODULES.html.sh (func_all_modules): Add it.
50164
50165 2003-02-17  Bruno Haible  <bruno@clisp.org>
50166
50167         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
50168
50169 2003-02-17  Bruno Haible  <bruno@clisp.org>
50170
50171         * lib/mkdtemp.h: New file, from GNU gettext.
50172         * lib/mkdtemp.c: New file, from GNU gettext.
50173
50174 2003-02-02  Jim Meyering  <jim@meyering.net>
50175
50176         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
50177         e.g. glibc-2.2.93.
50178
50179 2003-01-31  Bruno Haible  <bruno@clisp.org>
50180
50181         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
50182         'rpl_rename'.
50183         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
50184         'rpl_strnlen'.
50185         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
50186         'rpl_strtod'.
50187         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
50188         'rpl_utime'.
50189
50190 2003-01-31  Bruno Haible  <bruno@clisp.org>
50191
50192         * lib/rename.c: #undef rename before defining rpl_rename.
50193         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
50194
50195 2003-01-30  Bruno Haible  <bruno@clisp.org>
50196
50197         * modules/vasnprintf, modules/vasprintf: New modules.
50198         * MODULES.html.sh (func_all_modules): Add them.
50199
50200 2003-01-30  Bruno Haible  <bruno@clisp.org>
50201
50202         * m4/signed.m4: New file, from GNU gettext.
50203         * m4/longdouble.m4: New file, from GNU gettext.
50204         * m4/wchar_t.m4: New file, from GNU gettext.
50205         * m4/wint_t.m4: New file, from GNU gettext.
50206         * m4/vasnprintf.m4: New file.
50207         * m4/vasprintf.m4: New file.
50208
50209 2003-01-30  Bruno Haible  <bruno@clisp.org>
50210
50211         * lib/printf-args.h: New file, from GNU gettext.
50212         * lib/printf-args.c: New file, from GNU gettext.
50213         * lib/printf-parse.h: New file, from GNU gettext.
50214         * lib/printf-parse.c: New file, from GNU gettext.
50215         * lib/vasnprintf.h: New file, from GNU gettext.
50216         * lib/vasnprintf.c: New file, from GNU gettext.
50217         * lib/asnprintf.c: New file, from GNU gettext.
50218         * lib/vasprintf.h: New file, from GNU gettext with modifications.
50219         * lib/vasprintf.c: New file, from GNU gettext.
50220         * lib/asprintf.c: New file, from GNU gettext.
50221
50222 2003-01-29  Bruno Haible  <bruno@clisp.org>
50223
50224         * modules/stpncpy: New module.
50225         * MODULES.html.sh (func_all_modules): Add it.
50226
50227 2003-01-29  Bruno Haible  <bruno@clisp.org>
50228
50229         * m4/stpncpy.m4: New file.
50230
50231 2003-01-29  Bruno Haible  <bruno@clisp.org>
50232
50233         * lib/stpncpy.h: New file, from GNU gettext with modifications.
50234         * lib/stpncpy.c: New file, from GNU gettext with modifications.
50235
50236 2003-01-28  Bruno Haible  <bruno@clisp.org>
50237
50238         * modules/c-ctype: New module.
50239         * MODULES.html.sh (func_all_modules): Add it.
50240
50241 2003-01-28  Bruno Haible  <bruno@clisp.org>
50242
50243         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
50244         Paul Eggert.
50245         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
50246         Paul Eggert.
50247
50248 2003-01-27  Bruno Haible  <bruno@clisp.org>
50249
50250         * modules/xsetenv: New module.
50251         * MODULES.html.sh (func_all_modules): Add it.
50252
50253 2003-01-27  Bruno Haible  <bruno@clisp.org>
50254
50255         * lib/xsetenv.h: New file, from GNU gettext.
50256         * lib/xsetenv.c: New file, from GNU gettext.
50257
50258 2003-01-23  Jim Meyering  <jim@meyering.net>
50259
50260         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
50261         from working on systems without dirfd (at least Irix and OSF1/Tru64).
50262
50263 2003-01-23  Bruno Haible  <bruno@clisp.org>
50264
50265         * modules/minmax: New module.
50266         * MODULES.html.sh (func_all_modules): Add it.
50267
50268 2003-01-23  Bruno Haible  <bruno@clisp.org>
50269
50270         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
50271         Eggert.
50272
50273 2003-01-22  Bruno Haible  <bruno@clisp.org>
50274
50275         * modules/exit: New module.
50276         * MODULES.html.sh (func_all_modules): Add it.
50277
50278 2003-01-22  Bruno Haible  <bruno@clisp.org>
50279
50280         * lib/exit.h: New file, from GNU gettext.
50281
50282 2003-01-19  Bruno Haible  <bruno@clisp.org>
50283
50284         * gnulib-tool: Recognize option --extract-maintainer.
50285         (func_get_maintainer): New function.
50286         * modules/*: Add Maintainer entry.
50287
50288 2003-01-16  Jim Meyering  <jim@meyering.net>
50289
50290         * m4/regex.m4: The `regex' struct is both input and output.
50291         Initialize it before each use.  Patch by Tim Waugh.
50292
50293 2003-01-16  Bruno Haible  <bruno@clisp.org>
50294
50295         * MODULES.html.sh: Add a table of contents. Add the module name as
50296         leftmost column. Add hyperlinks.
50297
50298 2003-01-15  Bruno Haible  <bruno@clisp.org>
50299
50300         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
50301
50302 2003-01-15  Bruno Haible  <bruno@clisp.org>
50303
50304         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
50305         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
50306         suffix.
50307
50308 2003-01-15  Bruno Haible  <bruno@clisp.org>
50309
50310         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
50311
50312 2003-01-15  Bruno Haible  <bruno@clisp.org>
50313
50314         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
50315         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
50316
50317 2003-01-14  Jim Meyering  <jim@meyering.net>
50318
50319         * lib/same.c (same_name): Tweak a comment.
50320
50321 2003-01-14  Bruno Haible  <bruno@clisp.org>
50322
50323         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
50324         when a string comparison is sufficient.
50325
50326 2003-01-14  Bruno Haible  <bruno@clisp.org>
50327
50328         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
50329         'unsigned int'.
50330
50331 2003-01-14  Bruno Haible  <bruno@clisp.org>
50332
50333         * lib/hash-pjw.c: Add comment about low quality of this function.
50334
50335 2003-01-13  Bruno Haible  <bruno@clisp.org>
50336
50337         * modules/stpcpy: Distribute lib/stpcpy.h.
50338         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
50339
50340 2003-01-13  Bruno Haible  <bruno@clisp.org>
50341
50342         * modules/*: Add a description.
50343         * modules/strpbrk: Fix Makefile.am snippet.
50344         * modules/strtoimax: Fix dependencies.
50345         * modules/strtoumax: Likewise.
50346
50347 2003-01-13  Bruno Haible  <bruno@clisp.org>
50348
50349         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
50350         * modules/alloca (Makefile.am): All object files depend on alloca.h.
50351         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
50352
50353 2003-01-13  Bruno Haible  <bruno@clisp.org>
50354
50355         * gnulib-tool (func_create_testdir): Store config/* files in the main
50356         directory.
50357         * config.rpath: Move to ...
50358         * config/config.rpath: ... here.
50359         * modules/gettext: Contains config/config.rpath, not config.rpath.
50360         * modules/iconv: Likewise.
50361
50362 2003-01-12  Paul Eggert  <eggert@twinsun.com>
50363
50364         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
50365         to avoid collisions with libcurses and libreadline.
50366
50367         * m4/getstr.m4: Remove.
50368         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
50369
50370 2003-01-12  Paul Eggert  <eggert@twinsun.com>
50371
50372         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
50373         to avoid collisions with libcurses and libreadline.
50374
50375         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
50376         * lib/getstr.h, getstr.c: Remove.
50377         * lib/getline.c: Include "getline.h", to check interface.
50378         Move body of old getstr.c here: this defines MIN_CHUNK and
50379         declares getdelim2, which is renamed from getstr.
50380         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
50381
50382         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
50383         All uses changed.
50384         * lib/linebuffer.h: Likewise.
50385         (readline): Remove backward-compatibility macro.
50386
50387 2003-01-12  Paul Eggert  <eggert@twinsun.com>
50388
50389         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
50390         to avoid collisions with libcurses and libreadline.
50391         * getstr: Remove.
50392         * MODULES.html.sh: Remove getstr.
50393         * modules/getline: Depend on unlocked-io, not getstr.
50394
50395 2003-01-12  Jim Meyering  <jim@meyering.net>
50396
50397         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
50398
50399 2003-01-10  Bruno Haible  <bruno@clisp.org>
50400
50401         * modules/alloca: Change Makefile.am requirements. Simplify Include
50402         requirements. Add lib/alloca_.h to file list.
50403
50404 2003-01-10  Bruno Haible  <bruno@clisp.org>
50405
50406         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
50407
50408 2003-01-10  Bruno Haible  <bruno@clisp.org>
50409
50410         * lib/alloca_.h: New file.
50411         * lib/getdate.y: Unconditionally include alloca.h.
50412         * lib/makepath.c: Likewise.
50413         * lib/setenv.c: Likewise.
50414         * lib/userspec.c: Likewise.
50415
50416 2003-01-09  Karl Berry  <karl@gnu.org>
50417
50418         * MODULES.html.sh: include `dirname $0` in PATH, to find
50419         gnulib-tool.
50420
50421 2003-01-09  Bruno Haible  <bruno@clisp.org>
50422
50423         * modules/stdbool: Change configure.ac, Makefile.am requirements.
50424         Simplify Include requirements. Add lib/stdbool.h.in to file list.
50425
50426 2003-01-09  Bruno Haible  <bruno@clisp.org>
50427
50428         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
50429
50430 2003-01-09  Bruno Haible  <bruno@clisp.org>
50431
50432         * lib/stdbool.h.in: New file.
50433
50434 2003-01-09  Bruno Haible  <bruno@clisp.org>
50435
50436         * gnulib-tool (func_all_modules): Ignore files ending in ~.
50437         * MODULES.html.sh: Likewise.
50438
50439 2003-01-08  Jim Meyering  <jim@meyering.net>
50440
50441         * lib/full-write.c: Undefine and define-away `const' after inclusion
50442         of errno.h, not before.  Suggestion from Bruno Haible.
50443
50444 2003-01-08  Bruno Haible  <bruno@clisp.org>
50445
50446         * modules/full-read: Depend on full-write.
50447
50448 2003-01-08  Bruno Haible  <bruno@clisp.org>
50449
50450         * lib/safe-read.c: Include specification header first, to ensure its
50451         selfcontainedness.
50452         * lib/full-write.c: Likewise.
50453
50454 2003-01-07  Jim Meyering  <jim@meyering.net>
50455
50456         * lib/full-write.c: Rework so that it may serve to define full_read,
50457         too.
50458         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
50459
50460 2003-01-07  Bruno Haible  <bruno@clisp.org>
50461
50462         * lib/strtoimax.c: Include <stdint.h> as an alternative to
50463         <inttypes.h>.
50464         * lib/xstrtol.h: Likewise.
50465         * lib/xstrtoimax.c: Likewise.
50466         * lib/xstrtoumax.c: Likewise.
50467         * lib/human.h: Likewise.
50468
50469         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
50470         on systems that have <inttypes.h> but not <stdint.h>.
50471
50472 2003-01-07  Bruno Haible  <bruno@clisp.org>
50473
50474         * MODULES.html.sh: Add copyright notice.
50475         (missed_files): Omit CVS directory entries.
50476         (func_module): Make it work with sed-3.02.
50477         * MODULES.txt: Remove file.
50478
50479 2003-01-06  Jim Meyering  <jim@meyering.net>
50480
50481         * lib/version-etc.c: Update year in translatable copyright string.
50482
50483 2003-01-03  Karl Berry  <karl@gnu.org>
50484
50485         * config/config.{guess,sub}: update from prep.
50486
50487 2003-01-02  Karl Berry  <karl@gnu.org>
50488
50489         * doc/COPYING.DOC: belatedly updated to 1.2.
50490
50491 2003-01-01  Karl Berry  <karl@gnu.org>
50492
50493         * gnulib-tool (func_verify_module): report module name $module in
50494         error message, not $1.
50495         * gnulib-tool (create-testdir): don't complain if destdir couldn't
50496         be created, only if it doesn't exist.
50497         * gnulib-tool (last_checkin_date): don't expand the $Date here.
50498
50499 2002-12-31  Paul Eggert  <eggert@twinsun.com>
50500
50501         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
50502
50503 2002-12-31  Paul Eggert  <eggert@twinsun.com>
50504
50505         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
50506         memcmp if strcoll doesn't work.
50507
50508 2002-12-31  Bruno Haible  <bruno@clisp.org>
50509
50510         * lib/utime.c (utime_null): No need to call ftruncate if the file was
50511         nonempty.
50512
50513 2002-12-31  Bruno Haible  <bruno@clisp.org>
50514
50515         * lib/memcoll.c (STRCOLL): New macro.
50516         (memcoll): Use it.
50517
50518 2002-12-31  Bruno Haible  <bruno@clisp.org>
50519
50520         * lib/localcharset.h: New file.
50521         * lib/localcharset.c: Include it.
50522         * lib/unicodeio.c: Likewise.
50523
50524 2002-12-31  Bruno Haible  <bruno@clisp.org>
50525
50526         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
50527         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
50528
50529 2002-12-31  Bruno Haible  <bruno@clisp.org>
50530
50531         * lib/getline.h: Include <stddef.h>, for size_t.
50532
50533         * lib/unicodeio.h: Include <stddef.h>, for size_t.
50534         * lib/unicodeio.c: Don't include <stddef.h>.
50535
50536 2002-12-31  Bruno Haible  <bruno@clisp.org>
50537
50538         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
50539         HAVE_TM_ZONE.
50540
50541 2002-12-24  Karl Berry  <karl@gnu.org>
50542
50543         * config/config.guess: update from prep.
50544
50545 2002-12-24  Bruno Haible  <bruno@clisp.org>
50546
50547         General infrasructure.
50548         * m4/README: Rewritten.
50549         * m4/onceonly.m4: New file.
50550         * m4/onceonly_2_57.m4: New file.
50551
50552         Module atexit.
50553         * m4/atexit.m4: New file.
50554
50555         Module strtod.
50556         * m4/strtod.m4: New file.
50557
50558         Module strtol.
50559         * m4/strtol.m4: New file.
50560
50561         Module strtoul.
50562         * m4/strtoul.m4: New file.
50563
50564         Module memchr.
50565         * m4/memchr.m4: New file.
50566
50567         Module memcmp.
50568         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
50569         (jm_FUNC_MEMCMP): Invoke it.
50570
50571         Module memcpy.
50572         * m4/memcpy.m4: New file.
50573
50574         Module memmove.
50575         * m4/memmove.m4: New file.
50576
50577         Module memset.
50578         * m4/memset.m4: New file.
50579
50580         Module strcspn.
50581         * m4/strcspn.m4: New file.
50582
50583         Module strpbrk.
50584         * m4/strpbrk.m4: New file.
50585
50586         Module strstr.
50587         * m4/strstr.m4: New file.
50588
50589         Module strerror.
50590         * m4/strerror.m4: New file.
50591
50592         Module mktime.
50593         * m4/mktime.m4: Renamed from jm-mktime.m4.
50594         (gl_PREREQ_MKTIME): New macro.
50595         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
50596
50597         Module malloc.
50598         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
50599         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
50600         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
50601
50602         Module realloc.
50603         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
50604         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
50605         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
50606
50607         Module strftime.
50608         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
50609         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
50610         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
50611         gl_TM_GMTOFF.
50612         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
50613
50614         Module xalloc.
50615         * m4/xalloc.m4: New file.
50616
50617         Module alloca.
50618         * m4/alloca.m4: New file.
50619
50620         Module putenv.
50621         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
50622         (jm_FUNC_PUTENV): Invoke it.
50623
50624         Module setenv.
50625         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
50626         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
50627         when invoked twice.
50628         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
50629         gt_FUNC_SETENV.
50630
50631         Module memrchr.
50632         * m4/memrchr.m4: New file.
50633
50634         Module stpcpy.
50635         * m4/stpcpy.m4: New file.
50636
50637         Module strcase.
50638         * m4/strcase.m4: New file.
50639
50640         Module strdup.
50641         * m4/strdup.m4: New file.
50642
50643         Module strnlen.
50644         * m4/strnlen.m4: New file.
50645
50646         Module strndup.
50647         * m4/strndup.m4: New file.
50648
50649         Module xstrtod.
50650         * m4/xstrtod.m4: New file.
50651
50652         Module xstrtol.
50653         * m4/xstrtol.m4: New file.
50654
50655         Module getdate.
50656         * m4/getdate.m4: New file.
50657
50658         Module unlocked-io.
50659         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
50660         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
50661         * m4/jm-glibc-io.m4n: Remove file.
50662
50663         Module long-options.
50664         * m4/long-options.m4: New file.
50665
50666         Module md5.
50667         * m4/md5.m4: New file.
50668
50669         Module sha.
50670         * m4/sha.m4: New file.
50671
50672         Module getstr.
50673         * m4/getstr.m4: New file.
50674
50675         Module getline.
50676         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
50677         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
50678         <sys/types.h>, for size_t. Use the function name gnu_getline, not
50679         simply getline. Infoke gl_PREREQ_GETLINE.
50680
50681         Module obstack.
50682         * m4/obstack.m4: New file.
50683
50684         Module hash.
50685         * m4/hash.m4: New file.
50686
50687         Module readtokens.
50688         * m4/readtokens.m4: New file.
50689
50690         Module strverscmp.
50691         * m4/strverscmp.m4: New file.
50692
50693         Module stdbool.
50694         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
50695         OSF/1.
50696
50697         Module strtoll.
50698         * m4/strtoll.m4: New file.
50699
50700         Module strtoull.
50701         * m4/strtoull.m4: New file.
50702
50703         Module strtoimax.
50704         * m4/strtoimax.m4: New file.
50705
50706         Module strtoumax.
50707         * m4/strtoumax.m4: New file.
50708
50709         Module xstrtoimax.
50710         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
50711         jm_AC_PREREQ_XSTRTOIMAX.
50712         Moved the strtol prerequisites to strtol.m4.
50713         Moved the strtoll prerequisites to strtoll.m4.
50714         Moved the strtoimax prerequisites to strtoimax.m4.
50715
50716         Module xstrtoumax.
50717         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
50718         jm_AC_PREREQ_XSTRTOUMAX.
50719         Moved the strtoul prerequisites to strtoul.m4.
50720         Moved the strtoull prerequisites to strtoull.m4.
50721         Moved the strtoumax prerequisites to strtoumax.m4.
50722
50723         Module chown.
50724         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
50725         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
50726
50727         Module dup2.
50728         * m4/dup2.m4: New file.
50729
50730         Module ftruncate.
50731         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
50732         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
50733
50734         Module getgroups.
50735         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
50736         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
50737
50738         Module gettimeofday.
50739         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
50740         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
50741         gl_PREREQ_GETTIMEOFDAY.
50742
50743         Module mkdir.
50744         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
50745         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
50746
50747         Module mkstemp.
50748         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
50749         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
50750         jm_AC_TYPE_UINTMAX_T.
50751         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
50752
50753         Module stat.
50754         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
50755         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
50756
50757         Module lstat.
50758         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
50759         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
50760
50761         Module timespec.
50762         * m4/timespec.m4 (gl_TIMESPEC): New macro.
50763         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
50764         * m4/st_mtim.m4: Indentation.
50765
50766         Module nanosleep.
50767         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
50768         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
50769         gl_PREREQ_NANOSLEEP.
50770
50771         Module regex.
50772         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
50773         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
50774         (gl_REGEX): New macro.
50775
50776         Module rename.
50777         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
50778         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
50779
50780         Module rmdir.
50781         * m4/rmdir.m4: New file.
50782
50783         Module utime.
50784         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
50785         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
50786         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
50787
50788         Module dirname.
50789         * m4/dirname.m4: New file.
50790
50791         Module getopt.
50792         * m4/getopt.m4: New file.
50793
50794         Module unistd-safer.
50795         * m4/unistd-safer.m4: New file.
50796
50797         Module fnmatch.
50798         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
50799         declaration.
50800         (gl_PREREQ_FNMATCH_EXTRA): New macro.
50801         (gl_FUNC_FNMATCH_POSIX): New macro.
50802         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
50803         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
50804         simply fnmatch.
50805
50806         Module exclude.
50807         * m4/exclude.m4: New file.
50808
50809         Module human.
50810         * m4/human.m4: New file.
50811
50812         Module acl.
50813         * m4/acl.m4: Nop.
50814
50815         Module backupfile.
50816         * m4/backupfile.m4: New file.
50817         * m4/d-ino.m4: Indentation.
50818
50819         Module fsusage.
50820         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
50821         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
50822         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
50823
50824         Module dirfd.
50825         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
50826         requirements.
50827
50828         Module euidaccess.
50829         * m4/euidaccess.m4: New file.
50830
50831         Module file-type.
50832         * m4/file-type.m4: New file.
50833
50834         Module fileblocks.
50835         * m4/fileblocks.m4: New file.
50836
50837         Module filemode.
50838         * m4/filemode.m4: New file.
50839
50840         Module isdir.
50841         * m4/isdir.m4: New file.
50842
50843         Module lchown.
50844         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
50845         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
50846
50847         Module makepath.
50848         * m4/makepath.m4: New file.
50849
50850         Module modechange.
50851         * m4/modechange.m4: New file.
50852
50853         Module mountlist.
50854         * m4/mountlist.m4: New file.
50855         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
50856         Indentation.
50857
50858         Module path-concat.
50859         * m4/path-concat.m4: New file.
50860
50861         Module pathmax.
50862         * m4/pathmax.m4: New file.
50863
50864         Module same.
50865         * m4/same.m4: New file.
50866
50867         Module save-cwd.
50868         * m4/save-cwd.m4: New file.
50869
50870         Module savedir.
50871         * m4/savedir.m4: New file.
50872
50873         Module xgetcwd.
50874         * m4/xgetcwd.m4: New file.
50875         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
50876
50877         Module xreadlink.
50878         * m4/xreadlink.m4: New file.
50879
50880         Module safe-read.
50881         * m4/safe-read.m4: New file.
50882
50883         Module safe-write.
50884         * m4/safe-write.m4: New file.
50885
50886         Module closeout.
50887         * m4/closeout.m4: New file.
50888
50889         Module stdio-safer.
50890         * m4/stdio-safer.m4: New file.
50891
50892         Module getpass.
50893         * m4/getpass.m4: New file.
50894
50895         Module getugroups.
50896         * m4/getugroups.m4: New file.
50897
50898         Module group-member.
50899         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
50900         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
50901
50902         Module idcache.
50903         * m4/idcache.m4: New file.
50904
50905         Module userspec.
50906         * m4/userspec.m4: New file.
50907
50908         Module gettime.
50909         * m4/clock_time.m4: New file.
50910         * m4/gettime.m4: New file.
50911
50912         Module settime.
50913         * m4/settime.m4: New file.
50914
50915         Module posixtm.
50916         * m4/posixtm.m4: New file.
50917
50918         Module gethostname.
50919         * m4/gethostname.m4: New file.
50920
50921         Module canon-host.
50922         * m4/canon-host.m4: New file.
50923
50924         Module gettext.
50925         * m4/codeset.m4: New file, from gettext-0.11.5.
50926         * m4/gettext.m4: New file, from gettext-0.11.5.
50927         * m4/glibc21.m4: New file, from gettext-0.11.5.
50928         * m4/iconv.m4: New file, from gettext-0.11.5.
50929         * m4/intdiv0.m4: New file, from gettext-0.11.5.
50930         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
50931         * m4/inttypes.m4: New file, from gettext-0.11.5.
50932         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
50933         * m4/isc-posix.m4: New file, from gettext-0.11.5.
50934         * m4/lcmessage.m4: New file, from gettext-0.11.5.
50935         * m4/lib-ld.m4: New file, from gettext-0.11.5.
50936         * m4/lib-link.m4: New file, from gettext-0.11.5.
50937         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
50938         * m4/progtest.m4: New file, from gettext-0.11.5.
50939         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
50940         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
50941         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
50942
50943         Module localcharset.
50944         * m4/localcharset.m4: New file.
50945
50946         Module hard-locale.
50947         * m4/hard-locale.m4: New file.
50948
50949         Module mbswidth.
50950         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
50951         onceonly macros.
50952         * m4/mbrtowc.m4: Add comment.
50953
50954         Module memcasecmp.
50955         * m4/memcasecmp.m4: New file.
50956
50957         Module memcoll.
50958         * m4/memcoll.m4: New file.
50959
50960         Module unicodeio.
50961         * m4/unicodeio.m4: New file.
50962
50963         Module rpmatch.
50964         * m4/rpmatch.m4: New file.
50965
50966         Module yesno.
50967         * m4/yesno.m4: New file.
50968
50969         Module exitfail.
50970         * m4/exitfail.m4: New file.
50971
50972         Module c-stack.
50973         * m4/c-stack.m4 (gl_C_STACK): New macro.
50974         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
50975
50976         Module error.
50977         * m4/error.m4 (gl_ERROR): New macro.
50978         (jm_PREREQ_ERROR): Use onceonly macros.
50979
50980         Module fatal.
50981         * m4/fatal.m4: New file.
50982
50983         Module getloadavg.
50984         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
50985         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
50986
50987         Module getpagesize.
50988         * m4/getpagesize.m4: New file.
50989
50990         Module getusershell.
50991         * m4/getusershell.m4: New file.
50992
50993         Module physmem.
50994         * m4/physmem.m4: New file.
50995
50996         Module posixver.
50997         * m4/posixver.m4: New file.
50998
50999         Module quotearg.
51000         * m4/quotearg.m4: New file.
51001
51002         Module quote.
51003         * m4/quote.m4: New file.
51004
51005         Module readutmp.
51006         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
51007
51008         Module sig2str.
51009         * m4/sig2str.m4: New file.
51010
51011         Other.
51012         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
51013         ulonglong.m4.
51014         * m4/intmax_t.m4: New file.
51015         * m4/d-type.m4: Indentation.
51016         * m4/jm-macros.m4: Update.
51017         * m4/prereq.m4 (jm_PREREQ): Update.
51018         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
51019         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
51020         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
51021         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
51022         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
51023         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
51024         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
51025         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
51026         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
51027         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
51028         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
51029         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
51030         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
51031         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
51032         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
51033         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
51034         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
51035         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
51036         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
51037
51038 2002-12-24  Bruno Haible  <bruno@clisp.org>
51039
51040         * MODULES.txt: Update according to m4/ changes.
51041
51042         Module gettext.
51043         * config.rpath: New file, from gettext-0.11.5.
51044
51045         * modules/*: New module descriptions.
51046         * gnulib-tool: New file.
51047         * MODULES.html.sh: New file.
51048
51049 2002-12-21  Karl Berry  <karl@gnu.org>
51050
51051         * doc/fdl.texi: update to version 1.2.
51052
51053 2002-12-19  Karl Berry  <karl@gnu.org>
51054
51055         * config/config.guess: update from prep.
51056
51057 2002-12-18  Bruno Haible  <bruno@clisp.org>
51058
51059         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
51060         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
51061
51062 2002-12-17  Bruno Haible  <bruno@clisp.org>
51063
51064         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
51065         stdlib.h, string.h.
51066
51067 2002-12-17  Bruno Haible  <bruno@clisp.org>
51068
51069         * lib/canon-host.c (strdup): Remove unused declaration.
51070
51071         * lib/fsusage.c: Include full_read.h.
51072         (get_fs_usage): Use full_read instead of safe_read.
51073
51074         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
51075
51076 2002-12-12  Karl Berry  <karl@gnu.org>
51077
51078         * config/config.guess: update from prep.
51079
51080 2002-12-11  Bruno Haible  <bruno@clisp.org>
51081
51082         * m4/setenv.m4: New file, from gettext-0.11.5.
51083
51084 2002-12-11  Bruno Haible  <bruno@clisp.org>
51085
51086         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
51087         not unsetenv().
51088         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
51089         modifications:
51090
51091         2002-12-11  Bruno Haible  <bruno@clisp.org>
51092
51093                 * setenv.c (alloca): Fall back to malloc.
51094                 (freea): New macro.
51095                 (setenv): Use freea() to free memory allocated with alloca().
51096
51097         2002-11-13  Bruno Haible  <bruno@clisp.org>
51098
51099                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
51100                 function declarations.
51101                 * unsetenv.c (unsetenv): Likewise.
51102
51103         2002-03-04  Bruno Haible  <bruno@clisp.org>
51104
51105                 Portability to AIX 4.3.3.
51106                 * unsetenv.c: New file, extracted from setenv.c.
51107                 * setenv.c: Move the unsetenv() function to unsetenv.c.
51108
51109         2001-12-20  Bruno Haible  <bruno@clisp.org>
51110
51111                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
51112                 use malloc instead. For SunOS 4.
51113
51114         2001-12-11  Bruno Haible  <bruno@clisp.org>
51115
51116                 * setenv.c: Declare alloca.
51117                 (compar_fn_t): New typedef.
51118                 (KNOWN_VALUE, STORE_VALUE): Use it.
51119
51120         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
51121         setenv.h.
51122
51123 2002-12-10  Paul Eggert  <eggert@twinsun.com>
51124
51125         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
51126         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
51127         Choose values that are less likely to collide with system fnmatch
51128         options.
51129         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
51130         defined (e.g., a pure POSIX system).
51131         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
51132         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
51133
51134 2002-12-06  Paul Eggert  <eggert@twinsun.com>
51135
51136         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
51137         a pain in practice to deal with generated m4 files.  This change
51138         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
51139
51140         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
51141         and jm-glibc-io.m4, as they are no longer a special case.
51142         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
51143         kludge and the auto-generation stuff.  Check only whether the
51144         functions are declared, not whether they exist, since older hosts
51145         that don't declare the functions can't use the optimization anyway.
51146
51147 2002-12-06  Jim Meyering  <jim@meyering.net>
51148
51149         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
51150
51151         Merge in changes from libc's misc/error.c, in preparation
51152         for the merge of gnulib's changes back into libc.
51153
51154         * lib/error.c (_): Define only if not already defined.
51155         Move definition to follow all #include directives.
51156         Include unlocked-io.h only if !_LIBC.
51157         [_LIBC]: Include <libio/libioP.h>.
51158         [USE_IN_LIBIO]: Include <libio/iolibio.h>
51159         (fflush): Tweak definition to use INTUSE.
51160         (putc): Define.
51161
51162 2002-12-05  Paul Eggert  <eggert@twinsun.com>
51163
51164         * lib/alloca.c [defined emacs]: Include "lisp.h".
51165         (xalloc_die) [defined emacs]: New macro.
51166         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
51167         [! defined emacs]: Include <xalloc.h>.
51168         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
51169         (pointer): Typedef to POINTER_TYPE *.
51170         (malloc): Remove decl; we now always use xmalloc.
51171         (alloca): Use old-style definition, since Emacs needs this.
51172         Check for arithmetic overflow when computing combined size.
51173
51174 2002-12-04  Paul Eggert  <eggert@twinsun.com>
51175
51176         Do not generate unlocked-io.h automatically, since it's easier to
51177         maintain it by hand.
51178
51179         * lib/unlocked-io.h: New file, from GNU diffutils,
51180         but with proper copyright notice and attribution.
51181         * lib/gen-uio: Remove.
51182         * lib/Makefile.am: Add copyright notice.
51183         (libfetish_a_SOURCES): Add unlocked-io.h.
51184         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
51185         (DISTCLEANFILES, io_functions): Remove macros.
51186         (EXTRA_DIST): Remove gen_uio.
51187         (unlocked-io.h): Remove rule.
51188
51189 2002-12-04  Jim Meyering  <jim@meyering.net>
51190
51191         Reflect the fact that stat.c and lstat.c are no longer generated.
51192         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
51193         (DISTCLEANFILES): Likewise.
51194         (EXTRA_DIST): Likewise.
51195         (all_local): Don't depend on stat.c or lstat.c.
51196         (stat.c, lstat.c): Remove rules.
51197         (EXTRA_DIST): Remove xstat.in.
51198
51199         * lib/xstat.in: Remove file.  Contents moved into stat.c.
51200         * lib/stat.c: New file.  Contents mostly from xstat.in.
51201         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
51202         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
51203
51204         * lib/safe-read.c: Rework so that it may serve to define safe_write,
51205         too.
51206         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
51207
51208 2002-12-03  Jim Meyering  <jim@meyering.net>
51209
51210         * lib/safe-read.c, safe-write.c: Change variable names and comments,
51211         but not semantics, to minimize the differences between these two files.
51212         (safe_read): Change comment to mention SAFE_READ_ERROR.
51213
51214         * lib/safe-read.c (IS_EINTR): Define.
51215         (safe_read): Use IS_EINTR in place of in-function cpp directives.
51216
51217 2002-12-02  Jim Meyering  <jim@meyering.net>
51218
51219         * lib/safe-read.c (EINTR): Define.
51220         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
51221         (INT_MAX): Provide fallback.
51222         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
51223
51224         * lib/safe-read.h (SAFE_READ_ERROR): Define.
51225
51226 2002-12-02  Bruno Haible  <bruno@clisp.org>
51227
51228         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
51229         Define, taken from safe-read.c.
51230         (INT_MAX): Provide fallback.
51231         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
51232         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
51233
51234         * lib/safe-read.c (EINTR): Remove definition.
51235         (safe_read): Don't use EINTR if it is absent.
51236
51237 2002-12-01  Jim Meyering  <jim@meyering.net>
51238
51239         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
51240         zero.
51241         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
51242
51243 2002-11-27  Paul Eggert  <eggert@twinsun.com>
51244
51245         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
51246         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
51247         with `if (! (value < limit)) abort ();', for readability.
51248
51249 2002-11-26  Karl Berry  <karl@gnu.org>
51250
51251         * lib/strdup.c: copy from libc again, with jim's ok.
51252         * lib/.cppi-disable: re-add strdup.c
51253
51254 2002-11-25  Karl Berry  <karl@gnu.org>
51255
51256         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
51257         instead of "strtol.c".
51258
51259 2002-11-25  Karl Berry  <karl@gnu.org>
51260
51261         * config/install-sh: update from automake for variable quoting, $0 in
51262         error msgs, etc.
51263
51264         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
51265         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
51266         entry.
51267
51268 2002-11-25  Jim Meyering  <jim@meyering.net>
51269
51270         * lib/mktime.c: Sync from libc, now that it has the latest fix.
51271
51272 2002-11-24  Karl Berry  <karl@gnu.org>
51273
51274         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
51275         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
51276
51277 2002-11-24  Jim Meyering  <jim@meyering.net>
51278
51279         Update from coreutils:
51280
51281         * lib/mktime.c: Merge in changes from libc.
51282
51283         Avoid a link-time failure on some Linux systems.
51284         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
51285         (otherwise).
51286         (__mon_yday): Declare with the STATIC attribute.
51287         (__mktime_internal): Likewise.
51288         Based on a report from Greg Schafer.
51289
51290 2002-11-23  Jim Meyering  <jim@meyering.net>
51291
51292         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
51293         Use `unsigned', not `int', as type of index.
51294
51295         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
51296
51297         * lib/fsusage.c: Remove unneeded parentheses around operands of
51298         `defined'.
51299
51300 2002-11-22  Paul Eggert  <eggert@twinsun.com>
51301
51302         * lib/quotearg.h: Allow multiple inclusion by surrounding with
51303         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
51304         so that we can be included first.
51305         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
51306         * lib/quotearg.c: Include quotearg.h immediately after config.h.
51307         No need to include stddef.h or sys/types.h any more.
51308         Surround local include files with "", not "<>".
51309         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
51310         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
51311         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
51312         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
51313         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
51314         (ISPRINT): Remove; no longer needed now that we assume C89.
51315
51316         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
51317         Preserve errno.
51318
51319         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
51320         quotearg_char): Use SIZE_MAX rather than
51321         (size_t) -1 when we are talking about "infinity".
51322
51323         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
51324
51325 2002-11-22  Paul Eggert  <eggert@twinsun.com>
51326
51327         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
51328         hint that one should use `if (! x) abort ();' rather than `assert
51329         (x);', and anyway it's one less thing to worry about configuring.
51330         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
51331         hash_rehash, hash_insert): Use abort rather than assert.
51332
51333 2002-11-22  Bruno Haible  <bruno@clisp.org>
51334
51335         * lib/safe-read.h: Assume C89. Add comments.
51336         (safe_read): Change return type to size_t.
51337         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
51338         byte counts > SSIZE_MAX correctly.
51339         * lib/safe-write.h: New file.
51340         * lib/safe-write.c: New file.
51341         * lib/full-read.h: New file.
51342         * lib/full-read.c: New file.
51343         * lib/full-write.h: Assume C89. Add comments.
51344         * lib/full-write.c: Include safe-write.h.
51345         (full_write): Rewritten to use safe_write.
51346         Suggested by Jim Meyering and Paul Eggert.
51347
51348 2002-11-21  Jim Meyering  <jim@meyering.net>
51349
51350         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
51351
51352         Merge in changes from the coreutils.
51353
51354         2002-09-25  Paul Eggert  <eggert@twinsun.com>
51355         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
51356         <stdint.h>.
51357         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
51358         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
51359         int.  Work more efficiently if X is the same width as uintmax_t.
51360         Do not compare X to -1, to avoid bogus compiler warning.
51361         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
51362         Don't assume that f_frsize and f_bsize are the same type.
51363
51364         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
51365         warning on FreeBSD.
51366
51367         * lib/makepath.c (make_path): Restore umask *before* creating the final
51368         component.
51369         (make_path): Minor reformatting.
51370
51371         * lib/xmalloc.c: Adjust to work with new autoconf macros,
51372         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
51373         HAVE_MALLOC/HAVE_REALLOC.
51374
51375         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
51376         dummy ones.  At least on GNU/Linux systems, `auto' means something
51377         else.
51378         From Michael Stone.
51379
51380 2002-11-21  Bruno Haible  <bruno@clisp.org>
51381
51382         Remove case insensitive option matching.
51383         * lib/argmatch.h (argcasematch): Remove declaration.
51384         (ARGCASEMATCH): Remove macro.
51385         (__xargmatch_internal): Remove case_sensitive argument.
51386         (XARGMATCH): Update.
51387         (XARGCASEMATCH): Remove macro.
51388         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
51389         case_sensitive argument.
51390         (argcasematch): Remove function.
51391         (__xargmatch_internal): Remove case_sensitive argument.
51392         (main): Use XARGMATCH instead of XARGCASEMATCH.
51393
51394         * lib/xmalloc.c: Change compile-time error message. Add comment about
51395         required autoconf version.
51396
51397 2002-11-20  Paul Eggert  <eggert@twinsun.com>
51398
51399         Merge argmatch cleanups from Bison.  Assume C89.
51400
51401         * lib/argmatch.c: Include config.h here, not in argmatch.h.
51402         Include stdlib.h, for EXIT_FAILURE.
51403         Always include <string.h>, since we assume C89.
51404         (EXIT_FAILURE): Remove pre-C89 bug workaround.
51405         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
51406         Include <stddef.h> instead, since it's all we need for size_t.
51407         (PARAMS): Remove.  All uses removed.
51408         (ARRAY_CARDINALITY): Do not bother to #undef.
51409         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
51410         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
51411         Remove unnecessary parentheses.
51412         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
51413         Insert necessary parentheses.
51414         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
51415         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
51416
51417 2002-11-19  Bruno Haible  <bruno@clisp.org>
51418
51419         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
51420         * lib/mbswidth.h: Include <stddef.h>, for size_t.
51421
51422         * lib/mbswidth.h (PARAMS): Remove macro.
51423         (mbswidth, mbsnwidth): Use ANSI C function declarations.
51424         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
51425
51426         * lib/gcd.h (PARAMS): Remove macro.
51427         (gcd): Use ANSI C function declarations.
51428         * lib/gcd.c (gcd): Likewise.
51429
51430 2002-11-15  Bruno Haible  <bruno@clisp.org>
51431
51432         * lib/strcspn.c: Include <stddef.h>.
51433         (strcspn): Use ANSI C function declaration. Change return type to
51434         size_t. Use NULL.
51435         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
51436         (strpbrk): Use NULL.
51437         * lib/strpbrk.h (PARAMS): Remove macro.
51438         (strpbrk): Use ANSI C function declaration.
51439         * lib/strstr.c: Don't include <sys/types.h>.
51440         * lib/strstr.h (PARAMS): Remove macro.
51441         (strstr): Use ANSI C function declarations.
51442
51443 2002-11-14  Karl Berry  <karl@gnu.org>
51444
51445         * config/mkinstalldirs: `do' on separate line, instead of
51446         `for var; do'.
51447
51448 2002-11-06  Bruno Haible  <bruno@clisp.org>
51449
51450         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
51451         * lib/gcd.c (gcd): Likewise.
51452
51453 2002-11-05  Bruno Haible  <bruno@clisp.org>
51454
51455         * lib/gcd.h: New file, from gettext-0.11.5.
51456         * lib/gcd.c: New file, from gettext-0.11.5.
51457
51458 2002-11-05  Bruno Haible  <bruno@clisp.org>
51459
51460         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
51461         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
51462         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
51463         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
51464
51465         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
51466         <libintl.h>.
51467         * lib/makepath.c: Include gettext.h instead of <locale.h> and
51468         <libintl.h>.
51469
51470         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
51471         * lib/human.c: Include gettext.h instead of <libintl.h>.
51472         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
51473         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
51474         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
51475         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
51476         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
51477         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
51478         (textdomain): Remove definition.
51479         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
51480
51481         * lib/long-options.c: Remove include of <libintl.h> and definition of
51482         _.
51483         * lib/same.c: Remove include of <libintl.h> and definition of _.
51484
51485 2002-11-04  Owen Taylor  <otaylor@redhat.com>
51486
51487         * lib/config.charset: A few additions for Solaris.
51488
51489 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
51490
51491         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
51492         * lib/localcharset.c (locale_charset): Declare as extern "C".
51493
51494 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
51495
51496         * lib/config.charset: msdos in uk_UA uses CP1125.
51497
51498 2002-11-04  Bruno Haible  <bruno@clisp.org>
51499
51500         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
51501         * lib/strcase.h: New file, from GNU gettext-0.11.5.
51502         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
51503         * lib/strstr.h: New file, from GNU gettext-0.11.5.
51504         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
51505
51506 2002-11-04  Bruno Haible  <bruno@clisp.org>
51507
51508         * lib/localcharset.c (locale_charset): Don't return an empty string.
51509
51510 2002-11-04  Bruno Haible  <bruno@clisp.org>
51511
51512         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
51513         aliases.
51514
51515 2002-11-04  Bruno Haible  <bruno@clisp.org>
51516
51517         * lib/config.charset: Update for newest glibc. Add canonical names
51518         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
51519
51520 2002-11-04  Bruno Haible  <bruno@clisp.org>
51521
51522         * lib/config.charset: Add support for NetBSD.
51523
51524 2002-11-04  Bruno Haible  <bruno@clisp.org>
51525
51526         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
51527
51528 2002-11-01  Bruno Haible  <bruno@clisp.org>
51529
51530         * configure.in: Add AC_CONFIG_AUX_DIR call.
51531         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
51532         test/Makefile.
51533         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
51534
51535 2002-09-28  Karl Berry  <karl@gnu.org>
51536
51537         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
51538         installed automake until the next release, since changes have been
51539         made.
51540
51541 2002-09-25  Karl Berry  <karl@gnu.org>
51542
51543         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
51544         * lib/getopt*: copy from libc/posix.
51545         * lib/gettext.h: copy from gettext.
51546         * lib/.cppi-disable: add strdup.c, gettext.h.
51547
51548 2002-09-25  Karl Berry  <karl@gnu.org>
51549
51550         * config/srclist.txt: enable gettext.h check.
51551         * config/config.{guess,sub}: update from prep.
51552         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
51553                 from automake 1.6.3.
51554         See srclist*.
51555
51556 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
51557
51558         * regex.c (PATFETCH): Remove the translating fetch.
51559         (PATFETCH_RAW): Rename to PATFETCH.
51560         (set_image_of_range): New fun.
51561         (SET_RANGE_TABLE_WORK_AREA): Use it.
51562         (regex_compile): Don't translate the pattern chars so eagerly.
51563         Only do it when inserting an `exactn' bytecode or when handling
51564         a char-range.
51565         (mutually_exclusive_p): Avoid empty statement.
51566
51567 2002-07-06  Jim Meyering  <meyering@lucent.com>
51568
51569         * m4/README: Don't mention Makefile.am.in.
51570         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
51571
51572 2002-07-01  Jim Meyering  <meyering@lucent.com>
51573
51574         * lib/c-stack.c: Include sys/time.h.
51575         From Volker Borchert.
51576
51577 2002-06-26  Paul Eggert  <eggert@twinsun.com>
51578
51579         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
51580
51581 2002-06-26  Paul Eggert  <eggert@twinsun.com>
51582
51583         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
51584         New macro.  Use it uniformly instead of
51585         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
51586         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
51587         reported by Vin Shelton.
51588
51589 2002-06-22  Paul Eggert  <eggert@twinsun.com>
51590
51591         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
51592         Do not assume SA_SIGINFO behavior.
51593         Bug reported by Jim Meyering on NetBSD 1.5.2.
51594
51595 2002-06-22  Jim Meyering  <meyering@lucent.com>
51596
51597         * m4/c-stack.m4: New file, from diffutils-2.8.2.
51598         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
51599
51600         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
51601         now that configure.ac uses AC_GNU_SOURCE.
51602         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
51603         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
51604
51605         Update to latest tools.  Suggestions from Paul Eggert.
51606         * m4/stdbool.m4: New file, from diffutils-2.8.2.
51607         * m4/gnu-source.m4: Update from diffutils-2.8.2.
51608         * m4/fnmatch.m4: Likewise.
51609         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
51610         to AC_HEADER_STDBOOL
51611
51612 2002-06-22  Jim Meyering  <meyering@lucent.com>
51613
51614         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
51615         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
51616
51617 2002-06-22  Jim Meyering  <meyering@lucent.com>
51618
51619         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
51620
51621         * lib/exitfail.c, exitfail.h: Likewise.
51622         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
51623
51624         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
51625         of fnmatch.h.
51626         (EXTRA_DIST): Add fnmatch_loop.c.
51627         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
51628
51629         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
51630         * lib/fnmatch.c: Update from diffutils-2.8.2.
51631         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
51632         * lib/fnmatch.h: Remove file.
51633
51634 2002-06-21  Jim Meyering  <meyering@lucent.com>
51635
51636         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
51637         * m4/mbrtowc.m4: Likewise.
51638
51639         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
51640         * m4/mbswidth.m4: Reflect name change:
51641         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
51642         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
51643
51644         * m4/lib-link.m4: Update from gettext-0.11.2.
51645         * m4/gettext.m4: Likewise.
51646
51647         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
51648         From Alfred M. Szmidt.
51649
51650 2002-06-18  Paul Eggert  <eggert@twinsun.com>
51651
51652         * lib/file-type.h: Report an error if neither S_ISREG nor
51653         S_IFREG is defined, instead of using a test specific to glibc
51654         2.2.  This should be safe, since POSIX requires S_ISREG and
51655         Unix Version 7 had S_IFREG.  We don't need to check for
51656         <sys/types.h> since we don't use any symbols that it defines.
51657
51658 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
51659
51660         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
51661         $@-t, so that each temporary file name is unique and valid in the first
51662         8 characters, for operation under DOS.
51663
51664 2002-06-15  Paul Eggert  <eggert@twinsun.com>
51665
51666         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
51667
51668 2002-06-15  Jim Meyering  <meyering@lucent.com>
51669
51670         Work even with DJGPP 2.03, which lacks support for symlinks.
51671         From Richard Dawe.
51672         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
51673         is defined.
51674         * lib/lchown.c (S_ISLNK): Likewise.
51675
51676 2002-06-15  Jim Meyering  <meyering@lucent.com>
51677
51678         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
51679         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
51680         have been included before this file.
51681
51682 2002-06-14  Jim Meyering  <meyering@lucent.com>
51683
51684         * lib/file-type.h: Use the version from diffutils-2.8.2.
51685         * lib/file-type.c: Likewise.
51686
51687 2002-06-07  Jim Meyering  <meyering@lucent.com>
51688
51689         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
51690         They're needed at least for NetBSD 1.5.2.
51691         ($statxfs_includes): Include those same headers.
51692         ($statxfs_includes): Include sys/vfs.h if available.
51693         ($statxfs_includes): Likewise for sys/statvfs.h.
51694         Check for the following members in both structs statfs and statvfs:
51695         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
51696
51697 2002-06-01  Jim Meyering  <meyering@lucent.com>
51698
51699         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
51700         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
51701
51702 2002-05-28  Jim Meyering  <meyering@lucent.com>
51703
51704         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
51705         Reported by Volker Borchert.
51706
51707 2002-05-27  Jim Meyering  <meyering@lucent.com>
51708
51709         Fix a problem seen only on nonconforming systems whereby ls.c's
51710         use of localtime, and then of gettimeofday would cause trouble:
51711         the localtime call used to initialize rpl_gettimeofday's save
51712         mechanism would clobber ls's current local time information so
51713         that in any long listing the first file would always be listed
51714         with date 1970-01-01.  Analysis by Volker Borchert.
51715
51716         * lib/gettimeofday.c (localtime): Undefine.
51717         (rpl_localtime): New function.
51718
51719 2002-05-27  Jim Meyering  <meyering@lucent.com>
51720
51721         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
51722         localtime.
51723
51724         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
51725         use the replacement function; it wouldn't resolve at link time.
51726         Reported by Volker Borchert.
51727
51728 2002-05-22  Jim Meyering  <meyering@lucent.com>
51729
51730         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
51731         file-type.h.
51732         * lib/file-type.h: New file.
51733         * lib/file-type.c (file_type): New file/function.  Extracted from
51734         diffutils.
51735
51736 2002-04-30  Jim Meyering  <meyering@lucent.com>
51737
51738         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
51739
51740 2002-04-29  Paul Eggert  <eggert@twinsun.com>
51741
51742         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
51743
51744 2002-04-29  Paul Eggert  <eggert@twinsun.com>
51745
51746         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
51747         Do not check for alloca.h (no longer used) or stdbool.h (was never
51748         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
51749
51750 2002-04-29  Paul Eggert  <eggert@twinsun.com>
51751
51752         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
51753
51754 2002-04-29  Jim Meyering  <meyering@lucent.com>
51755
51756         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
51757         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
51758         Use AC_FUNC_STRNLEN here instead.
51759
51760         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
51761         With autoconf-2.53a, it's part of AC_PROG_CC.
51762
51763 2002-04-28  Paul Eggert  <eggert@twinsun.com>
51764
51765         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
51766         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
51767
51768 2002-04-28  Paul Eggert  <eggert@twinsun.com>
51769
51770         * lib/sig2str.h, lib/sig2str.c: New files.
51771         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
51772
51773 2002-04-28  Paul Eggert  <eggert@twinsun.com>
51774
51775         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
51776         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
51777         of 127, since 64 is the largest conceivable number for ancient
51778         nonstandard hosts.
51779         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
51780
51781 2002-04-28  Jim Meyering  <meyering@lucent.com>
51782
51783         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
51784
51785 2002-04-24  Jim Meyering  <meyering@lucent.com>
51786
51787         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
51788         (jm_PREREQ): Use it.
51789
51790         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
51791         mach/mach.h fcntl.h.
51792         Check for this function: setlocale.
51793
51794 2002-04-24  Jim Meyering  <meyering@lucent.com>
51795
51796         * lib/gettext.h: New file, from Gettext.
51797         * lib/Makefile.am (INCLUDES): Remove -I../intl.
51798         (libfetish_a_SOURCES): Add gettext.h.
51799
51800 2002-04-16  Jim Meyering  <meyering@lucent.com>
51801
51802         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
51803         ut_pid, ut_id, ut_exit.
51804
51805 2002-04-16  Jim Meyering  <meyering@lucent.com>
51806
51807         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
51808         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
51809         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
51810
51811 2002-04-12  Jim Meyering  <meyering@lucent.com>
51812
51813         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
51814         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
51815         existence of the getmntinfo function.  Needed for Darwin 5.3.
51816
51817         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
51818         This is necessary at least on Darwin 5.3.
51819
51820         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
51821         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
51822         strnlen.o in the library, and that makes some versions of ranlib
51823         object.
51824
51825 2002-04-12  Jim Meyering  <meyering@lucent.com>
51826
51827         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
51828
51829 2002-04-09  Jim Meyering  <meyering@lucent.com>
51830
51831         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
51832         to be more precise.  Rather than saying we're checking whether the
51833         function `works', say what we're testing.
51834         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
51835         Reported by Bruno Haible.
51836
51837 2002-03-10  Jim Meyering  <meyering@lucent.com>
51838
51839         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
51840         Suggestion from Santiago Vila.
51841
51842 2002-03-08  Jim Meyering  <meyering@lucent.com>
51843
51844         * lib/rename.c: Mention that this wrapper is needed also on
51845         mips-dec-ultrix4.4 systems.
51846
51847 2002-03-02  Jim Meyering  <meyering@lucent.com>
51848
51849         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
51850         not HAVE_CLOCK_SETTIME.
51851
51852 2002-02-27  Paul Eggert  <eggert@twinsun.com>
51853
51854         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
51855         Check for clock_settime.
51856
51857 2002-02-27  Paul Eggert  <eggert@twinsun.com>
51858
51859         * lib/nanosleep.h: Rename to....
51860         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
51861
51862         * lib/gettime.c: New file.
51863         * lib/settime.c: New file.
51864         * lib/stime.c: Remove.
51865
51866         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
51867         timespec.h.  Remove nanosleep.h.
51868
51869 2002-02-25  Paul Eggert  <eggert@twinsun.com>
51870
51871         * m4/acl.m4: New file.
51872         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
51873         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
51874
51875 2002-02-25  Paul Eggert  <eggert@twinsun.com>
51876
51877         * lib/acl.c, lib/acl.h: New files.
51878         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
51879
51880 2002-02-24  Jim Meyering  <meyering@lucent.com>
51881
51882         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
51883         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
51884         cause trouble.  Reported by Nelson Beebe.
51885
51886 2002-02-23  Paul Eggert  <eggert@twinsun.com>
51887
51888         * lib/path-concat.c (xpath_concat): Reorder code to pacify
51889         compilers that don't know that xalloc_die never returns.
51890
51891 2002-02-20  Jim Meyering  <meyering@lucent.com>
51892
51893         * lib/getdate.c: Regenerate using bison-1.33.
51894
51895 2002-02-17  Jim Meyering  <meyering@lucent.com>
51896
51897         * config/config.guess (main): Don't use `head -1'; it's no longer
51898         portable. Use `sed 1q' instead.
51899
51900 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
51901
51902         * m4/codeset.m4: Upgrade to gettext-0.11.
51903         * m4/gettext.m4: Upgrade to gettext-0.11.
51904         * m4/glibc21.m4: Upgrade to gettext-0.11.
51905         * m4/iconv.m4: Upgrade to gettext-0.11.
51906         * m4/isc-posix.m4: Upgrade to gettext-0.11.
51907         * m4/lcmessage.m4: Upgrade to gettext-0.11.
51908         * m4/lib-ld.m4: New file, from gettext-0.11.
51909         * m4/lib-link.m4: New file, from gettext-0.11.
51910         * m4/lib-prefix.m4: New file, from gettext-0.11.
51911         * m4/progtest.m4: Upgrade to gettext-0.11.
51912
51913 2002-02-15  Paul Eggert  <eggert@twinsun.com>
51914
51915         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
51916         (jm_PREREQ): Use it.
51917
51918 2002-02-15  Paul Eggert  <eggert@twinsun.com>
51919
51920         * lib/posixver.c, lib/posixver.h: New files.
51921         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
51922
51923 2002-02-02  Paul Eggert  <eggert@twinsun.com>
51924             Bruno Haible  <bruno@clisp.org>
51925
51926         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
51927         (fwrite_success_callback): New declaration.
51928         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
51929         print_unicode_char. Call failure callback instead of error.
51930         (fwrite_success_callback): New function.
51931         (exit_failure_callback): New function.
51932         (fallback_failure_callback): New function.
51933         (print_unicode_char): Call unicode_to_mb.
51934
51935 2002-01-26  Jim Meyering  <meyering@lucent.com>
51936
51937         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
51938         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
51939
51940 2002-01-26  Jim Meyering  <meyering@lucent.com>
51941
51942         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
51943
51944 2002-01-22  Paul Eggert  <eggert@twinsun.com>
51945
51946         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
51947
51948 2002-01-22  Jim Meyering  <meyering@lucent.com>
51949
51950         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
51951         Otherwise, some versions of automake would omit the rule that makes
51952         Makefile from Makefile.in.
51953
51954 2002-01-21  Paul Eggert  <eggert@twinsun.com>
51955
51956         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
51957         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
51958         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
51959         (memcoll): Set errno to zero if there is no error.
51960
51961         * lib/quotearg.c (quotearg_buffer_restyled):
51962         Fix bug with quoting buffers containing NUL when backslashing escapes.
51963         This bug was exposed by the other changes in this patch.
51964         (quotearg_n_options): New arg ARGSIZE.
51965         All callers changed.
51966         (quoting_options_from_style): New function.
51967         (quotearg_n_style): Use it.
51968         (quotearg_n_style_mem): New function.
51969
51970         * lib/quotearg.h (quotearg_n_style_mem): New function.
51971
51972 2002-01-19  Jim Meyering  <meyering@lucent.com>
51973
51974         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
51975         Remove useless quotes: DF_PROG="df".
51976         * m4/strnlen.m4: New file.
51977
51978 2002-01-16  Paul Eggert  <eggert@twinsun.com>
51979
51980         * lib/backupfile.c (ISDIGIT): Comment fix.
51981         * lib/getdate.y (ISDIGIT): Likewise.
51982         * lib/posixtm.c (ISDIGIT, year): Likewise.
51983         * lib/strverscmp.c (ISDIGIT): Likewise.
51984         * lib/userspec.c (ISDIGIT): Likewise.
51985
51986 2002-01-16  Jim Meyering  <meyering@lucent.com>
51987
51988         * lib/getdate.y: Add three semicolons, each just before a closing
51989         brace. Bison (as of version 1.31) no longer papers over that mistake.
51990
51991 2002-01-05  Jim Meyering  <meyering@lucent.com>
51992
51993         * lib/version-etc.c (version_etc_copyright): Update copyright year.
51994
51995 2001-12-19  Paul Eggert  <eggert@twinsun.com>
51996
51997         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
51998         not silently exit merely because the output buffer happens to
51999         have nothing pending.
52000
52001 2001-12-18  Paul Eggert  <eggert@twinsun.com>
52002
52003         See the big note in ../ChangeLog.
52004         * lib/human.c (suffixes): Prefer K to k for 1024.
52005         (generate_suffix_backwards): New function.
52006         (human_readable_inexact): Use it.
52007         * lib/xstrtol.c (__xstrtol): If there is no number but there
52008         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
52009         Accept 'K' as well as 'k'.
52010
52011 2001-12-15  Jim Meyering  <meyering@lucent.com>
52012
52013         * lib/regex.h (__restrict_arr): Update from libc.
52014
52015         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
52016         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
52017         (STREQ): Define.
52018
52019 2001-12-14  Jim Meyering  <meyering@lucent.com>
52020
52021         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
52022         Suggestion from Bruno Haible.
52023
52024 2001-12-10  Jim Meyering  <meyering@lucent.com>
52025
52026         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
52027         xrealloc, Instead, include "xalloc.h".
52028         (initbuffer): Don't cast xmalloc return value to char*.
52029         (readline): Reword comment.
52030         Don't cast xrealloc return value to char*
52031         Return NULL, not 0.
52032
52033 2001-12-09  Jim Meyering  <meyering@lucent.com>
52034
52035         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
52036         about `signed and unsigned type in conditional expression'.
52037         * lib/posixtm.c (posix_time_parse): Likewise.
52038
52039         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
52040
52041         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
52042         to avoid a pedantic warning.
52043
52044         * lib/getstr.c: Don't include assert.h.
52045         (getstr): Remove warning-evoking assertions.
52046         Return -1 if offset parameter is out of bounds.
52047         Change the type of a local from int to size_t.
52048
52049         * lib/strftime.c (my_strftime_localtime_r): Include this function
52050         definition in the `#if ! HAVE_TM_GMTOFF' block.
52051
52052         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
52053         Include xalloc.h instead.
52054
52055 2001-12-02  Jim Meyering  <meyering@lucent.com>
52056
52057         * lib/tempname.c: Don't declare getenv, thus reverting the change of
52058         2001-11-18.  It's no longer necessary, now that stdlib.h is always
52059         included.
52060
52061         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
52062         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
52063
52064 2001-11-30  Akim Demaille  <akim@epita.fr>
52065
52066         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
52067         before being defined.
52068
52069 2001-11-27  Paul Eggert  <eggert@twinsun.com>
52070
52071         * lib/quotearg.h (quotearg_n, quotearg_n_style):
52072         First arg is int, not unsigned.
52073         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
52074         (SIZE_MAX, UINT_MAX): New macros.
52075         (quotearg_n_options): Abort if N is negative.
52076         Avoid overflow check on hosts where size_t is 64 bits and int
52077         is 32 bits, as overflow is impossible there.
52078         Fix off-by-one typo that caused unnecessary reallocation.
52079
52080 2001-11-27  Jim Meyering  <meyering@lucent.com>
52081
52082         * lib/tempname.c: Merge with version from libc.
52083         * lib/regex.c: Likewise.
52084
52085         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
52086         systems for which STDC_HEADERS is 0, it was not included, resulting in
52087         a warning about an integer-to-pointer conversion problem with getenv.
52088         Reported by Volker Borchert.
52089
52090 2001-11-26  Jim Meyering  <meyering@lucent.com>
52091
52092         * lib/gtod.h: Remove file.
52093         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
52094         * lib/gettimeofday.c: Don't include gtod.h.
52095         (GTOD_init): Remove function.
52096         (rpl_gettimeofday): Do its job here instead, rather than aborting.
52097         Suggestion from Volker Borchert.
52098
52099 2001-11-23  Jim Meyering  <meyering@lucent.com>
52100
52101         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
52102         it.
52103         * lib/hash.c (struct hash_table): Define it here instead.
52104
52105 2001-11-22  Jim Meyering  <meyering@lucent.com>
52106
52107         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
52108
52109 2001-11-20  Jim Meyering  <meyering@lucent.com>
52110
52111         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
52112         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
52113
52114 2001-11-19  Jim Meyering  <meyering@lucent.com>
52115
52116         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
52117         directory.  Use "conftestXXXXXX" as the template.
52118         Suggestion from Paul Eggert.
52119
52120         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
52121         immediately, so the test doesn't mistakenly hit the max-open-files
52122         limit.
52123
52124 2001-11-18  Paul Eggert  <eggert@twinsun.com>
52125
52126         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
52127         (TEMPORARIES): New macro.
52128         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
52129         removes an artificial limitation (e.g. HP-UX 10.20, where
52130         TMP_MAX is 17576).
52131
52132 2001-11-18  Jim Meyering  <meyering@lucent.com>
52133
52134         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
52135
52136 2001-11-18  Jim Meyering  <meyering@lucent.com>
52137
52138         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
52139         on SunOS 4.
52140
52141         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
52142         files will be created before anything else.
52143
52144 2001-11-17  Paul Eggert  <eggert@twinsun.com>
52145
52146         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
52147         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
52148
52149 2001-11-17  Jim Meyering  <meyering@lucent.com>
52150
52151         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
52152         Prompted by a report from Bob Proulx.
52153
52154         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
52155         Instead, require UTILS_FUNC_MKSTEMP.
52156
52157 2001-11-17  Jim Meyering  <meyering@lucent.com>
52158
52159         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
52160         Now, that's done as part of AC_FUNC_STRTOD.
52161
52162 2001-11-17  Jim Meyering  <meyering@lucent.com>
52163
52164         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
52165         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
52166         rather than group writable.  Patch by Juan F. Codagnone.
52167
52168         * lib/readtokens.c: Remove explicit declarations of xmalloc and
52169         xrealloc, Instead, include "xalloc.h".
52170
52171         * lib/mountlist.c: Include unlocked-io.h after all system headers.
52172         Remove explicit declarations of xmalloc, xrealloc,
52173         and xstrdup.  Instead, include "xalloc.h".
52174
52175         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
52176         unlocked-io.h.
52177         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
52178         Likewise.
52179         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
52180
52181         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
52182         Reported by Padraig Brady.
52183
52184         * lib/mkstemp.c: #undef mkstemp.
52185         Include config.h.
52186         (rpl_mkstemp): Rename from mkstemp.
52187         Protoize.
52188
52189 2001-11-16  Jim Meyering  <meyering@lucent.com>
52190
52191         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
52192         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
52193         determine the amount of total physical memory, use pstat_getstatic.
52194         HPUX-11 doesn't define _SC_PHYS_PAGES.
52195         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
52196         If sysconf couldn't be used to determine the amount of available
52197         physical memory, use both pstat_getstatic and pstat_getdynamic.
52198         Based on a patch from Bob Proulx.
52199
52200 2001-11-10  Jim Meyering  <meyering@lucent.com>
52201
52202         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
52203         (jm_PREREQ): Use it.
52204
52205 2001-11-09  Jim Meyering  <meyering@lucent.com>
52206
52207         * m4/jm-macros.m4: Require autoconf-2.52f.
52208         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
52209         Use these AC_-prefixed names, not the AM_-prefixed ones.
52210
52211         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
52212
52213 2001-11-05  Jim Meyering  <meyering@lucent.com>
52214
52215         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
52216
52217 2001-11-04  Jim Meyering  <meyering@lucent.com>
52218
52219         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
52220         $DEFS.
52221
52222 2001-11-03  Jim Meyering  <meyering@lucent.com>
52223
52224         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
52225         of AC_DEFUN.
52226
52227         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
52228         know the name of the variable in the macro definition.
52229
52230 2001-11-03  Jim Meyering  <meyering@lucent.com>
52231
52232         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
52233         in argmatch_to_argument call.
52234
52235         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
52236         argument.
52237
52238         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
52239         e.g., a fault due to an attempt to free a NULL pointer.
52240
52241 2001-11-01  Jim Meyering  <meyering@lucent.com>
52242
52243         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
52244         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
52245
52246 2001-11-01  Jim Meyering  <meyering@lucent.com>
52247
52248         * lib/dirfd.c, lib/dirfd.h: New files.
52249         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
52250
52251         * lib/hash.c (hash_print) [TESTING]: Clean up.
52252
52253 2001-10-22  Paul Eggert  <eggert@twinsun.com>
52254
52255         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
52256         to avoid a warning if -Wall.
52257
52258 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
52259
52260         * README: New file
52261         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
52262         (per RMS's instructions, this is now the canonical source)
52263         * lgpl/, gpl/: New directories.
52264
52265 2001-10-21  Paul Eggert  <eggert@twinsun.com>
52266
52267         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
52268
52269 2001-10-21  Jim Meyering  <meyering@lucent.com>
52270
52271         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
52272         this code would end up calling gettext even in packages built
52273         with --disable-nls.
52274         * lib/getopt.c (_): Likewise.
52275         * lib/regex.c (_): Likewise.
52276
52277 2001-10-20  Paul Eggert  <eggert@twinsun.com>
52278
52279         * m4/error.m4 (jm_PREREQ_ERROR):
52280         Do not invoke AC_CHECK_FUNCS with strerror_r, as
52281         AC_FUNC_STRERROR_R does that.
52282         Check for strerror declaration.
52283
52284         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
52285         are supposed to have them these days.
52286         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
52287         Merge changes from latest Autoconf CVS.
52288         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
52289         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
52290         POSIX decided to standardize on the int flavor of strerror_r.
52291
52292 2001-10-20  Paul Eggert  <eggert@twinsun.com>
52293
52294         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
52295         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
52296         Use strerror_r that is only a macro, even if it is not a function.
52297         (strerror): Check for HAVE_DECL_STRERROR before declaring.
52298         (private_strerror): Use prototypes, not old-style function definition.
52299         (print_errno_message): New function.
52300         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
52301         char*-flavored one.
52302         (error_tail, error, error_at_line): Use it.
52303
52304 2001-10-11  Jim Meyering  <meyering@lucent.com>
52305
52306         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
52307         and quote_n (1, ... to avoid clobbering a buffer.
52308
52309 2001-10-05  Jim Meyering  <meyering@lucent.com>
52310
52311         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
52312         hash-pjw.h.
52313         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
52314         * lib/hash-pjw.h: New file.
52315
52316 2001-09-30  Jim Meyering  <meyering@lucent.com>
52317
52318         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
52319         `struct fsstat' has the `f_fstypename' member.
52320         Use that to define FS_TYPE, which is now used to make
52321         the getfsstat link test tighter.
52322
52323 2001-09-30  Jim Meyering  <meyering@lucent.com>
52324
52325         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
52326         Include <sys/ucred.h>, for Apple Darwin.
52327         Include sys/mount.h and sys/fs_types.h only if available.
52328         (FS_TYPE): Define.
52329         (read_filesystem_list): Use FS_TYPE.
52330
52331 2001-09-29  Paul Eggert  <eggert@twinsun.com>
52332
52333         * lib/exclude.c (excluded_filename): 0 -> false, since it's
52334         a boolean context.
52335
52336 2001-09-29  Jim Meyering  <meyering@lucent.com>
52337
52338         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
52339         [one-argument getmntent function]): Include stdio.h before mntent.h.
52340         SunOS 4.1.x needs it for the declaration of `FILE'.
52341         Patch by Volker Borchert.
52342
52343         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
52344         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
52345         sys/fs_types.h, and make the link-test for getfsstat guard #include
52346         directives with appropriate #if HAVE_*_H tests so that we can
52347         detect getfsstat on Apple Darwin1.3.7 systems.
52348         Reported by Nelson Beebe.
52349         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
52350
52351 2001-09-28  Paul Eggert  <eggert@twinsun.com>
52352
52353         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
52354         #defines strtoimax.  Also treat the other strto* functions
52355         like strtoimax.
52356
52357         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
52358         Check for strtoul and strtoumax,
52359         as those declarations are made even in the signed case.
52360         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
52361         Likewise, for strtol and strtoimax.
52362
52363 2001-09-28  Paul Eggert  <eggert@twinsun.com>
52364
52365         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
52366         #defines strtoimax.  Also treat the other strto* functions
52367         like strtoimax.
52368
52369         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
52370         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
52371         (strtoimax, strtoumax): Do not declare if already defined as a macro.
52372
52373 2001-09-26  Jim Meyering  <meyering@lucent.com>
52374
52375         Most macros in unlocked-io.h had the wrong number of arguments.
52376         * lib/gen-uio: New script.
52377         (USE_UNLOCKED_IO): Define to 1 if not already defined.
52378         * lib/unlocked-io.hin: Remove file.
52379         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
52380         rather than trying to embed it here.
52381         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
52382         Reported by Padraig Brady.
52383
52384 2001-09-25  Volker Borchert  <bt@teknon.de>
52385
52386         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
52387         `result'.
52388
52389 2001-09-24  Jim Meyering  <meyering@lucent.com>
52390
52391         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
52392
52393 2001-09-23  Jim Meyering  <meyering@lucent.com>
52394
52395         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
52396         instead of the mere test for existence of mntent.h.  The latter
52397         would get a false-positive on AIX 3.4 systems.
52398         In the outer getmntent if-block, don't die if neither of the getmntent
52399         tests succeeds.  Instead, just fall through and continue with the
52400         remaining tests.
52401
52402 2001-09-23  Jim Meyering  <meyering@lucent.com>
52403
52404         * lib/mountlist.c: Remove useless parentheses in #if directives.
52405         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
52406         the deprecated MOUNTED symbol is no longer defined in mntent.h.
52407
52408 2001-09-22  Jim Meyering  <meyering@lucent.com>
52409
52410         * m4/gettext.m4: New file.  From gettext.
52411         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
52412         * m4/progtest.m4: Likewise
52413         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
52414         * m4/glibc21.m4: Likewise.
52415
52416         * m4/libintl.m4: Remove.  No longer used.
52417
52418 2001-09-22  Jim Meyering  <meyering@lucent.com>
52419
52420         * lib/localcharset.c: Update from latest gettext.
52421         * lib/config.charset: Likewise.
52422
52423 2001-09-20  Jim Meyering  <meyering@lucent.com>
52424
52425         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
52426         strtoimax.
52427         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
52428         strtoumax.
52429
52430 2001-09-20  Jim Meyering  <meyering@lucent.com>
52431
52432         * lib/xstrtol.c (strtoimax): Guard declaration with
52433         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
52434         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
52435         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
52436         (strtoumax): Likewise, for completeness (it wasn't necessary).
52437
52438 2001-09-17  Paul Eggert  <eggert@twinsun.com>
52439
52440         * lib/strtoimax.c (HAVE_LONG_LONG):
52441         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
52442         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
52443         to work around bug in IBM C compiler.
52444
52445 2001-09-17  Jim Meyering  <meyering@lucent.com>
52446
52447         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
52448         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
52449         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
52450         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
52451         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
52452         whenever the right hand side need not be expanded by the shell.
52453
52454 2001-09-16  Paul Eggert  <eggert@twinsun.com>
52455
52456         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
52457         library.  It's not correct, as some older glibcs are buggy.
52458         fnmatch wasn't fixed until glibc 2.2.
52459
52460         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
52461         special shell magic here.
52462
52463 2001-09-16  Jim Meyering  <meyering@lucent.com>
52464
52465         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
52466         * m4/jm-macros.m4: Require it.
52467
52468 2001-09-16  Jim Meyering  <meyering@lucent.com>
52469
52470         * lib/mkdir.c: New file.
52471
52472 2001-09-15  Jim Meyering  <meyering@lucent.com>
52473
52474         * m4/jm-macros.m4: Check for help2man.
52475
52476 2001-09-11  Jim Meyering  <meyering@lucent.com>
52477
52478         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
52479         The body, by Paul Eggert, was moved here from configure.in.
52480         * m4/jm-macros.m4: Require UTILS_HOST_OS.
52481
52482 2001-09-04  Paul Eggert  <eggert@twinsun.com>
52483
52484         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
52485         (jm_PREREQ): Use it.
52486
52487 2001-09-04  Paul Eggert  <eggert@twinsun.com>
52488
52489         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
52490         Use ssize_t, not int, to store result of readlink.
52491         Check for ssize_t overflow as well as size_t overflow,
52492         as POSIX says the result of readlink is implementation-defined
52493         when ssize_t overflows.
52494         Remove unnecessary cast to char*.
52495         Use free+malloc instead of realloc, as the storage doesn't need
52496         to be preserved and it's clearer and can be more efficient that way.
52497         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
52498         * lib/xreadlink.h (xreadlink): Update prototype.
52499
52500 2001-09-04  Paul Eggert  <eggert@twinsun.com>
52501
52502         * lib/xgetcwd.c: Revert some of the previous change; intead,
52503         fix the HAVE_GETCWD_NULL code to behave more like the
52504         !HAVE_GETCWD_NULL code used to.
52505
52506         Include "xalloc.h".
52507         (xgetcwd): Do not return NULL when memory is exhausted; instead,
52508         invoke xalloc_die.
52509
52510 2001-09-03  Paul Eggert  <eggert@twinsun.com>
52511
52512         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
52513         sys/param.h, as pathmax.h includes them.
52514
52515 2001-09-03  Paul Eggert  <eggert@twinsun.com>
52516
52517         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
52518         (jm_PREREQ_XGETCWD): New macro.
52519
52520         * m4/getcwd.m4: New file.
52521
52522 2001-09-03  Paul Eggert  <eggert@twinsun.com>
52523
52524         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
52525         like the HAVE_GETCWD_NULL code.
52526         Include pathmax.h if not HAVE_GETCWD.
52527         Do not include xalloc.h.
52528         (INITIAL_BUFFER_SIZE): New symbol.
52529         Do not use xmalloc / xrealloc, since the caller is responsible for
52530         handling errors.  Preserve errno around `free' during failure.
52531         Do not overrun buffer when using getwd.
52532
52533 2001-09-03  Paul Eggert  <eggert@twinsun.com>
52534
52535         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
52536         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
52537         getcwd (NULL, 0).
52538
52539 2001-09-03  Paul Eggert  <eggert@twinsun.com>
52540
52541         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
52542         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
52543         spotted by Jim Meyering.
52544
52545 2001-09-03  Jim Meyering  <meyering@lucent.com>
52546
52547         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
52548         failure.
52549
52550 2001-09-02  Jim Meyering  <meyering@lucent.com>
52551
52552         * lib/error.c: Update from GNU libc.
52553
52554 2001-09-01  Jim Meyering  <meyering@lucent.com>
52555
52556         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
52557         Used by df.
52558
52559 2001-09-01  Jim Meyering  <meyering@lucent.com>
52560
52561         * lib/xreadlink.c: New file.
52562         * lib/xreadlink.h: New file.
52563         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
52564         xreadlink.h.
52565
52566         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
52567         doesn't conflict with sparc Solaris 7's definition in
52568         /usr/include/sys/int_types.h.
52569
52570         * lib/exclude.c: Use `""', not `<>' to #include non-system header
52571         files.
52572         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
52573         and strncasecmp as r-values.  Unixware didn't have declarations.
52574
52575 2001-08-31  Paul Eggert  <eggert@twinsun.com>
52576
52577         * lib/xstrtol.h: Add copyright notice.
52578         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
52579         LONGINT_INVALID_SUFFIX_CHAR.
52580
52581 2001-08-31  Paul Eggert  <eggert@twinsun.com>
52582
52583         * lib/xstrtol.c (strtoimax): New decl.
52584
52585 2001-08-31  Paul Eggert  <eggert@twinsun.com>
52586
52587         * lib/xgetcwd.c: Don't include pathmax.h.
52588         Include stdlib.h and unistd.h if available.
52589         Include xalloc.h.
52590         (xmalloc, xstrdup, free): Remove decls.
52591         (xgetcwd): Don't assume sizes fit in unsigned.
52592         Check for overflow when computing sizes.
52593         Simplify reallocation code.
52594
52595 2001-08-31  Paul Eggert  <eggert@twinsun.com>
52596
52597         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
52598         a directory's st_size can have an arbitrary value, so the old
52599         usage could waste an arbitrary amount of memory.  All uses
52600         changed.
52601         * lib/savedir.h: Update prototype.
52602
52603 2001-08-31  Paul Eggert  <eggert@twinsun.com>
52604
52605         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
52606
52607         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
52608         old strtoimax.c.
52609
52610         Also, make the following further changes to make this file's
52611         configuration more similar to that of strtol.c:
52612         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
52613         (strtoumax, uintmax_t, strtoull, strtol): Remove.
52614         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
52615         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
52616         changed to signed values.
52617
52618         And make the following changes as well:
52619         Fix copyright notice, as 1999 was missing.
52620         (verify): New macro.
52621         (strtoimax): Check sizes at compile-time, not run-time.
52622         Prefer strtol to strtoll if both work.
52623         (main): Remove; it was not that useful and was a pain to maintain.
52624
52625         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
52626
52627 2001-08-31  Jim Meyering  <meyering@lucent.com>
52628
52629         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
52630         Use an initial, malloc'd, buffer of length 128 rather than
52631         a statically allocated one of length 1024.
52632
52633 2001-08-30  Paul Eggert  <eggert@twinsun.com>
52634
52635         Simplify code, partly by assuming autoconf 2.52 semantics.
52636
52637         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
52638
52639         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
52640         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
52641         All uses removed.
52642         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
52643         Move AC_REQUIRE to next-to-top level, to avoid confusion.
52644         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
52645         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
52646         jm_AC_HEADER_INTTYPES_H.
52647         * m4/jm-macros.m4 (jm_MACROS): Likewise.
52648
52649         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
52650
52651         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
52652         Quote first arg of AC_DEFUN.
52653         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
52654         since they are needed to parse the include file even if we need
52655         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
52656         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
52657         but with opposite signedness.
52658
52659 2001-08-30  Paul Eggert  <eggert@twinsun.com>
52660
52661         Merge 'exclude' changes from tar 1.13.22.
52662         This fixes one or two unlikely storage allocation overflow bugs,
52663         but doesn't change user-visible behavior otherwise.
52664
52665 2001-08-30  Paul Eggert  <eggert@twinsun.com>
52666
52667         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
52668         (jm_PREREQ_EXCLUDE): New macro.
52669
52670 2001-08-30  Paul Eggert  <eggert@twinsun.com>
52671
52672         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
52673         tm to be declared.
52674
52675 2001-08-30  Paul Eggert  <eggert@twinsun.com>
52676
52677         * lib/hash.c: Remove '2001' from copyright notice.
52678
52679 2001-08-30  Paul Eggert  <eggert@twinsun.com>
52680
52681         * lib/full-write.h: New file.
52682         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
52683         * lib/full-write.c: Correct credits, as cccp.c no longer
52684         exists and anyway it was so heavily changed from the old cccp
52685         code as to be unrecognizable.  Include full-write.h.
52686         (full_write) Return size_t, with short writes meaning failure.
52687         All callers changed.  This fixes a bug with large buffers
52688         on 64-bit hosts.
52689         * lib/utime.c: Include full-write.h.
52690
52691 2001-08-30  Paul Eggert  <eggert@twinsun.com>
52692
52693         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
52694         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
52695         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
52696         Include if available.
52697         (<xalloc.h>): Include
52698         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
52699         (verify): New macro.  Use it to verify that EXCLUDE macros do not
52700         collide with FNM macros.
52701         (struct patopts): New struct.
52702         (struct exclude): Use it, as exclude patterns now come with options.
52703         (new_exclude): Support above changes.
52704         (new_exclude, add_exclude_file):
52705         Initial size must now be a power of two to simplify overflow checking.
52706         (free_exclude, fnmatch_no_wildcards): New function.
52707         (excluded_filename): No longer requires options arg, as the options
52708         are determined by add_exclude.  Now returns bool, not int.
52709         (excluded_filename, add_exclude):
52710         Add support for the fancy new exclusion options.
52711         (add_exclude, add_exclude_file): Now takes int options arg.
52712         Check for arithmetic overflow when computing sizes.
52713         (add_exclude_file): xrealloc might modify errno, so don't
52714         realloc until after errno might be used.
52715
52716         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
52717         New macros.
52718         (free_exclude): New decl.
52719         (add_exclude, add_exclude_file): Now takes int options arg.
52720         (excluded_filename): No longer requires options arg, as the options
52721         are determined by add_exclude.  Now returns bool, not int.
52722
52723 2001-08-30  Paul Eggert  <eggert@twinsun.com>
52724
52725         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
52726
52727 2001-08-27  Jim Meyering  <meyering@lucent.com>
52728
52729         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
52730
52731         * lib/version-etc.c (N_): Remove definition.
52732         Revert most of last change.
52733         Instead, simply don't mark the `Copyright...' string for translation.
52734         Based on advice from Paul Eggert.
52735
52736         * lib/strtoxmax.c: Tweak comment.
52737
52738 2001-08-26  Jim Meyering  <meyering@lucent.com>
52739
52740         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
52741
52742         * m4/xstrtoimax.m4: New file.
52743         * m4/xstrtoumax.m4: Add comments explaining why we
52744         AC_REPLACE_FUNCS(strtol).
52745
52746 2001-08-26  Jim Meyering  <meyering@lucent.com>
52747
52748         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
52749         of copyright with `%s' so translators don't get an untranslated
52750         message in 2002.
52751         (COPYRIGHT_YEAR): Define.
52752         (version_etc): Use fprintf rather than fputs.
52753         Suggestion from Ulrich Drepper.
52754
52755         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
52756
52757         * lib/strtoll.c: New file, from GNU libc.
52758         * lib/xstrtoimax.c: New file.
52759
52760         * lib/xstrtol.h: Add xstrtoimax.
52761         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
52762         * lib/strtoimax.c: New file.  Likewise, but first define
52763         STRTOUXMAX_SIGNED.
52764
52765         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
52766         ...
52767         * lib/strtoxmax.c: ... then renamed to this.
52768
52769 2001-08-18  Paul Eggert  <eggert@twinsun.com>
52770
52771         * m4/inttypes.m4: Add AC_PREREQ(2.13).
52772         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
52773         (jm_AC_TYPE_INTMAX_T): New macro.
52774         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
52775
52776         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
52777
52778         * m4/longlong.m4: Renamed from ulonglong.m4.
52779         * m4/inttypes.m4: Renamed from inttypes_h.m4.
52780         * m4/uintmax_t.m4: Removed.
52781
52782 2001-08-13  Paul Eggert  <eggert@twinsun.com>
52783
52784         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
52785         Port to Solaris 8, where 'sed' requires a space after the 'r'
52786         command, and where sh dislikes "$/".  Clean up the spacing a bit.
52787         Redirect output to $tmp just once.
52788
52789 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
52790
52791         * lib/addext.c (<errno.h>): Include.
52792         (errno): Declare if not defined.
52793         (addext): Work correctly when pathconf returns -1 and leaves
52794         errno alone because there is no limit.  Also, work even if
52795         pathconf returns a value greater than SIZE_MAX.
52796
52797 2001-08-12  Jim Meyering  <meyering@lucent.com>
52798
52799         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
52800         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
52801         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
52802         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
52803         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
52804         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
52805         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
52806         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
52807         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
52808         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
52809         utime.m4, utimes.m4, xstrtoumax.m4:
52810         Quote the first argument in each use of AC_DEFUN.
52811
52812 2001-08-12  Jim Meyering  <meyering@lucent.com>
52813
52814         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
52815         Simply `return getcwd (NULL, 0);'.
52816         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
52817         Use 1300 as initial value for length, not PATH_MAX.
52818
52819         * lib/pathmax.h: Clean up cpp syntax.
52820
52821 2001-08-12  Jim Meyering  <meyering@lucent.com>
52822
52823         * lib/gettimeofday.c: New file.
52824         * lib/gtod.h: New file.
52825         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
52826
52827 2001-08-05  Jim Meyering  <meyering@lucent.com>
52828
52829         * m4/jm-macros.m4: Require autoconf-2.52.
52830
52831 2001-08-04  Jim Meyering  <meyering@lucent.com>
52832
52833         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
52834         stmt, to get in sync with glibc.
52835
52836 2001-08-03  Paul Eggert  <eggert@twinsun.com>
52837
52838         The following changes are from gettext 0.10.39 as maintained by
52839         Bruno Haible.
52840
52841         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
52842         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
52843         with inverted sense.  All uses changed.
52844
52845         * lib/mbswidth.c: Don't include <limits.h>.
52846         Include <stdlib.h> and <string.h> unconditionally.
52847         (iswcntrl, mbsinit, ISCNTRL): New macros.
52848         (mbsnwidth): Use K&R style function declarations.
52849         Don't bother checking for MB_LEN_MAX == 1, since the compiler
52850         can optimize it when MB_CUR_MAX == 1.
52851         The width of control characters is zero, not 1.
52852
52853 2001-08-03  Paul Eggert  <eggert@twinsun.com>
52854
52855         The following changes are from gettext 0.10.39 as maintained by
52856         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
52857
52858         * m4/codeset.m4: Upgrade to serial AM1.
52859         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
52860         all uses changed.  Quote first arg of AC_DEFUN.
52861         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
52862
52863         * m4/iconv.m4: Upgrade to serial AM2.
52864         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
52865         Add --with-libconv-prefix.
52866         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
52867         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
52868         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
52869         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
52870         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
52871
52872         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
52873         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
52874         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
52875         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
52876         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
52877         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
52878         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
52879         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
52880         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
52881
52882         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
52883         string.h any more.
52884
52885         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
52886         not the default value.
52887
52888         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
52889         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
52890         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
52891         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
52892         Also check for iswcntrl, used for wcwidth fallback.
52893         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
52894         to Autoconf 2.13.
52895
52896 2001-08-03  Jim Meyering  <meyering@lucent.com>
52897
52898         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
52899         as it was in the original.  Reported by Paul Eggert.
52900
52901 2001-07-16  Jim Meyering  <meyering@lucent.com>
52902
52903         * m4/gettimeofday.m4: New file.
52904         Prompted by a report from Bernhard Baehr.
52905
52906 2001-07-15  Jim Meyering  <meyering@lucent.com>
52907
52908         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
52909         stuff. Now it's in ../Makefile.cfg.
52910
52911 2001-07-15  Jim Meyering  <meyering@lucent.com>
52912
52913         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
52914         (BUILT_SOURCES): Add unlocked-io.h.
52915         (io_functions): Define.
52916         (unlocked-io.h): New rule.
52917         (DISTCLEANFILES): Add unlocked-io.h.
52918         (all-local): Depend on unlocked-io.h, to ensure it is created.
52919
52920         * lib/unlocked-io.hin: New file
52921
52922         * lib/regex.c: Update from glibc.
52923
52924 2001-07-05  Jim Meyering  <meyering@lucent.com>
52925
52926         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
52927         recommendation.
52928         (libfetish_a_SOURCES): Put all .h files here instead.
52929         Remove a thus-exposed (better checks in automake) duplicate and
52930         two unnecessary .h files.
52931
52932 2001-07-04  Jim Meyering  <meyering@lucent.com>
52933
52934         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
52935         that generates jm-glibc-io.m4 so that it doesn't trigger any make
52936         distcheck failure.
52937
52938 2001-07-02  Jim Meyering  <meyering@lucent.com>
52939
52940         The following changes were prompted by suggestions from Bruno Haible.
52941
52942         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
52943         is now generated.
52944         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
52945         definition of EXTRA_DIST.
52946         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
52947         ensure that the generated file is created/updated whenever the list
52948         of $(unlocked_functions) is changed.
52949         (jm-glibc-io.m4): New rule.
52950         (unlocked-io.h): New rule -- currently unused.
52951
52952 2001-06-24  Jim Meyering  <meyering@lucent.com>
52953
52954         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
52955         unmatched right bracket, rather than kludging it with an extra,
52956         falsely-matching quote in a comment.  Patch by Akim Demaille.
52957
52958 2001-06-11  Jim Meyering  <meyering@lucent.com>
52959
52960         * lib/regex.c: Update from GNU libc.
52961
52962 2001-05-27  Jim Meyering  <meyering@lucent.com>
52963
52964         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
52965         Check for ut_type in struct utmp.
52966
52967 2001-05-27  Jim Meyering  <meyering@lucent.com>
52968
52969         * lib/readutmp.h (UT_TYPE): Define.
52970
52971 2001-05-24  Jim Meyering  <meyering@lucent.com>
52972
52973         * lib/argmatch.c: Include "quote.h".
52974         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
52975         quote function.  Reported by Göran Uddeborg.
52976
52977 2001-05-22  Jim Meyering  <meyering@lucent.com>
52978
52979         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
52980         now that we use the package-supplied version unconditionally.
52981         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
52982
52983 2001-05-21  Jim Meyering  <meyering@lucent.com>
52984
52985         * m4/regex.m4: Change a couple backticks to single quotes to avoid
52986         shell syntax errors.
52987
52988 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
52989
52990         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
52991
52992 2001-05-20  Paul Eggert  <eggert@twinsun.com>
52993
52994         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
52995         Don't bother to check library strftime, since
52996         we'll be using our own my_strftime function anyway.
52997         Define my_strftime instead of strftime.
52998
52999 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
53000
53001         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
53002         which is not yet declared.
53003
53004 2001-05-15  Jim Meyering  <meyering@lucent.com>
53005
53006         * m4/regex.m4: Use proper quoting so brackets appear in the test
53007         program.
53008         Reported by, and with help from, Bruno Haible.
53009
53010 2001-05-13  Jim Meyering  <meyering@lucent.com>
53011
53012         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
53013         undefined.
53014
53015 2001-05-11  Paul Eggert  <eggert@twinsun.com>
53016
53017         dirname code cleanup.  base_name now behaves more compatibly
53018         with POSIX basename when given file names that have trailing
53019         slashes, and similarly for dir_name.  Add new primitives
53020         base_len and dir_len.  Put the directory-name-related decls
53021         into dirname.h.
53022
53023         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
53024         * lib/backupfile.c (base_name): Likewise.
53025         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
53026         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
53027         * lib/makepath.c (strip_trailing_slashes): Likewise.
53028         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
53029         ISSLASH): Likewise.
53030         * lib/rename.c (strip_trailing_slashes): Likewise.
53031         * lib/same.c (base_name): Likewise.
53032         * lib/stripslash.c (ISSLASH): Likewise.
53033
53034         * lib/addext.c: Include <dirname.h> after size_t is defined.
53035         * lib/backupfile.c: Likewise.
53036
53037         * lib/addext.c (addext): Use base_len to trim redundant
53038         trailing slashes instead of doing it ourselves.
53039         But do not trim the last slash if it is not redundant.
53040
53041         * lib/backupfile.c (find_backup_file_name,
53042         max_backup_version): Use base_len instead of rolling it ourselves.
53043         Handle the case of "" and (on DOS) "C:" correctly.
53044
53045         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
53046         needed. Include <string.h>, <dirname.h>.
53047         (base_name): Allow file names ending in slashes, other than names
53048         that are all slashes.  In this case, return the basename followed
53049         by the slashes.  This is more general, and can be used in places
53050         where the original base_name purposely had an assertion failure.
53051         (base_len): New function.
53052
53053         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
53054         Do not include <assert.h>; no longer needed.
53055         Include xalloc.h.
53056         (memrchr): Remove decl.
53057         (dir_name_r): Remove.
53058         (dir_len): Renamed from dirlen.  All callers changed.
53059         Rewrite in terms of base_name, for simplicity and consistency.
53060         (dir_name): Never return NULL.  All callers changed.
53061         Do not include <stdlib.h> in test program; no longer needed.
53062         return 0; is fine for test program.
53063
53064         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
53065         New macros.
53066         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
53067
53068         * lib/path-concat.c (path_concat): Use base_len to compute
53069         base length, not strlen; this means we cannot rely on memcpy
53070         to null-terminate.
53071
53072         * lib/same.c (STREQ): Remove.
53073         (same_name): Handle the case where the basename ends in trailing '/'.
53074
53075         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
53076         a slash was stripped.  Do not strip the last slash after a
53077         file system prefix.
53078
53079 2001-05-11  Paul Eggert  <eggert@twinsun.com>
53080
53081         * lib/Makefile.am (libfetish_a_SOURCES):
53082         Add strftime.c, since we now compile it on all hosts.
53083
53084         * lib/strftime.c (my_strftime):
53085         Define to nstrftime if emacs, but only if my_strftime is not defined.
53086         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
53087         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
53088         Add one more extra argument: a nanoseconds value.
53089         All uses changed.
53090         (ns): New macro.
53091         (my_strftime function): Add %N format.
53092         (emacs_strftimeu): Renamed from emacs_strftime,
53093         with extra ut argument.
53094
53095 2001-05-09  Paul Eggert  <eggert@twinsun.com>
53096
53097         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
53098
53099 2001-04-21  Jim Meyering  <meyering@lucent.com>
53100
53101         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
53102         doesn't interfere.
53103
53104 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
53105
53106         * m4/ftruncate.m4: Check for chsize.
53107         Link with ftruncate.o unconditionally if ftruncate is missing.
53108         This was required when cross-compiling to i586-mingw32msvc.
53109
53110 2001-04-08  Jim Meyering  <meyering@lucent.com>
53111
53112         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
53113         recomputed; that's necessary when the offset spans a DST transition.
53114         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
53115
53116 2001-04-02  Jim Meyering  <meyering@lucent.com>
53117
53118         * lib/regex.h, regex.c: Update from GNU libc.
53119
53120 2001-03-24  Jim Meyering  <meyering@lucent.com>
53121
53122         * m4/jm-macros.m4: Require autoconf-2.49d.
53123
53124 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
53125
53126         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
53127
53128 2001-03-19  Paul Eggert  <eggert@twinsun.com>
53129
53130         * lib/version-etc.c (version_etc_copyright): Update to 2001.
53131
53132 2001-03-17  Jim Meyering  <meyering@lucent.com>
53133
53134         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
53135         now that the version in autoconf is equivalent.
53136         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
53137
53138         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
53139         Suggestion from Akim Demaille.
53140
53141         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
53142         (jm_PREREQ_TEMPNAME): New function.
53143
53144 2001-03-16  Paul Eggert  <eggert@twinsun.com>
53145
53146         * lib/tempname.c (uint64_t): Define to uintmax_t if
53147         not defined, and if UINT64_MAX is not defined.
53148         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
53149         Reported by John David Anglin.
53150
53151 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
53152
53153         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
53154         resolve alias if codeset is empty.
53155         * lib/config.charset (BeOS): Use wildcard syntax.
53156
53157 2001-03-13  Jim Meyering  <meyering@lucent.com>
53158
53159         * lib/path-concat.c (path_concat)
53160         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
53161         concatenating e.g., `C:' and `foo'.
53162         From Bruno Haible.
53163
53164 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
53165
53166         * lib/localcharset.c (locale_charset): Don't use
53167         setlocale(LC_CTYPE,NULL). Don't return NULL.
53168         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
53169
53170 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
53171
53172         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
53173         support for DOS/DJGPP.
53174
53175 2001-03-01  Paul Eggert  <eggert@twinsun.com>
53176
53177         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
53178         lacks mkstemp.  Compile our own tempname.c if we compile our own
53179         mkstemp.c, as mkstemp relies on tempname.
53180
53181 2001-03-01  Jim Meyering  <meyering@lucent.com>
53182
53183         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
53184         AH_VERBATIM really does output its argument verbatim.
53185
53186 2001-02-28  Paul Eggert  <eggert@twinsun.com>
53187
53188         * lib/Makefile.am (libfetish_a_SOURCES):
53189         Add dup-safer.c, fopen-safer.c.
53190         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
53191
53192         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
53193         * lib/unistd-safer.h: New files.
53194
53195 2001-02-25  Paul Eggert  <eggert@twinsun.com>
53196
53197         The mkstemp replacement is taken from glibc 2.2.2, with some
53198         portability fixes for use outside glibc, as follows:
53199
53200         * lib/tempname.c (struct_stat64): New macro.
53201         (direxists, __gen_tempname): Use it.
53202         This avoids a portability problem with Solaris 8.
53203
53204         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
53205         (<stddef.h>, <stdint.h>, <string.h>):
53206         Include only if STDC_HEADERS || _LIBC.
53207         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
53208         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
53209         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
53210         (__set_errno): Define this macro if <errno.h> doesn't.
53211         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
53212         Define these macros if <stdio.h> doesn't.
53213         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
53214         Define these macros if <sys/stat.h>
53215         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
53216         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
53217         __xstat64): Define if not _LIBC.
53218         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
53219         (__gen_tempname): Invoke gettimeofday only if
53220         HAVE_GETTIMEOFDAY || _LIBC;
53221         otherwise, fall back on plain "time".
53222         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
53223
53224         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
53225
53226         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
53227
53228 2001-02-18  Paul Eggert  <eggert@twinsun.com>
53229
53230         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
53231
53232 2001-02-17  Paul Eggert  <eggert@twinsun.com>
53233
53234         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
53235         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
53236         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
53237         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
53238
53239 2001-02-17  Paul Eggert  <eggert@twinsun.com>
53240
53241         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
53242         Remove workaround macros for hosts that have mbrtowc but not
53243         mbstate_t, as we now insist on proper declarations for both
53244         before using mbrtowc.
53245
53246 2001-02-17  Jim Meyering  <meyering@lucent.com>
53247
53248         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
53249         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
53250         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
53251         UnixWare 7.1.1.
53252
53253         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
53254         rather than AC_CACHE_VAL.
53255
53256 2001-02-17  Jim Meyering  <meyering@lucent.com>
53257
53258         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
53259         around included file name.
53260
53261         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
53262
53263         * lib/strftime.c: Update from GNU libc (the only changes were to
53264         comments).
53265
53266 2001-02-17  Jim Meyering  <meyering@lucent.com>
53267
53268         * lib/regex.c: Update from libc.
53269
53270 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
53271
53272         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
53273         clash.
53274
53275 2001-02-16  Paul Eggert  <eggert@twinsun.com>
53276
53277         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
53278         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
53279         Reported by Mark Hounschell via Paul Eggert.
53280
53281 2001-02-07  Jim Meyering  <meyering@lucent.com>
53282
53283         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
53284
53285 2001-02-05  Jim Meyering  <meyering@lucent.com>
53286
53287         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
53288         it includes the patch required for `large file' support with at least
53289         HP-UX's 10.20 /bin/cc.
53290
53291 2001-02-03  Jim Meyering  <meyering@lucent.com>
53292
53293         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
53294         AS_IF, now that it works once again (mysteriously).
53295         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
53296
53297 2001-01-30  Jim Meyering  <meyering@lucent.com>
53298
53299         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
53300         * m4/chown.m4: Rename conftestchown to conftest.chown.
53301         * m4/rename.m4: s/conftestdir/conftest.d1/ and
53302         s/conftestdir2/conftest.d2/.
53303         * m4/utimes.m4: s/conftestdata/conftest.data/
53304         Inspired by Pavel Roskin's change in autoconf.
53305
53306 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
53307
53308         * lib/config.charset: Update for FreeBSD 4.2.
53309
53310 2001-01-27  Jim Meyering  <meyering@lucent.com>
53311
53312         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
53313         a use of AS_IF.
53314         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
53315
53316 2001-01-26  Jim Meyering  <meyering@lucent.com>
53317
53318         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
53319         quotearg.c includes it.
53320
53321 2001-01-26  Jim Meyering  <meyering@lucent.com>
53322
53323         * lib/quotearg.c: Include stddef.h.
53324         * lib/quote.c: Include stddef.h.
53325         Reported by Axel Kittenberger.
53326
53327         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
53328         line in double quotes so that it evokes a better diagnostic.
53329         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
53330         Reported by Axel Kittenberger.
53331
53332 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
53333
53334         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
53335         as if it was a `charset'.
53336
53337 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
53338
53339         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
53340         has const.
53341
53342 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
53343
53344         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
53345         to avoid a warning.  Add back 'const' to inptr.
53346
53347 2001-01-20  Jim Meyering  <meyering@lucent.com>
53348
53349         Be sure that headers are checked before used in code compiled
53350         for the type checks.
53351         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
53352         In place of that, invoke jm_CHECK_ALL_TYPES.
53353         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
53354         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
53355         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
53356         The check for ssize_t was mistakenly run before the test for unistd.h.
53357
53358         The configure-time check for stdbool.h was missing.
53359         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
53360         (jm_PREREQ_HASH): New function.
53361
53362 2001-01-17  Jim Meyering  <meyering@lucent.com>
53363
53364         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
53365         for autoconf-2.49c.
53366         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
53367
53368 2001-01-16  Jim Meyering  <meyering@lucent.com>
53369
53370         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
53371         From Bruno Haible.
53372
53373 2001-01-14  Jim Meyering  <meyering@lucent.com>
53374
53375         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
53376         foo and bar.  Create conftestdir/ in the script, not in the C code.
53377         Remove directories in the script, not in the C code.
53378         Remove conftestdir{,2} before trying to create the directory.
53379         Make the entire configure script fail if the mkdir fails.
53380
53381 2001-01-14  Jim Meyering  <meyering@lucent.com>
53382
53383         * lib/rename.c: New file.  From Volker Borchert.
53384         Include stdlib.h, string.h or strings.h, and xalloc.h.
53385         Use strip_trailing_slashes rather than open-coding it.
53386
53387 2001-01-03  Paul Eggert  <eggert@twinsun.com>
53388
53389         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
53390
53391 2001-01-03  Jim Meyering  <meyering@lucent.com>
53392
53393         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
53394         of local `inptr' to avoid warning with some system declarations of
53395         iconv.
53396
53397 2001-01-02  Volker Borchert  <bt@teknon.de>
53398
53399         * m4/rename.m4: New file.
53400         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
53401
53402 2001-01-01  Jim Meyering  <meyering@lucent.com>
53403
53404         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
53405         even on systems with utmpx.h.  It's necessary for the declaration of
53406         utmp's ut_user member.  Reported by Andreas Jaeger.
53407
53408         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
53409         available. They are required for the declarations of getgrgid and
53410         getpwuid resp.
53411         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
53412         Reported by Andreas Jaeger.
53413
53414 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
53415
53416         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
53417         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
53418         so `make install' also works in VPATH builds.
53419
53420 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
53421
53422         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
53423         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
53424         can be used in subdirectories.
53425
53426 2000-12-29  Paul Eggert  <eggert@twinsun.com>
53427
53428         * lib/modechange.c: Do not assume that mode_t uses the
53429         traditional octal encoding.  E.g. "chmod 1 FOO" should set
53430         the other-execute bit of FOO even if S_IXOTH != 1.
53431
53432         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
53433         WOTH, XOTH, ALLM): New macros.
53434         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
53435          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
53436         Use them.
53437         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
53438         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
53439         (mode_compile):
53440         No need to use uintmax_t; unsigned long is long enough.
53441         Don't bother to get suffix since we don't use it.
53442
53443 2000-12-26  Jim Meyering  <meyering@lucent.com>
53444
53445         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
53446         better with autoheader.
53447
53448 2000-12-24  Jim Meyering  <meyering@lucent.com>
53449
53450         * lib/hash.c (is_prime): Return explicit boolean values.
53451         (hash_get_first): Return NULL to appease Irix5.6's 89.
53452         Reported by Nelson Beebe.
53453
53454 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
53455
53456         * lib/localcharset.c (locale_charset): Add support for Win32.
53457
53458 2000-12-18  Paul Eggert  <eggert@twinsun.com>
53459
53460         * lib/physmem.h, lib/physmem.c: New files.
53461
53462         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
53463         (noinst_HEADERS): Add physmem.h.
53464
53465         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
53466         't' for compatibility with Solaris 8 sort.
53467
53468 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
53469
53470         * lib/config.charset: Add support for BeOS.
53471
53472 2000-12-17  Jim Meyering  <meyering@lucent.com>
53473
53474         * m4/dos.m4 (jm_AC_DOS): New file and macro.
53475         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
53476
53477 2000-12-16  Jim Meyering  <meyering@lucent.com>
53478
53479         This bug had a serious impact on chown: `chown N:M FILE' (for integer
53480         N and M) would have treated it like `chown N:N FILE'.
53481
53482         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
53483
53484 2000-12-16  Jim Meyering  <meyering@lucent.com>
53485
53486         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
53487         SHELLS_FILE to a file name that's useful on djgpp systems.
53488         Include stdlib.h.
53489         (ADDITIONAL_DEFAULT_SHELLS): Define.
53490         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
53491         Based mostly on a patch from Prashant TR.
53492
53493 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
53494
53495         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
53496         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
53497         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
53498
53499 2000-12-08  Andreas Schwab  <schwab@suse.de>
53500
53501         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
53502         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
53503
53504 2000-12-07  Jim Meyering  <meyering@lucent.com>
53505
53506         * lib/stripslash.c (ISSLASH): Define.
53507         (strip_trailing_slashes): Use ISSLASH rather than comparing against
53508         `/'.
53509         From Prashant TR.
53510
53511         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
53512         (dir_name_r): Declare this function as static.
53513         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
53514         manifest itself on a name containing a mix of slashes and
53515         backslashes.
53516         Make this function work with names starting with a DOS-style
53517         drive letter and colon prefix.
53518         (dir_name): Append `.' if necessary.
53519         Based mostly on patches from Prashant TR and Eli Zaretskii.
53520
53521         * lib/dirname.h (dir_name_r): Remove prototype.
53522
53523 2000-12-06  Paul Eggert  <eggert@twinsun.com>
53524
53525         * m4/off_t-format.m4: Remove this file.
53526         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
53527
53528 2000-12-06  Jim Meyering  <meyering@lucent.com>
53529
53530         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
53531         replacement strtoull, we may well need the replacement strtoul, too.
53532         Check for declarations of strtoul and strtoull.
53533         Check for strtol.  Mainly as a cue to cause automake to include
53534         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
53535         Check for limits.h -- strtol.c needs it.
53536
53537 2000-12-05  Jim Meyering  <meyering@lucent.com>
53538
53539         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
53540
53541 2000-12-04  Jim Meyering  <meyering@lucent.com>
53542
53543         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
53544         Also include memory.h, stdlib.h, unistd.h if appropriate.
53545         Reported by Andreas Jaeger (conflicting declaration of malloc).
53546
53547 2000-12-02  Jim Meyering  <meyering@lucent.com>
53548
53549         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
53550         * m4/jm-macros.m4 (jm_MACROS): require it.
53551
53552 2000-12-02  Jim Meyering  <meyering@lucent.com>
53553
53554         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
53555
53556 2000-12-01  Paul Eggert  <eggert@twinsun.com>
53557
53558         * lib/memrchr.c: Include <config.h> before any system include file.
53559
53560 2000-11-30  Jim Meyering  <meyering@lucent.com>
53561
53562         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
53563
53564 2000-11-30  Jim Meyering  <meyering@lucent.com>
53565
53566         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
53567
53568 2000-11-29  Paul Eggert  <eggert@twinsun.com>
53569
53570         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
53571
53572 2000-11-26  Jim Meyering  <meyering@lucent.com>
53573
53574         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
53575
53576 2000-11-22  Paul Eggert  <eggert@twinsun.com>
53577
53578         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
53579         size of (size_t) -1; it's not portable.
53580
53581 2000-11-17  Jim Meyering  <meyering@lucent.com>
53582
53583         * lib/strstr.c: Update from GNU libc.
53584
53585 2000-11-17  Akim Demaille  <akim@epita.fr>
53586
53587         * lib/obstack.h: Formatting changes.
53588         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
53589         prevent type checking.
53590         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
53591         cast the value to (void *): assigning a `foo *' to a `void *'
53592         variable is valid.
53593         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
53594
53595 2000-11-16  Jim Meyering  <meyering@lucent.com>
53596
53597         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
53598
53599 2000-11-11  Jim Meyering  <meyering@lucent.com>
53600
53601         * lib/error.c: Add a couple #includes, merging from GNU libc version.
53602
53603 2000-11-10  Jim Meyering  <meyering@lucent.com>
53604
53605         * lib/obstack.h: Update from GNU libc.
53606         * lib/obstack.c: Likewise.
53607
53608 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
53609
53610         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
53611
53612 2000-11-06  Paul Eggert  <eggert@twinsun.com>
53613
53614         * lib/getusershell.c (setusershell): Use rewind rather than
53615         fseek/fseeko, to avoid configuration hassles with fseeko.
53616         Don't bother opening SHELLS_FILE if shellstream is NULL;
53617         it's not necessary.
53618
53619 2000-11-05  Jim Meyering  <meyering@lucent.com>
53620
53621         * lib/makepath.h (make_dir): Declare.
53622         * lib/makepath.c (make_dir): Remove `static' attribute.
53623         Tweak a comment.
53624
53625 2000-11-04  Jim Meyering  <meyering@lucent.com>
53626
53627         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
53628
53629 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
53630
53631         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
53632         last one in a bucket, advance to the next bucket.
53633
53634 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
53635
53636         * lib/fnmatch.c: Do not comment out all the code if we are using
53637         the GNU C library, because in some cases we are replacing buggy
53638         code in the GNU C library itself.
53639
53640 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
53641
53642         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
53643         (regex_compile): Catch bogus \(\1\).
53644
53645 2000-10-30  Paul Eggert  <eggert@twinsun.com>
53646
53647         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
53648         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
53649         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
53650
53651 2000-10-30  Paul Eggert  <eggert@twinsun.com>
53652
53653         * lib/error.h, getline.h, modechange.h:
53654         Remove "2000" from Copyright line, as the file hasn't been
53655         changed this year other than in the copyright notice.
53656
53657         * lib/xalloc.h: Add "2000" to Copyright line, as this file
53658         was changed this year.
53659
53660 2000-10-29  Jim Meyering  <meyering@lucent.com>
53661
53662         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
53663         renaming.
53664         * m4/ls-mntd-fs.m4: Likewise
53665
53666 2000-10-29  Jim Meyering  <meyering@lucent.com>
53667
53668         * lib/xstat.in: Fix grammar in comment.
53669
53670 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
53671
53672         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
53673         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
53674         doesn't define __restrict_arr.
53675
53676 2000-10-28  Jim Meyering  <meyering@lucent.com>
53677
53678         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
53679         (jm_PREREQ_MEMCHR): New function.
53680
53681 2000-10-28  Jim Meyering  <meyering@lucent.com>
53682
53683         * lib/memchr.c: Update from libc.
53684         Adjust for portability:
53685         [HAVE_STDLIB_H]: Include stdlib.h.
53686         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
53687         Undef __memchr, too.
53688         [!weak_alias]: Define __memchr to memchr.
53689
53690         * lib/regex.c: Update from libc.
53691         * lib/regex.h: Likewise.
53692         * lib/getopt1.c: Likewise.
53693         * lib/memcmp.c: Likewise.
53694
53695         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
53696         Avoid using fseek, when possible -- it's broken by design.
53697         Patch by Ulrich Drepper.
53698
53699 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
53700
53701         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
53702         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
53703         Giving in to popular pressure to shut up the compiler with casts.
53704
53705 2000-10-26  Jim Meyering  <meyering@lucent.com>
53706
53707         * lib/strftime.c: Update from libc.
53708
53709 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
53710
53711         * regex.c: More `unsigned char' -> `re_char' changes.
53712         Also change several `int' into `re_wchar_t'.
53713         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
53714         (PUSH_FAILURE_POINTER): Don't cast any more.
53715         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
53716         We want GCC to complain, since this piece of code makes
53717         re_match non-reentrant, which *should* be fixed.
53718         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
53719         (EXTEND_BUFFER): Use RETALLOC.
53720         (SET_LIST_BIT): Don't cast.
53721         (re_wchar_t): New type.
53722         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
53723         that those two functions will always properly return.
53724         (IMMEDIATE_QUIT_CHECK): Cast to void.
53725         (analyse_first): Use recursion rather than an explicit stack.
53726         (re_compile_fastmap): Can't fail anymore.
53727         (re_search_2): Don't check re_compile_fastmap for failure.
53728         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
53729         Now also sets the new value (passed in a new argument).
53730         (re_match_2_internal): Use it.
53731         Also, use a new var `reg' of type size_t when looping through regs
53732         rather than reuse the inappropriate `mcnt'.
53733
53734 2000-10-25  Jim Meyering  <meyering@lucent.com>
53735
53736         * lib/obstack.c: Update from libc.
53737
53738 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
53739
53740         * regex.c (regex_compile): Change the way of handling a range from
53741         a char less than 256 to a char not less than 256.
53742
53743 2000-10-24  Andrew Innes  <andrewi@gnu.org>
53744
53745         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
53746         NT-Emacs only.
53747         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
53748         so that re_search functions only quit when callers expect them to.
53749
53750 2000-10-23  Jim Meyering  <meyering@lucent.com>
53751
53752         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
53753         wrong.  That set_locale call must not have any side effects.
53754         From Paul Eggert.
53755
53756 2000-10-22  Jim Meyering  <meyering@lucent.com>
53757
53758         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
53759         [CYCLIC]: Remove now-unused definition.
53760
53761         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
53762         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
53763         Suggestion from Ulrich Drepper.
53764
53765 2000-10-21  Jim Meyering  <meyering@lucent.com>
53766
53767         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
53768         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
53769         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
53770
53771 2000-10-21  Jim Meyering  <meyering@lucent.com>
53772
53773         * lib/dirname.c (memrchr): Declare if necessary.
53774         (dir_name): Remove the restriction that there be no
53775         trailing slashes.  Now, this code skips past them, effectively
53776         ignoring them.
53777         [TEST_DIRNAME] (main): New unit tests.
53778
53779         * lib/memrchr.c: New file from GNU libc.
53780         Undef __memrchr, too.
53781         [!weak_alias]: Define __memrchr to memrchr.
53782         Guard weak_alias use with `#ifdef weak_alias'.
53783
53784 2000-10-21  Jim Meyering  <meyering@lucent.com>
53785
53786         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
53787         (dir_name): Use dir_name_r.
53788         * lib/dirname.h (dir_name_r): Declare it.
53789
53790 2000-10-17  Jim Meyering  <meyering@lucent.com>
53791
53792         * lib/quote.h (PARAMS): Define and use.
53793         Reported by Akim Demaille.
53794
53795         * lib/getopt.c: Update from libc.
53796
53797 2000-10-16  Jim Meyering  <meyering@lucent.com>
53798
53799         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
53800         setlocale.
53801         From Jan Fedak.
53802
53803 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
53804
53805         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
53806
53807 2000-09-25  Jim Meyering  <meyering@lucent.com>
53808
53809         * lib/md5.h (rol): Define (from GnuPG).
53810
53811         * lib/sha.c: Give credit (GnuPG) where due.
53812         (M): Use rol rather than open-coding it.
53813         Add a FIXME comment.
53814
53815 2000-09-21  Jim Meyering  <meyering@lucent.com>
53816
53817         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
53818         Reported by Michael Stone.
53819
53820 2000-09-20  Jim Meyering  <meyering@lucent.com>
53821
53822         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
53823         (noinst_HEADERS): Add sha.h.
53824         Based on code from Scott G. Miller and from GnuPG.
53825
53826 2000-09-18  Jim Meyering  <meyering@lucent.com>
53827
53828         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
53829         LIBS. Otherwise, everyone ends up linking with -lelf for some
53830         configurations.
53831         Reported by Mike Stone.
53832
53833 2000-09-15  Jim Meyering  <meyering@lucent.com>
53834
53835         * lib/regex.c: Update from libc.
53836
53837 2000-09-10  Jim Meyering  <meyering@lucent.com>
53838
53839         * lib/getopt.c (_getopt_internal): Update from glibc.
53840
53841 2000-09-09  Jim Meyering  <meyering@lucent.com>
53842
53843         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
53844         think it should be used as a general replacement for isascii.
53845         * lib/fnmatch.c: Likewise.
53846         * lib/mbswidth.c: Likewise
53847         * lib/regex.c: Likewise.
53848
53849         Don't use atoi.
53850         * lib/userspec.c: Include sys/param.h and limits.h.
53851         Include xstrtol.h.
53852         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
53853         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
53854         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
53855         UID, GID.  Check range.
53856
53857 2000-09-06  Jim Meyering  <meyering@lucent.com>
53858
53859         * lib/getopt.c (_getopt_internal): Update from glibc.
53860
53861 2000-08-30  Jim Meyering  <meyering@lucent.com>
53862
53863         * lib/strftime.c: Merge in changes from GNU libc.
53864
53865 2000-08-26  Jim Meyering  <meyering@lucent.com>
53866
53867         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
53868         * m4/fpending.m4: New file.
53869
53870 2000-08-26  Jim Meyering  <meyering@lucent.com>
53871
53872         * lib/closeout.c: Include "__fpending.h".
53873         (close_stdout_status): Return right away if there's nothing to flush.
53874
53875         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
53876         * lib/__fpending.c: New file.
53877         * lib/__fpending.h: New file.
53878
53879 2000-08-20  Jim Meyering  <meyering@lucent.com>
53880
53881         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
53882         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
53883         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
53884
53885 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
53886
53887         Improve fileutils installation on systems where running
53888         programs (like install) can't be unlinked.
53889         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
53890         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
53891
53892 2000-08-07  Paul Eggert  <eggert@twinsun.com>
53893
53894         Standardize on "memory exhausted" instead of "Memory exhausted"
53895         or "virtual memory exhausted".
53896         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
53897         "virtual memory exhausted".
53898         * lib/same.c (same_name): Invoke xalloc_die instead of printing
53899         our own message.
53900         * lib/userspec.c (parse_user_spec): Likewise.
53901         * lib/bumpalloc.h: comment fix
53902         * lib/same.c, userspec.c: Include xalloc.h.
53903
53904         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
53905         not char *const and pointing to a constant array.
53906         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
53907         (xrealloc): Comment fix.
53908
53909         * lib/userspec.c (parse_user_spec):
53910         Don't translate a message until just before returning,
53911         to avoid unnecessary translation.
53912
53913 2000-08-07  Jim Meyering  <meyering@lucent.com>
53914
53915         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
53916         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
53917         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
53918         getgroups.c, gethostname.c, getopt.h, group-member.c,
53919         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
53920         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
53921         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
53922         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
53923         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
53924         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
53925         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
53926         yesno.c: Back out Copyright date changes for each file with no change
53927         this year.  This eases coordination with other programs using the same
53928         source code modules.  From Paul Eggert.
53929
53930 2000-08-06  Paul Eggert  <eggert@twinsun.com>
53931
53932         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
53933         not char, for compatibility with glibc 2.1.3 strftime.c.
53934
53935 2000-08-03  Greg McGary  <greg@mcgary.org>
53936
53937         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
53938         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
53939         (EXTEND_BUFFER): Use them.
53940
53941 2000-08-01  Jim Meyering  <meyering@lucent.com>
53942
53943         * lib/dirname.c (ISSLASH): Define.
53944         (BACKSLASH_IS_PATH_SEPARATOR): Define.
53945         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
53946         both `\' and `/' may be use as path separators.
53947         Based on a patch from Prashant TR.
53948
53949 2000-07-31  Paul Eggert  <eggert@twinsun.com>
53950
53951         * lib/quotearg.c (quotearg_n_options): Don't make the initial
53952         slot vector a constant, since it might get modified.
53953
53954 2000-07-31  Jim Meyering  <meyering@lucent.com>
53955
53956         * lib/xmalloc.c: Use `virtual memory exhausted', not
53957         `Memory exhausted'.
53958         * lib/obstack.c (print_and_abort): Likewise.
53959
53960 2000-07-30  Paul Eggert  <eggert@twinsun.com>
53961
53962         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
53963         buffer, so that the caller can always quote one small
53964         component of a "memory exhausted" message in slot 0.
53965         From a suggestion by Jim Meyering.
53966
53967 2000-07-30  Jim Meyering  <meyering@lucent.com>
53968
53969         * lib/makepath.c (make_path): Quote the other instance, too.
53970
53971         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
53972         (STATIC_BUF_SIZE): Define.
53973         (quotearg_n_options): Use only statically allocated storage when
53974         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
53975         than STATIC_BUF_SIZE.
53976
53977 2000-07-29  Jim Meyering  <meyering@lucent.com>
53978
53979         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
53980         * lib/dirname.c (dir_name): Likewise.
53981
53982         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
53983         `/'.
53984
53985         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
53986         (dir_name): Assert that there are no trailing slashes.
53987
53988 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
53989
53990         * lib/mbswidth.h (mbswidth): Add a flags argument.
53991         (mbswidth): New declaration.
53992         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
53993         * lib/mbswidth.c (mbswidth): Add a flags argument.
53994         (mbsnwidth): New function.
53995
53996 2000-07-24  Jim Meyering  <meyering@lucent.com>
53997
53998         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
53999
54000 2000-07-23  Paul Eggert  <eggert@twinsun.com>
54001
54002         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
54003
54004 2000-07-23  Paul Eggert  <eggert@twinsun.com>
54005
54006         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
54007         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
54008         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
54009         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
54010         invoke multibyte primitives.
54011
54012 2000-07-23  Paul Eggert  <eggert@twinsun.com>
54013
54014         * lib/quotearg.c:
54015         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
54016         so that mbstate_t is always defined.
54017
54018         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
54019         be 1 in at least one GCC installation, and this configuration
54020         error is likely to be common.  Ignoring MB_LEN_MAX hurts
54021         performance on hosts that have mbrtowc but have only unibyte
54022         locales, but I assume these hosts are rare.
54023
54024 2000-07-23  Paul Eggert  <eggert@twinsun.com>
54025
54026         * lib/mbswidth.c (_XOPEN_SOURCE):
54027         Don't define; this causes problems on Solaris 7.
54028         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
54029
54030 2000-07-23  Jim Meyering  <meyering@lucent.com>
54031
54032         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
54033         too: getgrgid, getpwuid, getuid.
54034
54035 2000-07-23  Jim Meyering  <meyering@lucent.com>
54036
54037         * lib/basename.c (base_name): Add an assertion.
54038
54039 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
54040
54041         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
54042         shadow its mbsinit function.
54043
54044 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
54045
54046         * lib/mbswidth.h: New file.
54047         * lib/mbswidth.c: New file.
54048         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
54049         (noinst_HEADERS): Add mbswidth.h.
54050
54051 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
54052
54053         * lib/config.charset: Add support for FreeBSD. Improve support for
54054         HP-UX and IRIX 6.
54055
54056 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
54057
54058         * m4/mbswidth.m4: New file.
54059         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
54060
54061 2000-07-15  Jim Meyering  <meyering@lucent.com>
54062
54063         * lib/makepath.c: Include quote.h.
54064         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
54065         corresponding argument in a `quote (...)' call.
54066         Give better diagnostics.
54067
54068         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
54069         (noinst_HEADERS): Add quote.h.
54070
54071         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
54072         from tar's src/misc.c.
54073         * lib/quote.h: New file.  Prototypes for same.
54074
54075 2000-07-14  Paul Eggert  <eggert@twinsun.com>
54076
54077         From a suggestion by Bruno Haible.
54078         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
54079         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
54080         to decide whether to define the BeOS workaround macro;
54081         this adjusts to the change to AC_MBSTATE_T.
54082
54083 2000-07-14  Jim Meyering  <meyering@lucent.com>
54084
54085         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
54086         jm_AC_TYPE_UINTMAX_T.
54087
54088 2000-07-13  Paul Eggert  <eggert@twinsun.com>
54089
54090         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
54091
54092         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
54093         quotearg_buffer_restyled): Add support for
54094         clocale_quoting_style.  Undo previous change to
54095         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
54096         and "{RIGHT QUOTATION MARK}" msgids.
54097
54098 2000-07-10  Paul Eggert  <eggert@twinsun.com>
54099
54100         From a suggestion by Bruno Haible.
54101         * m4/mbstate_t.m4 (AC_MBSTATE_T):
54102         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
54103         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
54104         and mbstate_t, to a single-part test that simply defines mbstate_t.
54105         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
54106         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
54107
54108 2000-07-10  Jim Meyering  <meyering@lucent.com>
54109
54110         * m4/strerror_r.m4: Mirror the correction made in autoconf.
54111
54112         * m4/gnu-source.m4: Output to confdefs.h directly.
54113         Suggestion from Akim Demaille.
54114
54115 2000-07-09  Paul Eggert  <eggert@twinsun.com>
54116
54117         The old behavior of quoting `like this' doesn't look good with
54118         newer, ISO-style fonts.  See:
54119         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
54120
54121         Instead, quote "like this" by default.  Let the translator
54122         tailor the locale-specific quoting behavior by providing
54123         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
54124
54125         * lib/quotearg.c (N_): New macro.
54126         (gettext_default): New function.
54127         (quotearg_buffer_restyled): Use
54128         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
54129         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
54130
54131 2000-07-09  Jim Meyering  <meyering@lucent.com>
54132
54133         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
54134         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
54135
54136         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
54137         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
54138
54139 2000-07-09  Jim Meyering  <meyering@lucent.com>
54140
54141         * lib/Most files: Update copyright dates to include 2000.
54142
54143 2000-07-08  Jim Meyering  <meyering@lucent.com>
54144
54145         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
54146         if not defined.
54147         (xgethostname): Remove now-unnecessary #ifdef.
54148         Move declaration of `err' into loop where it's used.
54149
54150 2000-07-05  Paul Eggert  <eggert@twinsun.com>
54151         and Bruno Haible  <haible@clisp.cons.org>
54152
54153         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
54154         only if the test for an object-type mbstate_t fails.  This
54155         prevents us from mistakenly reporting that mbstate_t is a
54156         system object type after we "#define mbstate_t int" to work
54157         around its lack.
54158
54159 2000-07-05  Paul Eggert  <eggert@twinsun.com>
54160         and Bruno Haible  <haible@clisp.cons.org>
54161
54162         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
54163
54164 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
54165
54166         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
54167         to strerror_r.
54168         Include <ctype.h> for use of isalpha.
54169
54170 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
54171
54172         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
54173         by allocating a larger buffer. Test the gethostname return value for
54174         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
54175         returns an error and ENAMETOOLONG isn't defined.
54176
54177 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
54178
54179         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
54180         dimension.
54181
54182 2000-07-04  Jim Meyering  <meyering@lucent.com>
54183
54184         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
54185         of the deprecated AC_CHECKING.
54186
54187 2000-07-04  Jim Meyering  <meyering@lucent.com>
54188
54189         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
54190         Reported by Bruno Haible.
54191
54192 2000-07-04  Jim Meyering  <meyering@lucent.com>
54193
54194         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
54195         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
54196         lacks mbrtowc.
54197
54198 2000-07-03  Paul Eggert  <eggert@twinsun.com>
54199
54200         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
54201         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
54202
54203 2000-07-03  Paul Eggert  <eggert@twinsun.com>
54204         and Bruno Haible  <haible@clisp.cons.org>
54205
54206         * lib/quotearg.c (mbrtowc):
54207         Assign to *pwc, and return 1 only if result is nonzero.
54208         (iswprint): Use ISPRINT when substituting our own mbrtowc.
54209
54210 2000-07-03  Jim Meyering  <meyering@lucent.com>
54211
54212         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
54213
54214 2000-07-03  Jim Meyering  <meyering@lucent.com>
54215
54216         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
54217         This is necessary to get a definition of e.g., UTMP_FILE on
54218         HP-UX 10.20.
54219         From Bob Proulx.
54220
54221 2000-07-02  Jim Meyering  <meyering@lucent.com>
54222
54223         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
54224
54225         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
54226         AC_LIBOBJ(function_name).
54227         * m4/chown.m4: Likewise.
54228         * m4/fnmatch.m4: Likewise.
54229         * m4/ftruncate.m4: Likewise.
54230         * m4/getgroups.m4: Likewise.
54231         * m4/getline.m4: Likewise.
54232         * m4/group-member.m4: Likewise.
54233         * m4/jm-macros.m4: Likewise.
54234         * m4/lstat.m4: Likewise.
54235         * m4/malloc.m4: Likewise.
54236         * m4/memcmp.m4: Likewise.
54237         * m4/nanosleep.m4: Likewise.
54238         * m4/putenv.m4: Likewise.
54239         * m4/realloc.m4: Likewise.
54240         * m4/regex.m4: Likewise.
54241         * m4/stat.m4: Likewise.
54242         * m4/strftime.m4: Likewise.
54243
54244 2000-07-02  Jim Meyering  <meyering@lucent.com>
54245
54246         * lib/quotearg.c (mbstate_t): Don't define here.
54247
54248 2000-07-02  Jim Meyering  <meyering@lucent.com>
54249
54250         * lib/nanosleep.c (SIGCONT): Define if not already defined.
54251
54252 2000-07-01  Jim Meyering  <meyering@lucent.com>
54253
54254         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
54255
54256 2000-07-01  Jim Meyering  <meyering@lucent.com>
54257
54258         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
54259         problem.
54260
54261 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
54262
54263         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
54264         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
54265
54266 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
54267
54268         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
54269         per change in ../m4/ls-mntd-fs.m4.
54270         (read_filesystem_list): Ignore symbolic links.
54271
54272 2000-06-29  Jim Meyering  <meyering@lucent.com>
54273
54274         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
54275         for declaration of strcmp.
54276
54277         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
54278
54279         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
54280         Avoid warning by casting result to `char *' to remove `const'.
54281
54282 2000-06-28  Jim Meyering  <meyering@lucent.com>
54283
54284         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
54285         included by quotearg.c, for which we perform this test.  From
54286         Bruno Haible.
54287
54288 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
54289
54290         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
54291         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
54292         <utmpx.h> exists, put readutmp.o into LIBOBJS.
54293
54294 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
54295
54296         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
54297
54298 2000-06-26  Paul Eggert  <eggert@twinsun.com>
54299
54300         savedir now sets errno on failure and invokes xmalloc to get memory.
54301         Fix a couple of other minor bugs while we're at it.
54302
54303         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
54304         (NAMLEN): Remove macro.
54305         (malloc, realloc): Remove decls.
54306         (stpcpy): Likewise.
54307         ("xalloc.h"): Include.
54308         (NAME_SIZE_DEFAULT): New macro.
54309         (savedir): Use xmalloc / xrealloc to allocate memory.
54310         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
54311         Skip "" directory entries.
54312         Use strlen to calculate directory entry length, since the old method
54313         is rarely used these days and isn't worth supporting.
54314         Don't use a pointer after freeing it.
54315         Check for integer overflow when calculating allocation size.
54316         Use memcpy to copy entries, instead of stpcpy.
54317         Set errno properly when returning NULL.
54318         Check for readdir error.
54319
54320 2000-06-26  Jim Meyering  <meyering@lucent.com>
54321
54322         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
54323
54324 2000-06-25  Jim Meyering  <meyering@lucent.com>
54325
54326         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
54327         Linux header bug when _XOPEN_SOURCE is defined to 500.
54328
54329 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
54330
54331         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
54332         deficiency.
54333
54334 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
54335
54336         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
54337         Include xalloc.h.
54338         Don't include <stdlib.h>.  Don't declare malloc, realloc.
54339
54340 2000-06-24  Jim Meyering  <meyering@lucent.com>
54341
54342         * m4/strerror_r.m4: Revive this file -- to try out an experimental
54343         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
54344         for which strerror does return char*, but which lacks a conveniently
54345         accessible declaration of the function.  If the compile-test says
54346         strerror_r doesn't work, then resort to a `run'-test that works on
54347         BeOS and segfaults on DEC Unix.
54348
54349 2000-06-24  Jim Meyering  <meyering@lucent.com>
54350
54351         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
54352
54353 2000-06-23  Paul Eggert  <eggert@twinsun.com>
54354
54355         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
54356         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
54357
54358 2000-06-23  Paul Eggert  <eggert@twinsun.com>
54359
54360         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
54361         (mbrtowc, mbstate_t): Define substitutes if
54362         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
54363         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
54364         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
54365
54366 2000-06-23  Jim Meyering  <meyering@lucent.com>
54367
54368         * m4/afs.m4: Add missing AC_MSG_RESULT.
54369         Reported by Bruno Haible.
54370
54371         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
54372         Suggestion from Bruno Haible.
54373
54374 2000-06-23  Jim Meyering  <meyering@lucent.com>
54375
54376         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
54377
54378 2000-06-21  Jim Meyering  <meyering@lucent.com>
54379
54380         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
54381
54382 2000-06-21  Jim Meyering  <meyering@lucent.com>
54383
54384         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
54385         (noinst_HEADERS): Add getstr.h.
54386
54387         * lib/getline.c (getstr): Move into a separate file.
54388         * lib/getstr.c (getstr): New file, extracted from getline.c, with
54389         the following changes: new parameter, delim2; both delim[12]
54390         parameters have type `int', not `char'.  The latter would lose
54391         with 8-bit delimiters.
54392         * lib/getstr.h: New file.
54393
54394 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
54395
54396         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
54397         than 1024, return a memory chunk of least possible size, instead
54398         of size PATH_MAX + 2. In the loop, increment the size proportionally.
54399         Use free/xmalloc instead of xrealloc to avoid copying for very long
54400         paths.
54401
54402 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
54403
54404         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
54405         the empty string.
54406
54407 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
54408
54409         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
54410         address, not strdup.  Include <stdlib.h> and don't declare free().
54411
54412 2000-06-19  Jim Meyering  <meyering@lucent.com>
54413
54414         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
54415
54416 2000-06-18  Jim Meyering  <meyering@lucent.com>
54417
54418         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
54419
54420         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
54421         `checking whether...' message to be consistent with that of the
54422         lstat test.
54423
54424 2000-06-18  Jim Meyering  <meyering@lucent.com>
54425
54426         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
54427         Besides, these days every porting target provides a mkdir function.
54428
54429         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
54430         needed. (this snippet comes from src/system.h).
54431
54432 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
54433
54434         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
54435
54436 2000-06-15  Paul Eggert  <eggert@twinsun.com>
54437
54438         * lib/human.c (adjust_value): New function.
54439         (human_readable_inexact): Apply rounding style even when
54440         printing approximate values.
54441
54442 2000-06-14  Paul Eggert  <eggert@twinsun.com>
54443
54444         * lib/human.c (human_readable_inexact): Allow an input block
54445         size that is not a multiple of the output block size, and vice versa.
54446         Reported by Piergiorgio Sartor.
54447
54448 2000-06-14  Paul Eggert  <eggert@twinsun.com>
54449
54450         * lib/getdate.y (get_date): Apply relative times after time
54451         zone indicator, not before.  Reported by Todd A. Jacobs.
54452
54453 2000-06-13  Jim Meyering  <meyering@lucent.com>
54454
54455         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
54456
54457         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
54458
54459 2000-06-12  Paul Eggert  <eggert@twinsun.com>
54460
54461         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
54462
54463 2000-06-12  Jim Meyering  <meyering@lucent.com>
54464
54465         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
54466         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
54467         optional argument.
54468         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
54469         the optional argument, `lib'.
54470
54471 2000-06-08  Jim Meyering  <meyering@lucent.com>
54472
54473         * m4/largefile.m4: Remove file (now that it's part of autoconf).
54474
54475 2000-06-04  Paul Eggert  <eggert@twinsun.com>
54476
54477         Rewrite largefile configuration so that we don't need to run
54478         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
54479         AC_CANONICAL_HOST in configure.in -- jmm]
54480
54481         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
54482         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
54483         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
54484         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
54485         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
54486         All uses changed.
54487         Instead of inspecting the output of getconf, try to compile the
54488         test program without and with the macro definition.
54489         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
54490         for getconf.  Instead, check for the needed flags by compiling
54491         test programs.
54492
54493 2000-06-04  Paul Eggert  <eggert@twinsun.com>
54494
54495         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
54496
54497 2000-06-04  Jim Meyering  <meyering@lucent.com>
54498
54499         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
54500         SunOS 4.1.4 for which gid_t is an unsigned type.
54501
54502 2000-06-03  Jim Meyering  <meyering@lucent.com>
54503
54504         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
54505         now that autoconf requires that.
54506
54507         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
54508         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
54509         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
54510
54511 2000-06-03  Jim Meyering  <meyering@lucent.com>
54512
54513         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
54514
54515 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
54516
54517         * m4/glibc21.m4: New file.
54518         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
54519
54520 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
54521
54522         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
54523         newer, don't install charset.alias.
54524         * lib/config.charset: Change the Linux/glibc rules so they become empty
54525         on glibc-2.1 or newer.
54526
54527 2000-06-02  Jim Meyering  <meyering@lucent.com>
54528
54529         * lib/mountlist.c: Back out last change.  Instead, do this...
54530         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
54531         me_dummy member using the same `ignore'-testing code.
54532         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
54533         fs_type strings.
54534         From Mark D. Roth.
54535
54536 2000-05-29  Jim Meyering  <meyering@lucent.com>
54537
54538         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
54539         mounts with the `ignore' attribute.  Based on a patch from
54540         Mark D. Roth.
54541
54542 2000-05-28  Jim Meyering  <meyering@lucent.com>
54543
54544         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
54545         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54546         * m4/stat.m4: Likewise.
54547         * m4/lstat.m4: Likewise.
54548         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
54549
54550         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
54551         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
54552
54553 2000-05-26  Jim Meyering  <meyering@lucent.com>
54554
54555         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
54556
54557 2000-05-24  Jim Meyering  <meyering@lucent.com>
54558
54559         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
54560         autoconf requires that.
54561         * m4/lib-check.m4: Likewise.
54562         * m4/jm-macros.m4: Likewise.
54563         * m4/strftime.m4: Likewise.
54564
54565         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
54566         AC_CHECK_DECLS, now that autoconf requires that.
54567
54568 2000-05-22  Jim Meyering  <meyering@lucent.com>
54569
54570         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54571         * m4/lstat.m4: Likewise.
54572
54573 2000-05-22  Jim Meyering  <meyering@lucent.com>
54574
54575         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
54576
54577 2000-05-20  Jim Meyering  <meyering@lucent.com>
54578
54579         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
54580         (jm_PREREQ): Use it.
54581
54582 2000-05-18  Jim Meyering  <meyering@lucent.com>
54583
54584         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
54585         back, too, since it may have been modified by allocate_entry.
54586         (hash_delete): Rewrite to use neither the assignment operator
54587         nor the comma operator in an if-expression.
54588
54589 2000-05-15  Paul Eggert  <eggert@twinsun.com>
54590
54591         * lib/closeout.c:
54592         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
54593         Remove; no longer needed.
54594         "quotearg.h": Add include.
54595         (file_name): Do not bother to explicitly initialize to NULL; it's less
54596         efficient on some hosts.
54597         (close_stdout_status): Remove test as to whether stdout was already
54598         closed; it breaks for the case "echo x | sort >&-".
54599         Quote file name colons.
54600         Do not assume that _("write error") lacks format strings.
54601
54602 2000-05-15  Jim Meyering  <meyering@lucent.com>
54603
54604         * lib/version-etc.c (version_etc_copyright): Update the copyright
54605         string used in all --version output.
54606
54607 2000-05-14  Jim Meyering  <meyering@lucent.com>
54608
54609         * lib/closeout.c (close_stdout_set_file_name): New function.
54610         (close_stdout_status): Use new file-scoped global.
54611         Return right away if fstat says the stdout file descriptor is invalid.
54612         * lib/closeout.h (close_stdout_set_file_name): Declare.
54613
54614 2000-05-10  Jim Meyering  <meyering@lucent.com>
54615
54616         * lib/closeout.c [default_exit_status]: New file-scoped variable.
54617         (close_stdout_set_status): New function.
54618         * lib/closeout.h (close_stdout_set_status): Declare.
54619
54620 2000-05-09  Jim Meyering  <meyering@lucent.com>
54621
54622         * m4/gettext.m4: Rename this...
54623         * m4/libintl.m4: ...to this.
54624
54625 2000-05-08  Jim Meyering  <meyering@lucent.com>
54626
54627         * lib/long-options.c: Don't include closeout.h.
54628         (parse_long_options): Don't call close_stdout for --version.
54629
54630 2000-05-06  Paul Eggert  <eggert@twinsun.com>
54631
54632         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
54633         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
54634         2.1.3 bug.  This avoids a clash when files like regex.c define
54635         _GNU_SOURCE.
54636
54637 2000-05-06  Jim Meyering  <meyering@lucent.com>
54638
54639         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
54640         (AC_REPLACE_FUNCS): Add strnlen.
54641
54642         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
54643         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
54644
54645         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
54646         AC_SEARCH_LIBS call for nanosleep.
54647         (LIB_NANOSLEEP): Set and AC_SUBST.
54648
54649 2000-05-06  Jim Meyering  <meyering@lucent.com>
54650
54651         * lib/strnlen.c: Undefine __strnlen and strnlen.
54652         [!weak_alias]: Define __strnlen to strnlen.
54653
54654         * lib/atexit.c: New file, from libiberty.
54655
54656 2000-05-06  Jim Meyering  <meyering@lucent.com>
54657
54658         * lib/closeout.c (close_stdout_status): Also check for errors on the
54659         stderr stream.
54660
54661 2000-05-05  Jim Meyering  <meyering@lucent.com>
54662
54663         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
54664         AC_SEARCH_LIBS call for clock_gettime.
54665         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
54666
54667         * m4/search-libs.m4: Update from autoconf.
54668
54669         su doesn't work on Solaris 2.6.
54670         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
54671         <shadow.h>.  Reported by Dragos Harabor.
54672
54673 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
54674
54675         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
54676         memcpy instead of xmalloc, xrealloc, path_concat.
54677         (locale_charset): Treat empty environment variables as absent.
54678         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
54679
54680 2000-05-04  Jim Meyering  <meyering@lucent.com>
54681
54682         * lib/getopt.c: Update from glibc.
54683         * lib/obstack.c: Likewise.
54684         * lib/obstack.h: Likewise.
54685         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
54686         file
54687
54688         * lib/regex.h: Likewise.
54689         * lib/strndup.c: Likewise.
54690         * lib/strnlen.c: New file, from glibc.
54691
54692 2000-05-03  Jim Meyering  <meyering@lucent.com>
54693
54694         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
54695
54696 2000-05-02  Paul Eggert  <eggert@twinsun.com>
54697
54698         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
54699         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
54700         compile-time test, rather than inspecting host and OS, to
54701         decide whether to define _LARGEFILE_SOURCE.
54702
54703 2000-05-01  Jim Meyering  <meyering@lucent.com>
54704
54705         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
54706
54707         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
54708         Based on a patch from Bruno Haible.
54709
54710 2000-05-01  Jim Meyering  <meyering@lucent.com>
54711
54712         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
54713
54714 2000-04-29  Jim Meyering  <meyering@lucent.com>
54715
54716         * lib/path-concat.c: Declare strdup only if it's not defined.
54717         * lib/canon-host.c: Likewise.
54718
54719 2000-04-28  Jim Meyering  <meyering@lucent.com>
54720
54721         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
54722         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
54723         is included first, then limits.h is included by locale.h by libintl.h.
54724         From John David Anglin.
54725
54726 2000-04-25  Jim Meyering  <meyering@lucent.com>
54727
54728         * lib/makepath.c (S_IRWXUGO): Define.
54729         (make_path): Always perform explicit chmod if MODE specifies any
54730         of the `special' permission bits.  Prompted by a bug report against
54731         install from Mate Wierdl and Joost van Baal.
54732
54733 2000-04-18  Jim Meyering  <meyering@lucent.com>
54734
54735         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
54736         (jm_PREREQ): Use it.
54737
54738 2000-04-18  Jim Meyering  <meyering@lucent.com>
54739
54740         * lib/README: New file.
54741
54742         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
54743         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
54744
54745 2000-04-17  Jim Meyering  <meyering@lucent.com>
54746
54747         Get it right :-)
54748         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
54749         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
54750         Suggestion from Akim Demaille.
54751
54752 2000-04-17  Jim Meyering  <meyering@lucent.com>
54753
54754         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
54755         the definition of it to rpl_strftime also defined-away the system's
54756         declaration.
54757
54758 2000-04-15  Jim Meyering  <meyering@lucent.com>
54759
54760         Use `C' to denote so-called `contiguous' files, the same way
54761         that tar does.
54762         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
54763         (ftypelet): Use S_ISCTG.
54764         From Michael Deutschmann.
54765
54766 2000-04-14  Jim Meyering  <meyering@lucent.com>
54767
54768         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
54769         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
54770         clobbered.
54771
54772 2000-04-14  Jim Meyering  <meyering@lucent.com>
54773
54774         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
54775
54776 2000-04-13  Jim Meyering  <meyering@lucent.com>
54777
54778         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
54779         AH_VERBATIM to insert required #ifndef into config.h.in.
54780         Suggestion from Akim Demaille.
54781
54782 2000-04-12  Jim Meyering  <meyering@lucent.com>
54783
54784         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
54785         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
54786         Christian Krackowizer.
54787
54788         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
54789         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
54790         (AC_SYS_LARGEFILE): Require.
54791         (AM_C_PROTOTYPES): Require.
54792
54793 2000-04-08  Jim Meyering  <meyering@lucent.com>
54794
54795         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
54796         names don't conflict.  Reported by Eli Zaretskii.
54797
54798 2000-04-07  Jim Meyering  <meyering@lucent.com>
54799
54800         * lib/putenv.c: Move inclusion of errno.h so it follows that of
54801         sys/types.h, to work around system header problems on AIX 3.2.5.
54802         From Bruno Haible.
54803
54804 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
54805
54806         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
54807         bug.  Deal with the different error behavior of Irix iconv.
54808
54809 2000-04-05  Paul Eggert  <eggert@twinsun.com>
54810
54811         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
54812         IRIX if the installer said otherwise.
54813
54814 2000-04-05  Jim Meyering  <meyering@lucent.com>
54815
54816         Portability tweaks required for ultrix4.3.
54817         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
54818         (jm_CHECK_DECLS): Add getutent to the list of functions.
54819         (_jm_DECL_HEADERS): Add utmpx.h.
54820         From John David Anglin.
54821
54822         * m4/strftime.m4: Back out the 2000-04-02 change.
54823         Instead of that change, simply undefine putenv in the test program.
54824
54825 2000-04-05  Jim Meyering  <meyering@lucent.com>
54826
54827         Portability tweaks required for ultrix4.3.
54828         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
54829         getutent.
54830         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
54831         * lib/canon-host.c: Declare strdup.
54832         * lib/path-concat.c: Likewise.
54833         From John David Anglin.
54834
54835 2000-04-04  Jim Meyering  <meyering@lucent.com>
54836
54837         Be more DOS 8.3-friendly.
54838         * lib/ref-add.sin: Renamed from ref-add.sed.in.
54839         * lib/ref-del.sin: Renamed from ref-del.sed.in.
54840         * lib/Makefile.am: Reflect renaming.
54841         Reported by Eli Zaretskii.
54842
54843         Use a temporary file name that won't clash with `charset.alias'
54844         in the DOS 8.3 name space.
54845         * lib/Makefile.am (charset_tmp): Define.
54846         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
54847         (uninstall-local): Likewise.
54848         Reported by Eli Zaretskii.
54849
54850 2000-04-03  Jim Meyering  <meyering@lucent.com>
54851
54852         * m4/gettext.m4: Fix typo in comment.
54853
54854         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
54855         textutils/configure.in).  Suggestion from Paul Eggert.
54856         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
54857
54858 2000-04-02  Paul Eggert  <eggert@twinsun.com>
54859
54860         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
54861         variable in the shell rather than using putenv, which isn't
54862         portable.  This avoids the configure-time inter-test dependency
54863         on the potentially-renamed putenv function.
54864
54865 2000-03-30  Paul Eggert  <eggert@twinsun.com>
54866
54867         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
54868         before checking struct stat.st_blksize, so that
54869         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
54870
54871 2000-03-29  Paul Eggert  <eggert@twinsun.com>
54872
54873         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
54874         since strftime.c uses HAVE_STRFTIME to decide whether to use
54875         the underlying strftime.
54876
54877 2000-03-29  Paul Eggert  <eggert@twinsun.com>
54878
54879         * lib/time/strftime.c (my_strftime): Make sure we call the system
54880         strftime, not ourselves, when invoking the underlying strftime.
54881
54882 2000-03-24  Jim Meyering  <meyering@lucent.com>
54883
54884         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
54885         (charset_alias): Define.
54886         (install-exec-local): Factor out common code.
54887         (uninstall-local): Split lines longer than 80.
54888         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
54889         (SUFFIXES): Define.
54890         (.sed.in.sed): New rule.  Don't redirect directly to $@.
54891         (CLEANFILES): Add ref-add.sed and ref-del.sed.
54892
54893 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
54894
54895         * lib/config.charset: Output a line containing "Packages using this
54896         file".
54897         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
54898         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
54899         ref-del.sed): New rules.
54900
54901 2000-03-17  Jim Meyering  <meyering@lucent.com>
54902
54903         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
54904         Otherwise, include <strings.h>
54905
54906 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
54907
54908         * lib/unicodeio.c (utf8_wctomb): New function.
54909         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
54910         format instead of in UCS-4 with platform dependent endianness.
54911
54912 2000-03-10  Jim Meyering  <meyering@lucent.com>
54913
54914         * m4/lib-check.m4: Look for getspnam in -lgen, too.
54915         From Marco Franzen.
54916
54917 2000-03-07  Paul Eggert  <eggert@twinsun.com>
54918
54919         * lib/savedir.c (savedir): Work even if directory size is
54920         negative; this can happen with some screwy NFS configurations.
54921
54922 2000-03-06  Jim Meyering  <meyering@lucent.com>
54923
54924         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
54925         if it's NULL (because we ran out of memory).  From Bruno Haible.
54926
54927 2000-03-05  Jim Meyering  <meyering@lucent.com>
54928
54929         * lib/localcharset.c ("path-concat.h"): Include.
54930         (get_charset_aliases): Use path_concat instead of ANSI string
54931         concatenation.
54932
54933         * lib/unicodeio.h (PARAMS): Define.
54934         Use it to guard prototype.
54935
54936 2000-03-04  Jim Meyering  <meyering@lucent.com>
54937
54938         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
54939         for lib/localcharset.c.
54940
54941 2000-03-04  Jim Meyering  <meyering@lucent.com>
54942
54943         * lib/Makefile.am (install-exec-local): Create $(libdir) before
54944         installing into it.
54945         (uninstall-local): Uncomment this rule so `make distcheck' works
54946         once again.
54947
54948         * lib/unicodeio.c (<errno.h>): Include it.
54949         (errno): Declare if not defined.
54950
54951         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
54952
54953         * lib/config.charset: New version, incorporating remarks from a linux
54954         i18n mailing list.  From Bruno Haible.
54955
54956 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
54957
54958         * m4/codeset.m4: New file.
54959         * m4/iconv.m4: New file.
54960         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
54961
54962 2000-03-03  Jim Meyering  <meyering@lucent.com>
54963
54964         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
54965
54966 2000-03-02  Jim Meyering  <meyering@lucent.com>
54967
54968         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
54969         the messages come out on separate lines.
54970
54971         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
54972         rather than jm_CHECK_DECLARATIONS.
54973         * m4/decl.m4: Remove now-unused file.
54974
54975         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
54976         geteuid.
54977
54978 2000-03-02  Jim Meyering  <meyering@lucent.com>
54979
54980         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
54981
54982 2000-03-01  Jim Meyering  <meyering@lucent.com>
54983
54984         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
54985         * lib/unicodeio.c: Likewise.
54986
54987 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
54988
54989         * lib/config.charset: New file.
54990         * lib/localcharset.c: New file.
54991         * lib/unicodeio.h, lib/unicodeio.c: New files.
54992         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
54993         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
54994         (noinst_HEADERS): Add unicodeio.h.
54995         (all-local, install-exec-local, charset.alias): New targets.
54996
54997 2000-02-28  Paul Eggert  <eggert@twinsun.com>
54998
54999         * lib/quotearg.c (ALERT_CHAR): New macro.
55000         (quotearg_buffer_restyled): Use it.
55001
55002 2000-02-27  Jim Meyering  <meyering@lucent.com>
55003
55004         * m4/check-decl.m4: Add getenv to the list.
55005
55006 2000-02-27  Jim Meyering  <meyering@lucent.com>
55007
55008         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
55009         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
55010
55011         * lib/backupfile.c: Guard inclusion of stdlib.h with
55012         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
55013         Declare malloc if needed.
55014
55015         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
55016         `#ifndef HAVE_DECL..'
55017         now that autoconf always defines the HAVE_DECL_ symbols.
55018         * lib/human.c: Likewise.
55019         * lib/same.c: Likewise.
55020         * lib/strtoumax.c: Likewise.
55021
55022         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
55023         declaration check was not run.
55024         * lib/hash.c: Likewise.
55025         * lib/human.c: Likewise.
55026         * lib/same.c: Likewise.
55027         * lib/strtoumax.c: Likewise.
55028
55029         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
55030         `.', then first look up the entire `.'-containing string as a login
55031         name.
55032
55033 2000-02-23  Jim Meyering  <meyering@lucent.com>
55034
55035         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
55036         in place of my hack.
55037
55038 2000-02-18  Paul Eggert  <eggert@twinsun.com>
55039
55040         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
55041         (textint): New typedef.
55042         (parser_control): Member year changed from int to textint.
55043         All uses changed.
55044         (YYSTYPE): Removed; replaced by %union with int and textint members.
55045         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
55046         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
55047         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
55048         (tSNUMBER, tUNUMBER): Now of type <textintval>.
55049         (date, number, to_year): Use width of number in digits, not its value,
55050         to determine whether it's a 2-digit year, or a 2-digit time.
55051         (yylex): Store number of digits of numeric tokens.
55052         Reported by John Kendall.
55053
55054         (parser_control): Changed from struct parser_control to typedef (for
55055         consistency).  All uses changed.
55056
55057         (tID): Removed; not used.
55058         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
55059
55060 2000-02-14  Paul Eggert  <eggert@twinsun.com>
55061
55062         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
55063         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
55064
55065 2000-02-12  Jim Meyering  <meyering@lucent.com>
55066
55067         * lib/userspec.c (ISDIGIT): Define it.
55068         (isdigit): Remove definition.
55069         (is_number): Use ISDIGIT, not isdigit.
55070         <libintl.h>: Include.
55071         (_ and N_): Define.
55072         (parse_user_spec): Mark translatable strings.
55073
55074 2000-02-10  Jim Meyering  <meyering@lucent.com>
55075
55076         With these changes, nanosleep.[ch] are finally enough like the other
55077         lib/* replacement files to compile on a few more losing systems.
55078
55079         * lib/nanosleep.h: Don't include config.h.
55080         Remove prototype from declaration of nanosleep.
55081         (PARAMS): Remove now-unneeded definition.
55082         * lib/nanosleep.c: #undef nanosleep.
55083         (rpl_nanosleep): Rename from nanosleep.
55084
55085 2000-02-10  Jim Meyering  <meyering@lucent.com>
55086
55087         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
55088         gnu_nanosleep to rpl_nanosleep.
55089
55090 2000-02-09  Jim Meyering  <meyering@lucent.com>
55091
55092         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
55093         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
55094
55095 2000-02-08  Akim Demaille  <akim@epita.fr>
55096
55097         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
55098         `[' and `]' and remove uses of `changequote'.
55099         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
55100         (AC_SYS_LARGEFILE): Likewise.
55101         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
55102         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
55103         of changequote.
55104         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
55105         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
55106         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
55107         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
55108
55109 2000-02-05  Jim Meyering  <meyering@lucent.com>
55110
55111         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
55112         Remove explicit use of AC_HEADER_TIME.  It is required by
55113         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
55114         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
55115         in autoconf whereby the expansion of the latter ended up preceding
55116         the expansion of its prerequisite, AC_HEADER_TIME.
55117         Reported by Volker Borchert.
55118
55119 2000-02-03  Jim Meyering  <meyering@lucent.com>
55120
55121         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
55122
55123 2000-02-03  Jim Meyering  <meyering@lucent.com>
55124
55125         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
55126         rather than with `#if HAVE_UTMPNAME'.
55127
55128 2000-02-02  Jim Meyering  <meyering@lucent.com>
55129
55130         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
55131         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
55132         Reported by Eli Zaretskii.
55133
55134 2000-02-01  Jim Meyering  <meyering@lucent.com>
55135
55136         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
55137
55138 2000-01-31  Jim Meyering  <meyering@lucent.com>
55139
55140         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
55141         functions.  Add the time.h and sys/time.h headers along with the
55142         AC_REQUIRE'ment of AC_HEADER_TIME.
55143
55144 2000-01-31  Jim Meyering  <meyering@lucent.com>
55145
55146         * lib/nanosleep.h (nanosleep): Guard declaration with
55147         `#if ! HAVE_DECL_NANOSLEEP'.
55148         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
55149         the declaration in that vendor's sys/timers.h.
55150         Reported by Christian Krackowizer.
55151
55152         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
55153         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
55154         (ISPRINT): Likewise.
55155         Reported by Tom Tromey.
55156
55157 2000-01-30  Jim Meyering  <meyering@lucent.com>
55158
55159         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
55160
55161         * m4/prereq.m4 (utmp_includes): Define.
55162         Check for ut_user and ut_name members in both struct utmpx
55163         and struct utmp.
55164
55165 2000-01-30  Jim Meyering  <meyering@lucent.com>
55166
55167         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
55168         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
55169         header files where only utmpx.ut_user is declared.
55170
55171         * lib/readutmp.h (UT_USER): Define.
55172
55173 2000-01-29  Jim Meyering  <meyering@lucent.com>
55174
55175         * m4/lib-check.m4: New file containing library-related checks from
55176         fileutils and sh-utils (textutils had none).
55177
55178 2000-01-28  Jim Meyering  <meyering@lucent.com>
55179
55180         * m4/perl.m4: Change format of warning message to look more like that
55181         from the missing script.  Suggestion from François Pinard.
55182
55183 2000-01-25  Jim Meyering  <meyering@lucent.com>
55184
55185         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
55186         well as time.h in the compile check.
55187         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
55188         Fix typo in cross-compiling case: s/yes/no/.
55189
55190 2000-01-23  Jim Meyering  <meyering@lucent.com>
55191
55192         * m4/jm-macros.m4: Move df-related tests here from
55193         fileutils/configure.in
55194
55195         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
55196         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
55197
55198         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
55199         s/space/ac_fsusage_space/.
55200         (jm_FILE_SYSTEM_USAGE): Take two parameters.
55201
55202         * m4/ftruncate.m4: New file (derived from part of
55203         fileutils/configure.in).
55204         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
55205         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
55206
55207         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
55208         AC_SUBST these here, rather than just in sh-util/configure.in, so
55209         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
55210         all the same.
55211         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
55212         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
55213         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
55214         (AC_SUBST(POW_LIBM)): Likewise.
55215         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
55216
55217 2000-01-23  Jim Meyering  <meyering@lucent.com>
55218
55219         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
55220         obstack.c.
55221
55222 2000-01-22  Jim Meyering  <meyering@lucent.com>
55223
55224         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
55225
55226         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
55227
55228         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
55229         configure.in
55230         (AC_CHECK_HEADERS): Likewise for sh-utils.
55231         (AC_CHECK_HEADERS): Likewise for textutils.
55232         Merge the three lists of headers.
55233
55234         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
55235         from fileutils' configure.in.
55236
55237         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
55238         code. Moved tests into their own function (_jm_DECL_HEADERS) in
55239         check-decl.m4.
55240
55241         * m4/check-decl.m4: Use #if rather than #ifdef.
55242         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
55243         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
55244         (_jm_DECL_HEADERS): Define new function.
55245         (jm_CHECK_DECLARATIONS): Require it.
55246
55247 2000-01-22  Jim Meyering  <meyering@lucent.com>
55248
55249         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
55250         [! HAVE_DECL_STRTOULL]: Declare strtoull.
55251         Required for some AIX systems.  Reported by Christian Krackowizer.
55252         [TESTING] (main): New function.
55253
55254         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
55255         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
55256         letters.
55257
55258         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
55259         iswprint.
55260
55261         * lib/strverscmp.c (ISDIGIT): Define.
55262         (strverscmp): Use ISDIGIT, not isdigit.
55263
55264 2000-01-19  Jim Meyering  <meyering@lucent.com>
55265
55266         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
55267         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
55268         defines `struct timespec' in <sys/time.h>
55269
55270         * m4/c-bs-a.m4: Remove uses of changequote altogether.
55271         Thanks to Akim for explaining.
55272
55273 2000-01-17  Paul Eggert  <eggert@twinsun.com>
55274
55275         * lib/nanosleep.c (nanosleep):
55276         Don't use SA_INTERRUPT to decide whether to call sigaction, as
55277         POSIX.1 doesn't require SA_INTERRUPT and some systems
55278         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
55279         it's been part of POSIX.1 since day 1 (in 1988).
55280
55281 2000-01-17  Jim Meyering  <meyering@lucent.com>
55282
55283         * lib/interlock: Remove unused file.  Reported by François Pinard.
55284
55285 2000-01-16  Paul Eggert  <eggert@twinsun.com>
55286
55287         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
55288         alert, backslash, formfeed, and vertical tab unnecessarily in
55289         shell quoting style.
55290
55291 2000-01-16  Jim Meyering  <meyering@lucent.com>
55292
55293         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
55294         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
55295         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
55296         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
55297
55298 2000-01-16  Jim Meyering  <meyering@lucent.com>
55299
55300         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
55301         because the latter didn't work.
55302
55303 2000-01-15  Jim Meyering  <meyering@lucent.com>
55304
55305         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
55306         (AC_REPLACE_FUNCS): Add memcpy and memset.
55307         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
55308         Add strpbrk.
55309         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
55310
55311 2000-01-12  Jim Meyering  <meyering@lucent.com>
55312
55313         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
55314         (jm_PREREQ): Use it.
55315         (jm_PREREQ_READUTMP): New macro.
55316         (jm_PREREQ): Use it.
55317
55318 2000-01-11  Paul Eggert  <eggert@twinsun.com>
55319
55320         Quote multibyte characters correctly.
55321         * m4/c-bs-a.m4: New file.
55322         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
55323         (jm_PREREQ): Use it.
55324
55325 2000-01-11  Paul Eggert  <eggert@twinsun.com>
55326
55327         * m4/uintmax_t.m4: Port to autoconf 2.13.
55328
55329 2000-01-08  Jim Meyering  <meyering@ascend.com>
55330
55331         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
55332         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
55333
55334 2000-01-04  Jim Meyering  <meyering@ascend.com>
55335
55336         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
55337         jm_STRUCT_DIRENT_D_TYPE.
55338         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
55339         jm_STRUCT_DIRENT_D_INO.
55340         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
55341         jm_STRUCT_UTIMBUF.
55342         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
55343         renamings.
55344         * m4/utime.m4: Likewise.
55345
55346         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
55347         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
55348
55349 2000-01-03  Paul Eggert  <eggert@twinsun.com>
55350
55351         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
55352         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
55353
55354 2000-01-02  Jim Meyering  <meyering@ascend.com>
55355
55356         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
55357         remember if this is necessary.
55358
55359 1999-12-26  Jim Meyering  <meyering@ascend.com>
55360
55361         * m4/jm-macros.m4: Use it here.
55362         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
55363
55364 1999-12-23  Jim Meyering  <meyering@ascend.com>
55365
55366         * m4/jm-macros.m4: Check for clock_gettime (moved from
55367         fileutils/configure.in)
55368         Check for gettimeofday.
55369
55370 1999-12-20  Jim Meyering  <meyering@ascend.com>
55371
55372         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
55373         autoconf-2.14a-1999-12-20.
55374
55375 1999-12-19  Jim Meyering  <meyering@ascend.com>
55376
55377         * m4/lstat-slash.m4: New file.
55378         * m4/jm-macros.m4: Use the new macro:
55379         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55380
55381 1999-12-07  Jim Meyering  <meyering@ascend.com>
55382
55383         * m4/perl.m4: Require that File::Compare be available, too.
55384         Too many systems seem to lack it.
55385
55386         * m4/strftime.m4: Add checks for most of the cpp macros tested in
55387         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
55388
55389 1999-11-18  Paul Eggert  <eggert@twinsun.com>
55390
55391         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
55392         problem with the QNX 4.25 shell, which doesn't propagate exit
55393         status of failed commands inside shell assignments.
55394
55395 1999-11-17  Jim Meyering  <meyering@ascend.com>
55396
55397         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
55398
55399 1999-11-07  Jim Meyering  <meyering@ascend.com>
55400
55401         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
55402
55403 1999-11-06  Jim Meyering  <meyering@ascend.com>
55404
55405         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
55406         * m4/jm-macros.m4 (jm_MACROS): Use it here.
55407
55408 1999-11-05  Jim Meyering  <meyering@ascend.com>
55409
55410         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
55411         configure.in of textutils, fileutils, and sh-utils into this one
55412         (shared between those packages) file.
55413         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
55414         AC_STRUCT_ST_BLKSIZE.
55415
55416 1999-11-03  Jim Meyering  <meyering@ascend.com>
55417
55418         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
55419         of AC_CHECK_TYPE checks includes unistd.h.
55420         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
55421         Suggestion from Akim Demaille.
55422
55423 1999-10-30  Jim Meyering  <meyering@ascend.com>
55424
55425         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
55426         m4-quoted string.
55427         * m4/ls-mntd-fs.m4: Likewise.
55428         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
55429         * m4/jm-winsz1.m4: Likewise.
55430
55431         * m4/const.m4: Remove file, since the fix made it into the experimental
55432         version of autoconf.
55433         * m4/mktime.m4: Likewise.
55434
55435         * m4/check-type.m4: Remove file, now that the latest version of
55436         AC_CHECK_TYPE takes a third arg to specify additional #includes.
55437
55438         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
55439         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
55440         AC_CHECK_TYPE.
55441
55442 1999-10-04  Jim Meyering  <meyering@ascend.com>
55443
55444         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
55445
55446 1999-09-22  Paul Eggert  <eggert@twinsun.com>
55447
55448         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
55449         2.95.1 bug with HP-UX 10.20.
55450
55451 1999-09-17  Jim Meyering  <meyering@ascend.com>
55452
55453         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
55454         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
55455         due to missing strdup (against sh-utils-2.0).
55456
55457 1999-08-29  Jim Meyering  <meyering@ascend.com>
55458
55459         * m4/jm-macros.m4: Require jm_BISON.
55460         * m4/bison.m4: New file.
55461
55462 1999-08-17  Paul Eggert  <eggert@twinsun.com>
55463
55464         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
55465         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
55466
55467 1999-08-05  Jim Meyering  <meyering@ascend.com>
55468
55469         * m4/getline.m4: Rename test file from conftestdata to conftest.data
55470         to avoid conflicts with `conftest' on 8+3 filesystems.
55471         Suggestion from Eli Zaretskii.
55472
55473 1999-08-04  Jim Meyering  <meyering@ascend.com>
55474
55475         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
55476         fileutils and sh-utils (textutils's getline test was inadequate).
55477         (AM_FUNC_GETLINE): Run this test.
55478         (AC_CHECK_FUNCS): Check for getdelim.
55479         Reported by Bob Proulx.
55480
55481 1999-08-02  Jim Meyering  <meyering@ascend.com>
55482
55483         * m4/jm-macros.m4: Add a comment.
55484
55485 1999-08-01  Paul Eggert  <eggert@twinsun.com>
55486
55487         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
55488         <inttypes.h> defines strtoumax as a macro (and not as a
55489         function).
55490
55491 1999-08-01  Paul Eggert  <eggert@twinsun.com>
55492
55493         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
55494         that we can shift, multiply and divide unsigned long long
55495         values; Ultrix cc can't do it.
55496
55497 1999-08-01  Paul Eggert  <eggert@twinsun.com>
55498
55499         * m4/mktime.m4: New file, which is a preview of what should appear
55500         in the next public autoconf release.
55501
55502 1999-08-01  Paul Eggert  <eggert@twinsun.com>
55503
55504         * m4/lfs.m4: Remove this file.
55505         * m4/largefile.m4: New file.  It contains the old contents of
55506         lfs.m4, except that all names with prefix AC_LFS have been
55507         changed to use the prefix AC_SYS_LARGEFILE instead, to be
55508         compatible with future autoconf versions.  Also, some minor m4
55509         quoting problems have been fixed.
55510
55511 1999-08-01  Paul Eggert  <eggert@twinsun.com>
55512
55513         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
55514         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
55515         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
55516         and simplify the shell code.
55517
55518 1999-08-01  Jim Meyering  <meyering@ascend.com>
55519
55520         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
55521         m4.
55522
55523 1999-07-20  Jim Meyering  <meyering@ascend.com>
55524
55525         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
55526
55527 1999-07-15  Jim Meyering  <meyering@ascend.com>
55528
55529         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
55530
55531 1999-05-22  Jim Meyering  <meyering@ascend.com>
55532
55533         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
55534
55535 1999-05-20  Jim Meyering  <meyering@ascend.com>
55536
55537         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
55538         Add a colon after each `then' in case $4 is empty.
55539
55540 1999-05-16  Jim Meyering  <meyering@ascend.com>
55541
55542         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
55543
55544 1999-05-10  Jim Meyering  <meyering@ascend.com>
55545
55546         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
55547
55548         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
55549         AC_FUNC_MKTIME.
55550
55551 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
55552
55553         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
55554
55555 1999-05-04  Paul Eggert  <eggert@twinsun.com>
55556
55557         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
55558         not CPPFLAGS, so that linking works correctly in IRIX.
55559
55560 1999-04-30  Paul Eggert  <eggert@twinsun.com>
55561
55562         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
55563
55564 1999-04-20  Paul Eggert  <eggert@twinsun.com>
55565
55566         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
55567         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
55568         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
55569         jm_AC_TYPE_UNSIGNED_LONG_LONG.
55570         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
55571
55572         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
55573
55574 1999-04-20  Jim Meyering  <meyering@ascend.com>
55575
55576         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
55577         AC_REPLACE xstroull if necessary.  From Paul Eggert.
55578         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
55579
55580 1999-04-18  Jim Meyering  <meyering@ascend.com>
55581
55582         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
55583         * m4/jm-macros.m4: Use it.
55584
55585 1999-04-06  Jim Meyering  <meyering@ascend.com>
55586
55587         * m4/strftime.m4: Remove test for %f.
55588
55589 1999-03-29  Jim Meyering  <meyering@ascend.com>
55590
55591         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
55592         superset of the AC_TYPE_* checks in the textutils, fileutils,
55593         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
55594         AC_TYPE_PID_T.
55595
55596 1999-03-28  Jim Meyering  <meyering@ascend.com>
55597
55598         * m4/jm-macros.m4: Define GNU_PACKAGE here.
55599         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
55600         replaced e.g., in the *.sh files of the sh-utils.
55601
55602 1999-03-20  Jim Meyering  <meyering@ascend.com>
55603
55604         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
55605         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
55606         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
55607
55608 1999-03-19  Jim Meyering  <meyering@ascend.com>
55609
55610         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
55611
55612 1999-03-12  Jim Meyering  <meyering@ascend.com>
55613
55614         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
55615
55616 1999-03-07  Jim Meyering  <meyering@ascend.com>
55617
55618         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
55619         declared.
55620
55621 1999-02-17  Jim Meyering  <meyering@ascend.com>
55622
55623         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
55624         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
55625
55626 1999-02-07  Jim Meyering  <meyering@ascend.com>
55627
55628         * m4/group-member.m4: New file -- extracted from sh-utils'
55629         configure.in.
55630
55631         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
55632         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
55633
55634 1999-02-06  Jim Meyering  <meyering@ascend.com>
55635
55636         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
55637         * m4/fnmatch.m4: Likewise.
55638         * m4/getgroups.m4: Likewise.
55639         * m4/lstat.m4: Likewise.
55640         * m4/malloc.m4: Likewise.
55641         * m4/putenv.m4: Likewise.
55642         * m4/realloc.m4: Likewise.
55643         * m4/regex.m4: Likewise.
55644         * m4/stat.m4: Likewise.
55645         * m4/strftime.m4: Likewise.
55646         Suggestion from Alain Magloire.
55647
55648         * m4/chown.m4: Use `.$ac_objext', not `.o'.
55649         * m4/fnmatch.m4: Likewise.
55650         * m4/getgroups.m4: Likewise.
55651         * m4/getline.m4: Likewise.
55652         * m4/lstat.m4: Likewise.
55653         * m4/malloc.m4: Likewise.
55654         * m4/memcmp.m4: Likewise.
55655         * m4/putenv.m4: Likewise.
55656         * m4/realloc.m4: Likewise.
55657         * m4/regex.m4: Likewise.
55658         * m4/stat.m4: Likewise.
55659         * m4/strftime.m4: Likewise.
55660         Suggestion from Alain Magloire.
55661
55662         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
55663         an argument.
55664
55665         * m4/regex.m4: Add a run-time Test for proper operation of
55666         re_compile_pattern.
55667
55668 1999-01-31  Jim Meyering  <meyering@ascend.com>
55669
55670         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
55671
55672 1999-01-30  Jim Meyering  <meyering@ascend.com>
55673
55674         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
55675
55676         * m4/jm-mktime.m4: Make this a wrapper around the official
55677         AM_FUNC_MKTIME rather than my private copy, now that the official one
55678         is up to date.
55679         * m4/mktime.m4: Remove file.
55680
55681         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
55682         * m4/uptime.m4: Likewise.
55683         * m4/uintmax_t.m4: Likewise.
55684
55685 1999-01-28  Jim Meyering  <meyering@ascend.com>
55686
55687         * m4/jm-macros.m4: Use jm_AFS.
55688         * m4/afs.m4: New file (from fileutils' configure.in).
55689
55690         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
55691         * m4/chown.m4: Likewise.
55692         * m4/d-ino.m4: Likewise.
55693         * m4/d-type.m4: Likewise.
55694         * m4/fnmatch.m4: Likewise.
55695         * m4/getgroups.m4: Likewise.
55696         * m4/gettext.m4: Likewise.
55697         * m4/jm-mktime.m4: Likewise.
55698         * m4/jm-winsz2.m4: Likewise.
55699         * m4/lcmessage.m4: Likewise.
55700         * m4/ls-mntd-fs.m4: Likewise.
55701         * m4/malloc.m4: Likewise.
55702         * m4/memcmp.m4: Likewise.
55703         * m4/putenv.m4: Likewise.
55704         * m4/realloc.m4: Likewise.
55705         * m4/st_mtim.m4: Likewise.
55706         * m4/strftime.m4: Likewise.
55707
55708 1999-01-16  Jim Meyering  <meyering@ascend.com>
55709
55710         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
55711         (ARGMATCH_DIE_DECL): Define.
55712
55713 1999-01-12  Jim Meyering  <meyering@ascend.com>
55714
55715         * m4/Makefile.am.in: Rewrite to avoid using fmt.
55716         Reported by Lars Hecking.
55717
55718 1999-01-10  Jim Meyering  <meyering@ascend.com>
55719
55720         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
55721         gross kludge.
55722         * m4/inttypes_h.m4: Likewise.
55723         * m4/lstat.m4: Likewise.
55724         * m4/malloc.m4: Likewise.
55725         * m4/readdir.m4: Likewise.
55726         * m4/realloc.m4: Likewise.
55727         * m4/st_dm_mode.m4: Likewise.
55728         * m4/stat.m4: Likewise.
55729         * m4/utimbuf.m4: Likewise.
55730         * m4/utimes.m4: Likewise.
55731
55732         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
55733         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
55734         comments in config.h.in are meaningful.
55735
55736         * m4/jm-macros.m4: Require autoconf-2.13 here.
55737
55738         * m4/regex.m4: By default, don't use the included regex.c on systems
55739         with glibc 2.  Suggestion from Uli Drepper.
55740
55741 1999-01-02  Jim Meyering  <meyering@ascend.com>
55742
55743         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
55744
55745 1998-12-18  Jim Meyering  <meyering@ascend.com>
55746
55747         * m4/Makefile.am.in (Makefile.am): Simplify rule.
55748         Based on a suggestion from Lars Hecking.
55749
55750 1998-11-16  Paul Eggert  <eggert@twinsun.com>
55751
55752         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
55753
55754 1998-11-16  Jim Meyering  <meyering@ascend.com>
55755
55756         * m4/lfs.m4: Double-quote the `uname...` expression.
55757
55758 1998-11-14  Jim Meyering  <meyering@ascend.com>
55759
55760         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
55761         * m4/stat.m4: Likewise.
55762
55763 1998-11-03  Jim Meyering  <meyering@ascend.com>
55764
55765         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
55766         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
55767
55768 1998-10-18  Jim Meyering  <meyering@ascend.com>
55769
55770         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
55771
55772 1998-10-17  Jim Meyering  <meyering@ascend.com>
55773
55774         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
55775         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
55776         calls for those previously hard-coded headers.  Instead, take a new
55777         parameter.
55778         (jm_CHECK_DECLARATIONS): Reflect interface change.
55779         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
55780         (jm_CHECK_DECL_LOCALTIME_R): New macro.
55781
55782         * m4/mktime.m4: Test for spring-forward gap before long-running test.
55783
55784 1998-10-14  Jim Meyering  <meyering@ascend.com>
55785
55786         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
55787         instead of "TZ=America/Vancouver".  From Paul Eggert.
55788
55789 1998-10-11  Jim Meyering  <meyering@ascend.com>
55790
55791         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
55792         This adds a test for a recently added compatibility fix for mktime.c.
55793         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
55794
55795 1998-09-27  Jim Meyering  <meyering@ascend.com>
55796
55797         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
55798
55799         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
55800         ../configure.in, including a change from Gordon Matzigkeit to allow
55801         cross-compiling for the Hurd.
55802
55803         * m4/glibc.m4: New file/macro to test for the GNU C Library
55804         versions 1 and 2.  From Gordon Matzigkeit.
55805         Indent.
55806
55807 1998-09-21  Jim Meyering  <meyering@ascend.com>
55808
55809         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
55810
55811 1998-08-18  Paul Eggert  <eggert@twinsun.com>
55812
55813         Port nanosecond-resolution times to UnixWare 2.1.2 and
55814         pedantic Solaris 2.6.
55815
55816         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
55817         AC_STRUCT_ST_MTIM.
55818         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
55819         Generate name of ns member, instead of just 1 or undef.
55820         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
55821
55822 1998-08-15  Jim Meyering  <meyering@ascend.com>
55823
55824         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
55825         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
55826         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
55827         instead of jm_TYPE_SSIZE_T.
55828
55829 1998-08-12  Jim Meyering  <meyering@ascend.com>
55830
55831         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
55832
55833 1998-08-02  Jim Meyering  <meyering@ascend.com>
55834
55835         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
55836         in acconfig.h manually.
55837
55838 1998-07-31  Paul Eggert  <eggert@twinsun.com>
55839
55840         * m4/st_mtim.m4: New file.
55841
55842 1998-07-28  Jim Meyering  <meyering@ascend.com>
55843
55844         * m4/utimes.m4: Undef stat.
55845
55846 1998-07-25  Jim Meyering  <meyering@ascend.com>
55847
55848         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
55849         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
55850
55851 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
55852
55853         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
55854         uid and gid actually remain unchanged.
55855
55856 1998-07-07  Jim Meyering  <meyering@ascend.com>
55857
55858         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
55859
55860 1998-07-04  Jim Meyering  <meyering@ascend.com>
55861
55862         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
55863         to prove that this macro can be used in packages without regex.c.
55864
55865 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
55866
55867         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
55868         is to be used.
55869
55870 1998-07-03  Jim Meyering  <meyering@ascend.com>
55871
55872         * m4/gettext.m4: Add -lintl if it's found to be necessary.
55873
55874         * m4/gettext.m4: New file -- from gettext-0.10.35.
55875         * m4/lcmessage.m4: Likewise.
55876         * m4/progtest.m4: Likewise.
55877
55878         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
55879         * m4/jm-macros.m4: Require the new macro.
55880
55881 1998-06-29  Jim Meyering  <meyering@ascend.com>
55882
55883         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
55884         for the definition of NGROUPS (used in a system header included
55885         by sys/mount.h).
55886
55887 1998-06-28  Jim Meyering  <meyering@ascend.com>
55888
55889         * m4/ls-mntd-fs.m4: New file.
55890         * m4/fstypename.m4: New file.
55891
55892         * m4/jm-macros.m4: Require the new macro.
55893         * m4/jm-glibc-io.m4: New file.
55894
55895 1998-05-19  Jim Meyering  <meyering@ascend.com>
55896
55897         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
55898         * m4/lchown.m4: New file.
55899
55900         * m4/Makefile.am.in: New file.
55901         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
55902
55903 1998-05-14  Jim Meyering  <meyering@ascend.com>
55904
55905         * m4/Makefile.am (EXTRA_DIST): Add them.
55906         * m4/jm-macros.m4: New file.
55907         * m4/utimbuf.m4: New file.
55908
55909 1998-05-12  Jim Meyering  <meyering@ascend.com>
55910
55911         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
55912
55913 1998-05-11  Jim Meyering  <meyering@ascend.com>
55914
55915         * m4/isc-posix.m4: New file.
55916
55917 1998-05-10  Jim Meyering  <meyering@ascend.com>
55918
55919         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
55920
55921 1998-05-09  Jim Meyering  <meyering@ascend.com>
55922
55923         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
55924         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
55925         with automake.
55926
55927         * m4/ssize_t.m4: New file.
55928         * m4/mktime.m4: Remove file -- the new automake has this now.
55929
55930 1998-04-26  Jim Meyering  <meyering@ascend.com>
55931
55932         * m4/assert.m4: New file.
55933         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
55934
55935 1998-04-05  Jim Meyering  <meyering@ascend.com>
55936
55937         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
55938         (jm_PREREQ): Use it here.
55939
55940 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
55941
55942         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
55943         in acconfig.h.
55944
55945 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
55946
55947         * m4/prereq.m4: New file.
55948         * m4/error.m4: New file.
55949         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
55950
55951 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
55952
55953         * m4/getline.m4: Don't set am_cv_func_working_getline before the
55954         cache-check for the same variable -- that defeated the purpose of
55955         the test; the test program was never run.  This was a problem only
55956         on systems with losing getline functions -- HP-UX 10.20 is one.
55957         Reported by Bjorn Helgaas.
55958
55959 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
55960
55961         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
55962
55963 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
55964
55965         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
55966
55967         * m4/const.m4: New file.  Use an initializer in this declaration
55968         typedef int charset[2]; const charset x;
55969         Reported by Bob Glickstein.
55970
55971 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
55972
55973         * m4/chown.m4: Fix reversed types on -1 args to chown.
55974         From Kaveh Ghazi.
55975
55976 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
55977
55978         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
55979         Add lseek and memchr.
55980
55981         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
55982         T.E.Dickey <dickey@clark.net> said that some older preprocessors
55983         have a 20-character limit on names.
55984
55985 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
55986
55987         * m4/inttypes_h.m4: New file.
55988         * m4/uintmax_t.m4: New file.
55989         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
55990
55991
55992         -----
55993
55994         Local Variables:
55995         coding: utf-8
55996         End:
55997
55998         Copyright (C) 1997-2009 Free Software Foundation, Inc.
55999
56000         Copying and distribution of this file, with or without
56001         modification, are permitted provided the copyright notice
56002         and this notice are preserved.